@sentry/junior 0.269.0 → 0.271.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 (74) hide show
  1. package/dist/{actor-CP9K2Idu.js → actor-B4DYygOB.js} +1 -1
  2. package/dist/{adapter-2-CG25be.js → adapter-Bqbtr1RV.js} +1 -1
  3. package/dist/{admin-DSs8S5Uy.js → admin-CWBjzyN0.js} +1 -1
  4. package/dist/{agent-runner-CrDrPUtY.js → agent-runner-BiHsH8O_.js} +1174 -262
  5. package/dist/api/schema.d.ts +2 -2
  6. package/dist/api/schema.js +6 -6
  7. package/dist/api.d.ts +1 -1
  8. package/dist/api.js +70 -38
  9. package/dist/{app-BrMMzjYm.d.ts → app-C81xfpNa.d.ts} +9 -3
  10. package/dist/app.d.ts +1 -1
  11. package/dist/app.js +84 -37
  12. package/dist/{interruption-marker-g6Xup3Fk.js → assistant-reply-DgtX9DaJ.js} +2 -8
  13. package/dist/{automation-p87hg_AV.js → automation-Dwh_xcqM.js} +1 -1
  14. package/dist/{briefs-PtODdLNu.js → briefs-0FeSJHQ3.js} +5 -5
  15. package/dist/{catalog-runtime-BsoSmTM0.js → catalog-runtime-Bw9kjGVu.js} +1 -1
  16. package/dist/cli/chat.js +14 -14
  17. package/dist/cli/check.js +3 -3
  18. package/dist/cli/main.js +3 -3
  19. package/dist/cli/plugins.js +4 -4
  20. package/dist/cli/snapshot-create.js +4 -4
  21. package/dist/cli/upgrade.d.ts +1 -1
  22. package/dist/cli/upgrade.js +3 -3
  23. package/dist/{client-Cqf4TboL.js → client-B0jlQSgO.js} +13 -3
  24. package/dist/{config-CPsE4T5L.js → config-DrAeD8sr.js} +3 -3
  25. package/dist/{connections-upFXLmhG.js → connections-BzN2K0G9.js} +10 -10
  26. package/dist/{conversation-CTpD_PGk.js → conversation-AhOVzN_k.js} +5 -3
  27. package/dist/{conversation-privacy-D6zJc8ff.js → conversation-privacy-D1NhUxyo.js} +1 -1
  28. package/dist/{credential-sync-CS_6IC-f.js → credential-sync-DpNWl4yy.js} +15 -15
  29. package/dist/{credentialed-BU-OW7HP.js → credentialed-mh7HBqey.js} +51 -39
  30. package/dist/{db-BzOCzVb1.d.ts → db-DSabI7jJ.d.ts} +1 -1
  31. package/dist/{executor-CNS7ONt-.js → executor-C2cRw0hZ.js} +7 -2
  32. package/dist/instrumentation.js +2 -2
  33. package/dist/{job-queue-DI-k-Bbk.js → job-queue-CEeLYkSj.js} +2 -2
  34. package/dist/{list-CGoQdXTp.js → list-DjJJ5K0x.js} +168 -36
  35. package/dist/{logging-n7knse-O.js → logging-DuwXUuIY.js} +1 -1
  36. package/dist/{media-85PDJxO_.js → media-U6Tuz6Mi.js} +1 -1
  37. package/dist/{message-BpaWd8TT.js → message-CRe3WBKc.js} +4 -4
  38. package/dist/{model-profile-Bg8EoCKD.js → model-profile-B998sjVd.js} +9 -2
  39. package/dist/nitro.d.ts +1 -1
  40. package/dist/nitro.js +5 -3
  41. package/dist/{oauth-callback-server-CpGmEw_i.js → oauth-callback-server-oM5TJt34.js} +2 -2
  42. package/dist/{prompt-BlQB0QQt.js → prompt-BPSdXYXV.js} +1 -1
  43. package/dist/{registry-By36_xsm.js → registry-BPtbAVFo.js} +2 -2
  44. package/dist/{reporting-window-CVarfId9.js → reporting-window-DgHgwQB3.js} +16 -2
  45. package/dist/{resolve-CUIBcdPd.js → resolve-D44G1jJm.js} +3 -3
  46. package/dist/{result-BemsOMOO.js → result-CvP8c5bb.js} +10 -10
  47. package/dist/{runner-BVok7PAA.js → runner-FIGIKvk2.js} +11 -11
  48. package/dist/{sandbox-egress-signals-BSUWQI95.js → sandbox-egress-signals-C_JzucwP.js} +1 -1
  49. package/dist/{schema-ChnFo5f2.js → schema-DKZgO-xf.js} +12 -7
  50. package/dist/{schema-jK4-1u_H.d.ts → schema-DPCvePop.d.ts} +37 -3
  51. package/dist/{service-account-hMmESDcr.js → service-account-1mJGRAvx.js} +3 -3
  52. package/dist/{service-account-DHvlLnZw.js → service-account-CHO3YXpt.js} +3 -3
  53. package/dist/{session-stop-BQW_iFcd.js → session-stop-DuUB1rwQ.js} +51 -141
  54. package/dist/{skills-DmJJIuLF.js → skills-DHK7L9Eo.js} +2 -2
  55. package/dist/{spawn-ChCm46i-.js → spawn-CKl_ySIq.js} +2 -2
  56. package/dist/{store-DCo2n5iJ.js → store-BF2XEeQz.js} +3 -3
  57. package/dist/{store-1DVhoKOL.js → store-Di0E4EvU.js} +4 -4
  58. package/dist/{task-queue-HMC4QjFm.js → task-queue-CC7IFtbT.js} +3 -3
  59. package/dist/{task-runner-cA6yjn_E.js → task-runner-DKZtMFwa.js} +8 -8
  60. package/dist/{thread-state-CHy8LS0C.js → thread-state-BQ1T3eeF.js} +5 -5
  61. package/dist/{turn-failure-response-Dr7erLWs.js → turn-failure-response-B5eSFoHn.js} +15 -10
  62. package/dist/{turn-lifecycle-bf2fIYi_.js → turn-lifecycle-CTLEIEOn.js} +1 -1
  63. package/dist/{turn-session-routing-BqO0qXLk.js → turn-session-routing-BFVp8TbU.js} +26 -19
  64. package/dist/{validation-DHR1ivfh.js → validation-Cjo-3yt3.js} +1 -1
  65. package/dist/{version-CXCHLgWm.js → version-D30MBLLw.js} +1 -1
  66. package/dist/version.js +1 -1
  67. package/dist/{viewer-DSbD6DF6.js → viewer-D3jhuP66.js} +27 -12
  68. package/dist/{work-BE_qTYGi.js → work-CL9QwQcl.js} +11 -11
  69. package/dist/{worker-Cm9_sWXg.js → worker-S2P7IJDI.js} +6 -6
  70. package/migrations/0071_review_item_turn.sql +1 -0
  71. package/migrations/AGENTS.md +3 -12
  72. package/migrations/meta/0071_snapshot.json +4003 -0
  73. package/migrations/meta/_journal.json +7 -0
  74. package/package.json +5 -4
package/dist/nitro.js CHANGED
@@ -1,8 +1,8 @@
1
- import { A as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, D as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE, F as getDeploymentServiceVersion, M as JUNIOR_RETENTION_ROUTE, N as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, O as JUNIOR_HEARTBEAT_CRON_SCHEDULE, j as JUNIOR_RETENTION_CRON_SCHEDULE, k as JUNIOR_HEARTBEAT_ROUTE } from "./logging-n7knse-O.js";
1
+ import { A as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, D as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE, F as getDeploymentServiceVersion, M as JUNIOR_RETENTION_ROUTE, N as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, O as JUNIOR_HEARTBEAT_CRON_SCHEDULE, j as JUNIOR_RETENTION_CRON_SCHEDULE, k as JUNIOR_HEARTBEAT_ROUTE } from "./logging-DuwXUuIY.js";
2
2
  import { d as resolvePackageDir, t as discoverInstalledPluginPackageContent, u as isValidPackageName } from "./package-discovery-DJBompdd.js";
3
- import { o as resolveConversationWorkQueueTopic, t as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC } from "./job-queue-DI-k-Bbk.js";
3
+ import { o as resolveConversationWorkQueueTopic, t as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC } from "./job-queue-CEeLYkSj.js";
4
4
  import { a as pluginRuntimeRegistrationsFromPluginSet, r as pluginCatalogConfigFromPluginSet } from "./plugins-DOm9Y6qI.js";
5
- import { t as PLUGIN_TASK_QUEUE_TOPIC } from "./task-queue-HMC4QjFm.js";
5
+ import { t as PLUGIN_TASK_QUEUE_TOPIC } from "./task-queue-CC7IFtbT.js";
6
6
  import { n as loadPluginSetFromModule, r as resolvePluginModule } from "./plugin-module-Cf5gVPWP.js";
7
7
  import path from "node:path";
8
8
  import { cpSync, existsSync, mkdirSync, readdirSync, statSync } from "node:fs";
@@ -198,6 +198,7 @@ function withSentryConfig(config, options = {}) {
198
198
  }
199
199
  const DEFAULT_FUNCTION_MAX_DURATION_SECONDS = 300;
200
200
  const VERCEL_QUEUE_TRIGGER_TYPE = "queue/v2beta";
201
+ const CODEMODE_TRACE_DEPS = ["@earendil-works/pi-codemode*", "quickjs-wasi*"];
201
202
  function isPluginModuleReference(value) {
202
203
  return typeof value === "string" || Boolean(value && "module" in value);
203
204
  }
@@ -274,6 +275,7 @@ function juniorNitro(options = {}) {
274
275
  const cwd = path.resolve(options.cwd ?? nitro.options.rootDir ?? process.cwd());
275
276
  const functionMaxDurationSeconds = configureVercelDeployment(nitro, options);
276
277
  applyRolldownTreeshakeWorkaround(nitro);
278
+ nitro.options.traceDeps = [...nitro.options.traceDeps ?? [], ...CODEMODE_TRACE_DEPS];
277
279
  const pluginSource = options.plugins;
278
280
  const pluginModule = isPluginModuleReference(pluginSource) ? resolvePluginModule(cwd, pluginSource) : void 0;
279
281
  const directPluginSet = isPluginSet(pluginSource) ? pluginSource : void 0;
@@ -1,5 +1,5 @@
1
- import { n as createUserTokenStore } from "./credentialed-BU-OW7HP.js";
2
- import { a as GET, n as syncLocalOAuthCredential, r as GET$1 } from "./credential-sync-CS_6IC-f.js";
1
+ import { n as createUserTokenStore } from "./credentialed-mh7HBqey.js";
2
+ import { a as GET, n as syncLocalOAuthCredential, r as GET$1 } from "./credential-sync-DpNWl4yy.js";
3
3
  import { createServer } from "node:http";
4
4
  // src/chat/local/oauth-callback-server.ts
5
5
  const LOCAL_OAUTH_TIMEOUT_MS = 6e5;
@@ -1,4 +1,4 @@
1
- import { J as conversationBriefSchema, Y as parseBriefInput, q as briefOutcomeStatusSchema } from "./conversation-CTpD_PGk.js";
1
+ import { J as conversationBriefSchema, Y as parseBriefInput, q as briefOutcomeStatusSchema } from "./conversation-AhOVzN_k.js";
2
2
  import { z } from "zod";
3
3
  // src/chat/briefs/generate.ts
4
4
  const MAX_INPUT_CHARS = 6e4;
@@ -1,5 +1,5 @@
1
- import { b as setSpanAttributes, h as logWarn, m as logInfo } from "./logging-n7knse-O.js";
2
- import { o as isUserActor, s as parseActorUserId } from "./actor-CP9K2Idu.js";
1
+ import { b as setSpanAttributes, h as logWarn, m as logInfo } from "./logging-DuwXUuIY.js";
2
+ import { o as isUserActor, s as parseActorUserId } from "./actor-B4DYygOB.js";
3
3
  import { n as normalizePluginPackageNames, o as pluginRoots, t as discoverInstalledPluginPackageContent } from "./package-discovery-DJBompdd.js";
4
4
  import path from "node:path";
5
5
  import { z } from "zod";
@@ -30,7 +30,8 @@ const labelSchema = z.string().trim().min(1).max(USER_INPUT_LIMITS.maxLabelChars
30
30
  const descriptionSchema = z.string().trim().min(1).max(USER_INPUT_LIMITS.maxDescriptionChars).optional();
31
31
  const optionSchema = z.object({
32
32
  label: labelSchema.describe("Short choice text, such as `Accept` or `Decline`. The answer uses this exact text."),
33
- description: descriptionSchema.describe("Optional short note about what this choice does.")
33
+ description: descriptionSchema.describe("Optional short note about what this choice does."),
34
+ recommended: z.boolean().optional().describe("Set true on the choice that you recommend, and say why in its description. A `choice` field can recommend one option.")
34
35
  });
35
36
  const fieldBase = {
36
37
  id: z.string().regex(/^[a-z][a-z0-9_]{0,31}$/).describe("Stable key for this field, such as `approach`."),
@@ -71,9 +72,22 @@ const userInputRequestSchema = z.object({
71
72
  code: "custom",
72
73
  message: "Each choice of a field needs a different label."
73
74
  });
75
+ if (field.kind === "choice" && field.options.filter((option) => option.recommended).length > 1) context.addIssue({
76
+ code: "custom",
77
+ message: "A `choice` field can recommend only one option."
78
+ });
74
79
  }
75
80
  });
76
81
  /**
82
+ * Label and help text of the free-text input that every form adds after the
83
+ * fields. The text goes with the picked answers and does not replace them, so
84
+ * every surface says that in the same words.
85
+ */
86
+ const USER_INPUT_NOTE = {
87
+ label: "Anything else?",
88
+ description: "Optional. This note is sent together with your answers above."
89
+ };
90
+ /**
77
91
  * Return the single choice field of a request that a surface can show as
78
92
  * one row of buttons, where one click is the whole answer.
79
93
  */
@@ -252,4 +266,4 @@ function sumUtcHoursIntoSixHours(args) {
252
266
  rows: bySix
253
267
  });
254
268
  }
255
- export { userCustomizationTextSchema as S, normalizeUserInputAnswer as _, fillUtcSixHours as a, USER_CUSTOMIZATION_MAX_CHARS as b, trailingUtcDayWindow as c, utcDayKey as d, utcHourKey as f, isEmptyUserInputAnswer as g, formatUserInputAnswer as h, fillUtcHours as i, trailingUtcHourWindow as l, buttonUserInputField as m, HOUR_MS as n, startOfUtcHour as o, USER_INPUT_LIMITS as p, fillUtcDays as r, sumUtcHoursIntoSixHours as s, DAY_MS as t, trailingUtcSixHourWindow as u, userInputRequestSchema as v, userCustomizationSchema as x, webMessageId as y };
269
+ export { userCustomizationTextSchema as C, userCustomizationSchema as S, isEmptyUserInputAnswer as _, fillUtcSixHours as a, webMessageId as b, trailingUtcDayWindow as c, utcDayKey as d, utcHourKey as f, formatUserInputAnswer as g, buttonUserInputField as h, fillUtcHours as i, trailingUtcHourWindow as l, USER_INPUT_NOTE as m, HOUR_MS as n, startOfUtcHour as o, USER_INPUT_LIMITS as p, fillUtcDays as r, sumUtcHoursIntoSixHours as s, DAY_MS as t, trailingUtcSixHourWindow as u, normalizeUserInputAnswer as v, USER_CUSTOMIZATION_MAX_CHARS as x, userInputRequestSchema as y };
@@ -1,6 +1,6 @@
1
- import { E as withSpan, b as setSpanAttributes } from "./logging-n7knse-O.js";
2
- import { Kn as runNonInteractiveCommand, Nn as sleep, Qn as SANDBOX_WORKSPACE_ROOT, it as isStale, nt as create, ot as getSandboxProvider, qn as SANDBOX_COMMAND_PATH } from "./credentialed-BU-OW7HP.js";
3
- import { r as getStateAdapter } from "./adapter-2-CG25be.js";
1
+ import { E as withSpan, b as setSpanAttributes } from "./logging-DuwXUuIY.js";
2
+ import { Kn as runNonInteractiveCommand, Nn as sleep, Qn as SANDBOX_WORKSPACE_ROOT, it as isStale, nt as create, ot as getSandboxProvider, qn as SANDBOX_COMMAND_PATH } from "./credentialed-mh7HBqey.js";
3
+ import { r as getStateAdapter } from "./adapter-Bqbtr1RV.js";
4
4
  import { z } from "zod";
5
5
  // src/chat/sandbox/resources.ts
6
6
  let configuredResources;
@@ -1,14 +1,14 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-nwUcYXjP.js";
2
- import { On as getTurnRecord, kn as listTurnSummaries } from "./turn-session-routing-BqO0qXLk.js";
3
- import { t as createActor } from "./actor-CP9K2Idu.js";
4
- import { j as SYSTEM_IDENTITY_ID } from "./viewer-DSbD6DF6.js";
5
- import { f as credentialContextForActor } from "./registry-By36_xsm.js";
6
- import { bt as listUnreportedSiblingAgents } from "./agent-runner-CrDrPUtY.js";
7
- import { a as EVENT_SYSTEM_ACTOR, i as EVENT_MESSAGE_AUTHOR, o as isEventConversationMessage } from "./prompt-BlQB0QQt.js";
8
- import { C as markAgentInvocationParentMailboxAppended, _ as getLatestAgentInvocationForConversation, a as createAgentInvocationFromLatest, c as getAgentInvocation, d as getAgentInvocationIdForResult, l as getAgentInvocationIdForEvents, p as getAgentInvocationResultMessageId, u as getAgentInvocationIdForMessage, y as isTerminalAgentInvocation } from "./store-1DVhoKOL.js";
9
- import { a as EVENT_WAIT_MS, c as isEventMailboxMetadata, l as renderEventBatchText, u as timerWatchCredentialSubject } from "./session-stop-BQW_iFcd.js";
10
- import { r as appendAndEnqueueInboundMessage } from "./store-DCo2n5iJ.js";
11
- import { i as resolveAgentInvocationId, r as enqueueAgentInvocation, t as createAgentInvocationWorker } from "./work-BE_qTYGi.js";
2
+ import { On as getTurnRecord, kn as listTurnSummaries } from "./turn-session-routing-BFVp8TbU.js";
3
+ import { t as createActor } from "./actor-B4DYygOB.js";
4
+ import { j as SYSTEM_IDENTITY_ID } from "./viewer-D3jhuP66.js";
5
+ import { f as credentialContextForActor } from "./registry-BPtbAVFo.js";
6
+ import { xt as listUnreportedSiblingAgents } from "./agent-runner-BiHsH8O_.js";
7
+ import { a as EVENT_SYSTEM_ACTOR, i as EVENT_MESSAGE_AUTHOR, o as isEventConversationMessage } from "./prompt-BPSdXYXV.js";
8
+ import { C as markAgentInvocationParentMailboxAppended, _ as getLatestAgentInvocationForConversation, a as createAgentInvocationFromLatest, c as getAgentInvocation, d as getAgentInvocationIdForResult, l as getAgentInvocationIdForEvents, p as getAgentInvocationResultMessageId, u as getAgentInvocationIdForMessage, y as isTerminalAgentInvocation } from "./store-Di0E4EvU.js";
9
+ import { a as EVENT_WAIT_MS, c as isEventMailboxMetadata, l as renderEventBatchText, u as timerWatchCredentialSubject } from "./session-stop-DuUB1rwQ.js";
10
+ import { r as appendAndEnqueueInboundMessage } from "./store-BF2XEeQz.js";
11
+ import { i as resolveAgentInvocationId, r as enqueueAgentInvocation, t as createAgentInvocationWorker } from "./work-CL9QwQcl.js";
12
12
  import { z } from "zod";
13
13
  import { createEventSource, createLocalSource, createWebSource } from "@sentry/junior-plugin-api";
14
14
  // src/chat/conversations/web-mailbox.ts
@@ -1,14 +1,14 @@
1
- import { At as loadProjection, Gt as hydrateConversationMessages, Kt as persistConversationMessages, Lt as recordAuthorizationCompleted, Tt as commitAcceptedReply, an as markConversationMessage, en as buildConversationContext, hr as persistWithRetry, ln as upsertConversationMessage, on as normalizeConversationText, pn as authorizationId, sn as recordDeliveredAssistantMessage, wn as saveTurnCheckpoint } from "./turn-session-routing-BqO0qXLk.js";
2
- import { S as setTags, T as withLogContext, p as logException } from "./logging-n7knse-O.js";
3
- import { j as SYSTEM_IDENTITY_ID, x as getConversationStore, y as getConversationEventStore } from "./viewer-DSbD6DF6.js";
4
- import { f as credentialContextForActor } from "./registry-By36_xsm.js";
5
- import { R as messageCardText } from "./conversation-CTpD_PGk.js";
6
- import { X as markTurnFailed, Z as startActiveTurn } from "./store-1DVhoKOL.js";
7
- import { r as getAssistantReplyText } from "./interruption-marker-g6Xup3Fk.js";
8
- import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-bf2fIYi_.js";
9
- import { a as persistThreadStateById, n as getPersistedSandboxState, o as coerceThreadConversationState, r as getPersistedThreadState } from "./thread-state-CHy8LS0C.js";
10
- import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-cA6yjn_E.js";
11
- import { i as completeAuthPauseTurn, l as buildDeliveredTurnStatePatch, t as finalizeFailedTurnReplyWithEvent, u as loadPendingMessageCards } from "./turn-failure-response-Dr7erLWs.js";
1
+ import { At as loadProjection, Gt as hydrateConversationMessages, Kt as persistConversationMessages, Lt as recordAuthorizationCompleted, Tt as commitAcceptedReply, an as markConversationMessage, en as buildConversationContext, gr as persistWithRetry, ln as upsertConversationMessage, on as normalizeConversationText, pn as authorizationId, sn as recordDeliveredAssistantMessage, wn as saveTurnCheckpoint } from "./turn-session-routing-BFVp8TbU.js";
2
+ import { S as setTags, T as withLogContext, p as logException } from "./logging-DuwXUuIY.js";
3
+ import { j as SYSTEM_IDENTITY_ID, x as getConversationStore, y as getConversationEventStore } from "./viewer-D3jhuP66.js";
4
+ import { f as credentialContextForActor } from "./registry-BPtbAVFo.js";
5
+ import { R as messageCardText } from "./conversation-AhOVzN_k.js";
6
+ import { X as markTurnFailed, Z as startActiveTurn } from "./store-Di0E4EvU.js";
7
+ import { n as getAssistantReplyText } from "./assistant-reply-DgtX9DaJ.js";
8
+ import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-CTLEIEOn.js";
9
+ import { a as persistThreadStateById, n as getPersistedSandboxState, o as coerceThreadConversationState, r as getPersistedThreadState } from "./thread-state-BQ1T3eeF.js";
10
+ import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-DKZtMFwa.js";
11
+ import { i as completeAuthPauseTurn, l as buildDeliveredTurnStatePatch, t as finalizeFailedTurnReplyWithEvent, u as loadPendingMessageCards } from "./turn-failure-response-B5eSFoHn.js";
12
12
  import { randomUUID } from "node:crypto";
13
13
  import { createLocalSource, localDestinationSchema } from "@sentry/junior-plugin-api";
14
14
  // src/chat/local/runner.ts
@@ -1,4 +1,4 @@
1
- import { Kt as sandboxEgressSignalsResponseSchema } from "./credentialed-BU-OW7HP.js";
1
+ import { Kt as sandboxEgressSignalsResponseSchema } from "./credentialed-mh7HBqey.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,7 +1,7 @@
1
1
  import { r as AGENT_INVOCATION_STATUSES, u as juniorDestinationKindSchema } from "./agent-invocations-C1RNOCs8.js";
2
- import { E as conversationSummaryReportSchema, F as conversationChildAgentTotalsSchema, O as conversationUsageSchema, l as conversationAuxiliaryCostsSchema, n as actorIdentitySchema } from "./conversation-CTpD_PGk.js";
3
- import { i as fillUtcHours, r as fillUtcDays, s as sumUtcHoursIntoSixHours, v as userInputRequestSchema } from "./reporting-window-CVarfId9.js";
4
- import "./automation-p87hg_AV.js";
2
+ import { E as conversationSummaryReportSchema, F as conversationChildAgentTotalsSchema, O as conversationUsageSchema, l as conversationAuxiliaryCostsSchema, n as actorIdentitySchema } from "./conversation-AhOVzN_k.js";
3
+ import { i as fillUtcHours, r as fillUtcDays, s as sumUtcHoursIntoSixHours, y as userInputRequestSchema } from "./reporting-window-DgHgwQB3.js";
4
+ import "./automation-Dwh_xcqM.js";
5
5
  import "./reporting-schema-CZREhYc-.js";
6
6
  import { z } from "zod";
7
7
  import { codeChangeStateSchema, eventMatchSchema } from "@sentry/junior-plugin-api";
@@ -484,6 +484,8 @@ const personSchema = z.object({
484
484
  /** One Review item as the viewer sees it. */
485
485
  const reviewItemSchema = z.object({
486
486
  addedByConversationId: z.string().min(1),
487
+ /** Turn that added the item. Unset for a plugin item. */
488
+ addedByTurnId: z.string().min(1).optional(),
487
489
  answer: answerSchema.optional(),
488
490
  assignedToEveryone: z.boolean(),
489
491
  assignees: z.array(personSchema),
@@ -518,8 +520,8 @@ const reviewItemSchema = z.object({
518
520
  }).strict();
519
521
  /**
520
522
  * Review desk list filters. The list has the open items that the viewer can
521
- * see, one page at a time. A search also finds done and dismissed items,
522
- * after the open ones.
523
+ * see, one page at a time. A search or `include=archived` also finds done and
524
+ * dismissed items, after the open ones.
523
525
  */
524
526
  const reviewItemListQuerySchema = z.object({
525
527
  conversationId: z.string().min(1).optional(),
@@ -527,11 +529,14 @@ const reviewItemListQuerySchema = z.object({
527
529
  cursor: z.string().min(1).max(1e3).optional(),
528
530
  /** The number of open items on one page. */
529
531
  limit: z.coerce.number().int().min(1).max(100).default(50),
532
+ /** Also list the newest done and dismissed items, with the first page. */
533
+ include: z.enum(["archived"]).optional(),
530
534
  q: z.string().trim().max(200).optional()
531
535
  }).strict();
532
536
  /**
533
- * One page of the review desk list. Open items come first, newest change
534
- * first. The first page of a search also has the newest archived matches.
537
+ * One page of the review desk list. Open items come first, oldest first.
538
+ * The first page of a search, or of a list that includes archived items,
539
+ * also has the newest archived matches.
535
540
  */
536
541
  const reviewItemListSchema = z.object({
537
542
  items: z.array(reviewItemSchema),
@@ -40,6 +40,7 @@ declare const userInputFieldSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
40
40
  options: z.ZodArray<z.ZodObject<{
41
41
  label: z.ZodString;
42
42
  description: z.ZodOptional<z.ZodString>;
43
+ recommended: z.ZodOptional<z.ZodBoolean>;
43
44
  }, z.core.$strip>>;
44
45
  }, z.core.$strip>, z.ZodObject<{
45
46
  id: z.ZodString;
@@ -49,6 +50,7 @@ declare const userInputFieldSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
49
50
  options: z.ZodArray<z.ZodObject<{
50
51
  label: z.ZodString;
51
52
  description: z.ZodOptional<z.ZodString>;
53
+ recommended: z.ZodOptional<z.ZodBoolean>;
52
54
  }, z.core.$strip>>;
53
55
  }, z.core.$strip>, z.ZodObject<{
54
56
  id: z.ZodString;
@@ -66,6 +68,7 @@ declare const userInputRequestSchema: z.ZodObject<{
66
68
  options: z.ZodArray<z.ZodObject<{
67
69
  label: z.ZodString;
68
70
  description: z.ZodOptional<z.ZodString>;
71
+ recommended: z.ZodOptional<z.ZodBoolean>;
69
72
  }, z.core.$strip>>;
70
73
  }, z.core.$strip>, z.ZodObject<{
71
74
  id: z.ZodString;
@@ -75,6 +78,7 @@ declare const userInputRequestSchema: z.ZodObject<{
75
78
  options: z.ZodArray<z.ZodObject<{
76
79
  label: z.ZodString;
77
80
  description: z.ZodOptional<z.ZodString>;
81
+ recommended: z.ZodOptional<z.ZodBoolean>;
78
82
  }, z.core.$strip>>;
79
83
  }, z.core.$strip>, z.ZodObject<{
80
84
  id: z.ZodString;
@@ -83,6 +87,15 @@ declare const userInputRequestSchema: z.ZodObject<{
83
87
  kind: z.ZodLiteral<"text">;
84
88
  }, z.core.$strip>], "kind">>;
85
89
  }, z.core.$strip>;
90
+ /**
91
+ * Label and help text of the free-text input that every form adds after the
92
+ * fields. The text goes with the picked answers and does not replace them, so
93
+ * every surface says that in the same words.
94
+ */
95
+ declare const USER_INPUT_NOTE: {
96
+ readonly label: "Anything else?";
97
+ readonly description: "Optional. This note is sent together with your answers above.";
98
+ };
86
99
  /** One field of a user input request. */
87
100
  type UserInputField = z.output<typeof userInputFieldSchema>;
88
101
  /** A question with one or more fields for a person to answer. */
@@ -556,6 +569,13 @@ declare const conversationPendingMessageSchema: z.ZodObject<{
556
569
  web: "web";
557
570
  }>;
558
571
  text: z.ZodOptional<z.ZodString>;
572
+ mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
573
+ avatarUrl: z.ZodOptional<z.ZodString>;
574
+ email: z.ZodOptional<z.ZodString>;
575
+ fullName: z.ZodOptional<z.ZodString>;
576
+ slackUserId: z.ZodOptional<z.ZodString>;
577
+ slackUserName: z.ZodOptional<z.ZodString>;
578
+ }, z.core.$strict>>>;
559
579
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
560
580
  id: z.ZodString;
561
581
  filename: z.ZodString;
@@ -601,6 +621,13 @@ declare const conversationPendingMessagesReportSchema: z.ZodObject<{
601
621
  web: "web";
602
622
  }>;
603
623
  text: z.ZodOptional<z.ZodString>;
624
+ mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
625
+ avatarUrl: z.ZodOptional<z.ZodString>;
626
+ email: z.ZodOptional<z.ZodString>;
627
+ fullName: z.ZodOptional<z.ZodString>;
628
+ slackUserId: z.ZodOptional<z.ZodString>;
629
+ slackUserName: z.ZodOptional<z.ZodString>;
630
+ }, z.core.$strict>>>;
604
631
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
605
632
  id: z.ZodString;
606
633
  filename: z.ZodString;
@@ -5744,6 +5771,7 @@ type PluginOperationalReportFeed = z.infer<typeof pluginOperationalReportFeedSch
5744
5771
  /** One Review item as the viewer sees it. */
5745
5772
  declare const reviewItemSchema: z.ZodObject<{
5746
5773
  addedByConversationId: z.ZodString;
5774
+ addedByTurnId: z.ZodOptional<z.ZodString>;
5747
5775
  answer: z.ZodOptional<z.ZodObject<{
5748
5776
  other: z.ZodOptional<z.ZodString>;
5749
5777
  requestId: z.ZodString;
@@ -5783,6 +5811,7 @@ declare const reviewItemSchema: z.ZodObject<{
5783
5811
  options: z.ZodArray<z.ZodObject<{
5784
5812
  label: z.ZodString;
5785
5813
  description: z.ZodOptional<z.ZodString>;
5814
+ recommended: z.ZodOptional<z.ZodBoolean>;
5786
5815
  }, z.core.$strip>>;
5787
5816
  }, z.core.$strip>, z.ZodObject<{
5788
5817
  id: z.ZodString;
@@ -5792,6 +5821,7 @@ declare const reviewItemSchema: z.ZodObject<{
5792
5821
  options: z.ZodArray<z.ZodObject<{
5793
5822
  label: z.ZodString;
5794
5823
  description: z.ZodOptional<z.ZodString>;
5824
+ recommended: z.ZodOptional<z.ZodBoolean>;
5795
5825
  }, z.core.$strip>>;
5796
5826
  }, z.core.$strip>, z.ZodObject<{
5797
5827
  id: z.ZodString;
@@ -5819,12 +5849,14 @@ declare const reviewItemSchema: z.ZodObject<{
5819
5849
  }, z.core.$strict>;
5820
5850
  type ReviewItemPayload = z.output<typeof reviewItemSchema>;
5821
5851
  /**
5822
- * One page of the review desk list. Open items come first, newest change
5823
- * first. The first page of a search also has the newest archived matches.
5852
+ * One page of the review desk list. Open items come first, oldest first.
5853
+ * The first page of a search, or of a list that includes archived items,
5854
+ * also has the newest archived matches.
5824
5855
  */
5825
5856
  declare const reviewItemListSchema: z.ZodObject<{
5826
5857
  items: z.ZodArray<z.ZodObject<{
5827
5858
  addedByConversationId: z.ZodString;
5859
+ addedByTurnId: z.ZodOptional<z.ZodString>;
5828
5860
  answer: z.ZodOptional<z.ZodObject<{
5829
5861
  other: z.ZodOptional<z.ZodString>;
5830
5862
  requestId: z.ZodString;
@@ -5864,6 +5896,7 @@ declare const reviewItemListSchema: z.ZodObject<{
5864
5896
  options: z.ZodArray<z.ZodObject<{
5865
5897
  label: z.ZodString;
5866
5898
  description: z.ZodOptional<z.ZodString>;
5899
+ recommended: z.ZodOptional<z.ZodBoolean>;
5867
5900
  }, z.core.$strip>>;
5868
5901
  }, z.core.$strip>, z.ZodObject<{
5869
5902
  id: z.ZodString;
@@ -5873,6 +5906,7 @@ declare const reviewItemListSchema: z.ZodObject<{
5873
5906
  options: z.ZodArray<z.ZodObject<{
5874
5907
  label: z.ZodString;
5875
5908
  description: z.ZodOptional<z.ZodString>;
5909
+ recommended: z.ZodOptional<z.ZodBoolean>;
5876
5910
  }, z.core.$strip>>;
5877
5911
  }, z.core.$strip>, z.ZodObject<{
5878
5912
  id: z.ZodString;
@@ -5924,4 +5958,4 @@ declare const reviewItemActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
5924
5958
  }, z.core.$strict>;
5925
5959
  }, z.core.$strict>], "action">;
5926
5960
  type ReviewItemActionBody = z.output<typeof reviewItemActionSchema>;
5927
- export { automationExecutionStatusDaySchema as $, ConversationReportEvent as $n, codePersonReportSchema as $r, LocationSummaryReport as $t, StatsReport as A, ConversationStatsReport as An, conversationPendingMessageSchema as Ar, createPersonalTokenBodySchema as At, AutomationRun as B, ConversationActivityPreview as Bn, steerConversationPendingMessagesResponseSchema as Br, startServiceAccountSignInResponseSchema as Bt, pluginPackageContentReportSchema as C, ConversationChildAgentsReport as Cn, conversationEventPageSchema as Cr, workspaceListSchema as Ct, skillReportSchema as D, stopConversationTurnResponseSchema as Dn, conversationParamsSchema as Dr, USER_CUSTOMIZATION_MAX_CHARS as Dt, runtimeInfoReportSchema as E, StopConversationTurnResponse as En, conversationFeedSchema as Er, workspaceSchema as Et, AutomationExecutionDay as F, ActorIdentity as Fn, createConversationBodySchema as Fr, revokePersonalTokenResponseSchema as Ft, AutomationUpdate as G, ConversationEventHistory as Gn, CodeOverviewReport as Gr, startConnectionResponseSchema as Gt, AutomationRunWindows as H, ConversationAuxiliaryCosts as Hn, conversationTurnFailureReasonSchema as Hr, connectionParamsSchema as Ht, AutomationExecutionList as I, ArchiveConversationBody as In, createConversationMessageBodySchema as Ir, disconnectServiceAccountResponseSchema as It, automationEditErrorSchema as J, ConversationModelUsage as Jn, CodeRepositorySummary as Jr, LocationActivityDayReport as Jt, AutomationVersionList as K, ConversationEventPage as Kn, CodePersonReport as Kr, ApiError as Kt, AutomationExecutionStatusDay as L, ArchiveConversationResponse as Ln, forkConversationBodySchema as Lr, serviceAccountListSchema as Lt, statsReportSchema as M, GuardianStats as Mn, conversationReportEventDataSchema as Mr, personalTokenListSchema as Mt, AutomationEdit as N, conversationStatsReportSchema as Nn, conversationReportEventSchema as Nr, personalTokenMetadataSchema as Nt, skillReportsSchema as O, ConversationMetricDay as On, conversationPendingAuthorizationSchema as Or, userCustomizationSchema as Ot, AutomationExecution as P, AcceptedConversationMessage as Pn, conversationSummaryReportSchema as Pr, personalTokenParamsSchema as Pt, automationExecutionSchema as Q, ConversationPendingMessagesReport as Qn, codeOverviewReportSchema as Qr, LocationParams as Qt, AutomationList as R, CancelConversationPendingMessagesBody as Rn, forkConversationResponseSchema as Rr, serviceAccountParamsSchema as Rt, pluginPackageContentItemReportSchema as S, INPUT_IMAGE_TYPES as Si, ConversationChildAgent as Sn, conversationEventHistorySchema as Sr, workspaceBodySchema as St, pluginsSchema as T, conversationChildAgentsReportSchema as Tn, conversationFeedQuerySchema as Tr, workspaceRepoSchema as Tt, AutomationScheduleIntent as U, ConversationCost as Un, CodeActivityDay as Ur, connectionSchema as Ut, AutomationRunList as V, ConversationAgentTreeNode as Vn, conversationTurnFailureCodeSchema as Vr, connectionListSchema as Vt, AutomationSummary as W, ConversationDetailReport as Wn, CodeChangeSummaryReport as Wr, disconnectConnectionResponseSchema as Wt, automationEventCatalogSchema as X, ConversationPendingMessage as Xn, codeChangeSummaryReportSchema as Xr, LocationDetailReport as Xt, automationEditSchema as Y, ConversationParams as Yn, codeActivityDaySchema as Yr, LocationActorSummaryReport as Yt, automationExecutionListSchema as Z, ConversationPendingMessageDelivery as Zn, codeChangeSummarySchema as Zr, LocationDirectoryReport as Zt, SkillReport as _, webMessageId as _i, personalSpendReportSchema as _n, cancelConversationPendingMessagesResponseSchema as _r, BaselineSnapshotReport as _t, reviewItemCountSchema as a, DailyConversationActivity as ai, ActorDirectoryReport as an, ConversationSurface as ar, automationRunSchema as at, pluginOperationalReportFeedSchema as b, MAX_INPUT_IMAGE_BYTES as bi, conversationWatchSchema as bn, conversationDetailQuerySchema as br, baselineSnapshotSchema as bt, reviewItemWaitingConversationsSchema as c, messageCardText as ci, ActorSummaryReport as cn, ConversationUsage as cr, automationSchedulePreviewSchema as ct, PluginOperationalReport as d, UserInputAnswer as di, PeopleActivityDayReport as dn, SteerConversationPendingMessagesBody as dr, automationVersionActivateSchema as dt, codeRepositoryParamsSchema as ei, locationActivityDayReportSchema as en, ConversationReportEventData as er, automationExecutionStatusSchema as et, PluginOperationalReportFeed as f, UserInputField as fi, PersonParams as fn, SteerConversationPendingMessagesResponse as fr, automationVersionListSchema as ft, RuntimeInfoReport as g, normalizeUserInputAnswer as gi, personParamsSchema as gn, cancelConversationPendingMessagesBodySchema as gr, scheduledAutomationSummarySchema as gt, Plugins as h, isEmptyUserInputAnswer as hi, actorProfileReportSchema as hn, archiveConversationResponseSchema as hr, eventAutomationSummarySchema as ht, reviewItemActionSchema as i, conversationChildAgentTotalsSchema as ii, ActorActivityDayReport as in, ConversationSummaryReport as ir, automationRunListSchema as it, statSchema as j, GuardianMetricDay as jn, conversationPendingMessagesReportSchema as jr, createdPersonalTokenSchema as jt, StatReport as k, ConversationStatsItem as kn, conversationPendingMessageDeliverySchema as kr, PersonalTokenMetadata as kt, HealthReport as l, resolveMessageCards as li, ActorTotalsReport as ln, CreateConversationBody as lr, automationSummarySchema as lt, PluginPackageContentReport as m, buttonUserInputField as mi, actorDirectoryReportSchema as mn, archiveConversationBodySchema as mr, automationVersionSchema as mt, ReviewItemActionBody as n, codeRepositorySummarySchema as ni, locationDirectoryReportSchema as nn, ConversationReportStatus as nr, automationListSchema as nt, reviewItemListSchema as o, dailyConversationActivitySchema as oi, ActorDirectoryWindows as on, ConversationTurnFailureCode as or, automationRunWindowsSchema as ot, PluginPackageContentItemReport as p, UserInputRequest as pi, PersonalSpendReport as pn, acceptedConversationMessageSchema as pr, automationVersionParamsSchema as pt, ListedAutomationVersion as q, ConversationFeed as qn, CodeRepositoryReport as qr, apiErrorSchema as qt, ReviewItemPayload as r, ConversationChildAgentTotals as ri, locationParamsSchema as rn, ConversationSourceTask as rr, automationParamsSchema as rt, reviewItemSchema as s, MessageCard as si, ActorProfileReport as sn, ConversationTurnFailureReason as sr, automationScheduleIntentSchema as st, OwnedObjectAnnotation$1 as t, codeRepositoryReportSchema as ti, locationDetailReportSchema as tn, ConversationReportMessageEvent as tr, automationListQuerySchema as tt, Plugin as u, AutomationCard as ui, ActorWindowMetrics as un, CreateConversationMessageBody as ur, automationUpdateSchema as ut, SkillReports as v, InputImage as vi, ConversationWatch as vn, conversationActivityPreviewSchema as vr, WorkspaceListReport as vt, pluginSchema as w, conversationChildAgentSchema as wn, conversationEventsQuerySchema as wr, workspaceParamsSchema as wt, pluginOperationalReportSchema as x, MessageAttachment as xi, conversationWatchesReportSchema as xn, conversationDetailReportSchema as xr, deleteWorkspaceResponseSchema as xt, healthReportSchema as y, MAX_INPUT_IMAGES as yi, ConversationWatchesReport as yn, conversationAuxiliaryCostsSchema as yr, WorkspaceReport as yt, AutomationListQuery as z, CancelConversationPendingMessagesResponse as zn, steerConversationPendingMessagesBodySchema as zr, serviceAccountSchema as zt };
5961
+ export { automationExecutionStatusDaySchema as $, ConversationReportEvent as $n, codePersonReportSchema as $r, LocationSummaryReport as $t, StatsReport as A, ConversationStatsReport as An, conversationPendingMessageSchema as Ar, createPersonalTokenBodySchema as At, AutomationRun as B, ConversationActivityPreview as Bn, steerConversationPendingMessagesResponseSchema as Br, startServiceAccountSignInResponseSchema as Bt, pluginPackageContentReportSchema as C, INPUT_IMAGE_TYPES as Ci, ConversationChildAgentsReport as Cn, conversationEventPageSchema as Cr, workspaceListSchema as Ct, skillReportSchema as D, stopConversationTurnResponseSchema as Dn, conversationParamsSchema as Dr, USER_CUSTOMIZATION_MAX_CHARS as Dt, runtimeInfoReportSchema as E, StopConversationTurnResponse as En, conversationFeedSchema as Er, workspaceSchema as Et, AutomationExecutionDay as F, ActorIdentity as Fn, createConversationBodySchema as Fr, revokePersonalTokenResponseSchema as Ft, AutomationUpdate as G, ConversationEventHistory as Gn, CodeOverviewReport as Gr, startConnectionResponseSchema as Gt, AutomationRunWindows as H, ConversationAuxiliaryCosts as Hn, conversationTurnFailureReasonSchema as Hr, connectionParamsSchema as Ht, AutomationExecutionList as I, ArchiveConversationBody as In, createConversationMessageBodySchema as Ir, disconnectServiceAccountResponseSchema as It, automationEditErrorSchema as J, ConversationModelUsage as Jn, CodeRepositorySummary as Jr, LocationActivityDayReport as Jt, AutomationVersionList as K, ConversationEventPage as Kn, CodePersonReport as Kr, ApiError as Kt, AutomationExecutionStatusDay as L, ArchiveConversationResponse as Ln, forkConversationBodySchema as Lr, serviceAccountListSchema as Lt, statsReportSchema as M, GuardianStats as Mn, conversationReportEventDataSchema as Mr, personalTokenListSchema as Mt, AutomationEdit as N, conversationStatsReportSchema as Nn, conversationReportEventSchema as Nr, personalTokenMetadataSchema as Nt, skillReportsSchema as O, ConversationMetricDay as On, conversationPendingAuthorizationSchema as Or, userCustomizationSchema as Ot, AutomationExecution as P, AcceptedConversationMessage as Pn, conversationSummaryReportSchema as Pr, personalTokenParamsSchema as Pt, automationExecutionSchema as Q, ConversationPendingMessagesReport as Qn, codeOverviewReportSchema as Qr, LocationParams as Qt, AutomationList as R, CancelConversationPendingMessagesBody as Rn, forkConversationResponseSchema as Rr, serviceAccountParamsSchema as Rt, pluginPackageContentItemReportSchema as S, MessageAttachment as Si, ConversationChildAgent as Sn, conversationEventHistorySchema as Sr, workspaceBodySchema as St, pluginsSchema as T, conversationChildAgentsReportSchema as Tn, conversationFeedQuerySchema as Tr, workspaceRepoSchema as Tt, AutomationScheduleIntent as U, ConversationCost as Un, CodeActivityDay as Ur, connectionSchema as Ut, AutomationRunList as V, ConversationAgentTreeNode as Vn, conversationTurnFailureCodeSchema as Vr, connectionListSchema as Vt, AutomationSummary as W, ConversationDetailReport as Wn, CodeChangeSummaryReport as Wr, disconnectConnectionResponseSchema as Wt, automationEventCatalogSchema as X, ConversationPendingMessage as Xn, codeChangeSummaryReportSchema as Xr, LocationDetailReport as Xt, automationEditSchema as Y, ConversationParams as Yn, codeActivityDaySchema as Yr, LocationActorSummaryReport as Yt, automationExecutionListSchema as Z, ConversationPendingMessageDelivery as Zn, codeChangeSummarySchema as Zr, LocationDirectoryReport as Zt, SkillReport as _, normalizeUserInputAnswer as _i, personalSpendReportSchema as _n, cancelConversationPendingMessagesResponseSchema as _r, BaselineSnapshotReport as _t, reviewItemCountSchema as a, DailyConversationActivity as ai, ActorDirectoryReport as an, ConversationSurface as ar, automationRunSchema as at, pluginOperationalReportFeedSchema as b, MAX_INPUT_IMAGES as bi, conversationWatchSchema as bn, conversationDetailQuerySchema as br, baselineSnapshotSchema as bt, reviewItemWaitingConversationsSchema as c, messageCardText as ci, ActorSummaryReport as cn, ConversationUsage as cr, automationSchedulePreviewSchema as ct, PluginOperationalReport as d, USER_INPUT_NOTE as di, PeopleActivityDayReport as dn, SteerConversationPendingMessagesBody as dr, automationVersionActivateSchema as dt, codeRepositoryParamsSchema as ei, locationActivityDayReportSchema as en, ConversationReportEventData as er, automationExecutionStatusSchema as et, PluginOperationalReportFeed as f, UserInputAnswer as fi, PersonParams as fn, SteerConversationPendingMessagesResponse as fr, automationVersionListSchema as ft, RuntimeInfoReport as g, isEmptyUserInputAnswer as gi, personParamsSchema as gn, cancelConversationPendingMessagesBodySchema as gr, scheduledAutomationSummarySchema as gt, Plugins as h, buttonUserInputField as hi, actorProfileReportSchema as hn, archiveConversationResponseSchema as hr, eventAutomationSummarySchema as ht, reviewItemActionSchema as i, conversationChildAgentTotalsSchema as ii, ActorActivityDayReport as in, ConversationSummaryReport as ir, automationRunListSchema as it, statSchema as j, GuardianMetricDay as jn, conversationPendingMessagesReportSchema as jr, createdPersonalTokenSchema as jt, StatReport as k, ConversationStatsItem as kn, conversationPendingMessageDeliverySchema as kr, PersonalTokenMetadata as kt, HealthReport as l, resolveMessageCards as li, ActorTotalsReport as ln, CreateConversationBody as lr, automationSummarySchema as lt, PluginPackageContentReport as m, UserInputRequest as mi, actorDirectoryReportSchema as mn, archiveConversationBodySchema as mr, automationVersionSchema as mt, ReviewItemActionBody as n, codeRepositorySummarySchema as ni, locationDirectoryReportSchema as nn, ConversationReportStatus as nr, automationListSchema as nt, reviewItemListSchema as o, dailyConversationActivitySchema as oi, ActorDirectoryWindows as on, ConversationTurnFailureCode as or, automationRunWindowsSchema as ot, PluginPackageContentItemReport as p, UserInputField as pi, PersonalSpendReport as pn, acceptedConversationMessageSchema as pr, automationVersionParamsSchema as pt, ListedAutomationVersion as q, ConversationFeed as qn, CodeRepositoryReport as qr, apiErrorSchema as qt, ReviewItemPayload as r, ConversationChildAgentTotals as ri, locationParamsSchema as rn, ConversationSourceTask as rr, automationParamsSchema as rt, reviewItemSchema as s, MessageCard as si, ActorProfileReport as sn, ConversationTurnFailureReason as sr, automationScheduleIntentSchema as st, OwnedObjectAnnotation$1 as t, codeRepositoryReportSchema as ti, locationDetailReportSchema as tn, ConversationReportMessageEvent as tr, automationListQuerySchema as tt, Plugin as u, AutomationCard as ui, ActorWindowMetrics as un, CreateConversationMessageBody as ur, automationUpdateSchema as ut, SkillReports as v, webMessageId as vi, ConversationWatch as vn, conversationActivityPreviewSchema as vr, WorkspaceListReport as vt, pluginSchema as w, conversationChildAgentSchema as wn, conversationEventsQuerySchema as wr, workspaceParamsSchema as wt, pluginOperationalReportSchema as x, MAX_INPUT_IMAGE_BYTES as xi, conversationWatchesReportSchema as xn, conversationDetailReportSchema as xr, deleteWorkspaceResponseSchema as xt, healthReportSchema as y, InputImage as yi, ConversationWatchesReport as yn, conversationAuxiliaryCostsSchema as yr, WorkspaceReport as yt, AutomationListQuery as z, CancelConversationPendingMessagesResponse as zn, steerConversationPendingMessagesBodySchema as zr, serviceAccountSchema as zt };
@@ -1,6 +1,6 @@
1
- import { n as pluginCatalogRuntime } from "./catalog-runtime-BsoSmTM0.js";
2
- import { t as disconnectStateAdapter } from "./adapter-2-CG25be.js";
3
- import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-DHvlLnZw.js";
1
+ import { n as pluginCatalogRuntime } from "./catalog-runtime-Bw9kjGVu.js";
2
+ import { t as disconnectStateAdapter } from "./adapter-Bqbtr1RV.js";
3
+ import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-CHO3YXpt.js";
4
4
  import { CLI_USAGE } from "./cli/run.js";
5
5
  import { createServer } from "node:http";
6
6
  // src/cli/service-account.ts
@@ -1,7 +1,7 @@
1
- import { B as isRecord, b as setSpanAttributes, h as logWarn } from "./logging-n7knse-O.js";
2
- import { c as fetchWithBoundedOAuthErrorBodies, i as resolvePluginHeaderEnvRefs } from "./registry-By36_xsm.js";
1
+ import { B as isRecord, b as setSpanAttributes, h as logWarn } from "./logging-DuwXUuIY.js";
2
+ import { c as fetchWithBoundedOAuthErrorBodies, i as resolvePluginHeaderEnvRefs } from "./registry-BPtbAVFo.js";
3
3
  import { a as withLock, i as fenceLock, n as MUTATION_LOCK_TTL_MS } from "./locks-D-0h111u.js";
4
- import { r as getStateAdapter } from "./adapter-2-CG25be.js";
4
+ import { r as getStateAdapter } from "./adapter-Bqbtr1RV.js";
5
5
  import { AsyncLocalStorage } from "node:async_hooks";
6
6
  import { randomUUID } from "node:crypto";
7
7
  import { UnauthorizedError, auth } from "@modelcontextprotocol/sdk/client/auth.js";