@sentry/junior 0.260.0 → 0.261.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 (59) hide show
  1. package/dist/{adapter-Dj5BTJRd.js → adapter-Bx_1B2De.js} +1 -1
  2. package/dist/{admin-tzkZDqrH.js → admin-BAbbVgVc.js} +1 -1
  3. package/dist/{agent-hooks-V4Hfc2tB.js → agent-hooks-ghyZZQqB.js} +20 -16
  4. package/dist/{agent-runner-DvTUyGTY.js → agent-runner-g110-xgg.js} +23 -22
  5. package/dist/api.js +35 -37
  6. package/dist/{app-BsBUs3rF.d.ts → app-VCiPQ65Q.d.ts} +5 -0
  7. package/dist/app.d.ts +1 -1
  8. package/dist/app.js +34 -31
  9. package/dist/{assistant-reply-CEOMzsWy.js → assistant-reply-CQcMaWNL.js} +1 -1
  10. package/dist/{briefs-BSCkyYqs.js → briefs-CKcfrIQL.js} +2 -2
  11. package/dist/{catalog-runtime-Bpcs2b2L.js → catalog-runtime-cd60vzAB.js} +1 -1
  12. package/dist/cli/chat.js +16 -16
  13. package/dist/cli/check.js +3 -3
  14. package/dist/cli/init.js +1 -1
  15. package/dist/cli/main.js +3 -3
  16. package/dist/cli/plugins.js +4 -4
  17. package/dist/cli/snapshot-create.js +4 -4
  18. package/dist/cli/upgrade.js +3 -3
  19. package/dist/{client-JeyzRwsT.js → client-2i0JJpoC.js} +2 -2
  20. package/dist/{config-ULs6Zl9b.js → config-C9qM41O0.js} +2 -2
  21. package/dist/{connections-CZ7HhEmN.js → connections-DrtTrwkp.js} +10 -10
  22. package/dist/{conversation-privacy-BQSlZXgV.js → conversation-privacy-1iTiFX1O.js} +1 -1
  23. package/dist/{credential-sync-BKcv5rBe.js → credential-sync-wKNQ1dYc.js} +14 -14
  24. package/dist/{executor-BoGNVEDn.js → executor-Rimyj8HZ.js} +2 -2
  25. package/dist/{images-BBmDXQCB.js → images-D1JggcVY.js} +2 -2
  26. package/dist/instrumentation.js +2 -2
  27. package/dist/{job-queue-CbdVyaCo.js → job-queue-BjQdSqA3.js} +1 -1
  28. package/dist/{logging-DSMmkHXG.js → logging-BLTa7R7f.js} +1 -1
  29. package/dist/{message-zaj5gBbS.js → message-DAeP5WWW.js} +3 -3
  30. package/dist/nitro.d.ts +1 -1
  31. package/dist/nitro.js +3 -3
  32. package/dist/{oauth-callback-server-yYFG8Own.js → oauth-callback-server-BAy1hhF1.js} +2 -2
  33. package/dist/{profile-ByWkAY7L.js → profile-CthM2qFM.js} +3 -3
  34. package/dist/{registry-BL-osYWN.js → registry-BnSaArNb.js} +1 -1
  35. package/dist/{resolve-HuPG2VMB.js → resolve-B5eLRl0v.js} +3 -3
  36. package/dist/{result-DS7V4a3-.js → result-Cvm0GZCv.js} +6 -6
  37. package/dist/{runner-Cba_OfGl.js → runner-D-pUzHbU.js} +10 -10
  38. package/dist/{sandbox-egress-signals-C7NcPzea.js → sandbox-egress-signals-mvwGV7rl.js} +1 -1
  39. package/dist/{service-account-Ko1Xs--F.js → service-account-Ch1uIpnR.js} +3 -3
  40. package/dist/{service-account-DqwHhwJA.js → service-account-DWxvpSfd.js} +3 -3
  41. package/dist/{session-stop-HfKx-pky.js → session-stop-Boj_zpTa.js} +10 -10
  42. package/dist/{skills-D6_bcAuW.js → skills-BpdYCfFt.js} +2 -2
  43. package/dist/{spawn-BWqK6EwM.js → spawn-h1DJMQTf.js} +2 -2
  44. package/dist/{store-DzRbd5VT.js → store-B6KqcdCQ.js} +6 -6
  45. package/dist/{task-queue-9LICOzcL.js → task-queue-BaDwKSYv.js} +3 -3
  46. package/dist/{task-runner-DGnd_B5X.js → task-runner-BAX5li9a.js} +10 -10
  47. package/dist/{tasks-CjrS098O.js → tasks-uCfmlWga.js} +40 -14
  48. package/dist/{thread-state-CqkYowEz.js → thread-state-BJHVIz8G.js} +5 -5
  49. package/dist/{turn-failure-response-BkKmGqFt.js → turn-failure-response-CCC76P6-.js} +7 -7
  50. package/dist/{turn-lifecycle-DYv8IV6w.js → turn-lifecycle-pHSESVR9.js} +1 -1
  51. package/dist/{turn-session-routing-TaVhKmdz.js → turn-session-routing-BIKJZaiw.js} +1 -1
  52. package/dist/{validation-BrXMYPyo.js → validation-B9KL_5Wc.js} +1 -1
  53. package/dist/{version-Ct049vav.js → version-CN9BXMW_.js} +1 -1
  54. package/dist/version.js +1 -1
  55. package/dist/{viewer-C-J0ewlH.js → viewer-C5xFaYVi.js} +3 -3
  56. package/dist/{web-input-C_xB3RXp.js → web-input-D6eqfXYd.js} +25 -25
  57. package/dist/{work-D829Ue7k.js → work-C-ecZAme.js} +9 -9
  58. package/dist/{worker-BRTYzlpk.js → worker-BpYDqiOf.js} +5 -5
  59. package/package.json +11 -11
package/dist/cli/chat.js CHANGED
@@ -1,4 +1,4 @@
1
- import { n as executeAgentRun, t as createAgentRunner } from "../agent-runner-DvTUyGTY.js";
1
+ import { n as executeAgentRun, t as createAgentRunner } from "../agent-runner-g110-xgg.js";
2
2
  import { t as loadAppPluginSet } from "../plugin-module-Cf5gVPWP.js";
3
3
  import path from "node:path";
4
4
  import { createHash, randomUUID } from "node:crypto";
@@ -99,10 +99,10 @@ async function loadLocalPluginSet() {
99
99
  async function configureLocalChatPlugins(pluginSet) {
100
100
  const [pluginsModule, agentHooksModule, catalogRuntimeModule, validationModule, databaseModule] = await Promise.all([
101
101
  import("../plugins-DOm9Y6qI.js").then((n) => n.o),
102
- import("../agent-hooks-V4Hfc2tB.js").then((n) => n.t),
103
- import("../catalog-runtime-Bpcs2b2L.js").then((n) => n.t),
104
- import("../validation-BrXMYPyo.js").then((n) => n.r),
105
- import("../viewer-C-J0ewlH.js").then((n) => n.s)
102
+ import("../agent-hooks-ghyZZQqB.js").then((n) => n.t),
103
+ import("../catalog-runtime-cd60vzAB.js").then((n) => n.t),
104
+ import("../validation-B9KL_5Wc.js").then((n) => n.r),
105
+ import("../viewer-C5xFaYVi.js").then((n) => n.s)
106
106
  ]);
107
107
  const resolvedPluginSet = pluginSet === void 0 ? await loadLocalPluginSet() : pluginSet ?? void 0;
108
108
  const plugins = pluginsModule.pluginRuntimeRegistrationsFromPluginSet(resolvedPluginSet);
@@ -152,21 +152,21 @@ function localDevServerUrl() {
152
152
  async function prepareLocalChatRun(io, pluginSet) {
153
153
  defaultStateAdapterForLocalChat();
154
154
  await configureLocalChatPlugins(pluginSet);
155
- const { setExperimentalFeatures } = await import("../tasks-CjrS098O.js").then((n) => n.hn);
155
+ const { setExperimentalFeatures } = await import("../tasks-uCfmlWga.js").then((n) => n.hn);
156
156
  setExperimentalFeatures({ subagents: true });
157
- const { setBriefsConfig } = await import("../agent-hooks-V4Hfc2tB.js").then((n) => n.m);
157
+ const { setBriefsConfig } = await import("../agent-hooks-ghyZZQqB.js").then((n) => n.m);
158
158
  setBriefsConfig({ enabled: true });
159
- const { runLocalAgentTurn } = await import("../runner-Cba_OfGl.js");
160
- const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-yYFG8Own.js");
159
+ const { runLocalAgentTurn } = await import("../runner-D-pUzHbU.js");
160
+ const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-BAy1hhF1.js");
161
161
  const { createLocalOAuthState } = await import("../oauth-relay-CTygMkNx.js").then((n) => n.t);
162
- const { createLocalSandboxEgressSignalTransport } = await import("../sandbox-egress-signals-C7NcPzea.js");
163
- const { bindSpawnAgent } = await import("../spawn-BWqK6EwM.js").then((n) => n.n);
164
- const { bindMessageAgent } = await import("../message-zaj5gBbS.js").then((n) => n.n);
165
- const { createAgentInvocationWorker, routeAgentInvocationWork } = await import("../work-D829Ue7k.js").then((n) => n.a);
166
- const { startAgentInvocationsForChildInput } = await import("../result-DS7V4a3-.js").then((n) => n.r);
167
- const { skipInputBeforeConversationStop } = await import("../session-stop-HfKx-pky.js").then((n) => n.r);
162
+ const { createLocalSandboxEgressSignalTransport } = await import("../sandbox-egress-signals-mvwGV7rl.js");
163
+ const { bindSpawnAgent } = await import("../spawn-h1DJMQTf.js").then((n) => n.n);
164
+ const { bindMessageAgent } = await import("../message-DAeP5WWW.js").then((n) => n.n);
165
+ const { createAgentInvocationWorker, routeAgentInvocationWork } = await import("../work-C-ecZAme.js").then((n) => n.a);
166
+ const { startAgentInvocationsForChildInput } = await import("../result-Cvm0GZCv.js").then((n) => n.r);
167
+ const { skipInputBeforeConversationStop } = await import("../session-stop-Boj_zpTa.js").then((n) => n.r);
168
168
  const { createLocalConversationWork } = await import("../conversation-work-BaT_T6EB.js");
169
- const { processConversationWork } = await import("../worker-BRTYzlpk.js").then((n) => n.n);
169
+ const { processConversationWork } = await import("../worker-BpYDqiOf.js").then((n) => n.n);
170
170
  let agentRunner;
171
171
  const localConversationWork = createLocalConversationWork(async (message) => {
172
172
  if (!agentRunner) throw new Error("Local agent runner is not ready");
package/dist/cli/check.js CHANGED
@@ -1,6 +1,6 @@
1
- import { E as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE, N as LEGACY_JUNIOR_CONVERSATION_WORK_FUNCTION, O as JUNIOR_HEARTBEAT_ROUTE } from "../logging-DSMmkHXG.js";
2
- import { v as parseInlinePluginManifest, y as parsePluginManifest } from "../registry-BL-osYWN.js";
3
- import { i as parseSkillFile } from "../skills-D6_bcAuW.js";
1
+ import { E as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE, N as LEGACY_JUNIOR_CONVERSATION_WORK_FUNCTION, O as JUNIOR_HEARTBEAT_ROUTE } from "../logging-BLTa7R7f.js";
2
+ import { v as parseInlinePluginManifest, y as parsePluginManifest } from "../registry-BnSaArNb.js";
3
+ import { i as parseSkillFile } from "../skills-BpdYCfFt.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/init.js CHANGED
@@ -136,7 +136,7 @@ async function runInit(dir, log = console.log) {
136
136
  "@sentry/junior-memory": "latest",
137
137
  "@sentry/junior-maintenance": "latest",
138
138
  "@sentry/nitro": "10.65.0",
139
- hono: "^4.12.27"
139
+ hono: "^4.13.11"
140
140
  },
141
141
  devDependencies: {
142
142
  "@types/node": "^25.9.1",
package/dist/cli/main.js CHANGED
@@ -25,13 +25,13 @@ 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-tzkZDqrH.js")).runAdmin(argv);
28
+ return await (await import("../admin-BAbbVgVc.js")).runAdmin(argv);
29
29
  }
30
30
  async function runServiceAccount(argv) {
31
- return await (await import("../service-account-DqwHhwJA.js")).runServiceAccount(argv);
31
+ return await (await import("../service-account-DWxvpSfd.js")).runServiceAccount(argv);
32
32
  }
33
33
  async function runBriefs(argv) {
34
- return await (await import("../briefs-BSCkyYqs.js")).runBriefs(argv);
34
+ return await (await import("../briefs-CKcfrIQL.js")).runBriefs(argv);
35
35
  }
36
36
  function topLevelCommand(argv) {
37
37
  return (argv[0] === "--" ? argv.slice(1) : argv)[0];
@@ -1,7 +1,7 @@
1
- import { d as getDb } from "../viewer-C-J0ewlH.js";
2
- import { n as pluginCatalogRuntime } from "../catalog-runtime-Bpcs2b2L.js";
3
- import { d as setPlugins, f as validatePlugins, wt as createPluginLogger } from "../agent-hooks-V4Hfc2tB.js";
4
- import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "../validation-BrXMYPyo.js";
1
+ import { d as getDb } from "../viewer-C5xFaYVi.js";
2
+ import { n as pluginCatalogRuntime } from "../catalog-runtime-cd60vzAB.js";
3
+ import { d as setPlugins, f as validatePlugins, wt as createPluginLogger } from "../agent-hooks-ghyZZQqB.js";
4
+ import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "../validation-B9KL_5Wc.js";
5
5
  import { a as pluginRuntimeRegistrationsFromPluginSet, i as pluginCliRegistrationsFromPluginSet, r as pluginCatalogConfigFromPluginSet } from "../plugins-DOm9Y6qI.js";
6
6
  import { t as loadAppPluginSet } from "../plugin-module-Cf5gVPWP.js";
7
7
  import { stderr, stdout } from "node:process";
@@ -1,7 +1,7 @@
1
- import { n as pluginCatalogRuntime } from "../catalog-runtime-Bpcs2b2L.js";
2
- import { t as disconnectStateAdapter } from "../adapter-Dj5BTJRd.js";
3
- import { t as create } from "../profile-ByWkAY7L.js";
4
- import { r as resolve } from "../resolve-HuPG2VMB.js";
1
+ import { n as pluginCatalogRuntime } from "../catalog-runtime-cd60vzAB.js";
2
+ import { t as disconnectStateAdapter } from "../adapter-Bx_1B2De.js";
3
+ import { t as create } from "../profile-CthM2qFM.js";
4
+ import { r as resolve } from "../resolve-B5eLRl0v.js";
5
5
  // src/cli/snapshot-create.ts
6
6
  const DEFAULT_RUNTIME = "node22";
7
7
  const DEFAULT_TIMEOUT_MS = 6e5;
@@ -1,6 +1,6 @@
1
- import { i as getChatConfig } from "../config-ULs6Zl9b.js";
2
- import { t as createJuniorSqlExecutor } from "../executor-BoGNVEDn.js";
3
- import { t as createPluginCatalogRuntime } from "../registry-BL-osYWN.js";
1
+ import { i as getChatConfig } from "../config-C9qM41O0.js";
2
+ import { t as createJuniorSqlExecutor } from "../executor-Rimyj8HZ.js";
3
+ import { t as createPluginCatalogRuntime } from "../registry-BnSaArNb.js";
4
4
  import { n as pluginCatalogConfigFromEnv, r as pluginCatalogConfigFromPluginSet, t as defineJuniorPlugins } from "../plugins-DOm9Y6qI.js";
5
5
  import { t as loadAppPluginSet } from "../plugin-module-Cf5gVPWP.js";
6
6
  import { basename, dirname, join, resolve } from "node:path";
@@ -1,5 +1,5 @@
1
- import { T as withSpan, _ as serializeGenAiAttribute, f as logException, h as normalizeGenAiFinishReason, i as extractGenAiUsageAttributes, m as logWarn } from "./logging-DSMmkHXG.js";
2
- import { a as toCanonicalInputMessage, n as getCurrentConversationPrivacy, o as toCanonicalOutputMessage, s as toGenAiMessagesTraceAttributes } from "./conversation-privacy-BQSlZXgV.js";
1
+ import { T as withSpan, _ as serializeGenAiAttribute, f as logException, h as normalizeGenAiFinishReason, i as extractGenAiUsageAttributes, m as logWarn } from "./logging-BLTa7R7f.js";
2
+ import { a as toCanonicalInputMessage, n as getCurrentConversationPrivacy, o as toCanonicalOutputMessage, s as toGenAiMessagesTraceAttributes } from "./conversation-privacy-1iTiFX1O.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-nwUcYXjP.js";
2
- import { C as toOptionalTrimmed, s as resolveGatewayModel } from "./client-JeyzRwsT.js";
3
- import { m as logWarn } from "./logging-DSMmkHXG.js";
2
+ import { C as toOptionalTrimmed, s as resolveGatewayModel } from "./client-2i0JJpoC.js";
3
+ import { m as logWarn } from "./logging-BLTa7R7f.js";
4
4
  import { l as TURN_REASONING_LEVELS, s as modelProfileSchema, t as DEFAULT_MODEL_PROFILES, u as parseTurnReasoningLevel } from "./model-profile-Bg8EoCKD.js";
5
5
  // src/chat/slack/emoji.ts
6
6
  const SLACK_EMOJI_NAME_RE = /^(?:[a-z0-9_+-]+)(?:::(?:skin-tone-[2-6]))?$/;
@@ -1,13 +1,13 @@
1
- import { Ln as startOAuthFlow, Nt as failTurnRecord, Pt as getTurnRecord, kt as loadTurnCheckpoint } from "./tasks-CjrS098O.js";
2
- import { n as botConfig } from "./config-ULs6Zl9b.js";
3
- import { A as deleteProviderIdentityForUser, c as getConversationEventStore, f as getSqlExecutor, k as deleteProviderIdentityForSlackUser } from "./viewer-C-J0ewlH.js";
4
- import { u as hasRequiredOAuthScope } from "./registry-BL-osYWN.js";
5
- import { n as pluginCatalogRuntime } from "./catalog-runtime-Bpcs2b2L.js";
6
- import { c as deleteMcpServerSessionId, l as deleteMcpStoredOAuthCredentials, s as deleteMcpAuthSessionsForUserProvider } from "./agent-runner-DvTUyGTY.js";
7
- import { r as getStateAdapter } from "./adapter-Dj5BTJRd.js";
8
- import { a as getVercelConversationWorkQueue } from "./job-queue-CbdVyaCo.js";
9
- import { m as ensureConversationWake, w as requestConversationWork } from "./store-DzRbd5VT.js";
10
- import { n as resolveTurnSessionRouting } from "./turn-session-routing-TaVhKmdz.js";
1
+ import { Ln as startOAuthFlow, Nt as failTurnRecord, Pt as getTurnRecord, kt as loadTurnCheckpoint } from "./tasks-uCfmlWga.js";
2
+ import { n as botConfig } from "./config-C9qM41O0.js";
3
+ import { A as deleteProviderIdentityForUser, c as getConversationEventStore, f as getSqlExecutor, k as deleteProviderIdentityForSlackUser } from "./viewer-C5xFaYVi.js";
4
+ import { u as hasRequiredOAuthScope } from "./registry-BnSaArNb.js";
5
+ import { n as pluginCatalogRuntime } from "./catalog-runtime-cd60vzAB.js";
6
+ import { c as deleteMcpServerSessionId, l as deleteMcpStoredOAuthCredentials, s as deleteMcpAuthSessionsForUserProvider } from "./agent-runner-g110-xgg.js";
7
+ import { r as getStateAdapter } from "./adapter-Bx_1B2De.js";
8
+ import { a as getVercelConversationWorkQueue } from "./job-queue-BjQdSqA3.js";
9
+ import { m as ensureConversationWake, w as requestConversationWork } from "./store-B6KqcdCQ.js";
10
+ import { n as resolveTurnSessionRouting } from "./turn-session-routing-BIKJZaiw.js";
11
11
  import { z } from "zod";
12
12
  import { randomBytes, randomUUID } from "node:crypto";
13
13
  // src/chat/task-execution/authorized-turn.ts
@@ -1,4 +1,4 @@
1
- import { m as logWarn } from "./logging-DSMmkHXG.js";
1
+ import { m as logWarn } from "./logging-BLTa7R7f.js";
2
2
  import { AsyncLocalStorage } from "node:async_hooks";
3
3
  // src/chat/conversation-privacy.ts
4
4
  const SAFE_METADATA_KEY_LIMIT = 20;
@@ -1,19 +1,19 @@
1
- import { $n as resolvePluginOAuthAccount, Et as getConversationPendingAuth, Fn as parseOAuthStatePayload, H as recordAuthenticationLinked, In as resolveBaseUrl, Pn as formatProviderLabel, Pt as getTurnRecord, U as recordAuthorizationCompleted, bn as createUserTokenStore, qn as postSlackMessage } from "./tasks-CjrS098O.js";
2
- import { p as escapeXml } from "./client-JeyzRwsT.js";
3
- import { L as isNativeIdentityProvider, f as logException, g as runBestEffort, m as logWarn } from "./logging-DSMmkHXG.js";
4
- import { a as getRuntimeMetadata, n as botConfig } from "./config-ULs6Zl9b.js";
1
+ import { $n as resolvePluginOAuthAccount, Et as getConversationPendingAuth, Fn as parseOAuthStatePayload, H as recordAuthenticationLinked, In as resolveBaseUrl, Pn as formatProviderLabel, Pt as getTurnRecord, U as recordAuthorizationCompleted, bn as createUserTokenStore, qn as postSlackMessage } from "./tasks-uCfmlWga.js";
2
+ import { p as escapeXml } from "./client-2i0JJpoC.js";
3
+ import { L as isNativeIdentityProvider, f as logException, g as runBestEffort, m as logWarn } from "./logging-BLTa7R7f.js";
4
+ import { a as getRuntimeMetadata, n as botConfig } from "./config-C9qM41O0.js";
5
5
  import { f as parseSlackUserId } from "./actor-tlxzqaRe.js";
6
- import { F as upsertIdentity, I as upsertLinkedIdentity, b as identityFromActor, f as getSqlExecutor, j as findUserByVerifiedEmails } from "./viewer-C-J0ewlH.js";
6
+ import { F as upsertIdentity, I as upsertLinkedIdentity, b as identityFromActor, f as getSqlExecutor, j as findUserByVerifiedEmails } from "./viewer-C5xFaYVi.js";
7
7
  import { i as homeDir } from "./package-discovery-DJBompdd.js";
8
- import { n as buildOAuthTokenRequest, r as parseOAuthTokenResponse, u as hasRequiredOAuthScope } from "./registry-BL-osYWN.js";
9
- import { n as pluginCatalogRuntime } from "./catalog-runtime-Bpcs2b2L.js";
10
- import { t as discoverSkills } from "./skills-D6_bcAuW.js";
11
- import { a as finalizeMcpAuthorization, d as getMcpStoredOAuthCredentials, f as putMcpStoredOAuthCredentials, o as deleteMcpAuthSession, u as getMcpAuthSession, v as lookupSlackUserProfile } from "./agent-runner-DvTUyGTY.js";
12
- import { ct as getSlackClient } from "./agent-hooks-V4Hfc2tB.js";
13
- import { a as acquireActiveLock, r as getStateAdapter } from "./adapter-Dj5BTJRd.js";
14
- import { _ as getMcpProviderErrorAttributes } from "./service-account-Ko1Xs--F.js";
15
- import { r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-CqkYowEz.js";
16
- import { c as deleteWebAuthorization, i as readConnectedOAuthTokens, m as wakePausedTurn, p as wakeAuthorizedTurn, u as htmlCallbackResponse } from "./connections-CZ7HhEmN.js";
8
+ import { n as buildOAuthTokenRequest, r as parseOAuthTokenResponse, u as hasRequiredOAuthScope } from "./registry-BnSaArNb.js";
9
+ import { n as pluginCatalogRuntime } from "./catalog-runtime-cd60vzAB.js";
10
+ import { t as discoverSkills } from "./skills-BpdYCfFt.js";
11
+ import { a as finalizeMcpAuthorization, d as getMcpStoredOAuthCredentials, f as putMcpStoredOAuthCredentials, o as deleteMcpAuthSession, u as getMcpAuthSession, v as lookupSlackUserProfile } from "./agent-runner-g110-xgg.js";
12
+ import { ct as getSlackClient } from "./agent-hooks-ghyZZQqB.js";
13
+ import { a as acquireActiveLock, r as getStateAdapter } from "./adapter-Bx_1B2De.js";
14
+ import { _ as getMcpProviderErrorAttributes } from "./service-account-Ch1uIpnR.js";
15
+ import { r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-BJHVIz8G.js";
16
+ import { c as deleteWebAuthorization, i as readConnectedOAuthTokens, m as wakePausedTurn, p as wakeAuthorizedTurn, u as htmlCallbackResponse } from "./connections-DrtTrwkp.js";
17
17
  import { n as relayLocalOAuthCallback } from "./oauth-relay-CTygMkNx.js";
18
18
  import path from "node:path";
19
19
  import { z } from "zod";
@@ -1,6 +1,6 @@
1
- import { f as logException } from "./logging-DSMmkHXG.js";
1
+ import { f as logException } from "./logging-BLTa7R7f.js";
2
2
  import { g as startSpanManual } from "./sentry-BBUlHih9.js";
3
- import "./config-ULs6Zl9b.js";
3
+ import "./config-C9qM41O0.js";
4
4
  import { a as juniorAgentInvocations, c as juniorIdentities, d as juniorDestinations, f as timestamptz, i as juniorAgentBindings, l as juniorUsers, s as juniorConversations } from "./agent-invocations-Qfz7dWgU.js";
5
5
  import { AsyncLocalStorage } from "node:async_hooks";
6
6
  import { sql } from "drizzle-orm";
@@ -1,6 +1,6 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-nwUcYXjP.js";
2
- import { f as getSqlExecutor } from "./viewer-C-J0ewlH.js";
3
- import { S as readLiveAttachment, w as storeAttachment } from "./agent-runner-DvTUyGTY.js";
2
+ import { f as getSqlExecutor } from "./viewer-C5xFaYVi.js";
3
+ import { S as readLiveAttachment, w as storeAttachment } from "./agent-runner-g110-xgg.js";
4
4
  import { H as detectImageMediaType } from "./conversation-CvuKJ3tA.js";
5
5
  // src/chat/attachments/images.ts
6
6
  var images_exports = /* @__PURE__ */ __exportAll({
@@ -1,6 +1,6 @@
1
- import { F as getDeploymentTelemetryAttributes, P as getDeploymentServiceVersion } from "./logging-DSMmkHXG.js";
1
+ import { F as getDeploymentTelemetryAttributes, P as getDeploymentServiceVersion } from "./logging-BLTa7R7f.js";
2
2
  import { _ as vercelAIIntegration, a as getClient, b as withStreamedSpan, c as init, o as getGlobalScope } from "./sentry-BBUlHih9.js";
3
- import { n as getCurrentConversationPrivacy } from "./conversation-privacy-BQSlZXgV.js";
3
+ import { n as getCurrentConversationPrivacy } from "./conversation-privacy-1iTiFX1O.js";
4
4
  import { t as consumePrivateTraceResultMarker } from "./private-trace-result-CE7_lEdq.js";
5
5
  // 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-ULs6Zl9b.js";
1
+ import { i as getChatConfig } from "./config-C9qM41O0.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-BBUlHih9.js";
2
- import { t as JUNIOR_VERSION } from "./version-Ct049vav.js";
2
+ import { t as JUNIOR_VERSION } from "./version-CN9BXMW_.js";
3
3
  import path from "node:path";
4
4
  import { styleText } from "node:util";
5
5
  import { ConfigError, configureSync, getConfig, getLogger } from "@logtape/logtape";
@@ -1,7 +1,7 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-nwUcYXjP.js";
2
- import { Ct as actorFromRun, J as findChildAgentConversationId, K as createAgentInvocationForMessage, Y as getActiveAgentInvocationForConversation, ht as PARENT_AGENT_TARGET, mt as AgentMessageTargetError, wt as toolInvocationDestination } from "./agent-runner-DvTUyGTY.js";
3
- import { n as enqueueAgentMessageToParent } from "./result-DS7V4a3-.js";
4
- import { r as enqueueAgentInvocation } from "./work-D829Ue7k.js";
2
+ import { Ct as actorFromRun, J as findChildAgentConversationId, K as createAgentInvocationForMessage, Y as getActiveAgentInvocationForConversation, ht as PARENT_AGENT_TARGET, mt as AgentMessageTargetError, wt as toolInvocationDestination } from "./agent-runner-g110-xgg.js";
3
+ import { n as enqueueAgentMessageToParent } from "./result-Cvm0GZCv.js";
4
+ import { r as enqueueAgentInvocation } from "./work-C-ecZAme.js";
5
5
  // src/chat/agent-invocations/message.ts
6
6
  var message_exports = /* @__PURE__ */ __exportAll({ bindMessageAgent: () => bindMessageAgent });
7
7
  /**
package/dist/nitro.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { r as JuniorDashboardOptions } from "./app-BsBUs3rF.js";
1
+ import { r as JuniorDashboardOptions } from "./app-VCiPQ65Q.js";
2
2
  import { n as JuniorPluginSet } from "./plugins-B_0Cr0MO.js";
3
3
  export type JuniorNitroDashboardOptions = JuniorDashboardOptions;
4
4
  export interface JuniorPluginModuleReference {
package/dist/nitro.js CHANGED
@@ -1,8 +1,8 @@
1
- import { A as JUNIOR_RETENTION_CRON_SCHEDULE, D as JUNIOR_HEARTBEAT_CRON_SCHEDULE, E as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE, M as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, O as JUNIOR_HEARTBEAT_ROUTE, j as JUNIOR_RETENTION_ROUTE, k as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE } from "./logging-DSMmkHXG.js";
1
+ import { A as JUNIOR_RETENTION_CRON_SCHEDULE, D as JUNIOR_HEARTBEAT_CRON_SCHEDULE, E as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE, M as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, O as JUNIOR_HEARTBEAT_ROUTE, j as JUNIOR_RETENTION_ROUTE, k as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE } from "./logging-BLTa7R7f.js";
2
2
  import { d as resolvePackageDir, t as discoverInstalledPluginPackageContent, u as isValidPackageName } from "./package-discovery-DJBompdd.js";
3
- import { o as resolveConversationWorkQueueTopic, t as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC } from "./job-queue-CbdVyaCo.js";
3
+ import { o as resolveConversationWorkQueueTopic, t as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC } from "./job-queue-BjQdSqA3.js";
4
4
  import { a as pluginRuntimeRegistrationsFromPluginSet, r as pluginCatalogConfigFromPluginSet } from "./plugins-DOm9Y6qI.js";
5
- import { t as PLUGIN_TASK_QUEUE_TOPIC } from "./task-queue-9LICOzcL.js";
5
+ import { t as PLUGIN_TASK_QUEUE_TOPIC } from "./task-queue-BaDwKSYv.js";
6
6
  import { n as loadPluginSetFromModule, r as resolvePluginModule } from "./plugin-module-Cf5gVPWP.js";
7
7
  import path from "node:path";
8
8
  import { cpSync, existsSync, mkdirSync, readdirSync, statSync } from "node:fs";
@@ -1,5 +1,5 @@
1
- import { bn as createUserTokenStore } from "./tasks-CjrS098O.js";
2
- import { a as GET, n as syncLocalOAuthCredential, r as GET$1 } from "./credential-sync-BKcv5rBe.js";
1
+ import { bn as createUserTokenStore } from "./tasks-uCfmlWga.js";
2
+ import { a as GET, n as syncLocalOAuthCredential, r as GET$1 } from "./credential-sync-wKNQ1dYc.js";
3
3
  import { createServer } from "node:http";
4
4
  // src/chat/local/oauth-callback-server.ts
5
5
  const LOCAL_OAUTH_TIMEOUT_MS = 6e5;
@@ -1,6 +1,6 @@
1
- import { C as toOptionalTrimmed } from "./client-JeyzRwsT.js";
2
- import { b as setSpanStatus, y as setSpanAttributes } from "./logging-DSMmkHXG.js";
3
- import { n as pluginCatalogRuntime } from "./catalog-runtime-Bpcs2b2L.js";
1
+ import { C as toOptionalTrimmed } from "./client-2i0JJpoC.js";
2
+ import { b as setSpanStatus, y as setSpanAttributes } from "./logging-BLTa7R7f.js";
3
+ import { n as pluginCatalogRuntime } from "./catalog-runtime-cd60vzAB.js";
4
4
  import { createHash } from "node:crypto";
5
5
  // src/chat/sandbox/paths.ts
6
6
  function normalizeWorkspaceRoot(input) {
@@ -1,4 +1,4 @@
1
- import { m as logWarn, p as logInfo, y as setSpanAttributes } from "./logging-DSMmkHXG.js";
1
+ import { m as logWarn, p as logInfo, y as setSpanAttributes } from "./logging-BLTa7R7f.js";
2
2
  import { a as isUserActor, o as parseActorUserId } from "./actor-tlxzqaRe.js";
3
3
  import { n as normalizePluginPackageNames, o as pluginRoots, t as discoverInstalledPluginPackageContent } from "./package-discovery-DJBompdd.js";
4
4
  import path from "node:path";
@@ -1,6 +1,6 @@
1
- import { T as withSpan, y as setSpanAttributes } from "./logging-DSMmkHXG.js";
2
- import { r as getStateAdapter } from "./adapter-Dj5BTJRd.js";
3
- import { E as SANDBOX_WORKSPACE_ROOT, S as runNonInteractiveCommand, r as isStale, t as create, u as isSandboxUnavailableError, v as getVercelSandboxCredentials, y as sleep } from "./profile-ByWkAY7L.js";
1
+ import { T as withSpan, y as setSpanAttributes } from "./logging-BLTa7R7f.js";
2
+ import { r as getStateAdapter } from "./adapter-Bx_1B2De.js";
3
+ import { E as SANDBOX_WORKSPACE_ROOT, S as runNonInteractiveCommand, r as isStale, t as create, u as isSandboxUnavailableError, v as getVercelSandboxCredentials, y as sleep } from "./profile-CthM2qFM.js";
4
4
  import { z } from "zod";
5
5
  import { FileSystem, Sandbox } from "@vercel/sandbox";
6
6
  // src/chat/sandbox/resources.ts
@@ -1,12 +1,12 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-nwUcYXjP.js";
2
- import { Ft as listTurnSummaries, Pt as getTurnRecord } from "./tasks-CjrS098O.js";
2
+ import { Ft as listTurnSummaries, Pt as getTurnRecord } from "./tasks-uCfmlWga.js";
3
3
  import { t as createActor } from "./actor-tlxzqaRe.js";
4
- import { f as credentialContextForActor } from "./registry-BL-osYWN.js";
5
- import { $ as getAgentInvocationIdForResult, Q as getAgentInvocationIdForMessage, X as getAgentInvocation, Z as getAgentInvocationIdForEvents, at as isTerminalAgentInvocation, it as getLatestAgentInvocationForConversation, lt as markAgentInvocationParentMailboxAppended, q as createAgentInvocationFromLatest, tt as getAgentInvocationResultMessageId } from "./agent-runner-DvTUyGTY.js";
4
+ import { f as credentialContextForActor } from "./registry-BnSaArNb.js";
5
+ import { $ as getAgentInvocationIdForResult, Q as getAgentInvocationIdForMessage, X as getAgentInvocation, Z as getAgentInvocationIdForEvents, at as isTerminalAgentInvocation, it as getLatestAgentInvocationForConversation, lt as markAgentInvocationParentMailboxAppended, q as createAgentInvocationFromLatest, tt as getAgentInvocationResultMessageId } from "./agent-runner-g110-xgg.js";
6
6
  import { a as EVENT_SYSTEM_ACTOR, i as EVENT_MESSAGE_AUTHOR, o as isEventConversationMessage } from "./prompt-DeVax2qO.js";
7
- import { a as EVENT_WAIT_MS, c as isEventMailboxMetadata, l as renderEventBatchText, u as timerWatchCredentialSubject } from "./session-stop-HfKx-pky.js";
8
- import { r as appendAndEnqueueInboundMessage } from "./store-DzRbd5VT.js";
9
- import { r as enqueueAgentInvocation } from "./work-D829Ue7k.js";
7
+ import { a as EVENT_WAIT_MS, c as isEventMailboxMetadata, l as renderEventBatchText, u as timerWatchCredentialSubject } from "./session-stop-Boj_zpTa.js";
8
+ import { r as appendAndEnqueueInboundMessage } from "./store-B6KqcdCQ.js";
9
+ import { r as enqueueAgentInvocation } from "./work-C-ecZAme.js";
10
10
  import { z } from "zod";
11
11
  import { createEventSource, createLocalSource, createWebSource } from "@sentry/junior-plugin-api";
12
12
  // src/chat/conversations/web-mailbox.ts
@@ -1,14 +1,14 @@
1
- import { At as saveTurnCheckpoint, I as loadProjection, Q as persistConversationMessages, U as recordAuthorizationCompleted, Wt as persistWithRetry, Z as hydrateConversationMessages, dt as markConversationMessage, ft as normalizeConversationText, ht as upsertConversationMessage, j as commitAcceptedReply, ot as buildConversationContext, pt as recordDeliveredAssistantMessage, yt as authorizationId } from "./tasks-CjrS098O.js";
2
- import { f as logException, w as withLogContext, x as setTags } from "./logging-DSMmkHXG.js";
3
- import { c as getConversationEventStore, u as getConversationStore } from "./viewer-C-J0ewlH.js";
4
- import { f as credentialContextForActor } from "./registry-BL-osYWN.js";
5
- import { It as markTurnFailed, Lt as startActiveTurn } from "./agent-runner-DvTUyGTY.js";
1
+ import { At as saveTurnCheckpoint, I as loadProjection, Q as persistConversationMessages, U as recordAuthorizationCompleted, Wt as persistWithRetry, Z as hydrateConversationMessages, dt as markConversationMessage, ft as normalizeConversationText, ht as upsertConversationMessage, j as commitAcceptedReply, ot as buildConversationContext, pt as recordDeliveredAssistantMessage, yt as authorizationId } from "./tasks-uCfmlWga.js";
2
+ import { f as logException, w as withLogContext, x as setTags } from "./logging-BLTa7R7f.js";
3
+ import { c as getConversationEventStore, u as getConversationStore } from "./viewer-C5xFaYVi.js";
4
+ import { f as credentialContextForActor } from "./registry-BnSaArNb.js";
5
+ import { It as markTurnFailed, Lt as startActiveTurn } from "./agent-runner-g110-xgg.js";
6
6
  import { P as messageCardText } from "./conversation-CvuKJ3tA.js";
7
- import { n as getAssistantReplyText } from "./assistant-reply-CEOMzsWy.js";
8
- import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-DGnd_B5X.js";
9
- import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-DYv8IV6w.js";
10
- import { n as getPersistedSandboxState, o as persistThreadStateById, r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-CqkYowEz.js";
11
- import { d as loadPendingMessageCards, i as completeAuthPauseTurn, l as buildDeliveredTurnStatePatch, t as finalizeFailedTurnReplyWithEvent } from "./turn-failure-response-BkKmGqFt.js";
7
+ import { n as getAssistantReplyText } from "./assistant-reply-CQcMaWNL.js";
8
+ import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-BAX5li9a.js";
9
+ import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-pHSESVR9.js";
10
+ import { n as getPersistedSandboxState, o as persistThreadStateById, r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-BJHVIz8G.js";
11
+ import { d as loadPendingMessageCards, i as completeAuthPauseTurn, l as buildDeliveredTurnStatePatch, t as finalizeFailedTurnReplyWithEvent } from "./turn-failure-response-CCC76P6-.js";
12
12
  import { randomUUID } from "node:crypto";
13
13
  import { createLocalSource, localDestinationSchema } from "@sentry/junior-plugin-api";
14
14
  // src/chat/local/runner.ts
@@ -1,4 +1,4 @@
1
- import { Mn as sandboxEgressSignalsResponseSchema } from "./tasks-CjrS098O.js";
1
+ import { Mn as sandboxEgressSignalsResponseSchema } from "./tasks-uCfmlWga.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;
@@ -1,6 +1,6 @@
1
- import { m as logWarn, y as setSpanAttributes, z as isRecord } from "./logging-DSMmkHXG.js";
2
- import { c as fetchWithBoundedOAuthErrorBodies, i as resolvePluginHeaderEnvRefs } from "./registry-BL-osYWN.js";
3
- import { i as MUTATION_LOCK_TTL_MS, o as fenceLock, r as getStateAdapter, s as withLock } from "./adapter-Dj5BTJRd.js";
1
+ import { m as logWarn, y as setSpanAttributes, z as isRecord } from "./logging-BLTa7R7f.js";
2
+ import { c as fetchWithBoundedOAuthErrorBodies, i as resolvePluginHeaderEnvRefs } from "./registry-BnSaArNb.js";
3
+ import { i as MUTATION_LOCK_TTL_MS, o as fenceLock, r as getStateAdapter, s as withLock } from "./adapter-Bx_1B2De.js";
4
4
  import { AsyncLocalStorage } from "node:async_hooks";
5
5
  import { randomUUID } from "node:crypto";
6
6
  import { UnauthorizedError, auth } from "@modelcontextprotocol/sdk/client/auth.js";
@@ -1,6 +1,6 @@
1
- import { n as pluginCatalogRuntime } from "./catalog-runtime-Bpcs2b2L.js";
2
- import { t as disconnectStateAdapter } from "./adapter-Dj5BTJRd.js";
3
- import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-Ko1Xs--F.js";
1
+ import { n as pluginCatalogRuntime } from "./catalog-runtime-cd60vzAB.js";
2
+ import { t as disconnectStateAdapter } from "./adapter-Bx_1B2De.js";
3
+ import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-Ch1uIpnR.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,16 +1,16 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-nwUcYXjP.js";
2
- import { $t as isToolResultError, A as ToolInputError, Zt as isAssistantMessage, en as isToolResultMessage, qn as postSlackMessage, tn as normalizeToolNameFromResult } from "./tasks-CjrS098O.js";
3
- import { f as logException, m as logWarn, p as logInfo } from "./logging-DSMmkHXG.js";
4
- import { n as botConfig } from "./config-ULs6Zl9b.js";
5
- import { f as getSqlExecutor, u as getConversationStore } from "./viewer-C-J0ewlH.js";
2
+ import { $t as isToolResultError, A as ToolInputError, Zt as isAssistantMessage, en as isToolResultMessage, qn as postSlackMessage, tn as normalizeToolNameFromResult } from "./tasks-uCfmlWga.js";
3
+ import { f as logException, m as logWarn, p as logInfo } from "./logging-BLTa7R7f.js";
4
+ import { n as botConfig } from "./config-C9qM41O0.js";
5
+ import { f as getSqlExecutor, u as getConversationStore } from "./viewer-C5xFaYVi.js";
6
6
  import { s as juniorConversations } from "./agent-invocations-Qfz7dWgU.js";
7
- import "./executor-BoGNVEDn.js";
8
- import { h as credentialSubjectSchema } from "./registry-BL-osYWN.js";
9
- import { gt as JUNIOR_THREAD_STATE_TTL_MS, rt as verifyTimerWatchCredentialSubject, u as getPlugins } from "./agent-hooks-V4Hfc2tB.js";
7
+ import "./executor-Rimyj8HZ.js";
8
+ import { h as credentialSubjectSchema } from "./registry-BnSaArNb.js";
9
+ import { gt as JUNIOR_THREAD_STATE_TTL_MS, rt as verifyTimerWatchCredentialSubject, u as getPlugins } from "./agent-hooks-ghyZZQqB.js";
10
10
  import { r as EVENT_AUTHOR_ID } from "./prompt-DeVax2qO.js";
11
- import { r as getStateAdapter } from "./adapter-Dj5BTJRd.js";
12
- import { r as sanitizeAssistantText } from "./assistant-reply-CEOMzsWy.js";
13
- import { r as appendAndEnqueueInboundMessage } from "./store-DzRbd5VT.js";
11
+ import { r as getStateAdapter } from "./adapter-Bx_1B2De.js";
12
+ import { r as sanitizeAssistantText } from "./assistant-reply-CQcMaWNL.js";
13
+ import { r as appendAndEnqueueInboundMessage } from "./store-B6KqcdCQ.js";
14
14
  import { z } from "zod";
15
15
  import { eq, inArray } from "drizzle-orm";
16
16
  import { eventMatchFieldsSchema, eventMatchSchema, normalizeEventIdentifier, objectTypeSchema } from "@sentry/junior-plugin-api";
@@ -1,7 +1,7 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-nwUcYXjP.js";
2
- import { m as logWarn } from "./logging-DSMmkHXG.js";
2
+ import { m as logWarn } from "./logging-BLTa7R7f.js";
3
3
  import { s as skillRoots } from "./package-discovery-DJBompdd.js";
4
- import { n as pluginCatalogRuntime } from "./catalog-runtime-Bpcs2b2L.js";
4
+ import { n as pluginCatalogRuntime } from "./catalog-runtime-cd60vzAB.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-nwUcYXjP.js";
2
- import { Ct as actorFromRun, wt as toolInvocationDestination } from "./agent-runner-DvTUyGTY.js";
3
- import { n as createAndEnqueueAgentInvocation } from "./work-D829Ue7k.js";
2
+ import { Ct as actorFromRun, wt as toolInvocationDestination } from "./agent-runner-g110-xgg.js";
3
+ import { n as createAndEnqueueAgentInvocation } from "./work-C-ecZAme.js";
4
4
  // 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. */
@@ -1,10 +1,10 @@
1
- import { B as toOptionalNumber, V as toOptionalString, z as isRecord } from "./logging-DSMmkHXG.js";
2
- import { i as getChatConfig } from "./config-ULs6Zl9b.js";
1
+ import { B as toOptionalNumber, V as toOptionalString, z as isRecord } from "./logging-BLTa7R7f.js";
2
+ import { i as getChatConfig } from "./config-C9qM41O0.js";
3
3
  import { s as parseStoredSlackActor } from "./actor-tlxzqaRe.js";
4
- import { B as sameDestination, R as parseDestination, u as getConversationStore } from "./viewer-C-J0ewlH.js";
5
- import { gt as JUNIOR_THREAD_STATE_TTL_MS } from "./agent-hooks-V4Hfc2tB.js";
6
- import { n as getDefaultRedisStateAdapterFor, r as getStateAdapter } from "./adapter-Dj5BTJRd.js";
7
- import "./job-queue-CbdVyaCo.js";
4
+ import { B as sameDestination, R as parseDestination, u as getConversationStore } from "./viewer-C5xFaYVi.js";
5
+ import { gt as JUNIOR_THREAD_STATE_TTL_MS } from "./agent-hooks-ghyZZQqB.js";
6
+ import { n as getDefaultRedisStateAdapterFor, r as getStateAdapter } from "./adapter-Bx_1B2De.js";
7
+ import "./job-queue-BjQdSqA3.js";
8
8
  import { z } from "zod";
9
9
  import { randomUUID } from "node:crypto";
10
10
  import { destinationSchema } from "@sentry/junior-plugin-api";
@@ -1,5 +1,5 @@
1
- import { m as logWarn } from "./logging-DSMmkHXG.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-CbdVyaCo.js";
1
+ import { m as logWarn } from "./logging-BLTa7R7f.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-BjQdSqA3.js";
3
3
  import { z } from "zod";
4
4
  import { createHash } from "node:crypto";
5
5
  import { handleCallback, registerDevConsumer } from "@vercel/queue";
@@ -114,7 +114,7 @@ function pluginTaskCallback() {
114
114
  maxDeliveries: PLUGIN_TASK_MAX_DELIVERIES,
115
115
  onRejected: logPluginTaskQueueMessageRejected,
116
116
  run: async (message) => {
117
- const { processPluginTask } = await import("./task-runner-DGnd_B5X.js").then((n) => n.r);
117
+ const { processPluginTask } = await import("./task-runner-BAX5li9a.js").then((n) => n.r);
118
118
  await processPluginTask(message);
119
119
  },
120
120
  topic: PLUGIN_TASK_QUEUE_TOPIC,
@@ -1,17 +1,17 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-nwUcYXjP.js";
2
- import { $t as isToolResultError, Kn as openSlackDirectMessage, Kt as getPiMessageRole, Pt as getTurnRecord, Rn as escapeSlackMrkdwnText, Xt as instructionTextForProjection, Z as hydrateConversationMessages, en as isToolResultMessage, i as readScheduledAutomation, l as blockEventAutomation, m as getEventAutomation, qn as postSlackMessage, rn as stripRuntimeTurnContext, rt as fallbackShortTitle, tn as normalizeToolNameFromResult, zn as formatSlackLink } from "./tasks-CjrS098O.js";
3
- import { g as runBestEffort, m as logWarn } from "./logging-DSMmkHXG.js";
2
+ import { $t as isToolResultError, Kn as openSlackDirectMessage, Kt as getPiMessageRole, Pt as getTurnRecord, Rn as escapeSlackMrkdwnText, Xt as instructionTextForProjection, Z as hydrateConversationMessages, en as isToolResultMessage, i as readScheduledAutomation, l as blockEventAutomation, m as getEventAutomation, qn as postSlackMessage, rn as stripRuntimeTurnContext, rt as fallbackShortTitle, tn as normalizeToolNameFromResult, zn as formatSlackLink } from "./tasks-uCfmlWga.js";
3
+ import { g as runBestEffort, m as logWarn } from "./logging-BLTa7R7f.js";
4
4
  import { g as parseSlackMessageTs } from "./actor-tlxzqaRe.js";
5
- import { T as agentTurnTotalTokens, d as getDb, r as readActorIdentity, u as getConversationStore, w as agentTurnCostUsd } from "./viewer-C-J0ewlH.js";
5
+ import { T as agentTurnTotalTokens, d as getDb, r as readActorIdentity, u as getConversationStore, w as agentTurnCostUsd } from "./viewer-C5xFaYVi.js";
6
6
  import { s as juniorConversations } from "./agent-invocations-Qfz7dWgU.js";
7
- import { a as juniorAutomationRuns, s as juniorAutomations } from "./executor-BoGNVEDn.js";
7
+ import { a as juniorAutomationRuns, s as juniorAutomations } from "./executor-Rimyj8HZ.js";
8
8
  import { m as sameActorIdentity } from "./history-AY8rs-FR.js";
9
- import { h as credentialSubjectSchema } from "./registry-BL-osYWN.js";
10
- import { Ct as createPluginModel, Pt as createPluginConversationEvents, St as createPluginEmbedder, gt as JUNIOR_THREAD_STATE_TTL_MS, p as coreTaskRegistrations, u as getPlugins, wt as createPluginLogger, xt as createPluginState, yt as getDashboardTaskLink } from "./agent-hooks-V4Hfc2tB.js";
11
- import { r as getStateAdapter } from "./adapter-Dj5BTJRd.js";
12
- import { r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-CqkYowEz.js";
13
- import { t as resolveConversationRouting } from "./turn-session-routing-TaVhKmdz.js";
14
- import { i as pluginTaskParamsSchema, o as sendVercelPluginTask, r as pluginTaskId } from "./task-queue-9LICOzcL.js";
9
+ import { h as credentialSubjectSchema } from "./registry-BnSaArNb.js";
10
+ import { Ct as createPluginModel, Pt as createPluginConversationEvents, St as createPluginEmbedder, gt as JUNIOR_THREAD_STATE_TTL_MS, p as coreTaskRegistrations, u as getPlugins, wt as createPluginLogger, xt as createPluginState, yt as getDashboardTaskLink } from "./agent-hooks-ghyZZQqB.js";
11
+ import { r as getStateAdapter } from "./adapter-Bx_1B2De.js";
12
+ import { r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-BJHVIz8G.js";
13
+ import { t as resolveConversationRouting } from "./turn-session-routing-BIKJZaiw.js";
14
+ import { i as pluginTaskParamsSchema, o as sendVercelPluginTask, r as pluginTaskId } from "./task-queue-BaDwKSYv.js";
15
15
  import { z } from "zod";
16
16
  import { createHash } from "node:crypto";
17
17
  import { and, asc, count, desc, eq, gte, inArray, isNotNull, lte, max, sql } from "drizzle-orm";