opencode-cluade-auth 1.0.5 → 1.0.6

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.
@@ -134,10 +134,20 @@ function buildToolResponseJsonSchema(tools) {
134
134
  },
135
135
  }));
136
136
  return {
137
+ type: "object",
138
+ additionalProperties: false,
139
+ required: ["type"],
140
+ properties: {
141
+ type: { type: "string", enum: ["final", "tool-calls"] },
142
+ content: { type: "string" },
143
+ tool_calls: {
144
+ type: "array",
145
+ minItems: 1,
146
+ items: toolCallVariants.length === 1 ? toolCallVariants[0] : { oneOf: toolCallVariants },
147
+ },
148
+ },
137
149
  oneOf: [
138
150
  {
139
- type: "object",
140
- additionalProperties: false,
141
151
  required: ["type", "content"],
142
152
  properties: {
143
153
  type: { const: "final" },
@@ -145,8 +155,6 @@ function buildToolResponseJsonSchema(tools) {
145
155
  },
146
156
  },
147
157
  {
148
- type: "object",
149
- additionalProperties: false,
150
158
  required: ["type", "tool_calls"],
151
159
  properties: {
152
160
  type: { const: "tool-calls" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-cluade-auth",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Claude Code CLI-backed Anthropic auth plugin for OpenCode.",
5
5
  "license": "MIT",
6
6
  "type": "module",