Flatten hello/ and question/ extension examples to single files

This commit is contained in:
Mario Zechner 2026-01-05 01:45:10 +01:00
parent c6fc084534
commit cf1c4c31f4
4 changed files with 7 additions and 3 deletions

View file

@ -28,8 +28,8 @@ cp permission-gate.ts ~/.pi/agent/extensions/
| Extension | Description |
|-----------|-------------|
| `todo.ts` | Todo list tool + `/todos` command with custom rendering and state persistence |
| `hello/` | Minimal custom tool example |
| `question/` | Demonstrates `pi.ui.select()` for asking the user questions |
| `hello.ts` | Minimal custom tool example |
| `question.ts` | Demonstrates `ctx.ui.select()` for asking the user questions |
| `subagent/` | Delegate tasks to specialized subagents with isolated context windows |
### Commands & UI

View file

@ -1,3 +1,7 @@
/**
* Hello Tool - Minimal custom tool example
*/
import type { ExtensionAPI } from "@mariozechner/pi-coding-agent";
import { Type } from "@sinclair/typebox";