@vm0/cli 9.121.0 → 9.121.2

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.
@@ -73649,7 +73649,7 @@ if (DSN) {
73649
73649
  init2({
73650
73650
  dsn: DSN,
73651
73651
  environment: process.env.SENTRY_ENVIRONMENT ?? "production",
73652
- release: "9.121.0",
73652
+ release: "9.121.2",
73653
73653
  sendDefaultPii: false,
73654
73654
  tracesSampleRate: 0,
73655
73655
  shutdownTimeout: 500,
@@ -73668,7 +73668,7 @@ if (DSN) {
73668
73668
  }
73669
73669
  });
73670
73670
  setContext("cli", {
73671
- version: "9.121.0",
73671
+ version: "9.121.2",
73672
73672
  command: process.argv.slice(2).join(" ")
73673
73673
  });
73674
73674
  setContext("runtime", {
@@ -109788,22 +109788,13 @@ var storedChatMessageSchema = external_exports.object({
109788
109788
  attachFiles: external_exports.array(resolvedAttachFileSchema).optional(),
109789
109789
  createdAt: external_exports.string()
109790
109790
  });
109791
- var chatMessageWithIdSchema = external_exports.object({
109792
- id: external_exports.string(),
109793
- role: external_exports.enum(["user", "assistant"]),
109794
- content: external_exports.string().nullable(),
109795
- runId: external_exports.string().optional(),
109796
- error: external_exports.string().optional(),
109797
- status: external_exports.string().optional(),
109798
- sequenceNumber: external_exports.number().nullable().optional(),
109799
- createdAt: external_exports.string()
109800
- });
109801
109791
  var chatThreadDetailSchema = external_exports.object({
109802
109792
  id: external_exports.string(),
109803
109793
  title: external_exports.string().nullable(),
109804
109794
  agentId: external_exports.string(),
109805
109795
  chatMessages: external_exports.array(storedChatMessageSchema),
109806
109796
  latestSessionId: external_exports.string().nullable(),
109797
+ activeRunIds: external_exports.array(external_exports.string()),
109807
109798
  createdAt: external_exports.string(),
109808
109799
  updatedAt: external_exports.string(),
109809
109800
  draftContent: external_exports.string().nullable().optional(),
@@ -109894,27 +109885,6 @@ var chatThreadByIdContract = c11.router({
109894
109885
  body: c11.noBody()
109895
109886
  }
109896
109887
  });
109897
- var chatThreadMessagesContract = c11.router({
109898
- list: {
109899
- method: "GET",
109900
- path: "/api/zero/chat-threads/:id/messages",
109901
- headers: authHeadersSchema,
109902
- pathParams: external_exports.object({ id: external_exports.string() }),
109903
- query: external_exports.object({
109904
- /**
109905
- * Cursor: return only messages inserted after the message with this ID.
109906
- * When omitted, all messages in the thread are returned.
109907
- */
109908
- sinceId: external_exports.string().uuid().optional()
109909
- }),
109910
- responses: {
109911
- 200: external_exports.object({ messages: external_exports.array(chatMessageWithIdSchema) }),
109912
- 401: apiErrorSchema,
109913
- 404: apiErrorSchema
109914
- },
109915
- summary: "List messages in a chat thread with optional sinceId cursor"
109916
- }
109917
- });
109918
109888
  var chatMessagesContract = c11.router({
109919
109889
  send: {
109920
109890
  method: "POST",
@@ -109928,7 +109898,11 @@ var chatMessagesContract = c11.router({
109928
109898
  // Optional for backward compatibility: older clients that omit this field
109929
109899
  // still trigger title generation (server guards with !== false, not === true).
109930
109900
  hasTextContent: external_exports.boolean().optional(),
109931
- attachFiles: external_exports.array(attachFileSchema).optional()
109901
+ attachFiles: external_exports.array(attachFileSchema).optional(),
109902
+ // Client-generated UUID used as the user message's primary key.
109903
+ // Lets the client render an optimistic row and reconcile with the
109904
+ // server row by id — no temp-id swap, no React remount.
109905
+ clientMessageId: external_exports.string().uuid().optional()
109932
109906
  }),
109933
109907
  responses: {
109934
109908
  201: external_exports.object({
@@ -109945,6 +109919,36 @@ var chatMessagesContract = c11.router({
109945
109919
  summary: "Send a chat message (create thread + run + association)"
109946
109920
  }
109947
109921
  });
109922
+ var pagedChatMessageSchema = external_exports.object({
109923
+ id: external_exports.string(),
109924
+ role: external_exports.enum(["user", "assistant"]),
109925
+ content: external_exports.string().nullable(),
109926
+ runId: external_exports.string().optional(),
109927
+ error: external_exports.string().optional(),
109928
+ status: external_exports.string().optional(),
109929
+ createdAt: external_exports.string()
109930
+ });
109931
+ var chatThreadMessagesContract = c11.router({
109932
+ list: {
109933
+ method: "GET",
109934
+ path: "/api/zero/chat-threads/:threadId/messages",
109935
+ headers: authHeadersSchema,
109936
+ pathParams: external_exports.object({ threadId: external_exports.string() }),
109937
+ query: external_exports.object({
109938
+ sinceId: external_exports.string().uuid().optional(),
109939
+ limit: external_exports.coerce.number().min(1).max(50).default(50)
109940
+ }),
109941
+ responses: {
109942
+ 200: external_exports.object({
109943
+ messages: external_exports.array(pagedChatMessageSchema),
109944
+ hasMore: external_exports.boolean()
109945
+ }),
109946
+ 401: apiErrorSchema,
109947
+ 404: apiErrorSchema
109948
+ },
109949
+ summary: "Get paginated chat messages for a thread"
109950
+ }
109951
+ });
109948
109952
 
109949
109953
  // ../../packages/core/src/contracts/runners.ts
109950
109954
  init_esm_shims();
@@ -113522,6 +113526,12 @@ var FEATURE_SWITCHES = {
113522
113526
  description: "Show Run History tab on schedules page and Chat-from-schedule button on activity detail",
113523
113527
  enabled: false,
113524
113528
  enabledOrgIdHashes: STAFF_ORG_ID_HASHES
113529
+ },
113530
+ ["slackAgentSwitch" /* SlackAgentSwitch */]: {
113531
+ maintainer: "yuma@vm0.ai",
113532
+ description: "Per-user agent override in the org-aware Slack app. When enabled for an org, members can choose which agent replies to their Slack mentions / DMs via `/zero switch` (opens an agent picker modal) or the Switch button on the App Home tab. The help text for `/zero help` also lists the switch subcommand. Selecting an alternate agent persists a row in `slack_user_agent_preferences` so the preference follows the user across every Slack workspace joined under the same org, and subsequent mention / DM replies from a non-default agent carry a `Sent via <agent>` footer so it's clear which agent produced the reply. When gated off, the modal, slash subcommand, App Home button, and help line are hidden AND any existing DB preferences are ignored at read time \u2014 every user falls back to the org default agent with no footer. Staff-only during the rollout window defined by `enabledOrgIdHashes`.",
113533
+ enabled: false,
113534
+ enabledOrgIdHashes: STAFF_ORG_ID_HASHES
113525
113535
  }
113526
113536
  };
113527
113537
  function isFeatureEnabled(key, ctx) {
@@ -115989,4 +115999,4 @@ undici/lib/web/fetch/body.js:
115989
115999
  undici/lib/web/websocket/frame.js:
115990
116000
  (*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
115991
116001
  */
115992
- //# sourceMappingURL=chunk-3CRO7Q5L.js.map
116002
+ //# sourceMappingURL=chunk-V5DZPAHE.js.map