@polka-codes/core 0.9.59 → 0.9.60
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/dist/_tsup-dts-rollup.d.ts +3 -8
- package/dist/index.js +3 -4
- package/package.json +1 -1
|
@@ -119,17 +119,12 @@ declare const configSchema: z.ZodObject<{
|
|
|
119
119
|
command: z.ZodString;
|
|
120
120
|
description: z.ZodString;
|
|
121
121
|
}, z.core.$strip>]>>>;
|
|
122
|
-
commands: z.ZodOptional<z.ZodObject<{
|
|
123
|
-
default: z.ZodOptional<z.ZodObject<{
|
|
124
|
-
provider: z.ZodOptional<z.ZodString>;
|
|
125
|
-
model: z.ZodOptional<z.ZodString>;
|
|
126
|
-
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
127
|
-
}, z.core.$strip>>;
|
|
128
|
-
}, z.core.$catchall<z.ZodObject<{
|
|
122
|
+
commands: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
129
123
|
provider: z.ZodOptional<z.ZodString>;
|
|
130
124
|
model: z.ZodOptional<z.ZodString>;
|
|
131
125
|
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
132
|
-
|
|
126
|
+
budget: z.ZodOptional<z.ZodNumber>;
|
|
127
|
+
}, z.core.$strip>>>;
|
|
133
128
|
rules: z.ZodOptional<z.ZodUnion<[z.ZodOptional<z.ZodArray<z.ZodString>>, z.ZodString]>>;
|
|
134
129
|
excludeFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
135
130
|
}, z.core.$strict>;
|
package/dist/index.js
CHANGED
|
@@ -130,7 +130,8 @@ import { z } from "zod";
|
|
|
130
130
|
var providerModelSchema = z.object({
|
|
131
131
|
provider: z.string().optional(),
|
|
132
132
|
model: z.string().optional(),
|
|
133
|
-
parameters: z.record(z.string(), z.any()).optional()
|
|
133
|
+
parameters: z.record(z.string(), z.any()).optional(),
|
|
134
|
+
budget: z.number().positive().optional()
|
|
134
135
|
});
|
|
135
136
|
var configSchema = z.object({
|
|
136
137
|
prices: z.record(
|
|
@@ -175,9 +176,7 @@ var configSchema = z.object({
|
|
|
175
176
|
})
|
|
176
177
|
)
|
|
177
178
|
).optional(),
|
|
178
|
-
commands: z.
|
|
179
|
-
default: providerModelSchema.optional()
|
|
180
|
-
}).catchall(providerModelSchema).optional(),
|
|
179
|
+
commands: z.record(z.string(), providerModelSchema).optional(),
|
|
181
180
|
rules: z.array(z.string()).optional().or(z.string()).optional(),
|
|
182
181
|
excludeFiles: z.array(z.string()).optional()
|
|
183
182
|
}).strict();
|