feat(coding-agent): add interactive-shell.ts extension example

Demonstrates running interactive commands (vim, git rebase, htop, etc.)
with full terminal access using user_bash event and ctx.ui.custom().

- Auto-detects interactive commands from built-in list
- !i prefix to force interactive mode
- Configurable via INTERACTIVE_COMMANDS/INTERACTIVE_EXCLUDE env vars

closes #532
This commit is contained in:
Mario Zechner 2026-01-09 00:08:52 +01:00
parent ef7c52ffa1
commit c5b97d7a2f
3 changed files with 198 additions and 1 deletions

View file

@ -543,7 +543,7 @@ pi.on("user_bash", (event, ctx) => {
});
```
**Examples:** [ssh.ts](../examples/extensions/ssh.ts)
**Examples:** [ssh.ts](../examples/extensions/ssh.ts), [interactive-shell.ts](../examples/extensions/interactive-shell.ts)
## ExtensionContext