Re-export Type from typebox, update examples to import from pi-coding-agent

This commit is contained in:
Mario Zechner 2025-12-17 16:09:19 +01:00
parent 4e476f603e
commit aedce30618
6 changed files with 9 additions and 7 deletions

View file

@ -7,7 +7,7 @@ Custom tools extend pi with new capabilities beyond the built-in read/write/edit
Create a file `~/.pi/agent/tools/hello.ts`:
```typescript
import { Type } from "@sinclair/typebox";
import { Type } from "@mariozechner/pi-coding-agent";
import type { CustomToolFactory } from "@mariozechner/pi-coding-agent";
const factory: CustomToolFactory = (pi) => ({
@ -47,7 +47,7 @@ The tool is automatically discovered and available in your next pi session.
## Tool Definition
```typescript
import { Type } from "@sinclair/typebox";
import { Type } from "@mariozechner/pi-coding-agent";
import { StringEnum } from "@mariozechner/pi-ai";
import { Text } from "@mariozechner/pi-tui";
import type { CustomToolFactory, ToolSessionEvent } from "@mariozechner/pi-coding-agent";