Restructure extensions.md: add Custom Tools section, improve sendMessage docs

- Add ## Custom Tools section with Tool Definition, Multiple Tools, Custom Rendering
- Expand pi.sendMessage docs with deliverAs mode explanations
- Add Extension Styles subsection (single file, dir, package.json)
- Expand ExtensionCommandContext with waitForIdle, newSession, branch, navigateTree
- Replace lodash with zod in examples
- Various fixes and reorganization
This commit is contained in:
Mario Zechner 2026-01-05 03:04:19 +01:00
parent e4f8215f97
commit 0e41b9c2a2
2 changed files with 265 additions and 25 deletions

View file

@ -37,7 +37,7 @@ Hooks and custom tools are now unified as **extensions**. Both were TypeScript m
// extensions/my-package/package.json
{
"name": "my-extension-package",
"dependencies": { "lodash": "^4.0.0" },
"dependencies": { "zod": "^3.0.0" },
"pi": {
"extensions": ["./src/main.ts", "./src/tools.ts"]
}