fabro/lib/components/fabro-agent/src
Bryan Helmkamp 8771ef6d8e
Move the Read tool's line numbering and the shell quoting wrapper out of fabro-sandbox
format_lines_numbered renders a file the way the agent's Read tool shows
it: every line prefixed with its number, from an offset for a limit. That
is the agent's presentation, not a sandbox concern, and it only lived in
fabro-sandbox so RunSandbox::read_file(path, offset, limit) could call
it. The function now lives in fabro-agent next to the Read tool, with its
tests, and the Read, ReadManyFiles, and Kimi ReadFile tools number the
text they get from read_file_text themselves. RunSandbox::read_file goes
away; the sandbox returns bytes or text and nothing else.

fabro-sandbox also re-exported shell_quote through a one-line wrapper so
callers could reach it from the sandbox crate or from fabro-agent. The
audited implementation is fabro_util:🐚:shell_quote; the six
importers now use it directly and the wrapper and both re-exports are
gone.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-11 15:00:17 -06:00
..
profiles Move the Read tool's line numbering and the shell quoting wrapper out of fabro-sandbox 2026-09-11 15:00:17 -06:00
agent_profile.rs Merge origin/main into the sandbox-driver adoption 2026-09-10 13:37:11 -06:00
apply_patch.lark refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
apply_patch.rs Merge origin/main into the sandbox-driver adoption 2026-09-10 13:37:11 -06:00
cli.rs Merge origin/main into the sandbox-driver adoption 2026-09-10 13:37:11 -06:00
compaction.rs Import lithos-llm types directly instead of through fabro-types 2026-09-10 10:03:08 -06:00
config.rs Import lithos-llm types directly instead of through fabro-types 2026-09-10 10:03:08 -06:00
context_window.rs Import lithos-llm types directly instead of through fabro-types 2026-09-10 10:03:08 -06:00
error.rs Name built-in providers through lithos catalog::builtin 2026-09-10 09:48:37 -06:00
event.rs Speak the driver's exec vocabulary instead of mirroring it 2026-09-10 16:11:45 -06:00
file_tracker.rs Import lithos-llm types directly instead of through fabro-types 2026-09-10 10:03:08 -06:00
history.rs Import lithos-llm types directly instead of through fabro-types 2026-09-10 10:03:08 -06:00
lib.rs Move the Read tool's line numbering and the shell quoting wrapper out of fabro-sandbox 2026-09-11 15:00:17 -06:00
local_sandbox.rs Retire the fabro Sandbox trait for one concrete RunSandbox 2026-09-10 00:14:42 -06:00
loop_detection.rs Import lithos-llm types directly instead of through fabro-types 2026-09-10 10:03:08 -06:00
mcp_integration.rs Merge origin/main into the sandbox-driver adoption 2026-09-10 13:37:11 -06:00
memory.rs Merge origin/main into the sandbox-driver adoption 2026-09-10 13:37:11 -06:00
native_tool.rs refactor(agent): give Claude 5 subagent tools fabro canonical names 2026-07-26 07:57:42 -04:00
question_tools.rs Merge origin/main into the sandbox-driver adoption 2026-09-10 13:37:11 -06:00
sandbox.rs Move the Read tool's line numbering and the shell quoting wrapper out of fabro-sandbox 2026-09-11 15:00:17 -06:00
session.rs Run the agent's MCP servers and the service listing through the driver's services facet 2026-09-11 13:18:02 -06:00
skills.rs Merge origin/main into the sandbox-driver adoption 2026-09-10 13:37:11 -06:00
subagent.rs Merge origin/main into the sandbox-driver adoption 2026-09-10 13:37:11 -06:00
task_reminder.rs Import lithos-llm types directly instead of through fabro-types 2026-09-10 10:03:08 -06:00
test_support.rs Merge origin/main into the sandbox-driver adoption 2026-09-10 13:37:11 -06:00
todo_runtime.rs Retire the fabro Sandbox trait for one concrete RunSandbox 2026-09-10 00:14:42 -06:00
todo_tools.rs Merge origin/main into the sandbox-driver adoption 2026-09-10 13:37:11 -06:00
tool_execution.rs Speak the driver's exec vocabulary instead of mirroring it 2026-09-10 16:11:45 -06:00
tool_permissions.rs refactor(agent): model built-in tools as an enum with per-profile vocabularies 2026-07-24 20:04:11 -04:00
tool_registry.rs Speak the driver's exec vocabulary instead of mirroring it 2026-09-10 16:11:45 -06:00
tools.rs Move the Read tool's line numbering and the shell quoting wrapper out of fabro-sandbox 2026-09-11 15:00:17 -06:00
truncation.rs Speak the driver's exec vocabulary instead of mirroring it 2026-09-10 16:11:45 -06:00
types.rs Import lithos-llm types directly instead of through fabro-types 2026-09-10 10:03:08 -06:00
web_search.rs Merge origin/main into the sandbox-driver adoption 2026-09-10 13:37:11 -06:00