mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-26 02:05:31 +00:00
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>