@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.
Files changed (66) hide show
  1. package/dist/{agent-D4nu8MQV.js → agent-C9yuiZUF.js} +247 -67
  2. package/dist/{agent-hooks-DXHpTJ4m.js → agent-hooks-DNjlz2A-.js} +1078 -12
  3. package/dist/{agent-runner-C04colea.js → agent-runner-E67lFrDG.js} +5 -5
  4. package/dist/api/schema.d.ts +77 -0
  5. package/dist/api/schema.js +2 -2
  6. package/dist/api.js +44 -511
  7. package/dist/{app-Cb776lL8.d.ts → app-AxGmJHwK.d.ts} +7 -0
  8. package/dist/app.d.ts +1 -1
  9. package/dist/app.js +50 -80
  10. package/dist/{auth-pause-state-C2P3guS1.js → auth-pause-state-MVZ6xvEK.js} +6 -6
  11. package/dist/briefs-CvJFQvhJ.js +398 -0
  12. package/dist/{catalog-runtime-CXw3asJD.js → catalog-runtime-TBR8n4e1.js} +1 -1
  13. package/dist/{checkpoint-CrViJ8Ps.js → checkpoint-BY47jJCB.js} +7 -6
  14. package/dist/cli/chat.js +14 -12
  15. package/dist/cli/check.js +3 -3
  16. package/dist/cli/init.js +1 -0
  17. package/dist/cli/main.js +5 -1
  18. package/dist/cli/plugins.js +3 -3
  19. package/dist/cli/run.d.ts +2 -1
  20. package/dist/cli/run.js +2 -1
  21. package/dist/cli/snapshot-create.js +3 -3
  22. package/dist/cli/upgrade.js +3 -3
  23. package/dist/{config-BOtJQ7Pc.js → client-ceE7NtvC.js} +4 -367
  24. package/dist/config-CIE83sR2.js +386 -0
  25. package/dist/{schema-Rn8-XEaN.js → conversation-AA4R1VUn.js} +580 -558
  26. package/dist/{conversation-privacy-BZRA6Pes.js → conversation-privacy-Auyq26XQ.js} +1 -1
  27. package/dist/{credential-sync-Bep34IB_.js → credential-sync-BO33aNQd.js} +20 -19
  28. package/dist/{execution-stats-B6lgWxCK.js → execution-stats-SiS2FLcv.js} +4 -4
  29. package/dist/{executor-BlUhFL7_.js → executor-BfbYPW63.js} +31 -3
  30. package/dist/instrumentation.js +2 -2
  31. package/dist/{job-queue-DLMqIK74.js → job-queue-CyTc24Es.js} +1 -1
  32. package/dist/{logging-BMJzdDlP.js → logging-D37bayDc.js} +1 -1
  33. package/dist/nitro.d.ts +1 -1
  34. package/dist/nitro.js +3 -3
  35. package/dist/{oauth-callback-server-WwG5_Zgm.js → oauth-callback-server-BtfOeHTZ.js} +2 -2
  36. package/dist/{pending-auth-CUbXq06G.js → pending-auth-BPUzcs7n.js} +2 -2
  37. package/dist/{profile-T0tXE4zu.js → profile-CSixooTi.js} +4 -3
  38. package/dist/prompt-3gqNY1Ka.js +552 -0
  39. package/dist/{registry-BA0__8ai.js → registry-DiR0-xRg.js} +1 -1
  40. package/dist/{resolve-bvD1ORdv.js → resolve-Bn5q__9b.js} +2 -2
  41. package/dist/{runner-BXYxfIUL.js → runner-DFx3dIJH.js} +9 -9
  42. package/dist/{sandbox-egress-signals-ngEPjSEW.js → sandbox-egress-signals-bwvjihxA.js} +1 -1
  43. package/dist/schema-8GXFfclK.js +559 -0
  44. package/dist/{skills-DJOlYdBs.js → skills-BhM5qyCF.js} +2 -2
  45. package/dist/{spawn-h0R1bTEo.js → spawn-Dk0PqdH6.js} +2 -2
  46. package/dist/{stats-3YZn-Swi.js → stats-DKRP4rsY.js} +6 -6
  47. package/dist/{task-queue-CoXwd2eq.js → task-queue-CdpTvu4R.js} +3 -3
  48. package/dist/{task-runner-B2_mJZj0.js → task-runner-alpjVSxQ.js} +10 -10
  49. package/dist/{thread-state-CqZ1m-es.js → thread-state-CRK7aA41.js} +5 -5
  50. package/dist/{turn-execution-fI6PZ0iI.js → turn-execution-XtyzIHog.js} +3 -3
  51. package/dist/{turn-lifecycle-CcnwrOcp.js → turn-lifecycle-VbwZLfBv.js} +1 -1
  52. package/dist/{usage-B5SfMb3H.js → usage-D4A48Bdl.js} +4 -125
  53. package/dist/{validation-DfWcvhuS.js → validation-jn_46o4U.js} +1 -1
  54. package/dist/{version-oD-oPrbO.js → version-DcfJxB4z.js} +1 -1
  55. package/dist/version.js +1 -1
  56. package/dist/web-authorization-CsfLSfEs.js +38 -0
  57. package/dist/{web-input-BOuq3oKK.js → web-input-BPp_sc7t.js} +6 -6
  58. package/dist/{work-B91LQKHr.js → work-Di-ubSGg.js} +9 -9
  59. package/dist/{worker-BcRRTe6k.js → worker-Cu_D5Mr8.js} +5 -4
  60. package/migrations/0040_conversation_briefs.sql +17 -0
  61. package/migrations/meta/0040_snapshot.json +3516 -0
  62. package/migrations/meta/_journal.json +7 -0
  63. package/package.json +5 -5
  64. package/dist/history-CqTuSAdI.js +0 -441
  65. package/dist/usage-schema-CKaDkH_j.js +0 -20
  66. package/dist/web-authorization-Crbzlmzo.js +0 -76
@@ -1,4 +1,4 @@
1
- import { f as logWarn } from "./logging-BMJzdDlP.js";
1
+ import { f as logWarn } from "./logging-D37bayDc.js";
2
2
  import { AsyncLocalStorage } from "node:async_hooks";
3
3
  //#region src/chat/conversation-privacy.ts
4
4
  const SAFE_METADATA_KEY_LIMIT = 20;
@@ -1,27 +1,28 @@
1
- import { N as getMcpProviderErrorAttributes, Q 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-D4nu8MQV.js";
2
- import { O as escapeXml, a as getRuntimeMetadata, i as getChatConfig, m as normalizeSlackEmojiName, n as botConfig } from "./config-BOtJQ7Pc.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-BMJzdDlP.js";
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 { B as getSlackClient, Dt as getSqlExecutor, H as isDmChannel, I as SlackActionError, Lt as upsertIdentity, Rt as upsertLinkedIdentity, Tt as getConversationStore, U as normalizeSlackConversationId, Vt as requireSlackDestination, dt as getDashboardConversationLink, o as getPluginSlackConversationLink, z as getHeaderString } from "./agent-hooks-DXHpTJ4m.js";
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-BA0__8ai.js";
9
- import { n as pluginCatalogRuntime } from "./catalog-runtime-CXw3asJD.js";
10
- import { t as discoverSkills } from "./skills-DJOlYdBs.js";
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-CrViJ8Ps.js";
12
- import { E as acquireActiveLock, w as getStateAdapter } from "./profile-T0tXE4zu.js";
13
- import { Pt as requestConversationWork, c as parseSlackThreadId, d as resolveSlackChannelIdFromThreadId, l as readSlackRawMessageContext, u as resolveSlackChannelIdFromMessage, wt as ensureConversationWake } from "./stats-3YZn-Swi.js";
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-CUbXq06G.js";
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-C04colea.js";
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-DLMqIK74.js";
18
- import { i as resolveTurnSessionRouting, n as scheduleSessionCompletedPluginTasks } from "./task-runner-B2_mJZj0.js";
19
- import { n as getTurnLifecycle } from "./turn-lifecycle-CcnwrOcp.js";
20
- import { n as executeTurn, t as AgentRunError } from "./turn-execution-fI6PZ0iI.js";
21
- import { c as configValueSchema, n as getPersistedSandboxState, o as persistThreadStateById, r as getPersistedThreadState, s as coerceThreadConversationState, t as getLocationConfigurationService } from "./thread-state-CqZ1m-es.js";
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-C2P3guS1.js";
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-BMJzdDlP.js";
2
- import { Et as getDb } from "./agent-hooks-DXHpTJ4m.js";
3
- import { C as juniorConversations, s as juniorTaskExecutions } from "./executor-BlUhFL7_.js";
4
- import { n as agentTurnCostUsd, r as agentTurnTotalTokens } from "./usage-B5SfMb3H.js";
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-BOtJQ7Pc.js";
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 { juniorConversations as C, juniorArtifacts as E, conversationReadColumns as S, juniorUsers as T, juniorApiTokens as _, juniorSchedulerRuns as a, juniorCodeRepositories as b, juniorStats as c, AGENT_INVOCATION_MAILBOX_STATUSES as d, juniorAgentBindings as f, juniorConversationEvents 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, juniorConversationAnnotations as v, juniorIdentities as w, juniorAttachments as x, juniorCodeChanges as y };
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 };
@@ -1,6 +1,6 @@
1
- import { M as getDeploymentServiceVersion, N as getDeploymentTelemetryAttributes } from "./logging-BMJzdDlP.js";
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-BZRA6Pes.js";
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 { i as getChatConfig } from "./config-BOtJQ7Pc.js";
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-oD-oPrbO.js";
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-Cb776lL8.js";
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-BMJzdDlP.js";
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-DLMqIK74.js";
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-CoXwd2eq.js";
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 { Q as createUserTokenStore } from "./agent-D4nu8MQV.js";
2
- import { a as GET, n as syncLocalOAuthCredential, r as GET$1 } from "./credential-sync-Bep34IB_.js";
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-CrViJ8Ps.js";
2
- import { Kt as buildDeterministicTurnId } from "./stats-3YZn-Swi.js";
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 { R as toOptionalTrimmed, i as getChatConfig } from "./config-BOtJQ7Pc.js";
2
- import { _ as setSpanAttributes, v as setSpanStatus } from "./logging-BMJzdDlP.js";
3
- import { n as pluginCatalogRuntime } from "./catalog-runtime-CXw3asJD.js";
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";