Skip to main content

Crate kitchen_tools

Crate kitchen_tools 

Source
Expand description

Tools and plugins for the neuro-kitchen apps: separate programs an app or the orchestrator runs, never links, over JSON lines on stdin and stdout.

  • plugin: the plugin protocol (handshake, capabilities, progress), discovery, a client kept alive between requests, and the manager (install from a file or a verified download, update, remove, disk use). The manager’s Settings page is kitchen-shell’s.
  • tool: what a tool answers beside it: describe (its operations, their ports as the contract’s type and format), validate and run; the tool’s side (HeadlessTool, serve_stdio) and the orchestrator’s (ToolClient).

kitchen-plugin and kitchen-tool until phase 2, step 3d.

Re-exports§

pub use plugin::CoreRequest;
pub use plugin::Event;
pub use plugin::Installed;
pub use plugin::Manager;
pub use plugin::PROTOCOL;
pub use plugin::PluginInfo;
pub use plugin::PluginKind;
pub use plugin::PluginProcess;
pub use plugin::RuntimeStatus;
pub use tool::HeadlessTool;
pub use tool::InputPort;
pub use tool::OutputPort;
pub use tool::ReviewFlag;
pub use tool::RunInput;
pub use tool::RunOutput;
pub use tool::RunReport;
pub use tool::RunRequest;
pub use tool::TOOL_PROTOCOL;
pub use tool::ToolClient;
pub use tool::ToolDescription;
pub use tool::ToolRef;
pub use tool::ToolRequest;
pub use tool::Validation;
pub use tool::check_inputs;
pub use tool::plugin_info;
pub use tool::serve_stdio;

Modules§

plugin
Plugins for the neuro-kitchen apps, as separate programs (lumen’s model plugins, dsp-kitchen’s sorters). The app never links a plugin, so a plugin never adds weight, licences or a runtime to the app, and can be installed, updated or removed on its own.
tool
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: