pi-mono/apps/p2/plugins/terminals
Armin Ronacher 47005dbe36 feat(p2): terminal tool for the agent, tmux-style argv, code mode only
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.
2026-11-04 21:56:56 +01:00
..
vendor/ghostty feat: add apps/p2 (imported from pi-private at 7dadff697) 2026-11-03 13:39:06 +00:00
commands.ts feat(p2): terminal tool for the agent, tmux-style argv, code mode only 2026-11-04 21:56:56 +01:00
contract.ts feat(p2): terminal tool for the agent, tmux-style argv, code mode only 2026-11-04 21:56:56 +01:00
daemon.ts feat: add apps/p2 (imported from pi-private at 7dadff697) 2026-11-03 13:39:06 +00:00
detached.ts feat(p2): terminal tool for the agent, tmux-style argv, code mode only 2026-11-04 21:56:56 +01:00
envs.ts feat: add apps/p2 (imported from pi-private at 7dadff697) 2026-11-03 13:39:06 +00:00
ghostty.ts feat(p2): terminal tool for the agent, tmux-style argv, code mode only 2026-11-04 21:56:56 +01:00
keys.ts feat(p2): terminal tool for the agent, tmux-style argv, code mode only 2026-11-04 21:56:56 +01:00
log-preload.ts feat: add apps/p2 (imported from pi-private at 7dadff697) 2026-11-03 13:39:06 +00:00
main.ts feat(p2): terminal tool for the agent, tmux-style argv, code mode only 2026-11-04 21:56:56 +01:00
package.json feat: add apps/p2 (imported from pi-private at 7dadff697) 2026-11-03 13:39:06 +00:00
plain.ts feat(p2): terminal tool for the agent, tmux-style argv, code mode only 2026-11-04 21:56:56 +01:00
protocol.ts feat(p2): terminal tool for the agent, tmux-style argv, code mode only 2026-11-04 21:56:56 +01:00
server.ts feat(p2): terminal tool for the agent, tmux-style argv, code mode only 2026-11-04 21:56:56 +01:00
service.ts feat(p2): terminal tool for the agent, tmux-style argv, code mode only 2026-11-04 21:56:56 +01:00
terminal-clipboard.css feat: add apps/p2 (imported from pi-private at 7dadff697) 2026-11-03 13:39:06 +00:00
terminal-input.ts feat: add apps/p2 (imported from pi-private at 7dadff697) 2026-11-03 13:39:06 +00:00
Terminal.tsx feat(p2): terminal tool for the agent, tmux-style argv, code mode only 2026-11-04 21:56:56 +01:00
tool.ts feat(p2): terminal tool for the agent, tmux-style argv, code mode only 2026-11-04 21:56:56 +01:00
tui.ts feat(p2): terminal tool for the agent, tmux-style argv, code mode only 2026-11-04 21:56:56 +01:00
wasm.d.ts feat: add apps/p2 (imported from pi-private at 7dadff697) 2026-11-03 13:39:06 +00:00
web.tsx feat: add apps/p2 (imported from pi-private at 7dadff697) 2026-11-03 13:39:06 +00:00
worker.ts feat(p2): terminal tool for the agent, tmux-style argv, code mode only 2026-11-04 21:56:56 +01:00