@sentry/junior 0.282.0 → 0.283.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-BAqo7eOH.js → adapter-D8-lqOBF.js} +1 -1
- package/dist/{admin-DbWpMHh6.js → admin-Dnw5SCXp.js} +1 -1
- package/dist/{agent-runner-h4CDcnDV.js → agent-runner-Bj7GhysW.js} +49 -23
- package/dist/api/schema.d.ts +2 -2
- package/dist/api/schema.js +6 -6
- package/dist/api.d.ts +1 -1
- package/dist/api.js +94 -59
- package/dist/{app-B-0wwAxr.d.ts → app-CMBP-N43.d.ts} +2 -2
- package/dist/app.d.ts +1 -1
- package/dist/app.js +30 -30
- package/dist/{assistant-reply-4Wvo95-N.js → assistant-reply-CdYsLbXL.js} +1 -1
- package/dist/{automation-sIsmIXH7.js → automation-MLWOrghe.js} +1 -1
- package/dist/{background-compaction-queue-CoWqScCC.js → background-compaction-queue-Bbsqx8Vm.js} +2 -2
- package/dist/{briefs-CMiotFo9.js → briefs-C4qBY-jb.js} +4 -4
- package/dist/{catalog-runtime-Cpje_Uic.js → catalog-runtime-B7NRB7eH.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 +3 -3
- package/dist/{client-BHgCXeaF.js → client-a3Ib6wxr.js} +2 -2
- package/dist/{config-DBdBimZ9.js → config-DFVlYCeY.js} +97 -4
- package/dist/{connections-DjY72_uF.js → connections-BtnvpBEV.js} +10 -10
- package/dist/{conversation-DNtcULyX.js → conversation-DdT7SNar.js} +3 -1
- package/dist/{conversation-pending-messages-LlFnr9-m.js → conversation-pending-messages-Dct5pheX.js} +1 -1
- package/dist/{conversation-privacy-DiDh9KE4.js → conversation-privacy-DLq-abjU.js} +1 -1
- package/dist/{credential-sync-DUrQwccr.js → credential-sync-B4XFVcjM.js} +13 -13
- package/dist/{db-hQsoB16L.d.ts → db-A_WrTY-s.d.ts} +1 -1
- package/dist/{executor-CGqJCxgR.js → executor-HPgHGAWK.js} +8 -2
- package/dist/instrumentation.js +2 -2
- package/dist/{logging-DapIaJAi.js → logging-2BXvW7Mp.js} +1 -1
- package/dist/{media-Dq9_svfQ.js → media-Bu9C6lz0.js} +3 -1
- package/dist/{message-BjN5sKad.js → message-BG1v1lXX.js} +9 -9
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +3 -3
- package/dist/{oauth-callback-server-DVHKrjJP.js → oauth-callback-server-CXNZJymo.js} +2 -2
- package/dist/{projection-ii_OYu6z.js → projection-BfKkpOGQ.js} +23 -14
- package/dist/{prompt-DI6KCtwb.js → prompt-CCtaGgbI.js} +1 -1
- package/dist/{registry-DpjG3yS-.js → registry-CLooHPAz.js} +1 -1
- package/dist/{resolve-iMW9Dgo2.js → resolve-D3MK9oRJ.js} +3 -3
- package/dist/{result-BrlvfyIj.js → result-BPCjUefO.js} +9 -9
- package/dist/{runner-Bg9mr2pB.js → runner-Ds31u3rB.js} +11 -11
- package/dist/{sandbox-egress-signals-Bd3lb_Wd.js → sandbox-egress-signals-CLd5RPUw.js} +1 -1
- package/dist/{schema-BN34Jy-U.js → schema-CHNP0GfH.js} +11 -4
- package/dist/{schema-CsqJzkP5.d.ts → schema-jW3ccLjp.d.ts} +22 -1
- package/dist/{service-account-Bd1348kw.js → service-account-CWpTsoIM.js} +3 -3
- package/dist/{service-account-Dfl9Pitm.js → service-account-D6AMahy7.js} +3 -3
- package/dist/{session-stop-CVEEx_YD.js → session-stop-D8LGC3H6.js} +12 -12
- package/dist/{skills-DqUUuf4L.js → skills-DuOKByQH.js} +2 -2
- package/dist/{spawn-e7rQs14T.js → spawn-CNIQGgAS.js} +2 -2
- package/dist/{stop-DtpBUUJq.js → stop-DX2oOIgl.js} +51 -110
- package/dist/{store-nETG4KVg.js → store-61mD4ZSh.js} +4 -4
- package/dist/{store-nu3Xx08K.js → store-DAJntSEv.js} +3 -3
- package/dist/{task-queue-CYje8WKs.js → task-queue-BE70Pb9p.js} +3 -3
- package/dist/{task-runner-CwegN45x.js → task-runner-CmmfddSZ.js} +7 -7
- package/dist/{thread-state-BDaMl9yd.js → thread-state-0UfRMWYd.js} +4 -4
- package/dist/{turn-failure-response-CV06tN_R.js → turn-failure-response-DKdzxJHE.js} +7 -7
- package/dist/{turn-lifecycle-CF2N7ud5.js → turn-lifecycle-24sBZ4Ip.js} +1 -1
- package/dist/{turn-session-routing-BIJGJjVh.js → turn-session-routing-CzCnNAUO.js} +9 -9
- package/dist/{validation-DXvxEEjq.js → validation-Cs_knhR8.js} +1 -1
- package/dist/{version-CzEk1KBX.js → version-ZMC4cXWN.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-C2PztlYX.js → viewer-CYB9T4rm.js} +4 -4
- package/dist/{work-BM_L0Pv9.js → work-J1n6RQkY.js} +11 -11
- package/dist/{worker-2no53G60.js → worker-s1fCvj1z.js} +6 -6
- package/migrations/0081_conversation_pin_position.sql +1 -0
- package/migrations/meta/0081_snapshot.json +4271 -0
- package/migrations/meta/_journal.json +7 -0
- package/package.json +5 -5
package/dist/nitro.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as JuniorDashboardOptions } from "./app-
|
|
1
|
+
import { i as JuniorDashboardOptions } from "./app-CMBP-N43.js";
|
|
2
2
|
import { n as JuniorPluginSet } from "./plugins-DtmjkTza.js";
|
|
3
3
|
import { withSentryConfig as withSentryConfig$1 } from "@sentry/nitro";
|
|
4
4
|
type SentryNitroConfig = Parameters<typeof withSentryConfig$1>[0];
|
package/dist/nitro.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE, D as JUNIOR_AUTO_ARCHIVE_CRON_SCHEDULE, F as JUNIOR_RETENTION_ROUTE, I as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, M as JUNIOR_HEARTBEAT_ROUTE, N as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, O as JUNIOR_AUTO_ARCHIVE_ROUTE, P as JUNIOR_RETENTION_CRON_SCHEDULE, R as getDeploymentServiceVersion, j as JUNIOR_HEARTBEAT_CRON_SCHEDULE, k as JUNIOR_CONTEXT_COMPACTION_CALLBACK_ROUTE } from "./logging-
|
|
1
|
+
import { A as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE, D as JUNIOR_AUTO_ARCHIVE_CRON_SCHEDULE, F as JUNIOR_RETENTION_ROUTE, I as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, M as JUNIOR_HEARTBEAT_ROUTE, N as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, O as JUNIOR_AUTO_ARCHIVE_ROUTE, P as JUNIOR_RETENTION_CRON_SCHEDULE, R as getDeploymentServiceVersion, j as JUNIOR_HEARTBEAT_CRON_SCHEDULE, k as JUNIOR_CONTEXT_COMPACTION_CALLBACK_ROUTE } from "./logging-2BXvW7Mp.js";
|
|
2
2
|
import { d as resolvePackageDir, t as discoverInstalledPluginPackageContent, u as isValidPackageName } from "./package-discovery-DJhGdS4c.js";
|
|
3
|
-
import { a as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC, t as BACKGROUND_COMPACTION_QUEUE_TOPIC, u as resolveConversationWorkQueueTopic } from "./background-compaction-queue-
|
|
3
|
+
import { a as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC, t as BACKGROUND_COMPACTION_QUEUE_TOPIC, u as resolveConversationWorkQueueTopic } from "./background-compaction-queue-Bbsqx8Vm.js";
|
|
4
4
|
import { a as pluginRuntimeRegistrationsFromPluginSet, r as pluginCatalogConfigFromPluginSet } from "./plugins-HYh_JOdw.js";
|
|
5
|
-
import { t as PLUGIN_TASK_QUEUE_TOPIC } from "./task-queue-
|
|
5
|
+
import { t as PLUGIN_TASK_QUEUE_TOPIC } from "./task-queue-BE70Pb9p.js";
|
|
6
6
|
import { n as loadPluginSetFromModule, r as resolvePluginModule } from "./plugin-module-Cf5gVPWP.js";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import { cpSync, existsSync, mkdirSync, readdirSync, statSync } from "node:fs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { wn as createUserTokenStore } from "./projection-
|
|
2
|
-
import { a as GET, n as syncLocalOAuthCredential, r as GET$1 } from "./credential-sync-
|
|
1
|
+
import { wn as createUserTokenStore } from "./projection-BfKkpOGQ.js";
|
|
2
|
+
import { a as GET, n as syncLocalOAuthCredential, r as GET$1 } from "./credential-sync-B4XFVcjM.js";
|
|
3
3
|
import { createServer } from "node:http";
|
|
4
4
|
// src/chat/local/oauth-callback-server.ts
|
|
5
5
|
const LOCAL_OAUTH_TIMEOUT_MS = 6e5;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
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-
|
|
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-
|
|
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-a3Ib6wxr.js";
|
|
3
|
+
import { i as getChatConfig, n as botConfig, o as getSlackBotToken, v as normalizeSlackEmojiName } from "./config-DFVlYCeY.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-2BXvW7Mp.js";
|
|
5
|
+
import { t as canExposeConversationPayload } from "./conversation-privacy-DLq-abjU.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, x as getConversationStore, y as getConversationEventStore } from "./viewer-
|
|
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-
|
|
9
|
-
import {
|
|
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-
|
|
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-CYB9T4rm.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-HPgHGAWK.js";
|
|
9
|
+
import { _ as instructionProvenanceFor, g as instructionActors, h as contextProvenance, o as agentHistoryItemSchema } from "./media-Bu9C6lz0.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-CLooHPAz.js";
|
|
11
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-B7NRB7eH.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-D8-lqOBF.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, W as parseStoredBrief, _ 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-DdT7SNar.js";
|
|
16
|
+
import { n as briefEntriesFromReportEvents, s as generateBrief, t as BRIEF_PROMPT } from "./prompt-CCtaGgbI.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";
|
|
@@ -2083,19 +2083,21 @@ function viewerConversationMembership(args) {
|
|
|
2083
2083
|
if (args.actorMatch && args.participantMatch) return or(args.actorMatch, args.participantMatch);
|
|
2084
2084
|
return args.actorMatch ?? args.participantMatch;
|
|
2085
2085
|
}
|
|
2086
|
-
/** Read personal archive and pin
|
|
2086
|
+
/** Read personal archive and pin marks for a bounded set of conversation roots. */
|
|
2087
2087
|
async function conversationViewerMarks(db, conversationIds, subject) {
|
|
2088
2088
|
if (!subject || conversationIds.length === 0) return /* @__PURE__ */ new Map();
|
|
2089
2089
|
const marked = and(inArray(juniorConversationParticipants.rootConversationId, [...conversationIds]), or(isNotNull(juniorConversationParticipants.archivedAt), isNotNull(juniorConversationParticipants.pinnedAt)));
|
|
2090
2090
|
const query = db.select({
|
|
2091
2091
|
archivedAt: juniorConversationParticipants.archivedAt,
|
|
2092
2092
|
pinnedAt: juniorConversationParticipants.pinnedAt,
|
|
2093
|
+
pinPosition: juniorConversationParticipants.pinPosition,
|
|
2093
2094
|
rootConversationId: juniorConversationParticipants.rootConversationId
|
|
2094
2095
|
}).from(juniorConversationParticipants);
|
|
2095
2096
|
const rows = "userId" in subject ? await query.where(and(eq(juniorConversationParticipants.userId, subject.userId), marked)) : await query.innerJoin(juniorUsers, eq(juniorUsers.id, juniorConversationParticipants.userId)).where(and(eq(juniorUsers.primaryEmailNormalized, subject.email), marked));
|
|
2096
2097
|
return new Map(rows.map((row) => [row.rootConversationId, {
|
|
2097
2098
|
...row.archivedAt ? { archivedAtMs: row.archivedAt.getTime() } : void 0,
|
|
2098
|
-
...row.pinnedAt ? { pinnedAtMs: row.pinnedAt.getTime() } : void 0
|
|
2099
|
+
...row.pinnedAt ? { pinnedAtMs: row.pinnedAt.getTime() } : void 0,
|
|
2100
|
+
...row.pinnedAt && row.pinPosition !== null ? { pinPosition: row.pinPosition } : void 0
|
|
2099
2101
|
}]));
|
|
2100
2102
|
}
|
|
2101
2103
|
/** Read one viewer's archive and pin times for a conversation root. */
|
|
@@ -6653,6 +6655,13 @@ function adaptSession(sandbox, options) {
|
|
|
6653
6655
|
readdir: async (filePath, readOptions) => await run(async () => await fileSystem.readdir(filePath, readOptions)),
|
|
6654
6656
|
stat: async (filePath, statOptions) => await run(async () => await fileSystem.stat(filePath, statOptions))
|
|
6655
6657
|
},
|
|
6658
|
+
createPreview(port) {
|
|
6659
|
+
return run(async () => {
|
|
6660
|
+
const ports = new Set(session.routes.map((route) => route.port));
|
|
6661
|
+
if (!ports.has(port)) await sandbox.update({ ports: [...ports, port] });
|
|
6662
|
+
return session.domain(port);
|
|
6663
|
+
});
|
|
6664
|
+
},
|
|
6656
6665
|
extendTimeout(duration) {
|
|
6657
6666
|
return run(async () => await session.extendTimeout(duration));
|
|
6658
6667
|
},
|
|
@@ -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-DdT7SNar.js";
|
|
2
2
|
import * as 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-2BXvW7Mp.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-BfKkpOGQ.js";
|
|
2
|
+
import { E as withSpan, b as setSpanAttributes } from "./logging-2BXvW7Mp.js";
|
|
3
|
+
import { r as getStateAdapter } from "./adapter-D8-lqOBF.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-BfKkpOGQ.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-CYB9T4rm.js";
|
|
5
|
+
import { f as credentialContextForActor } from "./registry-CLooHPAz.js";
|
|
6
|
+
import { wt as listUnreportedSiblingAgents } from "./agent-runner-Bj7GhysW.js";
|
|
7
|
+
import { a as EVENT_SYSTEM_ACTOR, i as EVENT_MESSAGE_AUTHOR, o as isEventConversationMessage } from "./prompt-CCtaGgbI.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-61mD4ZSh.js";
|
|
9
|
+
import { a as EVENT_WAIT_MS, c as isEventMailboxMetadata, l as renderEventBatchText, u as timerWatchCredentialSubject } from "./session-stop-D8LGC3H6.js";
|
|
10
|
+
import { r as appendAndEnqueueInboundMessage } from "./store-DAJntSEv.js";
|
|
11
|
+
import { a as resolveAgentInvocationId, i as enqueueAgentInvocation, t as createAgentInvocationWorker } from "./work-J1n6RQkY.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-BfKkpOGQ.js";
|
|
2
|
+
import { S as setTags, T as withLogContext, p as logException } from "./logging-2BXvW7Mp.js";
|
|
3
|
+
import { F as SYSTEM_IDENTITY_ID, x as getConversationStore, y as getConversationEventStore } from "./viewer-CYB9T4rm.js";
|
|
4
|
+
import { f as credentialContextForActor } from "./registry-CLooHPAz.js";
|
|
5
|
+
import { j as messageCardText } from "./conversation-DdT7SNar.js";
|
|
6
|
+
import { $ as markTurnFailed, et as startActiveTurn } from "./store-61mD4ZSh.js";
|
|
7
|
+
import { n as getAssistantReplyText } from "./assistant-reply-CdYsLbXL.js";
|
|
8
|
+
import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-24sBZ4Ip.js";
|
|
9
|
+
import { a as persistThreadStateById, n as getPersistedSandboxState, o as coerceThreadConversationState, r as getPersistedThreadState } from "./thread-state-0UfRMWYd.js";
|
|
10
|
+
import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-CmmfddSZ.js";
|
|
11
|
+
import { i as completeAuthPauseTurn, l as buildDeliveredTurnStatePatch, t as finalizeFailedTurnReplyWithEvent, u as loadPendingMessageCards } from "./turn-failure-response-DKdzxJHE.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-BfKkpOGQ.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-DdT7SNar.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-MLWOrghe.js";
|
|
4
|
+
import "./conversation-pending-messages-Dct5pheX.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
|
|
@@ -24,6 +24,13 @@ const conversationCatchUpSchema = z.object({
|
|
|
24
24
|
const pinConversationBodySchema = z.object({ pinned: z.boolean() }).strict();
|
|
25
25
|
/** The viewer's pin time after the change, or null when unpinned. */
|
|
26
26
|
const pinConversationResponseSchema = z.object({ pinnedAt: z.string().datetime().nullable() }).strict();
|
|
27
|
+
/**
|
|
28
|
+
* The viewer's full Pinned order, first to last. Each pin takes its index as
|
|
29
|
+
* its new place.
|
|
30
|
+
*/
|
|
31
|
+
const reorderPinnedConversationsBodySchema = z.object({ conversationIds: z.array(z.string().min(1)).min(1).max(500).refine((ids) => new Set(ids).size === ids.length, { message: "Each Conversation can appear once." }) }).strict();
|
|
32
|
+
/** The pinned Conversations that got a new place, in order. */
|
|
33
|
+
const reorderPinnedConversationsResponseSchema = z.object({ conversationIds: z.array(z.string()) }).strict();
|
|
27
34
|
// src/api/schema/conversation-archive.ts
|
|
28
35
|
const archiveConversationBodySchema = z.object({
|
|
29
36
|
archived: z.boolean(),
|
|
@@ -672,4 +679,4 @@ const statsReportSchema = z.object({
|
|
|
672
679
|
windowEnd: z.string(),
|
|
673
680
|
windowStart: z.string()
|
|
674
681
|
}).strict();
|
|
675
|
-
export { codeRepositorySummarySchema as $, avatarParamsSchema as A, dailyConversationActivitySchema as B, createdPersonalTokenSchema as C, revokePersonalTokenResponseSchema as D, personalTokenParamsSchema as E, locationDirectoryReportSchema as F, startConnectionResponseSchema as G, connectionParamsSchema as H, locationParamsSchema as I, codeChangeSummarySchema as J, codeActivityDaySchema as K, activityDays as L, personalSpendReportSchema as M, locationActivityDayReportSchema as N, actorDirectoryReportSchema as O, locationDetailReportSchema as P, codeRepositoryReportSchema as Q, activityHours as R, createPersonalTokenBodySchema as S, personalTokenMetadataSchema as T, connectionSchema as U, connectionListSchema as V, disconnectConnectionResponseSchema as W, codePersonReportSchema as X, codeOverviewReportSchema as Y, codeRepositoryParamsSchema as Z, disconnectServiceAccountResponseSchema as _, workspaceBodySchema as a, conversationStatsReportSchema as at, serviceAccountSchema as b, workspaceRepoSchema as c, archiveDoneConversationsResponseSchema as ct, reviewItemCountSchema as d, pinConversationResponseSchema as dt, conversationWatchSchema as et, reviewItemListQuerySchema as f,
|
|
682
|
+
export { codeRepositorySummarySchema as $, avatarParamsSchema as A, dailyConversationActivitySchema as B, createdPersonalTokenSchema as C, revokePersonalTokenResponseSchema as D, personalTokenParamsSchema as E, locationDirectoryReportSchema as F, startConnectionResponseSchema as G, connectionParamsSchema as H, locationParamsSchema as I, codeChangeSummarySchema as J, codeActivityDaySchema as K, activityDays as L, personalSpendReportSchema as M, locationActivityDayReportSchema as N, actorDirectoryReportSchema as O, locationDetailReportSchema as P, codeRepositoryReportSchema as Q, activityHours as R, createPersonalTokenBodySchema as S, personalTokenMetadataSchema as T, connectionSchema as U, connectionListSchema as V, disconnectConnectionResponseSchema as W, codePersonReportSchema as X, codeOverviewReportSchema as Y, codeRepositoryParamsSchema as Z, disconnectServiceAccountResponseSchema as _, workspaceBodySchema as a, conversationStatsReportSchema as at, serviceAccountSchema as b, workspaceRepoSchema as c, archiveDoneConversationsResponseSchema as ct, reviewItemCountSchema as d, pinConversationResponseSchema as dt, conversationWatchSchema as et, reviewItemListQuerySchema as f, reorderPinnedConversationsBodySchema as ft, reviewItemWaitingConversationsSchema as g, reviewItemSchema as h, conversationCatchUpSchema as ht, deleteWorkspaceResponseSchema as i, stopConversationTurnResponseSchema as it, personParamsSchema as j, actorProfileReportSchema as k, workspaceSchema as l, conversationAutoArchiveSchema as lt, reviewItemParamsSchema as m, conversationCatchUpBodySchema as mt, statsReportSchema as n, conversationChildAgentSchema as nt, workspaceListSchema as o, archiveConversationBodySchema as ot, reviewItemListSchema as p, reorderPinnedConversationsResponseSchema as pt, codeChangeSummaryReportSchema as q, baselineSnapshotSchema as r, conversationChildAgentsReportSchema as rt, workspaceParamsSchema as s, archiveConversationResponseSchema as st, statSchema as t, conversationWatchesReportSchema as tt, reviewItemActionSchema as u, pinConversationBodySchema as ut, serviceAccountListSchema as v, personalTokenListSchema as w, startServiceAccountSignInResponseSchema as x, serviceAccountParamsSchema as y, activitySixHours as z };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { ConversationAnnotation, OwnedObjectAnnotation, OwnedObjectAnnotation as OwnedObjectAnnotation$1 } from "@sentry/junior-plugin-api";
|
|
3
3
|
declare const INPUT_IMAGE_TYPES: readonly ["image/png", "image/jpeg", "image/gif", "image/webp"];
|
|
4
|
+
/** Video types that browsers play in a `<video>` element. */
|
|
5
|
+
declare const INLINE_VIDEO_TYPES: readonly ["video/mp4", "video/webm"];
|
|
4
6
|
/** Bound JSON image input below the hosting platform's request size limit. */
|
|
5
7
|
declare const MAX_INPUT_IMAGE_BYTES: number;
|
|
6
8
|
declare const MAX_INPUT_IMAGES = 3;
|
|
@@ -693,6 +695,7 @@ declare const conversationSummaryReportSchema: z.ZodObject<{
|
|
|
693
695
|
}, z.core.$strict>>>;
|
|
694
696
|
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
695
697
|
pinnedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
698
|
+
pinPosition: z.ZodOptional<z.ZodNumber>;
|
|
696
699
|
channel: z.ZodOptional<z.ZodString>;
|
|
697
700
|
channelName: z.ZodOptional<z.ZodString>;
|
|
698
701
|
channelNameRedacted: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1780,6 +1783,7 @@ declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
1780
1783
|
}, z.core.$strict>>>;
|
|
1781
1784
|
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1782
1785
|
pinnedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1786
|
+
pinPosition: z.ZodOptional<z.ZodNumber>;
|
|
1783
1787
|
channel: z.ZodOptional<z.ZodString>;
|
|
1784
1788
|
channelName: z.ZodOptional<z.ZodString>;
|
|
1785
1789
|
channelNameRedacted: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2709,6 +2713,7 @@ declare const conversationFeedSchema: z.ZodObject<{
|
|
|
2709
2713
|
}, z.core.$strict>>>;
|
|
2710
2714
|
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2711
2715
|
pinnedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2716
|
+
pinPosition: z.ZodOptional<z.ZodNumber>;
|
|
2712
2717
|
channel: z.ZodOptional<z.ZodString>;
|
|
2713
2718
|
channelName: z.ZodOptional<z.ZodString>;
|
|
2714
2719
|
channelNameRedacted: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3066,6 +3071,7 @@ declare const conversationDetailWithMailboxReportSchema: z.ZodObject<{
|
|
|
3066
3071
|
}, z.core.$strict>>>;
|
|
3067
3072
|
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3068
3073
|
pinnedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3074
|
+
pinPosition: z.ZodOptional<z.ZodNumber>;
|
|
3069
3075
|
channel: z.ZodOptional<z.ZodString>;
|
|
3070
3076
|
channelName: z.ZodOptional<z.ZodString>;
|
|
3071
3077
|
channelNameRedacted: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -4272,6 +4278,19 @@ declare const pinConversationResponseSchema: z.ZodObject<{
|
|
|
4272
4278
|
}, z.core.$strict>;
|
|
4273
4279
|
type PinConversationBody = z.infer<typeof pinConversationBodySchema>;
|
|
4274
4280
|
type PinConversationResponse = z.infer<typeof pinConversationResponseSchema>;
|
|
4281
|
+
/**
|
|
4282
|
+
* The viewer's full Pinned order, first to last. Each pin takes its index as
|
|
4283
|
+
* its new place.
|
|
4284
|
+
*/
|
|
4285
|
+
declare const reorderPinnedConversationsBodySchema: z.ZodObject<{
|
|
4286
|
+
conversationIds: z.ZodArray<z.ZodString>;
|
|
4287
|
+
}, z.core.$strict>;
|
|
4288
|
+
/** The pinned Conversations that got a new place, in order. */
|
|
4289
|
+
declare const reorderPinnedConversationsResponseSchema: z.ZodObject<{
|
|
4290
|
+
conversationIds: z.ZodArray<z.ZodString>;
|
|
4291
|
+
}, z.core.$strict>;
|
|
4292
|
+
type ReorderPinnedConversationsBody = z.infer<typeof reorderPinnedConversationsBodySchema>;
|
|
4293
|
+
type ReorderPinnedConversationsResponse = z.infer<typeof reorderPinnedConversationsResponseSchema>;
|
|
4275
4294
|
/**
|
|
4276
4295
|
* One direct child agent of a Conversation, from agent invocation records.
|
|
4277
4296
|
*
|
|
@@ -4761,6 +4780,7 @@ declare const actorProfileReportSchema: z.ZodObject<{
|
|
|
4761
4780
|
}, z.core.$strict>>>;
|
|
4762
4781
|
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4763
4782
|
pinnedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4783
|
+
pinPosition: z.ZodOptional<z.ZodNumber>;
|
|
4764
4784
|
channel: z.ZodOptional<z.ZodString>;
|
|
4765
4785
|
channelName: z.ZodOptional<z.ZodString>;
|
|
4766
4786
|
channelNameRedacted: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -5185,6 +5205,7 @@ declare const locationDetailReportSchema: z.ZodObject<{
|
|
|
5185
5205
|
}, z.core.$strict>>>;
|
|
5186
5206
|
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5187
5207
|
pinnedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5208
|
+
pinPosition: z.ZodOptional<z.ZodNumber>;
|
|
5188
5209
|
channel: z.ZodOptional<z.ZodString>;
|
|
5189
5210
|
channelName: z.ZodOptional<z.ZodString>;
|
|
5190
5211
|
channelNameRedacted: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -7374,4 +7395,4 @@ declare const reviewItemActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7374
7395
|
}, z.core.$strict>;
|
|
7375
7396
|
}, z.core.$strict>], "action">;
|
|
7376
7397
|
type ReviewItemActionBody = z.output<typeof reviewItemActionSchema>;
|
|
7377
|
-
export { automationExecutionSchema as $,
|
|
7398
|
+
export { automationExecutionSchema as $, archiveConversationResponseSchema as $n, conversationFeedSchema as $r, LocationParams as $t, StatReport as A, resolveMessageCards as Ai, ReorderPinnedConversationsResponse as An, ConversationModelUsage as Ar, PersonalTokenMetadata as At, AutomationListQuery as B, InputImage as Bi, conversationReadPositionSchema as Bn, ConversationTurnFailureReason as Br, serviceAccountSchema as Bt, pluginPackageContentItemReportSchema as C, codeRepositorySummarySchema as Ci, ConversationChildAgent as Cn, ConversationAgentTreeNode as Cr, workspaceBodySchema as Ct, runtimeInfoReportSchema as D, dailyConversationActivitySchema as Di, PinConversationBody as Dn, ConversationEventHistory as Dr, workspaceSchema as Dt, pluginsSchema as E, DailyConversationActivity as Ei, conversationChildAgentsReportSchema as En, ConversationDetailReport as Er, workspaceRepoSchema as Et, AutomationExecution as F, UserInputRequest as Fi, ConversationCatchUp as Fn, ConversationReportStatus as Fr, personalTokenParamsSchema as Ft, AutomationSummary as G, INPUT_IMAGE_TYPES as Gi, ConversationStatsReport as Gn, conversationActivityPreviewSchema as Gr, disconnectConnectionResponseSchema as Gt, AutomationRunList as H, MAX_INPUT_IMAGE_BYTES as Hi, stopConversationTurnResponseSchema as Hn, CreateConversationBody as Hr, connectionListSchema as Ht, AutomationExecutionDay as I, buttonUserInputField as Ii, ConversationCatchUpBody as In, ConversationSourceTask as Ir, revokePersonalTokenResponseSchema as It, ListedAutomationVersion as J, conversationStatsReportSchema as Jn, conversationDetailReportSchema as Jr, apiErrorSchema as Jt, AutomationUpdate as K, GuardianMetricDay as Kn, conversationAuxiliaryCostsSchema as Kr, startConnectionResponseSchema as Kt, AutomationExecutionList as L, isEmptyUserInputAnswer as Li, conversationCatchUpBodySchema as Ln, ConversationSummaryReport as Lr, disconnectServiceAccountResponseSchema as Lt, statSchema as M, USER_INPUT_NOTE as Mi, pinConversationResponseSchema as Mn, ConversationReportEvent as Mr, createdPersonalTokenSchema as Mt, statsReportSchema as N, UserInputAnswer as Ni, reorderPinnedConversationsBodySchema as Nn, ConversationReportEventData as Nr, personalTokenListSchema as Nt, skillReportSchema as O, MessageCard as Oi, PinConversationResponse as On, ConversationEventPage as Or, USER_CUSTOMIZATION_MAX_CHARS as Ot, AutomationEdit as P, UserInputField as Pi, reorderPinnedConversationsResponseSchema as Pn, ConversationReportMessageEvent as Pr, personalTokenMetadataSchema as Pt, automationExecutionListSchema as Q, archiveConversationBodySchema as Qn, conversationFeedQuerySchema as Qr, LocationDirectoryReport as Qt, AutomationExecutionStatusDay as R, normalizeUserInputAnswer as Ri, conversationCatchUpSchema as Rn, ConversationSurface as Rr, serviceAccountListSchema as Rt, pluginOperationalReportSchema as S, codeRepositoryReportSchema as Si, conversationWatchesReportSchema as Sn, ConversationActivityPreview as Sr, deleteWorkspaceResponseSchema as St, pluginSchema as T, conversationChildAgentTotalsSchema as Ti, conversationChildAgentSchema as Tn, ConversationCost as Tr, workspaceParamsSchema as Tt, AutomationRunWindows as U, MessageAttachment as Ui, ConversationMetricDay as Un, CreateConversationMessageBody as Ur, connectionParamsSchema as Ut, AutomationRun as V, MAX_INPUT_IMAGES as Vi, StopConversationTurnResponse as Vn, ConversationUsage as Vr, startServiceAccountSignInResponseSchema as Vt, AutomationScheduleIntent as W, INLINE_VIDEO_TYPES as Wi, ConversationStatsItem as Wn, acceptedConversationMessageSchema as Wr, connectionSchema as Wt, automationEditSchema as X, ArchiveConversationResponse as Xn, conversationEventPageSchema as Xr, LocationActorSummaryReport as Xt, automationEditErrorSchema as Y, ArchiveConversationBody as Yn, conversationEventHistorySchema as Yr, LocationActivityDayReport as Yt, automationEventCatalogSchema as Z, ConversationAutoArchive as Zn, conversationEventsQuerySchema as Zr, LocationDetailReport as Zt, RuntimeInfoReport as _, codeChangeSummaryReportSchema as _i, personParamsSchema as _n, steerConversationPendingMessagesBodySchema as _r, scheduledAutomationSummarySchema as _t, reviewItemCountSchema as a, createConversationMessageBodySchema as ai, ActorActivityDayReport as an, ConversationPendingMessageDelivery as ar, automationRunListSchema as at, healthReportSchema as b, codePersonReportSchema as bi, ConversationWatchesReport as bn, ActorIdentity as br, WorkspaceReport as bt, reviewItemWaitingConversationsSchema as c, conversationTurnFailureCodeSchema as ci, ActorProfileReport as cn, SteerConversationPendingMessagesResponse as cr, automationScheduleIntentSchema as ct, Plugin as d, CodeChangeSummaryReport as di, ActorWindowMetrics as dn, conversationDetailWithMailboxReportSchema as dr, automationUpdateSchema as dt, conversationParamsSchema as ei, LocationSummaryReport as en, archiveDoneConversationsResponseSchema as er, automationExecutionStatusDaySchema as et, PluginOperationalReport as f, CodeOverviewReport as fi, PeopleActivityDayReport as fn, conversationPendingAuthorizationSchema as fr, automationVersionActivateSchema as ft, Plugins as g, codeActivityDaySchema as gi, actorProfileReportSchema as gn, conversationUnchangedDetailWithMailboxSchema as gr, eventAutomationSummarySchema as gt, PluginPackageContentReport as h, CodeRepositorySummary as hi, actorDirectoryReportSchema as hn, conversationPendingMessagesReportSchema as hr, automationVersionSchema as ht, reviewItemActionSchema as i, createConversationBodySchema as ii, locationParamsSchema as in, ConversationPendingMessage as ir, automationParamsSchema as it, StatsReport as j, AutomationCard as ji, pinConversationBodySchema as jn, ConversationParams as jr, createPersonalTokenBodySchema as jt, skillReportsSchema as k, messageCardText as ki, ReorderPinnedConversationsBody as kn, ConversationFeed as kr, userCustomizationSchema as kt, ReviewItemChangeRecord as l, conversationTurnFailureReasonSchema as li, ActorSummaryReport as ln, cancelConversationPendingMessagesBodySchema as lr, automationSchedulePreviewSchema as lt, PluginPackageContentItemReport as m, CodeRepositoryReport as mi, PersonalSpendReport as mn, conversationPendingMessageSchema as mr, automationVersionParamsSchema as mt, ReviewItemActionBody as n, conversationReportEventSchema as ni, locationDetailReportSchema as nn, CancelConversationPendingMessagesBody as nr, automationListQuerySchema as nt, reviewItemListSchema as o, forkConversationBodySchema as oi, ActorDirectoryReport as on, ConversationPendingMessagesReport as or, automationRunSchema as ot, PluginOperationalReportFeed as p, CodePersonReport as pi, PersonParams as pn, conversationPendingMessageDeliverySchema as pr, automationVersionListSchema as pt, AutomationVersionList as q, GuardianStats as qn, conversationDetailQuerySchema as qr, ApiError as qt, ReviewItemPayload as r, conversationSummaryReportSchema as ri, locationDirectoryReportSchema as rn, CancelConversationPendingMessagesResponse as rr, automationListSchema as rt, reviewItemSchema as s, forkConversationResponseSchema as si, ActorDirectoryWindows as sn, SteerConversationPendingMessagesBody as sr, automationRunWindowsSchema as st, OwnedObjectAnnotation$1 as t, conversationReportEventDataSchema as ti, locationActivityDayReportSchema as tn, conversationAutoArchiveSchema as tr, automationExecutionStatusSchema as tt, HealthReport as u, CodeActivityDay as ui, ActorTotalsReport as un, cancelConversationPendingMessagesResponseSchema as ur, automationSummarySchema as ut, SkillReport as v, codeChangeSummarySchema as vi, personalSpendReportSchema as vn, steerConversationPendingMessagesResponseSchema as vr, BaselineSnapshotReport as vt, pluginPackageContentReportSchema as w, ConversationChildAgentTotals as wi, ConversationChildAgentsReport as wn, ConversationAuxiliaryCosts as wr, workspaceListSchema as wt, pluginOperationalReportFeedSchema as x, codeRepositoryParamsSchema as xi, conversationWatchSchema as xn, CONVERSATION_DETAIL_VERSION_HEADER as xr, baselineSnapshotSchema as xt, SkillReports as y, codeOverviewReportSchema as yi, ConversationWatch as yn, AcceptedConversationMessage as yr, WorkspaceListReport as yt, AutomationList as z, webMessageId as zi, ConversationReadPosition as zn, ConversationTurnFailureCode 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-B7NRB7eH.js";
|
|
2
|
+
import { t as disconnectStateAdapter } from "./adapter-D8-lqOBF.js";
|
|
3
|
+
import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-D6AMahy7.js";
|
|
4
4
|
import { CLI_USAGE } from "./cli/run.js";
|
|
5
5
|
import { createServer } from "node:http";
|
|
6
6
|
// src/cli/service-account.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { W as isRecord, b as setSpanAttributes, h as logWarn } from "./logging-
|
|
2
|
-
import { c as fetchWithBoundedOAuthErrorBodies, i as resolvePluginHeaderEnvRefs } from "./registry-
|
|
1
|
+
import { W as isRecord, b as setSpanAttributes, h as logWarn } from "./logging-2BXvW7Mp.js";
|
|
2
|
+
import { c as fetchWithBoundedOAuthErrorBodies, i as resolvePluginHeaderEnvRefs } from "./registry-CLooHPAz.js";
|
|
3
3
|
import { a as withLock, i as fenceLock, n as MUTATION_LOCK_TTL_MS } from "./locks-D-0h111u.js";
|
|
4
|
-
import { r as getStateAdapter } from "./adapter-
|
|
4
|
+
import { r as getStateAdapter } from "./adapter-D8-lqOBF.js";
|
|
5
5
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
6
6
|
import { randomUUID } from "node:crypto";
|
|
7
7
|
import { UnauthorizedError, auth } from "@modelcontextprotocol/sdk/client/auth.js";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { v as __exportAll } from "./sentry-BRTJqumy.js";
|
|
2
|
-
import { Br as getDashboardObjectIconLink, Ln as getPlugins, Lr as verifyTimerWatchCredentialSubject, N as normalizeConversationText, Nn as getPluginSlackConversationLink, Qa as buildSentryConversationUrl, Rr as JUNIOR_THREAD_STATE_TTL_MS, Wr as ToolInputError, Zt as isAssistantMessage, _i as escapeSlackMrkdwnText, en as isToolResultError, ki as postSlackMessage, nn as normalizeToolNameFromResult, tn as isToolResultMessage, vi as formatSlackLink, yi as normalizeSlackReplyMarkdown, zr as getDashboardConversationLink } from "./projection-
|
|
3
|
-
import { n as botConfig } from "./config-
|
|
4
|
-
import { h as logWarn, m as logInfo, p as logException } from "./logging-
|
|
5
|
-
import { C as getSqlExecutor, F as SYSTEM_IDENTITY_ID, J as nextDetailVersion, x as getConversationStore } from "./viewer-
|
|
6
|
-
import { A as juniorConversations } from "./executor-
|
|
7
|
-
import { h as credentialSubjectSchema } from "./registry-
|
|
8
|
-
import { r as getStateAdapter } from "./adapter-
|
|
9
|
-
import { R as readMessageAttachments } from "./conversation-
|
|
10
|
-
import { r as EVENT_AUTHOR_ID } from "./prompt-
|
|
11
|
-
import { a as QUIET_MARKER, r as sanitizeAssistantText } from "./assistant-reply-
|
|
12
|
-
import { r as appendAndEnqueueInboundMessage } from "./store-
|
|
13
|
-
import { dt as CORE_EVENT_NAMESPACE, ht as eventGuidance, mt as eventCatalogEntry } from "./turn-session-routing-
|
|
2
|
+
import { Br as getDashboardObjectIconLink, Ln as getPlugins, Lr as verifyTimerWatchCredentialSubject, N as normalizeConversationText, Nn as getPluginSlackConversationLink, Qa as buildSentryConversationUrl, Rr as JUNIOR_THREAD_STATE_TTL_MS, Wr as ToolInputError, Zt as isAssistantMessage, _i as escapeSlackMrkdwnText, en as isToolResultError, ki as postSlackMessage, nn as normalizeToolNameFromResult, tn as isToolResultMessage, vi as formatSlackLink, yi as normalizeSlackReplyMarkdown, zr as getDashboardConversationLink } from "./projection-BfKkpOGQ.js";
|
|
3
|
+
import { n as botConfig } from "./config-DFVlYCeY.js";
|
|
4
|
+
import { h as logWarn, m as logInfo, p as logException } from "./logging-2BXvW7Mp.js";
|
|
5
|
+
import { C as getSqlExecutor, F as SYSTEM_IDENTITY_ID, J as nextDetailVersion, x as getConversationStore } from "./viewer-CYB9T4rm.js";
|
|
6
|
+
import { A as juniorConversations } from "./executor-HPgHGAWK.js";
|
|
7
|
+
import { h as credentialSubjectSchema } from "./registry-CLooHPAz.js";
|
|
8
|
+
import { r as getStateAdapter } from "./adapter-D8-lqOBF.js";
|
|
9
|
+
import { R as readMessageAttachments } from "./conversation-DdT7SNar.js";
|
|
10
|
+
import { r as EVENT_AUTHOR_ID } from "./prompt-CCtaGgbI.js";
|
|
11
|
+
import { a as QUIET_MARKER, r as sanitizeAssistantText } from "./assistant-reply-CdYsLbXL.js";
|
|
12
|
+
import { r as appendAndEnqueueInboundMessage } from "./store-DAJntSEv.js";
|
|
13
|
+
import { dt as CORE_EVENT_NAMESPACE, ht as eventGuidance, mt as eventCatalogEntry } from "./turn-session-routing-CzCnNAUO.js";
|
|
14
14
|
import * as z from "zod";
|
|
15
15
|
import { eq, inArray } from "drizzle-orm";
|
|
16
16
|
import { agentEventKeys, eventMatchFieldsSchema, objectFactFields, objectPresentation, objectTypeSchema } from "@sentry/junior-plugin-api";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { v as __exportAll } from "./sentry-BRTJqumy.js";
|
|
2
|
-
import { h as logWarn } from "./logging-
|
|
2
|
+
import { h as logWarn } from "./logging-2BXvW7Mp.js";
|
|
3
3
|
import { s as skillRoots } from "./package-discovery-DJhGdS4c.js";
|
|
4
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
4
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-B7NRB7eH.js";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import * as z from "zod";
|
|
7
7
|
import fs from "node:fs/promises";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { v as __exportAll } from "./sentry-BRTJqumy.js";
|
|
2
|
-
import { Ft as toolInvocationDestination, Pt as actorFromRun } from "./agent-runner-
|
|
3
|
-
import { n as createAndEnqueueAgentInvocation } from "./work-
|
|
2
|
+
import { Ft as toolInvocationDestination, Pt as actorFromRun } from "./agent-runner-Bj7GhysW.js";
|
|
3
|
+
import { n as createAndEnqueueAgentInvocation } from "./work-J1n6RQkY.js";
|
|
4
4
|
// src/chat/agent-invocations/spawn.ts
|
|
5
5
|
var spawn_exports = /* @__PURE__ */ __exportAll({ bindSpawnAgent: () => bindSpawnAgent });
|
|
6
6
|
/** Bind a Run's Actor and credentials to new Agent invocations. */
|