@doist/automations-cli 1.14.2 → 1.14.3
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.js +87 -19
- package/dist/index.js.map +3 -3
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -15,7 +15,7 @@ import { fileURLToPath } from "node:url";
|
|
|
15
15
|
// package.json
|
|
16
16
|
var package_default = {
|
|
17
17
|
name: "@doist/automations-cli",
|
|
18
|
-
version: "1.14.
|
|
18
|
+
version: "1.14.3",
|
|
19
19
|
description: "Command-line client for Todoist Automations",
|
|
20
20
|
type: "module",
|
|
21
21
|
bin: {
|
|
@@ -64,12 +64,12 @@ var package_default = {
|
|
|
64
64
|
ai: "7.0.77",
|
|
65
65
|
commander: "15.0.0",
|
|
66
66
|
oauth4webapi: "3.8.8",
|
|
67
|
-
open: "11.0.
|
|
67
|
+
open: "11.0.4"
|
|
68
68
|
},
|
|
69
69
|
devDependencies: {
|
|
70
70
|
"@doist/automations-core": "*",
|
|
71
71
|
"@doist/automations-sdk": "*",
|
|
72
|
-
"@types/node": "24.13.
|
|
72
|
+
"@types/node": "24.13.5",
|
|
73
73
|
"conventional-changelog-conventionalcommits": "9.3.1",
|
|
74
74
|
esbuild: "0.28.2",
|
|
75
75
|
"semantic-release": "25.0.9",
|
|
@@ -226,6 +226,81 @@ var WEBHOOK_SIGNATURE_TOLERANCE_SECONDS = 5 * 60;
|
|
|
226
226
|
var WEBHOOK_SUBSCRIPTION_STATUSES = ["active", "paused", "error"];
|
|
227
227
|
var PROVIDER_TYPES = ["direct", "pubsub", "app-level"];
|
|
228
228
|
|
|
229
|
+
// ../../packages/core/dist/esm/models.js
|
|
230
|
+
var MODEL_CATALOG = {
|
|
231
|
+
"gemini-2.5-flash-lite": {
|
|
232
|
+
provider: "gemini",
|
|
233
|
+
family: "2.5",
|
|
234
|
+
providerModelId: "gemini-2.5-flash-lite"
|
|
235
|
+
},
|
|
236
|
+
"gemini-2.5-flash": {
|
|
237
|
+
provider: "gemini",
|
|
238
|
+
family: "2.5",
|
|
239
|
+
providerModelId: "gemini-2.5-flash"
|
|
240
|
+
},
|
|
241
|
+
"gemini-3.1-pro": {
|
|
242
|
+
provider: "gemini",
|
|
243
|
+
family: "3",
|
|
244
|
+
providerModelId: "gemini-3.1-pro-preview"
|
|
245
|
+
},
|
|
246
|
+
"gemini-3.8-flash": {
|
|
247
|
+
provider: "gemini",
|
|
248
|
+
family: "3",
|
|
249
|
+
providerModelId: "gemini-3.8-flash"
|
|
250
|
+
},
|
|
251
|
+
"claude-opus-4-6": {
|
|
252
|
+
provider: "anthropic",
|
|
253
|
+
family: "4.6",
|
|
254
|
+
providerModelId: "claude-opus-4-6"
|
|
255
|
+
},
|
|
256
|
+
"claude-sonnet-5": {
|
|
257
|
+
provider: "anthropic",
|
|
258
|
+
family: "5",
|
|
259
|
+
providerModelId: "claude-sonnet-5"
|
|
260
|
+
},
|
|
261
|
+
"claude-sonnet-4-6": {
|
|
262
|
+
provider: "anthropic",
|
|
263
|
+
family: "4.6",
|
|
264
|
+
providerModelId: "claude-sonnet-4-6"
|
|
265
|
+
},
|
|
266
|
+
"claude-haiku-4-5": {
|
|
267
|
+
provider: "anthropic",
|
|
268
|
+
family: "4.5",
|
|
269
|
+
providerModelId: "claude-haiku-4-5"
|
|
270
|
+
},
|
|
271
|
+
"deepseek-v4-flash": {
|
|
272
|
+
provider: "openrouter",
|
|
273
|
+
family: "deepseek",
|
|
274
|
+
providerModelId: "deepseek/deepseek-v4-flash-0731"
|
|
275
|
+
},
|
|
276
|
+
"deepseek-v4-pro": {
|
|
277
|
+
provider: "openrouter",
|
|
278
|
+
family: "deepseek",
|
|
279
|
+
providerModelId: "deepseek/deepseek-v4-pro"
|
|
280
|
+
},
|
|
281
|
+
"mimo-v2.5": {
|
|
282
|
+
provider: "openrouter",
|
|
283
|
+
family: "mimo",
|
|
284
|
+
providerModelId: "xiaomi/mimo-v2.5"
|
|
285
|
+
},
|
|
286
|
+
"mimo-v2.5-pro": {
|
|
287
|
+
provider: "openrouter",
|
|
288
|
+
family: "mimo",
|
|
289
|
+
providerModelId: "xiaomi/mimo-v2.5-pro"
|
|
290
|
+
},
|
|
291
|
+
"glm-5.2": {
|
|
292
|
+
provider: "openrouter",
|
|
293
|
+
family: "glm",
|
|
294
|
+
providerModelId: "z-ai/glm-5.2"
|
|
295
|
+
}
|
|
296
|
+
};
|
|
297
|
+
var SUPPORTED_LLM_MODELS = Object.keys(MODEL_CATALOG);
|
|
298
|
+
var SUPPORTED_SEARCH_MODELS = SUPPORTED_LLM_MODELS.filter(supportsWebSearch);
|
|
299
|
+
function supportsWebSearch(modelId) {
|
|
300
|
+
const { provider } = MODEL_CATALOG[modelId];
|
|
301
|
+
return provider === "gemini" || provider === "anthropic";
|
|
302
|
+
}
|
|
303
|
+
|
|
229
304
|
// ../../node_modules/zod/v4/classic/external.js
|
|
230
305
|
var external_exports = {};
|
|
231
306
|
__export(external_exports, {
|
|
@@ -20927,21 +21002,16 @@ var baseStepSchema = external_exports.object({
|
|
|
20927
21002
|
description: "Overrides the global execution policy (timeout and retries) for this step."
|
|
20928
21003
|
})
|
|
20929
21004
|
});
|
|
20930
|
-
var
|
|
20931
|
-
|
|
20932
|
-
|
|
20933
|
-
"
|
|
20934
|
-
|
|
20935
|
-
"claude-sonnet-4-6"
|
|
20936
|
-
];
|
|
20937
|
-
var DEFAULT_LLM_MODEL = "claude-haiku-4-5";
|
|
21005
|
+
var MODEL_TIERS = ["lite", "flash", "pro"];
|
|
21006
|
+
var SUPPORTED_MODEL_REFERENCES = [...MODEL_TIERS, ...SUPPORTED_LLM_MODELS];
|
|
21007
|
+
var modelReferenceSchema = external_exports.enum(SUPPORTED_MODEL_REFERENCES).meta({
|
|
21008
|
+
description: "A stable model tier (lite, flash, pro) or a supported literal model override."
|
|
21009
|
+
});
|
|
20938
21010
|
var llmStepSchema = baseStepSchema.merge(external_exports.object({
|
|
20939
21011
|
type: external_exports.literal("llm"),
|
|
20940
21012
|
prompt: external_exports.string().meta({ description: "The prompt template to be sent to the LLM." }),
|
|
20941
21013
|
outputSchema: stepOutputSchema,
|
|
20942
|
-
model:
|
|
20943
|
-
description: `The specific model to use. Supported models: ${SUPPORTED_LLM_MODELS.join(", ")}.`
|
|
20944
|
-
}),
|
|
21014
|
+
model: modelReferenceSchema,
|
|
20945
21015
|
tools: external_exports.record(external_exports.string(), external_exports.array(external_exports.string())).default({}).meta({
|
|
20946
21016
|
description: 'A mapping from MCP server connector IDs to arrays of their tool names (e.g., {"todoist": ["find-tasks-by-date"], "linear": ["create-issue"]}).'
|
|
20947
21017
|
})
|
|
@@ -20952,9 +21022,7 @@ var codegenStepSchema = baseStepSchema.merge(external_exports.object({
|
|
|
20952
21022
|
description: "The goal or instruction for what the generated code should accomplish."
|
|
20953
21023
|
}),
|
|
20954
21024
|
outputSchema: stepOutputSchema,
|
|
20955
|
-
model:
|
|
20956
|
-
description: `The specific model to use for code generation. Supported models: ${SUPPORTED_LLM_MODELS.join(", ")}.`
|
|
20957
|
-
}),
|
|
21025
|
+
model: modelReferenceSchema,
|
|
20958
21026
|
tools: external_exports.record(external_exports.string(), external_exports.array(external_exports.string())).default({}).meta({
|
|
20959
21027
|
description: 'A mapping from MCP server connector IDs to arrays of their tool names that will be available in the generated code (e.g., {"todoist": ["find-tasks", "update-tasks"]}).'
|
|
20960
21028
|
}),
|
|
@@ -20991,8 +21059,8 @@ var searchStepSchema = baseStepSchema.merge(external_exports.object({
|
|
|
20991
21059
|
description: "The search prompt to execute using web search."
|
|
20992
21060
|
}),
|
|
20993
21061
|
outputSchema: searchStepOutputSchema,
|
|
20994
|
-
model: external_exports.enum(
|
|
20995
|
-
description:
|
|
21062
|
+
model: external_exports.enum([...MODEL_TIERS, ...SUPPORTED_SEARCH_MODELS]).optional().meta({
|
|
21063
|
+
description: "A stable tier (lite, flash, pro) or a supported search-enabled literal model override."
|
|
20996
21064
|
})
|
|
20997
21065
|
}));
|
|
20998
21066
|
var delayStepOutputSchema = external_exports.object({
|