docs(coding-agent): document extension UI protocol in RPC docs, add examples (#1144)

This commit is contained in:
Aliou Diallo 2026-02-01 13:25:18 +01:00 committed by GitHub
parent 4ca7bbe450
commit 7feae0d5c2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 951 additions and 1 deletions

View file

@ -53,6 +53,7 @@ cp permission-gate.ts ~/.pi/agent/extensions/
| `snake.ts` | Snake game with custom UI, keyboard handling, and session persistence |
| `send-user-message.ts` | Demonstrates `pi.sendUserMessage()` for sending user messages from extensions |
| `timed-confirm.ts` | Demonstrates AbortSignal for auto-dismissing `ctx.ui.confirm()` and `ctx.ui.select()` dialogs |
| `rpc-demo.ts` | Exercises all RPC-supported extension UI methods; pair with [`examples/rpc-extension-ui.ts`](../rpc-extension-ui.ts) |
| `modal-editor.ts` | Custom vim-like modal editor via `ctx.ui.setEditorComponent()` |
| `rainbow-editor.ts` | Animated rainbow text effect via custom editor |
| `notify.ts` | Desktop notifications via OSC 777 when agent finishes (Ghostty, iTerm2, WezTerm) |