Skip to main content

rpi_cli/host/
mod.rs

1//! Shared-host building blocks, compiled into rpi rather than a separate crate.
2//!
3//! This layer defines lifecycle rules, capacity, a persistent administrative
4//! catalog, supervised ordinary Harness backend, native admission/receipts,
5//! immutable trusted profiles, a bounded trusted administrative facade and a
6//! control daemon/CLI. Importing this module starts no services. The journal alone
7//! dispatches nothing; explicit daemon policy owns native administration. IPC
8//! exposes allowed profile refs, full-intent receipts and journalled profile
9//! create/restore/guarded close, cancel and stop. Session-free Mini has separate
10//! opt-in private authority and v1.6 volatile operations; never durable replay.
11
12#[cfg(unix)]
13pub mod administration;
14#[cfg(target_os = "macos")]
15mod area;
16pub(crate) mod area_entry;
17#[cfg(unix)]
18mod area_rpc;
19#[cfg(target_os = "macos")]
20mod area_terminal;
21pub mod bindings;
22mod capacity;
23mod catalog;
24pub(crate) mod cli;
25pub(crate) mod cli_cleanup;
26pub(crate) mod cli_resources;
27pub(crate) mod cli_tasks;
28/// Versioned shared Host control client; not native session RPC.
29pub mod client;
30mod config;
31#[cfg(unix)]
32pub mod daemon;
33#[cfg(unix)]
34mod daemon_administration;
35pub(crate) mod dev_staging;
36mod error;
37#[cfg(unix)]
38mod extension_artifacts;
39/// Staged Darwin process-group custody; not a complete CLI cleanup receipt.
40#[cfg(target_os = "macos")]
41#[allow(dead_code)]
42mod tool_processes;
43#[cfg(unix)]
44pub use extension_artifacts::{
45    NativeExtensionArtifacts, NativeStagedExtensions, MAX_NATIVE_EXTENSION_ARTIFACTS,
46    MAX_NATIVE_EXTENSION_BYTES, MAX_NATIVE_EXTENSION_TOTAL_BYTES,
47};
48mod extension_custody;
49pub use extension_custody::{NativeExtensionCall, NativeExtensionCustody};
50mod binding_resources;
51pub use binding_resources::{NativeBindingResources, NativeHookConfig};
52mod instruction_resources;
53pub use instruction_resources::NativeInstructionResources;
54// Private staged adapter; default CLI integration follows lifecycle tests.
55#[allow(dead_code)]
56mod in_process;
57#[cfg(unix)]
58mod launch_policy;
59pub mod lifecycle;
60/// Session-free owned execution; volatile results, not the persistent wire API.
61pub mod mini;
62#[cfg(unix)]
63pub mod mini_control;
64pub mod ordinary;
65mod profile;
66mod profile_set;
67pub mod protocol;
68pub use profile::{AgentProfileFile, HostStartupAgent, MAX_PROFILE_BYTES};
69pub use profile_set::{PreparedProfile, TrustedProfileSet, MAX_TRUSTED_PROFILES};
70mod recovery;
71mod registry;
72mod runtime;
73#[cfg(unix)]
74pub mod server;
75pub mod service;
76#[cfg(target_os = "macos")]
77mod supervisor;
78mod types;
79
80pub use capacity::{Capacity, CapacitySnapshot, ResidentPermit};
81pub use catalog::{
82    AgentPage, AgentRecord, CatalogGuard, CatalogStatus, HostCatalog, MAX_PAGE_SIZE,
83};
84pub use config::{
85    EffectiveTimeout, EffectiveTimeouts, HostConfig, TimeoutOverride, TimeoutOverrides,
86    TimeoutSource, Timeouts,
87};
88pub use error::{CatalogError, CatalogResult, HostError, HostResult};
89pub use types::{
90    AgentId, AgentMode, AgentSpec, AgentState, ControlScopeId, ExecutionMode, HostEpoch,
91    LaunchSpec, ModelRef, ProfileRef, ProfileVersion, RequestId, RunId, SessionRef,
92};
93
94#[cfg(all(test, unix))]
95mod registry_tests;
96#[cfg(test)]
97mod tests;