@sentry/junior 0.280.0 → 0.282.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-DVN3iwf9.js → adapter-BAqo7eOH.js} +1 -1
- package/dist/{admin-Q_UI--9W.js → admin-DbWpMHh6.js} +1 -1
- package/dist/{agent-runner-_PYLv4Qo.js → agent-runner-h4CDcnDV.js} +1001 -981
- 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 +39 -33
- package/dist/{app-CL2zzzE0.d.ts → app-B-0wwAxr.d.ts} +2 -2
- package/dist/app.d.ts +1 -1
- package/dist/app.js +42 -34
- package/dist/{assistant-reply-DbebsAxi.js → assistant-reply-4Wvo95-N.js} +1 -1
- package/dist/{automation-CPqRFjIa.js → automation-sIsmIXH7.js} +1 -1
- package/dist/{background-compaction-queue-B9lmh8Ml.js → background-compaction-queue-CoWqScCC.js} +2 -2
- package/dist/{briefs-Dej7V0Bz.js → briefs-CMiotFo9.js} +4 -8
- package/dist/{catalog-runtime-DpN0sWQ6.js → catalog-runtime-Cpje_Uic.js} +1 -1
- package/dist/cli/chat.js +14 -14
- 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 +4 -4
- package/dist/cli/upgrade.d.ts +1 -1
- package/dist/cli/upgrade.js +74 -7
- package/dist/{client-h2A2ZPzY.js → client-BHgCXeaF.js} +2 -2
- package/dist/{config-CusBFORe.js → config-DBdBimZ9.js} +1 -1
- package/dist/{connections-C4h6mGha.js → connections-DjY72_uF.js} +10 -10
- package/dist/{conversation-DExTZw8B.js → conversation-DNtcULyX.js} +29 -8
- package/dist/{conversation-pending-messages-Dgz6hrJs.js → conversation-pending-messages-LlFnr9-m.js} +10 -2
- package/dist/{conversation-privacy-2cm6OpNg.js → conversation-privacy-DiDh9KE4.js} +1 -1
- package/dist/{credential-sync-DK06Jgt-.js → credential-sync-DUrQwccr.js} +13 -13
- package/dist/{db-Dsvk1Tp1.d.ts → db-hQsoB16L.d.ts} +2 -1
- package/dist/{executor-Cmr0J8W3.js → executor-CGqJCxgR.js} +14 -3
- package/dist/instrumentation.js +2 -2
- package/dist/{logging-CGnh65_X.js → logging-DapIaJAi.js} +1 -1
- package/dist/{message-RpAnqHPY.js → message-BjN5sKad.js} +9 -9
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +3 -11
- package/dist/{oauth-callback-server-BBnhVKuX.js → oauth-callback-server-DVHKrjJP.js} +2 -2
- package/dist/{projection-C1MghKyI.js → projection-ii_OYu6z.js} +78 -30
- package/dist/{prompt-BcHg-BMy.js → prompt-DI6KCtwb.js} +5 -26
- package/dist/{registry-DR7DjX9H.js → registry-DpjG3yS-.js} +1 -1
- package/dist/{resolve-0Ful4oDv.js → resolve-iMW9Dgo2.js} +3 -3
- package/dist/{result-Dd9kCuQ-.js → result-BrlvfyIj.js} +9 -9
- package/dist/{runner-yiY8gUUu.js → runner-Bg9mr2pB.js} +11 -11
- package/dist/{sandbox-egress-signals-BzQVHCMz.js → sandbox-egress-signals-Bd3lb_Wd.js} +1 -1
- package/dist/{schema-C5pEgfHc.js → schema-BN34Jy-U.js} +3 -3
- package/dist/{schema-BkMmF552.d.ts → schema-CsqJzkP5.d.ts} +68 -9
- package/dist/{service-account-Cu7HFLZQ.js → service-account-Bd1348kw.js} +3 -3
- package/dist/{service-account-PIMpWZHF.js → service-account-Dfl9Pitm.js} +3 -3
- package/dist/{session-stop-CDEMsNtv.js → session-stop-CVEEx_YD.js} +12 -12
- package/dist/{skills-B2xIoe0f.js → skills-DqUUuf4L.js} +2 -2
- package/dist/{spawn-C0DySQRV.js → spawn-e7rQs14T.js} +2 -2
- package/dist/{stop-Dj5-nrAo.js → stop-DtpBUUJq.js} +353 -135
- package/dist/{store-Dlio-o6u.js → store-nETG4KVg.js} +4 -4
- package/dist/{store-QzOfDwKA.js → store-nu3Xx08K.js} +3 -3
- package/dist/{task-queue-Cp1V_XW3.js → task-queue-CYje8WKs.js} +3 -3
- package/dist/{task-runner-CQkkUj3o.js → task-runner-CwegN45x.js} +6 -6
- package/dist/{thread-state-Bn87cfzE.js → thread-state-BDaMl9yd.js} +4 -4
- package/dist/{turn-failure-response-CQebxByj.js → turn-failure-response-CV06tN_R.js} +7 -7
- package/dist/{turn-lifecycle-CJJsOhXB.js → turn-lifecycle-CF2N7ud5.js} +1 -1
- package/dist/{turn-session-routing-bmG330Cf.js → turn-session-routing-BIJGJjVh.js} +9 -9
- package/dist/{validation-D1wcf7hp.js → validation-DXvxEEjq.js} +1 -1
- package/dist/{version-BeHSXUK6.js → version-CzEk1KBX.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-BZ0Hp5Nb.js → viewer-C2PztlYX.js} +22 -8
- package/dist/{work-BTcCIbWu.js → work-BM_L0Pv9.js} +10 -10
- package/dist/{worker-D3fDK6zc.js → worker-2no53G60.js} +6 -6
- package/migrations/0062_plugin_report_index.sql +3 -3
- package/migrations/0078_plugin_conversation_index.sql +3 -3
- package/migrations/0079_conversation_event_author_index.sql +3 -3
- package/migrations/0080_conversation_event_latest_message_indexes.sql +27 -0
- package/migrations/meta/0080_snapshot.json +4265 -0
- package/migrations/meta/_journal.json +7 -0
- package/package.json +5 -5
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { a as getClient$1, n as captureMessage, r as continueTrace, v as __exportAll } from "./sentry-BRTJqumy.js";
|
|
2
|
-
import { a as completeText, 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, w as toOptionalTrimmed, x as isProviderRetryError } from "./client-
|
|
3
|
-
import { i as getChatConfig, n as botConfig, o as getSlackBotToken, v as normalizeSlackEmojiName } from "./config-
|
|
4
|
-
import { E as withSpan, G as toOptionalNumber, K as toOptionalString, W as isRecord$2, _ 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, t as buildTurnFailureResponse, y as setSentryUser } from "./logging-
|
|
5
|
-
import { t as canExposeConversationPayload } from "./conversation-privacy-
|
|
1
|
+
import { a as getClient$1, h as startSpan, n as captureMessage, r as continueTrace, v as __exportAll } from "./sentry-BRTJqumy.js";
|
|
2
|
+
import { a as completeText, 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, w as toOptionalTrimmed, x as isProviderRetryError } from "./client-BHgCXeaF.js";
|
|
3
|
+
import { i as getChatConfig, n as botConfig, o as getSlackBotToken, v as normalizeSlackEmojiName } from "./config-DBdBimZ9.js";
|
|
4
|
+
import { E as withSpan, G as toOptionalNumber, K as toOptionalString, W as isRecord$2, _ 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, t as buildTurnFailureResponse, y as setSentryUser } from "./logging-DapIaJAi.js";
|
|
5
|
+
import { t as canExposeConversationPayload } from "./conversation-privacy-DiDh9KE4.js";
|
|
6
6
|
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-6jsm_v96.js";
|
|
7
|
-
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,
|
|
8
|
-
import { A as
|
|
7
|
+
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, x as getConversationStore, y as getConversationEventStore } from "./viewer-C2PztlYX.js";
|
|
8
|
+
import { A as juniorConversations, C as juniorConversationEvents, D as juniorCodeRepositories, E as juniorCodeChanges, M as juniorUsers, N as juniorDestinations, O as juniorAttachments, T as juniorConversationAnnotations, _ as juniorConversationParticipants, a as juniorReviewItemAssignees, c as juniorReviewItems, d as juniorAutomations, i as juniorWorkspaces, j as juniorIdentities, n as juniorSnapshots, o as juniorReviewItemConversations, p as juniorLocationConfigurations, r as juniorWorkspaceRepos, y as juniorConversationBriefs } from "./executor-CGqJCxgR.js";
|
|
9
9
|
import { a as agentHistoryItemSchema, g as instructionProvenanceFor, h as instructionActors, m as contextProvenance } from "./media-Dq9_svfQ.js";
|
|
10
|
-
import { _ as CredentialUnavailableError, a as resolveAuthTokenPlaceholder, f as credentialContextForActor, h as credentialSubjectSchema, m as credentialLogContext, o as resolvePluginCommandEnv, p as credentialContextSchema } from "./registry-
|
|
11
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
10
|
+
import { _ as CredentialUnavailableError, a as resolveAuthTokenPlaceholder, f as credentialContextForActor, h as credentialSubjectSchema, m as credentialLogContext, o as resolvePluginCommandEnv, p as credentialContextSchema } from "./registry-DpjG3yS-.js";
|
|
11
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-Cpje_Uic.js";
|
|
12
12
|
import { a as withLock, i as fenceLock, n as MUTATION_LOCK_TTL_MS, r as acquireActiveLock } from "./locks-D-0h111u.js";
|
|
13
|
-
import { n as getDefaultRedisStateAdapterFor, r as getStateAdapter } from "./adapter-
|
|
13
|
+
import { n as getDefaultRedisStateAdapterFor, r as getStateAdapter } from "./adapter-BAqo7eOH.js";
|
|
14
14
|
import { i as isValidTimeZone } from "./cadence-R7Em4RjE.js";
|
|
15
|
-
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-
|
|
16
|
-
import { n as briefEntriesFromReportEvents, s as generateBrief, t as BRIEF_PROMPT } from "./prompt-
|
|
15
|
+
import { A as messageCardRef, H as conversationBriefSchema, M as readMessageCardRefs, O as reviewItemChangeRecordSchema, R as readMessageAttachments, U as parseBriefInput, W as parseStoredBrief, _ as conversationReportMessageEventSchema, g as conversationReportEventSchema } from "./conversation-DNtcULyX.js";
|
|
16
|
+
import { n as briefEntriesFromReportEvents, s as generateBrief, t as BRIEF_PROMPT } from "./prompt-DI6KCtwb.js";
|
|
17
17
|
import { n as redactSandboxEgressProxyPath, t as SANDBOX_EGRESS_PROXY_PATH } from "./proxy-path-BHYoKZdq.js";
|
|
18
18
|
import path from "node:path";
|
|
19
19
|
import { isDeepStrictEqual } from "node:util";
|
|
@@ -708,7 +708,7 @@ async function listConversationAnnotationsById(db, conversationIds) {
|
|
|
708
708
|
const rows = await db.select({
|
|
709
709
|
annotation: juniorConversationAnnotations,
|
|
710
710
|
rootConversationId: juniorConversations.rootConversationId
|
|
711
|
-
}).from(juniorConversationAnnotations).innerJoin(juniorConversations, eq(juniorConversations.conversationId, juniorConversationAnnotations.conversationId)).where(or(inArray(
|
|
711
|
+
}).from(juniorConversationAnnotations).innerJoin(juniorConversations, eq(juniorConversations.conversationId, juniorConversationAnnotations.conversationId)).where(or(inArray(juniorConversations.conversationId, [...requested]), inArray(juniorConversations.rootConversationId, [...requested]))).orderBy(desc(juniorConversationAnnotations.updatedAt));
|
|
712
712
|
const seen = /* @__PURE__ */ new Set();
|
|
713
713
|
for (const { annotation: row, rootConversationId } of rows) {
|
|
714
714
|
const annotation = annotationFromRow(row);
|
|
@@ -808,8 +808,14 @@ async function resolveRootVisibility(executor, conversationId) {
|
|
|
808
808
|
return readCandidateVisibility(executor, candidate);
|
|
809
809
|
}
|
|
810
810
|
// src/chat/briefs/events.ts
|
|
811
|
-
|
|
812
|
-
|
|
811
|
+
function renderBriefUpdated(event) {
|
|
812
|
+
return {
|
|
813
|
+
icon: "activity",
|
|
814
|
+
title: `Brief updated (v${event.version})`
|
|
815
|
+
};
|
|
816
|
+
}
|
|
817
|
+
/** Previous stored Brief event shape retained for transcript rendering. */
|
|
818
|
+
const briefUpdatedEventV1 = defineConversationEvent({
|
|
813
819
|
name: "brief_updated",
|
|
814
820
|
version: 1,
|
|
815
821
|
schema: z.object({
|
|
@@ -820,12 +826,20 @@ const briefUpdatedEvent = defineConversationEvent({
|
|
|
820
826
|
openDecisions: z.number().int().nonnegative(),
|
|
821
827
|
links: z.number().int().nonnegative()
|
|
822
828
|
}).strict(),
|
|
823
|
-
renderEvent
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
+
renderEvent: renderBriefUpdated
|
|
830
|
+
});
|
|
831
|
+
/** Durable cost and size record for one stored Brief version. */
|
|
832
|
+
const briefUpdatedEvent = defineConversationEvent({
|
|
833
|
+
name: "brief_updated",
|
|
834
|
+
version: 2,
|
|
835
|
+
schema: z.object({
|
|
836
|
+
version: z.number().int().positive(),
|
|
837
|
+
modelId: z.string().min(1),
|
|
838
|
+
costUsd: z.number().finite().nonnegative().optional(),
|
|
839
|
+
decisions: z.number().int().nonnegative(),
|
|
840
|
+
links: z.number().int().nonnegative()
|
|
841
|
+
}).strict(),
|
|
842
|
+
renderEvent: renderBriefUpdated
|
|
829
843
|
});
|
|
830
844
|
// src/chat/slack/attachments.ts
|
|
831
845
|
/** Save the vision summary for a stored Slack attachment. */
|
|
@@ -849,6 +863,15 @@ async function matchSlackAttachments(args) {
|
|
|
849
863
|
filename: juniorAttachments.filename
|
|
850
864
|
}).from(juniorAttachments).where(and(eq(juniorAttachments.conversationId, args.conversationId), eq(juniorAttachments.provider, "slack"), inArray(juniorAttachments.providerId, args.providerIds), isNull(juniorAttachments.deleteRequestedAt)));
|
|
851
865
|
}
|
|
866
|
+
/**
|
|
867
|
+
* Fingerprint the live Slack attachments that `matchSlackAttachments` can
|
|
868
|
+
* return for a Conversation. It changes when one is stored or deleted, so a
|
|
869
|
+
* reader can tell that stored messages may now show other files.
|
|
870
|
+
*/
|
|
871
|
+
async function readSlackAttachmentsVersion(db, conversationId) {
|
|
872
|
+
const [row] = await db.db().select({ version: sql`coalesce(md5(string_agg(${juniorAttachments.id}, ',' order by ${juniorAttachments.id})), '')` }).from(juniorAttachments).where(and(eq(juniorAttachments.conversationId, conversationId), eq(juniorAttachments.provider, "slack"), isNull(juniorAttachments.deleteRequestedAt)));
|
|
873
|
+
return row?.version ?? "";
|
|
874
|
+
}
|
|
852
875
|
/** Read the Slack file identity retained by the Chat SDK. */
|
|
853
876
|
function getSlackFileId(attachment) {
|
|
854
877
|
const metadataId = attachment.fetchMetadata?.fileId;
|
|
@@ -1463,6 +1486,13 @@ async function readFirstTurnStart(executor, conversationId) {
|
|
|
1463
1486
|
});
|
|
1464
1487
|
return row ? eventFromRow(row) : void 0;
|
|
1465
1488
|
}
|
|
1489
|
+
function projectEventPage(args) {
|
|
1490
|
+
return startSpan({
|
|
1491
|
+
attributes: { "app.conversation.event.count": args.events.length },
|
|
1492
|
+
name: "Project conversation events",
|
|
1493
|
+
op: "function"
|
|
1494
|
+
}, () => projectConversationReportEventPage(args));
|
|
1495
|
+
}
|
|
1466
1496
|
/** Resolve entity starts that precede the page, then project it once. */
|
|
1467
1497
|
async function projectConversationEvents(executor, args) {
|
|
1468
1498
|
const events = args.events.sort((left, right) => left.seq - right.seq);
|
|
@@ -1504,7 +1534,7 @@ async function projectConversationEvents(executor, args) {
|
|
|
1504
1534
|
}),
|
|
1505
1535
|
args.canExposePayload ? hydrateMessageAttachments(executor, args.conversationId, events) : void 0
|
|
1506
1536
|
]);
|
|
1507
|
-
return
|
|
1537
|
+
return projectEventPage({
|
|
1508
1538
|
canExposePayload: args.canExposePayload,
|
|
1509
1539
|
events,
|
|
1510
1540
|
...args.firstTurnStart ? { firstTurnStart: args.firstTurnStart } : void 0,
|
|
@@ -1537,9 +1567,13 @@ async function scanConversationEventPage(executor, args) {
|
|
|
1537
1567
|
}), firstTurnStartRead]);
|
|
1538
1568
|
firstTurnStart = turnStart;
|
|
1539
1569
|
if (batch.length === 0) break;
|
|
1540
|
-
const decoded =
|
|
1570
|
+
const decoded = startSpan({
|
|
1571
|
+
attributes: { "app.conversation.event.count": batch.length },
|
|
1572
|
+
name: "Decode conversation events",
|
|
1573
|
+
op: "function"
|
|
1574
|
+
}, () => batch.map(eventFromRow).sort((left, right) => left.seq - right.seq));
|
|
1541
1575
|
events.push(...decoded);
|
|
1542
|
-
counted +=
|
|
1576
|
+
counted += projectEventPage({
|
|
1543
1577
|
canExposePayload: args.canExposePayload,
|
|
1544
1578
|
events: decoded,
|
|
1545
1579
|
...firstTurnStart ? { firstTurnStart } : void 0
|
|
@@ -1800,7 +1834,7 @@ function briefVersionFromRow(row) {
|
|
|
1800
1834
|
version: row.version,
|
|
1801
1835
|
turnId: row.turnId,
|
|
1802
1836
|
throughSeq: row.throughSeq,
|
|
1803
|
-
content:
|
|
1837
|
+
content: parseStoredBrief(row.content),
|
|
1804
1838
|
searchText: row.searchText,
|
|
1805
1839
|
modelId: row.modelId,
|
|
1806
1840
|
...row.costUsd !== null ? { costUsd: row.costUsd } : void 0,
|
|
@@ -1881,7 +1915,6 @@ async function emitBriefUpdated(context, stored) {
|
|
|
1881
1915
|
modelId: stored.modelId,
|
|
1882
1916
|
...stored.costUsd !== void 0 ? { costUsd: stored.costUsd } : void 0,
|
|
1883
1917
|
decisions: stored.content.decisions.length,
|
|
1884
|
-
openDecisions: stored.content.openDecisions.length,
|
|
1885
1918
|
links: stored.content.links.length
|
|
1886
1919
|
}));
|
|
1887
1920
|
}
|
|
@@ -1955,7 +1988,7 @@ const briefsTaskRegistration = {
|
|
|
1955
1988
|
displayName: "Briefs",
|
|
1956
1989
|
description: "Durable Conversation Brief generation"
|
|
1957
1990
|
},
|
|
1958
|
-
conversationEvents: [briefUpdatedEvent],
|
|
1991
|
+
conversationEvents: [briefUpdatedEventV1, briefUpdatedEvent],
|
|
1959
1992
|
hooks: { async operationalReport(context) {
|
|
1960
1993
|
return await buildBriefsOperationalReport({
|
|
1961
1994
|
briefDays: await context.eventStats.costsByDay({
|
|
@@ -2066,8 +2099,7 @@ async function conversationViewerMarks(db, conversationIds, subject) {
|
|
|
2066
2099
|
}]));
|
|
2067
2100
|
}
|
|
2068
2101
|
/** Read one viewer's archive and pin times for a conversation root. */
|
|
2069
|
-
async function readConversationViewerMarks(viewer,
|
|
2070
|
-
const rootConversationId = await resolveRootConversationId(getSqlExecutor(), conversationId);
|
|
2102
|
+
async function readConversationViewerMarks(viewer, rootConversationId) {
|
|
2071
2103
|
return (await conversationViewerMarks(getDb(), [rootConversationId], { userId: viewer.id })).get(rootConversationId);
|
|
2072
2104
|
}
|
|
2073
2105
|
/** True when one user pinned this root. Feeds sort these rows first. */
|
|
@@ -2129,6 +2161,22 @@ async function readConversationAccessFromSql(db, conversationIds, viewer) {
|
|
|
2129
2161
|
}));
|
|
2130
2162
|
}
|
|
2131
2163
|
/**
|
|
2164
|
+
* Read access for one request. Each id is read at most once, so the parts of
|
|
2165
|
+
* one response that need the same Conversation share a query.
|
|
2166
|
+
*/
|
|
2167
|
+
function createConversationAccessReader(db, viewer) {
|
|
2168
|
+
const byId = /* @__PURE__ */ new Map();
|
|
2169
|
+
return async (conversationIds) => {
|
|
2170
|
+
const missing = [...new Set(conversationIds)].filter((id) => !byId.has(id));
|
|
2171
|
+
if (missing.length > 0) {
|
|
2172
|
+
const read = readConversationAccessFromSql(db, missing, viewer);
|
|
2173
|
+
for (const id of missing) byId.set(id, read.then((access) => access.get(id)));
|
|
2174
|
+
}
|
|
2175
|
+
const entries = await Promise.all(conversationIds.map(async (id) => [id, await byId.get(id)]));
|
|
2176
|
+
return new Map(entries.flatMap(([id, access]) => access ? [[id, access]] : []));
|
|
2177
|
+
};
|
|
2178
|
+
}
|
|
2179
|
+
/**
|
|
2132
2180
|
* Apply `policies/conversation-access.md`: whether work in the `requester`
|
|
2133
2181
|
* Conversation may read or find the data of the `target` Conversation. The
|
|
2134
2182
|
* person of the Turn does not change the result. A private Conversation is
|
|
@@ -14854,4 +14902,4 @@ async function recordGuardianActionReviewed(args) {
|
|
|
14854
14902
|
createdAtMs: Date.now()
|
|
14855
14903
|
}]);
|
|
14856
14904
|
}
|
|
14857
|
-
export { completeTurnRecord as $, notInheritedByForkChild as $a, isWorkspaceSnapshotNotReadyError as $i, takeReviewItem as $n, updateWorkspace as $r, isStandaloneRuntimeContextMessage as $t, getConversationMessageSlackTs as A, createPluginLogger as Aa, removeReactionFromMessage as Ai, createPluginHookRunner as An, takeDueTimerWatches as Ar, requestAnotherSlice as At, authorizationId as B, conversationViewerMarks 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, conversationHasParticipantUser as Fa, SlackActionError as Fi, getPluginTools as Fn, verifyScheduledAutomationCredentialSubject as Fr, TURN_LIMIT_WRAP_UP_MESSAGE as Ft, canReusePendingAuthLink as G, readLatestConversationBrief as Ga, getWorkspaceTeamId as Gi, countReviewItemsNeedingUser as Gn, createPluginState as Gr, getPiMessageRole as Gt, AuthorizationFlowDisabledError as H, viewerConversationMembership as Ha, normalizeSlackConversationId as Hi, setBriefsConfig as Hn, getDashboardTaskLink as Hr, CODEMODE_TOOL_NAME as Ht, upsertConversationMessage as I, conversationIsMemberRoot as Ia, downloadPrivateSlackFile as Ii, getPluginUserPromptContributions as In, verifySlackDirectCredentialSubject as Ir, TurnBudgetExceededError as It, wasPendingAuthStopped as J, readConversationEventPageAround as Ja, isAlreadyExistsError as Ji, getReviewItem as Jn, deleteWorkspace as Jr, hasCurrentInstruction as Jt, clearPendingAuth as K, readConversationEventPage as Ka, runWithWorkspaceTeamId as Ki, dismissOpenReviewItems as Kn, renderToolResultNudge as Kr, getTerminalAssistantMessages as Kt, createPluginEgress as L, conversationNotArchivedForEmail as La, getFilePermalink as Li, getPlugins as Ln, verifyTimerWatchCredentialSubject as Lr, TurnSliceLimitExceededError as Lt, markConversationMessage as M, readConversationAccessFromSql as Ma, uploadFilesToConversation as Mi, getPluginRoutes as Mn, bindScheduledAutomationCredentialSubject as Mr, startConversationWork as Mt, normalizeConversationText as N, conversationArchivedForEmail 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, conversationArchivedForUser as Pa, slackExternalRefIdSchema as Pi, getPluginSystemPromptContributions as Pn, verifyEventAutomationCredentialSubject as Pr, stopConversationWork as Pt, abandonTurnRecord as Q, loadForkHistory as Qa, getWorkspaceSnapshotNotReadyError as Qi, searchReviewItems as Qn, listWorkspacesByRepository as Qr, isContinuablePiBoundary as Qt, PluginCredentialFailureError as R, conversationNotArchivedForUser 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, createPluginConversationEvents as Ua, runWithSlackInstallationToken as Ui, REVIEW_ITEM_REPLIED_REASON as Un, setDashboardConversationLinkOptions as Ur, persistWithRetry as Ut, AuthPausePersistenceError as V, readConversationViewerMarks as Va, isDmChannel as Vi, registration_exports as Vn, getDashboardReviewItemLink as Vr, isTurnExecutionLimitExceededError as Vt, abandonReplacedPendingAuth as W, readConversationBriefThrough as Wa, withSlackRetries as Wi, closeReviewItem as Wn, ToolInputError as Wr, extractAssistantText as Wt, loadTurnCheckpoint as X, readConversationMessageEventSeq as Xa, wrapSandboxSetupError as Xi, listReplyActionItems as Xn, getWorkspaceByName as Xr, instructionTextForProjection as Xt, continuableMessages as Y, readConversationLastEventSeq as Ya, throwSandboxOperationError as Yi, insertReviewItem as Yn, getWorkspace as Yr, hasRuntimeTurnContext as Yt, saveTurnCheckpoint as Z, buildSentryConversationUrl 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, projectConversationEvents$1 as _o, RESOURCE_SUBSCRIPTION_DEFAULT_TTL_MS as _r, drainConversationMailbox as _t, loadProjection as a, parseSandboxEgressCredentialToken as aa, create as ai, trimTrailingAssistantMessages as an, saveObjectAnnotations 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, getConfigDefaults as bo, STOP_WATCHING_TOOL_NAME as br, hasConversationStop as bt, recordAgentsInstructionsUpdated as c, resolveSandboxCommandEnvironment as ca, ensureDockerDaemon as ci, TURN_CONTEXT_TAG as cn, listConversationAnnotationsById as co, requireReviewItemLinks as cr, appendInboundMessage as ct, recordAuthorizationCompleted as d, sleep$2 as da, proxyVercelSandboxEgressRequest as di, SubscribedReplyReason as dn, lookupSlackUser as do, EVERYONE_ASSIGNEE as dr, checkInConversationWork as dt, workspaceSnapshotNotReadyUserMessage as ea, WorkspaceValidationError as ei, isToolResultError as en, getSlackFileId as eo, updateReviewItemContent as er, failTurnRecord as et, recordAuthorizationRequested as f, tryWorkspaceRepoCheckoutPath as fa, deliverOAuthAuthorization as fi, decideSubscribedThreadReply as fn, createPluginCache as fo, automationCreatorUserId as fr, clearConsumedConversationWake as ft, recordToolExecutionStarted as g, createPluginModel as ga, startOAuthFlow as gi, estimateRequestOverheadTokens as gn, piMessageFromHistoryItem as go, getSlackToolContext as gr, deadLetterAttempt as gt, recordSubscribedReplyRoute as h, createPluginEmbedder as ha, resolveBaseUrl as hi, calculateContextCompactionTargetTokens as hn, historyItemFromPiMessage as ho, resolveChannelCapabilities as hr, completeConversationWork as ht, loadConversationProjection as i, createSandboxEgressCredentialToken as ia, setWorkspaceSnapshotBuild as ii, stripRuntimeTurnContext as in, resolveRootVisibility as io, canReadReviewItem as ir, CONVERSATION_WORK_CHECK_IN_INTERVAL_MS as it, isHumanConversationMessage as j, canAccessConversation as ja, updateSlackMessage as ji, getPluginApiRoutes as jn, bindEventAutomationCredentialSubject as jr, requestConversationWork as jt, estimateConversationContextTokens as k, createPluginModelCostRecorder 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, defaultTimezone as lo, reviewItemNeedsUser as lr, beginConversationResume as lt, recordMcpProviderConnected as m, PluginToolDeniedError as ma, parseOAuthStatePayload as mi, getThreadStopDecision as mn, configValueSchema as mo, resolveAssignees as mr, completeConversationStop as mt, commitMessages as n, consumeSandboxEgressAuthRequiredSignal as na, loadSnapshotsForProfile as ni, normalizeToolNameFromResult as nn, readAttachmentVisionSummary as no, canActOnReviewItem as nr, listTurnSummaries as nt, loadTurnProjection as o, sandboxEgressSignalsResponseSchema as oa, hash as oi, REQUEST_CONTEXT_SECTION_TAG as on, createPluginAnnotations as oo, readReviewItemAgentScope as or, ackMessages as ot, recordGuardianActionReviewed as p, workspaceRepoCheckoutPath as pa, formatProviderLabel as pi, getSubscribedReplyPreflightDecision as pn, createDurableLocationConfigurationService as po, resolveAssignee as pr, clearExpiredConversationLease as pt, getConversationPendingAuth as q, readConversationEventPageAfter 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, recordSlackAttachment as ro, canAgentChangeReviewItem as rr, recordTurnSummary as rt, openConversationProjection as s, buildSandboxEgressNetworkPolicy as sa, isStale as si, SESSION_CONTEXT_SECTION_TAG as sn, listConversationAnnotations as so, requireReviewItemAssignees as sr, appendExclusiveInboundMessage as st, commitAcceptedReply as t, clearSandboxEgressSignals as ta, invalidateReadySnapshot as ti, isToolResultMessage as tn, matchSlackAttachments 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, resolveUserTimezone as uo, reviewItemReaderForUser as ur, cancelHumanFacingPendingMessages as ut, hydrateConversationMessages as v, SANDBOX_DATA_ROOT as va, formatSlackLink as vi, getAgentBackgroundCompactionMarkTokens as vn, JUNIOR_NATIVE_EVENT_NAMESPACE as vo, 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, setConfigDefaults as xo, cancelSubscriptions as xr, hasRunnableConversationWork as xt, persistConversationMessages as y, SANDBOX_JUNIOR_ROOT as ya, normalizeSlackReplyMarkdown as yi, getAgentContextCompactionTriggerTokens as yn, conversationNoteEvent as yo, RESOURCE_WATCH_TOOL_SOURCE as yr, getConversationWorkState as yt, createPluginAuthOrchestration as z, conversationPinnedForUser as za, getSlackClient as zi, validatePlugins as zn, getDashboardConversationLink as zr, buildTurnErrorResponse as zt };
|
|
14905
|
+
export { completeTurnRecord as $, loadForkHistory as $a, isWorkspaceSnapshotNotReadyError as $i, takeReviewItem as $n, updateWorkspace as $r, isStandaloneRuntimeContextMessage as $t, getConversationMessageSlackTs as A, createPluginLogger as Aa, removeReactionFromMessage as Ai, createPluginHookRunner as An, takeDueTimerWatches as Ar, requestAnotherSlice as At, authorizationId as B, conversationPinnedForUser 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, setConfigDefaults as Co, 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, conversationArchivedForUser as Fa, SlackActionError as Fi, getPluginTools as Fn, verifyScheduledAutomationCredentialSubject as Fr, TURN_LIMIT_WRAP_UP_MESSAGE as Ft, canReusePendingAuthLink as G, readConversationBriefThrough as Ga, getWorkspaceTeamId as Gi, countReviewItemsNeedingUser as Gn, createPluginState as Gr, getPiMessageRole as Gt, AuthorizationFlowDisabledError as H, readConversationViewerMarks as Ha, normalizeSlackConversationId as Hi, setBriefsConfig as Hn, getDashboardTaskLink as Hr, CODEMODE_TOOL_NAME as Ht, upsertConversationMessage as I, conversationHasParticipantUser as Ia, downloadPrivateSlackFile as Ii, getPluginUserPromptContributions as In, verifySlackDirectCredentialSubject as Ir, TurnBudgetExceededError as It, wasPendingAuthStopped as J, readConversationEventPageAfter as Ja, isAlreadyExistsError as Ji, getReviewItem as Jn, deleteWorkspace as Jr, hasCurrentInstruction as Jt, clearPendingAuth as K, readLatestConversationBrief as Ka, runWithWorkspaceTeamId as Ki, dismissOpenReviewItems as Kn, renderToolResultNudge as Kr, getTerminalAssistantMessages as Kt, createPluginEgress as L, conversationIsMemberRoot as La, getFilePermalink as Li, getPlugins as Ln, verifyTimerWatchCredentialSubject as Lr, TurnSliceLimitExceededError as Lt, markConversationMessage as M, createConversationAccessReader as Ma, uploadFilesToConversation as Mi, getPluginRoutes as Mn, bindScheduledAutomationCredentialSubject as Mr, startConversationWork as Mt, normalizeConversationText as N, readConversationAccessFromSql 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, conversationArchivedForEmail as Pa, slackExternalRefIdSchema as Pi, getPluginSystemPromptContributions as Pn, verifyEventAutomationCredentialSubject as Pr, stopConversationWork as Pt, abandonTurnRecord as Q, buildSentryConversationUrl as Qa, getWorkspaceSnapshotNotReadyError as Qi, searchReviewItems as Qn, listWorkspacesByRepository as Qr, isContinuablePiBoundary as Qt, PluginCredentialFailureError as R, conversationNotArchivedForEmail 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, getConfigDefaults as So, 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, viewerConversationMembership as Ua, runWithSlackInstallationToken as Ui, REVIEW_ITEM_REPLIED_REASON as Un, setDashboardConversationLinkOptions as Ur, persistWithRetry as Ut, AuthPausePersistenceError as V, conversationViewerMarks as Va, isDmChannel as Vi, registration_exports as Vn, getDashboardReviewItemLink as Vr, isTurnExecutionLimitExceededError as Vt, abandonReplacedPendingAuth as W, createPluginConversationEvents as Wa, withSlackRetries as Wi, closeReviewItem as Wn, ToolInputError as Wr, extractAssistantText as Wt, loadTurnCheckpoint as X, readConversationLastEventSeq as Xa, wrapSandboxSetupError as Xi, listReplyActionItems as Xn, getWorkspaceByName as Xr, instructionTextForProjection as Xt, continuableMessages as Y, readConversationEventPageAround as Ya, throwSandboxOperationError as Yi, insertReviewItem as Yn, getWorkspace as Yr, hasRuntimeTurnContext as Yt, saveTurnCheckpoint as Z, readConversationMessageEventSeq 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, historyItemFromPiMessage as _o, RESOURCE_SUBSCRIPTION_DEFAULT_TTL_MS as _r, drainConversationMailbox as _t, loadProjection as a, parseSandboxEgressCredentialToken as aa, create as ai, trimTrailingAssistantMessages as an, recordSlackAttachment 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, JUNIOR_NATIVE_EVENT_NAMESPACE as bo, STOP_WATCHING_TOOL_NAME as br, hasConversationStop as bt, recordAgentsInstructionsUpdated as c, resolveSandboxCommandEnvironment as ca, ensureDockerDaemon as ci, TURN_CONTEXT_TAG as cn, createPluginAnnotations as co, requireReviewItemLinks as cr, appendInboundMessage as ct, recordAuthorizationCompleted as d, sleep$2 as da, proxyVercelSandboxEgressRequest as di, SubscribedReplyReason as dn, defaultTimezone as do, EVERYONE_ASSIGNEE as dr, checkInConversationWork as dt, workspaceSnapshotNotReadyUserMessage as ea, WorkspaceValidationError as ei, isToolResultError as en, notInheritedByForkChild as eo, updateReviewItemContent as er, failTurnRecord as et, recordAuthorizationRequested as f, tryWorkspaceRepoCheckoutPath as fa, deliverOAuthAuthorization as fi, decideSubscribedThreadReply as fn, resolveUserTimezone as fo, automationCreatorUserId as fr, clearConsumedConversationWake as ft, recordToolExecutionStarted as g, createPluginModel as ga, startOAuthFlow as gi, estimateRequestOverheadTokens as gn, configValueSchema as go, getSlackToolContext as gr, deadLetterAttempt as gt, recordSubscribedReplyRoute as h, createPluginEmbedder as ha, resolveBaseUrl as hi, calculateContextCompactionTargetTokens as hn, createDurableLocationConfigurationService as ho, resolveChannelCapabilities as hr, completeConversationWork as ht, loadConversationProjection as i, createSandboxEgressCredentialToken as ia, setWorkspaceSnapshotBuild as ii, stripRuntimeTurnContext as in, readSlackAttachmentsVersion as io, canReadReviewItem as ir, CONVERSATION_WORK_CHECK_IN_INTERVAL_MS as it, isHumanConversationMessage as j, canAccessConversation as ja, updateSlackMessage as ji, getPluginApiRoutes as jn, bindEventAutomationCredentialSubject as jr, requestConversationWork as jt, estimateConversationContextTokens as k, createPluginModelCostRecorder 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, listConversationAnnotations as lo, reviewItemNeedsUser as lr, beginConversationResume as lt, recordMcpProviderConnected as m, PluginToolDeniedError as ma, parseOAuthStatePayload as mi, getThreadStopDecision as mn, createPluginCache as mo, resolveAssignees as mr, completeConversationStop as mt, commitMessages as n, consumeSandboxEgressAuthRequiredSignal as na, loadSnapshotsForProfile as ni, normalizeToolNameFromResult as nn, matchSlackAttachments as no, canActOnReviewItem as nr, listTurnSummaries as nt, loadTurnProjection as o, sandboxEgressSignalsResponseSchema as oa, hash as oi, REQUEST_CONTEXT_SECTION_TAG as on, resolveRootVisibility as oo, readReviewItemAgentScope as or, ackMessages as ot, recordGuardianActionReviewed as p, workspaceRepoCheckoutPath as pa, formatProviderLabel as pi, getSubscribedReplyPreflightDecision as pn, lookupSlackUser as po, resolveAssignee as pr, clearExpiredConversationLease as pt, getConversationPendingAuth as q, readConversationEventPage 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, readAttachmentVisionSummary as ro, canAgentChangeReviewItem as rr, recordTurnSummary as rt, openConversationProjection as s, buildSandboxEgressNetworkPolicy as sa, isStale as si, SESSION_CONTEXT_SECTION_TAG as sn, saveObjectAnnotations as so, requireReviewItemAssignees as sr, appendExclusiveInboundMessage as st, commitAcceptedReply as t, clearSandboxEgressSignals as ta, invalidateReadySnapshot as ti, isToolResultMessage as tn, getSlackFileId 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, listConversationAnnotationsById as uo, reviewItemReaderForUser as ur, cancelHumanFacingPendingMessages as ut, hydrateConversationMessages as v, SANDBOX_DATA_ROOT as va, formatSlackLink as vi, getAgentBackgroundCompactionMarkTokens as vn, piMessageFromHistoryItem as vo, 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, conversationNoteEvent as xo, cancelSubscriptions as xr, hasRunnableConversationWork as xt, persistConversationMessages as y, SANDBOX_JUNIOR_ROOT as ya, normalizeSlackReplyMarkdown as yi, getAgentContextCompactionTriggerTokens as yn, projectConversationEvents$1 as yo, RESOURCE_WATCH_TOOL_SOURCE as yr, getConversationWorkState as yt, createPluginAuthOrchestration as z, conversationNotArchivedForUser as za, getSlackClient as zi, validatePlugins as zn, getDashboardConversationLink as zr, buildTurnErrorResponse as zt };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H as conversationBriefSchema, U as parseBriefInput, V as briefOutcomeStatusSchema } from "./conversation-
|
|
1
|
+
import { H as conversationBriefSchema, U as parseBriefInput, V as briefOutcomeStatusSchema } from "./conversation-DNtcULyX.js";
|
|
2
2
|
import * as z from "zod";
|
|
3
3
|
// src/chat/briefs/generate.ts
|
|
4
4
|
const MAX_INPUT_CHARS = 6e4;
|
|
@@ -8,19 +8,16 @@ const MAX_LINKS = 40;
|
|
|
8
8
|
const SIZE_CAPS = {
|
|
9
9
|
small: {
|
|
10
10
|
decisions: 3,
|
|
11
|
-
openDecisions: 2,
|
|
12
11
|
facts: 5,
|
|
13
12
|
keywords: 5
|
|
14
13
|
},
|
|
15
14
|
medium: {
|
|
16
15
|
decisions: 8,
|
|
17
|
-
openDecisions: 5,
|
|
18
16
|
facts: 10,
|
|
19
17
|
keywords: 8
|
|
20
18
|
},
|
|
21
19
|
large: {
|
|
22
20
|
decisions: 20,
|
|
23
|
-
openDecisions: 10,
|
|
24
21
|
facts: 15,
|
|
25
22
|
keywords: 12
|
|
26
23
|
}
|
|
@@ -41,10 +38,6 @@ const modelBriefSchema = z.object({
|
|
|
41
38
|
"assumed"
|
|
42
39
|
])
|
|
43
40
|
}).strict()),
|
|
44
|
-
openDecisions: z.array(z.object({
|
|
45
|
-
text: z.string().trim().min(1),
|
|
46
|
-
owner: z.string().trim().min(1).nullable()
|
|
47
|
-
}).strict()),
|
|
48
41
|
facts: z.array(z.string().trim().min(1)),
|
|
49
42
|
keywords: z.array(z.string().trim().min(1)),
|
|
50
43
|
urls: z.array(z.object({
|
|
@@ -109,17 +102,6 @@ function normalizeModelBrief(args) {
|
|
|
109
102
|
kind
|
|
110
103
|
}];
|
|
111
104
|
});
|
|
112
|
-
const openDecisions = args.model.openDecisions.flatMap((decision) => {
|
|
113
|
-
if (hasRuntimeMarker(decision.text)) {
|
|
114
|
-
droppedRuntimeMarkerCount += 1;
|
|
115
|
-
return [];
|
|
116
|
-
}
|
|
117
|
-
const owner = attribution(decision.owner);
|
|
118
|
-
return [{
|
|
119
|
-
text: truncate(decision.text, 400),
|
|
120
|
-
...owner ? { owner } : void 0
|
|
121
|
-
}];
|
|
122
|
-
});
|
|
123
105
|
const facts = args.model.facts.filter((fact) => {
|
|
124
106
|
const keep = !hasRuntimeMarker(fact);
|
|
125
107
|
if (!keep) droppedRuntimeMarkerCount += 1;
|
|
@@ -136,7 +118,6 @@ function normalizeModelBrief(args) {
|
|
|
136
118
|
text: truncateSentence(args.model.outcome.text, 600)
|
|
137
119
|
},
|
|
138
120
|
decisions: decisions.slice(0, args.caps.decisions),
|
|
139
|
-
openDecisions: openDecisions.slice(0, args.caps.openDecisions),
|
|
140
121
|
facts: uniqueStrings(facts, args.caps.facts),
|
|
141
122
|
links: args.links,
|
|
142
123
|
keywords: uniqueStrings(args.model.keywords.map((keyword) => keyword.toLowerCase()), args.caps.keywords)
|
|
@@ -343,7 +324,6 @@ function buildBriefSearchText(brief, title) {
|
|
|
343
324
|
brief.intent,
|
|
344
325
|
brief.outcome.text,
|
|
345
326
|
...brief.decisions.map((decision) => decision.text),
|
|
346
|
-
...brief.openDecisions.map((decision) => decision.text),
|
|
347
327
|
...brief.facts,
|
|
348
328
|
...brief.keywords,
|
|
349
329
|
...brief.links.map((link) => link.label),
|
|
@@ -528,21 +508,20 @@ function briefEntriesFromReportEvents(events) {
|
|
|
528
508
|
// src/chat/briefs/prompt.ts
|
|
529
509
|
const BRIEF_PROMPT = `You write one durable Brief for a Junior Conversation.
|
|
530
510
|
|
|
531
|
-
Use only facts supported by the supplied entries, evidence, or previous Brief. Do not invent names, ids, numbers, outcomes, choices,
|
|
511
|
+
Use only facts supported by the supplied entries, evidence, or previous Brief. Do not invent names, ids, numbers, outcomes, choices, or links.
|
|
532
512
|
|
|
533
513
|
Rules:
|
|
534
514
|
- Summarize the intent and current outcome in plain prose.
|
|
535
515
|
- Keep earlier decisions unless later entries reverse them. State a reversal as a new decision.
|
|
536
516
|
- A decision is a choice made by a listed participant in this Conversation. It is not a research finding, tool result, action, observation, or suggestion. Put findings in facts or the summary.
|
|
537
|
-
- Set each decision kind to stated when a human participant stated the choice themselves, confirmed when Junior proposed it and a human participant explicitly accepted it, or assumed when Junior chose while working and no participant confirmed or objected.
|
|
538
|
-
-
|
|
517
|
+
- Set each decision's \`kind\` to \`stated\` when a human participant stated the choice themselves, \`confirmed\` when Junior proposed it and a human participant explicitly accepted it, or \`assumed\` when Junior chose while working and no participant confirmed or objected.
|
|
518
|
+
- Set a decision's \`by\` to the participant who made it, or Junior. Use only names in the supplied record. Set \`by\` to \`null\` when no supported attribution exists.
|
|
539
519
|
- Facts are durable one-line facts that help after the transcript expires. Prefer ids, versions, owners, constraints, and numbers. Do not list fields, recap the transcript, or include transient progress.
|
|
540
520
|
- Ignore Junior runtime mechanics, context tags, and markers such as [[NO_REPLY]].
|
|
541
521
|
- Never say that a code change was merged, closed, deployed, or released unless a supplied code change or resource has that status. Say opened for an open code change.
|
|
542
|
-
- Attribute by or owner only to a participant in the supplied record. Junior is also valid. Set by or owner to null when no supported attribution exists.
|
|
543
522
|
- Choose the outcome status that best describes where the Conversation ended.
|
|
544
523
|
- Follow the supplied size class caps. Keep the first items that matter most.
|
|
545
|
-
- Cite a URL only when its exact full string occurs in an entry, evidence, or the previous Brief. Return cited URLs in urls
|
|
524
|
+
- Cite a URL only when its exact full string occurs in an entry, evidence, or the previous Brief. Return cited URLs in \`urls\`. Core adds code changes and resources separately.
|
|
546
525
|
- Keep the summary under 600 characters, intent under 400 characters, outcome text under 600 characters, and each other string under 400 characters.
|
|
547
526
|
`;
|
|
548
527
|
export { EVENT_SYSTEM_ACTOR as a, EVENT_MESSAGE_AUTHOR as i, briefEntriesFromReportEvents as n, isEventConversationMessage as o, EVENT_AUTHOR_ID as r, generateBrief as s, BRIEF_PROMPT as t };
|
|
@@ -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-DapIaJAi.js";
|
|
2
2
|
import { o as isUserActor, s as parseActorUserId } from "./actor-6jsm_v96.js";
|
|
3
3
|
import { n as normalizePluginPackageNames, o as pluginRoots, t as discoverInstalledPluginPackageContent } from "./package-discovery-DJhGdS4c.js";
|
|
4
4
|
import path from "node:path";
|
|
@@ -1,6 +1,6 @@
|
|
|
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-
|
|
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-ii_OYu6z.js";
|
|
2
|
+
import { E as withSpan, b as setSpanAttributes } from "./logging-DapIaJAi.js";
|
|
3
|
+
import { r as getStateAdapter } from "./adapter-BAqo7eOH.js";
|
|
4
4
|
import * as z from "zod";
|
|
5
5
|
// src/chat/sandbox/resources.ts
|
|
6
6
|
let configuredResources;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { v as __exportAll } from "./sentry-BRTJqumy.js";
|
|
2
|
-
import { nt as listTurnSummaries, tt as getTurnRecord } from "./projection-
|
|
2
|
+
import { nt as listTurnSummaries, tt as getTurnRecord } from "./projection-ii_OYu6z.js";
|
|
3
3
|
import { t as createActor } from "./actor-6jsm_v96.js";
|
|
4
|
-
import { F as SYSTEM_IDENTITY_ID } from "./viewer-
|
|
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-C2PztlYX.js";
|
|
5
|
+
import { f as credentialContextForActor } from "./registry-DpjG3yS-.js";
|
|
6
|
+
import { wt as listUnreportedSiblingAgents } from "./agent-runner-h4CDcnDV.js";
|
|
7
|
+
import { a as EVENT_SYSTEM_ACTOR, i as EVENT_MESSAGE_AUTHOR, o as isEventConversationMessage } from "./prompt-DI6KCtwb.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-nETG4KVg.js";
|
|
9
|
+
import { a as EVENT_WAIT_MS, c as isEventMailboxMetadata, l as renderEventBatchText, u as timerWatchCredentialSubject } from "./session-stop-CVEEx_YD.js";
|
|
10
|
+
import { r as appendAndEnqueueInboundMessage } from "./store-nu3Xx08K.js";
|
|
11
|
+
import { a as resolveAgentInvocationId, i as enqueueAgentInvocation, t as createAgentInvocationWorker } from "./work-BM_L0Pv9.js";
|
|
12
12
|
import * as 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 { 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-
|
|
2
|
-
import { S as setTags, T as withLogContext, p as logException } from "./logging-
|
|
3
|
-
import { F as SYSTEM_IDENTITY_ID, x as getConversationStore, y as getConversationEventStore } from "./viewer-
|
|
4
|
-
import { f as credentialContextForActor } from "./registry-
|
|
5
|
-
import { j as messageCardText } from "./conversation-
|
|
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-ii_OYu6z.js";
|
|
2
|
+
import { S as setTags, T as withLogContext, p as logException } from "./logging-DapIaJAi.js";
|
|
3
|
+
import { F as SYSTEM_IDENTITY_ID, x as getConversationStore, y as getConversationEventStore } from "./viewer-C2PztlYX.js";
|
|
4
|
+
import { f as credentialContextForActor } from "./registry-DpjG3yS-.js";
|
|
5
|
+
import { j as messageCardText } from "./conversation-DNtcULyX.js";
|
|
6
|
+
import { $ as markTurnFailed, et as startActiveTurn } from "./store-nETG4KVg.js";
|
|
7
|
+
import { n as getAssistantReplyText } from "./assistant-reply-4Wvo95-N.js";
|
|
8
|
+
import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-CF2N7ud5.js";
|
|
9
|
+
import { a as persistThreadStateById, n as getPersistedSandboxState, o as coerceThreadConversationState, r as getPersistedThreadState } from "./thread-state-BDaMl9yd.js";
|
|
10
|
+
import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-CwegN45x.js";
|
|
11
|
+
import { i as completeAuthPauseTurn, l as buildDeliveredTurnStatePatch, t as finalizeFailedTurnReplyWithEvent, u as loadPendingMessageCards } from "./turn-failure-response-CV06tN_R.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 { oa as sandboxEgressSignalsResponseSchema } from "./projection-
|
|
1
|
+
import { oa as sandboxEgressSignalsResponseSchema } from "./projection-ii_OYu6z.js";
|
|
2
2
|
// src/chat/local/sandbox-egress-signals.ts
|
|
3
3
|
const SANDBOX_EGRESS_SIGNALS_PATH = "/api/internal/sandbox-egress/signals";
|
|
4
4
|
const LOCAL_DEV_SERVER_TIMEOUT_MS = 1e3;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { E as conversationChildAgentTotalsSchema, o as conversationAuxiliaryCostsSchema, r as actorIdentitySchema, x as conversationUsageSchema, y as conversationSummaryReportSchema } from "./conversation-
|
|
1
|
+
import { E as conversationChildAgentTotalsSchema, o as conversationAuxiliaryCostsSchema, r as actorIdentitySchema, x as conversationUsageSchema, y as conversationSummaryReportSchema } from "./conversation-DNtcULyX.js";
|
|
2
2
|
import { C as AGENT_INVOCATION_STATUSES, i as fillUtcHours, r as fillUtcDays, s as sumUtcHoursIntoSixHours, y as userInputRequestSchema } from "./reporting-window-B-QP9zX1.js";
|
|
3
|
-
import "./automation-
|
|
4
|
-
import "./conversation-pending-messages-
|
|
3
|
+
import "./automation-sIsmIXH7.js";
|
|
4
|
+
import "./conversation-pending-messages-LlFnr9-m.js";
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { codeChangeStateSchema, eventMatchSchema } from "@sentry/junior-plugin-api";
|
|
7
7
|
// src/api/schema/conversation-catch-up.ts
|
|
@@ -475,6 +475,7 @@ declare const conversationDetailQuerySchema: z.ZodObject<{
|
|
|
475
475
|
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
476
476
|
unreadPage: z.ZodOptional<z.ZodCodec<z.ZodString, z.ZodBoolean>>;
|
|
477
477
|
mailbox: z.ZodOptional<z.ZodCodec<z.ZodString, z.ZodBoolean>>;
|
|
478
|
+
after: z.ZodOptional<z.ZodString>;
|
|
478
479
|
}, z.core.$strict>;
|
|
479
480
|
/**
|
|
480
481
|
* Page toward the start with `before`, toward the latest with `after`, or
|
|
@@ -2255,10 +2256,6 @@ declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
2255
2256
|
stated: "stated";
|
|
2256
2257
|
}>;
|
|
2257
2258
|
}, z.core.$strict>>;
|
|
2258
|
-
openDecisions: z.ZodArray<z.ZodObject<{
|
|
2259
|
-
text: z.ZodString;
|
|
2260
|
-
owner: z.ZodOptional<z.ZodString>;
|
|
2261
|
-
}, z.core.$strict>>;
|
|
2262
2259
|
facts: z.ZodArray<z.ZodString>;
|
|
2263
2260
|
links: z.ZodArray<z.ZodObject<{
|
|
2264
2261
|
kind: z.ZodEnum<{
|
|
@@ -2582,6 +2579,8 @@ declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
2582
2579
|
}, z.core.$strict>>;
|
|
2583
2580
|
}, z.core.$strict>>;
|
|
2584
2581
|
}, z.core.$strict>>;
|
|
2582
|
+
appended: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2583
|
+
appendCursor: z.ZodOptional<z.ZodString>;
|
|
2585
2584
|
eventHistory: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2586
2585
|
status: z.ZodLiteral<"available">;
|
|
2587
2586
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -3543,10 +3542,6 @@ declare const conversationDetailWithMailboxReportSchema: z.ZodObject<{
|
|
|
3543
3542
|
stated: "stated";
|
|
3544
3543
|
}>;
|
|
3545
3544
|
}, z.core.$strict>>;
|
|
3546
|
-
openDecisions: z.ZodArray<z.ZodObject<{
|
|
3547
|
-
text: z.ZodString;
|
|
3548
|
-
owner: z.ZodOptional<z.ZodString>;
|
|
3549
|
-
}, z.core.$strict>>;
|
|
3550
3545
|
facts: z.ZodArray<z.ZodString>;
|
|
3551
3546
|
links: z.ZodArray<z.ZodObject<{
|
|
3552
3547
|
kind: z.ZodEnum<{
|
|
@@ -3870,6 +3865,8 @@ declare const conversationDetailWithMailboxReportSchema: z.ZodObject<{
|
|
|
3870
3865
|
}, z.core.$strict>>;
|
|
3871
3866
|
}, z.core.$strict>>;
|
|
3872
3867
|
}, z.core.$strict>>;
|
|
3868
|
+
appended: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3869
|
+
appendCursor: z.ZodOptional<z.ZodString>;
|
|
3873
3870
|
eventHistory: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3874
3871
|
status: z.ZodLiteral<"available">;
|
|
3875
3872
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -3954,6 +3951,68 @@ declare const conversationDetailWithMailboxReportSchema: z.ZodObject<{
|
|
|
3954
3951
|
}, z.core.$strict>>;
|
|
3955
3952
|
}, z.core.$strict>;
|
|
3956
3953
|
}, z.core.$strict>;
|
|
3954
|
+
/**
|
|
3955
|
+
* Answer to a `mailbox=true` poll whose detail version still matches. The
|
|
3956
|
+
* client keeps its cached detail and takes the new mailbox.
|
|
3957
|
+
*/
|
|
3958
|
+
declare const conversationUnchangedDetailWithMailboxSchema: z.ZodObject<{
|
|
3959
|
+
mailbox: z.ZodObject<{
|
|
3960
|
+
authorization: z.ZodOptional<z.ZodObject<{
|
|
3961
|
+
authorizationUrl: z.ZodString;
|
|
3962
|
+
completionText: z.ZodString;
|
|
3963
|
+
label: z.ZodString;
|
|
3964
|
+
}, z.core.$strict>>;
|
|
3965
|
+
conversationId: z.ZodString;
|
|
3966
|
+
generatedAt: z.ZodString;
|
|
3967
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
3968
|
+
actorIdentity: z.ZodOptional<z.ZodObject<{
|
|
3969
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
3970
|
+
email: z.ZodOptional<z.ZodString>;
|
|
3971
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
3972
|
+
slackUserId: z.ZodOptional<z.ZodString>;
|
|
3973
|
+
slackUserName: z.ZodOptional<z.ZodString>;
|
|
3974
|
+
}, z.core.$strict>>;
|
|
3975
|
+
actorIdentityId: z.ZodOptional<z.ZodString>;
|
|
3976
|
+
createdAt: z.ZodString;
|
|
3977
|
+
delivery: z.ZodEnum<{
|
|
3978
|
+
defer: "defer";
|
|
3979
|
+
interrupt: "interrupt";
|
|
3980
|
+
}>;
|
|
3981
|
+
inboundMessageId: z.ZodString;
|
|
3982
|
+
messageId: z.ZodString;
|
|
3983
|
+
receivedAt: z.ZodString;
|
|
3984
|
+
role: z.ZodLiteral<"user">;
|
|
3985
|
+
source: z.ZodEnum<{
|
|
3986
|
+
slack: "slack";
|
|
3987
|
+
web: "web";
|
|
3988
|
+
}>;
|
|
3989
|
+
text: z.ZodOptional<z.ZodString>;
|
|
3990
|
+
mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3991
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
3992
|
+
email: z.ZodOptional<z.ZodString>;
|
|
3993
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
3994
|
+
slackUserId: z.ZodOptional<z.ZodString>;
|
|
3995
|
+
slackUserName: z.ZodOptional<z.ZodString>;
|
|
3996
|
+
}, z.core.$strict>>>;
|
|
3997
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3998
|
+
id: z.ZodString;
|
|
3999
|
+
filename: z.ZodString;
|
|
4000
|
+
contentType: z.ZodString;
|
|
4001
|
+
bytes: z.ZodNumber;
|
|
4002
|
+
}, z.core.$strict>>>;
|
|
4003
|
+
reviewItemChange: z.ZodOptional<z.ZodObject<{
|
|
4004
|
+
kind: z.ZodEnum<{
|
|
4005
|
+
dismissed: "dismissed";
|
|
4006
|
+
submitted: "submitted";
|
|
4007
|
+
taken: "taken";
|
|
4008
|
+
}>;
|
|
4009
|
+
reviewItemId: z.ZodString;
|
|
4010
|
+
}, z.core.$strict>>;
|
|
4011
|
+
redacted: z.ZodOptional<z.ZodLiteral<true>>;
|
|
4012
|
+
}, z.core.$strict>>;
|
|
4013
|
+
}, z.core.$strict>;
|
|
4014
|
+
unchanged: z.ZodLiteral<true>;
|
|
4015
|
+
}, z.core.$strict>;
|
|
3957
4016
|
/** Optional filters for cancelling accepted mailbox rows. */
|
|
3958
4017
|
declare const cancelConversationPendingMessagesBodySchema: z.ZodObject<{
|
|
3959
4018
|
inboundMessageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -7315,4 +7374,4 @@ declare const reviewItemActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7315
7374
|
}, z.core.$strict>;
|
|
7316
7375
|
}, z.core.$strict>], "action">;
|
|
7317
7376
|
type ReviewItemActionBody = z.output<typeof reviewItemActionSchema>;
|
|
7318
|
-
export { automationExecutionSchema as $, CancelConversationPendingMessagesResponse as $n,
|
|
7377
|
+
export { automationExecutionSchema as $, CancelConversationPendingMessagesResponse as $n, conversationSummaryReportSchema as $r, LocationParams as $t, StatReport as A, UserInputField as Ai, pinConversationResponseSchema as An, ConversationReportMessageEvent as Ar, PersonalTokenMetadata as At, AutomationListQuery as B, INPUT_IMAGE_TYPES as Bi, ConversationStatsItem as Bn, acceptedConversationMessageSchema as Br, serviceAccountSchema as Bt, pluginPackageContentItemReportSchema as C, dailyConversationActivitySchema as Ci, ConversationChildAgent as Cn, ConversationEventHistory as Cr, workspaceBodySchema as Ct, runtimeInfoReportSchema as D, AutomationCard as Di, PinConversationBody as Dn, ConversationParams as Dr, workspaceSchema as Dt, pluginsSchema as E, resolveMessageCards as Ei, conversationChildAgentsReportSchema as En, ConversationModelUsage as Er, workspaceRepoSchema as Et, AutomationExecution as F, webMessageId as Fi, ConversationReadPosition as Fn, ConversationTurnFailureCode as Fr, personalTokenParamsSchema as Ft, AutomationSummary as G, ArchiveConversationBody as Gn, conversationEventHistorySchema as Gr, disconnectConnectionResponseSchema as Gt, AutomationRunList as H, GuardianMetricDay as Hn, conversationAuxiliaryCostsSchema as Hr, connectionListSchema as Ht, AutomationExecutionDay as I, InputImage as Ii, conversationReadPositionSchema as In, ConversationTurnFailureReason as Ir, revokePersonalTokenResponseSchema as It, ListedAutomationVersion as J, archiveConversationBodySchema as Jn, conversationFeedQuerySchema as Jr, apiErrorSchema as Jt, AutomationUpdate as K, ArchiveConversationResponse as Kn, conversationEventPageSchema as Kr, startConnectionResponseSchema as Kt, AutomationExecutionList as L, MAX_INPUT_IMAGES as Li, StopConversationTurnResponse as Ln, ConversationUsage as Lr, disconnectServiceAccountResponseSchema as Lt, statSchema as M, buttonUserInputField as Mi, ConversationCatchUpBody as Mn, ConversationSourceTask as Mr, createdPersonalTokenSchema as Mt, statsReportSchema as N, isEmptyUserInputAnswer as Ni, conversationCatchUpBodySchema as Nn, ConversationSummaryReport as Nr, personalTokenListSchema as Nt, skillReportSchema as O, USER_INPUT_NOTE as Oi, PinConversationResponse as On, ConversationReportEvent as Or, USER_CUSTOMIZATION_MAX_CHARS as Ot, AutomationEdit as P, normalizeUserInputAnswer as Pi, conversationCatchUpSchema as Pn, ConversationSurface as Pr, personalTokenMetadataSchema as Pt, automationExecutionListSchema as Q, CancelConversationPendingMessagesBody as Qn, conversationReportEventSchema as Qr, LocationDirectoryReport as Qt, AutomationExecutionStatusDay as R, MAX_INPUT_IMAGE_BYTES as Ri, stopConversationTurnResponseSchema as Rn, CreateConversationBody as Rr, serviceAccountListSchema as Rt, pluginOperationalReportSchema as S, DailyConversationActivity as Si, conversationWatchesReportSchema as Sn, ConversationDetailReport as Sr, deleteWorkspaceResponseSchema as St, pluginSchema as T, messageCardText as Ti, conversationChildAgentSchema as Tn, ConversationFeed as Tr, workspaceParamsSchema as Tt, AutomationRunWindows as U, GuardianStats as Un, conversationDetailQuerySchema as Ur, connectionParamsSchema as Ut, AutomationRun as V, ConversationStatsReport as Vn, conversationActivityPreviewSchema as Vr, startServiceAccountSignInResponseSchema as Vt, AutomationScheduleIntent as W, conversationStatsReportSchema as Wn, conversationDetailReportSchema as Wr, connectionSchema as Wt, automationEditSchema as X, archiveDoneConversationsResponseSchema as Xn, conversationParamsSchema as Xr, LocationActorSummaryReport as Xt, automationEditErrorSchema as Y, archiveConversationResponseSchema as Yn, conversationFeedSchema as Yr, LocationActivityDayReport as Yt, automationEventCatalogSchema as Z, conversationAutoArchiveSchema as Zn, conversationReportEventDataSchema as Zr, LocationDetailReport as Zt, RuntimeInfoReport as _, codeRepositoryParamsSchema as _i, personParamsSchema as _n, CONVERSATION_DETAIL_VERSION_HEADER as _r, scheduledAutomationSummarySchema as _t, reviewItemCountSchema as a, conversationTurnFailureReasonSchema as ai, ActorActivityDayReport as an, cancelConversationPendingMessagesBodySchema as ar, automationRunListSchema as at, healthReportSchema as b, ConversationChildAgentTotals as bi, ConversationWatchesReport as bn, ConversationAuxiliaryCosts as br, WorkspaceReport as bt, reviewItemWaitingConversationsSchema as c, CodeOverviewReport as ci, ActorProfileReport as cn, conversationPendingAuthorizationSchema as cr, automationScheduleIntentSchema as ct, Plugin as d, CodeRepositorySummary as di, ActorWindowMetrics as dn, conversationPendingMessagesReportSchema as dr, automationUpdateSchema as dt, createConversationBodySchema as ei, LocationSummaryReport as en, ConversationPendingMessage as er, automationExecutionStatusDaySchema as et, PluginOperationalReport as f, codeActivityDaySchema as fi, PeopleActivityDayReport as fn, conversationUnchangedDetailWithMailboxSchema as fr, automationVersionActivateSchema as ft, Plugins as g, codePersonReportSchema as gi, actorProfileReportSchema as gn, ActorIdentity as gr, eventAutomationSummarySchema as gt, PluginPackageContentReport as h, codeOverviewReportSchema as hi, actorDirectoryReportSchema as hn, AcceptedConversationMessage as hr, automationVersionSchema as ht, reviewItemActionSchema as i, conversationTurnFailureCodeSchema as ii, locationParamsSchema as in, SteerConversationPendingMessagesResponse as ir, automationParamsSchema as it, StatsReport as j, UserInputRequest as ji, ConversationCatchUp as jn, ConversationReportStatus as jr, createPersonalTokenBodySchema as jt, skillReportsSchema as k, UserInputAnswer as ki, pinConversationBodySchema as kn, ConversationReportEventData as kr, userCustomizationSchema as kt, ReviewItemChangeRecord as l, CodePersonReport as li, ActorSummaryReport as ln, conversationPendingMessageDeliverySchema as lr, automationSchedulePreviewSchema as lt, PluginPackageContentItemReport as m, codeChangeSummarySchema as mi, PersonalSpendReport as mn, steerConversationPendingMessagesResponseSchema as mr, automationVersionParamsSchema as mt, ReviewItemActionBody as n, forkConversationBodySchema as ni, locationDetailReportSchema as nn, ConversationPendingMessagesReport as nr, automationListQuerySchema as nt, reviewItemListSchema as o, CodeActivityDay as oi, ActorDirectoryReport as on, cancelConversationPendingMessagesResponseSchema as or, automationRunSchema as ot, PluginOperationalReportFeed as p, codeChangeSummaryReportSchema as pi, PersonParams as pn, steerConversationPendingMessagesBodySchema as pr, automationVersionListSchema as pt, AutomationVersionList as q, ConversationAutoArchive as qn, conversationEventsQuerySchema as qr, ApiError as qt, ReviewItemPayload as r, forkConversationResponseSchema as ri, locationDirectoryReportSchema as rn, SteerConversationPendingMessagesBody as rr, automationListSchema as rt, reviewItemSchema as s, CodeChangeSummaryReport as si, ActorDirectoryWindows as sn, conversationDetailWithMailboxReportSchema as sr, automationRunWindowsSchema as st, OwnedObjectAnnotation$1 as t, createConversationMessageBodySchema as ti, locationActivityDayReportSchema as tn, ConversationPendingMessageDelivery as tr, automationExecutionStatusSchema as tt, HealthReport as u, CodeRepositoryReport as ui, ActorTotalsReport as un, conversationPendingMessageSchema as ur, automationSummarySchema as ut, SkillReport as v, codeRepositoryReportSchema as vi, personalSpendReportSchema as vn, ConversationActivityPreview as vr, BaselineSnapshotReport as vt, pluginPackageContentReportSchema as w, MessageCard as wi, ConversationChildAgentsReport as wn, ConversationEventPage as wr, workspaceListSchema as wt, pluginOperationalReportFeedSchema as x, conversationChildAgentTotalsSchema as xi, conversationWatchSchema as xn, ConversationCost as xr, baselineSnapshotSchema as xt, SkillReports as y, codeRepositorySummarySchema as yi, ConversationWatch as yn, ConversationAgentTreeNode as yr, WorkspaceListReport as yt, AutomationList as z, MessageAttachment as zi, ConversationMetricDay as zn, CreateConversationMessageBody as zr, serviceAccountParamsSchema as zt };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
2
|
-
import { t as disconnectStateAdapter } from "./adapter-
|
|
3
|
-
import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-
|
|
1
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-Cpje_Uic.js";
|
|
2
|
+
import { t as disconnectStateAdapter } from "./adapter-BAqo7eOH.js";
|
|
3
|
+
import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-Dfl9Pitm.js";
|
|
4
4
|
import { CLI_USAGE } from "./cli/run.js";
|
|
5
5
|
import { createServer } from "node:http";
|
|
6
6
|
// src/cli/service-account.ts
|