@sentry/junior 0.244.0 → 0.245.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.
Files changed (57) hide show
  1. package/dist/{admin-CF9lQg0M.js → admin-BEbNsG87.js} +1 -1
  2. package/dist/{agent-hooks-Cj_rSeWd.js → agent-hooks-Caa0Qh_Q.js} +10 -10
  3. package/dist/{agent-runner-DtEtbaOb.js → agent-runner-BEuPFbbv.js} +170 -52
  4. package/dist/api/schema.d.ts +64 -3
  5. package/dist/api/schema.js +2 -2
  6. package/dist/api.js +314 -245
  7. package/dist/{app-DRLh-8zs.d.ts → app-BYB7szGb.d.ts} +2 -0
  8. package/dist/app.d.ts +1 -1
  9. package/dist/app.js +171 -104
  10. package/dist/{briefs-BMzTiGJO.js → briefs-DFAh_jTW.js} +4 -4
  11. package/dist/{catalog-runtime-CpxhLwZG.js → catalog-runtime-wmq_fqff.js} +1 -1
  12. package/dist/cli/chat.js +12 -12
  13. package/dist/cli/check.js +3 -3
  14. package/dist/cli/main.js +2 -2
  15. package/dist/cli/plugins.js +4 -4
  16. package/dist/cli/snapshot-create.js +3 -3
  17. package/dist/cli/upgrade.js +3 -3
  18. package/dist/{client-BVaGEb1-.js → client-Bn9SRFCi.js} +2 -2
  19. package/dist/{config-q9xXVN_5.js → config-_XAINZMN.js} +11 -2
  20. package/dist/{conversation-BxvgH64Q.js → conversation-CvBG57Io.js} +11 -1
  21. package/dist/{conversation-privacy-Dyh_63Ee.js → conversation-privacy-BN5SGxsF.js} +1 -1
  22. package/dist/{credential-sync-Bsn-6m16.js → credential-sync-BvaUm6HQ.js} +14 -14
  23. package/dist/{executor-DA7eHhmC.js → executor-CFIqoCNJ.js} +2 -2
  24. package/dist/{images-CvMreau5.js → images-Ci43I3ek.js} +3 -3
  25. package/dist/instrumentation.js +2 -2
  26. package/dist/{job-queue-mVyF9jgv.js → job-queue-CGicV7x6.js} +1 -1
  27. package/dist/{logging-z7_w-KN_.js → logging-Bs3dV81s.js} +1 -1
  28. package/dist/nitro.d.ts +1 -1
  29. package/dist/nitro.js +3 -3
  30. package/dist/{oauth-authorization-Db1yGVvG.js → oauth-authorization-COzWmMjO.js} +1 -1
  31. package/dist/{oauth-callback-server-_MfOtSxS.js → oauth-callback-server-17c9_39v.js} +2 -2
  32. package/dist/{pending-auth-OndKPW4M.js → pending-auth-Bnhg7Q9k.js} +2 -2
  33. package/dist/{profile-yeKVNECl.js → profile-BA471c-l.js} +4 -4
  34. package/dist/{prompt-CX36ZlbV.js → prompt-C9Q9cjD3.js} +1 -1
  35. package/dist/{registry-DvzzL8-v.js → registry-BYNOFO6e.js} +1 -1
  36. package/dist/{resolve-4u5gEU04.js → resolve-rpz8No2i.js} +2 -2
  37. package/dist/{runner-Y6A6pww4.js → runner-C8DRk9X6.js} +10 -10
  38. package/dist/{sandbox-egress-signals-D7AOkuoe.js → sandbox-egress-signals-B8hurjFt.js} +1 -1
  39. package/dist/{schema-Dyyi9oRc.js → schema-WRgR9EL6.js} +7 -3
  40. package/dist/{skills-DFduSvuO.js → skills-C4yrD2NR.js} +2 -2
  41. package/dist/{spawn-DYg7jhhR.js → spawn-CdAaTXrY.js} +2 -2
  42. package/dist/{task-queue-BQ0vnumm.js → task-queue-BBxHzlIB.js} +3 -3
  43. package/dist/{task-runner-D4jvUpFV.js → task-runner-BqFapTjs.js} +10 -10
  44. package/dist/{tasks-DBZAgTx7.js → tasks-Ddd7OAkp.js} +82 -11
  45. package/dist/{thread-state-hj70P2Cp.js → thread-state-DqErwbA8.js} +6 -6
  46. package/dist/{turn-failure-response-S2pwtR8b.js → turn-failure-response-DtL1-fOl.js} +9 -9
  47. package/dist/{turn-lifecycle-CNFOMAJq.js → turn-lifecycle-B5pzyD6W.js} +1 -1
  48. package/dist/{turn-session-routing-1eTgv6ns.js → turn-session-routing-D6pTU5uF.js} +1 -1
  49. package/dist/{validation-DcsBjzdi.js → validation-BAzlyNIc.js} +1 -1
  50. package/dist/{version-DVCHJYcY.js → version-CiXDH3oe.js} +1 -1
  51. package/dist/version.js +1 -1
  52. package/dist/{viewer-BBnCMR1g.js → viewer-wCn8xneI.js} +3 -3
  53. package/dist/{web-authorization-CTltRLsB.js → web-authorization-d5MtGpfG.js} +6 -6
  54. package/dist/{web-input-CIsRGF07.js → web-input-BZTiCtvP.js} +69 -46
  55. package/dist/{work-fje9VXgQ.js → work-4QPqTd5_.js} +6 -6
  56. package/dist/{worker-Byd2Et9r.js → worker-mc62tybz.js} +5 -5
  57. package/package.json +5 -5
@@ -1,4 +1,4 @@
1
- import { a as setUserAdminFromSql, d as getDb, n as listAdminUsersFromSql } from "./viewer-BBnCMR1g.js";
1
+ import { a as setUserAdminFromSql, d as getDb, n as listAdminUsersFromSql } from "./viewer-wCn8xneI.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-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";
2
+ import { a as embedTexts, r as completeObject } from "./client-Bn9SRFCi.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-Bs3dV81s.js";
4
4
  import { a as getClient$1 } from "./sentry-CgWZM_kV.js";
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";
5
+ import { t as canExposeConversationPayload } from "./conversation-privacy-BN5SGxsF.js";
6
+ import { i as getChatConfig, n as botConfig, o as getSlackBotToken } from "./config-_XAINZMN.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-BBnCMR1g.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-wCn8xneI.js";
10
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";
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-CFIqoCNJ.js";
12
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";
13
+ import { p as credentialSubjectSchema } from "./registry-BYNOFO6e.js";
14
+ import { B as conversationBriefSchema, C as conversationReportEventSchema, G as readMessageCardRefs, P as readMessageAttachments, V as parseBriefInput } from "./conversation-CvBG57Io.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-BA471c-l.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-CX36ZlbV.js";
17
+ import { n as briefEntriesFromReportEvents, s as generateBrief, t as BRIEF_PROMPT } from "./prompt-C9Q9cjD3.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";
@@ -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-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";
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-Bn9SRFCi.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-Bs3dV81s.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-Dyh_63Ee.js";
5
- import { i as getChatConfig, n as botConfig, v as normalizeSlackEmojiName } from "./config-q9xXVN_5.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-BN5SGxsF.js";
5
+ import { i as getChatConfig, n as botConfig, v as normalizeSlackEmojiName } from "./config-_XAINZMN.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-BBnCMR1g.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-wCn8xneI.js";
9
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";
10
+ import { C as juniorArtifacts, S as juniorAttachments, a as juniorSchedulerRuns, l as juniorStats, m as juniorConversationBriefs, y as juniorConversationAnnotations } from "./executor-CFIqoCNJ.js";
11
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-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";
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-BYNOFO6e.js";
14
+ import { n as pluginCatalogRuntime } from "./catalog-runtime-wmq_fqff.js";
15
+ import { a as parseSkillInvocation, i as parseSkillFile, n as findSkillByName, r as loadSkillsByName, t as discoverSkills } from "./skills-C4yrD2NR.js";
16
+ import { At as openConversationProjection, B as postSlackEphemeralMessage, Bt as recordTurnRoute, Et as loadLastModelProfile, F as slackMention, Ft as recordAuthorizationRequested, It as recordGuardianActionReviewed, J as saveTurnCheckpoint, Jt as fallbackShortTitle, K as continuableMessages, L as addReactionToMessage, Lt as recordMcpProviderConnected, M as formatSlackLink, Mt as recordAttachmentsDelivered, R as getSlackMessagePermalink, Tt as loadConversationProjection, U as uploadFilesToConversation, V as postSlackMessage, Yt as resolveTaskTitle, _t as retainRuntimeTurnContext, a as readScheduledAutomation, at as isTurnExecutionLimitExceededError, b as saveEventAutomation, bt as TURN_CONTEXT_TAG, cn as getAgentContextCompactionTriggerTokens, ct as getTerminalAssistantMessages, dn as piMessageFromHistoryItem, f as createEventAutomation, ft as isAssistantMessage, g as getEventAutomation, gt as normalizeToolNameFromResult, ht as isToolResultMessage, j as escapeSlackMrkdwnText, jt as recordAgentsInstructionsUpdated, k as automationRevision, kt as loadTurnRoute, ln as getAgentContextInputLimitTokens, lt as getUserMessageInstructionText, mt as isToolResultError, nt as TurnSliceLimitExceededError, o as saveScheduledAutomation, ot as extractAssistantText, p as deleteEventAutomation, pt as isContinuablePiBoundary, q as loadTurnCheckpoint, r as listScheduledAutomationsForTeam, rt as assertTurnToolCallLimit, sn as estimateTextTokens, st as getPiMessageRole, t as createScheduledAutomation, un as historyItemFromPiMessage, ut as hasRuntimeTurnContext, v as listEventAutomationsForTeam, vt as stripRuntimeTurnContext, wt as loadConnectedMcpProviders, x as setEventAutomationStatus, xt as ToolInputError, yt as trimTrailingAssistantMessages, z as openSlackDirectMessage, zt as recordToolExecutionStarted } from "./tasks-Ddd7OAkp.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-Caa0Qh_Q.js";
18
+ import { B as conversationBriefSchema, I as isVisionImageMediaType, K as removedCardSchema, R as briefLinkSchema, z as briefOutcomeStatusSchema } from "./conversation-CvBG57Io.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-BA471c-l.js";
20
+ import { n as canReusePendingAuthLink, t as abandonReplacedPendingAuth } from "./pending-auth-Bnhg7Q9k.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-COzWmMjO.js";
22
22
  import { i as isValidTimeZone, r as getZonedDateTimeParts } from "./cadence-D00SCzT1.js";
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";
23
+ import { r as EVENT_AUTHOR_ID } from "./prompt-C9Q9cjD3.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-rpz8No2i.js";
25
+ import { a as getVercelConversationWorkQueue, f as getTurnRequestDeadline, n as sendNextWorkspaceSnapshotJob, r as sendWorkspaceSnapshotJob } from "./job-queue-CGicV7x6.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";
@@ -5154,22 +5154,14 @@ function hasEventCatalogEntries(catalog) {
5154
5154
  return Object.keys(catalog).length > 0;
5155
5155
  }
5156
5156
  /**
5157
- * True when at least one plugin namespace is enabled.
5158
- *
5159
- * Core Workspace snapshot events stay in the catalog for search and temporary
5160
- * watches. Durable event automations still require a plugin publisher.
5161
- */
5162
- function hasPluginEventCatalogEntries(catalog) {
5163
- return Object.keys(pluginEventCatalog(catalog)).length > 0;
5164
- }
5165
- /**
5166
5157
  * Catalog entries that durable event automations may select.
5167
5158
  *
5168
5159
  * Core Workspace snapshot events only wake temporary watches. Snapshot finish
5169
5160
  * does not run event-automation ingest, so those namespaces stay out of create/update
5170
- * schemas and trigger availability.
5161
+ * schemas and trigger availability. The core `slack` namespace stays in: Slack
5162
+ * ingress runs event-automation ingest for channel messages.
5171
5163
  */
5172
- function pluginEventCatalog(catalog) {
5164
+ function automationEventCatalog(catalog) {
5173
5165
  return Object.fromEntries(Object.entries(catalog).filter(([namespace]) => namespace !== CORE_EVENT_NAMESPACE));
5174
5166
  }
5175
5167
  function enumSchema(values, unavailableMessage) {
@@ -5301,23 +5293,100 @@ function workspaceSnapshotFinishedEvent(input) {
5301
5293
  return event;
5302
5294
  }
5303
5295
  //#endregion
5296
+ //#region src/chat/slack/channel-message-events.ts
5297
+ /** Core-owned event namespace for Slack Events. Not a plugin publisher. */
5298
+ const SLACK_EVENT_NAMESPACE = "slack";
5299
+ /** The trigger identifier that names the channel of the automation. */
5300
+ const SLACK_CURRENT_CHANNEL_IDENTIFIER = "current_channel";
5301
+ const CHANNEL_RESOURCE_TYPE = "channel";
5302
+ const MESSAGE_POSTED_EVENT = "message.posted";
5303
+ const CHANNEL_ID_PATTERN = /^[CG][A-Z0-9]{2,}$/;
5304
+ /** Event registration for new top-level Slack channel messages. */
5305
+ function slackChannelMessageEvents() {
5306
+ return { resourceTypes: [{
5307
+ type: CHANNEL_RESOURCE_TYPE,
5308
+ identifier: {
5309
+ format: `"${SLACK_CURRENT_CHANNEL_IDENTIFIER}" for the channel where the automation is created`,
5310
+ pattern: /^(?:current_channel|[CG][A-Z0-9]{2,})$/
5311
+ },
5312
+ supportedEvents: [MESSAGE_POSTED_EVENT],
5313
+ suggestedEvents: [],
5314
+ guidance: { [MESSAGE_POSTED_EVENT]: "A person posted a new top-level message in this channel. A reply goes in that message's thread. If the instructions do not apply to this message, end with no action." }
5315
+ }] };
5316
+ }
5317
+ /**
5318
+ * Bind a Slack channel-message automation to its own channel.
5319
+ *
5320
+ * Resolve `current_channel` to the destination channel and reject other
5321
+ * channels, so private channel text cannot reach another channel.
5322
+ */
5323
+ function requireSlackChannelMessageScope(automation) {
5324
+ if (automation.trigger.namespace !== "slack") return automation;
5325
+ const channelId = automation.destination.channelId;
5326
+ if (!CHANNEL_ID_PATTERN.test(channelId)) throw new ToolInputError("A Slack channel-message automation works only in a channel, not in a DM.");
5327
+ const identifier = automation.trigger.identifier === "current_channel" ? channelId : automation.trigger.identifier;
5328
+ if (identifier !== channelId) throw new ToolInputError(`A Slack channel-message automation can watch only the channel where it posts. Use identifier "${SLACK_CURRENT_CHANNEL_IDENTIFIER}", or create the automation in the channel to watch.`);
5329
+ return {
5330
+ ...automation,
5331
+ credentialMode: "system",
5332
+ trigger: {
5333
+ ...automation.trigger,
5334
+ identifier
5335
+ }
5336
+ };
5337
+ }
5338
+ /**
5339
+ * Build the Event for one new top-level channel message, or nothing.
5340
+ *
5341
+ * Thread replies and bot posts, including Slackbot, do not count. Bots can
5342
+ * post often and use up the run limit of the automation.
5343
+ */
5344
+ function slackChannelMessageEvent(input) {
5345
+ if (input.botId || input.subtype === "bot_message" || input.userId === "USLACKBOT") return;
5346
+ if (input.threadTs && input.threadTs !== input.ts) return void 0;
5347
+ if (!CHANNEL_ID_PATTERN.test(input.channelId)) return void 0;
5348
+ return {
5349
+ eventKey: `${input.channelId}:${input.ts}`,
5350
+ eventType: MESSAGE_POSTED_EVENT,
5351
+ identifier: input.channelId,
5352
+ occurredAtMs: Math.floor(Number(input.ts) * 1e3),
5353
+ trustedSummary: `<@${input.userId}> posted a new message in <#${input.channelId}>.`,
5354
+ data: {
5355
+ channelId: input.channelId,
5356
+ messageTs: input.ts,
5357
+ userId: input.userId
5358
+ },
5359
+ ...input.text?.trim() ? { untrustedText: input.text } : void 0
5360
+ };
5361
+ }
5362
+ /** Return the source message thread for a channel-message run. */
5363
+ function slackChannelMessageReplyThreadTs(event) {
5364
+ if (event.namespace !== "slack") return void 0;
5365
+ const messageTs = event.data?.messageTs;
5366
+ return typeof messageTs === "string" ? messageTs : void 0;
5367
+ }
5368
+ //#endregion
5304
5369
  //#region src/chat/events/runtime-catalog.ts
5305
5370
  /**
5306
5371
  * Enabled event registrations for search, guidance, and tool schemas.
5307
5372
  *
5308
- * Includes core Workspace snapshot events under the `junior` namespace, plus
5309
- * every enabled plugin registration. Plugins may not use the `junior` namespace.
5373
+ * Includes core Workspace snapshot events under the `junior` namespace, Slack
5374
+ * channel-message events under the `slack` namespace, plus every enabled plugin
5375
+ * registration. Plugins may not use the `junior` or `slack` namespaces.
5310
5376
  */
5311
5377
  function getEventCatalog() {
5312
- const catalog = { [CORE_EVENT_NAMESPACE]: { resourceTypes: [...workspaceSnapshotEvents().resourceTypes, {
5313
- type: "timer",
5314
- supportedEvents: ["timer.fired"],
5315
- suggestedEvents: []
5316
- }] } };
5378
+ const catalog = {
5379
+ [CORE_EVENT_NAMESPACE]: { resourceTypes: [...workspaceSnapshotEvents().resourceTypes, {
5380
+ type: "timer",
5381
+ supportedEvents: ["timer.fired"],
5382
+ suggestedEvents: []
5383
+ }] },
5384
+ [SLACK_EVENT_NAMESPACE]: slackChannelMessageEvents()
5385
+ };
5317
5386
  for (const plugin of getPlugins()) {
5318
5387
  const registration = plugin.events;
5319
5388
  if (!registration || registration.isEnabled?.() === false) continue;
5320
- if (plugin.manifest.name === "junior") throw new Error(`Plugin "${CORE_EVENT_NAMESPACE}" cannot register events; that namespace is reserved for core events`);
5389
+ if (plugin.manifest.name === "junior" || plugin.manifest.name === "slack") throw new Error(`Plugin "${plugin.manifest.name}" cannot register events; that namespace is reserved for core events`);
5321
5390
  catalog[plugin.manifest.name] = registration;
5322
5391
  }
5323
5392
  return catalog;
@@ -9804,6 +9873,18 @@ async function getLatestAgentInvocationForConversation(childConversationId) {
9804
9873
  const rows = await getSqlExecutor().db().select().from(juniorAgentInvocations).where(eq(juniorAgentInvocations.childConversationId, childConversationId)).orderBy(desc(juniorAgentInvocations.createdAt)).limit(1);
9805
9874
  return rows[0] ? invocationFromRow(rows[0]) : void 0;
9806
9875
  }
9876
+ /**
9877
+ * Read the name and the newest task title of one child Conversation, for
9878
+ * labels. Agent invocations that give a nested result to the child have no
9879
+ * title, so an agent invocation with a title comes first.
9880
+ */
9881
+ async function getChildAgentLabel(childConversationId) {
9882
+ const [row] = await getSqlExecutor().db().select({
9883
+ agentName: juniorAgentInvocations.agentName,
9884
+ title: juniorAgentInvocations.title
9885
+ }).from(juniorAgentInvocations).where(eq(juniorAgentInvocations.childConversationId, childConversationId)).orderBy(sql`${juniorAgentInvocations.title} is null`, desc(juniorAgentInvocations.createdAt)).limit(1);
9886
+ return row;
9887
+ }
9807
9888
  /** Bound the agent invocations that one child agent listing reads. */
9808
9889
  const CHILD_AGENT_LIST_INVOCATION_LIMIT = 200;
9809
9890
  /** Return the child state that one child's agent invocations show. */
@@ -10169,18 +10250,33 @@ function createSpawnAgentTool(spawnAgent) {
10169
10250
  //#endregion
10170
10251
  //#region src/chat/agent-invocations/markers.ts
10171
10252
  /**
10172
- * Dashboard markers for agent invocations. The parent Conversation gets one
10253
+ * Dashboard records for agent invocations. The parent Conversation gets one
10173
10254
  * `subagent_started` and one `subagent_ended` event for each agent invocation.
10255
+ * The child Conversation gets `message` events for its input and its result,
10256
+ * because a child has no Location that records visible messages.
10174
10257
  */
10175
10258
  const SUBAGENT_KIND = "agent";
10176
10259
  /**
10177
- * Record in the parent Conversation that one agent invocation started. The
10178
- * dashboard pairs this event with `subagent_ended` to show the child and its
10260
+ * Record in the parent Conversation that one agent invocation started, and
10261
+ * record its input as a user message in the child Conversation. The dashboard
10262
+ * pairs the parent event with `subagent_ended` to show the child and its
10179
10263
  * status. It must be written before the child mailbox append, so the child
10180
10264
  * cannot end first.
10181
10265
  */
10182
10266
  async function recordSubagentStarted(invocation) {
10183
- await getConversationEventStore().append(invocation.parentConversationId, [{
10267
+ const eventStore = getConversationEventStore();
10268
+ const messageId = getAgentInvocationMessageId(invocation.invocationId);
10269
+ await eventStore.append(invocation.childConversationId, [{
10270
+ idempotencyKey: `message:${messageId}`,
10271
+ data: {
10272
+ type: "message",
10273
+ messageId,
10274
+ role: "user",
10275
+ text: invocation.input
10276
+ },
10277
+ createdAtMs: invocation.createdAtMs
10278
+ }]);
10279
+ await eventStore.append(invocation.parentConversationId, [{
10184
10280
  idempotencyKey: `subagent_started:${invocation.invocationId}`,
10185
10281
  data: {
10186
10282
  type: "subagent_started",
@@ -10205,12 +10301,14 @@ const SUBAGENT_OUTCOMES = {
10205
10301
  stopped: "aborted"
10206
10302
  };
10207
10303
  /**
10208
- * Record in the parent Conversation how one agent invocation ended. The
10304
+ * Record in the parent Conversation how one agent invocation ended, and record
10305
+ * a completed result as an assistant message in the child Conversation. The
10209
10306
  * heartbeat result repair also calls this, because the child work can be
10210
10307
  * acknowledged before the worker reports the result.
10211
10308
  */
10212
10309
  async function recordSubagentEnded(invocation) {
10213
- await getConversationEventStore().append(invocation.parentConversationId, [{
10310
+ const eventStore = getConversationEventStore();
10311
+ await eventStore.append(invocation.parentConversationId, [{
10214
10312
  idempotencyKey: `subagent_ended:${invocation.invocationId}`,
10215
10313
  data: {
10216
10314
  type: "subagent_ended",
@@ -10219,6 +10317,19 @@ async function recordSubagentEnded(invocation) {
10219
10317
  },
10220
10318
  createdAtMs: invocation.terminalAtMs
10221
10319
  }]);
10320
+ const result = invocation.status === "completed" ? invocation.result.trim() : "";
10321
+ if (!result) return;
10322
+ const messageId = `agent-invocation:${invocation.invocationId}:reply`;
10323
+ await eventStore.append(invocation.childConversationId, [{
10324
+ idempotencyKey: `message:${messageId}`,
10325
+ data: {
10326
+ type: "message",
10327
+ messageId,
10328
+ role: "assistant",
10329
+ text: result
10330
+ },
10331
+ createdAtMs: invocation.terminalAtMs
10332
+ }]);
10222
10333
  }
10223
10334
  //#endregion
10224
10335
  //#region src/chat/agent-invocations/stop.ts
@@ -10592,6 +10703,7 @@ function createWatchEventsTool(context, catalog) {
10592
10703
  outputSchema: outputSchema$2,
10593
10704
  async execute(input) {
10594
10705
  if (input.namespace === "junior" && input.resourceType === "timer") throw new ToolInputError("Use watchTimer to create a timer Watch.");
10706
+ if (input.namespace === "slack") throw new ToolInputError("Slack channel messages can trigger only an event automation in that channel. Use createEventAutomation.");
10595
10707
  const events = cleanStrings(input.events);
10596
10708
  for (const eventType of events) if (!pluginSupportsEvent(catalog, input.namespace, input.resourceType, eventType)) throw new ToolInputError(`Resource type "${input.namespace}:${input.resourceType}" does not support event "${eventType}".`);
10597
10709
  const intent = input.intent.trim();
@@ -10756,7 +10868,7 @@ const eventAutomationListToolResultSchema = juniorToolOutputSchema.extend({
10756
10868
  }).strict();
10757
10869
  /** Build the validated event trigger accepted by event-automation tools. */
10758
10870
  function registeredEventAutomationTriggerSchema(catalog) {
10759
- const plugins = pluginEventCatalog(catalog);
10871
+ const plugins = automationEventCatalog(catalog);
10760
10872
  return z.object({
10761
10873
  namespace: eventNamespaceSchema(plugins),
10762
10874
  identifier: z.string().trim().min(1).max(300),
@@ -10768,7 +10880,7 @@ function registeredEventAutomationTriggerSchema(catalog) {
10768
10880
  }
10769
10881
  /** Reject an event-automation trigger that is no longer supported by the catalog. */
10770
10882
  function requireSupportedEventAutomationTrigger(catalog, trigger) {
10771
- const plugins = pluginEventCatalog(catalog);
10883
+ const plugins = automationEventCatalog(catalog);
10772
10884
  for (const eventType of trigger.events) if (!pluginSupportsEvent(plugins, trigger.namespace, trigger.resourceType, eventType)) throw new ToolInputError(`Resource type "${trigger.namespace}:${trigger.resourceType}" does not support event "${eventType}".`);
10773
10885
  return requireSupportedEventMatch(plugins, {
10774
10886
  match: trigger.match,
@@ -10810,7 +10922,7 @@ async function writableEventAutomation(context, id) {
10810
10922
  return task;
10811
10923
  }
10812
10924
  function eventAutomationTriggerAvailable(task, catalog) {
10813
- const registration = pluginEventCatalog(catalog)[task.trigger.namespace];
10925
+ const registration = automationEventCatalog(catalog)[task.trigger.namespace];
10814
10926
  return Boolean(registration && task.trigger.events.every((eventType) => registration.resourceTypes.some((resourceType) => resourceType.supportedEvents.includes(eventType))));
10815
10927
  }
10816
10928
  /** Project an event automation into the bounded tool-result shape. */
@@ -10934,7 +11046,7 @@ function createEventAutomationTool(context, catalog) {
10934
11046
  instruction: input.instruction,
10935
11047
  title: input.title
10936
11048
  });
10937
- const task = {
11049
+ const task = requireSlackChannelMessageScope({
10938
11050
  id,
10939
11051
  destinationVisibility: source.visibility,
10940
11052
  createdAtMs: Date.now(),
@@ -10956,7 +11068,7 @@ function createEventAutomationTool(context, catalog) {
10956
11068
  events: [...new Set(input.trigger.events)],
10957
11069
  ...match ? { match } : void 0
10958
11070
  }
10959
- };
11071
+ });
10960
11072
  return eventAutomationToolResult(context.conversationId, await createEventAutomation(db, task), catalog, actor.userId);
10961
11073
  }
10962
11074
  });
@@ -11088,11 +11200,17 @@ async function editEventAutomation(current, input, isCreator, catalog) {
11088
11200
  };
11089
11201
  }
11090
11202
  const changesExecution = input.instruction !== void 0 && input.instruction !== current.task.text || changesEventAutomationTrigger(current.trigger, trigger);
11091
- return {
11203
+ const next = {
11092
11204
  ...current,
11093
11205
  ...await editAutomationFields(current, input, isCreator, changesExecution),
11094
11206
  trigger
11095
11207
  };
11208
+ try {
11209
+ return requireSlackChannelMessageScope(next);
11210
+ } catch (error) {
11211
+ if (error instanceof ToolInputError) throw new AutomationEditError(error.message, "trigger");
11212
+ throw error;
11213
+ }
11096
11214
  }
11097
11215
  //#endregion
11098
11216
  //#region src/chat/tools/update-event-automation.ts
@@ -11165,7 +11283,7 @@ function createUpdateEventAutomationTool(context, catalog) {
11165
11283
  function createEventAutomationTools(context, catalog) {
11166
11284
  if (context.source.kind !== "slack" || context.destination.platform !== "slack" || context.actor?.platform !== "slack") return {};
11167
11285
  return {
11168
- ...hasPluginEventCatalogEntries(catalog) ? { createEventAutomation: createEventAutomationTool(context, catalog) } : void 0,
11286
+ createEventAutomation: createEventAutomationTool(context, catalog),
11169
11287
  listEventAutomations: createListEventAutomationsTool(context, catalog),
11170
11288
  updateEventAutomation: createUpdateEventAutomationTool(context, catalog),
11171
11289
  deleteEventAutomation: createDeleteEventAutomationTool(context, catalog)
@@ -21605,7 +21723,7 @@ function createAgentRunner(execute, options) {
21605
21723
  } } : void 0
21606
21724
  };
21607
21725
  if (run.instruction.storedAttachments?.length) {
21608
- const { loadInputImages } = await import("./images-CvMreau5.js").then((n) => n.n);
21726
+ const { loadInputImages } = await import("./images-Ci43I3ek.js").then((n) => n.n);
21609
21727
  const storage = nextRun.environment?.attachmentStorage;
21610
21728
  if (!storage) throw new Error("Attachment storage is unavailable.");
21611
21729
  nextRun.instruction = {
@@ -21621,4 +21739,4 @@ function createAgentRunner(execute, options) {
21621
21739
  } };
21622
21740
  }
21623
21741
  //#endregion
21624
- export { getLatestAgentInvocationForConversation as $, resolveSandboxEgressProviderForHost as $t, resolveSlackChannelIdFromMessage as A, drainConversationMailbox as At, effectiveTaskOutcomes as B, requestAnotherSlice as Bt, renderBlockText as C, setConfigDefaults as Cn, checkInConversationWork as Ct, storeAttachment as D, completeConversationWork as Dt, requestAttachmentDeletion as E, completeConversationStop as Et, logScheduledAutomationRunSkipped as F, listActiveConversationIds as Ft, completeAgentInvocation as G, CONVERSATION_WORK_STALE_ENQUEUE_MS as Gt, stopChildAgentsOf as H, startConversationWork as Ht, scheduledAutomationRunAttributes as I, recordAttemptFailure as It, getActiveAgentInvocationForConversation as J, isFinalAttempt as Jt, createAgentInvocation as K, hasConversationStop as Kt, editEventAutomation as L, recordConversationRetry as Lt, getConversationInfo as M, getConversation as Mt, listThreadReplies as N, getConversationWorkState as Nt, parseSlackThreadId as O, countPendingConversationMessages as Ot, editScheduledAutomation as P, hasRunnableConversationWork as Pt, getAgentInvocationTurnId as Q, recordFinishedTurnForAutomatedLimit as Qt, AutomationEditError as R, releaseConversationWork as Rt, renderAttachmentText as S, getConfigDefaults as Sn, cancelHumanFacingPendingMessages as St, readLiveAttachment as T, clearExpiredConversationLease as Tt, recordSubagentEnded as U, stopConversationWork as Ut, resolveTaskOutcomes as V, requestConversationWork as Vt, recordSubagentStarted as W, CONVERSATION_WORK_CHECK_IN_INTERVAL_MS as Wt, getAgentInvocationMessageId as X, renderTaskInput as Xt, getAgentInvocation as Y, isInvalidConversationRecordError as Yt, getAgentInvocationResultMessageId as Z, maybePostAutomatedTurnLimitNotice as Zt, resolvePluginOAuthAccount as _, AuthorizationFlowDisabledError as _n, pluginEventCatalog as _t, buildAuthPauseResponse as a, consumeSandboxEgressPermissionDeniedSignal as an, markAgentInvocationParentMailboxAppended as at, unpublishedArtifactHeaders as b, runDispatchOutcome as bn, appendAndEnqueueInboundMessage as bt, deleteMcpAuthSessionsForUserProvider as c, formatProviderLabel as cn, reportReplacedAgentInvocation as ct, getMcpAuthSession as d, startOAuthFlow as dn, ingestEvent as dt, normalizeSandboxEgressTracePropagationDomains as en, isTerminalAgentInvocation as et, getMcpStoredOAuthCredentials as f, createUserTokenStore as fn, EVENT_WAIT_MS as ft, readStats as g, toolInvocationDestination as gn, eventGuidance as gt, latestProgressStatus as h, actorFromRun as hn, getEventCatalog as ht, executeCredentialedEgressRequest as i, consumeSandboxEgressAuthRequiredSignal as in, markAgentInvocationMailboxAppended as it, resolveSlackChannelIdFromThreadId as j, ensureConversationWake as jt, readSlackRawMessageContext as k, deadLetterAttempt as kt, deleteMcpServerSessionId as l, parseOAuthStatePayload as ln, getMcpProviderErrorAttributes as lt, PluginCredentialFailureError as m, RetryableDeliveryError as mn, timerWatchCredentialSubject as mt, executeAgentRun as n, SANDBOX_EGRESS_PROXY_PATH as nn, listPendingAgentInvocationMailboxAppends as nt, finalizeMcpAuthorization as o, parseSandboxEgressCredentialToken as on, markAgentInvocationPaused as ot, putMcpStoredOAuthCredentials as p, buildSteeringPiMessage as pn, isEventMailboxMetadata as pt, createAgentInvocationForResult as q, hasRunnableConversationWork$1 as qt, createContextCompactor as r, clearSandboxEgressSignals as rn, listPendingAgentInvocationResults as rt, deleteMcpAuthSession as s, sandboxEgressSignalsResponseSchema as sn, markAgentInvocationRunning as st, createAgentRunner as t, shouldPropagateSandboxEgressTrace as tn, listChildAgents as tt, deleteMcpStoredOAuthCredentials as u, resolveBaseUrl as un, processWorkspaceSnapshotJob as ut, publicArtifactHeaders as v, deliversFinalText as vn, ackMessages as vt, collectAttachmentGarbage as w, clearConsumedConversationWake as wt, lookupSlackUserProfile as x, shouldEmitDevAgentTrace as xn, beginConversationResume as xt, readPublicArtifact as y, finishedRunReply as yn, appendAndEnqueueExclusiveInboundMessage as yt, eventAutomationTriggerAvailable as z, removeActiveConversation as zt };
21742
+ export { getChildAgentLabel as $, isInvalidConversationRecordError as $t, resolveSlackChannelIdFromMessage as A, completeConversationStop as At, effectiveTaskOutcomes as B, recordAttemptFailure as Bt, renderBlockText as C, finishedRunReply as Cn, appendAndEnqueueExclusiveInboundMessage as Ct, storeAttachment as D, setConfigDefaults as Dn, checkInConversationWork as Dt, requestAttachmentDeletion as E, getConfigDefaults as En, cancelHumanFacingPendingMessages as Et, logScheduledAutomationRunSkipped as F, ensureConversationWake as Ft, completeAgentInvocation as G, requestConversationWork as Gt, stopChildAgentsOf as H, releaseConversationWork as Ht, scheduledAutomationRunAttributes as I, getConversation as It, getActiveAgentInvocationForConversation as J, CONVERSATION_WORK_CHECK_IN_INTERVAL_MS as Jt, createAgentInvocation as K, startConversationWork as Kt, editEventAutomation as L, getConversationWorkState as Lt, getConversationInfo as M, countPendingConversationMessages as Mt, listThreadReplies as N, deadLetterAttempt as Nt, parseSlackThreadId as O, clearConsumedConversationWake as Ot, editScheduledAutomation as P, drainConversationMailbox as Pt, getAgentInvocationTurnId as Q, isFinalAttempt as Qt, AutomationEditError as R, hasRunnableConversationWork as Rt, renderAttachmentText as S, deliversFinalText as Sn, ackMessages as St, readLiveAttachment as T, shouldEmitDevAgentTrace as Tn, beginConversationResume as Tt, recordSubagentEnded as U, removeActiveConversation as Ut, resolveTaskOutcomes as V, recordConversationRetry as Vt, recordSubagentStarted as W, requestAnotherSlice as Wt, getAgentInvocationMessageId as X, hasConversationStop as Xt, getAgentInvocation as Y, CONVERSATION_WORK_STALE_ENQUEUE_MS as Yt, getAgentInvocationResultMessageId as Z, hasRunnableConversationWork$1 as Zt, resolvePluginOAuthAccount as _, buildSteeringPiMessage as _n, SLACK_EVENT_NAMESPACE as _t, buildAuthPauseResponse as a, shouldPropagateSandboxEgressTrace as an, markAgentInvocationMailboxAppended as at, unpublishedArtifactHeaders as b, toolInvocationDestination as bn, automationEventCatalog as bt, deleteMcpAuthSessionsForUserProvider as c, consumeSandboxEgressAuthRequiredSignal as cn, markAgentInvocationRunning as ct, getMcpAuthSession as d, sandboxEgressSignalsResponseSchema as dn, processWorkspaceSnapshotJob as dt, renderTaskInput as en, getLatestAgentInvocationForConversation as et, getMcpStoredOAuthCredentials as f, formatProviderLabel as fn, ingestEvent as ft, readStats as g, createUserTokenStore as gn, getEventCatalog as gt, latestProgressStatus as h, startOAuthFlow as hn, timerWatchCredentialSubject as ht, executeCredentialedEgressRequest as i, normalizeSandboxEgressTracePropagationDomains as in, listPendingAgentInvocationResults as it, resolveSlackChannelIdFromThreadId as j, completeConversationWork as jt, readSlackRawMessageContext as k, clearExpiredConversationLease as kt, deleteMcpServerSessionId as l, consumeSandboxEgressPermissionDeniedSignal as ln, reportReplacedAgentInvocation as lt, PluginCredentialFailureError as m, resolveBaseUrl as mn, isEventMailboxMetadata as mt, executeAgentRun as n, recordFinishedTurnForAutomatedLimit as nn, listChildAgents as nt, finalizeMcpAuthorization as o, SANDBOX_EGRESS_PROXY_PATH as on, markAgentInvocationParentMailboxAppended as ot, putMcpStoredOAuthCredentials as p, parseOAuthStatePayload as pn, EVENT_WAIT_MS as pt, createAgentInvocationForResult as q, stopConversationWork as qt, createContextCompactor as r, resolveSandboxEgressProviderForHost as rn, listPendingAgentInvocationMailboxAppends as rt, deleteMcpAuthSession as s, clearSandboxEgressSignals as sn, markAgentInvocationPaused as st, createAgentRunner as t, maybePostAutomatedTurnLimitNotice as tn, isTerminalAgentInvocation as tt, deleteMcpStoredOAuthCredentials as u, parseSandboxEgressCredentialToken as un, getMcpProviderErrorAttributes as ut, publicArtifactHeaders as v, RetryableDeliveryError as vn, slackChannelMessageEvent as vt, collectAttachmentGarbage as w, runDispatchOutcome as wn, appendAndEnqueueInboundMessage as wt, lookupSlackUserProfile as x, AuthorizationFlowDisabledError as xn, eventGuidance as xt, readPublicArtifact as y, actorFromRun as yn, slackChannelMessageReplyThreadTs as yt, eventAutomationTriggerAvailable as z, listActiveConversationIds as zt };
@@ -1183,6 +1183,12 @@ export declare const forkConversationBodySchema: z.ZodObject<{
1183
1183
  export declare const forkConversationResponseSchema: z.ZodObject<{
1184
1184
  conversationId: z.ZodString;
1185
1185
  }, z.core.$strict>;
1186
+ /** One Conversation in the agent tree of a child Conversation. */
1187
+ declare const conversationAgentTreeNodeSchema: z.ZodObject<{
1188
+ conversationId: z.ZodString;
1189
+ label: z.ZodString;
1190
+ }, z.core.$strict>;
1191
+ type ConversationAgentTreeNode = z.infer<typeof conversationAgentTreeNodeSchema>;
1186
1192
  export declare const conversationDetailReportSchema: z.ZodObject<{
1187
1193
  displayTitle: z.ZodString;
1188
1194
  activityPreview: z.ZodOptional<z.ZodObject<{
@@ -1368,6 +1374,10 @@ export declare const conversationDetailReportSchema: z.ZodObject<{
1368
1374
  finishedWorkAt: z.ZodOptional<z.ZodString>;
1369
1375
  isPriority: z.ZodOptional<z.ZodBoolean>;
1370
1376
  unfinishedWork: z.ZodOptional<z.ZodBoolean>;
1377
+ agentTree: z.ZodOptional<z.ZodArray<z.ZodObject<{
1378
+ conversationId: z.ZodString;
1379
+ label: z.ZodString;
1380
+ }, z.core.$strict>>>;
1371
1381
  canFork: z.ZodOptional<z.ZodBoolean>;
1372
1382
  forkedFromConversationId: z.ZodOptional<z.ZodString>;
1373
1383
  forkedFromTitle: z.ZodOptional<z.ZodString>;
@@ -2413,11 +2423,37 @@ type CancelConversationPendingMessagesResponse = z.infer<typeof cancelConversati
2413
2423
  /**
2414
2424
  * One direct child agent of a Conversation, from agent invocation records.
2415
2425
  *
2416
- * Viewers who cannot see private content get the status and time, but not the
2417
- * name, task, title, or error.
2426
+ * Viewers who cannot see private content get the status, time, and usage, but
2427
+ * not the name, task, title, or error. Usage covers the child Conversation
2428
+ * only, like the detail of that child Conversation.
2418
2429
  */
2419
2430
  export declare const conversationChildAgentSchema: z.ZodObject<{
2431
+ auxiliaryCosts: z.ZodOptional<z.ZodObject<{
2432
+ costUsd: z.ZodNumber;
2433
+ operations: z.ZodArray<z.ZodObject<{
2434
+ costUsd: z.ZodNumber;
2435
+ events: z.ZodNumber;
2436
+ name: z.ZodString;
2437
+ namespace: z.ZodString;
2438
+ }, z.core.$strict>>;
2439
+ }, z.core.$strict>>;
2420
2440
  conversationId: z.ZodString;
2441
+ cumulativeDurationMs: z.ZodNumber;
2442
+ cumulativeUsage: z.ZodOptional<z.ZodObject<{
2443
+ inputTokens: z.ZodOptional<z.ZodNumber>;
2444
+ outputTokens: z.ZodOptional<z.ZodNumber>;
2445
+ cachedInputTokens: z.ZodOptional<z.ZodNumber>;
2446
+ cacheCreationTokens: z.ZodOptional<z.ZodNumber>;
2447
+ reasoningTokens: z.ZodOptional<z.ZodNumber>;
2448
+ totalTokens: z.ZodOptional<z.ZodNumber>;
2449
+ cost: z.ZodOptional<z.ZodObject<{
2450
+ input: z.ZodOptional<z.ZodNumber>;
2451
+ output: z.ZodOptional<z.ZodNumber>;
2452
+ cacheRead: z.ZodOptional<z.ZodNumber>;
2453
+ cacheWrite: z.ZodOptional<z.ZodNumber>;
2454
+ total: z.ZodOptional<z.ZodNumber>;
2455
+ }, z.core.$strict>>;
2456
+ }, z.core.$strict>>;
2421
2457
  error: z.ZodOptional<z.ZodString>;
2422
2458
  name: z.ZodOptional<z.ZodString>;
2423
2459
  redacted: z.ZodOptional<z.ZodLiteral<true>>;
@@ -2437,7 +2473,32 @@ export declare const conversationChildAgentSchema: z.ZodObject<{
2437
2473
  /** Direct child agents of one Conversation, newest activity first. */
2438
2474
  export declare const conversationChildAgentsReportSchema: z.ZodObject<{
2439
2475
  agents: z.ZodArray<z.ZodObject<{
2476
+ auxiliaryCosts: z.ZodOptional<z.ZodObject<{
2477
+ costUsd: z.ZodNumber;
2478
+ operations: z.ZodArray<z.ZodObject<{
2479
+ costUsd: z.ZodNumber;
2480
+ events: z.ZodNumber;
2481
+ name: z.ZodString;
2482
+ namespace: z.ZodString;
2483
+ }, z.core.$strict>>;
2484
+ }, z.core.$strict>>;
2440
2485
  conversationId: z.ZodString;
2486
+ cumulativeDurationMs: z.ZodNumber;
2487
+ cumulativeUsage: z.ZodOptional<z.ZodObject<{
2488
+ inputTokens: z.ZodOptional<z.ZodNumber>;
2489
+ outputTokens: z.ZodOptional<z.ZodNumber>;
2490
+ cachedInputTokens: z.ZodOptional<z.ZodNumber>;
2491
+ cacheCreationTokens: z.ZodOptional<z.ZodNumber>;
2492
+ reasoningTokens: z.ZodOptional<z.ZodNumber>;
2493
+ totalTokens: z.ZodOptional<z.ZodNumber>;
2494
+ cost: z.ZodOptional<z.ZodObject<{
2495
+ input: z.ZodOptional<z.ZodNumber>;
2496
+ output: z.ZodOptional<z.ZodNumber>;
2497
+ cacheRead: z.ZodOptional<z.ZodNumber>;
2498
+ cacheWrite: z.ZodOptional<z.ZodNumber>;
2499
+ total: z.ZodOptional<z.ZodNumber>;
2500
+ }, z.core.$strict>>;
2501
+ }, z.core.$strict>>;
2441
2502
  error: z.ZodOptional<z.ZodString>;
2442
2503
  name: z.ZodOptional<z.ZodString>;
2443
2504
  redacted: z.ZodOptional<z.ZodLiteral<true>>;
@@ -4766,4 +4827,4 @@ type PluginPackageContentReport = z.infer<typeof pluginPackageContentReportSchem
4766
4827
  type PluginOperationalReport = z.infer<typeof pluginOperationalReportSchema>;
4767
4828
  type PluginOperationalReportFeed = z.infer<typeof pluginOperationalReportFeedSchema>;
4768
4829
  //#endregion
4769
- export { type AcceptedConversationMessage, type ActorActivityDayReport, type ActorDirectoryReport, type ActorDirectoryWindows, type ActorIdentity, type ActorProfileReport, type ActorSummaryReport, type ActorTotalsReport, type ActorWindowMetrics, type ApiError, type ArchiveConversationBody, type ArchiveConversationResponse, type AutomationCard, type AutomationEdit, type AutomationExecution, type AutomationExecutionDay, type AutomationExecutionList, type AutomationExecutionStatusDay, type AutomationList, type AutomationListQuery, type AutomationRun, type AutomationRunList, type AutomationRunWindows, type AutomationScheduleIntent, type AutomationSummary, type AutomationUpdate, type AutomationVersion, type AutomationVersionList, type BaselineSnapshotReport, type CancelConversationPendingMessagesBody, type CancelConversationPendingMessagesResponse, type CodeActivityDay, type CodeChangeSummaryReport, type CodeOverviewReport, type CodePersonReport, type CodeRepositoryReport, type CodeRepositorySummary, type ConversationActivityPreview, type ConversationAuxiliaryCosts, type ConversationChildAgent, type ConversationChildAgentsReport, type ConversationCost, type ConversationDetailReport, type ConversationEventHistory, type ConversationEventPage, type ConversationFeed, type ConversationMetricDay, type ConversationModelUsage, type ConversationParams, type ConversationPendingMessage, type ConversationPendingMessageDelivery, type ConversationPendingMessagesReport, type ConversationReportEvent, type ConversationReportEventData, type ConversationReportStatus, type ConversationSourceTask, type ConversationStatsItem, type ConversationStatsReport, type ConversationSummaryReport, type ConversationSurface, type ConversationTurnFailureCode, type ConversationTurnFailureReason, type ConversationUsage, type CreateConversationBody, type CreateConversationMessageBody, type DailyConversationActivity, type GuardianMetricDay, type GuardianStats, type HealthReport, type InputImage, type LocationActivityDayReport, type LocationActorSummaryReport, type LocationDetailReport, type LocationDirectoryReport, type LocationParams, type LocationSummaryReport, MAX_INPUT_IMAGES, MAX_INPUT_IMAGE_BYTES, type MessageAttachment, type MessageCard, type OwnedObjectAnnotation, type PeopleActivityDayReport, type PersonParams, type PersonalSpendReport, type PersonalTokenMetadata, type Plugin, type PluginOperationalReport, type PluginOperationalReportFeed, type PluginPackageContentItemReport, type PluginPackageContentReport, type Plugins, type RuntimeInfoReport, type SkillReport, type SkillReports, type StatReport, type StatsReport, type WorkspaceReport, conversationTurnFailureCodeSchema, conversationTurnFailureReasonSchema, messageCardText, resolveMessageCards };
4830
+ export { type AcceptedConversationMessage, type ActorActivityDayReport, type ActorDirectoryReport, type ActorDirectoryWindows, type ActorIdentity, type ActorProfileReport, type ActorSummaryReport, type ActorTotalsReport, type ActorWindowMetrics, type ApiError, type ArchiveConversationBody, type ArchiveConversationResponse, type AutomationCard, type AutomationEdit, type AutomationExecution, type AutomationExecutionDay, type AutomationExecutionList, type AutomationExecutionStatusDay, type AutomationList, type AutomationListQuery, type AutomationRun, type AutomationRunList, type AutomationRunWindows, type AutomationScheduleIntent, type AutomationSummary, type AutomationUpdate, type AutomationVersion, type AutomationVersionList, type BaselineSnapshotReport, type CancelConversationPendingMessagesBody, type CancelConversationPendingMessagesResponse, type CodeActivityDay, type CodeChangeSummaryReport, type CodeOverviewReport, type CodePersonReport, type CodeRepositoryReport, type CodeRepositorySummary, type ConversationActivityPreview, type ConversationAgentTreeNode, type ConversationAuxiliaryCosts, type ConversationChildAgent, type ConversationChildAgentsReport, type ConversationCost, type ConversationDetailReport, type ConversationEventHistory, type ConversationEventPage, type ConversationFeed, type ConversationMetricDay, type ConversationModelUsage, type ConversationParams, type ConversationPendingMessage, type ConversationPendingMessageDelivery, type ConversationPendingMessagesReport, type ConversationReportEvent, type ConversationReportEventData, type ConversationReportStatus, type ConversationSourceTask, type ConversationStatsItem, type ConversationStatsReport, type ConversationSummaryReport, type ConversationSurface, type ConversationTurnFailureCode, type ConversationTurnFailureReason, type ConversationUsage, type CreateConversationBody, type CreateConversationMessageBody, type DailyConversationActivity, type GuardianMetricDay, type GuardianStats, type HealthReport, type InputImage, type LocationActivityDayReport, type LocationActorSummaryReport, type LocationDetailReport, type LocationDirectoryReport, type LocationParams, type LocationSummaryReport, MAX_INPUT_IMAGES, MAX_INPUT_IMAGE_BYTES, type MessageAttachment, type MessageCard, type OwnedObjectAnnotation, type PeopleActivityDayReport, type PersonParams, type PersonalSpendReport, type PersonalTokenMetadata, type Plugin, type PluginOperationalReport, type PluginOperationalReportFeed, type PluginPackageContentItemReport, type PluginPackageContentReport, type Plugins, type RuntimeInfoReport, type SkillReport, type SkillReports, type StatReport, type StatsReport, type WorkspaceReport, conversationTurnFailureCodeSchema, conversationTurnFailureReasonSchema, messageCardText, resolveMessageCards };
@@ -1,6 +1,6 @@
1
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";
2
+ import { A as forkConversationBodySchema, C as conversationReportEventSchema, E as conversationSummaryReportSchema, F as INPUT_IMAGE_TYPES, M as MAX_INPUT_IMAGES, N as MAX_INPUT_IMAGE_BYTES, O as createConversationBodySchema, S as conversationReportEventDataSchema, T as conversationStatsReportSchema, W 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 forkConversationResponseSchema, k as createConversationMessageBodySchema, l as conversationAuxiliaryCostsSchema, m as conversationEventsQuerySchema, o as cancelConversationPendingMessagesResponseSchema, p as conversationEventPageSchema, q as resolveMessageCards, r as archiveConversationBodySchema, s as conversationActivityPreviewSchema, t as acceptedConversationMessageSchema, u as conversationDetailQuerySchema, v as conversationPendingAuthorizationSchema, x as conversationPendingMessagesReportSchema, y as conversationPendingMessageDeliverySchema } from "../conversation-CvBG57Io.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-Dyyi9oRc.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-WRgR9EL6.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 };