@sentry/junior 0.277.0 → 0.278.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-BtfBHVM5.js → adapter-BXosqTMx.js} +1 -1
- package/dist/{admin-DzAKbZsm.js → admin-Thn7NfOi.js} +1 -1
- package/dist/{agent-invocations-Crs3XHhg.js → agent-invocations-D7c4BQGc.js} +1 -1
- package/dist/{agent-runner-BsYAbniN.js → agent-runner-DE-43MPb.js} +268 -835
- package/dist/api/schema.d.ts +2 -2
- package/dist/api/schema.js +5 -5
- package/dist/api.d.ts +1 -1
- package/dist/api.js +38 -76
- package/dist/{app-BjEQwNVP.d.ts → app-CHNS-AX2.d.ts} +5 -26
- package/dist/app.d.ts +2 -2
- package/dist/app.js +30 -31
- package/dist/{assistant-reply-NebRGG4G.js → assistant-reply-pauL6qyn.js} +28 -6
- package/dist/{automation-Cql9h2vO.js → automation-DphoTRYl.js} +1 -1
- package/dist/{background-compaction-queue-hh18yCeU.js → background-compaction-queue-CAL4A2y7.js} +2 -2
- package/dist/{briefs-BBo0Eimi.js → briefs-4fyPJJEu.js} +5 -6
- package/dist/{catalog-runtime-DE-F4Awo.js → catalog-runtime-BoOb5oUv.js} +1 -1
- package/dist/cli/chat.js +14 -14
- package/dist/cli/check.js +3 -3
- package/dist/cli/init.js +0 -2
- package/dist/cli/main.js +3 -3
- package/dist/cli/plugins.js +4 -4
- package/dist/cli/snapshot-create.js +4 -4
- package/dist/cli/upgrade.d.ts +1 -1
- package/dist/cli/upgrade.js +3 -3
- package/dist/{client-DZ8HTnYH.js → client-v_OVYuHZ.js} +3 -3
- package/dist/{config-D5uUtrCP.js → config-o2jLRY5J.js} +24 -99
- package/dist/{connections-Do24CGP5.js → connections-RC4NXAx8.js} +10 -10
- package/dist/{conversation-SsASlWL7.js → conversation-CZfyQvdm.js} +51 -104
- package/dist/{conversation-privacy-VuylvlKr.js → conversation-privacy-C23M8KaD.js} +1 -1
- package/dist/{credential-sync-BGQK3pOa.js → credential-sync-Dd0WyNfF.js} +13 -13
- package/dist/{db-DEiwO5Sh.d.ts → db-BjLzDJCt.d.ts} +1 -1
- package/dist/{executor-hPfFTH0C.js → executor-CJfsD0VX.js} +3 -3
- package/dist/instrumentation.js +2 -2
- package/dist/{logging-cI3T1dNc.js → logging-dFaXvBRK.js} +1 -1
- package/dist/{media-DstkkoNP.js → media-DTAA8Qs_.js} +21 -23
- package/dist/{message-DBwsAl7O.js → message-DSwxIZet.js} +22 -28
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +3 -3
- package/dist/{oauth-callback-server-DXrnbplb.js → oauth-callback-server-CDcuCp27.js} +2 -2
- package/dist/{projection-7EFIqzuj.js → projection-BTge9wrH.js} +106 -108
- package/dist/{prompt-oRfGsxd3.js → prompt-DDtCnlHP.js} +1 -1
- package/dist/{registry-Bzefs7kT.js → registry-Cp6CNmtP.js} +1 -1
- package/dist/{resolve-CuiEY_2u.js → resolve-B_7h2cXx.js} +3 -3
- package/dist/{result-DrcUtFaD.js → result-5LBEfnLX.js} +9 -9
- package/dist/{runner-CDE4CZ52.js → runner-C5-S4oq-.js} +11 -11
- package/dist/{sandbox-egress-signals-0tcmGd13.js → sandbox-egress-signals-B4GehT1L.js} +1 -1
- package/dist/{schema-Dzi3lkdP.js → schema-B5fpczDw.js} +67 -4
- package/dist/{schema-B6N2nc6v.d.ts → schema-Tr484cCC.d.ts} +909 -687
- package/dist/{service-account-DIyz_9Uh.js → service-account-BkEv20zf.js} +3 -3
- package/dist/{service-account-BOz9pqOE.js → service-account-Cq_dLrZJ.js} +3 -3
- package/dist/{session-stop-0juF_BP0.js → session-stop-BsS4qFS2.js} +22 -15
- package/dist/{skills-CU5Is147.js → skills-M0BA0_s6.js} +2 -2
- package/dist/{spawn-6C9jHH4b.js → spawn-BO3y7H4d.js} +2 -3
- package/dist/{stop-6FVG1c-r.js → stop-D5R82Wla.js} +255 -64
- package/dist/{store-DtHZviJ1.js → store-BGBzQWNf.js} +9 -16
- package/dist/{store-DKs1WwdB.js → store-CGJZTEVz.js} +3 -3
- package/dist/{task-queue-CcvFQE_p.js → task-queue-UD27ei2U.js} +3 -3
- package/dist/{task-runner-DBkNejLl.js → task-runner-noxjOjkM.js} +7 -7
- package/dist/{thread-state-4hjEIkIq.js → thread-state-BSu6rM6p.js} +4 -4
- package/dist/{turn-failure-response-BZNLydC3.js → turn-failure-response-wahwyPrZ.js} +7 -7
- package/dist/{turn-lifecycle-BhqYjaa4.js → turn-lifecycle-Bo4Trccw.js} +1 -1
- package/dist/{turn-session-routing-jnLOfBHJ.js → turn-session-routing-DnSaaEpn.js} +10 -10
- package/dist/{validation-BUFmsnKs.js → validation-B9-8iKyw.js} +1 -1
- package/dist/{version-DJTk0ZCE.js → version-C7HejFP2.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-WY0RYE4E.js → viewer-DLXajQZE.js} +52 -21
- package/dist/{work-C5AKvXJV.js → work-DRGSlfia.js} +12 -17
- package/dist/{worker-BcYVDVUy.js → worker-BGh5Dwc6.js} +6 -6
- package/migrations/meta/0075_snapshot.json +98 -314
- package/migrations/meta/0076_snapshot.json +98 -314
- package/migrations/meta/_journal.json +1 -1
- package/package.json +4 -4
- package/dist/model-profile-B998sjVd.js +0 -67
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-nwUcYXjP.js";
|
|
2
|
-
import { C as toOptionalTrimmed, a as completeText, b as isProviderRetryError, c as resolveGatewayModel, i as completeObject, m as escapeXml, o as embedTexts, p as unwrapCurrentInstruction, r as completeDecision, s as rerankTexts, t as GEN_AI_PROVIDER_NAME } from "./client-
|
|
3
|
-
import {
|
|
4
|
-
import { E as withSpan, G as toOptionalNumber, K as toOptionalString, W as isRecord$2, a as extractGenAiUsageSummary, b as setSpanAttributes, c as getLogContextAttributes, d as logAudit, h as logWarn, m as logInfo, o as getActiveTraceContext, p as logException, t as buildTurnFailureResponse, y as setSentryUser } from "./logging-
|
|
2
|
+
import { C as toOptionalTrimmed, a as completeText, b as isProviderRetryError, c as resolveGatewayModel, i as completeObject, m as escapeXml, o as embedTexts, p as unwrapCurrentInstruction, r as completeDecision, s as rerankTexts, t as GEN_AI_PROVIDER_NAME } from "./client-v_OVYuHZ.js";
|
|
3
|
+
import { i as getChatConfig, n as botConfig, o as getSlackBotToken, v as normalizeSlackEmojiName } from "./config-o2jLRY5J.js";
|
|
4
|
+
import { E as withSpan, G as toOptionalNumber, K as toOptionalString, W as isRecord$2, a as extractGenAiUsageSummary, b as setSpanAttributes, c as getLogContextAttributes, d as logAudit, h as logWarn, m as logInfo, o as getActiveTraceContext, p as logException, t as buildTurnFailureResponse, y as setSentryUser } from "./logging-dFaXvBRK.js";
|
|
5
5
|
import { a as getClient$1, n as captureMessage, r as continueTrace } from "./sentry-MDkYAVPV.js";
|
|
6
|
-
import { t as canExposeConversationPayload } from "./conversation-privacy-
|
|
7
|
-
import { i as defaultModelId } from "./model-profile-B998sjVd.js";
|
|
6
|
+
import { t as canExposeConversationPayload } from "./conversation-privacy-C23M8KaD.js";
|
|
8
7
|
import { c as parseStoredSlackActor, d as parseSlackChannelReferenceId, f as parseSlackTeamId, h as parseSlackMessageTs, i as isActorUserId, l as toStoredSlackActor, p as parseSlackUserId, s as parseActorUserId } from "./actor-B4DYygOB.js";
|
|
9
|
-
import {
|
|
10
|
-
import { c as juniorIdentities, d as juniorDestinations, l as juniorUsers, s as juniorConversations } from "./agent-invocations-
|
|
11
|
-
import { C as juniorCodeChanges, S as juniorConversationAnnotations, T as juniorAttachments, _ as juniorConversationBriefs, a as juniorReviewItemAssignees, b as juniorConversationEvents, c as juniorReviewItems, d as juniorAutomations, h as juniorConversationParticipants, i as juniorWorkspaces, n as juniorSnapshots, o as juniorReviewItemConversations, p as juniorLocationConfigurations, r as juniorWorkspaceRepos, w as juniorCodeRepositories } from "./executor-
|
|
12
|
-
import { a as agentHistoryItemSchema, g as instructionProvenanceFor, h as instructionActors, m as contextProvenance } from "./media-
|
|
13
|
-
import { _ as CredentialUnavailableError, a as resolveAuthTokenPlaceholder, f as credentialContextForActor, h as credentialSubjectSchema, m as credentialLogContext, o as resolvePluginCommandEnv, p as credentialContextSchema } from "./registry-
|
|
14
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
8
|
+
import { C as getSqlExecutor, D as createSqlConversationEventStore, G as bindProviderConversation, I as resolveActorIdentityId, O as eventFromRow, P as startLocationThread, S as getDb, U as saveUserTimezone, V as readUserTimezone, X as addAgentTurnUsage, at as sameDestination, et as hasAgentTurnUsage, g as createCache, i as readActorIdentity, j as createSqlStore, k as withConversationEventLock, l as resolveViewerUser, n as findUserByEmailFromSql, o as readIdentityById, p as parseAvatarUrl, q as conversationDetailTouch, rt as parseDestination, s as readIdentityByIdFromSql, tt as resolveRootConversationId, x as getConversationStore, y as getConversationEventStore } from "./viewer-DLXajQZE.js";
|
|
9
|
+
import { c as juniorIdentities, d as juniorDestinations, l as juniorUsers, s as juniorConversations } from "./agent-invocations-D7c4BQGc.js";
|
|
10
|
+
import { C as juniorCodeChanges, S as juniorConversationAnnotations, T as juniorAttachments, _ as juniorConversationBriefs, a as juniorReviewItemAssignees, b as juniorConversationEvents, c as juniorReviewItems, d as juniorAutomations, h as juniorConversationParticipants, i as juniorWorkspaces, n as juniorSnapshots, o as juniorReviewItemConversations, p as juniorLocationConfigurations, r as juniorWorkspaceRepos, w as juniorCodeRepositories } from "./executor-CJfsD0VX.js";
|
|
11
|
+
import { a as agentHistoryItemSchema, g as instructionProvenanceFor, h as instructionActors, m as contextProvenance } from "./media-DTAA8Qs_.js";
|
|
12
|
+
import { _ as CredentialUnavailableError, a as resolveAuthTokenPlaceholder, f as credentialContextForActor, h as credentialSubjectSchema, m as credentialLogContext, o as resolvePluginCommandEnv, p as credentialContextSchema } from "./registry-Cp6CNmtP.js";
|
|
13
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-BoOb5oUv.js";
|
|
15
14
|
import { a as withLock, i as fenceLock, n as MUTATION_LOCK_TTL_MS, r as acquireActiveLock } from "./locks-D-0h111u.js";
|
|
16
|
-
import { n as getDefaultRedisStateAdapterFor, r as getStateAdapter } from "./adapter-
|
|
15
|
+
import { n as getDefaultRedisStateAdapterFor, r as getStateAdapter } from "./adapter-BXosqTMx.js";
|
|
17
16
|
import { i as isValidTimeZone } from "./cadence-R7Em4RjE.js";
|
|
18
|
-
import {
|
|
19
|
-
import { n as briefEntriesFromReportEvents, s as generateBrief, t as BRIEF_PROMPT } from "./prompt-
|
|
17
|
+
import { A as messageCardRef, H as conversationBriefSchema, M as readMessageCardRefs, O as reviewItemChangeRecordSchema, R as readMessageAttachments, U as parseBriefInput, _ as conversationReportMessageEventSchema, g as conversationReportEventSchema } from "./conversation-CZfyQvdm.js";
|
|
18
|
+
import { n as briefEntriesFromReportEvents, s as generateBrief, t as BRIEF_PROMPT } from "./prompt-DDtCnlHP.js";
|
|
20
19
|
import path from "node:path";
|
|
21
20
|
import { isDeepStrictEqual } from "node:util";
|
|
22
21
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
@@ -254,24 +253,22 @@ function historyItemProvenance(data) {
|
|
|
254
253
|
/**
|
|
255
254
|
* Project ordered Junior events into Pi context.
|
|
256
255
|
*
|
|
257
|
-
* Compaction and handoff start with replacement history. Later
|
|
258
|
-
* events append after it.
|
|
256
|
+
* Compaction and legacy handoff events start with replacement history. Later
|
|
257
|
+
* native history events append after it.
|
|
259
258
|
*
|
|
260
259
|
* Host-only events are filtered, completed authorization becomes a synthetic
|
|
261
260
|
* observation, and `maxSeq` reproduces an exact committed boundary.
|
|
262
261
|
*/
|
|
263
|
-
function projectConversationEvents(events, options) {
|
|
262
|
+
function projectConversationEvents(events, options = {}) {
|
|
264
263
|
const messages = [];
|
|
265
264
|
const provenance = [];
|
|
266
265
|
const seqs = [];
|
|
267
|
-
let modelProfile = options.defaultProfile;
|
|
268
266
|
let replacementSeq;
|
|
269
267
|
for (const event of events) {
|
|
270
268
|
if (options.maxSeq !== void 0 && event.seq > options.maxSeq) break;
|
|
271
269
|
if (event.data.type === "unknown") throw new Error(`Unsupported conversation event "${event.data.originalType}" at seq ${event.seq} (schema version ${event.schemaVersion})`);
|
|
272
270
|
if (event.data.type === "compaction_requested" || event.data.type === "compaction_prepared") continue;
|
|
273
271
|
if (event.data.type === "compaction" || event.data.type === "handoff") {
|
|
274
|
-
modelProfile = event.data.modelProfile;
|
|
275
272
|
replacementSeq = event.seq;
|
|
276
273
|
for (const replacement of event.data.replacementHistory) {
|
|
277
274
|
const message = piMessageFromHistoryItem(replacement.item);
|
|
@@ -298,7 +295,6 @@ function projectConversationEvents(events, options) {
|
|
|
298
295
|
messages,
|
|
299
296
|
provenance,
|
|
300
297
|
seqs,
|
|
301
|
-
modelProfile,
|
|
302
298
|
replacementSeq
|
|
303
299
|
};
|
|
304
300
|
}
|
|
@@ -977,21 +973,10 @@ function buildSentryEventUrl(eventId) {
|
|
|
977
973
|
/** Apply recorded model choices without carrying a previous turn's settings forward. */
|
|
978
974
|
function conversationEventModel(data, current) {
|
|
979
975
|
if (data.type === "turn_started") return void 0;
|
|
980
|
-
if (data.type === "turn_routed" || data.type === "handoff") return {
|
|
981
|
-
modelId: data.modelId,
|
|
982
|
-
modelProfile: data.modelProfile,
|
|
983
|
-
...data.reasoningLevel ? { reasoningLevel: data.reasoningLevel } : void 0
|
|
984
|
-
};
|
|
985
976
|
if (data.type === "assistant_message") {
|
|
986
977
|
const model = text$1(data.model);
|
|
987
978
|
const provider = text$1(data.provider);
|
|
988
|
-
if (model) {
|
|
989
|
-
const modelId = model.includes("/") || !provider ? model : `${provider}/${model}`;
|
|
990
|
-
return {
|
|
991
|
-
...current,
|
|
992
|
-
modelId
|
|
993
|
-
};
|
|
994
|
-
}
|
|
979
|
+
if (model) return { modelId: model.includes("/") || !provider ? model : `${provider}/${model}` };
|
|
995
980
|
}
|
|
996
981
|
return current;
|
|
997
982
|
}
|
|
@@ -1025,11 +1010,9 @@ const conversationReportSourceEventTypes = [
|
|
|
1025
1010
|
"turn_context",
|
|
1026
1011
|
"structured_event",
|
|
1027
1012
|
"attachments_delivered",
|
|
1028
|
-
"turn_routed",
|
|
1029
1013
|
"turn_completed",
|
|
1030
1014
|
"turn_failed",
|
|
1031
1015
|
"compaction",
|
|
1032
|
-
"handoff",
|
|
1033
1016
|
"subagent_started",
|
|
1034
1017
|
"subagent_ended"
|
|
1035
1018
|
];
|
|
@@ -1248,6 +1231,7 @@ function reportEventData(args) {
|
|
|
1248
1231
|
eventObjectType: objectTypeSchema.safeParse(data.meta?.eventObjectType).data,
|
|
1249
1232
|
...typeof data.meta?.eventType === "string" ? { eventType: data.meta.eventType } : void 0,
|
|
1250
1233
|
...typeof data.meta?.explicitMention === "boolean" ? { explicitMention: data.meta.explicitMention } : void 0,
|
|
1234
|
+
...data.meta?.quiet === true ? { quiet: true } : void 0,
|
|
1251
1235
|
...args.canExposePayload && typeof data.meta?.trustedSummary === "string" ? { trustedSummary: data.meta.trustedSummary } : void 0,
|
|
1252
1236
|
...args.canExposePayload ? reportMessageEvents(data.meta) : void 0,
|
|
1253
1237
|
...args.canExposePayload && (data.meta?.cards || data.meta?.objectCards) ? { cards: readMessageCardRefs(data.meta) } : void 0,
|
|
@@ -1283,16 +1267,6 @@ function reportEventData(args) {
|
|
|
1283
1267
|
type: "attachments_delivered",
|
|
1284
1268
|
attachments: data.attachments
|
|
1285
1269
|
};
|
|
1286
|
-
case "turn_routed": return {
|
|
1287
|
-
type: "turn_routed",
|
|
1288
|
-
turnId: data.turnId,
|
|
1289
|
-
modelProfile: data.modelProfile,
|
|
1290
|
-
modelId: data.modelId,
|
|
1291
|
-
...data.costUsd !== void 0 ? { costUsd: data.costUsd } : void 0,
|
|
1292
|
-
reasoningLevel: data.reasoningLevel,
|
|
1293
|
-
...data.confidence !== void 0 ? { confidence: data.confidence } : void 0,
|
|
1294
|
-
source: data.source
|
|
1295
|
-
};
|
|
1296
1270
|
case "guardian_action_reviewed": return {
|
|
1297
1271
|
type: "guardian_action_reviewed",
|
|
1298
1272
|
turnId: data.turnId,
|
|
@@ -1322,7 +1296,6 @@ function reportEventData(args) {
|
|
|
1322
1296
|
}
|
|
1323
1297
|
case "compaction": return {
|
|
1324
1298
|
type: "compaction",
|
|
1325
|
-
modelProfile: data.modelProfile,
|
|
1326
1299
|
modelId: data.modelId,
|
|
1327
1300
|
...args.canExposePayload && data.summary ? { summary: data.summary } : void 0,
|
|
1328
1301
|
...data.details ? { details: data.details } : void 0
|
|
@@ -1435,15 +1408,7 @@ function projectConversationReportEventPage(args) {
|
|
|
1435
1408
|
};
|
|
1436
1409
|
subagentStarts.delete(event.data.subagentInvocationId);
|
|
1437
1410
|
}
|
|
1438
|
-
} else
|
|
1439
|
-
type: "handoff",
|
|
1440
|
-
modelProfile: event.data.modelProfile,
|
|
1441
|
-
modelId: event.data.modelId,
|
|
1442
|
-
...event.data.reasoningLevel ? { reasoningLevel: event.data.reasoningLevel } : void 0,
|
|
1443
|
-
...event.data.triggeringToolCallId ? { triggeringToolCallId: event.data.triggeringToolCallId } : void 0,
|
|
1444
|
-
...args.canExposePayload && event.data.summary ? { summary: event.data.summary } : void 0
|
|
1445
|
-
};
|
|
1446
|
-
else data = reportEventData({
|
|
1411
|
+
} else data = reportEventData({
|
|
1447
1412
|
canExposePayload: args.canExposePayload,
|
|
1448
1413
|
data: event.data
|
|
1449
1414
|
});
|
|
@@ -1474,7 +1439,7 @@ async function readConversationEventRows(executor, args) {
|
|
|
1474
1439
|
)
|
|
1475
1440
|
else ${juniorConversationEvents.payload}
|
|
1476
1441
|
end`
|
|
1477
|
-
}).from(juniorConversationEvents).where(and(eq(juniorConversationEvents.conversationId, args.conversationId), args.beforeSeq === void 0 ? void 0 : lt(juniorConversationEvents.seq, args.beforeSeq), inArray(juniorConversationEvents.type, args.types ?? [...conversationReportSourceEventTypes]), args.subagentInvocationIds === void 0 ? void 0 : inArray(sql`${juniorConversationEvents.payload}->>'subagentInvocationId'`, args.subagentInvocationIds), args.toolCallIds === void 0 ? void 0 : inArray(sql`${juniorConversationEvents.payload}->>'toolCallId'`, args.toolCallIds))).orderBy(args.direction === "forward" ? asc(juniorConversationEvents.seq) : desc(juniorConversationEvents.seq)).limit(args.limit);
|
|
1442
|
+
}).from(juniorConversationEvents).where(and(eq(juniorConversationEvents.conversationId, args.conversationId), args.beforeSeq === void 0 ? void 0 : lt(juniorConversationEvents.seq, args.beforeSeq), args.afterSeq === void 0 ? void 0 : gt(juniorConversationEvents.seq, args.afterSeq), inArray(juniorConversationEvents.type, args.types ?? [...conversationReportSourceEventTypes]), args.subagentInvocationIds === void 0 ? void 0 : inArray(sql`${juniorConversationEvents.payload}->>'subagentInvocationId'`, args.subagentInvocationIds), args.toolCallIds === void 0 ? void 0 : inArray(sql`${juniorConversationEvents.payload}->>'toolCallId'`, args.toolCallIds))).orderBy(args.direction === "forward" ? asc(juniorConversationEvents.seq) : desc(juniorConversationEvents.seq)).limit(args.limit);
|
|
1478
1443
|
}
|
|
1479
1444
|
/** Project stored rows and resolve entity starts that precede the page. */
|
|
1480
1445
|
async function projectConversationEventRows(executor, args) {
|
|
@@ -1486,8 +1451,6 @@ async function projectConversationEventRows(executor, args) {
|
|
|
1486
1451
|
limit: 1,
|
|
1487
1452
|
types: [
|
|
1488
1453
|
"turn_started",
|
|
1489
|
-
"turn_routed",
|
|
1490
|
-
"handoff",
|
|
1491
1454
|
"turn_completed",
|
|
1492
1455
|
"turn_failed"
|
|
1493
1456
|
]
|
|
@@ -1565,6 +1528,66 @@ async function readConversationEventPage(executor, args) {
|
|
|
1565
1528
|
...projected.length > events.length && events[0] ? { previousSeq: events[0].seq } : void 0
|
|
1566
1529
|
};
|
|
1567
1530
|
}
|
|
1531
|
+
/**
|
|
1532
|
+
* Read reporting events on both sides of one event.
|
|
1533
|
+
*
|
|
1534
|
+
* Half of the page ends with the event at `seq`, and the rest follows it. A
|
|
1535
|
+
* reader who opens at a read position gets the context before it and the
|
|
1536
|
+
* unread events after it in one page.
|
|
1537
|
+
*/
|
|
1538
|
+
async function readConversationEventPageAround(executor, args) {
|
|
1539
|
+
const { seq, ...pageArgs } = args;
|
|
1540
|
+
const beforeLimit = Math.floor(args.limit / 2);
|
|
1541
|
+
const [before, after] = await Promise.all([beforeLimit > 0 ? readConversationEventPage(executor, {
|
|
1542
|
+
...pageArgs,
|
|
1543
|
+
beforeSeq: seq + 1,
|
|
1544
|
+
limit: beforeLimit
|
|
1545
|
+
}) : void 0, readConversationEventPageAfter(executor, {
|
|
1546
|
+
...pageArgs,
|
|
1547
|
+
afterSeq: seq,
|
|
1548
|
+
limit: args.limit - beforeLimit
|
|
1549
|
+
})]);
|
|
1550
|
+
return {
|
|
1551
|
+
events: [...before?.events ?? [], ...after.events],
|
|
1552
|
+
...after.nextSeq === void 0 ? void 0 : { nextSeq: after.nextSeq },
|
|
1553
|
+
...before?.previousSeq === void 0 ? void 0 : { previousSeq: before.previousSeq }
|
|
1554
|
+
};
|
|
1555
|
+
}
|
|
1556
|
+
/**
|
|
1557
|
+
* Read the earliest reporting events after an exclusive boundary.
|
|
1558
|
+
*
|
|
1559
|
+
* This is the forward twin of `readConversationEventPage`. It returns
|
|
1560
|
+
* `nextSeq` when newer events follow the page. Earlier pages start from the
|
|
1561
|
+
* page around the read position, so this page reads nothing before it.
|
|
1562
|
+
*/
|
|
1563
|
+
async function readConversationEventPageAfter(executor, args) {
|
|
1564
|
+
const scanSize = Math.max(args.limit + 1, MIN_SCAN_SIZE);
|
|
1565
|
+
const rows = [];
|
|
1566
|
+
let afterSeq = args.afterSeq;
|
|
1567
|
+
let projected = [];
|
|
1568
|
+
while (projected.length <= args.limit) {
|
|
1569
|
+
const batch = await readConversationEventRows(executor, {
|
|
1570
|
+
afterSeq,
|
|
1571
|
+
conversationId: args.conversationId,
|
|
1572
|
+
direction: "forward",
|
|
1573
|
+
limit: scanSize
|
|
1574
|
+
});
|
|
1575
|
+
if (batch.length === 0) break;
|
|
1576
|
+
rows.push(...batch);
|
|
1577
|
+
projected = await projectConversationEventRows(executor, {
|
|
1578
|
+
canExposePayload: args.canExposePayload,
|
|
1579
|
+
conversationId: args.conversationId,
|
|
1580
|
+
rows
|
|
1581
|
+
});
|
|
1582
|
+
if (projected.length > args.limit || batch.length < scanSize) break;
|
|
1583
|
+
afterSeq = batch.at(-1).seq;
|
|
1584
|
+
}
|
|
1585
|
+
const events = projected.slice(0, args.limit);
|
|
1586
|
+
return {
|
|
1587
|
+
events,
|
|
1588
|
+
...projected.length > events.length ? { nextSeq: events.at(-1).seq } : void 0
|
|
1589
|
+
};
|
|
1590
|
+
}
|
|
1568
1591
|
// src/chat/briefs/input.ts
|
|
1569
1592
|
const EVENT_PAGE_SIZE = 500;
|
|
1570
1593
|
async function readReportEventsThrough(executor, conversationId, throughSeq) {
|
|
@@ -1850,7 +1873,7 @@ async function updateConversationBrief(context) {
|
|
|
1850
1873
|
return;
|
|
1851
1874
|
}
|
|
1852
1875
|
const input = await briefInputFromSql(executor, run.conversationId, terminalSeq);
|
|
1853
|
-
const modelId =
|
|
1876
|
+
const modelId = botConfig.modelId;
|
|
1854
1877
|
const generation = await generateBrief({
|
|
1855
1878
|
completeObject: (request) => completeObject({
|
|
1856
1879
|
...request,
|
|
@@ -2046,6 +2069,7 @@ async function readConversationAccessFromSql(db, conversationIds, viewer) {
|
|
|
2046
2069
|
return [row.conversationId, {
|
|
2047
2070
|
canViewPrivateContent,
|
|
2048
2071
|
isParticipant,
|
|
2072
|
+
...validRootConversationId !== void 0 ? { rootConversationId: validRootConversationId } : void 0,
|
|
2049
2073
|
visibility,
|
|
2050
2074
|
...validRootConversationId !== void 0 && row.provider !== null && row.providerTenantId ? { tenant: {
|
|
2051
2075
|
provider: row.provider,
|
|
@@ -2054,6 +2078,18 @@ async function readConversationAccessFromSql(db, conversationIds, viewer) {
|
|
|
2054
2078
|
}];
|
|
2055
2079
|
}));
|
|
2056
2080
|
}
|
|
2081
|
+
/**
|
|
2082
|
+
* Apply `policies/conversation-access.md`: whether work in the `requester`
|
|
2083
|
+
* Conversation may read or find the data of the `target` Conversation. The
|
|
2084
|
+
* person of the Turn does not change the result. A private Conversation is
|
|
2085
|
+
* reachable only from its own tree.
|
|
2086
|
+
*/
|
|
2087
|
+
function canAccessConversation(args) {
|
|
2088
|
+
const { requester, target } = args;
|
|
2089
|
+
if (requester.rootConversationId !== void 0 && requester.rootConversationId === target.rootConversationId) return true;
|
|
2090
|
+
if (!requester.tenant || !target.tenant || requester.tenant.provider !== target.tenant.provider || requester.tenant.providerTenantId !== target.tenant.providerTenantId) return false;
|
|
2091
|
+
return target.visibility === "public";
|
|
2092
|
+
}
|
|
2057
2093
|
// src/chat/plugins/conversation-event-reader.ts
|
|
2058
2094
|
function registeredEventName$1(plugin, eventName) {
|
|
2059
2095
|
if (!plugin.conversationEvents?.some((definition) => definition.eventName === eventName)) throw new TypeError(`Plugin "${plugin.manifest.name}" did not register event "${eventName}"`);
|
|
@@ -2360,7 +2396,7 @@ function createSandboxCapability(workspace, ownerSignal) {
|
|
|
2360
2396
|
/** Create the host-owned structured model capability exposed to plugins. */
|
|
2361
2397
|
function createPluginModel(pluginName, options = {}, runtime = {}) {
|
|
2362
2398
|
return { async completeObject(input) {
|
|
2363
|
-
const modelId = options.structuredModelId ?? (options.structuredModel === "default" ?
|
|
2399
|
+
const modelId = options.structuredModelId ?? (options.structuredModel === "default" ? botConfig.modelId : botConfig.fastModelId);
|
|
2364
2400
|
const result = await completeObject({
|
|
2365
2401
|
modelId,
|
|
2366
2402
|
schema: input.schema,
|
|
@@ -12815,7 +12851,7 @@ async function materializeStoredTurnRecord(conversationId, turnId, followCurrent
|
|
|
12815
12851
|
const eventStore = getConversationEventStore();
|
|
12816
12852
|
const currentHistoryVersion = await eventStore.loadCurrentHistoryVersion(conversationId);
|
|
12817
12853
|
const followsReplacement = followCurrentReplacement && (parsed.state === "running" || parsed.state === "paused") && parsed.historyVersion !== void 0 && parsed.historyVersion !== currentHistoryVersion;
|
|
12818
|
-
const piProjection = followsReplacement ? projectConversationEvents(await eventStore.loadCurrentHistory(conversationId)
|
|
12854
|
+
const piProjection = followsReplacement ? projectConversationEvents(await eventStore.loadCurrentHistory(conversationId)) : pinnedProjection;
|
|
12819
12855
|
const turnStartMessageIndex = followsReplacement ? 0 : parsed.turnStartSeq === void 0 ? void 0 : piProjection.seqs.filter((seq) => seq <= parsed.turnStartSeq).length;
|
|
12820
12856
|
const conversationStore = getConversationStore();
|
|
12821
12857
|
const conversation = await conversationStore.get({ conversationId });
|
|
@@ -13676,6 +13712,7 @@ function recordDeliveredAssistantMessage(args) {
|
|
|
13676
13712
|
},
|
|
13677
13713
|
meta: {
|
|
13678
13714
|
...objectCards?.length ? { objectCards } : void 0,
|
|
13715
|
+
...args.quiet ? { quiet: args.quiet } : void 0,
|
|
13679
13716
|
replied: true,
|
|
13680
13717
|
...args.source ? { source: args.source } : void 0
|
|
13681
13718
|
}
|
|
@@ -14325,7 +14362,7 @@ function durableMessageIdentity(message) {
|
|
|
14325
14362
|
*
|
|
14326
14363
|
* Returns `current.length` only when every committed message still matches by
|
|
14327
14364
|
* durable identity. A shorter `next` or a content/role/timestamp change is a
|
|
14328
|
-
* branch that only compaction
|
|
14365
|
+
* branch that only compaction may perform.
|
|
14329
14366
|
*/
|
|
14330
14367
|
function countDurablePrefix(current, next) {
|
|
14331
14368
|
if (next.length < current.length) return countMatchingDeepPrefix(current, next);
|
|
@@ -14372,15 +14409,15 @@ function resolveCommitProvenance(args) {
|
|
|
14372
14409
|
}
|
|
14373
14410
|
/** Load the current Pi agent history for a conversation. */
|
|
14374
14411
|
async function loadProjection(args) {
|
|
14375
|
-
return projectConversationEvents(await getConversationEventStore().loadCurrentHistory(args.conversationId)
|
|
14412
|
+
return projectConversationEvents(await getConversationEventStore().loadCurrentHistory(args.conversationId)).messages;
|
|
14376
14413
|
}
|
|
14377
14414
|
/** Load current Pi context with aligned provenance and source event sequences. */
|
|
14378
14415
|
async function loadConversationProjection(args) {
|
|
14379
|
-
return projectConversationEvents(await getConversationEventStore().loadCurrentHistory(args.conversationId)
|
|
14416
|
+
return projectConversationEvents(await getConversationEventStore().loadCurrentHistory(args.conversationId));
|
|
14380
14417
|
}
|
|
14381
14418
|
/** Load the active Pi projection before a conversation's next request. */
|
|
14382
14419
|
async function openConversationProjection(args) {
|
|
14383
|
-
return projectConversationEvents(await getConversationEventStore().loadCurrentHistory(args.conversationId)
|
|
14420
|
+
return projectConversationEvents(await getConversationEventStore().loadCurrentHistory(args.conversationId));
|
|
14384
14421
|
}
|
|
14385
14422
|
/**
|
|
14386
14423
|
* Load a turn's committed Pi projection from the durable event store.
|
|
@@ -14395,10 +14432,10 @@ async function openConversationProjection(args) {
|
|
|
14395
14432
|
*/
|
|
14396
14433
|
async function loadTurnProjection(args) {
|
|
14397
14434
|
const eventStore = getConversationEventStore();
|
|
14398
|
-
if (args.committedSeq < 0) return projectConversationEvents(await eventStore.loadCurrentHistory(args.conversationId)
|
|
14435
|
+
if (args.committedSeq < 0) return projectConversationEvents(await eventStore.loadCurrentHistory(args.conversationId));
|
|
14399
14436
|
const historyEvents = await eventStore.loadHistoryContaining(args.conversationId, args.committedSeq, args.includeTail ? void 0 : args.committedSeq);
|
|
14400
14437
|
if (!historyEvents) return;
|
|
14401
|
-
return projectConversationEvents(historyEvents
|
|
14438
|
+
return projectConversationEvents(historyEvents);
|
|
14402
14439
|
}
|
|
14403
14440
|
/** Load MCP providers the credential subject connected in this conversation. */
|
|
14404
14441
|
async function loadConnectedMcpProviders(args) {
|
|
@@ -14413,7 +14450,7 @@ function messageTimestamp(message) {
|
|
|
14413
14450
|
*
|
|
14414
14451
|
* Checkpoints are append-only against the durable identity of the committed
|
|
14415
14452
|
* prefix (role, timestamp, content; tool results also match call id). A shorter
|
|
14416
|
-
* history or a true content branch is rejected — only compaction
|
|
14453
|
+
* history or a true content branch is rejected — only compaction may
|
|
14417
14454
|
* intentionally replace active model history. In-place Pi mutations of already
|
|
14418
14455
|
* committed assistant envelopes (usage/stopReason) do not block the suffix.
|
|
14419
14456
|
*/
|
|
@@ -14457,7 +14494,7 @@ async function commitAcceptedReply(args) {
|
|
|
14457
14494
|
async function commitMessagesLocked(args, executor) {
|
|
14458
14495
|
const eventStore = createSqlConversationEventStore(executor);
|
|
14459
14496
|
const currentEvents = await eventStore.loadCurrentHistory(args.conversationId);
|
|
14460
|
-
const current = projectConversationEvents(currentEvents
|
|
14497
|
+
const current = projectConversationEvents(currentEvents);
|
|
14461
14498
|
const nextLocalMessages = args.messages.map(normalizeDurableMessage);
|
|
14462
14499
|
const matchingPrefix = countDurablePrefix(current.messages, nextLocalMessages);
|
|
14463
14500
|
const nextLocalProvenance = resolveCommitProvenance({
|
|
@@ -14640,45 +14677,6 @@ async function recordSubscribedReplyRoute(args) {
|
|
|
14640
14677
|
}
|
|
14641
14678
|
}]);
|
|
14642
14679
|
}
|
|
14643
|
-
/**
|
|
14644
|
-
* Load the profile of the newest Turn route or handoff.
|
|
14645
|
-
*
|
|
14646
|
-
* The projection profile is not enough: a Turn route does not replace history.
|
|
14647
|
-
*/
|
|
14648
|
-
async function loadLastModelProfile(args) {
|
|
14649
|
-
const data = (await getConversationEventStore().query(args.conversationId, {
|
|
14650
|
-
limit: 1,
|
|
14651
|
-
types: ["turn_routed", "handoff"]
|
|
14652
|
-
})).events[0]?.data;
|
|
14653
|
-
return data?.type === "turn_routed" || data?.type === "handoff" ? data.modelProfile : void 0;
|
|
14654
|
-
}
|
|
14655
|
-
/** Load a previously selected model profile for a resumed turn. */
|
|
14656
|
-
async function loadTurnRoute(args) {
|
|
14657
|
-
const event = await getConversationEventStore().loadByIdempotencyKey(args.conversationId, `turn:${args.turnId}:routed`);
|
|
14658
|
-
if (!event) return;
|
|
14659
|
-
if (event.data.type !== "turn_routed" || event.data.turnId !== args.turnId) throw new Error(`Turn route key for "${args.turnId}" has invalid data`);
|
|
14660
|
-
return {
|
|
14661
|
-
...event.data,
|
|
14662
|
-
seq: event.seq
|
|
14663
|
-
};
|
|
14664
|
-
}
|
|
14665
|
-
/** Record the model profile selected for one turn without changing agent history. */
|
|
14666
|
-
async function recordTurnRoute(args) {
|
|
14667
|
-
await getConversationEventStore().append(args.conversationId, [{
|
|
14668
|
-
idempotencyKey: `turn:${args.turnId}:routed`,
|
|
14669
|
-
createdAtMs: Date.now(),
|
|
14670
|
-
data: {
|
|
14671
|
-
type: "turn_routed",
|
|
14672
|
-
turnId: args.turnId,
|
|
14673
|
-
modelProfile: args.modelProfile,
|
|
14674
|
-
modelId: args.modelId,
|
|
14675
|
-
...args.costUsd !== void 0 ? { costUsd: args.costUsd } : void 0,
|
|
14676
|
-
reasoningLevel: args.reasoningLevel,
|
|
14677
|
-
...args.confidence !== void 0 ? { confidence: args.confidence } : void 0,
|
|
14678
|
-
source: args.source
|
|
14679
|
-
}
|
|
14680
|
-
}]);
|
|
14681
|
-
}
|
|
14682
14680
|
/** Record a host-observed parent tool start without adding it to Pi replay. */
|
|
14683
14681
|
async function recordToolExecutionStarted(args) {
|
|
14684
14682
|
await getConversationEventStore().append(args.conversationId, [{
|
|
@@ -14736,4 +14734,4 @@ async function recordGuardianActionReviewed(args) {
|
|
|
14736
14734
|
createdAtMs: Date.now()
|
|
14737
14735
|
}]);
|
|
14738
14736
|
}
|
|
14739
|
-
export { loadTurnCheckpoint as $, recordSlackAttachment as $a, wrapSandboxSetupError as $i, listReplyActionItems as $n, getWorkspaceByName as $r, instructionTextForProjection as $t, buildConversationContext as A, buildNonInteractiveShellScript as Aa, openSlackModal as Ai, getOAuthAccountProviders as An, findMatchingWatches as Ar, recordConversationRetry as At, createPluginEgress as B, conversationPinnedForUser as Ba, getFilePermalink as Bi, getPlugins as Bn, verifyTimerWatchCredentialSubject as Br, TurnSliceLimitExceededError as Bt, projectConversationMessages as C, SANDBOX_REPOS_ROOT as Ca, normalizeSlackStatusText as Ci, getAgentContextInputLimitTokens as Cn, STOP_WATCHING_TOOL_NAME as Cr, hasConversationStop as Ct, fallbackShortTitle as D, sandboxSkillFile as Da, deleteSlackMessage as Di, createUserTokenStore as Dn, createTimerWatch as Dr, listActiveConversationIds as Dt, settleConversationTitleWork as E, sandboxSkillDir as Ea, addReactionToMessage as Ei, setExperimentalFeatures as En, collectEventMatchKeys as Er, isInvalidConversationRecordError as Et, markConversationMessage as F, conversationArchivedForUser as Fa, uploadFilesToConversation as Fi, getPluginRoutes as Fn, bindScheduledAutomationCredentialSubject as Fr, startConversationWork as Ft, AuthorizationFlowDisabledError as G, readLatestConversationBrief as Ga, normalizeSlackConversationId as Gi, setBriefsConfig as Gn, getDashboardTaskLink as Gr, CODEMODE_TOOL_NAME as Gt, createPluginAuthOrchestration as H, readConversationViewerMarks as Ha, getSlackClient as Hi, validatePlugins as Hn, getDashboardConversationLink as Hr, buildTurnErrorResponse as Ht, normalizeConversationText as I, conversationHasParticipantUser as Ia, slackEntitySchema as Ii, getPluginSlackConversationLink as In, bindSlackDirectCredentialSubject as Ir, steerWebPendingMessages as It, canReusePendingAuthLink as J, loadForkHistory as Ja, getWorkspaceTeamId as Ji, countReviewItemsNeedingUser as Jn, createPluginState as Jr, getPiMessageRole as Jt, AuthorizationPauseError as K, readConversationEventPage as Ka, runWithSlackInstallationToken as Ki, REVIEW_ITEM_REPLIED_REASON as Kn, setDashboardConversationLinkOptions as Kr, persistWithRetry as Kt, recordDeliveredAssistantMessage as L, conversationIsMemberRoot as La, slackExternalRefIdSchema as Li, getPluginSystemPromptContributions as Ln, verifyEventAutomationCredentialSubject as Lr, stopConversationWork as Lt, estimateConversationContextTokens as M, createPluginLogger as Ma, postSlackMessage as Mi, agent_hooks_exports as Mn, listWatches as Mr, removeActiveConversation as Mt, getConversationMessageSlackTs as N, readConversationAccessFromSql as Na, removeReactionFromMessage as Ni, createPluginHookRunner as Nn, takeDueTimerWatches as Nr, requestAnotherSlice as Nt, resolveTaskTitle as O, sandboxSkillPathResolution as Oa, getSlackMessagePermalink as Oi, findLegacyWebActorUserId as On, createWatch as Or, markConversationWorkEnqueued as Ot, isHumanConversationMessage as P, conversationArchivedForEmail as Pa, updateSlackMessage as Pi, getPluginApiRoutes as Pn, bindEventAutomationCredentialSubject as Pr, requestConversationWork as Pt, continuableMessages as Q, readAttachmentVisionSummary as Qa, throwSandboxOperationError as Qi, insertReviewItem as Qn, getWorkspace as Qr, hasRuntimeTurnContext as Qt, turnHasReply as R, conversationNotArchivedForEmail as Ra, SlackActionError as Ri, getPluginTools as Rn, verifyScheduledAutomationCredentialSubject as Rr, TURN_LIMIT_WRAP_UP_MESSAGE as Rt, persistConversationMessages as S, SANDBOX_JUNIOR_ROOT as Sa, normalizeSlackReplyMarkdown as Si, getAgentContextCompactionTriggerTokens as Sn, RESOURCE_WATCH_TOOL_SOURCE as Sr, getConversationWorkState as St, resolveConversationTitle as T, SANDBOX_WORKSPACE_ROOT as Ta, truncateStatusText as Ti, isExperimentalFeatureEnabled as Tn, cancelWatch as Tr, isFinalAttempt as Tt, authorizationId as U, viewerConversationMembership as Ua, isConversationScopedChannel as Ui, coreTaskRegistrations as Un, getDashboardObjectIconLink as Ur, createTurnLimitGate as Ut, PluginCredentialFailureError as V, conversationViewerMarks as Va, getHeaderString as Vi, setPlugins as Vn, JUNIOR_THREAD_STATE_TTL_MS as Vr, TurnToolCallLimitExceededError as Vt, AuthPausePersistenceError as W, createPluginConversationEvents as Wa, isDmChannel as Wi, registration_exports as Wn, getDashboardReviewItemLink as Wr, isTurnExecutionLimitExceededError as Wt, getConversationPendingAuth as X, getSlackFileId as Xa, isAbortError as Xi, getOpenReviewItemByDedupeKey as Xn, createWorkspace as Xr, getUserMessageInstructionText as Xt, clearPendingAuth as Y, notInheritedByForkChild as Ya, runWithWorkspaceTeamId as Yi, dismissOpenReviewItems as Yn, renderToolResultNudge as Yr, getTerminalAssistantMessages as Yt, wasPendingAuthStopped as Z, matchSlackAttachments as Za, isAlreadyExistsError as Zi, getReviewItem as Zn, deleteWorkspace as Zr, hasCurrentInstruction as Zt, recordSubscribedReplyRoute as _, PluginToolDeniedError as _a, parseOAuthStatePayload as _i, getThreadStopDecision as _n, setConfigDefaults as _o, resolveAssignees as _r, completeConversationStop as _t, loadLastModelProfile as a, consumeSandboxEgressAuthRequiredSignal as aa, loadSnapshotsForProfile as ai, normalizeToolNameFromResult as an, defaultTimezone as ao, canActOnReviewItem as ar, listTurnSummaries as at, appendConversationMessages as b, SANDBOX_COMMAND_PATH as ba, escapeSlackMrkdwnText as bi, estimateTextTokens as bn, RESOURCE_SUBSCRIPTION_DEFAULT_TTL_MS as br, drainConversationMailbox as bt, loadTurnRoute as c, parseSandboxEgressCredentialToken as ca, create as ci, trimTrailingAssistantMessages as cn, createPluginCache as co, isOnlyAssignee as cr, CONVERSATION_WORK_STALE_ENQUEUE_MS as ct, recordAttachmentsDelivered as d, resolveSandboxCommandEnvironment as da, ensureDockerDaemon as di, TURN_CONTEXT_TAG as dn, historyItemFromPiMessage as do, requireReviewItemLinks as dr, appendInboundMessage as dt, WorkspaceSnapshotNotReadyError as ea, listWorkspaces as ei, isAssistantMessage as en, resolveRootVisibility as eo, listWaitingConversations as er, saveTurnCheckpoint as et, recordAuthenticationLinked as f, normalizeSandboxEgressTracePropagationDomains as fa, getSandboxProvider as fi, buildDeterministicAssistantMessageId as fn, piMessageFromHistoryItem as fo, reviewItemNeedsUser as fr, beginConversationResume as ft, recordMcpProviderConnected as g, workspaceRepoCheckoutPath as ga, formatProviderLabel as gi, getSubscribedReplyPreflightDecision as gn, getConfigDefaults as go, resolveAssignee as gr, clearExpiredConversationLease as gt, recordGuardianActionReviewed as h, tryWorkspaceRepoCheckoutPath as ha, deliverOAuthAuthorization as hi, decideSubscribedThreadReply as hn, conversationNoteEvent as ho, automationCreatorUserId as hr, clearConsumedConversationWake as ht, loadConversationProjection as i, clearSandboxEgressSignals as ia, invalidateReadySnapshot as ii, isToolResultMessage as in, listConversationAnnotationsById as io, PLUGIN_REVIEW_ITEM_KEY_PREFIX as ir, getTurnRecord as it, createConversationMemoryService as j, runNonInteractiveCommand as ja, postSlackEphemeralMessage as ji, resolvePluginOAuthAccount as jn, getWatch as jr, releaseConversationWork as jt, appendThreadContextMessages as k, buildCommandScript as ka, openSlackDirectMessage as ki, webActorUserIds as kn, deliverWatch as kr, recordAttemptFailure as kt, openConversationProjection as l, sandboxEgressSignalsResponseSchema as la, hash as li, REQUEST_CONTEXT_SECTION_TAG as ln, createDurableLocationConfigurationService as lo, readReviewItemAgentScope as lr, ackMessages as lt, recordAuthorizationRequested as m, sleep$2 as ma, proxyVercelSandboxEgressRequest as mi, SubscribedReplyReason as mn, JUNIOR_NATIVE_EVENT_NAMESPACE as mo, EVERYONE_ASSIGNEE as mr, checkInConversationWork as mt, commitMessages as n, isWorkspaceSnapshotNotReadyError as na, updateWorkspace as ni, isStandaloneRuntimeContextMessage as nn, createPluginAnnotations as no, takeReviewItem as nr, completeTurnRecord as nt, loadProjection as o, consumeSandboxEgressPermissionDeniedSignal as oa, setWorkspaceSnapshot as oi, retainRuntimeTurnContext as on, resolveUserTimezone as oo, canAgentChangeReviewItem as or, recordTurnSummary as ot, recordAuthorizationCompleted as p, SANDBOX_RUNTIME as pa, isVercelSandboxEgressRequest as pi, buildDeterministicTurnId as pn, projectConversationEvents as po, reviewItemReaderForUser as pr, cancelHumanFacingPendingMessages as pt, abandonReplacedPendingAuth as q, buildSentryConversationUrl as qa, withSlackRetries as qi, closeReviewItem as qn, ToolInputError as qr, extractAssistantText as qt, loadConnectedMcpProviders as r, workspaceSnapshotNotReadyUserMessage as ra, WorkspaceValidationError as ri, isToolResultError as rn, listConversationAnnotations as ro, updateReviewItemContent as rr, failTurnRecord as rt, loadTurnProjection as s, createSandboxEgressCredentialToken as sa, setWorkspaceSnapshotBuild as si, stripRuntimeTurnContext as sn, lookupSlackUser as so, canReadReviewItem as sr, CONVERSATION_WORK_CHECK_IN_INTERVAL_MS as st, commitAcceptedReply as t, getWorkspaceSnapshotNotReadyError as ta, listWorkspacesByRepository as ti, isContinuablePiBoundary as tn, saveObjectAnnotations as to, searchReviewItems as tr, abandonTurnRecord as tt, recordAgentsInstructionsUpdated as u, buildSandboxEgressNetworkPolicy as ua, isStale as ui, SESSION_CONTEXT_SECTION_TAG as un, configValueSchema as uo, requireReviewItemAssignees as ur, appendExclusiveInboundMessage as ut, recordToolExecutionStarted as v, createPluginEmbedder as va, resolveBaseUrl as vi, calculateContextCompactionTargetTokens as vn, resolveChannelCapabilities as vr, completeConversationWork as vt, persistConversationMessageSummaries as w, SANDBOX_SKILLS_ROOT as wa, slackMention as wi, getExperimentalFeatures as wn, cancelSubscriptions as wr, hasRunnableConversationWork as wt, hydrateConversationMessages as x, SANDBOX_DATA_ROOT as xa, formatSlackLink as xi, getAgentBackgroundCompactionMarkTokens as xn, RESOURCE_SUBSCRIPTION_MAX_TTL_MS as xr, getConversation as xt, recordTurnRoute as y, createPluginModel as ya, startOAuthFlow as yi, estimateRequestOverheadTokens as yn, getSlackToolContext as yr, deadLetterAttempt as yt, upsertConversationMessage as z, conversationNotArchivedForUser as za, downloadPrivateSlackFile as zi, getPluginUserPromptContributions as zn, verifySlackDirectCredentialSubject as zr, TurnBudgetExceededError as zt };
|
|
14737
|
+
export { completeTurnRecord as $, recordSlackAttachment as $a, isWorkspaceSnapshotNotReadyError as $i, takeReviewItem as $n, updateWorkspace as $r, isStandaloneRuntimeContextMessage as $t, getConversationMessageSlackTs as A, canAccessConversation as Aa, removeReactionFromMessage as Ai, createPluginHookRunner as An, takeDueTimerWatches as Ar, requestAnotherSlice as At, authorizationId as B, readConversationViewerMarks as Ba, isConversationScopedChannel as Bi, coreTaskRegistrations as Bn, getDashboardObjectIconLink as Br, createTurnLimitGate as Bt, settleConversationTitleWork as C, sandboxSkillDir as Ca, addReactionToMessage as Ci, setExperimentalFeatures as Cn, collectEventMatchKeys as Cr, isInvalidConversationRecordError as Ct, buildConversationContext as D, buildNonInteractiveShellScript as Da, openSlackModal as Di, getOAuthAccountProviders as Dn, findMatchingWatches as Dr, recordConversationRetry as Dt, appendThreadContextMessages as E, buildCommandScript as Ea, openSlackDirectMessage as Ei, webActorUserIds as En, deliverWatch as Er, recordAttemptFailure as Et, turnHasReply as F, conversationIsMemberRoot as Fa, SlackActionError as Fi, getPluginTools as Fn, verifyScheduledAutomationCredentialSubject as Fr, TURN_LIMIT_WRAP_UP_MESSAGE as Ft, canReusePendingAuthLink as G, readConversationEventPageAfter as Ga, getWorkspaceTeamId as Gi, countReviewItemsNeedingUser as Gn, createPluginState as Gr, getPiMessageRole as Gt, AuthorizationFlowDisabledError as H, createPluginConversationEvents as Ha, normalizeSlackConversationId as Hi, setBriefsConfig as Hn, getDashboardTaskLink as Hr, CODEMODE_TOOL_NAME as Ht, upsertConversationMessage as I, conversationNotArchivedForEmail as Ia, downloadPrivateSlackFile as Ii, getPluginUserPromptContributions as In, verifySlackDirectCredentialSubject as Ir, TurnBudgetExceededError as It, wasPendingAuthStopped as J, loadForkHistory as Ja, isAlreadyExistsError as Ji, getReviewItem as Jn, deleteWorkspace as Jr, hasCurrentInstruction as Jt, clearPendingAuth as K, readConversationEventPageAround as Ka, runWithWorkspaceTeamId as Ki, dismissOpenReviewItems as Kn, renderToolResultNudge as Kr, getTerminalAssistantMessages as Kt, createPluginEgress as L, conversationNotArchivedForUser as La, getFilePermalink as Li, getPlugins as Ln, verifyTimerWatchCredentialSubject as Lr, TurnSliceLimitExceededError as Lt, markConversationMessage as M, conversationArchivedForEmail as Ma, uploadFilesToConversation as Mi, getPluginRoutes as Mn, bindScheduledAutomationCredentialSubject as Mr, startConversationWork as Mt, normalizeConversationText as N, conversationArchivedForUser as Na, slackEntitySchema as Ni, getPluginSlackConversationLink as Nn, bindSlackDirectCredentialSubject as Nr, steerWebPendingMessages as Nt, createConversationMemoryService as O, runNonInteractiveCommand as Oa, postSlackEphemeralMessage as Oi, resolvePluginOAuthAccount as On, getWatch as Or, releaseConversationWork as Ot, recordDeliveredAssistantMessage as P, conversationHasParticipantUser as Pa, slackExternalRefIdSchema as Pi, getPluginSystemPromptContributions as Pn, verifyEventAutomationCredentialSubject as Pr, stopConversationWork as Pt, abandonTurnRecord as Q, readAttachmentVisionSummary as Qa, getWorkspaceSnapshotNotReadyError as Qi, searchReviewItems as Qn, listWorkspacesByRepository as Qr, isContinuablePiBoundary as Qt, PluginCredentialFailureError as R, conversationPinnedForUser as Ra, getHeaderString as Ri, setPlugins as Rn, JUNIOR_THREAD_STATE_TTL_MS as Rr, TurnToolCallLimitExceededError as Rt, resolveConversationTitle as S, SANDBOX_WORKSPACE_ROOT as Sa, truncateStatusText as Si, isExperimentalFeatureEnabled as Sn, cancelWatch as Sr, isFinalAttempt as St, resolveTaskTitle as T, sandboxSkillPathResolution as Ta, getSlackMessagePermalink as Ti, findLegacyWebActorUserId as Tn, createWatch as Tr, markConversationWorkEnqueued as Tt, AuthorizationPauseError as U, readLatestConversationBrief as Ua, runWithSlackInstallationToken as Ui, REVIEW_ITEM_REPLIED_REASON as Un, setDashboardConversationLinkOptions as Ur, persistWithRetry as Ut, AuthPausePersistenceError as V, viewerConversationMembership as Va, isDmChannel as Vi, registration_exports as Vn, getDashboardReviewItemLink as Vr, isTurnExecutionLimitExceededError as Vt, abandonReplacedPendingAuth as W, readConversationEventPage as Wa, withSlackRetries as Wi, closeReviewItem as Wn, ToolInputError as Wr, extractAssistantText as Wt, loadTurnCheckpoint as X, getSlackFileId as Xa, wrapSandboxSetupError as Xi, listReplyActionItems as Xn, getWorkspaceByName as Xr, instructionTextForProjection as Xt, continuableMessages as Y, notInheritedByForkChild as Ya, throwSandboxOperationError as Yi, insertReviewItem as Yn, getWorkspace as Yr, hasRuntimeTurnContext as Yt, saveTurnCheckpoint as Z, matchSlackAttachments as Za, WorkspaceSnapshotNotReadyError as Zi, listWaitingConversations as Zn, listWorkspaces as Zr, isAssistantMessage as Zt, appendConversationMessages as _, SANDBOX_COMMAND_PATH as _a, escapeSlackMrkdwnText as _i, estimateTextTokens as _n, setConfigDefaults as _o, RESOURCE_SUBSCRIPTION_DEFAULT_TTL_MS as _r, drainConversationMailbox as _t, loadProjection as a, parseSandboxEgressCredentialToken as aa, create as ai, trimTrailingAssistantMessages as an, defaultTimezone as ao, isOnlyAssignee as ar, CONVERSATION_WORK_STALE_ENQUEUE_MS as at, projectConversationMessages as b, SANDBOX_REPOS_ROOT as ba, normalizeSlackStatusText as bi, getAgentContextInputLimitTokens as bn, STOP_WATCHING_TOOL_NAME as br, hasConversationStop as bt, recordAgentsInstructionsUpdated as c, resolveSandboxCommandEnvironment as ca, ensureDockerDaemon as ci, TURN_CONTEXT_TAG as cn, createPluginCache as co, requireReviewItemLinks as cr, appendInboundMessage as ct, recordAuthorizationCompleted as d, sleep$2 as da, proxyVercelSandboxEgressRequest as di, SubscribedReplyReason as dn, historyItemFromPiMessage as do, EVERYONE_ASSIGNEE as dr, checkInConversationWork as dt, workspaceSnapshotNotReadyUserMessage as ea, WorkspaceValidationError as ei, isToolResultError as en, resolveRootVisibility as eo, updateReviewItemContent as er, failTurnRecord as et, recordAuthorizationRequested as f, tryWorkspaceRepoCheckoutPath as fa, deliverOAuthAuthorization as fi, decideSubscribedThreadReply as fn, piMessageFromHistoryItem as fo, automationCreatorUserId as fr, clearConsumedConversationWake as ft, recordToolExecutionStarted as g, createPluginModel as ga, startOAuthFlow as gi, estimateRequestOverheadTokens as gn, getConfigDefaults as go, getSlackToolContext as gr, deadLetterAttempt as gt, recordSubscribedReplyRoute as h, createPluginEmbedder as ha, resolveBaseUrl as hi, calculateContextCompactionTargetTokens as hn, conversationNoteEvent as ho, resolveChannelCapabilities as hr, completeConversationWork as ht, loadConversationProjection as i, createSandboxEgressCredentialToken as ia, setWorkspaceSnapshotBuild as ii, stripRuntimeTurnContext as in, listConversationAnnotationsById as io, canReadReviewItem as ir, CONVERSATION_WORK_CHECK_IN_INTERVAL_MS as it, isHumanConversationMessage as j, readConversationAccessFromSql as ja, updateSlackMessage as ji, getPluginApiRoutes as jn, bindEventAutomationCredentialSubject as jr, requestConversationWork as jt, estimateConversationContextTokens as k, createPluginLogger as ka, postSlackMessage as ki, agent_hooks_exports as kn, listWatches as kr, removeActiveConversation as kt, recordAttachmentsDelivered as l, normalizeSandboxEgressTracePropagationDomains as la, getSandboxProvider as li, buildDeterministicAssistantMessageId as ln, createDurableLocationConfigurationService as lo, reviewItemNeedsUser as lr, beginConversationResume as lt, recordMcpProviderConnected as m, PluginToolDeniedError as ma, parseOAuthStatePayload as mi, getThreadStopDecision as mn, JUNIOR_NATIVE_EVENT_NAMESPACE as mo, resolveAssignees as mr, completeConversationStop as mt, commitMessages as n, consumeSandboxEgressAuthRequiredSignal as na, loadSnapshotsForProfile as ni, normalizeToolNameFromResult as nn, createPluginAnnotations as no, canActOnReviewItem as nr, listTurnSummaries as nt, loadTurnProjection as o, sandboxEgressSignalsResponseSchema as oa, hash as oi, REQUEST_CONTEXT_SECTION_TAG as on, resolveUserTimezone as oo, readReviewItemAgentScope as or, ackMessages as ot, recordGuardianActionReviewed as p, workspaceRepoCheckoutPath as pa, formatProviderLabel as pi, getSubscribedReplyPreflightDecision as pn, projectConversationEvents as po, resolveAssignee as pr, clearExpiredConversationLease as pt, getConversationPendingAuth as q, buildSentryConversationUrl as qa, isAbortError as qi, getOpenReviewItemByDedupeKey as qn, createWorkspace as qr, getUserMessageInstructionText as qt, loadConnectedMcpProviders as r, consumeSandboxEgressPermissionDeniedSignal as ra, setWorkspaceSnapshot as ri, retainRuntimeTurnContext as rn, listConversationAnnotations as ro, canAgentChangeReviewItem as rr, recordTurnSummary as rt, openConversationProjection as s, buildSandboxEgressNetworkPolicy as sa, isStale as si, SESSION_CONTEXT_SECTION_TAG as sn, lookupSlackUser as so, requireReviewItemAssignees as sr, appendExclusiveInboundMessage as st, commitAcceptedReply as t, clearSandboxEgressSignals as ta, invalidateReadySnapshot as ti, isToolResultMessage as tn, saveObjectAnnotations as to, PLUGIN_REVIEW_ITEM_KEY_PREFIX as tr, getTurnRecord as tt, recordAuthenticationLinked as u, SANDBOX_RUNTIME as ua, isVercelSandboxEgressRequest as ui, buildDeterministicTurnId as un, configValueSchema as uo, reviewItemReaderForUser as ur, cancelHumanFacingPendingMessages as ut, hydrateConversationMessages as v, SANDBOX_DATA_ROOT as va, formatSlackLink as vi, getAgentBackgroundCompactionMarkTokens as vn, RESOURCE_SUBSCRIPTION_MAX_TTL_MS as vr, getConversation as vt, fallbackShortTitle as w, sandboxSkillFile as wa, deleteSlackMessage as wi, createUserTokenStore as wn, createTimerWatch as wr, listActiveConversationIds as wt, persistConversationMessageSummaries as x, SANDBOX_SKILLS_ROOT as xa, slackMention as xi, getExperimentalFeatures as xn, cancelSubscriptions as xr, hasRunnableConversationWork as xt, persistConversationMessages as y, SANDBOX_JUNIOR_ROOT as ya, normalizeSlackReplyMarkdown as yi, getAgentContextCompactionTriggerTokens as yn, RESOURCE_WATCH_TOOL_SOURCE as yr, getConversationWorkState as yt, createPluginAuthOrchestration as z, conversationViewerMarks as za, getSlackClient as zi, validatePlugins as zn, getDashboardConversationLink as zr, buildTurnErrorResponse as zt };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { H as conversationBriefSchema, U as parseBriefInput, V as briefOutcomeStatusSchema } from "./conversation-CZfyQvdm.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
// src/chat/briefs/generate.ts
|
|
4
4
|
const MAX_INPUT_CHARS = 6e4;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as setSpanAttributes, h as logWarn, m as logInfo } from "./logging-
|
|
1
|
+
import { b as setSpanAttributes, h as logWarn, m as logInfo } from "./logging-dFaXvBRK.js";
|
|
2
2
|
import { o as isUserActor, s as parseActorUserId } from "./actor-B4DYygOB.js";
|
|
3
3
|
import { n as normalizePluginPackageNames, o as pluginRoots, t as discoverInstalledPluginPackageContent } from "./package-discovery-DJBompdd.js";
|
|
4
4
|
import path from "node:path";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { E as withSpan, b as setSpanAttributes } from "./logging-
|
|
3
|
-
import { r as getStateAdapter } from "./adapter-
|
|
1
|
+
import { Oa as runNonInteractiveCommand, Sa as SANDBOX_WORKSPACE_ROOT, _a as SANDBOX_COMMAND_PATH, ai as create, da as sleep, li as getSandboxProvider, si as isStale } from "./projection-BTge9wrH.js";
|
|
2
|
+
import { E as withSpan, b as setSpanAttributes } from "./logging-dFaXvBRK.js";
|
|
3
|
+
import { r as getStateAdapter } from "./adapter-BXosqTMx.js";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
// src/chat/sandbox/resources.ts
|
|
6
6
|
let configuredResources;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-nwUcYXjP.js";
|
|
2
|
-
import {
|
|
2
|
+
import { nt as listTurnSummaries, tt as getTurnRecord } from "./projection-BTge9wrH.js";
|
|
3
3
|
import { t as createActor } from "./actor-B4DYygOB.js";
|
|
4
|
-
import {
|
|
5
|
-
import { f as credentialContextForActor } from "./registry-
|
|
6
|
-
import { wt as listUnreportedSiblingAgents } from "./agent-runner-
|
|
7
|
-
import { a as EVENT_SYSTEM_ACTOR, i as EVENT_MESSAGE_AUTHOR, o as isEventConversationMessage } from "./prompt-
|
|
8
|
-
import { _ as getLatestAgentInvocationForConversation, c as getAgentInvocation, d as getAgentInvocationIdForResult, l as getAgentInvocationIdForEvents, o as createAgentInvocationFromLatest, p as getAgentInvocationResultMessageId, u as getAgentInvocationIdForMessage, w as markAgentInvocationParentMailboxAppended, y as isTerminalAgentInvocation } from "./store-
|
|
9
|
-
import { a as EVENT_WAIT_MS, c as isEventMailboxMetadata, l as renderEventBatchText, u as timerWatchCredentialSubject } from "./session-stop-
|
|
10
|
-
import { r as appendAndEnqueueInboundMessage } from "./store-
|
|
11
|
-
import { a as resolveAgentInvocationId, i as enqueueAgentInvocation, t as createAgentInvocationWorker } from "./work-
|
|
4
|
+
import { F as SYSTEM_IDENTITY_ID } from "./viewer-DLXajQZE.js";
|
|
5
|
+
import { f as credentialContextForActor } from "./registry-Cp6CNmtP.js";
|
|
6
|
+
import { wt as listUnreportedSiblingAgents } from "./agent-runner-DE-43MPb.js";
|
|
7
|
+
import { a as EVENT_SYSTEM_ACTOR, i as EVENT_MESSAGE_AUTHOR, o as isEventConversationMessage } from "./prompt-DDtCnlHP.js";
|
|
8
|
+
import { _ as getLatestAgentInvocationForConversation, c as getAgentInvocation, d as getAgentInvocationIdForResult, l as getAgentInvocationIdForEvents, o as createAgentInvocationFromLatest, p as getAgentInvocationResultMessageId, u as getAgentInvocationIdForMessage, w as markAgentInvocationParentMailboxAppended, y as isTerminalAgentInvocation } from "./store-BGBzQWNf.js";
|
|
9
|
+
import { a as EVENT_WAIT_MS, c as isEventMailboxMetadata, l as renderEventBatchText, u as timerWatchCredentialSubject } from "./session-stop-BsS4qFS2.js";
|
|
10
|
+
import { r as appendAndEnqueueInboundMessage } from "./store-CGJZTEVz.js";
|
|
11
|
+
import { a as resolveAgentInvocationId, i as enqueueAgentInvocation, t as createAgentInvocationWorker } from "./work-DRGSlfia.js";
|
|
12
12
|
import { z } from "zod";
|
|
13
13
|
import { createEventSource, createLocalSource, createWebSource } from "@sentry/junior-plugin-api";
|
|
14
14
|
// src/chat/conversations/web-mailbox.ts
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { S as setTags, T as withLogContext, p as logException } from "./logging-
|
|
3
|
-
import {
|
|
4
|
-
import { f as credentialContextForActor } from "./registry-
|
|
5
|
-
import {
|
|
6
|
-
import { $ as markTurnFailed, et as startActiveTurn } from "./store-
|
|
7
|
-
import { n as getAssistantReplyText } from "./assistant-reply-
|
|
8
|
-
import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-
|
|
9
|
-
import { a as persistThreadStateById, n as getPersistedSandboxState, o as coerceThreadConversationState, r as getPersistedThreadState } from "./thread-state-
|
|
10
|
-
import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-
|
|
11
|
-
import { i as completeAuthPauseTurn, l as buildDeliveredTurnStatePatch, t as finalizeFailedTurnReplyWithEvent, u as loadPendingMessageCards } from "./turn-failure-response-
|
|
1
|
+
import { B as authorizationId, D as buildConversationContext, I as upsertConversationMessage, M as markConversationMessage, N as normalizeConversationText, P as recordDeliveredAssistantMessage, Ut as persistWithRetry, Z as saveTurnCheckpoint, a as loadProjection, d as recordAuthorizationCompleted, t as commitAcceptedReply, v as hydrateConversationMessages, y as persistConversationMessages } from "./projection-BTge9wrH.js";
|
|
2
|
+
import { S as setTags, T as withLogContext, p as logException } from "./logging-dFaXvBRK.js";
|
|
3
|
+
import { F as SYSTEM_IDENTITY_ID, x as getConversationStore, y as getConversationEventStore } from "./viewer-DLXajQZE.js";
|
|
4
|
+
import { f as credentialContextForActor } from "./registry-Cp6CNmtP.js";
|
|
5
|
+
import { j as messageCardText } from "./conversation-CZfyQvdm.js";
|
|
6
|
+
import { $ as markTurnFailed, et as startActiveTurn } from "./store-BGBzQWNf.js";
|
|
7
|
+
import { n as getAssistantReplyText } from "./assistant-reply-pauL6qyn.js";
|
|
8
|
+
import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-Bo4Trccw.js";
|
|
9
|
+
import { a as persistThreadStateById, n as getPersistedSandboxState, o as coerceThreadConversationState, r as getPersistedThreadState } from "./thread-state-BSu6rM6p.js";
|
|
10
|
+
import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-noxjOjkM.js";
|
|
11
|
+
import { i as completeAuthPauseTurn, l as buildDeliveredTurnStatePatch, t as finalizeFailedTurnReplyWithEvent, u as loadPendingMessageCards } from "./turn-failure-response-wahwyPrZ.js";
|
|
12
12
|
import { randomUUID } from "node:crypto";
|
|
13
13
|
import { createLocalSource, localDestinationSchema } from "@sentry/junior-plugin-api";
|
|
14
14
|
// src/chat/local/runner.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { oa as sandboxEgressSignalsResponseSchema } from "./projection-BTge9wrH.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;
|