codemie-sdk 0.1.283 → 0.1.285
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/index.cjs +15 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +56 -18
- package/dist/index.d.ts +56 -18
- package/dist/index.js +15 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -198,11 +198,24 @@ var AssistantCreateParamsSchema = import_zod.z.object({
|
|
|
198
198
|
description: import_zod.z.string().optional(),
|
|
199
199
|
enabled: import_zod.z.boolean(),
|
|
200
200
|
config: import_zod.z.object({
|
|
201
|
-
|
|
201
|
+
url: import_zod.z.string().optional(),
|
|
202
|
+
command: import_zod.z.string().optional(),
|
|
202
203
|
args: import_zod.z.array(import_zod.z.string()).optional(),
|
|
203
204
|
env: import_zod.z.record(import_zod.z.unknown()).optional(),
|
|
204
205
|
auth_token: import_zod.z.string().optional()
|
|
205
|
-
}).optional()
|
|
206
|
+
}).optional().refine(
|
|
207
|
+
(config) => {
|
|
208
|
+
if (!config) {
|
|
209
|
+
return true;
|
|
210
|
+
}
|
|
211
|
+
const hasUrl = !!config.url;
|
|
212
|
+
const hasCommand = !!config.command;
|
|
213
|
+
return hasUrl !== hasCommand;
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
message: "Either 'url' or 'command' must be provided in config, but not both"
|
|
217
|
+
}
|
|
218
|
+
),
|
|
206
219
|
mcp_connect_url: import_zod.z.string().optional(),
|
|
207
220
|
tools_tokens_size_limit: import_zod.z.number().optional(),
|
|
208
221
|
command: import_zod.z.string().optional(),
|