Files
paseo/packages
Josh BendavidandClaude Opus 5.5 9bf0a0d9f3 feat(plugins): hooks for terminal creation and worktree commands
Adds two waiting lifecycle hooks and the workspace id on agent creation:

- terminal.create.before runs for every terminal the daemon starts in a
  workspace (app, CLI, SDK, plugins, agent tools, paseo.json scripts,
  services and worktree terminals). A plugin may replace command, args
  and env, or throw to refuse. It runs in a wrapper around the daemon's
  terminal manager, so adopted terminals don't run it again.
- command.run.before runs before each paseo.json worktree setup and
  teardown command. A plugin may replace the command and env, or throw
  to refuse, which fails setup or teardown like a failing command.
- agent.create.before receives the target workspaceId, read-only. A
  plugin result that omits it keeps it, so older plugins still work.

Setup and archive dependencies take the lifecycle as a required field so
a new caller can't skip the command hook by omission.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 23:54:32 +01:00
..