ollie/toolsrv
Ollie Agent 2b4d577e39 refactor: architectural cleanup (5 items)
1. Standardize ctl dispatch: hoist rootCtlHandlers and sessionCtlHandlers
   to package-level vars, matching the agent pattern.

2. Fix error wrapping: %v → %w in toolsrv/shell.go (only 2 instances;
   backend/ was already clean).

3. Canonicalize tool server access: LoadTool now only uses
   session.ToolsConn() — removed fallback to agent.ToolServer().

4. Centralize event handler wiring: wireAgentEvents(sessID, ag, al)
   replaces separate SetOutput + wireAgentStateEvents calls. Documents
   the contract.

5. Split toolsrv/shell.go: validation patterns, ValidateCode, and rate
   limiting moved to shell_validate.go (86 lines). shell.go retains
   execution logic (594 lines).
2026-08-09 12:46:36 +02:00
..
conn.go all: merge toolsrv files, fix context hierarchy, remove dead params 2026-08-08 16:13:55 +02:00
detach.go all: merge thin packages and small files 2026-08-08 15:56:26 +02:00
dial.go all: delete dead code, tighten API surface 2026-08-08 15:51:13 +02:00
meta.go feat: add resetsCounter tool property to reset step budget on active progress 2026-08-07 17:13:14 +02:00
processkeeper.go all: delete dead code, tighten API surface 2026-08-08 15:51:13 +02:00
registry.go all: merge toolsrv files, fix context hierarchy, remove dead params 2026-08-08 16:13:55 +02:00
remote.go all: delete dead code, tighten API surface 2026-08-08 15:51:13 +02:00
rpc_integration_test.go all: kill dead code, remove classifier system, clean up names 2026-08-08 14:52:10 +02:00
rpcwire.go refactor: items 8-10, 12, 13 from code review 2026-08-09 11:32:31 +02:00
server.go refactor: reduce redundancy, remove dead code, improve structure 2026-08-09 11:23:25 +02:00
shell.go refactor: architectural cleanup (5 items) 2026-08-09 12:46:36 +02:00
shell_validate.go refactor: architectural cleanup (5 items) 2026-08-09 12:46:36 +02:00
socket_test.go all: delete dead code, tighten API surface 2026-08-08 15:51:13 +02:00
spawn.go toolsrv: unified socket-based execution 2026-07-31 14:10:47 +02:00
stream.go flatten: absorb submodules into single Go module 2026-07-30 18:57:51 +02:00
transport.go refactor: items 8-10, 12, 13 from code review 2026-08-09 11:32:31 +02:00