@sentry/junior 0.287.0 → 0.288.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 (72) hide show
  1. package/dist/{adapter-CL-HUKgd.js → adapter-Cikcqdty.js} +1 -1
  2. package/dist/{admin-C9urXVfi.js → admin-BcSxHuTB.js} +2 -2
  3. package/dist/{agent-runner-Bfnw551N.js → agent-runner-9MXyWUL8.js} +173 -89
  4. package/dist/api/schema.d.ts +2 -2
  5. package/dist/api/schema.js +8 -7
  6. package/dist/api.d.ts +1 -1
  7. package/dist/api.js +403 -40
  8. package/dist/{app-DBY5TnfY.d.ts → app-BUklJVBe.d.ts} +4 -2
  9. package/dist/app.d.ts +1 -1
  10. package/dist/app.js +521 -70
  11. package/dist/{assistant-reply-u_PRYzuz.js → assistant-reply-mj47jMRV.js} +1 -1
  12. package/dist/{automation-DksGNDRO.js → automation-DDXwHQs5.js} +2 -2
  13. package/dist/{background-compaction-queue-CYI909P5.js → background-compaction-queue-CjllSPir.js} +161 -90
  14. package/dist/{briefs-DaXiMWzT.js → briefs-DW9iuolG.js} +4 -3
  15. package/dist/{catalog-runtime-BCIuBe4d.js → catalog-runtime-B3gfH58M.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/{config-CkHcUMN7.js → config-CLJcyYEF.js} +401 -9
  24. package/dist/{connections-BnIj0wtx.js → connections-BtdJftow.js} +9 -9
  25. package/dist/{conversation-E7ZPJx2H.js → conversation-DhoqHtQ7.js} +23 -6
  26. package/dist/{conversation-pending-messages-DVch6YQw.js → conversation-pending-messages-DHV0S4uF.js} +1 -1
  27. package/dist/{conversation-privacy-DF1hW0ja.js → conversation-privacy-BPirIVlX.js} +1 -1
  28. package/dist/core-model-BTt5E5b0.js +182 -0
  29. package/dist/{credential-sync-CzMar9hq.js → credential-sync-Co8Q2xRW.js} +28 -20
  30. package/dist/{db-DJ11eZqq.js → db-Co7DTYYh.js} +30 -20
  31. package/dist/{db-YDKKDxlh.d.ts → db-zIs8-Ba3.d.ts} +6 -2
  32. package/dist/{executor-BY9TB31g.js → executor-m0kIN71Q.js} +93 -12
  33. package/dist/{media-Cz1ZiV1U.js → history-IjdmO_r6.js} +6 -86
  34. package/dist/instrumentation.js +2 -2
  35. package/dist/{logging-BO5zU6Mt.js → logging-DbD-dErY.js} +3 -2
  36. package/dist/media-BAHvgkok.js +85 -0
  37. package/dist/{message-CsUbuEc8.js → message-DKTdTYm-.js} +9 -9
  38. package/dist/nitro.d.ts +1 -1
  39. package/dist/nitro.js +19 -41
  40. package/dist/{oauth-callback-server-hiDKK0_n.js → oauth-callback-server-CpbepSbp.js} +2 -2
  41. package/dist/{projection-CL_YWeGf.js → projection-BViECfYu.js} +309 -616
  42. package/dist/{prompt-BHOEQSmf.js → prompt-KT6MaDHN.js} +2 -182
  43. package/dist/{registry-BriFLnaJ.js → registry-D-Acyjhh.js} +1 -1
  44. package/dist/{resolve-Bt6GgAiA.js → resolve-gkT2R66z.js} +3 -3
  45. package/dist/{result-Bo1TZu0Q.js → result-DHmCFEt8.js} +8 -8
  46. package/dist/{runner-D3YeCQgt.js → runner-DBKjGjH-.js} +8 -8
  47. package/dist/{sandbox-egress-signals-CcnSPP4S.js → sandbox-egress-signals-9n8hqx29.js} +1 -1
  48. package/dist/{schedule-BTp__wrw.js → schedule-cP0AACm1.js} +11 -2
  49. package/dist/{schema-C6fsEwjo.d.ts → schema-B_6aOcx5.d.ts} +114 -3
  50. package/dist/{schema-BWE3RJEB.js → schema-DxicIQbc.js} +66 -13
  51. package/dist/{service-account-r6fl0b-9.js → service-account-Bi0HsY6w.js} +3 -3
  52. package/dist/{service-account-DiQQuuw7.js → service-account-CDlC9ssy.js} +3 -3
  53. package/dist/{session-stop-B2Nut40V.js → session-stop-BWOsuo8p.js} +56 -14
  54. package/dist/{skills-CD5aJdzg.js → skills-DO5K68Rq.js} +2 -2
  55. package/dist/{spawn-CalgZQiu.js → spawn-BBqZDcPa.js} +5 -5
  56. package/dist/{stop-kujZLbi0.js → stop-WC97cmHz.js} +802 -338
  57. package/dist/{store-DdIEUL1q.js → store-ByR1Lr7e.js} +4 -16
  58. package/dist/{task-runner-D_RDr2Hu.js → task-runner-B-Ewf8TX.js} +30 -22
  59. package/dist/{turn-failure-response-B5nV1Er-.js → turn-failure-response-CpdPoZSl.js} +18 -9
  60. package/dist/{validation-K4pqwoVZ.js → validation-B4sbIoES.js} +1 -1
  61. package/dist/{version-DBvhk1X9.js → version-D6lpuAgL.js} +1 -1
  62. package/dist/version.js +1 -1
  63. package/dist/{viewer-DrMmFUul.js → viewer-CeP27tC3.js} +4 -4
  64. package/dist/warmup-P_GJCL1c.js +767 -0
  65. package/dist/{work-ljRoODGu.js → work-DI7x1Slm.js} +14 -13
  66. package/dist/{worker-CYO1Q0Js.js → worker-CYPTOT4j.js} +6 -6
  67. package/migrations/0089_conversation_paused_status.sql +3 -0
  68. package/migrations/0090_guardian_review_time_index.sql +20 -0
  69. package/migrations/meta/0089_snapshot.json +4372 -0
  70. package/migrations/meta/0090_snapshot.json +4388 -0
  71. package/migrations/meta/_journal.json +14 -0
  72. package/package.json +5 -4
@@ -1,6 +1,6 @@
1
- import { Bt as stopConversationWork$1, Ct as getConversationWorkState$1, Ft as removeActiveConversation$1, It as requestAnotherSlice$1, Lt as requestConversationWork$1, Mt as recordConversationRetry$1, Nt as releaseConversationWork$1, Ot as listActiveConversationIds$1, Pt as releaseInboundMessage, Rt as startConversationWork$1, St as getConversation$1, _t as clearExpiredConversationLease$1, bt as deadLetterAttempt$1, dt as appendInboundMessage, ft as beginConversationResume$1, gt as clearConsumedConversationWake$1, ht as claimInboundMessage$1, jt as recordAttemptFailure$1, kt as markConversationWorkEnqueued$1, lt as ackMessages$1, mt as checkInConversationWork$1, pt as cancelHumanFacingPendingMessages$1, ut as appendExclusiveInboundMessage, vt as completeConversationStop$1, xt as drainConversationMailbox$1, yt as completeConversationWork$1, zt as steerWebPendingMessages$1 } from "./projection-CL_YWeGf.js";
2
- import { a as getConversationStore } from "./db-DJ11eZqq.js";
3
- import "./background-compaction-queue-CYI909P5.js";
1
+ import { Bt as requestAnotherSlice$1, Dt as getConversationWorkState$1, Et as getConversation$1, Ht as startConversationWork$1, It as recordAttemptFailure$1, Lt as recordConversationRetry$1, Mt as listActiveConversationIds$1, Nt as markConversationWorkEnqueued$1, Rt as releaseConversationWork$1, St as completeConversationWork$1, Tt as drainConversationMailbox$1, Ut as steerWebPendingMessages$1, Vt as requestConversationWork$1, Wt as stopConversationWork$1, _t as checkInConversationWork$1, bt as clearExpiredConversationLease$1, ft as ackMessages$1, gt as cancelHumanFacingPendingMessages$1, ht as beginConversationResume$1, kt as hasRunnableConversationWork, mt as appendInboundMessage, pt as appendExclusiveInboundMessage, vt as claimInboundMessage$1, wt as deadLetterAttempt$1, xt as completeConversationStop$1, yt as clearConsumedConversationWake$1, zt as releaseInboundMessage } from "./projection-BViECfYu.js";
2
+ import { a as getConversationStore } from "./db-Co7DTYYh.js";
3
+ import "./background-compaction-queue-CjllSPir.js";
4
4
  // src/chat/task-execution/store.ts
5
5
  function metadataStore(options) {
6
6
  return options.conversationStore ?? getConversationStore();
@@ -55,14 +55,6 @@ async function recordConversationRetry(args) {
55
55
  await recordExecutionMetadata(args);
56
56
  return result;
57
57
  }
58
- /** Count mailbox messages that have not yet reached the conversation event log. */
59
- function countPendingConversationMessages(conversation) {
60
- return conversation.execution.pendingMessages.length;
61
- }
62
- /** Return whether a conversation has pending or resumable execution work. */
63
- function hasRunnableConversationWork(conversation) {
64
- return conversation.execution.status !== "idle" || countPendingConversationMessages(conversation) > 0;
65
- }
66
58
  /**
67
59
  * Ensure runnable conversation work has one accepted queue wake-up nudge.
68
60
  *
@@ -309,12 +301,8 @@ async function clearExpiredConversationLease(args) {
309
301
  await recordExecutionMetadata(args);
310
302
  return result;
311
303
  }
312
- /** Remove one conversation from the active index after it is missing or idle. */
313
- async function removeActiveConversation(args) {
314
- return await removeActiveConversation$1(args);
315
- }
316
304
  /** List active conversation ids by oldest execution update first. */
317
305
  async function listActiveConversationIds(args = {}) {
318
306
  return await listActiveConversationIds$1(args);
319
307
  }
320
- export { removeActiveConversation as C, steerWebPendingMessages as D, startConversationWork as E, stopConversationWork as O, releaseConversationWork as S, requestConversationWork as T, getConversationWorkState as _, cancelHumanFacingPendingMessages as a, recordAttemptFailure as b, clearConsumedConversationWake as c, completeConversationWork as d, countPendingConversationMessages as f, getConversation as g, ensureConversationWake as h, beginConversationResume as i, clearExpiredConversationLease as l, drainConversationMailbox as m, appendAndEnqueueExclusiveInboundMessage as n, checkInConversationWork as o, deadLetterAttempt as p, appendAndEnqueueInboundMessage as r, claimInboundMessage as s, ackMessages as t, completeConversationStop as u, hasRunnableConversationWork as v, requestAnotherSlice as w, recordConversationRetry as x, listActiveConversationIds as y };
308
+ export { startConversationWork as C, requestConversationWork as S, stopConversationWork as T, listActiveConversationIds as _, cancelHumanFacingPendingMessages as a, releaseConversationWork as b, clearConsumedConversationWake as c, completeConversationWork as d, deadLetterAttempt as f, getConversationWorkState as g, getConversation as h, beginConversationResume as i, clearExpiredConversationLease as l, ensureConversationWake as m, appendAndEnqueueExclusiveInboundMessage as n, checkInConversationWork as o, drainConversationMailbox as p, appendAndEnqueueInboundMessage as r, claimInboundMessage as s, ackMessages as t, completeConversationStop as u, recordAttemptFailure as v, steerWebPendingMessages as w, requestAnotherSlice as x, recordConversationRetry as y };
@@ -1,16 +1,16 @@
1
1
  import { v as __exportAll } from "./sentry-BRTJqumy.js";
2
- import { $a as createPluginLogger, $i as postSlackMessage, Ba as createPluginModel, Fo as createPluginCache, Hi as formatSlackLink, Io as createDurableLocationConfigurationService, Qa as createPluginModelCostRecorder, T as fallbackShortTitle, Vi as escapeSlackMrkdwnText, Xi as openSlackDirectMessage, Zn as getPlugins, Zt as getPiMessageRole, b as persistConversationMessages, cn as normalizeToolNameFromResult, er as coreTaskRegistrations, fi as getDashboardTaskLink, hi as createPluginState, it as getTurnRecord, mi as ToolInputError, nn as instructionTextForProjection, on as isToolResultError, si as JUNIOR_THREAD_STATE_TTL_MS, sn as isToolResultMessage, un as stripRuntimeTurnContext, uo as createPluginConversationEvents, v as hydrateConversationMessages, za as createPluginEmbedder } from "./projection-CL_YWeGf.js";
3
- import { n as botConfig } from "./config-CkHcUMN7.js";
4
- import { E as withSpan, G as toOptionalNumber, K as toOptionalString, W as isRecord$1, _ as runBestEffort, h as logWarn } from "./logging-BO5zU6Mt.js";
2
+ import { Bn as getPlugins, Ga as createPluginModelCostRecorder, Gi as postSlackMessage, Hi as openSlackDirectMessage, Ka as createPluginLogger, Ma as createPluginEmbedder, Na as createPluginModel, Ni as escapeSlackMrkdwnText, Oo as createPluginCache, Pi as formatSlackLink, Qr as JUNIOR_THREAD_STATE_TTL_MS, T as fallbackShortTitle, Un as coreTaskRegistrations, b as persistConversationMessages, dn as isToolResultMessage, fn as normalizeToolNameFromResult, ko as createDurableLocationConfigurationService, mn as stripRuntimeTurnContext, oi as ToolInputError, on as instructionTextForProjection, ri as getDashboardTaskLink, ro as createPluginConversationEvents, si as createPluginState, st as getTurnRecord, tn as getPiMessageRole, un as isToolResultError, v as hydrateConversationMessages } from "./projection-BViECfYu.js";
3
+ import { n as botConfig } from "./config-CLJcyYEF.js";
4
+ import { E as withSpan, J as toOptionalString, K as isRecord$1, _ as runBestEffort, h as logWarn, q as toOptionalNumber } from "./logging-DbD-dErY.js";
5
5
  import { h as parseSlackMessageTs } from "./actor-6jsm_v96.js";
6
- import { H as agentTurnCostUsd, U as agentTurnTotalTokens, a as getConversationStore, o as getDb } from "./db-DJ11eZqq.js";
7
- import { A as juniorConversations, d as juniorAutomationVersions, f as juniorAutomations, u as juniorAutomationRuns } from "./executor-BY9TB31g.js";
8
- import { v as sameActorIdentity } from "./media-Cz1ZiV1U.js";
9
- import { h as credentialSubjectSchema } from "./registry-BriFLnaJ.js";
10
- import { i as readActorIdentity } from "./viewer-DrMmFUul.js";
11
- import { r as getStateAdapter } from "./adapter-CL-HUKgd.js";
12
- import { c as pluginTaskParamsSchema, d as sendVercelPluginTask, s as pluginTaskId } from "./background-compaction-queue-CYI909P5.js";
13
- import { O as eventAutomationSchema, S as automationVersionSchema, j as scheduledAutomationSchema } from "./automation-DksGNDRO.js";
6
+ import { G as agentTurnTotalTokens, W as agentTurnCostUsd, a as getConversationStore, o as getDb } from "./db-Co7DTYYh.js";
7
+ import { A as juniorConversations, d as juniorAutomationVersions, f as juniorAutomations, u as juniorAutomationRuns } from "./executor-m0kIN71Q.js";
8
+ import { m as sameActorIdentity } from "./history-IjdmO_r6.js";
9
+ import { h as credentialSubjectSchema } from "./registry-D-Acyjhh.js";
10
+ import { i as readActorIdentity } from "./viewer-CeP27tC3.js";
11
+ import { r as getStateAdapter } from "./adapter-Cikcqdty.js";
12
+ import { c as pluginTaskParamsSchema, d as sendVercelPluginTask, s as pluginTaskId } from "./background-compaction-queue-CjllSPir.js";
13
+ import { O as eventAutomationSchema, S as automationVersionSchema, j as scheduledAutomationSchema } from "./automation-DDXwHQs5.js";
14
14
  import { createHash } from "node:crypto";
15
15
  import * as z from "zod";
16
16
  import { and, asc, count, desc, eq, gte, inArray, isNotNull, isNull, lte, max, ne, or, sql } from "drizzle-orm";
@@ -349,7 +349,7 @@ function slackSourceForDestination(args) {
349
349
  * Reads parent Conversations when this Conversation has no Destination.
350
350
  */
351
351
  async function resolveConversationRouting(args) {
352
- const conversationStore = args.conversationStore ?? (await import("./db-DJ11eZqq.js").then((n) => n.n)).getConversationStore();
352
+ const conversationStore = args.conversationStore ?? (await import("./db-Co7DTYYh.js").then((n) => n.n)).getConversationStore();
353
353
  const chain = await loadConversationChain(args.conversationId, conversationStore);
354
354
  let destination;
355
355
  let source;
@@ -1235,19 +1235,25 @@ async function collectEventAutomationMatchKeys(db, input) {
1235
1235
  return [...keys].sort();
1236
1236
  }
1237
1237
  /**
1238
- * Find every live task matching one normalized event: tasks for its exact
1239
- * identifier, and tasks with no identifier whose filters match. The gate
1240
- * skips a row whose trigger and identifier column disagree, and a row with
1241
- * no identifier whose trigger the enabled `catalog` rejects.
1238
+ * Find every live task matching each normalized event, with one read for all
1239
+ * of them: tasks for its exact identifier, and tasks with no identifier whose
1240
+ * filters match. Returns one list per event, in order. The events must share
1241
+ * one namespace. The gate skips a row whose trigger and identifier column
1242
+ * disagree, and a row with no identifier whose trigger the enabled `catalog`
1243
+ * rejects.
1242
1244
  */
1243
- async function findMatchingEventAutomations(db, event, teamId, catalog) {
1244
- return (await readGatedEventAutomations(db, {
1245
+ async function findMatchingEventAutomations(db, events, teamId, catalog) {
1246
+ const namespace = events[0]?.namespace;
1247
+ if (namespace === void 0) return [];
1248
+ if (events.some((event) => event.namespace !== namespace)) throw new Error("Events to match must share one namespace.");
1249
+ const tasks = await readGatedEventAutomations(db, {
1245
1250
  catalog,
1246
- eventTypes: [event.eventType],
1247
- identifiers: [event.identifier],
1248
- namespace: event.namespace,
1251
+ eventTypes: [...new Set(events.map((event) => event.eventType))],
1252
+ identifiers: [...new Set(events.map((event) => event.identifier))],
1253
+ namespace,
1249
1254
  teamId
1250
- })).filter((task) => task.trigger.events.includes(event.eventType) && eventMatches(task.trigger.match, event.data));
1255
+ });
1256
+ return events.map((event) => tasks.filter((task) => (task.trigger.identifier === void 0 || task.trigger.identifier === event.identifier) && task.trigger.events.includes(event.eventType) && eventMatches(task.trigger.match, event.data)));
1251
1257
  }
1252
1258
  /**
1253
1259
  * Change lifecycle under the same row lock as edits, without changing
@@ -1500,6 +1506,7 @@ const dispatchRecordSchema = z.object({
1500
1506
  source: sourceSchema,
1501
1507
  outcomes: z.array(taskOutcomeSchema).max(5).optional(),
1502
1508
  status: dispatchStatusSchema,
1509
+ title: z.string().min(1).optional(),
1503
1510
  updatedAtMs: z.number().finite()
1504
1511
  }).strict().superRefine((record, ctx) => {
1505
1512
  if (!isSlackDestination(record.destination)) {
@@ -1667,6 +1674,7 @@ async function createOrGetDispatch(args) {
1667
1674
  ...args.options.outcomes ? { outcomes: args.options.outcomes } : void 0,
1668
1675
  status: "pending",
1669
1676
  source: args.options.source,
1677
+ ...args.options.title?.trim() ? { title: args.options.title.trim() } : void 0,
1670
1678
  updatedAtMs: args.nowMs
1671
1679
  };
1672
1680
  await updatePendingDispatchMailboxAppendIndex(state, (ids) => ids.includes(id) ? ids : [...ids, id]);
@@ -1,17 +1,26 @@
1
- import { Cn as buildDeterministicTurnId, D as buildConversationContext, M as markConversationMessage, ko as listConversationAnnotations, q as clearPendingAuth, v as hydrateConversationMessages } from "./projection-CL_YWeGf.js";
2
- import { I as findProviderError, L as getProviderErrorAttributes, P as ProviderError, R as getProviderErrorUserMessage, g as TURN_REASONING_LEVELS } from "./config-CkHcUMN7.js";
3
- import { W as isRecord, b as setSpanAttributes, t as buildTurnFailureResponse } from "./logging-BO5zU6Mt.js";
1
+ import { D as buildConversationContext, M as markConversationMessage, So as listConversationAnnotations, Z as clearPendingAuth, v as hydrateConversationMessages } from "./projection-BViECfYu.js";
2
+ import { B as ProviderError, H as findProviderError, U as getProviderErrorAttributes, W as getProviderErrorUserMessage, g as TURN_REASONING_LEVELS } from "./config-CLJcyYEF.js";
3
+ import { K as isRecord, b as setSpanAttributes, t as buildTurnFailureResponse } from "./logging-DbD-dErY.js";
4
4
  import { h as parseSlackMessageTs } from "./actor-6jsm_v96.js";
5
- import { o as getDb, r as getConversationEventStore, s as getSqlExecutor } from "./db-DJ11eZqq.js";
6
- import { g as juniorAgentInvocations } from "./executor-BY9TB31g.js";
7
- import { p as credentialContextSchema } from "./registry-BriFLnaJ.js";
8
- import { F as removedCardSchema, I as resolveMessageCards, P as readMessageCardRefs } from "./conversation-E7ZPJx2H.js";
5
+ import { o as getDb, r as getConversationEventStore, s as getSqlExecutor } from "./db-Co7DTYYh.js";
6
+ import { g as juniorAgentInvocations } from "./executor-m0kIN71Q.js";
7
+ import { p as credentialContextSchema } from "./registry-D-Acyjhh.js";
8
+ import { B as resolveMessageCards, R as readMessageCardRefs, z as removedCardSchema } from "./conversation-DhoqHtQ7.js";
9
9
  import { C as AGENT_INVOCATION_PARENT_MAILBOX_STATUSES, S as AGENT_INVOCATION_MAILBOX_STATUSES } from "./reporting-window-B3Ze-Qnt.js";
10
- import { _t as getPersistedThreadState, bt as coerceThreadConversationState, yt as persistThreadStateById } from "./task-runner-D_RDr2Hu.js";
10
+ import { _t as getPersistedThreadState, bt as coerceThreadConversationState, yt as persistThreadStateById } from "./task-runner-B-Ewf8TX.js";
11
11
  import { createHash } from "node:crypto";
12
12
  import * as z from "zod";
13
13
  import { and, asc, desc, eq, inArray, or, sql } from "drizzle-orm";
14
14
  import { actorSchema, destinationSchema, sourceSchema } from "@sentry/junior-plugin-api";
15
+ // src/chat/state/turn-id.ts
16
+ /** Build a stable turn identifier from a message ID. */
17
+ function buildDeterministicTurnId(messageId) {
18
+ return `turn_${messageId.replace(/[^a-zA-Z0-9_-]/g, "_")}`;
19
+ }
20
+ /** Build the stable visible assistant-message identity for one logical turn. */
21
+ function buildDeterministicAssistantMessageId(turnId) {
22
+ return `${turnId}:assistant:1`;
23
+ }
15
24
  // src/chat/runtime/turn.ts
16
25
  /** Classified Slack turn failure carrying the owning Sentry capture outward. */
17
26
  var ConversationTurnBoundaryError = class extends Error {
@@ -804,4 +813,4 @@ function finalizeFailedTurnReplyWithEvent(args) {
804
813
  }
805
814
  };
806
815
  }
807
- export { getUnnamedAgentConversationId as $, markAgentInvocationPaused as A, AGENT_TYPES as B, isTerminalAgentInvocation as C, listPendingAgentInvocationResults as D, listPendingAgentInvocationMailboxAppends as E, CHILD_AGENT_RESULTS as F, getAgentInvocationIdForEvents as G, agentTypeStartsWithParentHistory as H, PARENT_AGENT_TARGET as I, getAgentInvocationMessageId as J, getAgentInvocationIdForMessage as K, agentBindingSchema as L, markAgentInvocationSteered as M, reportReplacedAgentInvocation as N, markAgentInvocationMailboxAppended as O, CHILD_AGENT_KINDS as P, getNamedAgentConversationId as Q, agentNameSchema as R, invocationFromRow as S, listOpenAgentInvocations as T, formatAgentTypes as U, agentTypeInstructions as V, getAgentInvocationId as W, getAgentInvocationTurnId as X, getAgentInvocationResultMessageId as Y, getChildAgentLockName as Z, completeAgentInvocation as _, persistAuthPauseTurnState as a, getConversationTurnBoundaryError as at, getChildAgentLabel as b, getTurnUserSlackMessageTs as c, isTurnInputDeferredError as ct, loadThreadContextTrimFloor as d, markTurnFailed as dt, parseAgentInvocationResultMessageId as et, ConversationTurnLifecycleService as f, startActiveTurn as ft, NON_TERMINAL_AGENT_INVOCATION_STATUSES as g, ACTIVE_AGENT_INVOCATION_STATUSES as h, completeAuthPauseTurn as i, TurnInputDeferredError as it, markAgentInvocationRunning as j, markAgentInvocationParentMailboxAppended as k, buildDeliveredTurnStatePatch as l, markTurnClosed as lt, loadPendingMessageCards as m, getAgentTurnDiagnosticsAttributes as n, CooperativeTurnYieldError as nt, getTurnUserMessage as o, isCooperativeTurnYieldError as ot, getTurnLifecycle as p, getAgentInvocationIdForResult as q, requireTurnFailureEventId as r, TurnInputCommitLostError as rt, getTurnUserReplyAttachmentContext as s, isTurnInputCommitLostError as st, finalizeFailedTurnReplyWithEvent as t, ConversationTurnBoundaryError as tt, buildTurnThreadContext as u, markTurnCompleted as ut, getActiveAgentInvocationForConversation as v, listAgentInvocationsForConversation as w, getLatestAgentInvocationForConversation as x, getAgentInvocation as y, createAgentInvocationSchema as z };
816
+ export { getUnnamedAgentConversationId as $, markAgentInvocationPaused as A, AGENT_TYPES as B, isTerminalAgentInvocation as C, listPendingAgentInvocationResults as D, listPendingAgentInvocationMailboxAppends as E, CHILD_AGENT_RESULTS as F, getAgentInvocationIdForEvents as G, agentTypeStartsWithParentHistory as H, PARENT_AGENT_TARGET as I, getAgentInvocationMessageId as J, getAgentInvocationIdForMessage as K, agentBindingSchema as L, markAgentInvocationSteered as M, reportReplacedAgentInvocation as N, markAgentInvocationMailboxAppended as O, CHILD_AGENT_KINDS as P, getNamedAgentConversationId as Q, agentNameSchema as R, invocationFromRow as S, listOpenAgentInvocations as T, formatAgentTypes as U, agentTypeInstructions as V, getAgentInvocationId as W, getAgentInvocationTurnId as X, getAgentInvocationResultMessageId as Y, getChildAgentLockName as Z, completeAgentInvocation as _, persistAuthPauseTurnState as a, getConversationTurnBoundaryError as at, getChildAgentLabel as b, getTurnUserSlackMessageTs as c, isTurnInputDeferredError as ct, loadThreadContextTrimFloor as d, markTurnFailed as dt, parseAgentInvocationResultMessageId as et, ConversationTurnLifecycleService as f, startActiveTurn as ft, NON_TERMINAL_AGENT_INVOCATION_STATUSES as g, ACTIVE_AGENT_INVOCATION_STATUSES as h, completeAuthPauseTurn as i, TurnInputDeferredError as it, markAgentInvocationRunning as j, markAgentInvocationParentMailboxAppended as k, buildDeliveredTurnStatePatch as l, markTurnClosed as lt, loadPendingMessageCards as m, buildDeterministicTurnId as mt, getAgentTurnDiagnosticsAttributes as n, CooperativeTurnYieldError as nt, getTurnUserMessage as o, isCooperativeTurnYieldError as ot, getTurnLifecycle as p, buildDeterministicAssistantMessageId as pt, getAgentInvocationIdForResult as q, requireTurnFailureEventId as r, TurnInputCommitLostError as rt, getTurnUserReplyAttachmentContext as s, isTurnInputCommitLostError as st, finalizeFailedTurnReplyWithEvent as t, ConversationTurnBoundaryError as tt, buildTurnThreadContext as u, markTurnCompleted as ut, getActiveAgentInvocationForConversation as v, listAgentInvocationsForConversation as w, getLatestAgentInvocationForConversation as x, getAgentInvocation as y, createAgentInvocationSchema as z };
@@ -1,5 +1,5 @@
1
1
  import { v as __exportAll } from "./sentry-BRTJqumy.js";
2
- import { n as pluginCatalogRuntime } from "./catalog-runtime-BCIuBe4d.js";
2
+ import { n as pluginCatalogRuntime } from "./catalog-runtime-B3gfH58M.js";
3
3
  import { isDeepStrictEqual } from "node:util";
4
4
  // src/chat/plugins/validation.ts
5
5
  var validation_exports = /* @__PURE__ */ __exportAll({
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "0.287.0";
2
+ var version = "0.288.0";
3
3
  // src/version.ts
4
4
  /** Installed Junior package version, or `unknown` when package metadata is unavailable. */
5
5
  const JUNIOR_VERSION = typeof version === "string" && version.trim() ? version : "unknown";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export { t as JUNIOR_VERSION } from "./version-DBvhk1X9.js";
1
+ export { t as JUNIOR_VERSION } from "./version-D6lpuAgL.js";
@@ -1,8 +1,8 @@
1
- import { U as normalizeIdentityEmail, V as GOOGLE_IDENTITY_PROVIDER, h as logWarn } from "./logging-BO5zU6Mt.js";
2
- import { E as findActorIdentityId, o as getDb } from "./db-DJ11eZqq.js";
3
- import { M as juniorUsers, j as juniorIdentities } from "./executor-BY9TB31g.js";
4
- import { r as detectImageMediaType } from "./media-Cz1ZiV1U.js";
1
+ import { G as normalizeIdentityEmail, U as GOOGLE_IDENTITY_PROVIDER, h as logWarn } from "./logging-DbD-dErY.js";
2
+ import { E as findActorIdentityId, o as getDb } from "./db-Co7DTYYh.js";
3
+ import { M as juniorUsers, j as juniorIdentities } from "./executor-m0kIN71Q.js";
5
4
  import { a as withLock } from "./locks-D-0h111u.js";
5
+ import { r as detectImageMediaType } from "./media-BAHvgkok.js";
6
6
  import { createHash, randomUUID } from "node:crypto";
7
7
  import { and, asc, eq, inArray, isNotNull } from "drizzle-orm";
8
8
  import { identitySchema, userSchema } from "@sentry/junior-plugin-api";