Commit Graph

3 Commits

Author SHA1 Message Date
Levi Neely a21c256efa tools: one file per builtin tool
Each tool is a single file, single function. builtins.go is the registry.
2026-07-29 23:19:03 +02:00
Levi Neely 18beb15698 split: toolsrv/ (server framework) + tools/ (builtin handlers)
toolsrv/ owns the Server struct, execution engine, registry, discovery.
tools/ owns the built-in handlers (Shell, ToolList, SkillLoad, etc.)

Dependency flows one way: tools/ imports toolsrv/.
Server.Dispatch uses a handler map populated via WithBuiltins().
2026-07-29 23:17:22 +02:00
Levi Neely 873f83464f tools: decompose code.go into server.go + shell.go
server.go: Server struct, options, lifecycle, dispatch routing, tool_* handlers
shell.go: execution engine (sandbox, elevation, detach), validation, limitedWriter
2026-07-29 23:07:00 +02:00