kitchen-tools 0.0.10

Tools and plugins for the neuro-kitchen apps: separate programs over JSON lines (handshake, capabilities, progress), discovery, a manager, and the tool requests describe, validate and run, with ports as the contract's type and format
Documentation
//! How the orchestrator drives a neuro-kitchen tool without its window. A tool (lucem, dspk,
//! neuro-convert, garnish, any tool from kitchen-template) is a plugin program
//! ([`crate::plugin`]: JSON lines over stdin and stdout, large data as files) that answers three
//! more requests:
//!
//! | Request | Answer |
//! |---|---|
//! | `describe` | [`ToolDescription`]: its operations, what each reads and writes (the contract's type and format), its recipe's JSON Schema |
//! | `validate` | whether a recipe is one an operation can run, and if not, why |
//! | `run` | runs an operation on input results into an output folder: [`RunReport`] |
//!
//! The orchestrator knows nothing else about a tool. It connects tools by the types and formats they declare,
//! so a new tool joins the soup by answering these three requests.
//!
//! - [`description`], [`protocol`], [`report`]: the data.
//! - [`serve`]: the tool's side ([`HeadlessTool`], [`serve_stdio`]).
//! - [`client`]: the orchestrator's side ([`ToolClient`]).

pub mod client;
pub mod description;
pub mod protocol;
pub mod report;
pub mod serve;

pub use client::{ToolClient, check_inputs};
pub use description::{InputPort, Operation, OutputPort, Resources, ToolDescription};
pub use protocol::{RunInput, RunRequest, TOOL_PROTOCOL, ToolRef, ToolRequest, Validation};
pub use report::{ReviewFlag, RunOutput, RunReport};
pub use serve::{HeadlessTool, plugin_info, serve_stdio};