@vm0/cli 9.88.0 → 9.89.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.
@@ -47,7 +47,7 @@ if (DSN) {
47
47
  Sentry.init({
48
48
  dsn: DSN,
49
49
  environment: process.env.SENTRY_ENVIRONMENT ?? "production",
50
- release: "9.88.0",
50
+ release: "9.89.0",
51
51
  sendDefaultPii: false,
52
52
  tracesSampleRate: 0,
53
53
  shutdownTimeout: 500,
@@ -66,7 +66,7 @@ if (DSN) {
66
66
  }
67
67
  });
68
68
  Sentry.setContext("cli", {
69
- version: "9.88.0",
69
+ version: "9.89.0",
70
70
  command: process.argv.slice(2).join(" ")
71
71
  });
72
72
  Sentry.setContext("runtime", {
@@ -810,6 +810,7 @@ var logEntrySchema = z5.object({
810
810
  orgSlug: z5.string().nullable(),
811
811
  framework: z5.string().nullable(),
812
812
  triggerSource: triggerSourceSchema.nullable(),
813
+ triggerAgentName: z5.string().nullable(),
813
814
  scheduleId: z5.string().nullable(),
814
815
  status: logStatusSchema,
815
816
  createdAt: z5.string(),
@@ -837,7 +838,9 @@ var logDetailSchema = z5.object({
837
838
  displayName: z5.string().nullable(),
838
839
  framework: z5.string().nullable(),
839
840
  modelProvider: z5.string().nullable(),
841
+ selectedModel: z5.string().nullable(),
840
842
  triggerSource: triggerSourceSchema.nullable(),
843
+ triggerAgentName: z5.string().nullable(),
841
844
  scheduleId: z5.string().nullable(),
842
845
  status: logStatusSchema,
843
846
  prompt: z5.string(),
@@ -16595,6 +16598,7 @@ var skillsResolveContract = c16.router({
16595
16598
  // ../../packages/core/src/contracts/zero-agents.ts
16596
16599
  import { z as z26 } from "zod";
16597
16600
  var c17 = initContract();
16601
+ var zeroAgentCustomSkillNameSchema = z26.string().min(2).max(64).regex(/^[a-z0-9][a-z0-9-]*[a-z0-9]$/);
16598
16602
  var zeroAgentResponseSchema = z26.object({
16599
16603
  agentId: z26.string(),
16600
16604
  description: z26.string().nullable(),
@@ -16608,7 +16612,8 @@ var zeroAgentRequestSchema = z26.object({
16608
16612
  description: z26.string().optional(),
16609
16613
  displayName: z26.string().optional(),
16610
16614
  sound: z26.string().optional(),
16611
- avatarUrl: z26.string().optional()
16615
+ avatarUrl: z26.string().optional(),
16616
+ customSkills: z26.array(zeroAgentCustomSkillNameSchema).optional()
16612
16617
  });
16613
16618
  var zeroAgentMetadataRequestSchema = z26.object({
16614
16619
  displayName: z26.string().optional(),
@@ -16760,7 +16765,6 @@ var zeroAgentInstructionsContract = c17.router({
16760
16765
  summary: "Update zero agent instructions"
16761
16766
  }
16762
16767
  });
16763
- var zeroAgentCustomSkillNameSchema = z26.string().min(2).max(64).regex(/^[a-z0-9][a-z0-9-]*[a-z0-9]$/);
16764
16768
  var zeroAgentCustomSkillSchema = z26.object({
16765
16769
  name: zeroAgentCustomSkillNameSchema,
16766
16770
  displayName: z26.string().max(256).nullable(),
@@ -16865,6 +16869,83 @@ var zeroAgentSkillsDetailContract = c17.router({
16865
16869
  summary: "Delete custom skill"
16866
16870
  }
16867
16871
  });
16872
+ var firewallAccessRequestStatusSchema = z26.enum([
16873
+ "pending",
16874
+ "approved",
16875
+ "rejected"
16876
+ ]);
16877
+ var firewallAccessRequestResponseSchema = z26.object({
16878
+ id: z26.string().uuid(),
16879
+ agentId: z26.string().uuid(),
16880
+ firewallRef: z26.string(),
16881
+ permission: z26.string(),
16882
+ method: z26.string().nullable(),
16883
+ path: z26.string().nullable(),
16884
+ reason: z26.string().nullable(),
16885
+ status: firewallAccessRequestStatusSchema,
16886
+ requesterUserId: z26.string(),
16887
+ resolvedBy: z26.string().nullable(),
16888
+ resolvedAt: z26.string().nullable(),
16889
+ createdAt: z26.string()
16890
+ });
16891
+ var createFirewallAccessRequestSchema = z26.object({
16892
+ agentId: z26.string().uuid(),
16893
+ firewallRef: z26.string(),
16894
+ permission: z26.string(),
16895
+ method: z26.string().optional(),
16896
+ path: z26.string().optional(),
16897
+ reason: z26.string().optional()
16898
+ });
16899
+ var resolveFirewallAccessRequestSchema = z26.object({
16900
+ requestId: z26.string().uuid(),
16901
+ action: z26.enum(["approve", "reject"])
16902
+ });
16903
+ var firewallAccessRequestsCreateContract = c17.router({
16904
+ create: {
16905
+ method: "POST",
16906
+ path: "/api/zero/firewall-access-requests",
16907
+ headers: authHeadersSchema,
16908
+ body: createFirewallAccessRequestSchema,
16909
+ responses: {
16910
+ 201: firewallAccessRequestResponseSchema,
16911
+ 400: apiErrorSchema,
16912
+ 401: apiErrorSchema,
16913
+ 403: apiErrorSchema,
16914
+ 404: apiErrorSchema
16915
+ },
16916
+ summary: "Create firewall access request"
16917
+ }
16918
+ });
16919
+ var firewallAccessRequestsListContract = c17.router({
16920
+ list: {
16921
+ method: "GET",
16922
+ path: "/api/zero/firewall-access-requests",
16923
+ headers: authHeadersSchema,
16924
+ responses: {
16925
+ 200: z26.array(firewallAccessRequestResponseSchema),
16926
+ 400: apiErrorSchema,
16927
+ 401: apiErrorSchema,
16928
+ 403: apiErrorSchema
16929
+ },
16930
+ summary: "List firewall access requests for an agent"
16931
+ }
16932
+ });
16933
+ var firewallAccessRequestsResolveContract = c17.router({
16934
+ resolve: {
16935
+ method: "PUT",
16936
+ path: "/api/zero/firewall-access-requests",
16937
+ headers: authHeadersSchema,
16938
+ body: resolveFirewallAccessRequestSchema,
16939
+ responses: {
16940
+ 200: firewallAccessRequestResponseSchema,
16941
+ 400: apiErrorSchema,
16942
+ 401: apiErrorSchema,
16943
+ 403: apiErrorSchema,
16944
+ 404: apiErrorSchema
16945
+ },
16946
+ summary: "Resolve (approve/reject) a firewall access request (admin only)"
16947
+ }
16948
+ });
16868
16949
 
16869
16950
  // ../../packages/core/src/contracts/user-connectors.ts
16870
16951
  import { z as z27 } from "zod";
@@ -17473,6 +17554,61 @@ var zeroRunAgentEventsContract = c25.router({
17473
17554
  summary: "Get agent events with pagination (zero proxy)"
17474
17555
  }
17475
17556
  });
17557
+ var runContextVolumeSchema = z31.object({
17558
+ name: z31.string(),
17559
+ mountPath: z31.string(),
17560
+ vasStorageName: z31.string(),
17561
+ vasVersionId: z31.string()
17562
+ });
17563
+ var runContextArtifactSchema = z31.object({
17564
+ mountPath: z31.string(),
17565
+ vasStorageName: z31.string(),
17566
+ vasVersionId: z31.string()
17567
+ });
17568
+ var runContextFirewallSchema = z31.object({
17569
+ name: z31.string(),
17570
+ ref: z31.string(),
17571
+ apis: z31.array(
17572
+ z31.object({
17573
+ base: z31.string(),
17574
+ permissions: z31.array(
17575
+ z31.object({
17576
+ name: z31.string(),
17577
+ description: z31.string().optional(),
17578
+ rules: z31.array(z31.string())
17579
+ })
17580
+ ).optional()
17581
+ })
17582
+ )
17583
+ });
17584
+ var runContextResponseSchema = z31.object({
17585
+ prompt: z31.string(),
17586
+ appendSystemPrompt: z31.string().nullable(),
17587
+ secretNames: z31.array(z31.string()),
17588
+ vars: z31.record(z31.string(), z31.string()).nullable(),
17589
+ environment: z31.record(z31.string(), z31.string()),
17590
+ firewalls: z31.array(runContextFirewallSchema),
17591
+ volumes: z31.array(runContextVolumeSchema),
17592
+ artifact: runContextArtifactSchema.nullable(),
17593
+ memory: runContextArtifactSchema.nullable()
17594
+ });
17595
+ var zeroRunContextContract = c25.router({
17596
+ getContext: {
17597
+ method: "GET",
17598
+ path: "/api/zero/runs/:id/context",
17599
+ headers: authHeadersSchema,
17600
+ pathParams: z31.object({
17601
+ id: z31.string().min(1, "Run ID is required")
17602
+ }),
17603
+ responses: {
17604
+ 200: runContextResponseSchema,
17605
+ 400: apiErrorSchema,
17606
+ 401: apiErrorSchema,
17607
+ 404: apiErrorSchema
17608
+ },
17609
+ summary: "Get run execution context snapshot for debugging"
17610
+ }
17611
+ });
17476
17612
 
17477
17613
  // ../../packages/core/src/contracts/zero-schedules.ts
17478
17614
  import { z as z32 } from "zod";
@@ -18621,6 +18757,17 @@ var FEATURE_SWITCHES = {
18621
18757
  ["creditAddOn" /* CreditAddOn */]: {
18622
18758
  maintainer: "ethan@vm0.ai",
18623
18759
  enabled: false
18760
+ },
18761
+ ["modelDetail" /* ModelDetail */]: {
18762
+ maintainer: "ethan@vm0.ai",
18763
+ enabled: false,
18764
+ enabledOrgIdHashes: STAFF_ORG_ID_HASHES
18765
+ },
18766
+ ["runContext" /* RunContext */]: {
18767
+ maintainer: "ethan@vm0.ai",
18768
+ enabled: false,
18769
+ enabledUserHashes: STAFF_USER_HASHES,
18770
+ enabledOrgIdHashes: STAFF_ORG_ID_HASHES
18624
18771
  }
18625
18772
  };
18626
18773
  async function isFeatureEnabled(key, ctx) {
@@ -20664,4 +20811,4 @@ export {
20664
20811
  pollEvents,
20665
20812
  showNextSteps
20666
20813
  };
20667
- //# sourceMappingURL=chunk-NM4FYPVK.js.map
20814
+ //# sourceMappingURL=chunk-AM6X5N5J.js.map