Files
paseo/packages/plugin
6b0fbfc640 refactor(plugins): one launch wrap for agents, terminals, and worktree commands
terminal.create.before and command.run.before now change only env and a
launch wrap, the same PluginLaunchWrap agent.open.before returns. Paseo
starts the terminal as [...wrap, command, ...args] (the default shell
when there is no command) and a setup or teardown command's shell as
[...wrap, shell, ...shellArgs]. The first hook's wrap wins; a different
one fails the operation. command, args, and the command text are
read-only, so a plugin cannot rewrite what runs.

The terminal wrap is applied in the daemon before the worker, so the
terminal worker protocol is unchanged. resolveDefaultTerminalShell moves
to its own module so the daemon does not load node-pty.

Co-authored-by: CL Kao <clkao@datarecce.io>
Co-authored-by: Josh Bendavid <Josh.Bendavid@cern.ch>
2026-11-25 17:37:32 +01:00
..