@opencode-ai/ai 0.0.0-next-16134 → 0.0.0-next-16147

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.
Files changed (32) hide show
  1. package/README.md +1 -1
  2. package/dist/protocols/index.d.ts +1 -0
  3. package/dist/protocols/index.js +1 -0
  4. package/dist/protocols/open-responses.d.ts +613 -0
  5. package/dist/protocols/open-responses.js +756 -0
  6. package/dist/protocols/openai-chat.js +6 -7
  7. package/dist/protocols/openai-compatible-responses.d.ts +9 -21
  8. package/dist/protocols/openai-compatible-responses.js +8 -9
  9. package/dist/protocols/openai-responses.d.ts +55 -77
  10. package/dist/protocols/openai-responses.js +59 -771
  11. package/dist/protocols/utils/open-responses-options.d.ts +22 -0
  12. package/dist/protocols/utils/open-responses-options.js +42 -0
  13. package/dist/protocols/utils/openai-options.d.ts +8 -16
  14. package/dist/protocols/utils/openai-options.js +9 -59
  15. package/dist/protocols/utils/tool-schema.d.ts +1 -0
  16. package/dist/protocols/utils/tool-schema.js +2 -0
  17. package/dist/providers/anthropic-compatible.d.ts +2 -1
  18. package/dist/providers/anthropic-compatible.js +1 -0
  19. package/dist/providers/anthropic.d.ts +2 -1
  20. package/dist/providers/anthropic.js +1 -0
  21. package/dist/providers/azure.d.ts +4 -4
  22. package/dist/providers/github-copilot.d.ts +4 -4
  23. package/dist/providers/google-vertex-responses.d.ts +6 -18
  24. package/dist/providers/google-vertex-responses.js +1 -0
  25. package/dist/providers/open-responses-options.d.ts +17 -0
  26. package/dist/providers/open-responses-options.js +1 -0
  27. package/dist/providers/openai-compatible-responses.d.ts +10 -20
  28. package/dist/providers/openai-options.d.ts +3 -12
  29. package/dist/providers/openai.d.ts +8 -8
  30. package/dist/providers/xai.d.ts +4 -4
  31. package/dist/route/protocol.d.ts +2 -1
  32. package/package.json +3 -3
@@ -90,7 +90,7 @@ export declare const routes: (import("../route").Route<{
90
90
  readonly content: import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
91
91
  readonly type: import("effect/Schema").tag<"input_text">;
92
92
  readonly text: import("effect/Schema").String;
93
- }>, import("effect/Schema").Struct<{
93
+ }>, import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
94
94
  readonly type: import("effect/Schema").tag<"input_image">;
95
95
  readonly image_url: import("effect/Schema").String;
96
96
  }>, import("effect/Schema").Struct<{
@@ -98,7 +98,7 @@ export declare const routes: (import("../route").Route<{
98
98
  readonly filename: import("effect/Schema").String;
99
99
  readonly file_data: import("effect/Schema").String;
100
100
  readonly mime_type: import("effect/Schema").optional<import("effect/Schema").String>;
101
- }>]>>;
101
+ }>]>]>>;
102
102
  }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
103
103
  readonly role: import("effect/Schema").tag<"assistant">;
104
104
  readonly content: import("effect/Schema").$Array<import("effect/Schema").Struct<{
@@ -133,7 +133,7 @@ export declare const routes: (import("../route").Route<{
133
133
  } | undefined;
134
134
  readonly reasoning?: {
135
135
  readonly effort?: string | undefined;
136
- readonly summary?: "auto" | undefined;
136
+ readonly summary?: "auto" | "concise" | "detailed" | undefined;
137
137
  } | undefined;
138
138
  readonly tools?: readonly ({
139
139
  readonly type: "function";
@@ -162,9 +162,9 @@ export declare const routes: (import("../route").Route<{
162
162
  readonly type: import("effect/Schema").tag<"image_generation">;
163
163
  }, "Type"> | undefined;
164
164
  readonly top_p?: number | undefined;
165
- readonly store?: boolean | undefined;
166
165
  readonly include?: readonly ("file_search_call.results" | "web_search_call.results" | "web_search_call.action.sources" | "message.input_image.image_url" | "computer_call_output.output.image_url" | "code_interpreter_call.outputs" | "reasoning.encrypted_content" | "message.output_text.logprobs")[] | undefined;
167
166
  readonly instructions?: string | undefined;
167
+ readonly store?: boolean | undefined;
168
168
  readonly service_tier?: "auto" | "default" | "flex" | "priority" | undefined;
169
169
  readonly prompt_cache_key?: string | undefined;
170
170
  readonly max_output_tokens?: number | undefined;
@@ -11,7 +11,8 @@ import type { LLMError, LLMEvent, LLMRequest, ProtocolID } from "../schema";
11
11
  * Examples:
12
12
  *
13
13
  * - `OpenAIChat.protocol` — chat completions style
14
- * - `OpenAIResponses.protocol` — responses API
14
+ * - `OpenResponses.protocol` — provider-neutral Responses API baseline
15
+ * - `OpenAIResponses.protocol` — OpenAI extensions to that baseline
15
16
  * - `AnthropicMessages.protocol` — messages API with content blocks
16
17
  * - `Gemini.protocol` — generateContent
17
18
  * - `BedrockConverse.protocol` — Converse with binary event-stream framing
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
- "version": "0.0.0-next-16134",
3
+ "version": "0.0.0-next-16147",
4
4
  "name": "@opencode-ai/ai",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -26,7 +26,7 @@
26
26
  "devDependencies": {
27
27
  "@clack/prompts": "1.0.0-alpha.1",
28
28
  "@effect/platform-node": "4.0.0-beta.98",
29
- "@opencode-ai/http-recorder": "0.0.0-next-16134",
29
+ "@opencode-ai/http-recorder": "0.0.0-next-16147",
30
30
  "@tsconfig/bun": "1.0.9",
31
31
  "@types/bun": "1.3.13",
32
32
  "@typescript/native-preview": "7.0.0-dev.20251207.1",
@@ -35,7 +35,7 @@
35
35
  "dependencies": {
36
36
  "@smithy/eventstream-codec": "4.2.14",
37
37
  "@smithy/util-utf8": "4.2.2",
38
- "@opencode-ai/schema": "0.0.0-next-16134",
38
+ "@opencode-ai/schema": "0.0.0-next-16147",
39
39
  "aws4fetch": "1.0.20",
40
40
  "effect": "4.0.0-beta.98",
41
41
  "google-auth-library": "10.5.0"