@sentry/junior 0.276.0 → 0.277.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 (77) hide show
  1. package/dist/{adapter-DoPR2jS-.js → adapter-BtfBHVM5.js} +1 -1
  2. package/dist/{admin-BJTT-kXb.js → admin-DzAKbZsm.js} +1 -1
  3. package/dist/{agent-invocations-CUWrrzkc.js → agent-invocations-Crs3XHhg.js} +5 -1
  4. package/dist/{agent-runner-sMpA5qGM.js → agent-runner-BsYAbniN.js} +151 -65
  5. package/dist/api/schema.d.ts +2 -2
  6. package/dist/api/schema.js +4 -4
  7. package/dist/api.d.ts +13 -2
  8. package/dist/api.js +137 -28
  9. package/dist/{app-DTj-yAQt.d.ts → app-BjEQwNVP.d.ts} +3 -3
  10. package/dist/app.d.ts +2 -2
  11. package/dist/app.js +65 -56
  12. package/dist/{assistant-reply-DbxKnBQF.js → assistant-reply-NebRGG4G.js} +1 -1
  13. package/dist/{automation-B8_mC68r.js → automation-Cql9h2vO.js} +1 -1
  14. package/dist/{background-compaction-queue-Bywqo1WJ.js → background-compaction-queue-hh18yCeU.js} +2 -2
  15. package/dist/{briefs-IL7QnCCR.js → briefs-BBo0Eimi.js} +4 -4
  16. package/dist/{catalog-runtime--sC2CYLQ.js → catalog-runtime-DE-F4Awo.js} +1 -1
  17. package/dist/cli/chat.d.ts +1 -1
  18. package/dist/cli/chat.js +14 -14
  19. package/dist/cli/check.js +3 -3
  20. package/dist/cli/main.js +3 -3
  21. package/dist/cli/plugins.d.ts +1 -1
  22. package/dist/cli/plugins.js +4 -4
  23. package/dist/cli/snapshot-create.js +4 -4
  24. package/dist/cli/upgrade.d.ts +2 -2
  25. package/dist/cli/upgrade.js +3 -3
  26. package/dist/{client-7diKvInp.js → client-DZ8HTnYH.js} +2 -2
  27. package/dist/{config-Cb--cuv-.js → config-D5uUtrCP.js} +2 -2
  28. package/dist/{connections-C4-4fxaE.js → connections-Do24CGP5.js} +10 -10
  29. package/dist/{conversation-DppJ83Hw.js → conversation-SsASlWL7.js} +4 -6
  30. package/dist/{conversation-privacy-DTwdT3Pi.js → conversation-privacy-VuylvlKr.js} +1 -1
  31. package/dist/{credential-sync-Sl5RQCkS.js → credential-sync-BGQK3pOa.js} +13 -13
  32. package/dist/{db-Ck6TXQIx.d.ts → db-DEiwO5Sh.d.ts} +1 -1
  33. package/dist/{executor-BFKmqxYe.js → executor-hPfFTH0C.js} +13 -5
  34. package/dist/instrumentation.js +2 -2
  35. package/dist/{logging-B04X_eCB.js → logging-cI3T1dNc.js} +4 -2
  36. package/dist/{message-DQMFyyE-.js → message-DBwsAl7O.js} +9 -9
  37. package/dist/nitro.d.ts +2 -2
  38. package/dist/nitro.js +7 -3
  39. package/dist/{oauth-callback-server-BGq0_vQI.js → oauth-callback-server-DXrnbplb.js} +2 -2
  40. package/dist/{plugins-B_0Cr0MO.d.ts → plugins-DtmjkTza.d.ts} +1 -0
  41. package/dist/{projection-6dXaN0n-.js → projection-7EFIqzuj.js} +4476 -4348
  42. package/dist/{prompt-B4fQKGZR.js → prompt-oRfGsxd3.js} +1 -1
  43. package/dist/{registry-CEqKR_ld.js → registry-Bzefs7kT.js} +24 -8
  44. package/dist/{resolve-8I5DkrfI.js → resolve-CuiEY_2u.js} +3 -3
  45. package/dist/{result-BgAW90IM.js → result-DrcUtFaD.js} +9 -9
  46. package/dist/{runner-CSKDr_19.js → runner-CDE4CZ52.js} +11 -11
  47. package/dist/{sandbox-egress-signals-BxAT276e.js → sandbox-egress-signals-0tcmGd13.js} +1 -1
  48. package/dist/{schema-CaUWl2EV.d.ts → schema-B6N2nc6v.d.ts} +35 -10
  49. package/dist/{schema-Cal-EFdi.js → schema-Dzi3lkdP.js} +19 -4
  50. package/dist/{service-account-CtOab1Xz.js → service-account-BOz9pqOE.js} +3 -3
  51. package/dist/{service-account-CUuVJCKT.js → service-account-DIyz_9Uh.js} +3 -3
  52. package/dist/{session-stop-DK8LuPZW.js → session-stop-0juF_BP0.js} +17 -14
  53. package/dist/{skills-Bc0D7BGy.js → skills-CU5Is147.js} +2 -2
  54. package/dist/{spawn-DF_GUcd8.js → spawn-6C9jHH4b.js} +2 -2
  55. package/dist/{stop-DthSy-z8.js → stop-6FVG1c-r.js} +388 -153
  56. package/dist/{store-BgH2P3X9.js → store-DKs1WwdB.js} +3 -3
  57. package/dist/{store-C5uVTx2G.js → store-DtHZviJ1.js} +4 -4
  58. package/dist/{task-queue-C6ROM_XJ.js → task-queue-CcvFQE_p.js} +3 -3
  59. package/dist/{task-runner-BwAkjjVE.js → task-runner-DBkNejLl.js} +6 -6
  60. package/dist/{thread-state-BXjgk1pW.js → thread-state-4hjEIkIq.js} +4 -4
  61. package/dist/{turn-failure-response-CVI57qKL.js → turn-failure-response-BZNLydC3.js} +7 -7
  62. package/dist/{turn-lifecycle-CF6ibonp.js → turn-lifecycle-BhqYjaa4.js} +1 -1
  63. package/dist/{turn-session-routing-DddybdNu.js → turn-session-routing-jnLOfBHJ.js} +10 -10
  64. package/dist/{validation-BxF1nQbC.js → validation-BUFmsnKs.js} +1 -1
  65. package/dist/{version-CTzSbCmR.js → version-DJTk0ZCE.js} +1 -1
  66. package/dist/version.js +1 -1
  67. package/dist/{viewer-CQwBszc7.js → viewer-WY0RYE4E.js} +47 -12
  68. package/dist/{work-BHlShEQ6.js → work-C5AKvXJV.js} +10 -10
  69. package/dist/{worker-DhY9MnsH.js → worker-BcYVDVUy.js} +6 -6
  70. package/migrations/0074_conversation_participant_pins.sql +1 -0
  71. package/migrations/0075_conversation_detail_version.sql +1 -0
  72. package/migrations/0076_conversation_auto_archive.sql +5 -0
  73. package/migrations/meta/0074_snapshot.json +4076 -0
  74. package/migrations/meta/0075_snapshot.json +4299 -0
  75. package/migrations/meta/0076_snapshot.json +4363 -0
  76. package/migrations/meta/_journal.json +22 -1
  77. package/package.json +5 -5
@@ -1,4 +1,4 @@
1
- import { i as getChatConfig } from "./config-Cb--cuv-.js";
1
+ import { i as getChatConfig } from "./config-D5uUtrCP.js";
2
2
  import { t as ACTIVE_LOCK_TTL_MS } from "./locks-D-0h111u.js";
3
3
  import { createMemoryState } from "@chat-adapter/state-memory";
4
4
  import { createRedisState } from "@chat-adapter/state-redis";
@@ -1,4 +1,4 @@
1
- import { S as getDb, r as listAdminUsersFromSql, u as setUserAdminFromSql } from "./viewer-CQwBszc7.js";
1
+ import { S as getDb, r as listAdminUsersFromSql, u as setUserAdminFromSql } from "./viewer-WY0RYE4E.js";
2
2
  import { CLI_USAGE } from "./cli/run.js";
3
3
  // src/cli/admin.ts
4
4
  /**
@@ -25,7 +25,6 @@ const juniorDestinations = pgTable("junior_destinations", {
25
25
  createdAt: timestamptz("created_at").notNull(),
26
26
  updatedAt: timestamptz("updated_at").notNull()
27
27
  }, (table) => [uniqueIndex("junior_destinations_provider_destination_uidx").on(table.provider, table.providerTenantId, table.providerDestinationId), index("junior_destinations_provider_kind_idx").on(table.provider, table.kind)]);
28
- // src/db/schema/users.ts
29
28
  const juniorUsers = pgTable("junior_users", {
30
29
  id: text("id").primaryKey(),
31
30
  primaryEmail: text("primary_email").notNull(),
@@ -36,6 +35,10 @@ const juniorUsers = pgTable("junior_users", {
36
35
  customization: text("customization"),
37
36
  /** Junior-wide admin role. Only the `junior admin` CLI changes it. */
38
37
  isAdmin: boolean("is_admin").notNull().default(false),
38
+ /** Auto-archive this user's conversations when their work is done. */
39
+ autoArchiveDefault: boolean("auto_archive_default").notNull().default(false),
40
+ /** Hours done work and the conversation stay quiet before auto-archive. */
41
+ autoArchiveGraceHours: integer("auto_archive_grace_hours").notNull().default(24),
39
42
  createdAt: timestamptz("created_at").notNull(),
40
43
  updatedAt: timestamptz("updated_at").notNull()
41
44
  }, (table) => [uniqueIndex("junior_users_primary_email_normalized_uidx").on(table.primaryEmailNormalized)]);
@@ -100,6 +103,7 @@ const juniorConversations = pgTable("junior_conversations", {
100
103
  executionDurationMs: integer("execution_duration_ms").notNull().default(0),
101
104
  executionUsage: jsonb("execution_usage_json").$type(),
102
105
  metricRunId: text("metric_run_id"),
106
+ detailVersion: integer("detail_version").notNull().default(0),
103
107
  legacyArchivedAt: timestamptz("archived_at")
104
108
  }, (table) => [
105
109
  index("junior_conversations_last_activity_idx").on(table.lastActivityAt.desc(), table.conversationId),
@@ -1,35 +1,35 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-nwUcYXjP.js";
2
- import { $ as loadTurnCheckpoint, $i as isConversationScopedChannel, $r as postSlackMessage, Ai as STOP_WATCHING_TOOL_NAME, An as getOAuthAccountProviders, Ar as hash, B as createPluginEgress, Bn as getPlugins, Bt as TurnSliceLimitExceededError, Ca as SANDBOX_WORKSPACE_ROOT, Ci as tryWorkspaceRepoCheckoutPath, Cn as getAgentContextInputLimitTokens, Cr as updateWorkspace, D as fallbackShortTitle, Di as RESOURCE_SUBSCRIPTION_DEFAULT_TTL_MS, Dn as createUserTokenStore, Dr as setWorkspaceSnapshot, Ea as sandboxSkillPathResolution, Ei as getSlackToolContext, Er as loadSnapshotsForProfile, Fi as createWatch, G as AuthorizationFlowDisabledError, Gr as slackMention, Gt as CODEMODE_TOOL_NAME, H as createPluginAuthOrchestration, Ii as deliverWatch, Ir as deliverOAuthAuthorization, J as canReusePendingAuthLink, Ji as SlackActionError, Jr as deleteSlackMessage, Jt as getPiMessageRole, K as AuthorizationPauseError, Li as findMatchingWatches, Ln as getPluginSystemPromptContributions, Lr as formatProviderLabel, Mi as cancelWatch, Mr as ensureDockerDaemon, Nn as createPluginHookRunner, Nr as getSandboxProvider, O as resolveTaskTitle, Oi as RESOURCE_SUBSCRIPTION_MAX_TTL_MS, On as findLegacyWebActorUserId, Or as setWorkspaceSnapshotBuild, Pi as createTimerWatch, Q as continuableMessages, Qa as createPluginAnnotations, Qi as getSlackClient, Qn as insertReviewItem, Qt as hasRuntimeTurnContext, Ri as getWatch, Rn as getPluginTools, Rt as TURN_LIMIT_WRAP_UP_MESSAGE, Sa as SANDBOX_SKILLS_ROOT, Si as SANDBOX_RUNTIME, Sn as getAgentContextCompactionTriggerTokens, Ta as sandboxSkillFile, Ti as resolveChannelCapabilities, Tn as isExperimentalFeatureEnabled, Tr as invalidateReadySnapshot, U as authorizationId, Ur as normalizeSlackReplyMarkdown, Ut as createTurnLimitGate, V as PluginCredentialFailureError, Vr as escapeSlackMrkdwnText, Vt as TurnToolCallLimitExceededError, W as AuthPausePersistenceError, Wt as isTurnExecutionLimitExceededError, Xi as getFilePermalink, Xn as getOpenReviewItemByDedupeKey, Xr as openSlackDirectMessage, Xt as getUserMessageInstructionText, Yi as downloadPrivateSlackFile, Yn as dismissOpenReviewItems, Yr as getSlackMessagePermalink, Yt as getTerminalAssistantMessages, Za as saveObjectAnnotations, Zn as getReviewItem, Zt as hasCurrentInstruction, _a as runNonInteractiveCommand, _r as createWorkspace, a as loadLastModelProfile, ai as isAbortError, an as normalizeToolNameFromResult, ba as SANDBOX_JUNIOR_ROOT, bi as resolveSandboxCommandEnvironment, bn as estimateTextTokens, br as getWorkspaceByName, c as loadTurnRoute, ca as getDashboardConversationLink, ci as wrapSandboxSetupError, cn as trimTrailingAssistantMessages, co as piMessageFromHistoryItem, d as recordAttachmentsDelivered, da as getDashboardTaskLink, di as isWorkspaceSnapshotNotReadyError, dn as TURN_CONTEXT_TAG, do as conversationNoteEvent, dr as requireReviewItemLinks, en as isAssistantMessage, et as saveTurnCheckpoint, fi as workspaceSnapshotNotReadyUserMessage, fo as getConfigDefaults, g as recordMcpProviderConnected, ga as buildNonInteractiveShellScript, gi as createSandboxEgressCredentialToken, gr as resolveAssignees, h as recordGuardianActionReviewed, ha as buildCommandScript, hi as consumeSandboxEgressPermissionDeniedSignal, hr as resolveAssignee, i as loadConversationProjection, ia as sleep, in as isToolResultMessage, ir as PLUGIN_REVIEW_ITEM_KEY_PREFIX, ji as cancelSubscriptions, jr as isStale, ki as RESOURCE_WATCH_TOOL_SOURCE, kr as create, l as openConversationProjection, li as WorkspaceSnapshotNotReadyError, ln as REQUEST_CONTEXT_SECTION_TAG, lo as projectConversationEvents, lr as readReviewItemAgentScope, m as recordAuthorizationRequested, ma as PluginToolDeniedError, mi as consumeSandboxEgressAuthRequiredSignal, mr as automationCreatorUserId, na as runWithSlackInstallationToken, ni as uploadFilesToConversation, nn as isStandaloneRuntimeContextMessage, no as resolveUserTimezone, oi as isAlreadyExistsError, on as retainRuntimeTurnContext, or as canAgentChangeReviewItem, pa as ToolInputError, pi as clearSandboxEgressSignals, pn as buildDeterministicTurnId, pr as EVERYONE_ASSIGNEE, q as abandonReplacedPendingAuth, qa as matchSlackAttachments, qn as closeReviewItem, qr as addReactionToMessage, qt as extractAssistantText, r as loadConnectedMcpProviders, ra as withSlackRetries, rn as isToolResultError, rr as updateReviewItemContent, si as throwSandboxOperationError, sn as stripRuntimeTurnContext, so as historyItemFromPiMessage, sr as canReadReviewItem, ta as normalizeSlackConversationId, ti as updateSlackMessage, tn as isContinuablePiBoundary, to as defaultTimezone, tr as searchReviewItems, u as recordAgentsInstructionsUpdated, ua as getDashboardReviewItemLink, ui as getWorkspaceSnapshotNotReadyError, un as SESSION_CONTEXT_SECTION_TAG, uo as JUNIOR_NATIVE_EVENT_NAMESPACE, ur as requireReviewItemAssignees, v as recordToolExecutionStarted, va as SANDBOX_COMMAND_PATH, vn as calculateContextCompactionTargetTokens, vr as deleteWorkspace, wa as sandboxSkillDir, wi as workspaceRepoCheckoutPath, wr as WorkspaceValidationError, xa as SANDBOX_REPOS_ROOT, xn as getAgentBackgroundCompactionMarkTokens, xr as listWorkspaces, y as recordTurnRoute, ya as SANDBOX_DATA_ROOT, yi as buildSandboxEgressNetworkPolicy, yn as estimateRequestOverheadTokens, yr as getWorkspace, zi as listWatches, zn as getPluginUserPromptContributions, zr as resolveBaseUrl, zt as TurnBudgetExceededError } from "./projection-6dXaN0n-.js";
3
- import { S as resolveGatewayCredential, _ as findProviderError, a as completeText, b as isProviderRetryError, c as resolveGatewayModel, d as isCompactionSummaryText, f as renderCurrentInstruction, g as createProviderError, h as ProviderError, i as completeObject, l as COMPACTION_SUMMARY_PREFIX, m as escapeXml, n as GEN_AI_SERVER_ADDRESS, p as unwrapCurrentInstruction, t as GEN_AI_PROVIDER_NAME, u as hasCompactedConversationContext, v as getProviderErrorAttributes, x as getGatewayApiKey } from "./client-7diKvInp.js";
4
- import { _ as normalizeSlackEmojiName, n as botConfig } from "./config-Cb--cuv-.js";
5
- import { C as summarizeMessageText, E as withSpan, H as isRecord$4, R as runWithLogAttributes, S as setTags, T as withLogContext, V as normalizeIdentityEmail, W as toOptionalString, _ as runBestEffort, a as extractGenAiUsageSummary, b as setSpanAttributes, f as logError, g as normalizeGenAiFinishReason, h as logWarn, i as extractGenAiUsageAttributes, l as getLogContextAttributesForSpan, m as logInfo, p as logException, u as getTracePropagationHeaders, v as serializeGenAiAttribute, x as setSpanStatus } from "./logging-B04X_eCB.js";
2
+ import { $ as loadTurnCheckpoint, $i as wrapSandboxSetupError, $r as getWorkspaceByName, Aa as buildNonInteractiveShellScript, An as getOAuthAccountProviders, Ar as findMatchingWatches, B as createPluginEgress, Bi as getFilePermalink, Bn as getPlugins, Bt as TurnSliceLimitExceededError, Ca as SANDBOX_REPOS_ROOT, Cn as getAgentContextInputLimitTokens, Cr as STOP_WATCHING_TOOL_NAME, D as fallbackShortTitle, Da as sandboxSkillFile, Di as deleteSlackMessage, Dn as createUserTokenStore, Dr as createTimerWatch, Ea as sandboxSkillDir, Ei as addReactionToMessage, Fi as uploadFilesToConversation, G as AuthorizationFlowDisabledError, Gi as normalizeSlackConversationId, Gr as getDashboardTaskLink, Gt as CODEMODE_TOOL_NAME, H as createPluginAuthOrchestration, Hi as getSlackClient, Hr as getDashboardConversationLink, J as canReusePendingAuthLink, Jt as getPiMessageRole, K as AuthorizationPauseError, Ki as runWithSlackInstallationToken, Ln as getPluginSystemPromptContributions, Mi as postSlackMessage, Mr as listWatches, Nn as createPluginHookRunner, O as resolveTaskTitle, Oa as sandboxSkillPathResolution, Oi as getSlackMessagePermalink, On as findLegacyWebActorUserId, Or as createWatch, Pi as updateSlackMessage, Q as continuableMessages, Qi as throwSandboxOperationError, Qn as insertReviewItem, Qr as getWorkspace, Qt as hasRuntimeTurnContext, Ri as SlackActionError, Rn as getPluginTools, Rt as TURN_LIMIT_WRAP_UP_MESSAGE, Sa as SANDBOX_JUNIOR_ROOT, Si as normalizeSlackReplyMarkdown, Sn as getAgentContextCompactionTriggerTokens, Sr as RESOURCE_WATCH_TOOL_SOURCE, Ta as SANDBOX_WORKSPACE_ROOT, Tn as isExperimentalFeatureEnabled, Tr as cancelWatch, U as authorizationId, Ui as isConversationScopedChannel, Ut as createTurnLimitGate, V as PluginCredentialFailureError, Vt as TurnToolCallLimitExceededError, W as AuthPausePersistenceError, Wr as getDashboardReviewItemLink, Wt as isTurnExecutionLimitExceededError, Xi as isAbortError, Xn as getOpenReviewItemByDedupeKey, Xr as createWorkspace, Xt as getUserMessageInstructionText, Yn as dismissOpenReviewItems, Yr as renderToolResultNudge, Yt as getTerminalAssistantMessages, Za as matchSlackAttachments, Zi as isAlreadyExistsError, Zn as getReviewItem, Zr as deleteWorkspace, Zt as hasCurrentInstruction, _a as PluginToolDeniedError, _r as resolveAssignees, a as loadLastModelProfile, aa as consumeSandboxEgressAuthRequiredSignal, ai as loadSnapshotsForProfile, an as normalizeToolNameFromResult, ao as defaultTimezone, ba as SANDBOX_COMMAND_PATH, bi as escapeSlackMrkdwnText, bn as estimateTextTokens, br as RESOURCE_SUBSCRIPTION_DEFAULT_TTL_MS, c as loadTurnRoute, ci as create, cn as trimTrailingAssistantMessages, d as recordAttachmentsDelivered, da as resolveSandboxCommandEnvironment, di as ensureDockerDaemon, dn as TURN_CONTEXT_TAG, do as historyItemFromPiMessage, dr as requireReviewItemLinks, ea as WorkspaceSnapshotNotReadyError, ei as listWorkspaces, en as isAssistantMessage, et as saveTurnCheckpoint, fi as getSandboxProvider, fo as piMessageFromHistoryItem, g as recordMcpProviderConnected, ga as workspaceRepoCheckoutPath, gi as formatProviderLabel, go as getConfigDefaults, gr as resolveAssignee, h as recordGuardianActionReviewed, ha as tryWorkspaceRepoCheckoutPath, hi as deliverOAuthAuthorization, ho as conversationNoteEvent, hr as automationCreatorUserId, i as loadConversationProjection, ia as clearSandboxEgressSignals, ii as invalidateReadySnapshot, in as isToolResultMessage, ir as PLUGIN_REVIEW_ITEM_KEY_PREFIX, ja as runNonInteractiveCommand, jr as getWatch, ka as buildCommandScript, ki as openSlackDirectMessage, kr as deliverWatch, l as openConversationProjection, li as hash, ln as REQUEST_CONTEXT_SECTION_TAG, lr as readReviewItemAgentScope, m as recordAuthorizationRequested, ma as sleep, mo as JUNIOR_NATIVE_EVENT_NAMESPACE, mr as EVERYONE_ASSIGNEE, na as isWorkspaceSnapshotNotReadyError, ni as updateWorkspace, nn as isStandaloneRuntimeContextMessage, no as createPluginAnnotations, oa as consumeSandboxEgressPermissionDeniedSignal, oi as setWorkspaceSnapshot, on as retainRuntimeTurnContext, oo as resolveUserTimezone, or as canAgentChangeReviewItem, pa as SANDBOX_RUNTIME, pn as buildDeterministicTurnId, po as projectConversationEvents, q as abandonReplacedPendingAuth, qi as withSlackRetries, qn as closeReviewItem, qr as ToolInputError, qt as extractAssistantText, r as loadConnectedMcpProviders, ra as workspaceSnapshotNotReadyUserMessage, ri as WorkspaceValidationError, rn as isToolResultError, rr as updateReviewItemContent, sa as createSandboxEgressCredentialToken, si as setWorkspaceSnapshotBuild, sn as stripRuntimeTurnContext, sr as canReadReviewItem, ta as getWorkspaceSnapshotNotReadyError, tn as isContinuablePiBoundary, to as saveObjectAnnotations, tr as searchReviewItems, u as recordAgentsInstructionsUpdated, ua as buildSandboxEgressNetworkPolicy, ui as isStale, un as SESSION_CONTEXT_SECTION_TAG, ur as requireReviewItemAssignees, v as recordToolExecutionStarted, vi as resolveBaseUrl, vn as calculateContextCompactionTargetTokens, vr as resolveChannelCapabilities, wa as SANDBOX_SKILLS_ROOT, wi as slackMention, wr as cancelSubscriptions, xa as SANDBOX_DATA_ROOT, xn as getAgentBackgroundCompactionMarkTokens, xr as RESOURCE_SUBSCRIPTION_MAX_TTL_MS, y as recordTurnRoute, yn as estimateRequestOverheadTokens, yr as getSlackToolContext, zi as downloadPrivateSlackFile, zn as getPluginUserPromptContributions, zt as TurnBudgetExceededError } from "./projection-7EFIqzuj.js";
3
+ import { S as resolveGatewayCredential, _ as findProviderError, a as completeText, b as isProviderRetryError, c as resolveGatewayModel, d as isCompactionSummaryText, f as renderCurrentInstruction, g as createProviderError, h as ProviderError, i as completeObject, l as COMPACTION_SUMMARY_PREFIX, m as escapeXml, n as GEN_AI_SERVER_ADDRESS, p as unwrapCurrentInstruction, t as GEN_AI_PROVIDER_NAME, u as hasCompactedConversationContext, v as getProviderErrorAttributes, x as getGatewayApiKey } from "./client-DZ8HTnYH.js";
4
+ import { _ as normalizeSlackEmojiName, n as botConfig } from "./config-D5uUtrCP.js";
5
+ import { B as runWithLogAttributes, C as summarizeMessageText, E as withSpan, K as toOptionalString, S as setTags, T as withLogContext, U as normalizeIdentityEmail, W as isRecord$4, _ as runBestEffort, a as extractGenAiUsageSummary, b as setSpanAttributes, d as logAudit, f as logError, g as normalizeGenAiFinishReason, h as logWarn, i as extractGenAiUsageAttributes, l as getLogContextAttributesForSpan, m as logInfo, p as logException, u as getTracePropagationHeaders, v as serializeGenAiAttribute, x as setSpanStatus } from "./logging-cI3T1dNc.js";
6
6
  import { g as withActiveSpan, i as getActiveSpan, m as startInactiveSpan } from "./sentry-MDkYAVPV.js";
7
- 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-DTwdT3Pi.js";
7
+ 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-VuylvlKr.js";
8
8
  import { a as formatModelProfile, c as modelProfileSchema, l as profileConfig, n as ModelProfileNotConfiguredError, o as formatModelProfiles, r as boundProfile, s as modelIdForProfile, u as TURN_REASONING_LEVELS } from "./model-profile-B998sjVd.js";
9
9
  import { d as parseSlackChannelReferenceId, f as parseSlackTeamId, h as parseSlackMessageTs, n as createSlackActor, o as isUserActor, p as parseSlackUserId, u as parseSlackChannelId } from "./actor-B4DYygOB.js";
10
- import { $ as sameDestination, C as getSqlExecutor, G as agentTurnCostUsd, J as hasAgentTurnUsage, M as SYSTEM_IDENTITY_ID, N as resolveActorIdentityId, S as getDb, W as addAgentTurnUsage, Z as parseDestination, a as readActorIdentityFromSql, b as getConversationMessageSearchStore, f as identityAvatarUrl, h as readUserAvatarUrls, i as readActorIdentity, x as getConversationStore, y as getConversationEventStore } from "./viewer-CQwBszc7.js";
11
- import { a as juniorAgentInvocations, c as juniorIdentities, d as juniorDestinations, i as juniorAgentBindings, l as juniorUsers, s as juniorConversations } from "./agent-invocations-CUWrrzkc.js";
12
- import { E as juniorArtifacts, S as juniorConversationAnnotations, T as juniorAttachments, _ as juniorConversationBriefs, d as juniorAutomations, f as juniorStats, l as juniorAutomationRuns, s as juniorReviewItemSlackCards } from "./executor-BFKmqxYe.js";
10
+ import { C as getSqlExecutor, J as agentTurnCostUsd, K as touchConversationDetail, M as SYSTEM_IDENTITY_ID, N as resolveActorIdentityId, S as getDb, W as conversationDetailTouch, Z as hasAgentTurnUsage, a as readActorIdentityFromSql, b as getConversationMessageSearchStore, et as parseDestination, f as identityAvatarUrl, h as readUserAvatarUrls, i as readActorIdentity, nt as sameDestination, q as addAgentTurnUsage, x as getConversationStore, y as getConversationEventStore } from "./viewer-WY0RYE4E.js";
11
+ import { a as juniorAgentInvocations, c as juniorIdentities, d as juniorDestinations, i as juniorAgentBindings, l as juniorUsers, s as juniorConversations } from "./agent-invocations-Crs3XHhg.js";
12
+ import { E as juniorArtifacts, S as juniorConversationAnnotations, T as juniorAttachments, _ as juniorConversationBriefs, d as juniorAutomations, f as juniorStats, l as juniorAutomationRuns, s as juniorReviewItemSlackCards } from "./executor-hPfFTH0C.js";
13
13
  import { _ as sameActorIdentity, g as instructionProvenanceFor, h as instructionActors, i as KNOWN_CONVERSATION_EVENT_TYPES, m as contextProvenance, n as detectImageMediaType, p as agentInstructionProvenance, r as isVisionImageMediaType } from "./media-DstkkoNP.js";
14
14
  import { a as listReferenceFiles, c as soulPathCandidates, l as worldPathCandidates } from "./package-discovery-DJBompdd.js";
15
- import { c as fetchWithBoundedOAuthErrorBodies, d as actorLogContext, f as credentialContextForActor, g as credentialUserSubjectId, i as resolvePluginHeaderEnvRefs, l as getOAuthProviderErrorAttributes, s as OAuthProviderError } from "./registry-CEqKR_ld.js";
16
- import { n as pluginCatalogRuntime } from "./catalog-runtime--sC2CYLQ.js";
17
- import { a as parseSkillInvocation, i as parseSkillFile, n as findSkillByName, r as loadSkillsByName, t as discoverSkills } from "./skills-Bc0D7BGy.js";
15
+ import { c as fetchWithBoundedOAuthErrorBodies, d as actorLogContext, f as credentialContextForActor, g as credentialUserSubjectId, i as resolvePluginHeaderEnvRefs, l as getOAuthProviderErrorAttributes, s as OAuthProviderError } from "./registry-Bzefs7kT.js";
16
+ import { n as pluginCatalogRuntime } from "./catalog-runtime-DE-F4Awo.js";
17
+ import { a as parseSkillInvocation, i as parseSkillFile, n as findSkillByName, r as loadSkillsByName, t as discoverSkills } from "./skills-CU5Is147.js";
18
18
  import { a as withLock, i as fenceLock } from "./locks-D-0h111u.js";
19
- import { r as getStateAdapter } from "./adapter-DoPR2jS-.js";
19
+ import { r as getStateAdapter } from "./adapter-BtfBHVM5.js";
20
20
  import { i as isValidTimeZone, r as getZonedDateTimeParts, t as getFirstRunAtMs } from "./cadence-R7Em4RjE.js";
21
- import { H as removedCardSchema, J as briefLinkSchema, X as conversationBriefSchema, Y as briefOutcomeStatusSchema } from "./conversation-DppJ83Hw.js";
22
- import { r as EVENT_AUTHOR_ID } from "./prompt-B4fQKGZR.js";
23
- import { A as AgentInvocationLimitError, G as TurnInputCommitLostError, H as formatAgentTypes, I as CHILD_AGENT_RESULTS, L as PARENT_AGENT_TARGET, M as AgentMessageQueueFullError, N as AgentMessageTargetError, P as AgentNameInUseError, R as agentNameSchema, W as CooperativeTurnYieldError, Y as isTurnInputCommitLostError, _ as getLatestAgentInvocationForConversation, d as getAgentInvocationIdForResult, f as getAgentInvocationMessageId, g as getChildAgentLockName, j as AgentMessagePausedError, n as NON_TERMINAL_AGENT_INVOCATION_STATUSES, v as invocationFromRow, y as isTerminalAgentInvocation, z as AGENT_TYPES } from "./store-C5uVTx2G.js";
24
- import { a as isNoReplyMarker, i as NO_REPLY_MARKER, n as getAssistantReplyText, r as sanitizeAssistantText, t as decideReply } from "./assistant-reply-DbxKnBQF.js";
25
- import { B as remindMissingAutomationResult, F as automationResultSchema$1, O as resolveSlackReplyTarget, P as FINISH_AUTOMATION_RUN_TOOL_NAME, _ as slackChannelMessageTrigger, a as EVENT_WAIT_MS, b as workspaceSnapshotFinishedEvent, d as getEventCatalog, n as markConversationsStopped, o as enqueueEventNotification, p as requireSlackChannelMessageScope, t as getConversationStoppedAtMs, v as WORKSPACE_SNAPSHOT_FAILED_EVENT, x as workspaceSnapshotWatch, y as WORKSPACE_SNAPSHOT_READY_EVENT, z as readAutomationResult } from "./session-stop-DK8LuPZW.js";
21
+ import { B as removedCardSchema, J as conversationBriefSchema, K as briefLinkSchema, q as briefOutcomeStatusSchema } from "./conversation-SsASlWL7.js";
22
+ import { r as EVENT_AUTHOR_ID } from "./prompt-oRfGsxd3.js";
23
+ import { A as AgentInvocationLimitError, G as TurnInputCommitLostError, H as formatAgentTypes, I as CHILD_AGENT_RESULTS, L as PARENT_AGENT_TARGET, M as AgentMessageQueueFullError, N as AgentMessageTargetError, P as AgentNameInUseError, R as agentNameSchema, W as CooperativeTurnYieldError, Y as isTurnInputCommitLostError, _ as getLatestAgentInvocationForConversation, d as getAgentInvocationIdForResult, f as getAgentInvocationMessageId, g as getChildAgentLockName, j as AgentMessagePausedError, n as NON_TERMINAL_AGENT_INVOCATION_STATUSES, v as invocationFromRow, y as isTerminalAgentInvocation, z as AGENT_TYPES } from "./store-DtHZviJ1.js";
24
+ import { a as isNoReplyMarker, i as NO_REPLY_MARKER, n as getAssistantReplyText, r as sanitizeAssistantText, t as decideReply } from "./assistant-reply-NebRGG4G.js";
25
+ import { B as remindMissingAutomationResult, F as automationResultSchema$1, O as resolveSlackReplyTarget, P as FINISH_AUTOMATION_RUN_TOOL_NAME, _ as slackChannelMessageTrigger, a as EVENT_WAIT_MS, b as workspaceSnapshotFinishedEvent, d as getEventCatalog, n as markConversationsStopped, o as enqueueEventNotification, p as requireSlackChannelMessageScope, t as getConversationStoppedAtMs, v as WORKSPACE_SNAPSHOT_FAILED_EVENT, x as workspaceSnapshotWatch, y as WORKSPACE_SNAPSHOT_READY_EVENT, z as readAutomationResult } from "./session-stop-0juF_BP0.js";
26
26
  import { C as userCustomizationTextSchema, b as webMessageId, g as formatUserInputAnswer, h as buttonUserInputField, m as USER_INPUT_NOTE, p as USER_INPUT_LIMITS, s as sumUtcHoursIntoSixHours, v as normalizeUserInputAnswer, x as USER_CUSTOMIZATION_MAX_CHARS, y as userInputRequestSchema } from "./reporting-window-DgHgwQB3.js";
27
- import { a as setSnapshotSpanAttributes, i as postinstall, n as resolve$1, r as dependencies, s as getSandboxResources } from "./resolve-8I5DkrfI.js";
28
- import { f as QUEUE_SIGNATURE_MAX_AGE_MS, g as getTurnRequestDeadline, l as getVercelConversationWorkQueue, n as backgroundCompactionId, o as sendNextWorkspaceSnapshotJob, s as sendWorkspaceSnapshotJob } from "./background-compaction-queue-Bywqo1WJ.js";
29
- import { D as stopConversationWork, n as appendAndEnqueueExclusiveInboundMessage, r as appendAndEnqueueInboundMessage } from "./store-BgH2P3X9.js";
30
- import { $ as saveEventAutomation, A as readAutomationRuns, B as readScheduledAutomation, C as readAutomationExecutionByConversationId, Ct as requireEventIdentifier, D as readAutomationExecutionStatusHours, E as readAutomationExecutionStatusDays, I as createScheduledAutomation, J as deleteEventAutomation, L as deleteScheduledAutomation, O as readAutomationExecutionSummaries, Q as parseEventAutomationRow, St as registeredResourceTypeSchema, T as readAutomationExecutionHours, V as saveScheduledAutomation, X as getEventAutomation, Z as listDeletedEventAutomationsCreatedBy, _t as eventWatchUnavailable, at as listAutomationVersions, bt as registeredEventTriggerProblems, c as getDispatchIdForConversation, et as setEventAutomationStatus, ft as automationEventCatalog, gt as eventNamespaceSchema, k as readAutomationExecutions, l as getDispatchInputMessageId, lt as automationRevision, ot as readAutomationVersion, pt as describeRegisteredEventTrigger, q as createEventAutomation, rt as automationDefinition, st as sameDefinitionValue, t as resolveConversationRouting, u as getDispatchRecord, ut as requireAutomationRevision, vt as hasEventCatalogEntries, w as readAutomationExecutionDays, wt as requireValidEventTrigger, x as emptyAutomationRunWindows, xt as registeredEventTypeSchema, yt as registeredEventMatchSchema, z as parseScheduledAutomationRow } from "./turn-session-routing-DddybdNu.js";
31
- import { _ as getMcpProviderErrorAttributes, a as serviceAccountOnly, c as createMcpServiceAccountClientProvider, d as PluginMcpClient, f as McpProviderError, g as getMcpAwareTelemetryMessage, h as getMcpAwareErrorType, i as serviceAccountAllows, l as getMcpServiceAccountCredentials, m as McpToolError, p as McpServiceAccountRequiredError, u as McpAuthorizationRequiredError, v as toMcpProviderError } from "./service-account-CUuVJCKT.js";
32
- import { A as SCHEDULED_AUTOMATION_SYSTEM_ACTOR, D as taskOutcomeInputSchema, E as automationTitleSchema, F as scheduleIntentFromTool, I as toolScheduleIntentSchema, L as weekdaySchema, N as ScheduleIntentError, P as compileScheduleIntent, T as automationInstructionToolSchema, k as eventAutomationTriggerSchema, l as automationListQuerySchema } from "./automation-B8_mC68r.js";
27
+ import { a as setSnapshotSpanAttributes, i as postinstall, n as resolve$1, r as dependencies, s as getSandboxResources } from "./resolve-CuiEY_2u.js";
28
+ import { f as QUEUE_SIGNATURE_MAX_AGE_MS, g as getTurnRequestDeadline, l as getVercelConversationWorkQueue, n as backgroundCompactionId, o as sendNextWorkspaceSnapshotJob, s as sendWorkspaceSnapshotJob } from "./background-compaction-queue-hh18yCeU.js";
29
+ import { D as stopConversationWork, n as appendAndEnqueueExclusiveInboundMessage, r as appendAndEnqueueInboundMessage } from "./store-DKs1WwdB.js";
30
+ import { $ as saveEventAutomation, A as readAutomationRuns, B as readScheduledAutomation, C as readAutomationExecutionByConversationId, Ct as requireEventIdentifier, D as readAutomationExecutionStatusHours, E as readAutomationExecutionStatusDays, I as createScheduledAutomation, J as deleteEventAutomation, L as deleteScheduledAutomation, O as readAutomationExecutionSummaries, Q as parseEventAutomationRow, St as registeredResourceTypeSchema, T as readAutomationExecutionHours, V as saveScheduledAutomation, X as getEventAutomation, Z as listDeletedEventAutomationsCreatedBy, _t as eventWatchUnavailable, at as listAutomationVersions, bt as registeredEventTriggerProblems, c as getDispatchIdForConversation, et as setEventAutomationStatus, ft as automationEventCatalog, gt as eventNamespaceSchema, k as readAutomationExecutions, l as getDispatchInputMessageId, lt as automationRevision, ot as readAutomationVersion, pt as describeRegisteredEventTrigger, q as createEventAutomation, rt as automationDefinition, st as sameDefinitionValue, t as resolveConversationRouting, u as getDispatchRecord, ut as requireAutomationRevision, vt as hasEventCatalogEntries, w as readAutomationExecutionDays, wt as requireValidEventTrigger, x as emptyAutomationRunWindows, xt as registeredEventTypeSchema, yt as registeredEventMatchSchema, z as parseScheduledAutomationRow } from "./turn-session-routing-jnLOfBHJ.js";
31
+ import { _ as getMcpProviderErrorAttributes, a as serviceAccountOnly, c as createMcpServiceAccountClientProvider, d as PluginMcpClient, f as McpProviderError, g as getMcpAwareTelemetryMessage, h as getMcpAwareErrorType, i as serviceAccountAllows, l as getMcpServiceAccountCredentials, m as McpToolError, p as McpServiceAccountRequiredError, u as McpAuthorizationRequiredError, v as toMcpProviderError } from "./service-account-DIyz_9Uh.js";
32
+ import { A as SCHEDULED_AUTOMATION_SYSTEM_ACTOR, D as taskOutcomeInputSchema, E as automationTitleSchema, F as scheduleIntentFromTool, I as toolScheduleIntentSchema, L as weekdaySchema, N as ScheduleIntentError, P as compileScheduleIntent, T as automationInstructionToolSchema, k as eventAutomationTriggerSchema, l as automationListQuerySchema } from "./automation-Cql9h2vO.js";
33
33
  import { n as privateTraceResultAttributes } from "./private-trace-result-CE7_lEdq.js";
34
34
  import { streamSimple } from "@earendil-works/pi-ai/compat";
35
35
  import { createGatewayProvider } from "@ai-sdk/gateway";
@@ -56,8 +56,8 @@ import { Bash, defineCommand } from "just-bash";
56
56
  import { structuredPatch } from "diff";
57
57
  import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js";
58
58
  import { Kind } from "@sinclair/typebox";
59
- import https from "node:https";
60
59
  import { NodeHtmlMarkdown } from "node-html-markdown";
60
+ import https from "node:https";
61
61
  import { Value } from "@sinclair/typebox/value";
62
62
  import { CodemodeSandbox, renderToolSignature } from "@earendil-works/pi-codemode";
63
63
  // src/chat/sandbox/skill-sandbox.ts
@@ -6594,6 +6594,19 @@ var McpToolManager = class {
6594
6594
  this.actorClientsByProvider.set(provider, actorClient);
6595
6595
  return actorClient;
6596
6596
  }
6597
+ /**
6598
+ * Record a completed call to an audit tool, with the account that made it.
6599
+ * Arguments stay out: the conversation history keeps them.
6600
+ */
6601
+ logToolCallAudit(plugin, toolName, attributes) {
6602
+ const usedServiceAccount = this.serviceAccountProviders.has(plugin.manifest.name) && serviceAccountAllows(plugin.manifest, { tool: toolName });
6603
+ logAudit("mcp.tool_call.completed", {
6604
+ ...attributes,
6605
+ "mcp.method.name": "tools/call",
6606
+ "app.plugin.name": plugin.manifest.name,
6607
+ "app.credential.account": usedServiceAccount ? "service_account" : "actor"
6608
+ });
6609
+ }
6597
6610
  toManagedTool(plugin, client, tool) {
6598
6611
  const outputSchema = toOptionalRecord(tool.outputSchema);
6599
6612
  const annotations = tool.annotations;
@@ -6630,6 +6643,10 @@ var McpToolManager = class {
6630
6643
  try {
6631
6644
  const result = await (await this.clientForTool(plugin, client, tool.name)).callTool(tool.name, resolvedArgs, options?.signal);
6632
6645
  if ("isError" in result && result.isError) throw new McpToolError(extractMcpErrorMessage(result));
6646
+ if (plugin.manifest.mcp?.auditTools?.includes(tool.name)) this.logToolCallAudit(plugin, tool.name, {
6647
+ "gen_ai.tool.name": managedToolName,
6648
+ ...options?.toolCallId ? { "gen_ai.tool.call.id": options.toolCallId } : void 0
6649
+ });
6633
6650
  const resultAttribute = serializeMcpPayload(result, conversationPrivacy, { privateMetadata: true });
6634
6651
  if (resultAttribute) setSpanAttributes({ "gen_ai.tool.call.result": resultAttribute });
6635
6652
  const providerContent = boundMcpContent(toAgentToolContent(result));
@@ -8050,7 +8067,8 @@ async function assertConversationNotPurged(db, conversationId) {
8050
8067
  }
8051
8068
  /** Mark a just-written row for deletion and drop its unused object. */
8052
8069
  async function rejectPurgedAttachmentWrite(args) {
8053
- await args.db.db().update(juniorAttachments).set({ deleteRequestedAt: args.now }).where(eq(juniorAttachments.id, args.id));
8070
+ const db = args.db.db();
8071
+ await db.with(conversationDetailTouch(db, [args.conversationId])).update(juniorAttachments).set({ deleteRequestedAt: args.now }).where(eq(juniorAttachments.id, args.id));
8054
8072
  await bestEffortDelete(args.storage, args.storageKey);
8055
8073
  throw purgedConversationError(args.conversationId);
8056
8074
  }
@@ -8126,7 +8144,7 @@ async function storeAttachment(args) {
8126
8144
  throw purgedConversationError(args.conversationId);
8127
8145
  }
8128
8146
  const oldStorageKey = existing.storageKey;
8129
- if ((await args.db.db().update(juniorAttachments).set({
8147
+ if ((await args.db.db().with(conversationDetailTouch(args.db.db(), [args.conversationId])).update(juniorAttachments).set({
8130
8148
  deleteRequestedAt: null,
8131
8149
  storageKey
8132
8150
  }).where(and(eq(juniorAttachments.id, id), isNotNull(juniorAttachments.deleteRequestedAt))).returning({ id: juniorAttachments.id })).length > 0) {
@@ -8156,7 +8174,7 @@ async function storeAttachment(args) {
8156
8174
  }
8157
8175
  let inserted = [];
8158
8176
  try {
8159
- inserted = await args.db.db().insert(juniorAttachments).values({
8177
+ inserted = await args.db.db().with(conversationDetailTouch(args.db.db(), [args.conversationId])).insert(juniorAttachments).values({
8160
8178
  id,
8161
8179
  conversationId: args.conversationId,
8162
8180
  storageProvider: args.storage.provider,
@@ -8204,7 +8222,7 @@ async function storeAttachment(args) {
8204
8222
  await bestEffortDelete(args.storage, storageKey);
8205
8223
  throw purgedConversationError(args.conversationId);
8206
8224
  }
8207
- if ((await args.db.db().update(juniorAttachments).set({
8225
+ if ((await args.db.db().with(conversationDetailTouch(args.db.db(), [args.conversationId])).update(juniorAttachments).set({
8208
8226
  deleteRequestedAt: null,
8209
8227
  storageKey
8210
8228
  }).where(and(eq(juniorAttachments.id, id), isNotNull(juniorAttachments.deleteRequestedAt))).returning({ id: juniorAttachments.id })).length > 0) {
@@ -8272,7 +8290,7 @@ async function storeAttachments(args) {
8272
8290
  /** Mark attachments unavailable when their conversation content is purged. */
8273
8291
  async function requestAttachmentDeletion(db, conversationIds, nowMs) {
8274
8292
  if (conversationIds.length === 0) return;
8275
- await db.db().update(juniorAttachments).set({ deleteRequestedAt: new Date(nowMs) }).where(and(inArray(juniorAttachments.conversationId, conversationIds), isNull(juniorAttachments.deleteRequestedAt)));
8293
+ await db.db().with(conversationDetailTouch(db.db(), conversationIds)).update(juniorAttachments).set({ deleteRequestedAt: new Date(nowMs) }).where(and(inArray(juniorAttachments.conversationId, conversationIds), isNull(juniorAttachments.deleteRequestedAt)));
8276
8294
  }
8277
8295
  /**
8278
8296
  * Delete purged attachments in one bounded batch.
@@ -8292,7 +8310,9 @@ async function collectAttachmentGarbage(args) {
8292
8310
  await args.storage.delete(rows.map((row) => row.storageKey));
8293
8311
  const stillEligible = await args.db.db().select({ id: juniorAttachments.id }).from(juniorAttachments).innerJoin(juniorConversations, eq(juniorAttachments.conversationId, juniorConversations.conversationId)).where(and(inArray(juniorAttachments.id, rows.map((row) => row.id)), or(lte(juniorAttachments.createdAt, expiresBefore), isNotNull(juniorAttachments.deleteRequestedAt), isNotNull(juniorConversations.transcriptPurgedAt))));
8294
8312
  if (stillEligible.length === 0) return { deleted: 0 };
8295
- return { deleted: (await args.db.db().delete(juniorAttachments).where(inArray(juniorAttachments.id, stillEligible.map((row) => row.id))).returning({ id: juniorAttachments.id })).length };
8313
+ const removed = await args.db.db().delete(juniorAttachments).where(inArray(juniorAttachments.id, stillEligible.map((row) => row.id))).returning({ conversationId: juniorAttachments.conversationId });
8314
+ await touchConversationDetail(args.db.db(), removed.map((row) => row.conversationId));
8315
+ return { deleted: removed.length };
8296
8316
  }
8297
8317
  // src/chat/attachments/images.ts
8298
8318
  var images_exports = /* @__PURE__ */ __exportAll({
@@ -13133,6 +13153,40 @@ function extractCanvasId(input) {
13133
13153
  return;
13134
13154
  }
13135
13155
  }
13156
+ // src/chat/slack/tool-support/canvas/html.ts
13157
+ const canvasHtmlConverter = new NodeHtmlMarkdown({
13158
+ bulletMarker: "-",
13159
+ codeBlockStyle: "fenced",
13160
+ maxConsecutiveNewlines: 2
13161
+ }, { lnk: ({ node }) => ({
13162
+ prefix: "[",
13163
+ postfix: `](${node.getAttribute("href") ?? ""})`
13164
+ }) });
13165
+ const listItemTranslator = canvasHtmlConverter.translators.get("li");
13166
+ canvasHtmlConverter.translators.set("li", (context) => {
13167
+ const config = typeof listItemTranslator === "function" ? listItemTranslator(context) : listItemTranslator;
13168
+ if (context.node.closest("[data-section-style]")?.getAttribute("data-section-style") !== "7") return config;
13169
+ const checkbox = context.node.classList.contains("checked") ? "[x] " : "[ ] ";
13170
+ return {
13171
+ ...config,
13172
+ prefix: `${config?.prefix ?? ""}${checkbox}`
13173
+ };
13174
+ });
13175
+ const leadingHtmlTag = /^\s*<[a-z][a-z0-9-]*[\s/>]/i;
13176
+ /**
13177
+ * Convert a downloaded canvas body to Markdown. Canvas writes take Markdown,
13178
+ * so an HTML body passed back unchanged renders as escaped HTML text.
13179
+ */
13180
+ function canvasBodyToMarkdown(body, title) {
13181
+ if (!leadingHtmlTag.test(body)) return body;
13182
+ const markdown = canvasHtmlConverter.translate(body).trim();
13183
+ const titleHeading = title ? canvasHtmlConverter.translate(`<h1>${escapeHtml(title)}</h1>`).trim() : void 0;
13184
+ if (titleHeading && markdown.split("\n", 1)[0] === titleHeading) return markdown.slice(titleHeading.length).trimStart();
13185
+ return markdown;
13186
+ }
13187
+ function escapeHtml(text) {
13188
+ return text.replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;");
13189
+ }
13136
13190
  // src/chat/slack/tool-support/canvas/markdown.ts
13137
13191
  function getListType(marker) {
13138
13192
  return /^\d/.test(marker) ? "numbered" : "bullet";
@@ -13362,10 +13416,10 @@ function isCanvasFile(file) {
13362
13416
  return filetype === "quip" || filetype === "canvas" || mimetype.includes("quip") || mimetype.includes("canvas");
13363
13417
  }
13364
13418
  /**
13365
- * Read a Slack canvas the bot has access to and return its raw downloadable
13366
- * content. Slack does not expose a structured canvas-read API, so we fetch
13367
- * file metadata via `files.info` and download the canvas body via the private
13368
- * file URL with the bot token.
13419
+ * Read a Slack canvas the bot has access to and return its body as Markdown.
13420
+ * Slack does not expose a structured canvas-read API, so we fetch file
13421
+ * metadata via `files.info` and download the canvas body via the private file
13422
+ * URL with the bot token.
13369
13423
  */
13370
13424
  async function readCanvas(canvasIdOrUrl) {
13371
13425
  const canvasId = extractCanvasId(canvasIdOrUrl);
@@ -13380,13 +13434,14 @@ async function readCanvas(canvasIdOrUrl) {
13380
13434
  const downloadUrl = file.url_private_download ?? file.url_private;
13381
13435
  if (!downloadUrl) throw new Error("Canvas has no downloadable URL; bot token may lack file access.");
13382
13436
  const buffer = await downloadPrivateSlackFile(downloadUrl);
13437
+ const title = file.title ?? file.name;
13383
13438
  return {
13384
13439
  canvasId,
13385
- title: file.title ?? file.name,
13440
+ title,
13386
13441
  permalink: file.permalink,
13387
13442
  mimetype: file.mimetype,
13388
13443
  filetype: file.filetype,
13389
- content: buffer.toString("utf-8"),
13444
+ content: canvasBodyToMarkdown(buffer.toString("utf-8"), title),
13390
13445
  byteLength: buffer.byteLength
13391
13446
  };
13392
13447
  }
@@ -17876,6 +17931,7 @@ async function runCodeModeScript(run) {
17876
17931
  });
17877
17932
  call.status = undeliverable ? "error" : "ok";
17878
17933
  if (undeliverable) call.error = cut(undeliverable, MAX_CALL_ERROR_CHARS);
17934
+ if (outcome.nudges.length > 0) call.nudges = outcome.nudges;
17879
17935
  return;
17880
17936
  }
17881
17937
  case "rejected":
@@ -18142,9 +18198,7 @@ const STATUS_TEXT = {
18142
18198
  not_started: "not started"
18143
18199
  };
18144
18200
  function renderCall(call, index) {
18145
- const line = `${index + 1}. ${call.toolName}: ${STATUS_TEXT[call.status]}`;
18146
- if (!call.error) return line;
18147
- return `${line}\n ${call.error.replace(/\n/g, "\n ")}`;
18201
+ return [`${index + 1}. ${call.toolName}: ${STATUS_TEXT[call.status]}`, ...[...call.error ? [call.error] : [], ...(call.nudges ?? []).map(renderToolResultNudge)].map((note) => ` ${note.replace(/\n/g, "\n ")}`)].join("\n");
18148
18202
  }
18149
18203
  /** The output and return value sections, cut or in full. */
18150
18204
  function renderBody(output, value) {
@@ -18255,6 +18309,20 @@ async function untilPreempted(work, signal) {
18255
18309
  }
18256
18310
  }
18257
18311
  /**
18312
+ * Add plugin guidance after the tool's own content. Details stay the same, so
18313
+ * structured (JSON) output is not changed.
18314
+ */
18315
+ function withToolResultNudges(result, nudges) {
18316
+ if (nudges.length === 0) return result;
18317
+ return {
18318
+ ...result,
18319
+ content: [...result.content, ...nudges.map((nudge) => ({
18320
+ type: "text",
18321
+ text: renderToolResultNudge(nudge)
18322
+ }))]
18323
+ };
18324
+ }
18325
+ /**
18258
18326
  * Create the path every tool call takes: argument checks, plugin hooks,
18259
18327
  * action review, credentials and auth handling, then the executor, under one
18260
18328
  * `gen_ai.execute_tool` span.
@@ -18340,12 +18408,17 @@ function createToolPipeline(options) {
18340
18408
  conversationPrivacy: effectiveConversationPrivacy,
18341
18409
  toolCallId
18342
18410
  })), signal);
18343
- const normalized = normalizeToolResult(result, {
18411
+ const toolResult = normalizeToolResult(result, {
18344
18412
  requireStructuredResult: Boolean(toolDef.outputSchema),
18345
18413
  toolName
18346
18414
  });
18347
- if (isSandbox && pluginAuthOrchestration) await pluginAuthOrchestration.maybeHandleAuthSignal(normalized.details);
18348
- const resultAttributeValue = reportedToolResult(result, isSandbox, normalized);
18415
+ if (isSandbox && pluginAuthOrchestration) await pluginAuthOrchestration.maybeHandleAuthSignal(toolResult.details);
18416
+ const nudges = agentHooks ? await agentHooks.afterToolExecute({
18417
+ input: toolInput,
18418
+ name: toolName,
18419
+ ...signal ? { signal } : void 0
18420
+ }) : [];
18421
+ const resultAttributeValue = reportedToolResult(result, isSandbox, toolResult);
18349
18422
  let projectedPrivateResult;
18350
18423
  let hasProjectedPrivateResult = false;
18351
18424
  if (effectiveConversationPrivacy === "private" && toolDef.privateTraceResult) try {
@@ -18373,17 +18446,21 @@ function createToolPipeline(options) {
18373
18446
  toolCallId,
18374
18447
  toolName
18375
18448
  });
18376
- return normalized;
18449
+ return {
18450
+ result: toolResult,
18451
+ nudges
18452
+ };
18377
18453
  };
18378
18454
  const executeDefinition = async (args) => {
18379
18455
  const prepared = await prepareCall(args);
18380
18456
  const reviews = await reviewToolActions([prepared.action], actionReview, args.signal);
18381
- return await executeReviewed({
18457
+ const { result, nudges } = await executeReviewed({
18382
18458
  prepared,
18383
18459
  review: reviews.get(args.toolCallId),
18384
18460
  signal: args.signal,
18385
18461
  setSpanAttributes: args.setSpanAttributes
18386
18462
  });
18463
+ return withToolResultNudges(result, nudges);
18387
18464
  };
18388
18465
  const reportStatus = async (executionToolName, params) => {
18389
18466
  const status = executionToolName === "updatePlan" ? buildPlanStatus(params) : executionToolName === "reportProgress" ? buildReportedProgressStatus(params) : void 0;
@@ -18512,6 +18589,7 @@ function createToolPipeline(options) {
18512
18589
  */
18513
18590
  async callFromScript(call) {
18514
18591
  const { signal, tool, toolCallId, toolName } = call;
18592
+ let nudges = [];
18515
18593
  let traced;
18516
18594
  try {
18517
18595
  traced = await traceCall({
@@ -18536,12 +18614,14 @@ function createToolPipeline(options) {
18536
18614
  toolDef: tool,
18537
18615
  toolName
18538
18616
  });
18539
- return await executeReviewed({
18617
+ const reviewed = await executeReviewed({
18540
18618
  prepared,
18541
18619
  review: await call.review(prepared.action),
18542
18620
  signal,
18543
18621
  setSpanAttributes
18544
18622
  });
18623
+ nudges = reviewed.nudges;
18624
+ return reviewed.result;
18545
18625
  });
18546
18626
  } catch (error) {
18547
18627
  if (error instanceof AuthorizationPauseError || error instanceof AuthorizationFlowDisabledError) throw error;
@@ -18552,7 +18632,8 @@ function createToolPipeline(options) {
18552
18632
  }
18553
18633
  if (traced.kind === "completed") return {
18554
18634
  status: "ok",
18555
- result: traced.result
18635
+ result: traced.result,
18636
+ nudges
18556
18637
  };
18557
18638
  if (traced.kind === "preempted") return { status: "preempted" };
18558
18639
  const projected = actionReview?.projectToolResult(toolCallId, {
@@ -19883,28 +19964,33 @@ async function readRootConversation(args) {
19883
19964
  async function createRunSandbox(args) {
19884
19965
  const pluginHooks = createPluginHookRunner({
19885
19966
  actor: args.currentActor,
19886
- actors: args.currentActors
19967
+ actors: args.currentActors,
19968
+ sandbox: () => ({
19969
+ workspace: agentSandbox.workspace,
19970
+ workspaceId: () => agentSandbox.sandboxRef()?.workspaceId
19971
+ })
19887
19972
  });
19888
19973
  const workspace = args.state.sandboxRef?.workspaceId ? await getWorkspace(getDb(), args.state.sandboxRef.workspaceId) : void 0;
19974
+ const agentSandbox = createAgentSandbox({
19975
+ sandboxRef: args.state.sandboxRef,
19976
+ workspace,
19977
+ skills: args.availableSkills,
19978
+ traceContext: args.spanContext,
19979
+ tracePropagation: args.run.environment?.sandboxTracePropagation,
19980
+ egressSignals: args.run.environment?.sandboxEgressSignals,
19981
+ conversationId: args.run.conversationId,
19982
+ credentialEgress: args.run.credentialContext,
19983
+ actor: args.currentActor,
19984
+ locationConfiguration: args.run.environment?.locationConfiguration,
19985
+ configurationValues: args.configurationValues,
19986
+ getActiveSkill: () => args.skillSandbox.getActiveSkill(),
19987
+ prepareSandbox: pluginHooks.prepareSandbox,
19988
+ prepareWorkspace: async (sandbox, recipe, signal) => await pluginHooks.prepareWorkspace(sandbox, recipe.repos, signal),
19989
+ onSandboxRefChanged: args.onSandboxRefChanged,
19990
+ persistSandboxRef: args.durability.onSandboxRefChanged
19991
+ });
19889
19992
  return {
19890
- agentSandbox: createAgentSandbox({
19891
- sandboxRef: args.state.sandboxRef,
19892
- workspace,
19893
- skills: args.availableSkills,
19894
- traceContext: args.spanContext,
19895
- tracePropagation: args.run.environment?.sandboxTracePropagation,
19896
- egressSignals: args.run.environment?.sandboxEgressSignals,
19897
- conversationId: args.run.conversationId,
19898
- credentialEgress: args.run.credentialContext,
19899
- actor: args.currentActor,
19900
- locationConfiguration: args.run.environment?.locationConfiguration,
19901
- configurationValues: args.configurationValues,
19902
- getActiveSkill: () => args.skillSandbox.getActiveSkill(),
19903
- prepareSandbox: pluginHooks.prepareSandbox,
19904
- prepareWorkspace: async (sandbox, recipe, signal) => await pluginHooks.prepareWorkspace(sandbox, recipe.repos, signal),
19905
- onSandboxRefChanged: args.onSandboxRefChanged,
19906
- persistSandboxRef: args.durability.onSandboxRefChanged
19907
- }),
19993
+ agentSandbox,
19908
19994
  pluginHooks
19909
19995
  };
19910
19996
  }
@@ -1,2 +1,2 @@
1
- import { $ as automationExecutionSchema, $n as ConversationPendingMessage, $r as codeChangeSummaryReportSchema, $t as LocationParams, A as StatReport, An as stopConversationTurnResponseSchema, Ar as conversationParamsSchema, At as PersonalTokenMetadata, B as AutomationListQuery, Bn as ArchiveConversationResponse, Br as forkConversationBodySchema, Bt as serviceAccountSchema, C as pluginPackageContentItemReportSchema, Ci as MAX_INPUT_IMAGES, Cn as ConversationChildAgent, Cr as conversationDetailQuerySchema, Ct as workspaceBodySchema, D as runtimeInfoReportSchema, Dn as ConversationReadPosition, Dr as conversationEventsQuerySchema, Dt as workspaceSchema, E as pluginsSchema, Ei as INPUT_IMAGE_TYPES, En as conversationChildAgentsReportSchema, Er as conversationEventPageSchema, Et as workspaceRepoSchema, F as AutomationExecution, Fn as GuardianStats, Fr as conversationReportEventDataSchema, Ft as personalTokenParamsSchema, G as AutomationSummary, Gn as ConversationAuxiliaryCosts, Gr as conversationTurnFailureReasonSchema, Gt as disconnectConnectionResponseSchema, H as AutomationRunList, Hn as CancelConversationPendingMessagesResponse, Hr as steerConversationPendingMessagesBodySchema, Ht as connectionListSchema, I as AutomationExecutionDay, In as conversationStatsReportSchema, Ir as conversationReportEventSchema, It as revokePersonalTokenResponseSchema, J as ListedAutomationVersion, Jn as ConversationEventHistory, Jr as CodeOverviewReport, Jt as apiErrorSchema, K as AutomationUpdate, Kn as ConversationCost, Kr as CodeActivityDay, Kt as startConnectionResponseSchema, L as AutomationExecutionList, Ln as AcceptedConversationMessage, Lr as conversationSummaryReportSchema, Lt as disconnectServiceAccountResponseSchema, M as statSchema, Mn as ConversationStatsItem, Mr as conversationPendingMessageDeliverySchema, Mt as createdPersonalTokenSchema, N as statsReportSchema, Nn as ConversationStatsReport, Nr as conversationPendingMessageSchema, Nt as personalTokenListSchema, O as skillReportSchema, On as conversationReadPositionSchema, Or as conversationFeedQuerySchema, Ot as USER_CUSTOMIZATION_MAX_CHARS, P as AutomationEdit, Pn as GuardianMetricDay, Pr as conversationPendingMessagesReportSchema, Pt as personalTokenMetadataSchema, Q as automationExecutionListSchema, Qn as ConversationParams, Qr as codeActivityDaySchema, Qt as LocationDirectoryReport, R as AutomationExecutionStatusDay, Rn as ActorIdentity, Rr as createConversationBodySchema, Rt as serviceAccountListSchema, S as pluginOperationalReportSchema, Si as InputImage, Sn as conversationWatchesReportSchema, Sr as conversationAuxiliaryCostsSchema, St as deleteWorkspaceResponseSchema, T as pluginSchema, Ti as MessageAttachment, Tn as conversationChildAgentSchema, Tr as conversationEventHistorySchema, Tt as workspaceParamsSchema, U as AutomationRunWindows, Un as ConversationActivityPreview, Ur as steerConversationPendingMessagesResponseSchema, Ut as connectionParamsSchema, V as AutomationRun, Vn as CancelConversationPendingMessagesBody, Vr as forkConversationResponseSchema, Vt as startServiceAccountSignInResponseSchema, W as AutomationScheduleIntent, Wn as ConversationAgentTreeNode, Wr as conversationTurnFailureCodeSchema, Wt as connectionSchema, X as automationEditSchema, Xn as ConversationFeed, Xr as CodeRepositoryReport, Xt as LocationActorSummaryReport, Y as automationEditErrorSchema, Yn as ConversationEventPage, Yr as CodePersonReport, Yt as LocationActivityDayReport, Z as automationEventCatalogSchema, Zn as ConversationModelUsage, Zr as CodeRepositorySummary, Zt as LocationDetailReport, _ as RuntimeInfoReport, _i as UserInputRequest, _n as personParamsSchema, _r as archiveConversationBodySchema, _t as scheduledAutomationSummarySchema, a as reviewItemCountSchema, ai as codeRepositorySummarySchema, an as ActorActivityDayReport, ar as ConversationReportStatus, at as automationRunListSchema, b as healthReportSchema, bi as normalizeUserInputAnswer, bn as ConversationWatchesReport, br as cancelConversationPendingMessagesResponseSchema, bt as WorkspaceReport, c as reviewItemWaitingConversationsSchema, ci as DailyConversationActivity, cn as ActorProfileReport, cr as ConversationSurface, ct as automationScheduleIntentSchema, d as Plugin, di as messageCardText, dn as ActorWindowMetrics, dr as ConversationUsage, dt as automationUpdateSchema, ei as codeChangeSummarySchema, en as LocationSummaryReport, er as ConversationPendingMessageDelivery, et as automationExecutionStatusDaySchema, f as PluginOperationalReport, fi as resolveMessageCards, fn as PeopleActivityDayReport, fr as CreateConversationBody, ft as automationVersionActivateSchema, g as Plugins, gi as UserInputField, gn as actorProfileReportSchema, gr as acceptedConversationMessageSchema, gt as eventAutomationSummarySchema, h as PluginPackageContentReport, hi as UserInputAnswer, hn as actorDirectoryReportSchema, hr as SteerConversationPendingMessagesResponse, ht as automationVersionSchema, i as reviewItemActionSchema, ii as codeRepositoryReportSchema, in as locationParamsSchema, ir as ConversationReportMessageEvent, it as automationParamsSchema, j as StatsReport, jn as ConversationMetricDay, jr as conversationPendingAuthorizationSchema, jt as createPersonalTokenBodySchema, k as skillReportsSchema, kn as StopConversationTurnResponse, kr as conversationFeedSchema, kt as userCustomizationSchema, l as ReviewItemChangeRecord, li as dailyConversationActivitySchema, ln as ActorSummaryReport, lr as ConversationTurnFailureCode, lt as automationSchedulePreviewSchema, m as PluginPackageContentItemReport, mi as USER_INPUT_NOTE, mn as PersonalSpendReport, mr as SteerConversationPendingMessagesBody, mt as automationVersionParamsSchema, n as ReviewItemActionBody, ni as codePersonReportSchema, nn as locationDetailReportSchema, nr as ConversationReportEvent, nt as automationListQuerySchema, o as reviewItemListSchema, oi as ConversationChildAgentTotals, on as ActorDirectoryReport, or as ConversationSourceTask, ot as automationRunSchema, p as PluginOperationalReportFeed, pi as AutomationCard, pn as PersonParams, pr as CreateConversationMessageBody, pt as automationVersionListSchema, q as AutomationVersionList, qn as ConversationDetailReport, qr as CodeChangeSummaryReport, qt as ApiError, r as ReviewItemPayload, ri as codeRepositoryParamsSchema, rn as locationDirectoryReportSchema, rr as ConversationReportEventData, rt as automationListSchema, s as reviewItemSchema, si as conversationChildAgentTotalsSchema, sn as ActorDirectoryWindows, sr as ConversationSummaryReport, st as automationRunWindowsSchema, t as OwnedObjectAnnotation, ti as codeOverviewReportSchema, tn as locationActivityDayReportSchema, tr as ConversationPendingMessagesReport, tt as automationExecutionStatusSchema, u as HealthReport, ui as MessageCard, un as ActorTotalsReport, ur as ConversationTurnFailureReason, ut as automationSummarySchema, v as SkillReport, vi as buttonUserInputField, vn as personalSpendReportSchema, vr as archiveConversationResponseSchema, vt as BaselineSnapshotReport, w as pluginPackageContentReportSchema, wi as MAX_INPUT_IMAGE_BYTES, wn as ConversationChildAgentsReport, wr as conversationDetailReportSchema, wt as workspaceListSchema, x as pluginOperationalReportFeedSchema, xi as webMessageId, xn as conversationWatchSchema, xr as conversationActivityPreviewSchema, xt as baselineSnapshotSchema, y as SkillReports, yi as isEmptyUserInputAnswer, yn as ConversationWatch, yr as cancelConversationPendingMessagesBodySchema, yt as WorkspaceListReport, z as AutomationList, zn as ArchiveConversationBody, zr as createConversationMessageBodySchema, zt as serviceAccountParamsSchema } from "../schema-CaUWl2EV.js";
2
- 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 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 ConversationChildAgentTotals, 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 ConversationReadPosition, type ConversationReportEvent, type ConversationReportEventData, type ConversationReportMessageEvent, type ConversationReportStatus, type ConversationSourceTask, type ConversationStatsItem, type ConversationStatsReport, type ConversationSummaryReport, type ConversationSurface, type ConversationTurnFailureCode, type ConversationTurnFailureReason, type ConversationUsage, type ConversationWatch, type ConversationWatchesReport, type CreateConversationBody, type CreateConversationMessageBody, type DailyConversationActivity, type GuardianMetricDay, type GuardianStats, type HealthReport, INPUT_IMAGE_TYPES, type InputImage, type ListedAutomationVersion, 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 ReviewItemActionBody, type ReviewItemChangeRecord, type ReviewItemPayload, type RuntimeInfoReport, type SkillReport, type SkillReports, type StatReport, type StatsReport, type SteerConversationPendingMessagesBody, type SteerConversationPendingMessagesResponse, type StopConversationTurnResponse, USER_CUSTOMIZATION_MAX_CHARS, USER_INPUT_NOTE, type UserInputAnswer, type UserInputField, type UserInputRequest, type WorkspaceListReport, type WorkspaceReport, 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, buttonUserInputField, cancelConversationPendingMessagesBodySchema, cancelConversationPendingMessagesResponseSchema, codeActivityDaySchema, codeChangeSummaryReportSchema, codeChangeSummarySchema, codeOverviewReportSchema, codePersonReportSchema, codeRepositoryParamsSchema, codeRepositoryReportSchema, codeRepositorySummarySchema, connectionListSchema, connectionParamsSchema, connectionSchema, conversationActivityPreviewSchema, conversationAuxiliaryCostsSchema, conversationChildAgentSchema, conversationChildAgentTotalsSchema, conversationChildAgentsReportSchema, conversationDetailQuerySchema, conversationDetailReportSchema, conversationEventHistorySchema, conversationEventPageSchema, conversationEventsQuerySchema, conversationFeedQuerySchema, conversationFeedSchema, conversationParamsSchema, conversationPendingAuthorizationSchema, conversationPendingMessageDeliverySchema, conversationPendingMessageSchema, conversationPendingMessagesReportSchema, conversationReadPositionSchema, conversationReportEventDataSchema, conversationReportEventSchema, conversationStatsReportSchema, conversationSummaryReportSchema, conversationTurnFailureCodeSchema, conversationTurnFailureReasonSchema, conversationWatchSchema, conversationWatchesReportSchema, createConversationBodySchema, createConversationMessageBodySchema, createPersonalTokenBodySchema, createdPersonalTokenSchema, dailyConversationActivitySchema, deleteWorkspaceResponseSchema, disconnectConnectionResponseSchema, disconnectServiceAccountResponseSchema, eventAutomationSummarySchema, forkConversationBodySchema, forkConversationResponseSchema, healthReportSchema, isEmptyUserInputAnswer, locationActivityDayReportSchema, locationDetailReportSchema, locationDirectoryReportSchema, locationParamsSchema, messageCardText, normalizeUserInputAnswer, personParamsSchema, personalSpendReportSchema, personalTokenListSchema, personalTokenMetadataSchema, personalTokenParamsSchema, pluginOperationalReportFeedSchema, pluginOperationalReportSchema, pluginPackageContentItemReportSchema, pluginPackageContentReportSchema, pluginSchema, pluginsSchema, resolveMessageCards, reviewItemActionSchema, reviewItemCountSchema, reviewItemListSchema, reviewItemSchema, reviewItemWaitingConversationsSchema, revokePersonalTokenResponseSchema, runtimeInfoReportSchema, scheduledAutomationSummarySchema, serviceAccountListSchema, serviceAccountParamsSchema, serviceAccountSchema, skillReportSchema, skillReportsSchema, startConnectionResponseSchema, startServiceAccountSignInResponseSchema, statSchema, statsReportSchema, steerConversationPendingMessagesBodySchema, steerConversationPendingMessagesResponseSchema, stopConversationTurnResponseSchema, userCustomizationSchema, webMessageId, workspaceBodySchema, workspaceListSchema, workspaceParamsSchema, workspaceRepoSchema, workspaceSchema };
1
+ import { $ as automationExecutionSchema, $n as ConversationAgentTreeNode, $r as CodeActivityDay, $t as LocationParams, A as StatReport, Ai as MAX_INPUT_IMAGES, An as pinConversationResponseSchema, Ar as conversationDetailQuerySchema, At as PersonalTokenMetadata, B as AutomationListQuery, Bn as conversationStatsReportSchema, Br as conversationPendingMessageSchema, Bt as serviceAccountSchema, C as pluginPackageContentItemReportSchema, Ci as UserInputField, Cn as ConversationChildAgent, Cr as SteerConversationPendingMessagesBody, Ct as workspaceBodySchema, D as runtimeInfoReportSchema, Di as normalizeUserInputAnswer, Dn as PinConversationBody, Dr as cancelConversationPendingMessagesResponseSchema, Dt as workspaceSchema, E as pluginsSchema, Ei as isEmptyUserInputAnswer, En as conversationChildAgentsReportSchema, Er as cancelConversationPendingMessagesBodySchema, Et as workspaceRepoSchema, F as AutomationExecution, Fn as ConversationMetricDay, Fr as conversationFeedQuerySchema, Ft as personalTokenParamsSchema, G as AutomationSummary, Gn as archiveConversationResponseSchema, Gr as createConversationBodySchema, Gt as disconnectConnectionResponseSchema, H as AutomationRunList, Hn as ArchiveConversationResponse, Hr as conversationReportEventDataSchema, Ht as connectionListSchema, I as AutomationExecutionDay, In as ConversationStatsItem, Ir as conversationFeedSchema, It as revokePersonalTokenResponseSchema, J as ListedAutomationVersion, Jn as AcceptedConversationMessage, Jr as forkConversationResponseSchema, Jt as apiErrorSchema, K as AutomationUpdate, Kn as archiveDoneConversationsResponseSchema, Kr as createConversationMessageBodySchema, Kt as startConnectionResponseSchema, L as AutomationExecutionList, Ln as ConversationStatsReport, Lr as conversationParamsSchema, Lt as disconnectServiceAccountResponseSchema, M as statSchema, Mi as MessageAttachment, Mn as conversationReadPositionSchema, Mr as conversationEventHistorySchema, Mt as createdPersonalTokenSchema, N as statsReportSchema, Ni as INPUT_IMAGE_TYPES, Nn as StopConversationTurnResponse, Nr as conversationEventPageSchema, Nt as personalTokenListSchema, O as skillReportSchema, Oi as webMessageId, On as PinConversationResponse, Or as conversationActivityPreviewSchema, Ot as USER_CUSTOMIZATION_MAX_CHARS, P as AutomationEdit, Pn as stopConversationTurnResponseSchema, Pr as conversationEventsQuerySchema, Pt as personalTokenMetadataSchema, Q as automationExecutionListSchema, Qn as ConversationActivityPreview, Qr as conversationTurnFailureReasonSchema, Qt as LocationDirectoryReport, R as AutomationExecutionStatusDay, Rn as GuardianMetricDay, Rr as conversationPendingAuthorizationSchema, Rt as serviceAccountListSchema, S as pluginOperationalReportSchema, Si as UserInputAnswer, Sn as conversationWatchesReportSchema, Sr as CreateConversationMessageBody, St as deleteWorkspaceResponseSchema, T as pluginSchema, Ti as buttonUserInputField, Tn as conversationChildAgentSchema, Tr as acceptedConversationMessageSchema, Tt as workspaceParamsSchema, U as AutomationRunWindows, Un as ConversationAutoArchive, Ur as conversationReportEventSchema, Ut as connectionParamsSchema, V as AutomationRun, Vn as ArchiveConversationBody, Vr as conversationPendingMessagesReportSchema, Vt as startServiceAccountSignInResponseSchema, W as AutomationScheduleIntent, Wn as archiveConversationBodySchema, Wr as conversationSummaryReportSchema, Wt as connectionSchema, X as automationEditSchema, Xn as CancelConversationPendingMessagesBody, Xr as steerConversationPendingMessagesResponseSchema, Xt as LocationActorSummaryReport, Y as automationEditErrorSchema, Yn as ActorIdentity, Yr as steerConversationPendingMessagesBodySchema, Yt as LocationActivityDayReport, Z as automationEventCatalogSchema, Zn as CancelConversationPendingMessagesResponse, Zr as conversationTurnFailureCodeSchema, Zt as LocationDetailReport, _ as RuntimeInfoReport, _i as MessageCard, _n as personParamsSchema, _r as ConversationSurface, _t as scheduledAutomationSummarySchema, a as reviewItemCountSchema, ai as codeActivityDaySchema, an as ActorActivityDayReport, ar as ConversationFeed, at as automationRunListSchema, b as healthReportSchema, bi as AutomationCard, bn as ConversationWatchesReport, br as ConversationUsage, bt as WorkspaceReport, c as reviewItemWaitingConversationsSchema, ci as codeOverviewReportSchema, cn as ActorProfileReport, cr as ConversationPendingMessage, ct as automationScheduleIntentSchema, d as Plugin, di as codeRepositoryReportSchema, dn as ActorWindowMetrics, dr as ConversationReportEvent, dt as automationUpdateSchema, ei as CodeChangeSummaryReport, en as LocationSummaryReport, er as ConversationAuxiliaryCosts, et as automationExecutionStatusDaySchema, f as PluginOperationalReport, fi as codeRepositorySummarySchema, fn as PeopleActivityDayReport, fr as ConversationReportEventData, ft as automationVersionActivateSchema, g as Plugins, gi as dailyConversationActivitySchema, gn as actorProfileReportSchema, gr as ConversationSummaryReport, gt as eventAutomationSummarySchema, h as PluginPackageContentReport, hi as DailyConversationActivity, hn as actorDirectoryReportSchema, hr as ConversationSourceTask, ht as automationVersionSchema, i as reviewItemActionSchema, ii as CodeRepositorySummary, in as locationParamsSchema, ir as ConversationEventPage, it as automationParamsSchema, j as StatsReport, ji as MAX_INPUT_IMAGE_BYTES, jn as ConversationReadPosition, jr as conversationDetailReportSchema, jt as createPersonalTokenBodySchema, k as skillReportsSchema, ki as InputImage, kn as pinConversationBodySchema, kr as conversationAuxiliaryCostsSchema, kt as userCustomizationSchema, l as ReviewItemChangeRecord, li as codePersonReportSchema, ln as ActorSummaryReport, lr as ConversationPendingMessageDelivery, lt as automationSchedulePreviewSchema, m as PluginPackageContentItemReport, mi as conversationChildAgentTotalsSchema, mn as PersonalSpendReport, mr as ConversationReportStatus, mt as automationVersionParamsSchema, n as ReviewItemActionBody, ni as CodePersonReport, nn as locationDetailReportSchema, nr as ConversationDetailReport, nt as automationListQuerySchema, o as reviewItemListSchema, oi as codeChangeSummaryReportSchema, on as ActorDirectoryReport, or as ConversationModelUsage, ot as automationRunSchema, p as PluginOperationalReportFeed, pi as ConversationChildAgentTotals, pn as PersonParams, pr as ConversationReportMessageEvent, pt as automationVersionListSchema, q as AutomationVersionList, qn as conversationAutoArchiveSchema, qr as forkConversationBodySchema, qt as ApiError, r as ReviewItemPayload, ri as CodeRepositoryReport, rn as locationDirectoryReportSchema, rr as ConversationEventHistory, rt as automationListSchema, s as reviewItemSchema, si as codeChangeSummarySchema, sn as ActorDirectoryWindows, sr as ConversationParams, st as automationRunWindowsSchema, t as OwnedObjectAnnotation, ti as CodeOverviewReport, tn as locationActivityDayReportSchema, tr as ConversationCost, tt as automationExecutionStatusSchema, u as HealthReport, ui as codeRepositoryParamsSchema, un as ActorTotalsReport, ur as ConversationPendingMessagesReport, ut as automationSummarySchema, v as SkillReport, vi as messageCardText, vn as personalSpendReportSchema, vr as ConversationTurnFailureCode, vt as BaselineSnapshotReport, w as pluginPackageContentReportSchema, wi as UserInputRequest, wn as ConversationChildAgentsReport, wr as SteerConversationPendingMessagesResponse, wt as workspaceListSchema, x as pluginOperationalReportFeedSchema, xi as USER_INPUT_NOTE, xn as conversationWatchSchema, xr as CreateConversationBody, xt as baselineSnapshotSchema, y as SkillReports, yi as resolveMessageCards, yn as ConversationWatch, yr as ConversationTurnFailureReason, yt as WorkspaceListReport, z as AutomationList, zn as GuardianStats, zr as conversationPendingMessageDeliverySchema, zt as serviceAccountParamsSchema } from "../schema-B6N2nc6v.js";
2
+ 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 AutomationVersionList, type BaselineSnapshotReport, type CancelConversationPendingMessagesBody, type CancelConversationPendingMessagesResponse, type CodeActivityDay, type CodeChangeSummaryReport, type CodeOverviewReport, type CodePersonReport, type CodeRepositoryReport, type CodeRepositorySummary, type ConversationActivityPreview, type ConversationAgentTreeNode, type ConversationAutoArchive, type ConversationAuxiliaryCosts, type ConversationChildAgent, type ConversationChildAgentTotals, 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 ConversationReadPosition, type ConversationReportEvent, type ConversationReportEventData, type ConversationReportMessageEvent, type ConversationReportStatus, type ConversationSourceTask, type ConversationStatsItem, type ConversationStatsReport, type ConversationSummaryReport, type ConversationSurface, type ConversationTurnFailureCode, type ConversationTurnFailureReason, type ConversationUsage, type ConversationWatch, type ConversationWatchesReport, type CreateConversationBody, type CreateConversationMessageBody, type DailyConversationActivity, type GuardianMetricDay, type GuardianStats, type HealthReport, INPUT_IMAGE_TYPES, type InputImage, type ListedAutomationVersion, 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 PinConversationBody, type PinConversationResponse, type Plugin, type PluginOperationalReport, type PluginOperationalReportFeed, type PluginPackageContentItemReport, type PluginPackageContentReport, type Plugins, type ReviewItemActionBody, type ReviewItemChangeRecord, type ReviewItemPayload, type RuntimeInfoReport, type SkillReport, type SkillReports, type StatReport, type StatsReport, type SteerConversationPendingMessagesBody, type SteerConversationPendingMessagesResponse, type StopConversationTurnResponse, USER_CUSTOMIZATION_MAX_CHARS, USER_INPUT_NOTE, type UserInputAnswer, type UserInputField, type UserInputRequest, type WorkspaceListReport, type WorkspaceReport, acceptedConversationMessageSchema, actorDirectoryReportSchema, actorProfileReportSchema, apiErrorSchema, archiveConversationBodySchema, archiveConversationResponseSchema, archiveDoneConversationsResponseSchema, automationEditErrorSchema, automationEditSchema, automationEventCatalogSchema, automationExecutionListSchema, automationExecutionSchema, automationExecutionStatusDaySchema, automationExecutionStatusSchema, automationListQuerySchema, automationListSchema, automationParamsSchema, automationRunListSchema, automationRunSchema, automationRunWindowsSchema, automationScheduleIntentSchema, automationSchedulePreviewSchema, automationSummarySchema, automationUpdateSchema, automationVersionActivateSchema, automationVersionListSchema, automationVersionParamsSchema, automationVersionSchema, baselineSnapshotSchema, buttonUserInputField, cancelConversationPendingMessagesBodySchema, cancelConversationPendingMessagesResponseSchema, codeActivityDaySchema, codeChangeSummaryReportSchema, codeChangeSummarySchema, codeOverviewReportSchema, codePersonReportSchema, codeRepositoryParamsSchema, codeRepositoryReportSchema, codeRepositorySummarySchema, connectionListSchema, connectionParamsSchema, connectionSchema, conversationActivityPreviewSchema, conversationAutoArchiveSchema, conversationAuxiliaryCostsSchema, conversationChildAgentSchema, conversationChildAgentTotalsSchema, conversationChildAgentsReportSchema, conversationDetailQuerySchema, conversationDetailReportSchema, conversationEventHistorySchema, conversationEventPageSchema, conversationEventsQuerySchema, conversationFeedQuerySchema, conversationFeedSchema, conversationParamsSchema, conversationPendingAuthorizationSchema, conversationPendingMessageDeliverySchema, conversationPendingMessageSchema, conversationPendingMessagesReportSchema, conversationReadPositionSchema, conversationReportEventDataSchema, conversationReportEventSchema, conversationStatsReportSchema, conversationSummaryReportSchema, conversationTurnFailureCodeSchema, conversationTurnFailureReasonSchema, conversationWatchSchema, conversationWatchesReportSchema, createConversationBodySchema, createConversationMessageBodySchema, createPersonalTokenBodySchema, createdPersonalTokenSchema, dailyConversationActivitySchema, deleteWorkspaceResponseSchema, disconnectConnectionResponseSchema, disconnectServiceAccountResponseSchema, eventAutomationSummarySchema, forkConversationBodySchema, forkConversationResponseSchema, healthReportSchema, isEmptyUserInputAnswer, locationActivityDayReportSchema, locationDetailReportSchema, locationDirectoryReportSchema, locationParamsSchema, messageCardText, normalizeUserInputAnswer, personParamsSchema, personalSpendReportSchema, personalTokenListSchema, personalTokenMetadataSchema, personalTokenParamsSchema, pinConversationBodySchema, pinConversationResponseSchema, pluginOperationalReportFeedSchema, pluginOperationalReportSchema, pluginPackageContentItemReportSchema, pluginPackageContentReportSchema, pluginSchema, pluginsSchema, resolveMessageCards, reviewItemActionSchema, reviewItemCountSchema, reviewItemListSchema, reviewItemSchema, reviewItemWaitingConversationsSchema, revokePersonalTokenResponseSchema, runtimeInfoReportSchema, scheduledAutomationSummarySchema, serviceAccountListSchema, serviceAccountParamsSchema, serviceAccountSchema, skillReportSchema, skillReportsSchema, startConnectionResponseSchema, startServiceAccountSignInResponseSchema, statSchema, statsReportSchema, steerConversationPendingMessagesBodySchema, steerConversationPendingMessagesResponseSchema, stopConversationTurnResponseSchema, userCustomizationSchema, webMessageId, workspaceBodySchema, workspaceListSchema, workspaceParamsSchema, workspaceRepoSchema, workspaceSchema };
@@ -1,7 +1,7 @@
1
1
  import { c as conversationTurnFailureReasonSchema, s as conversationTurnFailureCodeSchema, t as INPUT_IMAGE_TYPES } from "../media-DstkkoNP.js";
2
- import { A as createConversationMessageBodySchema, B as messageCardText, C as conversationReportEventSchema, E as conversationSummaryReportSchema, F as conversationChildAgentTotalsSchema, G as MAX_INPUT_IMAGE_BYTES, I as conversationReadPositionSchema, M as forkConversationResponseSchema, N as steerConversationPendingMessagesBodySchema, P as steerConversationPendingMessagesResponseSchema, S as conversationReportEventDataSchema, U as resolveMessageCards, W as MAX_INPUT_IMAGES, _ 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 forkConversationBodySchema, k as createConversationBodySchema, 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-DppJ83Hw.js";
2
+ import { A as forkConversationResponseSchema, D as createConversationBodySchema, H as MAX_INPUT_IMAGES, M as steerConversationPendingMessagesResponseSchema, N as conversationChildAgentTotalsSchema, O as createConversationMessageBodySchema, P as conversationReadPositionSchema, R as messageCardText, U as MAX_INPUT_IMAGE_BYTES, V as resolveMessageCards, _ as conversationPendingMessageDeliverySchema, a as conversationActivityPreviewSchema, b as conversationReportEventDataSchema, c as conversationDetailQuerySchema, d as conversationEventPageSchema, f as conversationEventsQuerySchema, g as conversationPendingAuthorizationSchema, h as conversationParamsSchema, i as cancelConversationPendingMessagesResponseSchema, j as steerConversationPendingMessagesBodySchema, k as forkConversationBodySchema, l as conversationDetailReportSchema, m as conversationFeedSchema, p as conversationFeedQuerySchema, r as cancelConversationPendingMessagesBodySchema, s as conversationAuxiliaryCostsSchema, t as acceptedConversationMessageSchema, u as conversationEventHistorySchema, v as conversationPendingMessageSchema, w as conversationSummaryReportSchema, x as conversationReportEventSchema, y as conversationPendingMessagesReportSchema } from "../conversation-SsASlWL7.js";
3
3
  import { S as userCustomizationSchema, _ as isEmptyUserInputAnswer, b as webMessageId, h as buttonUserInputField, m as USER_INPUT_NOTE, v as normalizeUserInputAnswer, x as USER_CUSTOMIZATION_MAX_CHARS } from "../reporting-window-DgHgwQB3.js";
4
- 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-B8_mC68r.js";
4
+ 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-Cql9h2vO.js";
5
5
  import { a as pluginPackageContentItemReportSchema, c as pluginsSchema, d as skillReportsSchema, i as pluginOperationalReportSchema, l as runtimeInfoReportSchema, n as healthReportSchema, o as pluginPackageContentReportSchema, r as pluginOperationalReportFeedSchema, s as pluginSchema, t as apiErrorSchema, u as skillReportSchema } from "../common-Eu6sx09c.js";
6
- import { $ as codeRepositorySummarySchema, B as dailyConversationActivitySchema, C as createdPersonalTokenSchema, D as revokePersonalTokenResponseSchema, E as personalTokenParamsSchema, F as locationDirectoryReportSchema, G as startConnectionResponseSchema, H as connectionParamsSchema, I as locationParamsSchema, J as codeChangeSummarySchema, K as codeActivityDaySchema, M as personalSpendReportSchema, N as locationActivityDayReportSchema, O as actorDirectoryReportSchema, P as locationDetailReportSchema, Q as codeRepositoryReportSchema, S as createPersonalTokenBodySchema, T as personalTokenMetadataSchema, U as connectionSchema, V as connectionListSchema, W as disconnectConnectionResponseSchema, X as codePersonReportSchema, Y as codeOverviewReportSchema, Z as codeRepositoryParamsSchema, _ as disconnectServiceAccountResponseSchema, a as workspaceBodySchema, at as conversationStatsReportSchema, b as serviceAccountSchema, c as workspaceRepoSchema, d as reviewItemCountSchema, et as conversationWatchSchema, g as reviewItemWaitingConversationsSchema, h as reviewItemSchema, i as deleteWorkspaceResponseSchema, it as stopConversationTurnResponseSchema, j as personParamsSchema, k as actorProfileReportSchema, l as workspaceSchema, n as statsReportSchema, nt as conversationChildAgentSchema, o as workspaceListSchema, p as reviewItemListSchema, q as codeChangeSummaryReportSchema, r as baselineSnapshotSchema, rt as conversationChildAgentsReportSchema, s as workspaceParamsSchema, t as statSchema, tt as conversationWatchesReportSchema, u as reviewItemActionSchema, v as serviceAccountListSchema, w as personalTokenListSchema, x as startServiceAccountSignInResponseSchema, y as serviceAccountParamsSchema } from "../schema-Cal-EFdi.js";
7
- export { INPUT_IMAGE_TYPES, MAX_INPUT_IMAGES, MAX_INPUT_IMAGE_BYTES, USER_CUSTOMIZATION_MAX_CHARS, USER_INPUT_NOTE, 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, buttonUserInputField, cancelConversationPendingMessagesBodySchema, cancelConversationPendingMessagesResponseSchema, codeActivityDaySchema, codeChangeSummaryReportSchema, codeChangeSummarySchema, codeOverviewReportSchema, codePersonReportSchema, codeRepositoryParamsSchema, codeRepositoryReportSchema, codeRepositorySummarySchema, connectionListSchema, connectionParamsSchema, connectionSchema, conversationActivityPreviewSchema, conversationAuxiliaryCostsSchema, conversationChildAgentSchema, conversationChildAgentTotalsSchema, conversationChildAgentsReportSchema, conversationDetailQuerySchema, conversationDetailReportSchema, conversationEventHistorySchema, conversationEventPageSchema, conversationEventsQuerySchema, conversationFeedQuerySchema, conversationFeedSchema, conversationParamsSchema, conversationPendingAuthorizationSchema, conversationPendingMessageDeliverySchema, conversationPendingMessageSchema, conversationPendingMessagesReportSchema, conversationReadPositionSchema, conversationReportEventDataSchema, conversationReportEventSchema, conversationStatsReportSchema, conversationSummaryReportSchema, conversationTurnFailureCodeSchema, conversationTurnFailureReasonSchema, conversationWatchSchema, conversationWatchesReportSchema, createConversationBodySchema, createConversationMessageBodySchema, createPersonalTokenBodySchema, createdPersonalTokenSchema, dailyConversationActivitySchema, deleteWorkspaceResponseSchema, disconnectConnectionResponseSchema, disconnectServiceAccountResponseSchema, eventAutomationSummarySchema, forkConversationBodySchema, forkConversationResponseSchema, healthReportSchema, isEmptyUserInputAnswer, locationActivityDayReportSchema, locationDetailReportSchema, locationDirectoryReportSchema, locationParamsSchema, messageCardText, normalizeUserInputAnswer, personParamsSchema, personalSpendReportSchema, personalTokenListSchema, personalTokenMetadataSchema, personalTokenParamsSchema, pluginOperationalReportFeedSchema, pluginOperationalReportSchema, pluginPackageContentItemReportSchema, pluginPackageContentReportSchema, pluginSchema, pluginsSchema, resolveMessageCards, reviewItemActionSchema, reviewItemCountSchema, reviewItemListSchema, reviewItemSchema, reviewItemWaitingConversationsSchema, revokePersonalTokenResponseSchema, runtimeInfoReportSchema, scheduledAutomationSummarySchema, serviceAccountListSchema, serviceAccountParamsSchema, serviceAccountSchema, skillReportSchema, skillReportsSchema, startConnectionResponseSchema, startServiceAccountSignInResponseSchema, statSchema, statsReportSchema, steerConversationPendingMessagesBodySchema, steerConversationPendingMessagesResponseSchema, stopConversationTurnResponseSchema, userCustomizationSchema, webMessageId, workspaceBodySchema, workspaceListSchema, workspaceParamsSchema, workspaceRepoSchema, workspaceSchema };
6
+ import { $ as codeRepositorySummarySchema, B as dailyConversationActivitySchema, C as createdPersonalTokenSchema, D as revokePersonalTokenResponseSchema, E as personalTokenParamsSchema, F as locationDirectoryReportSchema, G as startConnectionResponseSchema, H as connectionParamsSchema, I as locationParamsSchema, J as codeChangeSummarySchema, K as codeActivityDaySchema, M as personalSpendReportSchema, N as locationActivityDayReportSchema, O as actorDirectoryReportSchema, P as locationDetailReportSchema, Q as codeRepositoryReportSchema, S as createPersonalTokenBodySchema, T as personalTokenMetadataSchema, U as connectionSchema, V as connectionListSchema, W as disconnectConnectionResponseSchema, X as codePersonReportSchema, Y as codeOverviewReportSchema, Z as codeRepositoryParamsSchema, _ as disconnectServiceAccountResponseSchema, a as workspaceBodySchema, at as conversationStatsReportSchema, b as serviceAccountSchema, c as workspaceRepoSchema, ct as archiveDoneConversationsResponseSchema, d as reviewItemCountSchema, dt as pinConversationResponseSchema, et as conversationWatchSchema, g as reviewItemWaitingConversationsSchema, h as reviewItemSchema, i as deleteWorkspaceResponseSchema, it as stopConversationTurnResponseSchema, j as personParamsSchema, k as actorProfileReportSchema, l as workspaceSchema, lt as conversationAutoArchiveSchema, n as statsReportSchema, nt as conversationChildAgentSchema, o as workspaceListSchema, ot as archiveConversationBodySchema, p as reviewItemListSchema, q as codeChangeSummaryReportSchema, r as baselineSnapshotSchema, rt as conversationChildAgentsReportSchema, s as workspaceParamsSchema, st as archiveConversationResponseSchema, t as statSchema, tt as conversationWatchesReportSchema, u as reviewItemActionSchema, ut as pinConversationBodySchema, v as serviceAccountListSchema, w as personalTokenListSchema, x as startServiceAccountSignInResponseSchema, y as serviceAccountParamsSchema } from "../schema-Dzi3lkdP.js";
7
+ export { INPUT_IMAGE_TYPES, MAX_INPUT_IMAGES, MAX_INPUT_IMAGE_BYTES, USER_CUSTOMIZATION_MAX_CHARS, USER_INPUT_NOTE, acceptedConversationMessageSchema, actorDirectoryReportSchema, actorProfileReportSchema, apiErrorSchema, archiveConversationBodySchema, archiveConversationResponseSchema, archiveDoneConversationsResponseSchema, automationEditErrorSchema, automationEditSchema, automationEventCatalogSchema, automationExecutionListSchema, automationExecutionSchema, automationExecutionStatusDaySchema, automationExecutionStatusSchema, automationListQuerySchema, automationListSchema, automationParamsSchema, automationRunListSchema, automationRunSchema, automationRunWindowsSchema, automationScheduleIntentSchema, automationSchedulePreviewSchema, automationSummarySchema, automationUpdateSchema, automationVersionActivateSchema, automationVersionListSchema, automationVersionParamsSchema, automationVersionSchema, baselineSnapshotSchema, buttonUserInputField, cancelConversationPendingMessagesBodySchema, cancelConversationPendingMessagesResponseSchema, codeActivityDaySchema, codeChangeSummaryReportSchema, codeChangeSummarySchema, codeOverviewReportSchema, codePersonReportSchema, codeRepositoryParamsSchema, codeRepositoryReportSchema, codeRepositorySummarySchema, connectionListSchema, connectionParamsSchema, connectionSchema, conversationActivityPreviewSchema, conversationAutoArchiveSchema, conversationAuxiliaryCostsSchema, conversationChildAgentSchema, conversationChildAgentTotalsSchema, conversationChildAgentsReportSchema, conversationDetailQuerySchema, conversationDetailReportSchema, conversationEventHistorySchema, conversationEventPageSchema, conversationEventsQuerySchema, conversationFeedQuerySchema, conversationFeedSchema, conversationParamsSchema, conversationPendingAuthorizationSchema, conversationPendingMessageDeliverySchema, conversationPendingMessageSchema, conversationPendingMessagesReportSchema, conversationReadPositionSchema, conversationReportEventDataSchema, conversationReportEventSchema, conversationStatsReportSchema, conversationSummaryReportSchema, conversationTurnFailureCodeSchema, conversationTurnFailureReasonSchema, conversationWatchSchema, conversationWatchesReportSchema, createConversationBodySchema, createConversationMessageBodySchema, createPersonalTokenBodySchema, createdPersonalTokenSchema, dailyConversationActivitySchema, deleteWorkspaceResponseSchema, disconnectConnectionResponseSchema, disconnectServiceAccountResponseSchema, eventAutomationSummarySchema, forkConversationBodySchema, forkConversationResponseSchema, healthReportSchema, isEmptyUserInputAnswer, locationActivityDayReportSchema, locationDetailReportSchema, locationDirectoryReportSchema, locationParamsSchema, messageCardText, normalizeUserInputAnswer, personParamsSchema, personalSpendReportSchema, personalTokenListSchema, personalTokenMetadataSchema, personalTokenParamsSchema, pinConversationBodySchema, pinConversationResponseSchema, pluginOperationalReportFeedSchema, pluginOperationalReportSchema, pluginPackageContentItemReportSchema, pluginPackageContentReportSchema, pluginSchema, pluginsSchema, resolveMessageCards, reviewItemActionSchema, reviewItemCountSchema, reviewItemListSchema, reviewItemSchema, reviewItemWaitingConversationsSchema, revokePersonalTokenResponseSchema, runtimeInfoReportSchema, scheduledAutomationSummarySchema, serviceAccountListSchema, serviceAccountParamsSchema, serviceAccountSchema, skillReportSchema, skillReportsSchema, startConnectionResponseSchema, startServiceAccountSignInResponseSchema, statSchema, statsReportSchema, steerConversationPendingMessagesBodySchema, steerConversationPendingMessagesResponseSchema, stopConversationTurnResponseSchema, userCustomizationSchema, webMessageId, workspaceBodySchema, workspaceListSchema, workspaceParamsSchema, workspaceRepoSchema, workspaceSchema };