@vm0/cli 9.275.1 → 9.276.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.
Files changed (103) hide show
  1. package/{agent-FSN2GJMD.js → agent-W7PHJUVB.js} +5 -5
  2. package/{banking-DQZ2AEIW.js → banking-O7T5PBM3.js} +4 -4
  3. package/{browser-NETPPDQ6.js → browser-ZG7ZF46W.js} +4 -4
  4. package/{chat-A6SB23VM.js → chat-HJMQOQ4I.js} +5 -5
  5. package/{chunk-H6QAMEXS.js → chunk-3UTY4STV.js} +3 -3
  6. package/{chunk-6IZATZTU.js → chunk-3WAJCD24.js} +62 -11
  7. package/chunk-3WAJCD24.js.map +1 -0
  8. package/{chunk-IDXPNDWE.js → chunk-7L3QU2TW.js} +2 -2
  9. package/{chunk-HXI2NYPO.js → chunk-BINP2SIK.js} +2 -2
  10. package/chunk-BINP2SIK.js.map +1 -0
  11. package/{chunk-4GU5ZKEO.js → chunk-BWCUF4IV.js} +2 -2
  12. package/{chunk-6IN6OKYZ.js → chunk-DNRMAFE7.js} +3 -3
  13. package/{chunk-GRD57BA4.js → chunk-L3GNJDD6.js} +2 -2
  14. package/{chunk-G45XGQ25.js → chunk-TGZRWEM5.js} +6 -1
  15. package/chunk-TGZRWEM5.js.map +1 -0
  16. package/{chunk-6RWOJ4OL.js → chunk-VF6NEP63.js} +2 -2
  17. package/{computer-use-LBGMJU3E.js → computer-use-6QJW3BGZ.js} +4 -4
  18. package/{connector-YSCD5UKK.js → connector-JZ2LKHX6.js} +6 -6
  19. package/{credit-3RU2G5JG.js → credit-E54GPGW4.js} +5 -5
  20. package/{developer-support-NIVYOD5A.js → developer-support-HEKO46UO.js} +4 -4
  21. package/{doctor-EAOYULTS.js → doctor-5T7XB6F7.js} +5 -5
  22. package/{feishu-FBIELF7H.js → feishu-PSHSAE4U.js} +4 -4
  23. package/{finance-44VXLKJI.js → finance-SK24ZFH5.js} +4 -4
  24. package/{generate-L6ZOETPQ.js → generate-PWII6LXX.js} +6 -6
  25. package/{github-BGFLAMOO.js → github-BXDFR3GI.js} +4 -4
  26. package/{goal-XG7LFY7I.js → goal-7TZI6AXS.js} +4 -4
  27. package/{host-DHYMUPTC.js → host-5T4TVL7F.js} +4 -4
  28. package/{logs-GVWAF6MU.js → logs-55XWHCPG.js} +6 -6
  29. package/{mail-IVJEYHBZ.js → mail-OE6L2CHN.js} +6 -6
  30. package/{maps-TZNW7NNW.js → maps-L6C46N3N.js} +4 -4
  31. package/{model-HDI53F4S.js → model-6GXITD4Q.js} +5 -5
  32. package/{model-provider-PMT5UZFW.js → model-provider-UKVWA22U.js} +5 -5
  33. package/{org-5TZVP6FZ.js → org-UYC3RD7F.js} +4 -4
  34. package/package.json +1 -1
  35. package/{people-search-YTGBNW6D.js → people-search-ZCQGVJFI.js} +4 -4
  36. package/{phone-2WRBOJKP.js → phone-ATTTOOE7.js} +4 -4
  37. package/{preference-JG75NHDC.js → preference-KOCJ2LAB.js} +4 -4
  38. package/{recognize-323KRKAP.js → recognize-2HRC7AQW.js} +4 -4
  39. package/{resource-7T44AGQ7.js → resource-IBNZRCB7.js} +4 -4
  40. package/{scrape-C6QBZD3G.js → scrape-MJYF5WW6.js} +4 -4
  41. package/{search-DJHCQ44L.js → search-AJRMWA6A.js} +6 -6
  42. package/{secret-PHORSWLH.js → secret-C6BJFOWU.js} +4 -4
  43. package/{slack-R2R3PAY7.js → slack-5VGLSWXM.js} +4 -4
  44. package/{teams-AIKZ54LZ.js → teams-XASRTN32.js} +4 -4
  45. package/{telegram-Q7X3VUA7.js → telegram-2HS7B3CT.js} +4 -4
  46. package/{upgrade-CUG54HZN.js → upgrade-X3HGDTJP.js} +3 -3
  47. package/{variable-ULQTVWCG.js → variable-OGD73T2Q.js} +4 -4
  48. package/{video-WXGC2GRR.js → video-PUUGUN6K.js} +3 -3
  49. package/{weather-KO5ARUSQ.js → weather-LFI7A6PF.js} +4 -4
  50. package/{web-STMNCWSR.js → web-44A7VBPM.js} +4 -4
  51. package/{web-search-YHBKDKXE.js → web-search-OERDKWJY.js} +4 -4
  52. package/{whoami-FIJ5A7WN.js → whoami-E3272IN4.js} +5 -5
  53. package/{workflow-6ZJ5XJCV.js → workflow-F6EZ27SX.js} +5 -5
  54. package/zero.js +44 -44
  55. package/chunk-6IZATZTU.js.map +0 -1
  56. package/chunk-G45XGQ25.js.map +0 -1
  57. package/chunk-HXI2NYPO.js.map +0 -1
  58. /package/{agent-FSN2GJMD.js.map → agent-W7PHJUVB.js.map} +0 -0
  59. /package/{banking-DQZ2AEIW.js.map → banking-O7T5PBM3.js.map} +0 -0
  60. /package/{browser-NETPPDQ6.js.map → browser-ZG7ZF46W.js.map} +0 -0
  61. /package/{chat-A6SB23VM.js.map → chat-HJMQOQ4I.js.map} +0 -0
  62. /package/{chunk-H6QAMEXS.js.map → chunk-3UTY4STV.js.map} +0 -0
  63. /package/{chunk-IDXPNDWE.js.map → chunk-7L3QU2TW.js.map} +0 -0
  64. /package/{chunk-4GU5ZKEO.js.map → chunk-BWCUF4IV.js.map} +0 -0
  65. /package/{chunk-6IN6OKYZ.js.map → chunk-DNRMAFE7.js.map} +0 -0
  66. /package/{chunk-GRD57BA4.js.map → chunk-L3GNJDD6.js.map} +0 -0
  67. /package/{chunk-6RWOJ4OL.js.map → chunk-VF6NEP63.js.map} +0 -0
  68. /package/{computer-use-LBGMJU3E.js.map → computer-use-6QJW3BGZ.js.map} +0 -0
  69. /package/{connector-YSCD5UKK.js.map → connector-JZ2LKHX6.js.map} +0 -0
  70. /package/{credit-3RU2G5JG.js.map → credit-E54GPGW4.js.map} +0 -0
  71. /package/{developer-support-NIVYOD5A.js.map → developer-support-HEKO46UO.js.map} +0 -0
  72. /package/{doctor-EAOYULTS.js.map → doctor-5T7XB6F7.js.map} +0 -0
  73. /package/{feishu-FBIELF7H.js.map → feishu-PSHSAE4U.js.map} +0 -0
  74. /package/{finance-44VXLKJI.js.map → finance-SK24ZFH5.js.map} +0 -0
  75. /package/{generate-L6ZOETPQ.js.map → generate-PWII6LXX.js.map} +0 -0
  76. /package/{github-BGFLAMOO.js.map → github-BXDFR3GI.js.map} +0 -0
  77. /package/{goal-XG7LFY7I.js.map → goal-7TZI6AXS.js.map} +0 -0
  78. /package/{host-DHYMUPTC.js.map → host-5T4TVL7F.js.map} +0 -0
  79. /package/{logs-GVWAF6MU.js.map → logs-55XWHCPG.js.map} +0 -0
  80. /package/{mail-IVJEYHBZ.js.map → mail-OE6L2CHN.js.map} +0 -0
  81. /package/{maps-TZNW7NNW.js.map → maps-L6C46N3N.js.map} +0 -0
  82. /package/{model-HDI53F4S.js.map → model-6GXITD4Q.js.map} +0 -0
  83. /package/{model-provider-PMT5UZFW.js.map → model-provider-UKVWA22U.js.map} +0 -0
  84. /package/{org-5TZVP6FZ.js.map → org-UYC3RD7F.js.map} +0 -0
  85. /package/{people-search-YTGBNW6D.js.map → people-search-ZCQGVJFI.js.map} +0 -0
  86. /package/{phone-2WRBOJKP.js.map → phone-ATTTOOE7.js.map} +0 -0
  87. /package/{preference-JG75NHDC.js.map → preference-KOCJ2LAB.js.map} +0 -0
  88. /package/{recognize-323KRKAP.js.map → recognize-2HRC7AQW.js.map} +0 -0
  89. /package/{resource-7T44AGQ7.js.map → resource-IBNZRCB7.js.map} +0 -0
  90. /package/{scrape-C6QBZD3G.js.map → scrape-MJYF5WW6.js.map} +0 -0
  91. /package/{search-DJHCQ44L.js.map → search-AJRMWA6A.js.map} +0 -0
  92. /package/{secret-PHORSWLH.js.map → secret-C6BJFOWU.js.map} +0 -0
  93. /package/{slack-R2R3PAY7.js.map → slack-5VGLSWXM.js.map} +0 -0
  94. /package/{teams-AIKZ54LZ.js.map → teams-XASRTN32.js.map} +0 -0
  95. /package/{telegram-Q7X3VUA7.js.map → telegram-2HS7B3CT.js.map} +0 -0
  96. /package/{upgrade-CUG54HZN.js.map → upgrade-X3HGDTJP.js.map} +0 -0
  97. /package/{variable-ULQTVWCG.js.map → variable-OGD73T2Q.js.map} +0 -0
  98. /package/{video-WXGC2GRR.js.map → video-PUUGUN6K.js.map} +0 -0
  99. /package/{weather-KO5ARUSQ.js.map → weather-LFI7A6PF.js.map} +0 -0
  100. /package/{web-STMNCWSR.js.map → web-44A7VBPM.js.map} +0 -0
  101. /package/{web-search-YHBKDKXE.js.map → web-search-OERDKWJY.js.map} +0 -0
  102. /package/{whoami-FIJ5A7WN.js.map → whoami-E3272IN4.js.map} +0 -0
  103. /package/{workflow-6ZJ5XJCV.js.map → workflow-F6EZ27SX.js.map} +0 -0
@@ -5,7 +5,7 @@ import {
5
5
  connectorPermissionGrantsToFirewallPolicies,
6
6
  loadConnectorPermissionInfos,
7
7
  policyIcon
8
- } from "./chunk-6IN6OKYZ.js";
8
+ } from "./chunk-DNRMAFE7.js";
9
9
  import {
10
10
  isInteractive,
11
11
  promptConfirm
@@ -21,13 +21,13 @@ import {
21
21
  listZeroUserPermissionGrants,
22
22
  updateZeroAgent,
23
23
  updateZeroAgentInstructions
24
- } from "./chunk-6IZATZTU.js";
25
- import "./chunk-4GU5ZKEO.js";
24
+ } from "./chunk-3WAJCD24.js";
25
+ import "./chunk-BWCUF4IV.js";
26
26
  import "./chunk-ANOLYIPL.js";
27
27
  import {
28
28
  source_default,
29
29
  withErrorHandler
30
- } from "./chunk-HXI2NYPO.js";
30
+ } from "./chunk-BINP2SIK.js";
31
31
  import "./chunk-32FE3MDA.js";
32
32
  import {
33
33
  Command
@@ -597,4 +597,4 @@ Notes:
597
597
  export {
598
598
  zeroAgentCommand
599
599
  };
600
- //# sourceMappingURL=agent-FSN2GJMD.js.map
600
+ //# sourceMappingURL=agent-W7PHJUVB.js.map
@@ -3,13 +3,13 @@ import { createRequire as __createRequire } from "node:module";
3
3
  const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  callZeroBanking
6
- } from "./chunk-6IZATZTU.js";
7
- import "./chunk-4GU5ZKEO.js";
6
+ } from "./chunk-3WAJCD24.js";
7
+ import "./chunk-BWCUF4IV.js";
8
8
  import "./chunk-ANOLYIPL.js";
9
9
  import {
10
10
  source_default,
11
11
  withErrorHandler
12
- } from "./chunk-HXI2NYPO.js";
12
+ } from "./chunk-BINP2SIK.js";
13
13
  import "./chunk-32FE3MDA.js";
14
14
  import {
15
15
  Command,
@@ -114,4 +114,4 @@ Notes:
114
114
  export {
115
115
  zeroBankingCommand
116
116
  };
117
- //# sourceMappingURL=banking-DQZ2AEIW.js.map
117
+ //# sourceMappingURL=banking-O7T5PBM3.js.map
@@ -8,13 +8,13 @@ import {
8
8
  leaseZeroBrowser,
9
9
  useZeroBrowser,
10
10
  zeroBrowserCreateRequestSchema
11
- } from "./chunk-6IZATZTU.js";
12
- import "./chunk-4GU5ZKEO.js";
11
+ } from "./chunk-3WAJCD24.js";
12
+ import "./chunk-BWCUF4IV.js";
13
13
  import "./chunk-ANOLYIPL.js";
14
14
  import {
15
15
  source_default,
16
16
  withErrorHandler
17
- } from "./chunk-HXI2NYPO.js";
17
+ } from "./chunk-BINP2SIK.js";
18
18
  import "./chunk-32FE3MDA.js";
19
19
  import {
20
20
  Command,
@@ -173,4 +173,4 @@ Notes:
173
173
  export {
174
174
  zeroBrowserCommand
175
175
  };
176
- //# sourceMappingURL=browser-NETPPDQ6.js.map
176
+ //# sourceMappingURL=browser-ZG7ZF46W.js.map
@@ -11,7 +11,7 @@ import {
11
11
  } from "./chunk-YL5CDK4E.js";
12
12
  import {
13
13
  formatModelProviderRoute
14
- } from "./chunk-IDXPNDWE.js";
14
+ } from "./chunk-7L3QU2TW.js";
15
15
  import {
16
16
  chatThreadEventSchema,
17
17
  chatThreadSnapshotProjectionSchema,
@@ -27,14 +27,14 @@ import {
27
27
  sendZeroChatEvent,
28
28
  updateZeroChatThreadModelSelection,
29
29
  userMessageDocumentSchema
30
- } from "./chunk-6IZATZTU.js";
31
- import "./chunk-4GU5ZKEO.js";
30
+ } from "./chunk-3WAJCD24.js";
31
+ import "./chunk-BWCUF4IV.js";
32
32
  import "./chunk-ANOLYIPL.js";
33
33
  import {
34
34
  getApiUrl,
35
35
  source_default,
36
36
  withErrorHandler
37
- } from "./chunk-HXI2NYPO.js";
37
+ } from "./chunk-BINP2SIK.js";
38
38
  import {
39
39
  decodeZeroTokenPayload
40
40
  } from "./chunk-32FE3MDA.js";
@@ -1171,4 +1171,4 @@ Examples:
1171
1171
  export {
1172
1172
  zeroChatCommand
1173
1173
  };
1174
- //# sourceMappingURL=chat-A6SB23VM.js.map
1174
+ //# sourceMappingURL=chat-HJMQOQ4I.js.map
@@ -19,7 +19,7 @@ import {
19
19
  searchZeroLogs,
20
20
  unifiedRunRequestSchema,
21
21
  zeroAgentVisibilitySchema
22
- } from "./chunk-6IZATZTU.js";
22
+ } from "./chunk-3WAJCD24.js";
23
23
  import {
24
24
  apiErrorSchema,
25
25
  external_exports,
@@ -33,7 +33,7 @@ import {
33
33
  upsertModelProviderRequestSchema,
34
34
  upsertModelProviderResponseSchema,
35
35
  withErrorHandler
36
- } from "./chunk-HXI2NYPO.js";
36
+ } from "./chunk-BINP2SIK.js";
37
37
  import {
38
38
  Command
39
39
  } from "./chunk-JAUTPXVK.js";
@@ -18177,4 +18177,4 @@ export {
18177
18177
  runLogsSearch,
18178
18178
  searchCommand
18179
18179
  };
18180
- //# sourceMappingURL=chunk-H6QAMEXS.js.map
18180
+ //# sourceMappingURL=chunk-3UTY4STV.js.map
@@ -21,7 +21,7 @@ import {
21
21
  updateOrgModelPoliciesRequestSchema,
22
22
  upsertModelProviderRequestSchema,
23
23
  upsertModelProviderResponseSchema
24
- } from "./chunk-HXI2NYPO.js";
24
+ } from "./chunk-BINP2SIK.js";
25
25
  import {
26
26
  __commonJS,
27
27
  __esm,
@@ -2020,8 +2020,8 @@ var CHAT_EVENT_TYPES = [
2020
2020
  "run.cancelled",
2021
2021
  "control.interrupt",
2022
2022
  "control.revoke",
2023
- "browser.started",
2024
- "browser.stopped",
2023
+ "browser.open",
2024
+ "browser.close",
2025
2025
  "goal.changed",
2026
2026
  "usage.recorded"
2027
2027
  ];
@@ -3665,6 +3665,14 @@ var controlRevokeEventSchema = chatEventBaseSchema.extend({
3665
3665
  content: external_exports.null(),
3666
3666
  revokesEventId: external_exports.string()
3667
3667
  }).strict();
3668
+ var browserOpenEventSchema = chatEventBaseSchema.extend({
3669
+ eventType: external_exports.literal("browser.open"),
3670
+ content: external_exports.null()
3671
+ }).strict();
3672
+ var browserCloseEventSchema = chatEventBaseSchema.extend({
3673
+ eventType: external_exports.literal("browser.close"),
3674
+ content: external_exports.null()
3675
+ }).strict();
3668
3676
  var browserStartedEventSchema = chatEventBaseSchema.extend({
3669
3677
  eventType: external_exports.literal("browser.started"),
3670
3678
  content: external_exports.null()
@@ -3700,8 +3708,8 @@ var chatEventSchema = external_exports.discriminatedUnion("eventType", [
3700
3708
  runCancelledEventSchema,
3701
3709
  controlInterruptEventSchema,
3702
3710
  controlRevokeEventSchema,
3703
- browserStartedEventSchema,
3704
- browserStoppedEventSchema,
3711
+ browserOpenEventSchema,
3712
+ browserCloseEventSchema,
3705
3713
  goalChangedEventSchema,
3706
3714
  usageRecordedEventSchema
3707
3715
  ]);
@@ -3710,6 +3718,11 @@ if (CHAT_EVENT_TYPES.length !== chatEventSchema.options.length) {
3710
3718
  "ChatEvent schema must cover every registered event catalog leaf"
3711
3719
  );
3712
3720
  }
3721
+ var compatibleChatEventSchema = external_exports.discriminatedUnion("eventType", [
3722
+ ...chatEventSchema.options,
3723
+ browserStartedEventSchema,
3724
+ browserStoppedEventSchema
3725
+ ]);
3713
3726
  var chatThreadDetailSchema = external_exports.object({
3714
3727
  /**
3715
3728
  * Read-state watermark. A thread is unread when its latest run-finish marker
@@ -4308,7 +4321,7 @@ var chatThreadEventsContract = c12.router({
4308
4321
  }),
4309
4322
  responses: {
4310
4323
  200: external_exports.object({
4311
- events: external_exports.array(chatEventSchema)
4324
+ events: external_exports.array(compatibleChatEventSchema)
4312
4325
  }),
4313
4326
  400: apiErrorSchema,
4314
4327
  401: apiErrorSchema,
@@ -4323,7 +4336,7 @@ var chatThreadEventsContract = c12.router({
4323
4336
  headers: authHeadersSchema,
4324
4337
  pathParams: chatThreadEventPathParamsSchema,
4325
4338
  responses: {
4326
- 200: chatEventSchema,
4339
+ 200: compatibleChatEventSchema,
4327
4340
  401: apiErrorSchema,
4328
4341
  404: apiErrorSchema
4329
4342
  },
@@ -4428,6 +4441,15 @@ var artifactsContract = c12.router({
4428
4441
  summary: "Delete a resumable image artifact edit snapshot for the caller"
4429
4442
  }
4430
4443
  });
4444
+ function canonicalChatEvent(event) {
4445
+ if (event.eventType === "browser.started") {
4446
+ return { ...event, eventType: "browser.open" };
4447
+ }
4448
+ if (event.eventType === "browser.stopped") {
4449
+ return { ...event, eventType: "browser.close" };
4450
+ }
4451
+ return event;
4452
+ }
4431
4453
 
4432
4454
  // ../../packages/api-contracts/src/contracts/zero-agents.ts
4433
4455
  var c13 = initContract();
@@ -8113,7 +8135,7 @@ async function listZeroChatEvents(options) {
8113
8135
  }
8114
8136
  });
8115
8137
  if (result.status === 200) {
8116
- return result.body.events;
8138
+ return result.body.events.map(canonicalChatEvent);
8117
8139
  }
8118
8140
  handleError(result, "Failed to list chat events");
8119
8141
  }
@@ -9172,6 +9194,9 @@ var browserLifecycleRequestSchema = external_exports.object({
9172
9194
  var browserMutationResponseSchema = browserResponseSchema.extend({
9173
9195
  lifecycleEventId: external_exports.uuid().nullable()
9174
9196
  });
9197
+ var browserCloseResponseSchema = external_exports.object({
9198
+ lifecycleEventId: external_exports.uuid()
9199
+ });
9175
9200
  var browserResizeRequestSchema = external_exports.object({
9176
9201
  aspectRatio: external_exports.number().positive().finite()
9177
9202
  });
@@ -9250,6 +9275,32 @@ var zeroBrowserContract = c27.router({
9250
9275
  },
9251
9276
  summary: "Extend the idle lease of a live browser from its viewer"
9252
9277
  },
9278
+ open: {
9279
+ method: "POST",
9280
+ path: "/api/zero/chat-threads/:threadId/browser/open",
9281
+ headers: authHeadersSchema,
9282
+ pathParams: browserThreadParamsSchema,
9283
+ body: browserLifecycleRequestSchema,
9284
+ responses: {
9285
+ 200: browserMutationResponseSchema,
9286
+ ...commonErrorResponses
9287
+ },
9288
+ summary: "Open a chat thread's managed browser"
9289
+ },
9290
+ close: {
9291
+ method: "POST",
9292
+ path: "/api/zero/chat-threads/:threadId/browser/close",
9293
+ headers: authHeadersSchema,
9294
+ pathParams: browserThreadParamsSchema,
9295
+ body: browserLifecycleRequestSchema,
9296
+ responses: {
9297
+ 200: browserCloseResponseSchema,
9298
+ ...commonErrorResponses
9299
+ },
9300
+ summary: "Record that the managed browser sidebar was closed"
9301
+ },
9302
+ // Compatibility aliases for browser bundles loaded before open/close.
9303
+ // Remove after the stale web-client window has closed.
9253
9304
  start: {
9254
9305
  method: "POST",
9255
9306
  path: "/api/zero/chat-threads/:threadId/browser/start",
@@ -9260,7 +9311,7 @@ var zeroBrowserContract = c27.router({
9260
9311
  200: browserMutationResponseSchema,
9261
9312
  ...commonErrorResponses
9262
9313
  },
9263
- summary: "Create, reuse, or resume a chat thread's managed browser"
9314
+ summary: "Compatibility alias for opening a managed browser"
9264
9315
  },
9265
9316
  stop: {
9266
9317
  method: "POST",
@@ -9272,7 +9323,7 @@ var zeroBrowserContract = c27.router({
9272
9323
  200: browserMutationResponseSchema,
9273
9324
  ...commonErrorResponses
9274
9325
  },
9275
- summary: "Stop a chat thread's live managed browser"
9326
+ summary: "Compatibility endpoint for a stale browser viewer"
9276
9327
  },
9277
9328
  resizeByThread: {
9278
9329
  method: "POST",
@@ -13548,4 +13599,4 @@ export {
13548
13599
  getHostedSiteFiles,
13549
13600
  getHostedSiteDeployments
13550
13601
  };
13551
- //# sourceMappingURL=chunk-6IZATZTU.js.map
13602
+ //# sourceMappingURL=chunk-3WAJCD24.js.map