@vm0/cli 9.131.0 → 9.131.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.
@@ -73642,7 +73642,7 @@ if (DSN) {
73642
73642
  init2({
73643
73643
  dsn: DSN,
73644
73644
  environment: process.env.SENTRY_ENVIRONMENT ?? "production",
73645
- release: "9.131.0",
73645
+ release: "9.131.1",
73646
73646
  sendDefaultPii: false,
73647
73647
  tracesSampleRate: 0,
73648
73648
  shutdownTimeout: 500,
@@ -73661,7 +73661,7 @@ if (DSN) {
73661
73661
  }
73662
73662
  });
73663
73663
  setContext("cli", {
73664
- version: "9.131.0",
73664
+ version: "9.131.1",
73665
73665
  command: process.argv.slice(2).join(" ")
73666
73666
  });
73667
73667
  setContext("runtime", {
@@ -91157,6 +91157,32 @@ var stripe = {
91157
91157
  }
91158
91158
  };
91159
91159
 
91160
+ // ../../packages/core/src/contracts/connectors/onyx.ts
91161
+ init_esm_shims();
91162
+ var onyx = {
91163
+ onyx: {
91164
+ label: "Onyx",
91165
+ helpText: "Connect your Onyx account to search internal knowledge bases, chat with AI agents, and index documents",
91166
+ environmentMapping: {
91167
+ ONYX_TOKEN: "$secrets.ONYX_TOKEN"
91168
+ },
91169
+ authMethods: {
91170
+ "api-token": {
91171
+ label: "API Key / PAT",
91172
+ helpText: "1. Log in to [Onyx Cloud](https://cloud.onyx.app)\n2. Go to **Settings \u2192 Accounts & Access**\n3. Click **Create New Token**\n4. Give it a name and choose an expiration\n5. Copy the token immediately \u2014 it is shown only once",
91173
+ secrets: {
91174
+ ONYX_TOKEN: {
91175
+ label: "API Key or Personal Access Token",
91176
+ required: true,
91177
+ placeholder: "onyx_pat_..."
91178
+ }
91179
+ }
91180
+ }
91181
+ },
91182
+ defaultAuthMethod: "api-token"
91183
+ }
91184
+ };
91185
+
91160
91186
  // ../../packages/core/src/contracts/connectors/openai.ts
91161
91187
  init_esm_shims();
91162
91188
  var openai = {
@@ -93863,6 +93889,7 @@ var CONNECTOR_TYPES_DEF = {
93863
93889
  ...atlassian,
93864
93890
  ...metaAds,
93865
93891
  ...stripe,
93892
+ ...onyx,
93866
93893
  ...openai,
93867
93894
  ...similarweb,
93868
93895
  ...perplexity,
@@ -101898,6 +101925,27 @@ var notionFirewall = {
101898
101925
  ]
101899
101926
  };
101900
101927
 
101928
+ // ../../packages/core/src/firewalls/onyx.generated.ts
101929
+ init_esm_shims();
101930
+ var onyxFirewall = {
101931
+ name: "onyx",
101932
+ description: "Onyx",
101933
+ placeholders: {
101934
+ ONYX_TOKEN: "onyx_pat_CoffeeSafeLocalCoffeeSafeLocal"
101935
+ },
101936
+ apis: [
101937
+ {
101938
+ base: "https://cloud.onyx.app",
101939
+ auth: {
101940
+ headers: {
101941
+ "Authorization": "Bearer ${{ secrets.ONYX_TOKEN }}"
101942
+ }
101943
+ },
101944
+ permissions: []
101945
+ }
101946
+ ]
101947
+ };
101948
+
101901
101949
  // ../../packages/core/src/firewalls/openai.generated.ts
101902
101950
  init_esm_shims();
101903
101951
  var openaiFirewall = {
@@ -105715,6 +105763,7 @@ var CONNECTOR_FIREWALLS = {
105715
105763
  n8n: n8nFirewall,
105716
105764
  neon: neonFirewall,
105717
105765
  notion: notionFirewall,
105766
+ onyx: onyxFirewall,
105718
105767
  openai: openaiFirewall,
105719
105768
  "outlook-calendar": outlookCalendarFirewall,
105720
105769
  "outlook-mail": outlookMailFirewall,
@@ -110830,7 +110879,6 @@ var unifiedRunRequestSchema = external_exports.object({
110830
110879
  vars: external_exports.record(external_exports.string(), external_exports.string()).optional(),
110831
110880
  secrets: external_exports.record(external_exports.string(), external_exports.string()).optional(),
110832
110881
  volumeVersions: external_exports.record(external_exports.string(), external_exports.string()).optional(),
110833
- memoryName: external_exports.string().optional(),
110834
110882
  // Additional volumes passed directly at run time (bypass compose)
110835
110883
  additionalVolumes: external_exports.array(
110836
110884
  external_exports.object({
@@ -110857,7 +110905,7 @@ var unifiedRunRequestSchema = external_exports.object({
110857
110905
  triggerSource: triggerSourceSchema.optional(),
110858
110906
  // Per-permission policies (e.g., { "github": { "actions:read": "allow" } })
110859
110907
  permissionPolicies: firewallPoliciesSchema.optional()
110860
- });
110908
+ }).passthrough();
110861
110909
  var createRunResponseSchema = external_exports.object({
110862
110910
  runId: external_exports.string(),
110863
110911
  status: runStatusSchema,
@@ -110901,8 +110949,7 @@ var runResultSchema = external_exports.object({
110901
110949
  conversationId: external_exports.string(),
110902
110950
  artifact: external_exports.record(external_exports.string(), external_exports.string()).optional(),
110903
110951
  // optional when run has no artifact
110904
- volumes: external_exports.record(external_exports.string(), external_exports.string()).optional(),
110905
- memory: external_exports.record(external_exports.string(), external_exports.string()).optional()
110952
+ volumes: external_exports.record(external_exports.string(), external_exports.string()).optional()
110906
110953
  });
110907
110954
  var runStateSchema = external_exports.object({
110908
110955
  status: runStatusSchema,
@@ -111324,7 +111371,7 @@ var runsQueueContract = c4.router({
111324
111371
  // ../../packages/core/src/contracts/storages.ts
111325
111372
  init_esm_shims();
111326
111373
  var c5 = initContract();
111327
- var storageTypeSchema = external_exports.enum(["volume", "artifact", "memory"]);
111374
+ var storageTypeSchema = external_exports.enum(["volume", "artifact"]);
111328
111375
  var versionQuerySchema = external_exports.string().regex(/^[a-f0-9]{8,64}$/i, "Version must be 8-64 hex characters").optional();
111329
111376
  var uploadStorageResponseSchema = external_exports.object({
111330
111377
  name: external_exports.string(),
@@ -111556,10 +111603,6 @@ var artifactSnapshotSchema = external_exports.object({
111556
111603
  artifactName: external_exports.string(),
111557
111604
  artifactVersion: external_exports.string()
111558
111605
  });
111559
- var memorySnapshotSchema = external_exports.object({
111560
- memoryName: external_exports.string(),
111561
- memoryVersion: external_exports.string()
111562
- });
111563
111606
  var volumeVersionsSnapshotSchema = external_exports.object({
111564
111607
  versions: external_exports.record(external_exports.string(), external_exports.string())
111565
111608
  });
@@ -111643,16 +111686,13 @@ var webhookCheckpointsContract = c6.router({
111643
111686
  64,
111644
111687
  "cliAgentSessionHistoryHash must be a 64-character SHA-256 hex string"
111645
111688
  ),
111646
- // Legacy singleton artifact snapshot. The guest-agent still emits this
111647
- // when exactly one artifact is snapshotted so older servers can read it;
111648
- // new code must read artifactSnapshots instead.
111689
+ // Legacy singleton artifact snapshot. The guest-agent may still emit
111690
+ // this when exactly one artifact is snapshotted during rollout; the
111691
+ // server folds it into artifactSnapshots before persisting.
111649
111692
  artifactSnapshot: artifactSnapshotSchema.optional(),
111650
- // Multi-artifact snapshot map: artifact name → version id. Emitted
111651
- // unconditionally by the guest-agent (empty object when nothing to
111652
- // snapshot). Double-written to both the legacy single-entry column and
111653
- // the new artifact_snapshots JSONB column on checkpoints.
111693
+ // Multi-artifact snapshot map: artifact name → version id. Authoritative
111694
+ // payload persisted to checkpoints.artifact_snapshots.
111654
111695
  artifactSnapshots: external_exports.record(external_exports.string(), external_exports.string()).optional(),
111655
- memorySnapshot: memorySnapshotSchema.optional(),
111656
111696
  volumeVersionsSnapshot: volumeVersionsSnapshotSchema.optional()
111657
111697
  }),
111658
111698
  responses: {
@@ -111660,9 +111700,7 @@ var webhookCheckpointsContract = c6.router({
111660
111700
  checkpointId: external_exports.string(),
111661
111701
  agentSessionId: external_exports.string(),
111662
111702
  conversationId: external_exports.string(),
111663
- artifact: artifactSnapshotSchema.optional(),
111664
111703
  artifacts: external_exports.record(external_exports.string(), external_exports.string()).optional(),
111665
- memory: memorySnapshotSchema.optional(),
111666
111704
  volumes: external_exports.record(external_exports.string(), external_exports.string()).optional()
111667
111705
  }),
111668
111706
  400: apiErrorSchema,
@@ -111935,15 +111973,16 @@ var webhookUsageContract = c6.router({
111935
111973
  summary: "Receive proxy-extracted usage data from sandbox"
111936
111974
  }
111937
111975
  });
111938
- var webhookConnectorBillingContract = c6.router({
111976
+ var webhookUsageEventContract = c6.router({
111939
111977
  send: {
111940
111978
  method: "POST",
111941
- path: "/api/webhooks/agent/connector-billing",
111979
+ path: "/api/webhooks/agent/usage-event",
111942
111980
  headers: authHeadersSchema,
111943
111981
  body: external_exports.object({
111944
111982
  runId: external_exports.string().min(1, "runId is required"),
111945
- flowId: external_exports.string().min(1).max(100),
111946
- connector: external_exports.string().min(1).max(50),
111983
+ idempotencyKey: external_exports.uuid(),
111984
+ kind: external_exports.enum(["connector"]),
111985
+ provider: external_exports.string().min(1).max(100),
111947
111986
  category: external_exports.string().min(1).max(100),
111948
111987
  quantity: external_exports.number().int().min(0)
111949
111988
  }),
@@ -111956,7 +111995,7 @@ var webhookConnectorBillingContract = c6.router({
111956
111995
  404: apiErrorSchema,
111957
111996
  500: apiErrorSchema
111958
111997
  },
111959
- summary: "Receive connector billing data from sandbox"
111998
+ summary: "Receive usage event data from sandbox"
111960
111999
  }
111961
112000
  });
111962
112001
 
@@ -112684,10 +112723,6 @@ var agentComposeSnapshotSchema = external_exports.object({
112684
112723
  vars: external_exports.record(external_exports.string(), external_exports.string()).optional(),
112685
112724
  secretNames: external_exports.array(external_exports.string()).optional()
112686
112725
  });
112687
- var artifactSnapshotSchema2 = external_exports.object({
112688
- artifactName: external_exports.string(),
112689
- artifactVersion: external_exports.string()
112690
- });
112691
112726
  var volumeVersionsSnapshotSchema2 = external_exports.object({
112692
112727
  versions: external_exports.record(external_exports.string(), external_exports.string())
112693
112728
  });
@@ -112696,11 +112731,8 @@ var checkpointResponseSchema = external_exports.object({
112696
112731
  runId: external_exports.string(),
112697
112732
  conversationId: external_exports.string(),
112698
112733
  agentComposeSnapshot: agentComposeSnapshotSchema,
112699
- // Legacy single-artifact snapshot. Populated from artifact_snapshots when
112700
- // the checkpoint has exactly one entry, left null otherwise.
112701
- artifactSnapshot: artifactSnapshotSchema2.nullable(),
112702
112734
  // Multi-artifact snapshot map: artifact name → version id. Null when the
112703
- // checkpoint predates the multi-mount migration or has no artifacts.
112735
+ // checkpoint has no artifacts.
112704
112736
  artifactSnapshots: external_exports.record(external_exports.string(), external_exports.string()).nullable(),
112705
112737
  volumeVersionsSnapshot: volumeVersionsSnapshotSchema2.nullable(),
112706
112738
  createdAt: external_exports.string()
@@ -113199,8 +113231,7 @@ var artifactEntrySchema = external_exports.object({
113199
113231
  });
113200
113232
  var storageManifestSchema = external_exports.object({
113201
113233
  storages: external_exports.array(storageEntrySchema),
113202
- artifacts: external_exports.array(artifactEntrySchema),
113203
- memory: artifactEntrySchema.nullable()
113234
+ artifacts: external_exports.array(artifactEntrySchema)
113204
113235
  });
113205
113236
  var resumeSessionSchema = external_exports.object({
113206
113237
  sessionId: external_exports.string(),
@@ -113224,8 +113255,6 @@ var storedExecutionContextSchema = external_exports.object({
113224
113255
  apiStartTime: external_exports.number().optional(),
113225
113256
  // User's timezone preference (IANA format, e.g., "Asia/Shanghai")
113226
113257
  userTimezone: external_exports.string().optional(),
113227
- // Memory storage name (for first-run when manifest.memory is null)
113228
- memoryName: external_exports.string().optional(),
113229
113258
  // Firewall for proxy-side token replacement (complete config, all permissions)
113230
113259
  firewalls: firewallsSchema.optional(),
113231
113260
  // Per-firewall network policies: which permissions are granted + unknownPolicy
@@ -113269,8 +113298,6 @@ var executionContextSchema = external_exports.object({
113269
113298
  apiStartTime: external_exports.number().optional(),
113270
113299
  // User's timezone preference (IANA format, e.g., "Asia/Shanghai")
113271
113300
  userTimezone: external_exports.string().optional(),
113272
- // Memory storage name (for first-run when manifest.memory is null)
113273
- memoryName: external_exports.string().optional(),
113274
113301
  // Firewall for proxy-side token replacement (complete config, all permissions)
113275
113302
  firewalls: firewallsSchema.optional(),
113276
113303
  // Per-firewall network policies: which permissions are granted + unknownPolicy
@@ -114672,7 +114699,6 @@ var zeroComposesListContract = c25.router({
114672
114699
  init_esm_shims();
114673
114700
  var zeroRunRequestSchema = unifiedRunRequestSchema.omit({
114674
114701
  triggerSource: true,
114675
- memoryName: true,
114676
114702
  artifactName: true,
114677
114703
  artifactVersion: true,
114678
114704
  artifacts: true,
@@ -114811,7 +114837,6 @@ var runContextResponseSchema = external_exports.object({
114811
114837
  networkPolicies: networkPoliciesSchema.nullable(),
114812
114838
  volumes: external_exports.array(runContextVolumeSchema),
114813
114839
  artifact: runContextArtifactSchema.nullable(),
114814
- memory: runContextArtifactSchema.nullable(),
114815
114840
  featureFlags: external_exports.record(external_exports.string(), external_exports.boolean()).nullable()
114816
114841
  });
114817
114842
  var zeroRunContextContract = c26.router({
@@ -115935,7 +115960,7 @@ var zeroUsageInsightContract = c37.router({
115935
115960
  path: "/api/zero/usage/insight",
115936
115961
  headers: authHeadersSchema,
115937
115962
  query: external_exports.object({
115938
- range: external_exports.enum(["24h", "7d", "28d"]),
115963
+ range: external_exports.enum(["today", "yesterday", "7d", "28d"]),
115939
115964
  groupBy: external_exports.enum(["source", "agent"]),
115940
115965
  tz: external_exports.string()
115941
115966
  }),
@@ -116565,11 +116590,6 @@ var zeroVoiceIoQuotaContract = c51.router({
116565
116590
  // ../../packages/core/src/contracts/zero-voice-chat-candidate.ts
116566
116591
  init_esm_shims();
116567
116592
  var c52 = initContract();
116568
- var voiceChatCandidateSessionStatusSchema = external_exports.enum([
116569
- "active",
116570
- "ended",
116571
- "timeout"
116572
- ]);
116573
116593
  var voiceChatCandidateItemRoleSchema = external_exports.enum([
116574
116594
  "user",
116575
116595
  "assistant",
@@ -116593,16 +116613,13 @@ var voiceChatCandidateSessionSchema = external_exports.object({
116593
116613
  userId: external_exports.string(),
116594
116614
  agentId: external_exports.uuid().nullable(),
116595
116615
  mode: external_exports.literal("chat"),
116596
- status: voiceChatCandidateSessionStatusSchema,
116597
116616
  conversationSummary: external_exports.string().nullable(),
116598
116617
  workingTasksSummary: external_exports.string().nullable(),
116599
116618
  finishedTasksSummary: external_exports.string().nullable(),
116600
116619
  summarySeq: external_exports.number().int(),
116601
116620
  summaryVersion: external_exports.number().int(),
116602
116621
  lastSummaryAt: external_exports.string().nullable(),
116603
- createdAt: external_exports.string(),
116604
- lastHeartbeatAt: external_exports.string(),
116605
- endedAt: external_exports.string().nullable()
116622
+ createdAt: external_exports.string()
116606
116623
  });
116607
116624
  var voiceChatCandidateItemSchema = external_exports.object({
116608
116625
  id: external_exports.uuid(),
@@ -116703,52 +116720,6 @@ var zeroVoiceChatCandidateContract = c52.router({
116703
116720
  },
116704
116721
  summary: "List voice-chat-candidate sessions for the current user"
116705
116722
  },
116706
- reenterSession: {
116707
- method: "POST",
116708
- path: "/api/zero/voice-chat-candidate/:id/reenter",
116709
- headers: authHeadersSchema,
116710
- pathParams: external_exports.object({ id: external_exports.uuid() }),
116711
- body: external_exports.object({}),
116712
- responses: {
116713
- 200: external_exports.object({
116714
- session: voiceChatCandidateSessionSchema,
116715
- recentTaskLogs: external_exports.string(),
116716
- finishedTasksFullText: external_exports.string(),
116717
- talkerInstructions: external_exports.string(),
116718
- talkerInstructionTokens: external_exports.number().int().nonnegative()
116719
- }),
116720
- 401: apiErrorSchema,
116721
- 403: apiErrorSchema,
116722
- 404: apiErrorSchema
116723
- },
116724
- summary: "Reactivate and load a voice-chat-candidate session, re-computing talker instructions"
116725
- },
116726
- endSession: {
116727
- method: "POST",
116728
- path: "/api/zero/voice-chat-candidate/:id/end",
116729
- headers: authHeadersSchema,
116730
- pathParams: external_exports.object({ id: external_exports.uuid() }),
116731
- body: external_exports.object({}),
116732
- responses: {
116733
- 200: okResponseSchema2,
116734
- 401: apiErrorSchema,
116735
- 404: apiErrorSchema
116736
- },
116737
- summary: "End a voice-chat-candidate session"
116738
- },
116739
- heartbeat: {
116740
- method: "POST",
116741
- path: "/api/zero/voice-chat-candidate/:id/heartbeat",
116742
- headers: authHeadersSchema,
116743
- pathParams: external_exports.object({ id: external_exports.uuid() }),
116744
- body: external_exports.object({}),
116745
- responses: {
116746
- 200: okResponseSchema2,
116747
- 401: apiErrorSchema,
116748
- 404: apiErrorSchema
116749
- },
116750
- summary: "Keep a voice-chat-candidate session alive"
116751
- },
116752
116723
  triggerReasoning: {
116753
116724
  method: "POST",
116754
116725
  path: "/api/zero/voice-chat-candidate/:id/trigger-reasoning",
@@ -116776,18 +116747,28 @@ var zeroVoiceChatCandidateContract = c52.router({
116776
116747
  },
116777
116748
  summary: "Append a conversation item to a voice-chat-candidate session"
116778
116749
  },
116750
+ /**
116751
+ * task_result items are server-written when a tasker run completes. The
116752
+ * client pulls them incrementally via `sinceSeq` (no cursor = baseline
116753
+ * probe returning at most the latest row) and forwards them to the Talker
116754
+ * so it can narrate slow-brain outcomes. User / assistant transcripts are
116755
+ * NOT exposed via HTTP — the client holds the last utterance locally; the
116756
+ * DB copy is server-side only and feeds the Reasoner's summary pipeline.
116757
+ */
116779
116758
  readItems: {
116780
116759
  method: "GET",
116781
- path: "/api/zero/voice-chat-candidate/:id/items",
116760
+ path: "/api/zero/voice-chat-candidate/:id/transcript/task-results",
116782
116761
  headers: authHeadersSchema,
116783
116762
  pathParams: external_exports.object({ id: external_exports.uuid() }),
116784
- query: external_exports.object({ after: external_exports.coerce.number().int().optional() }),
116763
+ query: external_exports.object({
116764
+ sinceSeq: external_exports.coerce.number().int().nonnegative().optional()
116765
+ }),
116785
116766
  responses: {
116786
116767
  200: external_exports.object({ items: external_exports.array(voiceChatCandidateItemSchema) }),
116787
116768
  401: apiErrorSchema,
116788
116769
  404: apiErrorSchema
116789
116770
  },
116790
- summary: "Read conversation items from a voice-chat-candidate session"
116771
+ summary: "Read task_result items with seq cursor (for Talker injection only)"
116791
116772
  },
116792
116773
  createTask: {
116793
116774
  method: "POST",
@@ -116803,6 +116784,13 @@ var zeroVoiceChatCandidateContract = c52.router({
116803
116784
  },
116804
116785
  summary: "Create a task from the Talker's createTask tool call"
116805
116786
  },
116787
+ /**
116788
+ * Task list for the Trinity sidebar. Returns every still-running task
116789
+ * (pending / queued / running) in chronological ASC order, followed by up
116790
+ * to the 3 most-recently-finished tasks (done / failed) in finishedAt DESC
116791
+ * order. Full replace per Ably tick — no cursor. Older finished tasks drop
116792
+ * off; the UI shows them briefly as context and then tidies itself.
116793
+ */
116806
116794
  listTasks: {
116807
116795
  method: "GET",
116808
116796
  path: "/api/zero/voice-chat-candidate/:id/tasks",
@@ -116813,7 +116801,7 @@ var zeroVoiceChatCandidateContract = c52.router({
116813
116801
  401: apiErrorSchema,
116814
116802
  404: apiErrorSchema
116815
116803
  },
116816
- summary: "List voice-chat-candidate tasks for a session"
116804
+ summary: "List active + recently-finished tasks for a session"
116817
116805
  },
116818
116806
  token: {
116819
116807
  method: "POST",
@@ -117537,6 +117525,11 @@ var FEATURE_SWITCHES = {
117537
117525
  description: "Gate the entire platform-managed connector UI (Enable button and POST /api/zero/platform-connectors/:type). When off, only api-token and OAuth methods surface in connectors list/search, and the enable endpoint 404s. Staff-only during rollout.",
117538
117526
  enabled: false,
117539
117527
  enabledOrgIdHashes: STAFF_ORG_ID_HASHES
117528
+ },
117529
+ ["trinity" /* Trinity */]: {
117530
+ maintainer: "ethan@vm0.ai",
117531
+ description: "Embed the candidate voice-chat mic toggle + voice-mode layout into the agent chat page. Gates the mic launcher, composer swap, and status/subtitle/task-card UI.",
117532
+ enabled: false
117540
117533
  }
117541
117534
  };
117542
117535
  function isFeatureEnabled(key, ctx) {
@@ -120179,4 +120172,4 @@ undici/lib/web/fetch/body.js:
120179
120172
  undici/lib/web/websocket/frame.js:
120180
120173
  (*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
120181
120174
  */
120182
- //# sourceMappingURL=chunk-65M57PU6.js.map
120175
+ //# sourceMappingURL=chunk-BS3XRRR3.js.map