1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//! SCV's bounded, workspace-aware built-in tools.
//!
//! [`builtin_registry`] builds a session's tools: files (`read`,
//! `read_skill`, `write`), the shell (`bash`), the web (`web_fetch`,
//! `web_search`), delegation to other agent CLIs and to a nested SCV
//! (`agent`, with background jobs), and `chat_attach` for chat sessions.
//! [`delegation`] records every delegated process so SCV can list, stop, and
//! clean them up.
//!
//! The source is laid out by what a tool does:
//!
//! - `builtin/`: tools that run inside SCV (`fs`, `skill`, `shell`, [`web`],
//! [`chat_attach`]).
//! - `delegate/`: the `agent` tool that hands a turn to another agent, named
//! as its argument, on one of three backends: one CLI process per turn
//! (`native`), a long-lived Agent Client Protocol server (`acp`), or a
//! nested SCV (`scv`); the [`adapters`] table,
//! [`background`] jobs, [`conversation`] handles, run records
//! ([`delegation`]), the agents' own credential files ([`stores`]), and
//! how a run's output and progress are read.
//! - `process`: spawning a child in its own process group and always
//! finishing the whole group.
//! - `registry`, `config`, and `args`: assembling a session's tools, their
//! settings, and the argument helpers they share.
pub use ;
pub use ;
pub use ;
pub use apply_agent_environment;
pub use ;