@sentry/junior 0.309.0 → 0.310.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-1YUbMpD3.js → adapter-context-BhKpjpGD.js} +2 -2
- package/dist/{admin-u30A8TcD.js → admin-tgZEZAk2.js} +2 -2
- package/dist/{agent-runner-sJLhgPQV.js → agent-runner-D9cvNlQl.js} +176 -138
- package/dist/api/schema.js +5 -5
- package/dist/api.js +30 -30
- package/dist/app.js +31 -30
- package/dist/{background-compaction-queue-CUJXVKG3.js → background-compaction-queue-BGHqkhkY.js} +4 -4
- package/dist/{briefs-BHi70IR5.js → briefs-DKxkoruh.js} +3 -3
- package/dist/{catalog-runtime-Chc_IP2o.js → catalog-runtime-BxwzbLKY.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-BIyIdTtA.js → config-Dkt2Le2b.js} +2 -2
- package/dist/{continue-in-slack-BQJBfiQh.js → continue-in-slack-BWVwePKD.js} +5 -5
- package/dist/{conversation-CzrLhdHG.js → conversation-M9KZ5JxF.js} +1 -1
- package/dist/{conversation-feed-B9e3_gxz.js → conversation-feed-Ci6YD1N-.js} +1 -1
- package/dist/{conversation-privacy-CkTW29hd.js → conversation-privacy-C39g8BY4.js} +1 -1
- package/dist/{conversation-turn-CZaYQUum.js → conversation-turn-CBlZIH02.js} +16 -16
- package/dist/{credential-sync-58m_CyIJ.js → credential-sync-vGnrB0BY.js} +16 -16
- package/dist/{db-CFUpEZi9.js → db-CFZggNoy.js} +13 -5
- package/dist/{executor-DXL0O0MV.js → executor-BPkZDx5-.js} +10 -3
- package/dist/{history-N7IVbUom.js → history-CYstOMKX.js} +6 -0
- package/dist/{html-CaBu2VbT.js → html-2r2KmLwi.js} +6 -6
- package/dist/{install-DhTBUUov.js → install-C-oE6C_u.js} +2 -2
- package/dist/instrumentation.js +2 -2
- package/dist/{lineage-CxtOI2_p.js → lineage-CsvrEFQe.js} +2 -2
- package/dist/{logging-BNUovdcX.js → logging-D5gkyvnK.js} +1 -1
- package/dist/{message-DcUsS2vg.js → message-DwvJ-I3w.js} +8 -8
- package/dist/{model-input-o3rEqgwM.js → model-input-MAq2881y.js} +2 -2
- package/dist/nitro.js +3 -3
- package/dist/{oauth-callback-server-1Fizd1EM.js → oauth-callback-server-DIF6Li06.js} +2 -2
- package/dist/{oauth-relay-DOwngqdM.js → oauth-relay-DPE-wrwO.js} +1 -1
- package/dist/{projection-Ce4pmhKP.js → projection-jZSlEAXG.js} +32 -15
- package/dist/{prompt-DEqjDVMs.js → prompt-CaMyeCpA.js} +4 -4
- package/dist/{registry-CNE4ZBnG.js → registry-BBkWFCl8.js} +1 -1
- package/dist/{resolve-qbPg-aC-.js → resolve-B38MkHXE.js} +3 -3
- package/dist/{result-ZGnDzcsb.js → result-BaqSZcJb.js} +8 -8
- package/dist/{runner-eGIxpAMf.js → runner-11h8PrHh.js} +10 -10
- package/dist/{sandbox-egress-signals-DMFB1kCp.js → sandbox-egress-signals-CTcACAtJ.js} +1 -1
- package/dist/{schedule-Cire6NU7.js → schedule-DWxZ3kja.js} +1 -1
- package/dist/{schema-CfIey9Ao.js → schema-obw5jvR4.js} +3 -3
- package/dist/{service-account-B1VXCTqg.js → service-account-Bx93N1n1.js} +3 -3
- package/dist/{service-account-Cw_LWZ4-.js → service-account-Zc5bUcIJ.js} +5 -5
- package/dist/{session-stop-P2XdTiwr.js → session-stop-BfY4rhJs.js} +39 -36
- package/dist/{skills-Zg8-vrje.js → skills-C8Npu5zO.js} +77 -31
- package/dist/{slack-conversation-unfurl-DA51qH0c.js → slack-conversation-unfurl-DlRVA02H.js} +10 -10
- package/dist/{spawn-DBi4-zD8.js → spawn-CXr58R0x.js} +6 -6
- package/dist/{state-C-Ftk23K.js → state-CGrGVeQC.js} +4 -4
- package/dist/{stop-D9xideLM.js → stop-DYzjRf2U.js} +33 -33
- package/dist/{store-BjIXA0Al.js → store-D4FQ1Nml.js} +5 -5
- package/dist/{task-queue-D0_qbnpo.js → task-queue-CaZffYaH.js} +3 -3
- package/dist/{task-runner-DQMq4XY0.js → task-runner-Dm7BHbGp.js} +7 -7
- package/dist/{thread-context-D0i1e-5O.js → thread-context-Dyj1KWaY.js} +7 -7
- package/dist/{turn-session-routing-C0l68I_O.js → turn-session-routing-CD0BRCex.js} +4 -4
- package/dist/{turn-user-message-nBVvOXjs.js → turn-user-message-9IxeEv5v.js} +3 -3
- package/dist/{users-DdjMjbmM.js → users-CaUAYMb3.js} +1 -1
- package/dist/{validation-CRbvRPvu.js → validation-DxVNIxA0.js} +1 -1
- package/dist/{version-BYdVs12p.js → version-Cr7Z71yG.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-DudYrQGj.js → viewer-AHldghAD.js} +3 -3
- package/dist/{warmup-DN9OHN1-.js → warmup-C6LOZ2d2.js} +22 -22
- package/dist/{worker-C9ZfJXmV.js → worker-CUBtu1Li.js} +8 -8
- package/migrations/0124_artifact_visibility.sql +9 -0
- package/migrations/0125_artifact_public_sha_index.sql +1 -0
- package/migrations/meta/0124_snapshot.json +5516 -0
- package/migrations/meta/0125_snapshot.json +5516 -0
- package/migrations/meta/_journal.json +14 -0
- package/package.json +7 -7
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
|
|
2
|
-
import { A as
|
|
3
|
-
import {
|
|
4
|
-
import { E as withSpan, S as setTags, h as logWarn, p as logException } from "./logging-
|
|
5
|
-
import { tt as readMessageAttachments } from "./conversation-
|
|
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 { Dn as supersedeOpenMailboxTurns, Dt as resolveConversationDestination, Hn as AgentRunError, Un as executeTurn, _n as completeCancelledConversationTurn, nn as childAgentTurnOptions, on as readParentMessage, rn as isParentMessageMeta, zn as createWebAuthorization } from "./warmup-
|
|
9
|
-
import { _ as ConversationTurnLifecycleService, d as isTurnInputCommitLostError, g as startActiveTurn, h as markTurnFailed, l as getConversationTurnBoundaryError, s as TurnInputCommitLostError, t as getTurnUserMessage, z as buildDeterministicTurnId } from "./turn-user-message-
|
|
10
|
-
import { p as credentialContextForActor } from "./registry-
|
|
2
|
+
import { A as latestConversationMessageSeq, I as upsertConversationMessage, Js as blockScheduledAutomation, M as normalizeConversationText, N as recordDeliveredAssistantMessage, Pi as verifyTimerWatchCredentialSubject, S as persistConversationMessages, Wo as readConversationAutomationRun, Xo as getDispatchIdForConversation, at as failTurnRecord, b as hydrateConversationMessages, bn as persistWithRetry, cs as notifyAutomationBlocked, hc as blockEventAutomation, j as markConversationMessage, nt as saveTurnCheckpoint, o as loadProjection, st as getTurnRecord, t as commitAcceptedReply, un as getAssistantReplyText } from "./projection-jZSlEAXG.js";
|
|
3
|
+
import { A as turnBehavior, D as isTopLevelKind, E as isPersonInput, a as getConversationStore, o as getDb, r as getConversationEventStore } from "./db-CFZggNoy.js";
|
|
4
|
+
import { E as withSpan, S as setTags, h as logWarn, p as logException } from "./logging-D5gkyvnK.js";
|
|
5
|
+
import { tt as readMessageAttachments } from "./conversation-M9KZ5JxF.js";
|
|
6
|
+
import { L as finalizeFailedTurnReplyWithEvent, O as isConversationDeliveryPaused, i as measureTurnCompactionWait } from "./agent-runner-D9cvNlQl.js";
|
|
7
|
+
import { a as buildDeliveredTurnStatePatch, o as loadPendingMessageCards, r as completeAuthPauseTurn, t as buildTurnThreadContext } from "./thread-context-Dyj1KWaY.js";
|
|
8
|
+
import { Dn as supersedeOpenMailboxTurns, Dt as resolveConversationDestination, Hn as AgentRunError, Un as executeTurn, _n as completeCancelledConversationTurn, nn as childAgentTurnOptions, on as readParentMessage, rn as isParentMessageMeta, zn as createWebAuthorization } from "./warmup-C6LOZ2d2.js";
|
|
9
|
+
import { _ as ConversationTurnLifecycleService, d as isTurnInputCommitLostError, g as startActiveTurn, h as markTurnFailed, l as getConversationTurnBoundaryError, s as TurnInputCommitLostError, t as getTurnUserMessage, z as buildDeterministicTurnId } from "./turn-user-message-9IxeEv5v.js";
|
|
10
|
+
import { p as credentialContextForActor } from "./registry-BBkWFCl8.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,
|
|
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-CD0BRCex.js";
|
|
13
|
+
import { n as botConfig } from "./config-Dkt2Le2b.js";
|
|
14
|
+
import { $ as maybePostAutomatedTurnLimitNotice, B as renderEventBatchInputs, D as getEventBatchDelayMs, M as sourceFromTurnInput, N as turnInputFactsFromConversationMessage, P as legacyWebMailboxMetadataSchema, R as eventBatchMessageMeta, V as timerWatchCredentialSubject, c as loadReviewItemInput, ct as recordFinishedTurnForAutomatedLimit, f as buildSteeringPiMessage, g as withoutSavedSteeringMessages, m as instructionForInputs, p as instructionActorFor, s as eventReviewItemInputs, z as isEventMailboxMetadata } from "./session-stop-BfY4rhJs.js";
|
|
15
|
+
import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-Dm7BHbGp.js";
|
|
16
16
|
import { t as mapBounded } from "./fan-out-Cod-yEHG.js";
|
|
17
|
-
import { p as instructionProvenanceFor } from "./history-
|
|
18
|
-
import { s as isEventConversationMessage } from "./prompt-
|
|
19
|
-
import { t as readConversationLineage } from "./lineage-
|
|
17
|
+
import { p as instructionProvenanceFor } from "./history-CYstOMKX.js";
|
|
18
|
+
import { s as isEventConversationMessage } from "./prompt-CaMyeCpA.js";
|
|
19
|
+
import { t as readConversationLineage } from "./lineage-CsvrEFQe.js";
|
|
20
20
|
import { isDeepStrictEqual } from "node:util";
|
|
21
21
|
import { createHash } from "node:crypto";
|
|
22
22
|
// src/chat/task-execution/turn-telemetry.ts
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as getRuntimeMetadata, n as botConfig } from "./config-
|
|
1
|
+
import { Ds as getSlackClient, Sn as createUserTokenStore, W as authorizationId, Z as getConversationPendingAuth, aa as parseOAuthStatePayload, d as recordAuthenticationLinked, f as recordAuthorizationCompleted, hs as postSlackMessage, ia as formatProviderLabel, oa as resolveBaseUrl, st as getTurnRecord, wn as resolvePluginOAuthAccount } from "./projection-jZSlEAXG.js";
|
|
2
|
+
import { a as getRuntimeMetadata, n as botConfig } from "./config-Dkt2Le2b.js";
|
|
3
3
|
import { t as mapBounded } from "./fan-out-Cod-yEHG.js";
|
|
4
|
-
import { W as isNativeIdentityProvider, _ as runBestEffort, h as logWarn, p as logException } from "./logging-
|
|
4
|
+
import { W as isNativeIdentityProvider, _ as runBestEffort, h as logWarn, p as logException } from "./logging-D5gkyvnK.js";
|
|
5
5
|
import { p as parseSlackUserId } from "./actor-BsBdxDXQ.js";
|
|
6
|
-
import {
|
|
6
|
+
import { J as upsertLinkedIdentity, L as resolveActorIdentityId, U as findUserByVerifiedEmails, at as acquireActiveLock, s as getSqlExecutor, tt as getStateAdapter } from "./db-CFZggNoy.js";
|
|
7
7
|
import { i as homeDir } from "./package-discovery-DD9vencX.js";
|
|
8
|
-
import { t as discoverSkills } from "./skills-
|
|
9
|
-
import { d as hasRequiredOAuthScope, n as buildOAuthTokenRequest, r as parseOAuthTokenResponse } from "./registry-
|
|
10
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
11
|
-
import { o as finalizeMcpAuthorization } from "./agent-runner-
|
|
12
|
-
import { O as getMcpProviderErrorAttributes, S as putMcpStoredOAuthCredentials, f as deleteMcpAuthSession, g as getMcpAuthSession, v as getMcpStoredOAuthCredentials } from "./service-account-
|
|
13
|
-
import { o as readIdentityById } from "./viewer-
|
|
14
|
-
import { d as readJuniorSecret } from "./task-queue-
|
|
15
|
-
import { Bn as deleteWebAuthorization, Mn as wakeAuthorizedTurn, Nn as wakePausedTurn } from "./warmup-
|
|
16
|
-
import { i as lookupSlackUserProfile } from "./users-
|
|
17
|
-
import { a as getPersistedThreadState, c as coerceThreadConversationState } from "./turn-session-routing-
|
|
18
|
-
import { s as readConnectedOAuthTokens, t as escapeHtml, u as htmlCallbackResponse } from "./html-
|
|
19
|
-
import { n as relayLocalOAuthCallback } from "./oauth-relay-
|
|
8
|
+
import { t as discoverSkills } from "./skills-C8Npu5zO.js";
|
|
9
|
+
import { d as hasRequiredOAuthScope, n as buildOAuthTokenRequest, r as parseOAuthTokenResponse } from "./registry-BBkWFCl8.js";
|
|
10
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-BxwzbLKY.js";
|
|
11
|
+
import { o as finalizeMcpAuthorization } from "./agent-runner-D9cvNlQl.js";
|
|
12
|
+
import { O as getMcpProviderErrorAttributes, S as putMcpStoredOAuthCredentials, f as deleteMcpAuthSession, g as getMcpAuthSession, v as getMcpStoredOAuthCredentials } from "./service-account-Zc5bUcIJ.js";
|
|
13
|
+
import { o as readIdentityById } from "./viewer-AHldghAD.js";
|
|
14
|
+
import { d as readJuniorSecret } from "./task-queue-CaZffYaH.js";
|
|
15
|
+
import { Bn as deleteWebAuthorization, Mn as wakeAuthorizedTurn, Nn as wakePausedTurn } from "./warmup-C6LOZ2d2.js";
|
|
16
|
+
import { i as lookupSlackUserProfile } from "./users-CaUAYMb3.js";
|
|
17
|
+
import { a as getPersistedThreadState, c as coerceThreadConversationState } from "./turn-session-routing-CD0BRCex.js";
|
|
18
|
+
import { s as readConnectedOAuthTokens, t as escapeHtml, u as htmlCallbackResponse } from "./html-2r2KmLwi.js";
|
|
19
|
+
import { n as relayLocalOAuthCallback } from "./oauth-relay-DPE-wrwO.js";
|
|
20
20
|
import * as z from "zod";
|
|
21
21
|
import path from "node:path";
|
|
22
22
|
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-Dkt2Le2b.js";
|
|
3
3
|
import { a as isSlackUserId, d as parseSlackChannelReferenceId, f as parseSlackTeamId, s as parseActorUserId } from "./actor-BsBdxDXQ.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-
|
|
5
|
-
import { c as newConversationEventSchema, h as usageSchema, l as encodeHistoryPayload, o as decodeStoredConversationEvent, r as conversationEventDataSchema, s as historyReplacementSchema } from "./history-
|
|
6
|
-
import { G as normalizeIdentityEmail, U as GOOGLE_IDENTITY_PROVIDER, h as logWarn } from "./logging-
|
|
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-BPkZDx5-.js";
|
|
5
|
+
import { c as newConversationEventSchema, h as usageSchema, l as encodeHistoryPayload, o as decodeStoredConversationEvent, r as conversationEventDataSchema, s as historyReplacementSchema } from "./history-CYstOMKX.js";
|
|
6
|
+
import { G as normalizeIdentityEmail, U as GOOGLE_IDENTITY_PROVIDER, h as logWarn } from "./logging-D5gkyvnK.js";
|
|
7
7
|
import { t as mapBounded } from "./fan-out-Cod-yEHG.js";
|
|
8
8
|
import * as z from "zod";
|
|
9
9
|
import { createHash, randomUUID } from "node:crypto";
|
|
@@ -1639,6 +1639,14 @@ function deliversFinalText(dispatch) {
|
|
|
1639
1639
|
function postsRunNotices(dispatch) {
|
|
1640
1640
|
return deliversFinalText(dispatch);
|
|
1641
1641
|
}
|
|
1642
|
+
/**
|
|
1643
|
+
* Return whether the task instructions of a dispatch run can invoke skills.
|
|
1644
|
+
* Only an Automation creator writes them. Another dispatch, such as a plugin
|
|
1645
|
+
* dispatch, has no person's text.
|
|
1646
|
+
*/
|
|
1647
|
+
function dispatchInstructionsInvokeSkills(dispatch) {
|
|
1648
|
+
return dispatch?.declaresResult === true;
|
|
1649
|
+
}
|
|
1642
1650
|
// src/chat/conversations/sql/store.ts
|
|
1643
1651
|
const CONVERSATION_MUTATION_LOCK_PREFIX = "junior_conversation";
|
|
1644
1652
|
/** Serialize one conversation's durable mutations inside a SQL transaction. */
|
|
@@ -2946,4 +2954,4 @@ async function closeDb() {
|
|
|
2946
2954
|
current = void 0;
|
|
2947
2955
|
await previous?.db.close();
|
|
2948
2956
|
}
|
|
2949
|
-
export {
|
|
2957
|
+
export { disconnectStateAdapter as $, turnBehavior as A, requireSlackDestination as At, deleteProviderIdentityForUser as B, withConversationMutationLock as C, resolveRootConversationId as Ct, isTopLevelKind as D, touchConversationDetail as Dt, isPersonInput as E, nextDetailVersion as Et, SYSTEM_IDENTITY_ID as F, readUserTimezone as G, findSlackUserByPrimaryEmail as H, findActorIdentityId as I, upsertLinkedIdentity as J, recordGoogleSignIn as K, resolveActorIdentityId as L, locationFromRow as M, setFirstConversationLocation as N, postsRunNotices as O, createSlackDestination as Ot, startLocationThread as P, createCache as Q, saveActorAvatar as R, createSqlStore as S, hasAgentTurnUsage as St, dispatchInstructionsInvokeSkills as T, conversationDetailTouch as Tt, findUserByVerifiedEmails as U, findLinkedSlackUser as V, linkedSlackUser as W, readCachedUserByEmail as X, clearCachedUser as Y, cacheKeyPrefix as Z, readConversationTrees as _, conversationUsageCostExpr as _t, getConversationStore as a, acquireActiveLock as at, lastMessageAtSql as b, agentTurnTotalTokens as bt, hasAnnotationKey as c, claimProviderConversation as ct, eventFromRow as d, conversationCostOf as dt, getDefaultRedisStateAdapterFor as et, copyMessageLinks as f, microUsdSql as ft, conversationDescendants as g, conversationRangeColumns as gt, conversationAncestors as h, conversationAggregateColumns as ht, getConversationMessageSearchStore as i, MUTATION_LOCK_TTL_MS as it, conversationKindFromRow as j, sameDestination as jt, promptModeTurnTools as k, parseDestination as kt, treeHasAnnotationKey as l, getConversationIdByProviderConversation as lt, withConversationEventLock as m, usdToMicroUsd as mt, db_exports as n, getStateValues as nt, getDb as o, fenceLock as ot, deleteMessageLinks as p, microUsdToUsd as pt, saveUserTimezone as q, getConversationEventStore as r, setStateValues as rt, getSqlExecutor as s, withLock as st, closeDb as t, getStateAdapter as tt, createSqlConversationEventStore as u, parseSessionSource as ut, setArchivedAt as v, addAgentTurnUsage as vt, deliversFinalText as w, rootConversationIsArchived as wt, userMessageQueries as x, agentTurnUsageSchema as xt, loadConversationSlackTenantIds as y, agentTurnCostUsd as yt, deleteProviderIdentityForSlackUser as z };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { h as logWarn, p as logException } from "./logging-
|
|
1
|
+
import { h as logWarn, p as logException } from "./logging-D5gkyvnK.js";
|
|
2
2
|
import { _ as withScope } from "./sentry-CPbZjomA.js";
|
|
3
|
-
import "./config-
|
|
3
|
+
import "./config-Dkt2Le2b.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";
|
|
@@ -24,12 +24,19 @@ const juniorArtifacts = pgTable("junior_artifacts", {
|
|
|
24
24
|
storageKey: text("storage_key").notNull(),
|
|
25
25
|
contentType: text("content_type").notNull(),
|
|
26
26
|
bytes: integer("bytes").notNull(),
|
|
27
|
-
|
|
27
|
+
visibility: text("visibility").$type().notNull().default("public"),
|
|
28
|
+
/**
|
|
29
|
+
* Replaced by `visibility`. Nothing reads or writes it. It stays, with a
|
|
30
|
+
* default, while the previous runtime still reads it during rollout.
|
|
31
|
+
*/
|
|
32
|
+
public: boolean("public").notNull().default(true),
|
|
28
33
|
createdAt: timestamptz("created_at").notNull(),
|
|
29
34
|
/** Set when the artifact should stop being served publicly. */
|
|
30
35
|
deleteRequestedAt: timestamptz("delete_requested_at")
|
|
31
36
|
}, (table) => [
|
|
37
|
+
check("junior_artifacts_visibility_check", sql`${table.visibility} in ('conversation', 'internal', 'public')`),
|
|
32
38
|
uniqueIndex("junior_artifacts_conversation_sha_uidx").on(table.conversationId, table.sha256),
|
|
39
|
+
uniqueIndex("junior_artifacts_public_sha_uidx").on(table.conversationId, table.sha256).where(sql`${table.visibility} = 'public'`),
|
|
33
40
|
index("junior_artifacts_gc_idx").on(table.deleteRequestedAt, table.createdAt),
|
|
34
41
|
index("junior_artifacts_conversation_idx").on(table.conversationId)
|
|
35
42
|
]);
|
|
@@ -212,6 +212,10 @@ const mcpProviderConnectedEventDataSchema = z.object({
|
|
|
212
212
|
provider: z.string().min(1),
|
|
213
213
|
credentialSubjectId: z.string().min(1)
|
|
214
214
|
}).strict();
|
|
215
|
+
const skillLoadedEventDataSchema = z.object({
|
|
216
|
+
type: z.literal("skill_loaded"),
|
|
217
|
+
skillName: z.string().min(1)
|
|
218
|
+
}).strict();
|
|
215
219
|
const unownedMcpProviderConnectedEventDataSchema = z.object({
|
|
216
220
|
type: z.literal("mcp_provider_connected_unowned"),
|
|
217
221
|
provider: z.string().min(1)
|
|
@@ -444,6 +448,7 @@ const appendableConversationEventDataSchema = z.union([
|
|
|
444
448
|
messageUpdatedEventDataSchema,
|
|
445
449
|
agentHistoryItemSchema,
|
|
446
450
|
mcpProviderConnectedEventDataSchema,
|
|
451
|
+
skillLoadedEventDataSchema,
|
|
447
452
|
authorizationRequestedEventDataSchema,
|
|
448
453
|
authorizationCompletedEventDataSchema,
|
|
449
454
|
toolExecutionStartedEventDataSchema,
|
|
@@ -480,6 +485,7 @@ const KNOWN_CONVERSATION_EVENT_TYPES = [
|
|
|
480
485
|
"system_message",
|
|
481
486
|
"mcp_provider_connected",
|
|
482
487
|
"mcp_provider_connected_unowned",
|
|
488
|
+
"skill_loaded",
|
|
483
489
|
"authorization_requested",
|
|
484
490
|
"authorization_completed",
|
|
485
491
|
"tool_execution_started",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as botConfig } from "./config-
|
|
1
|
+
import { sa as startOAuthFlow } from "./projection-jZSlEAXG.js";
|
|
2
|
+
import { n as botConfig } from "./config-Dkt2Le2b.js";
|
|
3
3
|
import { t as mapBounded } from "./fan-out-Cod-yEHG.js";
|
|
4
|
-
import {
|
|
5
|
-
import { d as hasRequiredOAuthScope } from "./registry-
|
|
6
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
7
|
-
import { h as deleteMcpStoredOAuthCredentials, m as deleteMcpServerSessionId, p as deleteMcpAuthSessionsForUserProvider } from "./service-account-
|
|
4
|
+
import { B as deleteProviderIdentityForUser, s as getSqlExecutor, z as deleteProviderIdentityForSlackUser } from "./db-CFZggNoy.js";
|
|
5
|
+
import { d as hasRequiredOAuthScope } from "./registry-BBkWFCl8.js";
|
|
6
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-BxwzbLKY.js";
|
|
7
|
+
import { h as deleteMcpStoredOAuthCredentials, m as deleteMcpServerSessionId, p as deleteMcpAuthSessionsForUserProvider } from "./service-account-Zc5bUcIJ.js";
|
|
8
8
|
import { randomBytes } from "node:crypto";
|
|
9
9
|
// src/handlers/oauth-html.ts
|
|
10
10
|
/** Build pre-escaped callback HTML with the shared response security policy. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { E as withSpan, b as setSpanAttributes } from "./logging-
|
|
1
|
+
import { Na as SANDBOX_COMMAND_PATH, Ra as SANDBOX_WORKSPACE_ROOT, Wa as runNonInteractiveCommand } from "./projection-jZSlEAXG.js";
|
|
2
|
+
import { E as withSpan, b as setSpanAttributes } from "./logging-D5gkyvnK.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-C39g8BY4.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-D5gkyvnK.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 {
|
|
2
|
-
import { R as juniorConversations } from "./executor-
|
|
1
|
+
import { j as conversationKindFromRow, o as getDb } from "./db-CFZggNoy.js";
|
|
2
|
+
import { R as juniorConversations } from "./executor-BPkZDx5-.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-Cr7Z71yG.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 { Cn as AgentMessageTargetError, En as PARENT_AGENT_TARGET, Sn as AgentMessagePausedError, Vt as getActiveAgentInvocationForConversation, Wt as getLatestAgentInvocationForConversation, dn as enqueueAgentInvocation, en as readChildConversationSender, wn as findChildAgentConversationId, yn as createAgentInvocationForMessage } from "./warmup-
|
|
4
|
-
import { a as enqueueAgentMessageToParent } from "./result-
|
|
5
|
-
import {
|
|
6
|
-
import { J as renderUntrustedTag, n as botConfig } from "./config-
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { r as appendAndEnqueueInboundMessage } from "./store-
|
|
2
|
+
import { F as actorFromRun, I as toolInvocationDestination } from "./agent-runner-D9cvNlQl.js";
|
|
3
|
+
import { Cn as AgentMessageTargetError, En as PARENT_AGENT_TARGET, Sn as AgentMessagePausedError, Vt as getActiveAgentInvocationForConversation, Wt as getLatestAgentInvocationForConversation, dn as enqueueAgentInvocation, en as readChildConversationSender, wn as findChildAgentConversationId, yn as createAgentInvocationForMessage } from "./warmup-C6LOZ2d2.js";
|
|
4
|
+
import { a as enqueueAgentMessageToParent } from "./result-BaqSZcJb.js";
|
|
5
|
+
import { Xa as readConversationAccessFromSql, qa as canAccessConversation } from "./projection-jZSlEAXG.js";
|
|
6
|
+
import { J as renderUntrustedTag, n as botConfig } from "./config-Dkt2Le2b.js";
|
|
7
|
+
import { F as SYSTEM_IDENTITY_ID, a as getConversationStore, o as getDb } from "./db-CFZggNoy.js";
|
|
8
|
+
import { F as EVENT_WAIT_MS, et as postAutomatedTurnLimitNoticeForConversation, st as admitAutomatedTurn } from "./session-stop-BfY4rhJs.js";
|
|
9
|
+
import { r as appendAndEnqueueInboundMessage } from "./store-D4FQ1Nml.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-CFZggNoy.js";
|
|
3
3
|
import { h as isVisionImageMediaType, m as detectImageMediaType } from "./web-message-id-BT8Mg8LL.js";
|
|
4
|
-
import {
|
|
4
|
+
import { Co as readLiveAttachment } from "./projection-jZSlEAXG.js";
|
|
5
5
|
import { escapeTagText, renderTag } from "@sentry/junior-plugin-api";
|
|
6
6
|
// src/chat/attachments/model-input.ts
|
|
7
7
|
var model_input_exports = /* @__PURE__ */ __exportAll({ loadInputAttachments: () => loadInputAttachments });
|
package/dist/nitro.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { d as resolvePackageDir, t as discoverInstalledPluginPackageContent, u as isValidPackageName } from "./package-discovery-DD9vencX.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-BGHqkhkY.js";
|
|
4
|
+
import { t as PLUGIN_TASK_QUEUE_TOPIC } from "./task-queue-CaZffYaH.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-D5gkyvnK.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";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as GET, n as syncLocalOAuthCredential, r as GET$1 } from "./credential-sync-
|
|
2
|
-
import {
|
|
1
|
+
import { a as GET, n as syncLocalOAuthCredential, r as GET$1 } from "./credential-sync-vGnrB0BY.js";
|
|
2
|
+
import { Sn as createUserTokenStore } from "./projection-jZSlEAXG.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-CaZffYaH.js";
|
|
3
3
|
import * as z from "zod";
|
|
4
4
|
import { randomBytes } from "node:crypto";
|
|
5
5
|
import { SignJWT, jwtVerify } from "jose";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
|
|
2
|
-
import { d as contextProvenance, f as instructionActors, n as agentHistoryItemSchema, p as instructionProvenanceFor } from "./history-
|
|
3
|
-
import { _ as JUNIOR_NATIVE_EVENT_NAMESPACE, 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, x as renderJuniorNativeConversationEvent, y as authenticationLinkedEvent } from "./prompt-
|
|
4
|
-
import {
|
|
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-
|
|
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-
|
|
9
|
-
import { C as completeObject$1, G as readParentAgentTask, H as THREAD_CONTEXT_TAGS, O as rerankTexts, P as estimateTextTokens, S as completeDecision, T as embedTexts$1, U as authorAttrs, V as unwrapCurrentInstruction, W as isRuntimeInputText, at as bufferBody, b as GEN_AI_PROVIDER_NAME, i as getChatConfig, k as resolveGatewayModel, n as botConfig, o as getSlackBotToken, q as renderThreadContext, st as toOptionalTrimmed, y as normalizeSlackEmojiName, z as hasCurrentInstruction } from "./config-
|
|
2
|
+
import { d as contextProvenance, f as instructionActors, n as agentHistoryItemSchema, p as instructionProvenanceFor } from "./history-CYstOMKX.js";
|
|
3
|
+
import { _ as JUNIOR_NATIVE_EVENT_NAMESPACE, 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, x as renderJuniorNativeConversationEvent, y as authenticationLinkedEvent } from "./prompt-CaMyeCpA.js";
|
|
4
|
+
import { Dt as touchConversationDetail, E as isPersonInput, G as readUserTimezone, L as resolveActorIdentityId, P as startLocationThread, Q as createCache, S as createSqlStore, St as hasAgentTurnUsage, Tt as conversationDetailTouch, W as linkedSlackUser, a as getConversationStore, at as acquireActiveLock, bt as agentTurnTotalTokens, c as hasAnnotationKey, ct as claimProviderConversation, d as eventFromRow, dt as conversationCostOf, et as getDefaultRedisStateAdapterFor, it as MUTATION_LOCK_TTL_MS, jt as sameDestination, kt as parseDestination, l as treeHasAnnotationKey, m as withConversationEventLock, mt as usdToMicroUsd, nt as getStateValues, o as getDb, ot as fenceLock, pt as microUsdToUsd, q as saveUserTimezone, r as getConversationEventStore, rt as setStateValues, s as getSqlExecutor, st as withLock, tt as getStateAdapter, u as createSqlConversationEventStore, vt as addAgentTurnUsage, yt as agentTurnCostUsd } from "./db-CFZggNoy.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-BPkZDx5-.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-D5gkyvnK.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-BBkWFCl8.js";
|
|
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-DWxZ3kja.js";
|
|
9
|
+
import { C as completeObject$1, G as readParentAgentTask, H as THREAD_CONTEXT_TAGS, O as rerankTexts, P as estimateTextTokens, S as completeDecision, T as embedTexts$1, U as authorAttrs, V as unwrapCurrentInstruction, W as isRuntimeInputText, at as bufferBody, b as GEN_AI_PROVIDER_NAME, i as getChatConfig, k as resolveGatewayModel, n as botConfig, o as getSlackBotToken, q as renderThreadContext, st as toOptionalTrimmed, y as normalizeSlackEmojiName, z as hasCurrentInstruction } from "./config-Dkt2Le2b.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-BsBdxDXQ.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-AHldghAD.js";
|
|
13
13
|
import { t as mapBounded } from "./fan-out-Cod-yEHG.js";
|
|
14
|
-
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-
|
|
15
|
-
import { d as readJuniorSecret, m as readWebPushPrivateKey, r as pluginTaskId } from "./task-queue-
|
|
16
|
-
import { t as canExposeConversationPayload } from "./conversation-privacy-
|
|
17
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
14
|
+
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-M9KZ5JxF.js";
|
|
15
|
+
import { d as readJuniorSecret, m as readWebPushPrivateKey, r as pluginTaskId } from "./task-queue-CaZffYaH.js";
|
|
16
|
+
import { t as canExposeConversationPayload } from "./conversation-privacy-C39g8BY4.js";
|
|
17
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-BxwzbLKY.js";
|
|
18
18
|
import { n as redactSandboxEgressProxyPath, t as SANDBOX_EGRESS_PROXY_PATH } from "./proxy-path-BHYoKZdq.js";
|
|
19
|
-
import { n as readEncryptedState, r as findLegacyWebActorUserId, t as createEncryptedState } from "./state-
|
|
19
|
+
import { n as readEncryptedState, r as findLegacyWebActorUserId, t as createEncryptedState } from "./state-CGrGVeQC.js";
|
|
20
20
|
import * as z from "zod";
|
|
21
21
|
import pLimit from "p-limit";
|
|
22
22
|
import path from "node:path";
|
|
@@ -18666,6 +18666,23 @@ async function recordMcpProviderConnected(args) {
|
|
|
18666
18666
|
isSameFact: (data) => data.type === "mcp_provider_connected" && data.provider === args.provider && data.credentialSubjectId === args.credentialSubjectId
|
|
18667
18667
|
});
|
|
18668
18668
|
}
|
|
18669
|
+
/** Record once that `loadSkill` loaded a manual-only skill in this Conversation. */
|
|
18670
|
+
async function recordSkillLoaded(args) {
|
|
18671
|
+
await appendHostFactOnce({
|
|
18672
|
+
conversationId: args.conversationId,
|
|
18673
|
+
idempotencyKey: `skill_loaded:${args.skillName}`,
|
|
18674
|
+
data: {
|
|
18675
|
+
type: "skill_loaded",
|
|
18676
|
+
skillName: args.skillName
|
|
18677
|
+
},
|
|
18678
|
+
isSameFact: (data) => data.type === "skill_loaded" && data.skillName === args.skillName
|
|
18679
|
+
});
|
|
18680
|
+
}
|
|
18681
|
+
/** Load the manual-only skills that `loadSkill` loaded in this Conversation. */
|
|
18682
|
+
async function loadConversationSkillNames(conversationId) {
|
|
18683
|
+
const events = await getConversationEventStore().loadEventsOfType(conversationId, "skill_loaded");
|
|
18684
|
+
return [...new Set(events.flatMap((event) => event.data.type === "skill_loaded" ? [event.data.skillName] : []))];
|
|
18685
|
+
}
|
|
18669
18686
|
/** Record that an OAuth/MCP authorization link was delivered or reused. */
|
|
18670
18687
|
async function recordAuthorizationRequested(args) {
|
|
18671
18688
|
await appendHostFactOnce({
|
|
@@ -18843,4 +18860,4 @@ async function recordGuardianActionReviewed(args) {
|
|
|
18843
18860
|
createdAtMs: Date.now()
|
|
18844
18861
|
}]);
|
|
18845
18862
|
}
|
|
18846
|
-
export { pauseLostWorkerTurn as $, conversationViewerMarks as $a, readAutomationExecutionStatusHours as $c, isVercelSandboxEgressRequest as $i, getTerminalAssistantMessages as $n, isTerminalDispatchStatus as $o, reviewItemReaderForUser as $r, saveScheduledAutomationInLock as $s, buildTurnErrorResponse as $t, normalizeConversationText as A, createPluginModel as Aa, eventNamespaceSchema as Ac, verifyScheduledAutomationCredentialSubject as Ai, getPluginSystemPromptContributions as An, backfillConversationEmbeddings as Ao, countOpenReviewItemsForUser as Ar, runWithSlackInstallationToken as As, hasRunnableConversationWork as At, PluginCredentialFailureError as B, buildCommandScript as Ba, automationVersionOf as Bc, listWorkspacesByRepository as Bi, registration_exports as Bn, lookupSlackUser as Bo, takeReviewItem as Br, normalizeSlackReplyMarkdown as Bs, releaseInboundMessage as Bt, settleConversationTitleWork as C, resolveSandboxCommandEnvironment as Ca, admitEventAutomationRun as Cc, listWatches as Ci, agent_hooks_exports as Cn, requestAttachmentDeletion as Co, saveNotificationSchedule as Cr, getFilePermalink as Cs, deferConversationMove as Ct, isHumanConversationMessage as D, workspaceRepoCheckoutPath as Da, describeRegisteredEventTrigger as Dc, bindScheduledAutomationCredentialSubject as Di, getPluginApiRoutes as Dn, AttachmentSourceUnavailableError as Do, createPluginReviewItems as Dr, isDmChannel as Ds, getConversationWorkState as Dt, getConversationMessageSlackTs as E, tryWorkspaceRepoCheckoutPath as Ea, automationEventCatalog as Ec, bindEventAutomationCredentialSubject as Ei, createPluginHookRunner as En, storeDeferredAttachment as Eo, projectConversationMessages as Er, isConversationScopedChannel as Es, getConversation as Et, calculateContextCompactionTargetTokens as F, SANDBOX_SKILLS_ROOT as Fa, registeredEventTypeSchema as Fc, createWorkspace as Fi, setPlugins as Fn, listConversationAnnotations as Fo, insertReviewItem as Fr, runWithWorkspaceTeamId as Fs, moveIdleConversationDestination as Ft, AuthorizationPauseError as G, canAccessConversation as Ga, automationRevision as Gc, setWorkspaceSnapshot as Gi, seqIn as Gn, confirmDispatchMailboxAppend as Go, canReadReviewItem as Gr, truncateStatusText as Gs, stopConversationWork as Gt, authorizationId as H, runNonInteractiveCommand as Ha, readAutomationVersion as Hc, WorkspaceValidationError as Hi, setEventEmbeddingsConfig as Hn, readConversationAutomationRun as Ho, PLUGIN_REVIEW_ITEM_KEY_PREFIX as Hr, slackMention as Hs, requestConversationWork as Ht, getAgentBackgroundCompactionMarkTokens as I, SANDBOX_WORKSPACE_ROOT as Ia, registeredResourceTypeSchema as Ic, deleteWorkspace as Ii, validatePlugins as In, listConversationAnnotationsById as Io, listReplyActionItems as Ir, SLACK_USER_MENTION_RE as Is, pruneActiveConversation as It, clearPendingAuth as J, readConversationAccessFromSql as Ja, isToolInputError as Jc, hash as Ji, eventExcerpt as Jn, getDispatchIdForConversation as Jo, itemNeedsUser as Jr, deleteScheduledAutomation as Js, GATED_TURN_LIMIT_WRAP_UP_MESSAGE as Jt, abandonReplacedPendingAuth as K, canAddConversationMessages as Ka, requireAutomationRevision as Kc, setWorkspaceSnapshotBuild as Ki, SEARCHABLE_EVENT_TYPES as Kn, createOrGetDispatch as Ko, canUserReadReviewItem as Kr, blockScheduledAutomation as Ks, takeDeferredConversationMove as Kt, getAgentContextCompactionTriggerTokens as L, sandboxSkillDir as La, requireEventIdentifier as Lc, getWorkspace as Li, coreTaskRegistrations as Ln, defaultTimezone as Lo, listWaitingConversations as Lr, escapeSlackMrkdwnText as Ls, recordAttemptFailure as Lt, trimConversationMessages as M, SANDBOX_DATA_ROOT as Ma, hasEventCatalogEntries as Mc, verifyTimerWatchCredentialSubject as Mi, getPluginUserPromptContributions as Mn, embedConversationQuery as Mo, dismissOpenReviewItems as Mr, withSlackRetries as Ms, isInvalidConversationRecordError as Mt, turnHasReply as N, SANDBOX_REPOS_ROOT as Na, registeredEventMatchSchema as Nc, createPluginState as Ni, getPlugins as Nn, saveObjectAnnotations as No, getOpenReviewItemByDedupeKey as Nr, sleep$2 as Ns, listActiveConversationIds as Nt, latestConversationMessageSeq as O, PluginToolDeniedError as Oa, eventCatalogEntry as Oc, bindSlackDirectCredentialSubject as Oi, getPluginRoutes as On, resolveRootVisibility as Oo, REVIEW_ITEM_REPLIED_REASON as Or, isSlackRequestTimeout as Os, getConversationWorkStates as Ot, upsertConversationMessage as P, SANDBOX_SCRATCH_ROOT as Pa, registeredEventTriggerProblems as Pc, renderToolResultNudge as Pi, getStaticPluginToolDefinitions as Pn, createPluginAnnotations as Po, getReviewItem as Pr, getWorkspaceTeamId as Ps, markConversationWorkEnqueued as Pt, lostWorkerBeforeFirstSave as Q, conversationPinnedForUser as Qa, readAutomationExecutionStatusDays as Qc, isRetryableSandboxFailure as Qi, getPiMessageRole as Qn, getPluginDispatchProjection as Qo, reviewItemNeedsSomeone as Qr, saveScheduledAutomation as Qs, TurnToolCallLimitExceededError as Qt, getAgentContextInputLimitTokens as R, sandboxSkillFile as Ra, requireValidEventTrigger as Rc, getWorkspaceByName as Ri, isBriefsEnabled as Rn, findActorTimezone as Ro, reviewItemsNeedingUserVersionQuery as Rr, formatSlackLink as Rs, recordConversationRetry as Rt, resolveConversationTitle as S, buildSandboxEgressNetworkPolicy as Sa, setEventAutomationStatus as Sc, isQuietEvent as Si, resolvePluginOAuthAccount as Sn, recordUploadedAttachment as So, readNotificationSchedule as Sr, downloadPrivateSlackFile as Ss, deadLetterAttempt as St, estimateConversationMessagesTokens as T, SANDBOX_RUNTIME as Ta, CORE_EVENT_NAMESPACE as Tc, turnEvents as Ti, createPluginEventPublisher as Tn, storeAttachments as To, isPausedBySlack as Tr, getSlackClient as Ts, dropPendingMessages as Tt, AuthPausePersistenceError as U, createPluginModelCostRecorder as Ua, sameDefinitionValue as Uc, invalidateReadySnapshot as Ui, lexemesSql as Un, buildDispatchId as Uo, canActOnReviewItem as Ur, slackMentionedUserIds as Us, startConversationWork as Ut, createPluginAuthOrchestration as V, buildNonInteractiveShellScript as Va, listAutomationVersions as Vc, updateWorkspace as Vi, setBriefsConfig as Vn, lookupSlackUserNames as Vo, updateReviewItemContent as Vr, normalizeSlackStatusText as Vs, requestAnotherSlice as Vt, AuthorizationFlowDisabledError as W, createPluginLogger as Wa, AutomationConflictError as Wc, loadSnapshotsForProfile as Wi, searchedEventTextSql as Wn, claimDispatchMailboxAppend as Wo, canAgentChangeReviewItem as Wr, wrapBareSlackUserIds as Ws, steerWebPendingMessages as Wt, continuableMessages as X, conversationIsMemberRoot as Xa, existingConversationId as Xc, ensureDockerDaemon as Xi, storedMessageJson as Xn, getDispatchRecord as Xo, requireReviewItemAssignees as Xr, parseScheduledAutomationRow as Xs, TurnBudgetExceededError as Xt, getConversationPendingAuth as Y, conversationHasParticipantUser as Ya, emptyAutomationRunWindows as Yc, isStale as Yi, excerptTerms as Yn, getDispatchInputMessageId as Yo, readReviewItemAgentScope as Yr, listScheduledAutomationsForTeam as Ys, TURN_LIMIT_WRAP_UP_MESSAGE as Yt, loadTurnCheckpoint as Z, conversationIsNotUnsubscribedRoot as Za, readAutomationExecutionByConversationId as Zc, getSandboxProvider as Zi, extractAssistantText as Zn, getDispatchTurnId as Zo, requireReviewItemLinks as Zr, readScheduledAutomation as Zs, TurnSliceLimitExceededError as Zt, appendConversationMessages as _, consumeSandboxEgressAuthRequiredSignal as _a, findMatchingEventAutomations as _c, createTimerWatch as _i, projectConversationEvents$1 as _l, readBlockedReport as _n, recordSlackAttachment as _o, readWebPushConfig as _r, uploadFilesToConversation as _s, clearConsumedConversationWake as _t, loadProjection as a, startOAuthFlow as aa, getDashboardPersonLink as ac, resolveAssignee as ai, recordAutomationExecution as al, remindMissingAnswer as an, readConversationEventPageAfter as ao, isContinuablePiBoundary as ar, markDispatchRunning as as, getTurnRecord as at, persistConversationMessages as b, parseSandboxEgressCredentialToken as ba, parseEventAutomationRow as bc, findMatchingWatches as bi, createUserTokenStore as bn, isFileAttachment as bo, deletePushSubscription as br, slackExternalRefIdSchema as bs, completeConversationWork as bt, recordAgentsInstructionsUpdated as c, isAbortError as ca, getDashboardTaskLink as cc, resolveChannelCapabilities as ci, resolveTaskTitle as cl, getAssistantReplyText as cn, readConversationMessageEventSeq as co, isToolResultMessage as cr, deleteSlackMessage as cs, CONVERSATION_WORK_CHECK_IN_INTERVAL_MS as ct, recordAuthorizationCompleted as d, wrapSandboxSetupError as da, parseDashboardPersonLink as dc, RESOURCE_SUBSCRIPTION_MAX_TTL_MS as di, credentialAuditSource as dl, findLegacyNoReplyMarker as dn, loadForkHistory as do, stripRuntimeTurnContext as dr, openSlackModal as ds, appendExclusiveInboundMessage as dt, proxyVercelSandboxEgressRequest as ea, scheduledRunId as ec, reviewItemReaderForUserInConversation as ei, readAutomationExecutionSummaries as el, createTurnLimitGate as en, viewerMarksFromParticipant as eo, getUserMessageInstructionText as er, listPendingDispatchMailboxAppends as es, saveTurnCheckpoint as et, recordAuthorizationRequested as f, WorkspaceSnapshotNotReadyError as fa, setDashboardConversationLinkOptions as fc, RESOURCE_WATCH_TOOL_SOURCE as fi, createPluginCache as fl, isLegacyNoReplyMarker as fn, notInheritedByForkChild as fo, trimTrailingAssistantMessages as fr, postSlackEphemeralMessage as fs, appendInboundMessage as ft, recordToolExecutionStarted as g, clearSandboxEgressSignals as ga, deleteEventAutomation as gc, collectEventMatchKeys as gi, piMessageFromHistoryItem as gl, REPORT_BLOCKED_TOOL_NAME as gn, readSlackAttachmentSource as go, TURN_CONTEXT_TAG as gr, updateSlackMessage as gs, claimInboundMessage as gt, recordSubscribedReplyRoute as h, workspaceSnapshotNotReadyUserMessage as ha, createEventAutomation as hc, cancelWatch as hi, historyItemFromPiMessage as hl, CODE_MODE_CALL_STATUS_TEXT as hn, readAttachmentVisionSummary as ho, SESSION_CONTEXT_SECTION_TAG as hr, unfurlSlackLinks as hs, checkInConversationWork as ht, loadConversationProjection as i, resolveBaseUrl as ia, getDashboardObjectIconLink as ic, automationCreatorUserId as ii, readAutomationTitlesByConversationId as il, readTurnAnswer as in, readConversationEventPage as io, isAssistantMessage as ir, markDispatchFailed as is, getStoredTurnFields as it, recordDeliveredAssistantMessage as j, SANDBOX_COMMAND_PATH as ja, eventWatchUnavailable as jc, verifySlackDirectCredentialSubject as ji, getPluginTools as jn, createConversationEmbedder as jo, countReviewItemsNeedingUserBySubject as jr, streamPrivateSlackFile as js, isFinalAttempt as jt, markConversationMessage as k, createPluginEmbedder as ka, eventGuidance as kc, verifyEventAutomationCredentialSubject as ki, getPluginSlackConversationLink as kn, searchConversations as ko, closeReviewItem as kr, normalizeSlackConversationId as ks, hasConversationStop as kt, recordAttachmentsDelivered as l, isAlreadyExistsError as la, isDashboardLink as lc, getSlackToolContext as li, JUNIOR_THREAD_STATE_TTL_MS as ll, sanitizeAssistantText as ln, buildSentryConversationUrl as lo, normalizeToolNameFromResult as lr, getSlackMessagePermalink as ls, CONVERSATION_WORK_STALE_ENQUEUE_MS as lt, recordMcpProviderConnected as m, isWorkspaceSnapshotNotReadyError as ma, collectEventAutomationMatchKeys as mc, cancelSubscriptions as mi, configValueSchema as ml, CODEMODE_TOOL_NAME as mn, matchSlackAttachments as mo, REQUEST_CONTEXT_SECTION_TAG as mr, removeReactionFromMessage as ms, cancelHumanFacingPendingMessages as mt, commitMessages as n, formatProviderLabel as na, getDashboardConversationLink as nc, EVERYONE_ASSIGNEE as ni, readAutomationRowStats as nl, REPLY_TOOL_NAME as nn, readConversationBriefThrough as no, hasTurnInput as nr, markDispatchBlocked as ns, completeTurnRecord as nt, loadTurnProjection as o, SandboxCallTimeoutError as oa, getDashboardReviewItemLink as oc, resolveAssignees as oi, refreshAutomationLastRun as ol, replyTextSchema as on, readConversationEventPageAround as oo, isStandaloneRuntimeContextMessage as or, notifyAutomationBlocked as os, listTurnSummaries as ot, recordGuardianActionReviewed as p, getWorkspaceSnapshotNotReadyError as pa, blockEventAutomation as pc, STOP_WATCHING_TOOL_NAME as pi, createDurableLocationConfigurationService as pl, readNoReply as pn, getSlackFileId as po, CAPABILITY_SECTION_TAG as pr, postSlackMessage as ps, beginConversationResume as pt, canReusePendingAuthLink as q, createConversationAccessReader as qa, ToolInputError as qc, create as qi, callsToolSql as qn, getDispatchConversationId as qo, isOnlyAssignee as qr, createScheduledAutomation as qs, readInboundMessageSender as qt, loadConnectedMcpProviders as r, parseOAuthStatePayload as ra, getDashboardLinkFilter as rc, activeParticipantUserIds as ri, readAutomationRuns as rl, isAnswerToolName as rn, readLatestConversationBrief as ro, instructionTextForProjection as rr, markDispatchCompleted as rs, failTurnRecord as rt, openConversationProjection as s, findInErrorChain as sa, getDashboardSettingsLink as sc, createCodeChangePublisher as si, fallbackShortTitle as sl, decideReply as sn, readConversationLastEventSeq as so, isToolResultError as sr, addReactionToMessage as ss, recordTurnSummary as st, commitAcceptedReply as t, deliverOAuthAuthorization as ta, withScheduledAutomationLock as tc, reviewItemVisibleTo as ti, readAutomationExecutions as tl, isTurnExecutionLimitExceededError as tn, createPluginConversationEvents as to, hasRuntimeTurnContext as tr, markDispatchAwaitingResume as ts, abandonTurnRecord as tt, recordAuthenticationLinked as u, throwSandboxOperationError as ua, parseDashboardConversationLink as uc, RESOURCE_SUBSCRIPTION_DEFAULT_TTL_MS as ui, credentialAuditAttributes as ul, NO_REPLY_TOOL_NAME as un, FORK_INSTRUCTIONS as uo, retainRuntimeTurnContext as ur, openSlackDirectMessage as us, ackMessages as ut, hydrateConversationMessages as v, consumeSandboxEgressPermissionDeniedSignal as va, getEventAutomation as vc, createWatch as vi, getConfigDefaults as vl, persistWithRetry as vn, slackAttachmentsVersionQuery as vo, sendPushNotificationToUser as vr, fitsSlackMetadataLimit as vs, clearExpiredConversationLease as vt, buildConversationContext as w, normalizeSandboxEgressTracePropagationDomains as wa, eventAutomationRunLimitReason as wc, takeDueTimerWatches as wi, applyPluginFormatMarkdown as wn, storeAttachment as wo, savePushSubscription as wr, getHeaderString as ws, drainConversationMailbox as wt, toStoredConversationMessage as x, sandboxEgressSignalsResponseSchema as xa, saveEventAutomation as xc, getWatch as xi, getOAuthAccountProviders as xn, readLiveAttachment as xo, listPushSubscriptions as xr, SlackActionError as xs, countPendingConversationMessages as xt, persistConversationMessageWindow as y, createSandboxEgressCredentialToken as ya, listDeletedEventAutomationsCreatedBy as yc, deliverWatch as yi, setConfigDefaults as yl, SANDBOX_EGRESS_AUTH_REQUIRED_MARKER as yn, collectAttachmentGarbage as yo, resolveNotificationTimezone as yr, slackEntitySchema as ys, completeConversationStop as yt, createPluginEgress as z, sandboxSkillPathResolution as za, automationDefinition as zc, listWorkspaces as zi, isEventEmbeddingsEnabled as zn, resolveUserTimezone as zo, searchReviewItems as zr, isTableRow as zs, releaseConversationWork as zt };
|
|
18863
|
+
export { loadTurnCheckpoint as $, conversationIsNotUnsubscribedRoot as $a, readAutomationExecutionByConversationId as $c, getSandboxProvider as $i, extractAssistantText as $n, getDispatchTurnId as $o, requireReviewItemLinks as $r, readScheduledAutomation as $s, TurnSliceLimitExceededError as $t, latestConversationMessageSeq as A, PluginToolDeniedError as Aa, eventCatalogEntry as Ac, bindSlackDirectCredentialSubject as Ai, getPluginRoutes as An, resolveRootVisibility as Ao, REVIEW_ITEM_REPLIED_REASON as Ar, isSlackRequestTimeout as As, getConversationWorkStates as At, getAgentContextInputLimitTokens as B, sandboxSkillFile as Ba, requireValidEventTrigger as Bc, getWorkspaceByName as Bi, isBriefsEnabled as Bn, findActorTimezone as Bo, reviewItemsNeedingUserVersionQuery as Br, formatSlackLink as Bs, recordConversationRetry as Bt, toStoredConversationMessage as C, sandboxEgressSignalsResponseSchema as Ca, saveEventAutomation as Cc, getWatch as Ci, getOAuthAccountProviders as Cn, readLiveAttachment as Co, listPushSubscriptions as Cr, SlackActionError as Cs, countPendingConversationMessages as Ct, estimateConversationMessagesTokens as D, SANDBOX_RUNTIME as Da, CORE_EVENT_NAMESPACE as Dc, turnEvents as Di, createPluginEventPublisher as Dn, storeAttachments as Do, isPausedBySlack as Dr, getSlackClient as Ds, dropPendingMessages as Dt, buildConversationContext as E, normalizeSandboxEgressTracePropagationDomains as Ea, eventAutomationRunLimitReason as Ec, takeDueTimerWatches as Ei, applyPluginFormatMarkdown as En, storeAttachment as Eo, savePushSubscription as Er, getHeaderString as Es, drainConversationMailbox as Et, turnHasReply as F, SANDBOX_REPOS_ROOT as Fa, registeredEventMatchSchema as Fc, createPluginState as Fi, getPlugins as Fn, saveObjectAnnotations as Fo, getOpenReviewItemByDedupeKey as Fr, sleep$2 as Fs, listActiveConversationIds as Ft, AuthPausePersistenceError as G, createPluginModelCostRecorder as Ga, sameDefinitionValue as Gc, invalidateReadySnapshot as Gi, lexemesSql as Gn, buildDispatchId as Go, canActOnReviewItem as Gr, slackMentionedUserIds as Gs, startConversationWork as Gt, PluginCredentialFailureError as H, buildCommandScript as Ha, automationVersionOf as Hc, listWorkspacesByRepository as Hi, registration_exports as Hn, lookupSlackUser as Ho, takeReviewItem as Hr, normalizeSlackReplyMarkdown as Hs, releaseInboundMessage as Ht, upsertConversationMessage as I, SANDBOX_SCRATCH_ROOT as Ia, registeredEventTriggerProblems as Ic, renderToolResultNudge as Ii, getStaticPluginToolDefinitions as In, createPluginAnnotations as Io, getReviewItem as Ir, getWorkspaceTeamId as Is, markConversationWorkEnqueued as It, abandonReplacedPendingAuth as J, canAddConversationMessages as Ja, requireAutomationRevision as Jc, setWorkspaceSnapshotBuild as Ji, SEARCHABLE_EVENT_TYPES as Jn, createOrGetDispatch as Jo, canUserReadReviewItem as Jr, blockScheduledAutomation as Js, takeDeferredConversationMove as Jt, AuthorizationFlowDisabledError as K, createPluginLogger as Ka, AutomationConflictError as Kc, loadSnapshotsForProfile as Ki, searchedEventTextSql as Kn, claimDispatchMailboxAppend as Ko, canAgentChangeReviewItem as Kr, wrapBareSlackUserIds as Ks, steerWebPendingMessages as Kt, calculateContextCompactionTargetTokens as L, SANDBOX_SKILLS_ROOT as La, registeredEventTypeSchema as Lc, createWorkspace as Li, setPlugins as Ln, listConversationAnnotations as Lo, insertReviewItem as Lr, runWithWorkspaceTeamId as Ls, moveIdleConversationDestination as Lt, normalizeConversationText as M, createPluginModel as Ma, eventNamespaceSchema as Mc, verifyScheduledAutomationCredentialSubject as Mi, getPluginSystemPromptContributions as Mn, backfillConversationEmbeddings as Mo, countOpenReviewItemsForUser as Mr, runWithSlackInstallationToken as Ms, hasRunnableConversationWork as Mt, recordDeliveredAssistantMessage as N, SANDBOX_COMMAND_PATH as Na, eventWatchUnavailable as Nc, verifySlackDirectCredentialSubject as Ni, getPluginTools as Nn, createConversationEmbedder as No, countReviewItemsNeedingUserBySubject as Nr, streamPrivateSlackFile as Ns, isFinalAttempt as Nt, getConversationMessageSlackTs as O, tryWorkspaceRepoCheckoutPath as Oa, automationEventCatalog as Oc, bindEventAutomationCredentialSubject as Oi, createPluginHookRunner as On, storeDeferredAttachment as Oo, projectConversationMessages as Or, isConversationScopedChannel as Os, getConversation as Ot, trimConversationMessages as P, SANDBOX_DATA_ROOT as Pa, hasEventCatalogEntries as Pc, verifyTimerWatchCredentialSubject as Pi, getPluginUserPromptContributions as Pn, embedConversationQuery as Po, dismissOpenReviewItems as Pr, withSlackRetries as Ps, isInvalidConversationRecordError as Pt, continuableMessages as Q, conversationIsMemberRoot as Qa, existingConversationId as Qc, ensureDockerDaemon as Qi, storedMessageJson as Qn, getDispatchRecord as Qo, requireReviewItemAssignees as Qr, parseScheduledAutomationRow as Qs, TurnBudgetExceededError as Qt, getAgentBackgroundCompactionMarkTokens as R, SANDBOX_WORKSPACE_ROOT as Ra, registeredResourceTypeSchema as Rc, deleteWorkspace as Ri, validatePlugins as Rn, listConversationAnnotationsById as Ro, listReplyActionItems as Rr, SLACK_USER_MENTION_RE as Rs, pruneActiveConversation as Rt, persistConversationMessages as S, parseSandboxEgressCredentialToken as Sa, parseEventAutomationRow as Sc, findMatchingWatches as Si, createUserTokenStore as Sn, isFileAttachment as So, deletePushSubscription as Sr, slackExternalRefIdSchema as Ss, completeConversationWork as St, settleConversationTitleWork as T, resolveSandboxCommandEnvironment as Ta, admitEventAutomationRun as Tc, listWatches as Ti, agent_hooks_exports as Tn, requestAttachmentDeletion as To, saveNotificationSchedule as Tr, getFilePermalink as Ts, deferConversationMove as Tt, createPluginAuthOrchestration as U, buildNonInteractiveShellScript as Ua, listAutomationVersions as Uc, updateWorkspace as Ui, setBriefsConfig as Un, lookupSlackUserNames as Uo, updateReviewItemContent as Ur, normalizeSlackStatusText as Us, requestAnotherSlice as Ut, createPluginEgress as V, sandboxSkillPathResolution as Va, automationDefinition as Vc, listWorkspaces as Vi, isEventEmbeddingsEnabled as Vn, resolveUserTimezone as Vo, searchReviewItems as Vr, isTableRow as Vs, releaseConversationWork as Vt, authorizationId as W, runNonInteractiveCommand as Wa, readAutomationVersion as Wc, WorkspaceValidationError as Wi, setEventEmbeddingsConfig as Wn, readConversationAutomationRun as Wo, PLUGIN_REVIEW_ITEM_KEY_PREFIX as Wr, slackMention as Ws, requestConversationWork as Wt, clearPendingAuth as X, readConversationAccessFromSql as Xa, isToolInputError as Xc, hash as Xi, eventExcerpt as Xn, getDispatchIdForConversation as Xo, itemNeedsUser as Xr, deleteScheduledAutomation as Xs, GATED_TURN_LIMIT_WRAP_UP_MESSAGE as Xt, canReusePendingAuthLink as Y, createConversationAccessReader as Ya, ToolInputError as Yc, create as Yi, callsToolSql as Yn, getDispatchConversationId as Yo, isOnlyAssignee as Yr, createScheduledAutomation as Ys, readInboundMessageSender as Yt, getConversationPendingAuth as Z, conversationHasParticipantUser as Za, emptyAutomationRunWindows as Zc, isStale as Zi, excerptTerms as Zn, getDispatchInputMessageId as Zo, readReviewItemAgentScope as Zr, listScheduledAutomationsForTeam as Zs, TURN_LIMIT_WRAP_UP_MESSAGE as Zt, recordSubscribedReplyRoute as _, workspaceSnapshotNotReadyUserMessage as _a, createEventAutomation as _c, cancelWatch as _i, historyItemFromPiMessage as _l, CODE_MODE_CALL_STATUS_TEXT as _n, readAttachmentVisionSummary as _o, SESSION_CONTEXT_SECTION_TAG as _r, unfurlSlackLinks as _s, checkInConversationWork as _t, loadConversationSkillNames as a, parseOAuthStatePayload as aa, getDashboardLinkFilter as ac, activeParticipantUserIds as ai, readAutomationRuns as al, isAnswerToolName as an, readLatestConversationBrief as ao, instructionTextForProjection as ar, markDispatchCompleted as as, failTurnRecord as at, hydrateConversationMessages as b, consumeSandboxEgressPermissionDeniedSignal as ba, getEventAutomation as bc, createWatch as bi, getConfigDefaults as bl, persistWithRetry as bn, slackAttachmentsVersionQuery as bo, sendPushNotificationToUser as br, fitsSlackMetadataLimit as bs, clearExpiredConversationLease as bt, openConversationProjection as c, SandboxCallTimeoutError as ca, getDashboardReviewItemLink as cc, resolveAssignees as ci, refreshAutomationLastRun as cl, replyTextSchema as cn, readConversationEventPageAround as co, isStandaloneRuntimeContextMessage as cr, notifyAutomationBlocked as cs, listTurnSummaries as ct, recordAuthenticationLinked as d, isAlreadyExistsError as da, isDashboardLink as dc, getSlackToolContext as di, JUNIOR_THREAD_STATE_TTL_MS as dl, sanitizeAssistantText as dn, buildSentryConversationUrl as do, normalizeToolNameFromResult as dr, getSlackMessagePermalink as ds, CONVERSATION_WORK_STALE_ENQUEUE_MS as dt, isRetryableSandboxFailure as ea, saveScheduledAutomation as ec, reviewItemNeedsSomeone as ei, readAutomationExecutionStatusDays as el, TurnToolCallLimitExceededError as en, conversationPinnedForUser as eo, getPiMessageRole as er, getPluginDispatchProjection as es, lostWorkerBeforeFirstSave as et, recordAuthorizationCompleted as f, throwSandboxOperationError as fa, parseDashboardConversationLink as fc, RESOURCE_SUBSCRIPTION_DEFAULT_TTL_MS as fi, credentialAuditAttributes as fl, NO_REPLY_TOOL_NAME as fn, FORK_INSTRUCTIONS as fo, retainRuntimeTurnContext as fr, openSlackDirectMessage as fs, ackMessages as ft, recordSkillLoaded as g, isWorkspaceSnapshotNotReadyError as ga, collectEventAutomationMatchKeys as gc, cancelSubscriptions as gi, configValueSchema as gl, CODEMODE_TOOL_NAME as gn, matchSlackAttachments as go, REQUEST_CONTEXT_SECTION_TAG as gr, removeReactionFromMessage as gs, cancelHumanFacingPendingMessages as gt, recordMcpProviderConnected as h, getWorkspaceSnapshotNotReadyError as ha, blockEventAutomation as hc, STOP_WATCHING_TOOL_NAME as hi, createDurableLocationConfigurationService as hl, readNoReply as hn, getSlackFileId as ho, CAPABILITY_SECTION_TAG as hr, postSlackMessage as hs, beginConversationResume as ht, loadConversationProjection as i, formatProviderLabel as ia, getDashboardConversationLink as ic, EVERYONE_ASSIGNEE as ii, readAutomationRowStats as il, REPLY_TOOL_NAME as in, readConversationBriefThrough as io, hasTurnInput as ir, markDispatchBlocked as is, completeTurnRecord as it, markConversationMessage as j, createPluginEmbedder as ja, eventGuidance as jc, verifyEventAutomationCredentialSubject as ji, getPluginSlackConversationLink as jn, searchConversations as jo, closeReviewItem as jr, normalizeSlackConversationId as js, hasConversationStop as jt, isHumanConversationMessage as k, workspaceRepoCheckoutPath as ka, describeRegisteredEventTrigger as kc, bindScheduledAutomationCredentialSubject as ki, getPluginApiRoutes as kn, AttachmentSourceUnavailableError as ko, createPluginReviewItems as kr, isDmChannel as ks, getConversationWorkState as kt, recordAgentsInstructionsUpdated as l, findInErrorChain as la, getDashboardSettingsLink as lc, createCodeChangePublisher as li, fallbackShortTitle as ll, decideReply as ln, readConversationLastEventSeq as lo, isToolResultError as lr, addReactionToMessage as ls, recordTurnSummary as lt, recordGuardianActionReviewed as m, WorkspaceSnapshotNotReadyError as ma, setDashboardConversationLinkOptions as mc, RESOURCE_WATCH_TOOL_SOURCE as mi, createPluginCache as ml, isLegacyNoReplyMarker as mn, notInheritedByForkChild as mo, trimTrailingAssistantMessages as mr, postSlackEphemeralMessage as ms, appendInboundMessage as mt, commitMessages as n, proxyVercelSandboxEgressRequest as na, scheduledRunId as nc, reviewItemReaderForUserInConversation as ni, readAutomationExecutionSummaries as nl, createTurnLimitGate as nn, viewerMarksFromParticipant as no, getUserMessageInstructionText as nr, listPendingDispatchMailboxAppends as ns, saveTurnCheckpoint as nt, loadProjection as o, resolveBaseUrl as oa, getDashboardObjectIconLink as oc, automationCreatorUserId as oi, readAutomationTitlesByConversationId as ol, readTurnAnswer as on, readConversationEventPage as oo, isAssistantMessage as or, markDispatchFailed as os, getStoredTurnFields as ot, recordAuthorizationRequested as p, wrapSandboxSetupError as pa, parseDashboardPersonLink as pc, RESOURCE_SUBSCRIPTION_MAX_TTL_MS as pi, credentialAuditSource as pl, findLegacyNoReplyMarker as pn, loadForkHistory as po, stripRuntimeTurnContext as pr, openSlackModal as ps, appendExclusiveInboundMessage as pt, AuthorizationPauseError as q, canAccessConversation as qa, automationRevision as qc, setWorkspaceSnapshot as qi, seqIn as qn, confirmDispatchMailboxAppend as qo, canReadReviewItem as qr, truncateStatusText as qs, stopConversationWork as qt, loadConnectedMcpProviders as r, deliverOAuthAuthorization as ra, withScheduledAutomationLock as rc, reviewItemVisibleTo as ri, readAutomationExecutions as rl, isTurnExecutionLimitExceededError as rn, createPluginConversationEvents as ro, hasRuntimeTurnContext as rr, markDispatchAwaitingResume as rs, abandonTurnRecord as rt, loadTurnProjection as s, startOAuthFlow as sa, getDashboardPersonLink as sc, resolveAssignee as si, recordAutomationExecution as sl, remindMissingAnswer as sn, readConversationEventPageAfter as so, isContinuablePiBoundary as sr, markDispatchRunning as ss, getTurnRecord as st, commitAcceptedReply as t, isVercelSandboxEgressRequest as ta, saveScheduledAutomationInLock as tc, reviewItemReaderForUser as ti, readAutomationExecutionStatusHours as tl, buildTurnErrorResponse as tn, conversationViewerMarks as to, getTerminalAssistantMessages as tr, isTerminalDispatchStatus as ts, pauseLostWorkerTurn as tt, recordAttachmentsDelivered as u, isAbortError as ua, getDashboardTaskLink as uc, resolveChannelCapabilities as ui, resolveTaskTitle as ul, getAssistantReplyText as un, readConversationMessageEventSeq as uo, isToolResultMessage as ur, deleteSlackMessage as us, CONVERSATION_WORK_CHECK_IN_INTERVAL_MS as ut, recordToolExecutionStarted as v, clearSandboxEgressSignals as va, deleteEventAutomation as vc, collectEventMatchKeys as vi, piMessageFromHistoryItem as vl, REPORT_BLOCKED_TOOL_NAME as vn, readSlackAttachmentSource as vo, TURN_CONTEXT_TAG as vr, updateSlackMessage as vs, claimInboundMessage as vt, resolveConversationTitle as w, buildSandboxEgressNetworkPolicy as wa, setEventAutomationStatus as wc, isQuietEvent as wi, resolvePluginOAuthAccount as wn, recordUploadedAttachment as wo, readNotificationSchedule as wr, downloadPrivateSlackFile as ws, deadLetterAttempt as wt, persistConversationMessageWindow as x, createSandboxEgressCredentialToken as xa, listDeletedEventAutomationsCreatedBy as xc, deliverWatch as xi, setConfigDefaults as xl, SANDBOX_EGRESS_AUTH_REQUIRED_MARKER as xn, collectAttachmentGarbage as xo, resolveNotificationTimezone as xr, slackEntitySchema as xs, completeConversationStop as xt, appendConversationMessages as y, consumeSandboxEgressAuthRequiredSignal as ya, findMatchingEventAutomations as yc, createTimerWatch as yi, projectConversationEvents$1 as yl, readBlockedReport as yn, recordSlackAttachment as yo, readWebPushConfig as yr, uploadFilesToConversation as ys, clearConsumedConversationWake as yt, getAgentContextCompactionTriggerTokens as z, sandboxSkillDir as za, requireEventIdentifier as zc, getWorkspace as zi, coreTaskRegistrations as zn, defaultTimezone as zo, listWaitingConversations as zr, escapeSlackMrkdwnText as zs, recordAttemptFailure as zt };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as searchWeb$1, C as completeObject$1, D as generateImages$1, E as gatewayCostUsd, S as completeDecision$1, T as embedTexts$1, Y as ProviderError, Z as createProviderError, b as GEN_AI_PROVIDER_NAME, it as resolveGatewayCredential, nt as isProviderRetryError, 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 { r as getConversationEventStore,
|
|
4
|
-
import { I as conversationBriefSchema, L as parseBriefInput, P as briefOutcomeStatusSchema } from "./conversation-
|
|
1
|
+
import { A as searchWeb$1, C as completeObject$1, D as generateImages$1, E as gatewayCostUsd, S as completeDecision$1, T as embedTexts$1, Y as ProviderError, Z as createProviderError, b as GEN_AI_PROVIDER_NAME, it as resolveGatewayCredential, nt as isProviderRetryError, w as completeText$1, x as GEN_AI_SERVER_ADDRESS } from "./config-Dkt2Le2b.js";
|
|
2
|
+
import { E as withSpan, _ as runBestEffort, a as extractGenAiUsageSummary, i as extractGenAiUsageAttributes, p as logException } from "./logging-D5gkyvnK.js";
|
|
3
|
+
import { r as getConversationEventStore, yt as agentTurnCostUsd } from "./db-CFZggNoy.js";
|
|
4
|
+
import { I as conversationBriefSchema, L as parseBriefInput, P as briefOutcomeStatusSchema } from "./conversation-M9KZ5JxF.js";
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { createGatewayProvider } from "@ai-sdk/gateway";
|
|
7
7
|
import { transcribe } from "ai";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as normalizePluginPackageNames, o as pluginRoots, t as discoverInstalledPluginPackageContent } from "./package-discovery-DD9vencX.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-D5gkyvnK.js";
|
|
3
3
|
import { o as isUserActor, s as parseActorUserId } from "./actor-BsBdxDXQ.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 {
|
|
3
|
-
import {
|
|
1
|
+
import { i as trace, n as postinstall, o as getSandboxResources, t as dependencies } from "./install-C-oE6C_u.js";
|
|
2
|
+
import { $i as getSandboxProvider, Fs as sleep, Yi as create, Zi as isStale } from "./projection-jZSlEAXG.js";
|
|
3
|
+
import { tt as getStateAdapter } from "./db-CFZggNoy.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,13 +1,13 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
|
|
2
2
|
import { t as mapBounded } from "./fan-out-Cod-yEHG.js";
|
|
3
|
-
import {
|
|
4
|
-
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-
|
|
5
|
-
import { a as EVENT_SYSTEM_ACTOR } from "./prompt-
|
|
6
|
-
import { p as credentialContextForActor } from "./registry-
|
|
7
|
-
import { C as ownAgentInvocation, D as getAgentInvocationIdForEvents, I as getTurnReplyKey, M as getAgentInvocationTurnId, N as getAgentReplyMessageId, O as getAgentInvocationIdForMessage, S as listChildMessages, b as hasAgentInvocationReply, j as getAgentInvocationResultMessageId, k as getAgentInvocationIdForResult, y as childMessageSenderMetadata, z as buildDeterministicTurnId } from "./turn-user-message-
|
|
8
|
-
import { _ as getConversationWorkState, r as appendAndEnqueueInboundMessage } from "./store-
|
|
9
|
-
import { $t as getChildAgentInputSender, Bt as TERMINAL_AGENT_INVOCATION_STATUSES, Gt as isTerminalAgentInvocation, Kt as listAgentInvocationsForConversation, Qt as childAgentInput, Rt as listUnreportedSiblingAgents, Wt as getLatestAgentInvocationForConversation, Xt as reportReplacedWithoutOpenWork, Yt as markAgentInvocationParentMailboxAppended, Zt as sendsResultToParent, an as parentMessageText, bn as createAgentInvocationFromLatest, dn as enqueueAgentInvocation, en as readChildConversationSender, fn as resolveAgentInvocationId, in as logDroppedParentMessage, ln as endActiveAgentInvocations, on as readParentMessage, sn as createAgentInvocationWorker, tn as routeChildInput, un as endAgentInvocationsOfStoppedWork, zt as NON_TERMINAL_AGENT_INVOCATION_STATUSES } from "./warmup-
|
|
10
|
-
import { J as renderUntrustedTag } from "./config-
|
|
3
|
+
import { A as turnBehavior, F as SYSTEM_IDENTITY_ID, a as getConversationStore } from "./db-CFZggNoy.js";
|
|
4
|
+
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-BfY4rhJs.js";
|
|
5
|
+
import { a as EVENT_SYSTEM_ACTOR } from "./prompt-CaMyeCpA.js";
|
|
6
|
+
import { p as credentialContextForActor } from "./registry-BBkWFCl8.js";
|
|
7
|
+
import { C as ownAgentInvocation, D as getAgentInvocationIdForEvents, I as getTurnReplyKey, M as getAgentInvocationTurnId, N as getAgentReplyMessageId, O as getAgentInvocationIdForMessage, S as listChildMessages, b as hasAgentInvocationReply, j as getAgentInvocationResultMessageId, k as getAgentInvocationIdForResult, y as childMessageSenderMetadata, z as buildDeterministicTurnId } from "./turn-user-message-9IxeEv5v.js";
|
|
8
|
+
import { _ as getConversationWorkState, r as appendAndEnqueueInboundMessage } from "./store-D4FQ1Nml.js";
|
|
9
|
+
import { $t as getChildAgentInputSender, Bt as TERMINAL_AGENT_INVOCATION_STATUSES, Gt as isTerminalAgentInvocation, Kt as listAgentInvocationsForConversation, Qt as childAgentInput, Rt as listUnreportedSiblingAgents, Wt as getLatestAgentInvocationForConversation, Xt as reportReplacedWithoutOpenWork, Yt as markAgentInvocationParentMailboxAppended, Zt as sendsResultToParent, an as parentMessageText, bn as createAgentInvocationFromLatest, dn as enqueueAgentInvocation, en as readChildConversationSender, fn as resolveAgentInvocationId, in as logDroppedParentMessage, ln as endActiveAgentInvocations, on as readParentMessage, sn as createAgentInvocationWorker, tn as routeChildInput, un as endAgentInvocationsOfStoppedWork, zt as NON_TERMINAL_AGENT_INVOCATION_STATUSES } from "./warmup-C6LOZ2d2.js";
|
|
10
|
+
import { J as renderUntrustedTag } from "./config-Dkt2Le2b.js";
|
|
11
11
|
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";
|
|
12
12
|
import { actorSchema } from "@sentry/junior-plugin-api";
|
|
13
13
|
// src/chat/agent-invocations/result.ts
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { q as messageCardText } from "./conversation-
|
|
2
|
-
import { a as buildDeliveredTurnStatePatch, o as loadPendingMessageCards, r as completeAuthPauseTurn, t as buildTurnThreadContext } from "./thread-context-
|
|
3
|
-
import { A as
|
|
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 {
|
|
1
|
+
import { q as messageCardText } from "./conversation-M9KZ5JxF.js";
|
|
2
|
+
import { a as buildDeliveredTurnStatePatch, o as loadPendingMessageCards, r as completeAuthPauseTurn, t as buildTurnThreadContext } from "./thread-context-Dyj1KWaY.js";
|
|
3
|
+
import { A as latestConversationMessageSeq, I as upsertConversationMessage, M as normalizeConversationText, N as recordDeliveredAssistantMessage, S as persistConversationMessages, W as authorizationId, b as hydrateConversationMessages, bn as persistWithRetry, f as recordAuthorizationCompleted, j as markConversationMessage, nt as saveTurnCheckpoint, o as loadProjection, t as commitAcceptedReply, un as getAssistantReplyText } from "./projection-jZSlEAXG.js";
|
|
4
|
+
import { S as setTags, T as withLogContext, p as logException } from "./logging-D5gkyvnK.js";
|
|
5
|
+
import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-Dm7BHbGp.js";
|
|
6
|
+
import { a as getPersistedThreadState, c as coerceThreadConversationState, i as getPersistedSandboxState, s as persistThreadStateById } from "./turn-session-routing-CD0BRCex.js";
|
|
7
|
+
import { _ as ConversationTurnLifecycleService, g as startActiveTurn, h as markTurnFailed } from "./turn-user-message-9IxeEv5v.js";
|
|
8
|
+
import { L as finalizeFailedTurnReplyWithEvent } from "./agent-runner-D9cvNlQl.js";
|
|
9
|
+
import { p as credentialContextForActor } from "./registry-BBkWFCl8.js";
|
|
10
|
+
import { F as SYSTEM_IDENTITY_ID, a as getConversationStore, r as getConversationEventStore } from "./db-CFZggNoy.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 {
|
|
1
|
+
import { Ca as sandboxEgressSignalsResponseSchema } from "./projection-jZSlEAXG.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;
|