Behind jackin❯ — crates

jackin-console

Canonical host-console surface: state, input planning, views, components, and effects-as-data for jackin console.

What this crate owns

  • Console state + planning for workspaces, mounts, and services (workspace, services, github_mounts).
  • Mount diff/info and the mount-info cache (mount_diff, mount_info, mount_info_cache).
  • Console view composition + input (tui), including the Usage route. Usage adapts the Rust-owned projection; it does not discover accounts or refresh providers. See docs/content/reference/tui/navigation.mdx for the route contract.

Architecture tier and allowed dependencies

L3 presentation. Dependencies include jackin-config, jackin-oppicker, jackin-core, jackin-diagnostics, jackin-env, jackin-protocol, jackin-tui, and TermRock. Must NOT depend on jackin-runtime, jackin-launch, or jackin-capsule — console reaches runtime through effects-as-data.

Structure

ModuleOwnsTests
lib.rscrate root, re-exports—
workspace.rs · workspace/console workspace statetests.rs
services.rs · services/services—
github_mounts.rs · github_mounts/GitHub mountstests.rs
mount_info.rs · mount_info/mount infotests.rs
mount_info_cache.rsmount-info cache—
mount_diff.rsmount diff—
tui.rs · tui/chrome/input using TermRock and shared operator-info UIinput/
tui/state.rs · tui/state/console manager state + bindingstests.rs
tui/state/manager.rs · tui/state/manager/concrete manager stage statetests.rs
tui/screens/form_model.rsshared form FieldRow / FormSection view models—
tui/components/keyboard_help.rs · tui/components/keyboard_help/? keyboard-help overlay entry builder over live console keymapstests.rs

Public API

State machine and view models consumed by the jackin console entry point.

How to verify

cargo nextest run -p jackin-console
cargo clippy -p jackin-console --all-targets -- -D warnings

On this page