@sentry/junior 0.243.0 → 0.244.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/{admin-DHOGoI03.js → admin-CF9lQg0M.js} +1 -1
- package/dist/{agent-hooks-Cqo6ULp6.js → agent-hooks-Cj_rSeWd.js} +22 -12
- package/dist/{agent-invocations-BzRAZ_nj.js → agent-invocations-BO6ddZax.js} +1 -0
- package/dist/{agent-runner-BZOjoMlZ.js → agent-runner-DtEtbaOb.js} +48 -24
- package/dist/api/schema.d.ts +15 -1
- package/dist/api/schema.js +3 -3
- package/dist/api.js +23 -22
- package/dist/app.js +24 -24
- package/dist/{briefs-C4GogKaB.js → briefs-BMzTiGJO.js} +4 -4
- package/dist/{catalog-runtime-jazDa-oO.js → catalog-runtime-CpxhLwZG.js} +1 -1
- package/dist/cli/chat.js +12 -12
- package/dist/cli/check.js +3 -3
- package/dist/cli/main.js +2 -2
- package/dist/cli/plugins.js +4 -4
- package/dist/cli/snapshot-create.js +3 -3
- package/dist/cli/upgrade.js +3 -3
- package/dist/{client-Es79bknZ.js → client-BVaGEb1-.js} +2 -2
- package/dist/{config-gype19qQ.js → config-q9xXVN_5.js} +2 -2
- package/dist/{conversation-mt3yJ09u.js → conversation-BxvgH64Q.js} +4 -1
- package/dist/{conversation-privacy-BIplVfmz.js → conversation-privacy-Dyh_63Ee.js} +1 -1
- package/dist/{credential-sync-BY97dkST.js → credential-sync-Bsn-6m16.js} +14 -14
- package/dist/{executor-C7bsEF-c.js → executor-DA7eHhmC.js} +3 -3
- package/dist/{history-DlsoHsoe.js → history-Nte1oVed.js} +3 -0
- package/dist/{images-WmrEAtto.js → images-CvMreau5.js} +3 -3
- package/dist/instrumentation.js +2 -2
- package/dist/{job-queue-DQDesz8a.js → job-queue-mVyF9jgv.js} +1 -1
- package/dist/{logging-CdZ1LQJ7.js → logging-z7_w-KN_.js} +1 -1
- package/dist/nitro.js +3 -3
- package/dist/{oauth-authorization-Di0KlyoJ.js → oauth-authorization-Db1yGVvG.js} +1 -1
- package/dist/{oauth-callback-server-Cmog7Q3T.js → oauth-callback-server-_MfOtSxS.js} +2 -2
- package/dist/{pending-auth-CNAlGOyl.js → pending-auth-OndKPW4M.js} +2 -2
- package/dist/{profile-qqt_2di0.js → profile-yeKVNECl.js} +4 -4
- package/dist/{prompt-D_cg2iqi.js → prompt-CX36ZlbV.js} +1 -1
- package/dist/{registry-WOJKAIRI.js → registry-DvzzL8-v.js} +1 -1
- package/dist/{resolve-C8VvY0lg.js → resolve-4u5gEU04.js} +2 -2
- package/dist/{runner-DojxjGmt.js → runner-Y6A6pww4.js} +10 -10
- package/dist/{sandbox-egress-signals-B7azPnsm.js → sandbox-egress-signals-D7AOkuoe.js} +1 -1
- package/dist/{schema-nQRsPWSr.js → schema-Dyyi9oRc.js} +6 -5
- package/dist/{skills-Zj-9pbSU.js → skills-DFduSvuO.js} +2 -2
- package/dist/{spawn-DDJ5z9IC.js → spawn-DYg7jhhR.js} +4 -3
- package/dist/{task-queue-CAi-XM8x.js → task-queue-BQ0vnumm.js} +3 -3
- package/dist/{task-runner-CIP2asjP.js → task-runner-D4jvUpFV.js} +12 -12
- package/dist/{tasks-Qx6Fos_R.js → tasks-DBZAgTx7.js} +10 -10
- package/dist/{thread-state-BN_5S1bx.js → thread-state-hj70P2Cp.js} +7 -7
- package/dist/{turn-failure-response-B1UW2T7a.js → turn-failure-response-S2pwtR8b.js} +9 -9
- package/dist/{turn-lifecycle-BzeE4sVD.js → turn-lifecycle-CNFOMAJq.js} +1 -1
- package/dist/{turn-session-routing-DsvU39zW.js → turn-session-routing-1eTgv6ns.js} +1 -1
- package/dist/{validation-Dklx_nds.js → validation-DcsBjzdi.js} +1 -1
- package/dist/{version-BvG02ZTN.js → version-DVCHJYcY.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-B7qDM2DM.js → viewer-BBnCMR1g.js} +5 -5
- package/dist/{web-authorization-Cqv7bP19.js → web-authorization-CTltRLsB.js} +6 -6
- package/dist/{web-input-CqnqSfzI.js → web-input-CIsRGF07.js} +26 -26
- package/dist/{work-D_BBvd4I.js → work-fje9VXgQ.js} +6 -6
- package/dist/{worker-BWdV_5Ys.js → worker-Byd2Et9r.js} +5 -5
- package/migrations/0052_agent_invocation_title.sql +1 -0
- package/migrations/meta/0052_snapshot.json +3765 -0
- package/migrations/meta/_journal.json +7 -0
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as setUserAdminFromSql, d as getDb, n as listAdminUsersFromSql } from "./viewer-
|
|
1
|
+
import { a as setUserAdminFromSql, d as getDb, n as listAdminUsersFromSql } from "./viewer-BBnCMR1g.js";
|
|
2
2
|
import { CLI_USAGE } from "./cli/run.js";
|
|
3
3
|
//#region src/cli/admin.ts
|
|
4
4
|
/**
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.js";
|
|
2
|
-
import { a as embedTexts, r as completeObject } from "./client-
|
|
3
|
-
import { I as isRecord$1, a as extractGenAiUsageSummary, d as logException, f as logInfo, p as logWarn, v as setSpanAttributes, w as withSpan, y as setSpanStatus } from "./logging-
|
|
2
|
+
import { a as embedTexts, r as completeObject } from "./client-BVaGEb1-.js";
|
|
3
|
+
import { I as isRecord$1, a as extractGenAiUsageSummary, d as logException, f as logInfo, p as logWarn, v as setSpanAttributes, w as withSpan, y as setSpanStatus } from "./logging-z7_w-KN_.js";
|
|
4
4
|
import { a as getClient$1 } from "./sentry-CgWZM_kV.js";
|
|
5
|
-
import { t as canExposeConversationPayload } from "./conversation-privacy-
|
|
6
|
-
import { i as getChatConfig, n as botConfig, o as getSlackBotToken } from "./config-
|
|
5
|
+
import { t as canExposeConversationPayload } from "./conversation-privacy-Dyh_63Ee.js";
|
|
6
|
+
import { i as getChatConfig, n as botConfig, o as getSlackBotToken } from "./config-q9xXVN_5.js";
|
|
7
7
|
import { r as defaultModelId } from "./model-profile-BwU8mqwD.js";
|
|
8
8
|
import { d as parseSlackTeamId, g as parseSlackMessageTs, i as isActorUserId, o as parseActorUserId, u as parseSlackChannelReferenceId } from "./actor-BTtLaeWy.js";
|
|
9
|
-
import { O as readUserTimezone, T as hasAgentTurnUsage, c as getConversationEventStore, d as getDb, f as getSqlExecutor, h as createSqlStore, i as resolveViewerUser, k as saveUserTimezone, r as readActorIdentity } from "./viewer-
|
|
10
|
-
import { c as juniorIdentities, d as juniorDestinations, l as juniorUsers, s as juniorConversations } from "./agent-invocations-
|
|
11
|
-
import { S as juniorAttachments, _ as juniorConversationEvents, b as juniorCodeChanges, f as juniorConversationParticipants, i as juniorWorkspaces, m as juniorConversationBriefs, n as juniorSnapshots, r as juniorWorkspaceRepos, x as juniorCodeRepositories, y as juniorConversationAnnotations } from "./executor-
|
|
12
|
-
import { o as decodeStoredConversationEvent } from "./history-
|
|
13
|
-
import { p as credentialSubjectSchema } from "./registry-
|
|
14
|
-
import { B as parseBriefInput, C as conversationReportEventSchema, N as readMessageAttachments, W as readMessageCardRefs, z as conversationBriefSchema } from "./conversation-
|
|
15
|
-
import { C as getDefaultRedisStateAdapterFor, N as SANDBOX_WORKSPACE_ROOT, k as sleep$1, l as isSandboxMissingError, n as hash, v as getVercelSandboxCredentials, w as getStateAdapter, x as runNonInteractiveCommand } from "./profile-
|
|
9
|
+
import { O as readUserTimezone, T as hasAgentTurnUsage, c as getConversationEventStore, d as getDb, f as getSqlExecutor, h as createSqlStore, i as resolveViewerUser, k as saveUserTimezone, r as readActorIdentity } from "./viewer-BBnCMR1g.js";
|
|
10
|
+
import { c as juniorIdentities, d as juniorDestinations, l as juniorUsers, s as juniorConversations } from "./agent-invocations-BO6ddZax.js";
|
|
11
|
+
import { S as juniorAttachments, _ as juniorConversationEvents, b as juniorCodeChanges, f as juniorConversationParticipants, i as juniorWorkspaces, m as juniorConversationBriefs, n as juniorSnapshots, r as juniorWorkspaceRepos, x as juniorCodeRepositories, y as juniorConversationAnnotations } from "./executor-DA7eHhmC.js";
|
|
12
|
+
import { o as decodeStoredConversationEvent } from "./history-Nte1oVed.js";
|
|
13
|
+
import { p as credentialSubjectSchema } from "./registry-DvzzL8-v.js";
|
|
14
|
+
import { B as parseBriefInput, C as conversationReportEventSchema, N as readMessageAttachments, W as readMessageCardRefs, z as conversationBriefSchema } from "./conversation-BxvgH64Q.js";
|
|
15
|
+
import { C as getDefaultRedisStateAdapterFor, N as SANDBOX_WORKSPACE_ROOT, k as sleep$1, l as isSandboxMissingError, n as hash, v as getVercelSandboxCredentials, w as getStateAdapter, x as runNonInteractiveCommand } from "./profile-yeKVNECl.js";
|
|
16
16
|
import { i as isValidTimeZone } from "./cadence-D00SCzT1.js";
|
|
17
|
-
import { n as briefEntriesFromReportEvents, s as generateBrief, t as BRIEF_PROMPT } from "./prompt-
|
|
17
|
+
import { n as briefEntriesFromReportEvents, s as generateBrief, t as BRIEF_PROMPT } from "./prompt-CX36ZlbV.js";
|
|
18
18
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
19
19
|
import { z } from "zod";
|
|
20
20
|
import { createHash, createHmac, randomUUID, timingSafeEqual } from "node:crypto";
|
|
@@ -1178,6 +1178,14 @@ function reportEventData(args) {
|
|
|
1178
1178
|
default: return;
|
|
1179
1179
|
}
|
|
1180
1180
|
}
|
|
1181
|
+
function reportSubagentLabel(data, canExposePayload) {
|
|
1182
|
+
if (!canExposePayload) return {};
|
|
1183
|
+
return {
|
|
1184
|
+
...data.agentName ? { agentName: data.agentName } : void 0,
|
|
1185
|
+
...data.task ? { task: data.task } : void 0,
|
|
1186
|
+
...data.title ? { title: data.title } : void 0
|
|
1187
|
+
};
|
|
1188
|
+
}
|
|
1181
1189
|
/**
|
|
1182
1190
|
* Project canonical events into the ordered reporting boundary.
|
|
1183
1191
|
*
|
|
@@ -1254,6 +1262,7 @@ function projectConversationReportEventPage(args) {
|
|
|
1254
1262
|
startedAt: new Date(event.createdAtMs).toISOString(),
|
|
1255
1263
|
childConversationId: event.data.childConversationId,
|
|
1256
1264
|
subagentKind: event.data.subagentKind,
|
|
1265
|
+
...reportSubagentLabel(event.data, args.canExposePayload),
|
|
1257
1266
|
status: "running",
|
|
1258
1267
|
...event.data.parentToolCallId ? { parentToolCallId: event.data.parentToolCallId } : void 0
|
|
1259
1268
|
};
|
|
@@ -1266,6 +1275,7 @@ function projectConversationReportEventPage(args) {
|
|
|
1266
1275
|
startedAt: new Date(started.createdAtMs).toISOString(),
|
|
1267
1276
|
childConversationId: started.data.childConversationId,
|
|
1268
1277
|
subagentKind: started.data.subagentKind,
|
|
1278
|
+
...reportSubagentLabel(started.data, args.canExposePayload),
|
|
1269
1279
|
...started.data.parentToolCallId ? { parentToolCallId: started.data.parentToolCallId } : void 0,
|
|
1270
1280
|
status: event.data.outcome === "success" ? "completed" : event.data.outcome
|
|
1271
1281
|
};
|
|
@@ -152,6 +152,7 @@ const juniorAgentInvocations = pgTable("junior_agent_invocations", {
|
|
|
152
152
|
childConversationId: text("child_conversation_id").notNull().references(() => juniorConversations.conversationId),
|
|
153
153
|
agentName: text("agent_name"),
|
|
154
154
|
input: text("input").notNull(),
|
|
155
|
+
title: text("title"),
|
|
155
156
|
actor: jsonb("actor_json").$type().notNull(),
|
|
156
157
|
credentialContext: jsonb("credential_context_json").$type(),
|
|
157
158
|
source: jsonb("source_json").$type().notNull(),
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { b as getGatewayApiKey, c as hasCompactedConversationContext, d as unwrapCurrentInstruction, f as escapeXml, g as getProviderErrorAttributes, h as findProviderError, i as completeText, l as isCompactionSummaryText, m as createProviderError, n as GEN_AI_SERVER_ADDRESS, o as resolveGatewayModel, p as ProviderError, r as completeObject, s as COMPACTION_SUMMARY_PREFIX, t as GEN_AI_PROVIDER_NAME, u as renderCurrentInstruction, v as isProviderRetryError, x as resolveGatewayCredential, y as MISSING_GATEWAY_CREDENTIALS_ERROR } from "./client-
|
|
2
|
-
import { C as withLogContext, F as normalizeIdentityEmail, I as isRecord$3, L as toOptionalNumber, R as toOptionalString, a as extractGenAiUsageSummary, b as setTags, c as getLogContextAttributesForSpan, d as logException, f as logInfo, g as serializeGenAiAttribute, i as extractGenAiUsageAttributes, l as getTracePropagationHeaders, m as normalizeGenAiFinishReason, p as logWarn, u as logError, v as setSpanAttributes, w as withSpan, x as summarizeMessageText, y as setSpanStatus } from "./logging-
|
|
1
|
+
import { b as getGatewayApiKey, c as hasCompactedConversationContext, d as unwrapCurrentInstruction, f as escapeXml, g as getProviderErrorAttributes, h as findProviderError, i as completeText, l as isCompactionSummaryText, m as createProviderError, n as GEN_AI_SERVER_ADDRESS, o as resolveGatewayModel, p as ProviderError, r as completeObject, s as COMPACTION_SUMMARY_PREFIX, t as GEN_AI_PROVIDER_NAME, u as renderCurrentInstruction, v as isProviderRetryError, x as resolveGatewayCredential, y as MISSING_GATEWAY_CREDENTIALS_ERROR } from "./client-BVaGEb1-.js";
|
|
2
|
+
import { C as withLogContext, F as normalizeIdentityEmail, I as isRecord$3, L as toOptionalNumber, R as toOptionalString, a as extractGenAiUsageSummary, b as setTags, c as getLogContextAttributesForSpan, d as logException, f as logInfo, g as serializeGenAiAttribute, i as extractGenAiUsageAttributes, l as getTracePropagationHeaders, m as normalizeGenAiFinishReason, p as logWarn, u as logError, v as setSpanAttributes, w as withSpan, x as summarizeMessageText, y as setSpanStatus } from "./logging-z7_w-KN_.js";
|
|
3
3
|
import { m as startInactiveSpan, v as withActiveSpan } from "./sentry-CgWZM_kV.js";
|
|
4
|
-
import { a as toCanonicalInputMessage, c as toGenAiPayloadMetadata, i as runWithConversationPrivacy, l as toGenAiPayloadTraceAttributes, o as toCanonicalOutputMessage, r as resolveConversationPrivacy, s as toGenAiMessagesTraceAttributes, t as canExposeConversationPayload } from "./conversation-privacy-
|
|
5
|
-
import { i as getChatConfig, n as botConfig, v as normalizeSlackEmojiName } from "./config-
|
|
4
|
+
import { a as toCanonicalInputMessage, c as toGenAiPayloadMetadata, i as runWithConversationPrivacy, l as toGenAiPayloadTraceAttributes, o as toCanonicalOutputMessage, r as resolveConversationPrivacy, s as toGenAiMessagesTraceAttributes, t as canExposeConversationPayload } from "./conversation-privacy-Dyh_63Ee.js";
|
|
5
|
+
import { i as getChatConfig, n as botConfig, v as normalizeSlackEmojiName } from "./config-q9xXVN_5.js";
|
|
6
6
|
import { a as formatModelProfiles, c as profileConfig, i as formatModelProfile, l as TURN_REASONING_LEVELS, n as ModelProfileNotConfiguredError, o as modelIdForProfile, s as modelProfileSchema } from "./model-profile-BwU8mqwD.js";
|
|
7
7
|
import { a as isUserActor, d as parseSlackTeamId, f as parseSlackUserId, g as parseSlackMessageTs, l as parseSlackChannelId, s as parseStoredSlackActor, u as parseSlackChannelReferenceId } from "./actor-BTtLaeWy.js";
|
|
8
|
-
import { F as sameDestination$1, N as parseDestination, T as hasAgentTurnUsage, c as getConversationEventStore, d as getDb, f as getSqlExecutor, l as getConversationMessageSearchStore, r as readActorIdentity, u as getConversationStore, x as addAgentTurnUsage } from "./viewer-
|
|
9
|
-
import { a as juniorAgentInvocations, c as juniorIdentities, d as juniorDestinations, i as juniorAgentBindings, n as AGENT_INVOCATION_PARENT_MAILBOX_STATUSES, r as AGENT_INVOCATION_STATUSES, s as juniorConversations, t as AGENT_INVOCATION_MAILBOX_STATUSES } from "./agent-invocations-
|
|
10
|
-
import { C as juniorArtifacts, S as juniorAttachments, a as juniorSchedulerRuns, l as juniorStats, m as juniorConversationBriefs, y as juniorConversationAnnotations } from "./executor-
|
|
11
|
-
import { d as instructionActors, f as instructionProvenanceFor, p as sameActorIdentity, t as KNOWN_CONVERSATION_EVENT_TYPES, u as contextProvenance } from "./history-
|
|
8
|
+
import { F as sameDestination$1, N as parseDestination, T as hasAgentTurnUsage, c as getConversationEventStore, d as getDb, f as getSqlExecutor, l as getConversationMessageSearchStore, r as readActorIdentity, u as getConversationStore, x as addAgentTurnUsage } from "./viewer-BBnCMR1g.js";
|
|
9
|
+
import { a as juniorAgentInvocations, c as juniorIdentities, d as juniorDestinations, i as juniorAgentBindings, n as AGENT_INVOCATION_PARENT_MAILBOX_STATUSES, r as AGENT_INVOCATION_STATUSES, s as juniorConversations, t as AGENT_INVOCATION_MAILBOX_STATUSES } from "./agent-invocations-BO6ddZax.js";
|
|
10
|
+
import { C as juniorArtifacts, S as juniorAttachments, a as juniorSchedulerRuns, l as juniorStats, m as juniorConversationBriefs, y as juniorConversationAnnotations } from "./executor-DA7eHhmC.js";
|
|
11
|
+
import { d as instructionActors, f as instructionProvenanceFor, p as sameActorIdentity, t as KNOWN_CONVERSATION_EVENT_TYPES, u as contextProvenance } from "./history-Nte1oVed.js";
|
|
12
12
|
import { a as listReferenceFiles, c as soulPathCandidates, l as worldPathCandidates } from "./package-discovery-BVvSnQBB.js";
|
|
13
|
-
import { a as resolveAuthTokenPlaceholder, c as fetchWithBoundedOAuthErrorBodies, d as credentialContextForActor, f as credentialContextSchema, h as CredentialUnavailableError, i as resolvePluginHeaderEnvRefs, l as getOAuthProviderErrorAttributes, m as credentialUserSubjectId, o as resolvePluginCommandEnv, p as credentialSubjectSchema, s as OAuthProviderError } from "./registry-
|
|
14
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
15
|
-
import { a as parseSkillInvocation, i as parseSkillFile, n as findSkillByName, r as loadSkillsByName, t as discoverSkills } from "./skills-
|
|
16
|
-
import { A as formatSlackLink, At as recordAttachmentsDelivered, Ct as loadConversationProjection, D as automationRevision, Dt as loadTurnRoute, F as addReactionToMessage, Ft as recordMcpProviderConnected, G as loadTurnCheckpoint, I as getSlackMessagePermalink, K as saveTurnCheckpoint, Kt as fallbackShortTitle, L as openSlackDirectMessage, Lt as recordToolExecutionStarted, N as slackMention, Nt as recordAuthorizationRequested, Ot as openConversationProjection, Pt as recordGuardianActionReviewed, R as postSlackEphemeralMessage, Rt as recordTurnRoute, St as loadConnectedMcpProviders, V as uploadFilesToConversation, W as continuableMessages, _t as trimTrailingAssistantMessages, a as readScheduledAutomation, an as estimateTextTokens, at as getPiMessageRole, b as saveEventAutomation, cn as historyItemFromPiMessage, ct as hasRuntimeTurnContext, dt as isContinuablePiBoundary, et as TurnSliceLimitExceededError, f as createEventAutomation, ft as isToolResultError, g as getEventAutomation, gt as stripRuntimeTurnContext, ht as retainRuntimeTurnContext, it as extractAssistantText, k as escapeSlackMrkdwnText, kt as recordAgentsInstructionsUpdated, ln as piMessageFromHistoryItem, mt as normalizeToolNameFromResult, o as saveScheduledAutomation, on as getAgentContextCompactionTriggerTokens, ot as getTerminalAssistantMessages, p as deleteEventAutomation, pt as isToolResultMessage, qt as resolveTaskTitle, r as listScheduledAutomationsForTeam, rt as isTurnExecutionLimitExceededError, sn as getAgentContextInputLimitTokens, st as getUserMessageInstructionText, t as createScheduledAutomation, tt as assertTurnToolCallLimit, ut as isAssistantMessage, v as listEventAutomationsForTeam, vt as TURN_CONTEXT_TAG, wt as loadLastModelProfile, x as setEventAutomationStatus, yt as ToolInputError, z as postSlackMessage } from "./tasks-
|
|
17
|
-
import { A as getWorkspaceSnapshotBuilder, B as cancelWatch, Bt as isConversationScopedChannel, C as WorkspaceValidationError, D as setWorkspaceSnapshotBuild, E as setWorkspaceSnapshot, F as RESOURCE_SUBSCRIPTION_DEFAULT_TTL_MS, Ft as SlackActionError, G as findMatchingWatches, H as createTimerWatch, Ht as normalizeSlackConversationId, I as RESOURCE_SUBSCRIPTION_MAX_TTL_MS, It as downloadPrivateSlackFile, K as listWatches, L as RESOURCE_WATCH_TOOL_SOURCE, Lt as getFilePermalink, M as workspaceRepoCheckoutPath, Mt as defaultTimezone, N as resolveChannelCapabilities, Nt as resolveUserTimezone, O as SANDBOX_RUNTIME, Ot as saveObjectAnnotations, P as getSlackToolContext, R as STOP_WATCHING_TOOL_NAME, S as updateWorkspace, T as loadSnapshotsForProfile, U as createWatch, Vt as isDmChannel$1, W as deliverWatch, Wt as withSlackRetries, _ as deleteWorkspace, b as listWorkspaces, c as getPluginTools, et as verifyTimerWatchCredentialSubject, g as createWorkspace, it as getDashboardTaskLink, j as tryWorkspaceRepoCheckoutPath, k as deleteWorkspaceSnapshotBuilders, kt as createPluginAnnotations, l as getPluginUserPromptContributions, lt as createPluginLogger, nt as getDashboardConversationLink, r as createPluginHookRunner, s as getPluginSystemPromptContributions, tt as JUNIOR_THREAD_STATE_TTL_MS, u as getPlugins, v as getWorkspace, w as invalidateReadySnapshot, wt as matchSlackAttachments, y as getWorkspaceByName, z as cancelSubscriptions, zt as getSlackClient } from "./agent-hooks-
|
|
18
|
-
import { F as isVisionImageMediaType, G as removedCardSchema, L as briefLinkSchema, R as briefOutcomeStatusSchema, z as conversationBriefSchema } from "./conversation-
|
|
19
|
-
import { A as SANDBOX_DATA_ROOT, C as getDefaultRedisStateAdapterFor, D as fenceLock, E as acquireActiveLock, F as sandboxSkillFile, I as sandboxSkillPathResolution, M as SANDBOX_SKILLS_ROOT, N as SANDBOX_WORKSPACE_ROOT, O as withLock, P as sandboxSkillDir, _ as workspaceSnapshotNotReadyUserMessage, a as isAbortError, b as buildNonInteractiveShellScript, c as isSandboxCommandStreamInterruptedError, d as isSnapshottingError, f as throwSandboxOperationError, g as isWorkspaceSnapshotNotReadyError, h as getWorkspaceSnapshotNotReadyError, i as ensureDockerDaemon, j as SANDBOX_REPOS_ROOT, k as sleep$2, l as isSandboxMissingError, m as WorkspaceSnapshotNotReadyError, n as hash, o as isAlreadyExistsError, p as wrapSandboxSetupError, r as isStale, s as isSandboxApiTransientError, t as create, u as isSandboxUnavailableError, v as getVercelSandboxCredentials, w as getStateAdapter, x as runNonInteractiveCommand, y as buildCommandScript } from "./profile-
|
|
20
|
-
import { n as canReusePendingAuthLink, t as abandonReplacedPendingAuth } from "./pending-auth-
|
|
21
|
-
import { a as NO_REPLY_MARKER, c as CooperativeTurnYieldError, i as sanitizeAssistantText, l as TurnInputCommitLostError, n as decideReply, o as isNoReplyMarker, p as isTurnInputCommitLostError, r as getAssistantReplyText, t as authorizationId } from "./oauth-authorization-
|
|
13
|
+
import { a as resolveAuthTokenPlaceholder, c as fetchWithBoundedOAuthErrorBodies, d as credentialContextForActor, f as credentialContextSchema, h as CredentialUnavailableError, i as resolvePluginHeaderEnvRefs, l as getOAuthProviderErrorAttributes, m as credentialUserSubjectId, o as resolvePluginCommandEnv, p as credentialSubjectSchema, s as OAuthProviderError } from "./registry-DvzzL8-v.js";
|
|
14
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-CpxhLwZG.js";
|
|
15
|
+
import { a as parseSkillInvocation, i as parseSkillFile, n as findSkillByName, r as loadSkillsByName, t as discoverSkills } from "./skills-DFduSvuO.js";
|
|
16
|
+
import { A as formatSlackLink, At as recordAttachmentsDelivered, Ct as loadConversationProjection, D as automationRevision, Dt as loadTurnRoute, F as addReactionToMessage, Ft as recordMcpProviderConnected, G as loadTurnCheckpoint, I as getSlackMessagePermalink, K as saveTurnCheckpoint, Kt as fallbackShortTitle, L as openSlackDirectMessage, Lt as recordToolExecutionStarted, N as slackMention, Nt as recordAuthorizationRequested, Ot as openConversationProjection, Pt as recordGuardianActionReviewed, R as postSlackEphemeralMessage, Rt as recordTurnRoute, St as loadConnectedMcpProviders, V as uploadFilesToConversation, W as continuableMessages, _t as trimTrailingAssistantMessages, a as readScheduledAutomation, an as estimateTextTokens, at as getPiMessageRole, b as saveEventAutomation, cn as historyItemFromPiMessage, ct as hasRuntimeTurnContext, dt as isContinuablePiBoundary, et as TurnSliceLimitExceededError, f as createEventAutomation, ft as isToolResultError, g as getEventAutomation, gt as stripRuntimeTurnContext, ht as retainRuntimeTurnContext, it as extractAssistantText, k as escapeSlackMrkdwnText, kt as recordAgentsInstructionsUpdated, ln as piMessageFromHistoryItem, mt as normalizeToolNameFromResult, o as saveScheduledAutomation, on as getAgentContextCompactionTriggerTokens, ot as getTerminalAssistantMessages, p as deleteEventAutomation, pt as isToolResultMessage, qt as resolveTaskTitle, r as listScheduledAutomationsForTeam, rt as isTurnExecutionLimitExceededError, sn as getAgentContextInputLimitTokens, st as getUserMessageInstructionText, t as createScheduledAutomation, tt as assertTurnToolCallLimit, ut as isAssistantMessage, v as listEventAutomationsForTeam, vt as TURN_CONTEXT_TAG, wt as loadLastModelProfile, x as setEventAutomationStatus, yt as ToolInputError, z as postSlackMessage } from "./tasks-DBZAgTx7.js";
|
|
17
|
+
import { A as getWorkspaceSnapshotBuilder, B as cancelWatch, Bt as isConversationScopedChannel, C as WorkspaceValidationError, D as setWorkspaceSnapshotBuild, E as setWorkspaceSnapshot, F as RESOURCE_SUBSCRIPTION_DEFAULT_TTL_MS, Ft as SlackActionError, G as findMatchingWatches, H as createTimerWatch, Ht as normalizeSlackConversationId, I as RESOURCE_SUBSCRIPTION_MAX_TTL_MS, It as downloadPrivateSlackFile, K as listWatches, L as RESOURCE_WATCH_TOOL_SOURCE, Lt as getFilePermalink, M as workspaceRepoCheckoutPath, Mt as defaultTimezone, N as resolveChannelCapabilities, Nt as resolveUserTimezone, O as SANDBOX_RUNTIME, Ot as saveObjectAnnotations, P as getSlackToolContext, R as STOP_WATCHING_TOOL_NAME, S as updateWorkspace, T as loadSnapshotsForProfile, U as createWatch, Vt as isDmChannel$1, W as deliverWatch, Wt as withSlackRetries, _ as deleteWorkspace, b as listWorkspaces, c as getPluginTools, et as verifyTimerWatchCredentialSubject, g as createWorkspace, it as getDashboardTaskLink, j as tryWorkspaceRepoCheckoutPath, k as deleteWorkspaceSnapshotBuilders, kt as createPluginAnnotations, l as getPluginUserPromptContributions, lt as createPluginLogger, nt as getDashboardConversationLink, r as createPluginHookRunner, s as getPluginSystemPromptContributions, tt as JUNIOR_THREAD_STATE_TTL_MS, u as getPlugins, v as getWorkspace, w as invalidateReadySnapshot, wt as matchSlackAttachments, y as getWorkspaceByName, z as cancelSubscriptions, zt as getSlackClient } from "./agent-hooks-Cj_rSeWd.js";
|
|
18
|
+
import { F as isVisionImageMediaType, G as removedCardSchema, L as briefLinkSchema, R as briefOutcomeStatusSchema, z as conversationBriefSchema } from "./conversation-BxvgH64Q.js";
|
|
19
|
+
import { A as SANDBOX_DATA_ROOT, C as getDefaultRedisStateAdapterFor, D as fenceLock, E as acquireActiveLock, F as sandboxSkillFile, I as sandboxSkillPathResolution, M as SANDBOX_SKILLS_ROOT, N as SANDBOX_WORKSPACE_ROOT, O as withLock, P as sandboxSkillDir, _ as workspaceSnapshotNotReadyUserMessage, a as isAbortError, b as buildNonInteractiveShellScript, c as isSandboxCommandStreamInterruptedError, d as isSnapshottingError, f as throwSandboxOperationError, g as isWorkspaceSnapshotNotReadyError, h as getWorkspaceSnapshotNotReadyError, i as ensureDockerDaemon, j as SANDBOX_REPOS_ROOT, k as sleep$2, l as isSandboxMissingError, m as WorkspaceSnapshotNotReadyError, n as hash, o as isAlreadyExistsError, p as wrapSandboxSetupError, r as isStale, s as isSandboxApiTransientError, t as create, u as isSandboxUnavailableError, v as getVercelSandboxCredentials, w as getStateAdapter, x as runNonInteractiveCommand, y as buildCommandScript } from "./profile-yeKVNECl.js";
|
|
20
|
+
import { n as canReusePendingAuthLink, t as abandonReplacedPendingAuth } from "./pending-auth-OndKPW4M.js";
|
|
21
|
+
import { a as NO_REPLY_MARKER, c as CooperativeTurnYieldError, i as sanitizeAssistantText, l as TurnInputCommitLostError, n as decideReply, o as isNoReplyMarker, p as isTurnInputCommitLostError, r as getAssistantReplyText, t as authorizationId } from "./oauth-authorization-Db1yGVvG.js";
|
|
22
22
|
import { i as isValidTimeZone, r as getZonedDateTimeParts } from "./cadence-D00SCzT1.js";
|
|
23
|
-
import { r as EVENT_AUTHOR_ID } from "./prompt-
|
|
24
|
-
import { a as createSandboxSession, c as postinstall, d as getSandboxResources, i as bindSandboxFileSystem, l as setSnapshotSpanAttributes, n as isMissingError, o as stopSession, r as resolve$1, s as dependencies } from "./resolve-
|
|
25
|
-
import { a as getVercelConversationWorkQueue, f as getTurnRequestDeadline, n as sendNextWorkspaceSnapshotJob, r as sendWorkspaceSnapshotJob } from "./job-queue-
|
|
23
|
+
import { r as EVENT_AUTHOR_ID } from "./prompt-CX36ZlbV.js";
|
|
24
|
+
import { a as createSandboxSession, c as postinstall, d as getSandboxResources, i as bindSandboxFileSystem, l as setSnapshotSpanAttributes, n as isMissingError, o as stopSession, r as resolve$1, s as dependencies } from "./resolve-4u5gEU04.js";
|
|
25
|
+
import { a as getVercelConversationWorkQueue, f as getTurnRequestDeadline, n as sendNextWorkspaceSnapshotJob, r as sendWorkspaceSnapshotJob } from "./job-queue-mVyF9jgv.js";
|
|
26
26
|
import { F as taskOutcomeInputSchema, M as compileScheduleIntent, N as scheduleIntentSchema, O as automationInstructionToolSchema, T as SCHEDULED_AUTOMATION_SYSTEM_ACTOR, j as ScheduleIntentError, k as automationTitleSchema } from "./automation-gznOMaQ2.js";
|
|
27
27
|
import { r as isExperimentalFeatureEnabled } from "./experimental-Qn9rKLgx.js";
|
|
28
28
|
import { n as privateTraceResultAttributes } from "./private-trace-result-BLvBjy_e.js";
|
|
@@ -9639,6 +9639,7 @@ const agentInvocationBaseSchema = z.object({
|
|
|
9639
9639
|
parentToolCallId: exactStringSchema.optional(),
|
|
9640
9640
|
reasoningLevel: z.enum(TURN_REASONING_LEVELS).optional(),
|
|
9641
9641
|
source: sourceSchema,
|
|
9642
|
+
title: exactStringSchema.optional(),
|
|
9642
9643
|
updatedAtMs: z.number().finite()
|
|
9643
9644
|
}).strict();
|
|
9644
9645
|
const agentInvocationSchema = z.discriminatedUnion("status", [
|
|
@@ -9673,7 +9674,8 @@ const createAgentInvocationSchema = z.object({
|
|
|
9673
9674
|
input: exactStringSchema,
|
|
9674
9675
|
parentConversationId: exactStringSchema,
|
|
9675
9676
|
parentToolCallId: exactStringSchema.optional(),
|
|
9676
|
-
reasoningLevel: z.enum(TURN_REASONING_LEVELS).optional()
|
|
9677
|
+
reasoningLevel: z.enum(TURN_REASONING_LEVELS).optional(),
|
|
9678
|
+
title: exactStringSchema.optional()
|
|
9677
9679
|
}).strict();
|
|
9678
9680
|
//#endregion
|
|
9679
9681
|
//#region src/chat/agent-invocations/errors.ts
|
|
@@ -9769,10 +9771,15 @@ function invocationFromRow(row) {
|
|
|
9769
9771
|
source: row.source,
|
|
9770
9772
|
status: row.status,
|
|
9771
9773
|
...row.terminalAt ? { terminalAtMs: row.terminalAt.getTime() } : void 0,
|
|
9774
|
+
...row.title ? { title: row.title } : void 0,
|
|
9772
9775
|
updatedAtMs: row.updatedAt.getTime()
|
|
9773
9776
|
});
|
|
9774
9777
|
}
|
|
9775
|
-
/**
|
|
9778
|
+
/**
|
|
9779
|
+
* Require every durable creation input to match before replaying one key.
|
|
9780
|
+
* The title is not compared: a retry can generate a different one, and the
|
|
9781
|
+
* stored title wins.
|
|
9782
|
+
*/
|
|
9776
9783
|
function sameCreateInput(invocation, input) {
|
|
9777
9784
|
return invocation.parentConversationId === input.parentConversationId && invocation.agentName === input.agentName && invocation.input === input.input && invocation.reasoningLevel === input.reasoningLevel && JSON.stringify(invocation.actor) === JSON.stringify(input.actor) && JSON.stringify(invocation.credentialContext) === JSON.stringify(input.credentialContext) && JSON.stringify(invocation.destination) === JSON.stringify(input.destination);
|
|
9778
9785
|
}
|
|
@@ -9812,6 +9819,7 @@ function childAgentFromInvocations(invocations, resultInvocationIds) {
|
|
|
9812
9819
|
...terminal && terminal.status !== "completed" ? { errorMessage: terminal.errorMessage } : void 0,
|
|
9813
9820
|
status: terminal?.parentMailboxStatus === "replaced" ? "pending" : terminal?.parentMailboxStatus === "skipped" ? "stopped" : current.status,
|
|
9814
9821
|
task: task.input,
|
|
9822
|
+
...task.title ? { title: task.title } : void 0,
|
|
9815
9823
|
updatedAtMs: Math.max(...invocations.map((invocation) => invocation.updatedAtMs))
|
|
9816
9824
|
};
|
|
9817
9825
|
}
|
|
@@ -9883,6 +9891,7 @@ async function createAgentInvocation(rawInput, nowMs = Date.now()) {
|
|
|
9883
9891
|
childConversationId,
|
|
9884
9892
|
agentName: input.agentName ?? null,
|
|
9885
9893
|
input: input.input,
|
|
9894
|
+
title: input.title ?? null,
|
|
9886
9895
|
actor: input.actor,
|
|
9887
9896
|
credentialContext: input.credentialContext ?? null,
|
|
9888
9897
|
source: { kind: "agent_invocation" },
|
|
@@ -10082,6 +10091,7 @@ const listAgentsOutputSchema = juniorToolOutputSchema.extend({ agents: z.array(z
|
|
|
10082
10091
|
name: agentNameSchema.optional().describe("Child-agent name. Pass it to spawnAgent to reuse it."),
|
|
10083
10092
|
status: z.enum(AGENT_INVOCATION_STATUSES).describe("pending: waiting to run. running or paused: working. completed, blocked, failed, or stopped: not working."),
|
|
10084
10093
|
task: z.string().describe("Latest task given to the child agent"),
|
|
10094
|
+
title: z.string().optional().describe("Short display title of the latest task"),
|
|
10085
10095
|
error: z.string().optional().describe("Why the child agent is blocked, failed, or stopped"),
|
|
10086
10096
|
updated_at: z.string().describe("Time of the latest change")
|
|
10087
10097
|
}).strict()).describe("Child agents of this conversation, newest activity first") });
|
|
@@ -10102,6 +10112,7 @@ function createListAgentsTool(conversationId) {
|
|
|
10102
10112
|
...agent.agentName ? { name: agent.agentName } : void 0,
|
|
10103
10113
|
status: agent.status,
|
|
10104
10114
|
task: truncate(agent.task, TASK_MAX_LENGTH),
|
|
10115
|
+
...agent.title ? { title: agent.title } : void 0,
|
|
10105
10116
|
...agent.errorMessage ? { error: truncate(agent.errorMessage, ERROR_MAX_LENGTH) } : void 0,
|
|
10106
10117
|
updated_at: new Date(agent.updatedAtMs).toISOString()
|
|
10107
10118
|
})) })
|
|
@@ -10122,16 +10133,24 @@ function createSpawnAgentTool(spawnAgent) {
|
|
|
10122
10133
|
},
|
|
10123
10134
|
inputSchema: z.object({
|
|
10124
10135
|
task: z.string().trim().min(1).describe("Task for the child agent"),
|
|
10136
|
+
title: z.string().trim().min(1).max(60).nullable().optional().describe("Optional short display title for the task. Omit to generate one from the task."),
|
|
10125
10137
|
name: agentNameSchema.nullable().optional().describe("Stable child-agent name, or omit for a one-off agent"),
|
|
10126
10138
|
reasoning_level: z.enum(TURN_REASONING_LEVELS).nullable().optional().describe("Optional reasoning level for this delegated task only")
|
|
10127
10139
|
}).strict(),
|
|
10128
10140
|
outputSchema: spawnAgentOutputSchema,
|
|
10129
10141
|
execute: async (input, options) => {
|
|
10130
10142
|
if (!options.toolCallId) throw new ToolInputError("spawnAgent requires an active tool call ID");
|
|
10143
|
+
const title = await resolveTaskTitle({
|
|
10144
|
+
completeText,
|
|
10145
|
+
instruction: input.task,
|
|
10146
|
+
signal: options.signal,
|
|
10147
|
+
title: input.title
|
|
10148
|
+
});
|
|
10131
10149
|
let result;
|
|
10132
10150
|
try {
|
|
10133
10151
|
result = await spawnAgent({
|
|
10134
10152
|
task: input.task,
|
|
10153
|
+
...title ? { title } : void 0,
|
|
10135
10154
|
...input.name ? { name: input.name } : void 0,
|
|
10136
10155
|
...input.reasoning_level ? { reasoningLevel: input.reasoning_level } : void 0
|
|
10137
10156
|
}, {
|
|
@@ -10168,7 +10187,12 @@ async function recordSubagentStarted(invocation) {
|
|
|
10168
10187
|
subagentInvocationId: invocation.invocationId,
|
|
10169
10188
|
subagentKind: SUBAGENT_KIND,
|
|
10170
10189
|
childConversationId: invocation.childConversationId,
|
|
10171
|
-
...invocation.
|
|
10190
|
+
...invocation.agentName ? { agentName: invocation.agentName } : void 0,
|
|
10191
|
+
...invocation.parentToolCallId ? {
|
|
10192
|
+
parentToolCallId: invocation.parentToolCallId,
|
|
10193
|
+
task: invocation.input
|
|
10194
|
+
} : void 0,
|
|
10195
|
+
...invocation.title ? { title: invocation.title } : void 0,
|
|
10172
10196
|
...invocation.reasoningLevel ? { reasoningLevel: invocation.reasoningLevel } : void 0
|
|
10173
10197
|
},
|
|
10174
10198
|
createdAtMs: invocation.createdAtMs
|
|
@@ -21581,7 +21605,7 @@ function createAgentRunner(execute, options) {
|
|
|
21581
21605
|
} } : void 0
|
|
21582
21606
|
};
|
|
21583
21607
|
if (run.instruction.storedAttachments?.length) {
|
|
21584
|
-
const { loadInputImages } = await import("./images-
|
|
21608
|
+
const { loadInputImages } = await import("./images-CvMreau5.js").then((n) => n.n);
|
|
21585
21609
|
const storage = nextRun.environment?.attachmentStorage;
|
|
21586
21610
|
if (!storage) throw new Error("Attachment storage is unavailable.");
|
|
21587
21611
|
nextRun.instruction = {
|
package/dist/api/schema.d.ts
CHANGED
|
@@ -870,6 +870,9 @@ export declare const conversationReportEventDataSchema: z.ZodDiscriminatedUnion<
|
|
|
870
870
|
startedAt: z.ZodString;
|
|
871
871
|
childConversationId: z.ZodString;
|
|
872
872
|
subagentKind: z.ZodString;
|
|
873
|
+
agentName: z.ZodOptional<z.ZodString>;
|
|
874
|
+
task: z.ZodOptional<z.ZodString>;
|
|
875
|
+
title: z.ZodOptional<z.ZodString>;
|
|
873
876
|
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
874
877
|
status: z.ZodEnum<{
|
|
875
878
|
error: "error";
|
|
@@ -1107,6 +1110,9 @@ export declare const conversationReportEventSchema: z.ZodObject<{
|
|
|
1107
1110
|
startedAt: z.ZodString;
|
|
1108
1111
|
childConversationId: z.ZodString;
|
|
1109
1112
|
subagentKind: z.ZodString;
|
|
1113
|
+
agentName: z.ZodOptional<z.ZodString>;
|
|
1114
|
+
task: z.ZodOptional<z.ZodString>;
|
|
1115
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1110
1116
|
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
1111
1117
|
status: z.ZodEnum<{
|
|
1112
1118
|
error: "error";
|
|
@@ -1688,6 +1694,9 @@ export declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
1688
1694
|
startedAt: z.ZodString;
|
|
1689
1695
|
childConversationId: z.ZodString;
|
|
1690
1696
|
subagentKind: z.ZodString;
|
|
1697
|
+
agentName: z.ZodOptional<z.ZodString>;
|
|
1698
|
+
task: z.ZodOptional<z.ZodString>;
|
|
1699
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1691
1700
|
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
1692
1701
|
status: z.ZodEnum<{
|
|
1693
1702
|
error: "error";
|
|
@@ -1973,6 +1982,9 @@ export declare const conversationEventPageSchema: z.ZodObject<{
|
|
|
1973
1982
|
startedAt: z.ZodString;
|
|
1974
1983
|
childConversationId: z.ZodString;
|
|
1975
1984
|
subagentKind: z.ZodString;
|
|
1985
|
+
agentName: z.ZodOptional<z.ZodString>;
|
|
1986
|
+
task: z.ZodOptional<z.ZodString>;
|
|
1987
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1976
1988
|
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
1977
1989
|
status: z.ZodEnum<{
|
|
1978
1990
|
error: "error";
|
|
@@ -2402,7 +2414,7 @@ type CancelConversationPendingMessagesResponse = z.infer<typeof cancelConversati
|
|
|
2402
2414
|
* One direct child agent of a Conversation, from agent invocation records.
|
|
2403
2415
|
*
|
|
2404
2416
|
* Viewers who cannot see private content get the status and time, but not the
|
|
2405
|
-
* name, task, or error.
|
|
2417
|
+
* name, task, title, or error.
|
|
2406
2418
|
*/
|
|
2407
2419
|
export declare const conversationChildAgentSchema: z.ZodObject<{
|
|
2408
2420
|
conversationId: z.ZodString;
|
|
@@ -2419,6 +2431,7 @@ export declare const conversationChildAgentSchema: z.ZodObject<{
|
|
|
2419
2431
|
stopped: "stopped";
|
|
2420
2432
|
}>;
|
|
2421
2433
|
task: z.ZodOptional<z.ZodString>;
|
|
2434
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2422
2435
|
updatedAt: z.ZodString;
|
|
2423
2436
|
}, z.core.$strict>;
|
|
2424
2437
|
/** Direct child agents of one Conversation, newest activity first. */
|
|
@@ -2438,6 +2451,7 @@ export declare const conversationChildAgentsReportSchema: z.ZodObject<{
|
|
|
2438
2451
|
stopped: "stopped";
|
|
2439
2452
|
}>;
|
|
2440
2453
|
task: z.ZodOptional<z.ZodString>;
|
|
2454
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2441
2455
|
updatedAt: z.ZodString;
|
|
2442
2456
|
}, z.core.$strict>>;
|
|
2443
2457
|
conversationId: z.ZodString;
|
package/dist/api/schema.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as conversationTurnFailureReasonSchema, i as conversationTurnFailureCodeSchema } from "../history-
|
|
2
|
-
import { A as forkConversationResponseSchema, C as conversationReportEventSchema, D as createConversationBodySchema, E as conversationSummaryReportSchema, K as resolveMessageCards, M as MAX_INPUT_IMAGE_BYTES, O as createConversationMessageBodySchema, P as INPUT_IMAGE_TYPES, S as conversationReportEventDataSchema, T as conversationStatsReportSchema, U as messageCardText, _ as conversationParamsSchema, a as cancelConversationPendingMessagesBodySchema, b as conversationPendingMessageSchema, d as conversationDetailReportSchema, f as conversationEventHistorySchema, g as conversationFeedSchema, h as conversationFeedQuerySchema, i as archiveConversationResponseSchema, j as MAX_INPUT_IMAGES, k as forkConversationBodySchema, l as conversationAuxiliaryCostsSchema, m as conversationEventsQuerySchema, o as cancelConversationPendingMessagesResponseSchema, p as conversationEventPageSchema, r as archiveConversationBodySchema, s as conversationActivityPreviewSchema, t as acceptedConversationMessageSchema, u as conversationDetailQuerySchema, v as conversationPendingAuthorizationSchema, x as conversationPendingMessagesReportSchema, y as conversationPendingMessageDeliverySchema } from "../conversation-
|
|
1
|
+
import { a as conversationTurnFailureReasonSchema, i as conversationTurnFailureCodeSchema } from "../history-Nte1oVed.js";
|
|
2
|
+
import { A as forkConversationResponseSchema, C as conversationReportEventSchema, D as createConversationBodySchema, E as conversationSummaryReportSchema, K as resolveMessageCards, M as MAX_INPUT_IMAGE_BYTES, O as createConversationMessageBodySchema, P as INPUT_IMAGE_TYPES, S as conversationReportEventDataSchema, T as conversationStatsReportSchema, U as messageCardText, _ as conversationParamsSchema, a as cancelConversationPendingMessagesBodySchema, b as conversationPendingMessageSchema, d as conversationDetailReportSchema, f as conversationEventHistorySchema, g as conversationFeedSchema, h as conversationFeedQuerySchema, i as archiveConversationResponseSchema, j as MAX_INPUT_IMAGES, k as forkConversationBodySchema, l as conversationAuxiliaryCostsSchema, m as conversationEventsQuerySchema, o as cancelConversationPendingMessagesResponseSchema, p as conversationEventPageSchema, r as archiveConversationBodySchema, s as conversationActivityPreviewSchema, t as acceptedConversationMessageSchema, u as conversationDetailQuerySchema, v as conversationPendingAuthorizationSchema, x as conversationPendingMessagesReportSchema, y as conversationPendingMessageDeliverySchema } from "../conversation-BxvgH64Q.js";
|
|
3
3
|
import { C as eventAutomationSummarySchema, S as automationVersionSchema, _ as automationSummarySchema, a as automationExecutionSchema, b as automationVersionListSchema, d as automationParamsSchema, f as automationRunListSchema, g as automationSchedulePreviewSchema, h as automationScheduleIntentSchema, i as automationExecutionListSchema, l as automationListQuerySchema, m as automationRunWindowsSchema, n as automationEditSchema, o as automationExecutionStatusDaySchema, p as automationRunSchema, r as automationEventCatalogSchema, s as automationExecutionStatusSchema, t as automationEditErrorSchema, u as automationListSchema, v as automationUpdateSchema, w as scheduledAutomationSummarySchema, x as automationVersionParamsSchema, y as automationVersionActivateSchema } from "../automation-gznOMaQ2.js";
|
|
4
4
|
import { C as skillReportsSchema, S as skillReportSchema, _ as pluginPackageContentItemReportSchema, b as pluginsSchema, g as pluginOperationalReportSchema, h as pluginOperationalReportFeedSchema, m as healthReportSchema, t as webMessageId, v as pluginPackageContentReportSchema, x as runtimeInfoReportSchema, y as pluginSchema } from "../web-message-id-xPI_EFSC.js";
|
|
5
|
-
import { A as codeChangeSummarySchema, C as locationParamsSchema, D as dailyConversationActivitySchema, F as codeRepositorySummarySchema, I as conversationChildAgentSchema, L as conversationChildAgentsReportSchema, M as codePersonReportSchema, N as codeRepositoryParamsSchema, O as codeActivityDaySchema, P as codeRepositoryReportSchema, R as apiErrorSchema, S as locationDirectoryReportSchema, _ as actorProfileReportSchema, a as workspaceBodySchema, b as locationActivityDayReportSchema, c as workspaceRepoSchema, d as createdPersonalTokenSchema, f as personalTokenListSchema, g as actorDirectoryReportSchema, h as revokePersonalTokenResponseSchema, i as deleteWorkspaceResponseSchema, j as codeOverviewReportSchema, k as codeChangeSummaryReportSchema, l as workspaceSchema, m as personalTokenParamsSchema, n as statsReportSchema, o as workspaceListSchema, p as personalTokenMetadataSchema, r as baselineSnapshotSchema, s as workspaceParamsSchema, t as statSchema, u as createPersonalTokenBodySchema, v as personParamsSchema, x as locationDetailReportSchema, y as personalSpendReportSchema } from "../schema-
|
|
5
|
+
import { A as codeChangeSummarySchema, C as locationParamsSchema, D as dailyConversationActivitySchema, F as codeRepositorySummarySchema, I as conversationChildAgentSchema, L as conversationChildAgentsReportSchema, M as codePersonReportSchema, N as codeRepositoryParamsSchema, O as codeActivityDaySchema, P as codeRepositoryReportSchema, R as apiErrorSchema, S as locationDirectoryReportSchema, _ as actorProfileReportSchema, a as workspaceBodySchema, b as locationActivityDayReportSchema, c as workspaceRepoSchema, d as createdPersonalTokenSchema, f as personalTokenListSchema, g as actorDirectoryReportSchema, h as revokePersonalTokenResponseSchema, i as deleteWorkspaceResponseSchema, j as codeOverviewReportSchema, k as codeChangeSummaryReportSchema, l as workspaceSchema, m as personalTokenParamsSchema, n as statsReportSchema, o as workspaceListSchema, p as personalTokenMetadataSchema, r as baselineSnapshotSchema, s as workspaceParamsSchema, t as statSchema, u as createPersonalTokenBodySchema, v as personParamsSchema, x as locationDetailReportSchema, y as personalSpendReportSchema } from "../schema-Dyyi9oRc.js";
|
|
6
6
|
export { INPUT_IMAGE_TYPES, MAX_INPUT_IMAGES, MAX_INPUT_IMAGE_BYTES, acceptedConversationMessageSchema, actorDirectoryReportSchema, actorProfileReportSchema, apiErrorSchema, archiveConversationBodySchema, archiveConversationResponseSchema, automationEditErrorSchema, automationEditSchema, automationEventCatalogSchema, automationExecutionListSchema, automationExecutionSchema, automationExecutionStatusDaySchema, automationExecutionStatusSchema, automationListQuerySchema, automationListSchema, automationParamsSchema, automationRunListSchema, automationRunSchema, automationRunWindowsSchema, automationScheduleIntentSchema, automationSchedulePreviewSchema, automationSummarySchema, automationUpdateSchema, automationVersionActivateSchema, automationVersionListSchema, automationVersionParamsSchema, automationVersionSchema, baselineSnapshotSchema, cancelConversationPendingMessagesBodySchema, cancelConversationPendingMessagesResponseSchema, codeActivityDaySchema, codeChangeSummaryReportSchema, codeChangeSummarySchema, codeOverviewReportSchema, codePersonReportSchema, codeRepositoryParamsSchema, codeRepositoryReportSchema, codeRepositorySummarySchema, conversationActivityPreviewSchema, conversationAuxiliaryCostsSchema, conversationChildAgentSchema, conversationChildAgentsReportSchema, conversationDetailQuerySchema, conversationDetailReportSchema, conversationEventHistorySchema, conversationEventPageSchema, conversationEventsQuerySchema, conversationFeedQuerySchema, conversationFeedSchema, conversationParamsSchema, conversationPendingAuthorizationSchema, conversationPendingMessageDeliverySchema, conversationPendingMessageSchema, conversationPendingMessagesReportSchema, conversationReportEventDataSchema, conversationReportEventSchema, conversationStatsReportSchema, conversationSummaryReportSchema, conversationTurnFailureCodeSchema, conversationTurnFailureReasonSchema, createConversationBodySchema, createConversationMessageBodySchema, createPersonalTokenBodySchema, createdPersonalTokenSchema, dailyConversationActivitySchema, deleteWorkspaceResponseSchema, eventAutomationSummarySchema, forkConversationBodySchema, forkConversationResponseSchema, healthReportSchema, locationActivityDayReportSchema, locationDetailReportSchema, locationDirectoryReportSchema, locationParamsSchema, messageCardText, personParamsSchema, personalSpendReportSchema, personalTokenListSchema, personalTokenMetadataSchema, personalTokenParamsSchema, pluginOperationalReportFeedSchema, pluginOperationalReportSchema, pluginPackageContentItemReportSchema, pluginPackageContentReportSchema, pluginSchema, pluginsSchema, resolveMessageCards, revokePersonalTokenResponseSchema, runtimeInfoReportSchema, scheduledAutomationSummarySchema, skillReportSchema, skillReportsSchema, statSchema, statsReportSchema, webMessageId, workspaceBodySchema, workspaceListSchema, workspaceParamsSchema, workspaceRepoSchema, workspaceSchema };
|
package/dist/api.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { L as editEventAutomation, Mt as getConversation, O as parseSlackThreadId, P as editScheduledAutomation, R as AutomationEditError, St as cancelHumanFacingPendingMessages, T as readLiveAttachment, V as resolveTaskOutcomes, _t as pluginEventCatalog, g as readStats, ht as getEventCatalog, tt as listChildAgents, z as eventAutomationTriggerAvailable } from "./agent-runner-
|
|
2
|
-
import { d as logException, p as logWarn } from "./logging-
|
|
1
|
+
import { L as editEventAutomation, Mt as getConversation, O as parseSlackThreadId, P as editScheduledAutomation, R as AutomationEditError, St as cancelHumanFacingPendingMessages, T as readLiveAttachment, V as resolveTaskOutcomes, _t as pluginEventCatalog, g as readStats, ht as getEventCatalog, tt as listChildAgents, z as eventAutomationTriggerAvailable } from "./agent-runner-DtEtbaOb.js";
|
|
2
|
+
import { d as logException, p as logWarn } from "./logging-z7_w-KN_.js";
|
|
3
3
|
import { d as parseSlackTeamId, g as parseSlackMessageTs, l as parseSlackChannelId } from "./actor-BTtLaeWy.js";
|
|
4
|
-
import { E as resolveRootConversationId, T as hasAgentTurnUsage, _ as locationFromRow, b as parseSessionSource, c as getConversationEventStore, d as getDb, f as getSqlExecutor, i as resolveViewerUser, m as withConversationEventLock, o as updateViewerDisplayName, t as findUserByEmail, u as getConversationStore, w as agentTurnUsageSchema } from "./viewer-
|
|
5
|
-
import { c as juniorIdentities, d as juniorDestinations, l as juniorUsers, o as conversationReadColumns, s as juniorConversations } from "./agent-invocations-
|
|
6
|
-
import { _ as juniorConversationEvents, b as juniorCodeChanges, f as juniorConversationParticipants, g as juniorConversationMetrics, m as juniorConversationBriefs, v as juniorApiTokens, x as juniorCodeRepositories } from "./executor-
|
|
7
|
-
import { u as contextProvenance } from "./history-
|
|
8
|
-
import { D as automationRevision, E as AutomationConflictError, Et as loadTurnProjection, O as requireAutomationRevision, S as automationDefinition, T as sameDefinitionValue, a as readScheduledAutomation, b as saveEventAutomation, g as getEventAutomation, ln as piMessageFromHistoryItem, m as eventAutomationBelongsToUser, o as saveScheduledAutomation, w as readAutomationVersion, x as setEventAutomationStatus } from "./tasks-
|
|
9
|
-
import { At as listConversationAnnotations, C as WorkspaceValidationError, M as workspaceRepoCheckoutPath, O as SANDBOX_RUNTIME, Pt as lookupSlackUser, S as updateWorkspace, St as buildSentryConversationUrl, Wt as withSlackRetries, _ as deleteWorkspace, _t as conversationNotArchivedForUser, b as listWorkspaces, bt as readLatestConversationBrief, dt as conversationArchiveTimes, ft as conversationArchivedForEmail, g as createWorkspace, gt as conversationNotArchivedForEmail, ht as conversationHasParticipantUser, jt as listConversationAnnotationsById, lt as createPluginLogger, mt as conversationHasParticipantEmail, pt as conversationArchivedForUser, u as getPlugins, ut as readConversationAccessFromSql, v as getWorkspace, vt as viewerConversationMembership, x as listWorkspacesByRepository, xt as readConversationEventPage, zt as getSlackClient } from "./agent-hooks-
|
|
10
|
-
import { A as forkConversationResponseSchema, D as createConversationBodySchema, N as readMessageAttachments, O as createConversationMessageBodySchema, P as INPUT_IMAGE_TYPES, T as conversationStatsReportSchema, _ as conversationParamsSchema, a as cancelConversationPendingMessagesBodySchema, c as conversationAttachmentParamsSchema, d as conversationDetailReportSchema, g as conversationFeedSchema, h as conversationFeedQuerySchema, i as archiveConversationResponseSchema, k as forkConversationBodySchema, m as conversationEventsQuerySchema, o as cancelConversationPendingMessagesResponseSchema, p as conversationEventPageSchema, r as archiveConversationBodySchema, t as acceptedConversationMessageSchema, u as conversationDetailQuerySchema, x as conversationPendingMessagesReportSchema } from "./conversation-
|
|
11
|
-
import { n as hash, t as create } from "./profile-
|
|
4
|
+
import { E as resolveRootConversationId, T as hasAgentTurnUsage, _ as locationFromRow, b as parseSessionSource, c as getConversationEventStore, d as getDb, f as getSqlExecutor, i as resolveViewerUser, m as withConversationEventLock, o as updateViewerDisplayName, t as findUserByEmail, u as getConversationStore, w as agentTurnUsageSchema } from "./viewer-BBnCMR1g.js";
|
|
5
|
+
import { c as juniorIdentities, d as juniorDestinations, l as juniorUsers, o as conversationReadColumns, s as juniorConversations } from "./agent-invocations-BO6ddZax.js";
|
|
6
|
+
import { _ as juniorConversationEvents, b as juniorCodeChanges, f as juniorConversationParticipants, g as juniorConversationMetrics, m as juniorConversationBriefs, v as juniorApiTokens, x as juniorCodeRepositories } from "./executor-DA7eHhmC.js";
|
|
7
|
+
import { u as contextProvenance } from "./history-Nte1oVed.js";
|
|
8
|
+
import { D as automationRevision, E as AutomationConflictError, Et as loadTurnProjection, O as requireAutomationRevision, S as automationDefinition, T as sameDefinitionValue, a as readScheduledAutomation, b as saveEventAutomation, g as getEventAutomation, ln as piMessageFromHistoryItem, m as eventAutomationBelongsToUser, o as saveScheduledAutomation, w as readAutomationVersion, x as setEventAutomationStatus } from "./tasks-DBZAgTx7.js";
|
|
9
|
+
import { At as listConversationAnnotations, C as WorkspaceValidationError, M as workspaceRepoCheckoutPath, O as SANDBOX_RUNTIME, Pt as lookupSlackUser, S as updateWorkspace, St as buildSentryConversationUrl, Wt as withSlackRetries, _ as deleteWorkspace, _t as conversationNotArchivedForUser, b as listWorkspaces, bt as readLatestConversationBrief, dt as conversationArchiveTimes, ft as conversationArchivedForEmail, g as createWorkspace, gt as conversationNotArchivedForEmail, ht as conversationHasParticipantUser, jt as listConversationAnnotationsById, lt as createPluginLogger, mt as conversationHasParticipantEmail, pt as conversationArchivedForUser, u as getPlugins, ut as readConversationAccessFromSql, v as getWorkspace, vt as viewerConversationMembership, x as listWorkspacesByRepository, xt as readConversationEventPage, zt as getSlackClient } from "./agent-hooks-Cj_rSeWd.js";
|
|
10
|
+
import { A as forkConversationResponseSchema, D as createConversationBodySchema, N as readMessageAttachments, O as createConversationMessageBodySchema, P as INPUT_IMAGE_TYPES, T as conversationStatsReportSchema, _ as conversationParamsSchema, a as cancelConversationPendingMessagesBodySchema, c as conversationAttachmentParamsSchema, d as conversationDetailReportSchema, g as conversationFeedSchema, h as conversationFeedQuerySchema, i as archiveConversationResponseSchema, k as forkConversationBodySchema, m as conversationEventsQuerySchema, o as cancelConversationPendingMessagesResponseSchema, p as conversationEventPageSchema, r as archiveConversationBodySchema, t as acceptedConversationMessageSchema, u as conversationDetailQuerySchema, x as conversationPendingMessagesReportSchema } from "./conversation-BxvgH64Q.js";
|
|
11
|
+
import { n as hash, t as create } from "./profile-yeKVNECl.js";
|
|
12
12
|
import { t as getFirstRunAtMs } from "./cadence-D00SCzT1.js";
|
|
13
|
-
import { t as getCachedSnapshot } from "./resolve-
|
|
14
|
-
import { a as getVercelConversationWorkQueue } from "./job-queue-
|
|
13
|
+
import { t as getCachedSnapshot } from "./resolve-4u5gEU04.js";
|
|
14
|
+
import { a as getVercelConversationWorkQueue } from "./job-queue-mVyF9jgv.js";
|
|
15
15
|
import { M as compileScheduleIntent, P as weekdaySchema, _ as automationSummarySchema, b as automationVersionListSchema, c as automationLifecycleSchema, d as automationParamsSchema, f as automationRunListSchema, g as automationSchedulePreviewSchema, h as automationScheduleIntentSchema, i as automationExecutionListSchema, j as ScheduleIntentError, l as automationListQuerySchema, n as automationEditSchema, r as automationEventCatalogSchema, t as automationEditErrorSchema, u as automationListSchema, v as automationUpdateSchema, x as automationVersionParamsSchema, y as automationVersionActivateSchema } from "./automation-gznOMaQ2.js";
|
|
16
16
|
import { C as skillReportsSchema, a as fillUtcHours, b as pluginsSchema, c as sumUtcHoursIntoSixHours, d as trailingUtcSixHourWindow, f as utcDayKey, h as pluginOperationalReportFeedSchema, i as fillUtcDays, l as trailingUtcDayWindow, m as healthReportSchema, n as DAY_MS$1, o as fillUtcSixHours, p as utcHourKey, r as HOUR_MS$1, s as startOfUtcHour, u as trailingUtcHourWindow, x as runtimeInfoReportSchema } from "./web-message-id-xPI_EFSC.js";
|
|
17
|
-
import { H as readHealthReport, L as createVercelAttachmentStorage, M as legacyWebMailboxMetadataSchema, _ as readViewerAutomationRuns, a as recordWebConversationActivity, b as readViewerAutomations, d as resolveSlackConversationContextFromThreadId, g as readViewerAutomationExecutions, h as readConversationSourceTask, i as createConversationId, l as getProductionSlackAdapter, m as deleteViewerTask, o as webActorFromEmail, p as ViewerTaskNotFoundError, r as createAndEnqueueConversation, t as appendAndEnqueueWebMessage, u as formatSlackConversationRedactedLabel, v as readViewerAutomationSummary, w as clearSlackPendingReactions, x as resolveViewerTaskCandidate, y as readViewerAutomationVersions } from "./web-input-
|
|
18
|
-
import { A as conversationActiveDaysColumn, M as conversationRangeColumns, j as conversationAggregateColumns } from "./task-runner-
|
|
19
|
-
import { r as getWebAuthorization } from "./web-authorization-
|
|
20
|
-
import { t as decodeInputImages } from "./images-
|
|
21
|
-
import { C as locationParamsSchema, E as activitySixHours$1, L as conversationChildAgentsReportSchema, M as codePersonReportSchema, N as codeRepositoryParamsSchema, P as codeRepositoryReportSchema, R as apiErrorSchema, S as locationDirectoryReportSchema, T as activityHours$1, _ as actorProfileReportSchema, a as workspaceBodySchema, d as createdPersonalTokenSchema, f as personalTokenListSchema, g as actorDirectoryReportSchema, h as revokePersonalTokenResponseSchema, i as deleteWorkspaceResponseSchema, j as codeOverviewReportSchema, l as workspaceSchema, m as personalTokenParamsSchema, n as statsReportSchema, o as workspaceListSchema, s as workspaceParamsSchema, u as createPersonalTokenBodySchema, v as personParamsSchema, w as activityDays$1, x as locationDetailReportSchema, y as personalSpendReportSchema } from "./schema-
|
|
17
|
+
import { H as readHealthReport, L as createVercelAttachmentStorage, M as legacyWebMailboxMetadataSchema, _ as readViewerAutomationRuns, a as recordWebConversationActivity, b as readViewerAutomations, d as resolveSlackConversationContextFromThreadId, g as readViewerAutomationExecutions, h as readConversationSourceTask, i as createConversationId, l as getProductionSlackAdapter, m as deleteViewerTask, o as webActorFromEmail, p as ViewerTaskNotFoundError, r as createAndEnqueueConversation, t as appendAndEnqueueWebMessage, u as formatSlackConversationRedactedLabel, v as readViewerAutomationSummary, w as clearSlackPendingReactions, x as resolveViewerTaskCandidate, y as readViewerAutomationVersions } from "./web-input-CIsRGF07.js";
|
|
18
|
+
import { A as conversationActiveDaysColumn, M as conversationRangeColumns, j as conversationAggregateColumns } from "./task-runner-D4jvUpFV.js";
|
|
19
|
+
import { r as getWebAuthorization } from "./web-authorization-CTltRLsB.js";
|
|
20
|
+
import { t as decodeInputImages } from "./images-CvMreau5.js";
|
|
21
|
+
import { C as locationParamsSchema, E as activitySixHours$1, L as conversationChildAgentsReportSchema, M as codePersonReportSchema, N as codeRepositoryParamsSchema, P as codeRepositoryReportSchema, R as apiErrorSchema, S as locationDirectoryReportSchema, T as activityHours$1, _ as actorProfileReportSchema, a as workspaceBodySchema, d as createdPersonalTokenSchema, f as personalTokenListSchema, g as actorDirectoryReportSchema, h as revokePersonalTokenResponseSchema, i as deleteWorkspaceResponseSchema, j as codeOverviewReportSchema, l as workspaceSchema, m as personalTokenParamsSchema, n as statsReportSchema, o as workspaceListSchema, s as workspaceParamsSchema, u as createPersonalTokenBodySchema, v as personParamsSchema, w as activityDays$1, x as locationDetailReportSchema, y as personalSpendReportSchema } from "./schema-Dyyi9oRc.js";
|
|
22
22
|
import { Hono } from "hono";
|
|
23
23
|
import path from "node:path";
|
|
24
24
|
import { z } from "zod";
|
|
@@ -147,6 +147,7 @@ async function requireConversationChildAgents(conversationId, options = {}) {
|
|
|
147
147
|
...canExposePayload ? {
|
|
148
148
|
...agent.agentName ? { name: agent.agentName } : void 0,
|
|
149
149
|
task: agent.task,
|
|
150
|
+
...agent.title ? { title: agent.title } : void 0,
|
|
150
151
|
...agent.errorMessage ? { error: agent.errorMessage } : void 0
|
|
151
152
|
} : { redacted: true }
|
|
152
153
|
}));
|
|
@@ -3387,7 +3388,7 @@ async function readPeoplePluginReports(args) {
|
|
|
3387
3388
|
reports: [],
|
|
3388
3389
|
source: "plugins"
|
|
3389
3390
|
});
|
|
3390
|
-
const { getPluginProfileReports } = await import("./agent-hooks-
|
|
3391
|
+
const { getPluginProfileReports } = await import("./agent-hooks-Cj_rSeWd.js").then((n) => n.t);
|
|
3391
3392
|
return pluginOperationalReportFeedSchema.parse({
|
|
3392
3393
|
generatedAt: new Date(nowMs).toISOString(),
|
|
3393
3394
|
reports: await getPluginProfileReports({
|
|
@@ -4355,7 +4356,7 @@ function readDescriptionText(home) {
|
|
|
4355
4356
|
}
|
|
4356
4357
|
/** Read discovered skill names for authenticated runtime diagnostics. */
|
|
4357
4358
|
async function readSkillReports() {
|
|
4358
|
-
const { discoverSkills } = await import("./skills-
|
|
4359
|
+
const { discoverSkills } = await import("./skills-DFduSvuO.js").then((n) => n.o);
|
|
4359
4360
|
const skills = await discoverSkills();
|
|
4360
4361
|
return skillReportsSchema.parse(skills.map((skill) => ({
|
|
4361
4362
|
name: skill.name,
|
|
@@ -4364,7 +4365,7 @@ async function readSkillReports() {
|
|
|
4364
4365
|
}
|
|
4365
4366
|
/** Read safe configured plugin metadata for authenticated runtime diagnostics. */
|
|
4366
4367
|
async function readPlugins() {
|
|
4367
|
-
const { pluginCatalogRuntime } = await import("./catalog-runtime-
|
|
4368
|
+
const { pluginCatalogRuntime } = await import("./catalog-runtime-CpxhLwZG.js").then((n) => n.t);
|
|
4368
4369
|
return pluginsSchema.parse(pluginCatalogRuntime.getProviders().map((plugin) => ({
|
|
4369
4370
|
configKeys: plugin.manifest.configKeys ?? [],
|
|
4370
4371
|
description: plugin.manifest.description,
|
|
@@ -4376,7 +4377,7 @@ async function readPlugins() {
|
|
|
4376
4377
|
async function readRuntimeInfoReport() {
|
|
4377
4378
|
const [{ homeDir }, { pluginCatalogRuntime }, plugins, skills] = await Promise.all([
|
|
4378
4379
|
import("./package-discovery-BVvSnQBB.js").then((n) => n.r),
|
|
4379
|
-
import("./catalog-runtime-
|
|
4380
|
+
import("./catalog-runtime-CpxhLwZG.js").then((n) => n.t),
|
|
4380
4381
|
readPlugins(),
|
|
4381
4382
|
readSkillReports()
|
|
4382
4383
|
]);
|
|
@@ -4393,7 +4394,7 @@ async function readRuntimeInfoReport() {
|
|
|
4393
4394
|
/** Read sanitized operational summaries contributed by plugins. */
|
|
4394
4395
|
async function readPluginOperationalReportFeed() {
|
|
4395
4396
|
const nowMs = Date.now();
|
|
4396
|
-
const { getPluginOperationalReports } = await import("./agent-hooks-
|
|
4397
|
+
const { getPluginOperationalReports } = await import("./agent-hooks-Cj_rSeWd.js").then((n) => n.t);
|
|
4397
4398
|
return pluginOperationalReportFeedSchema.parse({
|
|
4398
4399
|
source: "plugins",
|
|
4399
4400
|
generatedAt: new Date(nowMs).toISOString(),
|
package/dist/app.js
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { $t as resolveSandboxEgressProviderForHost, B as effectiveTaskOutcomes, Cn as setConfigDefaults, E as requestAttachmentDeletion, F as logScheduledAutomationRunSkipped, Ft as listActiveConversationIds, Gt as CONVERSATION_WORK_STALE_ENQUEUE_MS, I as scheduledAutomationRunAttributes, Mt as getConversation, Nt as getConversationWorkState, O as parseSlackThreadId, Pt as hasRunnableConversationWork, Sn as getConfigDefaults, Tt as clearExpiredConversationLease, U as recordSubagentEnded, Ut as stopConversationWork, Vt as requestConversationWork, Xt as renderTaskInput, Yt as isInvalidConversationRecordError, an as consumeSandboxEgressPermissionDeniedSignal, b as unpublishedArtifactHeaders, bt as appendAndEnqueueInboundMessage, c as deleteMcpAuthSessionsForUserProvider, cn as formatProviderLabel, dn as startOAuthFlow, dt as ingestEvent, en as normalizeSandboxEgressTracePropagationDomains, fn as createUserTokenStore, gt as eventGuidance, ht as getEventCatalog, i as executeCredentialedEgressRequest, in as consumeSandboxEgressAuthRequiredSignal, jt as ensureConversationWake, l as deleteMcpServerSessionId, n as executeAgentRun, nn as SANDBOX_EGRESS_PROXY_PATH, nt as listPendingAgentInvocationMailboxAppends, on as parseSandboxEgressCredentialToken, qt as hasRunnableConversationWork$1, rn as clearSandboxEgressSignals, rt as listPendingAgentInvocationResults, t as createAgentRunner, tn as shouldPropagateSandboxEgressTrace, u as deleteMcpStoredOAuthCredentials, ut as processWorkspaceSnapshotJob, v as publicArtifactHeaders, w as collectAttachmentGarbage, x as lookupSlackUserProfile, y as readPublicArtifact, zt as removeActiveConversation } from "./agent-runner-
|
|
2
|
-
import { C as withLogContext, O as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, S as withContext, d as logException, f as logInfo, j as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, p as logWarn, r as createRequestContext, v as setSpanAttributes, w as withSpan, y as setSpanStatus } from "./logging-
|
|
1
|
+
import { $t as resolveSandboxEgressProviderForHost, B as effectiveTaskOutcomes, Cn as setConfigDefaults, E as requestAttachmentDeletion, F as logScheduledAutomationRunSkipped, Ft as listActiveConversationIds, Gt as CONVERSATION_WORK_STALE_ENQUEUE_MS, I as scheduledAutomationRunAttributes, Mt as getConversation, Nt as getConversationWorkState, O as parseSlackThreadId, Pt as hasRunnableConversationWork, Sn as getConfigDefaults, Tt as clearExpiredConversationLease, U as recordSubagentEnded, Ut as stopConversationWork, Vt as requestConversationWork, Xt as renderTaskInput, Yt as isInvalidConversationRecordError, an as consumeSandboxEgressPermissionDeniedSignal, b as unpublishedArtifactHeaders, bt as appendAndEnqueueInboundMessage, c as deleteMcpAuthSessionsForUserProvider, cn as formatProviderLabel, dn as startOAuthFlow, dt as ingestEvent, en as normalizeSandboxEgressTracePropagationDomains, fn as createUserTokenStore, gt as eventGuidance, ht as getEventCatalog, i as executeCredentialedEgressRequest, in as consumeSandboxEgressAuthRequiredSignal, jt as ensureConversationWake, l as deleteMcpServerSessionId, n as executeAgentRun, nn as SANDBOX_EGRESS_PROXY_PATH, nt as listPendingAgentInvocationMailboxAppends, on as parseSandboxEgressCredentialToken, qt as hasRunnableConversationWork$1, rn as clearSandboxEgressSignals, rt as listPendingAgentInvocationResults, t as createAgentRunner, tn as shouldPropagateSandboxEgressTrace, u as deleteMcpStoredOAuthCredentials, ut as processWorkspaceSnapshotJob, v as publicArtifactHeaders, w as collectAttachmentGarbage, x as lookupSlackUserProfile, y as readPublicArtifact, zt as removeActiveConversation } from "./agent-runner-DtEtbaOb.js";
|
|
2
|
+
import { C as withLogContext, O as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, S as withContext, d as logException, f as logInfo, j as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, p as logWarn, r as createRequestContext, v as setSpanAttributes, w as withSpan, y as setSpanStatus } from "./logging-z7_w-KN_.js";
|
|
3
3
|
import { r as continueTrace } from "./sentry-CgWZM_kV.js";
|
|
4
|
-
import { t as JUNIOR_VERSION } from "./version-
|
|
5
|
-
import { _ as snapshotRuntimeConfig, d as restoreRuntimeConfig, f as setBotModelConfig, g as setSlackReactionConfig, h as setRuntimeLimits, i as getChatConfig, m as setProfiles, n as botConfig, o as getSlackBotToken, p as setCrossActorMidRunMode, u as resetRuntimeConfig } from "./config-
|
|
4
|
+
import { t as JUNIOR_VERSION } from "./version-DVCHJYcY.js";
|
|
5
|
+
import { _ as snapshotRuntimeConfig, d as restoreRuntimeConfig, f as setBotModelConfig, g as setSlackReactionConfig, h as setRuntimeLimits, i as getChatConfig, m as setProfiles, n as botConfig, o as getSlackBotToken, p as setCrossActorMidRunMode, u as resetRuntimeConfig } from "./config-q9xXVN_5.js";
|
|
6
6
|
import { _ as slackMessageTsSchema, d as parseSlackTeamId, f as parseSlackUserId, h as slackUserIdSchema, m as slackTeamIdSchema, o as parseActorUserId, p as slackChannelIdSchema } from "./actor-BTtLaeWy.js";
|
|
7
|
-
import { D as deleteProviderIdentityForSlackUser, c as getConversationEventStore, d as getDb, f as getSqlExecutor, g as withConversationMutationLock, m as withConversationEventLock, r as readActorIdentity, u as getConversationStore } from "./viewer-
|
|
8
|
-
import { a as juniorAgentInvocations, d as juniorDestinations, i as juniorAgentBindings, s as juniorConversations } from "./agent-invocations-
|
|
9
|
-
import { _ as juniorConversationEvents, a as juniorSchedulerRuns, m as juniorConversationBriefs, o as juniorSchedulerTasks } from "./executor-
|
|
10
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
11
|
-
import { Gt as settleConversationTitleWork, H as slackEntitySchema, Ht as projectConversationMessages, N as slackMention, U as slackExternalRefIdSchema, a as readScheduledAutomation, c as scheduledRunId, d as collectEventAutomationMatchKeys, h as findMatchingEventAutomations, l as withScheduledAutomationLock, n as listScheduledAutomations, r as listScheduledAutomationsForTeam, s as saveScheduledAutomationInLock, zt as appendConversationMessages } from "./tasks-
|
|
12
|
-
import { $ as verifySlackDirectCredentialSubject, At as listConversationAnnotations, Dt as resolveRootVisibility, G as findMatchingWatches, Gt as getWorkspaceTeamId, J as bindEventAutomationCredentialSubject, Kt as runWithWorkspaceTeamId, Q as verifyScheduledAutomationCredentialSubject, V as collectEventMatchKeys, Vt as isDmChannel, X as bindSlackDirectCredentialSubject, Y as bindScheduledAutomationCredentialSubject, Z as verifyEventAutomationCredentialSubject, a as getPluginRoutes, at as setDashboardConversationLinkOptions, d as setPlugins, f as validatePlugins, h as setBriefsConfig, i as getPluginApiRoutes, it as getDashboardTaskLink, lt as createPluginLogger, nt as getDashboardConversationLink, ot as createPluginState, q as takeDueTimerWatches, u as getPlugins, ut as readConversationAccessFromSql, z as cancelSubscriptions, zt as getSlackClient } from "./agent-hooks-
|
|
13
|
-
import { V as annotationCard } from "./conversation-
|
|
14
|
-
import { O as withLock$1, w as getStateAdapter } from "./profile-
|
|
15
|
-
import { c as getThreadStopDecision } from "./pending-auth-
|
|
7
|
+
import { D as deleteProviderIdentityForSlackUser, c as getConversationEventStore, d as getDb, f as getSqlExecutor, g as withConversationMutationLock, m as withConversationEventLock, r as readActorIdentity, u as getConversationStore } from "./viewer-BBnCMR1g.js";
|
|
8
|
+
import { a as juniorAgentInvocations, d as juniorDestinations, i as juniorAgentBindings, s as juniorConversations } from "./agent-invocations-BO6ddZax.js";
|
|
9
|
+
import { _ as juniorConversationEvents, a as juniorSchedulerRuns, m as juniorConversationBriefs, o as juniorSchedulerTasks } from "./executor-DA7eHhmC.js";
|
|
10
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-CpxhLwZG.js";
|
|
11
|
+
import { Gt as settleConversationTitleWork, H as slackEntitySchema, Ht as projectConversationMessages, N as slackMention, U as slackExternalRefIdSchema, a as readScheduledAutomation, c as scheduledRunId, d as collectEventAutomationMatchKeys, h as findMatchingEventAutomations, l as withScheduledAutomationLock, n as listScheduledAutomations, r as listScheduledAutomationsForTeam, s as saveScheduledAutomationInLock, zt as appendConversationMessages } from "./tasks-DBZAgTx7.js";
|
|
12
|
+
import { $ as verifySlackDirectCredentialSubject, At as listConversationAnnotations, Dt as resolveRootVisibility, G as findMatchingWatches, Gt as getWorkspaceTeamId, J as bindEventAutomationCredentialSubject, Kt as runWithWorkspaceTeamId, Q as verifyScheduledAutomationCredentialSubject, V as collectEventMatchKeys, Vt as isDmChannel, X as bindSlackDirectCredentialSubject, Y as bindScheduledAutomationCredentialSubject, Z as verifyEventAutomationCredentialSubject, a as getPluginRoutes, at as setDashboardConversationLinkOptions, d as setPlugins, f as validatePlugins, h as setBriefsConfig, i as getPluginApiRoutes, it as getDashboardTaskLink, lt as createPluginLogger, nt as getDashboardConversationLink, ot as createPluginState, q as takeDueTimerWatches, u as getPlugins, ut as readConversationAccessFromSql, z as cancelSubscriptions, zt as getSlackClient } from "./agent-hooks-Cj_rSeWd.js";
|
|
13
|
+
import { V as annotationCard } from "./conversation-BxvgH64Q.js";
|
|
14
|
+
import { O as withLock$1, w as getStateAdapter } from "./profile-yeKVNECl.js";
|
|
15
|
+
import { c as getThreadStopDecision } from "./pending-auth-OndKPW4M.js";
|
|
16
16
|
import { n as getNextRunAtMs } from "./cadence-D00SCzT1.js";
|
|
17
|
-
import { f as setSandboxResourceConfig, u as getSandboxResourceConfig } from "./resolve-
|
|
18
|
-
import { a as getVercelConversationWorkQueue, g as isConversationQueueMessageRejectedError, h as conversationQueueMessageSchema, i as verifyWorkspaceSnapshotJobMessage, o as resolveConversationWorkQueueTopic, s as verifyConversationQueueMessage, t as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC } from "./job-queue-
|
|
17
|
+
import { f as setSandboxResourceConfig, u as getSandboxResourceConfig } from "./resolve-4u5gEU04.js";
|
|
18
|
+
import { a as getVercelConversationWorkQueue, g as isConversationQueueMessageRejectedError, h as conversationQueueMessageSchema, i as verifyWorkspaceSnapshotJobMessage, o as resolveConversationWorkQueueTopic, s as verifyConversationQueueMessage, t as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC } from "./job-queue-mVyF9jgv.js";
|
|
19
19
|
import { D as scheduledRunSchema } from "./automation-gznOMaQ2.js";
|
|
20
20
|
import { i as setExperimentalFeatures, n as getExperimentalFeatures, r as isExperimentalFeatureEnabled } from "./experimental-Qn9rKLgx.js";
|
|
21
|
-
import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "./validation-
|
|
21
|
+
import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "./validation-DcsBjzdi.js";
|
|
22
22
|
import { a as pluginRuntimeRegistrationsFromPluginSet, n as pluginCatalogConfigFromEnv, r as pluginCatalogConfigFromPluginSet, t as defineJuniorPlugins } from "./plugins-egKWjgue.js";
|
|
23
|
-
import { A as withNormalizedThreadId, B as enqueueAgentDispatch, C as buildSlackInboundMessage, D as isSlackMessageStopped, E as verifySlackSignature, F as parseContent, I as renderSlackObjectCard, L as createVercelAttachmentStorage, N as THREAD_OPTOUT_ACK, O as stopSlackThread, P as startProcessingReaction, R as enqueueAgentInvocationResult, S as recordSkippedConversationMessage, T as runWithSlackInstallation, V as GET$3, a as recordWebConversationActivity, c as createProductionSlackWebhookServices, f as createSlackWebApiStatusSender, j as getAuthPausedConversationTurnId, k as normalizeIncomingSlackThreadId, l as getProductionSlackAdapter, n as conversationTurnIdForMessage, o as webActorFromEmail, s as createProductionConversationWorkOptions, t as appendAndEnqueueWebMessage, v as readViewerAutomationSummary, w as clearSlackPendingReactions } from "./web-input-
|
|
24
|
-
import { _ as markDispatchFailed, a as confirmDispatchMailboxAppend, d as getPluginDispatchProjection, f as isTerminalDispatchStatus, k as recordAutomationExecution, l as getDispatchRecord, o as createOrGetDispatch, p as listPendingDispatchMailboxAppends, s as getDispatchConversationId, t as processPluginTask, y as notifyAutomationBlocked } from "./task-runner-
|
|
25
|
-
import { r as enqueueAgentInvocation } from "./work-
|
|
26
|
-
import { s as coerceThreadConversationState } from "./thread-state-
|
|
27
|
-
import { a as GET$4, i as publishAppHomeView, r as GET$5, t as receiveLocalOAuthCredential } from "./credential-sync-
|
|
28
|
-
import { a as registerVercelPluginTaskDevConsumer, n as createVercelPluginTaskCallback, s as queueCallback } from "./task-queue-
|
|
29
|
-
import { t as processConversationWork } from "./worker-
|
|
30
|
-
import { t as bindSpawnAgent } from "./spawn-
|
|
23
|
+
import { A as withNormalizedThreadId, B as enqueueAgentDispatch, C as buildSlackInboundMessage, D as isSlackMessageStopped, E as verifySlackSignature, F as parseContent, I as renderSlackObjectCard, L as createVercelAttachmentStorage, N as THREAD_OPTOUT_ACK, O as stopSlackThread, P as startProcessingReaction, R as enqueueAgentInvocationResult, S as recordSkippedConversationMessage, T as runWithSlackInstallation, V as GET$3, a as recordWebConversationActivity, c as createProductionSlackWebhookServices, f as createSlackWebApiStatusSender, j as getAuthPausedConversationTurnId, k as normalizeIncomingSlackThreadId, l as getProductionSlackAdapter, n as conversationTurnIdForMessage, o as webActorFromEmail, s as createProductionConversationWorkOptions, t as appendAndEnqueueWebMessage, v as readViewerAutomationSummary, w as clearSlackPendingReactions } from "./web-input-CIsRGF07.js";
|
|
24
|
+
import { _ as markDispatchFailed, a as confirmDispatchMailboxAppend, d as getPluginDispatchProjection, f as isTerminalDispatchStatus, k as recordAutomationExecution, l as getDispatchRecord, o as createOrGetDispatch, p as listPendingDispatchMailboxAppends, s as getDispatchConversationId, t as processPluginTask, y as notifyAutomationBlocked } from "./task-runner-D4jvUpFV.js";
|
|
25
|
+
import { r as enqueueAgentInvocation } from "./work-fje9VXgQ.js";
|
|
26
|
+
import { s as coerceThreadConversationState } from "./thread-state-hj70P2Cp.js";
|
|
27
|
+
import { a as GET$4, i as publishAppHomeView, r as GET$5, t as receiveLocalOAuthCredential } from "./credential-sync-Bsn-6m16.js";
|
|
28
|
+
import { a as registerVercelPluginTaskDevConsumer, n as createVercelPluginTaskCallback, s as queueCallback } from "./task-queue-BQ0vnumm.js";
|
|
29
|
+
import { t as processConversationWork } from "./worker-Byd2Et9r.js";
|
|
30
|
+
import { t as bindSpawnAgent } from "./spawn-DYg7jhhR.js";
|
|
31
31
|
import { createRequire } from "node:module";
|
|
32
32
|
import { Hono } from "hono";
|
|
33
33
|
import { z } from "zod";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as completeObject } from "./client-
|
|
1
|
+
import { r as completeObject } from "./client-BVaGEb1-.js";
|
|
2
2
|
import { r as defaultModelId } from "./model-profile-BwU8mqwD.js";
|
|
3
|
-
import { B as parseBriefInput, I as briefCodeChangeSchema, d as conversationDetailReportSchema, p as conversationEventPageSchema } from "./conversation-
|
|
4
|
-
import { n as briefEntriesFromReportEvents, s as generateBrief, t as BRIEF_PROMPT } from "./prompt-
|
|
3
|
+
import { B as parseBriefInput, I as briefCodeChangeSchema, d as conversationDetailReportSchema, p as conversationEventPageSchema } from "./conversation-BxvgH64Q.js";
|
|
4
|
+
import { n as briefEntriesFromReportEvents, s as generateBrief, t as BRIEF_PROMPT } from "./prompt-CX36ZlbV.js";
|
|
5
5
|
import { CLI_USAGE } from "./cli/run.js";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import { z } from "zod";
|
|
@@ -269,7 +269,7 @@ async function parseRunOptions(argv) {
|
|
|
269
269
|
* `DATABASE_URL` at import, and `briefs pull` must work with only a token.
|
|
270
270
|
*/
|
|
271
271
|
async function configuredDefaultModelId() {
|
|
272
|
-
const { botConfig } = await import("./config-
|
|
272
|
+
const { botConfig } = await import("./config-q9xXVN_5.js").then((n) => n.r);
|
|
273
273
|
return defaultModelId(botConfig);
|
|
274
274
|
}
|
|
275
275
|
function apiUrl(baseUrl, pathname) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.js";
|
|
2
|
-
import { t as createPluginCatalogRuntime } from "./registry-
|
|
2
|
+
import { t as createPluginCatalogRuntime } from "./registry-DvzzL8-v.js";
|
|
3
3
|
//#region src/chat/plugins/catalog-runtime.ts
|
|
4
4
|
var catalog_runtime_exports = /* @__PURE__ */ __exportAll({ pluginCatalogRuntime: () => pluginCatalogRuntime });
|
|
5
5
|
const pluginCatalogRuntime = createPluginCatalogRuntime();
|