@sentry/junior 0.307.0 → 0.308.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.
- package/dist/{adapter-context-B69WPn6b.js → adapter-context-BO432242.js} +2 -2
- package/dist/{admin-nCJXMgkp.js → admin-vSmheo3Z.js} +2 -2
- package/dist/{agent-runner-DdFcxAxG.js → agent-runner-BnOofGFG.js} +22 -22
- package/dist/api.js +26 -26
- package/dist/{app-EZur8cVC.d.ts → app-CqYqy541.d.ts} +2 -1
- package/dist/app.d.ts +1 -1
- package/dist/app.js +27 -27
- package/dist/{background-compaction-queue-BhEe4UfU.js → background-compaction-queue-BpmDEQf6.js} +4 -4
- package/dist/{briefs-Dl9lxi7J.js → briefs-Dbh94cRp.js} +2 -2
- package/dist/{catalog-runtime-OXrv2Ewn.js → catalog-runtime-q9AJjuUN.js} +1 -1
- package/dist/cli/chat.js +16 -16
- package/dist/cli/check.js +3 -3
- package/dist/cli/main.js +3 -3
- package/dist/cli/plugins.js +4 -4
- package/dist/cli/snapshot-create.js +5 -5
- package/dist/cli/upgrade.js +3 -3
- package/dist/{config-362yMSIz.js → config-Cx8H0MRw.js} +3 -3
- package/dist/{connections-BJv3EjmB.js → connections-DUylBPiR.js} +6 -6
- package/dist/{continue-in-slack-CFEevC7z.js → continue-in-slack-CtTv1tkn.js} +5 -5
- package/dist/{conversation-privacy-Tjj5P2W6.js → conversation-privacy-CivmFlWP.js} +1 -1
- package/dist/{conversation-turn-DU0_WDAr.js → conversation-turn-C9-Nfnsy.js} +14 -14
- package/dist/{credential-sync-D6aFARKE.js → credential-sync-CWIORwD9.js} +16 -16
- package/dist/{db-Bcbd9zQc.js → db-CO6Y10eM.js} +3 -3
- package/dist/{executor-DBMBrpNV.js → executor-Doo-N6Yn.js} +2 -2
- package/dist/{install-CgoAbzfF.js → install-Y2s9ZPvk.js} +2 -2
- package/dist/instrumentation.js +2 -2
- package/dist/{lineage-CsZDmz3e.js → lineage-BcqyhMyp.js} +2 -2
- package/dist/{logging-CHCuQ5iz.js → logging-DnBYBM8z.js} +1 -1
- package/dist/{message-B8vCbZZB.js → message-fSnXIqvl.js} +8 -8
- package/dist/{model-input-Xluiy-1W.js → model-input-DRChpXJ7.js} +2 -2
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +12 -4
- package/dist/{oauth-callback-server-BUuNvfvu.js → oauth-callback-server-BUU6zd_T.js} +2 -2
- package/dist/{oauth-relay-DGAZzg9m.js → oauth-relay-gO_Ynmpb.js} +1 -1
- package/dist/{projection-xPpvqexa.js → projection-Bqn6zdVT.js} +22 -15
- package/dist/{prompt-D8u4jFs_.js → prompt-DAjjk5fm.js} +3 -3
- package/dist/{registry-D20hG3r6.js → registry-tHJLCtKS.js} +1 -1
- package/dist/{resolve-BhCySRCW.js → resolve-z2sKt8xM.js} +3 -3
- package/dist/{result-DddO63S9.js → result-D2wshngt.js} +8 -8
- package/dist/{runner-DQR9vYce.js → runner-BvNPWLAy.js} +9 -9
- package/dist/{sandbox-egress-signals-DFlNUOnK.js → sandbox-egress-signals-CmHD-6vr.js} +1 -1
- package/dist/{service-account-CNfycv0z.js → service-account-B2d1Er_r.js} +3 -3
- package/dist/{service-account-Bv5QwrEq.js → service-account-CddxU-yC.js} +5 -5
- package/dist/{session-stop-BDdwyZaa.js → session-stop-BQ0J0Fph.js} +43 -16
- package/dist/{skills-63i1Bcv1.js → skills-Dm2-5nn5.js} +2 -2
- package/dist/{slack-conversation-unfurl-DtpBUlUu.js → slack-conversation-unfurl-CLH0tTLk.js} +10 -10
- package/dist/{spawn-mwimEY9_.js → spawn-PwAuSN59.js} +6 -6
- package/dist/{state-BBn9L6gC.js → state-rXH58smZ.js} +4 -4
- package/dist/{stop-Da-Ug7tg.js → stop-CcHPEcFE.js} +30 -30
- package/dist/{store-CdWg2r2L.js → store-7QA00oK6.js} +5 -5
- package/dist/{task-queue-BcjAYWyB.js → task-queue-DvQZH5rG.js} +3 -3
- package/dist/{task-runner-CoXmMlsW.js → task-runner-CyZMcuZy.js} +6 -6
- package/dist/{thread-context-ZPGqOjW7.js → thread-context-C-hLTQST.js} +6 -6
- package/dist/{turn-session-routing-DFYak28Q.js → turn-session-routing-Cqjj1B3i.js} +4 -4
- package/dist/{turn-user-message-B1S8nOnG.js → turn-user-message-DbU7MNd9.js} +3 -3
- package/dist/{users-DDbENg-I.js → users-B-UpCmw9.js} +1 -1
- package/dist/{validation-fl21ps-k.js → validation-BEUlev32.js} +1 -1
- package/dist/{version-DCdMMx_0.js → version-BE1OyrXV.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-DN_xzVKj.js → viewer-CqOkWizK.js} +3 -3
- package/dist/{warmup-CxhEhm71.js → warmup-HFgFZFwS.js} +18 -18
- package/dist/{worker-Btb1SB5h.js → worker-CCEDWbsY.js} +8 -8
- package/package.json +7 -7
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ia as startOAuthFlow } from "./projection-
|
|
2
|
-
import { n as botConfig } from "./config-
|
|
3
|
-
import { R as deleteProviderIdentityForSlackUser, s as getSqlExecutor, z as deleteProviderIdentityForUser } from "./db-
|
|
4
|
-
import { d as hasRequiredOAuthScope } from "./registry-
|
|
5
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
6
|
-
import { h as deleteMcpStoredOAuthCredentials, m as deleteMcpServerSessionId, p as deleteMcpAuthSessionsForUserProvider } from "./service-account-
|
|
1
|
+
import { ia as startOAuthFlow } from "./projection-Bqn6zdVT.js";
|
|
2
|
+
import { n as botConfig } from "./config-Cx8H0MRw.js";
|
|
3
|
+
import { R as deleteProviderIdentityForSlackUser, s as getSqlExecutor, z as deleteProviderIdentityForUser } from "./db-CO6Y10eM.js";
|
|
4
|
+
import { d as hasRequiredOAuthScope } from "./registry-tHJLCtKS.js";
|
|
5
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-q9AJjuUN.js";
|
|
6
|
+
import { h as deleteMcpStoredOAuthCredentials, m as deleteMcpServerSessionId, p as deleteMcpAuthSessionsForUserProvider } from "./service-account-CddxU-yC.js";
|
|
7
7
|
import pLimit from "p-limit";
|
|
8
8
|
import { randomBytes } from "node:crypto";
|
|
9
9
|
// src/handlers/oauth-html.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Ft as moveIdleConversationDestination, Is as escapeSlackMrkdwnText, Ls as formatSlackLink, cs as getSlackMessagePermalink,
|
|
2
|
-
import { $ as getStateAdapter, C as withConversationMutationLock, M as setFirstConversationLocation, a as getConversationStore, o as getDb, ot as claimProviderConversation, s as getSqlExecutor, st as getConversationIdByProviderConversation } from "./db-
|
|
1
|
+
import { Ft as moveIdleConversationDestination, Is as escapeSlackMrkdwnText, Ls as formatSlackLink, cs as getSlackMessagePermalink, fs as postSlackMessage, no as readLatestConversationBrief, ss as deleteSlackMessage, tc as getDashboardConversationLink } from "./projection-Bqn6zdVT.js";
|
|
2
|
+
import { $ as getStateAdapter, C as withConversationMutationLock, M as setFirstConversationLocation, a as getConversationStore, o as getDb, ot as claimProviderConversation, s as getSqlExecutor, st as getConversationIdByProviderConversation } from "./db-CO6Y10eM.js";
|
|
3
3
|
import { u as parseSlackChannelId, v as parseSlackMessageTs } from "./actor-D2iXzvlN.js";
|
|
4
|
-
import { fr as checkSlackChannelReadAccess, pr as joinPublicChannelForRead } from "./warmup-
|
|
5
|
-
import "./store-
|
|
6
|
-
import { V as juniorDestinations } from "./executor-
|
|
4
|
+
import { fr as checkSlackChannelReadAccess, pr as joinPublicChannelForRead } from "./warmup-HFgFZFwS.js";
|
|
5
|
+
import "./store-7QA00oK6.js";
|
|
6
|
+
import { V as juniorDestinations } from "./executor-Doo-N6Yn.js";
|
|
7
7
|
import { and, eq } from "drizzle-orm";
|
|
8
8
|
// src/chat/slack/continue-in-slack.ts
|
|
9
9
|
/** Refusal for a move that cannot wait for the active Run. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as logWarn } from "./logging-
|
|
1
|
+
import { h as logWarn } from "./logging-DnBYBM8z.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,
|
|
3
|
-
import { E as isTopLevelKind, T as isPersonInput, a as getConversationStore, k as turnBehavior, o as getDb, r as getConversationEventStore } from "./db-
|
|
4
|
-
import { E as withSpan, S as setTags, h as logWarn, p as logException } from "./logging-
|
|
2
|
+
import { A as normalizeConversationText, Gs as blockScheduledAutomation, O as latestConversationMessageSeq, P as upsertConversationMessage, Vo as readConversationAutomationRun, a as loadProjection, as as notifyAutomationBlocked, at as getTurnRecord, b as persistConversationMessages, cn as getAssistantReplyText, et as saveTurnCheckpoint, fc as blockEventAutomation, 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-Bqn6zdVT.js";
|
|
3
|
+
import { E as isTopLevelKind, T as isPersonInput, a as getConversationStore, k as turnBehavior, o as getDb, r as getConversationEventStore } from "./db-CO6Y10eM.js";
|
|
4
|
+
import { E as withSpan, S as setTags, h as logWarn, p as logException } from "./logging-DnBYBM8z.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-
|
|
7
|
-
import { a as buildDeliveredTurnStatePatch, o as loadPendingMessageCards, r as completeAuthPauseTurn, t as buildTurnThreadContext } from "./thread-context-
|
|
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-
|
|
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-
|
|
10
|
-
import { p as credentialContextForActor } from "./registry-
|
|
6
|
+
import { L as finalizeFailedTurnReplyWithEvent, O as isConversationDeliveryPaused, i as measureTurnCompactionWait } from "./agent-runner-BnOofGFG.js";
|
|
7
|
+
import { a as buildDeliveredTurnStatePatch, o as loadPendingMessageCards, r as completeAuthPauseTurn, t as buildTurnThreadContext } from "./thread-context-C-hLTQST.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-HFgFZFwS.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-DbU7MNd9.js";
|
|
10
|
+
import { p as credentialContextForActor } from "./registry-tHJLCtKS.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-
|
|
13
|
-
import { n as botConfig } from "./config-
|
|
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-
|
|
15
|
-
import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-
|
|
12
|
+
import { a as getPersistedThreadState, c as coerceThreadConversationState, i as getPersistedSandboxState, s as persistThreadStateById } from "./turn-session-routing-Cqjj1B3i.js";
|
|
13
|
+
import { n as botConfig } from "./config-Cx8H0MRw.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-BQ0J0Fph.js";
|
|
15
|
+
import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-CyZMcuZy.js";
|
|
16
16
|
import { p as instructionProvenanceFor } from "./history-N7IVbUom.js";
|
|
17
|
-
import { s as isEventConversationMessage } from "./prompt-
|
|
18
|
-
import { t as readConversationLineage } from "./lineage-
|
|
17
|
+
import { s as isEventConversationMessage } from "./prompt-DAjjk5fm.js";
|
|
18
|
+
import { t as readConversationLineage } from "./lineage-BcqyhMyp.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-
|
|
2
|
-
import { V as escapeXml, a as getRuntimeMetadata, n as botConfig } from "./config-
|
|
3
|
-
import { W as isNativeIdentityProvider, _ as runBestEffort, h as logWarn, p as logException } from "./logging-
|
|
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-Bqn6zdVT.js";
|
|
2
|
+
import { V as escapeXml, a as getRuntimeMetadata, n as botConfig } from "./config-Cx8H0MRw.js";
|
|
3
|
+
import { W as isNativeIdentityProvider, _ as runBestEffort, h as logWarn, p as logException } from "./logging-DnBYBM8z.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-
|
|
5
|
+
import { $ as getStateAdapter, H as findUserByVerifiedEmails, I as resolveActorIdentityId, q as upsertLinkedIdentity, rt as acquireActiveLock, s as getSqlExecutor } from "./db-CO6Y10eM.js";
|
|
6
6
|
import { i as homeDir } from "./package-discovery-x4AvVhMj.js";
|
|
7
|
-
import { t as discoverSkills } from "./skills-
|
|
8
|
-
import { d as hasRequiredOAuthScope, n as buildOAuthTokenRequest, r as parseOAuthTokenResponse } from "./registry-
|
|
9
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
10
|
-
import { o as finalizeMcpAuthorization } from "./agent-runner-
|
|
11
|
-
import { O as getMcpProviderErrorAttributes, S as putMcpStoredOAuthCredentials, f as deleteMcpAuthSession, g as getMcpAuthSession, v as getMcpStoredOAuthCredentials } from "./service-account-
|
|
12
|
-
import { o as readIdentityById } from "./viewer-
|
|
13
|
-
import { d as readJuniorSecret } from "./task-queue-
|
|
14
|
-
import { Mn as wakePausedTurn, jn as wakeAuthorizedTurn, zn as deleteWebAuthorization } from "./warmup-
|
|
15
|
-
import { i as lookupSlackUserProfile } from "./users-
|
|
16
|
-
import { a as getPersistedThreadState, c as coerceThreadConversationState } from "./turn-session-routing-
|
|
17
|
-
import { i as readConnectedOAuthTokens, s as htmlCallbackResponse } from "./connections-
|
|
18
|
-
import { n as relayLocalOAuthCallback } from "./oauth-relay-
|
|
7
|
+
import { t as discoverSkills } from "./skills-Dm2-5nn5.js";
|
|
8
|
+
import { d as hasRequiredOAuthScope, n as buildOAuthTokenRequest, r as parseOAuthTokenResponse } from "./registry-tHJLCtKS.js";
|
|
9
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-q9AJjuUN.js";
|
|
10
|
+
import { o as finalizeMcpAuthorization } from "./agent-runner-BnOofGFG.js";
|
|
11
|
+
import { O as getMcpProviderErrorAttributes, S as putMcpStoredOAuthCredentials, f as deleteMcpAuthSession, g as getMcpAuthSession, v as getMcpStoredOAuthCredentials } from "./service-account-CddxU-yC.js";
|
|
12
|
+
import { o as readIdentityById } from "./viewer-CqOkWizK.js";
|
|
13
|
+
import { d as readJuniorSecret } from "./task-queue-DvQZH5rG.js";
|
|
14
|
+
import { Mn as wakePausedTurn, jn as wakeAuthorizedTurn, zn as deleteWebAuthorization } from "./warmup-HFgFZFwS.js";
|
|
15
|
+
import { i as lookupSlackUserProfile } from "./users-B-UpCmw9.js";
|
|
16
|
+
import { a as getPersistedThreadState, c as coerceThreadConversationState } from "./turn-session-routing-Cqjj1B3i.js";
|
|
17
|
+
import { i as readConnectedOAuthTokens, s as htmlCallbackResponse } from "./connections-DUylBPiR.js";
|
|
18
|
+
import { n as relayLocalOAuthCallback } from "./oauth-relay-gO_Ynmpb.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-
|
|
2
|
+
import { i as getChatConfig } from "./config-Cx8H0MRw.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-
|
|
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-Doo-N6Yn.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-
|
|
6
|
+
import { G as normalizeIdentityEmail, U as GOOGLE_IDENTITY_PROVIDER, h as logWarn } from "./logging-DnBYBM8z.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-
|
|
1
|
+
import { h as logWarn, p as logException } from "./logging-DnBYBM8z.js";
|
|
2
2
|
import { _ as withScope } from "./sentry-CPbZjomA.js";
|
|
3
|
-
import "./config-
|
|
3
|
+
import "./config-Cx8H0MRw.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-
|
|
2
|
-
import { E as withSpan, b as setSpanAttributes } from "./logging-
|
|
1
|
+
import { Aa as SANDBOX_COMMAND_PATH, Fa as SANDBOX_WORKSPACE_ROOT, Va as runNonInteractiveCommand } from "./projection-Bqn6zdVT.js";
|
|
2
|
+
import { E as withSpan, b as setSpanAttributes } from "./logging-DnBYBM8z.js";
|
|
3
3
|
// src/chat/sandbox/resources.ts
|
|
4
4
|
let configuredResources;
|
|
5
5
|
function resourcesFromEnv() {
|
package/dist/instrumentation.js
CHANGED
|
@@ -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-
|
|
2
|
+
import { n as getCurrentConversationPrivacy } from "./conversation-privacy-CivmFlWP.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-
|
|
7
|
+
import { B as getDeploymentServiceVersion, V as getDeploymentTelemetryAttributes } from "./logging-DnBYBM8z.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-
|
|
2
|
-
import { R as juniorConversations } from "./executor-
|
|
1
|
+
import { A as conversationKindFromRow, o as getDb } from "./db-CO6Y10eM.js";
|
|
2
|
+
import { R as juniorConversations } from "./executor-Doo-N6Yn.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-
|
|
2
|
+
import { t as JUNIOR_VERSION } from "./version-BE1OyrXV.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-
|
|
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-
|
|
4
|
-
import { a as enqueueAgentMessageToParent } from "./result-
|
|
5
|
-
import { Wa as canAccessConversation, qa as readConversationAccessFromSql } from "./projection-
|
|
6
|
-
import { Z as renderUntrustedTag, n as botConfig } from "./config-
|
|
7
|
-
import { P as SYSTEM_IDENTITY_ID, a as getConversationStore, o as getDb } from "./db-
|
|
8
|
-
import { $ as postAutomatedTurnLimitNoticeForConversation, F as EVENT_WAIT_MS, ot as admitAutomatedTurn } from "./session-stop-
|
|
9
|
-
import { r as appendAndEnqueueInboundMessage } from "./store-
|
|
2
|
+
import { F as actorFromRun, I as toolInvocationDestination } from "./agent-runner-BnOofGFG.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-HFgFZFwS.js";
|
|
4
|
+
import { a as enqueueAgentMessageToParent } from "./result-D2wshngt.js";
|
|
5
|
+
import { Wa as canAccessConversation, qa as readConversationAccessFromSql } from "./projection-Bqn6zdVT.js";
|
|
6
|
+
import { Z as renderUntrustedTag, n as botConfig } from "./config-Cx8H0MRw.js";
|
|
7
|
+
import { P as SYSTEM_IDENTITY_ID, a as getConversationStore, o as getDb } from "./db-CO6Y10eM.js";
|
|
8
|
+
import { $ as postAutomatedTurnLimitNoticeForConversation, F as EVENT_WAIT_MS, ot as admitAutomatedTurn } from "./session-stop-BQ0J0Fph.js";
|
|
9
|
+
import { r as appendAndEnqueueInboundMessage } from "./store-7QA00oK6.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-
|
|
2
|
+
import { s as getSqlExecutor } from "./db-CO6Y10eM.js";
|
|
3
3
|
import { h as isVisionImageMediaType, m as detectImageMediaType } from "./web-message-id-BT8Mg8LL.js";
|
|
4
|
-
import { bo as readLiveAttachment } from "./projection-
|
|
4
|
+
import { bo as readLiveAttachment } from "./projection-Bqn6zdVT.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.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as JuniorPluginSet } from "./plugins-fBrz8PCV.js";
|
|
2
|
-
import { i as JuniorDashboardOptions } from "./app-
|
|
2
|
+
import { i as JuniorDashboardOptions } from "./app-CqYqy541.js";
|
|
3
3
|
import { withSentryConfig as withSentryConfig$1 } from "@sentry/nitro";
|
|
4
4
|
type SentryNitroConfig = Parameters<typeof withSentryConfig$1>[0];
|
|
5
5
|
type SentryNitroOptions = NonNullable<Parameters<typeof withSentryConfig$1>[1]>;
|
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-
|
|
4
|
-
import { t as PLUGIN_TASK_QUEUE_TOPIC } from "./task-queue-
|
|
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-
|
|
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-BpmDEQf6.js";
|
|
4
|
+
import { t as PLUGIN_TASK_QUEUE_TOPIC } from "./task-queue-DvQZH5rG.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-DnBYBM8z.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-
|
|
2
|
-
import { bn as createUserTokenStore } from "./projection-
|
|
1
|
+
import { a as GET, n as syncLocalOAuthCredential, r as GET$1 } from "./credential-sync-CWIORwD9.js";
|
|
2
|
+
import { bn as createUserTokenStore } from "./projection-Bqn6zdVT.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-
|
|
2
|
+
import { d as readJuniorSecret } from "./task-queue-DvQZH5rG.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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-DAjjk5fm.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-CO6Y10eM.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-Doo-N6Yn.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-DnBYBM8z.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-tHJLCtKS.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-
|
|
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-Cx8H0MRw.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-
|
|
12
|
+
import { i as readActorIdentity, l as resolveViewerUser, n as findUserByEmailFromSql, o as readIdentityById, p as parseAvatarUrl, s as readIdentityByIdFromSql } from "./viewer-CqOkWizK.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-
|
|
15
|
-
import { t as canExposeConversationPayload } from "./conversation-privacy-
|
|
16
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
14
|
+
import { d as readJuniorSecret, m as readWebPushPrivateKey, r as pluginTaskId } from "./task-queue-DvQZH5rG.js";
|
|
15
|
+
import { t as canExposeConversationPayload } from "./conversation-privacy-CivmFlWP.js";
|
|
16
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-q9AJjuUN.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-
|
|
18
|
+
import { n as readEncryptedState, r as findLegacyWebActorUserId, t as createEncryptedState } from "./state-rXH58smZ.js";
|
|
19
19
|
import pLimit from "p-limit";
|
|
20
20
|
import * as z from "zod";
|
|
21
21
|
import path from "node:path";
|
|
@@ -2166,6 +2166,13 @@ function wrapBareSlackUserIds(text) {
|
|
|
2166
2166
|
}
|
|
2167
2167
|
const LIST_ITEM_PATTERN = /^[-*•]\s|^\d+\.\s/;
|
|
2168
2168
|
/**
|
|
2169
|
+
* Report whether a line is a Markdown pipe-table row. Slack's `markdown`
|
|
2170
|
+
* block renders a table only when its rows are on consecutive lines.
|
|
2171
|
+
*/
|
|
2172
|
+
function isTableRow(line) {
|
|
2173
|
+
return line.trimStart().startsWith("|");
|
|
2174
|
+
}
|
|
2175
|
+
/**
|
|
2169
2176
|
* Turn a follow-up paragraph inside a list item into a bullet at the same
|
|
2170
2177
|
* indent.
|
|
2171
2178
|
*
|
|
@@ -2182,7 +2189,7 @@ function bulletListFollowUpParagraphs(text) {
|
|
|
2182
2189
|
const trimmed = line.trimStart();
|
|
2183
2190
|
const isFence = trimmed.startsWith("```");
|
|
2184
2191
|
if (!inCodeBlock && trimmed && trimmed.length === line.length) inList = LIST_ITEM_PATTERN.test(line);
|
|
2185
|
-
else if (!inCodeBlock && inList && trimmed && !isFence && lines[i - 1]?.trim() === "" && !LIST_ITEM_PATTERN.test(trimmed)) lines[i] = `${line.slice(0, line.length - trimmed.length)}- ${trimmed}`;
|
|
2192
|
+
else if (!inCodeBlock && inList && trimmed && !isFence && lines[i - 1]?.trim() === "" && !LIST_ITEM_PATTERN.test(trimmed) && !isTableRow(trimmed)) lines[i] = `${line.slice(0, line.length - trimmed.length)}- ${trimmed}`;
|
|
2186
2193
|
if (isFence) inCodeBlock = !inCodeBlock;
|
|
2187
2194
|
}
|
|
2188
2195
|
return lines.join("\n");
|
|
@@ -2210,7 +2217,7 @@ function ensureBlockSpacing(text) {
|
|
|
2210
2217
|
const prev = result.length > 0 ? result[result.length - 1] : void 0;
|
|
2211
2218
|
const isListItem = LIST_ITEM_PATTERN.test(line.trimStart());
|
|
2212
2219
|
const isListContinuation = prev !== void 0 && !isListItem && /^\s/.test(line) && (/^\s/.test(prev) || LIST_ITEM_PATTERN.test(prev));
|
|
2213
|
-
if (prev !== void 0 && prev.trim() !== "" && line.trim() !== "" && !isListContinuation && !(LIST_ITEM_PATTERN.test(prev.trimStart()) && isListItem)) result.push("");
|
|
2220
|
+
if (prev !== void 0 && prev.trim() !== "" && line.trim() !== "" && !isListContinuation && !(LIST_ITEM_PATTERN.test(prev.trimStart()) && isListItem) && !(isTableRow(prev) && isTableRow(line))) result.push("");
|
|
2214
2221
|
result.push(line);
|
|
2215
2222
|
}
|
|
2216
2223
|
return result.join("\n");
|
|
@@ -7938,7 +7945,7 @@ async function resolveSandboxCommandEnvironment() {
|
|
|
7938
7945
|
}
|
|
7939
7946
|
// src/chat/sandbox/egress/credential-request.ts
|
|
7940
7947
|
const CREDENTIAL_HEADERS = ["authorization", "cookie"];
|
|
7941
|
-
const BROWSER_HEADER = "sec-fetch-
|
|
7948
|
+
const BROWSER_HEADER = "sec-fetch-site";
|
|
7942
7949
|
function placeholders(manifest) {
|
|
7943
7950
|
return [HOST_MANAGED_CREDENTIAL_PLACEHOLDER, ...manifest.credentials ? [resolveAuthTokenPlaceholder(manifest.credentials)] : []];
|
|
7944
7951
|
}
|
|
@@ -18860,4 +18867,4 @@ async function recordGuardianActionReviewed(args) {
|
|
|
18860
18867
|
createdAtMs: Date.now()
|
|
18861
18868
|
}]);
|
|
18862
18869
|
}
|
|
18863
|
-
export { pauseLostWorkerTurn as $, viewerMarksFromParticipant as $a, readAutomationExecutions as $c, proxyVercelSandboxEgressRequest as $i, getTerminalAssistantMessages as $n, listPendingDispatchMailboxAppends as $o, reviewItemReaderForUser as $r, withScheduledAutomationLock as $s, buildTurnErrorResponse as $t, normalizeConversationText as A, SANDBOX_COMMAND_PATH as Aa, hasEventCatalogEntries as Ac, verifySlackDirectCredentialSubject as Ai, getPluginSystemPromptContributions as An, createConversationEmbedder as Ao, countOpenReviewItemsForUser as Ar, streamPrivateSlackFile as As, hasRunnableConversationWork as At, PluginCredentialFailureError as B, buildNonInteractiveShellScript as Ba, readAutomationVersion as Bc, updateWorkspace as Bi, registration_exports as Bn, lookupSlackUserNames as Bo, takeReviewItem as Br, slackMention as Bs, releaseInboundMessage as Bt, settleConversationTitleWork as C, normalizeSandboxEgressTracePropagationDomains as Ca, CORE_EVENT_NAMESPACE as Cc, takeDueTimerWatches as Ci, agent_hooks_exports as Cn, storeAttachment as Co, saveNotificationSchedule as Cr, getHeaderString as Cs, deferConversationMove as Ct, isHumanConversationMessage as D, PluginToolDeniedError as Da, eventGuidance as Dc, bindSlackDirectCredentialSubject as Di, getPluginApiRoutes as Dn, resolveRootVisibility as Do, createPluginReviewItems as Dr, isSlackRequestTimeout as Ds, getConversationWorkState as Dt, getConversationMessageSlackTs as E, workspaceRepoCheckoutPath as Ea, eventCatalogEntry as Ec, bindScheduledAutomationCredentialSubject as Ei, createPluginHookRunner as En, AttachmentSourceUnavailableError as Eo, projectConversationMessages as Er, isDmChannel as Es, getConversation as Et, calculateContextCompactionTargetTokens as F, SANDBOX_WORKSPACE_ROOT as Fa, requireEventIdentifier as Fc, deleteWorkspace as Fi, setPlugins as Fn, listConversationAnnotationsById as Fo, insertReviewItem as Fr, SLACK_USER_MENTION_RE as Fs, moveIdleConversationDestination as Ft, AuthorizationPauseError as G, canAddConversationMessages as Ga, ToolInputError as Gc, setWorkspaceSnapshotBuild as Gi, seqIn as Gn, createOrGetDispatch as Go, canReadReviewItem as Gr, createScheduledAutomation as Gs, stopConversationWork as Gt, authorizationId as H, createPluginModelCostRecorder as Ha, AutomationConflictError as Hc, invalidateReadySnapshot as Hi, setEventEmbeddingsConfig as Hn, buildDispatchId as Ho, PLUGIN_REVIEW_ITEM_KEY_PREFIX as Hr, wrapBareSlackUserIds as Hs, requestConversationWork as Ht, getAgentBackgroundCompactionMarkTokens as I, sandboxSkillDir as Ia, requireValidEventTrigger as Ic, getWorkspace as Ii, validatePlugins as In, defaultTimezone as Io, listReplyActionItems as Ir, escapeSlackMrkdwnText as Is, pruneActiveConversation as It, clearPendingAuth as J, conversationHasParticipantUser as Ja, existingConversationId as Jc, isStale as Ji, eventExcerpt as Jn, getDispatchInputMessageId as Jo, itemNeedsUser as Jr, parseScheduledAutomationRow as Js, GATED_TURN_LIMIT_WRAP_UP_MESSAGE as Jt, abandonReplacedPendingAuth as K, createConversationAccessReader as Ka, isToolInputError as Kc, create as Ki, SEARCHABLE_EVENT_TYPES as Kn, getDispatchConversationId as Ko, canUserReadReviewItem as Kr, deleteScheduledAutomation as Ks, takeDeferredConversationMove as Kt, getAgentContextCompactionTriggerTokens as L, sandboxSkillFile as La, automationDefinition as Lc, getWorkspaceByName as Li, coreTaskRegistrations as Ln, findActorTimezone as Lo, listWaitingConversations as Lr, formatSlackLink as Ls, recordAttemptFailure as Lt, trimConversationMessages as M, SANDBOX_REPOS_ROOT as Ma, registeredEventTriggerProblems as Mc, createPluginState as Mi, getPluginUserPromptContributions as Mn, saveObjectAnnotations as Mo, dismissOpenReviewItems as Mr, sleep$2 as Ms, isInvalidConversationRecordError as Mt, turnHasReply as N, SANDBOX_SCRATCH_ROOT as Na, registeredEventTypeSchema as Nc, renderToolResultNudge as Ni, getPlugins as Nn, createPluginAnnotations as No, getOpenReviewItemByDedupeKey as Nr, getWorkspaceTeamId as Ns, listActiveConversationIds as Nt, latestConversationMessageSeq as O, createPluginEmbedder as Oa, eventNamespaceSchema as Oc, verifyEventAutomationCredentialSubject as Oi, getPluginRoutes as On, searchConversations as Oo, REVIEW_ITEM_REPLIED_REASON as Or, normalizeSlackConversationId as Os, getConversationWorkStates as Ot, upsertConversationMessage as P, SANDBOX_SKILLS_ROOT as Pa, registeredResourceTypeSchema as Pc, createWorkspace as Pi, getStaticPluginToolDefinitions as Pn, listConversationAnnotations as Po, getReviewItem as Pr, runWithWorkspaceTeamId as Ps, markConversationWorkEnqueued as Pt, lostWorkerBeforeFirstSave as Q, conversationViewerMarks as Qa, readAutomationExecutionSummaries as Qc, isVercelSandboxEgressRequest as Qi, getPiMessageRole as Qn, isTerminalDispatchStatus as Qo, reviewItemNeedsSomeone as Qr, scheduledRunId as Qs, TurnToolCallLimitExceededError as Qt, getAgentContextInputLimitTokens as R, sandboxSkillPathResolution as Ra, automationVersionOf as Rc, listWorkspaces as Ri, isBriefsEnabled as Rn, resolveUserTimezone as Ro, reviewItemsNeedingUserVersionQuery as Rr, normalizeSlackReplyMarkdown as Rs, recordConversationRetry as Rt, resolveConversationTitle as S, resolveSandboxCommandEnvironment as Sa, eventAutomationRunLimitReason as Sc, listWatches as Si, resolvePluginOAuthAccount as Sn, requestAttachmentDeletion as So, readNotificationSchedule as Sr, getFilePermalink as Ss, deadLetterAttempt as St, estimateConversationMessagesTokens as T, tryWorkspaceRepoCheckoutPath as Ta, describeRegisteredEventTrigger as Tc, bindEventAutomationCredentialSubject as Ti, createPluginEventPublisher as Tn, storeDeferredAttachment as To, isPausedBySlack as Tr, isConversationScopedChannel as Ts, dropPendingMessages as Tt, AuthPausePersistenceError as U, createPluginLogger as Ua, automationRevision as Uc, loadSnapshotsForProfile as Ui, lexemesSql as Un, claimDispatchMailboxAppend as Uo, canActOnReviewItem as Ur, truncateStatusText as Us, startConversationWork as Ut, createPluginAuthOrchestration as V, runNonInteractiveCommand as Va, sameDefinitionValue as Vc, WorkspaceValidationError as Vi, setBriefsConfig as Vn, readConversationAutomationRun as Vo, updateReviewItemContent as Vr, slackMentionedUserIds as Vs, requestAnotherSlice as Vt, AuthorizationFlowDisabledError as W, canAccessConversation as Wa, requireAutomationRevision as Wc, setWorkspaceSnapshot as Wi, searchedEventTextSql as Wn, confirmDispatchMailboxAppend as Wo, canAgentChangeReviewItem as Wr, blockScheduledAutomation as Ws, steerWebPendingMessages as Wt, continuableMessages as X, conversationIsNotUnsubscribedRoot as Xa, readAutomationExecutionStatusDays as Xc, getSandboxProvider as Xi, storedMessageJson as Xn, getDispatchTurnId as Xo, requireReviewItemAssignees as Xr, saveScheduledAutomation as Xs, TurnBudgetExceededError as Xt, getConversationPendingAuth as Y, conversationIsMemberRoot as Ya, readAutomationExecutionByConversationId as Yc, ensureDockerDaemon as Yi, excerptTerms as Yn, getDispatchRecord as Yo, readReviewItemAgentScope as Yr, readScheduledAutomation as Ys, TURN_LIMIT_WRAP_UP_MESSAGE as Yt, loadTurnCheckpoint as Z, conversationPinnedForUser as Za, readAutomationExecutionStatusHours as Zc, isRetryableSandboxFailure as Zi, extractAssistantText as Zn, getPluginDispatchProjection as Zo, requireReviewItemLinks as Zr, saveScheduledAutomationInLock as Zs, TurnSliceLimitExceededError as Zt, appendConversationMessages as _, consumeSandboxEgressPermissionDeniedSignal as _a, listDeletedEventAutomationsCreatedBy as _c, createWatch as _i, setConfigDefaults as _l, readBlockedReport as _n, slackAttachmentsVersionQuery as _o, readWebPushConfig as _r, fitsSlackMetadataLimit as _s, clearConsumedConversationWake as _t, loadProjection as a, SandboxCallTimeoutError as aa, getDashboardSettingsLink as ac, resolveAssignees as ai, fallbackShortTitle as al, remindMissingAnswer as an, readConversationEventPageAround as ao, isContinuablePiBoundary as ar, notifyAutomationBlocked as as, getTurnRecord as at, persistConversationMessages as b, sandboxEgressSignalsResponseSchema as ba, setEventAutomationStatus as bc, getWatch as bi, createUserTokenStore as bn, readLiveAttachment as bo, deletePushSubscription as br, SlackActionError as bs, completeConversationWork as bt, recordAgentsInstructionsUpdated as c, isAlreadyExistsError as ca, parseDashboardConversationLink as cc, getSlackToolContext as ci, credentialAuditAttributes as cl, getAssistantReplyText as cn, buildSentryConversationUrl as co, isToolResultMessage as cr, getSlackMessagePermalink as cs, CONVERSATION_WORK_CHECK_IN_INTERVAL_MS as ct, recordAuthorizationCompleted as d, WorkspaceSnapshotNotReadyError as da, blockEventAutomation as dc, RESOURCE_WATCH_TOOL_SOURCE as di, createDurableLocationConfigurationService as dl, findLegacyNoReplyMarker as dn, notInheritedByForkChild as do, stripRuntimeTurnContext as dr, postSlackEphemeralMessage as ds, appendExclusiveInboundMessage as dt, deliverOAuthAuthorization as ea, getDashboardConversationLink as ec, reviewItemReaderForUserInConversation as ei, readAutomationRowStats as el, createTurnLimitGate as en, createPluginConversationEvents as eo, getUserMessageInstructionText as er, markDispatchAwaitingResume as es, saveTurnCheckpoint as et, recordAuthorizationRequested as f, getWorkspaceSnapshotNotReadyError as fa, collectEventAutomationMatchKeys as fc, STOP_WATCHING_TOOL_NAME as fi, configValueSchema as fl, isLegacyNoReplyMarker as fn, getSlackFileId as fo, trimTrailingAssistantMessages as fr, postSlackMessage as fs, appendInboundMessage as ft, recordToolExecutionStarted as g, consumeSandboxEgressAuthRequiredSignal as ga, getEventAutomation as gc, createTimerWatch as gi, getConfigDefaults as gl, REPORT_BLOCKED_TOOL_NAME as gn, recordSlackAttachment as go, TURN_CONTEXT_TAG as gr, uploadFilesToConversation as gs, claimInboundMessage as gt, recordSubscribedReplyRoute as h, clearSandboxEgressSignals as ha, findMatchingEventAutomations as hc, collectEventMatchKeys as hi, projectConversationEvents$1 as hl, CODE_MODE_CALL_STATUS_TEXT as hn, readSlackAttachmentSource as ho, SESSION_CONTEXT_SECTION_TAG as hr, updateSlackMessage as hs, checkInConversationWork as ht, loadConversationProjection as i, startOAuthFlow as ia, getDashboardReviewItemLink as ic, resolveAssignee as ii, refreshAutomationLastRun as il, readTurnAnswer as in, readConversationEventPageAfter as io, isAssistantMessage as ir, markDispatchRunning as is, getStoredTurnFields as it, recordDeliveredAssistantMessage as j, SANDBOX_DATA_ROOT as ja, registeredEventMatchSchema as jc, verifyTimerWatchCredentialSubject as ji, getPluginTools as jn, embedConversationQuery as jo, countReviewItemsNeedingUserBySubject as jr, withSlackRetries as js, isFinalAttempt as jt, markConversationMessage as k, createPluginModel as ka, eventWatchUnavailable as kc, verifyScheduledAutomationCredentialSubject as ki, getPluginSlackConversationLink as kn, backfillConversationEmbeddings as ko, closeReviewItem as kr, runWithSlackInstallationToken as ks, hasConversationStop as kt, recordAttachmentsDelivered as l, throwSandboxOperationError as la, parseDashboardPersonLink as lc, RESOURCE_SUBSCRIPTION_DEFAULT_TTL_MS as li, credentialAuditSource as ll, sanitizeAssistantText as ln, FORK_INSTRUCTIONS as lo, normalizeToolNameFromResult as lr, openSlackDirectMessage as ls, CONVERSATION_WORK_STALE_ENQUEUE_MS as lt, recordMcpProviderConnected as m, workspaceSnapshotNotReadyUserMessage as ma, deleteEventAutomation as mc, cancelWatch as mi, piMessageFromHistoryItem as ml, CODEMODE_TOOL_NAME as mn, readAttachmentVisionSummary as mo, REQUEST_CONTEXT_SECTION_TAG as mr, unfurlSlackLinks as ms, cancelHumanFacingPendingMessages as mt, commitMessages as n, parseOAuthStatePayload as na, getDashboardObjectIconLink as nc, activeParticipantUserIds as ni, readAutomationTitlesByConversationId as nl, REPLY_TOOL_NAME as nn, readLatestConversationBrief as no, hasTurnInput as nr, markDispatchCompleted as ns, completeTurnRecord as nt, loadTurnProjection as o, findInErrorChain as oa, getDashboardTaskLink as oc, createCodeChangePublisher as oi, resolveTaskTitle as ol, replyTextSchema as on, readConversationLastEventSeq as oo, isStandaloneRuntimeContextMessage as or, addReactionToMessage as os, listTurnSummaries as ot, recordGuardianActionReviewed as p, isWorkspaceSnapshotNotReadyError as pa, createEventAutomation as pc, cancelSubscriptions as pi, historyItemFromPiMessage as pl, readNoReply as pn, matchSlackAttachments as po, CAPABILITY_SECTION_TAG as pr, removeReactionFromMessage as ps, beginConversationResume as pt, canReusePendingAuthLink as q, readConversationAccessFromSql as qa, emptyAutomationRunWindows as qc, hash as qi, callsToolSql as qn, getDispatchIdForConversation as qo, isOnlyAssignee as qr, listScheduledAutomationsForTeam as qs, readInboundMessageSender as qt, loadConnectedMcpProviders as r, resolveBaseUrl as ra, getDashboardPersonLink as rc, automationCreatorUserId as ri, recordAutomationExecution as rl, isAnswerToolName as rn, readConversationEventPage as ro, instructionTextForProjection as rr, markDispatchFailed as rs, failTurnRecord as rt, openConversationProjection as s, isAbortError as sa, isDashboardLink as sc, resolveChannelCapabilities as si, JUNIOR_THREAD_STATE_TTL_MS as sl, decideReply as sn, readConversationMessageEventSeq as so, isToolResultError as sr, deleteSlackMessage as ss, recordTurnSummary as st, commitAcceptedReply as t, formatProviderLabel as ta, getDashboardLinkFilter as tc, EVERYONE_ASSIGNEE as ti, readAutomationRuns as tl, isTurnExecutionLimitExceededError as tn, readConversationBriefThrough as to, hasRuntimeTurnContext as tr, markDispatchBlocked as ts, abandonTurnRecord as tt, recordAuthenticationLinked as u, wrapSandboxSetupError as ua, setDashboardConversationLinkOptions as uc, RESOURCE_SUBSCRIPTION_MAX_TTL_MS as ui, createPluginCache as ul, NO_REPLY_TOOL_NAME as un, loadForkHistory as uo, retainRuntimeTurnContext as ur, openSlackModal as us, ackMessages as ut, hydrateConversationMessages as v, createSandboxEgressCredentialToken as va, parseEventAutomationRow as vc, deliverWatch as vi, persistWithRetry as vn, collectAttachmentGarbage as vo, sendPushNotificationToUser as vr, slackEntitySchema as vs, clearExpiredConversationLease as vt, buildConversationContext as w, SANDBOX_RUNTIME as wa, automationEventCatalog as wc, turnEvents as wi, applyPluginFormatMarkdown as wn, storeAttachments as wo, savePushSubscription as wr, getSlackClient as ws, drainConversationMailbox as wt, toStoredConversationMessage as x, buildSandboxEgressNetworkPolicy as xa, admitEventAutomationRun as xc, isQuietEvent as xi, getOAuthAccountProviders as xn, recordUploadedAttachment as xo, listPushSubscriptions as xr, downloadPrivateSlackFile as xs, countPendingConversationMessages as xt, persistConversationMessageWindow as y, parseSandboxEgressCredentialToken as ya, saveEventAutomation as yc, findMatchingWatches as yi, SANDBOX_EGRESS_AUTH_REQUIRED_MARKER as yn, isFileAttachment as yo, resolveNotificationTimezone as yr, slackExternalRefIdSchema as ys, completeConversationStop as yt, createPluginEgress as z, buildCommandScript as za, listAutomationVersions as zc, listWorkspacesByRepository as zi, isEventEmbeddingsEnabled as zn, lookupSlackUser as zo, searchReviewItems as zr, normalizeSlackStatusText as zs, releaseConversationWork as zt };
|
|
18870
|
+
export { pauseLostWorkerTurn as $, viewerMarksFromParticipant as $a, readAutomationExecutionSummaries as $c, proxyVercelSandboxEgressRequest as $i, getTerminalAssistantMessages as $n, listPendingDispatchMailboxAppends as $o, reviewItemReaderForUser as $r, scheduledRunId as $s, buildTurnErrorResponse as $t, normalizeConversationText as A, SANDBOX_COMMAND_PATH as Aa, eventWatchUnavailable as Ac, verifySlackDirectCredentialSubject as Ai, getPluginSystemPromptContributions as An, createConversationEmbedder as Ao, countOpenReviewItemsForUser as Ar, streamPrivateSlackFile as As, hasRunnableConversationWork as At, PluginCredentialFailureError as B, buildNonInteractiveShellScript as Ba, listAutomationVersions as Bc, updateWorkspace as Bi, registration_exports as Bn, lookupSlackUserNames as Bo, takeReviewItem as Br, normalizeSlackStatusText as Bs, releaseInboundMessage as Bt, settleConversationTitleWork as C, normalizeSandboxEgressTracePropagationDomains as Ca, eventAutomationRunLimitReason as Cc, takeDueTimerWatches as Ci, agent_hooks_exports as Cn, storeAttachment as Co, saveNotificationSchedule as Cr, getHeaderString as Cs, deferConversationMove as Ct, isHumanConversationMessage as D, PluginToolDeniedError as Da, eventCatalogEntry as Dc, bindSlackDirectCredentialSubject as Di, getPluginApiRoutes as Dn, resolveRootVisibility as Do, createPluginReviewItems as Dr, isSlackRequestTimeout as Ds, getConversationWorkState as Dt, getConversationMessageSlackTs as E, workspaceRepoCheckoutPath as Ea, describeRegisteredEventTrigger as Ec, bindScheduledAutomationCredentialSubject as Ei, createPluginHookRunner as En, AttachmentSourceUnavailableError as Eo, projectConversationMessages as Er, isDmChannel as Es, getConversation as Et, calculateContextCompactionTargetTokens as F, SANDBOX_WORKSPACE_ROOT as Fa, registeredResourceTypeSchema as Fc, deleteWorkspace as Fi, setPlugins as Fn, listConversationAnnotationsById as Fo, insertReviewItem as Fr, SLACK_USER_MENTION_RE as Fs, moveIdleConversationDestination as Ft, AuthorizationPauseError as G, canAddConversationMessages as Ga, requireAutomationRevision as Gc, setWorkspaceSnapshotBuild as Gi, seqIn as Gn, createOrGetDispatch as Go, canReadReviewItem as Gr, blockScheduledAutomation as Gs, stopConversationWork as Gt, authorizationId as H, createPluginModelCostRecorder as Ha, sameDefinitionValue as Hc, invalidateReadySnapshot as Hi, setEventEmbeddingsConfig as Hn, buildDispatchId as Ho, PLUGIN_REVIEW_ITEM_KEY_PREFIX as Hr, slackMentionedUserIds as Hs, requestConversationWork as Ht, getAgentBackgroundCompactionMarkTokens as I, sandboxSkillDir as Ia, requireEventIdentifier as Ic, getWorkspace as Ii, validatePlugins as In, defaultTimezone as Io, listReplyActionItems as Ir, escapeSlackMrkdwnText as Is, pruneActiveConversation as It, clearPendingAuth as J, conversationHasParticipantUser as Ja, emptyAutomationRunWindows as Jc, isStale as Ji, eventExcerpt as Jn, getDispatchInputMessageId as Jo, itemNeedsUser as Jr, listScheduledAutomationsForTeam as Js, GATED_TURN_LIMIT_WRAP_UP_MESSAGE as Jt, abandonReplacedPendingAuth as K, createConversationAccessReader as Ka, ToolInputError as Kc, create as Ki, SEARCHABLE_EVENT_TYPES as Kn, getDispatchConversationId as Ko, canUserReadReviewItem as Kr, createScheduledAutomation as Ks, takeDeferredConversationMove as Kt, getAgentContextCompactionTriggerTokens as L, sandboxSkillFile as La, requireValidEventTrigger as Lc, getWorkspaceByName as Li, coreTaskRegistrations as Ln, findActorTimezone as Lo, listWaitingConversations as Lr, formatSlackLink as Ls, recordAttemptFailure as Lt, trimConversationMessages as M, SANDBOX_REPOS_ROOT as Ma, registeredEventMatchSchema as Mc, createPluginState as Mi, getPluginUserPromptContributions as Mn, saveObjectAnnotations as Mo, dismissOpenReviewItems as Mr, sleep$2 as Ms, isInvalidConversationRecordError as Mt, turnHasReply as N, SANDBOX_SCRATCH_ROOT as Na, registeredEventTriggerProblems as Nc, renderToolResultNudge as Ni, getPlugins as Nn, createPluginAnnotations as No, getOpenReviewItemByDedupeKey as Nr, getWorkspaceTeamId as Ns, listActiveConversationIds as Nt, latestConversationMessageSeq as O, createPluginEmbedder as Oa, eventGuidance as Oc, verifyEventAutomationCredentialSubject as Oi, getPluginRoutes as On, searchConversations as Oo, REVIEW_ITEM_REPLIED_REASON as Or, normalizeSlackConversationId as Os, getConversationWorkStates as Ot, upsertConversationMessage as P, SANDBOX_SKILLS_ROOT as Pa, registeredEventTypeSchema as Pc, createWorkspace as Pi, getStaticPluginToolDefinitions as Pn, listConversationAnnotations as Po, getReviewItem as Pr, runWithWorkspaceTeamId as Ps, markConversationWorkEnqueued as Pt, lostWorkerBeforeFirstSave as Q, conversationViewerMarks as Qa, readAutomationExecutionStatusHours as Qc, isVercelSandboxEgressRequest as Qi, getPiMessageRole as Qn, isTerminalDispatchStatus as Qo, reviewItemNeedsSomeone as Qr, saveScheduledAutomationInLock as Qs, TurnToolCallLimitExceededError as Qt, getAgentContextInputLimitTokens as R, sandboxSkillPathResolution as Ra, automationDefinition as Rc, listWorkspaces as Ri, isBriefsEnabled as Rn, resolveUserTimezone as Ro, reviewItemsNeedingUserVersionQuery as Rr, isTableRow as Rs, recordConversationRetry as Rt, resolveConversationTitle as S, resolveSandboxCommandEnvironment as Sa, admitEventAutomationRun as Sc, listWatches as Si, resolvePluginOAuthAccount as Sn, requestAttachmentDeletion as So, readNotificationSchedule as Sr, getFilePermalink as Ss, deadLetterAttempt as St, estimateConversationMessagesTokens as T, tryWorkspaceRepoCheckoutPath as Ta, automationEventCatalog as Tc, bindEventAutomationCredentialSubject as Ti, createPluginEventPublisher as Tn, storeDeferredAttachment as To, isPausedBySlack as Tr, isConversationScopedChannel as Ts, dropPendingMessages as Tt, AuthPausePersistenceError as U, createPluginLogger as Ua, AutomationConflictError as Uc, loadSnapshotsForProfile as Ui, lexemesSql as Un, claimDispatchMailboxAppend as Uo, canActOnReviewItem as Ur, wrapBareSlackUserIds as Us, startConversationWork as Ut, createPluginAuthOrchestration as V, runNonInteractiveCommand as Va, readAutomationVersion as Vc, WorkspaceValidationError as Vi, setBriefsConfig as Vn, readConversationAutomationRun as Vo, updateReviewItemContent as Vr, slackMention as Vs, requestAnotherSlice as Vt, AuthorizationFlowDisabledError as W, canAccessConversation as Wa, automationRevision as Wc, setWorkspaceSnapshot as Wi, searchedEventTextSql as Wn, confirmDispatchMailboxAppend as Wo, canAgentChangeReviewItem as Wr, truncateStatusText as Ws, steerWebPendingMessages as Wt, continuableMessages as X, conversationIsNotUnsubscribedRoot as Xa, readAutomationExecutionByConversationId as Xc, getSandboxProvider as Xi, storedMessageJson as Xn, getDispatchTurnId as Xo, requireReviewItemAssignees as Xr, readScheduledAutomation as Xs, TurnBudgetExceededError as Xt, getConversationPendingAuth as Y, conversationIsMemberRoot as Ya, existingConversationId as Yc, ensureDockerDaemon as Yi, excerptTerms as Yn, getDispatchRecord as Yo, readReviewItemAgentScope as Yr, parseScheduledAutomationRow as Ys, TURN_LIMIT_WRAP_UP_MESSAGE as Yt, loadTurnCheckpoint as Z, conversationPinnedForUser as Za, readAutomationExecutionStatusDays as Zc, isRetryableSandboxFailure as Zi, extractAssistantText as Zn, getPluginDispatchProjection as Zo, requireReviewItemLinks as Zr, saveScheduledAutomation as Zs, TurnSliceLimitExceededError as Zt, appendConversationMessages as _, consumeSandboxEgressPermissionDeniedSignal as _a, getEventAutomation as _c, createWatch as _i, getConfigDefaults as _l, readBlockedReport as _n, slackAttachmentsVersionQuery as _o, readWebPushConfig as _r, fitsSlackMetadataLimit as _s, clearConsumedConversationWake as _t, loadProjection as a, SandboxCallTimeoutError as aa, getDashboardReviewItemLink as ac, resolveAssignees as ai, refreshAutomationLastRun as al, remindMissingAnswer as an, readConversationEventPageAround as ao, isContinuablePiBoundary as ar, notifyAutomationBlocked as as, getTurnRecord as at, persistConversationMessages as b, sandboxEgressSignalsResponseSchema as ba, saveEventAutomation as bc, getWatch as bi, createUserTokenStore as bn, readLiveAttachment as bo, deletePushSubscription as br, SlackActionError as bs, completeConversationWork as bt, recordAgentsInstructionsUpdated as c, isAlreadyExistsError as ca, isDashboardLink as cc, getSlackToolContext as ci, JUNIOR_THREAD_STATE_TTL_MS as cl, getAssistantReplyText as cn, buildSentryConversationUrl as co, isToolResultMessage as cr, getSlackMessagePermalink as cs, CONVERSATION_WORK_CHECK_IN_INTERVAL_MS as ct, recordAuthorizationCompleted as d, WorkspaceSnapshotNotReadyError as da, setDashboardConversationLinkOptions as dc, RESOURCE_WATCH_TOOL_SOURCE as di, createPluginCache as dl, findLegacyNoReplyMarker as dn, notInheritedByForkChild as do, stripRuntimeTurnContext as dr, postSlackEphemeralMessage as ds, appendExclusiveInboundMessage as dt, deliverOAuthAuthorization as ea, withScheduledAutomationLock as ec, reviewItemReaderForUserInConversation as ei, readAutomationExecutions as el, createTurnLimitGate as en, createPluginConversationEvents as eo, getUserMessageInstructionText as er, markDispatchAwaitingResume as es, saveTurnCheckpoint as et, recordAuthorizationRequested as f, getWorkspaceSnapshotNotReadyError as fa, blockEventAutomation as fc, STOP_WATCHING_TOOL_NAME as fi, createDurableLocationConfigurationService as fl, isLegacyNoReplyMarker as fn, getSlackFileId as fo, trimTrailingAssistantMessages as fr, postSlackMessage as fs, appendInboundMessage as ft, recordToolExecutionStarted as g, consumeSandboxEgressAuthRequiredSignal as ga, findMatchingEventAutomations as gc, createTimerWatch as gi, projectConversationEvents$1 as gl, REPORT_BLOCKED_TOOL_NAME as gn, recordSlackAttachment as go, TURN_CONTEXT_TAG as gr, uploadFilesToConversation as gs, claimInboundMessage as gt, recordSubscribedReplyRoute as h, clearSandboxEgressSignals as ha, deleteEventAutomation as hc, collectEventMatchKeys as hi, piMessageFromHistoryItem as hl, CODE_MODE_CALL_STATUS_TEXT as hn, readSlackAttachmentSource as ho, SESSION_CONTEXT_SECTION_TAG as hr, updateSlackMessage as hs, checkInConversationWork as ht, loadConversationProjection as i, startOAuthFlow as ia, getDashboardPersonLink as ic, resolveAssignee as ii, recordAutomationExecution as il, readTurnAnswer as in, readConversationEventPageAfter as io, isAssistantMessage as ir, markDispatchRunning as is, getStoredTurnFields as it, recordDeliveredAssistantMessage as j, SANDBOX_DATA_ROOT as ja, hasEventCatalogEntries as jc, verifyTimerWatchCredentialSubject as ji, getPluginTools as jn, embedConversationQuery as jo, countReviewItemsNeedingUserBySubject as jr, withSlackRetries as js, isFinalAttempt as jt, markConversationMessage as k, createPluginModel as ka, eventNamespaceSchema as kc, verifyScheduledAutomationCredentialSubject as ki, getPluginSlackConversationLink as kn, backfillConversationEmbeddings as ko, closeReviewItem as kr, runWithSlackInstallationToken as ks, hasConversationStop as kt, recordAttachmentsDelivered as l, throwSandboxOperationError as la, parseDashboardConversationLink as lc, RESOURCE_SUBSCRIPTION_DEFAULT_TTL_MS as li, credentialAuditAttributes as ll, sanitizeAssistantText as ln, FORK_INSTRUCTIONS as lo, normalizeToolNameFromResult as lr, openSlackDirectMessage as ls, CONVERSATION_WORK_STALE_ENQUEUE_MS as lt, recordMcpProviderConnected as m, workspaceSnapshotNotReadyUserMessage as ma, createEventAutomation as mc, cancelWatch as mi, historyItemFromPiMessage as ml, CODEMODE_TOOL_NAME as mn, readAttachmentVisionSummary as mo, REQUEST_CONTEXT_SECTION_TAG as mr, unfurlSlackLinks as ms, cancelHumanFacingPendingMessages as mt, commitMessages as n, parseOAuthStatePayload as na, getDashboardLinkFilter as nc, activeParticipantUserIds as ni, readAutomationRuns as nl, REPLY_TOOL_NAME as nn, readLatestConversationBrief as no, hasTurnInput as nr, markDispatchCompleted as ns, completeTurnRecord as nt, loadTurnProjection as o, findInErrorChain as oa, getDashboardSettingsLink as oc, createCodeChangePublisher as oi, fallbackShortTitle as ol, replyTextSchema as on, readConversationLastEventSeq as oo, isStandaloneRuntimeContextMessage as or, addReactionToMessage as os, listTurnSummaries as ot, recordGuardianActionReviewed as p, isWorkspaceSnapshotNotReadyError as pa, collectEventAutomationMatchKeys as pc, cancelSubscriptions as pi, configValueSchema as pl, readNoReply as pn, matchSlackAttachments as po, CAPABILITY_SECTION_TAG as pr, removeReactionFromMessage as ps, beginConversationResume as pt, canReusePendingAuthLink as q, readConversationAccessFromSql as qa, isToolInputError as qc, hash as qi, callsToolSql as qn, getDispatchIdForConversation as qo, isOnlyAssignee as qr, deleteScheduledAutomation as qs, readInboundMessageSender as qt, loadConnectedMcpProviders as r, resolveBaseUrl as ra, getDashboardObjectIconLink as rc, automationCreatorUserId as ri, readAutomationTitlesByConversationId as rl, isAnswerToolName as rn, readConversationEventPage as ro, instructionTextForProjection as rr, markDispatchFailed as rs, failTurnRecord as rt, openConversationProjection as s, isAbortError as sa, getDashboardTaskLink as sc, resolveChannelCapabilities as si, resolveTaskTitle as sl, decideReply as sn, readConversationMessageEventSeq as so, isToolResultError as sr, deleteSlackMessage as ss, recordTurnSummary as st, commitAcceptedReply as t, formatProviderLabel as ta, getDashboardConversationLink as tc, EVERYONE_ASSIGNEE as ti, readAutomationRowStats as tl, isTurnExecutionLimitExceededError as tn, readConversationBriefThrough as to, hasRuntimeTurnContext as tr, markDispatchBlocked as ts, abandonTurnRecord as tt, recordAuthenticationLinked as u, wrapSandboxSetupError as ua, parseDashboardPersonLink as uc, RESOURCE_SUBSCRIPTION_MAX_TTL_MS as ui, credentialAuditSource as ul, NO_REPLY_TOOL_NAME as un, loadForkHistory as uo, retainRuntimeTurnContext as ur, openSlackModal as us, ackMessages as ut, hydrateConversationMessages as v, createSandboxEgressCredentialToken as va, listDeletedEventAutomationsCreatedBy as vc, deliverWatch as vi, setConfigDefaults as vl, persistWithRetry as vn, collectAttachmentGarbage as vo, sendPushNotificationToUser as vr, slackEntitySchema as vs, clearExpiredConversationLease as vt, buildConversationContext as w, SANDBOX_RUNTIME as wa, CORE_EVENT_NAMESPACE as wc, turnEvents as wi, applyPluginFormatMarkdown as wn, storeAttachments as wo, savePushSubscription as wr, getSlackClient as ws, drainConversationMailbox as wt, toStoredConversationMessage as x, buildSandboxEgressNetworkPolicy as xa, setEventAutomationStatus as xc, isQuietEvent as xi, getOAuthAccountProviders as xn, recordUploadedAttachment as xo, listPushSubscriptions as xr, downloadPrivateSlackFile as xs, countPendingConversationMessages as xt, persistConversationMessageWindow as y, parseSandboxEgressCredentialToken as ya, parseEventAutomationRow as yc, findMatchingWatches as yi, SANDBOX_EGRESS_AUTH_REQUIRED_MARKER as yn, isFileAttachment as yo, resolveNotificationTimezone as yr, slackExternalRefIdSchema as ys, completeConversationStop as yt, createPluginEgress as z, buildCommandScript as za, automationVersionOf as zc, listWorkspacesByRepository as zi, isEventEmbeddingsEnabled as zn, lookupSlackUser as zo, searchReviewItems as zr, normalizeSlackReplyMarkdown as zs, releaseConversationWork as zt };
|
|
@@ -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-
|
|
2
|
-
import { E as withSpan, _ as runBestEffort, a as extractGenAiUsageSummary, i as extractGenAiUsageAttributes, p as logException } from "./logging-
|
|
3
|
-
import { _t as agentTurnCostUsd, r as getConversationEventStore } from "./db-
|
|
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-Cx8H0MRw.js";
|
|
2
|
+
import { E as withSpan, _ as runBestEffort, a as extractGenAiUsageSummary, i as extractGenAiUsageAttributes, p as logException } from "./logging-DnBYBM8z.js";
|
|
3
|
+
import { _t as agentTurnCostUsd, r as getConversationEventStore } from "./db-CO6Y10eM.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-
|
|
2
|
+
import { b as setSpanAttributes, h as logWarn, m as logInfo } from "./logging-DnBYBM8z.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-
|
|
2
|
-
import { Ji as isStale, Ki as create, Ms as sleep, Xi as getSandboxProvider } from "./projection-
|
|
3
|
-
import { $ as getStateAdapter } from "./db-
|
|
1
|
+
import { i as trace, n as postinstall, o as getSandboxResources, t as dependencies } from "./install-Y2s9ZPvk.js";
|
|
2
|
+
import { Ji as isStale, Ki as create, Ms as sleep, Xi as getSandboxProvider } from "./projection-Bqn6zdVT.js";
|
|
3
|
+
import { $ as getStateAdapter } from "./db-CO6Y10eM.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-
|
|
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-
|
|
4
|
-
import { a as EVENT_SYSTEM_ACTOR } from "./prompt-
|
|
5
|
-
import { p as credentialContextForActor } from "./registry-
|
|
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-
|
|
7
|
-
import { _ as getConversationWorkState, r as appendAndEnqueueInboundMessage } from "./store-
|
|
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-
|
|
9
|
-
import { Z as renderUntrustedTag } from "./config-
|
|
2
|
+
import { P as SYSTEM_IDENTITY_ID, a as getConversationStore, k as turnBehavior } from "./db-CO6Y10eM.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-BQ0J0Fph.js";
|
|
4
|
+
import { a as EVENT_SYSTEM_ACTOR } from "./prompt-DAjjk5fm.js";
|
|
5
|
+
import { p as credentialContextForActor } from "./registry-tHJLCtKS.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-DbU7MNd9.js";
|
|
7
|
+
import { _ as getConversationWorkState, r as appendAndEnqueueInboundMessage } from "./store-7QA00oK6.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-HFgFZFwS.js";
|
|
9
|
+
import { Z as renderUntrustedTag } from "./config-Cx8H0MRw.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-
|
|
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-
|
|
4
|
-
import { S as setTags, T as withLogContext, p as logException } from "./logging-
|
|
5
|
-
import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-
|
|
6
|
-
import { a as getPersistedThreadState, c as coerceThreadConversationState, i as getPersistedSandboxState, s as persistThreadStateById } from "./turn-session-routing-
|
|
7
|
-
import { _ as ConversationTurnLifecycleService, g as startActiveTurn, h as markTurnFailed } from "./turn-user-message-
|
|
8
|
-
import { L as finalizeFailedTurnReplyWithEvent } from "./agent-runner-
|
|
9
|
-
import { p as credentialContextForActor } from "./registry-
|
|
10
|
-
import { P as SYSTEM_IDENTITY_ID, a as getConversationStore, r as getConversationEventStore } from "./db-
|
|
2
|
+
import { a as buildDeliveredTurnStatePatch, o as loadPendingMessageCards, r as completeAuthPauseTurn, t as buildTurnThreadContext } from "./thread-context-C-hLTQST.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-Bqn6zdVT.js";
|
|
4
|
+
import { S as setTags, T as withLogContext, p as logException } from "./logging-DnBYBM8z.js";
|
|
5
|
+
import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-CyZMcuZy.js";
|
|
6
|
+
import { a as getPersistedThreadState, c as coerceThreadConversationState, i as getPersistedSandboxState, s as persistThreadStateById } from "./turn-session-routing-Cqjj1B3i.js";
|
|
7
|
+
import { _ as ConversationTurnLifecycleService, g as startActiveTurn, h as markTurnFailed } from "./turn-user-message-DbU7MNd9.js";
|
|
8
|
+
import { L as finalizeFailedTurnReplyWithEvent } from "./agent-runner-BnOofGFG.js";
|
|
9
|
+
import { p as credentialContextForActor } from "./registry-tHJLCtKS.js";
|
|
10
|
+
import { P as SYSTEM_IDENTITY_ID, a as getConversationStore, r as getConversationEventStore } from "./db-CO6Y10eM.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-
|
|
1
|
+
import { ba as sandboxEgressSignalsResponseSchema } from "./projection-Bqn6zdVT.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,6 +1,6 @@
|
|
|
1
|
-
import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-
|
|
2
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
3
|
-
import { Z as disconnectStateAdapter } from "./db-
|
|
1
|
+
import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-CddxU-yC.js";
|
|
2
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-q9AJjuUN.js";
|
|
3
|
+
import { Z as disconnectStateAdapter } from "./db-CO6Y10eM.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,8 +1,8 @@
|
|
|
1
|
-
import { K as isRecord, b as setSpanAttributes, h as logWarn } from "./logging-
|
|
2
|
-
import { i as resolvePluginHeaderEnvRefs, l as fetchWithBoundedOAuthErrorBodies } from "./registry-
|
|
3
|
-
import { $ as getStateAdapter, Dt as parseDestination, at as withLock, it as fenceLock, nt as MUTATION_LOCK_TTL_MS } from "./db-
|
|
4
|
-
import { n as readEncryptedState, r as findLegacyWebActorUserId, t as createEncryptedState } from "./state-
|
|
5
|
-
import { n as botConfig } from "./config-
|
|
1
|
+
import { K as isRecord, b as setSpanAttributes, h as logWarn } from "./logging-DnBYBM8z.js";
|
|
2
|
+
import { i as resolvePluginHeaderEnvRefs, l as fetchWithBoundedOAuthErrorBodies } from "./registry-tHJLCtKS.js";
|
|
3
|
+
import { $ as getStateAdapter, Dt as parseDestination, at as withLock, it as fenceLock, nt as MUTATION_LOCK_TTL_MS } from "./db-CO6Y10eM.js";
|
|
4
|
+
import { n as readEncryptedState, r as findLegacyWebActorUserId, t as createEncryptedState } from "./state-rXH58smZ.js";
|
|
5
|
+
import { n as botConfig } from "./config-Cx8H0MRw.js";
|
|
6
6
|
import pLimit from "p-limit";
|
|
7
7
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
8
8
|
import { randomUUID } from "node:crypto";
|