@vm0/cli 9.199.6 → 9.200.0
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-YMC5XY7J.js → chunk-RHSNJ3DN.js} +34 -11
- package/{chunk-YMC5XY7J.js.map → chunk-RHSNJ3DN.js.map} +1 -1
- package/index.js +9 -9
- package/package.json +1 -1
- package/zero.js +23 -8
- package/zero.js.map +1 -1
|
@@ -72936,7 +72936,7 @@ if (DSN) {
|
|
|
72936
72936
|
init2({
|
|
72937
72937
|
dsn: DSN,
|
|
72938
72938
|
environment: process.env.SENTRY_ENVIRONMENT ?? "production",
|
|
72939
|
-
release: "9.
|
|
72939
|
+
release: "9.200.0",
|
|
72940
72940
|
sendDefaultPii: false,
|
|
72941
72941
|
tracesSampleRate: 0,
|
|
72942
72942
|
shutdownTimeout: 500,
|
|
@@ -72955,7 +72955,7 @@ if (DSN) {
|
|
|
72955
72955
|
}
|
|
72956
72956
|
});
|
|
72957
72957
|
setContext("cli", {
|
|
72958
|
-
version: "9.
|
|
72958
|
+
version: "9.200.0",
|
|
72959
72959
|
command: process.argv.slice(2).join(" ")
|
|
72960
72960
|
});
|
|
72961
72961
|
setContext("runtime", {
|
|
@@ -112669,20 +112669,27 @@ init_esm_shims();
|
|
|
112669
112669
|
init_esm_shims();
|
|
112670
112670
|
var c21 = initContract();
|
|
112671
112671
|
var zeroGoalStatusSchema = external_exports.enum(["active", "blocked", "complete"]);
|
|
112672
|
+
var zeroGoalStopReasonSchema = external_exports.enum(["paused", "blocked", "failed"]);
|
|
112672
112673
|
var zeroGoalPreferenceSchema = external_exports.object({
|
|
112673
112674
|
version: external_exports.literal(1),
|
|
112674
112675
|
objective: external_exports.string().min(1),
|
|
112675
|
-
tokenBudget: external_exports.number().int().positive().optional()
|
|
112676
|
+
tokenBudget: external_exports.number().int().positive().optional(),
|
|
112677
|
+
stopReason: zeroGoalStopReasonSchema.optional()
|
|
112676
112678
|
});
|
|
112677
112679
|
var zeroGoalCreateRequestSchema = external_exports.object({
|
|
112678
112680
|
objective: external_exports.string().min(1).max(2e4),
|
|
112679
112681
|
tokenBudget: external_exports.number().int().positive().optional()
|
|
112680
112682
|
});
|
|
112683
|
+
var zeroGoalEditRequestSchema = external_exports.object({
|
|
112684
|
+
objective: external_exports.string().min(1).max(2e4).optional(),
|
|
112685
|
+
tokenBudget: external_exports.number().int().positive().optional()
|
|
112686
|
+
});
|
|
112681
112687
|
var zeroGoalResponseSchema = external_exports.object({
|
|
112682
112688
|
active: external_exports.boolean(),
|
|
112683
112689
|
objective: external_exports.string(),
|
|
112684
112690
|
status: zeroGoalStatusSchema,
|
|
112685
|
-
tokenBudget: external_exports.number().int().positive().optional()
|
|
112691
|
+
tokenBudget: external_exports.number().int().positive().optional(),
|
|
112692
|
+
stopReason: zeroGoalStopReasonSchema.optional()
|
|
112686
112693
|
});
|
|
112687
112694
|
var zeroGoalsContract = c21.router({
|
|
112688
112695
|
create: {
|
|
@@ -112699,6 +112706,20 @@ var zeroGoalsContract = c21.router({
|
|
|
112699
112706
|
},
|
|
112700
112707
|
summary: "Create a persistent goal for the current thread"
|
|
112701
112708
|
},
|
|
112709
|
+
edit: {
|
|
112710
|
+
method: "PATCH",
|
|
112711
|
+
path: "/api/zero/goal",
|
|
112712
|
+
headers: authHeadersSchema,
|
|
112713
|
+
body: zeroGoalEditRequestSchema,
|
|
112714
|
+
responses: {
|
|
112715
|
+
200: zeroGoalResponseSchema,
|
|
112716
|
+
400: apiErrorSchema,
|
|
112717
|
+
401: apiErrorSchema,
|
|
112718
|
+
403: apiErrorSchema,
|
|
112719
|
+
404: apiErrorSchema
|
|
112720
|
+
},
|
|
112721
|
+
summary: "Edit the current thread goal's objective or token budget"
|
|
112722
|
+
},
|
|
112702
112723
|
get: {
|
|
112703
112724
|
method: "GET",
|
|
112704
112725
|
path: "/api/zero/goal",
|
|
@@ -112761,6 +112782,13 @@ async function createGoal(body) {
|
|
|
112761
112782
|
if (result.status === 201) return result.body;
|
|
112762
112783
|
handleError(result, "Failed to create goal");
|
|
112763
112784
|
}
|
|
112785
|
+
async function editGoal(body) {
|
|
112786
|
+
const config4 = await getClientConfig();
|
|
112787
|
+
const client = initClient(zeroGoalsContract, config4);
|
|
112788
|
+
const result = await client.edit({ body });
|
|
112789
|
+
if (result.status === 200) return result.body;
|
|
112790
|
+
handleError(result, "Failed to edit goal");
|
|
112791
|
+
}
|
|
112764
112792
|
async function getGoal() {
|
|
112765
112793
|
const config4 = await getClientConfig();
|
|
112766
112794
|
const client = initClient(zeroGoalsContract, config4);
|
|
@@ -164839,12 +164867,6 @@ var FEATURE_SWITCHES = {
|
|
|
164839
164867
|
enabled: false,
|
|
164840
164868
|
enabledOrgIdHashes: STAFF_ORG_ID_HASHES
|
|
164841
164869
|
},
|
|
164842
|
-
["connectorReconnectReasons" /* ConnectorReconnectReasons */]: {
|
|
164843
|
-
maintainer: "liangyou@vm0.ai",
|
|
164844
|
-
description: "Show explanatory tooltip help for connectors that need reconnect.",
|
|
164845
|
-
enabled: false,
|
|
164846
|
-
enabledOrgIdHashes: STAFF_ORG_ID_HASHES
|
|
164847
|
-
},
|
|
164848
164870
|
["automationWebhookTriggers" /* AutomationWebhookTriggers */]: {
|
|
164849
164871
|
maintainer: "lancy@vm0.ai",
|
|
164850
164872
|
description: "Allow webhook triggers on automations: creating them (API + CLI sugar), the inbound dispatch endpoint, and secret rotation. Webhook triggers are a NEW capability on top of the schedule-parity automation surface; while off, automations are feature-equivalent to legacy schedules (time triggers only).",
|
|
@@ -166469,6 +166491,7 @@ export {
|
|
|
166469
166491
|
detachWorkflowFromAgent,
|
|
166470
166492
|
setWorkflowAgents,
|
|
166471
166493
|
createGoal,
|
|
166494
|
+
editGoal,
|
|
166472
166495
|
getGoal,
|
|
166473
166496
|
completeGoal,
|
|
166474
166497
|
blockGoal,
|
|
@@ -166610,4 +166633,4 @@ undici/lib/web/fetch/body.js:
|
|
|
166610
166633
|
undici/lib/web/websocket/frame.js:
|
|
166611
166634
|
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
|
|
166612
166635
|
*/
|
|
166613
|
-
//# sourceMappingURL=chunk-
|
|
166636
|
+
//# sourceMappingURL=chunk-RHSNJ3DN.js.map
|