@sentry/junior 0.293.0 → 0.294.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-CMJfmHso.js → adapter-DxLhJEnO.js} +1 -1
- package/dist/{admin-uuecrKuD.js → admin-vt8aSiCD.js} +2 -2
- package/dist/{agent-runner-DHq1pjUg.js → agent-runner-DJu7w6mI.js} +68 -33
- 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 +48 -28
- package/dist/{app-fWzCHFIb.d.ts → app--a5RLOrr.d.ts} +4 -2
- package/dist/app.d.ts +1 -1
- package/dist/app.js +60 -69
- package/dist/{assistant-reply-CIApSfor.js → assistant-reply-iTtEdDyc.js} +1 -1
- package/dist/{automation-BE3z19VN.js → automation-BM-OBsKW.js} +1 -1
- package/dist/{background-compaction-queue-D7ncdEa6.js → background-compaction-queue-D2j-0XkH.js} +4 -4
- package/dist/{briefs-NpgMEFh1.js → briefs-JOAoCb6d.js} +3 -3
- package/dist/{catalog-runtime-DwbTyNRD.js → catalog-runtime-CLMA9AXd.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 +7 -74
- package/dist/{config-B4b-NXH5.js → config-mIZeGEWv.js} +17 -7
- package/dist/{connections-Dz_AQg5p.js → connections-XhdVg7OR.js} +6 -6
- package/dist/{conversation-CtjR1Zcx.js → conversation-CDWejM4R.js} +1 -0
- package/dist/{conversation-pending-messages-1Kad1Mif.js → conversation-pending-messages-Dh2tfbaw.js} +1 -1
- package/dist/{conversation-privacy-DRsSgLGO.js → conversation-privacy-C6h-X2cZ.js} +1 -1
- package/dist/{credential-sync-ClCnnGVj.js → credential-sync-zigBlXS3.js} +13 -13
- package/dist/{db-CoA7_Xqu.js → db--xuNV7g6.js} +99 -6
- package/dist/{db-BbpttyKH.d.ts → db-DV5AbcGM.d.ts} +8 -6
- package/dist/{executor-SWyHhit0.js → executor-BItuRqAR.js} +58 -9
- package/dist/instrumentation.js +2 -2
- package/dist/{logging-BN5drSEZ.js → logging-Cb6MGvdt.js} +1 -1
- package/dist/{message-D4qjpW1C.js → message-BTGgSmaH.js} +9 -9
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +2 -2
- package/dist/{oauth-callback-server-Xi-mTLOV.js → oauth-callback-server-Dvh1aOIi.js} +2 -2
- package/dist/{projection-DXl4ftyL.js → projection-DLQgfO5N.js} +15 -96
- package/dist/{prompt-Dmx6IfWZ.js → prompt-qp_LdxLX.js} +5 -6
- package/dist/{registry-DosVt9f9.js → registry-MtwokaqW.js} +1 -1
- package/dist/{resolve-BDjWJC9s.js → resolve-BnJA0UNE.js} +3 -3
- package/dist/{result-CaAFpf4B.js → result-ChL-1KyW.js} +8 -8
- package/dist/{runner-h96Mkss6.js → runner-BONN7Dp2.js} +8 -8
- package/dist/{sandbox-egress-signals-rK91BW7i.js → sandbox-egress-signals-nmlmI5Ab.js} +1 -1
- package/dist/{schema-CHsBmXIj.d.ts → schema-DgvcyJ1y.d.ts} +38 -1
- package/dist/{schema-C_v8wb80.js → schema-yr0ccDni.js} +29 -4
- package/dist/{service-account-WUMVuqVL.js → service-account-Bd0lBaGr.js} +3 -3
- package/dist/{service-account-BpGpScaT.js → service-account-kio5nXSD.js} +3 -3
- package/dist/{session-stop-xYK15HUu.js → session-stop-CeCXL3j9.js} +11 -11
- package/dist/{skills-DHApyCjj.js → skills-e3DDNlKO.js} +2 -2
- package/dist/{spawn-BQQrwGNe.js → spawn--cRxITWQ.js} +5 -5
- package/dist/{stop-CBeD6_Gs.js → stop-Iai5N2PU.js} +25 -26
- package/dist/{store-xtibD98L.js → store-C8LsaJwS.js} +3 -3
- package/dist/{task-runner-BYPN4BEO.js → task-runner-Dw7exu0-.js} +11 -11
- package/dist/{turn-failure-response-jNVl00MD.js → turn-failure-response-BqTTx3XG.js} +8 -8
- package/dist/{validation-DGeB_moV.js → validation-BrGahtnv.js} +1 -1
- package/dist/{version-C6nqU3Qc.js → version-Bdqhx8Qh.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-9KLQibjn.js → viewer-CjRFHR5U.js} +3 -3
- package/dist/{warmup-7S6z068f.js → warmup-DuxCtzKC.js} +69 -23
- package/dist/{work-xwX6unUE.js → work-BWBG1EGV.js} +11 -11
- package/dist/{worker-CiCCfwd4.js → worker-DAnBIVMs.js} +6 -6
- package/migrations/0062_plugin_report_index.sql +1 -20
- package/migrations/0078_plugin_conversation_index.sql +1 -20
- package/migrations/0079_conversation_event_author_index.sql +1 -20
- package/migrations/0080_conversation_event_latest_message_indexes.sql +2 -27
- package/migrations/0090_guardian_review_time_index.sql +1 -20
- package/migrations/0091_conversation_participant_unsubscribed_index.sql +1 -20
- package/migrations/0097_conversation_kind_automation.sql +6 -0
- package/migrations/meta/0097_snapshot.json +4490 -0
- package/migrations/meta/_journal.json +7 -0
- package/package.json +4 -4
package/dist/nitro.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as JuniorDashboardOptions } from "./app
|
|
1
|
+
import { i as JuniorDashboardOptions } from "./app--a5RLOrr.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,6 +1,6 @@
|
|
|
1
|
-
import { A as JUNIOR_CONTEXT_COMPACTION_CALLBACK_ROUTE, D as JUNIOR_AUTO_ARCHIVE_CRON_SCHEDULE, F as JUNIOR_RETENTION_CRON_SCHEDULE, I as JUNIOR_RETENTION_ROUTE, L as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, M as JUNIOR_HEARTBEAT_CRON_SCHEDULE, N as JUNIOR_HEARTBEAT_ROUTE, O as JUNIOR_AUTO_ARCHIVE_ROUTE, P as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, j as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE, k as JUNIOR_CACHE_WARMUP_CALLBACK_ROUTE, z as getDeploymentServiceVersion } from "./logging-
|
|
1
|
+
import { A as JUNIOR_CONTEXT_COMPACTION_CALLBACK_ROUTE, D as JUNIOR_AUTO_ARCHIVE_CRON_SCHEDULE, F as JUNIOR_RETENTION_CRON_SCHEDULE, I as JUNIOR_RETENTION_ROUTE, L as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, M as JUNIOR_HEARTBEAT_CRON_SCHEDULE, N as JUNIOR_HEARTBEAT_ROUTE, O as JUNIOR_AUTO_ARCHIVE_ROUTE, P as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, j as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE, k as JUNIOR_CACHE_WARMUP_CALLBACK_ROUTE, z as getDeploymentServiceVersion } from "./logging-Cb6MGvdt.js";
|
|
2
2
|
import { d as resolvePackageDir, t as discoverInstalledPluginPackageContent, u as isValidPackageName } from "./package-discovery-DJhGdS4c.js";
|
|
3
|
-
import { S as CACHE_WARMUP_QUEUE_TOPIC, _ as resolveConversationWorkQueueTopic, a as PLUGIN_TASK_QUEUE_TOPIC, f as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC, t as BACKGROUND_COMPACTION_QUEUE_TOPIC } from "./background-compaction-queue-
|
|
3
|
+
import { S as CACHE_WARMUP_QUEUE_TOPIC, _ as resolveConversationWorkQueueTopic, a as PLUGIN_TASK_QUEUE_TOPIC, f as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC, t as BACKGROUND_COMPACTION_QUEUE_TOPIC } from "./background-compaction-queue-D2j-0XkH.js";
|
|
4
4
|
import { a as pluginRuntimeRegistrationsFromPluginSet, r as pluginCatalogConfigFromPluginSet } from "./plugins-HYh_JOdw.js";
|
|
5
5
|
import { n as loadPluginSetFromModule, r as resolvePluginModule } from "./plugin-module-Cf5gVPWP.js";
|
|
6
6
|
import path from "node:path";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as GET, n as syncLocalOAuthCredential, r as GET$1 } from "./credential-sync-
|
|
1
|
+
import { En as createUserTokenStore } from "./projection-DLQgfO5N.js";
|
|
2
|
+
import { a as GET, n as syncLocalOAuthCredential, r as GET$1 } from "./credential-sync-zigBlXS3.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 estimateTextTokens, E as resolveGatewayModel, I as unwrapCurrentInstruction,
|
|
3
|
-
import { E as withSpan, G as isRecord$2, K as toOptionalNumber, _ as runBestEffort, a as extractGenAiUsageSummary, b as setSpanAttributes, c as getLogContextAttributes, d as logAudit, h as logWarn, m as logInfo, o as getActiveTraceContext, p as logException, q as toOptionalString, t as buildTurnFailureResponse, x as setSpanStatus, y as setSentryUser } from "./logging-
|
|
4
|
-
import { t as canExposeConversationPayload } from "./conversation-privacy-
|
|
2
|
+
import { A as estimateTextTokens, E as resolveGatewayModel, I as unwrapCurrentInstruction, L as escapeXml, S as completeObject, T as rerankTexts, X as toOptionalTrimmed, i as getChatConfig, n as botConfig, o as getSlackBotToken, v as normalizeSlackEmojiName, w as embedTexts, x as completeDecision, y as GEN_AI_PROVIDER_NAME } from "./config-mIZeGEWv.js";
|
|
3
|
+
import { E as withSpan, G as isRecord$2, K as toOptionalNumber, _ as runBestEffort, a as extractGenAiUsageSummary, b as setSpanAttributes, c as getLogContextAttributes, d as logAudit, h as logWarn, m as logInfo, o as getActiveTraceContext, p as logException, q as toOptionalString, t as buildTurnFailureResponse, x as setSpanStatus, y as setSentryUser } from "./logging-Cb6MGvdt.js";
|
|
4
|
+
import { t as canExposeConversationPayload } from "./conversation-privacy-C6h-X2cZ.js";
|
|
5
5
|
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";
|
|
6
|
-
import {
|
|
7
|
-
import { A as juniorConversations, D as juniorCodeChanges, E as juniorConversationAnnotations, M as juniorUsers, N as juniorDestinations, O as juniorCodeRepositories, a as juniorPushSubscriptions, b as juniorConversationBriefs, f as juniorAutomations, i as juniorWorkspaces, j as juniorIdentities, k as juniorAttachments, l as juniorReviewItems, m as juniorLocationConfigurations, n as juniorSnapshots, o as juniorReviewItemAssignees, r as juniorWorkspaceRepos, s as juniorReviewItemConversations, v as juniorConversationParticipants, w as juniorConversationEvents } from "./executor-
|
|
6
|
+
import { G as addAgentTurnUsage, L as readUserTimezone, M as resolveActorIdentityId, Q as conversationDetailTouch, S as isPersonInput, V as bindProviderConversation, Y as hasAgentTurnUsage, a as getConversationStore, d as createSqlConversationEventStore, f as eventFromRow, it as sameDestination, k as startLocationThread, nt as parseDestination, o as getDb, p as withConversationEventLock, r as getConversationEventStore, s as getSqlExecutor, y as createSqlStore, z as saveUserTimezone } from "./db--xuNV7g6.js";
|
|
7
|
+
import { A as juniorConversations, D as juniorCodeChanges, E as juniorConversationAnnotations, M as juniorUsers, N as juniorDestinations, O as juniorCodeRepositories, a as juniorPushSubscriptions, b as juniorConversationBriefs, f as juniorAutomations, i as juniorWorkspaces, j as juniorIdentities, k as juniorAttachments, l as juniorReviewItems, m as juniorLocationConfigurations, n as juniorSnapshots, o as juniorReviewItemAssignees, r as juniorWorkspaceRepos, s as juniorReviewItemConversations, v as juniorConversationParticipants, w as juniorConversationEvents } from "./executor-BItuRqAR.js";
|
|
8
8
|
import { _ as instructionProvenanceFor, g as instructionActors, h as contextProvenance, o as agentHistoryItemSchema } from "./media-BepyEUNm.js";
|
|
9
|
-
import { _ as CredentialUnavailableError, a as resolveAuthTokenPlaceholder, f as credentialContextForActor, h as credentialSubjectSchema, m as credentialLogContext, o as resolvePluginCommandEnv, p as credentialContextSchema } from "./registry-
|
|
10
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
11
|
-
import { d as JUNIOR_NATIVE_EVENT_NAMESPACE, f as agentsInstructionsUpdatedEvent, g as renderJuniorNativeConversationEvent, l as completeObject$1, m as authenticationUnlinkedEvent, n as briefEntriesFromReportEvents, o as isEventConversationMessage, p as authenticationLinkedEvent, s as generateBrief, t as BRIEF_PROMPT, u as completeText } from "./prompt-
|
|
9
|
+
import { _ as CredentialUnavailableError, a as resolveAuthTokenPlaceholder, f as credentialContextForActor, h as credentialSubjectSchema, m as credentialLogContext, o as resolvePluginCommandEnv, p as credentialContextSchema } from "./registry-MtwokaqW.js";
|
|
10
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-CLMA9AXd.js";
|
|
11
|
+
import { d as JUNIOR_NATIVE_EVENT_NAMESPACE, f as agentsInstructionsUpdatedEvent, g as renderJuniorNativeConversationEvent, l as completeObject$1, m as authenticationUnlinkedEvent, n as briefEntriesFromReportEvents, o as isEventConversationMessage, p as authenticationLinkedEvent, s as generateBrief, t as BRIEF_PROMPT, u as completeText } from "./prompt-qp_LdxLX.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 { g as createCache, i as readActorIdentity, l as resolveViewerUser, n as findUserByEmailFromSql, o as readIdentityById, p as parseAvatarUrl, s as readIdentityByIdFromSql } from "./viewer-
|
|
14
|
-
import { a as setStateValues, i as getStateValues, n as getDefaultRedisStateAdapterFor, r as getStateAdapter } from "./adapter-
|
|
13
|
+
import { g as createCache, i as readActorIdentity, l as resolveViewerUser, n as findUserByEmailFromSql, o as readIdentityById, p as parseAvatarUrl, s as readIdentityByIdFromSql } from "./viewer-CjRFHR5U.js";
|
|
14
|
+
import { a as setStateValues, i as getStateValues, n as getDefaultRedisStateAdapterFor, r as getStateAdapter } from "./adapter-DxLhJEnO.js";
|
|
15
15
|
import { n as isWithinNotificationSchedule, r as notificationScheduleSchema, s as isValidTimeZone, t as DEFAULT_NOTIFICATION_SCHEDULE } from "./schedule-cP0AACm1.js";
|
|
16
|
-
import { I as messageCardRef, J as briefResourceLabel, P as reviewItemChangeRecordSchema, R as readMessageCardRefs, W as readMessageAttachments, X as parseBriefInput, Y as conversationBriefSchema, Z as parseStoredBrief, _ as conversationReportEventSchema, v as conversationReportMessageEventSchema } from "./conversation-
|
|
16
|
+
import { I as messageCardRef, J as briefResourceLabel, P as reviewItemChangeRecordSchema, R as readMessageCardRefs, W as readMessageAttachments, X as parseBriefInput, Y as conversationBriefSchema, Z as parseStoredBrief, _ as conversationReportEventSchema, v as conversationReportMessageEventSchema } from "./conversation-CDWejM4R.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";
|
|
@@ -5374,6 +5374,7 @@ async function withSlackRetries(task, maxAttempts = 3, context = {}) {
|
|
|
5374
5374
|
...context.attributes ?? {}
|
|
5375
5375
|
};
|
|
5376
5376
|
if (!isRetryable || attempt >= maxAttempts || remainingDelayBudgetMs <= 0) {
|
|
5377
|
+
if (context.expectedErrorCodes?.includes(mapped.code)) throw mapped;
|
|
5377
5378
|
logWarn("slack.action.failed", {
|
|
5378
5379
|
...baseLogAttributes,
|
|
5379
5380
|
...mapped.errorData ? { "app.slack.error_data": mapped.errorData } : void 0
|
|
@@ -5817,6 +5818,7 @@ async function addReactionToMessage(input) {
|
|
|
5817
5818
|
name: emoji
|
|
5818
5819
|
}), input.timeoutMs === void 0 ? 3 : 1, {
|
|
5819
5820
|
action: "reactions.add",
|
|
5821
|
+
expectedErrorCodes: ["already_reacted"],
|
|
5820
5822
|
idempotent: true,
|
|
5821
5823
|
spanAttributes: {
|
|
5822
5824
|
"app.slack.channel_id": channelId,
|
|
@@ -5843,6 +5845,7 @@ async function removeReactionFromMessage(input) {
|
|
|
5843
5845
|
name: emoji
|
|
5844
5846
|
}), 3, {
|
|
5845
5847
|
action: "reactions.remove",
|
|
5848
|
+
expectedErrorCodes: ["no_reaction"],
|
|
5846
5849
|
idempotent: true,
|
|
5847
5850
|
spanAttributes: {
|
|
5848
5851
|
"app.slack.channel_id": channelId,
|
|
@@ -11702,89 +11705,6 @@ function buildTurnLimitResponse(eventId) {
|
|
|
11702
11705
|
function buildTurnErrorResponse(error, eventId) {
|
|
11703
11706
|
return isTurnExecutionLimitExceededError(error) ? buildTurnLimitResponse(eventId) : buildTurnFailureResponse(eventId);
|
|
11704
11707
|
}
|
|
11705
|
-
// src/chat/conversations/kind-behavior.ts
|
|
11706
|
-
const ROOT = {
|
|
11707
|
-
delivery: "location",
|
|
11708
|
-
promptMode: "conversation",
|
|
11709
|
-
gated: false,
|
|
11710
|
-
tools: {
|
|
11711
|
-
agents: "children",
|
|
11712
|
-
reviewDesk: true,
|
|
11713
|
-
subscriptions: true,
|
|
11714
|
-
userCustomization: true,
|
|
11715
|
-
reportBlocked: false,
|
|
11716
|
-
noReply: true,
|
|
11717
|
-
finishAutomationRun: false
|
|
11718
|
-
}
|
|
11719
|
-
};
|
|
11720
|
-
const PERSON_IN_THREAD = {
|
|
11721
|
-
...ROOT,
|
|
11722
|
-
tools: {
|
|
11723
|
-
...ROOT.tools,
|
|
11724
|
-
agents: "none"
|
|
11725
|
-
}
|
|
11726
|
-
};
|
|
11727
|
-
const AGENT_IN_CHILD = {
|
|
11728
|
-
delivery: "conversation",
|
|
11729
|
-
promptMode: "child_agent",
|
|
11730
|
-
gated: false,
|
|
11731
|
-
tools: {
|
|
11732
|
-
agents: "children_and_parent",
|
|
11733
|
-
reviewDesk: false,
|
|
11734
|
-
subscriptions: false,
|
|
11735
|
-
userCustomization: false,
|
|
11736
|
-
reportBlocked: true,
|
|
11737
|
-
noReply: true,
|
|
11738
|
-
finishAutomationRun: false
|
|
11739
|
-
}
|
|
11740
|
-
};
|
|
11741
|
-
const AUTOMATION_RUN = {
|
|
11742
|
-
delivery: "conversation",
|
|
11743
|
-
promptMode: "automation",
|
|
11744
|
-
gated: true,
|
|
11745
|
-
tools: {
|
|
11746
|
-
...ROOT.tools,
|
|
11747
|
-
noReply: false,
|
|
11748
|
-
finishAutomationRun: true
|
|
11749
|
-
}
|
|
11750
|
-
};
|
|
11751
|
-
/**
|
|
11752
|
-
* Return the behavior of one Turn. `automationRun` marks a Scheduled or Event
|
|
11753
|
-
* automation run. It is a temporary bridge until Conversation kind
|
|
11754
|
-
* `automation` replaces it.
|
|
11755
|
-
*
|
|
11756
|
-
* TODO(dcramer): Remove `automationRun` when kind `automation` ships.
|
|
11757
|
-
*/
|
|
11758
|
-
function turnBehavior(args) {
|
|
11759
|
-
if (args.automationRun) return AUTOMATION_RUN;
|
|
11760
|
-
if (args.kind === "root") return ROOT;
|
|
11761
|
-
if (!args.personInput) return AGENT_IN_CHILD;
|
|
11762
|
-
if (args.kind === "thread") return PERSON_IN_THREAD;
|
|
11763
|
-
throw new Error("A task Conversation cannot have a person's input");
|
|
11764
|
-
}
|
|
11765
|
-
/** Return whether a person sent input from this Source. */
|
|
11766
|
-
function isPersonInput(source) {
|
|
11767
|
-
return source === "web" || source === "slack";
|
|
11768
|
-
}
|
|
11769
|
-
/**
|
|
11770
|
-
* Return whether the runtime delivers the final response of a Slack or
|
|
11771
|
-
* dispatch run. Only root Conversations reach these paths, so only an
|
|
11772
|
-
* Automation run keeps its final response in the Conversation. A dispatch
|
|
11773
|
-
* with no outcomes delivers nothing.
|
|
11774
|
-
*/
|
|
11775
|
-
function deliversFinalText(dispatch) {
|
|
11776
|
-
return dispatch?.outcomes?.length !== 0 && !dispatch?.declaresResult;
|
|
11777
|
-
}
|
|
11778
|
-
/**
|
|
11779
|
-
* Return whether the runtime may post a failure reply or a status notice,
|
|
11780
|
-
* such as an auth prompt, for a run outside `finishedRunReply`. The rule is
|
|
11781
|
-
* the same as for a final response. A chat Turn may post, also in a thread
|
|
11782
|
-
* that an Automation Conversation owns. An Automation run posts only a
|
|
11783
|
-
* declared message; its failed execution shows on the Automation.
|
|
11784
|
-
*/
|
|
11785
|
-
function postsRunNotices(dispatch) {
|
|
11786
|
-
return deliversFinalText(dispatch);
|
|
11787
|
-
}
|
|
11788
11708
|
// src/chat/task-execution/state.ts
|
|
11789
11709
|
/**
|
|
11790
11710
|
* Expiring conversation mailbox and execution index store.
|
|
@@ -14473,7 +14393,6 @@ async function generateShortTitle(args) {
|
|
|
14473
14393
|
const result = await args.completeText({
|
|
14474
14394
|
signal: args.signal,
|
|
14475
14395
|
modelId: botConfig.fastModelId,
|
|
14476
|
-
temperature: 0,
|
|
14477
14396
|
operation: `${args.kind}_title`,
|
|
14478
14397
|
cost: args.cost,
|
|
14479
14398
|
messages: [{
|
|
@@ -15225,4 +15144,4 @@ async function recordGuardianActionReviewed(args) {
|
|
|
15225
15144
|
createdAtMs: Date.now()
|
|
15226
15145
|
}]);
|
|
15227
15146
|
}
|
|
15228
|
-
export { loadTurnCheckpoint as $, createPluginModelCostRecorder as $a, postSlackMessage as $i, deletePushSubscription as $n, bindEventAutomationCredentialSubject as $r, createTurnLimitGate as $t, latestConversationMessageSeq as A, parseSandboxEgressCredentialToken as Aa, hash as Ai, createUserTokenStore as An, listConversationAnnotations as Ao, reviewItemReaderForUser as Ar, isInvalidConversationRecordError as At, getAgentContextInputLimitTokens as B, createPluginEmbedder as Ba, startOAuthFlow as Bi, getPluginSlackConversationLink as Bn, piMessageFromHistoryItem as Bo, RESOURCE_SUBSCRIPTION_MAX_TTL_MS as Br, requestConversationWork as Bt, settleConversationTitleWork as C, getWorkspaceSnapshotNotReadyError as Ca, updateWorkspace as Ci, escapeTagText as Cn, matchSlackAttachments as Co, canUserReadReviewItem as Cr, deadLetterAttempt as Ct, estimateConversationMessagesTokens as D, consumeSandboxEgressAuthRequiredSignal as Da, setWorkspaceSnapshot as Di, renderUntrustedTag as Dn, resolveRootVisibility as Do, requireReviewItemLinks as Dr, hasConversationStop as Dt, buildConversationContext as E, clearSandboxEgressSignals as Ea, loadSnapshotsForProfile as Ei, renderTag as En, slackAttachmentsVersionQuery as Eo, requireReviewItemAssignees as Er, getConversationWorkState as Et, turnHasReply as F, SANDBOX_RUNTIME as Fa, proxyVercelSandboxEgressRequest as Fi, agent_hooks_exports as Fn, lookupSlackUserNames as Fo, resolveAssignee as Fr, recordAttemptFailure as Ft, AuthPausePersistenceError as G, SANDBOX_SKILLS_ROOT as Ga, slackMention as Gi, setPlugins as Gn, collectEventMatchKeys as Gr, isPersonInput as Gt, PluginCredentialFailureError as H, SANDBOX_COMMAND_PATH as Ha, formatSlackLink as Hi, getPluginTools as Hn, getConfigDefaults as Ho, STOP_WATCHING_TOOL_NAME as Hr, steerWebPendingMessages as Ht, upsertConversationMessage as I, sleep$2 as Ia, deliverOAuthAuthorization as Ii, createPluginEventPublisher as In, createPluginCache as Io, resolveAssignees as Ir, recordConversationRetry as It, abandonReplacedPendingAuth as J, sandboxSkillFile as Ja, deleteSlackMessage as Ji, registration_exports as Jn, deliverWatch as Jr, TURN_LIMIT_WRAP_UP_MESSAGE as Jt, AuthorizationFlowDisabledError as K, SANDBOX_WORKSPACE_ROOT as Ka, truncateStatusText as Ki, validatePlugins as Kn, createTimerWatch as Kr, postsRunNotices as Kt, calculateContextCompactionTargetTokens as L, tryWorkspaceRepoCheckoutPath as La, formatProviderLabel as Li, createPluginHookRunner as Ln, createDurableLocationConfigurationService as Lo, resolveChannelCapabilities as Lr, releaseConversationWork as Lt, normalizeConversationText as M, buildSandboxEgressNetworkPolicy as Ma, ensureDockerDaemon as Mi, webActorUserIds as Mn, defaultTimezone as Mo, EVERYONE_ASSIGNEE as Mr, markConversationWorkEnqueued as Mt, recordDeliveredAssistantMessage as N, resolveSandboxCommandEnvironment as Na, getSandboxProvider as Ni, getOAuthAccountProviders as Nn, resolveUserTimezone as No, activeParticipantUserIds as Nr, moveIdleConversationDestination as Nt, getConversationMessageSlackTs as O, consumeSandboxEgressPermissionDeniedSignal as Oa, setWorkspaceSnapshotBuild as Oi, tagJson as On, saveObjectAnnotations as Oo, reviewItemNeedsSomeone as Or, hasRunnableConversationWork as Ot, trimConversationMessages as P, normalizeSandboxEgressTracePropagationDomains as Pa, isVercelSandboxEgressRequest as Pi, resolvePluginOAuthAccount as Pn, lookupSlackUser as Po, automationCreatorUserId as Pr, pruneActiveConversation as Pt, continuableMessages as Q, runNonInteractiveCommand as Qa, postSlackEphemeralMessage as Qi, resolveNotificationTimezone as Qn, takeDueTimerWatches as Qr, buildTurnErrorResponse as Qt, getAgentBackgroundCompactionMarkTokens as R, workspaceRepoCheckoutPath as Ra, parseOAuthStatePayload as Ri, getPluginApiRoutes as Rn, configValueSchema as Ro, getSlackToolContext as Rr, releaseInboundMessage as Rt, resolveConversationTitle as S, WorkspaceSnapshotNotReadyError as Sa, listWorkspacesByRepository as Si, escapeClosingTags as Sn, getSlackFileId as So, canReadReviewItem as Sr, countPendingConversationMessages as St, resolveTaskTitle as T, workspaceSnapshotNotReadyUserMessage as Ta, invalidateReadySnapshot as Ti, renderChildTag as Tn, recordSlackAttachment as To, readReviewItemAgentScope as Tr, getConversation as Tt, createPluginAuthOrchestration as U, SANDBOX_DATA_ROOT as Ua, normalizeSlackReplyMarkdown as Ui, getPluginUserPromptContributions as Un, setConfigDefaults as Uo, cancelSubscriptions as Ur, stopConversationWork as Ut, createPluginEgress as V, createPluginModel as Va, escapeSlackMrkdwnText as Vi, getPluginSystemPromptContributions as Vn, projectConversationEvents$1 as Vo, RESOURCE_WATCH_TOOL_SOURCE as Vr, startConversationWork as Vt, authorizationId as W, SANDBOX_REPOS_ROOT as Wa, normalizeSlackStatusText as Wi, getPlugins as Wn, cancelWatch as Wr, deliversFinalText as Wt, clearPendingAuth as X, buildCommandScript as Xa, openSlackDirectMessage as Xi, readWebPushConfig as Xn, getWatch as Xr, TurnSliceLimitExceededError as Xt, canReusePendingAuthLink as Y, sandboxSkillPathResolution as Ya, getSlackMessagePermalink as Yi, setBriefsConfig as Yn, findMatchingWatches as Yr, TurnBudgetExceededError as Yt, getConversationPendingAuth as Z, buildNonInteractiveShellScript as Za, openSlackModal as Zi, sendPushNotificationToUser as Zn, listWatches as Zr, TurnToolCallLimitExceededError as Zt, appendConversationMessages as _, runWithWorkspaceTeamId as _a, createWorkspace as _i, stripRuntimeTurnContext as _n, readConversationLastEventSeq as _o, takeReviewItem as _r, claimInboundMessage as _t, loadProjection as a, slackExternalRefIdSchema as aa, verifyTimerWatchCredentialSubject as ai, getTerminalAssistantMessages as an, conversationHasParticipantUser as ao, projectConversationMessages as ar, failTurnRecord as at, persistConversationMessages as b, throwSandboxOperationError as ba, getWorkspaceByName as bi, SESSION_CONTEXT_SECTION_TAG as bn, loadForkHistory as bo, canActOnReviewItem as br, completeConversationStop as bt, recordAgentsInstructionsUpdated as c, getFilePermalink as ca, getDashboardObjectIconLink as ci, hasTurnInput as cn, conversationPinnedForUser as co, countReviewItemsNeedingUser as cr, recordTurnSummary as ct, recordAuthorizationCompleted as d, isConversationScopedChannel as da, getDashboardTaskLink as di, isContinuablePiBoundary as dn, createPluginConversationEvents as do, getReviewItem as dr, ackMessages as dt, removeReactionFromMessage as ea, bindScheduledAutomationCredentialSubject as ei, isTurnExecutionLimitExceededError as en, createPluginLogger as eo, listPushSubscriptions as er, lostWorkerBeforeFirstSave as et, recordAuthorizationRequested as f, isDmChannel as fa, parseDashboardConversationLink as fi, isStandaloneRuntimeContextMessage as fn, readConversationBriefThrough as fo, insertReviewItem as fr, appendExclusiveInboundMessage as ft, recordToolExecutionStarted as g, getWorkspaceTeamId as ga, renderToolResultNudge as gi, retainRuntimeTurnContext as gn, readConversationEventPageAround as go, searchReviewItems as gr, checkInConversationWork as gt, recordSubscribedReplyRoute as h, withSlackRetries as ha, createPluginState as hi, normalizeToolNameFromResult as hn, readConversationEventPageAfter as ho, reviewItemsNeedingUserVersionQuery as hr, cancelHumanFacingPendingMessages as ht, loadConversationProjection as i, slackEntitySchema as ia, verifySlackDirectCredentialSubject as ii, getPiMessageRole as in, readConversationAccessFromSql as io, isPausedBySlack as ir, completeTurnRecord as it, markConversationMessage as j, sandboxEgressSignalsResponseSchema as ja, isStale as ji, findLegacyWebActorUserId as jn, listConversationAnnotationsById as jo, reviewItemReaderForUserInConversation as jr, listActiveConversationIds as jt, isHumanConversationMessage as k, createSandboxEgressCredentialToken as ka, create as ki, SANDBOX_EGRESS_AUTH_REQUIRED_MARKER as kn, createPluginAnnotations as ko, reviewItemNeedsUser as kr, isFinalAttempt as kt, recordAttachmentsDelivered as l, getHeaderString as la, getDashboardReviewItemLink as li, instructionTextForProjection as ln, conversationViewerMarks as lo, dismissOpenReviewItems as lr, CONVERSATION_WORK_CHECK_IN_INTERVAL_MS as lt, recordMcpProviderConnected as m, runWithSlackInstallationToken as ma, ToolInputError as mi, isToolResultMessage as mn, readConversationEventPage as mo, listWaitingConversations as mr, beginConversationResume as mt, commitMessages as n, updateSlackMessage as na, verifyEventAutomationCredentialSubject as ni, persistWithRetry as nn, canAddConversationMessages as no, saveNotificationSchedule as nr, saveTurnCheckpoint as nt, loadTurnProjection as o, SlackActionError as oa, JUNIOR_THREAD_STATE_TTL_MS as oi, getUserMessageInstructionText as on, conversationIsMemberRoot as oo, REVIEW_ITEM_REPLIED_REASON as or, getTurnRecord as ot, recordGuardianActionReviewed as p, normalizeSlackConversationId as pa, setDashboardConversationLinkOptions as pi, isToolResultError as pn, readLatestConversationBrief as po, listReplyActionItems as pr, appendInboundMessage as pt, AuthorizationPauseError as q, sandboxSkillDir as qa, addReactionToMessage as qi, coreTaskRegistrations as qn, createWatch as qr, turnBehavior as qt, loadConnectedMcpProviders as r, uploadFilesToConversation as ra, verifyScheduledAutomationCredentialSubject as ri, extractAssistantText as rn, createConversationAccessReader as ro, savePushSubscription as rr, abandonTurnRecord as rt, openConversationProjection as s, downloadPrivateSlackFile as sa, getDashboardConversationLink as si, hasRuntimeTurnContext as sn, conversationIsNotUnsubscribedRoot as so, closeReviewItem as sr, listTurnSummaries as st, commitAcceptedReply as t, unfurlSlackLinks as ta, bindSlackDirectCredentialSubject as ti, CODEMODE_TOOL_NAME as tn, canAccessConversation as to, readNotificationSchedule as tr, pauseLostWorkerTurn as tt, recordAuthenticationLinked as u, getSlackClient as ua, getDashboardSettingsLink as ui, isAssistantMessage as un, viewerMarksFromParticipant as uo, getOpenReviewItemByDedupeKey as ur, CONVERSATION_WORK_STALE_ENQUEUE_MS as ut, hydrateConversationMessages as v, isAbortError as va, deleteWorkspace as vi, trimTrailingAssistantMessages as vn, readConversationMessageEventSeq as vo, updateReviewItemContent as vr, clearConsumedConversationWake as vt, fallbackShortTitle as w, isWorkspaceSnapshotNotReadyError as wa, WorkspaceValidationError as wi, readParentAgentTask as wn, readAttachmentVisionSummary as wo, isOnlyAssignee as wr, drainConversationMailbox as wt, toStoredConversationMessage as x, wrapSandboxSetupError as xa, listWorkspaces as xi, TURN_CONTEXT_TAG as xn, notInheritedByForkChild as xo, canAgentChangeReviewItem as xr, completeConversationWork as xt, persistConversationMessageWindow as y, isAlreadyExistsError as ya, getWorkspace as yi, REQUEST_CONTEXT_SECTION_TAG as yn, buildSentryConversationUrl as yo, PLUGIN_REVIEW_ITEM_KEY_PREFIX as yr, clearExpiredConversationLease as yt, getAgentContextCompactionTriggerTokens as z, PluginToolDeniedError as za, resolveBaseUrl as zi, getPluginRoutes as zn, historyItemFromPiMessage as zo, RESOURCE_SUBSCRIPTION_DEFAULT_TTL_MS as zr, requestAnotherSlice as zt };
|
|
15147
|
+
export { loadTurnCheckpoint as $, createConversationAccessReader as $a, uploadFilesToConversation as $i, savePushSubscription as $n, verifyScheduledAutomationCredentialSubject as $r, extractAssistantText as $t, latestConversationMessageSeq as A, normalizeSandboxEgressTracePropagationDomains as Aa, isVercelSandboxEgressRequest as Ai, resolvePluginOAuthAccount as An, lookupSlackUser as Ao, automationCreatorUserId as Ar, isInvalidConversationRecordError as At, getAgentContextInputLimitTokens as B, SANDBOX_REPOS_ROOT as Ba, normalizeSlackStatusText as Bi, getPlugins as Bn, cancelWatch as Br, requestConversationWork as Bt, settleConversationTitleWork as C, consumeSandboxEgressAuthRequiredSignal as Ca, setWorkspaceSnapshot as Ci, renderUntrustedTag as Cn, resolveRootVisibility as Co, requireReviewItemLinks as Cr, deadLetterAttempt as Ct, estimateConversationMessagesTokens as D, sandboxEgressSignalsResponseSchema as Da, isStale as Di, findLegacyWebActorUserId as Dn, listConversationAnnotationsById as Do, reviewItemReaderForUserInConversation as Dr, hasConversationStop as Dt, buildConversationContext as E, parseSandboxEgressCredentialToken as Ea, hash as Ei, createUserTokenStore as En, listConversationAnnotations as Eo, reviewItemReaderForUser as Er, getConversationWorkState as Et, turnHasReply as F, PluginToolDeniedError as Fa, resolveBaseUrl as Fi, getPluginRoutes as Fn, historyItemFromPiMessage as Fo, RESOURCE_SUBSCRIPTION_DEFAULT_TTL_MS as Fr, recordAttemptFailure as Ft, AuthPausePersistenceError as G, sandboxSkillPathResolution as Ga, getSlackMessagePermalink as Gi, setBriefsConfig as Gn, findMatchingWatches as Gr, TurnBudgetExceededError as Gt, PluginCredentialFailureError as H, SANDBOX_WORKSPACE_ROOT as Ha, truncateStatusText as Hi, validatePlugins as Hn, createTimerWatch as Hr, steerWebPendingMessages as Ht, upsertConversationMessage as I, createPluginEmbedder as Ia, startOAuthFlow as Ii, getPluginSlackConversationLink as In, piMessageFromHistoryItem as Io, RESOURCE_SUBSCRIPTION_MAX_TTL_MS as Ir, recordConversationRetry as It, abandonReplacedPendingAuth as J, runNonInteractiveCommand as Ja, postSlackEphemeralMessage as Ji, resolveNotificationTimezone as Jn, takeDueTimerWatches as Jr, buildTurnErrorResponse as Jt, AuthorizationFlowDisabledError as K, buildCommandScript as Ka, openSlackDirectMessage as Ki, readWebPushConfig as Kn, getWatch as Kr, TurnSliceLimitExceededError as Kt, calculateContextCompactionTargetTokens as L, createPluginModel as La, escapeSlackMrkdwnText as Li, getPluginSystemPromptContributions as Ln, projectConversationEvents$1 as Lo, RESOURCE_WATCH_TOOL_SOURCE as Lr, releaseConversationWork as Lt, normalizeConversationText as M, sleep$2 as Ma, deliverOAuthAuthorization as Mi, createPluginEventPublisher as Mn, createPluginCache as Mo, resolveAssignees as Mr, markConversationWorkEnqueued as Mt, recordDeliveredAssistantMessage as N, tryWorkspaceRepoCheckoutPath as Na, formatProviderLabel as Ni, createPluginHookRunner as Nn, createDurableLocationConfigurationService as No, resolveChannelCapabilities as Nr, moveIdleConversationDestination as Nt, getConversationMessageSlackTs as O, buildSandboxEgressNetworkPolicy as Oa, ensureDockerDaemon as Oi, webActorUserIds as On, defaultTimezone as Oo, EVERYONE_ASSIGNEE as Or, hasRunnableConversationWork as Ot, trimConversationMessages as P, workspaceRepoCheckoutPath as Pa, parseOAuthStatePayload as Pi, getPluginApiRoutes as Pn, configValueSchema as Po, getSlackToolContext as Pr, pruneActiveConversation as Pt, continuableMessages as Q, canAddConversationMessages as Qa, updateSlackMessage as Qi, saveNotificationSchedule as Qn, verifyEventAutomationCredentialSubject as Qr, persistWithRetry as Qt, getAgentBackgroundCompactionMarkTokens as R, SANDBOX_COMMAND_PATH as Ra, formatSlackLink as Ri, getPluginTools as Rn, getConfigDefaults as Ro, STOP_WATCHING_TOOL_NAME as Rr, releaseInboundMessage as Rt, resolveConversationTitle as S, clearSandboxEgressSignals as Sa, loadSnapshotsForProfile as Si, renderTag as Sn, slackAttachmentsVersionQuery as So, requireReviewItemAssignees as Sr, countPendingConversationMessages as St, resolveTaskTitle as T, createSandboxEgressCredentialToken as Ta, create as Ti, SANDBOX_EGRESS_AUTH_REQUIRED_MARKER as Tn, createPluginAnnotations as To, reviewItemNeedsUser as Tr, getConversation as Tt, createPluginAuthOrchestration as U, sandboxSkillDir as Ua, addReactionToMessage as Ui, coreTaskRegistrations as Un, createWatch as Ur, stopConversationWork as Ut, createPluginEgress as V, SANDBOX_SKILLS_ROOT as Va, slackMention as Vi, setPlugins as Vn, collectEventMatchKeys as Vr, startConversationWork as Vt, authorizationId as W, sandboxSkillFile as Wa, deleteSlackMessage as Wi, registration_exports as Wn, deliverWatch as Wr, TURN_LIMIT_WRAP_UP_MESSAGE as Wt, clearPendingAuth as X, createPluginLogger as Xa, removeReactionFromMessage as Xi, listPushSubscriptions as Xn, bindScheduledAutomationCredentialSubject as Xr, isTurnExecutionLimitExceededError as Xt, canReusePendingAuthLink as Y, createPluginModelCostRecorder as Ya, postSlackMessage as Yi, deletePushSubscription as Yn, bindEventAutomationCredentialSubject as Yr, createTurnLimitGate as Yt, getConversationPendingAuth as Z, canAccessConversation as Za, unfurlSlackLinks as Zi, readNotificationSchedule as Zn, bindSlackDirectCredentialSubject as Zr, CODEMODE_TOOL_NAME as Zt, appendConversationMessages as _, wrapSandboxSetupError as _a, listWorkspaces as _i, TURN_CONTEXT_TAG as _n, notInheritedByForkChild as _o, canAgentChangeReviewItem as _r, claimInboundMessage as _t, loadProjection as a, getHeaderString as aa, getDashboardReviewItemLink as ai, instructionTextForProjection as an, conversationViewerMarks as ao, dismissOpenReviewItems as ar, failTurnRecord as at, persistConversationMessages as b, isWorkspaceSnapshotNotReadyError as ba, WorkspaceValidationError as bi, readParentAgentTask as bn, readAttachmentVisionSummary as bo, isOnlyAssignee as br, completeConversationStop as bt, recordAgentsInstructionsUpdated as c, isDmChannel as ca, parseDashboardConversationLink as ci, isStandaloneRuntimeContextMessage as cn, readConversationBriefThrough as co, insertReviewItem as cr, recordTurnSummary as ct, recordAuthorizationCompleted as d, withSlackRetries as da, createPluginState as di, normalizeToolNameFromResult as dn, readConversationEventPageAfter as do, reviewItemsNeedingUserVersionQuery as dr, ackMessages as dt, slackEntitySchema as ea, verifySlackDirectCredentialSubject as ei, getPiMessageRole as en, readConversationAccessFromSql as eo, isPausedBySlack as er, lostWorkerBeforeFirstSave as et, recordAuthorizationRequested as f, getWorkspaceTeamId as fa, renderToolResultNudge as fi, retainRuntimeTurnContext as fn, readConversationEventPageAround as fo, searchReviewItems as fr, appendExclusiveInboundMessage as ft, recordToolExecutionStarted as g, throwSandboxOperationError as ga, getWorkspaceByName as gi, SESSION_CONTEXT_SECTION_TAG as gn, loadForkHistory as go, canActOnReviewItem as gr, checkInConversationWork as gt, recordSubscribedReplyRoute as h, isAlreadyExistsError as ha, getWorkspace as hi, REQUEST_CONTEXT_SECTION_TAG as hn, buildSentryConversationUrl as ho, PLUGIN_REVIEW_ITEM_KEY_PREFIX as hr, cancelHumanFacingPendingMessages as ht, loadConversationProjection as i, getFilePermalink as ia, getDashboardObjectIconLink as ii, hasTurnInput as in, conversationPinnedForUser as io, countReviewItemsNeedingUser as ir, completeTurnRecord as it, markConversationMessage as j, SANDBOX_RUNTIME as ja, proxyVercelSandboxEgressRequest as ji, agent_hooks_exports as jn, lookupSlackUserNames as jo, resolveAssignee as jr, listActiveConversationIds as jt, isHumanConversationMessage as k, resolveSandboxCommandEnvironment as ka, getSandboxProvider as ki, getOAuthAccountProviders as kn, resolveUserTimezone as ko, activeParticipantUserIds as kr, isFinalAttempt as kt, recordAttachmentsDelivered as l, normalizeSlackConversationId as la, setDashboardConversationLinkOptions as li, isToolResultError as ln, readLatestConversationBrief as lo, listReplyActionItems as lr, CONVERSATION_WORK_CHECK_IN_INTERVAL_MS as lt, recordMcpProviderConnected as m, isAbortError as ma, deleteWorkspace as mi, trimTrailingAssistantMessages as mn, readConversationMessageEventSeq as mo, updateReviewItemContent as mr, beginConversationResume as mt, commitMessages as n, SlackActionError as na, JUNIOR_THREAD_STATE_TTL_MS as ni, getUserMessageInstructionText as nn, conversationIsMemberRoot as no, REVIEW_ITEM_REPLIED_REASON as nr, saveTurnCheckpoint as nt, loadTurnProjection as o, getSlackClient as oa, getDashboardSettingsLink as oi, isAssistantMessage as on, viewerMarksFromParticipant as oo, getOpenReviewItemByDedupeKey as or, getTurnRecord as ot, recordGuardianActionReviewed as p, runWithWorkspaceTeamId as pa, createWorkspace as pi, stripRuntimeTurnContext as pn, readConversationLastEventSeq as po, takeReviewItem as pr, appendInboundMessage as pt, AuthorizationPauseError as q, buildNonInteractiveShellScript as qa, openSlackModal as qi, sendPushNotificationToUser as qn, listWatches as qr, TurnToolCallLimitExceededError as qt, loadConnectedMcpProviders as r, downloadPrivateSlackFile as ra, getDashboardConversationLink as ri, hasRuntimeTurnContext as rn, conversationIsNotUnsubscribedRoot as ro, closeReviewItem as rr, abandonTurnRecord as rt, openConversationProjection as s, isConversationScopedChannel as sa, getDashboardTaskLink as si, isContinuablePiBoundary as sn, createPluginConversationEvents as so, getReviewItem as sr, listTurnSummaries as st, commitAcceptedReply as t, slackExternalRefIdSchema as ta, verifyTimerWatchCredentialSubject as ti, getTerminalAssistantMessages as tn, conversationHasParticipantUser as to, projectConversationMessages as tr, pauseLostWorkerTurn as tt, recordAuthenticationLinked as u, runWithSlackInstallationToken as ua, ToolInputError as ui, isToolResultMessage as un, readConversationEventPage as uo, listWaitingConversations as ur, CONVERSATION_WORK_STALE_ENQUEUE_MS as ut, hydrateConversationMessages as v, WorkspaceSnapshotNotReadyError as va, listWorkspacesByRepository as vi, escapeClosingTags as vn, getSlackFileId as vo, canReadReviewItem as vr, clearConsumedConversationWake as vt, fallbackShortTitle as w, consumeSandboxEgressPermissionDeniedSignal as wa, setWorkspaceSnapshotBuild as wi, tagJson as wn, saveObjectAnnotations as wo, reviewItemNeedsSomeone as wr, drainConversationMailbox as wt, toStoredConversationMessage as x, workspaceSnapshotNotReadyUserMessage as xa, invalidateReadySnapshot as xi, renderChildTag as xn, recordSlackAttachment as xo, readReviewItemAgentScope as xr, completeConversationWork as xt, persistConversationMessageWindow as y, getWorkspaceSnapshotNotReadyError as ya, updateWorkspace as yi, escapeTagText as yn, matchSlackAttachments as yo, canUserReadReviewItem as yr, clearExpiredConversationLease as yt, getAgentContextCompactionTriggerTokens as z, SANDBOX_DATA_ROOT as za, normalizeSlackReplyMarkdown as zi, getPluginUserPromptContributions as zn, setConfigDefaults as zo, cancelSubscriptions as zr, requestAnotherSlice as zt };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { C as completeText$1, S as completeObject$1, x as completeDecision$1 } from "./config-
|
|
2
|
-
import { _ as runBestEffort, a as extractGenAiUsageSummary } from "./logging-
|
|
3
|
-
import {
|
|
4
|
-
import { X as parseBriefInput, Y as conversationBriefSchema, q as briefOutcomeStatusSchema } from "./conversation-
|
|
1
|
+
import { C as completeText$1, S as completeObject$1, x as completeDecision$1 } from "./config-mIZeGEWv.js";
|
|
2
|
+
import { _ as runBestEffort, a as extractGenAiUsageSummary } from "./logging-Cb6MGvdt.js";
|
|
3
|
+
import { K as agentTurnCostUsd, r as getConversationEventStore } from "./db--xuNV7g6.js";
|
|
4
|
+
import { X as parseBriefInput, Y as conversationBriefSchema, q as briefOutcomeStatusSchema } from "./conversation-CDWejM4R.js";
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { conversationEventPresentationSchema, defineConversationEvent } from "@sentry/junior-plugin-api";
|
|
7
7
|
// src/chat/conversations/structured-events.ts
|
|
@@ -532,8 +532,7 @@ async function generateBrief(args) {
|
|
|
532
532
|
sizeClass
|
|
533
533
|
}),
|
|
534
534
|
schema: modelBriefSchema,
|
|
535
|
-
system: args.prompt
|
|
536
|
-
temperature: 0
|
|
535
|
+
system: args.prompt
|
|
537
536
|
});
|
|
538
537
|
const model = modelBriefSchema.parse(result.object);
|
|
539
538
|
const { droppedUrls, keptUrlCount, links } = buildEvidenceLinks({
|
|
@@ -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-Cb6MGvdt.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 {
|
|
2
|
-
import { E as withSpan, b as setSpanAttributes } from "./logging-
|
|
3
|
-
import { r as getStateAdapter } from "./adapter-
|
|
1
|
+
import { Di as isStale, Ha as SANDBOX_WORKSPACE_ROOT, Ja as runNonInteractiveCommand, Ma as sleep, Ra as SANDBOX_COMMAND_PATH, Ti as create, ki as getSandboxProvider } from "./projection-DLQgfO5N.js";
|
|
2
|
+
import { E as withSpan, b as setSpanAttributes } from "./logging-Cb6MGvdt.js";
|
|
3
|
+
import { r as getStateAdapter } from "./adapter-DxLhJEnO.js";
|
|
4
4
|
import * as z from "zod";
|
|
5
5
|
// src/chat/sandbox/resources.ts
|
|
6
6
|
let configuredResources;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { v as __exportAll } from "./sentry-BRTJqumy.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { f as credentialContextForActor } from "./registry-
|
|
5
|
-
import { cn as listUnreportedSiblingAgents } from "./agent-runner-
|
|
6
|
-
import { C as isTerminalAgentInvocation, G as getAgentInvocationIdForEvents, K as getAgentInvocationIdForMessage, Y as getAgentInvocationResultMessageId, k as markAgentInvocationParentMailboxAppended, q as getAgentInvocationIdForResult, x as getLatestAgentInvocationForConversation, y as getAgentInvocation } from "./turn-failure-response-
|
|
7
|
-
import { D as timerWatchCredentialSubject, E as renderEventBatchInputs, S as EVENT_WAIT_MS, T as isEventMailboxMetadata, f as getEventBatchDelayMs, m as parseEventMessages, n as isWatchEvent, s as eventReviewItemInputs, w as eventBatchMessageMeta } from "./session-stop-
|
|
8
|
-
import { r as appendAndEnqueueInboundMessage } from "./store-
|
|
9
|
-
import { a as enqueueAgentInvocation, l as createAgentInvocationFromLatest, o as resolveAgentInvocationId, t as createAgentInvocationWorker } from "./work-
|
|
2
|
+
import { Cn as renderUntrustedTag } from "./projection-DLQgfO5N.js";
|
|
3
|
+
import { A as SYSTEM_IDENTITY_ID } from "./db--xuNV7g6.js";
|
|
4
|
+
import { f as credentialContextForActor } from "./registry-MtwokaqW.js";
|
|
5
|
+
import { cn as listUnreportedSiblingAgents } from "./agent-runner-DJu7w6mI.js";
|
|
6
|
+
import { C as isTerminalAgentInvocation, G as getAgentInvocationIdForEvents, K as getAgentInvocationIdForMessage, Y as getAgentInvocationResultMessageId, k as markAgentInvocationParentMailboxAppended, q as getAgentInvocationIdForResult, x as getLatestAgentInvocationForConversation, y as getAgentInvocation } from "./turn-failure-response-BqTTx3XG.js";
|
|
7
|
+
import { D as timerWatchCredentialSubject, E as renderEventBatchInputs, S as EVENT_WAIT_MS, T as isEventMailboxMetadata, f as getEventBatchDelayMs, m as parseEventMessages, n as isWatchEvent, s as eventReviewItemInputs, w as eventBatchMessageMeta } from "./session-stop-CeCXL3j9.js";
|
|
8
|
+
import { r as appendAndEnqueueInboundMessage } from "./store-C8LsaJwS.js";
|
|
9
|
+
import { a as enqueueAgentInvocation, l as createAgentInvocationFromLatest, o as resolveAgentInvocationId, t as createAgentInvocationWorker } from "./work-BWBG1EGV.js";
|
|
10
10
|
import { n as isAgentInvocationResultEventType, t as agentInvocationResultEventType } from "./result-event-type-DD6BAgT7.js";
|
|
11
11
|
// src/chat/agent-invocations/result.ts
|
|
12
12
|
var result_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { A as latestConversationMessageSeq, I as upsertConversationMessage, M as normalizeConversationText, N as recordDeliveredAssistantMessage, W as authorizationId, a as loadProjection, b as persistConversationMessages, d as recordAuthorizationCompleted, j as markConversationMessage,
|
|
2
|
-
import { S as setTags, T as withLogContext, p as logException } from "./logging-
|
|
3
|
-
import {
|
|
4
|
-
import { f as credentialContextForActor } from "./registry-
|
|
5
|
-
import { L as messageCardText } from "./conversation-
|
|
6
|
-
import { dt as markTurnFailed, f as ConversationTurnLifecycleService, ft as startActiveTurn, i as completeAuthPauseTurn, l as buildDeliveredTurnStatePatch, m as loadPendingMessageCards, t as finalizeFailedTurnReplyWithEvent, u as buildTurnThreadContext } from "./turn-failure-response-
|
|
7
|
-
import { n as getAssistantReplyText } from "./assistant-reply-
|
|
8
|
-
import { ft as getPersistedSandboxState, gt as coerceThreadConversationState, ht as persistThreadStateById, n as scheduleSessionCompletedPluginTasks, pt as getPersistedThreadState, t as processPluginTask } from "./task-runner-
|
|
1
|
+
import { A as latestConversationMessageSeq, I as upsertConversationMessage, M as normalizeConversationText, N as recordDeliveredAssistantMessage, Qt as persistWithRetry, W as authorizationId, a as loadProjection, b as persistConversationMessages, d as recordAuthorizationCompleted, j as markConversationMessage, nt as saveTurnCheckpoint, t as commitAcceptedReply, v as hydrateConversationMessages } from "./projection-DLQgfO5N.js";
|
|
2
|
+
import { S as setTags, T as withLogContext, p as logException } from "./logging-Cb6MGvdt.js";
|
|
3
|
+
import { A as SYSTEM_IDENTITY_ID, a as getConversationStore, r as getConversationEventStore } from "./db--xuNV7g6.js";
|
|
4
|
+
import { f as credentialContextForActor } from "./registry-MtwokaqW.js";
|
|
5
|
+
import { L as messageCardText } from "./conversation-CDWejM4R.js";
|
|
6
|
+
import { dt as markTurnFailed, f as ConversationTurnLifecycleService, ft as startActiveTurn, i as completeAuthPauseTurn, l as buildDeliveredTurnStatePatch, m as loadPendingMessageCards, t as finalizeFailedTurnReplyWithEvent, u as buildTurnThreadContext } from "./turn-failure-response-BqTTx3XG.js";
|
|
7
|
+
import { n as getAssistantReplyText } from "./assistant-reply-iTtEdDyc.js";
|
|
8
|
+
import { ft as getPersistedSandboxState, gt as coerceThreadConversationState, ht as persistThreadStateById, n as scheduleSessionCompletedPluginTasks, pt as getPersistedThreadState, t as processPluginTask } from "./task-runner-Dw7exu0-.js";
|
|
9
9
|
import { randomUUID } from "node:crypto";
|
|
10
10
|
import { createLocalSource, localDestinationSchema } from "@sentry/junior-plugin-api";
|
|
11
11
|
// src/chat/local/runner.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Da as sandboxEgressSignalsResponseSchema } from "./projection-DLQgfO5N.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;
|
|
@@ -751,6 +751,7 @@ declare const conversationSummaryReportSchema: z.ZodObject<{
|
|
|
751
751
|
}, z.core.$strict>>;
|
|
752
752
|
conversationId: z.ZodString;
|
|
753
753
|
kind: z.ZodEnum<{
|
|
754
|
+
automation: "automation";
|
|
754
755
|
root: "root";
|
|
755
756
|
task: "task";
|
|
756
757
|
thread: "thread";
|
|
@@ -1507,6 +1508,7 @@ declare const forkConversationResponseSchema: z.ZodObject<{
|
|
|
1507
1508
|
declare const conversationAgentTreeNodeSchema: z.ZodObject<{
|
|
1508
1509
|
conversationId: z.ZodString;
|
|
1509
1510
|
kind: z.ZodEnum<{
|
|
1511
|
+
automation: "automation";
|
|
1510
1512
|
root: "root";
|
|
1511
1513
|
task: "task";
|
|
1512
1514
|
thread: "thread";
|
|
@@ -1889,6 +1891,7 @@ declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
1889
1891
|
}, z.core.$strict>>;
|
|
1890
1892
|
conversationId: z.ZodString;
|
|
1891
1893
|
kind: z.ZodEnum<{
|
|
1894
|
+
automation: "automation";
|
|
1892
1895
|
root: "root";
|
|
1893
1896
|
task: "task";
|
|
1894
1897
|
thread: "thread";
|
|
@@ -2053,6 +2056,7 @@ declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
2053
2056
|
agentTree: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2054
2057
|
conversationId: z.ZodString;
|
|
2055
2058
|
kind: z.ZodEnum<{
|
|
2059
|
+
automation: "automation";
|
|
2056
2060
|
root: "root";
|
|
2057
2061
|
task: "task";
|
|
2058
2062
|
thread: "thread";
|
|
@@ -3002,6 +3006,7 @@ declare const conversationDetailWithMailboxReportSchema: z.ZodObject<{
|
|
|
3002
3006
|
}, z.core.$strict>>;
|
|
3003
3007
|
conversationId: z.ZodString;
|
|
3004
3008
|
kind: z.ZodEnum<{
|
|
3009
|
+
automation: "automation";
|
|
3005
3010
|
root: "root";
|
|
3006
3011
|
task: "task";
|
|
3007
3012
|
thread: "thread";
|
|
@@ -3166,6 +3171,7 @@ declare const conversationDetailWithMailboxReportSchema: z.ZodObject<{
|
|
|
3166
3171
|
agentTree: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3167
3172
|
conversationId: z.ZodString;
|
|
3168
3173
|
kind: z.ZodEnum<{
|
|
3174
|
+
automation: "automation";
|
|
3169
3175
|
root: "root";
|
|
3170
3176
|
task: "task";
|
|
3171
3177
|
thread: "thread";
|
|
@@ -4863,6 +4869,7 @@ declare const actorProfileReportSchema: z.ZodObject<{
|
|
|
4863
4869
|
}, z.core.$strict>>;
|
|
4864
4870
|
conversationId: z.ZodString;
|
|
4865
4871
|
kind: z.ZodEnum<{
|
|
4872
|
+
automation: "automation";
|
|
4866
4873
|
root: "root";
|
|
4867
4874
|
task: "task";
|
|
4868
4875
|
thread: "thread";
|
|
@@ -5297,6 +5304,7 @@ declare const locationDetailReportSchema: z.ZodObject<{
|
|
|
5297
5304
|
}, z.core.$strict>>;
|
|
5298
5305
|
conversationId: z.ZodString;
|
|
5299
5306
|
kind: z.ZodEnum<{
|
|
5307
|
+
automation: "automation";
|
|
5300
5308
|
root: "root";
|
|
5301
5309
|
task: "task";
|
|
5302
5310
|
thread: "thread";
|
|
@@ -7336,6 +7344,35 @@ declare const automationSchedulePreviewSchema: z.ZodObject<{
|
|
|
7336
7344
|
nextRunAtMs: z.ZodNumber;
|
|
7337
7345
|
}, z.core.$strict>;
|
|
7338
7346
|
type AutomationScheduleIntent = z.output<typeof automationScheduleIntentSchema>;
|
|
7347
|
+
/** Reply times in the bins of the cache warming model. */
|
|
7348
|
+
declare const replyTimeHistogramSchema: z.ZodObject<{
|
|
7349
|
+
bins: z.ZodArray<z.ZodObject<{
|
|
7350
|
+
count: z.ZodNumber;
|
|
7351
|
+
endMs: z.ZodNumber;
|
|
7352
|
+
startMs: z.ZodNumber;
|
|
7353
|
+
}, z.core.$strict>>;
|
|
7354
|
+
noReply: z.ZodNumber;
|
|
7355
|
+
total: z.ZodNumber;
|
|
7356
|
+
}, z.core.$strict>;
|
|
7357
|
+
/** Gap histogram of each cache warming segment, over all Conversations. */
|
|
7358
|
+
declare const replyTimeSegmentsReportSchema: z.ZodObject<{
|
|
7359
|
+
generatedAt: z.ZodString;
|
|
7360
|
+
minSamples: z.ZodNumber;
|
|
7361
|
+
segments: z.ZodArray<z.ZodObject<{
|
|
7362
|
+
histogram: z.ZodObject<{
|
|
7363
|
+
bins: z.ZodArray<z.ZodObject<{
|
|
7364
|
+
count: z.ZodNumber;
|
|
7365
|
+
endMs: z.ZodNumber;
|
|
7366
|
+
startMs: z.ZodNumber;
|
|
7367
|
+
}, z.core.$strict>>;
|
|
7368
|
+
noReply: z.ZodNumber;
|
|
7369
|
+
total: z.ZodNumber;
|
|
7370
|
+
}, z.core.$strict>;
|
|
7371
|
+
segment: z.ZodString;
|
|
7372
|
+
}, z.core.$strict>>;
|
|
7373
|
+
}, z.core.$strict>;
|
|
7374
|
+
type ReplyTimeHistogram = z.infer<typeof replyTimeHistogramSchema>;
|
|
7375
|
+
type ReplyTimeSegmentsReport = z.infer<typeof replyTimeSegmentsReportSchema>;
|
|
7339
7376
|
declare const statSchema: z.ZodObject<{
|
|
7340
7377
|
count: z.ZodNumber;
|
|
7341
7378
|
date: z.ZodString;
|
|
@@ -7778,4 +7815,4 @@ declare const versionsSchema: z.ZodObject<{
|
|
|
7778
7815
|
spend: z.ZodString;
|
|
7779
7816
|
}, z.core.$strict>;
|
|
7780
7817
|
type Versions = z.output<typeof versionsSchema>;
|
|
7781
|
-
export {
|
|
7818
|
+
export { automationEditErrorSchema as $, CodeRepositoryReport as $i, conversationSubscriptionResponseSchema as $n, conversationUnchangedDetailWithMailboxSchema as $r, connectionListSchema as $t, skillReportSchema as A, isAgentInvocationResultEventType as Aa, conversationActivityPreviewSchema as Ai, ConversationWatch as An, GuardianStats as Ar, workspaceRepoSchema as At, AutomationExecution as B, conversationReportEventDataSchema as Bi, RenameConversationResponse as Bn, CancelConversationPendingMessagesResponse as Br, revokePersonalTokenResponseSchema as Bt, pluginOperationalReportFeedSchema as C, UserInputAnswer as Ca, ConversationSurface as Ci, PeopleActivityDayReport as Cn, continueConversationInSlackResponseSchema as Cr, WorkspaceListReport as Ct, pluginSchema as D, isEmptyUserInputAnswer as Da, CreateConversationBody as Di, actorProfileReportSchema as Dn, ConversationStatsItem as Dr, workspaceBodySchema as Dt, pluginPackageContentReportSchema as E, buttonUserInputField as Ea, ConversationUsage as Ei, actorDirectoryReportSchema as En, ConversationMetricDay as Er, deleteWorkspaceResponseSchema as Et, statsReportSchema as F, INLINE_VIDEO_TYPES as Fa, conversationEventPageSchema as Fi, ConversationChildAgentsReport as Fn, archiveConversationBodySchema as Fr, createPersonalTokenBodySchema as Ft, AutomationRun as G, forkConversationBodySchema as Gi, conversationOutlineSchema as Gn, SteerConversationPendingMessagesResponse as Gr, startServiceAccountSignInResponseSchema as Gt, AutomationExecutionStatusDay as H, conversationSummaryReportSchema as Hi, renameConversationResponseSchema as Hn, ConversationPendingMessageDelivery as Hr, serviceAccountListSchema as Ht, ReplyTimeHistogram as I, INPUT_IMAGE_TYPES as Ia, conversationEventsQuerySchema as Ii, conversationChildAgentSchema as In, archiveConversationResponseSchema as Ir, createdPersonalTokenSchema as It, AutomationScheduleIntent as J, conversationTurnFailureReasonSchema as Ji, conversationUnreadSchema as Jn, conversationDetailWithMailboxReportSchema as Jr, testNotificationResponseSchema as Jt, AutomationRunList as K, forkConversationResponseSchema as Ki, ConversationUnread as Kn, cancelConversationPendingMessagesBodySchema as Kr, NotificationSettings as Kt, ReplyTimeSegmentsReport as L, conversationFeedQuerySchema as Li, conversationChildAgentsReportSchema as Ln, archiveDoneConversationsResponseSchema as Lr, personalTokenListSchema as Lt, StatReport as M, MAX_INPUT_IMAGES as Ma, conversationDetailQuerySchema as Mi, conversationWatchSchema as Mn, ArchiveConversationBody as Mr, USER_CUSTOMIZATION_MAX_CHARS as Mt, StatsReport as N, MAX_INPUT_IMAGE_BYTES as Na, conversationDetailReportSchema as Ni, conversationWatchesReportSchema as Nn, ArchiveConversationResponse as Nr, userCustomizationSchema as Nt, pluginsSchema as O, normalizeUserInputAnswer as Oa, CreateConversationMessageBody as Oi, personParamsSchema as On, ConversationStatsReport as Or, workspaceListSchema as Ot, statSchema as P, MessageAttachment as Pa, conversationEventHistorySchema as Pi, ConversationChildAgent as Pn, ConversationAutoArchive as Pr, PersonalTokenMetadata as Pt, ListedAutomationVersion as Q, CodePersonReport as Qi, conversationSubscriptionBodySchema as Qn, conversationPendingMessagesReportSchema as Qr, notificationScheduleSchema as Qt, replyTimeSegmentsReportSchema as R, conversationFeedSchema as Ri, CONVERSATION_TITLE_MAX_LENGTH as Rn, conversationAutoArchiveSchema as Rr, personalTokenMetadataSchema as Rt, healthReportSchema as S, USER_INPUT_NOTE as Sa, ConversationSummaryReport as Si, ActorWindowMetrics as Sn, continueConversationInSlackBodySchema as Sr, BaselineSnapshotReport as St, pluginPackageContentItemReportSchema as T, UserInputRequest as Ta, ConversationTurnFailureReason as Ti, PersonalSpendReport as Tn, stopConversationTurnResponseSchema as Tr, baselineSnapshotSchema as Tt, AutomationList as U, createConversationBodySchema as Ui, CONVERSATION_OUTLINE_TEXT_LENGTH as Un, ConversationPendingMessagesReport as Ur, serviceAccountParamsSchema as Ut, AutomationExecutionList as V, conversationReportEventSchema as Vi, renameConversationBodySchema as Vn, ConversationPendingMessage as Vr, disconnectServiceAccountResponseSchema as Vt, AutomationListQuery as W, createConversationMessageBodySchema as Wi, ConversationOutline as Wn, SteerConversationPendingMessagesBody as Wr, serviceAccountSchema as Wt, AutomationUpdate as X, CodeChangeSummaryReport as Xi, ConversationSubscriptionBody as Xn, conversationPendingMessageDeliverySchema as Xr, NotificationSchedule as Xt, AutomationSummary as Y, CodeActivityDay as Yi, markConversationUnreadBodySchema as Yn, conversationPendingAuthorizationSchema as Yr, DEFAULT_NOTIFICATION_SCHEDULE as Yt, AutomationVersionList as Z, CodeOverviewReport as Zi, ConversationSubscriptionResponse as Zn, conversationPendingMessageSchema as Zr, isWithinNotificationSchedule as Zt, PluginPackageContentReport as _, MessageCard as _a, ConversationReportEvent as _i, ActorDirectoryReport as _n, ConversationReadReport as _r, automationVersionListSchema as _t, ReviewItemPayload as a, codePersonReportSchema as aa, CONVERSATION_VERSION_HEADER as ai, apiErrorSchema as an, PinConversationResponse as ar, automationExecutionStatusSchema as at, SkillReport as b, AutomationTask as ba, ConversationReportStatus as bi, ActorSummaryReport as bn, ContinueConversationInSlackBody as br, eventAutomationSummarySchema as bt, reviewItemListSchema as c, codeRepositorySummarySchema as ca, ConversationAuxiliaryCosts as ci, LocationDetailReport as cn, pinConversationBodySchema as cr, automationParamsSchema as ct, ReviewItemChangeRecord as d, DailyConversationActivity as da, ConversationEventHistory as di, LocationSummaryReport as dn, reorderPinnedConversationsResponseSchema as dr, automationRunWindowsSchema as dt, CodeRepositorySummary as ea, steerConversationPendingMessagesBodySchema as ei, connectionParamsSchema as en, ConversationDeliveryBody as er, automationEditSchema as et, HealthReport as f, dailyConversationActivitySchema as fa, ConversationEventPage as fi, locationActivityDayReportSchema as fn, ConversationCatchUp as fr, automationScheduleIntentSchema as ft, PluginPackageContentItemReport as g, boardReportSchema as ga, ConversationParams as gi, ActorActivityDayReport as gn, ConversationReadPosition as gr, automationVersionActivateSchema as gt, PluginOperationalReportFeed as h, BoardReport as ha, ConversationModelUsage as hi, locationParamsSchema as hn, conversationCatchUpSchema as hr, automationUpdateSchema as ht, ReviewItemActionBody as i, codeOverviewReportSchema as ia, CONVERSATION_DETAIL_VERSION_HEADER as ii, ApiError as in, PinConversationBody as ir, automationExecutionStatusDaySchema as it, skillReportsSchema as j, InputImage as ja, conversationAuxiliaryCostsSchema as ji, ConversationWatchesReport as jn, conversationStatsReportSchema as jr, workspaceSchema as jt, runtimeInfoReportSchema as k, webMessageId as ka, acceptedConversationMessageSchema as ki, personalSpendReportSchema as kn, GuardianMetricDay as kr, workspaceParamsSchema as kt, reviewItemSchema as l, ConversationChildAgentTotals as la, ConversationCost as li, LocationDirectoryReport as ln, pinConversationResponseSchema as lr, automationRunListSchema as lt, PluginOperationalReport as m, BoardColumn as ma, ConversationFeedItem as mi, locationDirectoryReportSchema as mn, conversationCatchUpBodySchema as mr, automationSummarySchema as mt, Versions as n, codeChangeSummaryReportSchema as na, AcceptedConversationMessage as ni, disconnectConnectionResponseSchema as nn, conversationDeliveryBodySchema as nr, automationExecutionListSchema as nt, reviewItemActionSchema as o, codeRepositoryParamsSchema as oa, ConversationActivityPreview as oi, LocationActivityDayReport as on, ReorderPinnedConversationsBody as or, automationListQuerySchema as ot, Plugin as p, BoardCard as pa, ConversationFeed as pi, locationDetailReportSchema as pn, ConversationCatchUpBody as pr, automationSchedulePreviewSchema as pt, AutomationRunWindows as q, conversationTurnFailureCodeSchema as qi, MarkConversationUnreadBody as qn, cancelConversationPendingMessagesResponseSchema as qr, notificationSettingsSchema as qt, versionsSchema as r, codeChangeSummarySchema as ra, ActorIdentity as ri, startConnectionResponseSchema as rn, conversationDeliveryResponseSchema as rr, automationExecutionSchema as rt, reviewItemCountSchema as s, codeRepositoryReportSchema as sa, ConversationAgentTreeNode as si, LocationActorSummaryReport as sn, ReorderPinnedConversationsResponse as sr, automationListSchema as st, OwnedObjectAnnotation$1 as t, codeActivityDaySchema as ta, steerConversationPendingMessagesResponseSchema as ti, connectionSchema as tn, ConversationDeliveryResponse as tr, automationEventCatalogSchema as tt, reviewItemWaitingConversationsSchema as u, conversationChildAgentTotalsSchema as ua, ConversationDetailReport as ui, LocationParams as un, reorderPinnedConversationsBodySchema as ur, automationRunSchema as ut, Plugins as v, messageCardText as va, ConversationReportEventData as vi, ActorDirectoryWindows as vn, conversationReadPositionSchema as vr, automationVersionParamsSchema as vt, pluginOperationalReportSchema as w, UserInputField as wa, ConversationTurnFailureCode as wi, PersonParams as wn, StopConversationTurnResponse as wr, WorkspaceReport as wt, SkillReports as x, AutomationCard as xa, ConversationSourceTask as xi, ActorTotalsReport as xn, ContinueConversationInSlackResponse as xr, scheduledAutomationSummarySchema as xt, RuntimeInfoReport as y, resolveMessageCards as ya, ConversationReportMessageEvent as yi, ActorProfileReport as yn, conversationReadReportSchema as yr, automationVersionSchema as yt, AutomationEdit as z, conversationParamsSchema as zi, RenameConversationBody as zn, CancelConversationPendingMessagesBody as zr, personalTokenParamsSchema as zt };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as notificationScheduleSchema } from "./schedule-cP0AACm1.js";
|
|
2
|
-
import { D as conversationChildAgentTotalsSchema, S as conversationUsageSchema, b as conversationSummaryReportSchema, i as actorIdentitySchema, s as conversationAuxiliaryCostsSchema } from "./conversation-
|
|
2
|
+
import { D as conversationChildAgentTotalsSchema, S as conversationUsageSchema, b as conversationSummaryReportSchema, i as actorIdentitySchema, s as conversationAuxiliaryCostsSchema } from "./conversation-CDWejM4R.js";
|
|
3
3
|
import { i as fillUtcHours, r as fillUtcDays, s as sumUtcHoursIntoSixHours, w as AGENT_INVOCATION_STATUSES, x as userInputRequestSchema } from "./reporting-window-B3Ze-Qnt.js";
|
|
4
|
-
import "./automation-
|
|
5
|
-
import "./conversation-pending-messages-
|
|
4
|
+
import "./automation-BM-OBsKW.js";
|
|
5
|
+
import "./conversation-pending-messages-Dh2tfbaw.js";
|
|
6
6
|
import { t as isPushServiceEndpoint } from "./push-endpoint-CO-nomUd.js";
|
|
7
7
|
import * as z from "zod";
|
|
8
8
|
import { codeChangeStateSchema, eventMatchSchema } from "@sentry/junior-plugin-api";
|
|
@@ -797,6 +797,31 @@ const workspaceBodySchema = z.object({
|
|
|
797
797
|
}).strict();
|
|
798
798
|
const workspaceParamsSchema = z.object({ id: z.string().uuid() }).strict();
|
|
799
799
|
const deleteWorkspaceResponseSchema = z.object({ deleted: z.literal(true) }).strict();
|
|
800
|
+
// src/api/schema/reply-times.ts
|
|
801
|
+
/** Reply times in the bins of the cache warming model. */
|
|
802
|
+
const replyTimeHistogramSchema = z.object({
|
|
803
|
+
bins: z.array(z.object({
|
|
804
|
+
count: z.number().int().nonnegative(),
|
|
805
|
+
endMs: z.number().int().positive(),
|
|
806
|
+
startMs: z.number().int().nonnegative()
|
|
807
|
+
}).strict()),
|
|
808
|
+
/** Idle periods with no reply before the cache warming horizon. */
|
|
809
|
+
noReply: z.number().int().nonnegative(),
|
|
810
|
+
total: z.number().int().nonnegative()
|
|
811
|
+
}).strict();
|
|
812
|
+
/** Gap histogram of each cache warming segment, over all Conversations. */
|
|
813
|
+
const replyTimeSegmentsReportSchema = z.object({
|
|
814
|
+
generatedAt: z.string().datetime(),
|
|
815
|
+
/**
|
|
816
|
+
* Below this many gaps, the planner leans on the segment's `none`
|
|
817
|
+
* segment, or does not warm a `none` segment.
|
|
818
|
+
*/
|
|
819
|
+
minSamples: z.number().int().positive(),
|
|
820
|
+
segments: z.array(z.object({
|
|
821
|
+
histogram: replyTimeHistogramSchema,
|
|
822
|
+
segment: z.string().min(1)
|
|
823
|
+
}).strict())
|
|
824
|
+
}).strict();
|
|
800
825
|
// src/api/schema/stats.ts
|
|
801
826
|
const statSchema = z.object({
|
|
802
827
|
count: z.number().int().nonnegative(),
|
|
@@ -838,4 +863,4 @@ const versionsSchema = z.object({
|
|
|
838
863
|
/** The viewer's rolling model spend. */
|
|
839
864
|
spend: z.string().min(1)
|
|
840
865
|
}).strict();
|
|
841
|
-
export {
|
|
866
|
+
export { codeActivityDaySchema as $, revokePersonalTokenResponseSchema as A, reorderPinnedConversationsBodySchema as At, activityDays as B, serviceAccountSchema as C, markConversationUnreadBodySchema as Ct, personalTokenListSchema as D, conversationDeliveryResponseSchema as Dt, createdPersonalTokenSchema as E, conversationDeliveryBodySchema as Et, personalSpendReportSchema as F, pushSubscriptionBodySchema as G, activitySixHours as H, locationActivityDayReportSchema as I, connectionListSchema as J, pushSubscriptionDeleteBodySchema as K, locationDetailReportSchema as L, actorProfileReportSchema as M, conversationCatchUpBodySchema as Mt, avatarParamsSchema as N, conversationCatchUpSchema as Nt, personalTokenMetadataSchema as O, pinConversationBodySchema as Ot, personParamsSchema as P, startConnectionResponseSchema as Q, locationDirectoryReportSchema as R, serviceAccountParamsSchema as S, conversationUnreadSchema as St, createPersonalTokenBodySchema as T, conversationSubscriptionResponseSchema as Tt, dailyConversationActivitySchema as U, activityHours as V, notificationSettingsSchema as W, connectionSchema as X, connectionParamsSchema as Y, disconnectConnectionResponseSchema as Z, reviewItemParamsSchema as _, conversationOutlineSchema as _t, replyTimeSegmentsReportSchema as a, codeRepositoryReportSchema as at, disconnectServiceAccountResponseSchema as b, archiveDoneConversationsResponseSchema as bt, workspaceBodySchema as c, conversationWatchSchema as ct, workspaceRepoSchema as d, conversationChildAgentsReportSchema as dt, codeChangeSummaryReportSchema as et, workspaceSchema as f, continueConversationInSlackBodySchema as ft, reviewItemListSchema as g, CONVERSATION_OUTLINE_TEXT_LENGTH as gt, reviewItemListQuerySchema as h, conversationStatsReportSchema as ht, statsReportSchema as i, codeRepositoryParamsSchema as it, actorDirectoryReportSchema as j, reorderPinnedConversationsResponseSchema as jt, personalTokenParamsSchema as k, pinConversationResponseSchema as kt, workspaceListSchema as l, conversationWatchesReportSchema as lt, reviewItemCountSchema as m, stopConversationTurnResponseSchema as mt, versionsSchema as n, codeOverviewReportSchema as nt, baselineSnapshotSchema as o, codeRepositorySummarySchema as ot, reviewItemActionSchema as p, continueConversationInSlackResponseSchema as pt, testNotificationResponseSchema as q, statSchema as r, codePersonReportSchema as rt, deleteWorkspaceResponseSchema as s, boardReportSchema as st, versionsQuerySchema as t, codeChangeSummarySchema as tt, workspaceParamsSchema as u, conversationChildAgentSchema as ut, reviewItemSchema as v, archiveConversationBodySchema as vt, startServiceAccountSignInResponseSchema as w, conversationSubscriptionBodySchema as wt, serviceAccountListSchema as x, conversationAutoArchiveSchema as xt, reviewItemWaitingConversationsSchema as y, archiveConversationResponseSchema as yt, locationParamsSchema as z };
|
|
@@ -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-CLMA9AXd.js";
|
|
2
|
+
import { t as disconnectStateAdapter } from "./adapter-DxLhJEnO.js";
|
|
3
|
+
import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-kio5nXSD.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 { G as isRecord, b as setSpanAttributes, h as logWarn } from "./logging-
|
|
2
|
-
import { c as fetchWithBoundedOAuthErrorBodies, i as resolvePluginHeaderEnvRefs } from "./registry-
|
|
1
|
+
import { G as isRecord, b as setSpanAttributes, h as logWarn } from "./logging-Cb6MGvdt.js";
|
|
2
|
+
import { c as fetchWithBoundedOAuthErrorBodies, i as resolvePluginHeaderEnvRefs } from "./registry-MtwokaqW.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-DxLhJEnO.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";
|