@sentry/junior 0.262.0 → 0.264.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-t-Y9RHML.js → adapter-BIbMSKlG.js} +1 -1
- package/dist/{admin-BCqeFndQ.js → admin-D4d0HXax.js} +1 -1
- package/dist/{agent-hooks-9q2zdKHL.js → agent-hooks-D_PbluRX.js} +73 -32
- package/dist/{agent-runner-Cx6NO5LE.js → agent-runner-CvRxb09K.js} +161 -778
- package/dist/api/schema.d.ts +5 -1
- package/dist/api/schema.js +3 -3
- package/dist/api.js +28 -27
- package/dist/{app-Bo0kB987.d.ts → app-Buc5gIWz.d.ts} +5 -0
- package/dist/app.d.ts +1 -1
- package/dist/app.js +63 -42
- package/dist/{assistant-reply-B2qUBAwL.js → assistant-reply-BcJj_ORj.js} +1 -1
- package/dist/{automation-DrpcA-SX.js → automation-CWX0qL8U.js} +1 -1
- package/dist/{briefs-DsGH2Vym.js → briefs-BFfIE5N6.js} +4 -4
- package/dist/{catalog-runtime-CfwKT0sn.js → catalog-runtime-R53MWcMi.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.js +3 -3
- package/dist/{client-DpfjZgNk.js → client-DpOwh_zX.js} +2 -2
- package/dist/{config-BiCtNiu5.js → config-BxPrFVJP.js} +2 -2
- package/dist/{connections-D9IKbfk-.js → connections-BnTM1nRf.js} +10 -10
- package/dist/{conversation-CvuKJ3tA.js → conversation-B0baEwoA.js} +2 -0
- package/dist/{conversation-privacy-CBUI0frD.js → conversation-privacy-ueJ6i-t9.js} +1 -1
- package/dist/{credential-sync-Bu6ZOuOk.js → credential-sync-DeDkof_D.js} +14 -14
- package/dist/{executor-O8xqLDN6.js → executor-D3WIS4vl.js} +2 -2
- package/dist/{images-AM1exvU0.js → images-5VNK_yYC.js} +3 -3
- package/dist/instrumentation.js +2 -2
- package/dist/{job-queue-DmarAQGI.js → job-queue-BYHonCAH.js} +1 -1
- package/dist/{logging-dZN1Bvtu.js → logging-DNQqsQ57.js} +1 -1
- package/dist/{message-C_g2S8kv.js → message-CDTJISxL.js} +4 -3
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +3 -3
- package/dist/{oauth-callback-server-DvvOvr4q.js → oauth-callback-server-Bk4rbLOs.js} +2 -2
- package/dist/{profile-BP2N5uDY.js → profile-ieODOp4u.js} +3 -3
- package/dist/{prompt-DeVax2qO.js → prompt-CxatQVaj.js} +1 -1
- package/dist/{registry-BUje_knT.js → registry-CfdUEk4N.js} +1 -1
- package/dist/{resolve-DftZiYNU.js → resolve-BXShI336.js} +3 -3
- package/dist/{result-CRMRT9CE.js → result-R35jcahx.js} +8 -7
- package/dist/{runner-4mmL2Pt1.js → runner-IC4Drh3Y.js} +11 -11
- package/dist/{sandbox-egress-signals-1ysv0z5A.js → sandbox-egress-signals-C4RIfjb8.js} +1 -1
- package/dist/{schema-XuTZukI9.js → schema-QidbykYl.js} +2 -2
- package/dist/{service-account-Del2I_x3.js → service-account-DJSRo2cL.js} +3 -3
- package/dist/{service-account-B1sH3P7d.js → service-account-DifohWyX.js} +3 -3
- package/dist/{session-stop-ZuyOHxdK.js → session-stop-B9RRGC-P.js} +13 -13
- package/dist/{skills-lPeepA2b.js → skills-DVJmS_ZP.js} +2 -2
- package/dist/{spawn-DovpdlrW.js → spawn-DkVYGfSY.js} +2 -2
- package/dist/store-BvolNnx4.js +697 -0
- package/dist/{store-dZynGGFW.js → store-C_mHwAnR.js} +18 -9
- package/dist/{task-queue-CmMCtzHO.js → task-queue-BcEyPhtX.js} +3 -3
- package/dist/{task-runner-BRgJ5e0s.js → task-runner-CiQj5M_9.js} +10 -10
- package/dist/{tasks-Bh2qYaed.js → tasks-OgXmReUv.js} +42 -53
- package/dist/{thread-state-DA37FsAT.js → thread-state-XFvpWXE9.js} +5 -5
- package/dist/{turn-failure-response-BLcscQ-f.js → turn-failure-response-BjBAtnVt.js} +46 -20
- package/dist/{turn-lifecycle-D0e887FM.js → turn-lifecycle-nvKL2rul.js} +1 -1
- package/dist/{turn-session-routing-DdbSbJS6.js → turn-session-routing-DEMxHySb.js} +1 -1
- package/dist/{validation-DtcovXqq.js → validation-XOFldwvE.js} +1 -1
- package/dist/{version-JcDaJ75p.js → version-C9f5hdHD.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-oMTUVAcR.js → viewer-BuPwzOC9.js} +3 -3
- package/dist/{web-input-FQ5wgqYn.js → web-input-4t7TYLsY.js} +96 -35
- package/dist/{work-BiIKfayl.js → work-C_aF6JN5.js} +10 -9
- package/dist/{worker-BZ7l75NM.js → worker-DR633sA-.js} +8 -6
- package/package.json +5 -5
package/dist/api/schema.d.ts
CHANGED
|
@@ -750,6 +750,7 @@ export declare const conversationReportEventDataSchema: z.ZodDiscriminatedUnion<
|
|
|
750
750
|
slackUserId: z.ZodOptional<z.ZodString>;
|
|
751
751
|
slackUserName: z.ZodOptional<z.ZodString>;
|
|
752
752
|
}, z.core.$strict>>;
|
|
753
|
+
agentInvocationId: z.ZodOptional<z.ZodString>;
|
|
753
754
|
eventType: z.ZodOptional<z.ZodString>;
|
|
754
755
|
eventObjectType: z.ZodOptional<z.ZodEnum<{
|
|
755
756
|
automation: "automation";
|
|
@@ -1003,6 +1004,7 @@ export declare const conversationReportEventSchema: z.ZodObject<{
|
|
|
1003
1004
|
slackUserId: z.ZodOptional<z.ZodString>;
|
|
1004
1005
|
slackUserName: z.ZodOptional<z.ZodString>;
|
|
1005
1006
|
}, z.core.$strict>>;
|
|
1007
|
+
agentInvocationId: z.ZodOptional<z.ZodString>;
|
|
1006
1008
|
eventType: z.ZodOptional<z.ZodString>;
|
|
1007
1009
|
eventObjectType: z.ZodOptional<z.ZodEnum<{
|
|
1008
1010
|
automation: "automation";
|
|
@@ -1648,6 +1650,7 @@ export declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
1648
1650
|
slackUserId: z.ZodOptional<z.ZodString>;
|
|
1649
1651
|
slackUserName: z.ZodOptional<z.ZodString>;
|
|
1650
1652
|
}, z.core.$strict>>;
|
|
1653
|
+
agentInvocationId: z.ZodOptional<z.ZodString>;
|
|
1651
1654
|
eventType: z.ZodOptional<z.ZodString>;
|
|
1652
1655
|
eventObjectType: z.ZodOptional<z.ZodEnum<{
|
|
1653
1656
|
automation: "automation";
|
|
@@ -1962,6 +1965,7 @@ export declare const conversationEventPageSchema: z.ZodObject<{
|
|
|
1962
1965
|
slackUserId: z.ZodOptional<z.ZodString>;
|
|
1963
1966
|
slackUserName: z.ZodOptional<z.ZodString>;
|
|
1964
1967
|
}, z.core.$strict>>;
|
|
1968
|
+
agentInvocationId: z.ZodOptional<z.ZodString>;
|
|
1965
1969
|
eventType: z.ZodOptional<z.ZodString>;
|
|
1966
1970
|
eventObjectType: z.ZodOptional<z.ZodEnum<{
|
|
1967
1971
|
automation: "automation";
|
|
@@ -4946,7 +4950,7 @@ export declare const automationEventCatalogSchema: z.ZodArray<z.ZodObject<{
|
|
|
4946
4950
|
type: z.ZodString;
|
|
4947
4951
|
identifier: z.ZodOptional<z.ZodObject<{
|
|
4948
4952
|
format: z.ZodString;
|
|
4949
|
-
pattern: z.
|
|
4953
|
+
pattern: z.ZodString;
|
|
4950
4954
|
}, z.core.$strict>>;
|
|
4951
4955
|
supportedEvents: z.ZodArray<z.ZodString>;
|
|
4952
4956
|
suggestedEvents: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
package/dist/api/schema.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as conversationTurnFailureReasonSchema, i as conversationTurnFailureCodeSchema } from "../history-AY8rs-FR.js";
|
|
2
|
-
import { A as forkConversationResponseSchema, C as conversationReportEventSchema, D as createConversationBodySchema, L as resolveMessageCards, O as createConversationMessageBodySchema, P as messageCardText, R as MAX_INPUT_IMAGES, S as conversationReportEventDataSchema, T as conversationSummaryReportSchema, V as INPUT_IMAGE_TYPES, _ as conversationParamsSchema, a as cancelConversationPendingMessagesBodySchema, b as conversationPendingMessageSchema, d as conversationDetailReportSchema, f as conversationEventHistorySchema, g as conversationFeedSchema, h as conversationFeedQuerySchema, i as archiveConversationResponseSchema, j as conversationChildAgentTotalsSchema, k as forkConversationBodySchema, l as conversationAuxiliaryCostsSchema, m as conversationEventsQuerySchema, o as cancelConversationPendingMessagesResponseSchema, p as conversationEventPageSchema, r as archiveConversationBodySchema, s as conversationActivityPreviewSchema, t as acceptedConversationMessageSchema, u as conversationDetailQuerySchema, v as conversationPendingAuthorizationSchema, x as conversationPendingMessagesReportSchema, y as conversationPendingMessageDeliverySchema, z as MAX_INPUT_IMAGE_BYTES } from "../conversation-
|
|
3
|
-
import { C as eventAutomationSummarySchema, S as automationVersionSchema, _ as automationSummarySchema, a as automationExecutionSchema, b as automationVersionListSchema, d as automationParamsSchema, f as automationRunListSchema, g as automationSchedulePreviewSchema, h as automationScheduleIntentSchema, i as automationExecutionListSchema, l as automationListQuerySchema, m as automationRunWindowsSchema, n as automationEditSchema, o as automationExecutionStatusDaySchema, p as automationRunSchema, r as automationEventCatalogSchema, s as automationExecutionStatusSchema, t as automationEditErrorSchema, u as automationListSchema, v as automationUpdateSchema, w as scheduledAutomationSummarySchema, x as automationVersionParamsSchema, y as automationVersionActivateSchema } from "../automation-
|
|
2
|
+
import { A as forkConversationResponseSchema, C as conversationReportEventSchema, D as createConversationBodySchema, L as resolveMessageCards, O as createConversationMessageBodySchema, P as messageCardText, R as MAX_INPUT_IMAGES, S as conversationReportEventDataSchema, T as conversationSummaryReportSchema, V as INPUT_IMAGE_TYPES, _ as conversationParamsSchema, a as cancelConversationPendingMessagesBodySchema, b as conversationPendingMessageSchema, d as conversationDetailReportSchema, f as conversationEventHistorySchema, g as conversationFeedSchema, h as conversationFeedQuerySchema, i as archiveConversationResponseSchema, j as conversationChildAgentTotalsSchema, k as forkConversationBodySchema, l as conversationAuxiliaryCostsSchema, m as conversationEventsQuerySchema, o as cancelConversationPendingMessagesResponseSchema, p as conversationEventPageSchema, r as archiveConversationBodySchema, s as conversationActivityPreviewSchema, t as acceptedConversationMessageSchema, u as conversationDetailQuerySchema, v as conversationPendingAuthorizationSchema, x as conversationPendingMessagesReportSchema, y as conversationPendingMessageDeliverySchema, z as MAX_INPUT_IMAGE_BYTES } from "../conversation-B0baEwoA.js";
|
|
3
|
+
import { C as eventAutomationSummarySchema, S as automationVersionSchema, _ as automationSummarySchema, a as automationExecutionSchema, b as automationVersionListSchema, d as automationParamsSchema, f as automationRunListSchema, g as automationSchedulePreviewSchema, h as automationScheduleIntentSchema, i as automationExecutionListSchema, l as automationListQuerySchema, m as automationRunWindowsSchema, n as automationEditSchema, o as automationExecutionStatusDaySchema, p as automationRunSchema, r as automationEventCatalogSchema, s as automationExecutionStatusSchema, t as automationEditErrorSchema, u as automationListSchema, v as automationUpdateSchema, w as scheduledAutomationSummarySchema, x as automationVersionParamsSchema, y as automationVersionActivateSchema } from "../automation-CWX0qL8U.js";
|
|
4
4
|
import { C as skillReportsSchema, S as skillReportSchema, _ as pluginPackageContentItemReportSchema, b as pluginsSchema, g as pluginOperationalReportSchema, h as pluginOperationalReportFeedSchema, m as healthReportSchema, t as webMessageId, v as pluginPackageContentReportSchema, x as runtimeInfoReportSchema, y as pluginSchema } from "../web-message-id-CJSUiksE.js";
|
|
5
|
-
import { B as codeChangeSummarySchema, C as personParamsSchema, D as locationDirectoryReportSchema, E as locationDetailReportSchema, F as connectionSchema, G as codeRepositorySummarySchema, H as codePersonReportSchema, I as disconnectConnectionResponseSchema, J as stopConversationTurnResponseSchema, K as conversationChildAgentSchema, L as startConnectionResponseSchema, M as dailyConversationActivitySchema, N as connectionListSchema, O as locationParamsSchema, P as connectionParamsSchema, R as codeActivityDaySchema, S as actorProfileReportSchema, T as locationActivityDayReportSchema, U as codeRepositoryParamsSchema, V as codeOverviewReportSchema, W as codeRepositoryReportSchema, X as apiErrorSchema, Y as conversationStatsReportSchema, _ as personalTokenListSchema, a as workspaceBodySchema, b as revokePersonalTokenResponseSchema, c as workspaceRepoSchema, d as serviceAccountListSchema, f as serviceAccountParamsSchema, g as createdPersonalTokenSchema, h as createPersonalTokenBodySchema, i as deleteWorkspaceResponseSchema, l as workspaceSchema, m as startServiceAccountSignInResponseSchema, n as statsReportSchema, o as workspaceListSchema, p as serviceAccountSchema, q as conversationChildAgentsReportSchema, r as baselineSnapshotSchema, s as workspaceParamsSchema, t as statSchema, u as disconnectServiceAccountResponseSchema, v as personalTokenMetadataSchema, w as personalSpendReportSchema, x as actorDirectoryReportSchema, y as personalTokenParamsSchema, z as codeChangeSummaryReportSchema } from "../schema-
|
|
5
|
+
import { B as codeChangeSummarySchema, C as personParamsSchema, D as locationDirectoryReportSchema, E as locationDetailReportSchema, F as connectionSchema, G as codeRepositorySummarySchema, H as codePersonReportSchema, I as disconnectConnectionResponseSchema, J as stopConversationTurnResponseSchema, K as conversationChildAgentSchema, L as startConnectionResponseSchema, M as dailyConversationActivitySchema, N as connectionListSchema, O as locationParamsSchema, P as connectionParamsSchema, R as codeActivityDaySchema, S as actorProfileReportSchema, T as locationActivityDayReportSchema, U as codeRepositoryParamsSchema, V as codeOverviewReportSchema, W as codeRepositoryReportSchema, X as apiErrorSchema, Y as conversationStatsReportSchema, _ as personalTokenListSchema, a as workspaceBodySchema, b as revokePersonalTokenResponseSchema, c as workspaceRepoSchema, d as serviceAccountListSchema, f as serviceAccountParamsSchema, g as createdPersonalTokenSchema, h as createPersonalTokenBodySchema, i as deleteWorkspaceResponseSchema, l as workspaceSchema, m as startServiceAccountSignInResponseSchema, n as statsReportSchema, o as workspaceListSchema, p as serviceAccountSchema, q as conversationChildAgentsReportSchema, r as baselineSnapshotSchema, s as workspaceParamsSchema, t as statSchema, u as disconnectServiceAccountResponseSchema, v as personalTokenMetadataSchema, w as personalSpendReportSchema, x as actorDirectoryReportSchema, y as personalTokenParamsSchema, z as codeChangeSummaryReportSchema } from "../schema-QidbykYl.js";
|
|
6
6
|
export { INPUT_IMAGE_TYPES, MAX_INPUT_IMAGES, MAX_INPUT_IMAGE_BYTES, acceptedConversationMessageSchema, actorDirectoryReportSchema, actorProfileReportSchema, apiErrorSchema, archiveConversationBodySchema, archiveConversationResponseSchema, automationEditErrorSchema, automationEditSchema, automationEventCatalogSchema, automationExecutionListSchema, automationExecutionSchema, automationExecutionStatusDaySchema, automationExecutionStatusSchema, automationListQuerySchema, automationListSchema, automationParamsSchema, automationRunListSchema, automationRunSchema, automationRunWindowsSchema, automationScheduleIntentSchema, automationSchedulePreviewSchema, automationSummarySchema, automationUpdateSchema, automationVersionActivateSchema, automationVersionListSchema, automationVersionParamsSchema, automationVersionSchema, baselineSnapshotSchema, cancelConversationPendingMessagesBodySchema, cancelConversationPendingMessagesResponseSchema, codeActivityDaySchema, codeChangeSummaryReportSchema, codeChangeSummarySchema, codeOverviewReportSchema, codePersonReportSchema, codeRepositoryParamsSchema, codeRepositoryReportSchema, codeRepositorySummarySchema, connectionListSchema, connectionParamsSchema, connectionSchema, conversationActivityPreviewSchema, conversationAuxiliaryCostsSchema, conversationChildAgentSchema, conversationChildAgentTotalsSchema, conversationChildAgentsReportSchema, conversationDetailQuerySchema, conversationDetailReportSchema, conversationEventHistorySchema, conversationEventPageSchema, conversationEventsQuerySchema, conversationFeedQuerySchema, conversationFeedSchema, conversationParamsSchema, conversationPendingAuthorizationSchema, conversationPendingMessageDeliverySchema, conversationPendingMessageSchema, conversationPendingMessagesReportSchema, conversationReportEventDataSchema, conversationReportEventSchema, conversationStatsReportSchema, conversationSummaryReportSchema, conversationTurnFailureCodeSchema, conversationTurnFailureReasonSchema, createConversationBodySchema, createConversationMessageBodySchema, createPersonalTokenBodySchema, createdPersonalTokenSchema, dailyConversationActivitySchema, deleteWorkspaceResponseSchema, disconnectConnectionResponseSchema, disconnectServiceAccountResponseSchema, eventAutomationSummarySchema, forkConversationBodySchema, forkConversationResponseSchema, healthReportSchema, locationActivityDayReportSchema, locationDetailReportSchema, locationDirectoryReportSchema, locationParamsSchema, messageCardText, personParamsSchema, personalSpendReportSchema, personalTokenListSchema, personalTokenMetadataSchema, personalTokenParamsSchema, pluginOperationalReportFeedSchema, pluginOperationalReportSchema, pluginPackageContentItemReportSchema, pluginPackageContentReportSchema, pluginSchema, pluginsSchema, resolveMessageCards, revokePersonalTokenResponseSchema, runtimeInfoReportSchema, scheduledAutomationSummarySchema, serviceAccountListSchema, serviceAccountParamsSchema, serviceAccountSchema, skillReportSchema, skillReportsSchema, startConnectionResponseSchema, startServiceAccountSignInResponseSchema, statSchema, statsReportSchema, stopConversationTurnResponseSchema, webMessageId, workspaceBodySchema, workspaceListSchema, workspaceParamsSchema, workspaceRepoSchema, workspaceSchema };
|
package/dist/api.js
CHANGED
|
@@ -1,30 +1,31 @@
|
|
|
1
|
-
import { D as AutomationConflictError, E as sameDefinitionValue,
|
|
2
|
-
import { p as escapeXml } from "./client-
|
|
3
|
-
import { f as logException, m as logWarn, p as logInfo } from "./logging-
|
|
1
|
+
import { D as AutomationConflictError, E as sameDefinitionValue, I as loadTurnProjection, O as automationRevision, S as automationDefinition, T as readAutomationVersion, a as saveScheduledAutomation, bn as createUserTokenStore, k as requireAutomationRevision, rr as piMessageFromHistoryItem, v as saveEventAutomation, y as setEventAutomationStatus } from "./tasks-OgXmReUv.js";
|
|
2
|
+
import { p as escapeXml } from "./client-DpOwh_zX.js";
|
|
3
|
+
import { f as logException, m as logWarn, p as logInfo } from "./logging-DNQqsQ57.js";
|
|
4
4
|
import { d as parseSlackTeamId, g as parseSlackMessageTs, l as parseSlackChannelId } from "./actor-tlxzqaRe.js";
|
|
5
|
-
import { C as addAgentTurnUsage, D as hasAgentTurnUsage, E as agentTurnUsageSchema, O as resolveRootConversationId, S as parseSessionSource, c as getConversationEventStore, d as getDb, f as getSqlExecutor, h as loadConversationSlackTenantIds, i as resolveViewerUser, m as withConversationEventLock, o as updateViewerDisplayName, t as findUserByEmail, u as getConversationStore, v as locationFromRow } from "./viewer-
|
|
5
|
+
import { C as addAgentTurnUsage, D as hasAgentTurnUsage, E as agentTurnUsageSchema, O as resolveRootConversationId, S as parseSessionSource, c as getConversationEventStore, d as getDb, f as getSqlExecutor, h as loadConversationSlackTenantIds, i as resolveViewerUser, m as withConversationEventLock, o as updateViewerDisplayName, t as findUserByEmail, u as getConversationStore, v as locationFromRow } from "./viewer-BuPwzOC9.js";
|
|
6
6
|
import { c as juniorIdentities, d as juniorDestinations, l as juniorUsers, o as conversationReadColumns, s as juniorConversations } from "./agent-invocations-CxKldAeB.js";
|
|
7
|
-
import { f as juniorConversationBriefs, g as juniorApiTokens, h as juniorConversationEvents, m as juniorConversationMetrics, u as juniorConversationParticipants, v as juniorCodeChanges, y as juniorCodeRepositories } from "./executor-
|
|
7
|
+
import { f as juniorConversationBriefs, g as juniorApiTokens, h as juniorConversationEvents, m as juniorConversationMetrics, u as juniorConversationParticipants, v as juniorCodeChanges, y as juniorCodeRepositories } from "./executor-D3WIS4vl.js";
|
|
8
8
|
import { d as contextProvenance } from "./history-AY8rs-FR.js";
|
|
9
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
10
|
-
import { F as AutomationEditError, I as eventAutomationTriggerAvailable, P as editEventAutomation, R as resolveTaskOutcomes, S as readLiveAttachment, T as parseSlackThreadId, U as listChildAgents,
|
|
11
|
-
import { At as
|
|
9
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-R53MWcMi.js";
|
|
10
|
+
import { F as AutomationEditError, G as conversationSubtree, I as eventAutomationTriggerAvailable, K as conversationSubtreeColumns, P as editEventAutomation, R as resolveTaskOutcomes, S as readLiveAttachment, T as parseSlackThreadId, U as listChildAgents, j as editScheduledAutomation, m as readStats } from "./agent-runner-CvRxb09K.js";
|
|
11
|
+
import { At as conversationArchivedForUser, C as WorkspaceValidationError, Dt as readConversationAccessFromSql, Et as createPluginLogger, Ft as viewerConversationMembership, Jt as listConversationAnnotationsById, Lt as readLatestConversationBrief, M as workspaceRepoCheckoutPath, Mt as conversationIsMemberRoot, Nt as conversationNotArchivedForEmail, O as SANDBOX_RUNTIME, Ot as conversationArchiveTimes, Pt as conversationNotArchivedForUser, Qt as createPluginCache, Rt as readConversationEventPage, S as updateWorkspace, Zt as lookupSlackUser, _ as deleteWorkspace, b as listWorkspaces, ct as getSlackClient, g as createWorkspace, jt as conversationHasParticipantUser, kt as conversationArchivedForEmail, pt as withSlackRetries, qt as listConversationAnnotations, u as getPlugins, v as getWorkspace, x as listWorkspacesByRepository, zt as buildSentryConversationUrl } from "./agent-hooks-D_PbluRX.js";
|
|
12
12
|
import { t as getFirstRunAtMs } from "./cadence-R7Em4RjE.js";
|
|
13
|
-
import { A as forkConversationResponseSchema, B as readMessageAttachments, D as createConversationBodySchema, O as createConversationMessageBodySchema, V as INPUT_IMAGE_TYPES, _ as conversationParamsSchema, a as cancelConversationPendingMessagesBodySchema, c as conversationAttachmentParamsSchema, d as conversationDetailReportSchema, g as conversationFeedSchema, h as conversationFeedQuerySchema, i as archiveConversationResponseSchema, k as forkConversationBodySchema, m as conversationEventsQuerySchema, o as cancelConversationPendingMessagesResponseSchema, p as conversationEventPageSchema, r as archiveConversationBodySchema, t as acceptedConversationMessageSchema, u as conversationDetailQuerySchema, x as conversationPendingMessagesReportSchema } from "./conversation-
|
|
14
|
-
import { n as hash, t as create } from "./profile-
|
|
15
|
-
import {
|
|
16
|
-
import { d as
|
|
17
|
-
import {
|
|
18
|
-
import { a as
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
13
|
+
import { A as forkConversationResponseSchema, B as readMessageAttachments, D as createConversationBodySchema, O as createConversationMessageBodySchema, V as INPUT_IMAGE_TYPES, _ as conversationParamsSchema, a as cancelConversationPendingMessagesBodySchema, c as conversationAttachmentParamsSchema, d as conversationDetailReportSchema, g as conversationFeedSchema, h as conversationFeedQuerySchema, i as archiveConversationResponseSchema, k as forkConversationBodySchema, m as conversationEventsQuerySchema, o as cancelConversationPendingMessagesResponseSchema, p as conversationEventPageSchema, r as archiveConversationBodySchema, t as acceptedConversationMessageSchema, u as conversationDetailQuerySchema, x as conversationPendingMessagesReportSchema } from "./conversation-B0baEwoA.js";
|
|
14
|
+
import { n as hash, t as create } from "./profile-ieODOp4u.js";
|
|
15
|
+
import { h as getChildAgentLabel } from "./store-BvolNnx4.js";
|
|
16
|
+
import { d as getEventCatalog, x as automationEventCatalog } from "./session-stop-B9RRGC-P.js";
|
|
17
|
+
import { d as getSandboxResources, t as getCachedSnapshot } from "./resolve-BXShI336.js";
|
|
18
|
+
import { a as getVercelConversationWorkQueue } from "./job-queue-BYHonCAH.js";
|
|
19
|
+
import { a as cancelHumanFacingPendingMessages, h as getConversation } from "./store-C_mHwAnR.js";
|
|
20
|
+
import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-DJSRo2cL.js";
|
|
21
|
+
import { M as compileScheduleIntent, P as weekdaySchema, _ as automationSummarySchema, b as automationVersionListSchema, c as automationLifecycleSchema, d as automationParamsSchema, f as automationRunListSchema, g as automationSchedulePreviewSchema, h as automationScheduleIntentSchema, i as automationExecutionListSchema, j as ScheduleIntentError, l as automationListQuerySchema, n as automationEditSchema, r as automationEventCatalogSchema, t as automationEditErrorSchema, u as automationListSchema, v as automationUpdateSchema, x as automationVersionParamsSchema, y as automationVersionActivateSchema } from "./automation-CWX0qL8U.js";
|
|
21
22
|
import { C as skillReportsSchema, a as fillUtcHours, b as pluginsSchema, c as sumUtcHoursIntoSixHours, d as trailingUtcSixHourWindow, f as utcDayKey, h as pluginOperationalReportFeedSchema, i as fillUtcDays, l as trailingUtcDayWindow, m as healthReportSchema, n as DAY_MS$1, o as fillUtcSixHours, p as utcHourKey, r as HOUR_MS$1, s as startOfUtcHour, u as trailingUtcHourWindow, x as runtimeInfoReportSchema } from "./web-message-id-CJSUiksE.js";
|
|
22
|
-
import { B as readHealthReport, I as createVercelAttachmentStorage, _ as readViewerAutomationRuns, a as recordWebConversationActivity, b as readViewerAutomations, d as resolveSlackConversationContextFromThreadId, g as readViewerAutomationExecutions, h as readConversationSourceTask, i as createConversationId, k as stopConversationTurn, l as getProductionSlackAdapter, m as deleteViewerTask, o as webActorFromEmail, p as ViewerTaskNotFoundError, r as createAndEnqueueConversation, t as appendAndEnqueueWebMessage, u as formatSlackConversationRedactedLabel, v as readViewerAutomationSummary, w as clearSlackPendingReactions, x as resolveViewerTaskCandidate, y as readViewerAutomationVersions } from "./web-input-
|
|
23
|
-
import { F as conversationAggregateColumns, I as conversationRangeColumns, M as readAutomationTitlesByConversationId, P as conversationActiveDaysColumn } from "./task-runner-
|
|
24
|
-
import { d as legacyWebMailboxMetadataSchema } from "./result-
|
|
25
|
-
import { a as startConnection, l as getWebAuthorization, n as isConnectableProvider, r as listConnections, t as disconnectConnection, u as htmlCallbackResponse } from "./connections-
|
|
26
|
-
import { t as decodeInputImages } from "./images-
|
|
27
|
-
import { A as activityHours$1, C as personParamsSchema, D as locationDirectoryReportSchema, E as locationDetailReportSchema, H as codePersonReportSchema, I as disconnectConnectionResponseSchema, J as stopConversationTurnResponseSchema, L as startConnectionResponseSchema, N as connectionListSchema, O as locationParamsSchema, P as connectionParamsSchema, S as actorProfileReportSchema, U as codeRepositoryParamsSchema, V as codeOverviewReportSchema, W as codeRepositoryReportSchema, X as apiErrorSchema, Y as conversationStatsReportSchema, _ as personalTokenListSchema, a as workspaceBodySchema, b as revokePersonalTokenResponseSchema, d as serviceAccountListSchema, f as serviceAccountParamsSchema, g as createdPersonalTokenSchema, h as createPersonalTokenBodySchema, i as deleteWorkspaceResponseSchema, j as activitySixHours$1, k as activityDays$1, l as workspaceSchema, m as startServiceAccountSignInResponseSchema, n as statsReportSchema, o as workspaceListSchema, q as conversationChildAgentsReportSchema, s as workspaceParamsSchema, u as disconnectServiceAccountResponseSchema, w as personalSpendReportSchema, x as actorDirectoryReportSchema, y as personalTokenParamsSchema } from "./schema-
|
|
23
|
+
import { B as readHealthReport, I as createVercelAttachmentStorage, _ as readViewerAutomationRuns, a as recordWebConversationActivity, b as readViewerAutomations, d as resolveSlackConversationContextFromThreadId, g as readViewerAutomationExecutions, h as readConversationSourceTask, i as createConversationId, k as stopConversationTurn, l as getProductionSlackAdapter, m as deleteViewerTask, o as webActorFromEmail, p as ViewerTaskNotFoundError, r as createAndEnqueueConversation, t as appendAndEnqueueWebMessage, u as formatSlackConversationRedactedLabel, v as readViewerAutomationSummary, w as clearSlackPendingReactions, x as resolveViewerTaskCandidate, y as readViewerAutomationVersions } from "./web-input-4t7TYLsY.js";
|
|
24
|
+
import { F as conversationAggregateColumns, I as conversationRangeColumns, M as readAutomationTitlesByConversationId, P as conversationActiveDaysColumn } from "./task-runner-CiQj5M_9.js";
|
|
25
|
+
import { d as legacyWebMailboxMetadataSchema } from "./result-R35jcahx.js";
|
|
26
|
+
import { a as startConnection, l as getWebAuthorization, n as isConnectableProvider, r as listConnections, t as disconnectConnection, u as htmlCallbackResponse } from "./connections-BnTM1nRf.js";
|
|
27
|
+
import { t as decodeInputImages } from "./images-5VNK_yYC.js";
|
|
28
|
+
import { A as activityHours$1, C as personParamsSchema, D as locationDirectoryReportSchema, E as locationDetailReportSchema, H as codePersonReportSchema, I as disconnectConnectionResponseSchema, J as stopConversationTurnResponseSchema, L as startConnectionResponseSchema, N as connectionListSchema, O as locationParamsSchema, P as connectionParamsSchema, S as actorProfileReportSchema, U as codeRepositoryParamsSchema, V as codeOverviewReportSchema, W as codeRepositoryReportSchema, X as apiErrorSchema, Y as conversationStatsReportSchema, _ as personalTokenListSchema, a as workspaceBodySchema, b as revokePersonalTokenResponseSchema, d as serviceAccountListSchema, f as serviceAccountParamsSchema, g as createdPersonalTokenSchema, h as createPersonalTokenBodySchema, i as deleteWorkspaceResponseSchema, j as activitySixHours$1, k as activityDays$1, l as workspaceSchema, m as startServiceAccountSignInResponseSchema, n as statsReportSchema, o as workspaceListSchema, q as conversationChildAgentsReportSchema, s as workspaceParamsSchema, u as disconnectServiceAccountResponseSchema, w as personalSpendReportSchema, x as actorDirectoryReportSchema, y as personalTokenParamsSchema } from "./schema-QidbykYl.js";
|
|
28
29
|
import { Hono } from "hono";
|
|
29
30
|
import path from "node:path";
|
|
30
31
|
import { z } from "zod";
|
|
@@ -3710,7 +3711,7 @@ async function readPeoplePluginReports(args) {
|
|
|
3710
3711
|
reports: [],
|
|
3711
3712
|
source: "plugins"
|
|
3712
3713
|
});
|
|
3713
|
-
const { getPluginProfileReports } = await import("./agent-hooks-
|
|
3714
|
+
const { getPluginProfileReports } = await import("./agent-hooks-D_PbluRX.js").then((n) => n.t);
|
|
3714
3715
|
return pluginOperationalReportFeedSchema.parse({
|
|
3715
3716
|
generatedAt: new Date(nowMs).toISOString(),
|
|
3716
3717
|
reports: await getPluginProfileReports({
|
|
@@ -4742,7 +4743,7 @@ function readDescriptionText(home) {
|
|
|
4742
4743
|
}
|
|
4743
4744
|
/** Read discovered skill names for authenticated runtime diagnostics. */
|
|
4744
4745
|
async function readSkillReports() {
|
|
4745
|
-
const { discoverSkills } = await import("./skills-
|
|
4746
|
+
const { discoverSkills } = await import("./skills-DVJmS_ZP.js").then((n) => n.o);
|
|
4746
4747
|
const skills = await discoverSkills();
|
|
4747
4748
|
return skillReportsSchema.parse(skills.map((skill) => ({
|
|
4748
4749
|
name: skill.name,
|
|
@@ -4751,7 +4752,7 @@ async function readSkillReports() {
|
|
|
4751
4752
|
}
|
|
4752
4753
|
/** Read safe configured plugin metadata for authenticated runtime diagnostics. */
|
|
4753
4754
|
async function readPlugins() {
|
|
4754
|
-
const { pluginCatalogRuntime } = await import("./catalog-runtime-
|
|
4755
|
+
const { pluginCatalogRuntime } = await import("./catalog-runtime-R53MWcMi.js").then((n) => n.t);
|
|
4755
4756
|
return pluginsSchema.parse(pluginCatalogRuntime.getProviders().map((plugin) => ({
|
|
4756
4757
|
configKeys: plugin.manifest.configKeys ?? [],
|
|
4757
4758
|
description: plugin.manifest.description,
|
|
@@ -4763,7 +4764,7 @@ async function readPlugins() {
|
|
|
4763
4764
|
async function readRuntimeInfoReport() {
|
|
4764
4765
|
const [{ homeDir }, { pluginCatalogRuntime }, plugins, skills] = await Promise.all([
|
|
4765
4766
|
import("./package-discovery-DJBompdd.js").then((n) => n.r),
|
|
4766
|
-
import("./catalog-runtime-
|
|
4767
|
+
import("./catalog-runtime-R53MWcMi.js").then((n) => n.t),
|
|
4767
4768
|
readPlugins(),
|
|
4768
4769
|
readSkillReports()
|
|
4769
4770
|
]);
|
|
@@ -4780,7 +4781,7 @@ async function readRuntimeInfoReport() {
|
|
|
4780
4781
|
/** Read sanitized operational summaries contributed by plugins. */
|
|
4781
4782
|
async function readPluginOperationalReportFeed() {
|
|
4782
4783
|
const nowMs = Date.now();
|
|
4783
|
-
const { getPluginOperationalReports } = await import("./agent-hooks-
|
|
4784
|
+
const { getPluginOperationalReports } = await import("./agent-hooks-D_PbluRX.js").then((n) => n.t);
|
|
4784
4785
|
return pluginOperationalReportFeedSchema.parse({
|
|
4785
4786
|
source: "plugins",
|
|
4786
4787
|
generatedAt: new Date(nowMs).toISOString(),
|
|
@@ -12,6 +12,7 @@ import "@earendil-works/pi-agent-core";
|
|
|
12
12
|
import { Sandbox } from "@vercel/sandbox";
|
|
13
13
|
import "@earendil-works/pi-ai";
|
|
14
14
|
import "@sinclair/typebox";
|
|
15
|
+
import "@vercel/queue";
|
|
15
16
|
import "@modelcontextprotocol/sdk/client/auth.js";
|
|
16
17
|
import { Client } from "@modelcontextprotocol/sdk/client";
|
|
17
18
|
import { Message, StateAdapter } from "chat";
|
|
@@ -134,6 +135,10 @@ declare const inboundMessageSchema: z.ZodObject<{
|
|
|
134
135
|
slack: "slack";
|
|
135
136
|
web: "web";
|
|
136
137
|
}>;
|
|
138
|
+
traceContext: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
139
|
+
baggage: z.ZodOptional<z.ZodString>;
|
|
140
|
+
sentryTrace: z.ZodString;
|
|
141
|
+
}, z.core.$strip>>>;
|
|
137
142
|
}, z.core.$strict>;
|
|
138
143
|
type InboundMessage = z.output<typeof inboundMessageSchema>;
|
|
139
144
|
interface ConversationWorkerContext {
|
package/dist/app.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as ModelProfileInput, n as createApp, r as JuniorDashboardOptions, t as JuniorAppOptions } from "./app-
|
|
1
|
+
import { i as ModelProfileInput, n as createApp, r as JuniorDashboardOptions, t as JuniorAppOptions } from "./app-Buc5gIWz.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, JuniorAppOptions, type JuniorDashboardOptions, type JuniorPluginInput, type JuniorPluginSet, type JuniorPluginSetOptions, type ModelProfileInput, createApp, defineJuniorPlugins };
|
package/dist/app.js
CHANGED
|
@@ -1,37 +1,38 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { C as withContext, M as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, R as normalizeIdentityEmail, T as withSpan, b as setSpanStatus, f as logException, k as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, m as logWarn, p as logInfo, r as createRequestContext, v as setSentryUser, w as withLogContext, y as setSpanAttributes } from "./logging-
|
|
1
|
+
import { C as automationVersionOf, Cn as resolveSandboxEgressProviderForHost, Dn as clearSandboxEgressSignals, En as SANDBOX_EGRESS_PROXY_PATH, Hn as slackMention, In as resolveBaseUrl, Ln as startOAuthFlow, On as consumeSandboxEgressAuthRequiredSignal, Pn as formatProviderLabel, Q as projectConversationMessages, Tn as shouldPropagateSandboxEgressTrace, Xn as slackEntitySchema, Y as appendConversationMessages, Zn as slackExternalRefIdSchema, _n as isExperimentalFeatureEnabled, ar as setConfigDefaults, b as admitEventAutomationRun, bn as createUserTokenStore, c as withScheduledAutomationLock, fn as getThreadStopDecision, gn as getExperimentalFeatures, i as readScheduledAutomation, ir as getConfigDefaults, jn as parseSandboxEgressCredentialToken, kn as consumeSandboxEgressPermissionDeniedSignal, l as blockEventAutomation, ln as SubscribedReplyReason, n as listScheduledAutomationsForTeam, o as saveScheduledAutomationInLock, p as findMatchingEventAutomations, s as scheduledRunId, tt as settleConversationTitleWork, u as collectEventAutomationMatchKeys, vn as setExperimentalFeatures, wn as normalizeSandboxEgressTracePropagationDomains, x as eventAutomationRunLimitReason, yn as executeCredentialedEgressRequest } from "./tasks-OgXmReUv.js";
|
|
2
|
+
import { C as withContext, M as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, R as normalizeIdentityEmail, T as withSpan, b as setSpanStatus, f as logException, k as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, m as logWarn, p as logInfo, r as createRequestContext, v as setSentryUser, w as withLogContext, y as setSpanAttributes } from "./logging-DNQqsQ57.js";
|
|
3
3
|
import { n as captureMessage, r as continueTrace } from "./sentry-BBUlHih9.js";
|
|
4
|
-
import { t as JUNIOR_VERSION } from "./version-
|
|
5
|
-
import { _ as snapshotRuntimeConfig, d as restoreRuntimeConfig, f as setBotModelConfig, g as setSlackReactionConfig, h as setRuntimeLimits, i as getChatConfig, m as setProfiles, n as botConfig, o as getSlackBotToken, p as setCrossActorMidRunMode, u as resetRuntimeConfig } from "./config-
|
|
4
|
+
import { t as JUNIOR_VERSION } from "./version-C9f5hdHD.js";
|
|
5
|
+
import { _ as snapshotRuntimeConfig, d as restoreRuntimeConfig, f as setBotModelConfig, g as setSlackReactionConfig, h as setRuntimeLimits, i as getChatConfig, m as setProfiles, n as botConfig, o as getSlackBotToken, p as setCrossActorMidRunMode, u as resetRuntimeConfig } from "./config-BxPrFVJP.js";
|
|
6
6
|
import { _ as slackMessageTsSchema, d as parseSlackTeamId, f as parseSlackUserId, h as slackUserIdSchema, m as slackTeamIdSchema, o as parseActorUserId, p as slackChannelIdSchema } from "./actor-tlxzqaRe.js";
|
|
7
|
-
import { N as recordGoogleSignIn, _ as withConversationMutationLock, c as getConversationEventStore, d as getDb, f as getSqlExecutor, m as withConversationEventLock, r as readActorIdentity, u as getConversationStore } from "./viewer-
|
|
7
|
+
import { N as recordGoogleSignIn, _ as withConversationMutationLock, c as getConversationEventStore, d as getDb, f as getSqlExecutor, m as withConversationEventLock, r as readActorIdentity, u as getConversationStore } from "./viewer-BuPwzOC9.js";
|
|
8
8
|
import { a as juniorAgentInvocations, d as juniorDestinations, i as juniorAgentBindings, s as juniorConversations } from "./agent-invocations-CxKldAeB.js";
|
|
9
|
-
import { a as juniorAutomationRuns, f as juniorConversationBriefs, h as juniorConversationEvents, s as juniorAutomations } from "./executor-
|
|
10
|
-
import { m as credentialLogContext } from "./registry-
|
|
11
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
12
|
-
import { B as stopConversationSession, C as requestAttachmentDeletion, L as effectiveTaskOutcomes, M as logScheduledAutomationRunSkipped, N as scheduledAutomationRunAttributes,
|
|
13
|
-
import { $ as bindSlackDirectCredentialSubject,
|
|
14
|
-
import { r as getStateAdapter, s as withLock$1 } from "./adapter-
|
|
9
|
+
import { a as juniorAutomationRuns, f as juniorConversationBriefs, h as juniorConversationEvents, s as juniorAutomations } from "./executor-D3WIS4vl.js";
|
|
10
|
+
import { m as credentialLogContext } from "./registry-CfdUEk4N.js";
|
|
11
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-R53MWcMi.js";
|
|
12
|
+
import { B as stopConversationSession, C as requestAttachmentDeletion, J as ingestEvent, L as effectiveTaskOutcomes, M as logScheduledAutomationRunSkipped, N as scheduledAutomationRunAttributes, T as parseSlackThreadId, V as recordSubagentEnded, _ as unpublishedArtifactHeaders, g as readPublicArtifact, h as publicArtifactHeaders, n as executeAgentRun, q as processWorkspaceSnapshotJob, t as createAgentRunner, v as lookupSlackUserProfile, x as collectAttachmentGarbage } from "./agent-runner-CvRxb09K.js";
|
|
13
|
+
import { $ as bindSlackDirectCredentialSubject, $t as createCache, Ct as createPluginState, Dt as readConversationAccessFromSql, Et as createPluginLogger, Q as bindScheduledAutomationCredentialSubject, Qt as createPluginCache, U as collectEventMatchKeys, Wt as resolveRootVisibility, X as takeDueTimerWatches, Z as bindEventAutomationCredentialSubject, _t as getDashboardConversationLink, a as getPluginRoutes, bt as setDashboardConversationLinkOptions, ct as getSlackClient, d as setPlugins, et as verifyEventAutomationCredentialSubject, f as validatePlugins, h as setBriefsConfig, ht as runWithWorkspaceTeamId, i as getPluginApiRoutes, mt as getWorkspaceTeamId, nt as verifySlackDirectCredentialSubject, q as findMatchingWatches, qt as listConversationAnnotations, tt as verifyScheduledAutomationCredentialSubject, u as getPlugins, ut as isDmChannel, yt as getDashboardTaskLink } from "./agent-hooks-D_PbluRX.js";
|
|
14
|
+
import { r as getStateAdapter, s as withLock$1 } from "./adapter-BIbMSKlG.js";
|
|
15
15
|
import { n as getNextRunAtMs } from "./cadence-R7Em4RjE.js";
|
|
16
|
-
import { M as annotationCard } from "./conversation-
|
|
17
|
-
import {
|
|
18
|
-
import { f as
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
16
|
+
import { M as annotationCard } from "./conversation-B0baEwoA.js";
|
|
17
|
+
import { b as listPendingAgentInvocationMailboxAppends, x as listPendingAgentInvocationResults } from "./store-BvolNnx4.js";
|
|
18
|
+
import { M as renderTaskInput, S as eventGuidance, d as getEventCatalog, f as SLACK_EVENT_NAMESPACE, g as slackChannelMessageRunsAutomation, h as slackChannelMessageReplyThreadTs, m as slackChannelMessageEvent } from "./session-stop-B9RRGC-P.js";
|
|
19
|
+
import { f as setSandboxResourceConfig, u as getSandboxResourceConfig } from "./resolve-BXShI336.js";
|
|
20
|
+
import { a as getVercelConversationWorkQueue, g as isConversationQueueMessageRejectedError, h as conversationQueueMessageSchema, i as verifyWorkspaceSnapshotJobMessage, o as resolveConversationWorkQueueTopic, s as verifyConversationQueueMessage, t as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC } from "./job-queue-BYHonCAH.js";
|
|
21
|
+
import { A as hasRunnableConversationWork$1, M as isInvalidConversationRecordError, O as CONVERSATION_WORK_STALE_ENQUEUE_MS, S as removeActiveConversation, _ as hasRunnableConversationWork, c as clearExpiredConversationLease, g as getConversationWorkState, h as getConversation, m as ensureConversationWake, r as appendAndEnqueueInboundMessage, v as listActiveConversationIds } from "./store-C_mHwAnR.js";
|
|
22
|
+
import { D as scheduledRunSchema } from "./automation-CWX0qL8U.js";
|
|
23
|
+
import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "./validation-XOFldwvE.js";
|
|
23
24
|
import { a as pluginRuntimeRegistrationsFromPluginSet, n as pluginCatalogConfigFromEnv, r as pluginCatalogConfigFromPluginSet, t as defineJuniorPlugins } from "./plugins-DOm9Y6qI.js";
|
|
24
|
-
import { A as THREAD_OPTOUT_ACK, C as buildSlackInboundMessage, D as normalizeIncomingSlackThreadId, E as stopSlackThread, F as renderSlackObjectCard, I as createVercelAttachmentStorage, M as parseContent, N as runWithSlackInstallation, O as withNormalizedThreadId, P as verifySlackSignature, R as enqueueAgentDispatch, S as recordSkippedConversationMessage, T as isSlackMessageStopped, a as recordWebConversationActivity, c as createProductionSlackWebhookServices, f as createSlackWebApiStatusSender, j as startProcessingReaction, k as stopConversationTurn, l as getProductionSlackAdapter, n as conversationTurnIdForMessage, o as webActorFromEmail, s as createProductionConversationWorkOptions, t as appendAndEnqueueWebMessage, v as readViewerAutomationSummary, w as clearSlackPendingReactions, z as GET$3 } from "./web-input-
|
|
25
|
-
import { C as existingConversationId, N as recordAutomationExecution, c as getDispatchConversationId, d as getDispatchRecord, h as listPendingDispatchMailboxAppends, i as buildDispatchId, m as isTerminalDispatchStatus, o as confirmDispatchMailboxAppend, p as getPluginDispatchProjection, s as createOrGetDispatch, t as processPluginTask, x as notifyAutomationBlocked, y as markDispatchFailed } from "./task-runner-
|
|
26
|
-
import { o as getAuthPausedConversationTurnId, t as enqueueAgentInvocationResult } from "./result-
|
|
27
|
-
import { r as enqueueAgentInvocation } from "./work-
|
|
28
|
-
import { s as coerceThreadConversationState } from "./thread-state-
|
|
29
|
-
import { o as unlinkProvider } from "./connections-
|
|
30
|
-
import { a as GET$4, i as publishAppHomeView, r as GET$5, t as receiveLocalOAuthCredential } from "./credential-sync-
|
|
31
|
-
import { a as registerVercelPluginTaskDevConsumer, n as createVercelPluginTaskCallback, s as queueCallback } from "./task-queue-
|
|
32
|
-
import { t as processConversationWork } from "./worker-
|
|
33
|
-
import { t as bindMessageAgent } from "./message-
|
|
34
|
-
import { t as bindSpawnAgent } from "./spawn-
|
|
25
|
+
import { A as THREAD_OPTOUT_ACK, C as buildSlackInboundMessage, D as normalizeIncomingSlackThreadId, E as stopSlackThread, F as renderSlackObjectCard, I as createVercelAttachmentStorage, M as parseContent, N as runWithSlackInstallation, O as withNormalizedThreadId, P as verifySlackSignature, R as enqueueAgentDispatch, S as recordSkippedConversationMessage, T as isSlackMessageStopped, a as recordWebConversationActivity, c as createProductionSlackWebhookServices, f as createSlackWebApiStatusSender, j as startProcessingReaction, k as stopConversationTurn, l as getProductionSlackAdapter, n as conversationTurnIdForMessage, o as webActorFromEmail, s as createProductionConversationWorkOptions, t as appendAndEnqueueWebMessage, v as readViewerAutomationSummary, w as clearSlackPendingReactions, z as GET$3 } from "./web-input-4t7TYLsY.js";
|
|
26
|
+
import { C as existingConversationId, N as recordAutomationExecution, c as getDispatchConversationId, d as getDispatchRecord, h as listPendingDispatchMailboxAppends, i as buildDispatchId, m as isTerminalDispatchStatus, o as confirmDispatchMailboxAppend, p as getPluginDispatchProjection, s as createOrGetDispatch, t as processPluginTask, x as notifyAutomationBlocked, y as markDispatchFailed } from "./task-runner-CiQj5M_9.js";
|
|
27
|
+
import { o as getAuthPausedConversationTurnId, t as enqueueAgentInvocationResult } from "./result-R35jcahx.js";
|
|
28
|
+
import { r as enqueueAgentInvocation } from "./work-C_aF6JN5.js";
|
|
29
|
+
import { s as coerceThreadConversationState } from "./thread-state-XFvpWXE9.js";
|
|
30
|
+
import { o as unlinkProvider } from "./connections-BnTM1nRf.js";
|
|
31
|
+
import { a as GET$4, i as publishAppHomeView, r as GET$5, t as receiveLocalOAuthCredential } from "./credential-sync-DeDkof_D.js";
|
|
32
|
+
import { a as registerVercelPluginTaskDevConsumer, n as createVercelPluginTaskCallback, s as queueCallback } from "./task-queue-BcEyPhtX.js";
|
|
33
|
+
import { t as processConversationWork } from "./worker-DR633sA-.js";
|
|
34
|
+
import { t as bindMessageAgent } from "./message-CDTJISxL.js";
|
|
35
|
+
import { t as bindSpawnAgent } from "./spawn-DkVYGfSY.js";
|
|
35
36
|
import { createRequire } from "node:module";
|
|
36
37
|
import { Hono } from "hono";
|
|
37
38
|
import { z } from "zod";
|
|
@@ -3072,19 +3073,39 @@ function parseConversationQueueMessage(message) {
|
|
|
3072
3073
|
function resolveConversationWorkVisibilityTimeoutSeconds(functionMaxDurationSeconds = getChatConfig().functionMaxDurationSeconds) {
|
|
3073
3074
|
return functionMaxDurationSeconds + 30;
|
|
3074
3075
|
}
|
|
3075
|
-
/**
|
|
3076
|
-
|
|
3076
|
+
/** Queue lag and redelivery attributes for the worker span. */
|
|
3077
|
+
function queueMetadataAttributes(metadata, nowMs) {
|
|
3078
|
+
if (!metadata) return {};
|
|
3079
|
+
return {
|
|
3080
|
+
"app.queue.delivery_count": metadata.deliveryCount,
|
|
3081
|
+
"app.queue.lag_ms": nowMs - metadata.createdAt.getTime()
|
|
3082
|
+
};
|
|
3083
|
+
}
|
|
3084
|
+
/**
|
|
3085
|
+
* Process one Vercel Queue payload with the generic conversation worker.
|
|
3086
|
+
* Pass the queue metadata to record queue lag and redelivery on the span.
|
|
3087
|
+
*/
|
|
3088
|
+
async function processConversationQueueMessage(message, options, metadata) {
|
|
3077
3089
|
const parsed = parseConversationQueueMessage(message);
|
|
3078
3090
|
try {
|
|
3079
|
-
return await
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3091
|
+
return await withSpan("conversation.work.process", "conversation.work.process", { conversationId: parsed.conversationId }, async (setSpanAttributes) => {
|
|
3092
|
+
try {
|
|
3093
|
+
const result = await processConversationWork(parsed, {
|
|
3094
|
+
checkInIntervalMs: options.checkInIntervalMs,
|
|
3095
|
+
conversationStore: options.conversationStore,
|
|
3096
|
+
nowMs: options.nowMs,
|
|
3097
|
+
queue: options.queue ?? getVercelConversationWorkQueue(),
|
|
3098
|
+
run: options.run,
|
|
3099
|
+
softYieldAfterMs: options.softYieldAfterMs,
|
|
3100
|
+
state: options.state
|
|
3101
|
+
});
|
|
3102
|
+
setSpanAttributes({ "app.worker.outcome": result.status });
|
|
3103
|
+
return result;
|
|
3104
|
+
} catch (error) {
|
|
3105
|
+
if (isConversationQueueMessageRejectedError(error)) setSpanAttributes({ "app.worker.outcome": error.reason });
|
|
3106
|
+
throw error;
|
|
3107
|
+
}
|
|
3108
|
+
}, queueMetadataAttributes(metadata, options.nowMs?.() ?? Date.now()));
|
|
3088
3109
|
} finally {
|
|
3089
3110
|
options.waitUntil?.(settleConversationTitleWork(parsed.conversationId));
|
|
3090
3111
|
}
|
|
@@ -3134,8 +3155,8 @@ function conversationWorkCallback(options) {
|
|
|
3134
3155
|
});
|
|
3135
3156
|
return true;
|
|
3136
3157
|
},
|
|
3137
|
-
run: async (message) => {
|
|
3138
|
-
await processConversationQueueMessage(message, options);
|
|
3158
|
+
run: async (message, metadata) => {
|
|
3159
|
+
await processConversationQueueMessage(message, options, metadata);
|
|
3139
3160
|
},
|
|
3140
3161
|
topic: resolveConversationWorkQueueTopic(options),
|
|
3141
3162
|
verify: verifyConversationQueueMessage,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as resolveLocalScheduleAtMs, i as isValidTimeZone, r as getZonedDateTimeParts, t as getFirstRunAtMs } from "./cadence-R7Em4RjE.js";
|
|
2
|
-
import { n as actorIdentitySchema } from "./conversation-
|
|
2
|
+
import { n as actorIdentitySchema } from "./conversation-B0baEwoA.js";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { actorUserIdSchema, destinationVisibilitySchema, eventMatchSchema, eventTypeSchema, pluginEventTypeSchema, slackDestinationSchema, taskOutcomeSchema } from "@sentry/junior-plugin-api";
|
|
5
5
|
// src/chat/task-outcomes-schema.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i as completeObject } from "./client-
|
|
1
|
+
import { i as completeObject } from "./client-DpOwh_zX.js";
|
|
2
2
|
import { r as defaultModelId } from "./model-profile-Bg8EoCKD.js";
|
|
3
|
-
import { J as parseBriefInput, W as briefCodeChangeSchema, d as conversationDetailReportSchema, p as conversationEventPageSchema } from "./conversation-
|
|
4
|
-
import { n as briefEntriesFromReportEvents, s as generateBrief, t as BRIEF_PROMPT } from "./prompt-
|
|
3
|
+
import { J as parseBriefInput, W as briefCodeChangeSchema, d as conversationDetailReportSchema, p as conversationEventPageSchema } from "./conversation-B0baEwoA.js";
|
|
4
|
+
import { n as briefEntriesFromReportEvents, s as generateBrief, t as BRIEF_PROMPT } from "./prompt-CxatQVaj.js";
|
|
5
5
|
import { CLI_USAGE } from "./cli/run.js";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import { z } from "zod";
|
|
@@ -267,7 +267,7 @@ async function parseRunOptions(argv) {
|
|
|
267
267
|
* `DATABASE_URL` at import, and `briefs pull` must work with only a token.
|
|
268
268
|
*/
|
|
269
269
|
async function configuredDefaultModelId() {
|
|
270
|
-
const { botConfig } = await import("./config-
|
|
270
|
+
const { botConfig } = await import("./config-BxPrFVJP.js").then((n) => n.r);
|
|
271
271
|
return defaultModelId(botConfig);
|
|
272
272
|
}
|
|
273
273
|
function apiUrl(baseUrl, pathname) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-nwUcYXjP.js";
|
|
2
|
-
import { t as createPluginCatalogRuntime } from "./registry-
|
|
2
|
+
import { t as createPluginCatalogRuntime } from "./registry-CfdUEk4N.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-CvRxb09K.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-DOm9Y6qI.js").then((n) => n.o),
|
|
102
|
-
import("../agent-hooks-
|
|
103
|
-
import("../catalog-runtime-
|
|
104
|
-
import("../validation-
|
|
105
|
-
import("../viewer-
|
|
102
|
+
import("../agent-hooks-D_PbluRX.js").then((n) => n.t),
|
|
103
|
+
import("../catalog-runtime-R53MWcMi.js").then((n) => n.t),
|
|
104
|
+
import("../validation-XOFldwvE.js").then((n) => n.r),
|
|
105
|
+
import("../viewer-BuPwzOC9.js").then((n) => n.s)
|
|
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("../agent-hooks-
|
|
155
|
+
const { setBriefsConfig } = await import("../agent-hooks-D_PbluRX.js").then((n) => n.m);
|
|
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-IC4Drh3Y.js");
|
|
158
|
+
const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-Bk4rbLOs.js");
|
|
159
159
|
const { createLocalOAuthState } = await import("../oauth-relay-CTygMkNx.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 { createAgentInvocationWorker, routeAgentInvocationWork } = await import("../work-
|
|
164
|
-
const { startAgentInvocationsForChildInput } = await import("../result-
|
|
165
|
-
const { skipInputBeforeConversationStop } = await import("../session-stop-
|
|
160
|
+
const { createLocalSandboxEgressSignalTransport } = await import("../sandbox-egress-signals-C4RIfjb8.js");
|
|
161
|
+
const { bindSpawnAgent } = await import("../spawn-DkVYGfSY.js").then((n) => n.n);
|
|
162
|
+
const { bindMessageAgent } = await import("../message-CDTJISxL.js").then((n) => n.n);
|
|
163
|
+
const { createAgentInvocationWorker, routeAgentInvocationWork } = await import("../work-C_aF6JN5.js").then((n) => n.a);
|
|
164
|
+
const { startAgentInvocationsForChildInput } = await import("../result-R35jcahx.js").then((n) => n.r);
|
|
165
|
+
const { skipInputBeforeConversationStop } = await import("../session-stop-B9RRGC-P.js").then((n) => n.r);
|
|
166
166
|
const { createLocalConversationWork } = await import("../conversation-work-BaT_T6EB.js");
|
|
167
|
-
const { processConversationWork } = await import("../worker-
|
|
167
|
+
const { processConversationWork } = await import("../worker-DR633sA-.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 { E as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE, N as LEGACY_JUNIOR_CONVERSATION_WORK_FUNCTION, O as JUNIOR_HEARTBEAT_ROUTE } from "../logging-
|
|
2
|
-
import { v as parseInlinePluginManifest, y as parsePluginManifest } from "../registry-
|
|
3
|
-
import { i as parseSkillFile } from "../skills-
|
|
1
|
+
import { E as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE, N as LEGACY_JUNIOR_CONVERSATION_WORK_FUNCTION, O as JUNIOR_HEARTBEAT_ROUTE } from "../logging-DNQqsQ57.js";
|
|
2
|
+
import { v as parseInlinePluginManifest, y as parsePluginManifest } from "../registry-CfdUEk4N.js";
|
|
3
|
+
import { i as parseSkillFile } from "../skills-DVJmS_ZP.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
|
@@ -25,13 +25,13 @@ async function runChat(argv, pluginSet) {
|
|
|
25
25
|
return await (await import("./chat.js")).runChat(argv, void 0, { pluginSet });
|
|
26
26
|
}
|
|
27
27
|
async function runAdmin(argv) {
|
|
28
|
-
return await (await import("../admin-
|
|
28
|
+
return await (await import("../admin-D4d0HXax.js")).runAdmin(argv);
|
|
29
29
|
}
|
|
30
30
|
async function runServiceAccount(argv) {
|
|
31
|
-
return await (await import("../service-account-
|
|
31
|
+
return await (await import("../service-account-DifohWyX.js")).runServiceAccount(argv);
|
|
32
32
|
}
|
|
33
33
|
async function runBriefs(argv) {
|
|
34
|
-
return await (await import("../briefs-
|
|
34
|
+
return await (await import("../briefs-BFfIE5N6.js")).runBriefs(argv);
|
|
35
35
|
}
|
|
36
36
|
function topLevelCommand(argv) {
|
|
37
37
|
return (argv[0] === "--" ? argv.slice(1) : argv)[0];
|
package/dist/cli/plugins.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { d as getDb } from "../viewer-
|
|
2
|
-
import { n as pluginCatalogRuntime } from "../catalog-runtime-
|
|
3
|
-
import {
|
|
4
|
-
import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "../validation-
|
|
1
|
+
import { d as getDb } from "../viewer-BuPwzOC9.js";
|
|
2
|
+
import { n as pluginCatalogRuntime } from "../catalog-runtime-R53MWcMi.js";
|
|
3
|
+
import { Et as createPluginLogger, d as setPlugins, f as validatePlugins } from "../agent-hooks-D_PbluRX.js";
|
|
4
|
+
import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "../validation-XOFldwvE.js";
|
|
5
5
|
import { a as pluginRuntimeRegistrationsFromPluginSet, i as pluginCliRegistrationsFromPluginSet, r as pluginCatalogConfigFromPluginSet } from "../plugins-DOm9Y6qI.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 { n as pluginCatalogRuntime } from "../catalog-runtime-
|
|
2
|
-
import { t as disconnectStateAdapter } from "../adapter-
|
|
3
|
-
import { t as create } from "../profile-
|
|
4
|
-
import { r as resolve } from "../resolve-
|
|
1
|
+
import { n as pluginCatalogRuntime } from "../catalog-runtime-R53MWcMi.js";
|
|
2
|
+
import { t as disconnectStateAdapter } from "../adapter-BIbMSKlG.js";
|
|
3
|
+
import { t as create } from "../profile-ieODOp4u.js";
|
|
4
|
+
import { r as resolve } from "../resolve-BXShI336.js";
|
|
5
5
|
// src/cli/snapshot-create.ts
|
|
6
6
|
const DEFAULT_RUNTIME = "node22";
|
|
7
7
|
const DEFAULT_TIMEOUT_MS = 6e5;
|
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-BxPrFVJP.js";
|
|
2
|
+
import { t as createJuniorSqlExecutor } from "../executor-D3WIS4vl.js";
|
|
3
|
+
import { t as createPluginCatalogRuntime } from "../registry-CfdUEk4N.js";
|
|
4
4
|
import { n as pluginCatalogConfigFromEnv, r as pluginCatalogConfigFromPluginSet, t as defineJuniorPlugins } from "../plugins-DOm9Y6qI.js";
|
|
5
5
|
import { t as loadAppPluginSet } from "../plugin-module-Cf5gVPWP.js";
|
|
6
6
|
import { basename, dirname, join, resolve } from "node:path";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as withSpan, _ as serializeGenAiAttribute, f as logException, h as normalizeGenAiFinishReason, i as extractGenAiUsageAttributes, m as logWarn } from "./logging-
|
|
2
|
-
import { a as toCanonicalInputMessage, n as getCurrentConversationPrivacy, o as toCanonicalOutputMessage, s as toGenAiMessagesTraceAttributes } from "./conversation-privacy-
|
|
1
|
+
import { T as withSpan, _ as serializeGenAiAttribute, f as logException, h as normalizeGenAiFinishReason, i as extractGenAiUsageAttributes, m as logWarn } from "./logging-DNQqsQ57.js";
|
|
2
|
+
import { a as toCanonicalInputMessage, n as getCurrentConversationPrivacy, o as toCanonicalOutputMessage, s as toGenAiMessagesTraceAttributes } from "./conversation-privacy-ueJ6i-t9.js";
|
|
3
3
|
import { calculateCost, completeSimple, getEnvApiKey, getModels, registerApiProvider } from "@earendil-works/pi-ai/compat";
|
|
4
4
|
import { stream as streamAnthropic, streamSimple as streamSimpleAnthropic } from "@earendil-works/pi-ai/api/anthropic-messages";
|
|
5
5
|
import { createGatewayProvider } from "@ai-sdk/gateway";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-nwUcYXjP.js";
|
|
2
|
-
import { C as toOptionalTrimmed, s as resolveGatewayModel } from "./client-
|
|
3
|
-
import { m as logWarn } from "./logging-
|
|
2
|
+
import { C as toOptionalTrimmed, s as resolveGatewayModel } from "./client-DpOwh_zX.js";
|
|
3
|
+
import { m as logWarn } from "./logging-DNQqsQ57.js";
|
|
4
4
|
import { l as TURN_REASONING_LEVELS, s as modelProfileSchema, t as DEFAULT_MODEL_PROFILES, u as parseTurnReasoningLevel } from "./model-profile-Bg8EoCKD.js";
|
|
5
5
|
// src/chat/slack/emoji.ts
|
|
6
6
|
const SLACK_EMOJI_NAME_RE = /^(?:[a-z0-9_+-]+)(?:::(?:skin-tone-[2-6]))?$/;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as botConfig } from "./config-
|
|
3
|
-
import { A as deleteProviderIdentityForUser, c as getConversationEventStore, f as getSqlExecutor, k as deleteProviderIdentityForSlackUser } from "./viewer-
|
|
4
|
-
import { u as hasRequiredOAuthScope } from "./registry-
|
|
5
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
6
|
-
import { c as deleteMcpServerSessionId, l as deleteMcpStoredOAuthCredentials, s as deleteMcpAuthSessionsForUserProvider } from "./agent-runner-
|
|
7
|
-
import { r as getStateAdapter } from "./adapter-
|
|
8
|
-
import { a as getVercelConversationWorkQueue } from "./job-queue-
|
|
9
|
-
import { m as ensureConversationWake, w as requestConversationWork } from "./store-
|
|
10
|
-
import { n as resolveTurnSessionRouting } from "./turn-session-routing-
|
|
1
|
+
import { Ln as startOAuthFlow, Mt as failTurnRecord, Nt as getTurnRecord, Ot as loadTurnCheckpoint } from "./tasks-OgXmReUv.js";
|
|
2
|
+
import { n as botConfig } from "./config-BxPrFVJP.js";
|
|
3
|
+
import { A as deleteProviderIdentityForUser, c as getConversationEventStore, f as getSqlExecutor, k as deleteProviderIdentityForSlackUser } from "./viewer-BuPwzOC9.js";
|
|
4
|
+
import { u as hasRequiredOAuthScope } from "./registry-CfdUEk4N.js";
|
|
5
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-R53MWcMi.js";
|
|
6
|
+
import { c as deleteMcpServerSessionId, l as deleteMcpStoredOAuthCredentials, s as deleteMcpAuthSessionsForUserProvider } from "./agent-runner-CvRxb09K.js";
|
|
7
|
+
import { r as getStateAdapter } from "./adapter-BIbMSKlG.js";
|
|
8
|
+
import { a as getVercelConversationWorkQueue } from "./job-queue-BYHonCAH.js";
|
|
9
|
+
import { m as ensureConversationWake, w as requestConversationWork } from "./store-C_mHwAnR.js";
|
|
10
|
+
import { n as resolveTurnSessionRouting } from "./turn-session-routing-DEMxHySb.js";
|
|
11
11
|
import { z } from "zod";
|
|
12
12
|
import { randomBytes, randomUUID } from "node:crypto";
|
|
13
13
|
// src/chat/task-execution/authorized-turn.ts
|