@sentry/junior 0.293.0 → 0.295.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 (85) hide show
  1. package/dist/{admin-uuecrKuD.js → admin-ifgjyfpF.js} +2 -2
  2. package/dist/{agent-runner-DHq1pjUg.js → agent-runner-DjMTPWEO.js} +192 -100
  3. package/dist/api/schema.d.ts +2 -2
  4. package/dist/api/schema.js +5 -5
  5. package/dist/api.d.ts +1 -1
  6. package/dist/api.js +73 -29
  7. package/dist/{app-fWzCHFIb.d.ts → app-uiTzRbvq.d.ts} +5 -3
  8. package/dist/app.d.ts +2 -2
  9. package/dist/app.js +64 -74
  10. package/dist/{automation-BE3z19VN.js → automation-yJX3C7i3.js} +3 -3
  11. package/dist/{background-compaction-queue-D7ncdEa6.js → background-compaction-queue-DUkHZjmL.js} +7 -9
  12. package/dist/{briefs-NpgMEFh1.js → briefs-CbNYM-q2.js} +3 -3
  13. package/dist/{catalog-runtime-DwbTyNRD.js → catalog-runtime-DgouZKZm.js} +1 -1
  14. package/dist/cli/chat.d.ts +1 -1
  15. package/dist/cli/chat.js +15 -15
  16. package/dist/cli/check.js +3 -3
  17. package/dist/cli/init.js +2 -0
  18. package/dist/cli/main.js +3 -3
  19. package/dist/cli/plugins.d.ts +1 -1
  20. package/dist/cli/plugins.js +4 -4
  21. package/dist/cli/snapshot-create.js +4 -4
  22. package/dist/cli/upgrade.d.ts +2 -2
  23. package/dist/cli/upgrade.js +7 -74
  24. package/dist/{config-B4b-NXH5.js → config-DvnTPCfp.js} +58 -7
  25. package/dist/{connections-Dz_AQg5p.js → connections-CWaIVl_1.js} +6 -6
  26. package/dist/{conversation-CtjR1Zcx.js → conversation-CMkSmi02.js} +3 -11
  27. package/dist/{conversation-pending-messages-1Kad1Mif.js → conversation-feed-BVAOga0H.js} +27 -2
  28. package/dist/{conversation-privacy-DRsSgLGO.js → conversation-privacy-DPjv4SnA.js} +1 -1
  29. package/dist/{credential-sync-ClCnnGVj.js → credential-sync-BhbaZfmO.js} +16 -15
  30. package/dist/{db-BbpttyKH.d.ts → db-CCUqQe0E.d.ts} +13 -6
  31. package/dist/{db-CoA7_Xqu.js → db-Dts2XvLu.js} +144 -7
  32. package/dist/{executor-SWyHhit0.js → executor-Ck73J0wP.js} +64 -10
  33. package/dist/instrumentation.js +2 -2
  34. package/dist/{logging-BN5drSEZ.js → logging-9OAq-fdg.js} +2 -1
  35. package/dist/{message-D4qjpW1C.js → message-CtaPzC7m.js} +9 -9
  36. package/dist/nitro.d.ts +2 -2
  37. package/dist/nitro.js +2 -2
  38. package/dist/{oauth-callback-server-Xi-mTLOV.js → oauth-callback-server-C_LXY1d4.js} +2 -2
  39. package/dist/{oauth-relay-D6xxVywK.js → oauth-relay-CsfIazeF.js} +2 -1
  40. package/dist/{plugins-DtmjkTza.d.ts → plugins-B_0Cr0MO.d.ts} +0 -1
  41. package/dist/{projection-DXl4ftyL.js → projection-BzJQncZV.js} +251 -161
  42. package/dist/{prompt-Dmx6IfWZ.js → prompt-Cbq5b4SO.js} +5 -6
  43. package/dist/{registry-DosVt9f9.js → registry-cbpOxO4M.js} +3 -13
  44. package/dist/{resolve-BDjWJC9s.js → resolve-t-pmRdwS.js} +3 -3
  45. package/dist/{result-CaAFpf4B.js → result-DhgjR3nQ.js} +8 -8
  46. package/dist/{runner-h96Mkss6.js → runner-CHv9X9TH.js} +8 -8
  47. package/dist/{sandbox-egress-signals-rK91BW7i.js → sandbox-egress-signals-Yy3fSCbg.js} +1 -1
  48. package/dist/{schema-C_v8wb80.js → schema-BhneuGYv.js} +39 -7
  49. package/dist/{schema-CHsBmXIj.d.ts → schema-TSEisVJR.d.ts} +87 -14
  50. package/dist/secrets-DebYU866.js +18 -0
  51. package/dist/{service-account-WUMVuqVL.js → service-account-C4rBP8ne.js} +3 -3
  52. package/dist/{service-account-BpGpScaT.js → service-account-DjPIwCMj.js} +42 -26
  53. package/dist/{session-stop-xYK15HUu.js → session-stop-DkxI5vc3.js} +20 -775
  54. package/dist/{skills-DHApyCjj.js → skills-BZE2DP8I.js} +2 -2
  55. package/dist/{spawn-BQQrwGNe.js → spawn-BvULxIiu.js} +5 -5
  56. package/dist/{adapter-CMJfmHso.js → state-CO9ETDzk.js} +132 -2
  57. package/dist/{stop-CBeD6_Gs.js → stop-CL-rdtQb.js} +85 -32
  58. package/dist/{store-xtibD98L.js → store-DgD78_NK.js} +3 -3
  59. package/dist/{task-runner-BYPN4BEO.js → task-runner-CKOj6xla.js} +11 -11
  60. package/dist/{turn-failure-response-jNVl00MD.js → turn-failure-response-BTSo6SMJ.js} +8 -8
  61. package/dist/{validation-DGeB_moV.js → validation-CXeYgBzq.js} +1 -1
  62. package/dist/{version-C6nqU3Qc.js → version-AQa7Fr2H.js} +1 -1
  63. package/dist/version.js +1 -1
  64. package/dist/{viewer-9KLQibjn.js → viewer-Bqkb678l.js} +3 -3
  65. package/dist/warmup-h6u1e9n0.js +1869 -0
  66. package/dist/{work-xwX6unUE.js → work-yN_GAuXY.js} +11 -11
  67. package/dist/{worker-CiCCfwd4.js → worker-Hl7N292I.js} +6 -6
  68. package/migrations/0062_plugin_report_index.sql +1 -20
  69. package/migrations/0078_plugin_conversation_index.sql +1 -20
  70. package/migrations/0079_conversation_event_author_index.sql +1 -20
  71. package/migrations/0080_conversation_event_latest_message_indexes.sql +2 -27
  72. package/migrations/0090_guardian_review_time_index.sql +1 -20
  73. package/migrations/0091_conversation_participant_unsubscribed_index.sql +1 -20
  74. package/migrations/0097_conversation_kind_automation.sql +6 -0
  75. package/migrations/0098_review_item_plugin_actions.sql +5 -0
  76. package/migrations/0099_conversation_last_message_at.sql +1 -0
  77. package/migrations/0100_automation_task_kind_repair.sql +48 -0
  78. package/migrations/meta/0097_snapshot.json +4490 -0
  79. package/migrations/meta/0098_snapshot.json +4490 -0
  80. package/migrations/meta/0099_snapshot.json +4720 -0
  81. package/migrations/meta/0100_snapshot.json +4496 -0
  82. package/migrations/meta/_journal.json +28 -0
  83. package/package.json +5 -5
  84. package/dist/assistant-reply-CIApSfor.js +0 -58
  85. package/dist/warmup-7S6z068f.js +0 -993
@@ -1,7 +1,7 @@
1
- import { C as completeText$1, S as completeObject$1, x as completeDecision$1 } from "./config-B4b-NXH5.js";
2
- import { _ as runBestEffort, a as extractGenAiUsageSummary } from "./logging-BN5drSEZ.js";
3
- import { V as agentTurnCostUsd, r as getConversationEventStore } from "./db-CoA7_Xqu.js";
4
- import { X as parseBriefInput, Y as conversationBriefSchema, q as briefOutcomeStatusSchema } from "./conversation-CtjR1Zcx.js";
1
+ import { C as completeText$1, S as completeObject$1, x as completeDecision$1 } from "./config-DvnTPCfp.js";
2
+ import { _ as runBestEffort, a as extractGenAiUsageSummary } from "./logging-9OAq-fdg.js";
3
+ import { J as agentTurnCostUsd, r as getConversationEventStore } from "./db-Dts2XvLu.js";
4
+ import { J as conversationBriefSchema, K as briefOutcomeStatusSchema, Y as parseBriefInput } from "./conversation-CMkSmi02.js";
5
5
  import * as z from "zod";
6
6
  import { conversationEventPresentationSchema, defineConversationEvent } from "@sentry/junior-plugin-api";
7
7
  // src/chat/conversations/structured-events.ts
@@ -532,8 +532,7 @@ async function generateBrief(args) {
532
532
  sizeClass
533
533
  }),
534
534
  schema: modelBriefSchema,
535
- system: args.prompt,
536
- temperature: 0
535
+ system: args.prompt
537
536
  });
538
537
  const model = modelBriefSchema.parse(result.object);
539
538
  const { droppedUrls, keptUrlCount, links } = buildEvidenceLinks({
@@ -1,4 +1,4 @@
1
- import { b as setSpanAttributes, h as logWarn, m as logInfo } from "./logging-BN5drSEZ.js";
1
+ import { b as setSpanAttributes, h as logWarn, m as logInfo } from "./logging-9OAq-fdg.js";
2
2
  import { o as isUserActor, s as parseActorUserId } from "./actor-6jsm_v96.js";
3
3
  import { n as normalizePluginPackageNames, o as pluginRoots, t as discoverInstalledPluginPackageContent } from "./package-discovery-DJhGdS4c.js";
4
4
  import path from "node:path";
@@ -66,7 +66,6 @@ function inlineMcpSource(mcp) {
66
66
  setDefined$1(result, "oauth-client", mcp.oauthClient && mcpOauthClientSource(mcp.oauthClient));
67
67
  setDefined$1(result, "allowed-tools", mcp.allowedTools);
68
68
  setDefined$1(result, "wrapped-tools", mcp.wrappedTools);
69
- setDefined$1(result, "audit-tools", mcp.auditTools);
70
69
  return result;
71
70
  }
72
71
  function inlineOauthSource(oauth) {
@@ -269,8 +268,7 @@ const mcpSourceSchema = z.object({
269
268
  headers: stringMapSchema.optional(),
270
269
  "oauth-client": mcpOauthClientSourceSchema.optional(),
271
270
  "allowed-tools": nonEmptyStringArraySchema("allowed-tools").optional(),
272
- "wrapped-tools": nonEmptyStringArraySchema("wrapped-tools").optional(),
273
- "audit-tools": nonEmptyStringArraySchema("audit-tools").optional()
271
+ "wrapped-tools": nonEmptyStringArraySchema("wrapped-tools").optional()
274
272
  }).passthrough();
275
273
  const targetSourceSchema = z.object({
276
274
  type: nonEmptyTrimmedString.refine((value) => PLUGIN_NAME_RE.test(value), { error: "type must be a lowercase target identifier" }),
@@ -331,7 +329,6 @@ function manifestConfigPatch(config) {
331
329
  setDefined(mcp, "oauth-client", config.mcp.oauthClient && mcpOauthClientSource(config.mcp.oauthClient));
332
330
  setDefined(mcp, "allowed-tools", config.mcp.allowedTools);
333
331
  setDefined(mcp, "wrapped-tools", config.mcp.wrappedTools);
334
- setDefined(mcp, "audit-tools", config.mcp.auditTools);
335
332
  result.mcp = mcp;
336
333
  }
337
334
  }
@@ -608,12 +605,6 @@ function normalizeMcp(data, envVars, name) {
608
605
  if (typeof prepared.url === "string") prepared.url = expandEnvPlaceholders(prepared.url, envVars, `Plugin ${name} mcp.url`);
609
606
  const result = mcpSourceSchema.safeParse(prepared);
610
607
  if (!result.success) throw new Error(issueMessage(result.error, `Plugin ${name} mcp`));
611
- const auditTools = result.data["audit-tools"];
612
- const unknownAuditTools = unloadedMcpTools({
613
- allowedTools: result.data["allowed-tools"],
614
- wrappedTools: result.data["wrapped-tools"]
615
- }, auditTools ?? []);
616
- if (unknownAuditTools.length > 0) throw new Error(`Plugin ${name} mcp.audit-tools must be listed in mcp.allowed-tools or mcp.wrapped-tools: ${unknownAuditTools.join(", ")}`);
617
608
  const headers = result.data.headers ? normalizeStringMap(result.data.headers, `Plugin ${name} mcp.headers`, { forbiddenKeys: FORBIDDEN_API_HEADER_NAMES }) : void 0;
618
609
  assertDeclaredHeaderEnvReferences(headers, envVars, `Plugin ${name} mcp.headers`);
619
610
  if (result.data.auth) assertDeclaredHostSecretEnv(result.data.auth["private-key-env"], envVars, `Plugin ${name} mcp.auth.private-key-env`);
@@ -640,8 +631,7 @@ function normalizeMcp(data, envVars, name) {
640
631
  ...oauthClientAuthorizeParams ? { authorizeParams: oauthClientAuthorizeParams } : void 0
641
632
  } } : void 0,
642
633
  ...result.data["allowed-tools"] ? { allowedTools: result.data["allowed-tools"] } : void 0,
643
- ...result.data["wrapped-tools"] ? { wrappedTools: result.data["wrapped-tools"] } : void 0,
644
- ...auditTools ? { auditTools } : void 0
634
+ ...result.data["wrapped-tools"] ? { wrappedTools: result.data["wrapped-tools"] } : void 0
645
635
  };
646
636
  }
647
637
  /**
@@ -1,6 +1,6 @@
1
- import { Ha as SANDBOX_COMMAND_PATH, Ia as sleep, Ka as SANDBOX_WORKSPACE_ROOT, Ni as getSandboxProvider, Qa as runNonInteractiveCommand, ji as isStale, ki as create } from "./projection-DXl4ftyL.js";
2
- import { E as withSpan, b as setSpanAttributes } from "./logging-BN5drSEZ.js";
3
- import { r as getStateAdapter } from "./adapter-CMJfmHso.js";
1
+ import { Di as isStale, Ha as SANDBOX_WORKSPACE_ROOT, Ja as runNonInteractiveCommand, Ma as sleep, Ra as SANDBOX_COMMAND_PATH, Ti as create, ki as getSandboxProvider } from "./projection-BzJQncZV.js";
2
+ import { E as withSpan, b as setSpanAttributes } from "./logging-9OAq-fdg.js";
3
+ import { a as getStateAdapter } from "./state-CO9ETDzk.js";
4
4
  import * as z from "zod";
5
5
  // src/chat/sandbox/resources.ts
6
6
  let configuredResources;
@@ -1,12 +1,12 @@
1
1
  import { v as __exportAll } from "./sentry-BRTJqumy.js";
2
- import { Dn as renderUntrustedTag } from "./projection-DXl4ftyL.js";
3
- import { T as SYSTEM_IDENTITY_ID } from "./db-CoA7_Xqu.js";
4
- import { f as credentialContextForActor } from "./registry-DosVt9f9.js";
5
- import { cn as listUnreportedSiblingAgents } from "./agent-runner-DHq1pjUg.js";
6
- import { C as isTerminalAgentInvocation, G as getAgentInvocationIdForEvents, K as getAgentInvocationIdForMessage, Y as getAgentInvocationResultMessageId, k as markAgentInvocationParentMailboxAppended, q as getAgentInvocationIdForResult, x as getLatestAgentInvocationForConversation, y as getAgentInvocation } from "./turn-failure-response-jNVl00MD.js";
7
- import { D as timerWatchCredentialSubject, E as renderEventBatchInputs, S as EVENT_WAIT_MS, T as isEventMailboxMetadata, f as getEventBatchDelayMs, m as parseEventMessages, n as isWatchEvent, s as eventReviewItemInputs, w as eventBatchMessageMeta } from "./session-stop-xYK15HUu.js";
8
- import { r as appendAndEnqueueInboundMessage } from "./store-xtibD98L.js";
9
- import { a as enqueueAgentInvocation, l as createAgentInvocationFromLatest, o as resolveAgentInvocationId, t as createAgentInvocationWorker } from "./work-xwX6unUE.js";
2
+ import { Cn as renderUntrustedTag } from "./projection-BzJQncZV.js";
3
+ import { M as SYSTEM_IDENTITY_ID } from "./db-Dts2XvLu.js";
4
+ import { f as credentialContextForActor } from "./registry-cbpOxO4M.js";
5
+ import { cn as listUnreportedSiblingAgents } from "./agent-runner-DjMTPWEO.js";
6
+ import { C as isTerminalAgentInvocation, G as getAgentInvocationIdForEvents, K as getAgentInvocationIdForMessage, Y as getAgentInvocationResultMessageId, k as markAgentInvocationParentMailboxAppended, q as getAgentInvocationIdForResult, x as getLatestAgentInvocationForConversation, y as getAgentInvocation } from "./turn-failure-response-BTSo6SMJ.js";
7
+ import { D as timerWatchCredentialSubject, E as renderEventBatchInputs, S as EVENT_WAIT_MS, T as isEventMailboxMetadata, f as getEventBatchDelayMs, m as parseEventMessages, n as isWatchEvent, s as eventReviewItemInputs, w as eventBatchMessageMeta } from "./session-stop-DkxI5vc3.js";
8
+ import { r as appendAndEnqueueInboundMessage } from "./store-DgD78_NK.js";
9
+ import { a as enqueueAgentInvocation, l as createAgentInvocationFromLatest, o as resolveAgentInvocationId, t as createAgentInvocationWorker } from "./work-yN_GAuXY.js";
10
10
  import { n as isAgentInvocationResultEventType, t as agentInvocationResultEventType } from "./result-event-type-DD6BAgT7.js";
11
11
  // src/chat/agent-invocations/result.ts
12
12
  var result_exports = /* @__PURE__ */ __exportAll({
@@ -1,11 +1,11 @@
1
- import { A as latestConversationMessageSeq, I as upsertConversationMessage, M as normalizeConversationText, N as recordDeliveredAssistantMessage, W as authorizationId, a as loadProjection, b as persistConversationMessages, d as recordAuthorizationCompleted, j as markConversationMessage, nn as persistWithRetry, nt as saveTurnCheckpoint, t as commitAcceptedReply, v as hydrateConversationMessages } from "./projection-DXl4ftyL.js";
2
- import { S as setTags, T as withLogContext, p as logException } from "./logging-BN5drSEZ.js";
3
- import { T as SYSTEM_IDENTITY_ID, a as getConversationStore, r as getConversationEventStore } from "./db-CoA7_Xqu.js";
4
- import { f as credentialContextForActor } from "./registry-DosVt9f9.js";
5
- import { L as messageCardText } from "./conversation-CtjR1Zcx.js";
6
- import { dt as markTurnFailed, f as ConversationTurnLifecycleService, ft as startActiveTurn, i as completeAuthPauseTurn, l as buildDeliveredTurnStatePatch, m as loadPendingMessageCards, t as finalizeFailedTurnReplyWithEvent, u as buildTurnThreadContext } from "./turn-failure-response-jNVl00MD.js";
7
- import { n as getAssistantReplyText } from "./assistant-reply-CIApSfor.js";
8
- import { ft as getPersistedSandboxState, gt as coerceThreadConversationState, ht as persistThreadStateById, n as scheduleSessionCompletedPluginTasks, pt as getPersistedThreadState, t as processPluginTask } from "./task-runner-BYPN4BEO.js";
1
+ import { A as latestConversationMessageSeq, I as upsertConversationMessage, M as normalizeConversationText, N as recordDeliveredAssistantMessage, Qt as persistWithRetry, W as authorizationId, a as loadProjection, b as persistConversationMessages, d as recordAuthorizationCompleted, j as markConversationMessage, nt as saveTurnCheckpoint, t as commitAcceptedReply, v as hydrateConversationMessages } from "./projection-BzJQncZV.js";
2
+ import { S as setTags, T as withLogContext, p as logException } from "./logging-9OAq-fdg.js";
3
+ import { M as SYSTEM_IDENTITY_ID, a as getConversationStore, r as getConversationEventStore } from "./db-Dts2XvLu.js";
4
+ import { f as credentialContextForActor } from "./registry-cbpOxO4M.js";
5
+ import { I as messageCardText } from "./conversation-CMkSmi02.js";
6
+ import { D as getAssistantReplyText } from "./warmup-h6u1e9n0.js";
7
+ import { dt as markTurnFailed, f as ConversationTurnLifecycleService, ft as startActiveTurn, i as completeAuthPauseTurn, l as buildDeliveredTurnStatePatch, m as loadPendingMessageCards, t as finalizeFailedTurnReplyWithEvent, u as buildTurnThreadContext } from "./turn-failure-response-BTSo6SMJ.js";
8
+ import { ft as getPersistedSandboxState, gt as coerceThreadConversationState, ht as persistThreadStateById, n as scheduleSessionCompletedPluginTasks, pt as getPersistedThreadState, t as processPluginTask } from "./task-runner-CKOj6xla.js";
9
9
  import { randomUUID } from "node:crypto";
10
10
  import { createLocalSource, localDestinationSchema } from "@sentry/junior-plugin-api";
11
11
  // src/chat/local/runner.ts
@@ -1,4 +1,4 @@
1
- import { ja as sandboxEgressSignalsResponseSchema } from "./projection-DXl4ftyL.js";
1
+ import { Da as sandboxEgressSignalsResponseSchema } from "./projection-BzJQncZV.js";
2
2
  // src/chat/local/sandbox-egress-signals.ts
3
3
  const SANDBOX_EGRESS_SIGNALS_PATH = "/api/internal/sandbox-egress/signals";
4
4
  const LOCAL_DEV_SERVER_TIMEOUT_MS = 1e3;
@@ -1,8 +1,8 @@
1
1
  import { r as notificationScheduleSchema } from "./schedule-cP0AACm1.js";
2
- import { D as conversationChildAgentTotalsSchema, S as conversationUsageSchema, b as conversationSummaryReportSchema, i as actorIdentitySchema, s as conversationAuxiliaryCostsSchema } from "./conversation-CtjR1Zcx.js";
2
+ import { E as conversationChildAgentTotalsSchema, i as actorIdentitySchema, s as conversationAuxiliaryCostsSchema, x as conversationUsageSchema, y as conversationSummaryReportSchema } from "./conversation-CMkSmi02.js";
3
3
  import { i as fillUtcHours, r as fillUtcDays, s as sumUtcHoursIntoSixHours, w as AGENT_INVOCATION_STATUSES, x as userInputRequestSchema } from "./reporting-window-B3Ze-Qnt.js";
4
- import "./automation-BE3z19VN.js";
5
- import "./conversation-pending-messages-1Kad1Mif.js";
4
+ import "./automation-yJX3C7i3.js";
5
+ import "./conversation-feed-BVAOga0H.js";
6
6
  import { t as isPushServiceEndpoint } from "./push-endpoint-CO-nomUd.js";
7
7
  import * as z from "zod";
8
8
  import { codeChangeStateSchema, eventMatchSchema } from "@sentry/junior-plugin-api";
@@ -735,12 +735,19 @@ const reviewItemCountSchema = z.object({
735
735
  needsViewer: z.number().int().nonnegative() }).strict();
736
736
  /**
737
737
  * Conversations linked to an open action item assigned to the viewer. `title`
738
- * is the newest such item; `count` is how many there are.
738
+ * is the newest such item; `count` is how many there are; `waitingSince` is
739
+ * when the oldest was added.
739
740
  */
740
741
  const reviewItemWaitingConversationsSchema = z.object({ conversations: z.array(z.object({
741
742
  conversationId: z.string().min(1),
742
- title: z.string().min(1),
743
- count: z.number().int().positive()
743
+ /** Open items that need the viewer, newest first. */
744
+ items: z.array(z.object({
745
+ /** The plugin that added the item, such as `github`. */
746
+ plugin: z.string().min(1).optional(),
747
+ title: z.string().min(1)
748
+ }).strict()).min(1),
749
+ /** When the oldest of those items was added: when the wait began. */
750
+ waitingSince: z.string().datetime()
744
751
  }).strict()) }).strict();
745
752
  const reviewItemParamsSchema = z.object({ id: z.string().min(1) }).strict();
746
753
  /** One person action on a Review item. */
@@ -797,6 +804,31 @@ const workspaceBodySchema = z.object({
797
804
  }).strict();
798
805
  const workspaceParamsSchema = z.object({ id: z.string().uuid() }).strict();
799
806
  const deleteWorkspaceResponseSchema = z.object({ deleted: z.literal(true) }).strict();
807
+ // src/api/schema/reply-times.ts
808
+ /** Reply times in the bins of the cache warming model. */
809
+ const replyTimeHistogramSchema = z.object({
810
+ bins: z.array(z.object({
811
+ count: z.number().int().nonnegative(),
812
+ endMs: z.number().int().positive(),
813
+ startMs: z.number().int().nonnegative()
814
+ }).strict()),
815
+ /** Idle periods with no reply before the cache warming horizon. */
816
+ noReply: z.number().int().nonnegative(),
817
+ total: z.number().int().nonnegative()
818
+ }).strict();
819
+ /** Gap histogram of each cache warming segment, over all Conversations. */
820
+ const replyTimeSegmentsReportSchema = z.object({
821
+ generatedAt: z.string().datetime(),
822
+ /**
823
+ * Below this many gaps, the planner leans on the segment's `none`
824
+ * segment, or does not warm a `none` segment.
825
+ */
826
+ minSamples: z.number().int().positive(),
827
+ segments: z.array(z.object({
828
+ histogram: replyTimeHistogramSchema,
829
+ segment: z.string().min(1)
830
+ }).strict())
831
+ }).strict();
800
832
  // src/api/schema/stats.ts
801
833
  const statSchema = z.object({
802
834
  count: z.number().int().nonnegative(),
@@ -838,4 +870,4 @@ const versionsSchema = z.object({
838
870
  /** The viewer's rolling model spend. */
839
871
  spend: z.string().min(1)
840
872
  }).strict();
841
- export { codeChangeSummaryReportSchema as $, actorDirectoryReportSchema as A, reorderPinnedConversationsResponseSchema as At, activityHours as B, startServiceAccountSignInResponseSchema as C, conversationSubscriptionBodySchema as Ct, personalTokenMetadataSchema as D, pinConversationBodySchema as Dt, personalTokenListSchema as E, conversationDeliveryResponseSchema as Et, locationActivityDayReportSchema as F, pushSubscriptionDeleteBodySchema as G, dailyConversationActivitySchema as H, locationDetailReportSchema as I, connectionParamsSchema as J, testNotificationResponseSchema as K, locationDirectoryReportSchema as L, avatarParamsSchema as M, conversationCatchUpSchema as Mt, personParamsSchema as N, personalTokenParamsSchema as O, pinConversationResponseSchema as Ot, personalSpendReportSchema as P, codeActivityDaySchema as Q, locationParamsSchema as R, serviceAccountSchema as S, markConversationUnreadBodySchema as St, createdPersonalTokenSchema as T, conversationDeliveryBodySchema as Tt, notificationSettingsSchema as U, activitySixHours as V, pushSubscriptionBodySchema as W, disconnectConnectionResponseSchema as X, connectionSchema as Y, startConnectionResponseSchema as Z, reviewItemSchema as _, archiveConversationBodySchema as _t, baselineSnapshotSchema as a, codeRepositorySummarySchema as at, serviceAccountListSchema as b, conversationAutoArchiveSchema as bt, workspaceListSchema as c, conversationWatchesReportSchema as ct, workspaceSchema as d, continueConversationInSlackBodySchema as dt, codeChangeSummarySchema as et, reviewItemActionSchema as f, continueConversationInSlackResponseSchema as ft, reviewItemParamsSchema as g, conversationOutlineSchema as gt, reviewItemListSchema as h, CONVERSATION_OUTLINE_TEXT_LENGTH as ht, statsReportSchema as i, codeRepositoryReportSchema as it, actorProfileReportSchema as j, conversationCatchUpBodySchema as jt, revokePersonalTokenResponseSchema as k, reorderPinnedConversationsBodySchema as kt, workspaceParamsSchema as l, conversationChildAgentSchema as lt, reviewItemListQuerySchema as m, conversationStatsReportSchema as mt, versionsSchema as n, codePersonReportSchema as nt, deleteWorkspaceResponseSchema as o, boardReportSchema as ot, reviewItemCountSchema as p, stopConversationTurnResponseSchema as pt, connectionListSchema as q, statSchema as r, codeRepositoryParamsSchema as rt, workspaceBodySchema as s, conversationWatchSchema as st, versionsQuerySchema as t, codeOverviewReportSchema as tt, workspaceRepoSchema as u, conversationChildAgentsReportSchema as ut, reviewItemWaitingConversationsSchema as v, archiveConversationResponseSchema as vt, createPersonalTokenBodySchema as w, conversationSubscriptionResponseSchema as wt, serviceAccountParamsSchema as x, conversationUnreadSchema as xt, disconnectServiceAccountResponseSchema as y, archiveDoneConversationsResponseSchema as yt, activityDays as z };
873
+ export { codeActivityDaySchema as $, revokePersonalTokenResponseSchema as A, reorderPinnedConversationsBodySchema as At, activityDays as B, serviceAccountSchema as C, markConversationUnreadBodySchema as Ct, personalTokenListSchema as D, conversationDeliveryResponseSchema as Dt, createdPersonalTokenSchema as E, conversationDeliveryBodySchema as Et, personalSpendReportSchema as F, pushSubscriptionBodySchema as G, activitySixHours as H, locationActivityDayReportSchema as I, connectionListSchema as J, pushSubscriptionDeleteBodySchema as K, locationDetailReportSchema as L, actorProfileReportSchema as M, conversationCatchUpBodySchema as Mt, avatarParamsSchema as N, conversationCatchUpSchema as Nt, personalTokenMetadataSchema as O, pinConversationBodySchema as Ot, personParamsSchema as P, startConnectionResponseSchema as Q, locationDirectoryReportSchema as R, serviceAccountParamsSchema as S, conversationUnreadSchema as St, createPersonalTokenBodySchema as T, conversationSubscriptionResponseSchema as Tt, dailyConversationActivitySchema as U, activityHours as V, notificationSettingsSchema as W, connectionSchema as X, connectionParamsSchema as Y, disconnectConnectionResponseSchema as Z, reviewItemParamsSchema as _, conversationOutlineSchema as _t, replyTimeSegmentsReportSchema as a, codeRepositoryReportSchema as at, disconnectServiceAccountResponseSchema as b, archiveDoneConversationsResponseSchema as bt, workspaceBodySchema as c, conversationWatchSchema as ct, workspaceRepoSchema as d, conversationChildAgentsReportSchema as dt, codeChangeSummaryReportSchema as et, workspaceSchema as f, continueConversationInSlackBodySchema as ft, reviewItemListSchema as g, CONVERSATION_OUTLINE_TEXT_LENGTH as gt, reviewItemListQuerySchema as h, conversationStatsReportSchema as ht, statsReportSchema as i, codeRepositoryParamsSchema as it, actorDirectoryReportSchema as j, reorderPinnedConversationsResponseSchema as jt, personalTokenParamsSchema as k, pinConversationResponseSchema as kt, workspaceListSchema as l, conversationWatchesReportSchema as lt, reviewItemCountSchema as m, stopConversationTurnResponseSchema as mt, versionsSchema as n, codeOverviewReportSchema as nt, baselineSnapshotSchema as o, codeRepositorySummarySchema as ot, reviewItemActionSchema as p, continueConversationInSlackResponseSchema as pt, testNotificationResponseSchema as q, statSchema as r, codePersonReportSchema as rt, deleteWorkspaceResponseSchema as s, boardReportSchema as st, versionsQuerySchema as t, codeChangeSummarySchema as tt, workspaceParamsSchema as u, conversationChildAgentSchema as ut, reviewItemSchema as v, archiveConversationBodySchema as vt, startServiceAccountSignInResponseSchema as w, conversationSubscriptionBodySchema as wt, serviceAccountListSchema as x, conversationAutoArchiveSchema as xt, reviewItemWaitingConversationsSchema as y, archiveConversationResponseSchema as yt, locationParamsSchema as z };
@@ -751,6 +751,7 @@ declare const conversationSummaryReportSchema: z.ZodObject<{
751
751
  }, z.core.$strict>>;
752
752
  conversationId: z.ZodString;
753
753
  kind: z.ZodEnum<{
754
+ automation: "automation";
754
755
  root: "root";
755
756
  task: "task";
756
757
  thread: "thread";
@@ -770,6 +771,7 @@ declare const conversationSummaryReportSchema: z.ZodObject<{
770
771
  startedAt: z.ZodString;
771
772
  lastSeenAt: z.ZodString;
772
773
  lastProgressAt: z.ZodString;
774
+ lastMessageAt: z.ZodOptional<z.ZodString>;
773
775
  surface: z.ZodEnum<{
774
776
  api: "api";
775
777
  internal: "internal";
@@ -1507,6 +1509,7 @@ declare const forkConversationResponseSchema: z.ZodObject<{
1507
1509
  declare const conversationAgentTreeNodeSchema: z.ZodObject<{
1508
1510
  conversationId: z.ZodString;
1509
1511
  kind: z.ZodEnum<{
1512
+ automation: "automation";
1510
1513
  root: "root";
1511
1514
  task: "task";
1512
1515
  thread: "thread";
@@ -1889,6 +1892,7 @@ declare const conversationDetailReportSchema: z.ZodObject<{
1889
1892
  }, z.core.$strict>>;
1890
1893
  conversationId: z.ZodString;
1891
1894
  kind: z.ZodEnum<{
1895
+ automation: "automation";
1892
1896
  root: "root";
1893
1897
  task: "task";
1894
1898
  thread: "thread";
@@ -1908,6 +1912,7 @@ declare const conversationDetailReportSchema: z.ZodObject<{
1908
1912
  startedAt: z.ZodString;
1909
1913
  lastSeenAt: z.ZodString;
1910
1914
  lastProgressAt: z.ZodString;
1915
+ lastMessageAt: z.ZodOptional<z.ZodString>;
1911
1916
  surface: z.ZodEnum<{
1912
1917
  api: "api";
1913
1918
  internal: "internal";
@@ -2053,6 +2058,7 @@ declare const conversationDetailReportSchema: z.ZodObject<{
2053
2058
  agentTree: z.ZodOptional<z.ZodArray<z.ZodObject<{
2054
2059
  conversationId: z.ZodString;
2055
2060
  kind: z.ZodEnum<{
2061
+ automation: "automation";
2056
2062
  root: "root";
2057
2063
  task: "task";
2058
2064
  thread: "thread";
@@ -2791,15 +2797,6 @@ declare const conversationDetailReportSchema: z.ZodObject<{
2791
2797
  credentialUser: z.ZodOptional<z.ZodString>;
2792
2798
  }, z.core.$strict>>;
2793
2799
  }, z.core.$strict>;
2794
- /** A feed row, with its visible Threads nested under their parents. */
2795
- type ConversationFeedItem = ConversationSummaryReport & {
2796
- threads?: ConversationFeedItem[];
2797
- };
2798
- declare const conversationFeedSchema: z.ZodObject<{
2799
- conversations: z.ZodArray<z.ZodType<ConversationFeedItem, unknown, z.core.$ZodTypeInternals<ConversationFeedItem, unknown>>>;
2800
- source: z.ZodLiteral<"conversation_index">;
2801
- generatedAt: z.ZodString;
2802
- }, z.core.$strict>;
2803
2800
  type ConversationReportStatus = z.infer<typeof conversationReportStatusSchema>;
2804
2801
  type ConversationTurnFailureCode = z.infer<typeof conversationTurnFailureCodeSchema>;
2805
2802
  type ConversationTurnFailureReason = z.infer<typeof conversationTurnFailureReasonSchema>;
@@ -2818,7 +2815,6 @@ type ConversationEventHistory = z.infer<typeof conversationEventHistorySchema>;
2818
2815
  type ConversationSourceTask = z.infer<typeof conversationSourceTaskSchema>;
2819
2816
  type ConversationDetailReport = z.infer<typeof conversationDetailReportSchema>;
2820
2817
  type ConversationEventPage = z.infer<typeof conversationEventPageSchema>;
2821
- type ConversationFeed = z.infer<typeof conversationFeedSchema>;
2822
2818
  type ConversationParams = z.infer<typeof conversationParamsSchema>;
2823
2819
  type CreateConversationBody = z.infer<typeof createConversationBodySchema>;
2824
2820
  type CreateConversationMessageBody = z.infer<typeof createConversationMessageBodySchema>;
@@ -3002,6 +2998,7 @@ declare const conversationDetailWithMailboxReportSchema: z.ZodObject<{
3002
2998
  }, z.core.$strict>>;
3003
2999
  conversationId: z.ZodString;
3004
3000
  kind: z.ZodEnum<{
3001
+ automation: "automation";
3005
3002
  root: "root";
3006
3003
  task: "task";
3007
3004
  thread: "thread";
@@ -3021,6 +3018,7 @@ declare const conversationDetailWithMailboxReportSchema: z.ZodObject<{
3021
3018
  startedAt: z.ZodString;
3022
3019
  lastSeenAt: z.ZodString;
3023
3020
  lastProgressAt: z.ZodString;
3021
+ lastMessageAt: z.ZodOptional<z.ZodString>;
3024
3022
  surface: z.ZodEnum<{
3025
3023
  api: "api";
3026
3024
  internal: "internal";
@@ -3166,6 +3164,7 @@ declare const conversationDetailWithMailboxReportSchema: z.ZodObject<{
3166
3164
  agentTree: z.ZodOptional<z.ZodArray<z.ZodObject<{
3167
3165
  conversationId: z.ZodString;
3168
3166
  kind: z.ZodEnum<{
3167
+ automation: "automation";
3169
3168
  root: "root";
3170
3169
  task: "task";
3171
3170
  thread: "thread";
@@ -4048,6 +4047,34 @@ type CancelConversationPendingMessagesBody = z.infer<typeof cancelConversationPe
4048
4047
  type CancelConversationPendingMessagesResponse = z.infer<typeof cancelConversationPendingMessagesResponseSchema>;
4049
4048
  type SteerConversationPendingMessagesBody = z.infer<typeof steerConversationPendingMessagesBodySchema>;
4050
4049
  type SteerConversationPendingMessagesResponse = z.infer<typeof steerConversationPendingMessagesResponseSchema>;
4050
+ /**
4051
+ * The part of a Conversation's latest Brief that a feed row shows: what the
4052
+ * work is about and how it stands.
4053
+ */
4054
+ declare const conversationFeedBriefSchema: z.ZodObject<{
4055
+ intent: z.ZodString;
4056
+ status: z.ZodEnum<{
4057
+ abandoned: "abandoned";
4058
+ answered: "answered";
4059
+ blocked: "blocked";
4060
+ done: "done";
4061
+ in_progress: "in_progress";
4062
+ partial: "partial";
4063
+ }>;
4064
+ summary: z.ZodString;
4065
+ }, z.core.$strict>;
4066
+ type ConversationFeedBrief = z.infer<typeof conversationFeedBriefSchema>;
4067
+ /** A feed row, with its visible Threads nested under their parents. */
4068
+ type ConversationFeedItem = ConversationSummaryReport & {
4069
+ brief?: ConversationFeedBrief;
4070
+ threads?: ConversationFeedItem[];
4071
+ };
4072
+ declare const conversationFeedSchema: z.ZodObject<{
4073
+ conversations: z.ZodArray<z.ZodType<ConversationFeedItem, unknown, z.core.$ZodTypeInternals<ConversationFeedItem, unknown>>>;
4074
+ source: z.ZodLiteral<"conversation_index">;
4075
+ generatedAt: z.ZodString;
4076
+ }, z.core.$strict>;
4077
+ type ConversationFeed = z.infer<typeof conversationFeedSchema>;
4051
4078
  /**
4052
4079
  * Archive or restore one conversation. `applyToChildren` applies to a child
4053
4080
  * only: archive refuses while a descendant is unarchived unless it is true,
@@ -4863,6 +4890,7 @@ declare const actorProfileReportSchema: z.ZodObject<{
4863
4890
  }, z.core.$strict>>;
4864
4891
  conversationId: z.ZodString;
4865
4892
  kind: z.ZodEnum<{
4893
+ automation: "automation";
4866
4894
  root: "root";
4867
4895
  task: "task";
4868
4896
  thread: "thread";
@@ -4882,6 +4910,7 @@ declare const actorProfileReportSchema: z.ZodObject<{
4882
4910
  startedAt: z.ZodString;
4883
4911
  lastSeenAt: z.ZodString;
4884
4912
  lastProgressAt: z.ZodString;
4913
+ lastMessageAt: z.ZodOptional<z.ZodString>;
4885
4914
  surface: z.ZodEnum<{
4886
4915
  api: "api";
4887
4916
  internal: "internal";
@@ -5297,6 +5326,7 @@ declare const locationDetailReportSchema: z.ZodObject<{
5297
5326
  }, z.core.$strict>>;
5298
5327
  conversationId: z.ZodString;
5299
5328
  kind: z.ZodEnum<{
5329
+ automation: "automation";
5300
5330
  root: "root";
5301
5331
  task: "task";
5302
5332
  thread: "thread";
@@ -5316,6 +5346,7 @@ declare const locationDetailReportSchema: z.ZodObject<{
5316
5346
  startedAt: z.ZodString;
5317
5347
  lastSeenAt: z.ZodString;
5318
5348
  lastProgressAt: z.ZodString;
5349
+ lastMessageAt: z.ZodOptional<z.ZodString>;
5319
5350
  surface: z.ZodEnum<{
5320
5351
  api: "api";
5321
5352
  internal: "internal";
@@ -7336,6 +7367,35 @@ declare const automationSchedulePreviewSchema: z.ZodObject<{
7336
7367
  nextRunAtMs: z.ZodNumber;
7337
7368
  }, z.core.$strict>;
7338
7369
  type AutomationScheduleIntent = z.output<typeof automationScheduleIntentSchema>;
7370
+ /** Reply times in the bins of the cache warming model. */
7371
+ declare const replyTimeHistogramSchema: z.ZodObject<{
7372
+ bins: z.ZodArray<z.ZodObject<{
7373
+ count: z.ZodNumber;
7374
+ endMs: z.ZodNumber;
7375
+ startMs: z.ZodNumber;
7376
+ }, z.core.$strict>>;
7377
+ noReply: z.ZodNumber;
7378
+ total: z.ZodNumber;
7379
+ }, z.core.$strict>;
7380
+ /** Gap histogram of each cache warming segment, over all Conversations. */
7381
+ declare const replyTimeSegmentsReportSchema: z.ZodObject<{
7382
+ generatedAt: z.ZodString;
7383
+ minSamples: z.ZodNumber;
7384
+ segments: z.ZodArray<z.ZodObject<{
7385
+ histogram: z.ZodObject<{
7386
+ bins: z.ZodArray<z.ZodObject<{
7387
+ count: z.ZodNumber;
7388
+ endMs: z.ZodNumber;
7389
+ startMs: z.ZodNumber;
7390
+ }, z.core.$strict>>;
7391
+ noReply: z.ZodNumber;
7392
+ total: z.ZodNumber;
7393
+ }, z.core.$strict>;
7394
+ segment: z.ZodString;
7395
+ }, z.core.$strict>>;
7396
+ }, z.core.$strict>;
7397
+ type ReplyTimeHistogram = z.infer<typeof replyTimeHistogramSchema>;
7398
+ type ReplyTimeSegmentsReport = z.infer<typeof replyTimeSegmentsReportSchema>;
7339
7399
  declare const statSchema: z.ZodObject<{
7340
7400
  count: z.ZodNumber;
7341
7401
  date: z.ZodString;
@@ -7386,6 +7446,14 @@ declare const skillReportsSchema: z.ZodArray<z.ZodObject<{
7386
7446
  pluginProvider: z.ZodOptional<z.ZodString>;
7387
7447
  disableModelInvocation: z.ZodOptional<z.ZodBoolean>;
7388
7448
  }, z.core.$strict>>;
7449
+ /** One skill with its authored SKILL.md body, without frontmatter. */
7450
+ declare const skillDetailReportSchema: z.ZodObject<{
7451
+ name: z.ZodString;
7452
+ description: z.ZodString;
7453
+ pluginProvider: z.ZodOptional<z.ZodString>;
7454
+ disableModelInvocation: z.ZodOptional<z.ZodBoolean>;
7455
+ body: z.ZodString;
7456
+ }, z.core.$strict>;
7389
7457
  declare const pluginPackageContentItemReportSchema: z.ZodObject<{
7390
7458
  dir: z.ZodString;
7391
7459
  hasMigrationsDir: z.ZodBoolean;
@@ -7551,6 +7619,7 @@ type Plugin = z.infer<typeof pluginSchema>;
7551
7619
  type Plugins = z.infer<typeof pluginsSchema>;
7552
7620
  type SkillReport = z.infer<typeof skillReportSchema>;
7553
7621
  type SkillReports = z.infer<typeof skillReportsSchema>;
7622
+ type SkillDetailReport = z.infer<typeof skillDetailReportSchema>;
7554
7623
  type RuntimeInfoReport = z.infer<typeof runtimeInfoReportSchema>;
7555
7624
  type PluginPackageContentItemReport = z.infer<typeof pluginPackageContentItemReportSchema>;
7556
7625
  type PluginPackageContentReport = z.infer<typeof pluginPackageContentReportSchema>;
@@ -7744,13 +7813,17 @@ declare const reviewItemCountSchema: z.ZodObject<{
7744
7813
  }, z.core.$strict>;
7745
7814
  /**
7746
7815
  * Conversations linked to an open action item assigned to the viewer. `title`
7747
- * is the newest such item; `count` is how many there are.
7816
+ * is the newest such item; `count` is how many there are; `waitingSince` is
7817
+ * when the oldest was added.
7748
7818
  */
7749
7819
  declare const reviewItemWaitingConversationsSchema: z.ZodObject<{
7750
7820
  conversations: z.ZodArray<z.ZodObject<{
7751
7821
  conversationId: z.ZodString;
7752
- title: z.ZodString;
7753
- count: z.ZodNumber;
7822
+ items: z.ZodArray<z.ZodObject<{
7823
+ plugin: z.ZodOptional<z.ZodString>;
7824
+ title: z.ZodString;
7825
+ }, z.core.$strict>>;
7826
+ waitingSince: z.ZodString;
7754
7827
  }, z.core.$strict>>;
7755
7828
  }, z.core.$strict>;
7756
7829
  /** One person action on a Review item. */
@@ -7778,4 +7851,4 @@ declare const versionsSchema: z.ZodObject<{
7778
7851
  spend: z.ZodString;
7779
7852
  }, z.core.$strict>;
7780
7853
  type Versions = z.output<typeof versionsSchema>;
7781
- export { automationExecutionListSchema as $, codeChangeSummaryReportSchema as $i, conversationDeliveryBodySchema as $n, AcceptedConversationMessage as $r, disconnectConnectionResponseSchema as $t, skillReportSchema as A, MAX_INPUT_IMAGE_BYTES as Aa, conversationDetailReportSchema as Ai, conversationWatchesReportSchema as An, ArchiveConversationResponse as Ar, userCustomizationSchema as At, AutomationList as B, createConversationBodySchema as Bi, CONVERSATION_OUTLINE_TEXT_LENGTH as Bn, ConversationPendingMessagesReport as Br, serviceAccountParamsSchema as Bt, pluginOperationalReportFeedSchema as C, buttonUserInputField as Ca, ConversationUsage as Ci, actorDirectoryReportSchema as Cn, ConversationMetricDay as Cr, deleteWorkspaceResponseSchema as Ct, pluginSchema as D, isAgentInvocationResultEventType as Da, conversationActivityPreviewSchema as Di, ConversationWatch as Dn, GuardianStats as Dr, workspaceRepoSchema as Dt, pluginPackageContentReportSchema as E, webMessageId as Ea, acceptedConversationMessageSchema as Ei, personalSpendReportSchema as En, GuardianMetricDay as Er, workspaceParamsSchema as Et, statsReportSchema as F, conversationFeedSchema as Fi, CONVERSATION_TITLE_MAX_LENGTH as Fn, conversationAutoArchiveSchema as Fr, personalTokenMetadataSchema as Ft, AutomationScheduleIntent as G, conversationTurnFailureReasonSchema as Gi, conversationUnreadSchema as Gn, conversationDetailWithMailboxReportSchema as Gr, testNotificationResponseSchema as Gt, AutomationRun as H, forkConversationBodySchema as Hi, conversationOutlineSchema as Hn, SteerConversationPendingMessagesResponse as Hr, startServiceAccountSignInResponseSchema as Ht, AutomationEdit as I, conversationParamsSchema as Ii, RenameConversationBody as In, CancelConversationPendingMessagesBody as Ir, personalTokenParamsSchema as It, AutomationVersionList as J, CodeOverviewReport as Ji, ConversationSubscriptionResponse as Jn, conversationPendingMessageSchema as Jr, isWithinNotificationSchedule as Jt, AutomationSummary as K, CodeActivityDay as Ki, markConversationUnreadBodySchema as Kn, conversationPendingAuthorizationSchema as Kr, DEFAULT_NOTIFICATION_SCHEDULE as Kt, AutomationExecution as L, conversationReportEventDataSchema as Li, RenameConversationResponse as Ln, CancelConversationPendingMessagesResponse as Lr, revokePersonalTokenResponseSchema as Lt, StatReport as M, INLINE_VIDEO_TYPES as Ma, conversationEventPageSchema as Mi, ConversationChildAgentsReport as Mn, archiveConversationBodySchema as Mr, createPersonalTokenBodySchema as Mt, StatsReport as N, INPUT_IMAGE_TYPES as Na, conversationEventsQuerySchema as Ni, conversationChildAgentSchema as Nn, archiveConversationResponseSchema as Nr, createdPersonalTokenSchema as Nt, pluginsSchema as O, InputImage as Oa, conversationAuxiliaryCostsSchema as Oi, ConversationWatchesReport as On, conversationStatsReportSchema as Or, workspaceSchema as Ot, statSchema as P, conversationFeedQuerySchema as Pi, conversationChildAgentsReportSchema as Pn, archiveDoneConversationsResponseSchema as Pr, personalTokenListSchema as Pt, automationEventCatalogSchema as Q, codeActivityDaySchema as Qi, ConversationDeliveryResponse as Qn, steerConversationPendingMessagesResponseSchema as Qr, connectionSchema as Qt, AutomationExecutionList as R, conversationReportEventSchema as Ri, renameConversationBodySchema as Rn, ConversationPendingMessage as Rr, disconnectServiceAccountResponseSchema as Rt, healthReportSchema as S, UserInputRequest as Sa, ConversationTurnFailureReason as Si, PersonalSpendReport as Sn, stopConversationTurnResponseSchema as Sr, baselineSnapshotSchema as St, pluginPackageContentItemReportSchema as T, normalizeUserInputAnswer as Ta, CreateConversationMessageBody as Ti, personParamsSchema as Tn, ConversationStatsReport as Tr, workspaceListSchema as Tt, AutomationRunList as U, forkConversationResponseSchema as Ui, ConversationUnread as Un, cancelConversationPendingMessagesBodySchema as Ur, NotificationSettings as Ut, AutomationListQuery as V, createConversationMessageBodySchema as Vi, ConversationOutline as Vn, SteerConversationPendingMessagesBody as Vr, serviceAccountSchema as Vt, AutomationRunWindows as W, conversationTurnFailureCodeSchema as Wi, MarkConversationUnreadBody as Wn, cancelConversationPendingMessagesResponseSchema as Wr, notificationSettingsSchema as Wt, automationEditErrorSchema as X, CodeRepositoryReport as Xi, conversationSubscriptionResponseSchema as Xn, conversationUnchangedDetailWithMailboxSchema as Xr, connectionListSchema as Xt, ListedAutomationVersion as Y, CodePersonReport as Yi, conversationSubscriptionBodySchema as Yn, conversationPendingMessagesReportSchema as Yr, notificationScheduleSchema as Yt, automationEditSchema as Z, CodeRepositorySummary as Zi, ConversationDeliveryBody as Zn, steerConversationPendingMessagesBodySchema as Zr, connectionParamsSchema as Zt, PluginPackageContentReport as _, AutomationTask as _a, ConversationReportStatus as _i, ActorSummaryReport as _n, ContinueConversationInSlackBody as _r, eventAutomationSummarySchema as _t, ReviewItemPayload as a, codeRepositorySummarySchema as aa, ConversationAuxiliaryCosts as ai, LocationDetailReport as an, pinConversationBodySchema as ar, automationParamsSchema as at, SkillReport as b, UserInputAnswer as ba, ConversationSurface as bi, PeopleActivityDayReport as bn, continueConversationInSlackResponseSchema as br, WorkspaceListReport as bt, reviewItemListSchema as c, DailyConversationActivity as ca, ConversationEventHistory as ci, LocationSummaryReport as cn, reorderPinnedConversationsResponseSchema as cr, automationRunWindowsSchema as ct, ReviewItemChangeRecord as d, BoardColumn as da, ConversationFeedItem as di, locationDirectoryReportSchema as dn, conversationCatchUpBodySchema as dr, automationSummarySchema as dt, codeChangeSummarySchema as ea, ActorIdentity as ei, startConnectionResponseSchema as en, conversationDeliveryResponseSchema as er, automationExecutionSchema as et, HealthReport as f, BoardReport as fa, ConversationModelUsage as fi, locationParamsSchema as fn, conversationCatchUpSchema as fr, automationUpdateSchema as ft, PluginPackageContentItemReport as g, resolveMessageCards as ga, ConversationReportMessageEvent as gi, ActorProfileReport as gn, conversationReadReportSchema as gr, automationVersionSchema as gt, PluginOperationalReportFeed as h, messageCardText as ha, ConversationReportEventData as hi, ActorDirectoryWindows as hn, conversationReadPositionSchema as hr, automationVersionParamsSchema as ht, ReviewItemActionBody as i, codeRepositoryReportSchema as ia, ConversationAgentTreeNode as ii, LocationActorSummaryReport as in, ReorderPinnedConversationsResponse as ir, automationListSchema as it, skillReportsSchema as j, MessageAttachment as ja, conversationEventHistorySchema as ji, ConversationChildAgent as jn, ConversationAutoArchive as jr, PersonalTokenMetadata as jt, runtimeInfoReportSchema as k, MAX_INPUT_IMAGES as ka, conversationDetailQuerySchema as ki, conversationWatchSchema as kn, ArchiveConversationBody as kr, USER_CUSTOMIZATION_MAX_CHARS as kt, reviewItemSchema as l, dailyConversationActivitySchema as la, ConversationEventPage as li, locationActivityDayReportSchema as ln, ConversationCatchUp as lr, automationScheduleIntentSchema as lt, PluginOperationalReport as m, MessageCard as ma, ConversationReportEvent as mi, ActorDirectoryReport as mn, ConversationReadReport as mr, automationVersionListSchema as mt, Versions as n, codePersonReportSchema as na, CONVERSATION_VERSION_HEADER as ni, apiErrorSchema as nn, PinConversationResponse as nr, automationExecutionStatusSchema as nt, reviewItemActionSchema as o, ConversationChildAgentTotals as oa, ConversationCost as oi, LocationDirectoryReport as on, pinConversationResponseSchema as or, automationRunListSchema as ot, Plugin as p, boardReportSchema as pa, ConversationParams as pi, ActorActivityDayReport as pn, ConversationReadPosition as pr, automationVersionActivateSchema as pt, AutomationUpdate as q, CodeChangeSummaryReport as qi, ConversationSubscriptionBody as qn, conversationPendingMessageDeliverySchema as qr, NotificationSchedule as qt, versionsSchema as r, codeRepositoryParamsSchema as ra, ConversationActivityPreview as ri, LocationActivityDayReport as rn, ReorderPinnedConversationsBody as rr, automationListQuerySchema as rt, reviewItemCountSchema as s, conversationChildAgentTotalsSchema as sa, ConversationDetailReport as si, LocationParams as sn, reorderPinnedConversationsBodySchema as sr, automationRunSchema as st, OwnedObjectAnnotation$1 as t, codeOverviewReportSchema as ta, CONVERSATION_DETAIL_VERSION_HEADER as ti, ApiError as tn, PinConversationBody as tr, automationExecutionStatusDaySchema as tt, reviewItemWaitingConversationsSchema as u, BoardCard as ua, ConversationFeed as ui, locationDetailReportSchema as un, ConversationCatchUpBody as ur, automationSchedulePreviewSchema as ut, Plugins as v, AutomationCard as va, ConversationSourceTask as vi, ActorTotalsReport as vn, ContinueConversationInSlackResponse as vr, scheduledAutomationSummarySchema as vt, pluginOperationalReportSchema as w, isEmptyUserInputAnswer as wa, CreateConversationBody as wi, actorProfileReportSchema as wn, ConversationStatsItem as wr, workspaceBodySchema as wt, SkillReports as x, UserInputField as xa, ConversationTurnFailureCode as xi, PersonParams as xn, StopConversationTurnResponse as xr, WorkspaceReport as xt, RuntimeInfoReport as y, USER_INPUT_NOTE as ya, ConversationSummaryReport as yi, ActorWindowMetrics as yn, continueConversationInSlackBodySchema as yr, BaselineSnapshotReport as yt, AutomationExecutionStatusDay as z, conversationSummaryReportSchema as zi, renameConversationResponseSchema as zn, ConversationPendingMessageDelivery as zr, serviceAccountListSchema as zt };
7854
+ export { AutomationVersionList as $, CodeOverviewReport as $i, ConversationSubscriptionResponse as $n, conversationDetailWithMailboxReportSchema as $r, isWithinNotificationSchedule as $t, runtimeInfoReportSchema as A, normalizeUserInputAnswer as Aa, CreateConversationBody as Ai, personParamsSchema as An, ConversationStatsReport as Ar, workspaceListSchema as At, replyTimeSegmentsReportSchema as B, conversationFeedQuerySchema as Bi, CONVERSATION_TITLE_MAX_LENGTH as Bn, conversationAutoArchiveSchema as Br, personalTokenMetadataSchema as Bt, healthReportSchema as C, AutomationCard as Ca, ConversationReportStatus as Ci, ActorTotalsReport as Cn, ContinueConversationInSlackResponse as Cr, scheduledAutomationSummarySchema as Ct, pluginPackageContentReportSchema as D, UserInputRequest as Da, ConversationTurnFailureCode as Di, PersonalSpendReport as Dn, stopConversationTurnResponseSchema as Dr, baselineSnapshotSchema as Dt, pluginPackageContentItemReportSchema as E, UserInputField as Ea, ConversationSurface as Ei, PersonParams as En, StopConversationTurnResponse as Er, WorkspaceReport as Et, StatsReport as F, MAX_INPUT_IMAGE_BYTES as Fa, conversationDetailQuerySchema as Fi, conversationWatchesReportSchema as Fn, ArchiveConversationResponse as Fr, userCustomizationSchema as Ft, AutomationList as G, createConversationBodySchema as Gi, CONVERSATION_OUTLINE_TEXT_LENGTH as Gn, CancelConversationPendingMessagesResponse as Gr, serviceAccountParamsSchema as Gt, AutomationExecution as H, conversationReportEventDataSchema as Hi, RenameConversationResponse as Hn, ConversationFeedItem as Hr, revokePersonalTokenResponseSchema as Ht, statSchema as I, MessageAttachment as Ia, conversationDetailReportSchema as Ii, ConversationChildAgent as In, ConversationAutoArchive as Ir, PersonalTokenMetadata as It, AutomationRunList as J, forkConversationResponseSchema as Ji, ConversationUnread as Jn, ConversationPendingMessagesReport as Jr, NotificationSettings as Jt, AutomationListQuery as K, createConversationMessageBodySchema as Ki, ConversationOutline as Kn, ConversationPendingMessage as Kr, serviceAccountSchema as Kt, statsReportSchema as L, INLINE_VIDEO_TYPES as La, conversationEventHistorySchema as Li, ConversationChildAgentsReport as Ln, archiveConversationBodySchema as Lr, createPersonalTokenBodySchema as Lt, skillReportSchema as M, isAgentInvocationResultEventType as Ma, acceptedConversationMessageSchema as Mi, ConversationWatch as Mn, GuardianStats as Mr, workspaceRepoSchema as Mt, skillReportsSchema as N, InputImage as Na, conversationActivityPreviewSchema as Ni, ConversationWatchesReport as Nn, conversationStatsReportSchema as Nr, workspaceSchema as Nt, pluginSchema as O, buttonUserInputField as Oa, ConversationTurnFailureReason as Oi, actorDirectoryReportSchema as On, ConversationMetricDay as Or, deleteWorkspaceResponseSchema as Ot, StatReport as P, MAX_INPUT_IMAGES as Pa, conversationAuxiliaryCostsSchema as Pi, conversationWatchSchema as Pn, ArchiveConversationBody as Pr, USER_CUSTOMIZATION_MAX_CHARS as Pt, AutomationUpdate as Q, CodeChangeSummaryReport as Qi, ConversationSubscriptionBody as Qn, cancelConversationPendingMessagesResponseSchema as Qr, NotificationSchedule as Qt, ReplyTimeHistogram as R, INPUT_IMAGE_TYPES as Ra, conversationEventPageSchema as Ri, conversationChildAgentSchema as Rn, archiveConversationResponseSchema as Rr, createdPersonalTokenSchema as Rt, SkillReports as S, AutomationTask as Sa, ConversationReportMessageEvent as Si, ActorSummaryReport as Sn, ContinueConversationInSlackBody as Sr, eventAutomationSummarySchema as St, pluginOperationalReportSchema as T, UserInputAnswer as Ta, ConversationSummaryReport as Ti, PeopleActivityDayReport as Tn, continueConversationInSlackResponseSchema as Tr, WorkspaceListReport as Tt, AutomationExecutionList as U, conversationReportEventSchema as Ui, renameConversationBodySchema as Un, conversationFeedSchema as Ur, disconnectServiceAccountResponseSchema as Ut, AutomationEdit as V, conversationParamsSchema as Vi, RenameConversationBody as Vn, ConversationFeed as Vr, personalTokenParamsSchema as Vt, AutomationExecutionStatusDay as W, conversationSummaryReportSchema as Wi, renameConversationResponseSchema as Wn, CancelConversationPendingMessagesBody as Wr, serviceAccountListSchema as Wt, AutomationScheduleIntent as X, conversationTurnFailureReasonSchema as Xi, conversationUnreadSchema as Xn, SteerConversationPendingMessagesResponse as Xr, testNotificationResponseSchema as Xt, AutomationRunWindows as Y, conversationTurnFailureCodeSchema as Yi, MarkConversationUnreadBody as Yn, SteerConversationPendingMessagesBody as Yr, notificationSettingsSchema as Yt, AutomationSummary as Z, CodeActivityDay as Zi, markConversationUnreadBodySchema as Zn, cancelConversationPendingMessagesBodySchema as Zr, DEFAULT_NOTIFICATION_SCHEDULE as Zt, PluginPackageContentReport as _, BoardReport as _a, ConversationEventPage as _i, locationParamsSchema as _n, conversationCatchUpSchema as _r, automationUpdateSchema as _t, ReviewItemPayload as a, codeChangeSummarySchema as aa, steerConversationPendingMessagesBodySchema as ai, startConnectionResponseSchema as an, conversationDeliveryResponseSchema as ar, automationExecutionSchema as at, SkillDetailReport as b, messageCardText as ba, ConversationReportEvent as bi, ActorDirectoryWindows as bn, conversationReadPositionSchema as br, automationVersionParamsSchema as bt, reviewItemListSchema as c, codeRepositoryParamsSchema as ca, ActorIdentity as ci, LocationActivityDayReport as cn, ReorderPinnedConversationsBody as cr, automationListQuerySchema as ct, ReviewItemChangeRecord as d, ConversationChildAgentTotals as da, ConversationActivityPreview as di, LocationDirectoryReport as dn, pinConversationResponseSchema as dr, automationRunListSchema as dt, CodePersonReport as ea, conversationPendingAuthorizationSchema as ei, notificationScheduleSchema as en, conversationSubscriptionBodySchema as er, ListedAutomationVersion as et, HealthReport as f, conversationChildAgentTotalsSchema as fa, ConversationAgentTreeNode as fi, LocationParams as fn, reorderPinnedConversationsBodySchema as fr, automationRunSchema as ft, PluginPackageContentItemReport as g, BoardColumn as ga, ConversationEventHistory as gi, locationDirectoryReportSchema as gn, conversationCatchUpBodySchema as gr, automationSummarySchema as gt, PluginOperationalReportFeed as h, BoardCard as ha, ConversationDetailReport as hi, locationDetailReportSchema as hn, ConversationCatchUpBody as hr, automationSchedulePreviewSchema as ht, ReviewItemActionBody as i, codeChangeSummaryReportSchema as ia, conversationUnchangedDetailWithMailboxSchema as ii, disconnectConnectionResponseSchema as in, conversationDeliveryBodySchema as ir, automationExecutionListSchema as it, skillDetailReportSchema as j, webMessageId as ja, CreateConversationMessageBody as ji, personalSpendReportSchema as jn, GuardianMetricDay as jr, workspaceParamsSchema as jt, pluginsSchema as k, isEmptyUserInputAnswer as ka, ConversationUsage as ki, actorProfileReportSchema as kn, ConversationStatsItem as kr, workspaceBodySchema as kt, reviewItemSchema as l, codeRepositoryReportSchema as la, CONVERSATION_DETAIL_VERSION_HEADER as li, LocationActorSummaryReport as ln, ReorderPinnedConversationsResponse as lr, automationListSchema as lt, PluginOperationalReport as m, dailyConversationActivitySchema as ma, ConversationCost as mi, locationActivityDayReportSchema as mn, ConversationCatchUp as mr, automationScheduleIntentSchema as mt, Versions as n, CodeRepositorySummary as na, conversationPendingMessageSchema as ni, connectionParamsSchema as nn, ConversationDeliveryBody as nr, automationEditSchema as nt, reviewItemActionSchema as o, codeOverviewReportSchema as oa, steerConversationPendingMessagesResponseSchema as oi, ApiError as on, PinConversationBody as or, automationExecutionStatusDaySchema as ot, Plugin as p, DailyConversationActivity as pa, ConversationAuxiliaryCosts as pi, LocationSummaryReport as pn, reorderPinnedConversationsResponseSchema as pr, automationRunWindowsSchema as pt, AutomationRun as q, forkConversationBodySchema as qi, conversationOutlineSchema as qn, ConversationPendingMessageDelivery as qr, startServiceAccountSignInResponseSchema as qt, versionsSchema as r, codeActivityDaySchema as ra, conversationPendingMessagesReportSchema as ri, connectionSchema as rn, ConversationDeliveryResponse as rr, automationEventCatalogSchema as rt, reviewItemCountSchema as s, codePersonReportSchema as sa, AcceptedConversationMessage as si, apiErrorSchema as sn, PinConversationResponse as sr, automationExecutionStatusSchema as st, OwnedObjectAnnotation$1 as t, CodeRepositoryReport as ta, conversationPendingMessageDeliverySchema as ti, connectionListSchema as tn, conversationSubscriptionResponseSchema as tr, automationEditErrorSchema as tt, reviewItemWaitingConversationsSchema as u, codeRepositorySummarySchema as ua, CONVERSATION_VERSION_HEADER as ui, LocationDetailReport as un, pinConversationBodySchema as ur, automationParamsSchema as ut, Plugins as v, boardReportSchema as va, ConversationModelUsage as vi, ActorActivityDayReport as vn, ConversationReadPosition as vr, automationVersionActivateSchema as vt, pluginOperationalReportFeedSchema as w, USER_INPUT_NOTE as wa, ConversationSourceTask as wi, ActorWindowMetrics as wn, continueConversationInSlackBodySchema as wr, BaselineSnapshotReport as wt, SkillReport as x, resolveMessageCards as xa, ConversationReportEventData as xi, ActorProfileReport as xn, conversationReadReportSchema as xr, automationVersionSchema as xt, RuntimeInfoReport as y, MessageCard as ya, ConversationParams as yi, ActorDirectoryReport as yn, ConversationReadReport as yr, automationVersionListSchema as yt, ReplyTimeSegmentsReport as z, conversationEventsQuerySchema as zi, conversationChildAgentsReportSchema as zn, archiveDoneConversationsResponseSchema as zr, personalTokenListSchema as zt };
@@ -0,0 +1,18 @@
1
+ // src/chat/secrets.ts
2
+ /** Read the server secret that signs internal tokens and payloads. */
3
+ function readJuniorSecret() {
4
+ return process.env.JUNIOR_SECRET?.trim() || void 0;
5
+ }
6
+ /** Read the raw dashboard session secret, with `JUNIOR_SECRET` as fallback. */
7
+ function readSignInSecret() {
8
+ return process.env.BETTER_AUTH_SECRET ?? process.env.JUNIOR_SECRET;
9
+ }
10
+ /** Read the bearer secret that internal cron requests must send. */
11
+ function readSchedulerSecret() {
12
+ return process.env.JUNIOR_SCHEDULER_SECRET?.trim() || process.env.CRON_SECRET?.trim();
13
+ }
14
+ /** Read the VAPID private key that signs web push messages. */
15
+ function readWebPushPrivateKey() {
16
+ return process.env.JUNIOR_WEB_PUSH_PRIVATE_KEY?.trim();
17
+ }
18
+ export { readWebPushPrivateKey as i, readSchedulerSecret as n, readSignInSecret as r, readJuniorSecret as t };
@@ -1,6 +1,6 @@
1
- import { n as pluginCatalogRuntime } from "./catalog-runtime-DwbTyNRD.js";
2
- import { t as disconnectStateAdapter } from "./adapter-CMJfmHso.js";
3
- import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-BpGpScaT.js";
1
+ import { n as pluginCatalogRuntime } from "./catalog-runtime-DgouZKZm.js";
2
+ import { r as disconnectStateAdapter } from "./state-CO9ETDzk.js";
3
+ import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-DjPIwCMj.js";
4
4
  import { CLI_USAGE } from "./cli/run.js";
5
5
  import { createServer } from "node:http";
6
6
  // src/cli/service-account.ts