@opencode/ai 0.0.0-dev-21803 → 0.0.0-dev-21812

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 (47) hide show
  1. package/dist/protocols/alibaba-chat.d.ts +6 -0
  2. package/dist/protocols/alibaba-messages.d.ts +1 -0
  3. package/dist/protocols/anthropic-messages.d.ts +5 -1
  4. package/dist/protocols/anthropic-messages.js +7 -0
  5. package/dist/protocols/meta-messages.d.ts +1 -0
  6. package/dist/protocols/openai-chat.d.ts +45 -0
  7. package/dist/protocols/openai-chat.js +19 -13
  8. package/dist/protocols/openai-compatible-chat.d.ts +7 -0
  9. package/dist/protocols/openai-responses.d.ts +40 -24
  10. package/dist/protocols/openai-responses.js +27 -2
  11. package/dist/protocols/venice-chat.d.ts +6 -0
  12. package/dist/protocols/xai-responses.d.ts +1 -0
  13. package/dist/protocols/xai-responses.js +13 -2
  14. package/dist/protocols/zai-chat.d.ts +7 -0
  15. package/dist/protocols/zai-messages.d.ts +1 -0
  16. package/dist/provider-error.js +1 -1
  17. package/dist/providers/alibaba.d.ts +7 -0
  18. package/dist/providers/amazon-bedrock-mantle.d.ts +139 -131
  19. package/dist/providers/anthropic-compatible.d.ts +1 -0
  20. package/dist/providers/anthropic.d.ts +1 -0
  21. package/dist/providers/azure.d.ts +19 -8
  22. package/dist/providers/baseten.d.ts +14 -0
  23. package/dist/providers/cerebras.d.ts +14 -0
  24. package/dist/providers/cloudflare-ai-gateway.d.ts +28 -8
  25. package/dist/providers/cloudflare-workers-ai.d.ts +14 -0
  26. package/dist/providers/cohere.d.ts +14 -0
  27. package/dist/providers/deepinfra.d.ts +14 -0
  28. package/dist/providers/deepseek.d.ts +14 -0
  29. package/dist/providers/digitalocean.d.ts +21 -0
  30. package/dist/providers/fireworks.d.ts +14 -0
  31. package/dist/providers/google-vertex-chat.d.ts +7 -0
  32. package/dist/providers/google-vertex-messages.d.ts +1 -0
  33. package/dist/providers/groq.d.ts +14 -4
  34. package/dist/providers/groq.js +0 -6
  35. package/dist/providers/meta.d.ts +139 -131
  36. package/dist/providers/minimax.d.ts +8 -0
  37. package/dist/providers/moonshot.d.ts +8 -0
  38. package/dist/providers/openai-compatible.d.ts +7 -0
  39. package/dist/providers/openai-options.d.ts +3 -1
  40. package/dist/providers/openai.d.ts +13 -4
  41. package/dist/providers/openrouter.d.ts +26 -0
  42. package/dist/providers/togetherai.d.ts +14 -0
  43. package/dist/providers/venice.d.ts +6 -0
  44. package/dist/providers/xai.d.ts +7 -0
  45. package/dist/providers/zai-coding-plan.d.ts +8 -0
  46. package/dist/providers/zai.d.ts +7 -0
  47. package/package.json +3 -3
@@ -45,6 +45,12 @@ export declare const routes: Route<{
45
45
  readonly store?: boolean | undefined;
46
46
  readonly prompt_cache_key?: string | undefined;
47
47
  readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
48
+ readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
49
+ readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
50
+ readonly metadata?: {
51
+ readonly [x: string]: string;
52
+ } | undefined;
53
+ readonly safety_identifier?: string | undefined;
48
54
  readonly tool_stream?: boolean | undefined;
49
55
  readonly max_completion_tokens?: number | undefined;
50
56
  readonly max_tokens?: number | undefined;
@@ -144,6 +144,13 @@ export declare const routes: (Route<unknown, import("../protocols/open-responses
144
144
  readonly store?: boolean | undefined;
145
145
  readonly prompt_cache_key?: string | undefined;
146
146
  readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
147
+ readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
148
+ readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
149
+ readonly parallel_tool_calls?: boolean | undefined;
150
+ readonly metadata?: {
151
+ readonly [x: string]: string;
152
+ } | undefined;
153
+ readonly safety_identifier?: string | undefined;
147
154
  readonly tool_stream?: boolean | undefined;
148
155
  readonly max_completion_tokens?: number | undefined;
149
156
  readonly max_tokens?: number | undefined;
@@ -321,6 +321,13 @@ export declare const routes: (Route<{
321
321
  readonly store?: boolean | undefined;
322
322
  readonly prompt_cache_key?: string | undefined;
323
323
  readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
324
+ readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
325
+ readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
326
+ readonly parallel_tool_calls?: boolean | undefined;
327
+ readonly metadata?: {
328
+ readonly [x: string]: string;
329
+ } | undefined;
330
+ readonly safety_identifier?: string | undefined;
324
331
  readonly tool_stream?: boolean | undefined;
325
332
  readonly max_completion_tokens?: number | undefined;
326
333
  readonly max_tokens?: number | undefined;
@@ -630,6 +637,7 @@ export declare const routes: (Route<{
630
637
  readonly user_id?: string | null | undefined;
631
638
  } | undefined;
632
639
  readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "standard_only"> | undefined;
640
+ readonly speed?: import("../schema/options.js").OpenString<"fast" | "standard"> | undefined;
633
641
  readonly thinking?: {
634
642
  readonly type: import("../schema/options.js").OpenString<"adaptive" | "disabled" | "enabled">;
635
643
  } | undefined;
@@ -136,6 +136,13 @@ export declare const routes: Route<{
136
136
  readonly store?: boolean | undefined;
137
137
  readonly prompt_cache_key?: string | undefined;
138
138
  readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
139
+ readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
140
+ readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
141
+ readonly parallel_tool_calls?: boolean | undefined;
142
+ readonly metadata?: {
143
+ readonly [x: string]: string;
144
+ } | undefined;
145
+ readonly safety_identifier?: string | undefined;
139
146
  readonly tool_stream?: boolean | undefined;
140
147
  readonly max_completion_tokens?: number | undefined;
141
148
  readonly max_tokens?: number | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
- "version": "0.0.0-dev-21803",
3
+ "version": "0.0.0-dev-21812",
4
4
  "name": "@opencode/ai",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -35,7 +35,7 @@
35
35
  "devDependencies": {
36
36
  "@clack/prompts": "1.0.0-alpha.1",
37
37
  "@effect/platform-node": "4.0.1",
38
- "@opencode/http-recorder": "0.0.0-dev-21803",
38
+ "@opencode/http-recorder": "0.0.0-dev-21812",
39
39
  "@tsconfig/bun": "1.0.9",
40
40
  "@types/bun": "1.4.3",
41
41
  "@typescript/native": "npm:typescript@7.1.0-beta",
@@ -45,7 +45,7 @@
45
45
  "@aws-sdk/credential-providers": "3.1057.0",
46
46
  "@smithy/eventstream-codec": "4.2.14",
47
47
  "@smithy/util-utf8": "4.2.2",
48
- "@opencode/schema": "0.0.0-dev-21803",
48
+ "@opencode/schema": "0.0.0-dev-21812",
49
49
  "aws4fetch": "1.0.20",
50
50
  "effect": "4.0.1",
51
51
  "google-auth-library": "10.5.0"