feat(deps): added pi.zod exports and removed TypeBox package exports
- Added canonical `pi.zod` schema API exports and removed TypeBox package exports/imports. - Migrated Tool schema typing from TypeBox to shared `TSchema`/Zod flow with legacy TypeBox compatibility. - Updated AI provider adapters and MCP/agent builders to convert tool params through `toolWireSchema()`. - Reworked schema validation from AJV to Zod-safe parsing with `fromTypeBox`, `toolWireSchema`, and meta schema checks.
This commit is contained in:
@@ -65,8 +65,8 @@ const factory: CustomToolFactory = (pi) => ({
|
||||
name: "batch_rename_preview",
|
||||
label: "Batch Rename Preview",
|
||||
description: "Previews renames and defers commit to resolve",
|
||||
parameters: pi.typebox.Type.Object({
|
||||
files: pi.typebox.Type.Array(pi.typebox.Type.String()),
|
||||
parameters: pi.zod.object({
|
||||
files: pi.zod.array(pi.zod.string()),
|
||||
}),
|
||||
|
||||
async execute(_toolCallId, params) {
|
||||
|
||||
Reference in New Issue
Block a user