mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 17:00:59 +00:00
docs: fix outdated custom tools paths and add missing header shortcut (#283)
* docs: fix custom tools example paths to use index.ts structure * fix: add missing ctrl+g shortcut to startup header * docs: fix /session -> /resume for session switching references
This commit is contained in:
parent
2953a9d8d4
commit
7470dde1e9
5 changed files with 10 additions and 7 deletions
|
|
@ -192,7 +192,7 @@ interface ToolSessionEvent {
|
|||
|
||||
**Reasons:**
|
||||
- `start`: Initial session load on startup
|
||||
- `switch`: User switched to a different session (`/session`)
|
||||
- `switch`: User switched to a different session (`/resume`)
|
||||
- `branch`: User branched from a previous message (`/branch`)
|
||||
- `clear`: User cleared the session (`/clear`)
|
||||
|
||||
|
|
@ -400,12 +400,12 @@ const factory: CustomToolFactory = (pi) => {
|
|||
|
||||
## Examples
|
||||
|
||||
See [`examples/custom-tools/todo.ts`](../examples/custom-tools/todo.ts) for a complete example with:
|
||||
See [`examples/custom-tools/todo/index.ts`](../examples/custom-tools/todo/index.ts) for a complete example with:
|
||||
- `onSession` for state reconstruction
|
||||
- Custom `renderCall` and `renderResult`
|
||||
- Proper branching support via details storage
|
||||
|
||||
Test with:
|
||||
```bash
|
||||
pi --tool packages/coding-agent/examples/custom-tools/todo.ts
|
||||
pi --tool packages/coding-agent/examples/custom-tools/todo/index.ts
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue