@sentry/junior 0.307.0 → 0.307.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/dist/{adapter-context-B69WPn6b.js → adapter-context-HrBTD8rJ.js} +2 -2
  2. package/dist/{admin-nCJXMgkp.js → admin-B78_KmfR.js} +2 -2
  3. package/dist/{agent-runner-DdFcxAxG.js → agent-runner-DxivxUYd.js} +22 -22
  4. package/dist/api.js +26 -26
  5. package/dist/app.js +27 -27
  6. package/dist/{background-compaction-queue-BhEe4UfU.js → background-compaction-queue-HlljT9ql.js} +4 -4
  7. package/dist/{briefs-Dl9lxi7J.js → briefs-DR8mp-TK.js} +2 -2
  8. package/dist/{catalog-runtime-OXrv2Ewn.js → catalog-runtime-Se9idiDR.js} +1 -1
  9. package/dist/cli/chat.js +16 -16
  10. package/dist/cli/check.js +3 -3
  11. package/dist/cli/main.js +3 -3
  12. package/dist/cli/plugins.js +4 -4
  13. package/dist/cli/snapshot-create.js +5 -5
  14. package/dist/cli/upgrade.js +3 -3
  15. package/dist/{config-362yMSIz.js → config-DY5c1E0l.js} +2 -2
  16. package/dist/{connections-BJv3EjmB.js → connections-C-SqzubG.js} +6 -6
  17. package/dist/{continue-in-slack-CFEevC7z.js → continue-in-slack-DNkrrWuQ.js} +5 -5
  18. package/dist/{conversation-privacy-Tjj5P2W6.js → conversation-privacy-CVj9vSrP.js} +1 -1
  19. package/dist/{conversation-turn-DU0_WDAr.js → conversation-turn-CkzrIfJ2.js} +14 -14
  20. package/dist/{credential-sync-D6aFARKE.js → credential-sync-B9CIkgOT.js} +16 -16
  21. package/dist/{db-Bcbd9zQc.js → db-C21CyyTE.js} +3 -3
  22. package/dist/{executor-DBMBrpNV.js → executor-DfNoVVGd.js} +2 -2
  23. package/dist/{install-CgoAbzfF.js → install-lYZs8UCL.js} +2 -2
  24. package/dist/instrumentation.js +2 -2
  25. package/dist/{lineage-CsZDmz3e.js → lineage-BJTSY53A.js} +2 -2
  26. package/dist/{logging-CHCuQ5iz.js → logging-DjW7LjgJ.js} +1 -1
  27. package/dist/{message-B8vCbZZB.js → message-BPPZpdoZ.js} +8 -8
  28. package/dist/{model-input-Xluiy-1W.js → model-input-DKqiLFGa.js} +2 -2
  29. package/dist/nitro.js +12 -4
  30. package/dist/{oauth-callback-server-BUuNvfvu.js → oauth-callback-server-OJP8Y4Ca.js} +2 -2
  31. package/dist/{oauth-relay-DGAZzg9m.js → oauth-relay-KwDz41Z3.js} +1 -1
  32. package/dist/{projection-xPpvqexa.js → projection-D47mlszd.js} +11 -11
  33. package/dist/{prompt-D8u4jFs_.js → prompt-DuWH_YIb.js} +3 -3
  34. package/dist/{registry-D20hG3r6.js → registry-yht0oxq6.js} +1 -1
  35. package/dist/{resolve-BhCySRCW.js → resolve-gZ-hVMYl.js} +3 -3
  36. package/dist/{result-DddO63S9.js → result-CP99Ok0_.js} +8 -8
  37. package/dist/{runner-DQR9vYce.js → runner-eVlnUkY7.js} +9 -9
  38. package/dist/{sandbox-egress-signals-DFlNUOnK.js → sandbox-egress-signals-DZL_0lnG.js} +1 -1
  39. package/dist/{service-account-Bv5QwrEq.js → service-account-CZneZHh7.js} +5 -5
  40. package/dist/{service-account-CNfycv0z.js → service-account-tI3LBg2_.js} +3 -3
  41. package/dist/{session-stop-BDdwyZaa.js → session-stop-D3S7mSkX.js} +11 -11
  42. package/dist/{skills-63i1Bcv1.js → skills-Bm6uSO9V.js} +2 -2
  43. package/dist/{slack-conversation-unfurl-DtpBUlUu.js → slack-conversation-unfurl-BeBvg3xU.js} +10 -10
  44. package/dist/{spawn-mwimEY9_.js → spawn-vhMAmLuh.js} +6 -6
  45. package/dist/{state-BBn9L6gC.js → state-3Yiy2FvP.js} +4 -4
  46. package/dist/{stop-Da-Ug7tg.js → stop-Bh53GUoX.js} +30 -30
  47. package/dist/{store-CdWg2r2L.js → store-BZJdHYR7.js} +5 -5
  48. package/dist/{task-queue-BcjAYWyB.js → task-queue-BEl5G38v.js} +3 -3
  49. package/dist/{task-runner-CoXmMlsW.js → task-runner-C6Bujc6h.js} +6 -6
  50. package/dist/{thread-context-ZPGqOjW7.js → thread-context-DxMQGGd_.js} +6 -6
  51. package/dist/{turn-session-routing-DFYak28Q.js → turn-session-routing-CmQY0T60.js} +4 -4
  52. package/dist/{turn-user-message-B1S8nOnG.js → turn-user-message-Dfbr3Ud9.js} +3 -3
  53. package/dist/{users-DDbENg-I.js → users-6rSdqXXk.js} +1 -1
  54. package/dist/{validation-fl21ps-k.js → validation--hsjOLRL.js} +1 -1
  55. package/dist/{version-DCdMMx_0.js → version-9iMT25Hq.js} +1 -1
  56. package/dist/version.js +1 -1
  57. package/dist/{viewer-DN_xzVKj.js → viewer-De1vmuEA.js} +3 -3
  58. package/dist/{warmup-CxhEhm71.js → warmup-C0IblNtf.js} +18 -18
  59. package/dist/{worker-Btb1SB5h.js → worker-CiyRr2q7.js} +8 -8
  60. package/package.json +7 -7
@@ -1,4 +1,4 @@
1
- import { h as logWarn } from "./logging-CHCuQ5iz.js";
1
+ import { h as logWarn } from "./logging-DjW7LjgJ.js";
2
2
  import { AsyncLocalStorage } from "node:async_hooks";
3
3
  import { renderSystemMessageUpdate } from "@earendil-works/pi-ai";
4
4
  // src/chat/conversation-privacy.ts
@@ -1,21 +1,21 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
2
- import { A as normalizeConversationText, O as latestConversationMessageSeq, P as upsertConversationMessage, Vo as readConversationAutomationRun, Ws as blockScheduledAutomation, a as loadProjection, as as notifyAutomationBlocked, at as getTurnRecord, b as persistConversationMessages, cn as getAssistantReplyText, dc as blockEventAutomation, et as saveTurnCheckpoint, j as recordDeliveredAssistantMessage, ji as verifyTimerWatchCredentialSubject, k as markConversationMessage, qo as getDispatchIdForConversation, rt as failTurnRecord, t as commitAcceptedReply, v as hydrateConversationMessages, vn as persistWithRetry } from "./projection-xPpvqexa.js";
3
- import { E as isTopLevelKind, T as isPersonInput, a as getConversationStore, k as turnBehavior, o as getDb, r as getConversationEventStore } from "./db-Bcbd9zQc.js";
4
- import { E as withSpan, S as setTags, h as logWarn, p as logException } from "./logging-CHCuQ5iz.js";
2
+ import { A as normalizeConversationText, O as latestConversationMessageSeq, P as upsertConversationMessage, Vo as readConversationAutomationRun, Ws as blockScheduledAutomation, a as loadProjection, as as notifyAutomationBlocked, at as getTurnRecord, b as persistConversationMessages, cn as getAssistantReplyText, dc as blockEventAutomation, et as saveTurnCheckpoint, j as recordDeliveredAssistantMessage, ji as verifyTimerWatchCredentialSubject, k as markConversationMessage, qo as getDispatchIdForConversation, rt as failTurnRecord, t as commitAcceptedReply, v as hydrateConversationMessages, vn as persistWithRetry } from "./projection-D47mlszd.js";
3
+ import { E as isTopLevelKind, T as isPersonInput, a as getConversationStore, k as turnBehavior, o as getDb, r as getConversationEventStore } from "./db-C21CyyTE.js";
4
+ import { E as withSpan, S as setTags, h as logWarn, p as logException } from "./logging-DjW7LjgJ.js";
5
5
  import { tt as readMessageAttachments } from "./conversation--f85g4zL.js";
6
- import { L as finalizeFailedTurnReplyWithEvent, O as isConversationDeliveryPaused, i as measureTurnCompactionWait } from "./agent-runner-DdFcxAxG.js";
7
- import { a as buildDeliveredTurnStatePatch, o as loadPendingMessageCards, r as completeAuthPauseTurn, t as buildTurnThreadContext } from "./thread-context-ZPGqOjW7.js";
8
- import { En as supersedeOpenMailboxTurns, Et as resolveConversationDestination, Hn as executeTurn, Rn as createWebAuthorization, Vn as AgentRunError, an as readParentMessage, gn as completeCancelledConversationTurn, nn as isParentMessageMeta, tn as childAgentTurnOptions } from "./warmup-CxhEhm71.js";
9
- import { R as buildDeterministicTurnId, _ as ConversationTurnLifecycleService, d as isTurnInputCommitLostError, g as startActiveTurn, h as markTurnFailed, l as getConversationTurnBoundaryError, s as TurnInputCommitLostError, t as getTurnUserMessage } from "./turn-user-message-B1S8nOnG.js";
10
- import { p as credentialContextForActor } from "./registry-D20hG3r6.js";
6
+ import { L as finalizeFailedTurnReplyWithEvent, O as isConversationDeliveryPaused, i as measureTurnCompactionWait } from "./agent-runner-DxivxUYd.js";
7
+ import { a as buildDeliveredTurnStatePatch, o as loadPendingMessageCards, r as completeAuthPauseTurn, t as buildTurnThreadContext } from "./thread-context-DxMQGGd_.js";
8
+ import { En as supersedeOpenMailboxTurns, Et as resolveConversationDestination, Hn as executeTurn, Rn as createWebAuthorization, Vn as AgentRunError, an as readParentMessage, gn as completeCancelledConversationTurn, nn as isParentMessageMeta, tn as childAgentTurnOptions } from "./warmup-C0IblNtf.js";
9
+ import { R as buildDeterministicTurnId, _ as ConversationTurnLifecycleService, d as isTurnInputCommitLostError, g as startActiveTurn, h as markTurnFailed, l as getConversationTurnBoundaryError, s as TurnInputCommitLostError, t as getTurnUserMessage } from "./turn-user-message-Dfbr3Ud9.js";
10
+ import { p as credentialContextForActor } from "./registry-yht0oxq6.js";
11
11
  import { i as getActiveSpan, r as continueTrace } from "./sentry-CPbZjomA.js";
12
- import { a as getPersistedThreadState, c as coerceThreadConversationState, i as getPersistedSandboxState, s as persistThreadStateById } from "./turn-session-routing-DFYak28Q.js";
13
- import { n as botConfig } from "./config-362yMSIz.js";
14
- import { B as renderEventBatchInputs, D as getEventBatchDelayMs, M as sourceFromTurnInput, N as turnInputFactsFromConversationMessage, P as legacyWebMailboxMetadataSchema, Q as maybePostAutomatedTurnLimitNotice, R as eventBatchMessageMeta, V as timerWatchCredentialSubject, c as loadReviewItemInput, f as buildSteeringPiMessage, g as withoutSavedSteeringMessages, m as instructionForInputs, p as instructionActorFor, s as eventReviewItemInputs, st as recordFinishedTurnForAutomatedLimit, z as isEventMailboxMetadata } from "./session-stop-BDdwyZaa.js";
15
- import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-CoXmMlsW.js";
12
+ import { a as getPersistedThreadState, c as coerceThreadConversationState, i as getPersistedSandboxState, s as persistThreadStateById } from "./turn-session-routing-CmQY0T60.js";
13
+ import { n as botConfig } from "./config-DY5c1E0l.js";
14
+ import { B as renderEventBatchInputs, D as getEventBatchDelayMs, M as sourceFromTurnInput, N as turnInputFactsFromConversationMessage, P as legacyWebMailboxMetadataSchema, Q as maybePostAutomatedTurnLimitNotice, R as eventBatchMessageMeta, V as timerWatchCredentialSubject, c as loadReviewItemInput, f as buildSteeringPiMessage, g as withoutSavedSteeringMessages, m as instructionForInputs, p as instructionActorFor, s as eventReviewItemInputs, st as recordFinishedTurnForAutomatedLimit, z as isEventMailboxMetadata } from "./session-stop-D3S7mSkX.js";
15
+ import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-C6Bujc6h.js";
16
16
  import { p as instructionProvenanceFor } from "./history-N7IVbUom.js";
17
- import { s as isEventConversationMessage } from "./prompt-D8u4jFs_.js";
18
- import { t as readConversationLineage } from "./lineage-CsZDmz3e.js";
17
+ import { s as isEventConversationMessage } from "./prompt-DuWH_YIb.js";
18
+ import { t as readConversationLineage } from "./lineage-BJTSY53A.js";
19
19
  import pLimit from "p-limit";
20
20
  import { isDeepStrictEqual } from "node:util";
21
21
  import { createHash } from "node:crypto";
@@ -1,21 +1,21 @@
1
- import { H as authorizationId, Sn as resolvePluginOAuthAccount, Y as getConversationPendingAuth, at as getTurnRecord, bn as createUserTokenStore, d as recordAuthorizationCompleted, fs as postSlackMessage, na as parseOAuthStatePayload, ra as resolveBaseUrl, ta as formatProviderLabel, u as recordAuthenticationLinked, ws as getSlackClient } from "./projection-xPpvqexa.js";
2
- import { V as escapeXml, a as getRuntimeMetadata, n as botConfig } from "./config-362yMSIz.js";
3
- import { W as isNativeIdentityProvider, _ as runBestEffort, h as logWarn, p as logException } from "./logging-CHCuQ5iz.js";
1
+ import { H as authorizationId, Sn as resolvePluginOAuthAccount, Y as getConversationPendingAuth, at as getTurnRecord, bn as createUserTokenStore, d as recordAuthorizationCompleted, fs as postSlackMessage, na as parseOAuthStatePayload, ra as resolveBaseUrl, ta as formatProviderLabel, u as recordAuthenticationLinked, ws as getSlackClient } from "./projection-D47mlszd.js";
2
+ import { V as escapeXml, a as getRuntimeMetadata, n as botConfig } from "./config-DY5c1E0l.js";
3
+ import { W as isNativeIdentityProvider, _ as runBestEffort, h as logWarn, p as logException } from "./logging-DjW7LjgJ.js";
4
4
  import { p as parseSlackUserId } from "./actor-D2iXzvlN.js";
5
- import { $ as getStateAdapter, H as findUserByVerifiedEmails, I as resolveActorIdentityId, q as upsertLinkedIdentity, rt as acquireActiveLock, s as getSqlExecutor } from "./db-Bcbd9zQc.js";
5
+ import { $ as getStateAdapter, H as findUserByVerifiedEmails, I as resolveActorIdentityId, q as upsertLinkedIdentity, rt as acquireActiveLock, s as getSqlExecutor } from "./db-C21CyyTE.js";
6
6
  import { i as homeDir } from "./package-discovery-x4AvVhMj.js";
7
- import { t as discoverSkills } from "./skills-63i1Bcv1.js";
8
- import { d as hasRequiredOAuthScope, n as buildOAuthTokenRequest, r as parseOAuthTokenResponse } from "./registry-D20hG3r6.js";
9
- import { n as pluginCatalogRuntime } from "./catalog-runtime-OXrv2Ewn.js";
10
- import { o as finalizeMcpAuthorization } from "./agent-runner-DdFcxAxG.js";
11
- import { O as getMcpProviderErrorAttributes, S as putMcpStoredOAuthCredentials, f as deleteMcpAuthSession, g as getMcpAuthSession, v as getMcpStoredOAuthCredentials } from "./service-account-Bv5QwrEq.js";
12
- import { o as readIdentityById } from "./viewer-DN_xzVKj.js";
13
- import { d as readJuniorSecret } from "./task-queue-BcjAYWyB.js";
14
- import { Mn as wakePausedTurn, jn as wakeAuthorizedTurn, zn as deleteWebAuthorization } from "./warmup-CxhEhm71.js";
15
- import { i as lookupSlackUserProfile } from "./users-DDbENg-I.js";
16
- import { a as getPersistedThreadState, c as coerceThreadConversationState } from "./turn-session-routing-DFYak28Q.js";
17
- import { i as readConnectedOAuthTokens, s as htmlCallbackResponse } from "./connections-BJv3EjmB.js";
18
- import { n as relayLocalOAuthCallback } from "./oauth-relay-DGAZzg9m.js";
7
+ import { t as discoverSkills } from "./skills-Bm6uSO9V.js";
8
+ import { d as hasRequiredOAuthScope, n as buildOAuthTokenRequest, r as parseOAuthTokenResponse } from "./registry-yht0oxq6.js";
9
+ import { n as pluginCatalogRuntime } from "./catalog-runtime-Se9idiDR.js";
10
+ import { o as finalizeMcpAuthorization } from "./agent-runner-DxivxUYd.js";
11
+ import { O as getMcpProviderErrorAttributes, S as putMcpStoredOAuthCredentials, f as deleteMcpAuthSession, g as getMcpAuthSession, v as getMcpStoredOAuthCredentials } from "./service-account-CZneZHh7.js";
12
+ import { o as readIdentityById } from "./viewer-De1vmuEA.js";
13
+ import { d as readJuniorSecret } from "./task-queue-BEl5G38v.js";
14
+ import { Mn as wakePausedTurn, jn as wakeAuthorizedTurn, zn as deleteWebAuthorization } from "./warmup-C0IblNtf.js";
15
+ import { i as lookupSlackUserProfile } from "./users-6rSdqXXk.js";
16
+ import { a as getPersistedThreadState, c as coerceThreadConversationState } from "./turn-session-routing-CmQY0T60.js";
17
+ import { i as readConnectedOAuthTokens, s as htmlCallbackResponse } from "./connections-C-SqzubG.js";
18
+ import { n as relayLocalOAuthCallback } from "./oauth-relay-KwDz41Z3.js";
19
19
  import * as z from "zod";
20
20
  import path from "node:path";
21
21
  import { createHmac, createSecretKey, timingSafeEqual } from "node:crypto";
@@ -1,9 +1,9 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
2
- import { i as getChatConfig } from "./config-362yMSIz.js";
2
+ import { i as getChatConfig } from "./config-DY5c1E0l.js";
3
3
  import { a as isSlackUserId, d as parseSlackChannelReferenceId, f as parseSlackTeamId, s as parseActorUserId } from "./actor-D2iXzvlN.js";
4
- import { A as juniorConversationEvents, B as juniorUsers, D as CONVERSATION_METRICS, I as juniorAttachments, L as juniorMessageAttachments, M as juniorConversationAnnotations, O as juniorConversationMetrics, R as juniorConversations, S as juniorConversationBindings, V as juniorDestinations, k as isUserInstruction, p as juniorAutomationRuns, t as createJuniorSqlExecutor, x as juniorConversationParticipants, z as juniorIdentities } from "./executor-DBMBrpNV.js";
4
+ import { A as juniorConversationEvents, B as juniorUsers, D as CONVERSATION_METRICS, I as juniorAttachments, L as juniorMessageAttachments, M as juniorConversationAnnotations, O as juniorConversationMetrics, R as juniorConversations, S as juniorConversationBindings, V as juniorDestinations, k as isUserInstruction, p as juniorAutomationRuns, t as createJuniorSqlExecutor, x as juniorConversationParticipants, z as juniorIdentities } from "./executor-DfNoVVGd.js";
5
5
  import { c as newConversationEventSchema, h as usageSchema, l as encodeHistoryPayload, o as decodeStoredConversationEvent, r as conversationEventDataSchema, s as historyReplacementSchema } from "./history-N7IVbUom.js";
6
- import { G as normalizeIdentityEmail, U as GOOGLE_IDENTITY_PROVIDER, h as logWarn } from "./logging-CHCuQ5iz.js";
6
+ import { G as normalizeIdentityEmail, U as GOOGLE_IDENTITY_PROVIDER, h as logWarn } from "./logging-DjW7LjgJ.js";
7
7
  import * as z from "zod";
8
8
  import { createHash, randomUUID } from "node:crypto";
9
9
  import { and, asc, desc, eq, gt, gte, inArray, isNull, lt, lte, ne, or, sql } from "drizzle-orm";
@@ -1,6 +1,6 @@
1
- import { h as logWarn, p as logException } from "./logging-CHCuQ5iz.js";
1
+ import { h as logWarn, p as logException } from "./logging-DjW7LjgJ.js";
2
2
  import { _ as withScope } from "./sentry-CPbZjomA.js";
3
- import "./config-362yMSIz.js";
3
+ import "./config-DY5c1E0l.js";
4
4
  import { AsyncLocalStorage } from "node:async_hooks";
5
5
  import { sql } from "drizzle-orm";
6
6
  import { bigint, boolean, check, customType, date, doublePrecision, foreignKey, index, integer, jsonb, pgSequence, pgTable, primaryKey, text, timestamp, uniqueIndex, uuid } from "drizzle-orm/pg-core";
@@ -1,5 +1,5 @@
1
- import { Aa as SANDBOX_COMMAND_PATH, Fa as SANDBOX_WORKSPACE_ROOT, Va as runNonInteractiveCommand } from "./projection-xPpvqexa.js";
2
- import { E as withSpan, b as setSpanAttributes } from "./logging-CHCuQ5iz.js";
1
+ import { Aa as SANDBOX_COMMAND_PATH, Fa as SANDBOX_WORKSPACE_ROOT, Va as runNonInteractiveCommand } from "./projection-D47mlszd.js";
2
+ import { E as withSpan, b as setSpanAttributes } from "./logging-DjW7LjgJ.js";
3
3
  // src/chat/sandbox/resources.ts
4
4
  let configuredResources;
5
5
  function resourcesFromEnv() {
@@ -1,10 +1,10 @@
1
1
  import { a as getClient, c as init, i as getActiveSpan, o as getGlobalScope, p as spanToJSON, s as getTraceData } from "./sentry-CPbZjomA.js";
2
- import { n as getCurrentConversationPrivacy } from "./conversation-privacy-Tjj5P2W6.js";
2
+ import { n as getCurrentConversationPrivacy } from "./conversation-privacy-CVj9vSrP.js";
3
3
  import { n as isPushServiceHost } from "./push-endpoint-CO-nomUd.js";
4
4
  import { n as redactSandboxEgressProxyPath } from "./proxy-path-BHYoKZdq.js";
5
5
  import { n as promoteHttpRouteName, r as routeNameMiddleware, t as nameRequestRoute } from "./sentry-route-name-C6EIzAGP.js";
6
6
  import { t as consumePrivateTraceResultMarker } from "./private-trace-result-CE7_lEdq.js";
7
- import { B as getDeploymentServiceVersion, V as getDeploymentTelemetryAttributes } from "./logging-CHCuQ5iz.js";
7
+ import { B as getDeploymentServiceVersion, V as getDeploymentTelemetryAttributes } from "./logging-DjW7LjgJ.js";
8
8
  import { performance } from "node:perf_hooks";
9
9
  import { subscribe, unsubscribe } from "node:diagnostics_channel";
10
10
  // src/chat/pi/gateway-request-timing.ts
@@ -1,5 +1,5 @@
1
- import { A as conversationKindFromRow, o as getDb } from "./db-Bcbd9zQc.js";
2
- import { R as juniorConversations } from "./executor-DBMBrpNV.js";
1
+ import { A as conversationKindFromRow, o as getDb } from "./db-C21CyyTE.js";
2
+ import { R as juniorConversations } from "./executor-DfNoVVGd.js";
3
3
  import { desc, eq, sql } from "drizzle-orm";
4
4
  // src/chat/conversations/lineage.ts
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import { _ as withScope, d as setTag, f as setUser, h as startSpan, i as getActiveSpan, l as logger, n as captureMessage, p as spanToJSON, s as getTraceData, t as captureException } from "./sentry-CPbZjomA.js";
2
- import { t as JUNIOR_VERSION } from "./version-DCdMMx_0.js";
2
+ import { t as JUNIOR_VERSION } from "./version-9iMT25Hq.js";
3
3
  import path from "node:path";
4
4
  import { styleText } from "node:util";
5
5
  import { ConfigError, configureSync, getConfig, getLogger } from "@logtape/logtape";
@@ -1,12 +1,12 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
2
- import { F as actorFromRun, I as toolInvocationDestination } from "./agent-runner-DdFcxAxG.js";
3
- import { $t as readChildConversationSender, Bt as getActiveAgentInvocationForConversation, Cn as findChildAgentConversationId, Sn as AgentMessageTargetError, Tn as PARENT_AGENT_TARGET, Ut as getLatestAgentInvocationForConversation, un as enqueueAgentInvocation, vn as createAgentInvocationForMessage, xn as AgentMessagePausedError } from "./warmup-CxhEhm71.js";
4
- import { a as enqueueAgentMessageToParent } from "./result-DddO63S9.js";
5
- import { Wa as canAccessConversation, qa as readConversationAccessFromSql } from "./projection-xPpvqexa.js";
6
- import { Z as renderUntrustedTag, n as botConfig } from "./config-362yMSIz.js";
7
- import { P as SYSTEM_IDENTITY_ID, a as getConversationStore, o as getDb } from "./db-Bcbd9zQc.js";
8
- import { $ as postAutomatedTurnLimitNoticeForConversation, F as EVENT_WAIT_MS, ot as admitAutomatedTurn } from "./session-stop-BDdwyZaa.js";
9
- import { r as appendAndEnqueueInboundMessage } from "./store-CdWg2r2L.js";
2
+ import { F as actorFromRun, I as toolInvocationDestination } from "./agent-runner-DxivxUYd.js";
3
+ import { $t as readChildConversationSender, Bt as getActiveAgentInvocationForConversation, Cn as findChildAgentConversationId, Sn as AgentMessageTargetError, Tn as PARENT_AGENT_TARGET, Ut as getLatestAgentInvocationForConversation, un as enqueueAgentInvocation, vn as createAgentInvocationForMessage, xn as AgentMessagePausedError } from "./warmup-C0IblNtf.js";
4
+ import { a as enqueueAgentMessageToParent } from "./result-CP99Ok0_.js";
5
+ import { Wa as canAccessConversation, qa as readConversationAccessFromSql } from "./projection-D47mlszd.js";
6
+ import { Z as renderUntrustedTag, n as botConfig } from "./config-DY5c1E0l.js";
7
+ import { P as SYSTEM_IDENTITY_ID, a as getConversationStore, o as getDb } from "./db-C21CyyTE.js";
8
+ import { $ as postAutomatedTurnLimitNoticeForConversation, F as EVENT_WAIT_MS, ot as admitAutomatedTurn } from "./session-stop-D3S7mSkX.js";
9
+ import { r as appendAndEnqueueInboundMessage } from "./store-BZJdHYR7.js";
10
10
  // src/chat/agent-invocations/top-level-message.ts
11
11
  const AGENT_MESSAGE_EVENT_NAMESPACE = "junior";
12
12
  /** Event type of a message from another top-level agent. */
@@ -1,7 +1,7 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
2
- import { s as getSqlExecutor } from "./db-Bcbd9zQc.js";
2
+ import { s as getSqlExecutor } from "./db-C21CyyTE.js";
3
3
  import { h as isVisionImageMediaType, m as detectImageMediaType } from "./web-message-id-BT8Mg8LL.js";
4
- import { bo as readLiveAttachment } from "./projection-xPpvqexa.js";
4
+ import { bo as readLiveAttachment } from "./projection-D47mlszd.js";
5
5
  // src/chat/attachments/model-input.ts
6
6
  var model_input_exports = /* @__PURE__ */ __exportAll({ loadInputAttachments: () => loadInputAttachments });
7
7
  /** Largest file that Slack and web send to the model in the prompt. */
package/dist/nitro.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { d as resolvePackageDir, t as discoverInstalledPluginPackageContent, u as isValidPackageName } from "./package-discovery-x4AvVhMj.js";
2
2
  import { a as pluginRuntimeRegistrationsFromPluginSet, r as pluginCatalogConfigFromPluginSet } from "./plugins-Bkk0XRo2.js";
3
- import { a as CACHE_WARMUP_QUEUE_TOPIC, h as resolveConversationWorkQueueTopic, t as BACKGROUND_COMPACTION_QUEUE_TOPIC, u as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC } from "./background-compaction-queue-BhEe4UfU.js";
4
- import { t as PLUGIN_TASK_QUEUE_TOPIC } from "./task-queue-BcjAYWyB.js";
5
- import { A as JUNIOR_CONTEXT_COMPACTION_CALLBACK_ROUTE, B as getDeploymentServiceVersion, D as JUNIOR_AUTO_ARCHIVE_CRON_SCHEDULE, F as JUNIOR_RETENTION_CRON_SCHEDULE, I as JUNIOR_RETENTION_ROUTE, L as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, M as JUNIOR_HEARTBEAT_CRON_SCHEDULE, N as JUNIOR_HEARTBEAT_ROUTE, O as JUNIOR_AUTO_ARCHIVE_ROUTE, P as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, j as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE, k as JUNIOR_CACHE_WARMUP_CALLBACK_ROUTE } from "./logging-CHCuQ5iz.js";
3
+ import { a as CACHE_WARMUP_QUEUE_TOPIC, h as resolveConversationWorkQueueTopic, t as BACKGROUND_COMPACTION_QUEUE_TOPIC, u as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC } from "./background-compaction-queue-HlljT9ql.js";
4
+ import { t as PLUGIN_TASK_QUEUE_TOPIC } from "./task-queue-BEl5G38v.js";
5
+ import { A as JUNIOR_CONTEXT_COMPACTION_CALLBACK_ROUTE, B as getDeploymentServiceVersion, D as JUNIOR_AUTO_ARCHIVE_CRON_SCHEDULE, F as JUNIOR_RETENTION_CRON_SCHEDULE, I as JUNIOR_RETENTION_ROUTE, L as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, M as JUNIOR_HEARTBEAT_CRON_SCHEDULE, N as JUNIOR_HEARTBEAT_ROUTE, O as JUNIOR_AUTO_ARCHIVE_ROUTE, P as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, j as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE, k as JUNIOR_CACHE_WARMUP_CALLBACK_ROUTE } from "./logging-DjW7LjgJ.js";
6
6
  import { n as loadPluginSetFromModule, r as resolvePluginModule } from "./plugin-module-Cv2ETe8Y.js";
7
7
  import path from "node:path";
8
8
  import { cpSync, existsSync, mkdirSync, readdirSync, statSync } from "node:fs";
@@ -189,7 +189,7 @@ function injectVirtualConfig(nitro, options = {}) {
189
189
  * the uploaded source maps and the runtime events use the same release.
190
190
  */
191
191
  function withSentryConfig(config, options = {}) {
192
- return withSentryConfig$1(config, {
192
+ return withSentryConfig$1(bundleSentryNitroRuntime(config), {
193
193
  ...options,
194
194
  release: {
195
195
  name: getDeploymentServiceVersion(),
@@ -197,6 +197,14 @@ function withSentryConfig(config, options = {}) {
197
197
  }
198
198
  });
199
199
  }
200
+ const SENTRY_NITRO_RUNTIME = /[/\\]@sentry[/\\]nitro[/\\]build[/\\]esm[/\\]runtime[/\\]/;
201
+ function bundleSentryNitroRuntime(config) {
202
+ if (config.noExternals === true) return config;
203
+ return {
204
+ ...config,
205
+ noExternals: [...config.noExternals || [], SENTRY_NITRO_RUNTIME]
206
+ };
207
+ }
200
208
  const DEFAULT_FUNCTION_MAX_DURATION_SECONDS = 300;
201
209
  const VERCEL_QUEUE_TRIGGER_TYPE = "queue/v2beta";
202
210
  const CODEMODE_TRACE_DEPS = ["@earendil-works/pi-codemode*", "quickjs-wasi*"];
@@ -1,5 +1,5 @@
1
- import { a as GET, n as syncLocalOAuthCredential, r as GET$1 } from "./credential-sync-D6aFARKE.js";
2
- import { bn as createUserTokenStore } from "./projection-xPpvqexa.js";
1
+ import { a as GET, n as syncLocalOAuthCredential, r as GET$1 } from "./credential-sync-B9CIkgOT.js";
2
+ import { bn as createUserTokenStore } from "./projection-D47mlszd.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,5 +1,5 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
2
- import { d as readJuniorSecret } from "./task-queue-BcjAYWyB.js";
2
+ import { d as readJuniorSecret } from "./task-queue-BEl5G38v.js";
3
3
  import * as z from "zod";
4
4
  import { randomBytes } from "node:crypto";
5
5
  import { SignJWT, jwtVerify } from "jose";
@@ -1,21 +1,21 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
2
2
  import { d as contextProvenance, f as instructionActors, n as agentHistoryItemSchema, p as instructionProvenanceFor } from "./history-N7IVbUom.js";
3
- import { S as renderJuniorNativeConversationEvent, _ as JUNIOR_NATIVE_EVENT_NAMESPACE, b as authenticationUnlinkedEvent, c as generateBrief, d as completeText, f as embedTexts, n as briefEntriesFromReportEvents, s as isEventConversationMessage, t as BRIEF_PROMPT, u as completeObject, v as agentsInstructionsUpdatedEvent, y as authenticationLinkedEvent } from "./prompt-D8u4jFs_.js";
4
- import { $ as getStateAdapter, Ct as conversationDetailTouch, Dt as parseDestination, I as resolveActorIdentityId, K as saveUserTimezone, N as startLocationThread, Q as getDefaultRedisStateAdapterFor, S as createSqlStore, T as isPersonInput, Tt as touchConversationDetail, U as linkedSlackUser, W as readUserTimezone, X as createCache, _t as agentTurnCostUsd, a as getConversationStore, at as withLock, bt as hasAgentTurnUsage, c as hasAnnotationKey, d as eventFromRow, dt as microUsdToUsd, et as getStateValues, ft as usdToMicroUsd, gt as addAgentTurnUsage, it as fenceLock, kt as sameDestination, l as treeHasAnnotationKey, lt as conversationCostOf, m as withConversationEventLock, nt as MUTATION_LOCK_TTL_MS, o as getDb, ot as claimProviderConversation, r as getConversationEventStore, rt as acquireActiveLock, s as getSqlExecutor, tt as setStateValues, u as createSqlConversationEventStore, vt as agentTurnTotalTokens } from "./db-Bcbd9zQc.js";
5
- import { A as juniorConversationEvents, B as juniorUsers, C as juniorConversationEventLexemes, E as juniorConversationBriefs, I as juniorAttachments, L as juniorMessageAttachments, M as juniorConversationAnnotations, N as juniorCodeChanges, P as juniorCodeRepositories, R as juniorConversations, T as juniorConversationEmbeddings, V as juniorDestinations, _ as juniorLocationConfigurations, a as juniorWorkspaces, f as juniorReviewItems, h as juniorAutomations, i as juniorWorkspaceRepos, l as juniorReviewItemAssignees, m as juniorAutomationVersions, n as isPostgresErrorCode, o as juniorPushSubscriptions, p as juniorAutomationRuns, r as juniorSnapshots, u as juniorReviewItemConversations, w as juniorConversationEventEmbeddings, x as juniorConversationParticipants, z as juniorIdentities } from "./executor-DBMBrpNV.js";
6
- import { E as withSpan, J as toOptionalString, K as isRecord$3, _ as runBestEffort, a as extractGenAiUsageSummary, b as setSpanAttributes, c as getLogContextAttributes, d as logAudit, h as logWarn, m as logInfo, o as getActiveTraceContext, p as logException, q as toOptionalNumber, t as buildTurnFailureResponse, x as setSpanStatus, y as setSentryUser } from "./logging-CHCuQ5iz.js";
7
- import { _ as credentialUserSubjectId, a as HOST_MANAGED_CREDENTIAL_PLACEHOLDER, g as credentialSubjectSchema, h as credentialLogContext, m as credentialContextSchema, o as resolveAuthTokenPlaceholder, p as credentialContextForActor, s as resolvePluginCommandEnv, v as CredentialUnavailableError } from "./registry-D20hG3r6.js";
3
+ import { S as renderJuniorNativeConversationEvent, _ as JUNIOR_NATIVE_EVENT_NAMESPACE, b as authenticationUnlinkedEvent, c as generateBrief, d as completeText, f as embedTexts, n as briefEntriesFromReportEvents, s as isEventConversationMessage, t as BRIEF_PROMPT, u as completeObject, v as agentsInstructionsUpdatedEvent, y as authenticationLinkedEvent } from "./prompt-DuWH_YIb.js";
4
+ import { $ as getStateAdapter, Ct as conversationDetailTouch, Dt as parseDestination, I as resolveActorIdentityId, K as saveUserTimezone, N as startLocationThread, Q as getDefaultRedisStateAdapterFor, S as createSqlStore, T as isPersonInput, Tt as touchConversationDetail, U as linkedSlackUser, W as readUserTimezone, X as createCache, _t as agentTurnCostUsd, a as getConversationStore, at as withLock, bt as hasAgentTurnUsage, c as hasAnnotationKey, d as eventFromRow, dt as microUsdToUsd, et as getStateValues, ft as usdToMicroUsd, gt as addAgentTurnUsage, it as fenceLock, kt as sameDestination, l as treeHasAnnotationKey, lt as conversationCostOf, m as withConversationEventLock, nt as MUTATION_LOCK_TTL_MS, o as getDb, ot as claimProviderConversation, r as getConversationEventStore, rt as acquireActiveLock, s as getSqlExecutor, tt as setStateValues, u as createSqlConversationEventStore, vt as agentTurnTotalTokens } from "./db-C21CyyTE.js";
5
+ import { A as juniorConversationEvents, B as juniorUsers, C as juniorConversationEventLexemes, E as juniorConversationBriefs, I as juniorAttachments, L as juniorMessageAttachments, M as juniorConversationAnnotations, N as juniorCodeChanges, P as juniorCodeRepositories, R as juniorConversations, T as juniorConversationEmbeddings, V as juniorDestinations, _ as juniorLocationConfigurations, a as juniorWorkspaces, f as juniorReviewItems, h as juniorAutomations, i as juniorWorkspaceRepos, l as juniorReviewItemAssignees, m as juniorAutomationVersions, n as isPostgresErrorCode, o as juniorPushSubscriptions, p as juniorAutomationRuns, r as juniorSnapshots, u as juniorReviewItemConversations, w as juniorConversationEventEmbeddings, x as juniorConversationParticipants, z as juniorIdentities } from "./executor-DfNoVVGd.js";
6
+ import { E as withSpan, J as toOptionalString, K as isRecord$3, _ as runBestEffort, a as extractGenAiUsageSummary, b as setSpanAttributes, c as getLogContextAttributes, d as logAudit, h as logWarn, m as logInfo, o as getActiveTraceContext, p as logException, q as toOptionalNumber, t as buildTurnFailureResponse, x as setSpanStatus, y as setSentryUser } from "./logging-DjW7LjgJ.js";
7
+ import { _ as credentialUserSubjectId, a as HOST_MANAGED_CREDENTIAL_PLACEHOLDER, g as credentialSubjectSchema, h as credentialLogContext, m as credentialContextSchema, o as resolveAuthTokenPlaceholder, p as credentialContextForActor, s as resolvePluginCommandEnv, v as CredentialUnavailableError } from "./registry-yht0oxq6.js";
8
8
  import { D as automationVersionSchema, J as automationSkillNameSchema, L as scheduledAutomationSchema, P as eventAutomationSchema, X as automationTaskDescription, Y as automationTaskColumns, Z as automationTaskSchema, n as isWithinNotificationSchedule, q as isValidTimeZone, r as notificationScheduleSchema, t as DEFAULT_NOTIFICATION_SCHEDULE } from "./schedule-BG1tEbRF.js";
9
- import { B as unwrapCurrentInstruction, C as completeObject$1, J as readParentAgentTask, K as isRuntimeInputText, O as rerankTexts, P as estimateTextTokens, S as completeDecision, T as embedTexts$1, U as authorAttrs, V as escapeXml, b as GEN_AI_PROVIDER_NAME, dt as toOptionalTrimmed, i as getChatConfig, k as resolveGatewayModel, lt as bufferBody, n as botConfig, o as getSlackBotToken, q as openingTag, y as normalizeSlackEmojiName } from "./config-362yMSIz.js";
9
+ import { B as unwrapCurrentInstruction, C as completeObject$1, J as readParentAgentTask, K as isRuntimeInputText, O as rerankTexts, P as estimateTextTokens, S as completeDecision, T as embedTexts$1, U as authorAttrs, V as escapeXml, b as GEN_AI_PROVIDER_NAME, dt as toOptionalTrimmed, i as getChatConfig, k as resolveGatewayModel, lt as bufferBody, n as botConfig, o as getSlackBotToken, q as openingTag, y as normalizeSlackEmojiName } from "./config-DY5c1E0l.js";
10
10
  import { c as parseStoredSlackActor, d as parseSlackChannelReferenceId, f as parseSlackTeamId, i as isActorUserId, l as toStoredSlackActor, p as parseSlackUserId, s as parseActorUserId, v as parseSlackMessageTs } from "./actor-D2iXzvlN.js";
11
11
  import { a as getClient$1, h as startSpan, n as captureMessage, r as continueTrace } from "./sentry-CPbZjomA.js";
12
- import { i as readActorIdentity, l as resolveViewerUser, n as findUserByEmailFromSql, o as readIdentityById, p as parseAvatarUrl, s as readIdentityByIdFromSql } from "./viewer-DN_xzVKj.js";
12
+ import { i as readActorIdentity, l as resolveViewerUser, n as findUserByEmailFromSql, o as readIdentityById, p as parseAvatarUrl, s as readIdentityByIdFromSql } from "./viewer-De1vmuEA.js";
13
13
  import { F as briefResourceLabel, I as conversationBriefSchema, J as readMessageCardRefs, K as messageCardRef, L as parseBriefInput, R as parseStoredBrief, W as reviewItemChangeRecordSchema, _ as conversationReportMessageEventSchema, g as conversationReportEventSchema, tt as readMessageAttachments } from "./conversation--f85g4zL.js";
14
- import { d as readJuniorSecret, m as readWebPushPrivateKey, r as pluginTaskId } from "./task-queue-BcjAYWyB.js";
15
- import { t as canExposeConversationPayload } from "./conversation-privacy-Tjj5P2W6.js";
16
- import { n as pluginCatalogRuntime } from "./catalog-runtime-OXrv2Ewn.js";
14
+ import { d as readJuniorSecret, m as readWebPushPrivateKey, r as pluginTaskId } from "./task-queue-BEl5G38v.js";
15
+ import { t as canExposeConversationPayload } from "./conversation-privacy-CVj9vSrP.js";
16
+ import { n as pluginCatalogRuntime } from "./catalog-runtime-Se9idiDR.js";
17
17
  import { n as redactSandboxEgressProxyPath, t as SANDBOX_EGRESS_PROXY_PATH } from "./proxy-path-BHYoKZdq.js";
18
- import { n as readEncryptedState, r as findLegacyWebActorUserId, t as createEncryptedState } from "./state-BBn9L6gC.js";
18
+ import { n as readEncryptedState, r as findLegacyWebActorUserId, t as createEncryptedState } from "./state-3Yiy2FvP.js";
19
19
  import pLimit from "p-limit";
20
20
  import * as z from "zod";
21
21
  import path from "node:path";
@@ -1,6 +1,6 @@
1
- import { $ as ProviderError, A as searchWeb$1, C as completeObject$1, D as generateImages$1, E as gatewayCostUsd, S as completeDecision$1, T as embedTexts$1, b as GEN_AI_PROVIDER_NAME, ct as resolveGatewayCredential, ot as isProviderRetryError, tt as createProviderError, w as completeText$1, x as GEN_AI_SERVER_ADDRESS } from "./config-362yMSIz.js";
2
- import { E as withSpan, _ as runBestEffort, a as extractGenAiUsageSummary, i as extractGenAiUsageAttributes, p as logException } from "./logging-CHCuQ5iz.js";
3
- import { _t as agentTurnCostUsd, r as getConversationEventStore } from "./db-Bcbd9zQc.js";
1
+ import { $ as ProviderError, A as searchWeb$1, C as completeObject$1, D as generateImages$1, E as gatewayCostUsd, S as completeDecision$1, T as embedTexts$1, b as GEN_AI_PROVIDER_NAME, ct as resolveGatewayCredential, ot as isProviderRetryError, tt as createProviderError, w as completeText$1, x as GEN_AI_SERVER_ADDRESS } from "./config-DY5c1E0l.js";
2
+ import { E as withSpan, _ as runBestEffort, a as extractGenAiUsageSummary, i as extractGenAiUsageAttributes, p as logException } from "./logging-DjW7LjgJ.js";
3
+ import { _t as agentTurnCostUsd, r as getConversationEventStore } from "./db-C21CyyTE.js";
4
4
  import { I as conversationBriefSchema, L as parseBriefInput, P as briefOutcomeStatusSchema } from "./conversation--f85g4zL.js";
5
5
  import * as z from "zod";
6
6
  import { createGatewayProvider } from "@ai-sdk/gateway";
@@ -1,5 +1,5 @@
1
1
  import { n as normalizePluginPackageNames, o as pluginRoots, t as discoverInstalledPluginPackageContent } from "./package-discovery-x4AvVhMj.js";
2
- import { b as setSpanAttributes, h as logWarn, m as logInfo } from "./logging-CHCuQ5iz.js";
2
+ import { b as setSpanAttributes, h as logWarn, m as logInfo } from "./logging-DjW7LjgJ.js";
3
3
  import { o as isUserActor, s as parseActorUserId } from "./actor-D2iXzvlN.js";
4
4
  import * as z from "zod";
5
5
  import path from "node:path";
@@ -1,6 +1,6 @@
1
- import { i as trace, n as postinstall, o as getSandboxResources, t as dependencies } from "./install-CgoAbzfF.js";
2
- import { Ji as isStale, Ki as create, Ms as sleep, Xi as getSandboxProvider } from "./projection-xPpvqexa.js";
3
- import { $ as getStateAdapter } from "./db-Bcbd9zQc.js";
1
+ import { i as trace, n as postinstall, o as getSandboxResources, t as dependencies } from "./install-lYZs8UCL.js";
2
+ import { Ji as isStale, Ki as create, Ms as sleep, Xi as getSandboxProvider } from "./projection-D47mlszd.js";
3
+ import { $ as getStateAdapter } from "./db-C21CyyTE.js";
4
4
  import * as z from "zod";
5
5
  // src/chat/sandbox/snapshot/resolve.ts
6
6
  const SNAPSHOT_CACHE_PREFIX = "junior:sandbox_snapshot_profile:v2";
@@ -1,12 +1,12 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
2
- import { P as SYSTEM_IDENTITY_ID, a as getConversationStore, k as turnBehavior } from "./db-Bcbd9zQc.js";
3
- import { A as parseEventMessages, B as renderEventBatchInputs, D as getEventBatchDelayMs, F as EVENT_WAIT_MS, R as eventBatchMessageMeta, V as timerWatchCredentialSubject, j as resolveMailboxTurnWork, k as listActiveMailboxTurns, s as eventReviewItemInputs, t as getConversationStoppedAtMs } from "./session-stop-BDdwyZaa.js";
4
- import { a as EVENT_SYSTEM_ACTOR } from "./prompt-D8u4jFs_.js";
5
- import { p as credentialContextForActor } from "./registry-D20hG3r6.js";
6
- import { A as getAgentInvocationResultMessageId, C as ownAgentInvocation, D as getAgentInvocationIdForMessage, E as getAgentInvocationIdForEvents, F as getTurnReplyKey, M as getAgentReplyMessageId, O as getAgentInvocationIdForResult, R as buildDeterministicTurnId, S as listChildMessages, b as hasAgentInvocationReply, j as getAgentInvocationTurnId, y as childMessageSenderMetadata } from "./turn-user-message-B1S8nOnG.js";
7
- import { _ as getConversationWorkState, r as appendAndEnqueueInboundMessage } from "./store-CdWg2r2L.js";
8
- import { $t as readChildConversationSender, Gt as listAgentInvocationsForConversation, Jt as markAgentInvocationParentMailboxAppended, Lt as listUnreportedSiblingAgents, Qt as getChildAgentInputSender, Rt as NON_TERMINAL_AGENT_INVOCATION_STATUSES, Ut as getLatestAgentInvocationForConversation, Wt as isTerminalAgentInvocation, Xt as sendsResultToParent, Yt as reportReplacedWithoutOpenWork, Zt as childAgentInput, an as readParentMessage, cn as endActiveAgentInvocations, dn as resolveAgentInvocationId, en as routeChildInput, in as parentMessageText, ln as endAgentInvocationsOfStoppedWork, on as createAgentInvocationWorker, rn as logDroppedParentMessage, un as enqueueAgentInvocation, yn as createAgentInvocationFromLatest, zt as TERMINAL_AGENT_INVOCATION_STATUSES } from "./warmup-CxhEhm71.js";
9
- import { Z as renderUntrustedTag } from "./config-362yMSIz.js";
2
+ import { P as SYSTEM_IDENTITY_ID, a as getConversationStore, k as turnBehavior } from "./db-C21CyyTE.js";
3
+ import { A as parseEventMessages, B as renderEventBatchInputs, D as getEventBatchDelayMs, F as EVENT_WAIT_MS, R as eventBatchMessageMeta, V as timerWatchCredentialSubject, j as resolveMailboxTurnWork, k as listActiveMailboxTurns, s as eventReviewItemInputs, t as getConversationStoppedAtMs } from "./session-stop-D3S7mSkX.js";
4
+ import { a as EVENT_SYSTEM_ACTOR } from "./prompt-DuWH_YIb.js";
5
+ import { p as credentialContextForActor } from "./registry-yht0oxq6.js";
6
+ import { A as getAgentInvocationResultMessageId, C as ownAgentInvocation, D as getAgentInvocationIdForMessage, E as getAgentInvocationIdForEvents, F as getTurnReplyKey, M as getAgentReplyMessageId, O as getAgentInvocationIdForResult, R as buildDeterministicTurnId, S as listChildMessages, b as hasAgentInvocationReply, j as getAgentInvocationTurnId, y as childMessageSenderMetadata } from "./turn-user-message-Dfbr3Ud9.js";
7
+ import { _ as getConversationWorkState, r as appendAndEnqueueInboundMessage } from "./store-BZJdHYR7.js";
8
+ import { $t as readChildConversationSender, Gt as listAgentInvocationsForConversation, Jt as markAgentInvocationParentMailboxAppended, Lt as listUnreportedSiblingAgents, Qt as getChildAgentInputSender, Rt as NON_TERMINAL_AGENT_INVOCATION_STATUSES, Ut as getLatestAgentInvocationForConversation, Wt as isTerminalAgentInvocation, Xt as sendsResultToParent, Yt as reportReplacedWithoutOpenWork, Zt as childAgentInput, an as readParentMessage, cn as endActiveAgentInvocations, dn as resolveAgentInvocationId, en as routeChildInput, in as parentMessageText, ln as endAgentInvocationsOfStoppedWork, on as createAgentInvocationWorker, rn as logDroppedParentMessage, un as enqueueAgentInvocation, yn as createAgentInvocationFromLatest, zt as TERMINAL_AGENT_INVOCATION_STATUSES } from "./warmup-C0IblNtf.js";
9
+ import { Z as renderUntrustedTag } from "./config-DY5c1E0l.js";
10
10
  import { C as AGENT_MESSAGE_EVENT_TYPE, E as agentInvocationResultEventType, S as AGENT_INVOCATION_EVENT_NAMESPACE, T as AGENT_REPLY_EVENT_TYPE } from "./web-message-id-BT8Mg8LL.js";
11
11
  import pLimit from "p-limit";
12
12
  import { actorSchema } from "@sentry/junior-plugin-api";
@@ -1,13 +1,13 @@
1
1
  import { q as messageCardText } from "./conversation--f85g4zL.js";
2
- import { a as buildDeliveredTurnStatePatch, o as loadPendingMessageCards, r as completeAuthPauseTurn, t as buildTurnThreadContext } from "./thread-context-ZPGqOjW7.js";
3
- import { A as normalizeConversationText, H as authorizationId, O as latestConversationMessageSeq, P as upsertConversationMessage, a as loadProjection, b as persistConversationMessages, cn as getAssistantReplyText, d as recordAuthorizationCompleted, et as saveTurnCheckpoint, j as recordDeliveredAssistantMessage, k as markConversationMessage, t as commitAcceptedReply, v as hydrateConversationMessages, vn as persistWithRetry } from "./projection-xPpvqexa.js";
4
- import { S as setTags, T as withLogContext, p as logException } from "./logging-CHCuQ5iz.js";
5
- import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-CoXmMlsW.js";
6
- import { a as getPersistedThreadState, c as coerceThreadConversationState, i as getPersistedSandboxState, s as persistThreadStateById } from "./turn-session-routing-DFYak28Q.js";
7
- import { _ as ConversationTurnLifecycleService, g as startActiveTurn, h as markTurnFailed } from "./turn-user-message-B1S8nOnG.js";
8
- import { L as finalizeFailedTurnReplyWithEvent } from "./agent-runner-DdFcxAxG.js";
9
- import { p as credentialContextForActor } from "./registry-D20hG3r6.js";
10
- import { P as SYSTEM_IDENTITY_ID, a as getConversationStore, r as getConversationEventStore } from "./db-Bcbd9zQc.js";
2
+ import { a as buildDeliveredTurnStatePatch, o as loadPendingMessageCards, r as completeAuthPauseTurn, t as buildTurnThreadContext } from "./thread-context-DxMQGGd_.js";
3
+ import { A as normalizeConversationText, H as authorizationId, O as latestConversationMessageSeq, P as upsertConversationMessage, a as loadProjection, b as persistConversationMessages, cn as getAssistantReplyText, d as recordAuthorizationCompleted, et as saveTurnCheckpoint, j as recordDeliveredAssistantMessage, k as markConversationMessage, t as commitAcceptedReply, v as hydrateConversationMessages, vn as persistWithRetry } from "./projection-D47mlszd.js";
4
+ import { S as setTags, T as withLogContext, p as logException } from "./logging-DjW7LjgJ.js";
5
+ import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-C6Bujc6h.js";
6
+ import { a as getPersistedThreadState, c as coerceThreadConversationState, i as getPersistedSandboxState, s as persistThreadStateById } from "./turn-session-routing-CmQY0T60.js";
7
+ import { _ as ConversationTurnLifecycleService, g as startActiveTurn, h as markTurnFailed } from "./turn-user-message-Dfbr3Ud9.js";
8
+ import { L as finalizeFailedTurnReplyWithEvent } from "./agent-runner-DxivxUYd.js";
9
+ import { p as credentialContextForActor } from "./registry-yht0oxq6.js";
10
+ import { P as SYSTEM_IDENTITY_ID, a as getConversationStore, r as getConversationEventStore } from "./db-C21CyyTE.js";
11
11
  import { randomUUID } from "node:crypto";
12
12
  import { createLocalSource, localDestinationSchema } from "@sentry/junior-plugin-api";
13
13
  // src/chat/local/runner.ts
@@ -1,4 +1,4 @@
1
- import { ba as sandboxEgressSignalsResponseSchema } from "./projection-xPpvqexa.js";
1
+ import { ba as sandboxEgressSignalsResponseSchema } from "./projection-D47mlszd.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
- import { K as isRecord, b as setSpanAttributes, h as logWarn } from "./logging-CHCuQ5iz.js";
2
- import { i as resolvePluginHeaderEnvRefs, l as fetchWithBoundedOAuthErrorBodies } from "./registry-D20hG3r6.js";
3
- import { $ as getStateAdapter, Dt as parseDestination, at as withLock, it as fenceLock, nt as MUTATION_LOCK_TTL_MS } from "./db-Bcbd9zQc.js";
4
- import { n as readEncryptedState, r as findLegacyWebActorUserId, t as createEncryptedState } from "./state-BBn9L6gC.js";
5
- import { n as botConfig } from "./config-362yMSIz.js";
1
+ import { K as isRecord, b as setSpanAttributes, h as logWarn } from "./logging-DjW7LjgJ.js";
2
+ import { i as resolvePluginHeaderEnvRefs, l as fetchWithBoundedOAuthErrorBodies } from "./registry-yht0oxq6.js";
3
+ import { $ as getStateAdapter, Dt as parseDestination, at as withLock, it as fenceLock, nt as MUTATION_LOCK_TTL_MS } from "./db-C21CyyTE.js";
4
+ import { n as readEncryptedState, r as findLegacyWebActorUserId, t as createEncryptedState } from "./state-3Yiy2FvP.js";
5
+ import { n as botConfig } from "./config-DY5c1E0l.js";
6
6
  import pLimit from "p-limit";
7
7
  import { AsyncLocalStorage } from "node:async_hooks";
8
8
  import { randomUUID } from "node:crypto";
@@ -1,6 +1,6 @@
1
- import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-Bv5QwrEq.js";
2
- import { n as pluginCatalogRuntime } from "./catalog-runtime-OXrv2Ewn.js";
3
- import { Z as disconnectStateAdapter } from "./db-Bcbd9zQc.js";
1
+ import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-CZneZHh7.js";
2
+ import { n as pluginCatalogRuntime } from "./catalog-runtime-Se9idiDR.js";
3
+ import { Z as disconnectStateAdapter } from "./db-C21CyyTE.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,18 +1,18 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
2
- import { A as normalizeConversationText, An as getPluginSystemPromptContributions, Bs as slackMention, Cc as CORE_EVENT_NAMESPACE, Dc as eventGuidance, Ec as eventCatalogEntry, Fa as SANDBOX_WORKSPACE_ROOT, Gc as ToolInputError, Ia as sandboxSkillDir, Is as escapeSlackMrkdwnText, La as sandboxSkillFile, Lo as findActorTimezone, Ls as formatSlackLink, Ma as SANDBOX_REPOS_ROOT, Mn as getPluginUserPromptContributions, Nn as getPlugins, Pr as getReviewItem, Ra as sandboxSkillPathResolution, Ri as listWorkspaces, Rs as normalizeSlackReplyMarkdown, _s as fitsSlackMetadataLimit, at as getTurnRecord, co as buildSentryConversationUrl, dr as stripRuntimeTurnContext, ec as getDashboardConversationLink, fs as postSlackMessage, gn as REPORT_BLOCKED_TOOL_NAME, gr as TURN_CONTEXT_TAG, hr as SESSION_CONTEXT_SECTION_TAG, it as getStoredTurnFields, ja as SANDBOX_DATA_ROOT, ji as verifyTimerWatchCredentialSubject, kn as getPluginSlackConversationLink, mr as REQUEST_CONTEXT_SECTION_TAG, nc as getDashboardObjectIconLink, nn as REPLY_TOOL_NAME, ot as listTurnSummaries, pi as cancelSubscriptions, pr as CAPABILITY_SECTION_TAG, sl as JUNIOR_THREAD_STATE_TTL_MS, tr as hasRuntimeTurnContext, un as NO_REPLY_TOOL_NAME, ur as retainRuntimeTurnContext, ws as getSlackClient, x as toStoredConversationMessage, ys as slackExternalRefIdSchema } from "./projection-xPpvqexa.js";
3
- import { $ as getStateAdapter, B as findLinkedSlackUser, I as resolveActorIdentityId, P as SYSTEM_IDENTITY_ID, T as isPersonInput, Tt as touchConversationDetail, V as findSlackUserByPrimaryEmail, X as createCache, a as getConversationStore, o as getDb, r as getConversationEventStore, s as getSqlExecutor, wt as nextDetailVersion } from "./db-Bcbd9zQc.js";
4
- import { G as escapeTagText, H as escapeXmlText, Q as tagJson, R as isCompactionSummaryText, U as authorAttrs, V as escapeXml, W as escapeClosingTags, X as renderTag$1, Y as renderChildTag, n as botConfig, o as getSlackBotToken, z as renderCurrentInstruction } from "./config-362yMSIz.js";
2
+ import { A as normalizeConversationText, An as getPluginSystemPromptContributions, Bs as slackMention, Cc as CORE_EVENT_NAMESPACE, Dc as eventGuidance, Ec as eventCatalogEntry, Fa as SANDBOX_WORKSPACE_ROOT, Gc as ToolInputError, Ia as sandboxSkillDir, Is as escapeSlackMrkdwnText, La as sandboxSkillFile, Lo as findActorTimezone, Ls as formatSlackLink, Ma as SANDBOX_REPOS_ROOT, Mn as getPluginUserPromptContributions, Nn as getPlugins, Pr as getReviewItem, Ra as sandboxSkillPathResolution, Ri as listWorkspaces, Rs as normalizeSlackReplyMarkdown, _s as fitsSlackMetadataLimit, at as getTurnRecord, co as buildSentryConversationUrl, dr as stripRuntimeTurnContext, ec as getDashboardConversationLink, fs as postSlackMessage, gn as REPORT_BLOCKED_TOOL_NAME, gr as TURN_CONTEXT_TAG, hr as SESSION_CONTEXT_SECTION_TAG, it as getStoredTurnFields, ja as SANDBOX_DATA_ROOT, ji as verifyTimerWatchCredentialSubject, kn as getPluginSlackConversationLink, mr as REQUEST_CONTEXT_SECTION_TAG, nc as getDashboardObjectIconLink, nn as REPLY_TOOL_NAME, ot as listTurnSummaries, pi as cancelSubscriptions, pr as CAPABILITY_SECTION_TAG, sl as JUNIOR_THREAD_STATE_TTL_MS, tr as hasRuntimeTurnContext, un as NO_REPLY_TOOL_NAME, ur as retainRuntimeTurnContext, ws as getSlackClient, x as toStoredConversationMessage, ys as slackExternalRefIdSchema } from "./projection-D47mlszd.js";
3
+ import { $ as getStateAdapter, B as findLinkedSlackUser, I as resolveActorIdentityId, P as SYSTEM_IDENTITY_ID, T as isPersonInput, Tt as touchConversationDetail, V as findSlackUserByPrimaryEmail, X as createCache, a as getConversationStore, o as getDb, r as getConversationEventStore, s as getSqlExecutor, wt as nextDetailVersion } from "./db-C21CyyTE.js";
4
+ import { G as escapeTagText, H as escapeXmlText, Q as tagJson, R as isCompactionSummaryText, U as authorAttrs, V as escapeXml, W as escapeClosingTags, X as renderTag$1, Y as renderChildTag, n as botConfig, o as getSlackBotToken, z as renderCurrentInstruction } from "./config-DY5c1E0l.js";
5
5
  import { a as listReferenceFiles, c as soulPathCandidates, l as worldPathCandidates } from "./package-discovery-x4AvVhMj.js";
6
- import { G as normalizeIdentityEmail, W as isNativeIdentityProvider, h as logWarn, m as logInfo, p as logException, v as serializeGenAiAttribute } from "./logging-CHCuQ5iz.js";
7
- import { _ as JUNIOR_NATIVE_EVENT_NAMESPACE, a as EVENT_SYSTEM_ACTOR, i as EVENT_MESSAGE_AUTHOR, o as eventBotAuthorId, r as EVENT_AUTHOR_ID, s as isEventConversationMessage, x as conversationNoteEvent } from "./prompt-D8u4jFs_.js";
6
+ import { G as normalizeIdentityEmail, W as isNativeIdentityProvider, h as logWarn, m as logInfo, p as logException, v as serializeGenAiAttribute } from "./logging-DjW7LjgJ.js";
7
+ import { _ as JUNIOR_NATIVE_EVENT_NAMESPACE, a as EVENT_SYSTEM_ACTOR, i as EVENT_MESSAGE_AUTHOR, o as eventBotAuthorId, r as EVENT_AUTHOR_ID, s as isEventConversationMessage, x as conversationNoteEvent } from "./prompt-DuWH_YIb.js";
8
8
  import { b as SELF_PLAN_ASSIGNEE, c as formatUserInputAnswer, h as isVisionImageMediaType, v as userCustomizationTextSchema, x as isOpenPlanItemStatus } from "./web-message-id-BT8Mg8LL.js";
9
- import { B as juniorUsers, R as juniorConversations, c as juniorPlanItems, s as juniorPlanItemVersionSeq, v as juniorAgentBindings, z as juniorIdentities } from "./executor-DBMBrpNV.js";
10
- import { i as parseSkillFile } from "./skills-63i1Bcv1.js";
11
- import { a as toCanonicalInputMessage } from "./conversation-privacy-Tjj5P2W6.js";
9
+ import { B as juniorUsers, R as juniorConversations, c as juniorPlanItems, s as juniorPlanItemVersionSeq, v as juniorAgentBindings, z as juniorIdentities } from "./executor-DfNoVVGd.js";
10
+ import { i as parseSkillFile } from "./skills-Bm6uSO9V.js";
11
+ import { a as toCanonicalInputMessage } from "./conversation-privacy-CVj9vSrP.js";
12
12
  import { o as isUserActor, p as parseSlackUserId, t as createActor } from "./actor-D2iXzvlN.js";
13
- import { r as appendAndEnqueueInboundMessage } from "./store-CdWg2r2L.js";
14
- import { i as lookupSlackUserProfile, t as lookupActiveSlackWorkspaceMember } from "./users-DDbENg-I.js";
15
- import { g as credentialSubjectSchema } from "./registry-D20hG3r6.js";
13
+ import { r as appendAndEnqueueInboundMessage } from "./store-BZJdHYR7.js";
14
+ import { i as lookupSlackUserProfile, t as lookupActiveSlackWorkspaceMember } from "./users-6rSdqXXk.js";
15
+ import { g as credentialSubjectSchema } from "./registry-yht0oxq6.js";
16
16
  import pLimit from "p-limit";
17
17
  import * as z from "zod";
18
18
  import { getCurrentSystemMessage, getSystemMessageText } from "@earendil-works/pi-ai/compat";
@@ -1,7 +1,7 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
2
2
  import { s as skillRoots } from "./package-discovery-x4AvVhMj.js";
3
- import { h as logWarn } from "./logging-CHCuQ5iz.js";
4
- import { n as pluginCatalogRuntime } from "./catalog-runtime-OXrv2Ewn.js";
3
+ import { h as logWarn } from "./logging-DjW7LjgJ.js";
4
+ import { n as pluginCatalogRuntime } from "./catalog-runtime-Se9idiDR.js";
5
5
  import * as z from "zod";
6
6
  import path from "node:path";
7
7
  import fs from "node:fs/promises";
@@ -1,15 +1,15 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
2
- import { Ct as deferConversationMove, Is as escapeSlackMrkdwnText, Ls as formatSlackLink, Ns as getWorkspaceTeamId, cc as parseDashboardConversationLink, ds as postSlackEphemeralMessage, ms as unfurlSlackLinks, no as readLatestConversationBrief, qa as readConversationAccessFromSql } from "./projection-xPpvqexa.js";
2
+ import { Ct as deferConversationMove, Is as escapeSlackMrkdwnText, Ls as formatSlackLink, Ns as getWorkspaceTeamId, cc as parseDashboardConversationLink, ds as postSlackEphemeralMessage, ms as unfurlSlackLinks, no as readLatestConversationBrief, qa as readConversationAccessFromSql } from "./projection-D47mlszd.js";
3
3
  import { _ as slackUserIdSchema, b as slackMessageTsSchema, f as parseSlackTeamId, g as slackTeamIdSchema, h as slackChannelIdSchema, m as slackBotIdSchema, n as createSlackActor, p as parseSlackUserId, s as parseActorUserId, u as parseSlackChannelId } from "./actor-D2iXzvlN.js";
4
- import { X as createCache, a as getConversationStore, o as getDb, s as getSqlExecutor, st as getConversationIdByProviderConversation } from "./db-Bcbd9zQc.js";
5
- import { i as lookupSlackUserProfile, n as lookupSlackBot } from "./users-DDbENg-I.js";
6
- import { E as withSpan } from "./logging-CHCuQ5iz.js";
7
- import { i as readActorIdentity } from "./viewer-DN_xzVKj.js";
8
- import { t as runWithSlackInstallation } from "./adapter-context-B69WPn6b.js";
9
- import { a as isMovableToSlack, i as continueConversationInSlack, n as alreadyContinuesInSlackMessage, t as BUSY } from "./continue-in-slack-CFEevC7z.js";
10
- import { fr as checkSlackChannelReadAccess } from "./warmup-CxhEhm71.js";
11
- import "./store-CdWg2r2L.js";
12
- import { n as botConfig } from "./config-362yMSIz.js";
4
+ import { X as createCache, a as getConversationStore, o as getDb, s as getSqlExecutor, st as getConversationIdByProviderConversation } from "./db-C21CyyTE.js";
5
+ import { i as lookupSlackUserProfile, n as lookupSlackBot } from "./users-6rSdqXXk.js";
6
+ import { E as withSpan } from "./logging-DjW7LjgJ.js";
7
+ import { i as readActorIdentity } from "./viewer-De1vmuEA.js";
8
+ import { t as runWithSlackInstallation } from "./adapter-context-HrBTD8rJ.js";
9
+ import { a as isMovableToSlack, i as continueConversationInSlack, n as alreadyContinuesInSlackMessage, t as BUSY } from "./continue-in-slack-DNkrrWuQ.js";
10
+ import { fr as checkSlackChannelReadAccess } from "./warmup-C0IblNtf.js";
11
+ import "./store-BZJdHYR7.js";
12
+ import { n as botConfig } from "./config-DY5c1E0l.js";
13
13
  import * as z from "zod";
14
14
  // src/chat/ingress/workspace-membership.ts
15
15
  const MEMBER_TTL_MS = 3e5;
@@ -1,10 +1,10 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
2
- import { F as actorFromRun, I as toolInvocationDestination } from "./agent-runner-DdFcxAxG.js";
3
- import { n as botConfig } from "./config-362yMSIz.js";
4
- import { t as readConversationLineage } from "./lineage-CsZDmz3e.js";
5
- import { _ as getConversationWorkState } from "./store-CdWg2r2L.js";
6
- import { Vt as getAgentInvocation, bn as AgentDepthLimitError, sn as createAndEnqueueAgentInvocation, wn as getAgentBinding } from "./warmup-CxhEhm71.js";
7
- import { I as getUnnamedAgentConversationId, T as getAgentInvocationId, k as getAgentInvocationMessageId } from "./turn-user-message-B1S8nOnG.js";
2
+ import { F as actorFromRun, I as toolInvocationDestination } from "./agent-runner-DxivxUYd.js";
3
+ import { n as botConfig } from "./config-DY5c1E0l.js";
4
+ import { t as readConversationLineage } from "./lineage-BJTSY53A.js";
5
+ import { _ as getConversationWorkState } from "./store-BZJdHYR7.js";
6
+ import { Vt as getAgentInvocation, bn as AgentDepthLimitError, sn as createAndEnqueueAgentInvocation, wn as getAgentBinding } from "./warmup-C0IblNtf.js";
7
+ import { I as getUnnamedAgentConversationId, T as getAgentInvocationId, k as getAgentInvocationMessageId } from "./turn-user-message-Dfbr3Ud9.js";
8
8
  // src/chat/agent-invocations/spawn.ts
9
9
  var spawn_exports = /* @__PURE__ */ __exportAll({ bindSpawnAgent: () => bindSpawnAgent });
10
10
  /**
@@ -1,7 +1,7 @@
1
- import { i as getChatConfig } from "./config-362yMSIz.js";
2
- import { h as logWarn } from "./logging-CHCuQ5iz.js";
3
- import { o as getDb } from "./db-Bcbd9zQc.js";
4
- import { B as juniorUsers } from "./executor-DBMBrpNV.js";
1
+ import { i as getChatConfig } from "./config-DY5c1E0l.js";
2
+ import { h as logWarn } from "./logging-DjW7LjgJ.js";
3
+ import { o as getDb } from "./db-C21CyyTE.js";
4
+ import { B as juniorUsers } from "./executor-DfNoVVGd.js";
5
5
  import { createCipheriv, createDecipheriv, createHash, randomBytes } from "node:crypto";
6
6
  import { eq } from "drizzle-orm";
7
7
  // src/chat/conversations/legacy-web-actor-id.ts