@sentry/junior 0.239.0 → 0.240.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 (60) hide show
  1. package/dist/{admin-Cc-iA6z9.js → admin-D6fRPRgC.js} +1 -1
  2. package/dist/{agent-hooks-DzfA5m3R.js → agent-hooks-JFbgedMZ.js} +116 -10
  3. package/dist/{agent-runner--1wC26S6.js → agent-runner-0IjJxsL1.js} +60 -121
  4. package/dist/api/schema.js +2 -2
  5. package/dist/api.d.ts +1 -1
  6. package/dist/api.js +21 -20
  7. package/dist/{app-FB2hmHpZ.d.ts → app-MEd7wbF0.d.ts} +1 -1
  8. package/dist/app.d.ts +1 -1
  9. package/dist/app.js +24 -23
  10. package/dist/{automation-CrQGQ2MT.js → automation-B5_c8hEb.js} +2 -253
  11. package/dist/{briefs-DGc2Thua.js → briefs-BGWTp-nz.js} +2 -2
  12. package/dist/cadence-D00SCzT1.js +256 -0
  13. package/dist/{catalog-runtime-DpB_hG_I.js → catalog-runtime-DdigNl7s.js} +1 -1
  14. package/dist/{checkpoint-CN7yMfSo.js → checkpoint-C1ZnSz7r.js} +15 -11
  15. package/dist/cli/chat.js +12 -12
  16. package/dist/cli/check.js +3 -3
  17. package/dist/cli/main.js +2 -2
  18. package/dist/cli/plugins.js +4 -4
  19. package/dist/cli/snapshot-create.js +3 -3
  20. package/dist/cli/upgrade.d.ts +1 -1
  21. package/dist/cli/upgrade.js +3 -3
  22. package/dist/{client-DNf-sJmM.js → client-Cn73E7br.js} +2 -2
  23. package/dist/{config-B8QN-04U.js → config-B0S86yw9.js} +2 -2
  24. package/dist/{conversation-privacy-CrYizZM3.js → conversation-privacy-BKlX7D_R.js} +1 -1
  25. package/dist/{credential-sync-BG_Yvja8.js → credential-sync-DeNQm7st.js} +14 -14
  26. package/dist/{db-CWZP77Ex.d.ts → db-Ca9Nt5ci.d.ts} +1 -1
  27. package/dist/{executor-BQV1Zc1z.js → executor-BQ-A5nov.js} +2 -2
  28. package/dist/{images-C_0iwPsW.js → images-C7OKd6uy.js} +2 -2
  29. package/dist/instrumentation.js +2 -2
  30. package/dist/{job-queue-D82gksYM.js → job-queue-DgXLqoeB.js} +1 -1
  31. package/dist/{logging-Crg0e1jb.js → logging-BSNF167N.js} +1 -1
  32. package/dist/nitro.d.ts +1 -1
  33. package/dist/nitro.js +3 -3
  34. package/dist/{oauth-authorization-Bdu39G-H.js → oauth-authorization-BM7g61od.js} +1 -1
  35. package/dist/{oauth-callback-server-eJfI6skP.js → oauth-callback-server-Dw-BwI6x.js} +2 -2
  36. package/dist/{pending-auth-DauOaies.js → pending-auth-Chn_EA1_.js} +2 -2
  37. package/dist/{profile-XzHSfIah.js → profile-3t9H_IwL.js} +4 -4
  38. package/dist/{registry-BJME30oR.js → registry-DLZlAhdP.js} +1 -1
  39. package/dist/{resolve-ZKXfsZuZ.js → resolve-9_cIPQsq.js} +2 -2
  40. package/dist/{runner-DkHL8vRA.js → runner-C_eUbFyp.js} +9 -9
  41. package/dist/{sandbox-egress-signals-BEQsK7ym.js → sandbox-egress-signals-C1ycxTNA.js} +1 -1
  42. package/dist/{schema-CxWAN2zq.js → schema-C4XwHTY4.js} +1 -1
  43. package/dist/{skills-CMl248J3.js → skills-Dqgjr_Tl.js} +2 -2
  44. package/dist/{spawn-DrvZYrTQ.js → spawn-BfEr3t7b.js} +2 -2
  45. package/dist/{store-BxxbxBlm.d.ts → store-DoewL5mG.d.ts} +0 -7
  46. package/dist/{task-queue-BMzTARMo.js → task-queue-CuFZDOXn.js} +3 -3
  47. package/dist/{task-runner-CXTpWSmw.js → task-runner-c7gwV8dj.js} +10 -10
  48. package/dist/{thread-state-BM1sLptE.js → thread-state-exTu-G1w.js} +6 -6
  49. package/dist/{turn-failure-response-ISrbka5I.js → turn-failure-response-DFp99ziF.js} +8 -8
  50. package/dist/{turn-lifecycle-f7TPxQsc.js → turn-lifecycle-C4TjuOzG.js} +1 -1
  51. package/dist/{turn-session-routing-BcAD7onh.js → turn-session-routing-Vpg8jUD1.js} +1 -1
  52. package/dist/{validation-Bo6BHmig.js → validation-D2lULEG9.js} +1 -1
  53. package/dist/{version-Cv__n5ue.js → version-BjBMCc2o.js} +1 -1
  54. package/dist/version.js +1 -1
  55. package/dist/{viewer-EftpWXcF.js → viewer-XE3nFqKM.js} +9 -11
  56. package/dist/{web-authorization-BLDXKk2u.js → web-authorization-8E8IrWOj.js} +6 -6
  57. package/dist/{web-input-DSa6geKr.js → web-input-DF4GGJrf.js} +24 -41
  58. package/dist/{work-WOk5DovU.js → work-Dt_JjfbX.js} +7 -7
  59. package/dist/{worker-B7rtMFzw.js → worker-BrbnLmD3.js} +5 -5
  60. package/package.json +5 -5
@@ -1,13 +1,13 @@
1
- import { d as unwrapCurrentInstruction, f as escapeXml, i as completeText, o as resolveGatewayModel } from "./client-DNf-sJmM.js";
2
- import { d as logException, o as getActiveTraceId, p as logWarn, t as buildTurnFailureResponse, v as setSpanAttributes } from "./logging-Crg0e1jb.js";
3
- import { n as botConfig } from "./config-B8QN-04U.js";
1
+ import { d as unwrapCurrentInstruction, f as escapeXml, i as completeText, o as resolveGatewayModel } from "./client-Cn73E7br.js";
2
+ import { d as logException, o as getActiveTraceId, p as logWarn, t as buildTurnFailureResponse, v as setSpanAttributes } from "./logging-BSNF167N.js";
3
+ import { n as botConfig } from "./config-B0S86yw9.js";
4
4
  import { c as toStoredSlackActor, g as parseSlackMessageTs } from "./actor-BTtLaeWy.js";
5
- import { b as addAgentTurnUsage, c as getConversationEventStore, f as getSqlExecutor, m as withConversationEventLock, p as createSqlConversationEventStore, u as getConversationStore, v as bindProviderConversation } from "./viewer-EftpWXcF.js";
5
+ import { c as getConversationEventStore, f as getSqlExecutor, m as withConversationEventLock, p as createSqlConversationEventStore, u as getConversationStore, v as startLocationThread, x as addAgentTurnUsage, y as bindProviderConversation } from "./viewer-XE3nFqKM.js";
6
6
  import { d as instructionActors, f as instructionProvenanceFor, n as agentHistoryItemSchema, u as contextProvenance } from "./history-BLTUgFYO.js";
7
- import { p as credentialSubjectSchema } from "./registry-BJME30oR.js";
8
- import { Gt as agentsInstructionsUpdatedEvent, Kt as authenticationLinkedEvent, Wt as JUNIOR_NATIVE_EVENT_NAMESPACE, qt as authenticationUnlinkedEvent } from "./agent-hooks-DzfA5m3R.js";
7
+ import { p as credentialSubjectSchema } from "./registry-DLZlAhdP.js";
8
+ import { Jt as agentsInstructionsUpdatedEvent, Xt as authenticationUnlinkedEvent, Yt as authenticationLinkedEvent, qt as JUNIOR_NATIVE_EVENT_NAMESPACE } from "./agent-hooks-JFbgedMZ.js";
9
9
  import { H as messageCardRef } from "./conversation-DwD-vquD.js";
10
- import { D as fenceLock, O as withLock, T as MUTATION_LOCK_TTL_MS, k as sleep, w as getStateAdapter } from "./profile-XzHSfIah.js";
10
+ import { D as fenceLock, O as withLock, T as MUTATION_LOCK_TTL_MS, k as sleep, w as getStateAdapter } from "./profile-3t9H_IwL.js";
11
11
  import { isDeepStrictEqual } from "node:util";
12
12
  import { z } from "zod";
13
13
  import { createHash } from "node:crypto";
@@ -960,10 +960,14 @@ async function commitAcceptedReply(args) {
960
960
  conversationId: args.conversationId,
961
961
  ...args.repliedAtMs === void 0 ? void 0 : { repliedAtMs: args.repliedAtMs }
962
962
  });
963
- for (const binding of args.providerConversationBindings ?? []) await bindProviderConversation(executor, {
964
- conversationId: args.conversationId,
965
- ...binding
966
- });
963
+ for (const reference of args.providerConversationBindings ?? []) {
964
+ const binding = {
965
+ conversationId: args.conversationId,
966
+ ...reference
967
+ };
968
+ await bindProviderConversation(executor, binding);
969
+ await startLocationThread(executor, binding);
970
+ }
967
971
  }));
968
972
  }
969
973
  async function commitMessagesLocked(args, executor) {
package/dist/cli/chat.js CHANGED
@@ -1,4 +1,4 @@
1
- import { n as executeAgentRun, t as createAgentRunner } from "../agent-runner--1wC26S6.js";
1
+ import { n as executeAgentRun, t as createAgentRunner } from "../agent-runner-0IjJxsL1.js";
2
2
  import { t as loadAppPluginSet } from "../plugin-module-CVvEUSMH.js";
3
3
  import path from "node:path";
4
4
  import { createHash, randomUUID } from "node:crypto";
@@ -100,10 +100,10 @@ async function loadLocalPluginSet() {
100
100
  async function configureLocalChatPlugins(pluginSet) {
101
101
  const [pluginsModule, agentHooksModule, catalogRuntimeModule, validationModule, databaseModule] = await Promise.all([
102
102
  import("../plugins-egKWjgue.js").then((n) => n.o),
103
- import("../agent-hooks-DzfA5m3R.js").then((n) => n.t),
104
- import("../catalog-runtime-DpB_hG_I.js").then((n) => n.t),
105
- import("../validation-Bo6BHmig.js").then((n) => n.r),
106
- import("../viewer-EftpWXcF.js").then((n) => n.s)
103
+ import("../agent-hooks-JFbgedMZ.js").then((n) => n.t),
104
+ import("../catalog-runtime-DdigNl7s.js").then((n) => n.t),
105
+ import("../validation-D2lULEG9.js").then((n) => n.r),
106
+ import("../viewer-XE3nFqKM.js").then((n) => n.s)
107
107
  ]);
108
108
  const resolvedPluginSet = pluginSet === void 0 ? await loadLocalPluginSet() : pluginSet ?? void 0;
109
109
  const plugins = pluginsModule.pluginRuntimeRegistrationsFromPluginSet(resolvedPluginSet);
@@ -155,16 +155,16 @@ async function prepareLocalChatRun(io, pluginSet) {
155
155
  await configureLocalChatPlugins(pluginSet);
156
156
  const { setExperimentalFeatures } = await import("../experimental-Qn9rKLgx.js").then((n) => n.t);
157
157
  setExperimentalFeatures({ subagents: true });
158
- const { setBriefsConfig } = await import("../agent-hooks-DzfA5m3R.js").then((n) => n.m);
158
+ const { setBriefsConfig } = await import("../agent-hooks-JFbgedMZ.js").then((n) => n.m);
159
159
  setBriefsConfig({ enabled: true });
160
- const { runLocalAgentTurn } = await import("../runner-DkHL8vRA.js");
161
- const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-eJfI6skP.js");
160
+ const { runLocalAgentTurn } = await import("../runner-C_eUbFyp.js");
161
+ const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-Dw-BwI6x.js");
162
162
  const { createLocalOAuthState } = await import("../oauth-relay-CdCnu80W.js").then((n) => n.t);
163
- const { createLocalSandboxEgressSignalTransport } = await import("../sandbox-egress-signals-BEQsK7ym.js");
164
- const { bindSpawnAgent } = await import("../spawn-DrvZYrTQ.js").then((n) => n.n);
165
- const { createAgentInvocationWorker, routeAgentInvocationWork } = await import("../work-WOk5DovU.js").then((n) => n.a);
163
+ const { createLocalSandboxEgressSignalTransport } = await import("../sandbox-egress-signals-C1ycxTNA.js");
164
+ const { bindSpawnAgent } = await import("../spawn-BfEr3t7b.js").then((n) => n.n);
165
+ const { createAgentInvocationWorker, routeAgentInvocationWork } = await import("../work-Dt_JjfbX.js").then((n) => n.a);
166
166
  const { createLocalConversationWork } = await import("../conversation-work-C6y3T5Hx.js");
167
- const { processConversationWork } = await import("../worker-B7rtMFzw.js").then((n) => n.n);
167
+ const { processConversationWork } = await import("../worker-BrbnLmD3.js").then((n) => n.n);
168
168
  let agentRunner;
169
169
  const localConversationWork = createLocalConversationWork(async (message) => {
170
170
  if (!agentRunner) throw new Error("Local agent runner is not ready");
package/dist/cli/check.js CHANGED
@@ -1,6 +1,6 @@
1
- import { D as JUNIOR_HEARTBEAT_ROUTE, M as LEGACY_JUNIOR_CONVERSATION_WORK_FUNCTION, T as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE } from "../logging-Crg0e1jb.js";
2
- import { _ as parsePluginManifest, g as parseInlinePluginManifest } from "../registry-BJME30oR.js";
3
- import { i as parseSkillFile } from "../skills-CMl248J3.js";
1
+ import { D as JUNIOR_HEARTBEAT_ROUTE, M as LEGACY_JUNIOR_CONVERSATION_WORK_FUNCTION, T as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE } from "../logging-BSNF167N.js";
2
+ import { _ as parsePluginManifest, g as parseInlinePluginManifest } from "../registry-DLZlAhdP.js";
3
+ import { i as parseSkillFile } from "../skills-Dqgjr_Tl.js";
4
4
  import path from "node:path";
5
5
  import fs from "node:fs/promises";
6
6
  import { pathToFileURL } from "node:url";
package/dist/cli/main.js CHANGED
@@ -25,10 +25,10 @@ async function runChat(argv, pluginSet) {
25
25
  return await (await import("./chat.js")).runChat(argv, void 0, { pluginSet });
26
26
  }
27
27
  async function runAdmin(argv) {
28
- return await (await import("../admin-Cc-iA6z9.js")).runAdmin(argv);
28
+ return await (await import("../admin-D6fRPRgC.js")).runAdmin(argv);
29
29
  }
30
30
  async function runBriefs(argv) {
31
- return await (await import("../briefs-DGc2Thua.js")).runBriefs(argv);
31
+ return await (await import("../briefs-BGWTp-nz.js")).runBriefs(argv);
32
32
  }
33
33
  function topLevelCommand(argv) {
34
34
  return (argv[0] === "--" ? argv.slice(1) : argv)[0];
@@ -1,7 +1,7 @@
1
- import { d as getDb } from "../viewer-EftpWXcF.js";
2
- import { n as pluginCatalogRuntime } from "../catalog-runtime-DpB_hG_I.js";
3
- import { d as setPlugins, f as validatePlugins, xt as createPluginLogger } from "../agent-hooks-DzfA5m3R.js";
4
- import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "../validation-Bo6BHmig.js";
1
+ import { d as getDb } from "../viewer-XE3nFqKM.js";
2
+ import { n as pluginCatalogRuntime } from "../catalog-runtime-DdigNl7s.js";
3
+ import { d as setPlugins, f as validatePlugins, xt as createPluginLogger } from "../agent-hooks-JFbgedMZ.js";
4
+ import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "../validation-D2lULEG9.js";
5
5
  import { a as pluginRuntimeRegistrationsFromPluginSet, i as pluginCliRegistrationsFromPluginSet, r as pluginCatalogConfigFromPluginSet } from "../plugins-egKWjgue.js";
6
6
  import { t as loadAppPluginSet } from "../plugin-module-CVvEUSMH.js";
7
7
  import { stderr, stdout } from "node:process";
@@ -1,6 +1,6 @@
1
- import { n as pluginCatalogRuntime } from "../catalog-runtime-DpB_hG_I.js";
2
- import { S as disconnectStateAdapter, t as create } from "../profile-XzHSfIah.js";
3
- import { r as resolve } from "../resolve-ZKXfsZuZ.js";
1
+ import { n as pluginCatalogRuntime } from "../catalog-runtime-DdigNl7s.js";
2
+ import { S as disconnectStateAdapter, t as create } from "../profile-3t9H_IwL.js";
3
+ import { r as resolve } from "../resolve-9_cIPQsq.js";
4
4
  //#region src/cli/snapshot-create.ts
5
5
  const DEFAULT_RUNTIME = "node22";
6
6
  const DEFAULT_TIMEOUT_MS = 6e5;
@@ -1,4 +1,4 @@
1
- import "../db-CWZP77Ex.js";
1
+ import "../db-Ca9Nt5ci.js";
2
2
  import { n as JuniorPluginSet } from "../plugins-CjfUP5gJ.js";
3
3
  //#region src/cli/upgrade/types.d.ts
4
4
  interface UpgradeIo {
@@ -1,6 +1,6 @@
1
- import { i as getChatConfig } from "../config-B8QN-04U.js";
2
- import { t as createJuniorSqlExecutor } from "../executor-BQV1Zc1z.js";
3
- import { t as createPluginCatalogRuntime } from "../registry-BJME30oR.js";
1
+ import { i as getChatConfig } from "../config-B0S86yw9.js";
2
+ import { t as createJuniorSqlExecutor } from "../executor-BQ-A5nov.js";
3
+ import { t as createPluginCatalogRuntime } from "../registry-DLZlAhdP.js";
4
4
  import { n as pluginCatalogConfigFromEnv, r as pluginCatalogConfigFromPluginSet, t as defineJuniorPlugins } from "../plugins-egKWjgue.js";
5
5
  import { t as loadAppPluginSet } from "../plugin-module-CVvEUSMH.js";
6
6
  import { basename, dirname, join, resolve } from "node:path";
@@ -1,5 +1,5 @@
1
- import { d as logException, g as serializeGenAiAttribute, i as extractGenAiUsageAttributes, m as normalizeGenAiFinishReason, p as logWarn, w as withSpan } from "./logging-Crg0e1jb.js";
2
- import { a as toCanonicalInputMessage, n as getCurrentConversationPrivacy, o as toCanonicalOutputMessage, s as toGenAiMessagesTraceAttributes } from "./conversation-privacy-CrYizZM3.js";
1
+ import { d as logException, g as serializeGenAiAttribute, i as extractGenAiUsageAttributes, m as normalizeGenAiFinishReason, p as logWarn, w as withSpan } from "./logging-BSNF167N.js";
2
+ import { a as toCanonicalInputMessage, n as getCurrentConversationPrivacy, o as toCanonicalOutputMessage, s as toGenAiMessagesTraceAttributes } from "./conversation-privacy-BKlX7D_R.js";
3
3
  import { calculateCost, completeSimple, getEnvApiKey, getModels, registerApiProvider } from "@earendil-works/pi-ai/compat";
4
4
  import { stream as streamAnthropic, streamSimple as streamSimpleAnthropic } from "@earendil-works/pi-ai/api/anthropic-messages";
5
5
  import { createGatewayProvider } from "@ai-sdk/gateway";
@@ -1,6 +1,6 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.js";
2
- import { S as toOptionalTrimmed, o as resolveGatewayModel } from "./client-DNf-sJmM.js";
3
- import { p as logWarn } from "./logging-Crg0e1jb.js";
2
+ import { S as toOptionalTrimmed, o as resolveGatewayModel } from "./client-Cn73E7br.js";
3
+ import { p as logWarn } from "./logging-BSNF167N.js";
4
4
  import { l as TURN_REASONING_LEVELS, s as modelProfileSchema, t as DEFAULT_MODEL_PROFILES, u as parseTurnReasoningLevel } from "./model-profile-BwU8mqwD.js";
5
5
  //#region src/chat/slack/emoji.ts
6
6
  const SLACK_EMOJI_NAME_RE = /^(?:[a-z0-9_+-]+)(?:::(?:skin-tone-[2-6]))?$/;
@@ -1,4 +1,4 @@
1
- import { p as logWarn } from "./logging-Crg0e1jb.js";
1
+ import { p as logWarn } from "./logging-BSNF167N.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,19 +1,19 @@
1
- import { Mn as createUserTokenStore, On as postSlackMessage, _ as resolvePluginOAuthAccount, _n as formatProviderLabel, d as getMcpAuthSession, f as getMcpStoredOAuthCredentials, o as finalizeMcpAuthorization, p as putMcpStoredOAuthCredentials, s as deleteMcpAuthSession, vn as parseOAuthStatePayload, vt as getMcpProviderErrorAttributes, x as lookupSlackUserProfile, yn as resolveBaseUrl } from "./agent-runner--1wC26S6.js";
2
- import { f as escapeXml } from "./client-DNf-sJmM.js";
3
- import { d as logException, h as runBestEffort, p as logWarn } from "./logging-Crg0e1jb.js";
4
- import { a as getRuntimeMetadata, n as botConfig } from "./config-B8QN-04U.js";
1
+ import { Dn as postSlackMessage, _ as resolvePluginOAuthAccount, _n as parseOAuthStatePayload, _t as getMcpProviderErrorAttributes, d as getMcpAuthSession, f as getMcpStoredOAuthCredentials, gn as formatProviderLabel, jn as createUserTokenStore, o as finalizeMcpAuthorization, p as putMcpStoredOAuthCredentials, s as deleteMcpAuthSession, vn as resolveBaseUrl, x as lookupSlackUserProfile } from "./agent-runner-0IjJxsL1.js";
2
+ import { f as escapeXml } from "./client-Cn73E7br.js";
3
+ import { d as logException, h as runBestEffort, p as logWarn } from "./logging-BSNF167N.js";
4
+ import { a as getRuntimeMetadata, n as botConfig } from "./config-B0S86yw9.js";
5
5
  import { f as parseSlackUserId } from "./actor-BTtLaeWy.js";
6
- import { A as upsertLinkedIdentity, f as getSqlExecutor, k as upsertIdentity } from "./viewer-EftpWXcF.js";
6
+ import { A as upsertIdentity, f as getSqlExecutor, j as upsertLinkedIdentity } from "./viewer-XE3nFqKM.js";
7
7
  import { i as homeDir } from "./package-discovery-BVvSnQBB.js";
8
- import { n as buildOAuthTokenRequest, r as parseOAuthTokenResponse, u as hasRequiredOAuthScope } from "./registry-BJME30oR.js";
9
- import { n as pluginCatalogRuntime } from "./catalog-runtime-DpB_hG_I.js";
10
- import { t as discoverSkills } from "./skills-CMl248J3.js";
11
- import { B as recordAuthenticationLinked, V as recordAuthorizationCompleted, s as getTurnRecord } from "./checkpoint-CN7yMfSo.js";
12
- import { at as getSlackClient } from "./agent-hooks-DzfA5m3R.js";
13
- import { E as acquireActiveLock, w as getStateAdapter } from "./profile-XzHSfIah.js";
14
- import { i as getConversationPendingAuth } from "./pending-auth-DauOaies.js";
15
- import { r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-BM1sLptE.js";
16
- import { n as deleteWebAuthorization, o as wakeAuthorizedTurn, s as wakePausedTurn } from "./web-authorization-BLDXKk2u.js";
8
+ import { n as buildOAuthTokenRequest, r as parseOAuthTokenResponse, u as hasRequiredOAuthScope } from "./registry-DLZlAhdP.js";
9
+ import { n as pluginCatalogRuntime } from "./catalog-runtime-DdigNl7s.js";
10
+ import { t as discoverSkills } from "./skills-Dqgjr_Tl.js";
11
+ import { B as recordAuthenticationLinked, V as recordAuthorizationCompleted, s as getTurnRecord } from "./checkpoint-C1ZnSz7r.js";
12
+ import { at as getSlackClient } from "./agent-hooks-JFbgedMZ.js";
13
+ import { E as acquireActiveLock, w as getStateAdapter } from "./profile-3t9H_IwL.js";
14
+ import { i as getConversationPendingAuth } from "./pending-auth-Chn_EA1_.js";
15
+ import { r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-exTu-G1w.js";
16
+ import { n as deleteWebAuthorization, o as wakeAuthorizedTurn, s as wakePausedTurn } from "./web-authorization-8E8IrWOj.js";
17
17
  import { n as relayLocalOAuthCallback } from "./oauth-relay-CdCnu80W.js";
18
18
  import path from "node:path";
19
19
  import { z } from "zod";
@@ -1,4 +1,4 @@
1
- import "./store-BxxbxBlm.js";
1
+ import "./store-DoewL5mG.js";
2
2
  import { z } from "zod";
3
3
  import "drizzle-orm/pg-core";
4
4
  import "drizzle-orm/migrator";
@@ -1,6 +1,6 @@
1
- import { d as logException } from "./logging-Crg0e1jb.js";
1
+ import { d as logException } from "./logging-BSNF167N.js";
2
2
  import { g as startSpanManual } from "./sentry-CgWZM_kV.js";
3
- import "./config-B8QN-04U.js";
3
+ import "./config-B0S86yw9.js";
4
4
  import { n as juniorDestinations, r as timestamptz } from "./destinations-BeBiJeEM.js";
5
5
  import { AsyncLocalStorage } from "node:async_hooks";
6
6
  import { getTableColumns, sql } from "drizzle-orm";
@@ -1,6 +1,6 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.js";
2
- import { D as storeAttachment, T as readLiveAttachment } from "./agent-runner--1wC26S6.js";
3
- import { f as getSqlExecutor } from "./viewer-EftpWXcF.js";
2
+ import { D as storeAttachment, T as readLiveAttachment } from "./agent-runner-0IjJxsL1.js";
3
+ import { f as getSqlExecutor } from "./viewer-XE3nFqKM.js";
4
4
  import "./conversation-DwD-vquD.js";
5
5
  //#region src/chat/attachments/images.ts
6
6
  var images_exports = /* @__PURE__ */ __exportAll({
@@ -1,6 +1,6 @@
1
- import { N as getDeploymentServiceVersion, P as getDeploymentTelemetryAttributes } from "./logging-Crg0e1jb.js";
1
+ import { N as getDeploymentServiceVersion, P as getDeploymentTelemetryAttributes } from "./logging-BSNF167N.js";
2
2
  import { _ as vercelAIIntegration, a as getClient, b as withStreamedSpan, c as init, o as getGlobalScope } from "./sentry-CgWZM_kV.js";
3
- import { n as getCurrentConversationPrivacy } from "./conversation-privacy-CrYizZM3.js";
3
+ import { n as getCurrentConversationPrivacy } from "./conversation-privacy-BKlX7D_R.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-B8QN-04U.js";
1
+ import { i as getChatConfig } from "./config-B0S86yw9.js";
2
2
  import { AsyncLocalStorage } from "node:async_hooks";
3
3
  import { z } from "zod";
4
4
  import { createHash, createHmac, timingSafeEqual } from "node:crypto";
@@ -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, y as withScope } from "./sentry-CgWZM_kV.js";
2
- import { t as JUNIOR_VERSION } from "./version-Cv__n5ue.js";
2
+ import { t as JUNIOR_VERSION } from "./version-BjBMCc2o.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 { r as JuniorDashboardOptions } from "./app-FB2hmHpZ.js";
1
+ import { r as JuniorDashboardOptions } from "./app-MEd7wbF0.js";
2
2
  import { n as JuniorPluginSet } from "./plugins-CjfUP5gJ.js";
3
3
  //#region src/nitro.d.ts
4
4
  export type JuniorNitroDashboardOptions = JuniorDashboardOptions;
package/dist/nitro.js CHANGED
@@ -1,8 +1,8 @@
1
- import { A as JUNIOR_RETENTION_ROUTE, D as JUNIOR_HEARTBEAT_ROUTE, E as JUNIOR_HEARTBEAT_CRON_SCHEDULE, O as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, T as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE, j as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, k as JUNIOR_RETENTION_CRON_SCHEDULE } from "./logging-Crg0e1jb.js";
1
+ import { A as JUNIOR_RETENTION_ROUTE, D as JUNIOR_HEARTBEAT_ROUTE, E as JUNIOR_HEARTBEAT_CRON_SCHEDULE, O as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, T as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE, j as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, k as JUNIOR_RETENTION_CRON_SCHEDULE } from "./logging-BSNF167N.js";
2
2
  import { d as resolvePackageDir, t as discoverInstalledPluginPackageContent, u as isValidPackageName } from "./package-discovery-BVvSnQBB.js";
3
- import { o as resolveConversationWorkQueueTopic, t as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC } from "./job-queue-D82gksYM.js";
3
+ import { o as resolveConversationWorkQueueTopic, t as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC } from "./job-queue-DgXLqoeB.js";
4
4
  import { a as pluginRuntimeRegistrationsFromPluginSet, r as pluginCatalogConfigFromPluginSet } from "./plugins-egKWjgue.js";
5
- import { t as PLUGIN_TASK_QUEUE_TOPIC } from "./task-queue-BMzTARMo.js";
5
+ import { t as PLUGIN_TASK_QUEUE_TOPIC } from "./task-queue-CuFZDOXn.js";
6
6
  import { n as loadPluginSetFromModule, r as resolvePluginModule } from "./plugin-module-CVvEUSMH.js";
7
7
  import path from "node:path";
8
8
  import { cpSync, existsSync, mkdirSync, readdirSync, statSync } from "node:fs";
@@ -1,4 +1,4 @@
1
- import { h as extractAssistantText } from "./checkpoint-CN7yMfSo.js";
1
+ import { h as extractAssistantText } from "./checkpoint-C1ZnSz7r.js";
2
2
  //#region src/chat/runtime/turn.ts
3
3
  /** Classified Slack turn failure carrying the owning Sentry capture outward. */
4
4
  var ConversationTurnBoundaryError = class extends Error {
@@ -1,5 +1,5 @@
1
- import { Mn as createUserTokenStore } from "./agent-runner--1wC26S6.js";
2
- import { a as GET, n as syncLocalOAuthCredential, r as GET$1 } from "./credential-sync-BG_Yvja8.js";
1
+ import { jn as createUserTokenStore } from "./agent-runner-0IjJxsL1.js";
2
+ import { a as GET, n as syncLocalOAuthCredential, r as GET$1 } from "./credential-sync-DeNQm7st.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 { v as isProviderRetryError } from "./client-DNf-sJmM.js";
2
- import { i as abandonTurnRecord, mt as estimateTextTokens } from "./checkpoint-CN7yMfSo.js";
1
+ import { v as isProviderRetryError } from "./client-Cn73E7br.js";
2
+ import { i as abandonTurnRecord, mt as estimateTextTokens } from "./checkpoint-C1ZnSz7r.js";
3
3
  import { r as isExperimentalFeatureEnabled } from "./experimental-Qn9rKLgx.js";
4
4
  import { z } from "zod";
5
5
  //#region src/chat/state/turn-id.ts
@@ -1,7 +1,7 @@
1
- import { S as toOptionalTrimmed } from "./client-DNf-sJmM.js";
2
- import { v as setSpanAttributes, y as setSpanStatus } from "./logging-Crg0e1jb.js";
3
- import { i as getChatConfig } from "./config-B8QN-04U.js";
4
- import { n as pluginCatalogRuntime } from "./catalog-runtime-DpB_hG_I.js";
1
+ import { S as toOptionalTrimmed } from "./client-Cn73E7br.js";
2
+ import { v as setSpanAttributes, y as setSpanStatus } from "./logging-BSNF167N.js";
3
+ import { i as getChatConfig } from "./config-B0S86yw9.js";
4
+ import { n as pluginCatalogRuntime } from "./catalog-runtime-DdigNl7s.js";
5
5
  import { createHash } from "node:crypto";
6
6
  import { createMemoryState } from "@chat-adapter/state-memory";
7
7
  import { createRedisState } from "@chat-adapter/state-redis";
@@ -1,4 +1,4 @@
1
- import { f as logInfo, p as logWarn, v as setSpanAttributes } from "./logging-Crg0e1jb.js";
1
+ import { f as logInfo, p as logWarn, v as setSpanAttributes } from "./logging-BSNF167N.js";
2
2
  import { o as parseActorUserId } from "./actor-BTtLaeWy.js";
3
3
  import { n as normalizePluginPackageNames, o as pluginRoots, t as discoverInstalledPluginPackageContent } from "./package-discovery-BVvSnQBB.js";
4
4
  import path from "node:path";
@@ -1,5 +1,5 @@
1
- import { v as setSpanAttributes, w as withSpan } from "./logging-Crg0e1jb.js";
2
- import { N as SANDBOX_WORKSPACE_ROOT, k as sleep, r as isStale, t as create, u as isSandboxUnavailableError, v as getVercelSandboxCredentials, w as getStateAdapter, x as runNonInteractiveCommand } from "./profile-XzHSfIah.js";
1
+ import { v as setSpanAttributes, w as withSpan } from "./logging-BSNF167N.js";
2
+ import { N as SANDBOX_WORKSPACE_ROOT, k as sleep, r as isStale, t as create, u as isSandboxUnavailableError, v as getVercelSandboxCredentials, w as getStateAdapter, x as runNonInteractiveCommand } from "./profile-3t9H_IwL.js";
3
3
  import { z } from "zod";
4
4
  import { FileSystem, Sandbox } from "@vercel/sandbox";
5
5
  //#region src/chat/sandbox/resources.ts
@@ -1,13 +1,13 @@
1
- import { C as withLogContext, b as setTags, d as logException } from "./logging-Crg0e1jb.js";
2
- import { c as getConversationEventStore, u as getConversationStore } from "./viewer-EftpWXcF.js";
3
- import { d as credentialContextForActor } from "./registry-BJME30oR.js";
4
- import { A as commitAcceptedReply, P as loadProjection, V as recordAuthorizationCompleted, X as persistConversationMessages, Y as hydrateConversationMessages, dt as recordDeliveredAssistantMessage, it as buildConversationContext, lt as markConversationMessage, pt as upsertConversationMessage, r as saveTurnCheckpoint, u as persistWithRetry, ut as normalizeConversationText } from "./checkpoint-CN7yMfSo.js";
1
+ import { C as withLogContext, b as setTags, d as logException } from "./logging-BSNF167N.js";
2
+ import { c as getConversationEventStore, u as getConversationStore } from "./viewer-XE3nFqKM.js";
3
+ import { d as credentialContextForActor } from "./registry-DLZlAhdP.js";
4
+ import { A as commitAcceptedReply, P as loadProjection, V as recordAuthorizationCompleted, X as persistConversationMessages, Y as hydrateConversationMessages, dt as recordDeliveredAssistantMessage, it as buildConversationContext, lt as markConversationMessage, pt as upsertConversationMessage, r as saveTurnCheckpoint, u as persistWithRetry, ut as normalizeConversationText } from "./checkpoint-C1ZnSz7r.js";
5
5
  import { U as messageCardText } from "./conversation-DwD-vquD.js";
6
- import { _ as markTurnFailed, r as getAssistantReplyText, t as authorizationId, v as startActiveTurn } from "./oauth-authorization-Bdu39G-H.js";
7
- import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-CXTpWSmw.js";
8
- import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-f7TPxQsc.js";
9
- import { n as getPersistedSandboxState, o as persistThreadStateById, r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-BM1sLptE.js";
10
- import { d as loadPendingMessageCards, i as completeAuthPauseTurn, l as buildDeliveredTurnStatePatch, t as finalizeFailedTurnReplyWithEvent } from "./turn-failure-response-ISrbka5I.js";
6
+ import { _ as markTurnFailed, r as getAssistantReplyText, t as authorizationId, v as startActiveTurn } from "./oauth-authorization-BM7g61od.js";
7
+ import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-c7gwV8dj.js";
8
+ import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-C4TjuOzG.js";
9
+ import { n as getPersistedSandboxState, o as persistThreadStateById, r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-exTu-G1w.js";
10
+ import { d as loadPendingMessageCards, i as completeAuthPauseTurn, l as buildDeliveredTurnStatePatch, t as finalizeFailedTurnReplyWithEvent } from "./turn-failure-response-DFp99ziF.js";
11
11
  import { randomUUID } from "node:crypto";
12
12
  import { createLocalSource, localDestinationSchema } from "@sentry/junior-plugin-api";
13
13
  //#region src/chat/local/runner.ts
@@ -1,4 +1,4 @@
1
- import { gn as sandboxEgressSignalsResponseSchema } from "./agent-runner--1wC26S6.js";
1
+ import { hn as sandboxEgressSignalsResponseSchema } from "./agent-runner-0IjJxsL1.js";
2
2
  //#region 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;
@@ -1,6 +1,6 @@
1
1
  import { t as juniorDestinationKindSchema } from "./destinations-BeBiJeEM.js";
2
2
  import { E as conversationSummaryReportSchema, n as actorIdentitySchema, w as conversationStatsItemSchema } from "./conversation-DwD-vquD.js";
3
- import "./automation-CrQGQ2MT.js";
3
+ import "./automation-B5_c8hEb.js";
4
4
  import { a as fillUtcHours, c as sumUtcHoursIntoSixHours, i as fillUtcDays } from "./web-message-id-xPI_EFSC.js";
5
5
  import { z } from "zod";
6
6
  import { codeChangeStateSchema } from "@sentry/junior-plugin-api";
@@ -1,7 +1,7 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.js";
2
- import { p as logWarn } from "./logging-Crg0e1jb.js";
2
+ import { p as logWarn } from "./logging-BSNF167N.js";
3
3
  import { s as skillRoots } from "./package-discovery-BVvSnQBB.js";
4
- import { n as pluginCatalogRuntime } from "./catalog-runtime-DpB_hG_I.js";
4
+ import { n as pluginCatalogRuntime } from "./catalog-runtime-DdigNl7s.js";
5
5
  import path from "node:path";
6
6
  import { z } from "zod";
7
7
  import fs from "node:fs/promises";
@@ -1,6 +1,6 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.js";
2
- import { Fn as actorFromRun, In as toolInvocationDestination } from "./agent-runner--1wC26S6.js";
3
- import { n as createAndEnqueueAgentInvocation } from "./work-WOk5DovU.js";
2
+ import { Fn as toolInvocationDestination, Pn as actorFromRun } from "./agent-runner-0IjJxsL1.js";
3
+ import { n as createAndEnqueueAgentInvocation } from "./work-Dt_JjfbX.js";
4
4
  //#region src/chat/agent-invocations/spawn.ts
5
5
  var spawn_exports = /* @__PURE__ */ __exportAll({ bindSpawnAgent: () => bindSpawnAgent });
6
6
  /** Bind a Run's Actor and credentials to new Agent invocations. */
@@ -135,13 +135,6 @@ interface ConversationStore {
135
135
  providerTenantId: string;
136
136
  providerConversationId: string;
137
137
  }): Promise<string | undefined>;
138
- /** Return the first provider conversation bound in one destination. */
139
- getFirstProviderConversationId(args: {
140
- conversationId: string;
141
- provider: string;
142
- providerDestinationId: string;
143
- providerTenantId: string;
144
- }): Promise<string | undefined>;
145
138
  /** Bind one provider conversation to its pre-existing durable conversation. */
146
139
  bindProviderConversation(args: {
147
140
  conversationId: string;
@@ -1,5 +1,5 @@
1
- import { p as logWarn } from "./logging-Crg0e1jb.js";
2
- import { c as QUEUE_SIGNATURE_MAX_AGE_MS, d as createVercelQueueClient, l as signQueueMessage, p as runWithTurnRequestDeadline, u as verifyQueueMessage } from "./job-queue-D82gksYM.js";
1
+ import { p as logWarn } from "./logging-BSNF167N.js";
2
+ import { c as QUEUE_SIGNATURE_MAX_AGE_MS, d as createVercelQueueClient, l as signQueueMessage, p as runWithTurnRequestDeadline, u as verifyQueueMessage } from "./job-queue-DgXLqoeB.js";
3
3
  import { z } from "zod";
4
4
  import { createHash } from "node:crypto";
5
5
  import { handleCallback, registerDevConsumer } from "@vercel/queue";
@@ -115,7 +115,7 @@ function pluginTaskCallback() {
115
115
  maxDeliveries: PLUGIN_TASK_MAX_DELIVERIES,
116
116
  onRejected: logPluginTaskQueueMessageRejected,
117
117
  run: async (message) => {
118
- const { processPluginTask } = await import("./task-runner-CXTpWSmw.js").then((n) => n.r);
118
+ const { processPluginTask } = await import("./task-runner-c7gwV8dj.js").then((n) => n.r);
119
119
  await processPluginTask(message);
120
120
  },
121
121
  topic: PLUGIN_TASK_QUEUE_TOPIC,
@@ -1,16 +1,16 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.js";
2
- import { p as logWarn } from "./logging-Crg0e1jb.js";
2
+ import { p as logWarn } from "./logging-BSNF167N.js";
3
3
  import { g as parseSlackMessageTs } from "./actor-BTtLaeWy.js";
4
- import { S as agentTurnTotalTokens, d as getDb, r as readActorIdentity, u as getConversationStore, x as agentTurnCostUsd } from "./viewer-EftpWXcF.js";
5
- import { D as juniorConversations, c as juniorAutomationExecutions } from "./executor-BQV1Zc1z.js";
4
+ import { C as agentTurnTotalTokens, S as agentTurnCostUsd, d as getDb, r as readActorIdentity, u as getConversationStore } from "./viewer-XE3nFqKM.js";
5
+ import { D as juniorConversations, c as juniorAutomationExecutions } from "./executor-BQ-A5nov.js";
6
6
  import { p as sameActorIdentity } from "./history-BLTUgFYO.js";
7
- import { p as credentialSubjectSchema } from "./registry-BJME30oR.js";
8
- import { C as isToolResultError, D as stripRuntimeTurnContext, T as normalizeToolNameFromResult, Y as hydrateConversationMessages, b as instructionTextForProjection, g as getPiMessageRole, s as getTurnRecord, w as isToolResultMessage } from "./checkpoint-CN7yMfSo.js";
9
- import { bt as createPluginModel, jt as createPluginConversationEvents, p as coreTaskRegistrations, pt as JUNIOR_THREAD_STATE_TTL_MS, u as getPlugins, vt as createPluginState, xt as createPluginLogger, yt as createPluginEmbedder } from "./agent-hooks-DzfA5m3R.js";
10
- import { w as getStateAdapter } from "./profile-XzHSfIah.js";
11
- import { r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-BM1sLptE.js";
12
- import { t as resolveConversationRouting } from "./turn-session-routing-BcAD7onh.js";
13
- import { i as pluginTaskParamsSchema, o as sendVercelPluginTask, r as pluginTaskId } from "./task-queue-BMzTARMo.js";
7
+ import { p as credentialSubjectSchema } from "./registry-DLZlAhdP.js";
8
+ import { C as isToolResultError, D as stripRuntimeTurnContext, T as normalizeToolNameFromResult, Y as hydrateConversationMessages, b as instructionTextForProjection, g as getPiMessageRole, s as getTurnRecord, w as isToolResultMessage } from "./checkpoint-C1ZnSz7r.js";
9
+ import { bt as createPluginModel, jt as createPluginConversationEvents, p as coreTaskRegistrations, pt as JUNIOR_THREAD_STATE_TTL_MS, u as getPlugins, vt as createPluginState, xt as createPluginLogger, yt as createPluginEmbedder } from "./agent-hooks-JFbgedMZ.js";
10
+ import { w as getStateAdapter } from "./profile-3t9H_IwL.js";
11
+ import { r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-exTu-G1w.js";
12
+ import { t as resolveConversationRouting } from "./turn-session-routing-Vpg8jUD1.js";
13
+ import { i as pluginTaskParamsSchema, o as sendVercelPluginTask, r as pluginTaskId } from "./task-queue-CuFZDOXn.js";
14
14
  import { z } from "zod";
15
15
  import { createHash } from "node:crypto";
16
16
  import { and, asc, count, desc, eq, gte, inArray, lte, max, or, sql } from "drizzle-orm";
@@ -1,10 +1,10 @@
1
- import { I as isRecord, L as toOptionalNumber, R as toOptionalString } from "./logging-Crg0e1jb.js";
2
- import { d as getDb } from "./viewer-EftpWXcF.js";
1
+ import { I as isRecord, L as toOptionalNumber, R as toOptionalString } from "./logging-BSNF167N.js";
2
+ import { d as getDb } from "./viewer-XE3nFqKM.js";
3
3
  import { n as juniorDestinations } from "./destinations-BeBiJeEM.js";
4
- import { d as juniorLocationConfigurations } from "./executor-BQV1Zc1z.js";
5
- import { X as persistConversationMessages } from "./checkpoint-CN7yMfSo.js";
6
- import { pt as JUNIOR_THREAD_STATE_TTL_MS } from "./agent-hooks-DzfA5m3R.js";
7
- import { w as getStateAdapter } from "./profile-XzHSfIah.js";
4
+ import { d as juniorLocationConfigurations } from "./executor-BQ-A5nov.js";
5
+ import { X as persistConversationMessages } from "./checkpoint-C1ZnSz7r.js";
6
+ import { pt as JUNIOR_THREAD_STATE_TTL_MS } from "./agent-hooks-JFbgedMZ.js";
7
+ import { w as getStateAdapter } from "./profile-3t9H_IwL.js";
8
8
  import { z } from "zod";
9
9
  import { randomUUID } from "node:crypto";
10
10
  import { and, eq, sql } from "drizzle-orm";
@@ -1,13 +1,13 @@
1
- import { _ as getProviderErrorUserMessage, g as getProviderErrorAttributes, h as findProviderError, p as ProviderError } from "./client-DNf-sJmM.js";
2
- import { I as isRecord, t as buildTurnFailureResponse } from "./logging-Crg0e1jb.js";
1
+ import { _ as getProviderErrorUserMessage, g as getProviderErrorAttributes, h as findProviderError, p as ProviderError } from "./client-Cn73E7br.js";
2
+ import { I as isRecord, t as buildTurnFailureResponse } from "./logging-BSNF167N.js";
3
3
  import { g as parseSlackMessageTs } from "./actor-BTtLaeWy.js";
4
- import { c as getConversationEventStore, d as getDb } from "./viewer-EftpWXcF.js";
5
- import { Y as hydrateConversationMessages, lt as markConversationMessage } from "./checkpoint-CN7yMfSo.js";
6
- import { Ht as listConversationAnnotations } from "./agent-hooks-DzfA5m3R.js";
4
+ import { c as getConversationEventStore, d as getDb } from "./viewer-XE3nFqKM.js";
5
+ import { Y as hydrateConversationMessages, lt as markConversationMessage } from "./checkpoint-C1ZnSz7r.js";
6
+ import { Ht as listConversationAnnotations } from "./agent-hooks-JFbgedMZ.js";
7
7
  import { G as removedCardSchema, K as resolveMessageCards, W as readMessageCardRefs } from "./conversation-DwD-vquD.js";
8
- import { r as clearPendingAuth, u as buildDeterministicTurnId } from "./pending-auth-DauOaies.js";
9
- import { g as markTurnCompleted, h as markTurnClosed } from "./oauth-authorization-Bdu39G-H.js";
10
- import { o as persistThreadStateById, r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-BM1sLptE.js";
8
+ import { r as clearPendingAuth, u as buildDeterministicTurnId } from "./pending-auth-Chn_EA1_.js";
9
+ import { g as markTurnCompleted, h as markTurnClosed } from "./oauth-authorization-BM7g61od.js";
10
+ import { o as persistThreadStateById, r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-exTu-G1w.js";
11
11
  //#region src/chat/conversations/pending-cards.ts
12
12
  /** Select undelivered cards and load their latest saved facts. */
13
13
  async function loadPendingMessageCards(conversationId) {
@@ -1,4 +1,4 @@
1
- import { c as getConversationEventStore } from "./viewer-EftpWXcF.js";
1
+ import { c as getConversationEventStore } from "./viewer-XE3nFqKM.js";
2
2
  //#region src/chat/conversations/turn-lifecycle.ts
3
3
  /** Persist correlated turn lifecycle facts with retry-safe terminal exclusion. */
4
4
  var ConversationTurnLifecycleService = class {
@@ -34,7 +34,7 @@ function slackSourceForDestination(args) {
34
34
  * Reads parent Conversations when this Conversation has no Destination.
35
35
  */
36
36
  async function resolveConversationRouting(args) {
37
- const conversationStore = args.conversationStore ?? (await import("./viewer-EftpWXcF.js").then((n) => n.s)).getConversationStore();
37
+ const conversationStore = args.conversationStore ?? (await import("./viewer-XE3nFqKM.js").then((n) => n.s)).getConversationStore();
38
38
  const chain = await loadConversationChain(args.conversationId, conversationStore);
39
39
  let destination;
40
40
  let source;
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.js";
2
- import { n as pluginCatalogRuntime } from "./catalog-runtime-DpB_hG_I.js";
2
+ import { n as pluginCatalogRuntime } from "./catalog-runtime-DdigNl7s.js";
3
3
  import { isDeepStrictEqual } from "node:util";
4
4
  //#region src/chat/plugins/validation.ts
5
5
  var validation_exports = /* @__PURE__ */ __exportAll({
@@ -1,5 +1,5 @@
1
1
  //#region package.json
2
- var version = "0.239.0";
2
+ var version = "0.240.0";
3
3
  //#endregion
4
4
  //#region src/version.ts
5
5
  /** Installed Junior package version, or `unknown` when package metadata is unavailable. */
package/dist/version.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as JUNIOR_VERSION } from "./version-Cv__n5ue.js";
1
+ import { t as JUNIOR_VERSION } from "./version-BjBMCc2o.js";
2
2
  export { JUNIOR_VERSION };