toolsrv: remove JSON-RPC, add compat stubs for 9P transition
BREAKING CHANGE: Removes all JSON-RPC toolsrv code.
Deleted files:
- server.go, rpcserver.go, rpcwire.go (JSON-RPC server)
- conn.go, dial.go (JSON-RPC client)
- exec.go, stream.go, detach.go (old execution tied to Server)
- spawn.go, transport.go, processkeeper.go, remote.go (spawning)
- shell_validate.go (tied to old Server)
New/modified:
- compat.go: Stub types to keep agent/session/fs packages compiling
- Conn, Process, ProcessKeeper with TODO implementations
- Spawn, SpawnRemote stubs
- HostInfo, RemoteConfig, Option types
- All marked TODO for 9P implementation
- cmd/toolsrv/main.go: Updated to use 9P model
- Requires TOOLSRV_SECRET env var
- Builds fsedsl tree
- serve9P placeholder for 9P protocol handling
- exec9p.go: Added ToolResult types, limitedWriter, plan9Namespace
The codebase compiles but toolsrv is non-functional until:
1. serve9P implements 9P protocol
2. Conn stubs are replaced with lib9p client
3. Spawn/ProcessKeeper spawn 9P server