@sentry/junior 0.289.0 → 0.291.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/bin/junior.mjs +19 -15
- package/dist/{adapter-tE1wnl0T.js → adapter-zphAlWE2.js} +1 -1
- package/dist/{admin-BmsPbmO_.js → admin-B3WR7Y6e.js} +2 -2
- package/dist/{agent-runner-bvl8U5uH.js → agent-runner-ke-hOiuv.js} +23 -23
- package/dist/api/schema.d.ts +1 -1
- package/dist/api/schema.js +4 -4
- package/dist/api.d.ts +1 -1
- package/dist/api.js +26 -26
- package/dist/{app-Cu454FXq.d.ts → app-C47PT68y.d.ts} +2 -2
- package/dist/app.d.ts +1 -1
- package/dist/app.js +29 -29
- package/dist/{assistant-reply-1N9oxyyb.js → assistant-reply-BV8SZaVd.js} +1 -1
- package/dist/{automation-DWbjJltM.js → automation-CrsYnvdV.js} +1 -1
- package/dist/{background-compaction-queue-D36oCldp.js → background-compaction-queue-QDH_JS3D.js} +4 -4
- package/dist/{briefs-CV-1qkXa.js → briefs-Bdv9BG5J.js} +3 -3
- package/dist/{catalog-runtime-BNK4uJVZ.js → catalog-runtime-yGnL9ywD.js} +1 -1
- package/dist/cli/chat.js +14 -14
- package/dist/cli/check.js +3 -3
- package/dist/cli/main.d.ts +5 -0
- package/dist/cli/main.js +25 -6
- 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 +4 -4
- package/dist/{config-DHAy7XlP.js → config-UsaBOQgC.js} +2 -2
- package/dist/{connections-C3VmH3cf.js → connections-CePSRCoR.js} +6 -6
- package/dist/{conversation-CwC8K3RZ.js → conversation-CtjR1Zcx.js} +7 -1
- package/dist/{conversation-pending-messages-B0cuLReP.js → conversation-pending-messages-Cd7ShwBs.js} +1 -1
- package/dist/{conversation-privacy-Bky_veSp.js → conversation-privacy-B3wmawmz.js} +1 -1
- package/dist/{credential-sync-dY9o0YSj.js → credential-sync-LNRLXZCn.js} +13 -13
- package/dist/{db-BebRmhsH.d.ts → db-7glZCI18.d.ts} +2 -2
- package/dist/{db-BS2Kql3j.js → db-c__lw9GH.js} +8 -5
- package/dist/{executor-cc4nH86C.js → executor-N8-D5Gvv.js} +58 -6
- package/dist/instrumentation.js +2 -2
- package/dist/{logging-CtCJmt9p.js → logging-DbXHuhac.js} +1 -1
- package/dist/{message-C5VuRcP9.js → message-D1MEh8iR.js} +9 -9
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +2 -2
- package/dist/{oauth-callback-server-KRrYUZ35.js → oauth-callback-server-DUtqhYwP.js} +2 -2
- package/dist/{projection-BFJG58TG.js → projection-D7XadqRY.js} +11 -11
- package/dist/{prompt-D15oftoL.js → prompt-CzEV4BF4.js} +4 -4
- package/dist/{registry-C_JrgqUz.js → registry-CTtGtXZP.js} +1 -1
- package/dist/{resolve-Cn_7JfP-.js → resolve-nUuQ8yyH.js} +3 -3
- package/dist/{result-CIbQFLp6.js → result-Cr9tUdfS.js} +8 -8
- package/dist/{runner-BwmaMJVO.js → runner-D7NMbBim.js} +8 -8
- package/dist/{sandbox-egress-signals-BOQ8gn7i.js → sandbox-egress-signals-BJAyfzOD.js} +1 -1
- package/dist/{schema-DQaFSkZZ.d.ts → schema-CC2RxDAV.d.ts} +5 -0
- package/dist/{schema-Bptz19Ja.js → schema-CVV5r-qP.js} +3 -3
- package/dist/{service-account-CLZfF8O1.js → service-account-CP1oBWTc.js} +3 -3
- package/dist/{service-account-AGw_pANb.js → service-account-_ml5D4Tk.js} +3 -3
- package/dist/{session-stop-CbzKf7UI.js → session-stop-BbsyIbK2.js} +11 -11
- package/dist/{skills-CcAJBquq.js → skills-CayJ8-Bj.js} +2 -2
- package/dist/{spawn-BvAk2vTI.js → spawn-CktAopv_.js} +5 -5
- package/dist/{stop-BQU4u7la.js → stop-BUzUJuN_.js} +88 -31
- package/dist/{store-DE7NJOvQ.js → store-lotbeXq3.js} +3 -3
- package/dist/{task-runner-Q_7duP_T.js → task-runner-BinM1l5g.js} +11 -11
- package/dist/{turn-failure-response-aWZLfUM8.js → turn-failure-response-DH5nE6HJ.js} +8 -8
- package/dist/{validation-BOoPeIJR.js → validation-I0CqX5NC.js} +1 -1
- package/dist/{version-Db0MFy61.js → version-C3sVz3bv.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-FFEFu9In.js → viewer-so1MPU10.js} +3 -3
- package/dist/{warmup-DDzrA9Gv.js → warmup-BH9HRBCI.js} +20 -26
- package/dist/{work-BBJK458E.js → work-Cw6Fzvfz.js} +11 -11
- package/dist/{worker-2iU5RFyq.js → worker-qEykG39-.js} +6 -6
- package/package.json +5 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Ei as isStale, La as SANDBOX_COMMAND_PATH, Oi as getSandboxProvider, Va as SANDBOX_WORKSPACE_ROOT, ja as sleep, qa as runNonInteractiveCommand, wi as create } from "./projection-
|
|
2
|
-
import { E as withSpan, b as setSpanAttributes } from "./logging-
|
|
3
|
-
import { r as getStateAdapter } from "./adapter-
|
|
1
|
+
import { Ei as isStale, La as SANDBOX_COMMAND_PATH, Oi as getSandboxProvider, Va as SANDBOX_WORKSPACE_ROOT, ja as sleep, qa as runNonInteractiveCommand, wi as create } from "./projection-D7XadqRY.js";
|
|
2
|
+
import { E as withSpan, b as setSpanAttributes } from "./logging-DbXHuhac.js";
|
|
3
|
+
import { r as getStateAdapter } from "./adapter-zphAlWE2.js";
|
|
4
4
|
import * as z from "zod";
|
|
5
5
|
// src/chat/sandbox/resources.ts
|
|
6
6
|
let configuredResources;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { v as __exportAll } from "./sentry-BRTJqumy.js";
|
|
2
|
-
import { Cn as renderUntrustedTag } from "./projection-
|
|
3
|
-
import { T as SYSTEM_IDENTITY_ID } from "./db-
|
|
4
|
-
import { f as credentialContextForActor } from "./registry-
|
|
5
|
-
import { sn as listUnreportedSiblingAgents } from "./agent-runner-
|
|
6
|
-
import { C as isTerminalAgentInvocation, G as getAgentInvocationIdForEvents, K as getAgentInvocationIdForMessage, Y as getAgentInvocationResultMessageId, k as markAgentInvocationParentMailboxAppended, q as getAgentInvocationIdForResult, x as getLatestAgentInvocationForConversation, y as getAgentInvocation } from "./turn-failure-response-
|
|
7
|
-
import { D as timerWatchCredentialSubject, E as renderEventBatchInputs, S as EVENT_WAIT_MS, T as isEventMailboxMetadata, f as getEventBatchDelayMs, m as parseEventMessages, n as isWatchEvent, s as eventReviewItemInputs, w as eventBatchMessageMeta } from "./session-stop-
|
|
8
|
-
import { r as appendAndEnqueueInboundMessage } from "./store-
|
|
9
|
-
import { a as enqueueAgentInvocation, l as createAgentInvocationFromLatest, o as resolveAgentInvocationId, t as createAgentInvocationWorker } from "./work-
|
|
2
|
+
import { Cn as renderUntrustedTag } from "./projection-D7XadqRY.js";
|
|
3
|
+
import { T as SYSTEM_IDENTITY_ID } from "./db-c__lw9GH.js";
|
|
4
|
+
import { f as credentialContextForActor } from "./registry-CTtGtXZP.js";
|
|
5
|
+
import { sn as listUnreportedSiblingAgents } from "./agent-runner-ke-hOiuv.js";
|
|
6
|
+
import { C as isTerminalAgentInvocation, G as getAgentInvocationIdForEvents, K as getAgentInvocationIdForMessage, Y as getAgentInvocationResultMessageId, k as markAgentInvocationParentMailboxAppended, q as getAgentInvocationIdForResult, x as getLatestAgentInvocationForConversation, y as getAgentInvocation } from "./turn-failure-response-DH5nE6HJ.js";
|
|
7
|
+
import { D as timerWatchCredentialSubject, E as renderEventBatchInputs, S as EVENT_WAIT_MS, T as isEventMailboxMetadata, f as getEventBatchDelayMs, m as parseEventMessages, n as isWatchEvent, s as eventReviewItemInputs, w as eventBatchMessageMeta } from "./session-stop-BbsyIbK2.js";
|
|
8
|
+
import { r as appendAndEnqueueInboundMessage } from "./store-lotbeXq3.js";
|
|
9
|
+
import { a as enqueueAgentInvocation, l as createAgentInvocationFromLatest, o as resolveAgentInvocationId, t as createAgentInvocationWorker } from "./work-Cw6Fzvfz.js";
|
|
10
10
|
import { n as isAgentInvocationResultEventType, t as agentInvocationResultEventType } from "./result-event-type-DD6BAgT7.js";
|
|
11
11
|
// src/chat/agent-invocations/result.ts
|
|
12
12
|
var result_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { A as latestConversationMessageSeq, I as upsertConversationMessage, M as normalizeConversationText, N as recordDeliveredAssistantMessage, Qt as persistWithRetry, W as authorizationId, a as loadProjection, b as persistConversationMessages, d as recordAuthorizationCompleted, j as markConversationMessage, nt as saveTurnCheckpoint, t as commitAcceptedReply, v as hydrateConversationMessages } from "./projection-
|
|
2
|
-
import { S as setTags, T as withLogContext, p as logException } from "./logging-
|
|
3
|
-
import { T as SYSTEM_IDENTITY_ID, a as getConversationStore, r as getConversationEventStore } from "./db-
|
|
4
|
-
import { f as credentialContextForActor } from "./registry-
|
|
5
|
-
import { L as messageCardText } from "./conversation-
|
|
6
|
-
import { dt as markTurnFailed, f as ConversationTurnLifecycleService, ft as startActiveTurn, i as completeAuthPauseTurn, l as buildDeliveredTurnStatePatch, m as loadPendingMessageCards, t as finalizeFailedTurnReplyWithEvent, u as buildTurnThreadContext } from "./turn-failure-response-
|
|
7
|
-
import { n as getAssistantReplyText } from "./assistant-reply-
|
|
8
|
-
import { _t as persistThreadStateById, ht as getPersistedThreadState, mt as getPersistedSandboxState, n as scheduleSessionCompletedPluginTasks, t as processPluginTask, vt as coerceThreadConversationState } from "./task-runner-
|
|
1
|
+
import { A as latestConversationMessageSeq, I as upsertConversationMessage, M as normalizeConversationText, N as recordDeliveredAssistantMessage, Qt as persistWithRetry, W as authorizationId, a as loadProjection, b as persistConversationMessages, d as recordAuthorizationCompleted, j as markConversationMessage, nt as saveTurnCheckpoint, t as commitAcceptedReply, v as hydrateConversationMessages } from "./projection-D7XadqRY.js";
|
|
2
|
+
import { S as setTags, T as withLogContext, p as logException } from "./logging-DbXHuhac.js";
|
|
3
|
+
import { T as SYSTEM_IDENTITY_ID, a as getConversationStore, r as getConversationEventStore } from "./db-c__lw9GH.js";
|
|
4
|
+
import { f as credentialContextForActor } from "./registry-CTtGtXZP.js";
|
|
5
|
+
import { L as messageCardText } from "./conversation-CtjR1Zcx.js";
|
|
6
|
+
import { dt as markTurnFailed, f as ConversationTurnLifecycleService, ft as startActiveTurn, i as completeAuthPauseTurn, l as buildDeliveredTurnStatePatch, m as loadPendingMessageCards, t as finalizeFailedTurnReplyWithEvent, u as buildTurnThreadContext } from "./turn-failure-response-DH5nE6HJ.js";
|
|
7
|
+
import { n as getAssistantReplyText } from "./assistant-reply-BV8SZaVd.js";
|
|
8
|
+
import { _t as persistThreadStateById, ht as getPersistedThreadState, mt as getPersistedSandboxState, n as scheduleSessionCompletedPluginTasks, t as processPluginTask, vt as coerceThreadConversationState } from "./task-runner-BinM1l5g.js";
|
|
9
9
|
import { randomUUID } from "node:crypto";
|
|
10
10
|
import { createLocalSource, localDestinationSchema } from "@sentry/junior-plugin-api";
|
|
11
11
|
// src/chat/local/runner.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ea as sandboxEgressSignalsResponseSchema } from "./projection-
|
|
1
|
+
import { Ea as sandboxEgressSignalsResponseSchema } from "./projection-D7XadqRY.js";
|
|
2
2
|
// src/chat/local/sandbox-egress-signals.ts
|
|
3
3
|
const SANDBOX_EGRESS_SIGNALS_PATH = "/api/internal/sandbox-egress/signals";
|
|
4
4
|
const LOCAL_DEV_SERVER_TIMEOUT_MS = 1e3;
|
|
@@ -901,6 +901,7 @@ declare const conversationSummaryReportSchema: z.ZodObject<{
|
|
|
901
901
|
finishedWorkAt: z.ZodOptional<z.ZodString>;
|
|
902
902
|
isPriority: z.ZodOptional<z.ZodBoolean>;
|
|
903
903
|
unfinishedWork: z.ZodOptional<z.ZodBoolean>;
|
|
904
|
+
awaitingAuthorization: z.ZodOptional<z.ZodBoolean>;
|
|
904
905
|
}, z.core.$strict>;
|
|
905
906
|
/** One Event listed on a message that holds several Events. */
|
|
906
907
|
declare const conversationReportMessageEventSchema: z.ZodObject<{
|
|
@@ -2038,6 +2039,7 @@ declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
2038
2039
|
finishedWorkAt: z.ZodOptional<z.ZodString>;
|
|
2039
2040
|
isPriority: z.ZodOptional<z.ZodBoolean>;
|
|
2040
2041
|
unfinishedWork: z.ZodOptional<z.ZodBoolean>;
|
|
2042
|
+
awaitingAuthorization: z.ZodOptional<z.ZodBoolean>;
|
|
2041
2043
|
agentTree: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2042
2044
|
conversationId: z.ZodString;
|
|
2043
2045
|
kind: z.ZodEnum<{
|
|
@@ -3150,6 +3152,7 @@ declare const conversationDetailWithMailboxReportSchema: z.ZodObject<{
|
|
|
3150
3152
|
finishedWorkAt: z.ZodOptional<z.ZodString>;
|
|
3151
3153
|
isPriority: z.ZodOptional<z.ZodBoolean>;
|
|
3152
3154
|
unfinishedWork: z.ZodOptional<z.ZodBoolean>;
|
|
3155
|
+
awaitingAuthorization: z.ZodOptional<z.ZodBoolean>;
|
|
3153
3156
|
agentTree: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3154
3157
|
conversationId: z.ZodString;
|
|
3155
3158
|
kind: z.ZodEnum<{
|
|
@@ -5010,6 +5013,7 @@ declare const actorProfileReportSchema: z.ZodObject<{
|
|
|
5010
5013
|
finishedWorkAt: z.ZodOptional<z.ZodString>;
|
|
5011
5014
|
isPriority: z.ZodOptional<z.ZodBoolean>;
|
|
5012
5015
|
unfinishedWork: z.ZodOptional<z.ZodBoolean>;
|
|
5016
|
+
awaitingAuthorization: z.ZodOptional<z.ZodBoolean>;
|
|
5013
5017
|
}, z.core.$strict>>;
|
|
5014
5018
|
actor: z.ZodObject<{
|
|
5015
5019
|
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -5443,6 +5447,7 @@ declare const locationDetailReportSchema: z.ZodObject<{
|
|
|
5443
5447
|
finishedWorkAt: z.ZodOptional<z.ZodString>;
|
|
5444
5448
|
isPriority: z.ZodOptional<z.ZodBoolean>;
|
|
5445
5449
|
unfinishedWork: z.ZodOptional<z.ZodBoolean>;
|
|
5450
|
+
awaitingAuthorization: z.ZodOptional<z.ZodBoolean>;
|
|
5446
5451
|
}, z.core.$strict>>;
|
|
5447
5452
|
source: z.ZodLiteral<"conversation_index">;
|
|
5448
5453
|
windowEnd: z.ZodString;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as notificationScheduleSchema } from "./schedule-cP0AACm1.js";
|
|
2
|
-
import { D as conversationChildAgentTotalsSchema, S as conversationUsageSchema, b as conversationSummaryReportSchema, i as actorIdentitySchema, s as conversationAuxiliaryCostsSchema } from "./conversation-
|
|
2
|
+
import { D as conversationChildAgentTotalsSchema, S as conversationUsageSchema, b as conversationSummaryReportSchema, i as actorIdentitySchema, s as conversationAuxiliaryCostsSchema } from "./conversation-CtjR1Zcx.js";
|
|
3
3
|
import { i as fillUtcHours, r as fillUtcDays, s as sumUtcHoursIntoSixHours, w as AGENT_INVOCATION_STATUSES, x as userInputRequestSchema } from "./reporting-window-B3Ze-Qnt.js";
|
|
4
|
-
import "./automation-
|
|
5
|
-
import "./conversation-pending-messages-
|
|
4
|
+
import "./automation-CrsYnvdV.js";
|
|
5
|
+
import "./conversation-pending-messages-Cd7ShwBs.js";
|
|
6
6
|
import { t as isPushServiceEndpoint } from "./push-endpoint-CO-nomUd.js";
|
|
7
7
|
import * as z from "zod";
|
|
8
8
|
import { codeChangeStateSchema, eventMatchSchema } from "@sentry/junior-plugin-api";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
2
|
-
import { t as disconnectStateAdapter } from "./adapter-
|
|
3
|
-
import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-
|
|
1
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-yGnL9ywD.js";
|
|
2
|
+
import { t as disconnectStateAdapter } from "./adapter-zphAlWE2.js";
|
|
3
|
+
import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-_ml5D4Tk.js";
|
|
4
4
|
import { CLI_USAGE } from "./cli/run.js";
|
|
5
5
|
import { createServer } from "node:http";
|
|
6
6
|
// src/cli/service-account.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { G as isRecord, b as setSpanAttributes, h as logWarn } from "./logging-
|
|
2
|
-
import { c as fetchWithBoundedOAuthErrorBodies, i as resolvePluginHeaderEnvRefs } from "./registry-
|
|
1
|
+
import { G as isRecord, b as setSpanAttributes, h as logWarn } from "./logging-DbXHuhac.js";
|
|
2
|
+
import { c as fetchWithBoundedOAuthErrorBodies, i as resolvePluginHeaderEnvRefs } from "./registry-CTtGtXZP.js";
|
|
3
3
|
import { a as withLock, i as fenceLock, n as MUTATION_LOCK_TTL_MS } from "./locks-D-0h111u.js";
|
|
4
|
-
import { r as getStateAdapter } from "./adapter-
|
|
4
|
+
import { r as getStateAdapter } from "./adapter-zphAlWE2.js";
|
|
5
5
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
6
6
|
import { randomUUID } from "node:crypto";
|
|
7
7
|
import { UnauthorizedError, auth } from "@modelcontextprotocol/sdk/client/auth.js";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { v as __exportAll } from "./sentry-BRTJqumy.js";
|
|
2
|
-
import { Cn as renderUntrustedTag, Fn as getPluginSlackConversationLink, Ha as sandboxSkillDir, Ii as escapeSlackMrkdwnText, In as getPluginSystemPromptContributions, Ji as postSlackMessage, Li as formatSlackLink, M as normalizeConversationText, Ra as SANDBOX_DATA_ROOT, Ri as normalizeSlackReplyMarkdown, Rn as getPluginUserPromptContributions, Rr as cancelSubscriptions, Sn as renderTag$1, Ua as sandboxSkillFile, Va as SANDBOX_WORKSPACE_ROOT, Wa as sandboxSkillPathResolution, _n as TURN_CONTEXT_TAG, dn as normalizeToolNameFromResult, ei as verifyTimerWatchCredentialSubject, fn as retainRuntimeTurnContext, gi as listWorkspaces, gn as SESSION_CONTEXT_SECTION_TAG, hn as REQUEST_CONTEXT_SECTION_TAG, li as ToolInputError, ln as isToolResultError, mo as buildSentryConversationUrl, ni as getDashboardConversationLink, on as isAssistantMessage, or as getReviewItem, ot as getTurnRecord, pn as stripRuntimeTurnContext, ri as getDashboardObjectIconLink, rn as hasRuntimeTurnContext, st as listTurnSummaries, ti as JUNIOR_THREAD_STATE_TTL_MS, un as isToolResultMessage, vn as escapeClosingTags, wn as tagJson, x as toStoredConversationMessage, xn as renderChildTag, yn as escapeTagText, zn as getPlugins } from "./projection-
|
|
3
|
-
import { F as renderCurrentInstruction, L as escapeXml, R as escapeXmlText, n as botConfig } from "./config-
|
|
4
|
-
import { h as logWarn, m as logInfo, p as logException, v as serializeGenAiAttribute } from "./logging-
|
|
2
|
+
import { Cn as renderUntrustedTag, Fn as getPluginSlackConversationLink, Ha as sandboxSkillDir, Ii as escapeSlackMrkdwnText, In as getPluginSystemPromptContributions, Ji as postSlackMessage, Li as formatSlackLink, M as normalizeConversationText, Ra as SANDBOX_DATA_ROOT, Ri as normalizeSlackReplyMarkdown, Rn as getPluginUserPromptContributions, Rr as cancelSubscriptions, Sn as renderTag$1, Ua as sandboxSkillFile, Va as SANDBOX_WORKSPACE_ROOT, Wa as sandboxSkillPathResolution, _n as TURN_CONTEXT_TAG, dn as normalizeToolNameFromResult, ei as verifyTimerWatchCredentialSubject, fn as retainRuntimeTurnContext, gi as listWorkspaces, gn as SESSION_CONTEXT_SECTION_TAG, hn as REQUEST_CONTEXT_SECTION_TAG, li as ToolInputError, ln as isToolResultError, mo as buildSentryConversationUrl, ni as getDashboardConversationLink, on as isAssistantMessage, or as getReviewItem, ot as getTurnRecord, pn as stripRuntimeTurnContext, ri as getDashboardObjectIconLink, rn as hasRuntimeTurnContext, st as listTurnSummaries, ti as JUNIOR_THREAD_STATE_TTL_MS, un as isToolResultMessage, vn as escapeClosingTags, wn as tagJson, x as toStoredConversationMessage, xn as renderChildTag, yn as escapeTagText, zn as getPlugins } from "./projection-D7XadqRY.js";
|
|
3
|
+
import { F as renderCurrentInstruction, L as escapeXml, R as escapeXmlText, n as botConfig } from "./config-UsaBOQgC.js";
|
|
4
|
+
import { h as logWarn, m as logInfo, p as logException, v as serializeGenAiAttribute } from "./logging-DbXHuhac.js";
|
|
5
5
|
import { o as isUserActor, t as createActor } from "./actor-6jsm_v96.js";
|
|
6
|
-
import { J as nextDetailVersion, T as SYSTEM_IDENTITY_ID, a as getConversationStore, o as getDb, r as getConversationEventStore, s as getSqlExecutor } from "./db-
|
|
7
|
-
import { A as juniorConversations, M as juniorUsers } from "./executor-
|
|
6
|
+
import { J as nextDetailVersion, T as SYSTEM_IDENTITY_ID, a as getConversationStore, o as getDb, r as getConversationEventStore, s as getSqlExecutor } from "./db-c__lw9GH.js";
|
|
7
|
+
import { A as juniorConversations, M as juniorUsers } from "./executor-N8-D5Gvv.js";
|
|
8
8
|
import { i as isVisionImageMediaType } from "./media-BepyEUNm.js";
|
|
9
9
|
import { a as listReferenceFiles, c as soulPathCandidates, l as worldPathCandidates } from "./package-discovery-DJhGdS4c.js";
|
|
10
|
-
import { h as credentialSubjectSchema } from "./registry-
|
|
11
|
-
import { a as EVENT_SYSTEM_ACTOR, d as JUNIOR_NATIVE_EVENT_NAMESPACE, h as conversationNoteEvent, i as EVENT_MESSAGE_AUTHOR, o as isEventConversationMessage, r as EVENT_AUTHOR_ID } from "./prompt-
|
|
12
|
-
import { r as getStateAdapter } from "./adapter-
|
|
13
|
-
import { i as NO_REPLY_TOOL_NAME, r as sanitizeAssistantText } from "./assistant-reply-
|
|
10
|
+
import { h as credentialSubjectSchema } from "./registry-CTtGtXZP.js";
|
|
11
|
+
import { a as EVENT_SYSTEM_ACTOR, d as JUNIOR_NATIVE_EVENT_NAMESPACE, h as conversationNoteEvent, i as EVENT_MESSAGE_AUTHOR, o as isEventConversationMessage, r as EVENT_AUTHOR_ID } from "./prompt-CzEV4BF4.js";
|
|
12
|
+
import { r as getStateAdapter } from "./adapter-zphAlWE2.js";
|
|
13
|
+
import { i as NO_REPLY_TOOL_NAME, r as sanitizeAssistantText } from "./assistant-reply-BV8SZaVd.js";
|
|
14
14
|
import { D as userCustomizationTextSchema, v as formatUserInputAnswer } from "./reporting-window-B3Ze-Qnt.js";
|
|
15
|
-
import { r as appendAndEnqueueInboundMessage } from "./store-
|
|
16
|
-
import { Ct as eventGuidance, St as eventCatalogEntry, yt as CORE_EVENT_NAMESPACE } from "./task-runner-
|
|
15
|
+
import { r as appendAndEnqueueInboundMessage } from "./store-lotbeXq3.js";
|
|
16
|
+
import { Ct as eventGuidance, St as eventCatalogEntry, yt as CORE_EVENT_NAMESPACE } from "./task-runner-BinM1l5g.js";
|
|
17
17
|
import path from "node:path";
|
|
18
18
|
import { isDeepStrictEqual } from "node:util";
|
|
19
19
|
import * as z from "zod";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { v as __exportAll } from "./sentry-BRTJqumy.js";
|
|
2
|
-
import { h as logWarn } from "./logging-
|
|
2
|
+
import { h as logWarn } from "./logging-DbXHuhac.js";
|
|
3
3
|
import { s as skillRoots } from "./package-discovery-DJhGdS4c.js";
|
|
4
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
4
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-yGnL9ywD.js";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import * as z from "zod";
|
|
7
7
|
import fs from "node:fs/promises";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { v as __exportAll } from "./sentry-BRTJqumy.js";
|
|
2
|
-
import { n as botConfig } from "./config-
|
|
3
|
-
import { o as getDb, x as conversationKindFromRow } from "./db-
|
|
4
|
-
import { A as juniorConversations } from "./executor-
|
|
5
|
-
import { dn as actorFromRun, en as AgentDepthLimitError, fn as toolInvocationDestination } from "./agent-runner-
|
|
6
|
-
import { n as createAndEnqueueAgentInvocation } from "./work-
|
|
2
|
+
import { n as botConfig } from "./config-UsaBOQgC.js";
|
|
3
|
+
import { o as getDb, x as conversationKindFromRow } from "./db-c__lw9GH.js";
|
|
4
|
+
import { A as juniorConversations } from "./executor-N8-D5Gvv.js";
|
|
5
|
+
import { dn as actorFromRun, en as AgentDepthLimitError, fn as toolInvocationDestination } from "./agent-runner-ke-hOiuv.js";
|
|
6
|
+
import { n as createAndEnqueueAgentInvocation } from "./work-Cw6Fzvfz.js";
|
|
7
7
|
import { desc, eq, sql } from "drizzle-orm";
|
|
8
8
|
// src/chat/conversations/lineage.ts
|
|
9
9
|
/**
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { h as startSpan } from "./sentry-BRTJqumy.js";
|
|
2
|
-
import { $ as loadTurnCheckpoint, $a as readConversationAccessFromSql, A as latestConversationMessageSeq, Ao as lookupSlackUserNames, Cr as reviewItemNeedsSomeone, D as estimateConversationMessagesTokens, E as buildConversationContext, En as createUserTokenStore, Eo as listConversationAnnotationsById, F as turnHasReply, Fo as piMessageFromHistoryItem, H as PluginCredentialFailureError, Hi as addReactionToMessage, I as upsertConversationMessage, Ii as escapeSlackMrkdwnText, Ji as postSlackMessage, Jt as buildTurnErrorResponse, K as AuthorizationFlowDisabledError, Li as formatSlackLink, M as normalizeConversationText, N as recordDeliveredAssistantMessage, No as configValueSchema, Nt as moveIdleConversationDestination, O as getConversationMessageSlackTs, On as webActorUserIds, P as trimConversationMessages, Qa as createConversationAccessReader, Qt as persistWithRetry, Rr as cancelSubscriptions, Rt as releaseInboundMessage, S as resolveConversationTitle, To as listConversationAnnotations, Ui as deleteSlackMessage, Vi as truncateStatusText, Wi as getSlackMessagePermalink, X as clearPendingAuth, Ya as createPluginLogger, Yi as removeReactionFromMessage, Za as canAddConversationMessages, _o as getSlackFileId, a as loadProjection, aa as getSlackClient, ao as viewerMarksFromParticipant, at as failTurnRecord, b as persistConversationMessages, bo as recordSlackAttachment, ca as normalizeSlackConversationId, co as readLatestConversationBrief, cr as listReplyActionItems, ct as recordTurnSummary, d as recordAuthorizationCompleted, do as readConversationEventPageAround, eo as conversationHasParticipantUser, et as lostWorkerBeforeFirstSave, fr as takeReviewItem, go as notInheritedByForkChild, h as recordSubscribedReplyRoute, hr as canActOnReviewItem, i as loadConversationProjection, ia as getHeaderString, io as conversationViewerMarks, it as completeTurnRecord, j as markConversationMessage, jo as createPluginCache, k as isHumanConversationMessage, ko as lookupSlackUser, lo as readConversationEventPage, lr as listWaitingConversations, mn as trimTrailingAssistantMessages, mo as buildSentryConversationUrl, n as commitMessages, na as downloadPrivateSlackFile, ni as getDashboardConversationLink, no as conversationIsNotUnsubscribedRoot, nr as closeReviewItem, nt as saveTurnCheckpoint, o as loadTurnProjection, or as getReviewItem, ot as getTurnRecord, ro as conversationPinnedForUser, rt as abandonTurnRecord, sa as isDmChannel, st as listTurnSummaries, t as commitAcceptedReply, ta as SlackActionError, to as conversationIsMemberRoot, tt as pauseLostWorkerTurn, ua as withSlackRetries, uo as readConversationEventPageAfter, v as hydrateConversationMessages, vr as canUserReadReviewItem, w as fallbackShortTitle, xo as slackAttachmentsVersionQuery, y as persistConversationMessageWindow, yo as readAttachmentVisionSummary, yr as isOnlyAssignee, zi as normalizeSlackStatusText, zn as getPlugins } from "./projection-
|
|
3
|
-
import { A as estimateTextTokens, E as resolveGatewayModel, L as escapeXml, W as isProviderRetryError, c as getSlackClientSecret, i as getChatConfig, j as textCharsForTokens, l as getSlackSigningSecret, n as botConfig, o as getSlackBotToken, s as getSlackClientId, v as normalizeSlackEmojiName } from "./config-
|
|
4
|
-
import { E as withSpan, G as isRecord, K as toOptionalNumber, S as setTags, T as withLogContext, b as setSpanAttributes, f as logError, h as logWarn, m as logInfo, n as createChatSdkLogger, o as getActiveTraceContext, p as logException, q as toOptionalString, s as getActiveTraceId, t as buildTurnFailureResponse, y as setSentryUser } from "./logging-
|
|
5
|
-
import { t as JUNIOR_VERSION } from "./version-
|
|
2
|
+
import { $ as loadTurnCheckpoint, $a as readConversationAccessFromSql, A as latestConversationMessageSeq, Ao as lookupSlackUserNames, Cr as reviewItemNeedsSomeone, D as estimateConversationMessagesTokens, E as buildConversationContext, En as createUserTokenStore, Eo as listConversationAnnotationsById, F as turnHasReply, Fo as piMessageFromHistoryItem, H as PluginCredentialFailureError, Hi as addReactionToMessage, I as upsertConversationMessage, Ii as escapeSlackMrkdwnText, Ji as postSlackMessage, Jt as buildTurnErrorResponse, K as AuthorizationFlowDisabledError, Li as formatSlackLink, M as normalizeConversationText, N as recordDeliveredAssistantMessage, No as configValueSchema, Nt as moveIdleConversationDestination, O as getConversationMessageSlackTs, On as webActorUserIds, P as trimConversationMessages, Qa as createConversationAccessReader, Qt as persistWithRetry, Rr as cancelSubscriptions, Rt as releaseInboundMessage, S as resolveConversationTitle, To as listConversationAnnotations, Ui as deleteSlackMessage, Vi as truncateStatusText, Wi as getSlackMessagePermalink, X as clearPendingAuth, Ya as createPluginLogger, Yi as removeReactionFromMessage, Za as canAddConversationMessages, _o as getSlackFileId, a as loadProjection, aa as getSlackClient, ao as viewerMarksFromParticipant, at as failTurnRecord, b as persistConversationMessages, bo as recordSlackAttachment, ca as normalizeSlackConversationId, co as readLatestConversationBrief, cr as listReplyActionItems, ct as recordTurnSummary, d as recordAuthorizationCompleted, do as readConversationEventPageAround, eo as conversationHasParticipantUser, et as lostWorkerBeforeFirstSave, fr as takeReviewItem, go as notInheritedByForkChild, h as recordSubscribedReplyRoute, hr as canActOnReviewItem, i as loadConversationProjection, ia as getHeaderString, io as conversationViewerMarks, it as completeTurnRecord, j as markConversationMessage, jo as createPluginCache, k as isHumanConversationMessage, ko as lookupSlackUser, lo as readConversationEventPage, lr as listWaitingConversations, mn as trimTrailingAssistantMessages, mo as buildSentryConversationUrl, n as commitMessages, na as downloadPrivateSlackFile, ni as getDashboardConversationLink, no as conversationIsNotUnsubscribedRoot, nr as closeReviewItem, nt as saveTurnCheckpoint, o as loadTurnProjection, or as getReviewItem, ot as getTurnRecord, ro as conversationPinnedForUser, rt as abandonTurnRecord, sa as isDmChannel, st as listTurnSummaries, t as commitAcceptedReply, ta as SlackActionError, to as conversationIsMemberRoot, tt as pauseLostWorkerTurn, ua as withSlackRetries, uo as readConversationEventPageAfter, v as hydrateConversationMessages, vr as canUserReadReviewItem, w as fallbackShortTitle, xo as slackAttachmentsVersionQuery, y as persistConversationMessageWindow, yo as readAttachmentVisionSummary, yr as isOnlyAssignee, zi as normalizeSlackStatusText, zn as getPlugins } from "./projection-D7XadqRY.js";
|
|
3
|
+
import { A as estimateTextTokens, E as resolveGatewayModel, L as escapeXml, W as isProviderRetryError, c as getSlackClientSecret, i as getChatConfig, j as textCharsForTokens, l as getSlackSigningSecret, n as botConfig, o as getSlackBotToken, s as getSlackClientId, v as normalizeSlackEmojiName } from "./config-UsaBOQgC.js";
|
|
4
|
+
import { E as withSpan, G as isRecord, K as toOptionalNumber, S as setTags, T as withLogContext, b as setSpanAttributes, f as logError, h as logWarn, m as logInfo, n as createChatSdkLogger, o as getActiveTraceContext, p as logException, q as toOptionalString, s as getActiveTraceId, t as buildTurnFailureResponse, y as setSentryUser } from "./logging-DbXHuhac.js";
|
|
5
|
+
import { t as JUNIOR_VERSION } from "./version-C3sVz3bv.js";
|
|
6
6
|
import { f as parseSlackTeamId, h as parseSlackMessageTs, i as isActorUserId, n as createSlackActor, o as isUserActor, r as createSlackResumeActor, s as parseActorUserId, t as createActor, u as parseSlackChannelId } from "./actor-6jsm_v96.js";
|
|
7
|
-
import { B as addAgentTurnUsage, C as setFirstConversationLocation, D as resolveActorIdentityId, G as resolveRootConversationId, J as nextDetailVersion, L as claimProviderConversation, O as saveActorAvatar, Q as requireSlackDestination, R as getConversationIdByProviderConversation, S as locationFromRow, U as agentTurnUsageSchema, W as hasAgentTurnUsage, X as createSlackDestination, _ as setArchivedAt, a as getConversationStore, b as withConversationMutationLock, g as readConversationTrees, m as conversationAncestors, o as getDb, p as withConversationEventLock, r as getConversationEventStore, s as getSqlExecutor, v as loadConversationSlackTenantIds, x as conversationKindFromRow, z as parseSessionSource } from "./db-
|
|
8
|
-
import { A as juniorConversations, D as juniorCodeChanges, E as juniorConversationAnnotations, M as juniorUsers, N as juniorDestinations, _ as juniorConversationReadPositions, b as juniorConversationBriefs, j as juniorIdentities, l as juniorReviewItems, s as juniorReviewItemConversations, v as juniorConversationParticipants, w as juniorConversationEvents } from "./executor-
|
|
7
|
+
import { B as addAgentTurnUsage, C as setFirstConversationLocation, D as resolveActorIdentityId, G as resolveRootConversationId, J as nextDetailVersion, L as claimProviderConversation, O as saveActorAvatar, Q as requireSlackDestination, R as getConversationIdByProviderConversation, S as locationFromRow, U as agentTurnUsageSchema, W as hasAgentTurnUsage, X as createSlackDestination, _ as setArchivedAt, a as getConversationStore, b as withConversationMutationLock, g as readConversationTrees, m as conversationAncestors, o as getDb, p as withConversationEventLock, r as getConversationEventStore, s as getSqlExecutor, v as loadConversationSlackTenantIds, x as conversationKindFromRow, z as parseSessionSource } from "./db-c__lw9GH.js";
|
|
8
|
+
import { A as juniorConversations, D as juniorCodeChanges, E as juniorConversationAnnotations, M as juniorUsers, N as juniorDestinations, _ as juniorConversationReadPositions, b as juniorConversationBriefs, j as juniorIdentities, l as juniorReviewItems, s as juniorReviewItemConversations, v as juniorConversationParticipants, w as juniorConversationEvents } from "./executor-N8-D5Gvv.js";
|
|
9
9
|
import { _ as instructionProvenanceFor, a as KNOWN_CONVERSATION_EVENT_TYPES, h as contextProvenance, i as isVisionImageMediaType, r as detectImageMediaType } from "./media-BepyEUNm.js";
|
|
10
|
-
import { d as actorLogContext, f as credentialContextForActor } from "./registry-
|
|
11
|
-
import { A as runWithSlackInstallation, At as cancelSignInWait, B as listThreadReplies, Bt as canShareTurn, Dt as stopChildAgentsOf, Et as stopChildAgentsBelow, F as resolveSlackChannelIdFromThreadId, Ft as getPausedTurnRequest, I as checkSlackChannelReadAccess, Jt as withTurnSpan, Kt as getTurnInputSpanAttributes, L as joinPublicChannelForRead, Lt as wakePausedTurn, M as parseSlackThreadId, N as readSlackRawMessageContext, Nt as supersedeTurnForInput, P as resolveSlackChannelIdFromMessage, Pt as createPausedTurns, R as getConversationInfo, Rt as getTurnAuthorization, S as createSlackReviewItemShow, St as markConversationRead, Tt as throwApiError, Ut as AgentRunError, V as resolveDestinationVisibility, Wt as executeTurn, X as readConversationSourceTask, Xt as getWebAuthorization, Zt as canPauseConversationDelivery, at as deliverReviewItemChange, b as renderAttachmentText, ct as acceptsWebMessages, dt as createAndEnqueueConversation, ft as createConversationId, ht as decodeInputImages, i as buildAuthPauseResponse, jt as createConversationTurnWorker, lt as appendAndEnqueueWebMessage, mt as webActorFromUser, n as executeAgentRun, p as latestProgressStatus, pn as shouldEmitDevAgentTrace, pt as recordWebConversationActivity, qt as turnInputTelemetry, t as createAgentRunner, un as RetryableDeliveryError, x as renderBlockText, xt as conversationReadPositionQuery, yt as storeAttachment, zt as canJoinTurn } from "./agent-runner-
|
|
12
|
-
import { a as EVENT_SYSTEM_ACTOR, c as completeDecision, o as isEventConversationMessage, u as completeText } from "./prompt-
|
|
10
|
+
import { d as actorLogContext, f as credentialContextForActor } from "./registry-CTtGtXZP.js";
|
|
11
|
+
import { A as runWithSlackInstallation, At as cancelSignInWait, B as listThreadReplies, Bt as canShareTurn, Dt as stopChildAgentsOf, Et as stopChildAgentsBelow, F as resolveSlackChannelIdFromThreadId, Ft as getPausedTurnRequest, I as checkSlackChannelReadAccess, Jt as withTurnSpan, Kt as getTurnInputSpanAttributes, L as joinPublicChannelForRead, Lt as wakePausedTurn, M as parseSlackThreadId, N as readSlackRawMessageContext, Nt as supersedeTurnForInput, P as resolveSlackChannelIdFromMessage, Pt as createPausedTurns, R as getConversationInfo, Rt as getTurnAuthorization, S as createSlackReviewItemShow, St as markConversationRead, Tt as throwApiError, Ut as AgentRunError, V as resolveDestinationVisibility, Wt as executeTurn, X as readConversationSourceTask, Xt as getWebAuthorization, Zt as canPauseConversationDelivery, at as deliverReviewItemChange, b as renderAttachmentText, ct as acceptsWebMessages, dt as createAndEnqueueConversation, ft as createConversationId, ht as decodeInputImages, i as buildAuthPauseResponse, jt as createConversationTurnWorker, lt as appendAndEnqueueWebMessage, mt as webActorFromUser, n as executeAgentRun, p as latestProgressStatus, pn as shouldEmitDevAgentTrace, pt as recordWebConversationActivity, qt as turnInputTelemetry, t as createAgentRunner, un as RetryableDeliveryError, x as renderBlockText, xt as conversationReadPositionQuery, yt as storeAttachment, zt as canJoinTurn } from "./agent-runner-ke-hOiuv.js";
|
|
12
|
+
import { a as EVENT_SYSTEM_ACTOR, c as completeDecision, o as isEventConversationMessage, u as completeText } from "./prompt-CzEV4BF4.js";
|
|
13
13
|
import { r as acquireActiveLock } from "./locks-D-0h111u.js";
|
|
14
|
-
import { f as identityAvatarUrl, h as readUserAvatarUrls } from "./viewer-
|
|
15
|
-
import { a as setStateValues, i as getStateValues, r as getStateAdapter } from "./adapter-
|
|
16
|
-
import { W as readMessageAttachments, d as conversationEventPageSchema, l as conversationDetailReportSchema, m as conversationFeedSchema } from "./conversation-
|
|
17
|
-
import { c as listConversationWork, l as readLastUserMessageAtByConversation, s as isConversationWorkDone } from "./warmup-
|
|
18
|
-
import { g as getVercelConversationWorkQueue, k as getTurnRequestDeadline } from "./background-compaction-queue-
|
|
19
|
-
import { a as persistAuthPauseTurnState, at as getConversationTurnBoundaryError, b as getChildAgentLabel, c as getTurnUserSlackMessageTs, ct as isTurnInputDeferredError, d as loadThreadContextTrimFloor, dt as markTurnFailed, ft as startActiveTurn, i as completeAuthPauseTurn, it as TurnInputDeferredError, l as buildDeliveredTurnStatePatch, lt as markTurnClosed, m as loadPendingMessageCards, mt as buildDeterministicTurnId, n as getAgentTurnDiagnosticsAttributes, nt as CooperativeTurnYieldError, o as getTurnUserMessage, ot as isCooperativeTurnYieldError, p as getTurnLifecycle, pt as buildDeterministicAssistantMessageId, r as requireTurnFailureEventId, rt as TurnInputCommitLostError, s as getTurnUserReplyAttachmentContext, st as isTurnInputCommitLostError, t as finalizeFailedTurnReplyWithEvent, tt as ConversationTurnBoundaryError, u as buildTurnThreadContext, ut as markTurnCompleted } from "./turn-failure-response-
|
|
20
|
-
import { n as getAssistantReplyText } from "./assistant-reply-
|
|
21
|
-
import { $ as withoutSavedSteeringMessages, B as maybePostAutomatedTurnLimitNotice, H as resolveSlackReplyTarget, K as recordFinishedTurnForAutomatedLimit, U as sendSlackReply, X as buildSteeringPiMessage, b as conversationSubtree, c as loadReviewItemInput, dt as deliversFinalText, ft as finishedRunReply, g as resolveMailboxTurnWork, gt as runDispatchOutcome, l as savedInputInstruction, o as skipInputAfterConversationStop, pt as postsRunNotices, r as markConversationsStopped, rt as isExperimentalFeatureEnabled, x as conversationSubtreeColumns, y as legacyWebMailboxMetadataSchema } from "./session-stop-
|
|
14
|
+
import { f as identityAvatarUrl, h as readUserAvatarUrls } from "./viewer-so1MPU10.js";
|
|
15
|
+
import { a as setStateValues, i as getStateValues, r as getStateAdapter } from "./adapter-zphAlWE2.js";
|
|
16
|
+
import { W as readMessageAttachments, d as conversationEventPageSchema, l as conversationDetailReportSchema, m as conversationFeedSchema } from "./conversation-CtjR1Zcx.js";
|
|
17
|
+
import { c as listConversationWork, l as readLastUserMessageAtByConversation, s as isConversationWorkDone } from "./warmup-BH9HRBCI.js";
|
|
18
|
+
import { g as getVercelConversationWorkQueue, k as getTurnRequestDeadline } from "./background-compaction-queue-QDH_JS3D.js";
|
|
19
|
+
import { a as persistAuthPauseTurnState, at as getConversationTurnBoundaryError, b as getChildAgentLabel, c as getTurnUserSlackMessageTs, ct as isTurnInputDeferredError, d as loadThreadContextTrimFloor, dt as markTurnFailed, ft as startActiveTurn, i as completeAuthPauseTurn, it as TurnInputDeferredError, l as buildDeliveredTurnStatePatch, lt as markTurnClosed, m as loadPendingMessageCards, mt as buildDeterministicTurnId, n as getAgentTurnDiagnosticsAttributes, nt as CooperativeTurnYieldError, o as getTurnUserMessage, ot as isCooperativeTurnYieldError, p as getTurnLifecycle, pt as buildDeterministicAssistantMessageId, r as requireTurnFailureEventId, rt as TurnInputCommitLostError, s as getTurnUserReplyAttachmentContext, st as isTurnInputCommitLostError, t as finalizeFailedTurnReplyWithEvent, tt as ConversationTurnBoundaryError, u as buildTurnThreadContext, ut as markTurnCompleted } from "./turn-failure-response-DH5nE6HJ.js";
|
|
20
|
+
import { n as getAssistantReplyText } from "./assistant-reply-BV8SZaVd.js";
|
|
21
|
+
import { $ as withoutSavedSteeringMessages, B as maybePostAutomatedTurnLimitNotice, H as resolveSlackReplyTarget, K as recordFinishedTurnForAutomatedLimit, U as sendSlackReply, X as buildSteeringPiMessage, b as conversationSubtree, c as loadReviewItemInput, dt as deliversFinalText, ft as finishedRunReply, g as resolveMailboxTurnWork, gt as runDispatchOutcome, l as savedInputInstruction, o as skipInputAfterConversationStop, pt as postsRunNotices, r as markConversationsStopped, rt as isExperimentalFeatureEnabled, x as conversationSubtreeColumns, y as legacyWebMailboxMetadataSchema } from "./session-stop-BbsyIbK2.js";
|
|
22
22
|
import { b as normalizeUserInputAnswer, p as webMessageId, y as isEmptyUserInputAnswer } from "./reporting-window-B3Ze-Qnt.js";
|
|
23
|
-
import { T as stopConversationWork, a as cancelHumanFacingPendingMessages, g as getConversationWorkState, h as getConversation, m as ensureConversationWake, r as appendAndEnqueueInboundMessage, s as claimInboundMessage, w as steerWebPendingMessages } from "./store-
|
|
24
|
-
import { _ as markDispatchBlocked, _t as persistThreadStateById, a as claimDispatchMailboxAppend, b as markDispatchRunning, c as getDispatchConversationId, d as getDispatchRecord, dt as resolveConversationRouting, f as getDispatchTurnId, ft as resolveTurnSessionRouting, g as markDispatchAwaitingResume, gt as persistThreadRuntimeState, ht as getPersistedThreadState, m as isTerminalDispatchStatus, mt as getPersistedSandboxState, n as scheduleSessionCompletedPluginTasks, o as confirmDispatchMailboxAppend, pt as getLocationConfigurationService, st as readAutomationTitlesByConversationId, u as getDispatchInputMessageId, v as markDispatchCompleted, vt as coerceThreadConversationState, y as markDispatchFailed } from "./task-runner-
|
|
25
|
-
import { d as healthReportSchema, s as conversationPendingMessagesReportSchema } from "./conversation-pending-messages-
|
|
26
|
-
import { r as endActiveAgentInvocations, s as resolveThreadTurnWork } from "./work-
|
|
27
|
-
import { a as withAgentInvocationResultActors, n as enqueueAgentInvocationResult, t as createChildConversationWorker } from "./result-
|
|
28
|
-
import { t as bindMessageAgent } from "./message-
|
|
29
|
-
import { r as readConversationLineage, t as bindSpawnAgent } from "./spawn-
|
|
23
|
+
import { T as stopConversationWork, a as cancelHumanFacingPendingMessages, g as getConversationWorkState, h as getConversation, m as ensureConversationWake, r as appendAndEnqueueInboundMessage, s as claimInboundMessage, w as steerWebPendingMessages } from "./store-lotbeXq3.js";
|
|
24
|
+
import { _ as markDispatchBlocked, _t as persistThreadStateById, a as claimDispatchMailboxAppend, b as markDispatchRunning, c as getDispatchConversationId, d as getDispatchRecord, dt as resolveConversationRouting, f as getDispatchTurnId, ft as resolveTurnSessionRouting, g as markDispatchAwaitingResume, gt as persistThreadRuntimeState, ht as getPersistedThreadState, m as isTerminalDispatchStatus, mt as getPersistedSandboxState, n as scheduleSessionCompletedPluginTasks, o as confirmDispatchMailboxAppend, pt as getLocationConfigurationService, st as readAutomationTitlesByConversationId, u as getDispatchInputMessageId, v as markDispatchCompleted, vt as coerceThreadConversationState, y as markDispatchFailed } from "./task-runner-BinM1l5g.js";
|
|
25
|
+
import { d as healthReportSchema, s as conversationPendingMessagesReportSchema } from "./conversation-pending-messages-Cd7ShwBs.js";
|
|
26
|
+
import { r as endActiveAgentInvocations, s as resolveThreadTurnWork } from "./work-Cw6Fzvfz.js";
|
|
27
|
+
import { a as withAgentInvocationResultActors, n as enqueueAgentInvocationResult, t as createChildConversationWorker } from "./result-Cr9tUdfS.js";
|
|
28
|
+
import { t as bindMessageAgent } from "./message-D1MEh8iR.js";
|
|
29
|
+
import { r as readConversationLineage, t as bindSpawnAgent } from "./spawn-CktAopv_.js";
|
|
30
30
|
import { createHash, createHmac, timingSafeEqual } from "node:crypto";
|
|
31
31
|
import * as z from "zod";
|
|
32
32
|
import { and, asc, desc, eq, gt, inArray, isNotNull, isNull, lte, max, ne, or, sql } from "drizzle-orm";
|
|
@@ -302,6 +302,58 @@ function createAgentDispatchConversationWorker(options) {
|
|
|
302
302
|
}
|
|
303
303
|
};
|
|
304
304
|
}
|
|
305
|
+
// src/chat/conversations/sql/authorization-wait.ts
|
|
306
|
+
/**
|
|
307
|
+
* How long a person can finish an authorization. The MCP auth session and the
|
|
308
|
+
* dashboard connect prompt expire after this time, so the parked Turn cannot
|
|
309
|
+
* resume after it.
|
|
310
|
+
*/
|
|
311
|
+
const AUTHORIZATION_WAIT = sql.raw(`interval '24 hours'`);
|
|
312
|
+
/**
|
|
313
|
+
* The request and the events that end its wait: the person connected, or a
|
|
314
|
+
* Turn started or ended after the request. A stop or new input ends the
|
|
315
|
+
* parked Turn with `turn_completed`. A child agent invocation that needs a
|
|
316
|
+
* connection abandons its Turn and ends it as `blocked`, so nothing resumes
|
|
317
|
+
* it and its parent gets the result instead.
|
|
318
|
+
*/
|
|
319
|
+
const AUTHORIZATION_WAIT_EVENT_TYPES = [
|
|
320
|
+
"authorization_requested",
|
|
321
|
+
"authorization_completed",
|
|
322
|
+
"turn_started",
|
|
323
|
+
"turn_completed",
|
|
324
|
+
"turn_failed"
|
|
325
|
+
];
|
|
326
|
+
/**
|
|
327
|
+
* SQL: the Conversation waits on a person to finish an authorization. A Turn
|
|
328
|
+
* that needs a connection parks with execution `idle`, so only the durable
|
|
329
|
+
* `authorization_requested` event shows the wait: it is the newest of these
|
|
330
|
+
* events and has not expired.
|
|
331
|
+
*/
|
|
332
|
+
function awaitsAuthorization(conversationId) {
|
|
333
|
+
const events = juniorConversationEvents;
|
|
334
|
+
return sql`coalesce((
|
|
335
|
+
select ${events.type} = 'authorization_requested'
|
|
336
|
+
and ${events.createdAt} > now() - ${AUTHORIZATION_WAIT}
|
|
337
|
+
from ${events}
|
|
338
|
+
where ${events.conversationId} = ${conversationId}
|
|
339
|
+
and ${events.type} in (${sql.join(AUTHORIZATION_WAIT_EVENT_TYPES.map((type) => sql`${type}`), sql`, `)})
|
|
340
|
+
order by ${events.seq} desc
|
|
341
|
+
limit 1
|
|
342
|
+
), false)`;
|
|
343
|
+
}
|
|
344
|
+
/**
|
|
345
|
+
* SQL: the root or a child Conversation of `rootConversationId` waits on a
|
|
346
|
+
* person to finish an authorization.
|
|
347
|
+
*/
|
|
348
|
+
function treeAwaitsAuthorization(rootConversationId) {
|
|
349
|
+
const tree = alias(juniorConversations, "authorization_tree");
|
|
350
|
+
return sql`exists (
|
|
351
|
+
select 1 from ${juniorConversations} as ${tree}
|
|
352
|
+
where (${tree.conversationId} = ${rootConversationId}
|
|
353
|
+
or ${tree.rootConversationId} = ${rootConversationId})
|
|
354
|
+
and ${awaitsAuthorization(tree.conversationId)}
|
|
355
|
+
)`;
|
|
356
|
+
}
|
|
305
357
|
// src/api/conversations/auto-archive.ts
|
|
306
358
|
const HOUR_MS = 36e5;
|
|
307
359
|
/** Participant rows checked per page. A run reads pages until none remain. */
|
|
@@ -318,12 +370,13 @@ function runCutoff(run) {
|
|
|
318
370
|
return /* @__PURE__ */ new Date(run.now.getTime() - run.graceHours * HOUR_MS);
|
|
319
371
|
}
|
|
320
372
|
/**
|
|
321
|
-
* True when the participant row's root and every child conversation are idle
|
|
322
|
-
*
|
|
323
|
-
*
|
|
373
|
+
* True when the participant row's root and every child conversation are idle,
|
|
374
|
+
* do not wait on a person to finish an authorization, and had no activity
|
|
375
|
+
* after the cutoff. Child activity does not move the root's
|
|
376
|
+
* `lastActivityAt`, so the whole tree is checked.
|
|
324
377
|
*/
|
|
325
|
-
function treeIsQuiet(
|
|
326
|
-
const active = getDb().select({ conversationId: juniorConversations.conversationId }).from(juniorConversations).where(and(or(eq(juniorConversations.conversationId, juniorConversationParticipants.rootConversationId), eq(juniorConversations.rootConversationId, juniorConversationParticipants.rootConversationId)), or(ne(juniorConversations.executionStatus, "idle"), gt(juniorConversations.lastActivityAt,
|
|
378
|
+
function treeIsQuiet(run) {
|
|
379
|
+
const active = getDb().select({ conversationId: juniorConversations.conversationId }).from(juniorConversations).where(and(or(eq(juniorConversations.conversationId, juniorConversationParticipants.rootConversationId), eq(juniorConversations.rootConversationId, juniorConversationParticipants.rootConversationId)), or(ne(juniorConversations.executionStatus, "idle"), gt(juniorConversations.lastActivityAt, runCutoff(run)), awaitsAuthorization(juniorConversations.conversationId))));
|
|
327
380
|
return sql`not exists (${active})`;
|
|
328
381
|
}
|
|
329
382
|
/**
|
|
@@ -359,7 +412,7 @@ function rootIsUnarchived() {
|
|
|
359
412
|
* changed setting wins over a stale read.
|
|
360
413
|
*/
|
|
361
414
|
function archivableRow(run) {
|
|
362
|
-
return and(eq(juniorConversationParticipants.userId, run.userId), isNull(juniorConversationParticipants.unsubscribedAt), rootIsUnarchived(), noParticipantKeepsRoot(), lte(juniorConversationParticipants.lastMessageAt, runCutoff(run)), runOptsIn(run), run.kind === "scheduled" ? sql`${juniorUsers.autoArchiveGraceHours} <= ${run.graceHours}` : void 0, treeIsQuiet(
|
|
415
|
+
return and(eq(juniorConversationParticipants.userId, run.userId), isNull(juniorConversationParticipants.unsubscribedAt), rootIsUnarchived(), noParticipantKeepsRoot(), lte(juniorConversationParticipants.lastMessageAt, runCutoff(run)), runOptsIn(run), run.kind === "scheduled" ? sql`${juniorUsers.autoArchiveGraceHours} <= ${run.graceHours}` : void 0, treeIsQuiet(run), notWaitingOnAnyone());
|
|
363
416
|
}
|
|
364
417
|
/**
|
|
365
418
|
* One page of the user's participant rows on unarchived roots that may be
|
|
@@ -9384,7 +9437,10 @@ function conversationCodeRepositoryFilter(repositoryId, viewerUserId) {
|
|
|
9384
9437
|
)`, or(eq(juniorDestinations.visibility, "public"), viewerUserId ? conversationHasParticipantUser(viewerUserId) : void 0));
|
|
9385
9438
|
}
|
|
9386
9439
|
async function conversationRows(db, { codeRepository, conversationIds, filter, includePrivateBriefs = false, limit, query, status }) {
|
|
9387
|
-
return
|
|
9440
|
+
return db.select({
|
|
9441
|
+
...conversationRecordColumns,
|
|
9442
|
+
awaitingAuthorization: treeAwaitsAuthorization(juniorConversations.conversationId)
|
|
9443
|
+
}).from(juniorConversations).leftJoin(juniorDestinations, conversationRecordJoins.location).leftJoin(juniorIdentities, conversationRecordJoins.identity).leftJoin(juniorUsers, conversationRecordJoins.user).where(and(isNull(juniorConversations.parentConversationId), isNull(juniorConversations.quickQuestionAt), conversationFeedMembershipFilter(status, filter), conversationIds ? inArray(juniorConversations.conversationId, conversationIds) : void 0, codeRepository ? conversationCodeRepositoryFilter(codeRepository.id, codeRepository.viewerUserId) : void 0, query ? or(sql`strpos(lower(coalesce(${juniorConversations.title}, '')), ${query}) > 0`, sql`exists (
|
|
9388
9444
|
select 1
|
|
9389
9445
|
from ${juniorConversationBriefs}
|
|
9390
9446
|
where ${juniorConversationBriefs.conversationId} = ${juniorConversations.conversationId}
|
|
@@ -9584,6 +9640,7 @@ async function readConversationFeedFromSql(options = {}) {
|
|
|
9584
9640
|
return {
|
|
9585
9641
|
...summary,
|
|
9586
9642
|
...work,
|
|
9643
|
+
...row.awaitingAuthorization ? { awaitingAuthorization: true } : void 0,
|
|
9587
9644
|
...threads ? { threads } : void 0,
|
|
9588
9645
|
...participants && participants.length > 0 ? { participants } : void 0,
|
|
9589
9646
|
...activityPreview ? { activityPreview } : void 0,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Bt as requestConversationWork$1, Ct as deadLetterAttempt$1, Et as getConversationWorkState$1, Ft as recordAttemptFailure$1, Ht as steerWebPendingMessages$1, It as recordConversationRetry$1, Lt as releaseConversationWork$1, Mt as markConversationWorkEnqueued$1, Ot as hasRunnableConversationWork, Rt as releaseInboundMessage, Tt as getConversation$1, Ut as stopConversationWork$1, Vt as startConversationWork$1, _t as claimInboundMessage$1, bt as completeConversationStop$1, dt as ackMessages$1, ft as appendExclusiveInboundMessage, gt as checkInConversationWork$1, ht as cancelHumanFacingPendingMessages$1, jt as listActiveConversationIds$1, mt as beginConversationResume$1, pt as appendInboundMessage, vt as clearConsumedConversationWake$1, wt as drainConversationMailbox$1, xt as completeConversationWork$1, yt as clearExpiredConversationLease$1, zt as requestAnotherSlice$1 } from "./projection-
|
|
2
|
-
import { a as getConversationStore } from "./db-
|
|
3
|
-
import "./background-compaction-queue-
|
|
1
|
+
import { Bt as requestConversationWork$1, Ct as deadLetterAttempt$1, Et as getConversationWorkState$1, Ft as recordAttemptFailure$1, Ht as steerWebPendingMessages$1, It as recordConversationRetry$1, Lt as releaseConversationWork$1, Mt as markConversationWorkEnqueued$1, Ot as hasRunnableConversationWork, Rt as releaseInboundMessage, Tt as getConversation$1, Ut as stopConversationWork$1, Vt as startConversationWork$1, _t as claimInboundMessage$1, bt as completeConversationStop$1, dt as ackMessages$1, ft as appendExclusiveInboundMessage, gt as checkInConversationWork$1, ht as cancelHumanFacingPendingMessages$1, jt as listActiveConversationIds$1, mt as beginConversationResume$1, pt as appendInboundMessage, vt as clearConsumedConversationWake$1, wt as drainConversationMailbox$1, xt as completeConversationWork$1, yt as clearExpiredConversationLease$1, zt as requestAnotherSlice$1 } from "./projection-D7XadqRY.js";
|
|
2
|
+
import { a as getConversationStore } from "./db-c__lw9GH.js";
|
|
3
|
+
import "./background-compaction-queue-QDH_JS3D.js";
|
|
4
4
|
// src/chat/task-execution/store.ts
|
|
5
5
|
function metadataStore(options) {
|
|
6
6
|
return options.conversationStore ?? getConversationStore();
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { v as __exportAll } from "./sentry-BRTJqumy.js";
|
|
2
|
-
import { Fa as createPluginEmbedder, Gi as openSlackDirectMessage, Hn as coreTaskRegistrations, Ia as createPluginModel, Ii as escapeSlackMrkdwnText, Ja as createPluginModelCostRecorder, Ji as postSlackMessage, Li as formatSlackLink, Mo as createDurableLocationConfigurationService, Ya as createPluginLogger, an as instructionTextForProjection, b as persistConversationMessages, dn as normalizeToolNameFromResult, en as getPiMessageRole, jo as createPluginCache, li as ToolInputError, ln as isToolResultError, oi as getDashboardTaskLink, oo as createPluginConversationEvents, ot as getTurnRecord, pn as stripRuntimeTurnContext, ti as JUNIOR_THREAD_STATE_TTL_MS, ui as createPluginState, un as isToolResultMessage, v as hydrateConversationMessages, w as fallbackShortTitle, zn as getPlugins } from "./projection-
|
|
3
|
-
import { n as botConfig } from "./config-
|
|
4
|
-
import { E as withSpan, G as isRecord$1, K as toOptionalNumber, _ as runBestEffort, h as logWarn, q as toOptionalString } from "./logging-
|
|
2
|
+
import { Fa as createPluginEmbedder, Gi as openSlackDirectMessage, Hn as coreTaskRegistrations, Ia as createPluginModel, Ii as escapeSlackMrkdwnText, Ja as createPluginModelCostRecorder, Ji as postSlackMessage, Li as formatSlackLink, Mo as createDurableLocationConfigurationService, Ya as createPluginLogger, an as instructionTextForProjection, b as persistConversationMessages, dn as normalizeToolNameFromResult, en as getPiMessageRole, jo as createPluginCache, li as ToolInputError, ln as isToolResultError, oi as getDashboardTaskLink, oo as createPluginConversationEvents, ot as getTurnRecord, pn as stripRuntimeTurnContext, ti as JUNIOR_THREAD_STATE_TTL_MS, ui as createPluginState, un as isToolResultMessage, v as hydrateConversationMessages, w as fallbackShortTitle, zn as getPlugins } from "./projection-D7XadqRY.js";
|
|
3
|
+
import { n as botConfig } from "./config-UsaBOQgC.js";
|
|
4
|
+
import { E as withSpan, G as isRecord$1, K as toOptionalNumber, _ as runBestEffort, h as logWarn, q as toOptionalString } from "./logging-DbXHuhac.js";
|
|
5
5
|
import { h as parseSlackMessageTs } from "./actor-6jsm_v96.js";
|
|
6
|
-
import { H as agentTurnTotalTokens, V as agentTurnCostUsd, a as getConversationStore, o as getDb } from "./db-
|
|
7
|
-
import { A as juniorConversations, d as juniorAutomationVersions, f as juniorAutomations, u as juniorAutomationRuns } from "./executor-
|
|
6
|
+
import { H as agentTurnTotalTokens, V as agentTurnCostUsd, a as getConversationStore, o as getDb } from "./db-c__lw9GH.js";
|
|
7
|
+
import { A as juniorConversations, d as juniorAutomationVersions, f as juniorAutomations, u as juniorAutomationRuns } from "./executor-N8-D5Gvv.js";
|
|
8
8
|
import { v as sameActorIdentity } from "./media-BepyEUNm.js";
|
|
9
|
-
import { h as credentialSubjectSchema } from "./registry-
|
|
10
|
-
import { i as readActorIdentity } from "./viewer-
|
|
11
|
-
import { r as getStateAdapter } from "./adapter-
|
|
12
|
-
import { c as pluginTaskParamsSchema, d as sendVercelPluginTask, s as pluginTaskId } from "./background-compaction-queue-
|
|
13
|
-
import { O as eventAutomationSchema, S as automationVersionSchema, j as scheduledAutomationSchema } from "./automation-
|
|
9
|
+
import { h as credentialSubjectSchema } from "./registry-CTtGtXZP.js";
|
|
10
|
+
import { i as readActorIdentity } from "./viewer-so1MPU10.js";
|
|
11
|
+
import { r as getStateAdapter } from "./adapter-zphAlWE2.js";
|
|
12
|
+
import { c as pluginTaskParamsSchema, d as sendVercelPluginTask, s as pluginTaskId } from "./background-compaction-queue-QDH_JS3D.js";
|
|
13
|
+
import { O as eventAutomationSchema, S as automationVersionSchema, j as scheduledAutomationSchema } from "./automation-CrsYnvdV.js";
|
|
14
14
|
import { createHash } from "node:crypto";
|
|
15
15
|
import * as z from "zod";
|
|
16
16
|
import { and, asc, count, desc, eq, gte, inArray, isNotNull, isNull, lte, max, ne, or, sql } from "drizzle-orm";
|
|
@@ -349,7 +349,7 @@ function slackSourceForDestination(args) {
|
|
|
349
349
|
* Reads parent Conversations when this Conversation has no Destination.
|
|
350
350
|
*/
|
|
351
351
|
async function resolveConversationRouting(args) {
|
|
352
|
-
const conversationStore = args.conversationStore ?? (await import("./db-
|
|
352
|
+
const conversationStore = args.conversationStore ?? (await import("./db-c__lw9GH.js").then((n) => n.n)).getConversationStore();
|
|
353
353
|
const chain = await loadConversationChain(args.conversationId, conversationStore);
|
|
354
354
|
let destination;
|
|
355
355
|
let source;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { E as buildConversationContext, To as listConversationAnnotations, X as clearPendingAuth, j as markConversationMessage, v as hydrateConversationMessages } from "./projection-
|
|
2
|
-
import { H as getProviderErrorAttributes, U as getProviderErrorUserMessage, V as findProviderError, g as TURN_REASONING_LEVELS, z as ProviderError } from "./config-
|
|
3
|
-
import { G as isRecord, b as setSpanAttributes, t as buildTurnFailureResponse } from "./logging-
|
|
1
|
+
import { E as buildConversationContext, To as listConversationAnnotations, X as clearPendingAuth, j as markConversationMessage, v as hydrateConversationMessages } from "./projection-D7XadqRY.js";
|
|
2
|
+
import { H as getProviderErrorAttributes, U as getProviderErrorUserMessage, V as findProviderError, g as TURN_REASONING_LEVELS, z as ProviderError } from "./config-UsaBOQgC.js";
|
|
3
|
+
import { G as isRecord, b as setSpanAttributes, t as buildTurnFailureResponse } from "./logging-DbXHuhac.js";
|
|
4
4
|
import { h as parseSlackMessageTs } from "./actor-6jsm_v96.js";
|
|
5
|
-
import { o as getDb, r as getConversationEventStore, s as getSqlExecutor } from "./db-
|
|
6
|
-
import { g as juniorAgentInvocations } from "./executor-
|
|
7
|
-
import { p as credentialContextSchema } from "./registry-
|
|
8
|
-
import { B as resolveMessageCards, R as readMessageCardRefs, z as removedCardSchema } from "./conversation-
|
|
5
|
+
import { o as getDb, r as getConversationEventStore, s as getSqlExecutor } from "./db-c__lw9GH.js";
|
|
6
|
+
import { g as juniorAgentInvocations } from "./executor-N8-D5Gvv.js";
|
|
7
|
+
import { p as credentialContextSchema } from "./registry-CTtGtXZP.js";
|
|
8
|
+
import { B as resolveMessageCards, R as readMessageCardRefs, z as removedCardSchema } from "./conversation-CtjR1Zcx.js";
|
|
9
9
|
import { C as AGENT_INVOCATION_PARENT_MAILBOX_STATUSES, S as AGENT_INVOCATION_MAILBOX_STATUSES } from "./reporting-window-B3Ze-Qnt.js";
|
|
10
|
-
import { _t as persistThreadStateById, ht as getPersistedThreadState, vt as coerceThreadConversationState } from "./task-runner-
|
|
10
|
+
import { _t as persistThreadStateById, ht as getPersistedThreadState, vt as coerceThreadConversationState } from "./task-runner-BinM1l5g.js";
|
|
11
11
|
import { createHash } from "node:crypto";
|
|
12
12
|
import * as z from "zod";
|
|
13
13
|
import { and, asc, desc, eq, inArray, or, sql } from "drizzle-orm";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { v as __exportAll } from "./sentry-BRTJqumy.js";
|
|
2
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
2
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-yGnL9ywD.js";
|
|
3
3
|
import { isDeepStrictEqual } from "node:util";
|
|
4
4
|
// src/chat/plugins/validation.ts
|
|
5
5
|
var validation_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// package.json
|
|
2
|
-
var version = "0.
|
|
2
|
+
var version = "0.291.0";
|
|
3
3
|
// src/version.ts
|
|
4
4
|
/** Installed Junior package version, or `unknown` when package metadata is unavailable. */
|
|
5
5
|
const JUNIOR_VERSION = typeof version === "string" && version.trim() ? version : "unknown";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as JUNIOR_VERSION } from "./version-
|
|
1
|
+
export { t as JUNIOR_VERSION } from "./version-C3sVz3bv.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { H as GOOGLE_IDENTITY_PROVIDER, W as normalizeIdentityEmail, h as logWarn } from "./logging-
|
|
2
|
-
import { E as findActorIdentityId, o as getDb } from "./db-
|
|
3
|
-
import { M as juniorUsers, j as juniorIdentities } from "./executor-
|
|
1
|
+
import { H as GOOGLE_IDENTITY_PROVIDER, W as normalizeIdentityEmail, h as logWarn } from "./logging-DbXHuhac.js";
|
|
2
|
+
import { E as findActorIdentityId, o as getDb } from "./db-c__lw9GH.js";
|
|
3
|
+
import { M as juniorUsers, j as juniorIdentities } from "./executor-N8-D5Gvv.js";
|
|
4
4
|
import { r as detectImageMediaType } from "./media-BepyEUNm.js";
|
|
5
5
|
import { a as withLock } from "./locks-D-0h111u.js";
|
|
6
6
|
import { createHash, randomUUID } from "node:crypto";
|