nextly 0.0.2-alpha.4 → 0.0.2-alpha.6

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 (70) hide show
  1. package/dist/_dts-chunks/{collections-handler.d-nXHXeVJG.d.ts → collections-handler.d-bFf_q7vE.d.ts} +8 -0
  2. package/dist/_dts-chunks/{config.d-CWOwFVLW.d.ts → config.d-JFN2O3Ky.d.ts} +13 -1
  3. package/dist/_dts-chunks/{define-component.d-DptZZAGj.d.ts → define-component.d-CawT3n6q.d.ts} +2 -2
  4. package/dist/_dts-chunks/{index.d-DutLjyet.d.ts → index.d-C5qBciiQ.d.ts} +1 -1
  5. package/dist/actions/index.mjs +4 -4
  6. package/dist/api/auth-state.mjs +10 -10
  7. package/dist/api/collections-schema-detail.mjs +10 -10
  8. package/dist/api/collections-schema-export.mjs +10 -10
  9. package/dist/api/collections-schema.mjs +10 -10
  10. package/dist/api/components-detail.mjs +10 -10
  11. package/dist/api/components.mjs +10 -10
  12. package/dist/api/email-providers-default.mjs +10 -10
  13. package/dist/api/email-providers-detail.mjs +10 -10
  14. package/dist/api/email-providers-test.mjs +10 -10
  15. package/dist/api/email-providers.mjs +10 -10
  16. package/dist/api/email-send-template.mjs +11 -11
  17. package/dist/api/email-send.mjs +11 -11
  18. package/dist/api/email-templates-detail.mjs +10 -10
  19. package/dist/api/email-templates-layout.mjs +10 -10
  20. package/dist/api/email-templates-preview.mjs +10 -10
  21. package/dist/api/email-templates.mjs +10 -10
  22. package/dist/api/media-bulk.mjs +6 -6
  23. package/dist/api/media-folders.mjs +10 -10
  24. package/dist/api/media-handlers.d.ts +2 -2
  25. package/dist/api/media-handlers.mjs +10 -10
  26. package/dist/api/media.mjs +10 -10
  27. package/dist/api/singles-detail.mjs +10 -10
  28. package/dist/api/singles-schema-detail.mjs +10 -10
  29. package/dist/api/singles.mjs +10 -10
  30. package/dist/api/storage-upload-url.mjs +10 -10
  31. package/dist/api/uploads.mjs +10 -10
  32. package/dist/{boot-apply-QKGHS5BL.mjs → boot-apply-CRCAJASG.mjs} +1 -1
  33. package/dist/{chunk-DK77CLFT.mjs → chunk-5YT7PIAB.mjs} +2 -2
  34. package/dist/{chunk-IU7BK3OH.mjs → chunk-66ZNVKTF.mjs} +1 -1
  35. package/dist/{chunk-3FA7FKAV.mjs → chunk-D72XH3BG.mjs} +57 -3
  36. package/dist/{chunk-VFGZI4F5.mjs → chunk-D7L6Q3ND.mjs} +27 -9
  37. package/dist/{chunk-SKPLPSPW.mjs → chunk-FQH647CT.mjs} +1 -1
  38. package/dist/{chunk-WUX2XAR5.mjs → chunk-GJ5LPGUZ.mjs} +1 -1
  39. package/dist/{chunk-JTMTJQTO.mjs → chunk-GTSKUAWD.mjs} +2 -2
  40. package/dist/{chunk-4D7MFRPN.mjs → chunk-IS2K53B6.mjs} +5 -5
  41. package/dist/{chunk-V4EQTOA4.mjs → chunk-JXZITQPZ.mjs} +1 -1
  42. package/dist/{chunk-YX2SV35I.mjs → chunk-MNCUO7XG.mjs} +1 -1
  43. package/dist/{chunk-NHM5NCLU.mjs → chunk-O4EYLAXB.mjs} +1 -1
  44. package/dist/{chunk-BQRGVU32.mjs → chunk-PCOFNPRJ.mjs} +3 -3
  45. package/dist/{chunk-GZCKHDYS.mjs → chunk-PR35VWKA.mjs} +1 -1
  46. package/dist/{chunk-RSRVIF5S.mjs → chunk-QBLIKULS.mjs} +9 -9
  47. package/dist/{chunk-NYUB4YDK.mjs → chunk-QOH5I67F.mjs} +2 -2
  48. package/dist/{chunk-BJ2YQ6IQ.mjs → chunk-TDQS6AFE.mjs} +1 -1
  49. package/dist/{chunk-SNBXPBVC.mjs → chunk-V4WYFBQW.mjs} +141 -68
  50. package/dist/cli/nextly.mjs +1 -1
  51. package/dist/cli/utils/index.d.ts +2 -2
  52. package/dist/{component-schema-service-5577KVW6.mjs → component-schema-service-JOQIBQGK.mjs} +1 -1
  53. package/dist/config.d.ts +3 -3
  54. package/dist/database/index.d.ts +2 -2
  55. package/dist/database/seeders/index.mjs +7 -7
  56. package/dist/{db-sync-demote-LJGKLB3S.mjs → db-sync-demote-Z2HOXRZN.mjs} +1 -1
  57. package/dist/{db-sync-promote-B26VSYQF.mjs → db-sync-promote-FKWZSRYC.mjs} +1 -1
  58. package/dist/index.d.ts +6 -6
  59. package/dist/index.mjs +11 -11
  60. package/dist/{permissions-7VJ6623I.mjs → permissions-2E32PO5S.mjs} +5 -5
  61. package/dist/{pipeline-M2RINZTN.mjs → pipeline-2DWG7LSN.mjs} +4 -4
  62. package/dist/{program-SCS5WDD7.mjs → program-CNY7TIZY.mjs} +12 -12
  63. package/dist/{register-LQG76RZE.mjs → register-XRO522H5.mjs} +6 -6
  64. package/dist/{reload-config-NYCSWFLT.mjs → reload-config-IS25NM4M.mjs} +4 -4
  65. package/dist/{routeHandler-YREUKCTQ.mjs → routeHandler-FY23GB7Q.mjs} +13 -13
  66. package/dist/runtime.d.ts +2 -2
  67. package/dist/runtime.mjs +13 -13
  68. package/dist/{super-admin-M66UMUAZ.mjs → super-admin-3R2R57B7.mjs} +5 -5
  69. package/dist/{users-HVZAXVWC.mjs → users-KOSQUELL.mjs} +4 -4
  70. package/package.json +8 -8
@@ -380,6 +380,8 @@ var CollectionRegistryService = class extends BaseRegistryService {
380
380
  resourceType = "Collection";
381
381
  tableNamePrefix = "dc_";
382
382
  permissionSeedService;
383
+ /** Invoked when code-first sync resolves a new `tableName` for an existing slug. */
384
+ onTableNameChanged;
383
385
  constructor(adapter, logger) {
384
386
  super(adapter, logger);
385
387
  }
@@ -390,6 +392,10 @@ var CollectionRegistryService = class extends BaseRegistryService {
390
392
  setPermissionSeedService(service) {
391
393
  this.permissionSeedService = service;
392
394
  }
395
+ /** Register a callback fired when sync resolves a new `tableName` for a slug. */
396
+ setOnTableNameChanged(callback) {
397
+ this.onTableNameChanged = callback;
398
+ }
393
399
  async getCollectionBySlug(slug) {
394
400
  return this.getRecordBySlug(slug);
395
401
  }
@@ -543,6 +549,9 @@ var CollectionRegistryService = class extends BaseRegistryService {
543
549
  if (data.status !== void 0) {
544
550
  updateData.status = data.status === true ? 1 : 0;
545
551
  }
552
+ if (data.tableName !== void 0) {
553
+ updateData.table_name = this.ensureTableNamePrefix(data.tableName);
554
+ }
546
555
  try {
547
556
  const results = await this.adapter.update(
548
557
  this.registryTableName,
@@ -600,11 +609,12 @@ var CollectionRegistryService = class extends BaseRegistryService {
600
609
  try {
601
610
  const existing = await this.getCollectionBySlug(config.slug);
602
611
  const schemaHash = calculateSchemaHash(config.fields);
612
+ const desiredTableName = config.tableName ? this.ensureTableNamePrefix(config.tableName) : this.generateTableName(config.slug);
603
613
  if (!existing) {
604
614
  await this.registerCollection({
605
615
  slug: config.slug,
606
616
  labels: config.labels,
607
- tableName: config.tableName ?? this.generateTableName(config.slug),
617
+ tableName: desiredTableName,
608
618
  description: config.description,
609
619
  fields: config.fields,
610
620
  timestamps: config.timestamps ?? true,
@@ -619,7 +629,15 @@ var CollectionRegistryService = class extends BaseRegistryService {
619
629
  });
620
630
  result.created.push(config.slug);
621
631
  await this.seedPermissionsForCollection(config.slug);
622
- } else if (!schemaHashesMatch(schemaHash, existing.schemaHash) || config.status === true !== (existing.status === true)) {
632
+ } else if (!schemaHashesMatch(schemaHash, existing.schemaHash) || config.status === true !== (existing.status === true) || desiredTableName !== existing.tableName) {
633
+ if (desiredTableName !== existing.tableName) {
634
+ await this.renamePhysicalTable(
635
+ existing.tableName,
636
+ desiredTableName,
637
+ config.slug
638
+ );
639
+ this.onTableNameChanged?.(config.slug);
640
+ }
623
641
  await this.updateCollection(
624
642
  config.slug,
625
643
  {
@@ -631,7 +649,8 @@ var CollectionRegistryService = class extends BaseRegistryService {
631
649
  configPath: config.configPath,
632
650
  schemaHash,
633
651
  locked: true,
634
- status: config.status === true
652
+ status: config.status === true,
653
+ tableName: desiredTableName
635
654
  },
636
655
  { source: "code" }
637
656
  );
@@ -755,6 +774,41 @@ var CollectionRegistryService = class extends BaseRegistryService {
755
774
  );
756
775
  return this.deserializeRecord(result);
757
776
  }
777
+ /**
778
+ * Rename the physical table when a code-first collection's `dbName` changes.
779
+ * Renames only when old exists and new doesn't; warns when both exist; no-op
780
+ * otherwise (boot auto-create handles the missing-table case).
781
+ */
782
+ async renamePhysicalTable(oldTableName, newTableName, slug) {
783
+ let oldExists;
784
+ let newExists;
785
+ try {
786
+ oldExists = await this.adapter.tableExists(oldTableName);
787
+ newExists = await this.adapter.tableExists(newTableName);
788
+ } catch (error) {
789
+ this.logger.warn(
790
+ `Skipping rename for collection "${slug}": table introspection failed (${error instanceof Error ? error.message : String(error)}). Boot pipeline will reconcile.`
791
+ );
792
+ return;
793
+ }
794
+ if (oldExists && !newExists) {
795
+ try {
796
+ const { dialect } = this.adapter.getCapabilities();
797
+ const q = dialect === "mysql" ? "`" : '"';
798
+ await this.adapter.executeQuery(
799
+ `ALTER TABLE ${q}${oldTableName}${q} RENAME TO ${q}${newTableName}${q}`
800
+ );
801
+ } catch (error) {
802
+ this.logger.warn(
803
+ `Failed to rename physical table for collection "${slug}" (${oldTableName} \u2192 ${newTableName}): ${error instanceof Error ? error.message : String(error)}`
804
+ );
805
+ }
806
+ } else if (oldExists && newExists) {
807
+ this.logger.warn(
808
+ `Cannot rename physical table for collection "${slug}": both "${oldTableName}" and "${newTableName}" exist. Resolve manually (drop one or copy rows).`
809
+ );
810
+ }
811
+ }
758
812
  async seedPermissionsForCollection(slug) {
759
813
  if (!this.permissionSeedService) return;
760
814
  try {
@@ -2,7 +2,7 @@ import {
2
2
  ComponentRegistryService,
3
3
  PermissionSeedService,
4
4
  SingleRegistryService
5
- } from "./chunk-DK77CLFT.mjs";
5
+ } from "./chunk-5YT7PIAB.mjs";
6
6
  import {
7
7
  AccessControlService,
8
8
  ApiKeyService,
@@ -31,13 +31,13 @@ import {
31
31
  keysToSnakeCase,
32
32
  resolveStatusFilter,
33
33
  sanitizeEntryData
34
- } from "./chunk-SNBXPBVC.mjs";
34
+ } from "./chunk-V4WYFBQW.mjs";
35
35
  import {
36
36
  CollectionRegistryService
37
- } from "./chunk-3FA7FKAV.mjs";
37
+ } from "./chunk-D72XH3BG.mjs";
38
38
  import {
39
39
  ComponentSchemaService
40
- } from "./chunk-V4EQTOA4.mjs";
40
+ } from "./chunk-JXZITQPZ.mjs";
41
41
  import {
42
42
  hasPermission,
43
43
  isSuperAdmin,
@@ -577,7 +577,8 @@ function registerCollectionServices(ctx) {
577
577
  const fields = typeof result.fields === "string" ? JSON.parse(result.fields) : result.fields;
578
578
  return {
579
579
  fields,
580
- tableName: result.table_name,
580
+ tableName: result.tableName,
581
+ // SQLite returns 0/1 for booleans; PG/MySQL return real booleans.
581
582
  status: result.status === true || result.status === 1
582
583
  };
583
584
  }
@@ -5947,7 +5948,7 @@ async function initializeSchemaRegistry(adapter) {
5947
5948
  adapter,
5948
5949
  "dynamic_components",
5949
5950
  async (tableName, fields) => {
5950
- const { ComponentSchemaService: ComponentSchemaService2 } = await import("./component-schema-service-5577KVW6.mjs");
5951
+ const { ComponentSchemaService: ComponentSchemaService2 } = await import("./component-schema-service-JOQIBQGK.mjs");
5951
5952
  const compSchemaService = new ComponentSchemaService2(dialect);
5952
5953
  const runtimeTable = compSchemaService.generateRuntimeSchema(
5953
5954
  tableName,
@@ -6031,6 +6032,18 @@ async function syncCodeFirstCollections(adapter, logger, transformedConfig) {
6031
6032
  const collectionRegistry = container.get(
6032
6033
  "collectionRegistryService"
6033
6034
  );
6035
+ if (container.has("collectionService")) {
6036
+ try {
6037
+ const collectionService = container.get("collectionService");
6038
+ collectionRegistry.setOnTableNameChanged((slug) => {
6039
+ collectionService.invalidateSchemaForSlug(slug);
6040
+ });
6041
+ } catch (err) {
6042
+ logger.warn?.(
6043
+ `[registerServices] Could not wire tableName-change cache invalidation: ${err instanceof Error ? err.message : String(err)}`
6044
+ );
6045
+ }
6046
+ }
6034
6047
  const codeFirstConfigs = transformedConfig.collections.map((collection) => ({
6035
6048
  slug: collection.slug,
6036
6049
  labels: {
@@ -6083,8 +6096,13 @@ ${errorDetails}`);
6083
6096
  ...syncResult.created,
6084
6097
  ...syncResult.updated
6085
6098
  ];
6099
+ const collectionsBySlug = new Map(
6100
+ (transformedConfig.collections ?? []).map((c) => [c.slug, c])
6101
+ );
6086
6102
  for (const slug of syncResult.unchanged) {
6087
- const tableName = `dc_${slug.replace(/-/g, "_")}`;
6103
+ const collection = collectionsBySlug.get(slug);
6104
+ const baseTableName = collection?.dbName ?? slug.replace(/-/g, "_");
6105
+ const tableName = baseTableName.startsWith("dc_") ? baseTableName : `dc_${baseTableName}`;
6088
6106
  try {
6089
6107
  const tableExists = await adapter.tableExists(tableName);
6090
6108
  if (!tableExists) {
@@ -6101,7 +6119,7 @@ ${errorDetails}`);
6101
6119
  `Auto-syncing ${collectionsNeedingTableSync.length} collection table(s)...`
6102
6120
  );
6103
6121
  try {
6104
- const { applyDesiredSchema } = await import("./pipeline-M2RINZTN.mjs");
6122
+ const { applyDesiredSchema } = await import("./pipeline-2DWG7LSN.mjs");
6105
6123
  const { generateRuntimeSchema } = await import("./runtime-schema-generator-MOPQWGJP.mjs");
6106
6124
  const collectionsToSyncSet = new Set(collectionsNeedingTableSync);
6107
6125
  const desiredCollections = {};
@@ -6232,7 +6250,7 @@ ${errorDetails}`);
6232
6250
  `Auto-syncing ${componentsNeedingTableSync.length} component table(s)...`
6233
6251
  );
6234
6252
  try {
6235
- const { ComponentSchemaService: CompSchemaService } = await import("./component-schema-service-5577KVW6.mjs");
6253
+ const { ComponentSchemaService: CompSchemaService } = await import("./component-schema-service-JOQIBQGK.mjs");
6236
6254
  const dialect = adapter.getCapabilities().dialect;
6237
6255
  const compSchemaService = new CompSchemaService(dialect);
6238
6256
  for (const slug of componentsNeedingTableSync) {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  PromptCancelledError,
3
3
  TTYRequiredError
4
- } from "./chunk-IU7BK3OH.mjs";
4
+ } from "./chunk-66ZNVKTF.mjs";
5
5
 
6
6
  // src/domains/schema/pipeline/prompt-dispatcher/clack-terminal.ts
7
7
  import * as clack from "@clack/prompts";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ServiceContainer
3
- } from "./chunk-SNBXPBVC.mjs";
3
+ } from "./chunk-V4WYFBQW.mjs";
4
4
 
5
5
  // src/database/seeders/super-admin.ts
6
6
  var DEFAULT_SUPER_ADMIN = {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  seedPermissions
3
- } from "./chunk-YX2SV35I.mjs";
3
+ } from "./chunk-MNCUO7XG.mjs";
4
4
  import {
5
5
  seedSuperAdmin
6
- } from "./chunk-WUX2XAR5.mjs";
6
+ } from "./chunk-GJ5LPGUZ.mjs";
7
7
 
8
8
  // src/database/seeders/index.ts
9
9
  async function seedAll(adapter, options) {
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  reloadNextlyConfig,
3
3
  resolveCollectionTableName
4
- } from "./chunk-BQRGVU32.mjs";
4
+ } from "./chunk-PCOFNPRJ.mjs";
5
5
  import {
6
6
  runBootTimeApplyIfDev
7
- } from "./chunk-NHM5NCLU.mjs";
7
+ } from "./chunk-O4EYLAXB.mjs";
8
8
  import {
9
9
  buildClaims,
10
10
  signAccessToken
@@ -14,7 +14,7 @@ import {
14
14
  isServicesRegistered,
15
15
  registerServices,
16
16
  shutdownServices
17
- } from "./chunk-VFGZI4F5.mjs";
17
+ } from "./chunk-D7L6Q3ND.mjs";
18
18
  import {
19
19
  AuthService,
20
20
  PermissionService,
@@ -22,7 +22,7 @@ import {
22
22
  RoleService,
23
23
  UserAccountService,
24
24
  transformRichTextFields
25
- } from "./chunk-SNBXPBVC.mjs";
25
+ } from "./chunk-V4WYFBQW.mjs";
26
26
  import {
27
27
  env
28
28
  } from "./chunk-UJ2IMJ4W.mjs";
@@ -2359,7 +2359,7 @@ function ensureHmrListener() {
2359
2359
  if (!(g.__nextly_hmrReload instanceof Promise)) {
2360
2360
  const reload = (async () => {
2361
2361
  try {
2362
- const { reloadNextlyConfig: reloadNextlyConfig2 } = await import("./reload-config-NYCSWFLT.mjs");
2362
+ const { reloadNextlyConfig: reloadNextlyConfig2 } = await import("./reload-config-IS25NM4M.mjs");
2363
2363
  await reloadNextlyConfig2();
2364
2364
  } catch {
2365
2365
  }
@@ -60,7 +60,7 @@ var SQL_COLUMN_TYPES = {
60
60
  boolean: "BOOLEAN",
61
61
  integer: "INTEGER",
62
62
  real: "REAL",
63
- timestamp: "TIMESTAMP WITH TIME ZONE",
63
+ timestamp: "TIMESTAMP",
64
64
  json: "JSONB"
65
65
  },
66
66
  mysql: {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  CreatePermissionSchema,
3
3
  ServiceContainer
4
- } from "./chunk-SNBXPBVC.mjs";
4
+ } from "./chunk-V4WYFBQW.mjs";
5
5
 
6
6
  // src/database/seeders/permissions.ts
7
7
  var RESOURCES = ["users", "roles", "permissions"];
@@ -5,7 +5,7 @@ async function runBootTimeApplyIfDev(opts) {
5
5
  if (process.env.NEXTLY_DISABLE_BOOT_APPLY === "1") return;
6
6
  const label = callerLabel(opts?.caller);
7
7
  try {
8
- const { reloadNextlyConfig } = await import("./reload-config-NYCSWFLT.mjs");
8
+ const { reloadNextlyConfig } = await import("./reload-config-IS25NM4M.mjs");
9
9
  await reloadNextlyConfig();
10
10
  } catch (err) {
11
11
  const msg = err instanceof Error ? err.message : String(err);
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ClackTerminalPromptDispatcher
3
- } from "./chunk-SKPLPSPW.mjs";
3
+ } from "./chunk-FQH647CT.mjs";
4
4
  import {
5
5
  extractDatabaseNameFromUrl
6
6
  } from "./chunk-KIMNCZGV.mjs";
@@ -12,7 +12,7 @@ import {
12
12
  getProductionNotifier,
13
13
  noopMigrationJournal,
14
14
  noopPreRenameExecutor
15
- } from "./chunk-IU7BK3OH.mjs";
15
+ } from "./chunk-66ZNVKTF.mjs";
16
16
  import {
17
17
  RealClassifier,
18
18
  RegexRenameDetector,
@@ -33,7 +33,7 @@ function resolveCollectionTableName(slug, dbName) {
33
33
 
34
34
  // src/init/reload-config.ts
35
35
  async function defaultResolver(name) {
36
- const { getService } = await import("./register-LQG76RZE.mjs");
36
+ const { getService } = await import("./register-XRO522H5.mjs");
37
37
  return getService(name);
38
38
  }
39
39
  async function reloadNextlyConfig(opts) {
@@ -11,7 +11,7 @@ import {
11
11
  } from "./chunk-TO5AFLVQ.mjs";
12
12
  import {
13
13
  getCachedNextly
14
- } from "./chunk-4D7MFRPN.mjs";
14
+ } from "./chunk-IS2K53B6.mjs";
15
15
  import {
16
16
  respondAction
17
17
  } from "./chunk-IUDOC7N7.mjs";
@@ -3,13 +3,13 @@ import {
3
3
  } from "./chunk-A3WPLSDT.mjs";
4
4
  import {
5
5
  POST
6
- } from "./chunk-BJ2YQ6IQ.mjs";
6
+ } from "./chunk-TDQS6AFE.mjs";
7
7
  import {
8
8
  readJsonBody
9
9
  } from "./chunk-VQJQHVEV.mjs";
10
10
  import {
11
11
  POST as POST2
12
- } from "./chunk-GZCKHDYS.mjs";
12
+ } from "./chunk-PR35VWKA.mjs";
13
13
  import {
14
14
  createJsonErrorResponse,
15
15
  isErrorResponse,
@@ -45,12 +45,12 @@ import {
45
45
  import {
46
46
  ensureHmrListener,
47
47
  getCachedNextly
48
- } from "./chunk-4D7MFRPN.mjs";
48
+ } from "./chunk-IS2K53B6.mjs";
49
49
  import {
50
50
  getService,
51
51
  isServicesRegistered,
52
52
  registerServices
53
- } from "./chunk-VFGZI4F5.mjs";
53
+ } from "./chunk-D7L6Q3ND.mjs";
54
54
  import {
55
55
  readOrGenerateRequestId
56
56
  } from "./chunk-67GXH6PR.mjs";
@@ -61,7 +61,7 @@ import {
61
61
  ImageSizeService,
62
62
  ServiceDispatcher,
63
63
  parseWhereQuery
64
- } from "./chunk-SNBXPBVC.mjs";
64
+ } from "./chunk-V4WYFBQW.mjs";
65
65
  import {
66
66
  containsSuperAdminRole,
67
67
  hasSuperAdminExcluding,
@@ -2154,8 +2154,8 @@ function buildAuthRouterDeps(getService2) {
2154
2154
  }
2155
2155
  },
2156
2156
  createSuperAdmin: async (data) => {
2157
- const { seedPermissions } = await import("./permissions-7VJ6623I.mjs");
2158
- const { seedSuperAdmin } = await import("./super-admin-M66UMUAZ.mjs");
2157
+ const { seedPermissions } = await import("./permissions-2E32PO5S.mjs");
2158
+ const { seedSuperAdmin } = await import("./super-admin-3R2R57B7.mjs");
2159
2159
  const adapter = getService2("adapter");
2160
2160
  await seedPermissions(adapter, { silent: true });
2161
2161
  const result = await seedSuperAdmin(adapter, {
@@ -2180,7 +2180,7 @@ function buildAuthRouterDeps(getService2) {
2180
2180
  };
2181
2181
  },
2182
2182
  seedPermissions: async () => {
2183
- const { seedPermissions } = await import("./permissions-7VJ6623I.mjs");
2183
+ const { seedPermissions } = await import("./permissions-2E32PO5S.mjs");
2184
2184
  const adapter = getService2("adapter");
2185
2185
  await seedPermissions(adapter, { silent: true });
2186
2186
  },
@@ -2392,7 +2392,7 @@ async function ensureServicesInitialized() {
2392
2392
  } else {
2393
2393
  console.log("[Auth Handler] Services auto-initialized with defaults");
2394
2394
  }
2395
- const { runBootTimeApplyIfDev } = await import("./boot-apply-QKGHS5BL.mjs");
2395
+ const { runBootTimeApplyIfDev } = await import("./boot-apply-CRCAJASG.mjs");
2396
2396
  await runBootTimeApplyIfDev({ caller: "auth-handler" });
2397
2397
  ensureHmrListener();
2398
2398
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ClackTerminalPromptDispatcher
3
- } from "./chunk-SKPLPSPW.mjs";
3
+ } from "./chunk-FQH647CT.mjs";
4
4
  import {
5
5
  getAdapterFromDI,
6
6
  getCollectionRegistryFromDI,
@@ -14,7 +14,7 @@ import {
14
14
  getProductionNotifier,
15
15
  noopMigrationJournal,
16
16
  noopPreRenameExecutor
17
- } from "./chunk-IU7BK3OH.mjs";
17
+ } from "./chunk-66ZNVKTF.mjs";
18
18
  import {
19
19
  RealClassifier,
20
20
  RegexRenameDetector
@@ -11,7 +11,7 @@ import {
11
11
  } from "./chunk-TO5AFLVQ.mjs";
12
12
  import {
13
13
  getCachedNextly
14
- } from "./chunk-4D7MFRPN.mjs";
14
+ } from "./chunk-IS2K53B6.mjs";
15
15
  import {
16
16
  respondAction
17
17
  } from "./chunk-IUDOC7N7.mjs";