@sentry/junior 0.253.0 → 0.254.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/{admin-CZnlnlg9.js → admin-D7kYbu5l.js} +1 -1
  2. package/dist/{agent-hooks-CvcbAtJH.js → agent-hooks-DfPubHYm.js} +9 -9
  3. package/dist/{agent-invocations-D_YoNnAn.js → agent-invocations-BY60iNw-.js} +0 -4
  4. package/dist/{agent-runner-B4FMVbCs.js → agent-runner-BWmnJ0dD.js} +20 -20
  5. package/dist/api/schema.js +1 -1
  6. package/dist/api.js +23 -23
  7. package/dist/app.js +29 -28
  8. package/dist/{assistant-reply-BU05IECs.js → assistant-reply-B3J6ogAM.js} +1 -1
  9. package/dist/{briefs-DyspoG90.js → briefs-B_fgUFD2.js} +2 -2
  10. package/dist/{catalog-runtime-Br8s-TYx.js → catalog-runtime-TG5WF66H.js} +1 -1
  11. package/dist/cli/chat.js +15 -15
  12. package/dist/cli/check.js +3 -3
  13. package/dist/cli/main.js +2 -2
  14. package/dist/cli/plugins.js +4 -4
  15. package/dist/cli/snapshot-create.js +3 -3
  16. package/dist/cli/upgrade.js +3 -3
  17. package/dist/{client-CRVXpEWi.js → client-oBgOmQV6.js} +2 -2
  18. package/dist/{config-B7joRWt7.js → config-CRlLncIj.js} +2 -2
  19. package/dist/{connections-CGPYNw2B.js → connections-BZAuDnYm.js} +9 -9
  20. package/dist/{conversation-privacy-0JuTT_OJ.js → conversation-privacy-Dui3hTO-.js} +1 -1
  21. package/dist/{credential-sync-C-k3fnY5.js → credential-sync-9HiSpphh.js} +14 -14
  22. package/dist/{executor-YL577nNt.js → executor-B88oEqok.js} +11 -90
  23. package/dist/{images-DopOctPc.js → images-k8HewSp_.js} +2 -2
  24. package/dist/instrumentation.js +2 -2
  25. package/dist/{job-queue-CIhKXUE3.js → job-queue-B6KaQXY6.js} +1 -1
  26. package/dist/{logging-B0QxCh3D.js → logging-B3nJLXT7.js} +1 -1
  27. package/dist/{message-DQvor8lM.js → message-C9Wx3Rxx.js} +3 -3
  28. package/dist/nitro.js +3 -3
  29. package/dist/{oauth-callback-server-BT7cSxBm.js → oauth-callback-server-CetsCZng.js} +2 -2
  30. package/dist/{pending-auth-CwA1uLA9.js → pending-auth-m8aJlwP_.js} +2 -2
  31. package/dist/{profile-p1oiViVs.js → profile-Dh73O6lZ.js} +4 -4
  32. package/dist/{registry-BO2LM2oW.js → registry-C-jns0Be.js} +1 -1
  33. package/dist/{resolve-CtWKGuKE.js → resolve-CDYCpS_U.js} +2 -2
  34. package/dist/{result-DR5JTBcb.js → result-sih-x_yN.js} +6 -6
  35. package/dist/{runner-BIxTJF9a.js → runner-CA43p74t.js} +9 -9
  36. package/dist/{sandbox-egress-signals-DF3Pu813.js → sandbox-egress-signals-CxHHTu8e.js} +1 -1
  37. package/dist/{schema-C9Vnyb_f.js → schema-C-a9U34c.js} +1 -1
  38. package/dist/{session-stop-BRq8Vxrr.js → session-stop-DenN1GuJ.js} +11 -11
  39. package/dist/{skills-DitcC3Vw.js → skills-D_XDFkSx.js} +2 -2
  40. package/dist/{spawn-CHQ42PAo.js → spawn-CcWYt3Tl.js} +2 -2
  41. package/dist/{store-DIFp9K52.js → store-CIs0Tr31.js} +6 -6
  42. package/dist/{task-queue-UAeJGLYM.js → task-queue-DAY-aQLX.js} +3 -3
  43. package/dist/{task-runner-DwD-i2ta.js → task-runner-BE6Jgt2u.js} +11 -11
  44. package/dist/{tasks-DThIG7F-.js → tasks-DO9VM9cu.js} +8 -8
  45. package/dist/{thread-state-BQxkL7Xm.js → thread-state-FreaCOZD.js} +7 -7
  46. package/dist/{turn-failure-response-OAIxgzNh.js → turn-failure-response-CJSt2ZSf.js} +7 -7
  47. package/dist/{turn-lifecycle-BAEJpjDI.js → turn-lifecycle-BXclEcfZ.js} +1 -1
  48. package/dist/{turn-session-routing-F5s728f0.js → turn-session-routing-CItfUsjQ.js} +1 -1
  49. package/dist/{validation-DFM4-vDr.js → validation-MW8dmhF9.js} +1 -1
  50. package/dist/{version-B80CD9sN.js → version-DcWD8xpq.js} +1 -1
  51. package/dist/version.js +1 -1
  52. package/dist/{viewer-CPxNfHWa.js → viewer-CGZiUVMU.js} +4 -13
  53. package/dist/{web-input-DIO177R0.js → web-input-Dpqh0oBt.js} +27 -27
  54. package/dist/{work-Dl5KPKjW.js → work-DbA9xNO1.js} +9 -9
  55. package/dist/{worker-CJkE86Co.js → worker-DuCs9-3G.js} +5 -5
  56. package/migrations/0057_drop_legacy_automation_tables.sql +10 -0
  57. package/migrations/meta/0057_snapshot.json +3618 -0
  58. package/migrations/meta/_journal.json +7 -0
  59. package/package.json +5 -5
@@ -1,19 +1,19 @@
1
- import { Ft as resolveBaseUrl, Lt as createUserTokenStore, Nt as formatProviderLabel, Pt as parseOAuthStatePayload, _ as resolvePluginOAuthAccount, d as getMcpAuthSession, f as getMcpStoredOAuthCredentials, o as finalizeMcpAuthorization, p as putMcpStoredOAuthCredentials, s as deleteMcpAuthSession, x as lookupSlackUserProfile, xt as getMcpProviderErrorAttributes } from "./agent-runner-B4FMVbCs.js";
2
- import { f as escapeXml } from "./client-CRVXpEWi.js";
3
- import { d as logException, h as runBestEffort, p as logWarn } from "./logging-B0QxCh3D.js";
4
- import { a as getRuntimeMetadata, n as botConfig } from "./config-B7joRWt7.js";
1
+ import { Ft as resolveBaseUrl, Lt as createUserTokenStore, Nt as formatProviderLabel, Pt as parseOAuthStatePayload, _ as resolvePluginOAuthAccount, d as getMcpAuthSession, f as getMcpStoredOAuthCredentials, o as finalizeMcpAuthorization, p as putMcpStoredOAuthCredentials, s as deleteMcpAuthSession, x as lookupSlackUserProfile, xt as getMcpProviderErrorAttributes } from "./agent-runner-BWmnJ0dD.js";
2
+ import { f as escapeXml } from "./client-oBgOmQV6.js";
3
+ import { d as logException, h as runBestEffort, p as logWarn } from "./logging-B3nJLXT7.js";
4
+ import { a as getRuntimeMetadata, n as botConfig } from "./config-CRlLncIj.js";
5
5
  import { f as parseSlackUserId } from "./actor-BTtLaeWy.js";
6
- import { A as upsertIdentity, f as getSqlExecutor, j as upsertLinkedIdentity } from "./viewer-CPxNfHWa.js";
6
+ import { A as upsertIdentity, f as getSqlExecutor, j as upsertLinkedIdentity } from "./viewer-CGZiUVMU.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-BO2LM2oW.js";
9
- import { n as pluginCatalogRuntime } from "./catalog-runtime-Br8s-TYx.js";
10
- import { t as discoverSkills } from "./skills-DitcC3Vw.js";
11
- import { It as recordAuthenticationLinked, Lt as recordAuthorizationCompleted, Q as getTurnRecord, V as postSlackMessage } from "./tasks-DThIG7F-.js";
12
- import { Ht as getSlackClient } from "./agent-hooks-CvcbAtJH.js";
13
- import { E as acquireActiveLock, w as getStateAdapter } from "./profile-p1oiViVs.js";
14
- import { i as getConversationPendingAuth } from "./pending-auth-CwA1uLA9.js";
15
- import { r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-BQxkL7Xm.js";
16
- import { c as deleteWebAuthorization, f as wakeAuthorizedTurn, i as readConnectedOAuthTokens, p as wakePausedTurn } from "./connections-CGPYNw2B.js";
8
+ import { n as buildOAuthTokenRequest, r as parseOAuthTokenResponse, u as hasRequiredOAuthScope } from "./registry-C-jns0Be.js";
9
+ import { n as pluginCatalogRuntime } from "./catalog-runtime-TG5WF66H.js";
10
+ import { t as discoverSkills } from "./skills-D_XDFkSx.js";
11
+ import { It as recordAuthenticationLinked, Lt as recordAuthorizationCompleted, Q as getTurnRecord, V as postSlackMessage } from "./tasks-DO9VM9cu.js";
12
+ import { Ht as getSlackClient } from "./agent-hooks-DfPubHYm.js";
13
+ import { E as acquireActiveLock, w as getStateAdapter } from "./profile-Dh73O6lZ.js";
14
+ import { i as getConversationPendingAuth } from "./pending-auth-m8aJlwP_.js";
15
+ import { r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-FreaCOZD.js";
16
+ import { c as deleteWebAuthorization, f as wakeAuthorizedTurn, i as readConnectedOAuthTokens, p as wakePausedTurn } from "./connections-BZAuDnYm.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,7 +1,7 @@
1
- import { d as logException } from "./logging-B0QxCh3D.js";
1
+ import { d as logException } from "./logging-B3nJLXT7.js";
2
2
  import { g as startSpanManual } from "./sentry-CgWZM_kV.js";
3
- import "./config-B7joRWt7.js";
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-D_YoNnAn.js";
3
+ import "./config-CRlLncIj.js";
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-BY60iNw-.js";
5
5
  import { AsyncLocalStorage } from "node:async_hooks";
6
6
  import { sql } from "drizzle-orm";
7
7
  import { bigint, boolean, check, date, doublePrecision, foreignKey, index, integer, jsonb, pgTable, primaryKey, text, uniqueIndex, uuid } from "drizzle-orm/pg-core";
@@ -278,19 +278,6 @@ const juniorLocationConfigurations = pgTable("junior_location_configurations", {
278
278
  expiresAt: text("expires_at")
279
279
  }, (table) => [primaryKey({ columns: [table.locationId, table.key] })]);
280
280
  //#endregion
281
- //#region src/db/schema/event-automations.ts
282
- const juniorEventAutomations = pgTable("junior_event_tasks", {
283
- id: text("id").primaryKey(),
284
- teamId: text("team_id").notNull(),
285
- namespace: text("namespace").notNull(),
286
- identifier: text("identifier").notNull(),
287
- createdAtMs: bigint("created_at_ms", { mode: "number" }).notNull(),
288
- status: text("status").notNull().default("active"),
289
- statusReason: text("status_reason"),
290
- title: text("title"),
291
- task: jsonb("task_json").notNull()
292
- }, (table) => [index("junior_event_tasks_team_idx").on(table.teamId, table.createdAtMs, table.id).where(sql`${table.status} <> 'deleted'`), index("junior_event_tasks_match_idx").on(table.namespace, table.identifier, table.createdAtMs, table.id).where(sql`${table.status} <> 'deleted'`)]);
293
- //#endregion
294
281
  //#region src/db/schema/stats.ts
295
282
  /**
296
283
  * Daily named counters used by Junior and loaded plugins.
@@ -313,36 +300,6 @@ const juniorStats = pgTable("junior_stats", {
313
300
  ]
314
301
  })]);
315
302
  //#endregion
316
- //#region src/db/schema/automation-executions.ts
317
- const juniorAutomationExecutions = pgTable("junior_task_executions", {
318
- executionId: text("execution_id").notNull(),
319
- kind: text("kind").notNull(),
320
- namespace: text("namespace").notNull(),
321
- automationId: text("task_id").notNull(),
322
- conversationId: text("conversation_id"),
323
- executedAtMs: bigint("executed_at_ms", { mode: "number" }).notNull(),
324
- status: text("status").$type().notNull()
325
- }, (table) => [
326
- check("junior_task_executions_kind_check", sql`${table.kind} in ('scheduled', 'event')`),
327
- check("junior_task_executions_status_check", sql`${table.status} in ('blocked', 'completed', 'failed')`),
328
- primaryKey({
329
- name: "junior_task_executions_kind_namespace_execution_id_pk",
330
- columns: [
331
- table.kind,
332
- table.namespace,
333
- table.executionId
334
- ]
335
- }),
336
- foreignKey({
337
- name: "junior_task_executions_conversation_id_junior_conversations_conversation_id_fk",
338
- columns: [table.conversationId],
339
- foreignColumns: [juniorConversations.conversationId]
340
- }),
341
- index("junior_task_executions_task_time_idx").on(table.kind, table.namespace, table.automationId, table.executedAtMs),
342
- index("junior_task_executions_time_kind_idx").on(table.executedAtMs, table.kind),
343
- index("junior_task_executions_conversation_time_idx").on(table.conversationId, table.executedAtMs)
344
- ]);
345
- //#endregion
346
303
  //#region src/db/schema/automations.ts
347
304
  /**
348
305
  * One row per Automation of either kind. `record` holds the fields that have
@@ -413,7 +370,6 @@ const juniorAutomationRuns = pgTable("junior_automation_runs", {
413
370
  //#region src/db/schema/automation-versions.ts
414
371
  /** One saved Automation definition. Lifecycle and scheduler state are not versioned. */
415
372
  const juniorAutomationVersions = pgTable("junior_automation_versions", {
416
- kind: text("kind").$type(),
417
373
  automationId: text("automation_id").notNull(),
418
374
  /** Starts at 1 and increases by 1 for each saved definition change. */
419
375
  version: integer("version").notNull(),
@@ -421,45 +377,14 @@ const juniorAutomationVersions = pgTable("junior_automation_versions", {
421
377
  /** Slack principal that saved this definition. Null when unknown. */
422
378
  editedBy: jsonb("edited_by"),
423
379
  definition: jsonb("definition").notNull()
424
- }, (table) => [
425
- check("junior_automation_versions_kind_check", sql`${table.kind} in ('scheduled', 'event')`),
426
- primaryKey({
427
- name: "junior_automation_versions_pk",
428
- columns: [table.automationId, table.version]
429
- }),
430
- foreignKey({
431
- name: "junior_automation_versions_automation_id_fk",
432
- columns: [table.automationId],
433
- foreignColumns: [juniorAutomations.id]
434
- }).onDelete("cascade")
435
- ]);
436
- //#endregion
437
- //#region src/db/schema/scheduled-automations.ts
438
- const juniorSchedulerTasks = pgTable("junior_scheduler_tasks", {
439
- id: text("id").primaryKey(),
440
- teamId: text("team_id").notNull(),
441
- creatorSlackUserId: text("creator_slack_user_id"),
442
- creatorIdentityId: text("creator_identity_id"),
443
- status: text("status").notNull(),
444
- nextRunAtMs: bigint("next_run_at_ms", { mode: "number" }),
445
- runNowAtMs: bigint("run_now_at_ms", { mode: "number" }),
446
- createdAtMs: bigint("created_at_ms", { mode: "number" }).notNull(),
447
- title: text("title"),
448
- record: jsonb("record").notNull()
449
- }, (table) => [
450
- index("junior_scheduler_tasks_creator_idx").on(table.teamId, table.creatorSlackUserId, table.createdAtMs, table.id).where(sql`${table.status} <> 'deleted'`),
451
- index("junior_scheduler_tasks_creator_identity_idx").on(table.creatorIdentityId, table.createdAtMs, table.id).where(sql`${table.status} <> 'deleted' AND ${table.creatorIdentityId} IS NOT NULL`),
452
- index("junior_scheduler_tasks_team_status_idx").on(table.teamId, table.createdAtMs, table.id).where(sql`${table.status} <> 'deleted'`),
453
- index("junior_scheduler_tasks_run_now_due_idx").on(table.runNowAtMs, table.createdAtMs, table.id).where(sql`${table.status} = 'active' AND ${table.runNowAtMs} IS NOT NULL`),
454
- index("junior_scheduler_tasks_next_run_due_idx").on(table.nextRunAtMs, table.createdAtMs, table.id).where(sql`${table.status} = 'active' AND ${table.nextRunAtMs} IS NOT NULL`)
455
- ]);
456
- const juniorSchedulerRuns = pgTable("junior_scheduler_runs", {
457
- id: text("id").primaryKey(),
458
- taskId: text("task_id").notNull(),
459
- status: text("status").notNull(),
460
- scheduledForMs: bigint("scheduled_for_ms", { mode: "number" }).notNull(),
461
- record: jsonb("record").$type().notNull()
462
- }, (table) => [index("junior_scheduler_runs_task_status_idx").on(table.taskId, table.status, table.scheduledForMs), index("junior_scheduler_runs_status_idx").on(table.status, table.scheduledForMs)]);
380
+ }, (table) => [primaryKey({
381
+ name: "junior_automation_versions_pk",
382
+ columns: [table.automationId, table.version]
383
+ }), foreignKey({
384
+ name: "junior_automation_versions_automation_id_fk",
385
+ columns: [table.automationId],
386
+ foreignColumns: [juniorAutomations.id]
387
+ }).onDelete("cascade")]);
463
388
  //#endregion
464
389
  //#region src/db/schema/workspaces.ts
465
390
  /** Named recipe used to prepare a reusable Sandbox. */
@@ -534,16 +459,12 @@ const juniorSqlSchema = {
534
459
  juniorConversations,
535
460
  juniorLocationConfigurations,
536
461
  juniorDestinations,
537
- juniorEventAutomations,
538
462
  juniorIdentities,
539
463
  juniorSnapshots,
540
464
  juniorStats,
541
- juniorAutomationExecutions,
542
465
  juniorAutomationRuns,
543
466
  juniorAutomationVersions,
544
467
  juniorAutomations,
545
- juniorSchedulerRuns,
546
- juniorSchedulerTasks,
547
468
  juniorUsers,
548
469
  juniorWorkspaceRepos,
549
470
  juniorWorkspaces
@@ -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-B4FMVbCs.js";
3
- import { f as getSqlExecutor } from "./viewer-CPxNfHWa.js";
2
+ import { D as storeAttachment, T as readLiveAttachment } from "./agent-runner-BWmnJ0dD.js";
3
+ import { f as getSqlExecutor } from "./viewer-CGZiUVMU.js";
4
4
  import { L as detectImageMediaType } from "./conversation-T18Xlkx9.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-B0QxCh3D.js";
1
+ import { N as getDeploymentServiceVersion, P as getDeploymentTelemetryAttributes } from "./logging-B3nJLXT7.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-0JuTT_OJ.js";
3
+ import { n as getCurrentConversationPrivacy } from "./conversation-privacy-Dui3hTO-.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-B7joRWt7.js";
1
+ import { i as getChatConfig } from "./config-CRlLncIj.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-B80CD9sN.js";
2
+ import { t as JUNIOR_VERSION } from "./version-DcWD8xpq.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-B4FMCO8f.js";
2
- import { Ht as toolInvocationDestination, Q as getActiveAgentInvocationForConversation, Vt as actorFromRun, Y as createAgentInvocationForMessage, Z as findChildAgentConversationId, _t as AgentMessageTargetError, vt as PARENT_AGENT_TARGET } from "./agent-runner-B4FMVbCs.js";
3
- import { n as enqueueAgentMessageToParent } from "./result-DR5JTBcb.js";
4
- import { r as enqueueAgentInvocation } from "./work-Dl5KPKjW.js";
2
+ import { Ht as toolInvocationDestination, Q as getActiveAgentInvocationForConversation, Vt as actorFromRun, Y as createAgentInvocationForMessage, Z as findChildAgentConversationId, _t as AgentMessageTargetError, vt as PARENT_AGENT_TARGET } from "./agent-runner-BWmnJ0dD.js";
3
+ import { n as enqueueAgentMessageToParent } from "./result-sih-x_yN.js";
4
+ import { r as enqueueAgentInvocation } from "./work-DbA9xNO1.js";
5
5
  //#region src/chat/agent-invocations/message.ts
6
6
  var message_exports = /* @__PURE__ */ __exportAll({ bindMessageAgent: () => bindMessageAgent });
7
7
  /**
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-B0QxCh3D.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-B3nJLXT7.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-CIhKXUE3.js";
3
+ import { o as resolveConversationWorkQueueTopic, t as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC } from "./job-queue-B6KaQXY6.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-UAeJGLYM.js";
5
+ import { t as PLUGIN_TASK_QUEUE_TOPIC } from "./task-queue-DAY-aQLX.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,5 +1,5 @@
1
- import { Lt as createUserTokenStore } from "./agent-runner-B4FMVbCs.js";
2
- import { a as GET, n as syncLocalOAuthCredential, r as GET$1 } from "./credential-sync-C-k3fnY5.js";
1
+ import { Lt as createUserTokenStore } from "./agent-runner-BWmnJ0dD.js";
2
+ import { a as GET, n as syncLocalOAuthCredential, r as GET$1 } from "./credential-sync-9HiSpphh.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-CRVXpEWi.js";
2
- import { Y as abandonTurnRecord, un as estimateTextTokens } from "./tasks-DThIG7F-.js";
1
+ import { v as isProviderRetryError } from "./client-oBgOmQV6.js";
2
+ import { Y as abandonTurnRecord, un as estimateTextTokens } from "./tasks-DO9VM9cu.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-CRVXpEWi.js";
2
- import { v as setSpanAttributes, y as setSpanStatus } from "./logging-B0QxCh3D.js";
3
- import { i as getChatConfig } from "./config-B7joRWt7.js";
4
- import { n as pluginCatalogRuntime } from "./catalog-runtime-Br8s-TYx.js";
1
+ import { S as toOptionalTrimmed } from "./client-oBgOmQV6.js";
2
+ import { v as setSpanAttributes, y as setSpanStatus } from "./logging-B3nJLXT7.js";
3
+ import { i as getChatConfig } from "./config-CRlLncIj.js";
4
+ import { n as pluginCatalogRuntime } from "./catalog-runtime-TG5WF66H.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-B0QxCh3D.js";
1
+ import { f as logInfo, p as logWarn, v as setSpanAttributes } from "./logging-B3nJLXT7.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-B0QxCh3D.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-p1oiViVs.js";
1
+ import { v as setSpanAttributes, w as withSpan } from "./logging-B3nJLXT7.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-Dh73O6lZ.js";
3
3
  import { z } from "zod";
4
4
  import { FileSystem, Sandbox } from "@vercel/sandbox";
5
5
  //#region src/chat/sandbox/resources.ts
@@ -1,12 +1,12 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.js";
2
- import { $ as getAgentInvocation, X as createAgentInvocationFromLatest, ct as isTerminalAgentInvocation, et as getAgentInvocationIdForEvents, ft as markAgentInvocationParentMailboxAppended, it as getAgentInvocationResultMessageId, nt as getAgentInvocationIdForResult, st as getLatestAgentInvocationForConversation, tt as getAgentInvocationIdForMessage } from "./agent-runner-B4FMVbCs.js";
2
+ import { $ as getAgentInvocation, X as createAgentInvocationFromLatest, ct as isTerminalAgentInvocation, et as getAgentInvocationIdForEvents, ft as markAgentInvocationParentMailboxAppended, it as getAgentInvocationResultMessageId, nt as getAgentInvocationIdForResult, st as getLatestAgentInvocationForConversation, tt as getAgentInvocationIdForMessage } from "./agent-runner-BWmnJ0dD.js";
3
3
  import { t as createActor } from "./actor-BTtLaeWy.js";
4
- import { d as credentialContextForActor } from "./registry-BO2LM2oW.js";
5
- import { $ as listTurnSummaries, Q as getTurnRecord } from "./tasks-DThIG7F-.js";
6
- import { a as EVENT_WAIT_MS, c as timerWatchCredentialSubject, s as isEventMailboxMetadata } from "./session-stop-BRq8Vxrr.js";
4
+ import { d as credentialContextForActor } from "./registry-C-jns0Be.js";
5
+ import { $ as listTurnSummaries, Q as getTurnRecord } from "./tasks-DO9VM9cu.js";
6
+ import { a as EVENT_WAIT_MS, c as timerWatchCredentialSubject, s as isEventMailboxMetadata } from "./session-stop-DenN1GuJ.js";
7
7
  import { a as EVENT_SYSTEM_ACTOR, i as EVENT_MESSAGE_AUTHOR, o as isEventConversationMessage } from "./prompt-C04mP1hu.js";
8
- import { r as appendAndEnqueueInboundMessage } from "./store-DIFp9K52.js";
9
- import { r as enqueueAgentInvocation } from "./work-Dl5KPKjW.js";
8
+ import { r as appendAndEnqueueInboundMessage } from "./store-CIs0Tr31.js";
9
+ import { r as enqueueAgentInvocation } from "./work-DbA9xNO1.js";
10
10
  import { z } from "zod";
11
11
  import { createEventSource, createLocalSource, createWebSource } from "@sentry/junior-plugin-api";
12
12
  //#region src/chat/task-execution/mailbox-input.ts
@@ -1,14 +1,14 @@
1
- import { C as withLogContext, b as setTags, d as logException } from "./logging-B0QxCh3D.js";
2
- import { c as getConversationEventStore, u as getConversationStore } from "./viewer-CPxNfHWa.js";
3
- import { d as credentialContextForActor } from "./registry-BO2LM2oW.js";
4
- import { At as loadProjection, Gt as hydrateConversationMessages, J as saveTurnCheckpoint, Kt as persistConversationMessages, Lt as recordAuthorizationCompleted, Tt as commitAcceptedReply, an as markConversationMessage, en as buildConversationContext, ln as upsertConversationMessage, on as normalizeConversationText, sn as recordDeliveredAssistantMessage, tt as persistWithRetry } from "./tasks-DThIG7F-.js";
1
+ import { C as withLogContext, b as setTags, d as logException } from "./logging-B3nJLXT7.js";
2
+ import { c as getConversationEventStore, u as getConversationStore } from "./viewer-CGZiUVMU.js";
3
+ import { d as credentialContextForActor } from "./registry-C-jns0Be.js";
4
+ import { At as loadProjection, Gt as hydrateConversationMessages, J as saveTurnCheckpoint, Kt as persistConversationMessages, Lt as recordAuthorizationCompleted, Tt as commitAcceptedReply, an as markConversationMessage, en as buildConversationContext, ln as upsertConversationMessage, on as normalizeConversationText, sn as recordDeliveredAssistantMessage, tt as persistWithRetry } from "./tasks-DO9VM9cu.js";
5
5
  import { K as messageCardText } from "./conversation-T18Xlkx9.js";
6
6
  import { f as markTurnFailed, p as startActiveTurn, t as authorizationId } from "./oauth-authorization-BA4Dt6a7.js";
7
- import { n as getAssistantReplyText } from "./assistant-reply-BU05IECs.js";
8
- import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-DwD-i2ta.js";
9
- import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-BAEJpjDI.js";
10
- import { n as getPersistedSandboxState, o as persistThreadStateById, r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-BQxkL7Xm.js";
11
- import { d as loadPendingMessageCards, i as completeAuthPauseTurn, l as buildDeliveredTurnStatePatch, t as finalizeFailedTurnReplyWithEvent } from "./turn-failure-response-OAIxgzNh.js";
7
+ import { n as getAssistantReplyText } from "./assistant-reply-B3J6ogAM.js";
8
+ import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-BE6Jgt2u.js";
9
+ import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-BXclEcfZ.js";
10
+ import { n as getPersistedSandboxState, o as persistThreadStateById, r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-FreaCOZD.js";
11
+ import { d as loadPendingMessageCards, i as completeAuthPauseTurn, l as buildDeliveredTurnStatePatch, t as finalizeFailedTurnReplyWithEvent } from "./turn-failure-response-CJSt2ZSf.js";
12
12
  import { randomUUID } from "node:crypto";
13
13
  import { createLocalSource, localDestinationSchema } from "@sentry/junior-plugin-api";
14
14
  //#region src/chat/local/runner.ts
@@ -1,4 +1,4 @@
1
- import { Mt as sandboxEgressSignalsResponseSchema } from "./agent-runner-B4FMVbCs.js";
1
+ import { Mt as sandboxEgressSignalsResponseSchema } from "./agent-runner-BWmnJ0dD.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,4 +1,4 @@
1
- import { r as AGENT_INVOCATION_STATUSES, u as juniorDestinationKindSchema } from "./agent-invocations-D_YoNnAn.js";
1
+ import { r as AGENT_INVOCATION_STATUSES, u as juniorDestinationKindSchema } from "./agent-invocations-BY60iNw-.js";
2
2
  import { D as conversationUsageSchema, E as conversationSummaryReportSchema, M as conversationChildAgentTotalsSchema, l as conversationAuxiliaryCostsSchema, n as actorIdentitySchema, w as conversationStatsItemSchema } from "./conversation-T18Xlkx9.js";
3
3
  import "./automation-gznOMaQ2.js";
4
4
  import { a as fillUtcHours, c as sumUtcHoursIntoSixHours, i as fillUtcDays } from "./web-message-id-xPI_EFSC.js";
@@ -1,16 +1,16 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.js";
2
- import { d as logException, f as logInfo, p as logWarn } from "./logging-B0QxCh3D.js";
3
- import { n as botConfig } from "./config-B7joRWt7.js";
4
- import { f as getSqlExecutor, u as getConversationStore } from "./viewer-CPxNfHWa.js";
5
- import { s as juniorConversations } from "./agent-invocations-D_YoNnAn.js";
6
- import "./executor-YL577nNt.js";
7
- import { p as credentialSubjectSchema } from "./registry-BO2LM2oW.js";
8
- import { V as postSlackMessage, _t as isToolResultError, ht as isAssistantMessage, vt as isToolResultMessage, wt as ToolInputError, yt as normalizeToolNameFromResult } from "./tasks-DThIG7F-.js";
9
- import { it as JUNIOR_THREAD_STATE_TTL_MS, rt as verifyTimerWatchCredentialSubject, u as getPlugins } from "./agent-hooks-CvcbAtJH.js";
10
- import { w as getStateAdapter } from "./profile-p1oiViVs.js";
11
- import { r as sanitizeAssistantText } from "./assistant-reply-BU05IECs.js";
2
+ import { d as logException, f as logInfo, p as logWarn } from "./logging-B3nJLXT7.js";
3
+ import { n as botConfig } from "./config-CRlLncIj.js";
4
+ import { f as getSqlExecutor, u as getConversationStore } from "./viewer-CGZiUVMU.js";
5
+ import { s as juniorConversations } from "./agent-invocations-BY60iNw-.js";
6
+ import "./executor-B88oEqok.js";
7
+ import { p as credentialSubjectSchema } from "./registry-C-jns0Be.js";
8
+ import { V as postSlackMessage, _t as isToolResultError, ht as isAssistantMessage, vt as isToolResultMessage, wt as ToolInputError, yt as normalizeToolNameFromResult } from "./tasks-DO9VM9cu.js";
9
+ import { it as JUNIOR_THREAD_STATE_TTL_MS, rt as verifyTimerWatchCredentialSubject, u as getPlugins } from "./agent-hooks-DfPubHYm.js";
10
+ import { w as getStateAdapter } from "./profile-Dh73O6lZ.js";
11
+ import { r as sanitizeAssistantText } from "./assistant-reply-B3J6ogAM.js";
12
12
  import { r as EVENT_AUTHOR_ID } from "./prompt-C04mP1hu.js";
13
- import { r as appendAndEnqueueInboundMessage } from "./store-DIFp9K52.js";
13
+ import { r as appendAndEnqueueInboundMessage } from "./store-CIs0Tr31.js";
14
14
  import { z } from "zod";
15
15
  import { eq, inArray } from "drizzle-orm";
16
16
  import { eventMatchSchema, normalizeEventIdentifier, objectTypeSchema } 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-B0QxCh3D.js";
2
+ import { p as logWarn } from "./logging-B3nJLXT7.js";
3
3
  import { s as skillRoots } from "./package-discovery-BVvSnQBB.js";
4
- import { n as pluginCatalogRuntime } from "./catalog-runtime-Br8s-TYx.js";
4
+ import { n as pluginCatalogRuntime } from "./catalog-runtime-TG5WF66H.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 { Ht as toolInvocationDestination, Vt as actorFromRun } from "./agent-runner-B4FMVbCs.js";
3
- import { n as createAndEnqueueAgentInvocation } from "./work-Dl5KPKjW.js";
2
+ import { Ht as toolInvocationDestination, Vt as actorFromRun } from "./agent-runner-BWmnJ0dD.js";
3
+ import { n as createAndEnqueueAgentInvocation } from "./work-DbA9xNO1.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. */
@@ -1,10 +1,10 @@
1
- import { I as isRecord, L as toOptionalNumber, R as toOptionalString } from "./logging-B0QxCh3D.js";
2
- import { i as getChatConfig } from "./config-B7joRWt7.js";
1
+ import { I as isRecord, L as toOptionalNumber, R as toOptionalString } from "./logging-B3nJLXT7.js";
2
+ import { i as getChatConfig } from "./config-CRlLncIj.js";
3
3
  import { s as parseStoredSlackActor } from "./actor-BTtLaeWy.js";
4
- import { F as sameDestination, N as parseDestination, u as getConversationStore } from "./viewer-CPxNfHWa.js";
5
- import { it as JUNIOR_THREAD_STATE_TTL_MS } from "./agent-hooks-CvcbAtJH.js";
6
- import { C as getDefaultRedisStateAdapterFor, w as getStateAdapter } from "./profile-p1oiViVs.js";
7
- import "./job-queue-CIhKXUE3.js";
4
+ import { F as sameDestination, N as parseDestination, u as getConversationStore } from "./viewer-CGZiUVMU.js";
5
+ import { it as JUNIOR_THREAD_STATE_TTL_MS } from "./agent-hooks-DfPubHYm.js";
6
+ import { C as getDefaultRedisStateAdapterFor, w as getStateAdapter } from "./profile-Dh73O6lZ.js";
7
+ import "./job-queue-B6KaQXY6.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 { p as logWarn } from "./logging-B0QxCh3D.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-CIhKXUE3.js";
1
+ import { p as logWarn } from "./logging-B3nJLXT7.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-B6KaQXY6.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-DwD-i2ta.js").then((n) => n.r);
118
+ const { processPluginTask } = await import("./task-runner-BE6Jgt2u.js").then((n) => n.r);
119
119
  await processPluginTask(message);
120
120
  },
121
121
  topic: PLUGIN_TASK_QUEUE_TOPIC,
@@ -1,17 +1,17 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.js";
2
- import { h as runBestEffort, p as logWarn } from "./logging-B0QxCh3D.js";
2
+ import { h as runBestEffort, p as logWarn } from "./logging-B3nJLXT7.js";
3
3
  import { g as parseSlackMessageTs } from "./actor-BTtLaeWy.js";
4
- import { C as agentTurnTotalTokens, S as agentTurnCostUsd, d as getDb, r as readActorIdentity, u as getConversationStore } from "./viewer-CPxNfHWa.js";
5
- import { s as juniorConversations } from "./agent-invocations-D_YoNnAn.js";
6
- import { o as juniorAutomationRuns, s as juniorAutomations } from "./executor-YL577nNt.js";
4
+ import { C as agentTurnTotalTokens, S as agentTurnCostUsd, d as getDb, r as readActorIdentity, u as getConversationStore } from "./viewer-CGZiUVMU.js";
5
+ import { s as juniorConversations } from "./agent-invocations-BY60iNw-.js";
6
+ import { o as juniorAutomationRuns, s as juniorAutomations } from "./executor-B88oEqok.js";
7
7
  import { m as sameActorIdentity } from "./history-9pO1Zd4Y.js";
8
- import { p as credentialSubjectSchema } from "./registry-BO2LM2oW.js";
9
- import { Gt as hydrateConversationMessages, M as formatSlackLink, Q as getTurnRecord, V as postSlackMessage, Zt as fallbackShortTitle, _t as isToolResultError, a as readScheduledAutomation, g as getEventAutomation, j as escapeSlackMrkdwnText, mt as instructionTextForProjection, u as blockEventAutomation, ut as getPiMessageRole, vt as isToolResultMessage, xt as stripRuntimeTurnContext, yt as normalizeToolNameFromResult, z as openSlackDirectMessage } from "./tasks-DThIG7F-.js";
10
- import { St as createPluginConversationEvents, dt as createPluginModel, ft as createPluginLogger, it as JUNIOR_THREAD_STATE_TTL_MS, lt as createPluginState, p as coreTaskRegistrations, st as getDashboardTaskLink, u as getPlugins, ut as createPluginEmbedder } from "./agent-hooks-CvcbAtJH.js";
11
- import { w as getStateAdapter } from "./profile-p1oiViVs.js";
12
- import { r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-BQxkL7Xm.js";
13
- import { t as resolveConversationRouting } from "./turn-session-routing-F5s728f0.js";
14
- import { i as pluginTaskParamsSchema, o as sendVercelPluginTask, r as pluginTaskId } from "./task-queue-UAeJGLYM.js";
8
+ import { p as credentialSubjectSchema } from "./registry-C-jns0Be.js";
9
+ import { Gt as hydrateConversationMessages, M as formatSlackLink, Q as getTurnRecord, V as postSlackMessage, Zt as fallbackShortTitle, _t as isToolResultError, a as readScheduledAutomation, g as getEventAutomation, j as escapeSlackMrkdwnText, mt as instructionTextForProjection, u as blockEventAutomation, ut as getPiMessageRole, vt as isToolResultMessage, xt as stripRuntimeTurnContext, yt as normalizeToolNameFromResult, z as openSlackDirectMessage } from "./tasks-DO9VM9cu.js";
10
+ import { St as createPluginConversationEvents, dt as createPluginModel, ft as createPluginLogger, it as JUNIOR_THREAD_STATE_TTL_MS, lt as createPluginState, p as coreTaskRegistrations, st as getDashboardTaskLink, u as getPlugins, ut as createPluginEmbedder } from "./agent-hooks-DfPubHYm.js";
11
+ import { w as getStateAdapter } from "./profile-Dh73O6lZ.js";
12
+ import { r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-FreaCOZD.js";
13
+ import { t as resolveConversationRouting } from "./turn-session-routing-CItfUsjQ.js";
14
+ import { i as pluginTaskParamsSchema, o as sendVercelPluginTask, r as pluginTaskId } from "./task-queue-DAY-aQLX.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";
@@ -1,15 +1,15 @@
1
- import { d as unwrapCurrentInstruction, f as escapeXml, i as completeText, o as resolveGatewayModel } from "./client-CRVXpEWi.js";
2
- import { d as logException, o as getActiveTraceId, p as logWarn, s as getLogContextAttributes, t as buildTurnFailureResponse, v as setSpanAttributes } from "./logging-B0QxCh3D.js";
1
+ import { d as unwrapCurrentInstruction, f as escapeXml, i as completeText, o as resolveGatewayModel } from "./client-oBgOmQV6.js";
2
+ import { d as logException, o as getActiveTraceId, p as logWarn, s as getLogContextAttributes, t as buildTurnFailureResponse, v as setSpanAttributes } from "./logging-B3nJLXT7.js";
3
3
  import { n as captureMessage } from "./sentry-CgWZM_kV.js";
4
- import { n as botConfig, v as normalizeSlackEmojiName } from "./config-B7joRWt7.js";
4
+ import { n as botConfig, v as normalizeSlackEmojiName } from "./config-CRlLncIj.js";
5
5
  import { c as toStoredSlackActor, f as parseSlackUserId, g as parseSlackMessageTs } from "./actor-BTtLaeWy.js";
6
- 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-CPxNfHWa.js";
7
- import { a as juniorAutomationVersions, o as juniorAutomationRuns, s as juniorAutomations } from "./executor-YL577nNt.js";
6
+ 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-CGZiUVMU.js";
7
+ import { a as juniorAutomationVersions, o as juniorAutomationRuns, s as juniorAutomations } from "./executor-B88oEqok.js";
8
8
  import { d as contextProvenance, f as instructionActors, n as agentHistoryItemSchema, p as instructionProvenanceFor } from "./history-9pO1Zd4Y.js";
9
- import { p as credentialSubjectSchema } from "./registry-BO2LM2oW.js";
10
- import { $t as authenticationUnlinkedEvent, Gt as normalizeSlackConversationId, Ht as getSlackClient, Qt as authenticationLinkedEvent, Rt as SlackActionError, Xt as JUNIOR_NATIVE_EVENT_NAMESPACE, Zt as agentsInstructionsUpdatedEvent, n as applyPluginFormatMarkdown, qt as withSlackRetries } from "./agent-hooks-CvcbAtJH.js";
9
+ import { p as credentialSubjectSchema } from "./registry-C-jns0Be.js";
10
+ import { $t as authenticationUnlinkedEvent, Gt as normalizeSlackConversationId, Ht as getSlackClient, Qt as authenticationLinkedEvent, Rt as SlackActionError, Xt as JUNIOR_NATIVE_EVENT_NAMESPACE, Zt as agentsInstructionsUpdatedEvent, n as applyPluginFormatMarkdown, qt as withSlackRetries } from "./agent-hooks-DfPubHYm.js";
11
11
  import { G as messageCardRef } from "./conversation-T18Xlkx9.js";
12
- import { D as fenceLock, O as withLock, T as MUTATION_LOCK_TTL_MS, k as sleep, w as getStateAdapter } from "./profile-p1oiViVs.js";
12
+ import { D as fenceLock, O as withLock, T as MUTATION_LOCK_TTL_MS, k as sleep, w as getStateAdapter } from "./profile-Dh73O6lZ.js";
13
13
  import { A as eventAutomationSchema, E as scheduledAutomationSchema, S as automationVersionSchema } from "./automation-gznOMaQ2.js";
14
14
  import { isDeepStrictEqual } from "node:util";
15
15
  import { z } from "zod";
@@ -1,10 +1,10 @@
1
- import { I as isRecord, L as toOptionalNumber, R as toOptionalString } from "./logging-B0QxCh3D.js";
2
- import { d as getDb } from "./viewer-CPxNfHWa.js";
3
- import { d as juniorDestinations } from "./agent-invocations-D_YoNnAn.js";
4
- import { l as juniorLocationConfigurations } from "./executor-YL577nNt.js";
5
- import { Kt as persistConversationMessages } from "./tasks-DThIG7F-.js";
6
- import { it as JUNIOR_THREAD_STATE_TTL_MS } from "./agent-hooks-CvcbAtJH.js";
7
- import { w as getStateAdapter } from "./profile-p1oiViVs.js";
1
+ import { I as isRecord, L as toOptionalNumber, R as toOptionalString } from "./logging-B3nJLXT7.js";
2
+ import { d as getDb } from "./viewer-CGZiUVMU.js";
3
+ import { d as juniorDestinations } from "./agent-invocations-BY60iNw-.js";
4
+ import { l as juniorLocationConfigurations } from "./executor-B88oEqok.js";
5
+ import { Kt as persistConversationMessages } from "./tasks-DO9VM9cu.js";
6
+ import { it as JUNIOR_THREAD_STATE_TTL_MS } from "./agent-hooks-DfPubHYm.js";
7
+ import { w as getStateAdapter } from "./profile-Dh73O6lZ.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-CRVXpEWi.js";
2
- import { I as isRecord, t as buildTurnFailureResponse } from "./logging-B0QxCh3D.js";
1
+ import { _ as getProviderErrorUserMessage, g as getProviderErrorAttributes, h as findProviderError, p as ProviderError } from "./client-oBgOmQV6.js";
2
+ import { I as isRecord, t as buildTurnFailureResponse } from "./logging-B3nJLXT7.js";
3
3
  import { g as parseSlackMessageTs } from "./actor-BTtLaeWy.js";
4
- import { c as getConversationEventStore, d as getDb } from "./viewer-CPxNfHWa.js";
5
- import { Gt as hydrateConversationMessages, an as markConversationMessage } from "./tasks-DThIG7F-.js";
6
- import { Nt as listConversationAnnotations } from "./agent-hooks-CvcbAtJH.js";
4
+ import { c as getConversationEventStore, d as getDb } from "./viewer-CGZiUVMU.js";
5
+ import { Gt as hydrateConversationMessages, an as markConversationMessage } from "./tasks-DO9VM9cu.js";
6
+ import { Nt as listConversationAnnotations } from "./agent-hooks-DfPubHYm.js";
7
7
  import { J as removedCardSchema, Y as resolveMessageCards, q as readMessageCardRefs } from "./conversation-T18Xlkx9.js";
8
- import { r as clearPendingAuth, u as buildDeterministicTurnId } from "./pending-auth-CwA1uLA9.js";
8
+ import { r as clearPendingAuth, u as buildDeterministicTurnId } from "./pending-auth-m8aJlwP_.js";
9
9
  import { d as markTurnCompleted, u as markTurnClosed } from "./oauth-authorization-BA4Dt6a7.js";
10
- import { o as persistThreadStateById, r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-BQxkL7Xm.js";
10
+ import { o as persistThreadStateById, r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-FreaCOZD.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-CPxNfHWa.js";
1
+ import { c as getConversationEventStore } from "./viewer-CGZiUVMU.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-CPxNfHWa.js").then((n) => n.s)).getConversationStore();
37
+ const conversationStore = args.conversationStore ?? (await import("./viewer-CGZiUVMU.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-Br8s-TYx.js";
2
+ import { n as pluginCatalogRuntime } from "./catalog-runtime-TG5WF66H.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.253.0";
2
+ var version = "0.254.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-B80CD9sN.js";
1
+ import { t as JUNIOR_VERSION } from "./version-DcWD8xpq.js";
2
2
  export { JUNIOR_VERSION };