@sentry/junior 0.297.0 → 0.298.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{admin-tmGIw4KS.js → admin-BF3DbYGf.js} +2 -2
- package/dist/{agent-runner-CneTquAE.js → agent-runner-Q9GkoerG.js} +99 -46
- package/dist/api/schema.d.ts +1 -1
- package/dist/api/schema.js +4 -4
- package/dist/api.d.ts +1 -1
- package/dist/api.js +31 -31
- package/dist/{app-BJojZ7HL.d.ts → app-DOg_mCtV.d.ts} +2 -2
- package/dist/app.d.ts +1 -1
- package/dist/app.js +33 -33
- package/dist/{automation-BrP6ImrC.js → automation-Cn8qmbdr.js} +1 -1
- package/dist/{background-compaction-queue-CwfJy3Cd.js → background-compaction-queue-BZhGFOK6.js} +3 -3
- package/dist/{briefs-uFTuhMqA.js → briefs-CQrCRF6-.js} +3 -3
- package/dist/{catalog-runtime-0kuQqYL4.js → catalog-runtime-DZeD2WbL.js} +1 -1
- package/dist/cli/chat.js +15 -15
- package/dist/cli/check.js +3 -3
- package/dist/cli/main.js +3 -3
- package/dist/cli/plugins.js +4 -4
- package/dist/cli/snapshot-create.js +4 -4
- package/dist/cli/upgrade.d.ts +1 -1
- package/dist/cli/upgrade.js +3 -3
- package/dist/{config-Dj9M_nqB.js → config-BOByVnxe.js} +2 -2
- package/dist/{connections-B96JUM5o.js → connections-BNN5cJam.js} +6 -6
- package/dist/{conversation-CvcBU1z2.js → conversation-DCkzvxqB.js} +50 -2
- package/dist/{conversation-feed-BSMlGZnS.js → conversation-feed-CMA12Rjs.js} +1 -1
- package/dist/{conversation-privacy-DI29jbZV.js → conversation-privacy-C0eRxsgb.js} +1 -1
- package/dist/{conversation-turn-CZWBr091.js → conversation-turn-D9qvcDX6.js} +18 -18
- package/dist/{credential-sync-Blhx4_xf.js → credential-sync-B_iUpxGL.js} +14 -14
- package/dist/{db-Br0tfAo7.js → db-CoMNr2Zm.js} +3 -3
- package/dist/{db-CrtyFRz7.d.ts → db-DoMcnYol.d.ts} +1 -1
- package/dist/{executor-BMPipFVA.js → executor-C-m8VrzX.js} +2 -2
- package/dist/instrumentation.js +2 -2
- package/dist/{logging-CQjlDQYX.js → logging-CJTi5niy.js} +1 -1
- package/dist/{message-BOZEIuxy.js → message-Q6_5DAWR.js} +9 -9
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +3 -3
- package/dist/{notification-gusCgdQ6.js → notification-Bv25xbj0.js} +9 -9
- package/dist/{oauth-callback-server-V_DuMuNX.js → oauth-callback-server-CH5XAyo-.js} +2 -2
- package/dist/{projection-B08mfi0u.js → projection-BgwEE36_.js} +11 -11
- package/dist/{prompt-BlutWLNt.js → prompt-DXc9DYT9.js} +4 -4
- package/dist/{prompt-input-Dxn8cDC0.js → prompt-input-BUr4J9RO.js} +7 -7
- package/dist/{registry-BDWgCJDf.js → registry-9XwqSnM-.js} +1 -1
- package/dist/{resolve-2Z_o_SsI.js → resolve-DUIAbcRL.js} +3 -3
- package/dist/{result-CAujiaci.js → result-C2Vn8QGn.js} +10 -10
- package/dist/{runner-D2Chc02N.js → runner-CXGtw-Mc.js} +9 -9
- package/dist/{sandbox-egress-signals-CFoJduFj.js → sandbox-egress-signals-Di3S_dO7.js} +1 -1
- package/dist/{schema-Ce2XCS7O.d.ts → schema-BnbZ-rKv.d.ts} +6 -0
- package/dist/{schema-Bqa5NbcP.js → schema-Dyp7racy.js} +3 -3
- package/dist/{service-account-CERfXEVU.js → service-account-DM3KBBeG.js} +3 -3
- package/dist/{service-account-C9kRQEb_.js → service-account-GzAMUQ8a.js} +3 -3
- package/dist/{session-stop-B-I1rAS1.js → session-stop-D4i7e6iT.js} +5 -5
- package/dist/{skills-B0m1nZ_j.js → skills-DCK9SD_l.js} +2 -2
- package/dist/{spawn-CwMjRRtn.js → spawn-6cX6xE9G.js} +5 -5
- package/dist/{state-DFnmLmfn.js → state-CSuA2J1V.js} +2 -2
- package/dist/{stop-BCH9VNGf.js → stop-Dh2DfwpK.js} +33 -31
- package/dist/{store-B59rOYbS.js → store-B1zepKG8.js} +3 -3
- package/dist/{store-m5bmdmsP.js → store-DrA17Fbz.js} +9 -9
- package/dist/{task-queue-N0kuCknH.js → task-queue-D1rXWfFN.js} +3 -3
- package/dist/{task-runner-COOwR8qm.js → task-runner-CT4M8oDz.js} +8 -8
- package/dist/{thread-context-Cd44z_W5.js → thread-context-DnqUkbzN.js} +7 -7
- package/dist/{turn-cancel-DDu8TOwt.js → turn-cancel-l460pfGW.js} +6 -6
- package/dist/{turn-session-routing-BlCtVFRN.js → turn-session-routing-VXDVXLRl.js} +5 -5
- package/dist/{turn-user-message-ygLG3ylQ.js → turn-user-message-BSPmkm7X.js} +15 -48
- package/dist/{turn-wake-DmQec4AG.js → turn-wake-DVFVXyhX.js} +6 -6
- package/dist/{validation-Ba2OcUse.js → validation-zxAJBDDy.js} +1 -1
- package/dist/{version-KNDzIAh6.js → version-DcZ40a0g.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-BPpuN2f9.js → viewer-CgiGjW10.js} +3 -3
- package/dist/{warmup-Bskrwmk1.js → warmup-CwKbxQLl.js} +16 -15
- package/dist/{worker-B1skZlit.js → worker-CbDUzaBA.js} +6 -6
- package/package.json +4 -4
package/dist/app.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as JuniorDashboardOptions, n as JuniorAppOptions, r as createApp, t as JuniorApp } from "./app-
|
|
1
|
+
import { i as JuniorDashboardOptions, n as JuniorAppOptions, r as createApp, t as JuniorApp } from "./app-DOg_mCtV.js";
|
|
2
2
|
import { i as defineJuniorPlugins, n as JuniorPluginSet, r as JuniorPluginSetOptions, t as JuniorPluginInput } from "./plugins-B_0Cr0MO.js";
|
|
3
3
|
import { t as JUNIOR_VERSION } from "./version-Cc2OFd9G.js";
|
|
4
4
|
export { JUNIOR_VERSION, JuniorApp, JuniorAppOptions, type JuniorDashboardOptions, type JuniorPluginInput, type JuniorPluginSet, type JuniorPluginSetOptions, createApp, defineJuniorPlugins };
|
package/dist/app.js
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import { i as getActiveSpan, n as captureMessage, u as sentry_exports } from "./sentry-BRTJqumy.js";
|
|
2
|
-
import { $i as escapeSlackMrkdwnText, Ao as readConversationMessageEventSeq, Ba as consumeSandboxEgressPermissionDeniedSignal, Bo as resolveRootVisibility, C as settleConversationTitleWork, Ci as getDashboardTaskLink, Di as createPluginState, Do as readConversationEventPageAfter, Eo as readConversationEventPage, Ft as pruneActiveConversation, Ha as parseSandboxEgressCredentialToken, Hn as createUserTokenStore, Ho as createPluginAnnotations, Hr as reviewItemReaderForUserInConversation, Jn as createPluginEventPublisher, Jr as createCodeChangePublisher, Ka as normalizeSandboxEgressTracePropagationDomains, Ki as isVercelSandboxEgressRequest, Mr as canActOnReviewItem, Oa as getWorkspaceTeamId, Or as searchReviewItems, Qa as createPluginEmbedder, Ra as clearSandboxEgressSignals, Sa as getSlackClient, Ti as setDashboardConversationLinkOptions, To as readLatestConversationBrief, Uo as listConversationAnnotations, Vr as reviewItemReaderForUser, Xn as getPluginApiRoutes, Zi as resolveBaseUrl, Zn as getPluginRoutes, Zo as createPluginCache, _ as appendConversationMessages, _a as slackExternalRefIdSchema, _r as projectConversationMessages, di as bindEventAutomationCredentialSubject, ea as formatSlackLink, fi as bindScheduledAutomationCredentialSubject, fo as createPluginLogger, ga as slackEntitySchema, gi as verifySlackDirectCredentialSubject, go as readConversationAccessFromSql, hi as verifyScheduledAutomationCredentialSubject, ir as validatePlugins, is as setConfigDefaults, jt as isInvalidConversationRecordError, ka as runWithWorkspaceTeamId, ko as readConversationLastEventSeq, kt as hasRunnableConversationWork, la as openSlackModal, mi as verifyEventAutomationCredentialSubject, nr as getPlugins, pa as unfurlSlackLinks, pi as bindSlackDirectCredentialSubject, qi as proxyVercelSandboxEgressRequest, ra as slackMention, ri as collectEventMatchKeys, rr as setPlugins, rs as getConfigDefaults, si as findMatchingWatches, sr as setBriefsConfig, ua as postSlackEphemeralMessage, ui as takeDueTimerWatches, ut as CONVERSATION_WORK_STALE_ENQUEUE_MS, wa as isDmChannel, wi as parseDashboardConversationLink, xi as getDashboardReviewItemLink, xr as dismissOpenReviewItems, yi as getDashboardConversationLink, za as consumeSandboxEgressAuthRequiredSignal } from "./projection-
|
|
3
|
-
import { Y as getAttachmentStorage, d as restoreRuntimeConfig, f as setBotModelConfig, h as snapshotRuntimeConfig, i as getChatConfig, m as setSlackReactionConfig, n as botConfig, o as getSlackBotToken, p as setRuntimeLimits, u as resetRuntimeConfig } from "./config-
|
|
4
|
-
import { A as JUNIOR_CONTEXT_COMPACTION_CALLBACK_ROUTE, E as withSpan, H as GOOGLE_IDENTITY_PROVIDER, L as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, O as JUNIOR_AUTO_ARCHIVE_ROUTE, P as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, T as withLogContext, W as normalizeIdentityEmail, b as setSpanAttributes, h as logWarn, k as JUNIOR_CACHE_WARMUP_CALLBACK_ROUTE, m as logInfo, p as logException, r as createRequestContext, w as withContext } from "./logging-
|
|
5
|
-
import { t as JUNIOR_VERSION } from "./version-
|
|
2
|
+
import { $i as escapeSlackMrkdwnText, Ao as readConversationMessageEventSeq, Ba as consumeSandboxEgressPermissionDeniedSignal, Bo as resolveRootVisibility, C as settleConversationTitleWork, Ci as getDashboardTaskLink, Di as createPluginState, Do as readConversationEventPageAfter, Eo as readConversationEventPage, Ft as pruneActiveConversation, Ha as parseSandboxEgressCredentialToken, Hn as createUserTokenStore, Ho as createPluginAnnotations, Hr as reviewItemReaderForUserInConversation, Jn as createPluginEventPublisher, Jr as createCodeChangePublisher, Ka as normalizeSandboxEgressTracePropagationDomains, Ki as isVercelSandboxEgressRequest, Mr as canActOnReviewItem, Oa as getWorkspaceTeamId, Or as searchReviewItems, Qa as createPluginEmbedder, Ra as clearSandboxEgressSignals, Sa as getSlackClient, Ti as setDashboardConversationLinkOptions, To as readLatestConversationBrief, Uo as listConversationAnnotations, Vr as reviewItemReaderForUser, Xn as getPluginApiRoutes, Zi as resolveBaseUrl, Zn as getPluginRoutes, Zo as createPluginCache, _ as appendConversationMessages, _a as slackExternalRefIdSchema, _r as projectConversationMessages, di as bindEventAutomationCredentialSubject, ea as formatSlackLink, fi as bindScheduledAutomationCredentialSubject, fo as createPluginLogger, ga as slackEntitySchema, gi as verifySlackDirectCredentialSubject, go as readConversationAccessFromSql, hi as verifyScheduledAutomationCredentialSubject, ir as validatePlugins, is as setConfigDefaults, jt as isInvalidConversationRecordError, ka as runWithWorkspaceTeamId, ko as readConversationLastEventSeq, kt as hasRunnableConversationWork, la as openSlackModal, mi as verifyEventAutomationCredentialSubject, nr as getPlugins, pa as unfurlSlackLinks, pi as bindSlackDirectCredentialSubject, qi as proxyVercelSandboxEgressRequest, ra as slackMention, ri as collectEventMatchKeys, rr as setPlugins, rs as getConfigDefaults, si as findMatchingWatches, sr as setBriefsConfig, ua as postSlackEphemeralMessage, ui as takeDueTimerWatches, ut as CONVERSATION_WORK_STALE_ENQUEUE_MS, wa as isDmChannel, wi as parseDashboardConversationLink, xi as getDashboardReviewItemLink, xr as dismissOpenReviewItems, yi as getDashboardConversationLink, za as consumeSandboxEgressAuthRequiredSignal } from "./projection-BgwEE36_.js";
|
|
3
|
+
import { Y as getAttachmentStorage, d as restoreRuntimeConfig, f as setBotModelConfig, h as snapshotRuntimeConfig, i as getChatConfig, m as setSlackReactionConfig, n as botConfig, o as getSlackBotToken, p as setRuntimeLimits, u as resetRuntimeConfig } from "./config-BOByVnxe.js";
|
|
4
|
+
import { A as JUNIOR_CONTEXT_COMPACTION_CALLBACK_ROUTE, E as withSpan, H as GOOGLE_IDENTITY_PROVIDER, L as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, O as JUNIOR_AUTO_ARCHIVE_ROUTE, P as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, T as withLogContext, W as normalizeIdentityEmail, b as setSpanAttributes, h as logWarn, k as JUNIOR_CACHE_WARMUP_CALLBACK_ROUTE, m as logInfo, p as logException, r as createRequestContext, w as withContext } from "./logging-CJTi5niy.js";
|
|
5
|
+
import { t as JUNIOR_VERSION } from "./version-DcZ40a0g.js";
|
|
6
6
|
import { _ as slackMessageTsSchema, f as parseSlackTeamId, g as slackMessageTsFromMs, h as parseSlackMessageTs, m as slackChannelIdSchema, n as createSlackActor, p as parseSlackUserId, s as parseActorUserId, u as parseSlackChannelId } from "./actor-6jsm_v96.js";
|
|
7
|
-
import { B as recordGoogleSignIn, O as conversationKindFromRow, P as resolveActorIdentityId, S as withConversationMutationLock, W as getConversationIdByProviderConversation, a as getConversationStore, nt as createSlackDestination, o as getDb, p as withConversationEventLock, r as getConversationEventStore, s as getSqlExecutor, t as closeDb, tt as touchConversationDetail } from "./db-
|
|
8
|
-
import { A as juniorConversations, N as juniorDestinations, b as juniorConversationBriefs, f as juniorAutomations, g as juniorAgentInvocations, h as juniorAgentBindings, l as juniorReviewItems, u as juniorAutomationRuns, w as juniorConversationEvents } from "./executor-
|
|
9
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
10
|
-
import { A as parseSlackUserInputSubmission, At as processWorkspaceSnapshotJob, B as joinPublicChannel, C as createSlackReviewItemShow, D as buildSlackReviewItemModal, L as checkSlackChannelReadAccess, M as verifySlackSignature, Mt as findAutomationSkill, N as parseSlackThreadId, Nt as missingAutomationSkillReason, O as parseSlackReviewItemClick, Q as readViewerAutomationExecutions, St as archiveConversation, T as syncReviewItemSlackCards, U as logScheduledAutomationRunSkipped, W as scheduledAutomationRunAttributes, X as ViewerTaskNotFoundError, _ as readPublicArtifact, b as lookupSlackUserProfile, bt as requestAttachmentDeletion, ct as reviewItemChangeRecord, dt as conversationTurnIdForMessage, et as readViewerAutomationSummary, g as publicArtifactHeaders, ht as webActorFromUser, it as effectiveTaskOutcomes, j as runWithSlackInstallation, jt as ingestEvent, k as parseSlackReviewItemFormTarget, mt as recordWebConversationActivity, n as executeAgentRun, nt as readViewerAutomations, ot as deliverReviewItemChange, r as processBackgroundCompaction, st as renderReviewItemMessage, t as createAgentRunner, ut as appendAndEnqueueWebMessage, v as unpublishedArtifactHeaders, vt as collectAttachmentGarbage, w as readSlackReviewItemCardConversationId, wt as markConversationRead, y as setConversationSubscription } from "./agent-runner-
|
|
7
|
+
import { B as recordGoogleSignIn, O as conversationKindFromRow, P as resolveActorIdentityId, S as withConversationMutationLock, W as getConversationIdByProviderConversation, a as getConversationStore, nt as createSlackDestination, o as getDb, p as withConversationEventLock, r as getConversationEventStore, s as getSqlExecutor, t as closeDb, tt as touchConversationDetail } from "./db-CoMNr2Zm.js";
|
|
8
|
+
import { A as juniorConversations, N as juniorDestinations, b as juniorConversationBriefs, f as juniorAutomations, g as juniorAgentInvocations, h as juniorAgentBindings, l as juniorReviewItems, u as juniorAutomationRuns, w as juniorConversationEvents } from "./executor-C-m8VrzX.js";
|
|
9
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-DZeD2WbL.js";
|
|
10
|
+
import { A as parseSlackUserInputSubmission, At as processWorkspaceSnapshotJob, B as joinPublicChannel, C as createSlackReviewItemShow, D as buildSlackReviewItemModal, L as checkSlackChannelReadAccess, M as verifySlackSignature, Mt as findAutomationSkill, N as parseSlackThreadId, Nt as missingAutomationSkillReason, O as parseSlackReviewItemClick, Q as readViewerAutomationExecutions, St as archiveConversation, T as syncReviewItemSlackCards, U as logScheduledAutomationRunSkipped, W as scheduledAutomationRunAttributes, X as ViewerTaskNotFoundError, _ as readPublicArtifact, b as lookupSlackUserProfile, bt as requestAttachmentDeletion, ct as reviewItemChangeRecord, dt as conversationTurnIdForMessage, et as readViewerAutomationSummary, g as publicArtifactHeaders, ht as webActorFromUser, it as effectiveTaskOutcomes, j as runWithSlackInstallation, jt as ingestEvent, k as parseSlackReviewItemFormTarget, mt as recordWebConversationActivity, n as executeAgentRun, nt as readViewerAutomations, ot as deliverReviewItemChange, r as processBackgroundCompaction, st as renderReviewItemMessage, t as createAgentRunner, ut as appendAndEnqueueWebMessage, v as unpublishedArtifactHeaders, vt as collectAttachmentGarbage, w as readSlackReviewItemCardConversationId, wt as markConversationRead, y as setConversationSubscription } from "./agent-runner-Q9GkoerG.js";
|
|
11
11
|
import { a as withLock, i as fenceLock, n as MUTATION_LOCK_TTL_MS } from "./locks-D-0h111u.js";
|
|
12
|
-
import { g as createCache, i as readActorIdentity, l as resolveViewerUser, p as parseAvatarUrl } from "./viewer-
|
|
13
|
-
import { a as getStateAdapter, r as disconnectStateAdapter } from "./state-
|
|
12
|
+
import { g as createCache, i as readActorIdentity, l as resolveViewerUser, p as parseAvatarUrl } from "./viewer-CgiGjW10.js";
|
|
13
|
+
import { a as getStateAdapter, r as disconnectStateAdapter } from "./state-CSuA2J1V.js";
|
|
14
14
|
import { a as getNextRunAtMs } from "./schedule-cP0AACm1.js";
|
|
15
|
-
import {
|
|
15
|
+
import { L as annotationCard, M as conversationTitleSchema, Z as conversationBriefSchema, b as conversationSurfaceSchema, p as conversationFeedQuerySchema, v as conversationReportStatusSchema } from "./conversation-DCkzvxqB.js";
|
|
16
16
|
import { t as SANDBOX_EGRESS_PROXY_PATH } from "./proxy-path-BHYoKZdq.js";
|
|
17
17
|
import { n as readSchedulerSecret, r as readSignInSecret } from "./secrets-DebYU866.js";
|
|
18
|
-
import { f as getExperimentalFeatures, g as getAuthPausedConversationTurnId, m as setExperimentalFeatures, p as isExperimentalFeatureEnabled } from "./prompt-input-
|
|
19
|
-
import { B as MIN_WARMUP_PREFIX_TOKENS, D as recordSubagentEnded, U as gapSegment, V as NO_REPLY_GAP_MS, a as segmentGapsKey, n as GLOBAL_GAPS_MAX, r as GLOBAL_GAPS_TTL_MS, t as CONVERSATION_STATE_TTL_MS, x as enqueueAgentInvocation, z as MINUTE_MS } from "./warmup-
|
|
20
|
-
import { C as queueCallback, T as getQueueProvider, _ as createVercelCacheWarmupCallback, a as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC, c as verifyWorkspaceSnapshotJobMessage, d as verifyConversationQueueMessage, g as cacheWarmupQueueConsumer, i as verifyBackgroundCompactionMessage, l as getVercelConversationWorkQueue, m as isConversationQueueMessageRejectedError, p as conversationQueueMessageSchema, r as vercelBackgroundCompactionQueue, t as BACKGROUND_COMPACTION_QUEUE_TOPIC, u as resolveConversationWorkQueueTopic, v as registerVercelCacheWarmupDevConsumer } from "./background-compaction-queue-
|
|
21
|
-
import { M as listPendingAgentInvocationMailboxAppends, N as listPendingAgentInvocationResults } from "./turn-user-message-
|
|
22
|
-
import { C as renderSlackObjectCard, c as SLACK_EVENT_NAMESPACE, d as slackChannelMessageReplyThreadTs, f as slackChannelMessageRunsAutomation, s as getEventCatalog, u as slackChannelMessageEvent, v as renderTaskInput } from "./notification-
|
|
23
|
-
import { _ as getConversationWorkState, g as getConversation, h as ensureConversationWake, l as clearExpiredConversationLease, r as appendAndEnqueueInboundMessage, v as listActiveConversationIds } from "./store-
|
|
24
|
-
import { c as coerceThreadConversationState, p as eventGuidance } from "./turn-session-routing-
|
|
18
|
+
import { f as getExperimentalFeatures, g as getAuthPausedConversationTurnId, m as setExperimentalFeatures, p as isExperimentalFeatureEnabled } from "./prompt-input-BUr4J9RO.js";
|
|
19
|
+
import { B as MIN_WARMUP_PREFIX_TOKENS, D as recordSubagentEnded, U as gapSegment, V as NO_REPLY_GAP_MS, a as segmentGapsKey, n as GLOBAL_GAPS_MAX, r as GLOBAL_GAPS_TTL_MS, t as CONVERSATION_STATE_TTL_MS, x as enqueueAgentInvocation, z as MINUTE_MS } from "./warmup-CwKbxQLl.js";
|
|
20
|
+
import { C as queueCallback, T as getQueueProvider, _ as createVercelCacheWarmupCallback, a as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC, c as verifyWorkspaceSnapshotJobMessage, d as verifyConversationQueueMessage, g as cacheWarmupQueueConsumer, i as verifyBackgroundCompactionMessage, l as getVercelConversationWorkQueue, m as isConversationQueueMessageRejectedError, p as conversationQueueMessageSchema, r as vercelBackgroundCompactionQueue, t as BACKGROUND_COMPACTION_QUEUE_TOPIC, u as resolveConversationWorkQueueTopic, v as registerVercelCacheWarmupDevConsumer } from "./background-compaction-queue-BZhGFOK6.js";
|
|
21
|
+
import { M as listPendingAgentInvocationMailboxAppends, N as listPendingAgentInvocationResults } from "./turn-user-message-BSPmkm7X.js";
|
|
22
|
+
import { C as renderSlackObjectCard, c as SLACK_EVENT_NAMESPACE, d as slackChannelMessageReplyThreadTs, f as slackChannelMessageRunsAutomation, s as getEventCatalog, u as slackChannelMessageEvent, v as renderTaskInput } from "./notification-Bv25xbj0.js";
|
|
23
|
+
import { _ as getConversationWorkState, g as getConversation, h as ensureConversationWake, l as clearExpiredConversationLease, r as appendAndEnqueueInboundMessage, v as listActiveConversationIds } from "./store-B1zepKG8.js";
|
|
24
|
+
import { c as coerceThreadConversationState, p as eventGuidance } from "./turn-session-routing-VXDVXLRl.js";
|
|
25
25
|
import { r as buttonUserInputField } from "./user-input-request-CXNIov9n.js";
|
|
26
|
-
import { c as setSandboxResourceConfig, o as getSandboxResourceConfig } from "./resolve-
|
|
27
|
-
import { H as automationTaskSchema, N as scheduledRunSchema, U as automationTaskText, l as automationListQuerySchema, s as automationExecutionStatusSchema } from "./automation-
|
|
28
|
-
import { $ as eventAutomationRunLimitReason, B as scheduledRunId, F as listScheduledAutomationsForTeam, H as blockEventAutomation, K as findMatchingEventAutomations, L as readScheduledAutomation, O as recordAutomationExecution, Q as admitEventAutomationRun, U as collectEventAutomationMatchKeys, V as withScheduledAutomationLock, a as getDispatchConversationId, b as existingConversationId, c as getDispatchRecord, d as isTerminalDispatchStatus, f as listPendingDispatchMailboxAppends, g as markDispatchFailed, i as createOrGetDispatch, r as confirmDispatchMailboxAppend, t as buildDispatchId, tt as automationVersionOf, u as getPluginDispatchProjection, v as notifyAutomationBlocked, z as saveScheduledAutomationInLock } from "./store-
|
|
29
|
-
import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "./validation-
|
|
26
|
+
import { c as setSandboxResourceConfig, o as getSandboxResourceConfig } from "./resolve-DUIAbcRL.js";
|
|
27
|
+
import { H as automationTaskSchema, N as scheduledRunSchema, U as automationTaskText, l as automationListQuerySchema, s as automationExecutionStatusSchema } from "./automation-Cn8qmbdr.js";
|
|
28
|
+
import { $ as eventAutomationRunLimitReason, B as scheduledRunId, F as listScheduledAutomationsForTeam, H as blockEventAutomation, K as findMatchingEventAutomations, L as readScheduledAutomation, O as recordAutomationExecution, Q as admitEventAutomationRun, U as collectEventAutomationMatchKeys, V as withScheduledAutomationLock, a as getDispatchConversationId, b as existingConversationId, c as getDispatchRecord, d as isTerminalDispatchStatus, f as listPendingDispatchMailboxAppends, g as markDispatchFailed, i as createOrGetDispatch, r as confirmDispatchMailboxAppend, t as buildDispatchId, tt as automationVersionOf, u as getPluginDispatchProjection, v as notifyAutomationBlocked, z as saveScheduledAutomationInLock } from "./store-DrA17Fbz.js";
|
|
29
|
+
import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "./validation-zxAJBDDy.js";
|
|
30
30
|
import { a as pluginRuntimeRegistrationsFromPluginSet, n as pluginCatalogConfigFromEnv, r as pluginCatalogConfigFromPluginSet, t as defineJuniorPlugins } from "./plugins-HYh_JOdw.js";
|
|
31
|
-
import { s as conversationPendingMessageDeliverySchema } from "./conversation-feed-
|
|
32
|
-
import { $ as reviewItemChange, A as assertNoLegacyAllowedDomains, B as normalizeIncomingSlackThreadId, C as cancelConversationPendingMessagesForViewer, D as createProductionConversationWorkOptions, F as startProcessingReaction, G as stopConversation, H as createSlackWebApiStatusSender, I as buildSlackInboundMessage, J as bindMessageAuthorIdentityId, K as parseContent, L as clearSlackPendingReactions, M as isAllowedSignInEmail, N as readEnvList, O as createProductionSlackWebhookServices, P as resolveAllowedDomains, Q as readReviewItemForUser, R as slackInboundMessageId, S as encodeConversationCursor, U as SubscribedReplyReason, V as withNormalizedThreadId, W as getThreadStopDecision, X as actOnReviewItem, Y as ReviewItemActionError, Z as closeReviewItemsAnsweredByReply, a as pinConversation, at as archiveViewerDoneConversations, b as createConversationForViewer, ct as setConversationAutoArchive, dt as enqueueAgentDispatch, et as alreadyContinuesInSlackMessage, ft as GET$4, g as readConversationRecordFromSql, i as readConversationFeed, j as isAllowedDomain, k as getProductionSlackAdapter, n as steerConversationPendingMessagesForViewer, nt as continueConversationInSlack, q as recordSkippedConversationMessage, rt as isMovableToSlack, s as readConversationDetail, st as runAutoArchiveSweep, t as stopConversationTurnForViewer, tt as canContinueInSlack, w as readConversationPendingMessages, x as decodeConversationCursor, y as appendConversationMessageForViewer, z as stripLeadingBotMention } from "./stop-
|
|
33
|
-
import { i as enqueueAgentInvocationResult, r as createEndStoppedChildWork } from "./result-
|
|
34
|
-
import { o as unlinkProvider } from "./connections-
|
|
35
|
-
import { a as GET$5, i as publishAppHomeView, r as GET$6, t as receiveLocalOAuthCredential } from "./credential-sync-
|
|
31
|
+
import { s as conversationPendingMessageDeliverySchema } from "./conversation-feed-CMA12Rjs.js";
|
|
32
|
+
import { $ as reviewItemChange, A as assertNoLegacyAllowedDomains, B as normalizeIncomingSlackThreadId, C as cancelConversationPendingMessagesForViewer, D as createProductionConversationWorkOptions, F as startProcessingReaction, G as stopConversation, H as createSlackWebApiStatusSender, I as buildSlackInboundMessage, J as bindMessageAuthorIdentityId, K as parseContent, L as clearSlackPendingReactions, M as isAllowedSignInEmail, N as readEnvList, O as createProductionSlackWebhookServices, P as resolveAllowedDomains, Q as readReviewItemForUser, R as slackInboundMessageId, S as encodeConversationCursor, U as SubscribedReplyReason, V as withNormalizedThreadId, W as getThreadStopDecision, X as actOnReviewItem, Y as ReviewItemActionError, Z as closeReviewItemsAnsweredByReply, a as pinConversation, at as archiveViewerDoneConversations, b as createConversationForViewer, ct as setConversationAutoArchive, dt as enqueueAgentDispatch, et as alreadyContinuesInSlackMessage, ft as GET$4, g as readConversationRecordFromSql, i as readConversationFeed, j as isAllowedDomain, k as getProductionSlackAdapter, n as steerConversationPendingMessagesForViewer, nt as continueConversationInSlack, q as recordSkippedConversationMessage, rt as isMovableToSlack, s as readConversationDetail, st as runAutoArchiveSweep, t as stopConversationTurnForViewer, tt as canContinueInSlack, w as readConversationPendingMessages, x as decodeConversationCursor, y as appendConversationMessageForViewer, z as stripLeadingBotMention } from "./stop-Dh2DfwpK.js";
|
|
33
|
+
import { i as enqueueAgentInvocationResult, r as createEndStoppedChildWork } from "./result-C2Vn8QGn.js";
|
|
34
|
+
import { o as unlinkProvider } from "./connections-BNN5cJam.js";
|
|
35
|
+
import { a as GET$5, i as publishAppHomeView, r as GET$6, t as receiveLocalOAuthCredential } from "./credential-sync-B_iUpxGL.js";
|
|
36
36
|
import { t as nameRequestRoute } from "./sentry-route-name-BhwWnfqj.js";
|
|
37
|
-
import { c as resumeConversationDelivery } from "./conversation-turn-
|
|
38
|
-
import { t as processConversationWork } from "./worker-
|
|
39
|
-
import { t as bindMessageAgent } from "./message-
|
|
40
|
-
import { t as bindSpawnAgent } from "./spawn-
|
|
41
|
-
import { a as pluginTaskQueueConsumer, n as createVercelPluginTaskCallback, o as registerVercelPluginTaskDevConsumer } from "./task-queue-
|
|
42
|
-
import { t as processPluginTask } from "./task-runner-
|
|
37
|
+
import { c as resumeConversationDelivery } from "./conversation-turn-D9qvcDX6.js";
|
|
38
|
+
import { t as processConversationWork } from "./worker-CbDUzaBA.js";
|
|
39
|
+
import { t as bindMessageAgent } from "./message-Q6_5DAWR.js";
|
|
40
|
+
import { t as bindSpawnAgent } from "./spawn-6cX6xE9G.js";
|
|
41
|
+
import { a as pluginTaskQueueConsumer, n as createVercelPluginTaskCallback, o as registerVercelPluginTaskDevConsumer } from "./task-queue-D1rXWfFN.js";
|
|
42
|
+
import { t as processPluginTask } from "./task-runner-CT4M8oDz.js";
|
|
43
43
|
import { createRequire } from "node:module";
|
|
44
44
|
import { Hono } from "hono";
|
|
45
45
|
import { createHash, randomBytes, randomUUID, timingSafeEqual } from "node:crypto";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as resolveLocalScheduleAtMs, i as getFirstRunAtMs, o as getZonedDateTimeParts, s as isValidTimeZone } from "./schedule-cP0AACm1.js";
|
|
2
|
-
import { i as actorIdentitySchema } from "./conversation-
|
|
2
|
+
import { i as actorIdentitySchema } from "./conversation-DCkzvxqB.js";
|
|
3
3
|
import * as z from "zod";
|
|
4
4
|
import { actorUserIdSchema, destinationVisibilitySchema, eventMatchFieldsSchema, eventMatchSchema, eventReachSchema, eventTypeSchema, pluginEventTypeSchema, slackDestinationSchema, taskOutcomeSchema } from "@sentry/junior-plugin-api";
|
|
5
5
|
// src/chat/automations/task.ts
|
package/dist/{background-compaction-queue-CwfJy3Cd.js → background-compaction-queue-BZhGFOK6.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as getChatConfig } from "./config-
|
|
2
|
-
import { E as withSpan, h as logWarn, m as logInfo, p as logException } from "./logging-
|
|
1
|
+
import { i as getChatConfig } from "./config-BOByVnxe.js";
|
|
2
|
+
import { E as withSpan, h as logWarn, m as logInfo, p as logException } from "./logging-CJTi5niy.js";
|
|
3
3
|
import { t as readJuniorSecret } from "./secrets-DebYU866.js";
|
|
4
4
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
5
5
|
import { createHash, createHmac, timingSafeEqual } from "node:crypto";
|
|
@@ -369,7 +369,7 @@ function cacheWarmupCallback() {
|
|
|
369
369
|
maxDeliveries: 1,
|
|
370
370
|
onRejected: logCacheWarmupRejected,
|
|
371
371
|
run: async (message) => {
|
|
372
|
-
const { runCacheWarmup } = await import("./warmup-
|
|
372
|
+
const { runCacheWarmup } = await import("./warmup-CwKbxQLl.js").then((n) => n.o);
|
|
373
373
|
await runCacheWarmup(message);
|
|
374
374
|
},
|
|
375
375
|
skip: () => !getChatConfig().cacheWarmingEnabled,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { l as completeObject, n as briefEntriesFromReportEvents, s as generateBrief, t as BRIEF_PROMPT } from "./prompt-
|
|
2
|
-
import {
|
|
1
|
+
import { l as completeObject, n as briefEntriesFromReportEvents, s as generateBrief, t as BRIEF_PROMPT } from "./prompt-DXc9DYT9.js";
|
|
2
|
+
import { Q as parseBriefInput, X as briefResourceLabel, d as conversationEventPageSchema, l as conversationDetailReportSchema, q as briefCodeChangeSchema } from "./conversation-DCkzvxqB.js";
|
|
3
3
|
import { CLI_USAGE } from "./cli/run.js";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import * as z from "zod";
|
|
@@ -262,7 +262,7 @@ async function parseRunOptions(argv) {
|
|
|
262
262
|
* token.
|
|
263
263
|
*/
|
|
264
264
|
async function configuredBriefModelId() {
|
|
265
|
-
const { botConfig } = await import("./config-
|
|
265
|
+
const { botConfig } = await import("./config-BOByVnxe.js").then((n) => n.r);
|
|
266
266
|
return botConfig.fastModelId;
|
|
267
267
|
}
|
|
268
268
|
function apiUrl(baseUrl, pathname) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { v as __exportAll } from "./sentry-BRTJqumy.js";
|
|
2
|
-
import { t as createPluginCatalogRuntime } from "./registry-
|
|
2
|
+
import { t as createPluginCatalogRuntime } from "./registry-9XwqSnM-.js";
|
|
3
3
|
// src/chat/plugins/catalog-runtime.ts
|
|
4
4
|
var catalog_runtime_exports = /* @__PURE__ */ __exportAll({ pluginCatalogRuntime: () => pluginCatalogRuntime });
|
|
5
5
|
const pluginCatalogRuntime = createPluginCatalogRuntime();
|
package/dist/cli/chat.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as executeAgentRun, t as createAgentRunner } from "../agent-runner-
|
|
1
|
+
import { n as executeAgentRun, t as createAgentRunner } from "../agent-runner-Q9GkoerG.js";
|
|
2
2
|
import { t as loadAppPluginSet } from "../plugin-module-Cf5gVPWP.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { createHash, randomUUID } from "node:crypto";
|
|
@@ -99,10 +99,10 @@ async function loadLocalPluginSet() {
|
|
|
99
99
|
async function configureLocalChatPlugins(pluginSet) {
|
|
100
100
|
const [pluginsModule, agentHooksModule, catalogRuntimeModule, validationModule, databaseModule] = await Promise.all([
|
|
101
101
|
import("../plugins-HYh_JOdw.js").then((n) => n.o),
|
|
102
|
-
import("../projection-
|
|
103
|
-
import("../catalog-runtime-
|
|
104
|
-
import("../validation-
|
|
105
|
-
import("../db-
|
|
102
|
+
import("../projection-BgwEE36_.js").then((n) => n.qn),
|
|
103
|
+
import("../catalog-runtime-DZeD2WbL.js").then((n) => n.t),
|
|
104
|
+
import("../validation-zxAJBDDy.js").then((n) => n.r),
|
|
105
|
+
import("../db-CoMNr2Zm.js").then((n) => n.n)
|
|
106
106
|
]);
|
|
107
107
|
const resolvedPluginSet = pluginSet === void 0 ? await loadLocalPluginSet() : pluginSet ?? void 0;
|
|
108
108
|
const plugins = pluginsModule.pluginRuntimeRegistrationsFromPluginSet(resolvedPluginSet);
|
|
@@ -152,19 +152,19 @@ function localDevServerUrl() {
|
|
|
152
152
|
async function prepareLocalChatRun(io, pluginSet) {
|
|
153
153
|
defaultStateAdapterForLocalChat();
|
|
154
154
|
await configureLocalChatPlugins(pluginSet);
|
|
155
|
-
const { setBriefsConfig } = await import("../projection-
|
|
155
|
+
const { setBriefsConfig } = await import("../projection-BgwEE36_.js").then((n) => n.or);
|
|
156
156
|
setBriefsConfig({ enabled: true });
|
|
157
|
-
const { runLocalAgentTurn } = await import("../runner-
|
|
158
|
-
const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-
|
|
157
|
+
const { runLocalAgentTurn } = await import("../runner-CXGtw-Mc.js");
|
|
158
|
+
const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-CH5XAyo-.js");
|
|
159
159
|
const { createLocalOAuthState } = await import("../oauth-relay-CsfIazeF.js").then((n) => n.t);
|
|
160
|
-
const { createLocalSandboxEgressSignalTransport } = await import("../sandbox-egress-signals-
|
|
161
|
-
const { bindSpawnAgent } = await import("../spawn-
|
|
162
|
-
const { bindMessageAgent } = await import("../message-
|
|
163
|
-
const { createChildConversationWorker, createDeliverToParent } = await import("../result-
|
|
164
|
-
const { createConversationTurnWorker } = await import("../conversation-turn-
|
|
165
|
-
const { skipInputAfterConversationStop } = await import("../session-stop-
|
|
160
|
+
const { createLocalSandboxEgressSignalTransport } = await import("../sandbox-egress-signals-Di3S_dO7.js");
|
|
161
|
+
const { bindSpawnAgent } = await import("../spawn-6cX6xE9G.js").then((n) => n.n);
|
|
162
|
+
const { bindMessageAgent } = await import("../message-Q6_5DAWR.js").then((n) => n.n);
|
|
163
|
+
const { createChildConversationWorker, createDeliverToParent } = await import("../result-C2Vn8QGn.js").then((n) => n.o);
|
|
164
|
+
const { createConversationTurnWorker } = await import("../conversation-turn-D9qvcDX6.js").then((n) => n.t);
|
|
165
|
+
const { skipInputAfterConversationStop } = await import("../session-stop-D4i7e6iT.js").then((n) => n.a);
|
|
166
166
|
const { createLocalConversationWork } = await import("../conversation-work-BaT_T6EB.js");
|
|
167
|
-
const { processConversationWork } = await import("../worker-
|
|
167
|
+
const { processConversationWork } = await import("../worker-CbDUzaBA.js").then((n) => n.n);
|
|
168
168
|
let agentRunner;
|
|
169
169
|
const localConversationWork = createLocalConversationWork(async (message) => {
|
|
170
170
|
if (!agentRunner) throw new Error("Local agent runner is not ready");
|
package/dist/cli/check.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { N as JUNIOR_HEARTBEAT_ROUTE, R as LEGACY_JUNIOR_CONVERSATION_WORK_FUNCTION, j as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE } from "../logging-
|
|
2
|
-
import { v as parseInlinePluginManifest, y as parsePluginManifest } from "../registry-
|
|
3
|
-
import { i as parseSkillFile } from "../skills-
|
|
1
|
+
import { N as JUNIOR_HEARTBEAT_ROUTE, R as LEGACY_JUNIOR_CONVERSATION_WORK_FUNCTION, j as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE } from "../logging-CJTi5niy.js";
|
|
2
|
+
import { v as parseInlinePluginManifest, y as parsePluginManifest } from "../registry-9XwqSnM-.js";
|
|
3
|
+
import { i as parseSkillFile } from "../skills-DCK9SD_l.js";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import fs from "node:fs/promises";
|
|
6
6
|
import { pathToFileURL } from "node:url";
|
package/dist/cli/main.js
CHANGED
|
@@ -45,13 +45,13 @@ async function runChat(argv, pluginSet) {
|
|
|
45
45
|
return await (await import("./chat.js")).runChat(argv, void 0, { pluginSet });
|
|
46
46
|
}
|
|
47
47
|
async function runAdmin(argv) {
|
|
48
|
-
return await (await import("../admin-
|
|
48
|
+
return await (await import("../admin-BF3DbYGf.js")).runAdmin(argv);
|
|
49
49
|
}
|
|
50
50
|
async function runServiceAccount(argv) {
|
|
51
|
-
return await (await import("../service-account-
|
|
51
|
+
return await (await import("../service-account-DM3KBBeG.js")).runServiceAccount(argv);
|
|
52
52
|
}
|
|
53
53
|
async function runBriefs(argv) {
|
|
54
|
-
return await (await import("../briefs-
|
|
54
|
+
return await (await import("../briefs-CQrCRF6-.js")).runBriefs(argv);
|
|
55
55
|
}
|
|
56
56
|
function topLevelCommand(argv) {
|
|
57
57
|
return (argv[0] === "--" ? argv.slice(1) : argv)[0];
|
package/dist/cli/plugins.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { fo as createPluginLogger, ir as validatePlugins, rr as setPlugins } from "../projection-
|
|
2
|
-
import { o as getDb } from "../db-
|
|
3
|
-
import { n as pluginCatalogRuntime } from "../catalog-runtime-
|
|
4
|
-
import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "../validation-
|
|
1
|
+
import { fo as createPluginLogger, ir as validatePlugins, rr as setPlugins } from "../projection-BgwEE36_.js";
|
|
2
|
+
import { o as getDb } from "../db-CoMNr2Zm.js";
|
|
3
|
+
import { n as pluginCatalogRuntime } from "../catalog-runtime-DZeD2WbL.js";
|
|
4
|
+
import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "../validation-zxAJBDDy.js";
|
|
5
5
|
import { a as pluginRuntimeRegistrationsFromPluginSet, i as pluginCliRegistrationsFromPluginSet, r as pluginCatalogConfigFromPluginSet } from "../plugins-HYh_JOdw.js";
|
|
6
6
|
import { t as loadAppPluginSet } from "../plugin-module-Cf5gVPWP.js";
|
|
7
7
|
import { stderr, stdout } from "node:process";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Vi as create, qa as SANDBOX_RUNTIME } from "../projection-
|
|
2
|
-
import { n as pluginCatalogRuntime } from "../catalog-runtime-
|
|
3
|
-
import { r as disconnectStateAdapter } from "../state-
|
|
4
|
-
import { n as resolve } from "../resolve-
|
|
1
|
+
import { Vi as create, qa as SANDBOX_RUNTIME } from "../projection-BgwEE36_.js";
|
|
2
|
+
import { n as pluginCatalogRuntime } from "../catalog-runtime-DZeD2WbL.js";
|
|
3
|
+
import { r as disconnectStateAdapter } from "../state-CSuA2J1V.js";
|
|
4
|
+
import { n as resolve } from "../resolve-DUIAbcRL.js";
|
|
5
5
|
// src/cli/snapshot-create.ts
|
|
6
6
|
const DEFAULT_TIMEOUT_MS = 6e5;
|
|
7
7
|
function progressMessage(phase) {
|
package/dist/cli/upgrade.d.ts
CHANGED
package/dist/cli/upgrade.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as getChatConfig } from "../config-
|
|
2
|
-
import { t as createJuniorSqlExecutor } from "../executor-
|
|
3
|
-
import { t as createPluginCatalogRuntime } from "../registry-
|
|
1
|
+
import { i as getChatConfig } from "../config-BOByVnxe.js";
|
|
2
|
+
import { t as createJuniorSqlExecutor } from "../executor-C-m8VrzX.js";
|
|
3
|
+
import { t as createPluginCatalogRuntime } from "../registry-9XwqSnM-.js";
|
|
4
4
|
import { n as pluginCatalogConfigFromEnv, r as pluginCatalogConfigFromPluginSet, t as defineJuniorPlugins } from "../plugins-HYh_JOdw.js";
|
|
5
5
|
import { t as loadAppPluginSet } from "../plugin-module-Cf5gVPWP.js";
|
|
6
6
|
import { basename, dirname, join, resolve } from "node:path";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { v as __exportAll } from "./sentry-BRTJqumy.js";
|
|
2
|
-
import { E as withSpan, g as normalizeGenAiFinishReason, h as logWarn, i as extractGenAiUsageAttributes, p as logException, v as serializeGenAiAttribute } from "./logging-
|
|
3
|
-
import { a as toCanonicalInputMessage, n as getCurrentConversationPrivacy, o as toCanonicalOutputMessage, s as toGenAiMessagesTraceAttributes } from "./conversation-privacy-
|
|
2
|
+
import { E as withSpan, g as normalizeGenAiFinishReason, h as logWarn, i as extractGenAiUsageAttributes, p as logException, v as serializeGenAiAttribute } from "./logging-CJTi5niy.js";
|
|
3
|
+
import { a as toCanonicalInputMessage, n as getCurrentConversationPrivacy, o as toCanonicalOutputMessage, s as toGenAiMessagesTraceAttributes } from "./conversation-privacy-C0eRxsgb.js";
|
|
4
4
|
import { AwsClient } from "aws4fetch";
|
|
5
5
|
import { del, get, put } from "@vercel/blob";
|
|
6
6
|
import { calculateCost, completeSimple, getEnvApiKey, getModels, registerApiProvider } from "@earendil-works/pi-ai/compat";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Qi as startOAuthFlow } from "./projection-
|
|
2
|
-
import { n as botConfig } from "./config-
|
|
3
|
-
import { I as deleteProviderIdentityForSlackUser, L as deleteProviderIdentityForUser, s as getSqlExecutor } from "./db-
|
|
4
|
-
import { u as hasRequiredOAuthScope } from "./registry-
|
|
5
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
6
|
-
import { c as deleteMcpAuthSessionsForUserProvider, l as deleteMcpServerSessionId, u as deleteMcpStoredOAuthCredentials } from "./agent-runner-
|
|
1
|
+
import { Qi as startOAuthFlow } from "./projection-BgwEE36_.js";
|
|
2
|
+
import { n as botConfig } from "./config-BOByVnxe.js";
|
|
3
|
+
import { I as deleteProviderIdentityForSlackUser, L as deleteProviderIdentityForUser, s as getSqlExecutor } from "./db-CoMNr2Zm.js";
|
|
4
|
+
import { u as hasRequiredOAuthScope } from "./registry-9XwqSnM-.js";
|
|
5
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-DZeD2WbL.js";
|
|
6
|
+
import { c as deleteMcpAuthSessionsForUserProvider, l as deleteMcpServerSessionId, u as deleteMcpStoredOAuthCredentials } from "./agent-runner-Q9GkoerG.js";
|
|
7
7
|
import { randomBytes } from "node:crypto";
|
|
8
8
|
// src/handlers/oauth-html.ts
|
|
9
9
|
/** Build pre-escaped callback HTML with the shared response security policy. */
|
|
@@ -276,6 +276,44 @@ const conversationTitleSchema = z.string().trim().min(1).max(200);
|
|
|
276
276
|
const renameConversationBodySchema = z.object({ title: conversationTitleSchema }).strict();
|
|
277
277
|
/** The stored title after the rename. */
|
|
278
278
|
const renameConversationResponseSchema = z.object({ title: z.string().min(1) }).strict();
|
|
279
|
+
// src/chat/agent-invocations/agent-types.ts
|
|
280
|
+
/**
|
|
281
|
+
* Child agent types. A type is plain data: when to pick it and what the child
|
|
282
|
+
* reads with its task. Runtime code reads only these fields, never a type
|
|
283
|
+
* name, so types can later come from configuration. Types do not limit tools:
|
|
284
|
+
* Guardian reviews each child action against the root user's messages, as for
|
|
285
|
+
* any child. A child keeps its type for later agent invocations. How a child
|
|
286
|
+
* starts, fresh or forked from its parent's history, is not a type: see
|
|
287
|
+
* `fork` on the agent invocation.
|
|
288
|
+
*/
|
|
289
|
+
const AGENT_TYPES = ["explore", "reviewer"];
|
|
290
|
+
/**
|
|
291
|
+
* Stored name of a child agent type. A stored name stays readable after its
|
|
292
|
+
* type is removed; the runtime then treats the child as a
|
|
293
|
+
* child without a type.
|
|
294
|
+
*/
|
|
295
|
+
const agentTypeSchema = z.string().regex(/^[a-z][a-z0-9_-]*$/);
|
|
296
|
+
const AGENT_TYPE_DEFINITIONS = {
|
|
297
|
+
explore: {
|
|
298
|
+
whenToUse: "Investigation across code, docs, logs, telemetry, or the web. Use it when an answer needs reading across many files or sources and you need the conclusion with evidence, not the raw output.",
|
|
299
|
+
instructions: "You are an explore agent. Your job is to investigate and report, so do not change anything outside your sandbox unless the task asks for it. Report what you found with exact evidence, such as paths, lines, links, and ids, and say what you could not verify."
|
|
300
|
+
},
|
|
301
|
+
reviewer: {
|
|
302
|
+
whenToUse: "An independent second opinion on a change, plan, or claim. Give it the evidence to judge, not your conclusion.",
|
|
303
|
+
instructions: "You are a reviewer agent. Give an independent assessment. Do not assume that the parent's framing is correct: verify each claim against the evidence. Do not change anything outside your own sandbox. Report concrete problems ranked by severity, each with its evidence, and say clearly when you found none."
|
|
304
|
+
}
|
|
305
|
+
};
|
|
306
|
+
function agentTypeDefinition(type) {
|
|
307
|
+
return type && Object.hasOwn(AGENT_TYPE_DEFINITIONS, type) ? AGENT_TYPE_DEFINITIONS[type] : void 0;
|
|
308
|
+
}
|
|
309
|
+
/** Model-facing list of child agent types. */
|
|
310
|
+
function formatAgentTypes() {
|
|
311
|
+
return AGENT_TYPES.map((type) => `- "${type}": ${AGENT_TYPE_DEFINITIONS[type].whenToUse}`).join("\n");
|
|
312
|
+
}
|
|
313
|
+
/** Return the instructions that a child of this type reads with its task. */
|
|
314
|
+
function agentTypeInstructions(type) {
|
|
315
|
+
return agentTypeDefinition(type)?.instructions;
|
|
316
|
+
}
|
|
279
317
|
// src/api/schema/child-agent-totals.ts
|
|
280
318
|
/**
|
|
281
319
|
* The part of a Conversation total that its child agents spent, at any depth.
|
|
@@ -851,7 +889,17 @@ const forkConversationResponseSchema = z.object({ conversationId: z.string() }).
|
|
|
851
889
|
const conversationAgentTreeNodeSchema = z.object({
|
|
852
890
|
conversationId: z.string().min(1),
|
|
853
891
|
kind: conversationKindSchema,
|
|
854
|
-
label: z.string().min(1)
|
|
892
|
+
label: z.string().min(1),
|
|
893
|
+
/**
|
|
894
|
+
* Agent type of a child, such as `explore`. Absent for a root, a child
|
|
895
|
+
* without a type, or a viewer who cannot see private content.
|
|
896
|
+
*/
|
|
897
|
+
agentType: agentTypeSchema.optional(),
|
|
898
|
+
/**
|
|
899
|
+
* The child started with its parent's history. Absent like `agentType`,
|
|
900
|
+
* or when the child started fresh.
|
|
901
|
+
*/
|
|
902
|
+
fork: z.literal(true).optional()
|
|
855
903
|
}).strict();
|
|
856
904
|
const conversationEventPageSchema = z.object({
|
|
857
905
|
events: z.array(conversationReportEventSchema),
|
|
@@ -943,4 +991,4 @@ const conversationDetailReportSchema = conversationSummaryReportSchema.extend({
|
|
|
943
991
|
sentryConversationUrl: z.string().optional(),
|
|
944
992
|
sourceTask: conversationSourceTaskSchema.optional()
|
|
945
993
|
}).strict().superRefine(validateConversationEvents);
|
|
946
|
-
export {
|
|
994
|
+
export { parseStoredBrief as $, formatAgentTypes as A, readMessageCardRefs as B, createConversationMessageBodySchema as C, AGENT_TYPES as D, conversationChildAgentTotalsSchema as E, conversationReadPositionSchema as F, messageAttachmentSchema as G, resolveMessageCards as H, reviewItemChangeRecordSchema as I, briefLinkSchema as J, readMessageAttachments as K, annotationCard as L, conversationTitleSchema as M, renameConversationBodySchema as N, agentTypeInstructions as O, renameConversationResponseSchema as P, parseBriefInput as Q, messageCardRef as R, createConversationBodySchema as S, forkConversationResponseSchema as T, MAX_INPUT_IMAGES as U, removedCardSchema as V, MAX_INPUT_IMAGE_BYTES as W, briefResourceLabel as X, briefOutcomeStatusSchema as Y, conversationBriefSchema as Z, conversationReportMessageEventSchema as _, conversationActivityPreviewSchema as a, conversationSurfaceSchema as b, conversationDetailQuerySchema as c, conversationEventPageSchema as d, conversationEventsQuerySchema as f, conversationReportEventSchema as g, conversationReportEventDataSchema as h, actorIdentitySchema as i, CONVERSATION_TITLE_MAX_LENGTH as j, agentTypeSchema as k, conversationDetailReportSchema as l, conversationParamsSchema as m, CONVERSATION_VERSION_HEADER as n, conversationAttachmentParamsSchema as o, conversationFeedQuerySchema as p, briefCodeChangeSchema as q, acceptedConversationMessageSchema as r, conversationAuxiliaryCostsSchema as s, CONVERSATION_DETAIL_VERSION_HEADER as t, conversationEventHistorySchema as u, conversationReportStatusSchema as v, forkConversationBodySchema as w, conversationUsageSchema as x, conversationSummaryReportSchema as y, messageCardText as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as
|
|
1
|
+
import { G as messageAttachmentSchema, I as reviewItemChangeRecordSchema, Y as briefOutcomeStatusSchema, i as actorIdentitySchema, l as conversationDetailReportSchema, y as conversationSummaryReportSchema } from "./conversation-DCkzvxqB.js";
|
|
2
2
|
import * as z from "zod";
|
|
3
3
|
// src/reporting-schema.ts
|
|
4
4
|
const healthReportSchema = z.object({
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { i as getActiveSpan, r as continueTrace, v as __exportAll } from "./sentry-BRTJqumy.js";
|
|
2
|
-
import { A as latestConversationMessageSeq, I as upsertConversationMessage, M as normalizeConversationText, N as recordDeliveredAssistantMessage, _i as verifyTimerWatchCredentialSubject, a as loadProjection, an as getAssistantReplyText, at as failTurnRecord, b as persistConversationMessages, j as markConversationMessage, mn as persistWithRetry, nt as saveTurnCheckpoint, ot as getTurnRecord, t as commitAcceptedReply, v as hydrateConversationMessages } from "./projection-
|
|
3
|
-
import { n as botConfig } from "./config-
|
|
4
|
-
import { E as withSpan, S as setTags, h as logWarn, p as logException } from "./logging-
|
|
5
|
-
import { D as turnBehavior, T as isTopLevelKind, a as getConversationStore, et as nextDetailVersion, o as getDb, r as getConversationEventStore, s as getSqlExecutor, w as isPersonInput } from "./db-
|
|
6
|
-
import { A as juniorConversations } from "./executor-
|
|
2
|
+
import { A as latestConversationMessageSeq, I as upsertConversationMessage, M as normalizeConversationText, N as recordDeliveredAssistantMessage, _i as verifyTimerWatchCredentialSubject, a as loadProjection, an as getAssistantReplyText, at as failTurnRecord, b as persistConversationMessages, j as markConversationMessage, mn as persistWithRetry, nt as saveTurnCheckpoint, ot as getTurnRecord, t as commitAcceptedReply, v as hydrateConversationMessages } from "./projection-BgwEE36_.js";
|
|
3
|
+
import { n as botConfig } from "./config-BOByVnxe.js";
|
|
4
|
+
import { E as withSpan, S as setTags, h as logWarn, p as logException } from "./logging-CJTi5niy.js";
|
|
5
|
+
import { D as turnBehavior, T as isTopLevelKind, a as getConversationStore, et as nextDetailVersion, o as getDb, r as getConversationEventStore, s as getSqlExecutor, w as isPersonInput } from "./db-CoMNr2Zm.js";
|
|
6
|
+
import { A as juniorConversations } from "./executor-C-m8VrzX.js";
|
|
7
7
|
import { _ as instructionProvenanceFor } from "./media-BepyEUNm.js";
|
|
8
|
-
import { f as credentialContextForActor } from "./registry-
|
|
9
|
-
import { gt as resolveConversationDestination, i as measureTurnCompactionWait } from "./agent-runner-
|
|
10
|
-
import { o as isEventConversationMessage } from "./prompt-
|
|
11
|
-
import {
|
|
12
|
-
import { C as legacyWebMailboxMetadataSchema, S as turnInputFactsFromConversationMessage, _ as getEventBatchDelayMs, l as withoutSavedSteeringMessages, n as loadReviewItemInput, o as buildSteeringPiMessage, s as instructionForInputs, t as eventReviewItemInputs, x as sourceFromTurnInput } from "./prompt-input-
|
|
13
|
-
import { _ as ConversationTurnLifecycleService, d as isTurnInputCommitLostError, g as startActiveTurn, h as markTurnFailed, l as getConversationTurnBoundaryError,
|
|
14
|
-
import { T as recordFinishedTurnForAutomatedLimit, a as renderEventBatchInputs, i as isEventMailboxMetadata, o as timerWatchCredentialSubject, r as eventBatchMessageMeta, y as maybePostAutomatedTurnLimitNotice } from "./notification-
|
|
15
|
-
import { a as getPersistedThreadState, c as coerceThreadConversationState, i as getPersistedSandboxState, s as persistThreadStateById } from "./turn-session-routing-
|
|
16
|
-
import { a as AgentRunError, n as completeCancelledConversationTurn, o as executeTurn, r as supersedeOpenMailboxTurns } from "./turn-cancel-
|
|
17
|
-
import { o as createWebAuthorization } from "./turn-wake-
|
|
18
|
-
import { H as blockEventAutomation, M as blockScheduledAutomation, c as getDispatchRecord, o as getDispatchIdForConversation, v as notifyAutomationBlocked, x as readAutomationExecutionByConversationId } from "./store-
|
|
19
|
-
import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-
|
|
20
|
-
import { c as buildDeliveredTurnStatePatch, l as loadPendingMessageCards, o as completeAuthPauseTurn, r as finalizeFailedTurnReplyWithEvent, t as buildTurnThreadContext } from "./thread-context-
|
|
8
|
+
import { f as credentialContextForActor } from "./registry-9XwqSnM-.js";
|
|
9
|
+
import { gt as resolveConversationDestination, i as measureTurnCompactionWait } from "./agent-runner-Q9GkoerG.js";
|
|
10
|
+
import { o as isEventConversationMessage } from "./prompt-DXc9DYT9.js";
|
|
11
|
+
import { K as readMessageAttachments } from "./conversation-DCkzvxqB.js";
|
|
12
|
+
import { C as legacyWebMailboxMetadataSchema, S as turnInputFactsFromConversationMessage, _ as getEventBatchDelayMs, l as withoutSavedSteeringMessages, n as loadReviewItemInput, o as buildSteeringPiMessage, s as instructionForInputs, t as eventReviewItemInputs, x as sourceFromTurnInput } from "./prompt-input-BUr4J9RO.js";
|
|
13
|
+
import { _ as ConversationTurnLifecycleService, d as isTurnInputCommitLostError, dt as buildDeterministicTurnId, g as startActiveTurn, h as markTurnFailed, l as getConversationTurnBoundaryError, s as TurnInputCommitLostError, t as getTurnUserMessage } from "./turn-user-message-BSPmkm7X.js";
|
|
14
|
+
import { T as recordFinishedTurnForAutomatedLimit, a as renderEventBatchInputs, i as isEventMailboxMetadata, o as timerWatchCredentialSubject, r as eventBatchMessageMeta, y as maybePostAutomatedTurnLimitNotice } from "./notification-Bv25xbj0.js";
|
|
15
|
+
import { a as getPersistedThreadState, c as coerceThreadConversationState, i as getPersistedSandboxState, s as persistThreadStateById } from "./turn-session-routing-VXDVXLRl.js";
|
|
16
|
+
import { a as AgentRunError, n as completeCancelledConversationTurn, o as executeTurn, r as supersedeOpenMailboxTurns } from "./turn-cancel-l460pfGW.js";
|
|
17
|
+
import { o as createWebAuthorization } from "./turn-wake-DVFVXyhX.js";
|
|
18
|
+
import { H as blockEventAutomation, M as blockScheduledAutomation, c as getDispatchRecord, o as getDispatchIdForConversation, v as notifyAutomationBlocked, x as readAutomationExecutionByConversationId } from "./store-DrA17Fbz.js";
|
|
19
|
+
import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-CT4M8oDz.js";
|
|
20
|
+
import { c as buildDeliveredTurnStatePatch, l as loadPendingMessageCards, o as completeAuthPauseTurn, r as finalizeFailedTurnReplyWithEvent, t as buildTurnThreadContext } from "./thread-context-DnqUkbzN.js";
|
|
21
21
|
import { isDeepStrictEqual } from "node:util";
|
|
22
22
|
import { createHash } from "node:crypto";
|
|
23
23
|
import { and, eq, isNotNull, isNull } from "drizzle-orm";
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { Hn as createUserTokenStore, Kn as resolvePluginOAuthAccount, Sa as getSlackClient, Xi as parseOAuthStatePayload, Yi as formatProviderLabel, Z as getConversationPendingAuth, Zi as resolveBaseUrl, d as recordAuthorizationCompleted, da as postSlackMessage, ot as getTurnRecord, u as recordAuthenticationLinked } from "./projection-
|
|
2
|
-
import { L as escapeXml, a as getRuntimeMetadata, n as botConfig } from "./config-
|
|
3
|
-
import { U as isNativeIdentityProvider, _ as runBestEffort, h as logWarn, p as logException } from "./logging-
|
|
1
|
+
import { Hn as createUserTokenStore, Kn as resolvePluginOAuthAccount, Sa as getSlackClient, Xi as parseOAuthStatePayload, Yi as formatProviderLabel, Z as getConversationPendingAuth, Zi as resolveBaseUrl, d as recordAuthorizationCompleted, da as postSlackMessage, ot as getTurnRecord, u as recordAuthenticationLinked } from "./projection-BgwEE36_.js";
|
|
2
|
+
import { L as escapeXml, a as getRuntimeMetadata, n as botConfig } from "./config-BOByVnxe.js";
|
|
3
|
+
import { U as isNativeIdentityProvider, _ as runBestEffort, h as logWarn, p as logException } from "./logging-CJTi5niy.js";
|
|
4
4
|
import { p as parseSlackUserId } from "./actor-6jsm_v96.js";
|
|
5
|
-
import { H as upsertLinkedIdentity, P as resolveActorIdentityId, R as findUserByVerifiedEmails, s as getSqlExecutor } from "./db-
|
|
5
|
+
import { H as upsertLinkedIdentity, P as resolveActorIdentityId, R as findUserByVerifiedEmails, s as getSqlExecutor } from "./db-CoMNr2Zm.js";
|
|
6
6
|
import { i as homeDir } from "./package-discovery-DJhGdS4c.js";
|
|
7
|
-
import { n as buildOAuthTokenRequest, r as parseOAuthTokenResponse, u as hasRequiredOAuthScope } from "./registry-
|
|
8
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
9
|
-
import { t as discoverSkills } from "./skills-
|
|
10
|
-
import { b as lookupSlackUserProfile, d as getMcpAuthSession, f as getMcpStoredOAuthCredentials, o as finalizeMcpAuthorization, p as putMcpStoredOAuthCredentials, s as deleteMcpAuthSession } from "./agent-runner-
|
|
7
|
+
import { n as buildOAuthTokenRequest, r as parseOAuthTokenResponse, u as hasRequiredOAuthScope } from "./registry-9XwqSnM-.js";
|
|
8
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-DZeD2WbL.js";
|
|
9
|
+
import { t as discoverSkills } from "./skills-DCK9SD_l.js";
|
|
10
|
+
import { b as lookupSlackUserProfile, d as getMcpAuthSession, f as getMcpStoredOAuthCredentials, o as finalizeMcpAuthorization, p as putMcpStoredOAuthCredentials, s as deleteMcpAuthSession } from "./agent-runner-Q9GkoerG.js";
|
|
11
11
|
import { r as acquireActiveLock } from "./locks-D-0h111u.js";
|
|
12
|
-
import { o as readIdentityById } from "./viewer-
|
|
13
|
-
import { a as getStateAdapter } from "./state-
|
|
12
|
+
import { o as readIdentityById } from "./viewer-CgiGjW10.js";
|
|
13
|
+
import { a as getStateAdapter } from "./state-CSuA2J1V.js";
|
|
14
14
|
import { t as readJuniorSecret } from "./secrets-DebYU866.js";
|
|
15
|
-
import { a as getPersistedThreadState, c as coerceThreadConversationState } from "./turn-session-routing-
|
|
16
|
-
import { i as wakePausedTurn, r as wakeAuthorizedTurn, s as deleteWebAuthorization } from "./turn-wake-
|
|
17
|
-
import { _ as getMcpProviderErrorAttributes } from "./service-account-
|
|
18
|
-
import { i as readConnectedOAuthTokens, s as htmlCallbackResponse } from "./connections-
|
|
15
|
+
import { a as getPersistedThreadState, c as coerceThreadConversationState } from "./turn-session-routing-VXDVXLRl.js";
|
|
16
|
+
import { i as wakePausedTurn, r as wakeAuthorizedTurn, s as deleteWebAuthorization } from "./turn-wake-DVFVXyhX.js";
|
|
17
|
+
import { _ as getMcpProviderErrorAttributes } from "./service-account-GzAMUQ8a.js";
|
|
18
|
+
import { i as readConnectedOAuthTokens, s as htmlCallbackResponse } from "./connections-BNN5cJam.js";
|
|
19
19
|
import { n as relayLocalOAuthCallback } from "./oauth-relay-CsfIazeF.js";
|
|
20
20
|
import path from "node:path";
|
|
21
21
|
import { createHmac, createSecretKey, timingSafeEqual } from "node:crypto";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { v as __exportAll } from "./sentry-BRTJqumy.js";
|
|
2
|
-
import { i as getChatConfig } from "./config-
|
|
3
|
-
import { H as GOOGLE_IDENTITY_PROVIDER, W as normalizeIdentityEmail, h as logWarn } from "./logging-
|
|
2
|
+
import { i as getChatConfig } from "./config-BOByVnxe.js";
|
|
3
|
+
import { H as GOOGLE_IDENTITY_PROVIDER, W as normalizeIdentityEmail, h as logWarn } from "./logging-CJTi5niy.js";
|
|
4
4
|
import { a as isSlackUserId, d as parseSlackChannelReferenceId, f as parseSlackTeamId, s as parseActorUserId } from "./actor-6jsm_v96.js";
|
|
5
|
-
import { A as juniorConversations, C as isUserInstruction, E as juniorConversationAnnotations, M as juniorUsers, N as juniorDestinations, S as juniorConversationMetrics, j as juniorIdentities, t as createJuniorSqlExecutor, v as juniorConversationParticipants, w as juniorConversationEvents, x as CONVERSATION_METRICS, y as juniorConversationBindings } from "./executor-
|
|
5
|
+
import { A as juniorConversations, C as isUserInstruction, E as juniorConversationAnnotations, M as juniorUsers, N as juniorDestinations, S as juniorConversationMetrics, j as juniorIdentities, t as createJuniorSqlExecutor, v as juniorConversationParticipants, w as juniorConversationEvents, x as CONVERSATION_METRICS, y as juniorConversationBindings } from "./executor-C-m8VrzX.js";
|
|
6
6
|
import { d as historyReplacementSchema, f as newConversationEventSchema, p as encodeHistoryPayload, s as conversationEventDataSchema, u as decodeStoredConversationEvent, y as usageSchema } from "./media-BepyEUNm.js";
|
|
7
7
|
import { randomUUID } from "node:crypto";
|
|
8
8
|
import { and, asc, desc, eq, gt, gte, inArray, isNull, lt, lte, ne, or, sql } from "drizzle-orm";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ as withScope } from "./sentry-BRTJqumy.js";
|
|
2
|
-
import "./config-
|
|
3
|
-
import { h as logWarn, p as logException } from "./logging-
|
|
2
|
+
import "./config-BOByVnxe.js";
|
|
3
|
+
import { h as logWarn, p as logException } from "./logging-CJTi5niy.js";
|
|
4
4
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
5
5
|
import { sql } from "drizzle-orm";
|
|
6
6
|
import { bigint, boolean, check, date, doublePrecision, foreignKey, index, integer, jsonb, pgTable, primaryKey, text, timestamp, uniqueIndex, uuid } from "drizzle-orm/pg-core";
|
package/dist/instrumentation.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as getClient, c as init, i as getActiveSpan, o as getGlobalScope, p as spanToJSON, s as getTraceData } from "./sentry-BRTJqumy.js";
|
|
2
|
-
import { B as getDeploymentTelemetryAttributes, z as getDeploymentServiceVersion } from "./logging-
|
|
3
|
-
import { n as getCurrentConversationPrivacy } from "./conversation-privacy-
|
|
2
|
+
import { B as getDeploymentTelemetryAttributes, z as getDeploymentServiceVersion } from "./logging-CJTi5niy.js";
|
|
3
|
+
import { n as getCurrentConversationPrivacy } from "./conversation-privacy-C0eRxsgb.js";
|
|
4
4
|
import { n as redactSandboxEgressProxyPath } from "./proxy-path-BHYoKZdq.js";
|
|
5
5
|
import { t as consumePrivateTraceResultMarker } from "./private-trace-result-CE7_lEdq.js";
|
|
6
6
|
import { n as promoteHttpRouteName, r as routeNameMiddleware, t as nameRequestRoute } from "./sentry-route-name-BhwWnfqj.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as withScope, d as setTag, f as setUser, h as startSpan, i as getActiveSpan, l as logger, n as captureMessage, p as spanToJSON, s as getTraceData, t as captureException } from "./sentry-BRTJqumy.js";
|
|
2
|
-
import { t as JUNIOR_VERSION } from "./version-
|
|
2
|
+
import { t as JUNIOR_VERSION } from "./version-DcZ40a0g.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { styleText } from "node:util";
|
|
5
5
|
import { ConfigError, configureSync, getConfig, getLogger } from "@logtape/logtape";
|