@sentry/junior 0.128.1 → 0.130.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 (71) hide show
  1. package/dist/{agent-hooks-IWQNFJMS.js → agent-hooks-LJHLLMFC.js} +9 -9
  2. package/dist/api/schema/task.d.ts +152 -0
  3. package/dist/api/schema.d.ts +2 -0
  4. package/dist/api/schema.js +13 -3
  5. package/dist/api/tasks/routes.d.ts +4 -0
  6. package/dist/api.js +425 -23
  7. package/dist/app.js +309 -27
  8. package/dist/{catalog-runtime-KLSYFS4A.js → catalog-runtime-45AHWLJL.js} +5 -5
  9. package/dist/chat/agent-dispatch/context.d.ts +18 -0
  10. package/dist/chat/event-tasks/store.d.ts +7 -1
  11. package/dist/chat/event-tasks/tool-support.d.ts +1 -0
  12. package/dist/chat/resource-events/runtime-catalog.d.ts +3 -0
  13. package/dist/chat/scheduled-tasks/cadence.d.ts +27 -0
  14. package/dist/chat/scheduled-tasks/heartbeat.d.ts +6 -0
  15. package/dist/chat/scheduled-tasks/identity.d.ts +6 -0
  16. package/dist/chat/scheduled-tasks/personal.d.ts +26 -0
  17. package/dist/chat/scheduled-tasks/schedule-intent.d.ts +61 -0
  18. package/dist/chat/scheduled-tasks/store.d.ts +77 -0
  19. package/dist/chat/scheduled-tasks/tool-support.d.ts +203 -0
  20. package/dist/chat/scheduled-tasks/tools/create.d.ts +80 -0
  21. package/dist/chat/scheduled-tasks/tools/delete.d.ts +56 -0
  22. package/dist/chat/scheduled-tasks/tools/list.d.ts +54 -0
  23. package/dist/chat/scheduled-tasks/tools/run-now.d.ts +56 -0
  24. package/dist/chat/scheduled-tasks/tools/update.d.ts +82 -0
  25. package/dist/chat/scheduled-tasks/tools.d.ts +6 -0
  26. package/dist/chat/scheduled-tasks/types.d.ts +81 -0
  27. package/dist/chat/tasks/read.d.ts +9 -0
  28. package/dist/chat/tools/scheduled-tasks.d.ts +4 -0
  29. package/dist/{chunk-AAMF2IRC.js → chunk-224V72RX.js} +1308 -804
  30. package/dist/{chunk-54KP2EAH.js → chunk-2V7BQAJ6.js} +12 -12
  31. package/dist/{chunk-J3YIO3LE.js → chunk-4AF3XOZI.js} +3 -3
  32. package/dist/{chunk-S2O64VXP.js → chunk-4X2MZ4FP.js} +6 -6
  33. package/dist/{chunk-5IR7SGRO.js → chunk-5I4SWLD7.js} +2 -2
  34. package/dist/{chunk-OIQCRZ67.js → chunk-5XDJRSU5.js} +4 -4
  35. package/dist/{chunk-MZ6ZOWMJ.js → chunk-7OO3LMEP.js} +1 -1
  36. package/dist/{chunk-Q5TMMCBV.js → chunk-A64VQ4N4.js} +1 -1
  37. package/dist/{chunk-R2LXTX4J.js → chunk-ATCTPG7J.js} +1 -1
  38. package/dist/{chunk-AFJF3RGU.js → chunk-BVKP37NE.js} +61 -13
  39. package/dist/{chunk-EHEACYJ6.js → chunk-DMS2RTEK.js} +1 -1
  40. package/dist/{chunk-H4HMCSOZ.js → chunk-EKZSU2RK.js} +5 -5
  41. package/dist/chunk-GXO3EXBM.js +1470 -0
  42. package/dist/{chunk-ETGUGGO2.js → chunk-H6GDE77O.js} +7 -7
  43. package/dist/{chunk-P7UUNWC4.js → chunk-HJHTRJKR.js} +4 -4
  44. package/dist/{chunk-TONH5NXR.js → chunk-J6B27DOC.js} +1 -1
  45. package/dist/{chunk-SHMHHXD5.js → chunk-KB2M27DL.js} +58 -0
  46. package/dist/{chunk-EOIA25WC.js → chunk-LYEXN7FN.js} +2 -2
  47. package/dist/{chunk-O3C5BJFD.js → chunk-PVHL3274.js} +1 -1
  48. package/dist/{chunk-O3YROBH4.js → chunk-RTJCNKQD.js} +1 -1
  49. package/dist/{chunk-LIJ4APSS.js → chunk-UDYVHDLH.js} +1 -1
  50. package/dist/{chunk-PLAMHS3D.js → chunk-XRROAXID.js} +2 -2
  51. package/dist/{chunk-MKM5552O.js → chunk-Z72XGIFF.js} +1 -2
  52. package/dist/cli/chat.js +24 -24
  53. package/dist/cli/check.js +6 -6
  54. package/dist/cli/plugins.js +12 -12
  55. package/dist/cli/snapshot-create.js +9 -9
  56. package/dist/cli/upgrade.js +9 -17
  57. package/dist/db/schema/scheduled-tasks.d.ts +257 -0
  58. package/dist/db/schema.d.ts +258 -1
  59. package/dist/{db-VOU5QNLY.js → db-XE6DXA5Z.js} +7 -7
  60. package/dist/instrumentation.js +4 -4
  61. package/dist/nitro.js +2 -2
  62. package/dist/{oauth-callback-server-GS7FBYBC.js → oauth-callback-server-O42UXC7E.js} +17 -17
  63. package/dist/{runner-GSJSBI3J.js → runner-BSP3374N.js} +11 -11
  64. package/dist/{skills-DSHG54LM.js → skills-BNLHOZ75.js} +6 -6
  65. package/dist/{validation-25XWT6TA.js → validation-O7BF3JX6.js} +6 -6
  66. package/dist/version.js +1 -1
  67. package/migrations/0016_neat_the_anarchist.sql +171 -0
  68. package/migrations/meta/0016_snapshot.json +1617 -0
  69. package/migrations/meta/_journal.json +7 -0
  70. package/package.json +4 -5
  71. package/dist/chunk-REHOYCYS.js +0 -37
@@ -6,25 +6,25 @@ import {
6
6
  isDmChannel,
7
7
  normalizeSlackConversationId,
8
8
  withSlackRetries
9
- } from "./chunk-H4HMCSOZ.js";
9
+ } from "./chunk-EKZSU2RK.js";
10
10
  import {
11
11
  getDb,
12
12
  parseDestination
13
- } from "./chunk-J3YIO3LE.js";
13
+ } from "./chunk-4AF3XOZI.js";
14
14
  import {
15
15
  acquireActiveLock,
16
16
  getStateAdapter,
17
17
  sleep
18
- } from "./chunk-MZ6ZOWMJ.js";
18
+ } from "./chunk-7OO3LMEP.js";
19
19
  import {
20
20
  normalizeSlackEmojiName
21
- } from "./chunk-5IR7SGRO.js";
21
+ } from "./chunk-5I4SWLD7.js";
22
22
  import {
23
23
  pluginCatalogRuntime
24
- } from "./chunk-R2LXTX4J.js";
24
+ } from "./chunk-ATCTPG7J.js";
25
25
  import {
26
26
  fetchWithBoundedOAuthErrorBodies
27
- } from "./chunk-O3YROBH4.js";
27
+ } from "./chunk-RTJCNKQD.js";
28
28
  import {
29
29
  parseSlackMessageTs,
30
30
  parseSlackUserId
@@ -33,7 +33,7 @@ import {
33
33
  isRecord,
34
34
  logInfo,
35
35
  logWarn
36
- } from "./chunk-TONH5NXR.js";
36
+ } from "./chunk-J6B27DOC.js";
37
37
 
38
38
  // src/chat/capabilities/router.ts
39
39
  var ProviderCredentialRouter = class {
@@ -2,18 +2,18 @@ import {
2
2
  SANDBOX_WORKSPACE_ROOT,
3
3
  getStateAdapter,
4
4
  sleep
5
- } from "./chunk-MZ6ZOWMJ.js";
5
+ } from "./chunk-7OO3LMEP.js";
6
6
  import {
7
7
  toOptionalTrimmed
8
- } from "./chunk-5IR7SGRO.js";
8
+ } from "./chunk-5I4SWLD7.js";
9
9
  import {
10
10
  pluginCatalogRuntime
11
- } from "./chunk-R2LXTX4J.js";
11
+ } from "./chunk-ATCTPG7J.js";
12
12
  import {
13
13
  setSpanAttributes,
14
14
  setSpanStatus,
15
15
  withSpan
16
- } from "./chunk-TONH5NXR.js";
16
+ } from "./chunk-J6B27DOC.js";
17
17
 
18
18
  // src/chat/sandbox/resources.ts
19
19
  var configuredResources;
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-6GWA276C.js";
10
10
  import {
11
11
  getDeploymentTelemetryAttributes
12
- } from "./chunk-Q5TMMCBV.js";
12
+ } from "./chunk-A64VQ4N4.js";
13
13
 
14
14
  // src/chat/logging.ts
15
15
  import path from "path";
@@ -320,6 +320,60 @@ var juniorStats = pgTable8(
320
320
  ]
321
321
  );
322
322
 
323
+ // src/db/schema/scheduled-tasks.ts
324
+ import { sql as sql4 } from "drizzle-orm";
325
+ import { bigint as bigint2, index as index6, jsonb as jsonb6, pgTable as pgTable9, text as text9 } from "drizzle-orm/pg-core";
326
+ var juniorSchedulerTasks = pgTable9(
327
+ "junior_scheduler_tasks",
328
+ {
329
+ id: text9("id").primaryKey(),
330
+ teamId: text9("team_id").notNull(),
331
+ // TODO(v0.128.0): Remove after v0.127.x runtimes no longer write this column.
332
+ creatorSlackUserId: text9("creator_slack_user_id"),
333
+ creatorIdentityId: text9("creator_identity_id"),
334
+ status: text9("status").notNull(),
335
+ nextRunAtMs: bigint2("next_run_at_ms", { mode: "number" }),
336
+ runNowAtMs: bigint2("run_now_at_ms", { mode: "number" }),
337
+ createdAtMs: bigint2("created_at_ms", { mode: "number" }).notNull(),
338
+ record: jsonb6("record").$type().notNull()
339
+ },
340
+ (table) => [
341
+ // TODO(v0.128.0): Remove with creatorSlackUserId.
342
+ index6("junior_scheduler_tasks_creator_idx").on(table.teamId, table.creatorSlackUserId, table.createdAtMs, table.id).where(sql4`${table.status} <> 'deleted'`),
343
+ index6("junior_scheduler_tasks_creator_identity_idx").on(table.creatorIdentityId, table.createdAtMs, table.id).where(
344
+ sql4`${table.status} <> 'deleted' AND ${table.creatorIdentityId} IS NOT NULL`
345
+ ),
346
+ index6("junior_scheduler_tasks_team_status_idx").on(table.teamId, table.createdAtMs, table.id).where(sql4`${table.status} <> 'deleted'`),
347
+ index6("junior_scheduler_tasks_run_now_due_idx").on(table.runNowAtMs, table.createdAtMs, table.id).where(
348
+ sql4`${table.status} = 'active' AND ${table.runNowAtMs} IS NOT NULL`
349
+ ),
350
+ index6("junior_scheduler_tasks_next_run_due_idx").on(table.nextRunAtMs, table.createdAtMs, table.id).where(
351
+ sql4`${table.status} = 'active' AND ${table.nextRunAtMs} IS NOT NULL`
352
+ )
353
+ ]
354
+ );
355
+ var juniorSchedulerRuns = pgTable9(
356
+ "junior_scheduler_runs",
357
+ {
358
+ id: text9("id").primaryKey(),
359
+ taskId: text9("task_id").notNull(),
360
+ status: text9("status").notNull(),
361
+ scheduledForMs: bigint2("scheduled_for_ms", { mode: "number" }).notNull(),
362
+ record: jsonb6("record").$type().notNull()
363
+ },
364
+ (table) => [
365
+ index6("junior_scheduler_runs_task_status_idx").on(
366
+ table.taskId,
367
+ table.status,
368
+ table.scheduledForMs
369
+ ),
370
+ index6("junior_scheduler_runs_status_idx").on(
371
+ table.status,
372
+ table.scheduledForMs
373
+ )
374
+ ]
375
+ );
376
+
323
377
  // src/db/schema.ts
324
378
  var juniorSqlSchema = {
325
379
  juniorConversationAnnotations,
@@ -330,6 +384,8 @@ var juniorSqlSchema = {
330
384
  juniorEventTasks,
331
385
  juniorIdentities,
332
386
  juniorStats,
387
+ juniorSchedulerRuns,
388
+ juniorSchedulerTasks,
333
389
  juniorUsers
334
390
  };
335
391
 
@@ -582,5 +638,7 @@ export {
582
638
  juniorConversationEvents,
583
639
  juniorEventTasks,
584
640
  juniorStats,
641
+ juniorSchedulerTasks,
642
+ juniorSchedulerRuns,
585
643
  createJuniorSqlExecutor
586
644
  };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  pluginCatalogRuntime
3
- } from "./chunk-R2LXTX4J.js";
3
+ } from "./chunk-ATCTPG7J.js";
4
4
  import {
5
5
  logWarn
6
- } from "./chunk-TONH5NXR.js";
6
+ } from "./chunk-J6B27DOC.js";
7
7
  import {
8
8
  skillRoots
9
9
  } from "./chunk-H4HBKISO.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  pluginCatalogRuntime
3
- } from "./chunk-R2LXTX4J.js";
3
+ } from "./chunk-ATCTPG7J.js";
4
4
 
5
5
  // src/chat/plugins/validation.ts
6
6
  import { isDeepStrictEqual } from "util";
@@ -5,7 +5,7 @@ import {
5
5
  logInfo,
6
6
  logWarn,
7
7
  setSpanAttributes
8
- } from "./chunk-TONH5NXR.js";
8
+ } from "./chunk-J6B27DOC.js";
9
9
  import {
10
10
  discoverInstalledPluginPackageContent,
11
11
  normalizePluginPackageNames
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-F3B2YJ76.js";
6
6
  import {
7
7
  toOptionalString
8
- } from "./chunk-TONH5NXR.js";
8
+ } from "./chunk-J6B27DOC.js";
9
9
 
10
10
  // src/chat/slack/context.ts
11
11
  import { z } from "zod";
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk-UTL3MHPC.js";
4
4
  import {
5
5
  parseSlackThreadId
6
- } from "./chunk-LIJ4APSS.js";
6
+ } from "./chunk-UDYVHDLH.js";
7
7
  import {
8
8
  normalizeSlackConversationId
9
- } from "./chunk-H4HMCSOZ.js";
9
+ } from "./chunk-EKZSU2RK.js";
10
10
 
11
11
  // src/handlers/health.ts
12
12
  function readHealthReport() {
@@ -1,7 +1,7 @@
1
1
  // package.json
2
2
  var package_default = {
3
3
  name: "@sentry/junior",
4
- version: "0.128.1",
4
+ version: "0.130.0",
5
5
  private: false,
6
6
  publishConfig: {
7
7
  access: "public"
@@ -101,7 +101,6 @@ var package_default = {
101
101
  "@emnapi/runtime": "^1.10.0",
102
102
  "@sentry/junior-github": "workspace:*",
103
103
  "@sentry/junior-memory": "workspace:*",
104
- "@sentry/junior-scheduler": "workspace:*",
105
104
  "@sentry/junior-testing": "workspace:*",
106
105
  "@types/node": "^25.9.1",
107
106
  "@types/pg": "^8.15.6",
package/dist/cli/chat.js CHANGED
@@ -1,39 +1,39 @@
1
1
  import {
2
2
  createAgentRunner,
3
3
  executeAgentRun
4
- } from "../chunk-AAMF2IRC.js";
4
+ } from "../chunk-224V72RX.js";
5
5
  import "../chunk-DIB4GX3G.js";
6
- import "../chunk-ETGUGGO2.js";
7
- import "../chunk-OIQCRZ67.js";
6
+ import "../chunk-H6GDE77O.js";
7
+ import "../chunk-5XDJRSU5.js";
8
8
  import "../chunk-EPBBYMNE.js";
9
- import "../chunk-P7UUNWC4.js";
10
- import "../chunk-REHOYCYS.js";
11
- import "../chunk-LIJ4APSS.js";
9
+ import "../chunk-HJHTRJKR.js";
10
+ import "../chunk-GXO3EXBM.js";
11
+ import "../chunk-UDYVHDLH.js";
12
12
  import "../chunk-HX236W2U.js";
13
13
  import "../chunk-PDO5BLNM.js";
14
14
  import "../chunk-UIE3R5XU.js";
15
15
  import {
16
16
  loadAppPluginSet
17
17
  } from "../chunk-Y2CM7HXH.js";
18
- import "../chunk-H4HMCSOZ.js";
19
- import "../chunk-J3YIO3LE.js";
20
- import "../chunk-SHMHHXD5.js";
21
- import "../chunk-MZ6ZOWMJ.js";
22
- import "../chunk-5IR7SGRO.js";
18
+ import "../chunk-EKZSU2RK.js";
19
+ import "../chunk-4AF3XOZI.js";
20
+ import "../chunk-KB2M27DL.js";
21
+ import "../chunk-7OO3LMEP.js";
22
+ import "../chunk-5I4SWLD7.js";
23
23
  import "../chunk-VFUK3X5B.js";
24
- import "../chunk-EHEACYJ6.js";
25
- import "../chunk-EOIA25WC.js";
26
- import "../chunk-R2LXTX4J.js";
27
- import "../chunk-O3YROBH4.js";
24
+ import "../chunk-DMS2RTEK.js";
25
+ import "../chunk-LYEXN7FN.js";
26
+ import "../chunk-ATCTPG7J.js";
27
+ import "../chunk-RTJCNKQD.js";
28
28
  import "../chunk-77VDLF3Z.js";
29
29
  import "../chunk-HZF5P5UN.js";
30
30
  import "../chunk-F3B2YJ76.js";
31
- import "../chunk-TONH5NXR.js";
31
+ import "../chunk-J6B27DOC.js";
32
32
  import "../chunk-6GWA276C.js";
33
33
  import "../chunk-OOUNJNMR.js";
34
34
  import "../chunk-H4HBKISO.js";
35
- import "../chunk-Q5TMMCBV.js";
36
- import "../chunk-MKM5552O.js";
35
+ import "../chunk-A64VQ4N4.js";
36
+ import "../chunk-Z72XGIFF.js";
37
37
  import "../chunk-MLKGABMK.js";
38
38
 
39
39
  // src/cli/chat.ts
@@ -156,10 +156,10 @@ async function configureLocalChatPlugins(pluginSet) {
156
156
  databaseModule
157
157
  ] = await Promise.all([
158
158
  import("../plugins-HW4VWW6G.js"),
159
- import("../agent-hooks-IWQNFJMS.js"),
160
- import("../catalog-runtime-KLSYFS4A.js"),
161
- import("../validation-25XWT6TA.js"),
162
- import("../db-VOU5QNLY.js")
159
+ import("../agent-hooks-LJHLLMFC.js"),
160
+ import("../catalog-runtime-45AHWLJL.js"),
161
+ import("../validation-O7BF3JX6.js"),
162
+ import("../db-XE6DXA5Z.js")
163
163
  ]);
164
164
  const resolvedPluginSet = pluginSet === void 0 ? await loadLocalPluginSet() : pluginSet ?? void 0;
165
165
  const plugins = pluginsModule.pluginRuntimeRegistrationsFromPluginSet(resolvedPluginSet);
@@ -223,8 +223,8 @@ function localDevServerUrl() {
223
223
  async function prepareLocalChatRun(io, pluginSet) {
224
224
  defaultStateAdapterForLocalChat();
225
225
  await configureLocalChatPlugins(pluginSet);
226
- const { runLocalAgentTurn } = await import("../runner-GSJSBI3J.js");
227
- const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-GS7FBYBC.js");
226
+ const { runLocalAgentTurn } = await import("../runner-BSP3374N.js");
227
+ const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-O42UXC7E.js");
228
228
  const { createLocalOAuthState } = await import("../oauth-relay-3ZU72UGL.js");
229
229
  const { createLocalSandboxEgressSignalTransport } = await import("../sandbox-egress-signals-A5HWIQH4.js");
230
230
  const agentRunner = createAgentRunner(executeAgentRun);
package/dist/cli/check.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  parseSkillFile
3
- } from "../chunk-EOIA25WC.js";
4
- import "../chunk-R2LXTX4J.js";
3
+ } from "../chunk-LYEXN7FN.js";
4
+ import "../chunk-ATCTPG7J.js";
5
5
  import {
6
6
  parseInlinePluginManifest,
7
7
  parsePluginManifest
8
- } from "../chunk-O3YROBH4.js";
8
+ } from "../chunk-RTJCNKQD.js";
9
9
  import "../chunk-77VDLF3Z.js";
10
10
  import "../chunk-HZF5P5UN.js";
11
11
  import "../chunk-F3B2YJ76.js";
12
- import "../chunk-TONH5NXR.js";
12
+ import "../chunk-J6B27DOC.js";
13
13
  import "../chunk-6GWA276C.js";
14
14
  import "../chunk-OOUNJNMR.js";
15
15
  import "../chunk-H4HBKISO.js";
@@ -17,8 +17,8 @@ import {
17
17
  JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE,
18
18
  JUNIOR_HEARTBEAT_ROUTE,
19
19
  LEGACY_JUNIOR_CONVERSATION_WORK_FUNCTION
20
- } from "../chunk-Q5TMMCBV.js";
21
- import "../chunk-MKM5552O.js";
20
+ } from "../chunk-A64VQ4N4.js";
21
+ import "../chunk-Z72XGIFF.js";
22
22
  import "../chunk-MLKGABMK.js";
23
23
 
24
24
  // src/cli/check.ts
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  validatePluginEgressCredentialHooks,
3
3
  validatePluginRegistrations
4
- } from "../chunk-O3C5BJFD.js";
4
+ } from "../chunk-PVHL3274.js";
5
5
  import {
6
6
  pluginCatalogConfigFromPluginSet,
7
7
  pluginCliRegistrationsFromPluginSet,
@@ -14,28 +14,28 @@ import {
14
14
  createPluginLogger,
15
15
  setPlugins,
16
16
  validatePlugins
17
- } from "../chunk-H4HMCSOZ.js";
17
+ } from "../chunk-EKZSU2RK.js";
18
18
  import {
19
19
  getDb
20
- } from "../chunk-J3YIO3LE.js";
21
- import "../chunk-SHMHHXD5.js";
22
- import "../chunk-MZ6ZOWMJ.js";
23
- import "../chunk-5IR7SGRO.js";
20
+ } from "../chunk-4AF3XOZI.js";
21
+ import "../chunk-KB2M27DL.js";
22
+ import "../chunk-7OO3LMEP.js";
23
+ import "../chunk-5I4SWLD7.js";
24
24
  import "../chunk-VFUK3X5B.js";
25
- import "../chunk-EHEACYJ6.js";
25
+ import "../chunk-DMS2RTEK.js";
26
26
  import {
27
27
  pluginCatalogRuntime
28
- } from "../chunk-R2LXTX4J.js";
29
- import "../chunk-O3YROBH4.js";
28
+ } from "../chunk-ATCTPG7J.js";
29
+ import "../chunk-RTJCNKQD.js";
30
30
  import "../chunk-77VDLF3Z.js";
31
31
  import "../chunk-HZF5P5UN.js";
32
32
  import "../chunk-F3B2YJ76.js";
33
- import "../chunk-TONH5NXR.js";
33
+ import "../chunk-J6B27DOC.js";
34
34
  import "../chunk-6GWA276C.js";
35
35
  import "../chunk-OOUNJNMR.js";
36
36
  import "../chunk-H4HBKISO.js";
37
- import "../chunk-Q5TMMCBV.js";
38
- import "../chunk-MKM5552O.js";
37
+ import "../chunk-A64VQ4N4.js";
38
+ import "../chunk-Z72XGIFF.js";
39
39
  import "../chunk-MLKGABMK.js";
40
40
 
41
41
  // src/cli/plugins.ts
@@ -1,25 +1,25 @@
1
1
  import {
2
2
  create,
3
3
  resolve
4
- } from "../chunk-P7UUNWC4.js";
4
+ } from "../chunk-HJHTRJKR.js";
5
5
  import {
6
6
  disconnectStateAdapter
7
- } from "../chunk-MZ6ZOWMJ.js";
8
- import "../chunk-5IR7SGRO.js";
9
- import "../chunk-EHEACYJ6.js";
7
+ } from "../chunk-7OO3LMEP.js";
8
+ import "../chunk-5I4SWLD7.js";
9
+ import "../chunk-DMS2RTEK.js";
10
10
  import {
11
11
  pluginCatalogRuntime
12
- } from "../chunk-R2LXTX4J.js";
13
- import "../chunk-O3YROBH4.js";
12
+ } from "../chunk-ATCTPG7J.js";
13
+ import "../chunk-RTJCNKQD.js";
14
14
  import "../chunk-77VDLF3Z.js";
15
15
  import "../chunk-HZF5P5UN.js";
16
16
  import "../chunk-F3B2YJ76.js";
17
- import "../chunk-TONH5NXR.js";
17
+ import "../chunk-J6B27DOC.js";
18
18
  import "../chunk-6GWA276C.js";
19
19
  import "../chunk-OOUNJNMR.js";
20
20
  import "../chunk-H4HBKISO.js";
21
- import "../chunk-Q5TMMCBV.js";
22
- import "../chunk-MKM5552O.js";
21
+ import "../chunk-A64VQ4N4.js";
22
+ import "../chunk-Z72XGIFF.js";
23
23
  import "../chunk-MLKGABMK.js";
24
24
 
25
25
  // src/cli/snapshot-create.ts
@@ -8,24 +8,24 @@ import {
8
8
  } from "../chunk-Y2CM7HXH.js";
9
9
  import {
10
10
  createJuniorSqlExecutor
11
- } from "../chunk-SHMHHXD5.js";
11
+ } from "../chunk-KB2M27DL.js";
12
12
  import {
13
13
  getChatConfig
14
- } from "../chunk-5IR7SGRO.js";
14
+ } from "../chunk-5I4SWLD7.js";
15
15
  import "../chunk-VFUK3X5B.js";
16
- import "../chunk-EHEACYJ6.js";
16
+ import "../chunk-DMS2RTEK.js";
17
17
  import {
18
18
  createPluginCatalogRuntime
19
- } from "../chunk-O3YROBH4.js";
19
+ } from "../chunk-RTJCNKQD.js";
20
20
  import "../chunk-77VDLF3Z.js";
21
21
  import "../chunk-HZF5P5UN.js";
22
22
  import "../chunk-F3B2YJ76.js";
23
- import "../chunk-TONH5NXR.js";
23
+ import "../chunk-J6B27DOC.js";
24
24
  import "../chunk-6GWA276C.js";
25
25
  import "../chunk-OOUNJNMR.js";
26
26
  import "../chunk-H4HBKISO.js";
27
- import "../chunk-Q5TMMCBV.js";
28
- import "../chunk-MKM5552O.js";
27
+ import "../chunk-A64VQ4N4.js";
28
+ import "../chunk-Z72XGIFF.js";
29
29
  import "../chunk-MLKGABMK.js";
30
30
 
31
31
  // src/chat/conversations/sql/migrations.ts
@@ -129,7 +129,6 @@ import { createJiti } from "jiti";
129
129
  // src/chat/plugins/migrations.ts
130
130
  import { createHash } from "crypto";
131
131
  import { readMigrationFiles as readMigrationFiles2 } from "drizzle-orm/migrator";
132
- var LEGACY_SCHEDULER_BASELINE_HASH = "d1d2f712181dd3a0557808f0fc67fd0722691d25f4c8cfb816b77c71d19e1e42";
133
132
  function migrationTable(pluginName) {
134
133
  const label = pluginName.toLowerCase().replace(/[^a-z0-9]+/g, "_").replace(/^_+|_+$/g, "").slice(0, 32);
135
134
  const hash = createHash("sha256").update(pluginName).digest("hex").slice(0, 8);
@@ -167,7 +166,7 @@ async function legacyMigrationHashes(executor, pluginName) {
167
166
  );
168
167
  return new Set(rows.map((row) => row.checksum));
169
168
  }
170
- function adoptedMigration(migrations, legacyHashes, pluginName) {
169
+ function adoptedMigration(migrations, legacyHashes) {
171
170
  let adopted;
172
171
  for (const migration of migrations) {
173
172
  if (!legacyHashes.has(migration.hash)) {
@@ -175,9 +174,6 @@ function adoptedMigration(migrations, legacyHashes, pluginName) {
175
174
  }
176
175
  adopted = migration;
177
176
  }
178
- if (!adopted && pluginName === "scheduler" && legacyHashes.has(LEGACY_SCHEDULER_BASELINE_HASH)) {
179
- return migrations[0];
180
- }
181
177
  return adopted;
182
178
  }
183
179
  async function adoptLegacyMigrationState(args) {
@@ -185,11 +181,7 @@ async function adoptLegacyMigrationState(args) {
185
181
  args.executor,
186
182
  args.pluginName
187
183
  );
188
- const migration = adoptedMigration(
189
- args.migrations,
190
- legacyHashes,
191
- args.pluginName
192
- );
184
+ const migration = adoptedMigration(args.migrations, legacyHashes);
193
185
  if (!migration) {
194
186
  return void 0;
195
187
  }