@vm0/cli 9.212.4 → 9.213.1
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/{chunk-DNXUAGZZ.js → chunk-AFQMB63J.js} +42 -4
- package/{chunk-DNXUAGZZ.js.map → chunk-AFQMB63J.js.map} +1 -1
- package/index.js +9 -9
- package/package.json +1 -1
- package/zero.js +146 -56
- package/zero.js.map +1 -1
|
@@ -80403,7 +80403,7 @@ if (DSN) {
|
|
|
80403
80403
|
init2({
|
|
80404
80404
|
dsn: DSN,
|
|
80405
80405
|
environment: process.env.SENTRY_ENVIRONMENT ?? "production",
|
|
80406
|
-
release: "9.
|
|
80406
|
+
release: "9.213.1",
|
|
80407
80407
|
sendDefaultPii: false,
|
|
80408
80408
|
tracesSampleRate: 0,
|
|
80409
80409
|
shutdownTimeout: 500,
|
|
@@ -80422,7 +80422,7 @@ if (DSN) {
|
|
|
80422
80422
|
}
|
|
80423
80423
|
});
|
|
80424
80424
|
setContext("cli", {
|
|
80425
|
-
version: "9.
|
|
80425
|
+
version: "9.213.1",
|
|
80426
80426
|
command: process.argv.slice(2).join(" ")
|
|
80427
80427
|
});
|
|
80428
80428
|
setContext("runtime", {
|
|
@@ -116223,9 +116223,13 @@ var pagedChatMessageBaseSchema = external_exports.object({
|
|
|
116223
116223
|
description: external_exports.string().nullable()
|
|
116224
116224
|
}).optional(),
|
|
116225
116225
|
workflowSnapshot: external_exports.object({
|
|
116226
|
+
id: external_exports.string().uuid().optional(),
|
|
116227
|
+
agentId: external_exports.string().uuid().optional(),
|
|
116226
116228
|
name: external_exports.string(),
|
|
116227
116229
|
displayName: external_exports.string().nullable(),
|
|
116228
|
-
description: external_exports.string().nullable()
|
|
116230
|
+
description: external_exports.string().nullable(),
|
|
116231
|
+
triggerId: external_exports.string().uuid().optional(),
|
|
116232
|
+
triggerBrief: external_exports.string().nullable().optional()
|
|
116229
116233
|
}).optional(),
|
|
116230
116234
|
createdAt: external_exports.string()
|
|
116231
116235
|
});
|
|
@@ -120605,6 +120609,13 @@ var zeroWorkflowDetailResponseSchema = zeroWorkflowSummarySchema.extend({
|
|
|
120605
120609
|
var zeroWorkflowListResponseSchema = external_exports.array(
|
|
120606
120610
|
zeroWorkflowSummarySchema
|
|
120607
120611
|
);
|
|
120612
|
+
var zeroWorkflowTriggerAutomationEntrySchema = external_exports.object({
|
|
120613
|
+
workflow: zeroWorkflowSummarySchema,
|
|
120614
|
+
trigger: zeroWorkflowTriggerSummarySchema
|
|
120615
|
+
});
|
|
120616
|
+
var zeroWorkflowTriggerAutomationListResponseSchema = external_exports.array(
|
|
120617
|
+
zeroWorkflowTriggerAutomationEntrySchema
|
|
120618
|
+
);
|
|
120608
120619
|
var zeroWorkflowCreateRequestSchema = external_exports.object({
|
|
120609
120620
|
agentId: external_exports.string().uuid(),
|
|
120610
120621
|
name: zeroWorkflowNameSchema,
|
|
@@ -120838,6 +120849,17 @@ var zeroWorkflowVisibilityContract = c32.router({
|
|
|
120838
120849
|
var triggerIdParams = external_exports.object({ id: external_exports.string().uuid() });
|
|
120839
120850
|
var chatThreadIdParams = external_exports.object({ threadId: external_exports.string().min(1) });
|
|
120840
120851
|
var zeroWorkflowTriggersContract = c32.router({
|
|
120852
|
+
listWorkspace: {
|
|
120853
|
+
method: "GET",
|
|
120854
|
+
path: "/api/zero/workflow-triggers",
|
|
120855
|
+
headers: authHeadersSchema,
|
|
120856
|
+
responses: {
|
|
120857
|
+
200: zeroWorkflowTriggerAutomationListResponseSchema,
|
|
120858
|
+
401: apiErrorSchema,
|
|
120859
|
+
403: apiErrorSchema
|
|
120860
|
+
},
|
|
120861
|
+
summary: "List the caller's workflow triggers across visible workflows"
|
|
120862
|
+
},
|
|
120841
120863
|
listForChatThread: {
|
|
120842
120864
|
method: "GET",
|
|
120843
120865
|
path: "/api/zero/chat-threads/:threadId/workflow-triggers",
|
|
@@ -121023,6 +121045,16 @@ async function runWorkflow(workflowId) {
|
|
|
121023
121045
|
if (result.status === 200) return result.body;
|
|
121024
121046
|
handleError(result, `Failed to run workflow "${workflowId}"`);
|
|
121025
121047
|
}
|
|
121048
|
+
async function getZeroWorkflowUserConnectors(workflowId) {
|
|
121049
|
+
const config4 = await getClientConfig();
|
|
121050
|
+
const client = initClient(zeroWorkflowUserConnectorsContract, config4);
|
|
121051
|
+
const result = await client.get({ params: { id: workflowId } });
|
|
121052
|
+
if (result.status === 200) return result.body.enabledTypes;
|
|
121053
|
+
handleError(
|
|
121054
|
+
result,
|
|
121055
|
+
`Failed to get connector permissions for zero workflow "${workflowId}"`
|
|
121056
|
+
);
|
|
121057
|
+
}
|
|
121026
121058
|
async function listWorkflowTriggers(workflowId) {
|
|
121027
121059
|
const config4 = await getClientConfig();
|
|
121028
121060
|
const client = initClient(zeroWorkflowTriggersContract, config4);
|
|
@@ -137255,6 +137287,11 @@ var FEATURE_SWITCHES = {
|
|
|
137255
137287
|
enabled: false,
|
|
137256
137288
|
enabledOrgIdHashes: STAFF_ORG_ID_HASHES
|
|
137257
137289
|
},
|
|
137290
|
+
["switchScheduleAutomationToWorkflowTrigger" /* SwitchScheduleAutomationToWorkflowTrigger */]: {
|
|
137291
|
+
maintainer: "ethan@vm0.ai",
|
|
137292
|
+
description: "Replace the /automations schedule list and calendar with a workflow-trigger surface and route new automation setup into triggered workflow creation.",
|
|
137293
|
+
enabled: false
|
|
137294
|
+
},
|
|
137258
137295
|
["goalWorkflows" /* GoalWorkflows */]: {
|
|
137259
137296
|
maintainer: "ethan@vm0.ai",
|
|
137260
137297
|
description: "Enable persistent thread goals, the zero goal CLI, and run-terminal goal continuation for staff orgs.",
|
|
@@ -139725,6 +139762,7 @@ export {
|
|
|
139725
139762
|
deleteWorkflow,
|
|
139726
139763
|
copyWorkflow,
|
|
139727
139764
|
runWorkflow,
|
|
139765
|
+
getZeroWorkflowUserConnectors,
|
|
139728
139766
|
listWorkflowTriggers,
|
|
139729
139767
|
createWorkflowTrigger,
|
|
139730
139768
|
getWorkflowTrigger,
|
|
@@ -139873,4 +139911,4 @@ undici/lib/web/fetch/body.js:
|
|
|
139873
139911
|
undici/lib/web/websocket/frame.js:
|
|
139874
139912
|
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
|
|
139875
139913
|
*/
|
|
139876
|
-
//# sourceMappingURL=chunk-
|
|
139914
|
+
//# sourceMappingURL=chunk-AFQMB63J.js.map
|