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//! - [`search`]: the search over the registry (Ctrl+K).
7//! - [`frame`]: the frame ([`frame::Shell`]): title bar (general menus, the app's views, the
8//!   shared workspaces), menu row, status bar with jobs and meters, Settings, search; it adapts
9//!   to the window's width.
10//! - [`jobs`]: what runs in the background, with progress and cancel.
11//! - [`keys`]: `keybindings.toml`, the keys the user gives the commands.
12//! - [`activity`]: what happened, for the timeline: every command run (who, how, with what),
13//!   time in each workspace, jobs, what steps produced.
14//! - [`env`]: a project's environments for its scripts: the Python venv (made and synced by uv
15//!   from `pyproject.toml` and `uv.lock`) and the Rust workspace and toolchain pin.
16//! - [`changes`]: the Changes panel: watched project files as diffs against a baseline, an
17//!   agent's proposed change reviewed hunk by hunk.
18//! - [`picker`] and [`picker_view`]: the file picker File → Open… brings up: the folder model
19//!   (tested without a window) and its popup.
20//! - [`container`]: the view container: a dock of views, "Add view or container", arrangements,
21//!   the buttons in a view's tab.
22//!
23//! `cargo run -p kitchen-shell --example shell-gallery` shows each piece.
24
25#![warn(missing_docs)]
26
27// GPUI's derive macros name `gpui`; through the kit, that is gpui-kit
28extern crate gpui_kit as gpui;
29
30pub mod activity;
31pub mod changes;
32pub mod command;
33/// Jobs, environments and people: kitchen-services', drawn by the frame and its Settings.
34pub use kitchen_services::{env, jobs, people};
35/// The view container, now kitchen-views' (re-exported: apps keep `kitchen_shell::container`).
36pub use kitchen_views::container;
37pub mod frame;
38pub mod keys;
39pub mod people_view;
40pub mod picker;
41pub mod picker_view;
42pub mod plugins_view;
43pub mod search;
44
45pub use changes::{Baseline, ChangesEvent, ChangesPanel};
46pub use command::{CommandSpec, MenuItem, MenuProvider, MenuSpec, Registry, RunCommand};
47pub use container::{AddViewDialog, Arrangement, DialogEvent, ViewOption};
48pub use frame::{
49    OpenSpec, Placement, RemoteSpec, SettingsSection, Shell, ShellEvent, ShellSpec, StatusItems, TitleFit,
50    WorkspaceSpec, fit, frame_rounded, resize_edge,
51};
52pub use picker::{FileKind, Picker};
53pub use picker_view::{FilePickerView, PickerEvent};
54pub use search::{Search, SearchEvent};