@polka-codes/core 0.9.67 → 0.9.69

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.
@@ -88,7 +88,7 @@ declare function computeRateLimitBackoffSeconds(count: number, baseSeconds?: num
88
88
  export { computeRateLimitBackoffSeconds }
89
89
  export { computeRateLimitBackoffSeconds as computeRateLimitBackoffSeconds_alias_1 }
90
90
 
91
- declare type Config = z.infer<typeof configSchema>;
91
+ declare type Config = NonNullable<z.infer<typeof configSchema>>;
92
92
  export { Config }
93
93
  export { Config as Config_alias_1 }
94
94
 
@@ -96,7 +96,7 @@ declare type ConfigRule = z.infer<typeof ruleSchema>;
96
96
  export { ConfigRule }
97
97
  export { ConfigRule as ConfigRule_alias_1 }
98
98
 
99
- declare const configSchema: z.ZodObject<{
99
+ declare const configSchema: z.ZodOptional<z.ZodNullable<z.ZodObject<{
100
100
  prices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodObject<{
101
101
  inputPrice: z.ZodOptional<z.ZodNumber>;
102
102
  outputPrice: z.ZodOptional<z.ZodNumber>;
@@ -149,7 +149,7 @@ declare const configSchema: z.ZodObject<{
149
149
  branch: z.ZodOptional<z.ZodString>;
150
150
  }, z.core.$strict>]>>>, z.ZodString]>>;
151
151
  excludeFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
152
- }, z.core.$strict>;
152
+ }, z.core.$strict>>>;
153
153
  export { configSchema }
154
154
  export { configSchema as configSchema_alias_1 }
155
155
 
@@ -1387,7 +1387,7 @@ export { ToolResponseResult as ToolResponseResult_alias_1 }
1387
1387
 
1388
1388
  declare type ToolResponseResultMedia = {
1389
1389
  type: 'media';
1390
- base64Data: string;
1390
+ data: string;
1391
1391
  mediaType: string;
1392
1392
  url: string;
1393
1393
  };
package/dist/index.js CHANGED
@@ -194,7 +194,7 @@ var configSchema = z.object({
194
194
  }).optional(),
195
195
  rules: z.array(ruleSchema).optional().or(z.string()).optional(),
196
196
  excludeFiles: z.array(z.string()).optional()
197
- }).strict();
197
+ }).strict().nullish();
198
198
 
199
199
  // src/tool.ts
200
200
  var ToolResponseType = /* @__PURE__ */ ((ToolResponseType2) => {
@@ -761,7 +761,7 @@ var handler8 = async (provider, args) => {
761
761
  {
762
762
  type: "media",
763
763
  url,
764
- base64Data: filePart.base64Data,
764
+ data: filePart.base64Data,
765
765
  mediaType: filePart.mediaType
766
766
  }
767
767
  ]
@@ -1823,11 +1823,6 @@ var agentWorkflow = async (input, { step, tools, logger }) => {
1823
1823
  value: `Tool '${toolCall.toolName}' not found.`
1824
1824
  }
1825
1825
  });
1826
- toolResults.push({
1827
- toolCallId: toolCall.toolCallId,
1828
- toolName: toolCall.toolName,
1829
- output: `Error: Tool '${toolCall.toolName}' not found.`
1830
- });
1831
1826
  continue;
1832
1827
  }
1833
1828
  await event(`event-tool-use-${toolCall.toolName}-${toolCall.toolCallId}`, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polka-codes/core",
3
- "version": "0.9.67",
3
+ "version": "0.9.69",
4
4
  "license": "AGPL-3.0",
5
5
  "author": "github@polka.codes",
6
6
  "type": "module",
@@ -18,9 +18,9 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "@ai-sdk/provider": "^2.0.0",
21
- "@ai-sdk/provider-utils": "^3.0.15",
22
- "ai": "^5.0.97",
23
- "yaml": "^2.8.1",
24
- "zod": "^4.1.12"
21
+ "@ai-sdk/provider-utils": "^3.0.18",
22
+ "ai": "^5.0.106",
23
+ "yaml": "^2.8.2",
24
+ "zod": "^4.1.13"
25
25
  }
26
26
  }