@vm0/cli 9.249.2 → 9.250.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/{agent-TOFXTWYP.js → agent-YJFMD7LA.js} +7 -7
- package/{banking-U7I6EJUO.js → banking-JRKBMYU5.js} +5 -5
- package/{chat-77EDGFMS.js → chat-WYS6FFNJ.js} +6 -6
- package/{chunk-HSGQT7LT.js → chunk-4TTCW5OQ.js} +2 -2
- package/{chunk-4HN7U3JF.js → chunk-7OWH4M4H.js} +3 -3
- package/{chunk-JCLLQRCI.js → chunk-FNXVREX3.js} +2 -2
- package/{chunk-N6TDQYGF.js → chunk-LME44JCZ.js} +2 -2
- package/{chunk-AFNSFKAH.js → chunk-LSSFQNLG.js} +4 -4
- package/{chunk-BQOOTJNB.js → chunk-LVWZ2FVB.js} +3 -3
- package/{chunk-ROB3OE37.js → chunk-MNY7TC57.js} +55 -3
- package/{chunk-ROB3OE37.js.map → chunk-MNY7TC57.js.map} +1 -1
- package/{chunk-5CZNUTFF.js → chunk-O3BA2A2T.js} +2 -2
- package/{chunk-A2NKQGRI.js → chunk-O7VNSQWZ.js} +13 -1
- package/chunk-O7VNSQWZ.js.map +1 -0
- package/{chunk-WDDZJGWL.js → chunk-SY5X55C4.js} +2 -2
- package/{chunk-UNQJRTJQ.js → chunk-YPA52IJ7.js} +2 -2
- package/{computer-use-BCGPVGWS.js → computer-use-D2MPAUYF.js} +5 -5
- package/{connector-CHZSI2LW.js → connector-3CX23I3A.js} +8 -8
- package/{credit-RWFBPKOS.js → credit-AOTIS6VG.js} +7 -7
- package/{developer-support-IVR3HIP7.js → developer-support-57LFRVGG.js} +5 -5
- package/{doctor-KGWTXW2Q.js → doctor-2LCAFBSD.js} +7 -7
- package/{feishu-PLF4P5OG.js → feishu-2NKABJIL.js} +5 -5
- package/{finance-LVFG3WWP.js → finance-NJNJDMAH.js} +5 -5
- package/{generate-4FIBMMJO.js → generate-SIX4HFYT.js} +7 -7
- package/{github-WHNAVVG3.js → github-GZIHWGLS.js} +5 -5
- package/{goal-G4J2BQ5Z.js → goal-7YPU6W4L.js} +5 -5
- package/{host-3W6U2ZUP.js → host-K6BCECUE.js} +5 -5
- package/{logs-P7JLTGXY.js → logs-FXUU3B7R.js} +6 -6
- package/{mail-LIAOXDD4.js → mail-NMQN3UOV.js} +7 -7
- package/{maps-C4NOXSE7.js → maps-TV2AB76X.js} +5 -5
- package/{model-I2MNQ5KC.js → model-6KGNE7AT.js} +6 -6
- package/{model-provider-AOCCHEMP.js → model-provider-AIJG5OUO.js} +6 -6
- package/{org-MVBG3WXZ.js → org-ODZB42L3.js} +5 -5
- package/package.json +1 -1
- package/{phone-4OZQFYHU.js → phone-XPMI6VF2.js} +5 -5
- package/{preference-H2A3WBGQ.js → preference-BVX47Y4Q.js} +5 -5
- package/{resource-CPCQ6V6M.js → resource-IGSGF4EH.js} +5 -5
- package/{scrape-6RMFDYAT.js → scrape-ADTRGJG6.js} +5 -5
- package/{search-HSQVSQZY.js → search-6ZJQPRWM.js} +6 -6
- package/{secret-S4D6CNOX.js → secret-Y4G7BLND.js} +5 -5
- package/{slack-E3E2NIDZ.js → slack-HKTL3FSY.js} +5 -5
- package/{teams-CLEWT2LQ.js → teams-2N2EHMY7.js} +5 -5
- package/{telegram-35FKKA4K.js → telegram-Z4WLU2O2.js} +5 -5
- package/{upgrade-DNGUR42E.js → upgrade-QB2455RE.js} +4 -4
- package/{variable-C7RWUPV6.js → variable-KO6LBIV4.js} +5 -5
- package/{video-JS5VOA2S.js → video-KUPHYWB4.js} +4 -4
- package/{weather-5R2N5OX4.js → weather-RCRWQFDR.js} +5 -5
- package/{web-FXIIYCZ7.js → web-3D7YJGZ5.js} +5 -5
- package/{web-search-SZP7J4UM.js → web-search-IYBKKVMU.js} +5 -5
- package/{whoami-J4FRN67A.js → whoami-REQ5UNRU.js} +7 -7
- package/{workflow-HQHZKXB2.js → workflow-H2AHF7J4.js} +174 -10
- package/workflow-H2AHF7J4.js.map +1 -0
- package/zero.js +41 -41
- package/chunk-A2NKQGRI.js.map +0 -1
- package/workflow-HQHZKXB2.js.map +0 -1
- /package/{agent-TOFXTWYP.js.map → agent-YJFMD7LA.js.map} +0 -0
- /package/{banking-U7I6EJUO.js.map → banking-JRKBMYU5.js.map} +0 -0
- /package/{chat-77EDGFMS.js.map → chat-WYS6FFNJ.js.map} +0 -0
- /package/{chunk-HSGQT7LT.js.map → chunk-4TTCW5OQ.js.map} +0 -0
- /package/{chunk-4HN7U3JF.js.map → chunk-7OWH4M4H.js.map} +0 -0
- /package/{chunk-JCLLQRCI.js.map → chunk-FNXVREX3.js.map} +0 -0
- /package/{chunk-N6TDQYGF.js.map → chunk-LME44JCZ.js.map} +0 -0
- /package/{chunk-AFNSFKAH.js.map → chunk-LSSFQNLG.js.map} +0 -0
- /package/{chunk-BQOOTJNB.js.map → chunk-LVWZ2FVB.js.map} +0 -0
- /package/{chunk-5CZNUTFF.js.map → chunk-O3BA2A2T.js.map} +0 -0
- /package/{chunk-WDDZJGWL.js.map → chunk-SY5X55C4.js.map} +0 -0
- /package/{chunk-UNQJRTJQ.js.map → chunk-YPA52IJ7.js.map} +0 -0
- /package/{computer-use-BCGPVGWS.js.map → computer-use-D2MPAUYF.js.map} +0 -0
- /package/{connector-CHZSI2LW.js.map → connector-3CX23I3A.js.map} +0 -0
- /package/{credit-RWFBPKOS.js.map → credit-AOTIS6VG.js.map} +0 -0
- /package/{developer-support-IVR3HIP7.js.map → developer-support-57LFRVGG.js.map} +0 -0
- /package/{doctor-KGWTXW2Q.js.map → doctor-2LCAFBSD.js.map} +0 -0
- /package/{feishu-PLF4P5OG.js.map → feishu-2NKABJIL.js.map} +0 -0
- /package/{finance-LVFG3WWP.js.map → finance-NJNJDMAH.js.map} +0 -0
- /package/{generate-4FIBMMJO.js.map → generate-SIX4HFYT.js.map} +0 -0
- /package/{github-WHNAVVG3.js.map → github-GZIHWGLS.js.map} +0 -0
- /package/{goal-G4J2BQ5Z.js.map → goal-7YPU6W4L.js.map} +0 -0
- /package/{host-3W6U2ZUP.js.map → host-K6BCECUE.js.map} +0 -0
- /package/{logs-P7JLTGXY.js.map → logs-FXUU3B7R.js.map} +0 -0
- /package/{mail-LIAOXDD4.js.map → mail-NMQN3UOV.js.map} +0 -0
- /package/{maps-C4NOXSE7.js.map → maps-TV2AB76X.js.map} +0 -0
- /package/{model-I2MNQ5KC.js.map → model-6KGNE7AT.js.map} +0 -0
- /package/{model-provider-AOCCHEMP.js.map → model-provider-AIJG5OUO.js.map} +0 -0
- /package/{org-MVBG3WXZ.js.map → org-ODZB42L3.js.map} +0 -0
- /package/{phone-4OZQFYHU.js.map → phone-XPMI6VF2.js.map} +0 -0
- /package/{preference-H2A3WBGQ.js.map → preference-BVX47Y4Q.js.map} +0 -0
- /package/{resource-CPCQ6V6M.js.map → resource-IGSGF4EH.js.map} +0 -0
- /package/{scrape-6RMFDYAT.js.map → scrape-ADTRGJG6.js.map} +0 -0
- /package/{search-HSQVSQZY.js.map → search-6ZJQPRWM.js.map} +0 -0
- /package/{secret-S4D6CNOX.js.map → secret-Y4G7BLND.js.map} +0 -0
- /package/{slack-E3E2NIDZ.js.map → slack-HKTL3FSY.js.map} +0 -0
- /package/{teams-CLEWT2LQ.js.map → teams-2N2EHMY7.js.map} +0 -0
- /package/{telegram-35FKKA4K.js.map → telegram-Z4WLU2O2.js.map} +0 -0
- /package/{upgrade-DNGUR42E.js.map → upgrade-QB2455RE.js.map} +0 -0
- /package/{variable-C7RWUPV6.js.map → variable-KO6LBIV4.js.map} +0 -0
- /package/{video-JS5VOA2S.js.map → video-KUPHYWB4.js.map} +0 -0
- /package/{weather-5R2N5OX4.js.map → weather-RCRWQFDR.js.map} +0 -0
- /package/{web-FXIIYCZ7.js.map → web-3D7YJGZ5.js.map} +0 -0
- /package/{web-search-SZP7J4UM.js.map → web-search-IYBKKVMU.js.map} +0 -0
- /package/{whoami-J4FRN67A.js.map → whoami-REQ5UNRU.js.map} +0 -0
package/zero.js
CHANGED
|
@@ -4,7 +4,7 @@ const require = __createRequire(import.meta.url);
|
|
|
4
4
|
import {
|
|
5
5
|
decodeZeroTokenPayload,
|
|
6
6
|
isFeatureEnabled
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-O7VNSQWZ.js";
|
|
8
8
|
import {
|
|
9
9
|
Command
|
|
10
10
|
} from "./chunk-LD4ZVU4O.js";
|
|
@@ -60,7 +60,7 @@ if (DSN) {
|
|
|
60
60
|
Sentry.init({
|
|
61
61
|
dsn: DSN,
|
|
62
62
|
environment: process.env.SENTRY_ENVIRONMENT ?? "production",
|
|
63
|
-
release: "9.
|
|
63
|
+
release: "9.250.0",
|
|
64
64
|
sendDefaultPii: false,
|
|
65
65
|
tracesSampleRate: 0,
|
|
66
66
|
shutdownTimeout: 500,
|
|
@@ -79,7 +79,7 @@ if (DSN) {
|
|
|
79
79
|
}
|
|
80
80
|
});
|
|
81
81
|
Sentry.setContext("cli", {
|
|
82
|
-
version: "9.
|
|
82
|
+
version: "9.250.0",
|
|
83
83
|
command: process.argv.slice(2).join(" ")
|
|
84
84
|
});
|
|
85
85
|
Sentry.setContext("runtime", {
|
|
@@ -198,161 +198,161 @@ var ZERO_COMMAND_DEFINITIONS = [
|
|
|
198
198
|
name: "org",
|
|
199
199
|
description: "Manage organization settings, members, and providers",
|
|
200
200
|
load: async () => {
|
|
201
|
-
return (await import("./org-
|
|
201
|
+
return (await import("./org-ODZB42L3.js")).zeroOrgCommand;
|
|
202
202
|
}
|
|
203
203
|
},
|
|
204
204
|
{
|
|
205
205
|
name: "model",
|
|
206
206
|
description: "List available models and model-switching guidance",
|
|
207
207
|
load: async () => {
|
|
208
|
-
return (await import("./model-
|
|
208
|
+
return (await import("./model-6KGNE7AT.js")).zeroModelCommand;
|
|
209
209
|
}
|
|
210
210
|
},
|
|
211
211
|
{
|
|
212
212
|
name: "model-provider",
|
|
213
213
|
description: "Inspect model provider routing",
|
|
214
214
|
load: async () => {
|
|
215
|
-
return (await import("./model-provider-
|
|
215
|
+
return (await import("./model-provider-AIJG5OUO.js")).zeroModelProviderCommand;
|
|
216
216
|
}
|
|
217
217
|
},
|
|
218
218
|
{
|
|
219
219
|
name: "agent",
|
|
220
220
|
description: "View or manage zero agents",
|
|
221
221
|
load: async () => {
|
|
222
|
-
return (await import("./agent-
|
|
222
|
+
return (await import("./agent-YJFMD7LA.js")).zeroAgentCommand;
|
|
223
223
|
}
|
|
224
224
|
},
|
|
225
225
|
{
|
|
226
226
|
name: "connector",
|
|
227
227
|
description: "Check third-party service connections (GitHub, Slack, etc.)",
|
|
228
228
|
load: async () => {
|
|
229
|
-
return (await import("./connector-
|
|
229
|
+
return (await import("./connector-3CX23I3A.js")).zeroConnectorCommand;
|
|
230
230
|
}
|
|
231
231
|
},
|
|
232
232
|
{
|
|
233
233
|
name: "mail",
|
|
234
234
|
description: "Review and send mail through Gmail or Outlook Mail",
|
|
235
235
|
load: async () => {
|
|
236
|
-
return (await import("./mail-
|
|
236
|
+
return (await import("./mail-NMQN3UOV.js")).zeroMailCommand;
|
|
237
237
|
}
|
|
238
238
|
},
|
|
239
239
|
{
|
|
240
240
|
name: "credit",
|
|
241
241
|
description: "View or buy credits",
|
|
242
242
|
load: async () => {
|
|
243
|
-
return (await import("./credit-
|
|
243
|
+
return (await import("./credit-AOTIS6VG.js")).zeroCreditCommand;
|
|
244
244
|
}
|
|
245
245
|
},
|
|
246
246
|
{
|
|
247
247
|
name: "upgrade",
|
|
248
248
|
description: "Create a workspace plan upgrade link",
|
|
249
249
|
load: async () => {
|
|
250
|
-
return (await import("./upgrade-
|
|
250
|
+
return (await import("./upgrade-QB2455RE.js")).zeroUpgradeCommand;
|
|
251
251
|
}
|
|
252
252
|
},
|
|
253
253
|
{
|
|
254
254
|
name: "doctor",
|
|
255
255
|
description: "Diagnose runtime issues (connector health, permission denials)",
|
|
256
256
|
load: async () => {
|
|
257
|
-
return (await import("./doctor-
|
|
257
|
+
return (await import("./doctor-2LCAFBSD.js")).zeroDoctorCommand;
|
|
258
258
|
}
|
|
259
259
|
},
|
|
260
260
|
{
|
|
261
261
|
name: "preference",
|
|
262
262
|
description: "View or update user preferences (timezone, notifications)",
|
|
263
263
|
load: async () => {
|
|
264
|
-
return (await import("./preference-
|
|
264
|
+
return (await import("./preference-BVX47Y4Q.js")).zeroPreferenceCommand;
|
|
265
265
|
}
|
|
266
266
|
},
|
|
267
267
|
{
|
|
268
268
|
name: "secret",
|
|
269
269
|
description: "Read or write secrets (API keys, tokens)",
|
|
270
270
|
load: async () => {
|
|
271
|
-
return (await import("./secret-
|
|
271
|
+
return (await import("./secret-Y4G7BLND.js")).zeroSecretCommand;
|
|
272
272
|
}
|
|
273
273
|
},
|
|
274
274
|
{
|
|
275
275
|
name: "github",
|
|
276
276
|
description: "Upload and download GitHub files",
|
|
277
277
|
load: async () => {
|
|
278
|
-
return (await import("./github-
|
|
278
|
+
return (await import("./github-GZIHWGLS.js")).zeroGithubCommand;
|
|
279
279
|
}
|
|
280
280
|
},
|
|
281
281
|
{
|
|
282
282
|
name: "slack",
|
|
283
283
|
description: "Send messages, upload files, and download files from Slack as the bot",
|
|
284
284
|
load: async () => {
|
|
285
|
-
return (await import("./slack-
|
|
285
|
+
return (await import("./slack-HKTL3FSY.js")).zeroSlackCommand;
|
|
286
286
|
}
|
|
287
287
|
},
|
|
288
288
|
{
|
|
289
289
|
name: "feishu",
|
|
290
290
|
description: "Send messages to Feishu as an organization bot",
|
|
291
291
|
load: async () => {
|
|
292
|
-
return (await import("./feishu-
|
|
292
|
+
return (await import("./feishu-2NKABJIL.js")).zeroFeishuCommand;
|
|
293
293
|
}
|
|
294
294
|
},
|
|
295
295
|
{
|
|
296
296
|
name: "teams",
|
|
297
297
|
description: "Send Microsoft Teams messages, upload files, and download files",
|
|
298
298
|
load: async () => {
|
|
299
|
-
return (await import("./teams-
|
|
299
|
+
return (await import("./teams-2N2EHMY7.js")).zeroTeamsCommand;
|
|
300
300
|
}
|
|
301
301
|
},
|
|
302
302
|
{
|
|
303
303
|
name: "telegram",
|
|
304
304
|
description: "Inspect bots, send messages, upload files, and download files from Telegram",
|
|
305
305
|
load: async () => {
|
|
306
|
-
return (await import("./telegram-
|
|
306
|
+
return (await import("./telegram-Z4WLU2O2.js")).zeroTelegramCommand;
|
|
307
307
|
}
|
|
308
308
|
},
|
|
309
309
|
{
|
|
310
310
|
name: "phone",
|
|
311
311
|
description: "Send AgentPhone messages, upload files, and download media",
|
|
312
312
|
load: async () => {
|
|
313
|
-
return (await import("./phone-
|
|
313
|
+
return (await import("./phone-XPMI6VF2.js")).zeroPhoneCommand;
|
|
314
314
|
}
|
|
315
315
|
},
|
|
316
316
|
{
|
|
317
317
|
name: "variable",
|
|
318
318
|
description: "Read or write non-sensitive configuration values",
|
|
319
319
|
load: async () => {
|
|
320
|
-
return (await import("./variable-
|
|
320
|
+
return (await import("./variable-KO6LBIV4.js")).zeroVariableCommand;
|
|
321
321
|
}
|
|
322
322
|
},
|
|
323
323
|
{
|
|
324
324
|
name: "logs",
|
|
325
325
|
description: "View and search agent run logs",
|
|
326
326
|
load: async () => {
|
|
327
|
-
return (await import("./logs-
|
|
327
|
+
return (await import("./logs-FXUU3B7R.js")).zeroLogsCommand;
|
|
328
328
|
}
|
|
329
329
|
},
|
|
330
330
|
{
|
|
331
331
|
name: "search",
|
|
332
332
|
description: "Search logs, chat, or get a recipe for external sources",
|
|
333
333
|
load: async () => {
|
|
334
|
-
return (await import("./search-
|
|
334
|
+
return (await import("./search-6ZJQPRWM.js")).zeroSearchCommand;
|
|
335
335
|
}
|
|
336
336
|
},
|
|
337
337
|
{
|
|
338
338
|
name: "chat",
|
|
339
339
|
description: "Manage the current web chat thread",
|
|
340
340
|
load: async () => {
|
|
341
|
-
return (await import("./chat-
|
|
341
|
+
return (await import("./chat-WYS6FFNJ.js")).zeroChatCommand;
|
|
342
342
|
}
|
|
343
343
|
},
|
|
344
344
|
{
|
|
345
345
|
name: "resource",
|
|
346
346
|
description: "Pull registry resources from private R2-backed archives",
|
|
347
347
|
load: async () => {
|
|
348
|
-
return (await import("./resource-
|
|
348
|
+
return (await import("./resource-IGSGF4EH.js")).zeroResourceCommand;
|
|
349
349
|
}
|
|
350
350
|
},
|
|
351
351
|
{
|
|
352
352
|
name: "whoami",
|
|
353
353
|
description: "Show agent identity, run ID, and capabilities",
|
|
354
354
|
load: async () => {
|
|
355
|
-
return (await import("./whoami-
|
|
355
|
+
return (await import("./whoami-REQ5UNRU.js")).zeroWhoamiCommand;
|
|
356
356
|
}
|
|
357
357
|
},
|
|
358
358
|
{
|
|
@@ -366,98 +366,98 @@ var ZERO_COMMAND_DEFINITIONS = [
|
|
|
366
366
|
name: "workflow",
|
|
367
367
|
description: "Manage workflows",
|
|
368
368
|
load: async () => {
|
|
369
|
-
return (await import("./workflow-
|
|
369
|
+
return (await import("./workflow-H2AHF7J4.js")).zeroWorkflowCommand;
|
|
370
370
|
}
|
|
371
371
|
},
|
|
372
372
|
{
|
|
373
373
|
name: "goal",
|
|
374
374
|
description: "Manage the current thread goal",
|
|
375
375
|
load: async () => {
|
|
376
|
-
return (await import("./goal-
|
|
376
|
+
return (await import("./goal-7YPU6W4L.js")).zeroGoalCommand;
|
|
377
377
|
}
|
|
378
378
|
},
|
|
379
379
|
{
|
|
380
380
|
name: "developer-support",
|
|
381
381
|
description: "Submit a diagnostic report to the dev team",
|
|
382
382
|
load: async () => {
|
|
383
|
-
return (await import("./developer-support-
|
|
383
|
+
return (await import("./developer-support-57LFRVGG.js")).zeroDeveloperSupportCommand;
|
|
384
384
|
}
|
|
385
385
|
},
|
|
386
386
|
{
|
|
387
387
|
name: "computer-use",
|
|
388
388
|
description: "Desktop app computer use through Zero CLI",
|
|
389
389
|
load: async () => {
|
|
390
|
-
return (await import("./computer-use-
|
|
390
|
+
return (await import("./computer-use-D2MPAUYF.js")).zeroComputerUseCommand;
|
|
391
391
|
}
|
|
392
392
|
},
|
|
393
393
|
{
|
|
394
394
|
name: "generate",
|
|
395
395
|
description: "Generate assets via vm0's built-in pipelines or get connector skill-invocation guidance",
|
|
396
396
|
load: async () => {
|
|
397
|
-
return (await import("./generate-
|
|
397
|
+
return (await import("./generate-SIX4HFYT.js")).generateCommand;
|
|
398
398
|
}
|
|
399
399
|
},
|
|
400
400
|
{
|
|
401
401
|
name: "web",
|
|
402
402
|
description: "Upload and download files via the web chat endpoint",
|
|
403
403
|
load: async () => {
|
|
404
|
-
return (await import("./web-
|
|
404
|
+
return (await import("./web-3D7YJGZ5.js")).zeroWebCommand;
|
|
405
405
|
}
|
|
406
406
|
},
|
|
407
407
|
{
|
|
408
408
|
name: "video",
|
|
409
409
|
description: "Video processing utilities",
|
|
410
410
|
load: async () => {
|
|
411
|
-
return (await import("./video-
|
|
411
|
+
return (await import("./video-KUPHYWB4.js")).zeroVideoCommand;
|
|
412
412
|
}
|
|
413
413
|
},
|
|
414
414
|
{
|
|
415
415
|
name: "host",
|
|
416
416
|
description: "Publish static sites and clone owned hosted site files",
|
|
417
417
|
load: async () => {
|
|
418
|
-
return (await import("./host-
|
|
418
|
+
return (await import("./host-K6BCECUE.js")).zeroHostCommand;
|
|
419
419
|
}
|
|
420
420
|
},
|
|
421
421
|
{
|
|
422
422
|
name: "maps",
|
|
423
423
|
description: "Use managed zero maps services",
|
|
424
424
|
load: async () => {
|
|
425
|
-
return (await import("./maps-
|
|
425
|
+
return (await import("./maps-TV2AB76X.js")).zeroMapsCommand;
|
|
426
426
|
}
|
|
427
427
|
},
|
|
428
428
|
{
|
|
429
429
|
name: "weather",
|
|
430
430
|
description: "Use managed Zero weather services",
|
|
431
431
|
load: async () => {
|
|
432
|
-
return (await import("./weather-
|
|
432
|
+
return (await import("./weather-RCRWQFDR.js")).zeroWeatherCommand;
|
|
433
433
|
}
|
|
434
434
|
},
|
|
435
435
|
{
|
|
436
436
|
name: "scrape",
|
|
437
437
|
description: "Scrape public web pages through managed zero scrape",
|
|
438
438
|
load: async () => {
|
|
439
|
-
return (await import("./scrape-
|
|
439
|
+
return (await import("./scrape-ADTRGJG6.js")).zeroScrapeCommand;
|
|
440
440
|
}
|
|
441
441
|
},
|
|
442
442
|
{
|
|
443
443
|
name: "web-search",
|
|
444
444
|
description: "Search the public web through managed zero web search",
|
|
445
445
|
load: async () => {
|
|
446
|
-
return (await import("./web-search-
|
|
446
|
+
return (await import("./web-search-IYBKKVMU.js")).zeroWebSearchCommand;
|
|
447
447
|
}
|
|
448
448
|
},
|
|
449
449
|
{
|
|
450
450
|
name: "finance",
|
|
451
451
|
description: "Query financial instruments through managed zero finance",
|
|
452
452
|
load: async () => {
|
|
453
|
-
return (await import("./finance-
|
|
453
|
+
return (await import("./finance-NJNJDMAH.js")).zeroFinanceCommand;
|
|
454
454
|
}
|
|
455
455
|
},
|
|
456
456
|
{
|
|
457
457
|
name: "banking",
|
|
458
458
|
description: "Use managed zero banking services",
|
|
459
459
|
load: async () => {
|
|
460
|
-
return (await import("./banking-
|
|
460
|
+
return (await import("./banking-JRKBMYU5.js")).zeroBankingCommand;
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
463
|
];
|
|
@@ -592,7 +592,7 @@ function registerZeroCommands(prog, commands, featureSwitchOverrides) {
|
|
|
592
592
|
var program = new Command();
|
|
593
593
|
program.name("zero").description(
|
|
594
594
|
"Zero CLI \u2014 interact with the zero platform from inside the sandbox"
|
|
595
|
-
).version("9.
|
|
595
|
+
).version("9.250.0").addHelpText("after", () => {
|
|
596
596
|
return buildZeroHelpText();
|
|
597
597
|
});
|
|
598
598
|
if (process.argv[1]?.endsWith("zero.js") || process.argv[1]?.endsWith("zero.ts") || process.argv[1]?.endsWith("zero")) {
|
package/chunk-A2NKQGRI.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../packages/connectors/src/feature-switch-key.ts","../../../packages/core/src/feature-switch.ts","../../../packages/core/src/feature-switch-key.ts","../../../packages/core/src/identity-hash.ts","../src/lib/api/zero-token.ts"],"sourcesContent":["/**\n * Feature switch keys\n *\n * Defines all available feature switch identifiers.\n */\nexport enum FeatureSwitchKey {\n Dummy = \"dummy\",\n AhrefsConnector = \"ahrefsConnector\",\n BillConnector = \"billConnector\",\n BentomlConnector = \"bentomlConnector\",\n BoxConnector = \"boxConnector\",\n CanvaConnector = \"canvaConnector\",\n CalComConnector = \"calComConnector\",\n CopperConnector = \"copperConnector\",\n DatadogConnector = \"datadogConnector\",\n DeelConnector = \"deelConnector\",\n DocuSignConnector = \"docusignConnector\",\n DropboxConnector = \"dropboxConnector\",\n FigmaConnector = \"figmaConnector\",\n ExpensifyConnector = \"expensifyConnector\",\n GoogleContactsConnector = \"googleContactsConnector\",\n GoogleFormsConnector = \"googleFormsConnector\",\n MercuryConnector = \"mercuryConnector\",\n NeonConnector = \"neonConnector\",\n NetSuiteConnector = \"netSuiteConnector\",\n GarminConnectConnector = \"garminConnectConnector\",\n QuickBooksConnector = \"quickbooksConnector\",\n RedditConnector = \"redditConnector\",\n SupabaseConnector = \"supabaseConnector\",\n WebflowConnector = \"webflowConnector\",\n CloseConnector = \"closeConnector\",\n MetaAdsConnector = \"metaAdsConnector\",\n TikTokAdsConnector = \"tiktokAdsConnector\",\n AwsConnector = \"awsConnector\",\n PosthogConnector = \"posthogConnector\",\n PayPalConnector = \"payPalConnector\",\n RampConnector = \"rampConnector\",\n MailchimpConnector = \"mailchimpConnector\",\n ResendConnector = \"resendConnector\",\n PexelsConnector = \"pexelsConnector\",\n SpotifyConnector = \"spotifyConnector\",\n ZeroDebug = \"zeroDebug\",\n CanonicalSlackIngress = \"canonicalSlackIngress\",\n CanonicalSlackWebVisibility = \"canonicalSlackWebVisibility\",\n ZeroWeather = \"zeroWeather\",\n ZeroFinance = \"zeroFinance\",\n Banking = \"banking\",\n Lab = \"lab\",\n NotionWorkflowAutomations = \"notionWorkflowAutomations\",\n MorningBrief = \"morningBrief\",\n ManualMorningBrief = \"manualMorningBrief\",\n TestOauthConnector = \"testOauthConnector\",\n FreshdeskConnector = \"freshdeskConnector\",\n StabilityAiConnector = \"stabilityAiConnector\",\n ZoomConnector = \"zoomConnector\",\n WorkdayConnector = \"workdayConnector\",\n CodexFastMode = \"codexFastMode\",\n RealAgentInPreview = \"realAgentInPreview\",\n ComposerUploadPopover = \"composerUploadPopover\",\n StructuredPrompt = \"structuredPrompt\",\n\n ZapierConnector = \"zapierConnector\",\n HtmlArtifactCommentEditing = \"htmlArtifactCommentEditing\",\n ComputerUseDesktopPlugins = \"computerUseDesktopPlugins\",\n AgentUnreadIndicators = \"agentUnreadIndicators\",\n ChatThreadUnifiedSearch = \"chatThreadUnifiedSearch\",\n ComposerChatThreadSuggestions = \"composerChatThreadSuggestions\",\n SidebarSubscriptionUsage = \"sidebarSubscriptionUsage\",\n TeamsIntegration = \"teamsIntegration\",\n FeishuIntegration = \"feishuIntegration\",\n PresentationExport = \"presentationExport\",\n Artifacts = \"artifacts\",\n HostedArtifactVersions = \"hostedArtifactVersions\",\n VideoArtifactPosters = \"videoArtifactPosters\",\n WebsiteTemplateV2 = \"websiteTemplateV2\",\n PlanUpgradeGuidance = \"planUpgradeGuidance\",\n OrgPlanEntitlementReads = \"orgPlanEntitlementReads\",\n WorkflowConnectorReadiness = \"workflowConnectorReadiness\",\n ZeroMail = \"zeroMail\",\n ComposerConnectorPermissions = \"composerConnectorPermissions\",\n ThreeColumnNav = \"threeColumnNav\",\n}\n","/**\n * Feature switch system\n *\n * Provides centralized feature flag management with user-identity based overrides.\n * User IDs are stored as FNV-1a hashes to avoid exposing plain-text identifiers in source code.\n *\n * NOT AN AUTHORIZATION BOUNDARY. Any authenticated user can self-enable any\n * switch via `POST /api/zero/feature-switches` — overrides are read by\n * `isFeatureEnabled` before the registry. For money-granting, credential,\n * or privilege-escalation endpoints, gate with a hard identity check\n * (e.g. `isStaffOrg()` from `./staff-org`) instead of this system.\n */\n\nimport { FeatureSwitchKey } from \"./feature-switch-key\";\nimport { STAFF_ORG_ID_HASHES, fnv1a } from \"./identity-hash\";\n\nexport interface FeatureSwitch {\n readonly maintainer: string;\n readonly description?: string;\n readonly enabled: boolean;\n readonly enabledUserHashes?: readonly string[];\n readonly enabledEmailHashes?: readonly string[];\n readonly enabledOrgIdHashes?: readonly string[];\n readonly userOverridable?: boolean;\n}\n\nexport interface FeatureSwitchMetadata {\n readonly maintainer: string;\n readonly description?: string;\n readonly userOverridable: boolean;\n}\n\nexport interface FeatureSwitchContext {\n readonly userId?: string;\n readonly email?: string;\n readonly orgId?: string;\n readonly overrides?: Partial<Record<FeatureSwitchKey, boolean>>;\n}\n\n/**\n * Registry of all feature switches\n */\nconst FEATURE_SWITCHES: Record<FeatureSwitchKey, FeatureSwitch> = {\n [FeatureSwitchKey.Dummy]: {\n maintainer: \"ethan@vm0.ai\",\n description: \"Test-only feature switch for flag system validation\",\n enabled: true,\n },\n [FeatureSwitchKey.AhrefsConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the Ahrefs SEO connector\",\n enabled: false,\n },\n [FeatureSwitchKey.BillConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the BILL Spend & Expense connector\",\n enabled: false,\n },\n [FeatureSwitchKey.BentomlConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the BentoML model serving connector\",\n enabled: false,\n },\n [FeatureSwitchKey.BoxConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the Box file storage connector\",\n enabled: false,\n },\n [FeatureSwitchKey.CanvaConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the Canva design connector\",\n enabled: false,\n },\n [FeatureSwitchKey.CalComConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the Cal.com scheduling connector\",\n enabled: false,\n },\n [FeatureSwitchKey.CopperConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the Copper CRM connector\",\n enabled: false,\n },\n [FeatureSwitchKey.DatadogConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the Datadog observability connector\",\n enabled: false,\n },\n [FeatureSwitchKey.DeelConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the Deel HR connector\",\n enabled: false,\n },\n [FeatureSwitchKey.DocuSignConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the DocuSign e-signature connector\",\n enabled: false,\n },\n [FeatureSwitchKey.DropboxConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the Dropbox file storage connector\",\n enabled: false,\n },\n [FeatureSwitchKey.FigmaConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the Figma design connector\",\n enabled: false,\n },\n [FeatureSwitchKey.ExpensifyConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the Expensify accounting connector\",\n enabled: false,\n },\n [FeatureSwitchKey.GoogleContactsConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the Google Contacts connector\",\n enabled: false,\n },\n [FeatureSwitchKey.GoogleFormsConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the Google Forms connector\",\n enabled: false,\n },\n [FeatureSwitchKey.MercuryConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the Mercury banking connector\",\n enabled: false,\n },\n [FeatureSwitchKey.NeonConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the Neon serverless Postgres connector\",\n enabled: false,\n },\n [FeatureSwitchKey.NetSuiteConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the Oracle NetSuite ERP connector\",\n enabled: false,\n },\n [FeatureSwitchKey.GarminConnectConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the Garmin Connect wellness connector\",\n enabled: false,\n },\n [FeatureSwitchKey.QuickBooksConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the QuickBooks accounting connector\",\n enabled: false,\n },\n [FeatureSwitchKey.RedditConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the Reddit connector integration\",\n enabled: false,\n },\n [FeatureSwitchKey.SupabaseConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the Supabase database connector integration\",\n enabled: false,\n },\n [FeatureSwitchKey.CloseConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the Close CRM connector\",\n enabled: false,\n },\n [FeatureSwitchKey.WebflowConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the Webflow site management connector\",\n enabled: false,\n },\n [FeatureSwitchKey.MetaAdsConnector]: {\n maintainer: \"ethan@vm0.ai\",\n description: \"Enable the Meta Ads Manager connector\",\n enabled: false,\n },\n [FeatureSwitchKey.TikTokAdsConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the TikTok Ads Manager connector\",\n enabled: false,\n },\n [FeatureSwitchKey.AwsConnector]: {\n maintainer: \"liangyou@vm0.ai\",\n description: \"Enable the temporary AWS remote login connector\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n },\n [FeatureSwitchKey.PosthogConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the PostHog analytics connector\",\n enabled: false,\n },\n [FeatureSwitchKey.PayPalConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the PayPal payments connector\",\n enabled: false,\n },\n [FeatureSwitchKey.RampConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the Ramp spend management connector\",\n enabled: false,\n },\n [FeatureSwitchKey.MailchimpConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the Mailchimp email marketing connector\",\n enabled: false,\n },\n [FeatureSwitchKey.ResendConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the Resend email service connector\",\n enabled: false,\n },\n [FeatureSwitchKey.PexelsConnector]: {\n maintainer: \"bingjie@vm0.ai\",\n description: \"Enable the Pexels stock photo and video connector\",\n enabled: false,\n },\n [FeatureSwitchKey.SpotifyConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the Spotify connector integration\",\n enabled: false,\n },\n [FeatureSwitchKey.ZeroDebug]: {\n maintainer: \"ethan@vm0.ai\",\n description:\n \"Reveal activity debug surfaces, activity log navigation, appended system prompts, and Debug preferences\",\n enabled: false,\n },\n [FeatureSwitchKey.CanonicalSlackIngress]: {\n maintainer: \"lancy@vm0.ai\",\n description:\n \"Route newly admitted per-user Slack threads through canonical chat ingress.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n },\n [FeatureSwitchKey.CanonicalSlackWebVisibility]: {\n maintainer: \"lancy@vm0.ai\",\n description:\n \"Show canonical Slack chat threads in Web chat surfaces for enrolled users.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n },\n [FeatureSwitchKey.ZeroWeather]: {\n maintainer: \"ethan@vm0.ai\",\n description:\n \"Enable the managed Google-backed Zero Weather and Air Quality APIs and weather:read ZERO_TOKEN capability.\",\n enabled: true,\n },\n [FeatureSwitchKey.ZeroFinance]: {\n maintainer: \"ethan@vm0.ai\",\n description:\n \"Enable the managed APIDojo-backed Zero Finance API and finance:read ZERO_TOKEN capability.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n },\n [FeatureSwitchKey.Banking]: {\n maintainer: \"linghan@vm0.ai\",\n description:\n \"Enable the managed Zero Banking gateway and banking:read ZERO_TOKEN capability for Finicity-backed accounts, balances, and transactions.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n },\n [FeatureSwitchKey.Lab]: {\n maintainer: \"ethan@vm0.ai\",\n description: \"Show the Lab page for toggling experimental features\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n },\n [FeatureSwitchKey.MorningBrief]: {\n maintainer: \"ethan@vm0.ai\",\n description:\n \"Enable the daily 7:00 local-time Morning Brief email built from GitHub, Gmail, and Google Calendar.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n userOverridable: true,\n },\n [FeatureSwitchKey.ManualMorningBrief]: {\n maintainer: \"ethan@vm0.ai\",\n description:\n \"Show a Send now button in Settings that triggers a Morning Brief immediately for testing.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n userOverridable: true,\n },\n [FeatureSwitchKey.NotionWorkflowAutomations]: {\n maintainer: \"lancy@vm0.ai\",\n description:\n \"Enable Notion event workflow automations, starting with child pages created under a configured parent page.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n },\n [FeatureSwitchKey.TestOauthConnector]: {\n maintainer: \"liangyou@vm0.ai\",\n description:\n \"Enable the test-oauth connector, a synthetic OAuth 2.0 provider used only for automated tests. Off in prod.\",\n enabled: false,\n },\n [FeatureSwitchKey.FreshdeskConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the Freshdesk helpdesk connector\",\n enabled: false,\n },\n [FeatureSwitchKey.StabilityAiConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the Stability AI image generation connector\",\n enabled: false,\n },\n [FeatureSwitchKey.ZoomConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description:\n \"Enable the Zoom connector (OAuth 2.0) for meetings, past participants, and cloud recordings access\",\n enabled: false,\n },\n [FeatureSwitchKey.WorkdayConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description: \"Enable the Workday HCM and finance connector\",\n enabled: false,\n },\n\n [FeatureSwitchKey.CodexFastMode]: {\n maintainer: \"lancy@vm0.ai\",\n description:\n \"Enable Codex fast mode for ChatGPT subscription GPT 5.5 and GPT 5.6 web chat runs.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n },\n [FeatureSwitchKey.RealAgentInPreview]: {\n maintainer: \"ethan@vm0.ai\",\n description:\n \"Send preview chat runs through real agent CLIs instead of preview mock runners.\",\n enabled: false,\n },\n [FeatureSwitchKey.ComposerUploadPopover]: {\n maintainer: \"bingjie@vm0.ai\",\n description:\n \"Use the Upload popover in the chat composer instead of the legacy paperclip attachment button.\",\n enabled: false,\n userOverridable: false,\n },\n [FeatureSwitchKey.StructuredPrompt]: {\n maintainer: \"bingjie@vm0.ai\",\n description:\n \"Enable structured user prompt rendering, sends, and drafts while preserving the legacy content fallback.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n },\n [FeatureSwitchKey.ZapierConnector]: {\n maintainer: \"yuma@vm0.ai\",\n description:\n \"Enable the Zapier connector. When disabled, Zapier is hidden from the connectors list and cannot be connected.\",\n enabled: false,\n },\n [FeatureSwitchKey.HtmlArtifactCommentEditing]: {\n maintainer: \"bingjie@vm0.ai\",\n description:\n \"Enable the HTML artifact comment-editing workflow for collecting DOM comments and preparing instrumented working-copy edits.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n },\n [FeatureSwitchKey.ComputerUseDesktopPlugins]: {\n maintainer: \"lancy@vm0.ai\",\n description:\n \"Enable Zero Desktop Computer Use plugins for local resources, starting with the bundled filesystem plugin gateway.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n },\n [FeatureSwitchKey.AgentUnreadIndicators]: {\n maintainer: \"ethan@vm0.ai\",\n description:\n \"Show chat unread indicators in sidebar pinned agent lists and the conversation picker.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n },\n [FeatureSwitchKey.ChatThreadUnifiedSearch]: {\n maintainer: \"ethan@vm0.ai\",\n description:\n \"Show chat thread title results from the local event-driven thread cache in the command-shift-a conversation picker.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n },\n [FeatureSwitchKey.ComposerChatThreadSuggestions]: {\n maintainer: \"ethan@vm0.ai\",\n description:\n \"Suggest titled chat threads from the current agent when typing @ in the chat composer.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n },\n [FeatureSwitchKey.ThreeColumnNav]: {\n maintainer: \"ming@vm0.ai\",\n description:\n \"Slack-style three-column navigation: a labeled icon rail, a pinned-agents and chat-threads list column, and the conversation pane.\",\n enabled: false,\n // Ming only for the first pass; widen to staff once it settles.\n enabledEmailHashes: [\"54757055\"], // fnv1a(\"ming@vm0.ai\")\n },\n [FeatureSwitchKey.SidebarSubscriptionUsage]: {\n maintainer: \"ethan@vm0.ai\",\n description:\n \"Show Codex and Claude Code personal subscription usage in the Zero sidebar footer.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n },\n [FeatureSwitchKey.TeamsIntegration]: {\n maintainer: \"linghan@vm0.ai\",\n description:\n \"Show standalone Microsoft Teams integration settings, connect flows, and Works page entry points.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n },\n [FeatureSwitchKey.FeishuIntegration]: {\n maintainer: \"linghan@vm0.ai\",\n description:\n \"Show the Feishu direct-message integration and Works page entry point.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n },\n [FeatureSwitchKey.PresentationExport]: {\n maintainer: \"bingjie@vm0.ai\",\n description:\n \"Enable downloading presentation artifacts as PPTX files and uploading them as native, editable Google Slides decks.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n },\n [FeatureSwitchKey.Artifacts]: {\n maintainer: \"bingjie@vm0.ai\",\n description:\n \"Show the Artifacts manage page for generated artifacts in the current organization.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n },\n [FeatureSwitchKey.HostedArtifactVersions]: {\n maintainer: \"yuma@vm0.ai\",\n description:\n \"Create immutable hosted artifact versions behind stable site aliases.\",\n enabled: false,\n },\n [FeatureSwitchKey.VideoArtifactPosters]: {\n maintainer: \"bingjie@vm0.ai\",\n description:\n \"Generate poster images asynchronously when video artifacts are recorded.\",\n enabled: false,\n enabledUserHashes: [\"032a75d8\"],\n },\n [FeatureSwitchKey.WebsiteTemplateV2]: {\n maintainer: \"bingjie@vm0.ai\",\n description:\n \"Generate websites from refreshed self-contained template packages. When off, website generation uses the existing package versions.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n },\n [FeatureSwitchKey.PlanUpgradeGuidance]: {\n maintainer: \"ethan@vm0.ai\",\n description:\n \"Show plan-upgrade guidance in Zero CLI help and render billing plan links as rich chat cards.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n userOverridable: false,\n },\n [FeatureSwitchKey.OrgPlanEntitlementReads]: {\n maintainer: \"yuma@vm0.ai\",\n description:\n \"Read runtime plan capability limits from org_plan_entitlements instead of deriving them from org_metadata.tier.\",\n enabled: true,\n userOverridable: false,\n },\n [FeatureSwitchKey.WorkflowConnectorReadiness]: {\n maintainer: \"lancy@vm0.ai\",\n description:\n \"Show the manual connector readiness check on workflow settings pages.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n userOverridable: false,\n },\n [FeatureSwitchKey.ZeroMail]: {\n maintainer: \"ethan@vm0.ai\",\n description:\n \"Enable persistent Gmail and Outlook draft cards created through the Zero Mail CLI.\",\n enabled: false,\n enabledOrgIdHashes: STAFF_ORG_ID_HASHES,\n },\n [FeatureSwitchKey.ComposerConnectorPermissions]: {\n maintainer: \"ming@vm0.ai\",\n description:\n \"Show the configure-permissions entry in the chat composer connector popover, opening the agent×connector firewall dialog inline.\",\n enabled: false,\n userOverridable: true,\n },\n};\n\ninterface ResolvedHashes {\n readonly userHash?: string;\n readonly emailHash?: string;\n readonly orgIdHash?: string;\n}\n\nfunction evaluateSwitch(fs: FeatureSwitch, hashes: ResolvedHashes): boolean {\n if (fs.enabled) return true;\n if (hashes.userHash && fs.enabledUserHashes?.includes(hashes.userHash))\n return true;\n if (hashes.emailHash && fs.enabledEmailHashes?.includes(hashes.emailHash))\n return true;\n if (hashes.orgIdHash && fs.enabledOrgIdHashes?.includes(hashes.orgIdHash))\n return true;\n return false;\n}\n\n/**\n * Evaluate all feature switches at once for the given context.\n *\n * Computes identity hashes once and checks all switches synchronously.\n */\nexport function getAllFeatureStates(\n ctx?: FeatureSwitchContext,\n): Record<FeatureSwitchKey, boolean> {\n const switches = Object.values(FEATURE_SWITCHES);\n const hashes: ResolvedHashes = {\n userHash:\n ctx?.userId &&\n switches.some((s) => {\n return s.enabledUserHashes?.length;\n })\n ? fnv1a(ctx.userId)\n : undefined,\n emailHash:\n ctx?.email &&\n switches.some((s) => {\n return s.enabledEmailHashes?.length;\n })\n ? fnv1a(ctx.email.toLowerCase())\n : undefined,\n orgIdHash:\n ctx?.orgId &&\n switches.some((s) => {\n return s.enabledOrgIdHashes?.length;\n })\n ? fnv1a(ctx.orgId)\n : undefined,\n };\n\n const result = {} as Record<FeatureSwitchKey, boolean>;\n for (const key of Object.values(FeatureSwitchKey)) {\n result[key] = evaluateSwitch(FEATURE_SWITCHES[key], hashes);\n }\n\n if (ctx?.overrides) {\n for (const [key, value] of Object.entries(ctx.overrides)) {\n if (key in FEATURE_SWITCHES && value !== undefined) {\n result[key as FeatureSwitchKey] = value;\n }\n }\n }\n\n return result;\n}\n\n/**\n * Return the description for every feature switch.\n */\nexport function getFeatureSwitchDescriptions(): Record<\n FeatureSwitchKey,\n string | undefined\n> {\n const result = {} as Record<FeatureSwitchKey, string | undefined>;\n for (const key of Object.values(FeatureSwitchKey)) {\n result[key] = FEATURE_SWITCHES[key].description;\n }\n return result;\n}\n\n/**\n * Return display metadata for every feature switch.\n */\nexport function getFeatureSwitchMetadata(): Record<\n FeatureSwitchKey,\n FeatureSwitchMetadata\n> {\n const result = {} as Record<FeatureSwitchKey, FeatureSwitchMetadata>;\n for (const key of Object.values(FeatureSwitchKey)) {\n const featureSwitch = FEATURE_SWITCHES[key];\n result[key] = {\n maintainer: featureSwitch.maintainer,\n description: featureSwitch.description,\n userOverridable: featureSwitch.userOverridable !== false,\n };\n }\n return result;\n}\n\nexport function isUserOverridableFeatureSwitch(\n key: string,\n): key is FeatureSwitchKey {\n if (!(key in FEATURE_SWITCHES)) {\n return false;\n }\n return FEATURE_SWITCHES[key as FeatureSwitchKey].userOverridable !== false;\n}\n\nexport function getUserOverridableFeatureSwitchKeys(): readonly FeatureSwitchKey[] {\n return Object.values(FeatureSwitchKey).filter(isUserOverridableFeatureSwitch);\n}\n\nexport function filterUserOverridableFeatureSwitchOverrides(\n switches: Record<string, boolean>,\n): Record<string, boolean> {\n const filtered: Record<string, boolean> = {};\n for (const [key, value] of Object.entries(switches)) {\n if (isUserOverridableFeatureSwitch(key)) {\n filtered[key] = value;\n }\n }\n return filtered;\n}\n\n/**\n * Check if a feature is enabled for the given context.\n *\n * `ctx` is required so callers must pass identity (userId/orgId/email) or an\n * explicit `{}`. A switch gated by `enabledUserHashes` / `enabledOrgIdHashes`\n * silently returns `false` when ctx omits identity, which has caused bugs.\n * Client-side callers should usually read the platform `featureSwitch$` signal\n * instead — it also merges DB overrides on top of identity context.\n */\nexport function isFeatureEnabled(\n key: FeatureSwitchKey,\n ctx: FeatureSwitchContext,\n): boolean {\n const override = ctx.overrides?.[key];\n if (override !== undefined) {\n return override;\n }\n\n const featureSwitch = FEATURE_SWITCHES[key];\n if (featureSwitch.enabled) {\n return true;\n }\n if (ctx.userId && featureSwitch.enabledUserHashes?.length) {\n if (featureSwitch.enabledUserHashes.includes(fnv1a(ctx.userId)))\n return true;\n }\n if (ctx.email && featureSwitch.enabledEmailHashes?.length) {\n if (\n featureSwitch.enabledEmailHashes.includes(fnv1a(ctx.email.toLowerCase()))\n )\n return true;\n }\n if (ctx.orgId && featureSwitch.enabledOrgIdHashes?.length) {\n if (featureSwitch.enabledOrgIdHashes.includes(fnv1a(ctx.orgId)))\n return true;\n }\n return false;\n}\n","export { FeatureSwitchKey } from \"@vm0/connectors/feature-switch-key\";\n","/**\n * Identity hashing — FNV-1a 32-bit hash used to reference users / orgs / emails\n * without embedding plain-text identifiers in source code.\n *\n * Shared between the feature-switch registry (UI rollout targeting) and\n * `staff-org.ts` (authorization primitive). The hash is deterministic and\n * synchronous; no crypto API needed.\n */\n\nexport function fnv1a(input: string): string {\n let h = 2166136261 >>> 0;\n for (let i = 0; i < input.length; i++) {\n h ^= input.charCodeAt(i);\n h = Math.imul(h, 16777619) >>> 0;\n }\n return h.toString(16).padStart(8, \"0\");\n}\n\n/**\n * Hashes of internal staff org IDs.\n *\n * This list is the source of truth for `isStaffOrg()` — adding an entry here\n * grants that org access to every endpoint that uses `isStaffOrg` as an\n * authorization check. Treat changes with the same care as role grants.\n */\nexport const STAFF_ORG_ID_HASHES: readonly string[] = [\n \"afce210e\", // org_3ANttyrbWYJk6JKRSTRLEsbsDLe\n];\n","export interface ZeroTokenPayload {\n userId: string;\n runId: string;\n orgId: string;\n scope: string;\n capabilities: string[];\n iat: number;\n exp: number;\n}\n\n/**\n * Decode a ZERO_TOKEN JWT payload.\n * Only decodes — does NOT verify signature (server does that).\n * If no token is provided, reads from process.env.ZERO_TOKEN.\n * Returns undefined if token is missing, malformed, or not a zero-scoped token.\n */\nexport function decodeZeroTokenPayload(\n token?: string,\n): ZeroTokenPayload | undefined {\n const raw = token ?? process.env.ZERO_TOKEN;\n if (!raw) return undefined;\n\n const prefix = \"vm0_sandbox_\";\n if (!raw.startsWith(prefix)) return undefined;\n const jwt = raw.slice(prefix.length);\n\n const parts = jwt.split(\".\");\n if (parts.length !== 3) return undefined;\n\n try {\n const payload = JSON.parse(\n Buffer.from(parts[1]!, \"base64url\").toString(),\n ) as ZeroTokenPayload;\n if (payload.scope === \"zero\" && Array.isArray(payload.capabilities)) {\n return payload;\n }\n } catch {\n // Malformed token — fall through\n }\n return undefined;\n}\n"],"mappings":";;;;;;;;AAAA;;;ACAA;;;ACAA;;;ACAA;AASO,SAAS,MAAM,OAAuB;AAC3C,MAAI,IAAI,eAAe;AACvB,WAAS,IAAI,GAAG,IAAI,MAAM,QAAQ,KAAK;AACrC,SAAK,MAAM,WAAW,CAAC;AACvB,QAAI,KAAK,KAAK,GAAG,QAAQ,MAAM;AAAA,EACjC;AACA,SAAO,EAAE,SAAS,EAAE,EAAE,SAAS,GAAG,G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