@sentry/junior 0.282.0 → 0.283.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{adapter-BAqo7eOH.js → adapter-D8-lqOBF.js} +1 -1
- package/dist/{admin-DbWpMHh6.js → admin-Dnw5SCXp.js} +1 -1
- package/dist/{agent-runner-h4CDcnDV.js → agent-runner-Bj7GhysW.js} +49 -23
- package/dist/api/schema.d.ts +2 -2
- package/dist/api/schema.js +6 -6
- package/dist/api.d.ts +1 -1
- package/dist/api.js +94 -59
- package/dist/{app-B-0wwAxr.d.ts → app-CMBP-N43.d.ts} +2 -2
- package/dist/app.d.ts +1 -1
- package/dist/app.js +30 -30
- package/dist/{assistant-reply-4Wvo95-N.js → assistant-reply-CdYsLbXL.js} +1 -1
- package/dist/{automation-sIsmIXH7.js → automation-MLWOrghe.js} +1 -1
- package/dist/{background-compaction-queue-CoWqScCC.js → background-compaction-queue-Bbsqx8Vm.js} +2 -2
- package/dist/{briefs-CMiotFo9.js → briefs-C4qBY-jb.js} +4 -4
- package/dist/{catalog-runtime-Cpje_Uic.js → catalog-runtime-B7NRB7eH.js} +1 -1
- package/dist/cli/chat.js +14 -14
- package/dist/cli/check.js +3 -3
- package/dist/cli/main.js +3 -3
- package/dist/cli/plugins.js +4 -4
- package/dist/cli/snapshot-create.js +4 -4
- package/dist/cli/upgrade.d.ts +1 -1
- package/dist/cli/upgrade.js +3 -3
- package/dist/{client-BHgCXeaF.js → client-a3Ib6wxr.js} +2 -2
- package/dist/{config-DBdBimZ9.js → config-DFVlYCeY.js} +97 -4
- package/dist/{connections-DjY72_uF.js → connections-BtnvpBEV.js} +10 -10
- package/dist/{conversation-DNtcULyX.js → conversation-DdT7SNar.js} +3 -1
- package/dist/{conversation-pending-messages-LlFnr9-m.js → conversation-pending-messages-Dct5pheX.js} +1 -1
- package/dist/{conversation-privacy-DiDh9KE4.js → conversation-privacy-DLq-abjU.js} +1 -1
- package/dist/{credential-sync-DUrQwccr.js → credential-sync-B4XFVcjM.js} +13 -13
- package/dist/{db-hQsoB16L.d.ts → db-A_WrTY-s.d.ts} +1 -1
- package/dist/{executor-CGqJCxgR.js → executor-HPgHGAWK.js} +8 -2
- package/dist/instrumentation.js +2 -2
- package/dist/{logging-DapIaJAi.js → logging-2BXvW7Mp.js} +1 -1
- package/dist/{media-Dq9_svfQ.js → media-Bu9C6lz0.js} +3 -1
- package/dist/{message-BjN5sKad.js → message-BG1v1lXX.js} +9 -9
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +3 -3
- package/dist/{oauth-callback-server-DVHKrjJP.js → oauth-callback-server-CXNZJymo.js} +2 -2
- package/dist/{projection-ii_OYu6z.js → projection-BfKkpOGQ.js} +23 -14
- package/dist/{prompt-DI6KCtwb.js → prompt-CCtaGgbI.js} +1 -1
- package/dist/{registry-DpjG3yS-.js → registry-CLooHPAz.js} +1 -1
- package/dist/{resolve-iMW9Dgo2.js → resolve-D3MK9oRJ.js} +3 -3
- package/dist/{result-BrlvfyIj.js → result-BPCjUefO.js} +9 -9
- package/dist/{runner-Bg9mr2pB.js → runner-Ds31u3rB.js} +11 -11
- package/dist/{sandbox-egress-signals-Bd3lb_Wd.js → sandbox-egress-signals-CLd5RPUw.js} +1 -1
- package/dist/{schema-BN34Jy-U.js → schema-CHNP0GfH.js} +11 -4
- package/dist/{schema-CsqJzkP5.d.ts → schema-jW3ccLjp.d.ts} +22 -1
- package/dist/{service-account-Bd1348kw.js → service-account-CWpTsoIM.js} +3 -3
- package/dist/{service-account-Dfl9Pitm.js → service-account-D6AMahy7.js} +3 -3
- package/dist/{session-stop-CVEEx_YD.js → session-stop-D8LGC3H6.js} +12 -12
- package/dist/{skills-DqUUuf4L.js → skills-DuOKByQH.js} +2 -2
- package/dist/{spawn-e7rQs14T.js → spawn-CNIQGgAS.js} +2 -2
- package/dist/{stop-DtpBUUJq.js → stop-DX2oOIgl.js} +51 -110
- package/dist/{store-nETG4KVg.js → store-61mD4ZSh.js} +4 -4
- package/dist/{store-nu3Xx08K.js → store-DAJntSEv.js} +3 -3
- package/dist/{task-queue-CYje8WKs.js → task-queue-BE70Pb9p.js} +3 -3
- package/dist/{task-runner-CwegN45x.js → task-runner-CmmfddSZ.js} +7 -7
- package/dist/{thread-state-BDaMl9yd.js → thread-state-0UfRMWYd.js} +4 -4
- package/dist/{turn-failure-response-CV06tN_R.js → turn-failure-response-DKdzxJHE.js} +7 -7
- package/dist/{turn-lifecycle-CF2N7ud5.js → turn-lifecycle-24sBZ4Ip.js} +1 -1
- package/dist/{turn-session-routing-BIJGJjVh.js → turn-session-routing-CzCnNAUO.js} +9 -9
- package/dist/{validation-DXvxEEjq.js → validation-Cs_knhR8.js} +1 -1
- package/dist/{version-CzEk1KBX.js → version-ZMC4cXWN.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-C2PztlYX.js → viewer-CYB9T4rm.js} +4 -4
- package/dist/{work-BM_L0Pv9.js → work-J1n6RQkY.js} +11 -11
- package/dist/{worker-2no53G60.js → worker-s1fCvj1z.js} +6 -6
- package/migrations/0081_conversation_pin_position.sql +1 -0
- package/migrations/meta/0081_snapshot.json +4271 -0
- package/migrations/meta/_journal.json +7 -0
- package/package.json +5 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as getChatConfig } from "./config-
|
|
1
|
+
import { i as getChatConfig } from "./config-DFVlYCeY.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-
|
|
1
|
+
import { S as getDb, r as listAdminUsersFromSql, u as setUserAdminFromSql } from "./viewer-CYB9T4rm.js";
|
|
2
2
|
import { CLI_USAGE } from "./cli/run.js";
|
|
3
3
|
// src/cli/admin.ts
|
|
4
4
|
/**
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { g as withActiveSpan, i as getActiveSpan, m as startInactiveSpan, v as __exportAll } from "./sentry-BRTJqumy.js";
|
|
2
|
-
import { $i as isWorkspaceSnapshotNotReadyError, $r as updateWorkspace, $t as isStandaloneRuntimeContextMessage, An as createPluginHookRunner, B as authorizationId, Bi as isConversationScopedChannel, Bt as createTurnLimitGate, Ca as sandboxSkillDir, Ci as addReactionToMessage, Da as buildNonInteractiveShellScript, Dn as getOAuthAccountProviders, Dr as findMatchingWatches, Ea as buildCommandScript, Ei as openSlackDirectMessage, Er as deliverWatch, Fi as SlackActionError, Fn as getPluginTools, Ft as TURN_LIMIT_WRAP_UP_MESSAGE, G as canReusePendingAuthLink, Gt as getPiMessageRole, H as AuthorizationFlowDisabledError, Hi as normalizeSlackConversationId, Hr as getDashboardTaskLink, Ht as CODEMODE_TOOL_NAME, Ii as downloadPrivateSlackFile, In as getPluginUserPromptContributions, It as TurnBudgetExceededError, Ji as isAlreadyExistsError, Jn as getReviewItem, Jr as deleteWorkspace, Jt as hasCurrentInstruction, Kn as dismissOpenReviewItems, Kr as renderToolResultNudge, Kt as getTerminalAssistantMessages, L as createPluginEgress, Li as getFilePermalink, Ln as getPlugins, Lt as TurnSliceLimitExceededError, Mi as uploadFilesToConversation, Na as readConversationAccessFromSql, Oa as runNonInteractiveCommand, Or as getWatch, Pn as getPluginSystemPromptContributions, Qi as getWorkspaceSnapshotNotReadyError, Qn as searchReviewItems, Qt as isContinuablePiBoundary, R as PluginCredentialFailureError, Rt as TurnToolCallLimitExceededError, Sa as SANDBOX_WORKSPACE_ROOT, Sn as isExperimentalFeatureEnabled, So as getConfigDefaults, Sr as cancelWatch, T as resolveTaskTitle, Ta as sandboxSkillPathResolution, Ti as getSlackMessagePermalink, Tn as findLegacyWebActorUserId, Tr as createWatch, U as AuthorizationPauseError, Ui as runWithSlackInstallationToken, V as AuthPausePersistenceError, Vr as getDashboardReviewItemLink, Vt as isTurnExecutionLimitExceededError, W as abandonReplacedPendingAuth, Wi as withSlackRetries, Wn as closeReviewItem, Wr as ToolInputError, Wt as extractAssistantText, X as loadTurnCheckpoint, Xi as wrapSandboxSetupError, Xr as getWorkspaceByName, Y as continuableMessages, Yi as throwSandboxOperationError, Yn as insertReviewItem, Yr as getWorkspace, Yt as hasRuntimeTurnContext, Z as saveTurnCheckpoint, Zi as WorkspaceSnapshotNotReadyError, Zr as listWorkspaces, Zt as isAssistantMessage, _a as SANDBOX_COMMAND_PATH, _i as escapeSlackMrkdwnText, _n as estimateTextTokens, _o as historyItemFromPiMessage, _r as RESOURCE_SUBSCRIPTION_DEFAULT_TTL_MS, ai as create, an as trimTrailingAssistantMessages, ba as SANDBOX_REPOS_ROOT, bn as getAgentContextInputLimitTokens, bo as JUNIOR_NATIVE_EVENT_NAMESPACE, br as STOP_WATCHING_TOOL_NAME, c as recordAgentsInstructionsUpdated, ca as resolveSandboxCommandEnvironment, ci as ensureDockerDaemon, cn as TURN_CONTEXT_TAG, co as createPluginAnnotations, cr as requireReviewItemLinks, da as sleep, do as defaultTimezone, dr as EVERYONE_ASSIGNEE, ea as workspaceSnapshotNotReadyUserMessage, ei as WorkspaceValidationError, en as isToolResultError, er as updateReviewItemContent, f as recordAuthorizationRequested, fa as tryWorkspaceRepoCheckoutPath, fi as deliverOAuthAuthorization, fo as resolveUserTimezone, fr as automationCreatorUserId, g as recordToolExecutionStarted, gn as estimateRequestOverheadTokens, gr as getSlackToolContext, hi as resolveBaseUrl, hn as calculateContextCompactionTargetTokens, hr as resolveChannelCapabilities, i as loadConversationProjection, ia as createSandboxEgressCredentialToken, ii as setWorkspaceSnapshotBuild, in as stripRuntimeTurnContext, ir as canReadReviewItem, ja as canAccessConversation, ji as updateSlackMessage, ki as postSlackMessage, kr as listWatches, l as recordAttachmentsDelivered, li as getSandboxProvider, m as recordMcpProviderConnected, ma as PluginToolDeniedError, mr as resolveAssignees, na as consumeSandboxEgressAuthRequiredSignal, ni as loadSnapshotsForProfile, nn as normalizeToolNameFromResult, no as matchSlackAttachments, oi as hash, on as REQUEST_CONTEXT_SECTION_TAG, or as readReviewItemAgentScope, p as recordGuardianActionReviewed, pa as workspaceRepoCheckoutPath, pi as formatProviderLabel, pr as resolveAssignee, qi as isAbortError, qn as getOpenReviewItemByDedupeKey, qr as createWorkspace, qt as getUserMessageInstructionText, r as loadConnectedMcpProviders, ra as consumeSandboxEgressPermissionDeniedSignal, ri as setWorkspaceSnapshot, rn as retainRuntimeTurnContext, rr as canAgentChangeReviewItem, sa as buildSandboxEgressNetworkPolicy, si as isStale, sn as SESSION_CONTEXT_SECTION_TAG, so as saveObjectAnnotations, sr as requireReviewItemAssignees, ta as clearSandboxEgressSignals, ti as invalidateReadySnapshot, tn as isToolResultMessage, tr as PLUGIN_REVIEW_ITEM_KEY_PREFIX, ua as SANDBOX_RUNTIME, un as buildDeterministicTurnId, va as SANDBOX_DATA_ROOT, vn as getAgentBackgroundCompactionMarkTokens, vo as piMessageFromHistoryItem, vr as RESOURCE_SUBSCRIPTION_MAX_TTL_MS, w as fallbackShortTitle, wa as sandboxSkillFile, wi as deleteSlackMessage, wn as createUserTokenStore, wr as createTimerWatch, xa as SANDBOX_SKILLS_ROOT, xi as slackMention, xo as conversationNoteEvent, xr as cancelSubscriptions, ya as SANDBOX_JUNIOR_ROOT, yi as normalizeSlackReplyMarkdown, yn as getAgentContextCompactionTriggerTokens, yo as projectConversationEvents, yr as RESOURCE_WATCH_TOOL_SOURCE, z as createPluginAuthOrchestration, zi as getSlackClient, zr as getDashboardConversationLink } from "./projection-
|
|
3
|
-
import { C as resolveGatewayCredential, S as getGatewayApiKey, _ as createProviderError, a as completeText, c as resolveGatewayModel, d as isCompactionSummaryText, f as renderCurrentInstruction, g as ProviderError, h as escapeXmlText, 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 findProviderError, x as isProviderRetryError, y as getProviderErrorAttributes } from "./client-
|
|
4
|
-
import { _ as toPiReasoningLevel, g as TURN_REASONING_LEVELS, n as botConfig, v as normalizeSlackEmojiName } from "./config-
|
|
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-
|
|
6
|
-
import { a as toCanonicalInputMessage, c as toGenAiPayloadMetadata, i as runWithConversationPrivacy, l as toGenAiPayloadTraceAttributes, o as toCanonicalOutputMessage, r as resolveConversationPrivacy, s as toGenAiMessagesTraceAttributes } from "./conversation-privacy-
|
|
2
|
+
import { $i as isWorkspaceSnapshotNotReadyError, $r as updateWorkspace, $t as isStandaloneRuntimeContextMessage, An as createPluginHookRunner, B as authorizationId, Bi as isConversationScopedChannel, Bt as createTurnLimitGate, Ca as sandboxSkillDir, Ci as addReactionToMessage, Da as buildNonInteractiveShellScript, Dn as getOAuthAccountProviders, Dr as findMatchingWatches, Ea as buildCommandScript, Ei as openSlackDirectMessage, Er as deliverWatch, Fi as SlackActionError, Fn as getPluginTools, Ft as TURN_LIMIT_WRAP_UP_MESSAGE, G as canReusePendingAuthLink, Gt as getPiMessageRole, H as AuthorizationFlowDisabledError, Hi as normalizeSlackConversationId, Hr as getDashboardTaskLink, Ht as CODEMODE_TOOL_NAME, Ii as downloadPrivateSlackFile, In as getPluginUserPromptContributions, It as TurnBudgetExceededError, Ji as isAlreadyExistsError, Jn as getReviewItem, Jr as deleteWorkspace, Jt as hasCurrentInstruction, Kn as dismissOpenReviewItems, Kr as renderToolResultNudge, Kt as getTerminalAssistantMessages, L as createPluginEgress, Li as getFilePermalink, Ln as getPlugins, Lt as TurnSliceLimitExceededError, Mi as uploadFilesToConversation, Na as readConversationAccessFromSql, Oa as runNonInteractiveCommand, Or as getWatch, Pn as getPluginSystemPromptContributions, Qi as getWorkspaceSnapshotNotReadyError, Qn as searchReviewItems, Qt as isContinuablePiBoundary, R as PluginCredentialFailureError, Rt as TurnToolCallLimitExceededError, Sa as SANDBOX_WORKSPACE_ROOT, Sn as isExperimentalFeatureEnabled, So as getConfigDefaults, Sr as cancelWatch, T as resolveTaskTitle, Ta as sandboxSkillPathResolution, Ti as getSlackMessagePermalink, Tn as findLegacyWebActorUserId, Tr as createWatch, U as AuthorizationPauseError, Ui as runWithSlackInstallationToken, V as AuthPausePersistenceError, Vr as getDashboardReviewItemLink, Vt as isTurnExecutionLimitExceededError, W as abandonReplacedPendingAuth, Wi as withSlackRetries, Wn as closeReviewItem, Wr as ToolInputError, Wt as extractAssistantText, X as loadTurnCheckpoint, Xi as wrapSandboxSetupError, Xr as getWorkspaceByName, Y as continuableMessages, Yi as throwSandboxOperationError, Yn as insertReviewItem, Yr as getWorkspace, Yt as hasRuntimeTurnContext, Z as saveTurnCheckpoint, Zi as WorkspaceSnapshotNotReadyError, Zr as listWorkspaces, Zt as isAssistantMessage, _a as SANDBOX_COMMAND_PATH, _i as escapeSlackMrkdwnText, _n as estimateTextTokens, _o as historyItemFromPiMessage, _r as RESOURCE_SUBSCRIPTION_DEFAULT_TTL_MS, ai as create, an as trimTrailingAssistantMessages, ba as SANDBOX_REPOS_ROOT, bn as getAgentContextInputLimitTokens, bo as JUNIOR_NATIVE_EVENT_NAMESPACE, br as STOP_WATCHING_TOOL_NAME, c as recordAgentsInstructionsUpdated, ca as resolveSandboxCommandEnvironment, ci as ensureDockerDaemon, cn as TURN_CONTEXT_TAG, co as createPluginAnnotations, cr as requireReviewItemLinks, da as sleep, do as defaultTimezone, dr as EVERYONE_ASSIGNEE, ea as workspaceSnapshotNotReadyUserMessage, ei as WorkspaceValidationError, en as isToolResultError, er as updateReviewItemContent, f as recordAuthorizationRequested, fa as tryWorkspaceRepoCheckoutPath, fi as deliverOAuthAuthorization, fo as resolveUserTimezone, fr as automationCreatorUserId, g as recordToolExecutionStarted, gn as estimateRequestOverheadTokens, gr as getSlackToolContext, hi as resolveBaseUrl, hn as calculateContextCompactionTargetTokens, hr as resolveChannelCapabilities, i as loadConversationProjection, ia as createSandboxEgressCredentialToken, ii as setWorkspaceSnapshotBuild, in as stripRuntimeTurnContext, ir as canReadReviewItem, ja as canAccessConversation, ji as updateSlackMessage, ki as postSlackMessage, kr as listWatches, l as recordAttachmentsDelivered, li as getSandboxProvider, m as recordMcpProviderConnected, ma as PluginToolDeniedError, mr as resolveAssignees, na as consumeSandboxEgressAuthRequiredSignal, ni as loadSnapshotsForProfile, nn as normalizeToolNameFromResult, no as matchSlackAttachments, oi as hash, on as REQUEST_CONTEXT_SECTION_TAG, or as readReviewItemAgentScope, p as recordGuardianActionReviewed, pa as workspaceRepoCheckoutPath, pi as formatProviderLabel, pr as resolveAssignee, qi as isAbortError, qn as getOpenReviewItemByDedupeKey, qr as createWorkspace, qt as getUserMessageInstructionText, r as loadConnectedMcpProviders, ra as consumeSandboxEgressPermissionDeniedSignal, ri as setWorkspaceSnapshot, rn as retainRuntimeTurnContext, rr as canAgentChangeReviewItem, sa as buildSandboxEgressNetworkPolicy, si as isStale, sn as SESSION_CONTEXT_SECTION_TAG, so as saveObjectAnnotations, sr as requireReviewItemAssignees, ta as clearSandboxEgressSignals, ti as invalidateReadySnapshot, tn as isToolResultMessage, tr as PLUGIN_REVIEW_ITEM_KEY_PREFIX, ua as SANDBOX_RUNTIME, un as buildDeterministicTurnId, va as SANDBOX_DATA_ROOT, vn as getAgentBackgroundCompactionMarkTokens, vo as piMessageFromHistoryItem, vr as RESOURCE_SUBSCRIPTION_MAX_TTL_MS, w as fallbackShortTitle, wa as sandboxSkillFile, wi as deleteSlackMessage, wn as createUserTokenStore, wr as createTimerWatch, xa as SANDBOX_SKILLS_ROOT, xi as slackMention, xo as conversationNoteEvent, xr as cancelSubscriptions, ya as SANDBOX_JUNIOR_ROOT, yi as normalizeSlackReplyMarkdown, yn as getAgentContextCompactionTriggerTokens, yo as projectConversationEvents, yr as RESOURCE_WATCH_TOOL_SOURCE, z as createPluginAuthOrchestration, zi as getSlackClient, zr as getDashboardConversationLink } from "./projection-BfKkpOGQ.js";
|
|
3
|
+
import { C as resolveGatewayCredential, S as getGatewayApiKey, _ as createProviderError, a as completeText, c as resolveGatewayModel, d as isCompactionSummaryText, f as renderCurrentInstruction, g as ProviderError, h as escapeXmlText, 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 findProviderError, x as isProviderRetryError, y as getProviderErrorAttributes } from "./client-a3Ib6wxr.js";
|
|
4
|
+
import { _ as toPiReasoningLevel, g as TURN_REASONING_LEVELS, n as botConfig, v as normalizeSlackEmojiName } from "./config-DFVlYCeY.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-2BXvW7Mp.js";
|
|
6
|
+
import { a as toCanonicalInputMessage, c as toGenAiPayloadMetadata, i as runWithConversationPrivacy, l as toGenAiPayloadTraceAttributes, o as toCanonicalOutputMessage, r as resolveConversationPrivacy, s as toGenAiMessagesTraceAttributes } from "./conversation-privacy-DLq-abjU.js";
|
|
7
7
|
import { d as parseSlackChannelReferenceId, f as parseSlackTeamId, h as parseSlackMessageTs, n as createSlackActor, o as isUserActor, p as parseSlackUserId, u as parseSlackChannelId } from "./actor-6jsm_v96.js";
|
|
8
|
-
import { C as getSqlExecutor, E as treeHasAnnotationKey, F as SYSTEM_IDENTITY_ID, I as resolveActorIdentityId, S as getDb, T as hasAnnotationKey, X as addAgentTurnUsage, Y as touchConversationDetail, Z as agentTurnCostUsd, a as readActorIdentityFromSql, at as sameDestination, b as getConversationMessageSearchStore, et as hasAgentTurnUsage, f as identityAvatarUrl, h as readUserAvatarUrls, i as readActorIdentity, q as conversationDetailTouch, rt as parseDestination, w as conversationIdsWithAnnotation, x as getConversationStore, y as getConversationEventStore } from "./viewer-
|
|
9
|
-
import { A as juniorConversations, M as juniorUsers, N as juniorDestinations, O as juniorAttachments, P as juniorArtifacts, _ as juniorConversationParticipants, d as juniorAutomations, f as juniorStats, h as juniorAgentInvocations, j as juniorIdentities, l as juniorAutomationRuns, m as juniorAgentBindings, s as juniorReviewItemSlackCards, y as juniorConversationBriefs } from "./executor-
|
|
10
|
-
import { _ as
|
|
8
|
+
import { C as getSqlExecutor, E as treeHasAnnotationKey, F as SYSTEM_IDENTITY_ID, I as resolveActorIdentityId, S as getDb, T as hasAnnotationKey, X as addAgentTurnUsage, Y as touchConversationDetail, Z as agentTurnCostUsd, a as readActorIdentityFromSql, at as sameDestination, b as getConversationMessageSearchStore, et as hasAgentTurnUsage, f as identityAvatarUrl, h as readUserAvatarUrls, i as readActorIdentity, q as conversationDetailTouch, rt as parseDestination, w as conversationIdsWithAnnotation, x as getConversationStore, y as getConversationEventStore } from "./viewer-CYB9T4rm.js";
|
|
9
|
+
import { A as juniorConversations, M as juniorUsers, N as juniorDestinations, O as juniorAttachments, P as juniorArtifacts, _ as juniorConversationParticipants, d as juniorAutomations, f as juniorStats, h as juniorAgentInvocations, j as juniorIdentities, l as juniorAutomationRuns, m as juniorAgentBindings, s as juniorReviewItemSlackCards, y as juniorConversationBriefs } from "./executor-HPgHGAWK.js";
|
|
10
|
+
import { _ as instructionProvenanceFor, a as KNOWN_CONVERSATION_EVENT_TYPES, g as instructionActors, h as contextProvenance, i as isVisionImageMediaType, m as agentInstructionProvenance, r as detectImageMediaType, v as sameActorIdentity } from "./media-Bu9C6lz0.js";
|
|
11
11
|
import { a as listReferenceFiles, c as soulPathCandidates, l as worldPathCandidates } from "./package-discovery-DJhGdS4c.js";
|
|
12
|
-
import { c as fetchWithBoundedOAuthErrorBodies, d as actorLogContext, f as credentialContextForActor, g as credentialUserSubjectId, i as resolvePluginHeaderEnvRefs, l as getOAuthProviderErrorAttributes, s as OAuthProviderError } from "./registry-
|
|
13
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
14
|
-
import { a as parseSkillInvocation, i as parseSkillFile, n as findSkillByName, r as loadSkillsByName, t as discoverSkills } from "./skills-
|
|
12
|
+
import { c as fetchWithBoundedOAuthErrorBodies, d as actorLogContext, f as credentialContextForActor, g as credentialUserSubjectId, i as resolvePluginHeaderEnvRefs, l as getOAuthProviderErrorAttributes, s as OAuthProviderError } from "./registry-CLooHPAz.js";
|
|
13
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-B7NRB7eH.js";
|
|
14
|
+
import { a as parseSkillInvocation, i as parseSkillFile, n as findSkillByName, r as loadSkillsByName, t as discoverSkills } from "./skills-DuOKByQH.js";
|
|
15
15
|
import { a as withLock, i as fenceLock } from "./locks-D-0h111u.js";
|
|
16
|
-
import { r as getStateAdapter } from "./adapter-
|
|
16
|
+
import { r as getStateAdapter } from "./adapter-D8-lqOBF.js";
|
|
17
17
|
import { i as isValidTimeZone, r as getZonedDateTimeParts, t as getFirstRunAtMs } from "./cadence-R7Em4RjE.js";
|
|
18
|
-
import { B as briefLinkSchema, N as removedCardSchema, V as briefOutcomeStatusSchema, W as parseStoredBrief } from "./conversation-
|
|
19
|
-
import { r as EVENT_AUTHOR_ID } from "./prompt-
|
|
20
|
-
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-
|
|
21
|
-
import { i as NO_REPLY_MARKER, n as getAssistantReplyText, o as isNoReplyMarker, r as sanitizeAssistantText, t as decideReply } from "./assistant-reply-
|
|
22
|
-
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-
|
|
18
|
+
import { B as briefLinkSchema, N as removedCardSchema, V as briefOutcomeStatusSchema, W as parseStoredBrief } from "./conversation-DdT7SNar.js";
|
|
19
|
+
import { r as EVENT_AUTHOR_ID } from "./prompt-CCtaGgbI.js";
|
|
20
|
+
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-61mD4ZSh.js";
|
|
21
|
+
import { i as NO_REPLY_MARKER, n as getAssistantReplyText, o as isNoReplyMarker, r as sanitizeAssistantText, t as decideReply } from "./assistant-reply-CdYsLbXL.js";
|
|
22
|
+
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-D8LGC3H6.js";
|
|
23
23
|
import { E 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, w as USER_CUSTOMIZATION_MAX_CHARS, y as userInputRequestSchema } from "./reporting-window-B-QP9zX1.js";
|
|
24
|
-
import { a as setSnapshotSpanAttributes, i as postinstall, n as resolve$1, r as dependencies, s as getSandboxResources } from "./resolve-
|
|
25
|
-
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-
|
|
26
|
-
import { D as stopConversationWork, n as appendAndEnqueueExclusiveInboundMessage, r as appendAndEnqueueInboundMessage } from "./store-
|
|
27
|
-
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-
|
|
28
|
-
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-
|
|
29
|
-
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-
|
|
24
|
+
import { a as setSnapshotSpanAttributes, i as postinstall, n as resolve$1, r as dependencies, s as getSandboxResources } from "./resolve-D3MK9oRJ.js";
|
|
25
|
+
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-Bbsqx8Vm.js";
|
|
26
|
+
import { D as stopConversationWork, n as appendAndEnqueueExclusiveInboundMessage, r as appendAndEnqueueInboundMessage } from "./store-DAJntSEv.js";
|
|
27
|
+
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-CzCnNAUO.js";
|
|
28
|
+
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-D6AMahy7.js";
|
|
29
|
+
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-MLWOrghe.js";
|
|
30
30
|
import { n as privateTraceResultAttributes } from "./private-trace-result-CE7_lEdq.js";
|
|
31
31
|
import { streamSimple } from "@earendil-works/pi-ai/compat";
|
|
32
32
|
import { createGatewayProvider } from "@ai-sdk/gateway";
|
|
@@ -5673,6 +5673,10 @@ function createSandbox(options) {
|
|
|
5673
5673
|
});
|
|
5674
5674
|
},
|
|
5675
5675
|
workspace: {
|
|
5676
|
+
createPreview: async (port) => await runWorkspaceOperation("workspace.createPreview", async (sandbox) => {
|
|
5677
|
+
if (!sandbox.createPreview) throw new ToolInputError("This sandbox provider cannot create previews.");
|
|
5678
|
+
return await sandbox.createPreview(port);
|
|
5679
|
+
}),
|
|
5676
5680
|
readFileToBuffer: async (input) => await runWorkspaceOperation("workspace.readFileToBuffer", async (sandbox) => await sandbox.readFileToBuffer(input)),
|
|
5677
5681
|
runCommand: async (input) => await runWorkspaceOperation("workspace.runCommand", async (sandbox) => await sandbox.runCommand(input)),
|
|
5678
5682
|
writeFiles: async (files) => await runWorkspaceOperation("workspace.writeFiles", async (sandbox) => {
|
|
@@ -6537,6 +6541,27 @@ function createBashTool() {
|
|
|
6537
6541
|
}
|
|
6538
6542
|
});
|
|
6539
6543
|
}
|
|
6544
|
+
// src/chat/tools/sandbox/create-preview.ts
|
|
6545
|
+
const outputSchema$6 = juniorToolOutputSchema.extend({ url: z.string().url() });
|
|
6546
|
+
/** Create a tool that gives a running sandbox server a public preview URL. */
|
|
6547
|
+
function createCreatePreviewTool(createPreview) {
|
|
6548
|
+
return zodTool({
|
|
6549
|
+
annotations: {
|
|
6550
|
+
destructiveHint: false,
|
|
6551
|
+
idempotentHint: true,
|
|
6552
|
+
openWorldHint: true,
|
|
6553
|
+
readOnlyHint: false
|
|
6554
|
+
},
|
|
6555
|
+
approvalMode: "approve",
|
|
6556
|
+
description: "Create a public HTTPS preview URL for a server running in the sandbox. Anyone with the URL can open it until the sandbox stops.",
|
|
6557
|
+
executionMode: "sequential",
|
|
6558
|
+
inputSchema: z.object({ port: z.number().int().min(1).max(65535).describe("Port that the server listens on. The server must listen on 0.0.0.0.") }).strict(),
|
|
6559
|
+
outputSchema: outputSchema$6,
|
|
6560
|
+
async execute({ port }) {
|
|
6561
|
+
return { url: await createPreview(port) };
|
|
6562
|
+
}
|
|
6563
|
+
});
|
|
6564
|
+
}
|
|
6540
6565
|
// src/chat/tools/sandbox/image-files.ts
|
|
6541
6566
|
/**
|
|
6542
6567
|
* Read a sandbox image for a model request. The file signature, not the file
|
|
@@ -16541,6 +16566,7 @@ function createTools(availableSkills, hooks = {}, context, options = {}) {
|
|
|
16541
16566
|
provider: "slack",
|
|
16542
16567
|
providerTenantId: slackContext.teamId
|
|
16543
16568
|
} : { kind: "public" }, context.conversationId, slackContext ? createSlackConversationBriefSearchPort(slackContext.teamId) : void 0);
|
|
16569
|
+
if (context.workspace.createPreview) tools.createPreview = createCreatePreviewTool(context.workspace.createPreview);
|
|
16544
16570
|
if (context.supportsImageInput) tools.viewImage = createViewImageTool(context.workspace, context.supportsImageInput, hooks.toolOverrides?.viewImage);
|
|
16545
16571
|
if (hooks.writeGeneratedArtifacts) tools.imageGenerate = createImageGenerateTool({ writeGeneratedArtifacts: hooks.writeGeneratedArtifacts }, {
|
|
16546
16572
|
modelId: botConfig.imageGenerationModelId,
|
package/dist/api/schema.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as automationExecutionSchema, $n as
|
|
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, CONVERSATION_DETAIL_VERSION_HEADER, 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 ConversationCatchUp, type ConversationCatchUpBody, 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, conversationCatchUpBodySchema, conversationCatchUpSchema, conversationChildAgentSchema, conversationChildAgentTotalsSchema, conversationChildAgentsReportSchema, conversationDetailQuerySchema, conversationDetailReportSchema, conversationDetailWithMailboxReportSchema, conversationEventHistorySchema, conversationEventPageSchema, conversationEventsQuerySchema, conversationFeedQuerySchema, conversationFeedSchema, conversationParamsSchema, conversationPendingAuthorizationSchema, conversationPendingMessageDeliverySchema, conversationPendingMessageSchema, conversationPendingMessagesReportSchema, conversationReadPositionSchema, conversationReportEventDataSchema, conversationReportEventSchema, conversationStatsReportSchema, conversationSummaryReportSchema, conversationTurnFailureCodeSchema, conversationTurnFailureReasonSchema, conversationUnchangedDetailWithMailboxSchema, 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
|
+
import { $ as automationExecutionSchema, $n as archiveConversationResponseSchema, $r as conversationFeedSchema, $t as LocationParams, A as StatReport, Ai as resolveMessageCards, An as ReorderPinnedConversationsResponse, Ar as ConversationModelUsage, At as PersonalTokenMetadata, B as AutomationListQuery, Bi as InputImage, Bn as conversationReadPositionSchema, Br as ConversationTurnFailureReason, Bt as serviceAccountSchema, C as pluginPackageContentItemReportSchema, Ci as codeRepositorySummarySchema, Cn as ConversationChildAgent, Cr as ConversationAgentTreeNode, Ct as workspaceBodySchema, D as runtimeInfoReportSchema, Di as dailyConversationActivitySchema, Dn as PinConversationBody, Dr as ConversationEventHistory, Dt as workspaceSchema, E as pluginsSchema, Ei as DailyConversationActivity, En as conversationChildAgentsReportSchema, Er as ConversationDetailReport, Et as workspaceRepoSchema, F as AutomationExecution, Fi as UserInputRequest, Fn as ConversationCatchUp, Fr as ConversationReportStatus, Ft as personalTokenParamsSchema, G as AutomationSummary, Gi as INPUT_IMAGE_TYPES, Gn as ConversationStatsReport, Gr as conversationActivityPreviewSchema, Gt as disconnectConnectionResponseSchema, H as AutomationRunList, Hi as MAX_INPUT_IMAGE_BYTES, Hn as stopConversationTurnResponseSchema, Hr as CreateConversationBody, Ht as connectionListSchema, I as AutomationExecutionDay, Ii as buttonUserInputField, In as ConversationCatchUpBody, Ir as ConversationSourceTask, It as revokePersonalTokenResponseSchema, J as ListedAutomationVersion, Jn as conversationStatsReportSchema, Jr as conversationDetailReportSchema, Jt as apiErrorSchema, K as AutomationUpdate, Kn as GuardianMetricDay, Kr as conversationAuxiliaryCostsSchema, Kt as startConnectionResponseSchema, L as AutomationExecutionList, Li as isEmptyUserInputAnswer, Ln as conversationCatchUpBodySchema, Lr as ConversationSummaryReport, Lt as disconnectServiceAccountResponseSchema, M as statSchema, Mi as USER_INPUT_NOTE, Mn as pinConversationResponseSchema, Mr as ConversationReportEvent, Mt as createdPersonalTokenSchema, N as statsReportSchema, Ni as UserInputAnswer, Nn as reorderPinnedConversationsBodySchema, Nr as ConversationReportEventData, Nt as personalTokenListSchema, O as skillReportSchema, Oi as MessageCard, On as PinConversationResponse, Or as ConversationEventPage, Ot as USER_CUSTOMIZATION_MAX_CHARS, P as AutomationEdit, Pi as UserInputField, Pn as reorderPinnedConversationsResponseSchema, Pr as ConversationReportMessageEvent, Pt as personalTokenMetadataSchema, Q as automationExecutionListSchema, Qn as archiveConversationBodySchema, Qr as conversationFeedQuerySchema, Qt as LocationDirectoryReport, R as AutomationExecutionStatusDay, Ri as normalizeUserInputAnswer, Rn as conversationCatchUpSchema, Rr as ConversationSurface, Rt as serviceAccountListSchema, S as pluginOperationalReportSchema, Si as codeRepositoryReportSchema, Sn as conversationWatchesReportSchema, Sr as ConversationActivityPreview, St as deleteWorkspaceResponseSchema, T as pluginSchema, Ti as conversationChildAgentTotalsSchema, Tn as conversationChildAgentSchema, Tr as ConversationCost, Tt as workspaceParamsSchema, U as AutomationRunWindows, Ui as MessageAttachment, Un as ConversationMetricDay, Ur as CreateConversationMessageBody, Ut as connectionParamsSchema, V as AutomationRun, Vi as MAX_INPUT_IMAGES, Vn as StopConversationTurnResponse, Vr as ConversationUsage, Vt as startServiceAccountSignInResponseSchema, W as AutomationScheduleIntent, Wi as INLINE_VIDEO_TYPES, Wn as ConversationStatsItem, Wr as acceptedConversationMessageSchema, Wt as connectionSchema, X as automationEditSchema, Xn as ArchiveConversationResponse, Xr as conversationEventPageSchema, Xt as LocationActorSummaryReport, Y as automationEditErrorSchema, Yn as ArchiveConversationBody, Yr as conversationEventHistorySchema, Yt as LocationActivityDayReport, Z as automationEventCatalogSchema, Zn as ConversationAutoArchive, Zr as conversationEventsQuerySchema, Zt as LocationDetailReport, _ as RuntimeInfoReport, _i as codeChangeSummaryReportSchema, _n as personParamsSchema, _r as steerConversationPendingMessagesBodySchema, _t as scheduledAutomationSummarySchema, a as reviewItemCountSchema, ai as createConversationMessageBodySchema, an as ActorActivityDayReport, ar as ConversationPendingMessageDelivery, at as automationRunListSchema, b as healthReportSchema, bi as codePersonReportSchema, bn as ConversationWatchesReport, br as ActorIdentity, bt as WorkspaceReport, c as reviewItemWaitingConversationsSchema, ci as conversationTurnFailureCodeSchema, cn as ActorProfileReport, cr as SteerConversationPendingMessagesResponse, ct as automationScheduleIntentSchema, d as Plugin, di as CodeChangeSummaryReport, dn as ActorWindowMetrics, dr as conversationDetailWithMailboxReportSchema, dt as automationUpdateSchema, ei as conversationParamsSchema, en as LocationSummaryReport, er as archiveDoneConversationsResponseSchema, et as automationExecutionStatusDaySchema, f as PluginOperationalReport, fi as CodeOverviewReport, fn as PeopleActivityDayReport, fr as conversationPendingAuthorizationSchema, ft as automationVersionActivateSchema, g as Plugins, gi as codeActivityDaySchema, gn as actorProfileReportSchema, gr as conversationUnchangedDetailWithMailboxSchema, gt as eventAutomationSummarySchema, h as PluginPackageContentReport, hi as CodeRepositorySummary, hn as actorDirectoryReportSchema, hr as conversationPendingMessagesReportSchema, ht as automationVersionSchema, i as reviewItemActionSchema, ii as createConversationBodySchema, in as locationParamsSchema, ir as ConversationPendingMessage, it as automationParamsSchema, j as StatsReport, ji as AutomationCard, jn as pinConversationBodySchema, jr as ConversationParams, jt as createPersonalTokenBodySchema, k as skillReportsSchema, ki as messageCardText, kn as ReorderPinnedConversationsBody, kr as ConversationFeed, kt as userCustomizationSchema, l as ReviewItemChangeRecord, li as conversationTurnFailureReasonSchema, ln as ActorSummaryReport, lr as cancelConversationPendingMessagesBodySchema, lt as automationSchedulePreviewSchema, m as PluginPackageContentItemReport, mi as CodeRepositoryReport, mn as PersonalSpendReport, mr as conversationPendingMessageSchema, mt as automationVersionParamsSchema, n as ReviewItemActionBody, ni as conversationReportEventSchema, nn as locationDetailReportSchema, nr as CancelConversationPendingMessagesBody, nt as automationListQuerySchema, o as reviewItemListSchema, oi as forkConversationBodySchema, on as ActorDirectoryReport, or as ConversationPendingMessagesReport, ot as automationRunSchema, p as PluginOperationalReportFeed, pi as CodePersonReport, pn as PersonParams, pr as conversationPendingMessageDeliverySchema, pt as automationVersionListSchema, q as AutomationVersionList, qn as GuardianStats, qr as conversationDetailQuerySchema, qt as ApiError, r as ReviewItemPayload, ri as conversationSummaryReportSchema, rn as locationDirectoryReportSchema, rr as CancelConversationPendingMessagesResponse, rt as automationListSchema, s as reviewItemSchema, si as forkConversationResponseSchema, sn as ActorDirectoryWindows, sr as SteerConversationPendingMessagesBody, st as automationRunWindowsSchema, t as OwnedObjectAnnotation, ti as conversationReportEventDataSchema, tn as locationActivityDayReportSchema, tr as conversationAutoArchiveSchema, tt as automationExecutionStatusSchema, u as HealthReport, ui as CodeActivityDay, un as ActorTotalsReport, ur as cancelConversationPendingMessagesResponseSchema, ut as automationSummarySchema, v as SkillReport, vi as codeChangeSummarySchema, vn as personalSpendReportSchema, vr as steerConversationPendingMessagesResponseSchema, vt as BaselineSnapshotReport, w as pluginPackageContentReportSchema, wi as ConversationChildAgentTotals, wn as ConversationChildAgentsReport, wr as ConversationAuxiliaryCosts, wt as workspaceListSchema, x as pluginOperationalReportFeedSchema, xi as codeRepositoryParamsSchema, xn as conversationWatchSchema, xr as CONVERSATION_DETAIL_VERSION_HEADER, xt as baselineSnapshotSchema, y as SkillReports, yi as codeOverviewReportSchema, yn as ConversationWatch, yr as AcceptedConversationMessage, yt as WorkspaceListReport, z as AutomationList, zi as webMessageId, zn as ConversationReadPosition, zr as ConversationTurnFailureCode, zt as serviceAccountParamsSchema } from "../schema-jW3ccLjp.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, CONVERSATION_DETAIL_VERSION_HEADER, 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 ConversationCatchUp, type ConversationCatchUpBody, 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, INLINE_VIDEO_TYPES, 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 ReorderPinnedConversationsBody, type ReorderPinnedConversationsResponse, 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, conversationCatchUpBodySchema, conversationCatchUpSchema, conversationChildAgentSchema, conversationChildAgentTotalsSchema, conversationChildAgentsReportSchema, conversationDetailQuerySchema, conversationDetailReportSchema, conversationDetailWithMailboxReportSchema, conversationEventHistorySchema, conversationEventPageSchema, conversationEventsQuerySchema, conversationFeedQuerySchema, conversationFeedSchema, conversationParamsSchema, conversationPendingAuthorizationSchema, conversationPendingMessageDeliverySchema, conversationPendingMessageSchema, conversationPendingMessagesReportSchema, conversationReadPositionSchema, conversationReportEventDataSchema, conversationReportEventSchema, conversationStatsReportSchema, conversationSummaryReportSchema, conversationTurnFailureCodeSchema, conversationTurnFailureReasonSchema, conversationUnchangedDetailWithMailboxSchema, 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, reorderPinnedConversationsBodySchema, reorderPinnedConversationsResponseSchema, 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 };
|
package/dist/api/schema.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as conversationTurnFailureReasonSchema,
|
|
2
|
-
import { C as createConversationMessageBodySchema, D as conversationReadPositionSchema, E as conversationChildAgentTotalsSchema, F as MAX_INPUT_IMAGES, I as MAX_INPUT_IMAGE_BYTES, P as resolveMessageCards, S as createConversationBodySchema, T as forkConversationResponseSchema, c as conversationDetailReportSchema, d as conversationEventsQuerySchema, f as conversationFeedQuerySchema, g as conversationReportEventSchema, h as conversationReportEventDataSchema, i as conversationActivityPreviewSchema, j as messageCardText, l as conversationEventHistorySchema, m as conversationParamsSchema, n as acceptedConversationMessageSchema, o as conversationAuxiliaryCostsSchema, p as conversationFeedSchema, s as conversationDetailQuerySchema, t as CONVERSATION_DETAIL_VERSION_HEADER, u as conversationEventPageSchema, w as forkConversationBodySchema, y as conversationSummaryReportSchema } from "../conversation-
|
|
1
|
+
import { c as conversationTurnFailureCodeSchema, l as conversationTurnFailureReasonSchema, n as INPUT_IMAGE_TYPES, t as INLINE_VIDEO_TYPES } from "../media-Bu9C6lz0.js";
|
|
2
|
+
import { C as createConversationMessageBodySchema, D as conversationReadPositionSchema, E as conversationChildAgentTotalsSchema, F as MAX_INPUT_IMAGES, I as MAX_INPUT_IMAGE_BYTES, P as resolveMessageCards, S as createConversationBodySchema, T as forkConversationResponseSchema, c as conversationDetailReportSchema, d as conversationEventsQuerySchema, f as conversationFeedQuerySchema, g as conversationReportEventSchema, h as conversationReportEventDataSchema, i as conversationActivityPreviewSchema, j as messageCardText, l as conversationEventHistorySchema, m as conversationParamsSchema, n as acceptedConversationMessageSchema, o as conversationAuxiliaryCostsSchema, p as conversationFeedSchema, s as conversationDetailQuerySchema, t as CONVERSATION_DETAIL_VERSION_HEADER, u as conversationEventPageSchema, w as forkConversationBodySchema, y as conversationSummaryReportSchema } from "../conversation-DdT7SNar.js";
|
|
3
3
|
import { T as userCustomizationSchema, _ as isEmptyUserInputAnswer, b as webMessageId, h as buttonUserInputField, m as USER_INPUT_NOTE, v as normalizeUserInputAnswer, w as USER_CUSTOMIZATION_MAX_CHARS } from "../reporting-window-B-QP9zX1.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-
|
|
5
|
-
import { _ as pluginSchema, a as conversationPendingMessageDeliverySchema, b as skillReportSchema, c as conversationUnchangedDetailWithMailboxSchema, d as apiErrorSchema, f as healthReportSchema, g as pluginPackageContentReportSchema, h as pluginPackageContentItemReportSchema, i as conversationPendingAuthorizationSchema, l as steerConversationPendingMessagesBodySchema, m as pluginOperationalReportSchema, n as cancelConversationPendingMessagesResponseSchema, o as conversationPendingMessageSchema, p as pluginOperationalReportFeedSchema, r as conversationDetailWithMailboxReportSchema, s as conversationPendingMessagesReportSchema, t as cancelConversationPendingMessagesBodySchema, u as steerConversationPendingMessagesResponseSchema, v as pluginsSchema, x as skillReportsSchema, y as runtimeInfoReportSchema } from "../conversation-pending-messages-
|
|
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, ft as
|
|
7
|
-
export { CONVERSATION_DETAIL_VERSION_HEADER, 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, conversationCatchUpBodySchema, conversationCatchUpSchema, conversationChildAgentSchema, conversationChildAgentTotalsSchema, conversationChildAgentsReportSchema, conversationDetailQuerySchema, conversationDetailReportSchema, conversationDetailWithMailboxReportSchema, conversationEventHistorySchema, conversationEventPageSchema, conversationEventsQuerySchema, conversationFeedQuerySchema, conversationFeedSchema, conversationParamsSchema, conversationPendingAuthorizationSchema, conversationPendingMessageDeliverySchema, conversationPendingMessageSchema, conversationPendingMessagesReportSchema, conversationReadPositionSchema, conversationReportEventDataSchema, conversationReportEventSchema, conversationStatsReportSchema, conversationSummaryReportSchema, conversationTurnFailureCodeSchema, conversationTurnFailureReasonSchema, conversationUnchangedDetailWithMailboxSchema, 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 };
|
|
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-MLWOrghe.js";
|
|
5
|
+
import { _ as pluginSchema, a as conversationPendingMessageDeliverySchema, b as skillReportSchema, c as conversationUnchangedDetailWithMailboxSchema, d as apiErrorSchema, f as healthReportSchema, g as pluginPackageContentReportSchema, h as pluginPackageContentItemReportSchema, i as conversationPendingAuthorizationSchema, l as steerConversationPendingMessagesBodySchema, m as pluginOperationalReportSchema, n as cancelConversationPendingMessagesResponseSchema, o as conversationPendingMessageSchema, p as pluginOperationalReportFeedSchema, r as conversationDetailWithMailboxReportSchema, s as conversationPendingMessagesReportSchema, t as cancelConversationPendingMessagesBodySchema, u as steerConversationPendingMessagesResponseSchema, v as pluginsSchema, x as skillReportsSchema, y as runtimeInfoReportSchema } from "../conversation-pending-messages-Dct5pheX.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, ct as archiveDoneConversationsResponseSchema, d as reviewItemCountSchema, dt as pinConversationResponseSchema, et as conversationWatchSchema, ft as reorderPinnedConversationsBodySchema, g as reviewItemWaitingConversationsSchema, h as reviewItemSchema, ht as conversationCatchUpSchema, i as deleteWorkspaceResponseSchema, it as stopConversationTurnResponseSchema, j as personParamsSchema, k as actorProfileReportSchema, l as workspaceSchema, lt as conversationAutoArchiveSchema, mt as conversationCatchUpBodySchema, n as statsReportSchema, nt as conversationChildAgentSchema, o as workspaceListSchema, ot as archiveConversationBodySchema, p as reviewItemListSchema, pt as reorderPinnedConversationsResponseSchema, 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-CHNP0GfH.js";
|
|
7
|
+
export { CONVERSATION_DETAIL_VERSION_HEADER, INLINE_VIDEO_TYPES, 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, conversationCatchUpBodySchema, conversationCatchUpSchema, conversationChildAgentSchema, conversationChildAgentTotalsSchema, conversationChildAgentsReportSchema, conversationDetailQuerySchema, conversationDetailReportSchema, conversationDetailWithMailboxReportSchema, conversationEventHistorySchema, conversationEventPageSchema, conversationEventsQuerySchema, conversationFeedQuerySchema, conversationFeedSchema, conversationParamsSchema, conversationPendingAuthorizationSchema, conversationPendingMessageDeliverySchema, conversationPendingMessageSchema, conversationPendingMessagesReportSchema, conversationReadPositionSchema, conversationReportEventDataSchema, conversationReportEventSchema, conversationStatsReportSchema, conversationSummaryReportSchema, conversationTurnFailureCodeSchema, conversationTurnFailureReasonSchema, conversationUnchangedDetailWithMailboxSchema, 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, reorderPinnedConversationsBodySchema, reorderPinnedConversationsResponseSchema, 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 };
|
package/dist/api.d.ts
CHANGED
package/dist/api.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { $r as updateWorkspace, Aa as createPluginLogger, Ga as readConversationBriefThrough, Gn as countReviewItemsNeedingUser, Jr as deleteWorkspace, Ln as getPlugins, Na as readConversationAccessFromSql, Qn as searchReviewItems, Qr as listWorkspacesByRepository, Sn as isExperimentalFeatureEnabled, Yr as getWorkspace, Zn as listWaitingConversations, Zr as listWorkspaces, ai as create, ar as isOnlyAssignee, ei as WorkspaceValidationError, mo as createPluginCache, nr as canActOnReviewItem, oi as hash, pa as workspaceRepoCheckoutPath, qa as readConversationEventPage, qr as createWorkspace, ua as SANDBOX_RUNTIME, ur as reviewItemReaderForUser, wn as createUserTokenStore } from "./projection-
|
|
2
|
-
import { a as completeText, m as escapeXml } from "./client-
|
|
3
|
-
import { n as botConfig } from "./config-
|
|
4
|
-
import { m as logInfo, p as logException } from "./logging-
|
|
5
|
-
import { C as getSqlExecutor, S as getDb, c as readViewerAvatarUrl, d as updateViewerDisplayName, l as resolveViewerUser, m as readAvatarImage, t as findUserByEmail, x as getConversationStore } from "./viewer-
|
|
6
|
-
import { A as juniorConversations, C as juniorConversationEvents, D as juniorCodeRepositories, E as juniorCodeChanges, M as juniorUsers, N as juniorDestinations, j as juniorIdentities, w as juniorApiTokens, x as juniorConversationMetrics } from "./executor-
|
|
7
|
-
import {
|
|
8
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
9
|
-
import { $ as readViewerAutomations, Ct as listChildAgents, G as readViewerAutomationEdit, H as activateViewerAutomationVersion, K as updateViewerAutomation, Mt as saveUserCustomization, Q as readViewerAutomationVersions, S as createSlackReviewItemShow, U as changeViewerAutomationLifecycle, W as deleteViewerTask, X as readViewerAutomationRuns, Y as readViewerAutomationExecutions, Z as readViewerAutomationSummary, et as AutomationEditError, ft as webActorFromUser, gt as readLiveAttachment, h as readStats, jt as readUserCustomization, nt as listOwnedWatches, q as ViewerTaskNotFoundError } from "./agent-runner-
|
|
10
|
-
import { r as getStateAdapter } from "./adapter-
|
|
11
|
-
import { C as createConversationMessageBodySchema, D as conversationReadPositionSchema, S as createConversationBodySchema, T as forkConversationResponseSchema, a as conversationAttachmentParamsSchema, c as conversationDetailReportSchema, d as conversationEventsQuerySchema, f as conversationFeedQuerySchema, m as conversationParamsSchema, n as acceptedConversationMessageSchema, p as conversationFeedSchema, s as conversationDetailQuerySchema, t as CONVERSATION_DETAIL_VERSION_HEADER, u as conversationEventPageSchema, w as forkConversationBodySchema } from "./conversation-
|
|
12
|
-
import { n as briefEntriesFromReportEvents } from "./prompt-
|
|
13
|
-
import { d as getEventCatalog } from "./session-stop-
|
|
1
|
+
import { $r as updateWorkspace, Aa as createPluginLogger, Ga as readConversationBriefThrough, Gn as countReviewItemsNeedingUser, Jr as deleteWorkspace, Ln as getPlugins, Na as readConversationAccessFromSql, Qn as searchReviewItems, Qr as listWorkspacesByRepository, Sn as isExperimentalFeatureEnabled, Yr as getWorkspace, Zn as listWaitingConversations, Zr as listWorkspaces, ai as create, ar as isOnlyAssignee, ei as WorkspaceValidationError, mo as createPluginCache, nr as canActOnReviewItem, oi as hash, pa as workspaceRepoCheckoutPath, qa as readConversationEventPage, qr as createWorkspace, ua as SANDBOX_RUNTIME, ur as reviewItemReaderForUser, wn as createUserTokenStore } from "./projection-BfKkpOGQ.js";
|
|
2
|
+
import { a as completeText, m as escapeXml } from "./client-a3Ib6wxr.js";
|
|
3
|
+
import { n as botConfig, y as getAttachmentStorage } from "./config-DFVlYCeY.js";
|
|
4
|
+
import { m as logInfo, p as logException } from "./logging-2BXvW7Mp.js";
|
|
5
|
+
import { C as getSqlExecutor, S as getDb, c as readViewerAvatarUrl, d as updateViewerDisplayName, l as resolveViewerUser, m as readAvatarImage, t as findUserByEmail, x as getConversationStore } from "./viewer-CYB9T4rm.js";
|
|
6
|
+
import { A as juniorConversations, C as juniorConversationEvents, D as juniorCodeRepositories, E as juniorCodeChanges, M as juniorUsers, N as juniorDestinations, j as juniorIdentities, w as juniorApiTokens, x as juniorConversationMetrics } from "./executor-HPgHGAWK.js";
|
|
7
|
+
import { n as INPUT_IMAGE_TYPES, t as INLINE_VIDEO_TYPES } from "./media-Bu9C6lz0.js";
|
|
8
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-B7NRB7eH.js";
|
|
9
|
+
import { $ as readViewerAutomations, Ct as listChildAgents, G as readViewerAutomationEdit, H as activateViewerAutomationVersion, K as updateViewerAutomation, Mt as saveUserCustomization, Q as readViewerAutomationVersions, S as createSlackReviewItemShow, U as changeViewerAutomationLifecycle, W as deleteViewerTask, X as readViewerAutomationRuns, Y as readViewerAutomationExecutions, Z as readViewerAutomationSummary, et as AutomationEditError, ft as webActorFromUser, gt as readLiveAttachment, h as readStats, jt as readUserCustomization, nt as listOwnedWatches, q as ViewerTaskNotFoundError } from "./agent-runner-Bj7GhysW.js";
|
|
10
|
+
import { r as getStateAdapter } from "./adapter-D8-lqOBF.js";
|
|
11
|
+
import { C as createConversationMessageBodySchema, D as conversationReadPositionSchema, S as createConversationBodySchema, T as forkConversationResponseSchema, a as conversationAttachmentParamsSchema, c as conversationDetailReportSchema, d as conversationEventsQuerySchema, f as conversationFeedQuerySchema, m as conversationParamsSchema, n as acceptedConversationMessageSchema, p as conversationFeedSchema, s as conversationDetailQuerySchema, t as CONVERSATION_DETAIL_VERSION_HEADER, u as conversationEventPageSchema, w as forkConversationBodySchema } from "./conversation-DdT7SNar.js";
|
|
12
|
+
import { n as briefEntriesFromReportEvents } from "./prompt-CCtaGgbI.js";
|
|
13
|
+
import { d as getEventCatalog } from "./session-stop-D8LGC3H6.js";
|
|
14
14
|
import { T as userCustomizationSchema, a as fillUtcSixHours, c as trailingUtcDayWindow, d as utcDayKey, f as utcHourKey, i as fillUtcHours, l as trailingUtcHourWindow, n as HOUR_MS$1, o as startOfUtcHour, r as fillUtcDays, s as sumUtcHoursIntoSixHours, t as DAY_MS$1, u as trailingUtcSixHourWindow } from "./reporting-window-B-QP9zX1.js";
|
|
15
|
-
import { s as getSandboxResources, t as getCachedSnapshot } from "./resolve-
|
|
16
|
-
import { l as getVercelConversationWorkQueue } from "./background-compaction-queue-
|
|
17
|
-
import { F as conversationRangeColumns, N as conversationActiveDaysColumn, P as conversationAggregateColumns, ct as AutomationConflictError, ft as automationEventCatalog, j as readAutomationTitlesByConversationId } from "./turn-session-routing-
|
|
18
|
-
import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-
|
|
19
|
-
import { N as ScheduleIntentError, P as compileScheduleIntent, _ as automationSummarySchema, b as automationVersionListSchema, c as automationLifecycleSchema, d as automationParamsSchema, f as automationRunListSchema, g as automationSchedulePreviewSchema, h as automationScheduleIntentSchema, i as automationExecutionListSchema, l as automationListQuerySchema, n as automationEditSchema, r as automationEventCatalogSchema, t as automationEditErrorSchema, u as automationListSchema, v as automationUpdateSchema, x as automationVersionParamsSchema, y as automationVersionActivateSchema } from "./automation-
|
|
20
|
-
import { c as conversationUnchangedDetailWithMailboxSchema, d as apiErrorSchema, f as healthReportSchema, l as steerConversationPendingMessagesBodySchema, n as cancelConversationPendingMessagesResponseSchema, p as pluginOperationalReportFeedSchema, r as conversationDetailWithMailboxReportSchema, s as conversationPendingMessagesReportSchema, t as cancelConversationPendingMessagesBodySchema, u as steerConversationPendingMessagesResponseSchema, v as pluginsSchema, x as skillReportsSchema, y as runtimeInfoReportSchema } from "./conversation-pending-messages-
|
|
21
|
-
import {
|
|
22
|
-
import { a as startConnection, n as isConnectableProvider, r as listConnections, t as disconnectConnection, u as htmlCallbackResponse } from "./connections-
|
|
23
|
-
import { A as avatarParamsSchema, C as createdPersonalTokenSchema, D as revokePersonalTokenResponseSchema, E as personalTokenParamsSchema, F as locationDirectoryReportSchema, G as startConnectionResponseSchema, H as connectionParamsSchema, I as locationParamsSchema, L as activityDays$1, M as personalSpendReportSchema, O as actorDirectoryReportSchema, P as locationDetailReportSchema, Q as codeRepositoryReportSchema, R as activityHours$1, S as createPersonalTokenBodySchema, V as connectionListSchema, W as disconnectConnectionResponseSchema, X as codePersonReportSchema, Y as codeOverviewReportSchema, Z as codeRepositoryParamsSchema, _ as disconnectServiceAccountResponseSchema, a as workspaceBodySchema, at as conversationStatsReportSchema, ct as archiveDoneConversationsResponseSchema, d as reviewItemCountSchema, dt as pinConversationResponseSchema, f as reviewItemListQuerySchema, ft as
|
|
15
|
+
import { s as getSandboxResources, t as getCachedSnapshot } from "./resolve-D3MK9oRJ.js";
|
|
16
|
+
import { l as getVercelConversationWorkQueue } from "./background-compaction-queue-Bbsqx8Vm.js";
|
|
17
|
+
import { F as conversationRangeColumns, N as conversationActiveDaysColumn, P as conversationAggregateColumns, ct as AutomationConflictError, ft as automationEventCatalog, j as readAutomationTitlesByConversationId } from "./turn-session-routing-CzCnNAUO.js";
|
|
18
|
+
import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-D6AMahy7.js";
|
|
19
|
+
import { N as ScheduleIntentError, P as compileScheduleIntent, _ as automationSummarySchema, b as automationVersionListSchema, c as automationLifecycleSchema, d as automationParamsSchema, f as automationRunListSchema, g as automationSchedulePreviewSchema, h as automationScheduleIntentSchema, i as automationExecutionListSchema, l as automationListQuerySchema, n as automationEditSchema, r as automationEventCatalogSchema, t as automationEditErrorSchema, u as automationListSchema, v as automationUpdateSchema, x as automationVersionParamsSchema, y as automationVersionActivateSchema } from "./automation-MLWOrghe.js";
|
|
20
|
+
import { c as conversationUnchangedDetailWithMailboxSchema, d as apiErrorSchema, f as healthReportSchema, l as steerConversationPendingMessagesBodySchema, n as cancelConversationPendingMessagesResponseSchema, p as pluginOperationalReportFeedSchema, r as conversationDetailWithMailboxReportSchema, s as conversationPendingMessagesReportSchema, t as cancelConversationPendingMessagesBodySchema, u as steerConversationPendingMessagesResponseSchema, v as pluginsSchema, x as skillReportsSchema, y as runtimeInfoReportSchema } from "./conversation-pending-messages-Dct5pheX.js";
|
|
21
|
+
import { E as archiveConversation, N as isAllowedSignInEmail, Q as readReviewItemForUser, S as cancelConversationPendingMessagesForViewer, T as resolveMentions, X as actOnReviewItem, Y as ReviewItemActionError, _ as readFirstHumanMessageTexts, a as readConversationDetail, at as updateUserAutoArchiveSettings, c as forkConversationForViewer, ct as throwApiError, d as readConversationFeed, et as DEFAULT_AUTO_ARCHIVE_SETTINGS, ft as readHealthReport, g as conversationSummaryFromStoredConversation, h as readConversationTreeMetricsFromSql, i as reorderPinnedConversations, it as setConversationAutoArchive, k as getProductionSlackAdapter, l as keepQuickQuestionForViewer, m as childAgentTotalsReport, n as steerConversationPendingMessagesForViewer, nt as readUserAutoArchiveSettings, o as readConversationDetailEtag, ot as emptyResponse, p as readConversationAuxiliaryCostsFromSql, r as pinConversation, s as markConversationRead, st as jsonResponse, t as stopConversationTurnForViewer, tt as archiveViewerDoneConversations, u as readConversationEvents, v as appendConversationMessageForViewer, w as requireConversationPendingMessages, y as createConversationForViewer } from "./stop-DX2oOIgl.js";
|
|
22
|
+
import { a as startConnection, n as isConnectableProvider, r as listConnections, t as disconnectConnection, u as htmlCallbackResponse } from "./connections-BtnvpBEV.js";
|
|
23
|
+
import { A as avatarParamsSchema, C as createdPersonalTokenSchema, D as revokePersonalTokenResponseSchema, E as personalTokenParamsSchema, F as locationDirectoryReportSchema, G as startConnectionResponseSchema, H as connectionParamsSchema, I as locationParamsSchema, L as activityDays$1, M as personalSpendReportSchema, O as actorDirectoryReportSchema, P as locationDetailReportSchema, Q as codeRepositoryReportSchema, R as activityHours$1, S as createPersonalTokenBodySchema, V as connectionListSchema, W as disconnectConnectionResponseSchema, X as codePersonReportSchema, Y as codeOverviewReportSchema, Z as codeRepositoryParamsSchema, _ as disconnectServiceAccountResponseSchema, a as workspaceBodySchema, at as conversationStatsReportSchema, ct as archiveDoneConversationsResponseSchema, d as reviewItemCountSchema, dt as pinConversationResponseSchema, f as reviewItemListQuerySchema, ft as reorderPinnedConversationsBodySchema, g as reviewItemWaitingConversationsSchema, h as reviewItemSchema, ht as conversationCatchUpSchema, i as deleteWorkspaceResponseSchema, it as stopConversationTurnResponseSchema, j as personParamsSchema, k as actorProfileReportSchema, l as workspaceSchema, lt as conversationAutoArchiveSchema, m as reviewItemParamsSchema, mt as conversationCatchUpBodySchema, n as statsReportSchema, o as workspaceListSchema, ot as archiveConversationBodySchema, p as reviewItemListSchema, pt as reorderPinnedConversationsResponseSchema, rt as conversationChildAgentsReportSchema, s as workspaceParamsSchema, st as archiveConversationResponseSchema, tt as conversationWatchesReportSchema, u as reviewItemActionSchema, ut as pinConversationBodySchema, v as serviceAccountListSchema, w as personalTokenListSchema, x as startServiceAccountSignInResponseSchema, y as serviceAccountParamsSchema, z as activitySixHours$1 } from "./schema-CHNP0GfH.js";
|
|
24
24
|
import { Hono } from "hono";
|
|
25
25
|
import path from "node:path";
|
|
26
26
|
import { createHash, randomBytes, randomUUID } from "node:crypto";
|
|
@@ -231,45 +231,83 @@ async function requireConversationChildAgents(conversationId, options = {}) {
|
|
|
231
231
|
});
|
|
232
232
|
}
|
|
233
233
|
// src/api/conversations/attachments.ts
|
|
234
|
+
const INLINE_TYPES = [...INPUT_IMAGE_TYPES, ...INLINE_VIDEO_TYPES];
|
|
234
235
|
function contentDisposition(filename, contentType) {
|
|
235
|
-
return `${
|
|
236
|
+
return `${INLINE_TYPES.includes(contentType) ? "inline" : "attachment"}; filename="${filename.replace(/[^\x20-\x7e]|["\\]/g, "_")}"; filename*=UTF-8''${encodeURIComponent(filename)}`;
|
|
236
237
|
}
|
|
237
|
-
/**
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
238
|
+
/**
|
|
239
|
+
* Read one `Range` request header against an object size.
|
|
240
|
+
*
|
|
241
|
+
* Return undefined to send the whole object. HTTP lets a server ignore a
|
|
242
|
+
* header it does not support, so this ignores bad syntax and multiple ranges.
|
|
243
|
+
*/
|
|
244
|
+
function parseRangeHeader(header, size) {
|
|
245
|
+
const match = header?.trim().match(/^bytes=(\d*)-(\d*)$/);
|
|
246
|
+
if (!match) return void 0;
|
|
247
|
+
const [, first = "", last = ""] = match;
|
|
248
|
+
if (!first) {
|
|
249
|
+
if (!last) return void 0;
|
|
250
|
+
const suffix = Number(last);
|
|
251
|
+
if (suffix === 0 || size === 0) return "unsatisfiable";
|
|
252
|
+
return {
|
|
253
|
+
start: Math.max(0, size - suffix),
|
|
254
|
+
end: size - 1
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
const start = Number(first);
|
|
258
|
+
const end = last ? Number(last) : Infinity;
|
|
259
|
+
if (end < start) return void 0;
|
|
260
|
+
if (start >= size) return "unsatisfiable";
|
|
261
|
+
return {
|
|
262
|
+
start,
|
|
263
|
+
end: Math.min(end, size - 1)
|
|
264
|
+
};
|
|
246
265
|
}
|
|
247
266
|
/**
|
|
248
|
-
*
|
|
267
|
+
* Answer one attachment read for an authorized viewer, with one byte range
|
|
268
|
+
* when the request asks for it. Media players need ranges to play and seek.
|
|
249
269
|
*
|
|
250
270
|
* Missing conversations, missing attachments, purge-marked rows, and viewers
|
|
251
|
-
* without private-content access all
|
|
271
|
+
* without private-content access all answer 404.
|
|
252
272
|
*/
|
|
253
|
-
async function
|
|
254
|
-
if (!(await readConversationAccessFromSql(getDb(), [args.conversationId], args.viewer)).get(args.conversationId)?.canViewPrivateContent)
|
|
273
|
+
async function conversationAttachmentResponse(args) {
|
|
274
|
+
if (!(await readConversationAccessFromSql(getDb(), [args.conversationId], args.viewer)).get(args.conversationId)?.canViewPrivateContent) notFound();
|
|
255
275
|
const attachment = await readLiveAttachment({
|
|
256
276
|
attachmentId: args.attachmentId,
|
|
257
277
|
conversationId: args.conversationId,
|
|
258
278
|
db: getSqlExecutor()
|
|
259
279
|
});
|
|
260
|
-
if (!attachment)
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
280
|
+
if (!attachment || attachment.storageProvider !== args.storage.provider) notFound();
|
|
281
|
+
const headers = new Headers({
|
|
282
|
+
"accept-ranges": "bytes",
|
|
283
|
+
"cache-control": "private, no-store",
|
|
284
|
+
"x-content-type-options": "nosniff"
|
|
285
|
+
});
|
|
286
|
+
const range = parseRangeHeader(args.range, attachment.bytes);
|
|
287
|
+
if (range === "unsatisfiable") {
|
|
288
|
+
headers.set("content-range", `bytes */${attachment.bytes}`);
|
|
289
|
+
return new Response(null, {
|
|
290
|
+
headers,
|
|
291
|
+
status: 416
|
|
292
|
+
});
|
|
293
|
+
}
|
|
294
|
+
const body = await args.storage.get(attachment.storageKey, range);
|
|
295
|
+
if (!body) notFound();
|
|
296
|
+
headers.set("content-disposition", contentDisposition(attachment.filename, attachment.contentType));
|
|
297
|
+
headers.set("content-type", attachment.contentType);
|
|
298
|
+
if (!range) {
|
|
299
|
+
headers.set("content-length", String(attachment.bytes));
|
|
300
|
+
return new Response(body, { headers });
|
|
301
|
+
}
|
|
302
|
+
headers.set("content-range", `bytes ${range.start}-${range.end}/${attachment.bytes}`);
|
|
303
|
+
headers.set("content-length", String(range.end - range.start + 1));
|
|
304
|
+
return new Response(body, {
|
|
305
|
+
headers,
|
|
306
|
+
status: 206
|
|
307
|
+
});
|
|
267
308
|
}
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
const opened = await openConversationAttachment(args);
|
|
271
|
-
if (!opened) throwApiError(404, "Attachment not found.");
|
|
272
|
-
return opened;
|
|
309
|
+
function notFound() {
|
|
310
|
+
throwApiError(404, "Attachment not found.");
|
|
273
311
|
}
|
|
274
312
|
// src/api/conversations/metric-buckets.ts
|
|
275
313
|
/** Sum all Conversation metrics into UTC day or hour buckets. */
|
|
@@ -723,6 +761,7 @@ function createConversationRoutes(options) {
|
|
|
723
761
|
const body = context.req.valid("json");
|
|
724
762
|
return jsonResponse(conversationReadPositionSchema, await markConversationRead(viewer, conversationId, body));
|
|
725
763
|
});
|
|
764
|
+
app.put("/pin-order", requireViewer, validateRequest("json", reorderPinnedConversationsBodySchema, "Invalid request body."), async (context) => jsonResponse(reorderPinnedConversationsResponseSchema, await reorderPinnedConversations(context.get("viewer"), context.req.valid("json"))));
|
|
726
765
|
app.post("/archive-done", requireViewer, async (context) => jsonResponse(archiveDoneConversationsResponseSchema, await archiveViewerDoneConversations(context.get("viewer"))));
|
|
727
766
|
app.patch("/:conversationId/auto-archive", requireViewer, validateRequest("param", conversationParamsSchema, "Invalid route parameters."), validateRequest("json", conversationAutoArchiveSchema, "Invalid request body."), async (context) => jsonResponse(conversationAutoArchiveSchema, await setConversationAutoArchive(context.get("viewer"), context.req.valid("param").conversationId, context.req.valid("json").autoArchive)));
|
|
728
767
|
app.post("/:conversationId/catch-up", requireViewer, validateRequest("param", conversationParamsSchema, "Invalid route parameters."), validateRequest("json", conversationCatchUpBodySchema, "Invalid request body."), async (context) => {
|
|
@@ -772,17 +811,13 @@ function createConversationRoutes(options) {
|
|
|
772
811
|
app.get("/:conversationId/attachments/:attachmentId", validateRequest("param", conversationAttachmentParamsSchema, "Invalid route parameters."), async (context) => {
|
|
773
812
|
const { attachmentId, conversationId } = context.req.valid("param");
|
|
774
813
|
const viewer = context.get("viewer");
|
|
775
|
-
|
|
814
|
+
return await conversationAttachmentResponse({
|
|
776
815
|
attachmentId,
|
|
777
816
|
conversationId,
|
|
817
|
+
range: context.req.header("range"),
|
|
778
818
|
storage: options.attachmentStorage,
|
|
779
819
|
...viewer ? { viewer } : void 0
|
|
780
820
|
});
|
|
781
|
-
return new Response(opened.body, { headers: conversationAttachmentHeaders({
|
|
782
|
-
bytes: opened.attachment.bytes,
|
|
783
|
-
contentType: opened.attachment.contentType,
|
|
784
|
-
filename: opened.attachment.filename
|
|
785
|
-
}) });
|
|
786
821
|
});
|
|
787
822
|
app.get("/:conversationId", validateRequest("param", conversationParamsSchema, "Invalid route parameters."), validateRequest("query", conversationDetailQuerySchema, "Invalid query parameters."), async (context) => {
|
|
788
823
|
const { conversationId } = context.req.valid("param");
|
|
@@ -2091,7 +2126,7 @@ async function readPeoplePluginReports(args) {
|
|
|
2091
2126
|
reports: [],
|
|
2092
2127
|
source: "plugins"
|
|
2093
2128
|
});
|
|
2094
|
-
const { getPluginProfileReports } = await import("./projection-
|
|
2129
|
+
const { getPluginProfileReports } = await import("./projection-BfKkpOGQ.js").then((n) => n.kn);
|
|
2095
2130
|
return pluginOperationalReportFeedSchema.parse({
|
|
2096
2131
|
generatedAt: new Date(nowMs).toISOString(),
|
|
2097
2132
|
reports: await getPluginProfileReports({
|
|
@@ -3119,7 +3154,7 @@ function readDescriptionText(home) {
|
|
|
3119
3154
|
}
|
|
3120
3155
|
/** Read discovered skill names for authenticated runtime diagnostics. */
|
|
3121
3156
|
async function readSkillReports() {
|
|
3122
|
-
const { discoverSkills } = await import("./skills-
|
|
3157
|
+
const { discoverSkills } = await import("./skills-DuOKByQH.js").then((n) => n.o);
|
|
3123
3158
|
const skills = await discoverSkills();
|
|
3124
3159
|
return skillReportsSchema.parse(skills.map((skill) => ({
|
|
3125
3160
|
name: skill.name,
|
|
@@ -3128,7 +3163,7 @@ async function readSkillReports() {
|
|
|
3128
3163
|
}
|
|
3129
3164
|
/** Read safe configured plugin metadata for authenticated runtime diagnostics. */
|
|
3130
3165
|
async function readPlugins() {
|
|
3131
|
-
const { pluginCatalogRuntime } = await import("./catalog-runtime-
|
|
3166
|
+
const { pluginCatalogRuntime } = await import("./catalog-runtime-B7NRB7eH.js").then((n) => n.t);
|
|
3132
3167
|
return pluginsSchema.parse(pluginCatalogRuntime.getProviders().map((plugin) => ({
|
|
3133
3168
|
configKeys: plugin.manifest.configKeys ?? [],
|
|
3134
3169
|
description: plugin.manifest.description,
|
|
@@ -3140,7 +3175,7 @@ async function readPlugins() {
|
|
|
3140
3175
|
async function readRuntimeInfoReport() {
|
|
3141
3176
|
const [{ homeDir }, { pluginCatalogRuntime }, plugins, skills] = await Promise.all([
|
|
3142
3177
|
import("./package-discovery-DJhGdS4c.js").then((n) => n.r),
|
|
3143
|
-
import("./catalog-runtime-
|
|
3178
|
+
import("./catalog-runtime-B7NRB7eH.js").then((n) => n.t),
|
|
3144
3179
|
readPlugins(),
|
|
3145
3180
|
readSkillReports()
|
|
3146
3181
|
]);
|
|
@@ -3157,7 +3192,7 @@ async function readRuntimeInfoReport() {
|
|
|
3157
3192
|
/** Read sanitized operational summaries contributed by plugins. */
|
|
3158
3193
|
async function readPluginOperationalReportFeed() {
|
|
3159
3194
|
const nowMs = Date.now();
|
|
3160
|
-
const { getPluginOperationalReports } = await import("./projection-
|
|
3195
|
+
const { getPluginOperationalReports } = await import("./projection-BfKkpOGQ.js").then((n) => n.kn);
|
|
3161
3196
|
return pluginOperationalReportFeedSchema.parse({
|
|
3162
3197
|
source: "plugins",
|
|
3163
3198
|
generatedAt: new Date(nowMs).toISOString(),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as ConversationWorkQueue, t as ConversationQueueMessage } from "./queue-CZyYgPF0.js";
|
|
2
|
-
import { t as ConversationStore } from "./db-
|
|
3
|
-
import "./schema-
|
|
2
|
+
import { t as ConversationStore } from "./db-A_WrTY-s.js";
|
|
3
|
+
import "./schema-jW3ccLjp.js";
|
|
4
4
|
import { n as JuniorPluginSet } from "./plugins-DtmjkTza.js";
|
|
5
5
|
import "./sentry-DrKC2NeM.js";
|
|
6
6
|
import { Hono } from "hono";
|
package/dist/app.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as JuniorDashboardOptions, n as JuniorAppOptions, r as createApp, t as JuniorApp } from "./app-
|
|
1
|
+
import { i as JuniorDashboardOptions, n as JuniorAppOptions, r as createApp, t as JuniorApp } from "./app-CMBP-N43.js";
|
|
2
2
|
import { i as defineJuniorPlugins, n as JuniorPluginSet, r as JuniorPluginSetOptions, t as JuniorPluginInput } from "./plugins-DtmjkTza.js";
|
|
3
3
|
import { t as JUNIOR_VERSION } from "./version-Cc2OFd9G.js";
|
|
4
4
|
export { JUNIOR_VERSION, JuniorApp, JuniorAppOptions, type JuniorDashboardOptions, type JuniorPluginInput, type JuniorPluginSet, type JuniorPluginSetOptions, createApp, defineJuniorPlugins };
|