@oh-my-pi/pi-ai 17.2.6 → 17.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist/types/auth-broker/client.d.ts +7 -0
- package/dist/types/auth-broker/server.d.ts +11 -0
- package/dist/types/auth-broker/wire-schema-resource.d.ts +1 -1
- package/dist/types/auth-broker/wire-schemas.d.ts +4 -2
- package/dist/types/index.d.ts +1 -1
- package/dist/types/providers/anthropic-messages-server-schema.d.ts +695 -255
- package/dist/types/providers/openai-chat-server-schema.d.ts +909 -293
- package/dist/types/providers/openai-responses-server-schema.d.ts +980 -353
- package/dist/types/types.d.ts +8 -5
- package/dist/types/usage.d.ts +152 -46
- package/dist/types/utils/schema/wire.d.ts +1 -1
- package/dist/types/utils/validation.d.ts +24 -0
- package/package.json +5 -5
- package/src/auth-broker/client.ts +2 -1
- package/src/auth-broker/server.ts +2 -1
- package/src/auth-broker/wire-schema-resource.ts +1 -6
- package/src/index.ts +1 -1
- package/src/providers/anthropic-messages-server-schema.ts +1 -1
- package/src/providers/anthropic-messages-server.ts +1 -1
- package/src/providers/cursor.ts +31 -3
- package/src/providers/google-gemini-cli.ts +1 -1
- package/src/providers/openai-chat-server-schema.ts +1 -1
- package/src/providers/openai-chat-server.ts +1 -1
- package/src/providers/openai-codex-responses.ts +1 -1
- package/src/providers/openai-responses-server-schema.ts +1 -1
- package/src/providers/openai-responses-server.ts +1 -1
- package/src/types.ts +9 -6
- package/src/usage.ts +1 -1
- package/src/utils/schema/wire.ts +1 -1
- package/src/utils/validation.ts +2 -1
package/src/utils/validation.ts
CHANGED
|
@@ -22,8 +22,9 @@
|
|
|
22
22
|
* keeps the schema in charge of acceptance — we never invent values, only
|
|
23
23
|
* massage shapes the LLM almost got right.
|
|
24
24
|
*/
|
|
25
|
+
|
|
26
|
+
import { type Type, type } from "@oh-my-pi/omptype";
|
|
25
27
|
import { structuredCloneJSON } from "@oh-my-pi/pi-utils";
|
|
26
|
-
import { type Type, type } from "arktype";
|
|
27
28
|
import type { ZodType } from "zod/v4";
|
|
28
29
|
import type { $ZodIssue as ZodIssue } from "zod/v4/core";
|
|
29
30
|
import * as AIError from "../error";
|