@sentry/junior 0.319.0 → 0.320.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-8_S6Birm.js → adapter-DlLLoJKj.js} +1 -1
- package/dist/{admin-EsbUON1j.js → admin-BzRXDVfh.js} +1 -1
- package/dist/{agent-CtzMl32d.js → agent-DxZ7nHfD.js} +40 -50
- package/dist/{agent-update-delivery-pAvsbuGL.js → agent-update-delivery-CO4FU5Gg.js} +3 -3
- package/dist/api/schema.d.ts +2 -0
- package/dist/api/schema.js +1 -1
- package/dist/api.js +28 -23
- package/dist/{app-tACXxJPI.d.ts → app-CHCFIIDu.d.ts} +1 -0
- package/dist/app.d.ts +1 -1
- package/dist/app.js +20 -217
- package/dist/{channel-access-DET5hzZM.js → channel-access-BghWqlXx.js} +1 -1
- package/dist/{chat-core-engine-DpM3tMVi.js → chat-core-engine-BgfSLrDu.js} +31 -14
- package/dist/cli/chat.js +16 -16
- package/dist/cli/check.js +4 -4
- package/dist/cli/main.js +2 -2
- package/dist/cli/plugins.js +3 -3
- package/dist/cli/snapshot-create.js +4 -4
- package/dist/cli/upgrade.js +2 -2
- package/dist/{continue-in-slack-CFzDyxkH.js → continue-in-slack-DBlQP4PC.js} +3 -3
- package/dist/{conversation-privacy-C2vYK55O.js → conversation-privacy-qoh95v90.js} +1 -1
- package/dist/{create-Ta3SEIB5.js → create-jZSaDrCR.js} +2 -2
- package/dist/{credential-sync-DyRqDmY4.js → credential-sync-Bj9-UlNE.js} +11 -11
- package/dist/{db-BCaNWl9p.js → db-BacvswT0.js} +36 -23
- package/dist/{deployment-CfOew1Tm.js → deployment-BoJkRPDt.js} +1 -1
- package/dist/{engine-context-CiExoy1B.js → engine-context-Bi3Ync5t.js} +388 -12
- package/dist/{html-Bb2Si1bR.js → html-DW0pw5Pr.js} +4 -4
- package/dist/instrumentation.js +2 -2
- package/dist/{list-wwDcROh9.js → list-Dz3CdP3g.js} +20 -11
- package/dist/{logging-BRPTXAdf.js → logging-DsTnMqyi.js} +1 -1
- package/dist/{markers-9QoqW5ov.js → markers-C33gNYNE.js} +31 -30
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +2 -2
- package/dist/{oauth-callback-server-vhL9b-PZ.js → oauth-callback-server-C-pEhAQK.js} +2 -2
- package/dist/{oauth-relay-CH2v7WiB.js → oauth-relay-DIXdH-io.js} +1 -1
- package/dist/{profile-D9LdwmZi.js → profile-v9vA3RvH.js} +4 -4
- package/dist/{prompt-3TqxEOtc.js → prompt-C5CW2wKO.js} +1 -1
- package/dist/{reports-K-tbtEyx.js → reports-eBgrhPXS.js} +2 -2
- package/dist/{resolve-BBV2qf8A.js → resolve-HVXmbeCr.js} +5 -5
- package/dist/{result-5IdGJP4M.js → result-BPNzgeTl.js} +4 -4
- package/dist/{runner-BK_joPlM.js → runner-aNSDTST6.js} +6 -6
- package/dist/{sandbox-egress-signals-DXgWXXmm.js → sandbox-egress-signals-nzp9Ykf7.js} +1 -1
- package/dist/{schema-zWGG6VC1.js → schema-BlTO5M1d.js} +3 -1
- package/dist/{service-account-CateFyhw.js → service-account-DWIf1t6p.js} +2 -2
- package/dist/{skills-Ccjw8h2P.js → skills-50izzzdK.js} +4 -4
- package/dist/{slack-conversation-unfurl-ZC_TSpc4.js → slack-conversation-unfurl-C6jXhVYg.js} +7 -7
- package/dist/{storage-C9U7R5rM.js → storage-BtCxXiNt.js} +2 -2
- package/dist/{system-prompt-table-YBTHIFlP.js → system-prompt-table-CIR1B44Z.js} +3 -3
- package/dist/{users-CCRAqYb_.js → users-DOVo9sdU.js} +1 -1
- package/dist/{validation-BCUpJa8K.js → validation-CK0vuEHB.js} +1 -1
- package/dist/{version-BNm0JYj3.js → version-BuLVNlxB.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{worker-BhgpZ7_b.js → worker-C82kHU1R.js} +4 -4
- package/migrations/20261127150242_drop_space_members/migration.sql +9 -0
- package/migrations/20261127150242_drop_space_members/snapshot.json +53 -0
- package/package.json +6 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
|
|
2
2
|
import { _ as toOptionalTrimmed } from "./topics-DxuKurCX.js";
|
|
3
|
-
import { G as mapBounded } from "./prompt-
|
|
3
|
+
import { G as mapBounded } from "./prompt-C5CW2wKO.js";
|
|
4
4
|
import * as z from "zod";
|
|
5
5
|
import { calculateCost, completeSimple, getEnvApiKey, getModels, registerApiProvider } from "@earendil-works/pi-ai/compat";
|
|
6
6
|
import { stream as streamAnthropic, streamSimple as streamSimpleAnthropic } from "@earendil-works/pi-ai/api/anthropic-messages";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as getDb, gc as setUserAdminFromSql, uc as listAdminUsersFromSql } from "./db-BacvswT0.js";
|
|
2
2
|
import { CLI_USAGE } from "./cli/run.js";
|
|
3
3
|
// src/cli/admin.ts
|
|
4
4
|
/**
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
|
|
2
|
-
import { $ as resolveGatewayModel, B as getSlackBotToken, C as parseActorUserId, D as parseSlackChannelReferenceId, E as parseSlackChannelId, H as getSlackClientSecret, J as normalizeSlackEmojiName, L as botConfig, O as parseSlackTeamId, P as parseSlackMessageTs, R as getChatConfig, S as isUserActor, U as getSlackSigningSecret, V as getSlackClientId, X as toPiReasoningLevel, Y as TURN_REASONING_LEVELS, _ as createActor, a as getStateValues, b as isActorUserId, c as acquireActiveLock, d as actorLogContext, f as credentialContextForActor, g as credentialUserSubjectId, i as getStateAdapter, k as parseSlackUserId, l as fenceLock, o as setStateValues, u as withLock, v as createSlackActor, y as createSlackResumeActor } from "./adapter-
|
|
3
|
-
import { A as toOptionalString, E as runWithLogAttributes, S as summarizeMessageText, T as withSpan, _ as serializeGenAiAttribute, a as getActiveTraceContext, b as setSpanStatus, c as getLogContextAttributesForSpan, d as logError, f as logException, g as runBestEffort, h as normalizeGenAiFinishReason, i as extractGenAiUsageSummary, k as normalizeIdentityEmail, l as getTracePropagationHeaders, m as logWarn, o as getActiveTraceId, p as logInfo, r as extractGenAiUsageAttributes, t as createChatSdkLogger, u as logAudit, v as setSentryUser, w as withLogContext, x as setTags, y as setSpanAttributes } from "./logging-
|
|
4
|
-
import { $c as pluginSubjectKind, $d as McpAuthorizationRequiredError, $i as basePluginContext, $n as sendSlackReply, $o as isConversationDeliveryPaused, $s as isConversationScopedChannel, $u as transcribeFromUrl, Ac as readCachedUserByEmail, Ai as postSlackMessage, Al as isDashboardLink, An as withIdleConversation, Ao as cancelWatch, Ar as readConversationAccessFromSql, As as writeConversationMetadata, Bc as getInboxItem, Bf as isLeadConversation, Bi as slackMention, Bp as juniorConversations, Bs as lookupSlackUserNames, Bu as eventExcerpt, Cd as getProviderErrorAttributes, Cf as getMcpAwareTelemetryMessage, Ci as notifyAutomationBlocked, Cl as getDashboardConversationLink, Co as workspaceSnapshotWatch, Cp as juniorConversationReadPositions, Cr as canAccessConversation, Cs as upsertPluginAnnotation, Cu as registeredEventTriggerProblems, D as createSqlStore, Da as saveEventAutomation, Dd as getGatewayApiKey, Df as fetchWithBoundedOAuthErrorBodies, Di as openSlackDirectMessage, Do as publishAgentUpdate, Ds as loadAnnotationLabeler, Dt as getRegistrations, Du as requireValidEventTrigger, E as latestUserMessageQuery, Ea as parseEventAutomationRow, Ed as isProviderRetryError, Ef as OAuthProviderError, Ei as getSlackMessagePermalink, El as getDashboardPersonLink, Ep as juniorConversationEventEmbeddings, Er as canReadConversation, Es as conversationSubtreeColumns, Et as getPlugins, Eu as requireEventIdentifier, F as destinationUpsertFromDestination, Fa as sameDefinitionValue, Fd as getAppContext, Ff as addAgentTurnUsage, Fn as readParentMessage, Fo as findMatchingWatches, Fp as juniorCodeChanges, Fu as searchedEventTextSql, G as conversationStatusSql, Ga as readAutomationExecutionSummaries, Gc as searchInboxItems, Gd as serviceAccountOnly, Gf as touchConversationDetail, Gi as pluginMcpContext, Go as createSlackDirectCredentialSubject, Gu as createConversationEmbedder, Ha as readAutomationExecutionByConversationId, Hc as insertInboxItem, Hf as rootConversationIsArchived, Hp as juniorSpaces, I as upsertDestination, Ic as closeReadReplyNotice, If as agentTurnCostUsd, Ii as SLACK_USER_MENTION_RE, In as readInboundMessageSender, Io as getWatch, Ip as juniorCodeRepositories, Is as defaultTimezone, It as CHILD_AGENT_KINDS, Iu as seqIn, J as executionIsActive, Ja as readAutomationRuns, Jf as sameDestination, Ji as createPluginEmbedder, Jl as fuseRankedLists, Jp as guardedCosineDistance, Jr as verifyQueueMessage, Js as downloadPrivateSlackFile, Ju as completeDecision, Ka as readAutomationExecutions, Kf as createSlackDestination, Ki as createPluginState, Kp as juniorUsers, Kr as QUEUE_SIGNATURE_MAX_AGE_MS, Ku as embedConversationQuery, L as parseSessionSource, La as automationRevision, Li as escapeSlackMrkdwnText, Ln as isEventMailboxMetadata, Lo as isQuietEvent, Lp as juniorAttachmentUploads, Lt as PARENT_AGENT_TARGET, Md as renderJuniorNativeConversationEvent, Ml as parseDashboardPersonLink, Mn as canShareTurn, Mo as createTimerWatch, Mr as readableSlackTeamId, Ms as resolveRootVisibility, Mt as juniorToolOutputSchema, Na as listAutomationVersions, Ni as uploadFilesToConversation, Nl as parseDashboardTaskLink, No as createWatch, Nt as makeStructuredToolOutput, Nu as indexEndedTurnEvents, O as withConversationMutationLock, Oa as setEventAutomationStatus, Of as getOAuthProviderErrorAttributes, Ol as getDashboardSpaceLink, On as releaseInboundMessage, Oo as starterWatchId, Ou as ToolInputError, Pa as readAutomationVersion, Po as deliverWatch, Pt as findChildAgentConversationId, Pu as lexemesSql, Qd as getMcpServiceAccountCredentials, Qi as renderPluginConversationEvent, Ql as hasConversationMetadata, Qn as resolveSlackReplyTarget, Qs as isConversationChannel, Qu as searchWeb, Ra as requireAutomationRevision, Rc as closeInboxItem, Ri as formatSlackLink, Rn as createSlackInboxItemToolServices, Rp as juniorAttachments, Rs as resolveUserTimezone, Rt as agentNameSchema, Ru as SEARCHABLE_EVENT_TYPES, S as setArchivedAt, Sa as deleteEventAutomation, Sd as findProviderError, Sf as getMcpAwareErrorType, Si as markDispatchRunning, Sn as hasConversationStop, So as workspaceSnapshotFinishedEvent, Sr as createPluginCodeChanges, Ss as replaceAnnotationSubjectId, St as requireInboxItemLinks, Su as registeredEventMatchSchema, Ta as listDeletedEventAutomationsCreatedBy, Td as isProviderRefusal, Tf as toMcpProviderError, Tl as getDashboardLinkFilter, To as agentWatch, Tp as juniorConversationEventLexemes, Tr as canInviteToConversation, Ts as conversationSubtree, Tu as registeredResourceTypeSchema, Ua as readAutomationExecutionStatusDays, Uf as conversationDetailTouch, Up as juniorIdentities, Ut as appendAndEnqueueExclusiveInboundMessage, Uu as isEventEmbeddingsEnabled, Va as linkAutomationRunConversation, Vc as getOpenInboxItemBySubject, Vi as slackMentionedUserIds, Vo as turnEvents, Vp as juniorSpaceConfigurations, Vu as excerptTerms, Wa as readAutomationExecutionStatusHours, Wc as ownerConversationId, Wd as serviceAccountAllows, Wf as nextDetailVersion, Wt as appendAndEnqueueInboundMessage, Xf as rootSpaceIdSql, Xi as createPluginModelCostRecorder, Xl as deliversFinalText, Xs as getHeaderString, Xt as claimInboundMessage, Xu as completeText, Y as conversationKindFromRow, Ya as readAutomationTitlesByConversationId, Yf as isLeadSql, Yi as createPluginModel, Yl as canMoveToSpace, Yo as verifyTimerWatchCredentialSubject, Yp as juniorArtifacts, Yr as getQueueProvider, Ys as getFilePermalink, Yu as completeObject, Zd as createMcpServiceAccountClientProvider, Zi as createPluginConversationEvents, Zl as dispatchInstructionsInvokeSkills, Zo as JUNIOR_THREAD_STATE_TTL_MS, Zr as buildSentryEventUrl, Zs as getSlackClient, Zu as generateImages, _d as hasCompactedConversationContext, _f as resolvePluginHeaderEnvRefs, _r as createPluginInboxItems, _s as annotationSubject, _t as isPluginInboxItem, _u as describeRegisteredEventTrigger, a as getDb, aa as runNonInteractiveCommand, ac as withSlackRetries, af as getMcpAuthSession, ai as resolveTurnResumeRouting, al as hasUserPhoto, ao as fallbackShortTitle, ar as startedTaskDefinition, au as promptModeTurnTools, b as conversationDescendants, bc as resolveActorIdentityId, bd as createAssistantProviderError, bf as McpServiceAccountRequiredError, bi as markDispatchCompleted, bo as WORKSPACE_SNAPSHOT_FAILED_EVENT, bs as listConversationAnnotations, bt as readInboxItemAgentScope, bu as eventWatchUnavailable, ca as truncateStatusText, cd as requestPrefixAttributes, cf as patchMcpAuthSession, ci as confirmDispatchMailboxAppend, co as EVERYONE_ASSIGNEE, cr as pluginTaskParamsSchema, cs as subjectKey, cu as watcherStartedConversation, da as deleteScheduledAutomation, dd as estimateRequestOverheadTokens, df as putMcpStoredOAuthCredentials, di as getDispatchIdForConversation, dl as userAvatarUrlsFromJoinedPhotos, do as resolveAssignee, dr as getTurnRequestDeadline, du as EVENT_SYSTEM_ACTOR, ea as createSandboxCapability, ec as isDmChannel, ed as NoAudioError, ef as PluginMcpClient, eo as usdToMicroUsd, ep as topLevelConversation, er as resolveEventMentions, et as canAgentChangeInboxItem, eu as isPersonInput, f as eventFromRow, fc as readActorIdentity, fd as estimateTextTokens, fi as getDispatchInputMessageId, fo as resolveAssignees, fp as juniorAutomationRuns, fs as assertNoObjectLinkConflicts, gd as COMPACTION_SUMMARY_PREFIX, gi as isTerminalDispatchStatus, gp as juniorStats, gs as CORE_ANNOTATION_PLUGIN, gu as automationEventCatalog, ha as saveScheduledAutomation, hd as gatewayRoutingAttributes, ho as requireSlackChannelMessageScope, hp as juniorAutomations, hr as createPluginConversationChanges, hs as ANNOTATION_SUBJECT_KINDS, hu as CORE_EVENT_NAMESPACE, i as getConversationStore, ia as buildNonInteractiveShellScript, ic as streamPrivateSlackFile, ii as resolveConversationRouting, in as ensureConversationWake, ir as createPluginTaskStarter, is as resolveAnnotationFilter, iu as postsRunNotices, ja as automationDefinition, ji as removeReactionFromMessage, jl as parseDashboardConversationLink, jn as canJoinTurn, js as isPublicConversation, jt as injectContinuationToolName, k as locationFromRow, kc as readCachedLinkedHandle, kl as getDashboardTaskLink, ko as cancelSubscriptions, kp as juniorConversationEvents, kr as leaveEndsAccess, ks as readConversationMetadata, ku as isToolInputError, la as blockScheduledAutomation, lc as createPluginUsers, ld as claudeMaxImageSize, lf as putMcpAuthSession, ll as readUserAvatarUrls, lo as activeParticipantUserIds, lr as sendVercelPluginTask, ls as codeChangeUrl, lu as EVENT_AUTHOR_ID, ma as readScheduledAutomation, mc as readIdentityByIdFromSql, md as readImageDimensions, mi as getDispatchTurnId, mr as createPluginTurnEventReader, ms as linkTypeName, mu as isEventConversationMessage, n as getConversationEventStore, na as withPluginHookSpan, nc as normalizeSlackConversationId, nd as GEN_AI_SERVER_ADDRESS, ni as runWithSlackInstallation, ns as searchConversations, nt as canReadInboxItem, nu as isTopLevel, o as getSqlExecutor, oa as createPluginCache, oc as sleep$1, of as getMcpServerSessionId, ol as identityAvatarUrl, on as getConversationWorkState, pa as parseScheduledAutomationRow, pc as readIdentityById, pd as textCharsForTokens, pi as getDispatchRecord, pn as requestConversationWork, po as getEventCatalog, ps as findObjectLinkType, pu as isEventAuthorId, q as conversationWaitsOnUserSql, qa as readAutomationRowStats, qc as updateInboxItemContent, qf as requireSlackDestination, qi as createPluginDecider, qp as juniorDestinations, qr as signQueueMessage, qs as SlackActionError, qu as storeConversationEmbedding, r as getConversationMessageSearchStore, ra as buildCommandScript, rc as readPrivateSlackFile, rf as deleteMcpServerSessionId, rn as dropPendingMessages, ru as parentResultActor, sa as getConfigDefaults, sd as createCache, sf as getMcpStoredOAuthCredentials, si as claimDispatchMailboxAppend, so as resolveTaskTitle, sr as pluginTaskId, ss as readSubjectLinks, su as turnBehavior, tc as isSlackRequestTimeout, td as GEN_AI_PROVIDER_NAME, tf as deleteMcpAuthSession, tr as createPluginEventPublisher, tu as isThread, ua as createScheduledAutomation, ud as estimateMessagesTokens, uf as putMcpServerSessionId, ui as getDispatchConversationId, ul as userAvatarUrlsFromIdentities, uo as automationCreatorUserId, ur as queueCallback, vd as isCompactionSummaryText, vi as markDispatchAwaitingResume, vs as createPluginAnnotations, wa as getEventAutomation, wf as getMcpProviderErrorAttributes, wi as addReactionToMessage, wp as juniorConversationParticipants, ws as conversationAncestorsOrSelf, wu as registeredEventTypeSchema, x as readConversationTrees, xa as createEventAutomation, xc as saveActorAvatar, xd as createProviderError, xf as McpToolError, xi as markDispatchFailed, xo as WORKSPACE_SNAPSHOT_READY_EVENT, xt as requireInboxItemAssignees, xu as hasEventCatalogEntries, y as conversationAncestors, ya as blockEventAutomation, yc as SYSTEM_IDENTITY_ID, yd as ProviderError, yf as McpProviderError, yi as markDispatchBlocked, yo as slackChannelMessageTrigger, ys as createPluginConversationAnnotations, yt as questionSubject, yu as eventNamespaceSchema, za as emptyAutomationRunWindows, zc as dismissOpenInboxItems, zf as hasAgentTurnUsage, zi as normalizeSlackStatusText, zo as listWatches, zp as juniorMessageAttachments, zr as getVercelConversationWorkQueue, zs as lookupSlackUser, zu as callsToolSql } from "./db-BCaNWl9p.js";
|
|
5
|
-
import { $ as
|
|
6
|
-
import { n as findSkillByName, o as parseSkillInvocations, r as loadSkillsByName, t as discoverSkills } from "./skills-
|
|
7
|
-
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-
|
|
8
|
-
import { A as retainRuntimeTurnContext, B as authorAttrs, C as instructionTextForProjection, D as isToolResultError, E as isStandaloneRuntimeContextMessage, G as mapBounded, H as renderDataTag, M as trimTrailingAssistantMessages, N as CAPABILITY_SECTION_TAG, O as isToolResultMessage, P as REQUEST_CONTEXT_SECTION_TAG, R as unwrapCurrentInstruction, S as hasTurnInput, T as isContinuablePiBoundary, V as readParentAgentTask, W as renderThreadContext, _ as extractAssistantText, a as SANDBOX_COMMAND_PATH, b as getUserMessageInstructionText, c as SANDBOX_REPOS_ROOT, d as SANDBOX_WORKSPACE_ROOT, f as sandboxSkillDir, h as createPluginLogger, i as ATTACHMENT_DIR, j as stripRuntimeTurnContext, k as normalizeToolNameFromResult, l as SANDBOX_SCRATCH_ROOT, m as sandboxSkillPathResolution, o as SANDBOX_DATA_ROOT, p as sandboxSkillFile, r as runPluginHooksAtOnce, s as SANDBOX_JUNIOR_ROOT, u as SANDBOX_SKILLS_ROOT, v as getPiMessageRole, w as isAssistantMessage } from "./prompt-
|
|
2
|
+
import { $ as resolveGatewayModel, B as getSlackBotToken, C as parseActorUserId, D as parseSlackChannelReferenceId, E as parseSlackChannelId, H as getSlackClientSecret, J as normalizeSlackEmojiName, L as botConfig, O as parseSlackTeamId, P as parseSlackMessageTs, R as getChatConfig, S as isUserActor, U as getSlackSigningSecret, V as getSlackClientId, X as toPiReasoningLevel, Y as TURN_REASONING_LEVELS, _ as createActor, a as getStateValues, b as isActorUserId, c as acquireActiveLock, d as actorLogContext, f as credentialContextForActor, g as credentialUserSubjectId, i as getStateAdapter, k as parseSlackUserId, l as fenceLock, o as setStateValues, u as withLock, v as createSlackActor, y as createSlackResumeActor } from "./adapter-DlLLoJKj.js";
|
|
3
|
+
import { A as toOptionalString, E as runWithLogAttributes, S as summarizeMessageText, T as withSpan, _ as serializeGenAiAttribute, a as getActiveTraceContext, b as setSpanStatus, c as getLogContextAttributesForSpan, d as logError, f as logException, g as runBestEffort, h as normalizeGenAiFinishReason, i as extractGenAiUsageSummary, k as normalizeIdentityEmail, l as getTracePropagationHeaders, m as logWarn, o as getActiveTraceId, p as logInfo, r as extractGenAiUsageAttributes, t as createChatSdkLogger, u as logAudit, v as setSentryUser, w as withLogContext, x as setTags, y as setSpanAttributes } from "./logging-DsTnMqyi.js";
|
|
4
|
+
import { $a as usdToMicroUsd, $d as PluginMcpClient, $f as topLevelConversation, $i as createSandboxCapability, $l as isPersonInput, $n as resolveEventMentions, $s as isDmChannel, $u as NoAudioError, Aa as automationDefinition, Ai as removeReactionFromMessage, Al as parseDashboardConversationLink, An as canJoinTurn, As as isPublicConversation, At as injectContinuationToolName, Ba as linkAutomationRunConversation, Bc as getOpenInboxItemBySubject, Bi as slackMentionedUserIds, Bo as turnEvents, Bp as juniorSpaceConfigurations, Bu as excerptTerms, Ca as getEventAutomation, Cf as getMcpProviderErrorAttributes, Ci as addReactionToMessage, Cp as juniorConversationParticipants, Cs as conversationAncestorsOrSelf, Cu as registeredEventTypeSchema, D as createSqlStore, Da as setEventAutomationStatus, Df as getOAuthProviderErrorAttributes, Dl as getDashboardSpaceLink, Dn as releaseInboundMessage, Do as starterWatchId, Du as ToolInputError, E as latestUserMessageQuery, Ea as saveEventAutomation, Ed as getGatewayApiKey, Ef as fetchWithBoundedOAuthErrorBodies, Ei as openSlackDirectMessage, Eo as publishAgentUpdate, Es as loadAnnotationLabeler, Et as getRegistrations, Eu as requireValidEventTrigger, F as destinationUpsertFromDestination, Fc as closeReadReplyNotice, Ff as agentTurnCostUsd, Fi as SLACK_USER_MENTION_RE, Fn as readInboundMessageSender, Fo as getWatch, Fp as juniorCodeRepositories, Fs as defaultTimezone, Ft as CHILD_AGENT_KINDS, Fu as seqIn, G as conversationStatusSql, Ga as readAutomationExecutions, Gf as createSlackDestination, Gi as createPluginState, Gp as juniorUsers, Gr as QUEUE_SIGNATURE_MAX_AGE_MS, Gu as embedConversationQuery, Ha as readAutomationExecutionStatusDays, Hf as conversationDetailTouch, Hp as juniorIdentities, Ht as appendAndEnqueueExclusiveInboundMessage, Hu as isEventEmbeddingsEnabled, I as upsertDestination, Ia as automationRevision, Ii as escapeSlackMrkdwnText, In as isEventMailboxMetadata, Io as isQuietEvent, Ip as juniorAttachmentUploads, It as PARENT_AGENT_TARGET, J as executionIsActive, Ja as readAutomationTitlesByConversationId, Jf as isLeadSql, Ji as createPluginModel, Jl as canMoveToSpace, Jo as verifyTimerWatchCredentialSubject, Jp as juniorArtifacts, Jr as getQueueProvider, Js as getFilePermalink, Ju as completeObject, Ka as readAutomationRowStats, Kc as updateInboxItemContent, Kf as requireSlackDestination, Ki as createPluginDecider, Kp as juniorDestinations, Kr as signQueueMessage, Ks as SlackActionError, Ku as storeConversationEmbedding, L as parseSessionSource, La as requireAutomationRevision, Lc as closeInboxItem, Li as formatSlackLink, Ln as createSlackInboxItemToolServices, Lp as juniorAttachments, Ls as resolveUserTimezone, Lt as agentNameSchema, Lu as SEARCHABLE_EVENT_TYPES, Ma as listAutomationVersions, Mi as uploadFilesToConversation, Ml as parseDashboardTaskLink, Mo as createWatch, Mt as makeStructuredToolOutput, Mu as indexEndedTurnEvents, Na as readAutomationVersion, No as deliverWatch, Nt as findChildAgentConversationId, Nu as lexemesSql, O as withConversationMutationLock, Oc as readCachedLinkedHandle, Ol as getDashboardTaskLink, Oo as cancelSubscriptions, Op as juniorConversationEvents, Or as leaveEndsAccess, Os as readConversationMetadata, Ou as isToolInputError, Pa as sameDefinitionValue, Pd as getAppContext, Pf as addAgentTurnUsage, Pn as readParentMessage, Po as findMatchingWatches, Pp as juniorCodeChanges, Pu as searchedEventTextSql, Qc as pluginSubjectKind, Qd as McpAuthorizationRequiredError, Qi as basePluginContext, Qn as sendSlackReply, Qo as isConversationDeliveryPaused, Qs as isConversationScopedChannel, Qu as transcribeFromUrl, Ra as emptyAutomationRunWindows, Rc as dismissOpenInboxItems, Rf as hasAgentTurnUsage, Ri as normalizeSlackStatusText, Ro as listWatches, Rp as juniorMessageAttachments, Rr as getVercelConversationWorkQueue, Rs as lookupSlackUser, Ru as callsToolSql, S as setArchivedAt, Sd as getProviderErrorAttributes, Sf as getMcpAwareTelemetryMessage, Si as notifyAutomationBlocked, Sl as getDashboardConversationLink, So as workspaceSnapshotWatch, Sp as juniorConversationReadPositions, Sr as canAccessConversation, Ss as upsertPluginAnnotation, Su as registeredEventTriggerProblems, Ta as parseEventAutomationRow, Td as isProviderRetryError, Tf as OAuthProviderError, Ti as getSlackMessagePermalink, Tl as getDashboardPersonLink, Tp as juniorConversationEventEmbeddings, Tr as canReadConversation, Ts as conversationSubtreeColumns, Tt as getPlugins, Tu as requireEventIdentifier, Ua as readAutomationExecutionStatusHours, Uc as ownerConversationId, Ud as serviceAccountAllows, Uf as nextDetailVersion, Ut as appendAndEnqueueInboundMessage, Va as readAutomationExecutionByConversationId, Vc as insertInboxItem, Vf as rootConversationIsArchived, Vp as juniorSpaces, Wa as readAutomationExecutionSummaries, Wc as searchInboxItems, Wd as serviceAccountOnly, Wf as touchConversationDetail, Wi as pluginMcpContext, Wo as createSlackDirectCredentialSubject, Wu as createConversationEmbedder, Xd as createMcpServiceAccountClientProvider, Xi as createPluginConversationEvents, Xl as dispatchInstructionsInvokeSkills, Xo as JUNIOR_THREAD_STATE_TTL_MS, Xr as buildSentryEventUrl, Xs as getSlackClient, Xu as generateImages, Y as conversationKindFromRow, Yf as rootSpaceIdSql, Yi as createPluginModelCostRecorder, Yl as deliversFinalText, Ys as getHeaderString, Yt as claimInboundMessage, Yu as completeText, Zd as getMcpServiceAccountCredentials, Zi as renderPluginConversationEvent, Zl as hasConversationMetadata, Zn as resolveSlackReplyTarget, Zs as isConversationChannel, Zu as searchWeb, _d as isCompactionSummaryText, _i as markDispatchAwaitingResume, _s as createPluginAnnotations, a as getDb, aa as createPluginCache, ac as sleep$1, af as getMcpServerSessionId, al as identityAvatarUrl, an as getConversationWorkState, b as conversationDescendants, ba as createEventAutomation, bc as saveActorAvatar, bd as createProviderError, bf as McpToolError, bi as markDispatchFailed, bo as WORKSPACE_SNAPSHOT_READY_EVENT, bt as requireInboxItemAssignees, bu as hasEventCatalogEntries, ca as blockScheduledAutomation, cc as createPluginUsers, cd as claudeMaxImageSize, cf as putMcpAuthSession, cl as readUserAvatarUrls, co as activeParticipantUserIds, cr as sendVercelPluginTask, cs as codeChangeUrl, cu as EVENT_AUTHOR_ID, dc as readActorIdentity, dd as estimateTextTokens, di as getDispatchInputMessageId, do as resolveAssignees, dp as juniorAutomationRuns, ds as assertNoObjectLinkConflicts, ec as isSlackRequestTimeout, ed as GEN_AI_PROVIDER_NAME, ef as deleteMcpAuthSession, er as createPluginEventPublisher, et as canAgentChangeInboxItem, eu as isThread, f as eventFromRow, fa as parseScheduledAutomationRow, fc as readIdentityById, fd as textCharsForTokens, fi as getDispatchRecord, fn as requestConversationWork, fo as getEventCatalog, fs as findObjectLinkType, fu as isEventAuthorId, gd as hasCompactedConversationContext, gf as resolvePluginHeaderEnvRefs, gr as createPluginInboxItems, gs as annotationSubject, gt as isPluginInboxItem, gu as describeRegisteredEventTrigger, hd as COMPACTION_SUMMARY_PREFIX, hi as isTerminalDispatchStatus, hp as juniorStats, hs as CORE_ANNOTATION_PLUGIN, hu as automationEventCatalog, i as getConversationStore, ia as runNonInteractiveCommand, ic as withSlackRetries, if as getMcpAuthSession, ii as resolveTurnResumeRouting, il as hasUserPhoto, io as fallbackShortTitle, ir as startedTaskDefinition, iu as promptModeTurnTools, jd as renderJuniorNativeConversationEvent, jl as parseDashboardPersonLink, jn as canShareTurn, jo as createTimerWatch, jr as readableSlackTeamId, js as resolveRootVisibility, jt as juniorToolOutputSchema, k as locationFromRow, kc as readCachedUserByEmail, ki as postSlackMessage, kl as isDashboardLink, kn as withIdleConversation, ko as cancelWatch, kr as readConversationAccessFromSql, ks as writeConversationMetadata, la as createScheduledAutomation, ld as estimateMessagesTokens, lf as putMcpServerSessionId, li as getDispatchConversationId, ll as userAvatarUrlsFromIdentities, lo as automationCreatorUserId, lr as queueCallback, ma as saveScheduledAutomation, md as gatewayRoutingAttributes, mo as requireSlackChannelMessageScope, mp as juniorAutomations, mr as createPluginConversationChanges, ms as ANNOTATION_SUBJECT_KINDS, mu as CORE_EVENT_NAMESPACE, n as getConversationEventStore, na as buildCommandScript, nc as readPrivateSlackFile, nf as deleteMcpServerSessionId, nn as dropPendingMessages, nt as canReadInboxItem, nu as parentResultActor, o as getSqlExecutor, oa as getConfigDefaults, od as createCache, of as getMcpStoredOAuthCredentials, oi as claimDispatchMailboxAppend, oo as resolveTaskTitle, or as pluginTaskId, os as readSubjectLinks, ou as turnBehavior, pa as readScheduledAutomation, pc as readIdentityByIdFromSql, pd as readImageDimensions, pi as getDispatchTurnId, pr as createPluginTurnEventReader, ps as linkTypeName, pu as isEventConversationMessage, q as conversationWaitsOnUserSql, qa as readAutomationRuns, qf as sameDestination, qi as createPluginEmbedder, ql as fuseRankedLists, qp as guardedCosineDistance, qr as verifyQueueMessage, qs as downloadPrivateSlackFile, qu as completeDecision, r as getConversationMessageSearchStore, ra as buildNonInteractiveShellScript, rc as streamPrivateSlackFile, ri as resolveConversationRouting, rn as ensureConversationWake, rr as createPluginTaskStarter, rs as resolveAnnotationFilter, ru as postsRunNotices, sa as truncateStatusText, sd as requestPrefixAttributes, sf as patchMcpAuthSession, si as confirmDispatchMailboxAppend, so as EVERYONE_ASSIGNEE, sr as pluginTaskParamsSchema, ss as subjectKey, su as watcherStartedConversation, ta as withPluginHookSpan, tc as normalizeSlackConversationId, td as GEN_AI_SERVER_ADDRESS, ti as runWithSlackInstallation, ts as searchConversations, tu as isTopLevel, ua as deleteScheduledAutomation, ud as estimateRequestOverheadTokens, uf as putMcpStoredOAuthCredentials, ui as getDispatchIdForConversation, ul as userAvatarUrlsFromJoinedPhotos, uo as resolveAssignee, ur as getTurnRequestDeadline, uu as EVENT_SYSTEM_ACTOR, va as blockEventAutomation, vc as SYSTEM_IDENTITY_ID, vd as ProviderError, vf as McpProviderError, vi as markDispatchBlocked, vo as slackChannelMessageTrigger, vs as createPluginConversationAnnotations, vt as questionSubject, vu as eventNamespaceSchema, wa as listDeletedEventAutomationsCreatedBy, wd as isProviderRefusal, wf as toMcpProviderError, wl as getDashboardLinkFilter, wo as agentWatch, wp as juniorConversationEventLexemes, wr as canInviteToConversation, ws as conversationSubtree, wu as registeredResourceTypeSchema, x as readConversationTrees, xa as deleteEventAutomation, xd as findProviderError, xf as getMcpAwareErrorType, xi as markDispatchRunning, xn as hasConversationStop, xo as workspaceSnapshotFinishedEvent, xr as createPluginCodeChanges, xs as replaceAnnotationSubjectId, xt as requireInboxItemLinks, xu as registeredEventMatchSchema, y as conversationAncestors, yc as resolveActorIdentityId, yd as createAssistantProviderError, yf as McpServiceAccountRequiredError, yi as markDispatchCompleted, yo as WORKSPACE_SNAPSHOT_FAILED_EVENT, ys as listConversationAnnotations, yt as readInboxItemAgentScope, yu as eventWatchUnavailable, zc as getInboxItem, zf as isLeadConversation, zi as slackMention, zp as juniorConversations, zs as lookupSlackUserNames, zu as eventExcerpt } from "./db-BacvswT0.js";
|
|
5
|
+
import { $ as deleteWebAuthorization, $n as normalizeConversationText, $r as ToolActionReviewUnavailableError, $t as listWorkspaceNamesByRepository, A as resumeForPersonInput, An as recordAgentsInstructionsUpdated, Ar as recordTurnSummary, At as readTaskInstructions, B as turnInputFactsFromConversationMessage, Br as TurnToolCallLimitExceededError, Bt as isCooperativeTurnYieldError, C as getChildAgentLockName, Cn as writeAgentHistory, Cr as pauseLostWorkerTurn, Ct as buildPromptInput, Dn as loadConversationProjection, Dr as failTurnRecord, Dt as loadPromptTurnContext, E as isInheritedForkHistory, En as loadConnectedMcpProviders, Er as completeTurnRecord, Et as instructionForInputs, Fn as recordGuardianActionReviewed, Ft as ConversationTurnBoundaryError, G as getTurnUserSlackMessageTs, Gn as resolveConversationTitle, Gr as captureTurnFailure, Gt as markTurnFailed, H as getTurnUserMessage, Hn as persistConversationMessageWindow, Hr as createTurnLimitGate, Ht as isTurnInputDeferredError, I as getEventBatchDelayMs, In as recordMcpProviderConnected, Ir as GATED_TURN_LIMIT_WRAP_UP_MESSAGE, It as CooperativeTurnYieldError, J as getPersistedThreadState, Jn as estimateConversationMessagesTokens, Jr as requireTurnFailureEventId, Jt as buildDeterministicTurnId, K as getLocationConfigurationService, Kr as finalizeFailedTurnReplyWithEvent, Kt as startActiveTurn, L as listActiveMailboxTurns, Ln as recordSkillLoaded, Lr as TURN_LIMIT_WRAP_UP_MESSAGE, Lt as TurnInputCommitLostError, Mr as getTurnLifecycle, N as stopConversationTree, Nn as recordAuthorizationCompleted, Nr as loadTurnStart, Nt as saveUserCustomization, O as enqueueAutomatedInput, On as loadConversationSkillNames, Or as getTurnRecord, Ot as turnRequestText, P as completeCancelledConversationTurn, Pn as recordAuthorizationRequested, Pt as addConversationNote, Q as createWebAuthorization, Qn as markConversationMessage, Qr as ToolActionReviewLimitError, Qt as getWorkspaceByName, R as resolveMailboxTurnWork, Rn as recordSubscribedReplyRoute, Rr as TurnBudgetExceededError, Rt as TurnInputDeferredError, Sn as withAgentRequest, Sr as lostWorkerBeforeFirstSave, St as assemblePrompt, Tn as commitMessages, Tr as abandonTurnRecord, Tt as instructionActorFor, U as getTurnUserMessageId, Un as persistConversationMessages, Ur as isTurnExecutionLimitExceededError, Ut as markTurnClosed, V as legacyWebMailboxMetadataSchema, Vn as hydrateConversationMessages, Vr as buildTurnErrorResponse, Vt as isTurnInputCommitLostError, W as getTurnUserReplyAttachmentContext, Wr as buildTurnFailureResponse, Wt as markTurnCompleted, X as persistThreadStateById, Xn as isHumanConversationMessage, Xr as isCutOffStopReason, Xt as deleteWorkspace, Y as persistThreadRuntimeState, Yn as getConversationMessageSlackTs, Yr as buildTurnResult, Yt as createWorkspace, Z as coerceThreadConversationState, Zn as latestConversationMessageSeq, Zr as ToolActionRejectedError, Zt as getWorkspace, _ as dropWaitingParentMessages, _i as configValueSchema, _n as renderAgentsInstructions, _r as canReusePendingAuthLink, _t as resolveBotSlackTeamId, a as listDescendantAgents, ai as ROOT_LINE_BREAK, an as workspaceRepoCheckoutPath, ar as calculateContextCompactionTargetTokens, at as addQuietEventNote, b as readAgentConfig, bn as foldSystemMessages, br as continuableMessages, bt as loadThreadContextCursor, ci as CODE_MODE_CALL_STATUS_TEXT, cn as setWorkspaceSnapshot, cr as getAgentContextInputLimitTokens, ct as eventBatchMessageMeta, d as isStopResult, di as formatProviderLabel, dn as buildDeploymentSystemPrompt, dr as createPluginAuthOrchestration, ei as createToolActionReview, en as listWorkspaces, er as recordDeliveredAssistantMessage, f as readChildConversationSender, fn as AGENTS_REMOVAL_NOTICE, fr as authorizationId, g as commitParentMessageFork, gi as validateConfigValue, gn as readRepositoryInstructions, gr as abandonReplacedPendingAuth, gt as resolveEventAuthor, h as childAgentTurnOptions, hi as validateConfigKey, hn as findVisibleAgentsInstructions, hr as AuthorizationPauseError, i as listChildAgents, ii as RISK_LEVELS, in as tryWorkspaceRepoCheckoutPath, ir as upsertConversationMessage, it as EVENT_WAIT_MS, jn as recordAttachmentsDelivered, jr as ConversationTurnLifecycleService, k as getConversationStoppedAtMs, kr as listTurnSummaries, kt as withoutSavedSteeringMessages, l as withSenderActors, li as persistWithRetry, ln as setWorkspaceSnapshotBuild, lr as createPluginEgress, lt as renderEventBatchInputs, mi as projectConversationEvents$1, mn as buildAgentsInstructionsMessage, mr as AuthorizationFlowDisabledError, ni as getToolActionRejectionMarker, nn as updateWorkspace, nr as trimConversationMessages, nt as loadInboxItemInput, oi as USER_AUTHORIZATION_LEVELS, on as invalidateReadySnapshot, or as getAgentBackgroundCompactionMarkTokens, pn as AGENTS_REPLACEMENT_NOTICE, pr as AuthPausePersistenceError, q as getPersistedSandboxState, qn as conversationAuthorDisplayName, qr as getAgentTurnDiagnosticsAttributes, qt as buildDeterministicAssistantMessageId, r as listAgentRelatives, ri as restoreToolActionRejections, rn as WorkspaceValidationError, rr as turnHasReply, rt as savedInputInstruction, si as CODEMODE_TOOL_NAME, sn as loadSnapshotsForProfile, sr as getAgentContextCompactionTriggerTokens, st as enqueueEventNotification, t as recordChildAgentEnded, ti as reviewToolActions, tr as renderConversationMessageLine, tt as eventInboxItemInputs, u as isChildAgentEvent, ui as deliverOAuthAuthorization, un as isExperimentalFeatureEnabled, ur as PluginCredentialFailureError, ut as timerWatchCredentialSubject, v as isParentMessageAuthor, vn as showsAgentsInstructions, vr as clearPendingAuth, vt as isHeldInputMessage, wn as commitAcceptedReply, wr as saveTurnCheckpoint, wt as buildSteeringPiMessage, xn as readAgentHistory, xr as loadTurnCheckpoint, xt as loadThreadContextTrimFloor, yn as foldLeadingSystemMessages, yt as withHeldInput, z as sourceFromTurnInput, zn as recordToolExecutionStarted, zr as TurnSliceLimitExceededError, zt as getConversationTurnBoundaryError } from "./markers-C33gNYNE.js";
|
|
6
|
+
import { n as findSkillByName, o as parseSkillInvocations, r as loadSkillsByName, t as discoverSkills } from "./skills-50izzzdK.js";
|
|
7
|
+
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-qoh95v90.js";
|
|
8
|
+
import { A as retainRuntimeTurnContext, B as authorAttrs, C as instructionTextForProjection, D as isToolResultError, E as isStandaloneRuntimeContextMessage, G as mapBounded, H as renderDataTag, M as trimTrailingAssistantMessages, N as CAPABILITY_SECTION_TAG, O as isToolResultMessage, P as REQUEST_CONTEXT_SECTION_TAG, R as unwrapCurrentInstruction, S as hasTurnInput, T as isContinuablePiBoundary, V as readParentAgentTask, W as renderThreadContext, _ as extractAssistantText, a as SANDBOX_COMMAND_PATH, b as getUserMessageInstructionText, c as SANDBOX_REPOS_ROOT, d as SANDBOX_WORKSPACE_ROOT, f as sandboxSkillDir, h as createPluginLogger, i as ATTACHMENT_DIR, j as stripRuntimeTurnContext, k as normalizeToolNameFromResult, l as SANDBOX_SCRATCH_ROOT, m as sandboxSkillPathResolution, o as SANDBOX_DATA_ROOT, p as sandboxSkillFile, r as runPluginHooksAtOnce, s as SANDBOX_JUNIOR_ROOT, u as SANDBOX_SKILLS_ROOT, v as getPiMessageRole, w as isAssistantMessage } from "./prompt-C5CW2wKO.js";
|
|
9
9
|
import { $t as automationInstructionToolSchema, Bn as AGENT_UPDATE_EVENT_TYPE, Cn as userInputQuestionSchema, Ct as instructionActors, Dn as automationTaskDescription, Fn as getZonedDateTimeParts, Gt as resolveMessageCards, In as isValidTimeZone, J as conversationReportMessageEventSchema, Kt as automationCardStatus, Nn as getFirstRunAtMs, On as automationTaskSchema, Qt as automationContextToolSchema, Rn as apiErrorSchema, Sn as userInputFieldsSchema, St as contextProvenance, Tn as automationSkillNameSchema, Tt as sameActorIdentity, Ut as readMessageCardRefs, Vn as TOP_LEVEL_AGENT_MESSAGE_EVENT_TYPE, Wt as removedCardSchema, Zt as readMessageAttachments, _ as automationListQuerySchema, an as ScheduleIntentError, at as KNOWN_CONVERSATION_EVENT_TYPES, cn as toolScheduleIntentSchema, dn as eventAutomationTriggerSchema, en as automationTitleSchema, gt as historyItemFromPiMessage, it as formatAgentTypes, kn as automationTaskText, ln as weekdaySchema, nn as SCHEDULED_AUTOMATION_SYSTEM_ACTOR, on as compileScheduleIntent, pn as inboxItemQuestion, q as conversationReportEventSchema, qt as MAX_ATTACHMENT_BYTES, sn as scheduleIntentFromTool, tn as taskOutcomeInputSchema, tt as AGENT_TYPES, wn as userInputRequestSchema, wt as instructionProvenanceFor, yn as formatUserInputAnswer, yt as piMessageFromHistoryItem, zt as inboxItemChangeRecordSchema } from "./types-BNHkJrOP.js";
|
|
10
10
|
import { g as withActiveSpan, h as startSpan, i as getActiveSpan, m as startInactiveSpan, n as captureMessage, r as continueTrace, u as sentry_exports } from "./sentry-CPbZjomA.js";
|
|
11
|
-
import { _ as NO_REPLY_TOOL_NAME, c as renderPluginContextSection, d as readTurnAnswer, f as remindMissingAnswer, h as getAssistantReplyText, i as JUNIOR_PERSONALITY, l as REPLY_TOOL_NAME, m as decideReply, p as replyTextSchema, u as isAnswerToolName, v as findLegacyNoReplyMarker, x as REPORT_BLOCKED_TOOL_NAME, y as isLegacyNoReplyMarker } from "./system-prompt-table-
|
|
11
|
+
import { _ as NO_REPLY_TOOL_NAME, c as renderPluginContextSection, d as readTurnAnswer, f as remindMissingAnswer, h as getAssistantReplyText, i as JUNIOR_PERSONALITY, l as REPLY_TOOL_NAME, m as decideReply, p as replyTextSchema, u as isAnswerToolName, v as findLegacyNoReplyMarker, x as REPORT_BLOCKED_TOOL_NAME, y as isLegacyNoReplyMarker } from "./system-prompt-table-CIR1B44Z.js";
|
|
12
12
|
import { a as webPageObjectCard, i as personObjectCard, n as conversationObjectCard, o as webMessageId, p as sumUtcHoursIntoSixHours, r as messageObjectCard, t as AGENT_STATUSES, v as CHILD_AGENT_RESULTS } from "./agent-status-Bq_AIpyp.js";
|
|
13
|
-
import { A as createUserTokenStore, C as clearSandboxEgressSignals, E as createSandboxEgressCredentialToken, F as getOAuthAccountProviders, L as credentialAuditAttributes, M as resolveSandboxCommandEnvironment, R as credentialAuditSource, T as consumeSandboxEgressPermissionDeniedSignal, _ as WorkspaceSnapshotNotReadyError, a as ensureDockerDaemon, b as workspaceSnapshotNotReadyUserMessage, d as SandboxCallTimeoutError, f as findInErrorChain, g as wrapSandboxSetupError, h as throwSandboxOperationError, j as buildSandboxEgressNetworkPolicy, m as isAlreadyExistsError, n as hash, o as getSandboxProvider, p as isAbortError, r as isStale, s as isRetryableSandboxFailure, t as create, u as SANDBOX_RUNTIME, v as getWorkspaceSnapshotNotReadyError, w as consumeSandboxEgressAuthRequiredSignal, y as isWorkspaceSnapshotNotReadyError } from "./profile-
|
|
14
|
-
import { a as searchSlackUsers, i as lookupSlackUserProfile, r as lookupSlackUserByEmail } from "./users-
|
|
13
|
+
import { A as createUserTokenStore, C as clearSandboxEgressSignals, E as createSandboxEgressCredentialToken, F as getOAuthAccountProviders, L as credentialAuditAttributes, M as resolveSandboxCommandEnvironment, R as credentialAuditSource, T as consumeSandboxEgressPermissionDeniedSignal, _ as WorkspaceSnapshotNotReadyError, a as ensureDockerDaemon, b as workspaceSnapshotNotReadyUserMessage, d as SandboxCallTimeoutError, f as findInErrorChain, g as wrapSandboxSetupError, h as throwSandboxOperationError, j as buildSandboxEgressNetworkPolicy, m as isAlreadyExistsError, n as hash, o as getSandboxProvider, p as isAbortError, r as isStale, s as isRetryableSandboxFailure, t as create, u as SANDBOX_RUNTIME, v as getWorkspaceSnapshotNotReadyError, w as consumeSandboxEgressAuthRequiredSignal, y as isWorkspaceSnapshotNotReadyError } from "./profile-v9vA3RvH.js";
|
|
14
|
+
import { a as searchSlackUsers, i as lookupSlackUserProfile, r as lookupSlackUserByEmail } from "./users-DOVo9sdU.js";
|
|
15
15
|
import { o as detectImageMediaType, r as userCustomizationTextSchema, s as isVisionImageMediaType, t as USER_CUSTOMIZATION_MAX_CHARS } from "./user-customization-CvfuY9Eo.js";
|
|
16
|
-
import { t as bufferBody } from "./storage-
|
|
17
|
-
import { a as isConversationMember, c as listChannelMessages, i as getConversationInfo, l as listThreadReplies, n as joinPublicChannelForRead, o as isPublicSlackChannel, r as getChannelMessage, s as joinPublicChannel, t as checkSlackChannelReadAccess } from "./channel-access-
|
|
18
|
-
import { a as AgentNameInUseError, c as RetryableDeliveryError, d as isAgentRunFeatureDisabled, f as surfaceFromRun, i as AgentMessageTargetError, l as actorFromRun, n as spawnChildAgent, o as AgentStoppedError, p as toolInvocationDestination, r as AgentDepthLimitError, s as ChildAgentLimitError, t as messageChildAgent, u as assertRunConsistency } from "./create-
|
|
19
|
-
import { n as enqueueAgentMessageToParent, o as listChildMessages } from "./result-
|
|
20
|
-
import { a as setSnapshotSpanAttributes, i as postinstall, n as resolve$1, o as getSandboxResources, r as dependencies } from "./resolve-
|
|
16
|
+
import { t as bufferBody } from "./storage-BtCxXiNt.js";
|
|
17
|
+
import { a as isConversationMember, c as listChannelMessages, i as getConversationInfo, l as listThreadReplies, n as joinPublicChannelForRead, o as isPublicSlackChannel, r as getChannelMessage, s as joinPublicChannel, t as checkSlackChannelReadAccess } from "./channel-access-BghWqlXx.js";
|
|
18
|
+
import { a as AgentNameInUseError, c as RetryableDeliveryError, d as isAgentRunFeatureDisabled, f as surfaceFromRun, i as AgentMessageTargetError, l as actorFromRun, n as spawnChildAgent, o as AgentStoppedError, p as toolInvocationDestination, r as AgentDepthLimitError, s as ChildAgentLimitError, t as messageChildAgent, u as assertRunConsistency } from "./create-jZSaDrCR.js";
|
|
19
|
+
import { n as enqueueAgentMessageToParent, o as listChildMessages } from "./result-BPNzgeTl.js";
|
|
20
|
+
import { a as setSnapshotSpanAttributes, i as postinstall, n as resolve$1, o as getSandboxResources, r as dependencies } from "./resolve-HVXmbeCr.js";
|
|
21
21
|
import { a as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC, n as CACHE_WARMUP_QUEUE_TOPIC, t as BACKGROUND_COMPACTION_QUEUE_TOPIC, u as listReferenceFiles } from "./topics-DxuKurCX.js";
|
|
22
22
|
import { n as privateTraceResultAttributes } from "./private-trace-result-CE7_lEdq.js";
|
|
23
23
|
import * as z from "zod";
|
|
@@ -12520,27 +12520,27 @@ const TEAM_DOMAIN_NEGATIVE_CACHE_TTL_MS = 6e4;
|
|
|
12520
12520
|
function sharedTeamDomainKey(teamId) {
|
|
12521
12521
|
return `slack-team-domain:${teamId}`;
|
|
12522
12522
|
}
|
|
12523
|
-
const teamDomainCache = /* @__PURE__ */ new Map();
|
|
12524
|
-
const teamDomainInflight = /* @__PURE__ */ new Map();
|
|
12525
12523
|
function readTeamDomainCache(teamId) {
|
|
12526
|
-
const
|
|
12524
|
+
const { entries } = getAppContext().slackTeamDomains;
|
|
12525
|
+
const hit = entries.get(teamId);
|
|
12527
12526
|
if (!hit) return void 0;
|
|
12528
12527
|
if (hit.expiresAt < Date.now()) {
|
|
12529
|
-
|
|
12528
|
+
entries.delete(teamId);
|
|
12530
12529
|
return;
|
|
12531
12530
|
}
|
|
12532
12531
|
return hit.kind === "hit" ? hit.domain : null;
|
|
12533
12532
|
}
|
|
12534
12533
|
function writeTeamDomainCache(teamId, domain) {
|
|
12534
|
+
const { entries } = getAppContext().slackTeamDomains;
|
|
12535
12535
|
if (domain) {
|
|
12536
|
-
|
|
12536
|
+
entries.set(teamId, {
|
|
12537
12537
|
kind: "hit",
|
|
12538
12538
|
domain,
|
|
12539
12539
|
expiresAt: Date.now() + TEAM_DOMAIN_CACHE_TTL_MS
|
|
12540
12540
|
});
|
|
12541
12541
|
return;
|
|
12542
12542
|
}
|
|
12543
|
-
|
|
12543
|
+
entries.set(teamId, {
|
|
12544
12544
|
kind: "miss",
|
|
12545
12545
|
expiresAt: Date.now() + TEAM_DOMAIN_NEGATIVE_CACHE_TTL_MS
|
|
12546
12546
|
});
|
|
@@ -12583,12 +12583,13 @@ async function resolveSlackTeamDomain(teamId) {
|
|
|
12583
12583
|
if (!parsedTeamId) return void 0;
|
|
12584
12584
|
const cached = readTeamDomainCache(parsedTeamId);
|
|
12585
12585
|
if (cached !== void 0) return cached ?? void 0;
|
|
12586
|
-
const
|
|
12586
|
+
const { inflight } = getAppContext().slackTeamDomains;
|
|
12587
|
+
const pending = inflight.get(parsedTeamId);
|
|
12587
12588
|
if (pending) return pending;
|
|
12588
12589
|
const lookup = loadSlackTeamDomain(parsedTeamId).finally(() => {
|
|
12589
|
-
|
|
12590
|
+
inflight.delete(parsedTeamId);
|
|
12590
12591
|
});
|
|
12591
|
-
|
|
12592
|
+
inflight.set(parsedTeamId, lookup);
|
|
12592
12593
|
return lookup;
|
|
12593
12594
|
}
|
|
12594
12595
|
/** Resolve workspace subdomains for the distinct team ids in one API response. */
|
|
@@ -22394,19 +22395,6 @@ async function archiveConversation(viewer, conversationId, body, services) {
|
|
|
22394
22395
|
case "archived_ancestor": throwApiError(409, `Conversation ${result.archivedAncestorId} above this one is archived. Restore it first.`);
|
|
22395
22396
|
}
|
|
22396
22397
|
}
|
|
22397
|
-
// src/api/conversations/user-message-activity.ts
|
|
22398
|
-
/** Read the latest true user message time for each selected conversation. */
|
|
22399
|
-
async function readLastUserMessageAtByConversation(db, conversationIds) {
|
|
22400
|
-
if (conversationIds.length === 0) return /* @__PURE__ */ new Map();
|
|
22401
|
-
const message = latestUserMessageQuery(db).as("latest_user_message");
|
|
22402
|
-
const rows = await db.select({
|
|
22403
|
-
conversationId: juniorConversations.conversationId,
|
|
22404
|
-
messageAt: message.createdAt
|
|
22405
|
-
}).from(juniorConversations).leftJoinLateral(message, sql`true`).where(inArray(juniorConversations.conversationId, conversationIds));
|
|
22406
|
-
const result = /* @__PURE__ */ new Map();
|
|
22407
|
-
for (const { conversationId, messageAt } of rows) if (messageAt) result.set(conversationId, messageAt.toISOString());
|
|
22408
|
-
return result;
|
|
22409
|
-
}
|
|
22410
22398
|
// src/chat/child-agents/tool-source.ts
|
|
22411
22399
|
/** Deferred tool catalog source for finding, stopping, and archiving agents. */
|
|
22412
22400
|
const AGENTS_TOOL_SOURCE = {
|
|
@@ -22418,15 +22406,10 @@ const archiveAgentOutputSchema = juniorToolOutputSchema.extend({
|
|
|
22418
22406
|
conversation_id: z.string().min(1).describe("Archived child conversation ID"),
|
|
22419
22407
|
archived_at: z.string().describe("When the child agent was archived")
|
|
22420
22408
|
});
|
|
22421
|
-
/** Read when a person last sent a Message to one Conversation. */
|
|
22422
|
-
async function readLastPersonMessageAtMs(conversationId) {
|
|
22423
|
-
const at = (await readLastUserMessageAtByConversation(getDb(), [conversationId])).get(conversationId);
|
|
22424
|
-
return at === void 0 ? void 0 : Date.parse(at);
|
|
22425
|
-
}
|
|
22426
22409
|
const archiveAgentToolDefinition = zodToolDefinition({
|
|
22427
22410
|
exposure: "deferred",
|
|
22428
22411
|
source: AGENTS_TOOL_SOURCE,
|
|
22429
|
-
description: "Archive a child agent that this conversation started, a Thread or a Task, for everyone, when its work is done. A person's new message restores it.
|
|
22412
|
+
description: "Archive a child agent that this conversation started, a Thread or a Task, for everyone, when its work is done. A person's new message restores it.",
|
|
22430
22413
|
annotations: {
|
|
22431
22414
|
destructiveHint: false,
|
|
22432
22415
|
idempotentHint: true,
|
|
@@ -22439,10 +22422,6 @@ const archiveAgentToolDefinition = zodToolDefinition({
|
|
|
22439
22422
|
}).strict(),
|
|
22440
22423
|
outputSchema: archiveAgentOutputSchema
|
|
22441
22424
|
});
|
|
22442
|
-
async function requireNoPersonUse(conversationId) {
|
|
22443
|
-
const [personMessageAt, lastWorkAt] = await Promise.all([readLastPersonMessageAtMs(conversationId), readLastParentMessageAtMs(conversationId)]);
|
|
22444
|
-
if (personMessageAt !== void 0 && personMessageAt > (lastWorkAt ?? 0)) throw new ToolInputError(`A person messaged ${conversationId} since its parent last gave it work, so a person still uses it. Leave it. That person can archive it from its url.`);
|
|
22445
|
-
}
|
|
22446
22425
|
/** Create the tool that archives one child agent of one conversation. */
|
|
22447
22426
|
function createArchiveAgentTool(conversationId) {
|
|
22448
22427
|
return zodTool({
|
|
@@ -22456,8 +22435,6 @@ function createArchiveAgentTool(conversationId) {
|
|
|
22456
22435
|
archived_at: new Date(child.archivedAtMs).toISOString()
|
|
22457
22436
|
};
|
|
22458
22437
|
if (child.execution.status === "pending" || child.execution.status === "running" || child.execution.status === "paused") throw new ToolInputError(`${childConversationId} is working. Leave it, or wait until it is idle.`);
|
|
22459
|
-
const descendants = input.apply_to_children ? conversationDescendants(await readConversationTrees(getDb(), [child.rootConversationId ?? childConversationId]), childConversationId).filter((node) => !node.archivedAt) : [];
|
|
22460
|
-
await mapBounded([childConversationId, ...descendants.map((node) => node.conversationId)], requireNoPersonUse);
|
|
22461
22438
|
const result = await setConversationArchive({
|
|
22462
22439
|
applyToChildren: input.apply_to_children ?? false,
|
|
22463
22440
|
archived: true,
|
|
@@ -27599,6 +27576,19 @@ async function readPendingWork(conversationId, messages, final, idleNeedsPending
|
|
|
27599
27576
|
waitingOn: "review"
|
|
27600
27577
|
} : { watches };
|
|
27601
27578
|
}
|
|
27579
|
+
// src/api/conversations/user-message-activity.ts
|
|
27580
|
+
/** Read the latest true user message time for each selected conversation. */
|
|
27581
|
+
async function readLastUserMessageAtByConversation(db, conversationIds) {
|
|
27582
|
+
if (conversationIds.length === 0) return /* @__PURE__ */ new Map();
|
|
27583
|
+
const message = latestUserMessageQuery(db).as("latest_user_message");
|
|
27584
|
+
const rows = await db.select({
|
|
27585
|
+
conversationId: juniorConversations.conversationId,
|
|
27586
|
+
messageAt: message.createdAt
|
|
27587
|
+
}).from(juniorConversations).leftJoinLateral(message, sql`true`).where(inArray(juniorConversations.conversationId, conversationIds));
|
|
27588
|
+
const result = /* @__PURE__ */ new Map();
|
|
27589
|
+
for (const { conversationId, messageAt } of rows) if (messageAt) result.set(conversationId, messageAt.toISOString());
|
|
27590
|
+
return result;
|
|
27591
|
+
}
|
|
27602
27592
|
// src/chat/plugins/unfinished-work.ts
|
|
27603
27593
|
/**
|
|
27604
27594
|
* Decide whether a conversation's work finished at or before the cutoff,
|
|
@@ -37382,4 +37372,4 @@ async function executeAgentRunInPrivacyContext(run, storedConversation, conversa
|
|
|
37382
37372
|
await closeTools?.();
|
|
37383
37373
|
}
|
|
37384
37374
|
}
|
|
37385
|
-
export { slackInboundMessageId as $, updateViewerAutomation as $n, decodeImageId as $t,
|
|
37375
|
+
export { slackInboundMessageId as $, updateViewerAutomation as $n, decodeImageId as $t, createBashTool as A, setConversationTitle as An, gapSegment as Ar, resolveObjectLinkNow as At, listOwnedWatches as B, isFileAttachment as Bn, conversationRecordColumns as Bt, processWorkspaceSnapshotJob as C, recordWebConversationActivity as Cn, closeBreaker as Cr, live_annotations_exports as Ct, createWriteFileTool as D, createAttachmentUpload as Dn, MINUTE_MS$1 as Dr, OBJECT_LINK_TTL_MS as Dt, createSystemTimeTool as E, collectAttachmentUploadGarbage as En, IDLE_HORIZON_MS as Er, resolveObjectCards as Et, markConversationRead as F, jsonResponse as Fn, isPublicAddress as Ft, getSpaceLead as G, readPublicArtifact as Gn, conversationEventHistory as Gt, setConversationSpaceForViewer as H, requestAttachmentDeletion as Hn, conversationRecordJoins as Ht, reportConversationRead as I, throwApiError as In, publicAddressLookup as It, getProductionSlackAdapter as J, activateViewerAutomationVersion as Jn, readConversationParticipants as Jt, createProductionConversationWorkOptions as K, unpublishedArtifactHeaders as Kn, conversationSummaryFromStoredConversation as Kt, deliverInboxItemChange as L, readSlackAttachmentSource as Ln, resolveSlackTeamDomains as Lt, setConversationArchive as M, leaveConversation as Mn, resolve_exports as Mt, stopArchivedWork as N, setConversationSubscription as Nn, viewerCanViewPluginLink as Nt, createReadFileTool as O, verifyAttachmentUploads as On, MIN_WARMUP_PREFIX_TOKENS as Or, readLinkObjectType as Ot, conversationReadPositionQuery as P, emptyResponse as Pn, guardedFetch as Pt, clearSlackPendingReactions as Q, takeViewerAutomationAlertStep as Qn, IMAGE_WIDTHS as Qt, inboxItemChangeRecord as R, slackAttachmentsVersionQuery as Rn, resolvePersonLink as Rt, createVercelCacheWarmupCallback as S, createConversationId as Sn, breakerStates as Sr, loadPendingMessageCards as St, ingestEvent as T, AttachmentUploadError as Tn, providerCacheTtlMs as Tr, readLiveAnnotationsById as Tt, readSpaceRefs as U, parseSlackThreadId as Un, readConversationRecordFromSql as Ut, requireSpaceForWork as V, readLiveAttachment as Vn, conversationRecordFromRow as Vt, postSlackDetachNotice as W, publicArtifactHeaders as Wn, selectConversationRecords as Wt, conversation_turn_exports as X, deleteViewerTask as Xn, createViewerMcp as Xt, run_conversation_exports as Y, changeViewerAutomationLifecycle as Yn, readFirstHumanMessageTexts as Yt, buildSlackInboundMessage as Z, readViewerAutomationEdit as Zn, finalizeMcpAuthorization as Zt, listConversationWork as _, updateSpace as _n, historyPeriodSavings as _r, recordSkippedConversationMessage as _t, AttachmentDownloadError as a, message_exports as an, readViewerAutomationSummary as ar, enqueueAgentDispatch as at, vercelBackgroundCompactionQueue as b, conversationTurnIdForMessage as bn, addStats as br, completeAuthPauseTurn as bt, createAgentSandbox as c, startProcessingReaction as cn, AutomationEditError as cr, scheduleSessionCompletedPluginTasks as ct, ANSWER_TOOL_ENDINGS as d, isRetryableSlackPostError as dn, effectiveTaskOutcomes as dr, readConversationEventPage as dt, imagePath as en, ViewerTaskNotFoundError as er, normalizeIncomingSlackThreadId as et, CONVERSATION_STATE_TTL_MS as f, SubscribedReplyReason as fn, viewerAutomationCollection as fr, readConversationEventPageAfter as ft, isConversationWorkDone as g, readSpace as gn, firstLiveSavingsDate as gr, reportParentAgentInput as gt, segmentGapsKey as h, listSpaces as hn, addHistoryWarmupCost as hr, readConversationMessageEventSeq as ht, scheduledAutomationRunAttributes as i, bindMessageAgent as in, readViewerAutomationRuns as ir, AGENT_DISPATCH_MAX_AGE_MS as it, archiveConversation as j, inviteToConversation as jn, listSpaceConfiguration as jr, resolveObjectLinks as jt, createEditFileTool as k, writeAttachmentUpload as kn, NO_REPLY_GAP_MS as kr, readObjectLinkTypes as kt, normalizeToolResult as l, stripLeadingBotMention as ln, findAutomationSkill as lr, task_runner_exports as lt, GLOBAL_GAPS_TTL_MS as m, createSpace as mn, addHistoryPeriod as mr, readConversationLastEventSeq as mt, buildSandboxInput as n, spawn_exports as nn, readConversationSourceTask as nr, wakeAuthorizedTurn as nt, readAttachmentContent as o, createAgentRunner as on, readViewerAutomationVersions as or, failStoppedDispatch as ot, GLOBAL_GAPS_MAX as p, getThreadStopDecision as pn, SAVINGS_NAMESPACE as pr, readConversationEventPageAround as pt, createProductionSlackWebhookServices as q, createPluginConversationWatches as qn, readConversationAuthors as qt, logScheduledAutomationRunSkipped as r, readConversationLineage as rn, readViewerAutomationExecutions as rr, wakePausedTurn as rt, previewOriginBelongsTo as s, bindMessageAuthorIdentityId as sn, readViewerAutomations as sr, processPluginTask as st, executeAgentRun as t, bindSpawnAgent as tn, collectionRowTitle as tr, withNormalizedThreadId as tt, capToolResult as u, parseContent as un, missingAutomationSkillReason as ur, transcriptEntriesFromReportEvents as ut, readLastUserMessageAtByConversation as v, acceptsWebMessages as vn, replaceHistorySavings as vr, stopConversation as vt, verifyWorkspaceSnapshotJobMessage as w, webActorFromUser as wn, connectedState as wr, readLiveAnnotations as wt, verifyBackgroundCompactionMessage as x, createAndEnqueueConversation as xn, readStats as xr, buildDeliveredTurnStatePatch as xt, processBackgroundCompaction as y, appendAndEnqueueWebMessage as yn, savingsTotals as yr, createSlackWebApiStatusSender as yt, renderInboxItemMessage as z, collectAttachmentGarbage as zn, conversationFromRecordRow as zt };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as renderAgentResult, r as enqueueStarterUpdate } from "./result-
|
|
3
|
-
import {
|
|
1
|
+
import { Io as isQuietEvent, No as deliverWatch, To as isAgentResourceType, Tr as canReadConversation, _u as eventGuidance, a as getDb, fo as getEventCatalog, i as getConversationStore, mu as CORE_EVENT_NAMESPACE, uu as EVENT_SYSTEM_ACTOR } from "./db-BacvswT0.js";
|
|
2
|
+
import { i as renderAgentResult, r as enqueueStarterUpdate } from "./result-BPNzgeTl.js";
|
|
3
|
+
import { O as enqueueAutomatedInput, at as addQuietEventNote, f as readChildConversationSender, it as EVENT_WAIT_MS, jt as renderTaskInput, ot as createEventInboundMessage, w as getPersonStopTurnId } from "./markers-C33gNYNE.js";
|
|
4
4
|
import { Bn as AGENT_UPDATE_EVENT_TYPE } from "./types-BNHkJrOP.js";
|
|
5
5
|
// src/chat/conversations/agent-update-delivery.ts
|
|
6
6
|
const SUMMARIES = {
|
package/dist/api/schema.d.ts
CHANGED
|
@@ -5334,6 +5334,7 @@ export declare const conversationTodoSchema: z.ZodObject<{
|
|
|
5334
5334
|
}, z.core.$strict>, z.ZodObject<{
|
|
5335
5335
|
kind: z.ZodLiteral<"user">;
|
|
5336
5336
|
name: z.ZodOptional<z.ZodString>;
|
|
5337
|
+
viewer: z.ZodOptional<z.ZodLiteral<true>>;
|
|
5337
5338
|
}, z.core.$strict>], "kind">;
|
|
5338
5339
|
changedBy: z.ZodOptional<z.ZodString>;
|
|
5339
5340
|
redacted: z.ZodOptional<z.ZodLiteral<true>>;
|
|
@@ -5361,6 +5362,7 @@ export declare const conversationTodosReportSchema: z.ZodObject<{
|
|
|
5361
5362
|
}, z.core.$strict>, z.ZodObject<{
|
|
5362
5363
|
kind: z.ZodLiteral<"user">;
|
|
5363
5364
|
name: z.ZodOptional<z.ZodString>;
|
|
5365
|
+
viewer: z.ZodOptional<z.ZodLiteral<true>>;
|
|
5364
5366
|
}, z.core.$strict>], "kind">;
|
|
5365
5367
|
changedBy: z.ZodOptional<z.ZodString>;
|
|
5366
5368
|
redacted: z.ZodOptional<z.ZodLiteral<true>>;
|
package/dist/api/schema.js
CHANGED
|
@@ -2,5 +2,5 @@ import { $ as activityPreviewText, A as automationVersionSchema, An as DEFAULT_N
|
|
|
2
2
|
import { a as webPageObjectCard, i as personObjectCard, n as conversationObjectCard, o as webMessageId, r as messageObjectCard } from "../agent-status-Bq_AIpyp.js";
|
|
3
3
|
import { a as INPUT_IMAGE_TYPES, i as INLINE_VIDEO_TYPES, n as userCustomizationSchema, t as USER_CUSTOMIZATION_MAX_CHARS } from "../user-customization-CvfuY9Eo.js";
|
|
4
4
|
import { A as conversationUnchangedDetailWithMailboxSchema, B as runtimeInfoReportSchema, C as cancelConversationPendingMessagesBodySchema, D as conversationPendingMessageDeliverySchema, E as conversationPendingAuthorizationSchema, F as pluginOperationalReportSchema, H as skillReportSchema, I as pluginPackageContentItemReportSchema, L as pluginPackageContentReportSchema, M as steerConversationPendingMessagesResponseSchema, N as healthReportSchema, O as conversationPendingMessageSchema, P as pluginOperationalReportFeedSchema, R as pluginSchema, S as conversationAutoArchiveSchema, T as conversationDetailWithMailboxReportSchema, U as skillReportsSchema, V as skillDetailReportSchema, _ as reorderPinnedConversationsBodySchema, a as conversationInviteResponseSchema, b as archiveConversationResponseSchema, c as conversationSubscriptionResponseSchema, d as CONVERSATION_TITLE_MAX_LENGTH, g as pinConversationResponseSchema, h as pinConversationBodySchema, i as conversationInviteBodySchema, j as steerConversationPendingMessagesBodySchema, k as conversationPendingMessagesReportSchema, l as setConversationSpaceBodySchema, m as renameConversationResponseSchema, n as conversationFeedSchema, o as conversationLeaveResponseSchema, p as renameConversationBodySchema, r as stopConversationTurnResponseSchema, s as conversationSubscriptionBodySchema, t as conversationFeedQuerySchema, u as setConversationSpaceResponseSchema, v as reorderPinnedConversationsResponseSchema, w as cancelConversationPendingMessagesResponseSchema, x as archiveDoneConversationsResponseSchema, y as archiveConversationBodySchema, z as pluginsSchema } from "../conversation-feed-DEUdD7mb.js";
|
|
5
|
-
import { $ as userSearchQuerySchema, $t as conversationChildAgentsReportSchema, A as cacheHealthQuerySchema, At as startConnectionResponseSchema, B as serviceAccountParamsSchema, Bt as codeRepositoryQuerySchema, D as inboxSnoozeWakesClearSchema, Dt as connectionParamsSchema, E as inboxSnoozeSubjectSchema, Et as connectionListSchema, F as cacheWarmingSavingsRefillResponseSchema, Ft as codeChangeSummaryReportSchema, G as createPersonalTokenBodySchema, Gt as conversationTodoSchema, H as startServiceAccountSignInResponseSchema, Ht as codeRepositorySummarySchema, I as cacheWarmingSavingsReportSchema, It as codeChangeSummarySchema, J as personalTokenMetadataSchema, Jt as todoStatusBodySchema, K as createdPersonalTokenSchema, Kt as conversationTodosReportSchema, L as closeCacheWarmingBreakerResponseSchema, Lt as codeOverviewReportSchema, M as cacheWarmingBreakerListSchema, Mt as codeActivityDaySchema, Nt as codeChangeSearchQuerySchema, O as gatewayProvidersSchema, Ot as connectionSchema, Pt as codeChangeSearchReportSchema, Q as USER_SEARCH_MAX_LIMIT, Qt as conversationChildAgentSchema, R as disconnectServiceAccountResponseSchema, Rt as codePersonReportSchema, S as inboxSnoozeCreateSchema, St as notificationSettingsSchema, T as inboxSnoozeSchema, Tt as testNotificationResponseSchema, U as searchQuerySchema, Ut as mentionableCodeChangeSchema, V as serviceAccountSchema, Vt as codeRepositoryReportSchema, W as searchReportSchema, X as revokePersonalTokenResponseSchema, Xt as conversationWatchesReportSchema, Y as personalTokenParamsSchema, Yt as conversationWatchSchema, Z as USER_SEARCH_DEFAULT_LIMIT, Zt as watchParamsSchema, _ as inboxItemListSchema, _n as acceptedConversationMessageSchema, _t as locationParamsSchema, a as statsReportSchema, an as objectLinksQuerySchema, b as inboxItemWaitingConversationsSchema, bn as forkConversationBodySchema, c as workspaceBodySchema, cn as CONVERSATION_OUTLINE_TEXT_LENGTH, ct as peopleSearchReportSchema, d as workspaceRepoSchema, dn as conversationDeliveryResponseSchema, dt as personalSpendReportSchema, en as continueConversationInSlackBodySchema, et as userSearchReportSchema, f as workspaceSchema, fn as conversationCatchUpBodySchema, ft as spaceConfigEntrySchema, gn as createAttachmentUploadBodySchema, gt as locationDirectoryReportSchema, h as inboxItemCountSchema, hn as attachmentUploadSchema, ht as locationDetailReportSchema, i as statSchema, in as attachObjectLinkResponseSchema, it as actorProfileReportSchema, j as cacheHealthReportSchema, jt as IDLE_CHANGE_DAYS, k as updateGatewayProvidersBodySchema, kt as disconnectConnectionResponseSchema, l as workspaceListSchema, ln as conversationOutlineSchema, lt as personCardReportSchema, mt as locationActivityDayReportSchema, nn as MAX_OBJECT_LINKS, nt as PERSON_CARD_RECENT_LIMIT, o as baselineSnapshotSchema, on as objectLinksReportSchema, ot as mentionablePersonSchema, p as inboxItemActionSchema, pn as conversationCatchUpSchema, pt as spaceConfigurationSchema, q as personalTokenListSchema, r as versionsSchema, rn as attachObjectLinkBodySchema, rt as actorDirectoryReportSchema, s as deleteWorkspaceResponseSchema, sn as conversationStatsReportSchema, st as peopleSearchQuerySchema, t as VERSIONS_CONVERSATION_LIMIT, tn as continueConversationInSlackResponseSchema, tt as userSearchResultSchema, u as workspaceParamsSchema, un as conversationDeliveryBodySchema, ut as personParamsSchema, vn as createConversationBodySchema, w as inboxSnoozeResourceSchema, x as INBOX_SNOOZE_MAX_TRIGGERS, xn as forkConversationResponseSchema, xt as dailyConversationActivitySchema, y as inboxItemSchema, yn as createConversationMessageBodySchema, z as serviceAccountListSchema, zt as codeRepositoryParamsSchema } from "../schema-
|
|
5
|
+
import { $ as userSearchQuerySchema, $t as conversationChildAgentsReportSchema, A as cacheHealthQuerySchema, At as startConnectionResponseSchema, B as serviceAccountParamsSchema, Bt as codeRepositoryQuerySchema, D as inboxSnoozeWakesClearSchema, Dt as connectionParamsSchema, E as inboxSnoozeSubjectSchema, Et as connectionListSchema, F as cacheWarmingSavingsRefillResponseSchema, Ft as codeChangeSummaryReportSchema, G as createPersonalTokenBodySchema, Gt as conversationTodoSchema, H as startServiceAccountSignInResponseSchema, Ht as codeRepositorySummarySchema, I as cacheWarmingSavingsReportSchema, It as codeChangeSummarySchema, J as personalTokenMetadataSchema, Jt as todoStatusBodySchema, K as createdPersonalTokenSchema, Kt as conversationTodosReportSchema, L as closeCacheWarmingBreakerResponseSchema, Lt as codeOverviewReportSchema, M as cacheWarmingBreakerListSchema, Mt as codeActivityDaySchema, Nt as codeChangeSearchQuerySchema, O as gatewayProvidersSchema, Ot as connectionSchema, Pt as codeChangeSearchReportSchema, Q as USER_SEARCH_MAX_LIMIT, Qt as conversationChildAgentSchema, R as disconnectServiceAccountResponseSchema, Rt as codePersonReportSchema, S as inboxSnoozeCreateSchema, St as notificationSettingsSchema, T as inboxSnoozeSchema, Tt as testNotificationResponseSchema, U as searchQuerySchema, Ut as mentionableCodeChangeSchema, V as serviceAccountSchema, Vt as codeRepositoryReportSchema, W as searchReportSchema, X as revokePersonalTokenResponseSchema, Xt as conversationWatchesReportSchema, Y as personalTokenParamsSchema, Yt as conversationWatchSchema, Z as USER_SEARCH_DEFAULT_LIMIT, Zt as watchParamsSchema, _ as inboxItemListSchema, _n as acceptedConversationMessageSchema, _t as locationParamsSchema, a as statsReportSchema, an as objectLinksQuerySchema, b as inboxItemWaitingConversationsSchema, bn as forkConversationBodySchema, c as workspaceBodySchema, cn as CONVERSATION_OUTLINE_TEXT_LENGTH, ct as peopleSearchReportSchema, d as workspaceRepoSchema, dn as conversationDeliveryResponseSchema, dt as personalSpendReportSchema, en as continueConversationInSlackBodySchema, et as userSearchReportSchema, f as workspaceSchema, fn as conversationCatchUpBodySchema, ft as spaceConfigEntrySchema, gn as createAttachmentUploadBodySchema, gt as locationDirectoryReportSchema, h as inboxItemCountSchema, hn as attachmentUploadSchema, ht as locationDetailReportSchema, i as statSchema, in as attachObjectLinkResponseSchema, it as actorProfileReportSchema, j as cacheHealthReportSchema, jt as IDLE_CHANGE_DAYS, k as updateGatewayProvidersBodySchema, kt as disconnectConnectionResponseSchema, l as workspaceListSchema, ln as conversationOutlineSchema, lt as personCardReportSchema, mt as locationActivityDayReportSchema, nn as MAX_OBJECT_LINKS, nt as PERSON_CARD_RECENT_LIMIT, o as baselineSnapshotSchema, on as objectLinksReportSchema, ot as mentionablePersonSchema, p as inboxItemActionSchema, pn as conversationCatchUpSchema, pt as spaceConfigurationSchema, q as personalTokenListSchema, r as versionsSchema, rn as attachObjectLinkBodySchema, rt as actorDirectoryReportSchema, s as deleteWorkspaceResponseSchema, sn as conversationStatsReportSchema, st as peopleSearchQuerySchema, t as VERSIONS_CONVERSATION_LIMIT, tn as continueConversationInSlackResponseSchema, tt as userSearchResultSchema, u as workspaceParamsSchema, un as conversationDeliveryBodySchema, ut as personParamsSchema, vn as createConversationBodySchema, w as inboxSnoozeResourceSchema, x as INBOX_SNOOZE_MAX_TRIGGERS, xn as forkConversationResponseSchema, xt as dailyConversationActivitySchema, y as inboxItemSchema, yn as createConversationMessageBodySchema, z as serviceAccountListSchema, zt as codeRepositoryParamsSchema } from "../schema-BlTO5M1d.js";
|
|
6
6
|
export { AGENT_UPDATE_EVENT_TYPE, CONTENT_VERSION_HEADER, CONVERSATION_DETAIL_VERSION_HEADER, CONVERSATION_OUTLINE_TEXT_LENGTH, CONVERSATION_TITLE_MAX_LENGTH, CONVERSATION_VERSION_HEADER, DEFAULT_NOTIFICATION_SCHEDULE, IDLE_CHANGE_DAYS, INBOX_SNOOZE_MAX_TRIGGERS, INLINE_VIDEO_TYPES, INPUT_IMAGE_TYPES, MAX_ATTACHMENT_BYTES, MAX_INPUT_ATTACHMENTS, MAX_OBJECT_LINKS, PERSON_CARD_RECENT_LIMIT, SPACE_DESCRIPTION_MAX_CHARS, SPACE_NAME_MAX_CHARS, USER_CUSTOMIZATION_MAX_CHARS, USER_INPUT_NOTE, USER_SEARCH_DEFAULT_LIMIT, USER_SEARCH_MAX_LIMIT, VERSIONS_CONVERSATION_LIMIT, acceptedConversationMessageSchema, activityPreviewText, actorDirectoryReportSchema, actorProfileReportSchema, annotationCard, answeredChoices, apiErrorSchema, archiveConversationBodySchema, archiveConversationResponseSchema, archiveDoneConversationsResponseSchema, archiveSpaceBodySchema, attachObjectLinkBodySchema, attachObjectLinkResponseSchema, attachmentUploadSchema, automationEditErrorSchema, automationEditSchema, automationEventCatalogSchema, automationExecutionListSchema, automationExecutionSchema, automationExecutionStatusDaySchema, automationExecutionStatusSchema, automationListItemSchema, automationListPageSchema, automationListQuerySchema, automationListSchema, automationParamsSchema, automationRunListSchema, automationRunSchema, automationRunWindowsSchema, automationScheduleIntentSchema, automationSchedulePreviewSchema, automationSummarySchema, automationUpdateSchema, automationVersionActivateSchema, automationVersionListSchema, automationVersionParamsSchema, automationVersionSchema, baselineSnapshotSchema, buttonUserInputField, cacheHealthQuerySchema, cacheHealthReportSchema, cacheWarmingBreakerListSchema, cacheWarmingSavingsRefillResponseSchema, cacheWarmingSavingsReportSchema, cancelConversationPendingMessagesBodySchema, cancelConversationPendingMessagesResponseSchema, closeCacheWarmingBreakerResponseSchema, codeActivityDaySchema, codeChangeSearchQuerySchema, codeChangeSearchReportSchema, codeChangeSummaryReportSchema, codeChangeSummarySchema, codeOverviewReportSchema, codePersonReportSchema, codeRepositoryParamsSchema, codeRepositoryQuerySchema, codeRepositoryReportSchema, codeRepositorySummarySchema, connectionListSchema, connectionParamsSchema, connectionSchema, continueConversationInSlackBodySchema, continueConversationInSlackResponseSchema, conversationActivityPreviewSchema, conversationAutoArchiveSchema, conversationAuxiliaryCostsSchema, conversationCatchUpBodySchema, conversationCatchUpSchema, conversationChildAgentSchema, conversationChildAgentTotalsSchema, conversationChildAgentsReportSchema, conversationDeliveryBodySchema, conversationDeliveryResponseSchema, conversationDetailQuerySchema, conversationDetailReportSchema, conversationDetailWithMailboxReportSchema, conversationEventHistorySchema, conversationEventPageSchema, conversationEventsQuerySchema, conversationFeedQuerySchema, conversationFeedSchema, conversationInviteBodySchema, conversationInviteResponseSchema, conversationLeaveResponseSchema, conversationObjectCard, conversationOutlineSchema, conversationParamsSchema, conversationPendingAuthorizationSchema, conversationPendingMessageDeliverySchema, conversationPendingMessageSchema, conversationPendingMessagesReportSchema, conversationReadPositionSchema, conversationReportEventDataSchema, conversationReportEventSchema, conversationStatsReportSchema, conversationSubscriptionBodySchema, conversationSubscriptionResponseSchema, conversationSummaryReportSchema, conversationTodoSchema, conversationTodosReportSchema, conversationTurnFailureCodeSchema, conversationTurnFailureReasonSchema, conversationUnchangedDetailWithMailboxSchema, conversationWatchSchema, conversationWatchesReportSchema, createAttachmentUploadBodySchema, createConversationBodySchema, createConversationMessageBodySchema, createPersonalTokenBodySchema, createSpaceBodySchema, createdPersonalTokenSchema, dailyConversationActivitySchema, deleteWorkspaceResponseSchema, disconnectConnectionResponseSchema, disconnectServiceAccountResponseSchema, eventAutomationSummarySchema, forkConversationBodySchema, forkConversationResponseSchema, gatewayOnlyProviders, gatewayProvidersSchema, healthReportSchema, inboxItemActionSchema, inboxItemCountSchema, inboxItemListSchema, inboxItemQuestion, inboxItemSchema, inboxItemWaitingConversationsSchema, inboxSnoozeCreateSchema, inboxSnoozeResourceSchema, inboxSnoozeSchema, inboxSnoozeSubjectSchema, inboxSnoozeWakesClearSchema, isAgentMessageEventType, isAgentUpdateEventType, isEmptyUserInputAnswer, isLegacyResultEventType, isWithinNotificationSchedule, locationActivityDayReportSchema, locationDetailReportSchema, locationDirectoryReportSchema, locationParamsSchema, mentionableCodeChangeSchema, mentionablePersonSchema, messageCardText, messageObjectCard, normalizeUserInputAnswer, notificationScheduleSchema, notificationSettingsSchema, objectLinksQuerySchema, objectLinksReportSchema, peopleSearchQuerySchema, peopleSearchReportSchema, personCardReportSchema, personObjectCard, personParamsSchema, personalSpendReportSchema, personalTokenListSchema, personalTokenMetadataSchema, personalTokenParamsSchema, pinConversationBodySchema, pinConversationResponseSchema, pluginOperationalReportFeedSchema, pluginOperationalReportSchema, pluginPackageContentItemReportSchema, pluginPackageContentReportSchema, pluginSchema, pluginsSchema, renameConversationBodySchema, renameConversationResponseSchema, reorderPinnedConversationsBodySchema, reorderPinnedConversationsResponseSchema, resolveMessageCards, revokePersonalTokenResponseSchema, runtimeInfoReportSchema, scheduledAutomationSummarySchema, searchQuerySchema, searchReportSchema, serviceAccountListSchema, serviceAccountParamsSchema, serviceAccountSchema, setConversationSpaceBodySchema, setConversationSpaceResponseSchema, skillDetailReportSchema, skillReportSchema, skillReportsSchema, spaceConfigEntrySchema, spaceConfigurationSchema, spaceListQuerySchema, spaceListSchema, spaceParamsSchema, spaceRefSchema, spaceSchema, spaceVisibilitySchema, startConnectionResponseSchema, startServiceAccountSignInResponseSchema, statSchema, statsReportSchema, steerConversationPendingMessagesBodySchema, steerConversationPendingMessagesResponseSchema, stopConversationTurnResponseSchema, testNotificationResponseSchema, todoStatusBodySchema, updateGatewayProvidersBodySchema, updateSpaceBodySchema, userCustomizationSchema, userSearchQuerySchema, userSearchReportSchema, userSearchResultSchema, versionsSchema, watchParamsSchema, webMessageId, webPageObjectCard, workspaceBodySchema, workspaceListSchema, workspaceParamsSchema, workspaceRepoSchema, workspaceSchema };
|
package/dist/api.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { n as getAttachmentStorage } from "./storage-
|
|
2
|
-
import { $ as canActOnInboxItem, $
|
|
3
|
-
import { T as withSpan, f as logException, g as runBestEffort, m as logWarn, p as logInfo, v as setSentryUser } from "./logging-
|
|
4
|
-
import { $n as updateViewerAutomation, $t as decodeImageId, At as resolveObjectLinkNow, B as listOwnedWatches, Cr as closeBreaker, Dn as createAttachmentUpload, Dt as OBJECT_LINK_TTL_MS, Fn as jsonResponse, G as getSpaceLead, I as reportConversationRead, In as throwApiError, J as getProductionSlackAdapter, Jn as activateViewerAutomationVersion, Kt as conversationSummaryFromStoredConversation, Ln as readSlackAttachmentSource, M as setConversationArchive, N as stopArchivedWork, Nt as viewerCanViewPluginLink, Ot as readLinkObjectType, Pn as emptyResponse, Pt as guardedFetch, Qt as IMAGE_WIDTHS, Rt as resolvePersonLink, Sr as breakerStates, Tn as AttachmentUploadError, Vn as readLiveAttachment, W as postSlackDetachNotice, Xn as deleteViewerTask, Xt as createViewerMcp, Yn as changeViewerAutomationLifecycle, Yt as readFirstHumanMessageTexts, Zn as readViewerAutomationEdit, _n as updateSpace, a as AttachmentDownloadError, ar as readViewerAutomationSummary, br as addStats, cr as AutomationEditError, dt as readConversationEventPage, er as ViewerTaskNotFoundError, fr as viewerAutomationCollection, gn as readSpace, gt as reportParentAgentInput, hn as listSpaces, ir as readViewerAutomationRuns, jn as inviteToConversation, jr as listSpaceConfiguration, jt as resolveObjectLinks, kn as writeAttachmentUpload, kt as readObjectLinkTypes, mn as createSpace, o as readAttachmentContent, or as readViewerAutomationVersions, pr as SAVINGS_NAMESPACE, rr as readViewerAutomationExecutions, s as previewOriginBelongsTo, sr as readViewerAutomations, tr as collectionRowTitle, ut as transcriptEntriesFromReportEvents, vn as acceptsWebMessages, wn as webActorFromUser, wr as connectedState, xr as readStats, yr as savingsTotals } from "./agent-
|
|
1
|
+
import { n as getAttachmentStorage } from "./storage-BtCxXiNt.js";
|
|
2
|
+
import { $ as canActOnInboxItem, $c as questionLinks, $f as topLevelConversation, $o as pauseConversationDelivery, Ac as countInboxItemsNeedingUserBySubject, Ap as juniorApiTokens, As as isPublicConversation, B as conversationAggregateColumns, Bd as disconnectServiceAccount, Bl as parseTypedQuery, Bs as deletePushSubscription, Bt as setTodoStatusByUser, Cp as juniorConversationParticipants, Dp as juniorConversationMetrics, Dr as createConversationAccessReader, El as getDashboardSettingsLink, Et as getRegistrations, Fa as AutomationConflictError, Fl as contentVersion, Fp as juniorCodeRepositories, G as conversationStatusSql, Gd as serviceAccountPlugins, Gl as rankSearchMatches, Gp as juniorUsers, Gs as isPausedBySlack, H as conversationUsageCostExpr, Hd as getServiceAccountStatus, Hl as fuzzyRank, Hp as juniorIdentities, Hs as readNotificationSchedule, Il as contentVersionHeaders, Ir as rootVisibleToViewer, Ja as readAutomationTitlesByConversationId, Jc as inboxItemRequest, K as conversationTurnFailedSql, Kd as startServiceAccountSignIn, Kl as scoredSearchMatches, Kp as juniorDestinations, Ll as revalidateContent, Mc as listWaitingConversations, Mp as codeChangeSearchDocument, Ms as readWebPushConfig, Np as codeRepositorySearchDocument, Ns as sendPushNotificationToUser, Op as juniorConversationEvents, Ot as apiRoutePrefix, Pd as getAppContext, Pl as REVALIDATED_READ_PATHS, Pp as juniorCodeChanges, Ps as resolveNotificationTimezone, Qa as microUsdToUsd, Qf as notLeadConversation, Rl as memoryDb, Rn as createInboxItemShow, Rr as getVercelConversationWorkQueue, Ss as upsertPluginAnnotation, Tl as getDashboardPersonLink, Tt as getPlugins, U as conversationIsActiveSql, Uc as ownerConversationId, Ul as prefixMatch, Up as slackPersonPredicate, Us as saveNotificationSchedule, V as conversationRangeColumns, Vd as finishServiceAccountSignIn, Vl as fuzzyMatch, Vs as listPushSubscriptions, Wc as searchInboxItems, Wl as prefixRank, Wp as slackPersonSearchDocument, Ws as savePushSubscription, Xc as itemQuestion, Y as conversationKindFromRow, Yc as inboxItemTitle, Yf as rootSpaceIdSql, Yu as completeText, Za as microUsdSql, Zc as INBOX_SUBJECT_KINDS, Zf as listedConversation, Zo as canPauseConversationDelivery, _c as updateViewerDisplayName, _l as readViewerInboxSnoozes, _p as inboxItemSearchDocument, _t as itemNeedsUser, a as getDb, aa as createPluginCache, ad as cacheKeyPrefix, al as identityAvatarUrl, ap as juniorTodos, as as codeChangeSubjectProvider, bl as snoozeTimerTrigger, cl as readUserAvatarUrls, cp as juniorQuestions, cs as codeChangeUrl, dp as juniorAutomationRuns, dt as inboxItemReaderForUserInConversation, el as subjectKindDismissNote, eo as usdToMicroUsdUnbiased, es as resumeConversationDelivery, fl as clearInboxWakeReasons, fo as getEventCatalog, fp as automationFuzzyTitle, ft as inboxItemVisibleTo, gp as inboxItemFuzzyTitle, gs as annotationSubject, hc as resolveViewerUser, hl as inboxItemSnoozedBy, ht as isOnlyAssignee, hu as automationEventCatalog, i as getConversationStore, id as saveEnabledProviders, is as codeChangeSubjectKinds, jc as inboxItemsNeedingUserVersionQuery, jr as readableSlackTeamId, ko as cancelWatch, kr as readConversationAccessFromSql, lc as findUserByEmail, lp as questionFuzzyTitle, ls as codeRepositoryUrl, mc as readViewerAvatarUrl, mf as webActorUserIds, ml as inboxItemInRow, mn as steerWebPendingMessages, mp as juniorAutomations, ms as ANNOTATION_SUBJECT_KINDS, mt as isInboxItemForEveryone, nd as readEnabledProviders, nl as subjectKindPlugin, o as getSqlExecutor, od as createCache, op as todoFuzzyTitle, os as readSubjectLinks, pp as automationSearchDocument, qi as createPluginEmbedder, rd as readServedProviders, rl as subjectTodo, rt as canUserReadInboxItem, sl as readAvatarFetch, sp as todoSearchDocument, ss as subjectKey, st as inboxItemForUser, ti as runWithSlackInstallation, tl as subjectKindLabel, tt as canAnswerInboxItem, up as questionSearchDocument, us as linkedCodeProviders, ut as inboxItemReaderForUser, vl as settleInboxSnoozes, vp as juniorInboxItemConversations, vr as hasAssigneeRoles, w as loadConversationSlackTenantIds, xl as unsnoozeInboxRow, xp as juniorAgentBindings, yl as snoozeInboxItems, yp as juniorInboxItems, ys as listConversationAnnotations, yu as eventWatchUnavailable, zc as getInboxItem, zl as searchTypedMemories, zn as pushConversationInboxItemsNow, zp as juniorConversations, zt as listTodos } from "./db-BacvswT0.js";
|
|
3
|
+
import { T as withSpan, f as logException, g as runBestEffort, m as logWarn, p as logInfo, v as setSentryUser } from "./logging-DsTnMqyi.js";
|
|
4
|
+
import { $n as updateViewerAutomation, $t as decodeImageId, At as resolveObjectLinkNow, B as listOwnedWatches, Cr as closeBreaker, Dn as createAttachmentUpload, Dt as OBJECT_LINK_TTL_MS, Fn as jsonResponse, G as getSpaceLead, I as reportConversationRead, In as throwApiError, J as getProductionSlackAdapter, Jn as activateViewerAutomationVersion, Kt as conversationSummaryFromStoredConversation, Ln as readSlackAttachmentSource, M as setConversationArchive, N as stopArchivedWork, Nt as viewerCanViewPluginLink, Ot as readLinkObjectType, Pn as emptyResponse, Pt as guardedFetch, Qt as IMAGE_WIDTHS, Rt as resolvePersonLink, Sr as breakerStates, Tn as AttachmentUploadError, Vn as readLiveAttachment, W as postSlackDetachNotice, Xn as deleteViewerTask, Xt as createViewerMcp, Yn as changeViewerAutomationLifecycle, Yt as readFirstHumanMessageTexts, Zn as readViewerAutomationEdit, _n as updateSpace, a as AttachmentDownloadError, ar as readViewerAutomationSummary, br as addStats, cr as AutomationEditError, dt as readConversationEventPage, er as ViewerTaskNotFoundError, fr as viewerAutomationCollection, gn as readSpace, gt as reportParentAgentInput, hn as listSpaces, ir as readViewerAutomationRuns, jn as inviteToConversation, jr as listSpaceConfiguration, jt as resolveObjectLinks, kn as writeAttachmentUpload, kt as readObjectLinkTypes, mn as createSpace, o as readAttachmentContent, or as readViewerAutomationVersions, pr as SAVINGS_NAMESPACE, rr as readViewerAutomationExecutions, s as previewOriginBelongsTo, sr as readViewerAutomations, tr as collectionRowTitle, ut as transcriptEntriesFromReportEvents, vn as acceptsWebMessages, wn as webActorFromUser, wr as connectedState, xr as readStats, yr as savingsTotals } from "./agent-DxZ7nHfD.js";
|
|
5
5
|
import { At as spaceListQuerySchema, B as conversationDetailQuerySchema, C as automationScheduleIntentSchema, D as automationVersionActivateSchema, E as automationUpdateSchema, G as conversationParamsSchema, It as updateSpaceBodySchema, L as conversationAttachmentParamsSchema, Mn as notificationScheduleSchema, Mt as spaceParamsSchema, N as CONVERSATION_DETAIL_VERSION_HEADER, O as automationVersionListSchema, Ot as archiveSpaceBodySchema, P as CONVERSATION_VERSION_HEADER, Pt as spaceSchema, R as conversationAttachmentQuerySchema, Rn as apiErrorSchema, Rt as conversationReadPositionSchema, T as automationSummarySchema, U as conversationEventPageSchema, V as conversationDetailReportSchema, W as conversationEventsQuerySchema, _ as automationListQuerySchema, an as ScheduleIntentError, b as automationRunListSchema, c as automationEditSchema, g as automationListPageSchema, jt as spaceListSchema, k as automationVersionParamsSchema, kn as automationTaskText, kt as createSpaceBodySchema, l as automationEventCatalogSchema, m as automationLifecycleSchema, o as isOpenTodoStatus, on as compileScheduleIntent, pn as inboxItemQuestion, qt as MAX_ATTACHMENT_BYTES, s as automationEditErrorSchema, u as automationExecutionListSchema, w as automationSchedulePreviewSchema, y as automationParamsSchema } from "./types-BNHkJrOP.js";
|
|
6
|
-
import { $ as userSearchQuerySchema, $t as conversationChildAgentsReportSchema, A as cacheHealthQuerySchema, At as startConnectionResponseSchema, B as serviceAccountParamsSchema, Bt as codeRepositoryQuerySchema, C as inboxSnoozeResourceQuerySchema, Ct as pushSubscriptionBodySchema, D as inboxSnoozeWakesClearSchema, Dt as connectionParamsSchema, E as inboxSnoozeSubjectSchema, Et as connectionListSchema, F as cacheWarmingSavingsRefillResponseSchema, G as createPersonalTokenBodySchema, Gt as conversationTodoSchema, H as startServiceAccountSignInResponseSchema, I as cacheWarmingSavingsReportSchema, Jt as todoStatusBodySchema, K as createdPersonalTokenSchema, Kt as conversationTodosReportSchema, L as closeCacheWarmingBreakerResponseSchema, Lt as codeOverviewReportSchema, M as cacheWarmingBreakerListSchema, N as cacheWarmingBreakerParamsSchema, Nt as codeChangeSearchQuerySchema, O as gatewayProvidersSchema, P as cacheWarmingSavingsQuerySchema, Pt as codeChangeSearchReportSchema, R as disconnectServiceAccountResponseSchema, Rt as codePersonReportSchema, S as inboxSnoozeCreateSchema, St as notificationSettingsSchema, T as inboxSnoozeSchema, Tt as testNotificationResponseSchema, U as searchQuerySchema, Vt as codeRepositoryReportSchema, W as searchReportSchema, Wt as personCodeQuerySchema, X as revokePersonalTokenResponseSchema, Xt as conversationWatchesReportSchema, Y as personalTokenParamsSchema, Zt as watchParamsSchema, _ as inboxItemListSchema, _n as acceptedConversationMessageSchema, _t as locationParamsSchema, a as statsReportSchema, an as objectLinksQuerySchema, at as avatarParamsSchema, b as inboxItemWaitingConversationsSchema, bn as forkConversationBodySchema, bt as activitySixHours$1, c as workspaceBodySchema, ct as peopleSearchReportSchema, dn as conversationDeliveryResponseSchema, dt as personalSpendReportSchema, en as continueConversationInSlackBodySchema, et as userSearchReportSchema, f as workspaceSchema, fn as conversationCatchUpBodySchema, g as inboxItemListQuerySchema, gn as createAttachmentUploadBodySchema, gt as locationDirectoryReportSchema, h as inboxItemCountSchema, hn as attachmentUploadSchema, ht as locationDetailReportSchema, in as attachObjectLinkResponseSchema, it as actorProfileReportSchema, j as cacheHealthReportSchema, k as updateGatewayProvidersBodySchema, kt as disconnectConnectionResponseSchema, l as workspaceListSchema, ln as conversationOutlineSchema, lt as personCardReportSchema, m as inboxItemCountQuerySchema, mn as attachmentUploadParamsSchema, n as versionsQuerySchema, on as objectLinksReportSchema, p as inboxItemActionSchema, pn as conversationCatchUpSchema, pt as spaceConfigurationSchema, q as personalTokenListSchema, qt as todoParamsSchema, r as versionsSchema, rn as attachObjectLinkBodySchema, rt as actorDirectoryReportSchema, s as deleteWorkspaceResponseSchema, sn as conversationStatsReportSchema, st as peopleSearchQuerySchema, tn as continueConversationInSlackResponseSchema, u as workspaceParamsSchema, un as conversationDeliveryBodySchema, ut as personParamsSchema, v as inboxItemParamsSchema, vn as createConversationBodySchema, vt as activityDays$1, w as inboxSnoozeResourceSchema, wt as pushSubscriptionDeleteBodySchema, xn as forkConversationResponseSchema, y as inboxItemSchema, yn as createConversationMessageBodySchema, yt as activityHours$2, z as serviceAccountListSchema, zt as codeRepositoryParamsSchema } from "./schema-
|
|
6
|
+
import { $ as userSearchQuerySchema, $t as conversationChildAgentsReportSchema, A as cacheHealthQuerySchema, At as startConnectionResponseSchema, B as serviceAccountParamsSchema, Bt as codeRepositoryQuerySchema, C as inboxSnoozeResourceQuerySchema, Ct as pushSubscriptionBodySchema, D as inboxSnoozeWakesClearSchema, Dt as connectionParamsSchema, E as inboxSnoozeSubjectSchema, Et as connectionListSchema, F as cacheWarmingSavingsRefillResponseSchema, G as createPersonalTokenBodySchema, Gt as conversationTodoSchema, H as startServiceAccountSignInResponseSchema, I as cacheWarmingSavingsReportSchema, Jt as todoStatusBodySchema, K as createdPersonalTokenSchema, Kt as conversationTodosReportSchema, L as closeCacheWarmingBreakerResponseSchema, Lt as codeOverviewReportSchema, M as cacheWarmingBreakerListSchema, N as cacheWarmingBreakerParamsSchema, Nt as codeChangeSearchQuerySchema, O as gatewayProvidersSchema, P as cacheWarmingSavingsQuerySchema, Pt as codeChangeSearchReportSchema, R as disconnectServiceAccountResponseSchema, Rt as codePersonReportSchema, S as inboxSnoozeCreateSchema, St as notificationSettingsSchema, T as inboxSnoozeSchema, Tt as testNotificationResponseSchema, U as searchQuerySchema, Vt as codeRepositoryReportSchema, W as searchReportSchema, Wt as personCodeQuerySchema, X as revokePersonalTokenResponseSchema, Xt as conversationWatchesReportSchema, Y as personalTokenParamsSchema, Zt as watchParamsSchema, _ as inboxItemListSchema, _n as acceptedConversationMessageSchema, _t as locationParamsSchema, a as statsReportSchema, an as objectLinksQuerySchema, at as avatarParamsSchema, b as inboxItemWaitingConversationsSchema, bn as forkConversationBodySchema, bt as activitySixHours$1, c as workspaceBodySchema, ct as peopleSearchReportSchema, dn as conversationDeliveryResponseSchema, dt as personalSpendReportSchema, en as continueConversationInSlackBodySchema, et as userSearchReportSchema, f as workspaceSchema, fn as conversationCatchUpBodySchema, g as inboxItemListQuerySchema, gn as createAttachmentUploadBodySchema, gt as locationDirectoryReportSchema, h as inboxItemCountSchema, hn as attachmentUploadSchema, ht as locationDetailReportSchema, in as attachObjectLinkResponseSchema, it as actorProfileReportSchema, j as cacheHealthReportSchema, k as updateGatewayProvidersBodySchema, kt as disconnectConnectionResponseSchema, l as workspaceListSchema, ln as conversationOutlineSchema, lt as personCardReportSchema, m as inboxItemCountQuerySchema, mn as attachmentUploadParamsSchema, n as versionsQuerySchema, on as objectLinksReportSchema, p as inboxItemActionSchema, pn as conversationCatchUpSchema, pt as spaceConfigurationSchema, q as personalTokenListSchema, qt as todoParamsSchema, r as versionsSchema, rn as attachObjectLinkBodySchema, rt as actorDirectoryReportSchema, s as deleteWorkspaceResponseSchema, sn as conversationStatsReportSchema, st as peopleSearchQuerySchema, tn as continueConversationInSlackResponseSchema, u as workspaceParamsSchema, un as conversationDeliveryBodySchema, ut as personParamsSchema, v as inboxItemParamsSchema, vn as createConversationBodySchema, vt as activityDays$1, w as inboxSnoozeResourceSchema, wt as pushSubscriptionDeleteBodySchema, xn as forkConversationResponseSchema, y as inboxItemSchema, yn as createConversationMessageBodySchema, yt as activityHours$2, z as serviceAccountListSchema, zt as codeRepositoryParamsSchema } from "./schema-BlTO5M1d.js";
|
|
7
7
|
import { A as conversationUnchangedDetailWithMailboxSchema, B as runtimeInfoReportSchema, M as steerConversationPendingMessagesResponseSchema, N as healthReportSchema, P as pluginOperationalReportFeedSchema, T as conversationDetailWithMailboxReportSchema, U as skillReportsSchema, V as skillDetailReportSchema, _ as reorderPinnedConversationsBodySchema, a as conversationInviteResponseSchema, i as conversationInviteBodySchema, j as steerConversationPendingMessagesBodySchema, k as conversationPendingMessagesReportSchema, n as conversationFeedSchema, t as conversationFeedQuerySchema, v as reorderPinnedConversationsResponseSchema, z as pluginsSchema } from "./conversation-feed-DEUdD7mb.js";
|
|
8
|
-
import {
|
|
9
|
-
import { A as setConversationSubscriptionOperation, C as cancelQueuedMessagesOperation, D as renameConversationOperation, E as pinConversationOperation, J as resolveMentions, M as reorderPinnedConversations, N as apiOperationHandler, O as setConversationAutoArchiveOperation, Q as readInboxItemForUser, S as archiveDoneConversationsOperation, T as leaveConversationOperation, X as actOnInboxItem, Y as InboxItemActionError, _ as createConversationForViewer, a as resolveInboxItemSubjects, at as updateUserSettings, c as readConversationAuxiliaryCostsFromSql, d as conversationVersionsQuery, f as readConversationDetailEtag, g as appendConversationMessageForViewer, gt as startSavingsRefill, h as readConversationEvents, i as encodePageCursor, it as readUserSettings, j as stopConversationOperation, k as setConversationSpaceOperation, l as childAgentTotalsReport, m as keepQuickQuestionForViewer, mt as readSavingsRefill, n as readConversationFeed, o as readConversationDetail, p as forkConversationForViewer, pt as scheduleInboxSnoozeTimer, q as requireConversationPendingMessages, r as decodePageCursor, rt as DEFAULT_USER_SETTINGS, s as readConversationTreeStates, t as conversationFeedVersionQuery, u as readConversationTreeMetricsFromSql, v as requireWebMessageConversation, x as archiveConversationOperation, yt as readHealthReport } from "./list-
|
|
10
|
-
import { E as parseSlackChannelId, L as botConfig, O as parseSlackTeamId, R as getChatConfig, f as credentialContextForActor, i as getStateAdapter, u as withLock } from "./adapter-
|
|
11
|
-
import { i as continueConversationInSlack, r as canContinueInSlack, t as BUSY } from "./continue-in-slack-
|
|
8
|
+
import { Mt as readUserCustomization, Nt as saveUserCustomization, Pt as addConversationNote, Xt as deleteWorkspace, Yt as createWorkspace, Zt as getWorkspace, an as workspaceRepoCheckoutPath, en as listWorkspaces, ht as parseEmail, i as listChildAgents, lr as createPluginEgress, nn as updateWorkspace, pt as isAllowedDomain, rn as WorkspaceValidationError, tn as listWorkspacesByRepository, un as isExperimentalFeatureEnabled } from "./markers-C33gNYNE.js";
|
|
9
|
+
import { A as setConversationSubscriptionOperation, C as cancelQueuedMessagesOperation, D as renameConversationOperation, E as pinConversationOperation, J as resolveMentions, M as reorderPinnedConversations, N as apiOperationHandler, O as setConversationAutoArchiveOperation, Q as readInboxItemForUser, S as archiveDoneConversationsOperation, T as leaveConversationOperation, X as actOnInboxItem, Y as InboxItemActionError, _ as createConversationForViewer, a as resolveInboxItemSubjects, at as updateUserSettings, c as readConversationAuxiliaryCostsFromSql, d as conversationVersionsQuery, f as readConversationDetailEtag, g as appendConversationMessageForViewer, gt as startSavingsRefill, h as readConversationEvents, i as encodePageCursor, it as readUserSettings, j as stopConversationOperation, k as setConversationSpaceOperation, l as childAgentTotalsReport, m as keepQuickQuestionForViewer, mt as readSavingsRefill, n as readConversationFeed, o as readConversationDetail, p as forkConversationForViewer, pt as scheduleInboxSnoozeTimer, q as requireConversationPendingMessages, r as decodePageCursor, rt as DEFAULT_USER_SETTINGS, s as readConversationTreeStates, t as conversationFeedVersionQuery, u as readConversationTreeMetricsFromSql, v as requireWebMessageConversation, x as archiveConversationOperation, yt as readHealthReport } from "./list-Dz3CdP3g.js";
|
|
10
|
+
import { E as parseSlackChannelId, L as botConfig, O as parseSlackTeamId, R as getChatConfig, f as credentialContextForActor, i as getStateAdapter, u as withLock } from "./adapter-DlLLoJKj.js";
|
|
11
|
+
import { i as continueConversationInSlack, r as canContinueInSlack, t as BUSY } from "./continue-in-slack-DBlQP4PC.js";
|
|
12
12
|
import { a as INPUT_IMAGE_TYPES, i as INLINE_VIDEO_TYPES, n as userCustomizationSchema, o as detectImageMediaType } from "./user-customization-CvfuY9Eo.js";
|
|
13
13
|
import { u as sentry_exports } from "./sentry-CPbZjomA.js";
|
|
14
14
|
import { _ as utcHourKey, c as HOUR_MS$3, d as fillUtcSixHours, f as startOfUtcHour, g as trailingUtcSixHourWindow, h as trailingUtcHourWindow, l as fillUtcDays, m as trailingUtcDayWindow, p as sumUtcHoursIntoSixHours, s as DAY_MS$3, u as fillUtcHours } from "./agent-status-Bq_AIpyp.js";
|
|
15
|
-
import { A as createUserTokenStore, n as hash, t as create, u as SANDBOX_RUNTIME } from "./profile-
|
|
16
|
-
import { a as isConnectableProvider, c as startConnection, i as disconnectConnection, o as listConnections, t as escapeHtml, u as htmlCallbackResponse } from "./html-
|
|
17
|
-
import { G as mapBounded, h as createPluginLogger } from "./prompt-
|
|
18
|
-
import { o as getSandboxResources, t as getCachedSnapshot } from "./resolve-
|
|
15
|
+
import { A as createUserTokenStore, n as hash, t as create, u as SANDBOX_RUNTIME } from "./profile-v9vA3RvH.js";
|
|
16
|
+
import { a as isConnectableProvider, c as startConnection, i as disconnectConnection, o as listConnections, t as escapeHtml, u as htmlCallbackResponse } from "./html-DW0pw5Pr.js";
|
|
17
|
+
import { G as mapBounded, h as createPluginLogger } from "./prompt-C5CW2wKO.js";
|
|
18
|
+
import { o as getSandboxResources, t as getCachedSnapshot } from "./resolve-HVXmbeCr.js";
|
|
19
19
|
import { Hono } from "hono";
|
|
20
20
|
import * as z from "zod";
|
|
21
21
|
import path from "node:path";
|
|
@@ -1500,8 +1500,9 @@ async function cancelConversationWatchForViewer(viewer, conversationId, watchId)
|
|
|
1500
1500
|
// src/api/conversations/todos.ts
|
|
1501
1501
|
/** Closed To-dos that the report shows after the open ones. */
|
|
1502
1502
|
const RECENT_CLOSED_TODOS = 5;
|
|
1503
|
-
function reportTodo(todo, canViewPrivateContent) {
|
|
1503
|
+
function reportTodo(todo, canViewPrivateContent, viewer) {
|
|
1504
1504
|
const { assignee } = todo;
|
|
1505
|
+
const forViewer = assignee.kind === "user" && viewer !== void 0 && assignee.userId === viewer.id ? { viewer: true } : void 0;
|
|
1505
1506
|
return {
|
|
1506
1507
|
id: todo.id,
|
|
1507
1508
|
status: todo.status,
|
|
@@ -1511,13 +1512,17 @@ function reportTodo(todo, canViewPrivateContent) {
|
|
|
1511
1512
|
...todo.notes ? { notes: todo.notes } : void 0,
|
|
1512
1513
|
assignee: assignee.kind === "user" ? {
|
|
1513
1514
|
kind: "user",
|
|
1514
|
-
name: assignee.name ?? assignee.email
|
|
1515
|
+
name: assignee.name ?? assignee.email,
|
|
1516
|
+
...forViewer
|
|
1515
1517
|
} : assignee,
|
|
1516
1518
|
...todo.changedBy ? { changedBy: todo.changedBy.name ?? todo.changedBy.email } : todo.changedByAgent?.name ? { changedBy: todo.changedByAgent.name } : void 0
|
|
1517
1519
|
} : {
|
|
1518
1520
|
assignee: assignee.kind === "agent" ? {
|
|
1519
1521
|
kind: "agent",
|
|
1520
1522
|
conversationId: assignee.conversationId
|
|
1523
|
+
} : assignee.kind === "user" ? {
|
|
1524
|
+
kind: "user",
|
|
1525
|
+
...forViewer
|
|
1521
1526
|
} : { kind: assignee.kind },
|
|
1522
1527
|
redacted: true
|
|
1523
1528
|
}
|
|
@@ -1535,7 +1540,7 @@ async function requireConversationTodos(conversationId, options = {}) {
|
|
|
1535
1540
|
const closed = todos.filter((todo) => !isOpenTodoStatus(todo.status)).sort((left, right) => right.updatedAtMs - left.updatedAtMs).slice(0, RECENT_CLOSED_TODOS);
|
|
1536
1541
|
return {
|
|
1537
1542
|
conversationId,
|
|
1538
|
-
todos: [...todos.filter((todo) => isOpenTodoStatus(todo.status)), ...closed].map((todo) => reportTodo(todo, canViewPrivateContent))
|
|
1543
|
+
todos: [...todos.filter((todo) => isOpenTodoStatus(todo.status)), ...closed].map((todo) => reportTodo(todo, canViewPrivateContent, options.viewer))
|
|
1539
1544
|
};
|
|
1540
1545
|
}
|
|
1541
1546
|
/**
|
|
@@ -1554,7 +1559,7 @@ async function setConversationTodoStatus(viewer, conversationId, todoId, body) {
|
|
|
1554
1559
|
userId: viewer.id
|
|
1555
1560
|
});
|
|
1556
1561
|
if (!todo) throwApiError(404, "To-do not found.");
|
|
1557
|
-
return reportTodo(todo, conversationAccess.canViewPrivateContent);
|
|
1562
|
+
return reportTodo(todo, conversationAccess.canViewPrivateContent, viewer);
|
|
1558
1563
|
}
|
|
1559
1564
|
// src/api/conversations/routes.ts
|
|
1560
1565
|
/** Create the HTTP routes owned by the conversations API. */
|
|
@@ -3509,7 +3514,7 @@ async function readPeoplePluginReports(args) {
|
|
|
3509
3514
|
reports: [],
|
|
3510
3515
|
source: "plugins"
|
|
3511
3516
|
});
|
|
3512
|
-
const { getPluginProfileReports } = await import("./reports-
|
|
3517
|
+
const { getPluginProfileReports } = await import("./reports-eBgrhPXS.js");
|
|
3513
3518
|
return pluginOperationalReportFeedSchema.parse({
|
|
3514
3519
|
generatedAt: new Date(nowMs).toISOString(),
|
|
3515
3520
|
reports: await getPluginProfileReports({
|
|
@@ -5972,7 +5977,7 @@ function readDescriptionText(home) {
|
|
|
5972
5977
|
}
|
|
5973
5978
|
/** Read discovered skills for runtime diagnostics and the Automation editor. */
|
|
5974
5979
|
async function readSkillReports() {
|
|
5975
|
-
const { discoverSkills } = await import("./skills-
|
|
5980
|
+
const { discoverSkills } = await import("./skills-50izzzdK.js").then((n) => n.s);
|
|
5976
5981
|
const skills = await discoverSkills();
|
|
5977
5982
|
return skillReportsSchema.parse(skills.map((skill) => ({
|
|
5978
5983
|
name: skill.name,
|
|
@@ -5986,7 +5991,7 @@ async function readSkillReports() {
|
|
|
5986
5991
|
* what the skill tells Junior. Returns null when no skill has that name.
|
|
5987
5992
|
*/
|
|
5988
5993
|
async function readSkillDetailReport(name) {
|
|
5989
|
-
const { discoverSkills, findSkillByName, parseSkillFile } = await import("./skills-
|
|
5994
|
+
const { discoverSkills, findSkillByName, parseSkillFile } = await import("./skills-50izzzdK.js").then((n) => n.s);
|
|
5990
5995
|
const skill = findSkillByName(name, await discoverSkills());
|
|
5991
5996
|
if (!skill) return null;
|
|
5992
5997
|
const parsed = parseSkillFile(await fs$1.readFile(path.join(skill.skillPath, "SKILL.md"), "utf8"), skill.name);
|
|
@@ -6001,7 +6006,7 @@ async function readSkillDetailReport(name) {
|
|
|
6001
6006
|
}
|
|
6002
6007
|
/** Read safe configured plugin metadata for authenticated runtime diagnostics. */
|
|
6003
6008
|
async function readPlugins() {
|
|
6004
|
-
const { getAppContext } = await import("./db-
|
|
6009
|
+
const { getAppContext } = await import("./db-BacvswT0.js").then((n) => n.Md);
|
|
6005
6010
|
return pluginsSchema.parse(getAppContext().catalog.getProviders().map((plugin) => ({
|
|
6006
6011
|
configKeys: plugin.manifest.configKeys ?? [],
|
|
6007
6012
|
description: plugin.manifest.description,
|
|
@@ -6013,7 +6018,7 @@ async function readPlugins() {
|
|
|
6013
6018
|
async function readRuntimeInfoReport() {
|
|
6014
6019
|
const [{ homeDir }, { getAppContext }, plugins, skills] = await Promise.all([
|
|
6015
6020
|
import("./topics-DxuKurCX.js").then((n) => n.c),
|
|
6016
|
-
import("./db-
|
|
6021
|
+
import("./db-BacvswT0.js").then((n) => n.Md),
|
|
6017
6022
|
readPlugins(),
|
|
6018
6023
|
readSkillReports()
|
|
6019
6024
|
]);
|
|
@@ -6030,7 +6035,7 @@ async function readRuntimeInfoReport() {
|
|
|
6030
6035
|
/** Read sanitized operational summaries contributed by plugins. */
|
|
6031
6036
|
async function readPluginOperationalReportFeed() {
|
|
6032
6037
|
const nowMs = Date.now();
|
|
6033
|
-
const { getPluginOperationalReports } = await import("./reports-
|
|
6038
|
+
const { getPluginOperationalReports } = await import("./reports-eBgrhPXS.js");
|
|
6034
6039
|
return pluginOperationalReportFeedSchema.parse({
|
|
6035
6040
|
source: "plugins",
|
|
6036
6041
|
generatedAt: new Date(nowMs).toISOString(),
|
|
@@ -13,6 +13,7 @@ import "@modelcontextprotocol/sdk/client/auth.js";
|
|
|
13
13
|
import "@modelcontextprotocol/sdk/client";
|
|
14
14
|
import "ai";
|
|
15
15
|
import "@earendil-works/pi-ai";
|
|
16
|
+
import "@vercel/queue";
|
|
16
17
|
import "@earendil-works/pi-agent-core";
|
|
17
18
|
import { StateAdapter } from "chat";
|
|
18
19
|
import { SlackAdapter } from "@chat-adapter/slack";
|