@sentry/junior 0.205.0 → 0.206.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/{agent-D4nu8MQV.js → agent-C9yuiZUF.js} +247 -67
- package/dist/{agent-hooks-DXHpTJ4m.js → agent-hooks-DNjlz2A-.js} +1078 -12
- package/dist/{agent-runner-C04colea.js → agent-runner-E67lFrDG.js} +5 -5
- package/dist/api/schema.d.ts +77 -0
- package/dist/api/schema.js +2 -2
- package/dist/api.js +44 -511
- package/dist/{app-Cb776lL8.d.ts → app-AxGmJHwK.d.ts} +7 -0
- package/dist/app.d.ts +1 -1
- package/dist/app.js +50 -80
- package/dist/{auth-pause-state-C2P3guS1.js → auth-pause-state-MVZ6xvEK.js} +6 -6
- package/dist/briefs-CvJFQvhJ.js +398 -0
- package/dist/{catalog-runtime-CXw3asJD.js → catalog-runtime-TBR8n4e1.js} +1 -1
- package/dist/{checkpoint-CrViJ8Ps.js → checkpoint-BY47jJCB.js} +7 -6
- package/dist/cli/chat.js +14 -12
- package/dist/cli/check.js +3 -3
- package/dist/cli/init.js +1 -0
- package/dist/cli/main.js +5 -1
- package/dist/cli/plugins.js +3 -3
- package/dist/cli/run.d.ts +2 -1
- package/dist/cli/run.js +2 -1
- package/dist/cli/snapshot-create.js +3 -3
- package/dist/cli/upgrade.js +3 -3
- package/dist/{config-BOtJQ7Pc.js → client-ceE7NtvC.js} +4 -367
- package/dist/config-CIE83sR2.js +386 -0
- package/dist/{schema-Rn8-XEaN.js → conversation-AA4R1VUn.js} +580 -558
- package/dist/{conversation-privacy-BZRA6Pes.js → conversation-privacy-Auyq26XQ.js} +1 -1
- package/dist/{credential-sync-Bep34IB_.js → credential-sync-BO33aNQd.js} +20 -19
- package/dist/{execution-stats-B6lgWxCK.js → execution-stats-SiS2FLcv.js} +4 -4
- package/dist/{executor-BlUhFL7_.js → executor-BfbYPW63.js} +31 -3
- package/dist/instrumentation.js +2 -2
- package/dist/{job-queue-DLMqIK74.js → job-queue-CyTc24Es.js} +1 -1
- package/dist/{logging-BMJzdDlP.js → logging-D37bayDc.js} +1 -1
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +3 -3
- package/dist/{oauth-callback-server-WwG5_Zgm.js → oauth-callback-server-BtfOeHTZ.js} +2 -2
- package/dist/{pending-auth-CUbXq06G.js → pending-auth-BPUzcs7n.js} +2 -2
- package/dist/{profile-T0tXE4zu.js → profile-CSixooTi.js} +4 -3
- package/dist/prompt-3gqNY1Ka.js +552 -0
- package/dist/{registry-BA0__8ai.js → registry-DiR0-xRg.js} +1 -1
- package/dist/{resolve-bvD1ORdv.js → resolve-Bn5q__9b.js} +2 -2
- package/dist/{runner-BXYxfIUL.js → runner-DFx3dIJH.js} +9 -9
- package/dist/{sandbox-egress-signals-ngEPjSEW.js → sandbox-egress-signals-bwvjihxA.js} +1 -1
- package/dist/schema-8GXFfclK.js +559 -0
- package/dist/{skills-DJOlYdBs.js → skills-BhM5qyCF.js} +2 -2
- package/dist/{spawn-h0R1bTEo.js → spawn-Dk0PqdH6.js} +2 -2
- package/dist/{stats-3YZn-Swi.js → stats-DKRP4rsY.js} +6 -6
- package/dist/{task-queue-CoXwd2eq.js → task-queue-CdpTvu4R.js} +3 -3
- package/dist/{task-runner-B2_mJZj0.js → task-runner-alpjVSxQ.js} +10 -10
- package/dist/{thread-state-CqZ1m-es.js → thread-state-CRK7aA41.js} +5 -5
- package/dist/{turn-execution-fI6PZ0iI.js → turn-execution-XtyzIHog.js} +3 -3
- package/dist/{turn-lifecycle-CcnwrOcp.js → turn-lifecycle-VbwZLfBv.js} +1 -1
- package/dist/{usage-B5SfMb3H.js → usage-D4A48Bdl.js} +4 -125
- package/dist/{validation-DfWcvhuS.js → validation-jn_46o4U.js} +1 -1
- package/dist/{version-oD-oPrbO.js → version-DcfJxB4z.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/web-authorization-CsfLSfEs.js +38 -0
- package/dist/{web-input-BOuq3oKK.js → web-input-BPp_sc7t.js} +6 -6
- package/dist/{work-B91LQKHr.js → work-Di-ubSGg.js} +9 -9
- package/dist/{worker-BcRRTe6k.js → worker-Cu_D5Mr8.js} +5 -4
- package/migrations/0040_conversation_briefs.sql +17 -0
- package/migrations/meta/0040_snapshot.json +3516 -0
- package/migrations/meta/_journal.json +7 -0
- package/package.json +5 -5
- package/dist/history-CqTuSAdI.js +0 -441
- package/dist/usage-schema-CKaDkH_j.js +0 -20
- package/dist/web-authorization-Crbzlmzo.js +0 -76
|
@@ -1,27 +1,28 @@
|
|
|
1
|
-
import { N as getMcpProviderErrorAttributes,
|
|
2
|
-
import {
|
|
3
|
-
import { L as toOptionalString, S as withLogContext, d as logInfo, f as logWarn, m as runBestEffort, u as logException, y as setTags } from "./logging-
|
|
1
|
+
import { N as getMcpProviderErrorAttributes, Y as createUserTokenStore, a as deleteMcpAuthSession, d as putMcpStoredOAuthCredentials, h as resolvePluginOAuthAccount, i as finalizeMcpAuthorization, l as getMcpAuthSession, u as getMcpStoredOAuthCredentials, y as lookupSlackUserProfile } from "./agent-C9yuiZUF.js";
|
|
2
|
+
import { m as escapeXml } from "./client-ceE7NtvC.js";
|
|
3
|
+
import { L as toOptionalString, S as withLogContext, d as logInfo, f as logWarn, m as runBestEffort, u as logException, y as setTags } from "./logging-D37bayDc.js";
|
|
4
|
+
import { a as getChatConfig, h as normalizeSlackEmojiName, n as botConfig, o as getRuntimeMetadata } from "./config-CIE83sR2.js";
|
|
4
5
|
import { n as defaultModelId } from "./model-profile-CZmVoGdX.js";
|
|
5
6
|
import { _ as parseSlackMessageTs, g as parseSlackUserId, l as isUserActor, s as createSlackResumeActor } from "./context-B45_WqVX.js";
|
|
6
|
-
import {
|
|
7
|
+
import { Ft as getConversationStore, G as isDmChannel, H as getHeaderString, Jt as upsertLinkedIdentity, K as normalizeSlackConversationId, Lt as getSqlExecutor, U as getSlackClient, Zt as requireSlackDestination, mt as getDashboardConversationLink, o as getPluginSlackConversationLink, qt as upsertIdentity, wt as buildSentryConversationUrl, z as SlackActionError } from "./agent-hooks-DNjlz2A-.js";
|
|
7
8
|
import { i as homeDir } from "./package-discovery-7a9YqLhE.js";
|
|
8
|
-
import { l as hasRequiredOAuthScope, n as buildOAuthTokenRequest, r as parseOAuthTokenResponse } from "./registry-
|
|
9
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
10
|
-
import { t as discoverSkills } from "./skills-
|
|
11
|
-
import { P as commitAcceptedReply, Q as hydrateConversationMessages, R as loadProjection, U as recordAuthenticationLinked, W as recordAuthorizationCompleted, d as persistWithRetry, dt as recordDeliveredAssistantMessage, ft as turnHasReply, i as abandonTurnRecord, it as buildConversationContext, lt as markConversationMessage, m as buildTurnErrorResponse, n as loadTurnCheckpoint, o as failTurnRecord, r as saveTurnCheckpoint, s as getTurnRecord, u as recordTurnSummary } from "./checkpoint-
|
|
12
|
-
import { E as acquireActiveLock, w as getStateAdapter } from "./profile-
|
|
13
|
-
import { Pt as requestConversationWork, c as parseSlackThreadId, d as resolveSlackChannelIdFromThreadId, l as readSlackRawMessageContext, u as resolveSlackChannelIdFromMessage, wt as ensureConversationWake } from "./stats-
|
|
14
|
-
import { a as isPendingAuthLatestRequest, f as CooperativeTurnYieldError, g as isCooperativeTurnYieldError, i as getConversationPendingAuth, r as clearPendingAuth, s as getAssistantReplyText, x as markTurnFailed } from "./pending-auth-
|
|
15
|
-
import { a as parseOAuthStatePayload, c as escapeSlackMrkdwnText, d as normalizeSlackStatusText, f as truncateStatusText, g as removeReactionFromMessage, h as postSlackMessage, i as formatProviderLabel, l as formatSlackLink, o as resolveBaseUrl, p as addReactionToMessage, u as normalizeSlackReplyMarkdown, v as RetryableDeliveryError } from "./agent-runner-
|
|
9
|
+
import { l as hasRequiredOAuthScope, n as buildOAuthTokenRequest, r as parseOAuthTokenResponse } from "./registry-DiR0-xRg.js";
|
|
10
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-TBR8n4e1.js";
|
|
11
|
+
import { t as discoverSkills } from "./skills-BhM5qyCF.js";
|
|
12
|
+
import { P as commitAcceptedReply, Q as hydrateConversationMessages, R as loadProjection, U as recordAuthenticationLinked, W as recordAuthorizationCompleted, d as persistWithRetry, dt as recordDeliveredAssistantMessage, ft as turnHasReply, i as abandonTurnRecord, it as buildConversationContext, lt as markConversationMessage, m as buildTurnErrorResponse, n as loadTurnCheckpoint, o as failTurnRecord, r as saveTurnCheckpoint, s as getTurnRecord, u as recordTurnSummary } from "./checkpoint-BY47jJCB.js";
|
|
13
|
+
import { E as acquireActiveLock, w as getStateAdapter } from "./profile-CSixooTi.js";
|
|
14
|
+
import { Pt as requestConversationWork, c as parseSlackThreadId, d as resolveSlackChannelIdFromThreadId, l as readSlackRawMessageContext, u as resolveSlackChannelIdFromMessage, wt as ensureConversationWake } from "./stats-DKRP4rsY.js";
|
|
15
|
+
import { a as isPendingAuthLatestRequest, f as CooperativeTurnYieldError, g as isCooperativeTurnYieldError, i as getConversationPendingAuth, r as clearPendingAuth, s as getAssistantReplyText, x as markTurnFailed } from "./pending-auth-BPUzcs7n.js";
|
|
16
|
+
import { a as parseOAuthStatePayload, c as escapeSlackMrkdwnText, d as normalizeSlackStatusText, f as truncateStatusText, g as removeReactionFromMessage, h as postSlackMessage, i as formatProviderLabel, l as formatSlackLink, o as resolveBaseUrl, p as addReactionToMessage, u as normalizeSlackReplyMarkdown, v as RetryableDeliveryError } from "./agent-runner-E67lFrDG.js";
|
|
16
17
|
import { t as getVercelConversationWorkQueue } from "./vercel-queue-DIkVcfK4.js";
|
|
17
|
-
import { a as getTurnRequestDeadline } from "./job-queue-
|
|
18
|
-
import { i as resolveTurnSessionRouting, n as scheduleSessionCompletedPluginTasks } from "./task-runner-
|
|
19
|
-
import { n as getTurnLifecycle } from "./turn-lifecycle-
|
|
20
|
-
import { n as executeTurn, t as AgentRunError } from "./turn-execution-
|
|
21
|
-
import { c as configValueSchema, n as getPersistedSandboxState, o as persistThreadStateById, r as getPersistedThreadState, s as coerceThreadConversationState, t as getLocationConfigurationService } from "./thread-state-
|
|
22
|
-
import { a as requireTurnFailureEventId, c as getTurnUserMessageId, d as buildDeliveredTurnStatePatch, l as getTurnUserReplyAttachmentContext, n as persistAuthPauseTurnState, o as getInterruptionMarker, r as finalizeFailedTurnReplyWithEvent, s as getTurnUserMessage, u as getTurnUserSlackMessageTs } from "./auth-pause-state-
|
|
23
|
-
import { i as buildSentryConversationUrl, n as deleteWebAuthorization } from "./web-authorization-Crbzlmzo.js";
|
|
18
|
+
import { a as getTurnRequestDeadline } from "./job-queue-CyTc24Es.js";
|
|
19
|
+
import { i as resolveTurnSessionRouting, n as scheduleSessionCompletedPluginTasks } from "./task-runner-alpjVSxQ.js";
|
|
20
|
+
import { n as getTurnLifecycle } from "./turn-lifecycle-VbwZLfBv.js";
|
|
21
|
+
import { n as executeTurn, t as AgentRunError } from "./turn-execution-XtyzIHog.js";
|
|
22
|
+
import { c as configValueSchema, n as getPersistedSandboxState, o as persistThreadStateById, r as getPersistedThreadState, s as coerceThreadConversationState, t as getLocationConfigurationService } from "./thread-state-CRK7aA41.js";
|
|
23
|
+
import { a as requireTurnFailureEventId, c as getTurnUserMessageId, d as buildDeliveredTurnStatePatch, l as getTurnUserReplyAttachmentContext, n as persistAuthPauseTurnState, o as getInterruptionMarker, r as finalizeFailedTurnReplyWithEvent, s as getTurnUserMessage, u as getTurnUserSlackMessageTs } from "./auth-pause-state-MVZ6xvEK.js";
|
|
24
24
|
import { n as relayLocalOAuthCallback } from "./oauth-relay-CdCnu80W.js";
|
|
25
|
+
import { n as deleteWebAuthorization } from "./web-authorization-CsfLSfEs.js";
|
|
25
26
|
import path from "node:path";
|
|
26
27
|
import { z } from "zod";
|
|
27
28
|
import { createHmac, createSecretKey, timingSafeEqual } from "node:crypto";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { f as logWarn } from "./logging-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { n as agentTurnCostUsd, r as agentTurnTotalTokens } from "./usage-
|
|
1
|
+
import { f as logWarn } from "./logging-D37bayDc.js";
|
|
2
|
+
import { It as getDb } from "./agent-hooks-DNjlz2A-.js";
|
|
3
|
+
import { s as juniorTaskExecutions, w as juniorConversations } from "./executor-BfbYPW63.js";
|
|
4
|
+
import { n as agentTurnCostUsd, r as agentTurnTotalTokens } from "./usage-D4A48Bdl.js";
|
|
5
5
|
import { and, asc, count, desc, eq, gte, inArray, lte, max, or, sql } from "drizzle-orm";
|
|
6
6
|
//#region src/api/conversations/aggregate.ts
|
|
7
7
|
function usageTokenValue(source, field) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./config-
|
|
1
|
+
import "./config-CIE83sR2.js";
|
|
2
2
|
import { n as juniorDestinations, r as timestamptz } from "./destinations-BeBiJeEM.js";
|
|
3
3
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
4
4
|
import { getTableColumns, sql } from "drizzle-orm";
|
|
5
|
-
import { bigint, boolean, check, date, foreignKey, index, integer, jsonb, pgTable, primaryKey, text, uniqueIndex, uuid } from "drizzle-orm/pg-core";
|
|
5
|
+
import { bigint, boolean, check, date, doublePrecision, foreignKey, index, integer, jsonb, pgTable, primaryKey, text, uniqueIndex, uuid } from "drizzle-orm/pg-core";
|
|
6
6
|
import { Pool } from "@neondatabase/serverless";
|
|
7
7
|
import { drizzle } from "drizzle-orm/neon-serverless";
|
|
8
8
|
import { migrate } from "drizzle-orm/neon-serverless/migrator";
|
|
@@ -247,6 +247,33 @@ const juniorConversationEvents = pgTable("junior_conversation_events", {
|
|
|
247
247
|
uniqueIndex("junior_conversation_events_idempotency_idx").on(table.conversationId, table.idempotencyKey)
|
|
248
248
|
]);
|
|
249
249
|
//#endregion
|
|
250
|
+
//#region src/db/schema/conversation-briefs.ts
|
|
251
|
+
/** Append-only Brief versions produced for completed Conversation turns. */
|
|
252
|
+
const juniorConversationBriefs = pgTable("junior_conversation_briefs", {
|
|
253
|
+
conversationId: text("conversation_id").notNull(),
|
|
254
|
+
version: integer("version").notNull(),
|
|
255
|
+
turnId: text("turn_id").notNull(),
|
|
256
|
+
throughSeq: integer("through_seq").notNull(),
|
|
257
|
+
content: jsonb("content").$type().notNull(),
|
|
258
|
+
searchText: text("search_text").notNull(),
|
|
259
|
+
modelId: text("model_id").notNull(),
|
|
260
|
+
costUsd: doublePrecision("cost_usd"),
|
|
261
|
+
createdAt: timestamptz("created_at").defaultNow().notNull()
|
|
262
|
+
}, (table) => [
|
|
263
|
+
primaryKey({
|
|
264
|
+
name: "junior_conversation_briefs_conversation_id_version_pk",
|
|
265
|
+
columns: [table.conversationId, table.version]
|
|
266
|
+
}),
|
|
267
|
+
foreignKey({
|
|
268
|
+
name: "junior_conversation_briefs_conversation_id_junior_conversations_conversation_id_fk",
|
|
269
|
+
columns: [table.conversationId],
|
|
270
|
+
foreignColumns: [juniorConversations.conversationId]
|
|
271
|
+
}).onDelete("cascade"),
|
|
272
|
+
uniqueIndex("junior_conversation_briefs_conversation_turn_idx").on(table.conversationId, table.turnId),
|
|
273
|
+
index("junior_conversation_briefs_conversation_version_idx").on(table.conversationId, table.version.desc()),
|
|
274
|
+
index("junior_conversation_briefs_search_idx").using("gin", sql`to_tsvector('english', ${table.searchText})`)
|
|
275
|
+
]);
|
|
276
|
+
//#endregion
|
|
250
277
|
//#region src/db/schema/conversation-bindings.ts
|
|
251
278
|
/** Provider conversation coordinates bound to Junior's opaque durable conversation id. */
|
|
252
279
|
const juniorConversationBindings = pgTable("junior_conversation_bindings", {
|
|
@@ -487,6 +514,7 @@ const juniorSqlSchema = {
|
|
|
487
514
|
juniorAgentBindings,
|
|
488
515
|
juniorAgentInvocations,
|
|
489
516
|
juniorConversationEvents,
|
|
517
|
+
juniorConversationBriefs,
|
|
490
518
|
juniorConversationBindings,
|
|
491
519
|
juniorConversationParticipants,
|
|
492
520
|
juniorConversations,
|
|
@@ -718,4 +746,4 @@ function createJuniorSqlExecutor(args) {
|
|
|
718
746
|
});
|
|
719
747
|
}
|
|
720
748
|
//#endregion
|
|
721
|
-
export {
|
|
749
|
+
export { conversationReadColumns as C, juniorArtifacts as D, juniorUsers as E, juniorAttachments as S, juniorIdentities as T, juniorConversationEvents as _, juniorSchedulerRuns as a, juniorCodeChanges as b, juniorStats as c, AGENT_INVOCATION_MAILBOX_STATUSES as d, juniorAgentBindings as f, juniorConversationBriefs as g, juniorConversationBindings as h, juniorWorkspaces as i, juniorEventTasks as l, juniorConversationParticipants as m, juniorSnapshots as n, juniorSchedulerTasks as o, juniorAgentInvocations as p, juniorWorkspaceRepos as r, juniorTaskExecutions as s, createJuniorSqlExecutor as t, juniorLocationConfigurations as u, juniorApiTokens as v, juniorConversations as w, juniorCodeRepositories as x, juniorConversationAnnotations as y };
|
package/dist/instrumentation.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { M as getDeploymentServiceVersion, N as getDeploymentTelemetryAttributes } from "./logging-
|
|
1
|
+
import { M as getDeploymentServiceVersion, N as getDeploymentTelemetryAttributes } from "./logging-D37bayDc.js";
|
|
2
2
|
import { a as getClient, c as init, g as vercelAIIntegration, o as getGlobalScope, y as withStreamedSpan } from "./sentry-CD3SdJl-.js";
|
|
3
|
-
import { n as getCurrentConversationPrivacy } from "./conversation-privacy-
|
|
3
|
+
import { n as getCurrentConversationPrivacy } from "./conversation-privacy-Auyq26XQ.js";
|
|
4
4
|
import { t as consumePrivateTraceResultMarker } from "./private-trace-result-BLvBjy_e.js";
|
|
5
5
|
//#region src/chat/sentry-payload-filter.ts
|
|
6
6
|
const PAYLOAD_ATTRIBUTE_KEYS = /* @__PURE__ */ new Set([
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as getChatConfig } from "./config-CIE83sR2.js";
|
|
2
2
|
import { a as signQueueMessage, i as QUEUE_SIGNATURE_MAX_AGE_MS, o as verifyQueueMessage, s as createVercelQueueClient } from "./vercel-queue-DIkVcfK4.js";
|
|
3
3
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
4
4
|
import { z } from "zod";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { 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, v as withScope } from "./sentry-CD3SdJl-.js";
|
|
2
|
-
import { t as JUNIOR_VERSION } from "./version-
|
|
2
|
+
import { t as JUNIOR_VERSION } from "./version-DcfJxB4z.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";
|
package/dist/nitro.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as JuniorDashboardOptions } from "./app-
|
|
1
|
+
import { n as JuniorDashboardOptions } from "./app-AxGmJHwK.js";
|
|
2
2
|
import { n as JuniorPluginSet } from "./plugins-BI9A1vKA.js";
|
|
3
3
|
//#region src/nitro.d.ts
|
|
4
4
|
export type JuniorNitroDashboardOptions = JuniorDashboardOptions;
|
package/dist/nitro.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, D as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, E as JUNIOR_HEARTBEAT_ROUTE, O as JUNIOR_RETENTION_CRON_SCHEDULE, T as JUNIOR_HEARTBEAT_CRON_SCHEDULE, k as JUNIOR_RETENTION_ROUTE, w as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE } from "./logging-
|
|
1
|
+
import { A as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, D as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, E as JUNIOR_HEARTBEAT_ROUTE, O as JUNIOR_RETENTION_CRON_SCHEDULE, T as JUNIOR_HEARTBEAT_CRON_SCHEDULE, k as JUNIOR_RETENTION_ROUTE, w as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE } from "./logging-D37bayDc.js";
|
|
2
2
|
import { d as resolvePackageDir, t as discoverInstalledPluginPackageContent, u as isValidPackageName } from "./package-discovery-7a9YqLhE.js";
|
|
3
3
|
import { n as resolveConversationWorkQueueTopic } from "./vercel-queue-DIkVcfK4.js";
|
|
4
|
-
import { t as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC } from "./job-queue-
|
|
4
|
+
import { t as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC } from "./job-queue-CyTc24Es.js";
|
|
5
5
|
import { a as pluginRuntimeRegistrationsFromPluginSet, r as pluginCatalogConfigFromPluginSet } from "./plugins-egKWjgue.js";
|
|
6
|
-
import { t as PLUGIN_TASK_QUEUE_TOPIC } from "./task-queue-
|
|
6
|
+
import { t as PLUGIN_TASK_QUEUE_TOPIC } from "./task-queue-CdpTvu4R.js";
|
|
7
7
|
import { n as loadPluginSetFromModule, r as resolvePluginModule } from "./plugin-module-BKGOXca2.js";
|
|
8
8
|
import path from "node:path";
|
|
9
9
|
import { cpSync, existsSync, mkdirSync, readdirSync, statSync } from "node:fs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as GET, n as syncLocalOAuthCredential, r as GET$1 } from "./credential-sync-
|
|
1
|
+
import { Y as createUserTokenStore } from "./agent-C9yuiZUF.js";
|
|
2
|
+
import { a as GET, n as syncLocalOAuthCredential, r as GET$1 } from "./credential-sync-BO33aNQd.js";
|
|
3
3
|
import { createServer } from "node:http";
|
|
4
4
|
//#region src/chat/local/oauth-callback-server.ts
|
|
5
5
|
const LOCAL_OAUTH_TIMEOUT_MS = 6e5;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as abandonTurnRecord, yt as extractAssistantText } from "./checkpoint-
|
|
2
|
-
import { Kt as buildDeterministicTurnId } from "./stats-
|
|
1
|
+
import { i as abandonTurnRecord, yt as extractAssistantText } from "./checkpoint-BY47jJCB.js";
|
|
2
|
+
import { Kt as buildDeterministicTurnId } from "./stats-DKRP4rsY.js";
|
|
3
3
|
//#region src/chat/runtime/turn.ts
|
|
4
4
|
/** Classified Slack turn failure carrying the owning Sentry capture outward. */
|
|
5
5
|
var ConversationTurnBoundaryError = class extends Error {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _ as setSpanAttributes, v as setSpanStatus } from "./logging-
|
|
3
|
-
import {
|
|
1
|
+
import { w as toOptionalTrimmed } from "./client-ceE7NtvC.js";
|
|
2
|
+
import { _ as setSpanAttributes, v as setSpanStatus } from "./logging-D37bayDc.js";
|
|
3
|
+
import { a as getChatConfig } from "./config-CIE83sR2.js";
|
|
4
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-TBR8n4e1.js";
|
|
4
5
|
import { createHash } from "node:crypto";
|
|
5
6
|
import { createMemoryState } from "@chat-adapter/state-memory";
|
|
6
7
|
import { createRedisState } from "@chat-adapter/state-redis";
|