fix(ai,coding-agent): re-export typebox symbols and align docs closes #1338

This commit is contained in:
Mario Zechner 2026-02-06 18:34:18 +01:00
parent fe6f4d3a9d
commit 0232c44064
4 changed files with 7 additions and 1 deletions

View file

@ -9,6 +9,7 @@
### Fixed
- Set OpenAI Responses API requests to `store: false` by default to avoid server-side history logging ([#1308](https://github.com/badlogic/pi-mono/issues/1308))
- Re-exported TypeBox `Type`, `Static`, and `TSchema` from `@mariozechner/pi-ai` to match documentation and avoid duplicate TypeBox type identity issues in pnpm setups ([#1338](https://github.com/badlogic/pi-mono/issues/1338))
## [0.52.6] - 2026-02-05

View file

@ -72,6 +72,8 @@ Unified LLM API with automatic model discovery, provider configuration, token an
npm install @mariozechner/pi-ai
```
TypeBox exports are re-exported from `@mariozechner/pi-ai`: `Type`, `Static`, and `TSchema`.
## Quick Start
```typescript

View file

@ -1,3 +1,6 @@
export type { Static, TSchema } from "@sinclair/typebox";
export { Type } from "@sinclair/typebox";
export * from "./api-registry.js";
export * from "./env-api-keys.js";
export * from "./models.js";

View file

@ -2,8 +2,8 @@
* Hello Tool - Minimal custom tool example
*/
import { Type } from "@mariozechner/pi-ai";
import type { ExtensionAPI } from "@mariozechner/pi-coding-agent";
import { Type } from "@sinclair/typebox";
export default function (pi: ExtensionAPI) {
pi.registerTool({