Update docs for ctx.ui.editor() and handoff example

- Added ctx.ui.editor() to hooks.md and custom-tools.md
- Added ctx.ui.editor() to CHANGELOG.md
- Added handoff.ts to examples/hooks/README.md
This commit is contained in:
Mario Zechner 2026-01-02 01:26:21 +01:00
parent af4c66117b
commit 02175d908b
4 changed files with 20 additions and 9 deletions

View file

@ -1,6 +1,6 @@
# Examples
Example code for pi-coding-agent.
Example code for pi-coding-agent SDK, hooks, and custom tools.
## Directories
@ -13,14 +13,6 @@ Example hooks for intercepting tool calls, adding safety gates, and integrating
### [custom-tools/](custom-tools/)
Example custom tools that extend the agent's capabilities.
## Running Examples
```bash
cd packages/coding-agent
npx tsx examples/sdk/01-minimal.ts
npx tsx examples/hooks/permission-gate.ts
```
## Documentation
- [SDK Reference](sdk/README.md)