@sentry/junior 0.300.0 → 0.301.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-S5UkjNK3.js → adapter-CNjGEJO9.js} +1 -1
- package/dist/{admin-UrTniSPO.js → admin-CRJHvCGg.js} +2 -2
- package/dist/{agent-runner-bY4_0UPm.js → agent-runner-H4YhvNBj.js} +32 -93
- package/dist/api/schema.d.ts +2 -2
- package/dist/api/schema.js +5 -5
- package/dist/api.d.ts +1 -1
- package/dist/api.js +67 -33
- package/dist/{app-D-AcIcCV.d.ts → app-HDZglaIu.d.ts} +3 -3
- package/dist/app.d.ts +1 -1
- package/dist/app.js +36 -34
- package/dist/{automation-Dw82oQ-h.js → automation-Cva5ZOwW.js} +1 -1
- package/dist/{background-compaction-queue-B6U3060-.js → background-compaction-queue-CNrZ3QcU.js} +3 -3
- package/dist/{briefs-DqiwWu-n.js → briefs-x6Mzwxmg.js} +3 -3
- package/dist/{catalog-runtime-D1oYNv04.js → catalog-runtime-BEY6EGRi.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-9nHoFiJP.js → config-CmjhyqgB.js} +2 -2
- package/dist/{connections-DZjTN3JC.js → connections-CfIRm0xv.js} +6 -6
- package/dist/{continue-in-slack-Dtv7_U42.js → continue-in-slack-DPoABVkB.js} +6 -6
- package/dist/{conversation-Dyjq2CZ8.js → conversation-BNXfq6Lb.js} +11 -1
- package/dist/{conversation-feed-CcDxlrlQ.js → conversation-feed-CfpyFMHP.js} +1 -1
- package/dist/{conversation-privacy-D-5HTXjS.js → conversation-privacy-0CM0V2qK.js} +1 -1
- package/dist/{conversation-turn-Cxl8WZD7.js → conversation-turn-C0sxyvS-.js} +17 -17
- package/dist/{credential-sync-C49ClwDX.js → credential-sync-tEMKZ_8M.js} +15 -15
- package/dist/{db-2resqBh1.d.ts → db-BdUHQhrC.d.ts} +1 -1
- package/dist/{db-BJNo6fK5.js → db-Czra10QW.js} +4 -4
- package/dist/{executor-DBIaOeJ_.js → executor-D_023K0H.js} +2 -2
- package/dist/instrumentation.js +2 -2
- package/dist/{lineage-0dereG7H.js → lineage-DmMIE0VL.js} +2 -2
- package/dist/{logging-BIclibct.js → logging-DcjLDDqi.js} +1 -1
- package/dist/{message-dkOl-Iii.js → message-C0JY9RJP.js} +8 -8
- package/dist/{model-input-CLo9TaUd.js → model-input-CBp-p24N.js} +2 -2
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +3 -3
- package/dist/{oauth-callback-server-WmpjfJgQ.js → oauth-callback-server-BRq9QNhU.js} +2 -2
- package/dist/{projection-w_X-zi7v.js → projection-CQNDOi82.js} +167 -45
- package/dist/{prompt-B1Xw46-S.js → prompt-DLUB5m72.js} +4 -4
- package/dist/{registry-BmP5vnlj.js → registry-Dj377ADs.js} +1 -1
- package/dist/{resolve-goo34bJK.js → resolve-DJkh9Fky.js} +3 -3
- package/dist/{result-PVBeU0Wf.js → result-C8iIpDl1.js} +8 -8
- package/dist/{runner-DKrfvNV6.js → runner-DZqrOy8C.js} +9 -9
- package/dist/{sandbox-egress-signals-DsUcqrI0.js → sandbox-egress-signals-CGwH86S9.js} +1 -1
- package/dist/{schema-Dns-sTas.d.ts → schema-CdZFn7Qd.d.ts} +30 -1
- package/dist/{schema-C9iNFz5n.js → schema-DyHXiQKI.js} +12 -4
- package/dist/{service-account-CMAAloAL.js → service-account-D6jGR4a1.js} +3 -3
- package/dist/{service-account-CmowamcB.js → service-account-suY004dx.js} +4 -4
- package/dist/{session-stop-BcAXze8a.js → session-stop-BLmfFI3d.js} +117 -16
- package/dist/{skills-DfsazET6.js → skills-CmNG0dHb.js} +2 -2
- package/dist/{slack-conversation-unfurl-CzQonuWz.js → slack-conversation-unfurl-Bty-DlHe.js} +7 -7
- package/dist/{spawn-C7o0FDDp.js → spawn-CNjkpXpk.js} +6 -6
- package/dist/{state-zSilNpbi.js → state-CEbZuZD6.js} +2 -2
- package/dist/{stop-CFOujp8C.js → stop-Bjy2-K4H.js} +249 -2237
- package/dist/{store-E3x2Fg_F.js → store-DmV4CoNr.js} +5 -5
- package/dist/{store-Dkeis_8o.js → store-Epv6t4vV.js} +9 -9
- package/dist/{task-queue-D-hCqdZW.js → task-queue-AhG1tSXR.js} +3 -3
- package/dist/{task-runner-vohUPLHe.js → task-runner-BMxZI3o7.js} +8 -8
- package/dist/{thread-context-BzvdkgI9.js → thread-context-CXLnbg7g.js} +8 -8
- package/dist/{turn-session-routing-Bo_LxFum.js → turn-session-routing-BD3-jJl7.js} +5 -5
- package/dist/{turn-user-message-D5RnVmxQ.js → turn-user-message-DsUZi9gn.js} +3 -3
- package/dist/{users-2bggndVg.js → users-BxvYclQg.js} +3 -3
- package/dist/{validation-BbWikeSa.js → validation-DOz8X9BU.js} +1 -1
- package/dist/{version-GVBMW2jA.js → version-CGMRmMPK.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-BpxRliyO.js → viewer-H3EsMWtJ.js} +3 -3
- package/dist/{warmup-BW2qwnal.js → warmup-CdU5hR49.js} +47 -25
- package/dist/{worker-Cbd-iuwZ.js → worker-ClphajjD.js} +7 -7
- package/package.json +6 -6
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as botConfig } from "./config-
|
|
3
|
-
import { F as deleteProviderIdentityForSlackUser, I 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 { da as startOAuthFlow } from "./projection-CQNDOi82.js";
|
|
2
|
+
import { n as botConfig } from "./config-CmjhyqgB.js";
|
|
3
|
+
import { F as deleteProviderIdentityForSlackUser, I as deleteProviderIdentityForUser, s as getSqlExecutor } from "./db-Czra10QW.js";
|
|
4
|
+
import { u as hasRequiredOAuthScope } from "./registry-Dj377ADs.js";
|
|
5
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-BEY6EGRi.js";
|
|
6
|
+
import { c as deleteMcpAuthSessionsForUserProvider, l as deleteMcpServerSessionId, u as deleteMcpStoredOAuthCredentials } from "./agent-runner-H4YhvNBj.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. */
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ao as readLatestConversationBrief, Ca as getSlackMessagePermalink, Da as postSlackMessage, Lt as moveIdleConversationDestination, Sa as deleteSlackMessage, ki as getDashboardConversationLink, ma as formatSlackLink, pa as escapeSlackMrkdwnText } from "./projection-CQNDOi82.js";
|
|
2
2
|
import { u as parseSlackChannelId, v as parseSlackMessageTs } from "./actor-D2iXzvlN.js";
|
|
3
|
-
import { G as claimProviderConversation, K as getConversationIdByProviderConversation, a as getConversationStore, k as setFirstConversationLocation, o as getDb, s as getSqlExecutor, x as withConversationMutationLock } from "./db-
|
|
4
|
-
import { P as juniorDestinations } from "./executor-
|
|
5
|
-
import { r as getStateAdapter } from "./adapter-
|
|
6
|
-
import "./store-
|
|
7
|
-
import { c as joinPublicChannelForRead, s as checkSlackChannelReadAccess } from "./users-
|
|
3
|
+
import { G as claimProviderConversation, K as getConversationIdByProviderConversation, a as getConversationStore, k as setFirstConversationLocation, o as getDb, s as getSqlExecutor, x as withConversationMutationLock } from "./db-Czra10QW.js";
|
|
4
|
+
import { P as juniorDestinations } from "./executor-D_023K0H.js";
|
|
5
|
+
import { r as getStateAdapter } from "./adapter-CNjGEJO9.js";
|
|
6
|
+
import "./store-DmV4CoNr.js";
|
|
7
|
+
import { c as joinPublicChannelForRead, s as checkSlackChannelReadAccess } from "./users-BxvYclQg.js";
|
|
8
8
|
import { and, eq } from "drizzle-orm";
|
|
9
9
|
// src/chat/slack/continue-in-slack.ts
|
|
10
10
|
/** Refusal for a move that cannot wait for the active Run. */
|
|
@@ -338,6 +338,15 @@ const conversationChildAgentTotalsSchema = z.object({
|
|
|
338
338
|
cumulativeDurationMs: z.number(),
|
|
339
339
|
cumulativeUsage: usageSchema.optional()
|
|
340
340
|
}).strict();
|
|
341
|
+
// src/api/schema/object-preview-image.ts
|
|
342
|
+
/**
|
|
343
|
+
* One saved preview image of an object, such as a pull request screenshot,
|
|
344
|
+
* at 1x and 2x. Both name the Junior image route, never the image host.
|
|
345
|
+
*/
|
|
346
|
+
const objectPreviewImageSchema = z.object({
|
|
347
|
+
src: z.string().startsWith("/api/images/"),
|
|
348
|
+
srcSet: z.string().min(1)
|
|
349
|
+
}).strict();
|
|
341
350
|
// src/api/schema/conversation.ts
|
|
342
351
|
const conversationReportStatusSchema = z.enum([
|
|
343
352
|
"active",
|
|
@@ -485,7 +494,8 @@ const conversationSourceTaskSchema = z.object({
|
|
|
485
494
|
const conversationAnnotationReportSchema = conversationAnnotationInputSchema.and(z.object({
|
|
486
495
|
plugin: z.string().min(1),
|
|
487
496
|
createdAt: z.string().datetime(),
|
|
488
|
-
updatedAt: z.string().datetime()
|
|
497
|
+
updatedAt: z.string().datetime(),
|
|
498
|
+
previewImages: z.array(objectPreviewImageSchema).optional()
|
|
489
499
|
}));
|
|
490
500
|
const conversationActivityPreviewSchema = z.object({
|
|
491
501
|
createdAt: z.string().datetime(),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { J as messageAttachmentSchema, Q as briefOutcomeStatusSchema, R as reviewItemChangeRecordSchema, b as conversationSummaryReportSchema, i as actorIdentitySchema, u as conversationDetailReportSchema } from "./conversation-
|
|
1
|
+
import { J as messageAttachmentSchema, Q as briefOutcomeStatusSchema, R as reviewItemChangeRecordSchema, b as conversationSummaryReportSchema, i as actorIdentitySchema, u as conversationDetailReportSchema } from "./conversation-BNXfq6Lb.js";
|
|
2
2
|
import * as z from "zod";
|
|
3
3
|
// src/api/objects/cards.ts
|
|
4
4
|
const MAX_LABEL_CHARS = 256;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { i as getActiveSpan, r as continueTrace, v as __exportAll } from "./sentry-BRTJqumy.js";
|
|
2
|
-
import { A as latestConversationMessageSeq,
|
|
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 { C as isPersonInput, E as turnBehavior, a as getConversationStore, nt as nextDetailVersion, o as getDb, r as getConversationEventStore, s as getSqlExecutor, w as isTopLevelKind } from "./db-
|
|
6
|
-
import { j as juniorConversations } from "./executor-
|
|
2
|
+
import { A as latestConversationMessageSeq, Di as verifyTimerWatchCredentialSubject, I as upsertConversationMessage, M as normalizeConversationText, N as recordDeliveredAssistantMessage, a as loadProjection, at as failTurnRecord, b as persistConversationMessages, bn as persistWithRetry, j as markConversationMessage, nt as saveTurnCheckpoint, st as getTurnRecord, t as commitAcceptedReply, un as getAssistantReplyText, v as hydrateConversationMessages } from "./projection-CQNDOi82.js";
|
|
3
|
+
import { n as botConfig } from "./config-CmjhyqgB.js";
|
|
4
|
+
import { E as withSpan, S as setTags, h as logWarn, p as logException } from "./logging-DcjLDDqi.js";
|
|
5
|
+
import { C as isPersonInput, E as turnBehavior, a as getConversationStore, nt as nextDetailVersion, o as getDb, r as getConversationEventStore, s as getSqlExecutor, w as isTopLevelKind } from "./db-Czra10QW.js";
|
|
6
|
+
import { j as juniorConversations } from "./executor-D_023K0H.js";
|
|
7
7
|
import { p as instructionProvenanceFor } from "./history-IjdmO_r6.js";
|
|
8
|
-
import { f as credentialContextForActor } from "./registry-
|
|
9
|
-
import { dt as resolveConversationDestination, i as measureTurnCompactionWait } from "./agent-runner-
|
|
10
|
-
import { o as isEventConversationMessage } from "./prompt-
|
|
11
|
-
import { Y as readMessageAttachments } from "./conversation-
|
|
12
|
-
import { A as turnInputFactsFromConversationMessage, F as isEventMailboxMetadata, I as renderEventBatchInputs, L as timerWatchCredentialSubject, P as eventBatchMessageMeta, X as maybePostAutomatedTurnLimitNotice, c as loadReviewItemInput, f as buildSteeringPiMessage, g as withoutSavedSteeringMessages, j as legacyWebMailboxMetadataSchema, k as sourceFromTurnInput, m as instructionForInputs,
|
|
13
|
-
import { Et as executeTurn, L as readParentMessage, M as childAgentTurnOptions, N as isParentMessageMeta, St as createWebAuthorization, Tt as AgentRunError, Y as completeCancelledConversationTurn, dt as supersedeOpenMailboxTurns } from "./warmup-
|
|
14
|
-
import { R as buildDeterministicTurnId, _ as ConversationTurnLifecycleService, d as isTurnInputCommitLostError, g as startActiveTurn, h as markTurnFailed, l as getConversationTurnBoundaryError, s as TurnInputCommitLostError, t as getTurnUserMessage } from "./turn-user-message-
|
|
15
|
-
import { a as getPersistedThreadState, c as coerceThreadConversationState, i as getPersistedSandboxState, s as persistThreadStateById } from "./turn-session-routing-
|
|
16
|
-
import { H as blockEventAutomation, M as blockScheduledAutomation, c as getDispatchRecord, o as getDispatchIdForConversation, v as notifyAutomationBlocked, x as readAutomationExecutionByConversationId } from "./store-
|
|
17
|
-
import { t as readConversationLineage } from "./lineage-
|
|
18
|
-
import { c as buildDeliveredTurnStatePatch, l as loadPendingMessageCards, o as completeAuthPauseTurn, r as finalizeFailedTurnReplyWithEvent, t as buildTurnThreadContext } from "./thread-context-
|
|
19
|
-
import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-
|
|
8
|
+
import { f as credentialContextForActor } from "./registry-Dj377ADs.js";
|
|
9
|
+
import { dt as resolveConversationDestination, i as measureTurnCompactionWait } from "./agent-runner-H4YhvNBj.js";
|
|
10
|
+
import { o as isEventConversationMessage } from "./prompt-DLUB5m72.js";
|
|
11
|
+
import { Y as readMessageAttachments } from "./conversation-BNXfq6Lb.js";
|
|
12
|
+
import { A as turnInputFactsFromConversationMessage, F as isEventMailboxMetadata, I as renderEventBatchInputs, L as timerWatchCredentialSubject, P as eventBatchMessageMeta, X as maybePostAutomatedTurnLimitNotice, c as loadReviewItemInput, f as buildSteeringPiMessage, g as withoutSavedSteeringMessages, j as legacyWebMailboxMetadataSchema, k as sourceFromTurnInput, m as instructionForInputs, p as instructionActorFor, rt as recordFinishedTurnForAutomatedLimit, s as eventReviewItemInputs, w as getEventBatchDelayMs } from "./session-stop-BLmfFI3d.js";
|
|
13
|
+
import { Et as executeTurn, L as readParentMessage, M as childAgentTurnOptions, N as isParentMessageMeta, St as createWebAuthorization, Tt as AgentRunError, Y as completeCancelledConversationTurn, dt as supersedeOpenMailboxTurns } from "./warmup-CdU5hR49.js";
|
|
14
|
+
import { R as buildDeterministicTurnId, _ as ConversationTurnLifecycleService, d as isTurnInputCommitLostError, g as startActiveTurn, h as markTurnFailed, l as getConversationTurnBoundaryError, s as TurnInputCommitLostError, t as getTurnUserMessage } from "./turn-user-message-DsUZi9gn.js";
|
|
15
|
+
import { a as getPersistedThreadState, c as coerceThreadConversationState, i as getPersistedSandboxState, s as persistThreadStateById } from "./turn-session-routing-BD3-jJl7.js";
|
|
16
|
+
import { H as blockEventAutomation, M as blockScheduledAutomation, c as getDispatchRecord, o as getDispatchIdForConversation, v as notifyAutomationBlocked, x as readAutomationExecutionByConversationId } from "./store-Epv6t4vV.js";
|
|
17
|
+
import { t as readConversationLineage } from "./lineage-DmMIE0VL.js";
|
|
18
|
+
import { c as buildDeliveredTurnStatePatch, l as loadPendingMessageCards, o as completeAuthPauseTurn, r as finalizeFailedTurnReplyWithEvent, t as buildTurnThreadContext } from "./thread-context-CXLnbg7g.js";
|
|
19
|
+
import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-BMxZI3o7.js";
|
|
20
20
|
import { isDeepStrictEqual } from "node:util";
|
|
21
21
|
import { createHash } from "node:crypto";
|
|
22
22
|
import { and, eq, isNotNull, isNull } from "drizzle-orm";
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { R 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 { Da as postSlackMessage, Xo as getSlackClient, Z as getConversationPendingAuth, Zn as createUserTokenStore, ca as formatProviderLabel, d as recordAuthorizationCompleted, la as parseOAuthStatePayload, st as getTurnRecord, tr as resolvePluginOAuthAccount, u as recordAuthenticationLinked, ua as resolveBaseUrl } from "./projection-CQNDOi82.js";
|
|
2
|
+
import { R as escapeXml, a as getRuntimeMetadata, n as botConfig } from "./config-CmjhyqgB.js";
|
|
3
|
+
import { U as isNativeIdentityProvider, _ as runBestEffort, h as logWarn, p as logException } from "./logging-DcjLDDqi.js";
|
|
4
4
|
import { p as parseSlackUserId } from "./actor-D2iXzvlN.js";
|
|
5
|
-
import { L as findUserByVerifiedEmails, N as resolveActorIdentityId, V as upsertLinkedIdentity, s as getSqlExecutor } from "./db-
|
|
6
|
-
import { r as getStateAdapter, s as acquireActiveLock } from "./adapter-
|
|
5
|
+
import { L as findUserByVerifiedEmails, N as resolveActorIdentityId, V as upsertLinkedIdentity, s as getSqlExecutor } from "./db-Czra10QW.js";
|
|
6
|
+
import { r as getStateAdapter, s as acquireActiveLock } from "./adapter-CNjGEJO9.js";
|
|
7
7
|
import { i as homeDir } from "./package-discovery-DJhGdS4c.js";
|
|
8
|
-
import { n as buildOAuthTokenRequest, r as parseOAuthTokenResponse, u as hasRequiredOAuthScope } from "./registry-
|
|
9
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
10
|
-
import { t as discoverSkills } from "./skills-
|
|
11
|
-
import { d as getMcpAuthSession, f as getMcpStoredOAuthCredentials, o as finalizeMcpAuthorization, p as putMcpStoredOAuthCredentials, s as deleteMcpAuthSession } from "./agent-runner-
|
|
12
|
-
import { o as readIdentityById } from "./viewer-
|
|
8
|
+
import { n as buildOAuthTokenRequest, r as parseOAuthTokenResponse, u as hasRequiredOAuthScope } from "./registry-Dj377ADs.js";
|
|
9
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-BEY6EGRi.js";
|
|
10
|
+
import { t as discoverSkills } from "./skills-CmNG0dHb.js";
|
|
11
|
+
import { d as getMcpAuthSession, f as getMcpStoredOAuthCredentials, o as finalizeMcpAuthorization, p as putMcpStoredOAuthCredentials, s as deleteMcpAuthSession } from "./agent-runner-H4YhvNBj.js";
|
|
12
|
+
import { o as readIdentityById } from "./viewer-H3EsMWtJ.js";
|
|
13
13
|
import { t as readJuniorSecret } from "./secrets-DebYU866.js";
|
|
14
|
-
import { Ct as deleteWebAuthorization, gt as wakePausedTurn, ht as wakeAuthorizedTurn } from "./warmup-
|
|
15
|
-
import { a as getPersistedThreadState, c as coerceThreadConversationState } from "./turn-session-routing-
|
|
16
|
-
import { _ as getMcpProviderErrorAttributes } from "./service-account-
|
|
17
|
-
import { r as lookupSlackUserProfile } from "./users-
|
|
18
|
-
import { i as readConnectedOAuthTokens, s as htmlCallbackResponse } from "./connections-
|
|
14
|
+
import { Ct as deleteWebAuthorization, gt as wakePausedTurn, ht as wakeAuthorizedTurn } from "./warmup-CdU5hR49.js";
|
|
15
|
+
import { a as getPersistedThreadState, c as coerceThreadConversationState } from "./turn-session-routing-BD3-jJl7.js";
|
|
16
|
+
import { _ as getMcpProviderErrorAttributes } from "./service-account-suY004dx.js";
|
|
17
|
+
import { r as lookupSlackUserProfile } from "./users-BxvYclQg.js";
|
|
18
|
+
import { i as readConnectedOAuthTokens, s as htmlCallbackResponse } from "./connections-CfIRm0xv.js";
|
|
19
19
|
import { n as relayLocalOAuthCallback } from "./oauth-relay-DRzq73b6.js";
|
|
20
20
|
import * as z from "zod";
|
|
21
21
|
import path from "node:path";
|
|
@@ -1,10 +1,10 @@
|
|
|
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-CmjhyqgB.js";
|
|
3
|
+
import { H as GOOGLE_IDENTITY_PROVIDER, W as normalizeIdentityEmail, h as logWarn } from "./logging-DcjLDDqi.js";
|
|
4
4
|
import { a as isSlackUserId, d as parseSlackChannelReferenceId, f as parseSlackTeamId, s as parseActorUserId } from "./actor-D2iXzvlN.js";
|
|
5
|
-
import { C as isUserInstruction, E as juniorConversationAnnotations, M as juniorIdentities, N as juniorUsers, P as juniorDestinations, S as juniorConversationMetrics, j as juniorConversations, t as createJuniorSqlExecutor, v as juniorConversationParticipants, w as juniorConversationEvents, x as CONVERSATION_METRICS, y as juniorConversationBindings } from "./executor-
|
|
5
|
+
import { C as isUserInstruction, E as juniorConversationAnnotations, M as juniorIdentities, N as juniorUsers, P as juniorDestinations, S as juniorConversationMetrics, j as juniorConversations, t as createJuniorSqlExecutor, v as juniorConversationParticipants, w as juniorConversationEvents, x as CONVERSATION_METRICS, y as juniorConversationBindings } from "./executor-D_023K0H.js";
|
|
6
6
|
import { c as newConversationEventSchema, h as usageSchema, l as encodeHistoryPayload, o as decodeStoredConversationEvent, r as conversationEventDataSchema, s as historyReplacementSchema } from "./history-IjdmO_r6.js";
|
|
7
|
-
import { l as withLock, r as getStateAdapter } from "./adapter-
|
|
7
|
+
import { l as withLock, r as getStateAdapter } from "./adapter-CNjGEJO9.js";
|
|
8
8
|
import * as z from "zod";
|
|
9
9
|
import { randomUUID } from "node:crypto";
|
|
10
10
|
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-CmjhyqgB.js";
|
|
3
|
+
import { h as logWarn, p as logException } from "./logging-DcjLDDqi.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-DcjLDDqi.js";
|
|
3
|
+
import { n as getCurrentConversationPrivacy } from "./conversation-privacy-0CM0V2qK.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
|
-
import { D as conversationKindFromRow, o as getDb } from "./db-
|
|
2
|
-
import { j as juniorConversations } from "./executor-
|
|
1
|
+
import { D as conversationKindFromRow, o as getDb } from "./db-Czra10QW.js";
|
|
2
|
+
import { j as juniorConversations } from "./executor-D_023K0H.js";
|
|
3
3
|
import { desc, eq, sql } from "drizzle-orm";
|
|
4
4
|
// src/chat/conversations/lineage.ts
|
|
5
5
|
/**
|
|
@@ -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-CGMRmMPK.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";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { v as __exportAll } from "./sentry-BRTJqumy.js";
|
|
2
|
-
import { Jn as renderUntrustedTag,
|
|
3
|
-
import { n as botConfig } from "./config-
|
|
4
|
-
import { a as getConversationStore, j as SYSTEM_IDENTITY_ID, o as getDb } from "./db-
|
|
5
|
-
import { Ft as toolInvocationDestination, Pt as actorFromRun } from "./agent-runner-
|
|
6
|
-
import { M as EVENT_WAIT_MS, Z as postAutomatedTurnLimitNoticeForConversation,
|
|
7
|
-
import { A as readChildConversationSender, H as enqueueAgentInvocation, Z as createAgentInvocationForMessage, at as findChildAgentConversationId, g as getActiveAgentInvocationForConversation, lt as PARENT_AGENT_TARGET, rt as AgentMessageTargetError, tt as AgentMessagePausedError, y as getLatestAgentInvocationForConversation } from "./warmup-
|
|
8
|
-
import { r as appendAndEnqueueInboundMessage } from "./store-
|
|
9
|
-
import { a as enqueueAgentMessageToParent } from "./result-
|
|
2
|
+
import { Jn as renderUntrustedTag, vo as canAccessConversation, xo as readConversationAccessFromSql } from "./projection-CQNDOi82.js";
|
|
3
|
+
import { n as botConfig } from "./config-CmjhyqgB.js";
|
|
4
|
+
import { a as getConversationStore, j as SYSTEM_IDENTITY_ID, o as getDb } from "./db-Czra10QW.js";
|
|
5
|
+
import { Ft as toolInvocationDestination, Pt as actorFromRun } from "./agent-runner-H4YhvNBj.js";
|
|
6
|
+
import { M as EVENT_WAIT_MS, Z as postAutomatedTurnLimitNoticeForConversation, nt as admitAutomatedTurn } from "./session-stop-BLmfFI3d.js";
|
|
7
|
+
import { A as readChildConversationSender, H as enqueueAgentInvocation, Z as createAgentInvocationForMessage, at as findChildAgentConversationId, g as getActiveAgentInvocationForConversation, lt as PARENT_AGENT_TARGET, rt as AgentMessageTargetError, tt as AgentMessagePausedError, y as getLatestAgentInvocationForConversation } from "./warmup-CdU5hR49.js";
|
|
8
|
+
import { r as appendAndEnqueueInboundMessage } from "./store-DmV4CoNr.js";
|
|
9
|
+
import { a as enqueueAgentMessageToParent } from "./result-C8iIpDl1.js";
|
|
10
10
|
// src/chat/agent-invocations/top-level-message.ts
|
|
11
11
|
const AGENT_MESSAGE_EVENT_NAMESPACE = "junior";
|
|
12
12
|
/** Event type of a message from another top-level agent. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { v as __exportAll } from "./sentry-BRTJqumy.js";
|
|
2
|
-
import { s as getSqlExecutor } from "./db-
|
|
3
|
-
import { vt as readLiveAttachment } from "./agent-runner-
|
|
2
|
+
import { s as getSqlExecutor } from "./db-Czra10QW.js";
|
|
3
|
+
import { vt as readLiveAttachment } from "./agent-runner-H4YhvNBj.js";
|
|
4
4
|
import { m as isVisionImageMediaType, p as detectImageMediaType } from "./statuses-Hn-HsOph.js";
|
|
5
5
|
// src/chat/attachments/model-input.ts
|
|
6
6
|
var model_input_exports = /* @__PURE__ */ __exportAll({
|
package/dist/nitro.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as JuniorDashboardOptions } from "./app-
|
|
1
|
+
import { i as JuniorDashboardOptions } from "./app-HDZglaIu.js";
|
|
2
2
|
import { n as JuniorPluginSet } from "./plugins-B_0Cr0MO.js";
|
|
3
3
|
import { withSentryConfig as withSentryConfig$1 } from "@sentry/nitro";
|
|
4
4
|
type SentryNitroConfig = Parameters<typeof withSentryConfig$1>[0];
|
package/dist/nitro.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as JUNIOR_CONTEXT_COMPACTION_CALLBACK_ROUTE, D as JUNIOR_AUTO_ARCHIVE_CRON_SCHEDULE, F as JUNIOR_RETENTION_CRON_SCHEDULE, I as JUNIOR_RETENTION_ROUTE, L as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, M as JUNIOR_HEARTBEAT_CRON_SCHEDULE, N as JUNIOR_HEARTBEAT_ROUTE, O as JUNIOR_AUTO_ARCHIVE_ROUTE, P as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, j as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE, k as JUNIOR_CACHE_WARMUP_CALLBACK_ROUTE, z as getDeploymentServiceVersion } from "./logging-
|
|
1
|
+
import { A as JUNIOR_CONTEXT_COMPACTION_CALLBACK_ROUTE, D as JUNIOR_AUTO_ARCHIVE_CRON_SCHEDULE, F as JUNIOR_RETENTION_CRON_SCHEDULE, I as JUNIOR_RETENTION_ROUTE, L as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, M as JUNIOR_HEARTBEAT_CRON_SCHEDULE, N as JUNIOR_HEARTBEAT_ROUTE, O as JUNIOR_AUTO_ARCHIVE_ROUTE, P as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, j as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE, k as JUNIOR_CACHE_WARMUP_CALLBACK_ROUTE, z as getDeploymentServiceVersion } from "./logging-DcjLDDqi.js";
|
|
2
2
|
import { d as resolvePackageDir, t as discoverInstalledPluginPackageContent, u as isValidPackageName } from "./package-discovery-DJhGdS4c.js";
|
|
3
|
-
import { a as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC, g as CACHE_WARMUP_QUEUE_TOPIC, t as BACKGROUND_COMPACTION_QUEUE_TOPIC, u as resolveConversationWorkQueueTopic } from "./background-compaction-queue-
|
|
4
|
-
import { t as PLUGIN_TASK_QUEUE_TOPIC } from "./task-queue-
|
|
3
|
+
import { a as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC, g as CACHE_WARMUP_QUEUE_TOPIC, t as BACKGROUND_COMPACTION_QUEUE_TOPIC, u as resolveConversationWorkQueueTopic } from "./background-compaction-queue-CNrZ3QcU.js";
|
|
4
|
+
import { t as PLUGIN_TASK_QUEUE_TOPIC } from "./task-queue-AhG1tSXR.js";
|
|
5
5
|
import { a as pluginRuntimeRegistrationsFromPluginSet, r as pluginCatalogConfigFromPluginSet } from "./plugins-BBX07Jzt.js";
|
|
6
6
|
import { n as loadPluginSetFromModule, r as resolvePluginModule } from "./plugin-module-Cf5gVPWP.js";
|
|
7
7
|
import path from "node:path";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Zn as createUserTokenStore } from "./projection-
|
|
2
|
-
import { a as GET, n as syncLocalOAuthCredential, r as GET$1 } from "./credential-sync-
|
|
1
|
+
import { Zn as createUserTokenStore } from "./projection-CQNDOi82.js";
|
|
2
|
+
import { a as GET, n as syncLocalOAuthCredential, r as GET$1 } from "./credential-sync-tEMKZ_8M.js";
|
|
3
3
|
import { createServer } from "node:http";
|
|
4
4
|
// src/chat/local/oauth-callback-server.ts
|
|
5
5
|
const LOCAL_OAUTH_TIMEOUT_MS = 6e5;
|