Skip to main content

kitchen_shell/
lib.rs

1//! The frame the neuro-kitchen apps share. An app registers what it can do; the shell draws it
2//! the same way everywhere.
3//!
4//! - [`command`]: one list of commands ([`command::CommandSpec`] in a [`command::Registry`]) that
5//!   becomes the menus, the search, the key bindings and an agent's tools.
6//! - [`scripts`]: the Scripts workspace: Python and Rust scripts that become commands and
7//!   pipeline nodes.
8//! - [`search`]: the search over the registry (Ctrl+K).
9//! - [`frame`]: the frame ([`frame::Shell`]): title bar, workspaces, menu row, status bar with
10//!   jobs and meters, Settings, search.
11//! - [`jobs`]: what runs in the background, with progress and cancel.
12//! - [`keys`]: `keybindings.toml`, the keys the user gives the commands.
13//! - [`activity`]: what happened, for the timeline: every command run (who, how, with what),
14//!   time in each workspace, jobs, what steps produced.
15//! - [`env`]: a project's environments for its scripts: the Python venv (made and synced by uv
16//!   from `pyproject.toml` and `uv.lock`) and the Rust workspace and toolchain pin.
17//! - [`changes`]: the Changes panel: watched project files as diffs against a baseline, an
18//!   agent's proposed change reviewed hunk by hunk.
19//! - [`container`]: the view container: a dock of views, "Add view or container", arrangements,
20//!   the buttons in a view's tab.
21//!
22//! `cargo run -p kitchen-shell --example shell-gallery` shows each piece.
23
24#![warn(missing_docs)]
25
26// GPUI's derive macros name `gpui`; through the kit, that is gpui-kit
27extern crate gpui_kit as gpui;
28
29pub mod activity;
30pub mod changes;
31pub mod command;
32pub mod container;
33pub mod env;
34pub mod frame;
35pub mod jobs;
36pub mod keys;
37pub mod people;
38pub mod people_view;
39pub mod scripts;
40pub mod search;
41
42pub use changes::{Baseline, ChangesEvent, ChangesPanel};
43pub use command::{CommandSpec, MenuItem, MenuProvider, MenuSpec, Registry, RunCommand};
44pub use container::{AddViewDialog, Arrangement, DialogEvent, ViewOption};
45pub use frame::{RemoteSpec, SettingsSection, Shell, ShellEvent, ShellSpec, StatusItems, TitleFit, WorkspaceSpec, frame_rounded, resize_edge};
46pub use scripts::{NodeSpec, Port, Script, ScriptMeta, ScriptsEvent, ScriptsWorkspace};
47pub use search::{Search, SearchEvent};