mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
The agent drives the session's terminals (shared with the owner's panel) with
tools.terminal({ command, args }): new-window, list-windows, send-keys, read,
capture-pane, kill-window, with waits (quiet, exit, /regex/) and plain-text
output. The terminal host keeps each terminal's last MiB of output and the
agent's read cursor, answers calls with ids, and does keyed calls once, so the
tool is replay-safe. AgentTerminals serves the session's current worker on its
environments; archiving closes a session's terminals. Without code mode the
worker registry installs tool_search once for all deferred tools.
|
||
|---|---|---|
| .. | ||
| config-value.ts | ||
| config.ts | ||
| contract.ts | ||
| credentials.ts | ||
| fake.ts | ||
| model-config.ts | ||
| model-store.ts | ||
| models.ts | ||
| package.json | ||
| provider-config.ts | ||
| resources.ts | ||
| scope.ts | ||
| server.ts | ||
| tui.ts | ||
| worker.ts | ||