@holo-js/cli 0.3.1 → 0.3.3

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 (31) hide show
  1. package/dist/bin/holo.mjs +24 -24
  2. package/dist/{broadcast-PJLFVZH4.mjs → broadcast-6HKLFYUH.mjs} +8 -8
  3. package/dist/{cache-KR4ACOYD.mjs → cache-2RLSWZJ3.mjs} +7 -7
  4. package/dist/{cache-migrations-J34RE4WH.mjs → cache-migrations-UPKUSIPR.mjs} +10 -10
  5. package/dist/{chunk-AZ6NVJAP.mjs → chunk-35ZABJEB.mjs} +1 -1
  6. package/dist/{chunk-3ICVWL2M.mjs → chunk-7UXRXXPO.mjs} +2 -2
  7. package/dist/{chunk-CT23GSEC.mjs → chunk-ADP4UQA5.mjs} +1 -1
  8. package/dist/{chunk-FFTJKBQF.mjs → chunk-AQRX4FQG.mjs} +14 -6
  9. package/dist/{chunk-PVVGQSUP.mjs → chunk-ARDZVOST.mjs} +47 -47
  10. package/dist/{chunk-L3YATEQY.mjs → chunk-ASD767Q7.mjs} +116 -7
  11. package/dist/{chunk-7KZVFDSI.mjs → chunk-C4WPPQPR.mjs} +3 -3
  12. package/dist/{chunk-I3RRWDLV.mjs → chunk-MYTKB6GV.mjs} +6 -6
  13. package/dist/{chunk-L6FF22IV.mjs → chunk-R5BXEPH5.mjs} +7 -7
  14. package/dist/{chunk-4VYR2ARA.mjs → chunk-TEAV2C2A.mjs} +2 -2
  15. package/dist/{chunk-2XXJ76YC.mjs → chunk-YLW4NUNM.mjs} +1 -1
  16. package/dist/{config-XVPV6DJW.mjs → config-WTB6JPBN.mjs} +3 -3
  17. package/dist/{dev-NTQTEY5B.mjs → dev-USYW3LBP.mjs} +9 -9
  18. package/dist/{discovery-TMPUQQHI.mjs → discovery-BFUWENC6.mjs} +4 -4
  19. package/dist/{generators-3FDCCJDC.mjs → generators-BDJ3PDAR.mjs} +10 -10
  20. package/dist/index.mjs +24 -24
  21. package/dist/{media-migrations-UJ6BMUSZ.mjs → media-migrations-ASB5L3F2.mjs} +9 -9
  22. package/dist/{plugins-USHY6SPF.mjs → plugins-NEM2VBHH.mjs} +3 -3
  23. package/dist/{queue-6U7JU4T6.mjs → queue-56UOSMIN.mjs} +12 -12
  24. package/dist/{queue-VJEFD6SE.mjs → queue-BLFNHZQQ.mjs} +12 -12
  25. package/dist/{queue-migrations-6YUUOKMH.mjs → queue-migrations-CZ5TQ4M2.mjs} +10 -10
  26. package/dist/{runtime-P5R7H3B4.mjs → runtime-BHLRLGFL.mjs} +1 -1
  27. package/dist/{runtime-FVRB4O2M.mjs → runtime-EAV54JSZ.mjs} +8 -8
  28. package/dist/runtime-worker.mjs +18 -1
  29. package/dist/{scaffold-F3AZDNPG.mjs → scaffold-JIVZOC6J.mjs} +7 -7
  30. package/dist/{security-X4274RHX.mjs → security-A5LPMCIA.mjs} +7 -7
  31. package/package.json +19 -19
@@ -34,7 +34,7 @@ import {
34
34
  isRecord,
35
35
  makeProjectRelativePath,
36
36
  normalizeScaffoldOptionalPackages
37
- } from "./chunk-PVVGQSUP.mjs";
37
+ } from "./chunk-ARDZVOST.mjs";
38
38
 
39
39
  // src/templates.ts
40
40
  import { dirname, relative, resolve } from "path";
@@ -653,6 +653,12 @@ function renderNextBroadcastAuthRoute() {
653
653
  function renderNextBroadcastConfigRoute() {
654
654
  return renderNextRouteBridge("../../../.holo-js/generated/next/broadcast-config-route", ["GET"]);
655
655
  }
656
+ function renderNextRealtimeQueryRoute() {
657
+ return renderNextRouteBridge("../../../../.holo-js/generated/next/realtime-query-route", ["POST"]);
658
+ }
659
+ function renderNextRealtimeMutationRoute() {
660
+ return renderNextRouteBridge("../../../../.holo-js/generated/next/realtime-mutation-route", ["POST"]);
661
+ }
656
662
  function renderNextGeneratedBroadcastConfigRoute() {
657
663
  return [
658
664
  "import { renderBroadcastClientConfigResponse } from '@holo-js/broadcast/client-config'",
@@ -701,7 +707,7 @@ function renderNextGeneratedBroadcastAuthRoute() {
701
707
  ].join("\n");
702
708
  }
703
709
  function renderNextGeneratedRealtimeDefinitions(importPaths = []) {
704
- const imports = importPaths.map((importPath, index) => `import * as realtimeModule${index} from ${JSON.stringify(importPath)}`);
710
+ const imports = importPaths.map((importPath, index) => `import * as realtimeModule${index} from ${JSON.stringify(`${importPath}?holo-realtime-server`)}`);
705
711
  const values = importPaths.map((_importPath, index) => `...Object.values(realtimeModule${index})`);
706
712
  return [
707
713
  ...imports,
@@ -710,6 +716,47 @@ function renderNextGeneratedRealtimeDefinitions(importPaths = []) {
710
716
  ""
711
717
  ].join("\n");
712
718
  }
719
+ function renderNextGeneratedRealtimeServerModules() {
720
+ return [
721
+ "declare module '*?holo-realtime-server' {",
722
+ " const realtimeModule: Readonly<Record<string, unknown>>",
723
+ " export = realtimeModule",
724
+ "}",
725
+ ""
726
+ ].join("\n");
727
+ }
728
+ function renderNextGeneratedRealtimeQueryRoute() {
729
+ return [
730
+ "import { handleRealtimeQueryRequest } from '@holo-js/realtime/server'",
731
+ "import { realtimeDefinitions } from './realtime-definitions'",
732
+ "import { holo } from './holo'",
733
+ "",
734
+ "export async function POST(request: Request) {",
735
+ " const app = await holo.getApp()",
736
+ " return await handleRealtimeQueryRequest(request, {",
737
+ " projectRoot: app.projectRoot,",
738
+ " definitions: realtimeDefinitions,",
739
+ " })",
740
+ "}",
741
+ ""
742
+ ].join("\n");
743
+ }
744
+ function renderNextGeneratedRealtimeMutationRoute() {
745
+ return [
746
+ "import { handleRealtimeMutationRequest } from '@holo-js/realtime/server'",
747
+ "import { realtimeDefinitions } from './realtime-definitions'",
748
+ "import { holo } from './holo'",
749
+ "",
750
+ "export async function POST(request: Request) {",
751
+ " const app = await holo.getApp()",
752
+ " return await handleRealtimeMutationRequest(request, {",
753
+ " projectRoot: app.projectRoot,",
754
+ " definitions: realtimeDefinitions,",
755
+ " })",
756
+ "}",
757
+ ""
758
+ ].join("\n");
759
+ }
713
760
  function renderNextManagedRouteFiles(options = {}) {
714
761
  return [
715
762
  { path: ".holo-js/generated/next/holo.ts", contents: renderNextHoloHelper() },
@@ -717,7 +764,12 @@ function renderNextManagedRouteFiles(options = {}) {
717
764
  ...options.storageEnabled ? [{ path: ".holo-js/generated/next/storage-route.ts", contents: renderNextGeneratedStorageRoute() }] : [],
718
765
  ...options.broadcastEnabled ? [{ path: ".holo-js/generated/next/broadcast-config-route.ts", contents: renderNextGeneratedBroadcastConfigRoute() }] : [],
719
766
  ...options.broadcastAuthEnabled ? [{ path: ".holo-js/generated/next/broadcast-auth-route.ts", contents: renderNextGeneratedBroadcastAuthRoute() }] : [],
720
- ...options.realtimeEnabled ? [{ path: ".holo-js/generated/next/realtime-definitions.ts", contents: renderNextGeneratedRealtimeDefinitions() }] : []
767
+ ...options.realtimeEnabled ? [
768
+ { path: ".holo-js/generated/next/realtime-definitions.ts", contents: renderNextGeneratedRealtimeDefinitions() },
769
+ { path: ".holo-js/generated/next/realtime-server-modules.d.ts", contents: renderNextGeneratedRealtimeServerModules() },
770
+ { path: ".holo-js/generated/next/realtime-query-route.ts", contents: renderNextGeneratedRealtimeQueryRoute() },
771
+ { path: ".holo-js/generated/next/realtime-mutation-route.ts", contents: renderNextGeneratedRealtimeMutationRoute() }
772
+ ] : []
721
773
  ];
722
774
  }
723
775
  function renderNextManagedHostedAuthRouteFiles(features) {
@@ -1005,6 +1057,10 @@ var FRAMEWORK_RENDERERS = {
1005
1057
  ...authEnabled ? [{ path: "app/api/auth/user/route.ts", contents: renderNextCurrentAuthRoute() }] : [],
1006
1058
  ...storageEnabled ? [{ path: "app/storage/[[...path]]/route.ts", contents: renderNextStorageRoute() }] : [],
1007
1059
  ...broadcastEnabled ? [{ path: "app/broadcasting/config/route.ts", contents: renderNextBroadcastConfigRoute() }] : [],
1060
+ ...realtimeEnabled ? [
1061
+ { path: "app/holo/realtime/query/route.ts", contents: renderNextRealtimeQueryRoute() },
1062
+ { path: "app/holo/realtime/mutation/route.ts", contents: renderNextRealtimeMutationRoute() }
1063
+ ] : [],
1008
1064
  ...renderNextManagedRouteFiles({ authEnabled, broadcastEnabled, storageEnabled, realtimeEnabled })
1009
1065
  ];
1010
1066
  }
@@ -1463,6 +1519,8 @@ function renderManagedSvelteServerHooksModule(features) {
1463
1519
  "import { renderBroadcastClientConfigResponse } from '@holo-js/broadcast/client-config'"
1464
1520
  ] : [],
1465
1521
  ...features.storageEnabled ? ["import { createPublicStorageResponse } from '@holo-js/storage'"] : [],
1522
+ ...features.realtimeEnabled ? ["import { handleRealtimeMutationRequest, handleRealtimeQueryRequest } from '@holo-js/realtime/server'"] : [],
1523
+ ...features.realtimeImportPaths.map((importPath, index) => `import * as holoRealtimeModule${index} from ${JSON.stringify(importPath)}`),
1466
1524
  ...features.clerkEnabled ? ["import { completeClerkAuth, loginWithClerk, logoutWithClerk, registerWithClerk } from '@holo-js/auth-clerk'"] : [],
1467
1525
  ...features.workosEnabled ? ["import { completeWorkosAuth, loginWithWorkos, logoutWithWorkos, registerWithWorkos } from '@holo-js/auth-workos'"] : [],
1468
1526
  "import { holo } from './sveltekit/holo'",
@@ -1473,6 +1531,7 @@ function renderManagedSvelteServerHooksModule(features) {
1473
1531
  ...features.authEnabled ? ["handleHoloCurrentAuthRoute"] : [],
1474
1532
  ...features.storageEnabled ? ["handleHoloStorageRoute"] : [],
1475
1533
  ...features.broadcastEnabled ? ["handleHoloBroadcastConfigRoute", "handleHoloBroadcastAuthRoute"] : [],
1534
+ ...features.realtimeEnabled ? ["handleHoloRealtimeQueryRoute", "handleHoloRealtimeMutationRoute"] : [],
1476
1535
  ...features.clerkEnabled ? [
1477
1536
  "handleHoloClerkLoginRoute",
1478
1537
  "handleHoloClerkRegisterRoute",
@@ -1496,6 +1555,9 @@ function renderManagedSvelteServerHooksModule(features) {
1496
1555
  "",
1497
1556
  "type HoloApp = Awaited<ReturnType<typeof holo.getApp>>",
1498
1557
  "type HoloRouteHandler = (event: RequestEvent, app: HoloApp) => Promise<Response | undefined>",
1558
+ ...features.realtimeEnabled ? [
1559
+ `const realtimeDefinitions = [${features.realtimeImportPaths.map((_path, index) => `...Object.values(holoRealtimeModule${index})`).join(", ")}] as const`
1560
+ ] : [],
1499
1561
  "",
1500
1562
  "function isRoute(event: RequestEvent, method: string, paths: readonly string[]): boolean {",
1501
1563
  " return event.request.method.toUpperCase() === method && paths.includes(event.url.pathname)",
@@ -1602,6 +1664,30 @@ function renderManagedSvelteServerHooksModule(features) {
1602
1664
  "}",
1603
1665
  ""
1604
1666
  ] : [],
1667
+ ...features.realtimeEnabled ? [
1668
+ "async function handleHoloRealtimeQueryRoute(event: RequestEvent, app: HoloApp): Promise<Response | undefined> {",
1669
+ " if (!isRoute(event, 'POST', ['/holo/realtime/query'])) {",
1670
+ " return undefined",
1671
+ " }",
1672
+ "",
1673
+ " return await handleRealtimeQueryRequest(event.request, {",
1674
+ " projectRoot: app.projectRoot,",
1675
+ " definitions: realtimeDefinitions,",
1676
+ " })",
1677
+ "}",
1678
+ "",
1679
+ "async function handleHoloRealtimeMutationRoute(event: RequestEvent, app: HoloApp): Promise<Response | undefined> {",
1680
+ " if (!isRoute(event, 'POST', ['/holo/realtime/mutation'])) {",
1681
+ " return undefined",
1682
+ " }",
1683
+ "",
1684
+ " return await handleRealtimeMutationRequest(event.request, {",
1685
+ " projectRoot: app.projectRoot,",
1686
+ " definitions: realtimeDefinitions,",
1687
+ " })",
1688
+ "}",
1689
+ ""
1690
+ ] : [],
1605
1691
  ...features.clerkEnabled ? renderSvelteHostedAuthHookRoutes("clerk", "Clerk") : [],
1606
1692
  ...features.workosEnabled ? renderSvelteHostedAuthHookRoutes("workos", "Workos") : [],
1607
1693
  `const holoRouteHandlers: readonly HoloRouteHandler[] = [${routeHandlers.join(", ")}]`,
@@ -2002,10 +2088,20 @@ async function ensureNextManagedRoutes(projectRoot) {
2002
2088
  await writeFileIfChanged(resolve2(projectRoot, file.path), file.contents);
2003
2089
  }
2004
2090
  if (realtimeEnabled) {
2005
- await writeFileIfChanged(
2006
- resolve2(projectRoot, ".holo-js/generated/next/realtime-definitions.ts"),
2007
- await renderNextRealtimeDefinitions(projectRoot)
2008
- );
2091
+ await Promise.all([
2092
+ writeFileIfChanged(
2093
+ resolve2(projectRoot, ".holo-js/generated/next/realtime-definitions.ts"),
2094
+ await renderNextRealtimeDefinitions(projectRoot)
2095
+ ),
2096
+ writeFileIfChanged(
2097
+ resolve2(projectRoot, "app/holo/realtime/query/route.ts"),
2098
+ renderNextRealtimeQueryRoute()
2099
+ ),
2100
+ writeFileIfChanged(
2101
+ resolve2(projectRoot, "app/holo/realtime/mutation/route.ts"),
2102
+ renderNextRealtimeMutationRoute()
2103
+ )
2104
+ ]);
2009
2105
  }
2010
2106
  await removeLegacyManagedHoloHelper(resolve2(projectRoot, "server/holo.ts"), renderNextHoloHelper());
2011
2107
  }
@@ -2027,9 +2123,18 @@ async function readProjectDependencies(projectRoot) {
2027
2123
  }
2028
2124
  async function resolveSvelteManagedFeatures(projectRoot) {
2029
2125
  const dependencies = await readProjectDependencies(projectRoot);
2126
+ const realtimeFiles = await collectRealtimeDefinitionFiles(resolve2(projectRoot, "server/realtime"));
2127
+ const generatedRoot = resolve2(projectRoot, ".holo-js/generated");
2128
+ const realtimeImportPaths = realtimeFiles.map((filePath) => {
2129
+ const withoutExtension = filePath.slice(0, -extname(filePath).length);
2130
+ const importPath = relative2(generatedRoot, withoutExtension).split(sep).join("/");
2131
+ return importPath.startsWith(".") ? importPath : `./${importPath}`;
2132
+ });
2030
2133
  return {
2031
2134
  authEnabled: dependencies.has("@holo-js/auth"),
2032
2135
  broadcastEnabled: dependencies.has("@holo-js/broadcast"),
2136
+ realtimeEnabled: dependencies.has("@holo-js/realtime"),
2137
+ realtimeImportPaths,
2033
2138
  storageEnabled: dependencies.has("@holo-js/storage"),
2034
2139
  clerkEnabled: dependencies.has("@holo-js/auth-clerk"),
2035
2140
  workosEnabled: dependencies.has("@holo-js/auth-workos")
@@ -2870,7 +2975,11 @@ export {
2870
2975
  renderNextHoloHelper,
2871
2976
  renderNextRuntimeBootstrap,
2872
2977
  renderNextBroadcastConfigRoute,
2978
+ renderNextRealtimeQueryRoute,
2979
+ renderNextRealtimeMutationRoute,
2873
2980
  renderNextGeneratedRealtimeDefinitions,
2981
+ renderNextGeneratedRealtimeQueryRoute,
2982
+ renderNextGeneratedRealtimeMutationRoute,
2874
2983
  renderSvelteViteConfig,
2875
2984
  renderAuthProviderRouteFiles,
2876
2985
  renderAuthRouteFiles,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  loadGeneratedProjectRegistry,
3
3
  writeGeneratedProjectRegistry
4
- } from "./chunk-L3YATEQY.mjs";
4
+ } from "./chunk-ASD767Q7.mjs";
5
5
  import {
6
6
  assertUniqueCommandTokens,
7
7
  assertUniqueEntries,
@@ -32,7 +32,7 @@ import {
32
32
  resolveRegisteredPath,
33
33
  unregisterAuthorizationDefinitionNames,
34
34
  validateMigrationName
35
- } from "./chunk-AZ6NVJAP.mjs";
35
+ } from "./chunk-35ZABJEB.mjs";
36
36
  import {
37
37
  hasEventDefinitionMarker,
38
38
  hasListenerDefinitionMarker,
@@ -43,7 +43,7 @@ import {
43
43
  loadQueueDiscoveryModule,
44
44
  makeProjectRelativePath,
45
45
  pathExists
46
- } from "./chunk-PVVGQSUP.mjs";
46
+ } from "./chunk-ARDZVOST.mjs";
47
47
 
48
48
  // src/project/discovery.ts
49
49
  import { resolve } from "path";
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  fileExists
3
- } from "./chunk-FFTJKBQF.mjs";
3
+ } from "./chunk-AQRX4FQG.mjs";
4
4
  import {
5
5
  loadProjectConfig,
6
6
  resolveGeneratedSchemaPath
7
- } from "./chunk-4VYR2ARA.mjs";
7
+ } from "./chunk-TEAV2C2A.mjs";
8
8
  import {
9
9
  prepareProjectDiscovery
10
- } from "./chunk-7KZVFDSI.mjs";
10
+ } from "./chunk-C4WPPQPR.mjs";
11
11
  import {
12
12
  loadGeneratedProjectRegistry
13
- } from "./chunk-L3YATEQY.mjs";
13
+ } from "./chunk-ASD767Q7.mjs";
14
14
  import {
15
15
  CLI_RUNTIME_ROOT,
16
16
  GENERATED_SCHEMA_RUNTIME_PATH,
17
17
  bundleProjectModule
18
- } from "./chunk-PVVGQSUP.mjs";
18
+ } from "./chunk-ARDZVOST.mjs";
19
19
 
20
20
  // src/runtime.ts
21
21
  import { spawn } from "child_process";
@@ -353,7 +353,7 @@ function formatRuntimeFailureText(text) {
353
353
  return lines[0] ?? text.trim();
354
354
  }
355
355
  async function withRuntimeEnvironment(projectRoot, kind, options, callback) {
356
- if (kind === "seed") {
356
+ if (kind === "migrate" || kind === "fresh" || kind === "rollback" || kind === "seed") {
357
357
  const project = await loadProjectConfig(projectRoot, { required: true });
358
358
  await prepareProjectDiscovery(projectRoot, project.config);
359
359
  }
@@ -1,28 +1,28 @@
1
1
  import {
2
2
  hasProjectDependency
3
- } from "./chunk-CT23GSEC.mjs";
3
+ } from "./chunk-ADP4UQA5.mjs";
4
4
  import {
5
5
  syncManagedDriverDependencies
6
- } from "./chunk-FFTJKBQF.mjs";
6
+ } from "./chunk-AQRX4FQG.mjs";
7
7
  import {
8
8
  ensureGeneratedSchemaPlaceholder,
9
9
  ensureProjectConfig
10
- } from "./chunk-4VYR2ARA.mjs";
10
+ } from "./chunk-TEAV2C2A.mjs";
11
11
  import {
12
12
  prepareProjectDiscovery
13
- } from "./chunk-7KZVFDSI.mjs";
13
+ } from "./chunk-C4WPPQPR.mjs";
14
14
  import {
15
15
  renderFrameworkRunnerForDescriptor
16
- } from "./chunk-L3YATEQY.mjs";
16
+ } from "./chunk-ASD767Q7.mjs";
17
17
  import {
18
18
  loadProjectPluginFrameworkDescriptors
19
- } from "./chunk-3ICVWL2M.mjs";
19
+ } from "./chunk-7UXRXXPO.mjs";
20
20
  import {
21
21
  getFrameworkDescriptorByIdFrom,
22
22
  getFrameworkDescriptorsWith,
23
23
  readTextFile,
24
24
  writeTextFile
25
- } from "./chunk-PVVGQSUP.mjs";
25
+ } from "./chunk-ARDZVOST.mjs";
26
26
 
27
27
  // src/dev.ts
28
28
  import { spawnSync, spawn } from "child_process";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  loadGeneratedProjectRegistry
3
- } from "./chunk-L3YATEQY.mjs";
3
+ } from "./chunk-ASD767Q7.mjs";
4
4
  import {
5
5
  APP_CONFIG_FILE_NAMES,
6
6
  DATABASE_CONFIG_FILE_NAMES,
@@ -8,7 +8,7 @@ import {
8
8
  isModulePackage,
9
9
  pathExists,
10
10
  resolveFirstExistingPath
11
- } from "./chunk-PVVGQSUP.mjs";
11
+ } from "./chunk-ARDZVOST.mjs";
12
12
 
13
13
  // src/project/config.ts
14
14
  import { createHash } from "crypto";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  fileExists
3
- } from "./chunk-FFTJKBQF.mjs";
3
+ } from "./chunk-AQRX4FQG.mjs";
4
4
 
5
5
  // src/migrations.ts
6
6
  import { join } from "path";
@@ -7,11 +7,11 @@ import {
7
7
  serializeDatabaseConfig,
8
8
  serializeProjectConfig,
9
9
  writeProjectConfig
10
- } from "./chunk-4VYR2ARA.mjs";
11
- import "./chunk-L3YATEQY.mjs";
10
+ } from "./chunk-TEAV2C2A.mjs";
11
+ import "./chunk-ASD767Q7.mjs";
12
12
  import {
13
13
  readTextFile
14
- } from "./chunk-PVVGQSUP.mjs";
14
+ } from "./chunk-ARDZVOST.mjs";
15
15
  export {
16
16
  defaultProjectConfig,
17
17
  ensureGeneratedSchemaPlaceholder,
@@ -14,17 +14,17 @@ import {
14
14
  runProjectPrepare,
15
15
  runProjectStartServer,
16
16
  toPosixSlashes
17
- } from "./chunk-L6FF22IV.mjs";
17
+ } from "./chunk-R5BXEPH5.mjs";
18
18
  import {
19
19
  hasProjectDependency
20
- } from "./chunk-CT23GSEC.mjs";
21
- import "./chunk-FFTJKBQF.mjs";
22
- import "./chunk-4VYR2ARA.mjs";
23
- import "./chunk-7KZVFDSI.mjs";
24
- import "./chunk-L3YATEQY.mjs";
25
- import "./chunk-3ICVWL2M.mjs";
26
- import "./chunk-AZ6NVJAP.mjs";
27
- import "./chunk-PVVGQSUP.mjs";
20
+ } from "./chunk-ADP4UQA5.mjs";
21
+ import "./chunk-AQRX4FQG.mjs";
22
+ import "./chunk-TEAV2C2A.mjs";
23
+ import "./chunk-C4WPPQPR.mjs";
24
+ import "./chunk-ASD767Q7.mjs";
25
+ import "./chunk-7UXRXXPO.mjs";
26
+ import "./chunk-35ZABJEB.mjs";
27
+ import "./chunk-ARDZVOST.mjs";
28
28
  export {
29
29
  collectDirectoryTree,
30
30
  collectDiscoveryWatchRoots,
@@ -4,8 +4,8 @@ import {
4
4
  loadRegisteredModels,
5
5
  loadRegisteredSeeders,
6
6
  prepareProjectDiscovery
7
- } from "./chunk-7KZVFDSI.mjs";
8
- import "./chunk-L3YATEQY.mjs";
7
+ } from "./chunk-C4WPPQPR.mjs";
8
+ import "./chunk-ASD767Q7.mjs";
9
9
  import {
10
10
  collectImportedBindingsBySource,
11
11
  extractListensToItems,
@@ -13,8 +13,8 @@ import {
13
13
  resolveListenerEventNamesFromSource,
14
14
  resolveNamedExport,
15
15
  resolveNamedExportEntry
16
- } from "./chunk-AZ6NVJAP.mjs";
17
- import "./chunk-PVVGQSUP.mjs";
16
+ } from "./chunk-35ZABJEB.mjs";
17
+ import "./chunk-ARDZVOST.mjs";
18
18
  export {
19
19
  collectImportedBindingsBySource,
20
20
  discoverAppCommands,
@@ -3,27 +3,27 @@ import {
3
3
  } from "./chunk-YJWHIQ45.mjs";
4
4
  import {
5
5
  runProjectPrepare
6
- } from "./chunk-L6FF22IV.mjs";
7
- import "./chunk-CT23GSEC.mjs";
6
+ } from "./chunk-R5BXEPH5.mjs";
7
+ import "./chunk-ADP4UQA5.mjs";
8
8
  import {
9
9
  hasRegisteredCreateTableMigration,
10
10
  hasRegisteredMigrationSlug,
11
11
  nextMigrationTemplate
12
- } from "./chunk-2XXJ76YC.mjs";
12
+ } from "./chunk-YLW4NUNM.mjs";
13
13
  import {
14
14
  writeLine
15
15
  } from "./chunk-Y355VYRN.mjs";
16
16
  import {
17
17
  ensureAbsent,
18
18
  fileExists
19
- } from "./chunk-FFTJKBQF.mjs";
19
+ } from "./chunk-AQRX4FQG.mjs";
20
20
  import {
21
21
  ensureGeneratedSchemaPlaceholder,
22
22
  ensureProjectConfig
23
- } from "./chunk-4VYR2ARA.mjs";
23
+ } from "./chunk-TEAV2C2A.mjs";
24
24
  import {
25
25
  prepareProjectDiscovery
26
- } from "./chunk-7KZVFDSI.mjs";
26
+ } from "./chunk-C4WPPQPR.mjs";
27
27
  import {
28
28
  ensureSuffix,
29
29
  loadGeneratedProjectRegistry,
@@ -45,16 +45,16 @@ import {
45
45
  toKebabCase,
46
46
  toPascalCase,
47
47
  toSnakeCase
48
- } from "./chunk-L3YATEQY.mjs";
49
- import "./chunk-3ICVWL2M.mjs";
48
+ } from "./chunk-ASD767Q7.mjs";
49
+ import "./chunk-7UXRXXPO.mjs";
50
50
  import {
51
51
  collectFiles
52
- } from "./chunk-AZ6NVJAP.mjs";
52
+ } from "./chunk-35ZABJEB.mjs";
53
53
  import {
54
54
  makeProjectRelativePath,
55
55
  resolveDefaultArtifactPath,
56
56
  writeTextFile
57
- } from "./chunk-PVVGQSUP.mjs";
57
+ } from "./chunk-ARDZVOST.mjs";
58
58
 
59
59
  // src/generators.ts
60
60
  import { createHash } from "crypto";
package/dist/index.mjs CHANGED
@@ -21,7 +21,7 @@ import {
21
21
  pinProjectDependencyVersions,
22
22
  removeProjectDependency,
23
23
  upsertProjectDependency
24
- } from "./chunk-CT23GSEC.mjs";
24
+ } from "./chunk-ADP4UQA5.mjs";
25
25
  import {
26
26
  runWithSpinner,
27
27
  writeLine
@@ -29,16 +29,16 @@ import {
29
29
  import {
30
30
  ensureEmptyDirectory,
31
31
  fileExists
32
- } from "./chunk-FFTJKBQF.mjs";
33
- import "./chunk-4VYR2ARA.mjs";
34
- import "./chunk-7KZVFDSI.mjs";
35
- import "./chunk-L3YATEQY.mjs";
36
- import "./chunk-3ICVWL2M.mjs";
37
- import "./chunk-AZ6NVJAP.mjs";
32
+ } from "./chunk-AQRX4FQG.mjs";
33
+ import "./chunk-TEAV2C2A.mjs";
34
+ import "./chunk-C4WPPQPR.mjs";
35
+ import "./chunk-ASD767Q7.mjs";
36
+ import "./chunk-7UXRXXPO.mjs";
37
+ import "./chunk-35ZABJEB.mjs";
38
38
  import {
39
39
  APP_CONFIG_FILE_NAMES,
40
40
  SUPPORTED_AUTH_SOCIAL_PROVIDERS
41
- } from "./chunk-PVVGQSUP.mjs";
41
+ } from "./chunk-ARDZVOST.mjs";
42
42
 
43
43
  // src/types.ts
44
44
  function defineCommand(command) {
@@ -135,31 +135,31 @@ var projectRuntimeModulePromise;
135
135
  var projectScaffoldModulePromise;
136
136
  var agentSkillsModulePromise;
137
137
  function loadRuntimeModule() {
138
- runtimeModulePromise ??= import("./runtime-FVRB4O2M.mjs");
138
+ runtimeModulePromise ??= import("./runtime-EAV54JSZ.mjs");
139
139
  return runtimeModulePromise;
140
140
  }
141
141
  function loadSecurityModule() {
142
- securityModulePromise ??= import("./security-X4274RHX.mjs");
142
+ securityModulePromise ??= import("./security-A5LPMCIA.mjs");
143
143
  return securityModulePromise;
144
144
  }
145
145
  function loadProjectConfigModule() {
146
- projectConfigModulePromise ??= import("./config-XVPV6DJW.mjs");
146
+ projectConfigModulePromise ??= import("./config-WTB6JPBN.mjs");
147
147
  return projectConfigModulePromise;
148
148
  }
149
149
  function loadProjectDiscoveryModule() {
150
- projectDiscoveryModulePromise ??= import("./discovery-TMPUQQHI.mjs");
150
+ projectDiscoveryModulePromise ??= import("./discovery-BFUWENC6.mjs");
151
151
  return projectDiscoveryModulePromise;
152
152
  }
153
153
  function loadProjectPluginsModule() {
154
- projectPluginsModulePromise ??= import("./plugins-USHY6SPF.mjs");
154
+ projectPluginsModulePromise ??= import("./plugins-NEM2VBHH.mjs");
155
155
  return projectPluginsModulePromise;
156
156
  }
157
157
  function loadProjectRuntimeModule() {
158
- projectRuntimeModulePromise ??= import("./runtime-P5R7H3B4.mjs");
158
+ projectRuntimeModulePromise ??= import("./runtime-BHLRLGFL.mjs");
159
159
  return projectRuntimeModulePromise;
160
160
  }
161
161
  function loadProjectScaffoldModule() {
162
- projectScaffoldModulePromise ??= import("./scaffold-F3AZDNPG.mjs");
162
+ projectScaffoldModulePromise ??= import("./scaffold-JIVZOC6J.mjs");
163
163
  return projectScaffoldModulePromise;
164
164
  }
165
165
  function loadAgentSkillsModule() {
@@ -167,7 +167,7 @@ function loadAgentSkillsModule() {
167
167
  return agentSkillsModulePromise;
168
168
  }
169
169
  async function resolveRuntimeExecutor(runtimeExecutor) {
170
- runtimeModulePromise ??= import("./runtime-FVRB4O2M.mjs");
170
+ runtimeModulePromise ??= import("./runtime-EAV54JSZ.mjs");
171
171
  return runtimeExecutor ?? (await runtimeModulePromise).withRuntimeEnvironment;
172
172
  }
173
173
  async function resolveExecutor(executors, loader, key) {
@@ -175,17 +175,17 @@ async function resolveExecutor(executors, loader, key) {
175
175
  return existing ? existing : await loader();
176
176
  }
177
177
  async function resolveProjectExecutor(executors, key) {
178
- devModulePromise ??= import("./dev-NTQTEY5B.mjs");
178
+ devModulePromise ??= import("./dev-USYW3LBP.mjs");
179
179
  return resolveExecutor(executors, async () => (await devModulePromise)[key], key);
180
180
  }
181
181
  async function resolveQueueExecutor(executors, key) {
182
182
  return resolveExecutor(executors, async () => {
183
183
  if (key === "runQueueFailedTableCommand" || key === "runQueueTableCommand") {
184
- queueMigrationsModulePromise ??= import("./queue-migrations-6YUUOKMH.mjs");
184
+ queueMigrationsModulePromise ??= import("./queue-migrations-CZ5TQ4M2.mjs");
185
185
  const migrations = await queueMigrationsModulePromise;
186
186
  return key === "runQueueFailedTableCommand" ? migrations.runQueueFailedTableCommand : migrations.runQueueTableCommand;
187
187
  }
188
- queueModulePromise ??= import("./queue-6U7JU4T6.mjs");
188
+ queueModulePromise ??= import("./queue-BLFNHZQQ.mjs");
189
189
  const queue = await queueModulePromise;
190
190
  const resolved = {
191
191
  runQueueFailedCommand: queue.runQueueFailedCommand,
@@ -203,10 +203,10 @@ async function resolveQueueExecutor(executors, key) {
203
203
  async function resolveCacheExecutor(executors, key) {
204
204
  return resolveExecutor(executors, async () => {
205
205
  if (key === "runCacheTableCommand") {
206
- cacheMigrationsModulePromise ??= import("./cache-migrations-J34RE4WH.mjs");
206
+ cacheMigrationsModulePromise ??= import("./cache-migrations-UPKUSIPR.mjs");
207
207
  return (await cacheMigrationsModulePromise).runCacheTableCommand;
208
208
  }
209
- cacheModulePromise ??= import("./cache-KR4ACOYD.mjs");
209
+ cacheModulePromise ??= import("./cache-2RLSWZJ3.mjs");
210
210
  const cache = await cacheModulePromise;
211
211
  const resolved = {
212
212
  runCacheClearCommand: cache.runCacheClearCommand,
@@ -216,15 +216,15 @@ async function resolveCacheExecutor(executors, key) {
216
216
  }, key);
217
217
  }
218
218
  async function resolveMediaExecutor(executors, key) {
219
- mediaMigrationsModulePromise ??= import("./media-migrations-UJ6BMUSZ.mjs");
219
+ mediaMigrationsModulePromise ??= import("./media-migrations-ASB5L3F2.mjs");
220
220
  return resolveExecutor(executors, async () => (await mediaMigrationsModulePromise)[key], key);
221
221
  }
222
222
  async function resolveBroadcastExecutor(executors, key) {
223
- broadcastModulePromise ??= import("./broadcast-PJLFVZH4.mjs");
223
+ broadcastModulePromise ??= import("./broadcast-6HKLFYUH.mjs");
224
224
  return resolveExecutor(executors, async () => (await broadcastModulePromise)[key], key);
225
225
  }
226
226
  async function resolveGeneratorCommand(key) {
227
- generatorsModulePromise ??= import("./generators-3FDCCJDC.mjs");
227
+ generatorsModulePromise ??= import("./generators-BDJ3PDAR.mjs");
228
228
  return (await generatorsModulePromise)[key];
229
229
  }
230
230
 
@@ -2,27 +2,27 @@ import {
2
2
  hasRegisteredCreateTableMigration,
3
3
  hasRegisteredMigrationSlug,
4
4
  nextMigrationTemplate
5
- } from "./chunk-2XXJ76YC.mjs";
5
+ } from "./chunk-YLW4NUNM.mjs";
6
6
  import {
7
7
  writeLine
8
8
  } from "./chunk-Y355VYRN.mjs";
9
- import "./chunk-FFTJKBQF.mjs";
9
+ import "./chunk-AQRX4FQG.mjs";
10
10
  import {
11
11
  ensureProjectConfig
12
- } from "./chunk-4VYR2ARA.mjs";
12
+ } from "./chunk-TEAV2C2A.mjs";
13
13
  import {
14
14
  prepareProjectDiscovery
15
- } from "./chunk-7KZVFDSI.mjs";
15
+ } from "./chunk-C4WPPQPR.mjs";
16
16
  import {
17
17
  loadGeneratedProjectRegistry
18
- } from "./chunk-L3YATEQY.mjs";
19
- import "./chunk-3ICVWL2M.mjs";
20
- import "./chunk-AZ6NVJAP.mjs";
18
+ } from "./chunk-ASD767Q7.mjs";
19
+ import "./chunk-7UXRXXPO.mjs";
20
+ import "./chunk-35ZABJEB.mjs";
21
21
  import {
22
22
  makeProjectRelativePath,
23
23
  resolveDefaultArtifactPath,
24
24
  writeTextFile
25
- } from "./chunk-PVVGQSUP.mjs";
25
+ } from "./chunk-ARDZVOST.mjs";
26
26
 
27
27
  // src/media-migrations.ts
28
28
  import { readdir } from "fs/promises";
@@ -93,7 +93,7 @@ async function createMediaTableMigration(projectRoot, options = {}) {
93
93
  }
94
94
  async function runMediaTableCommand(io, projectRoot) {
95
95
  const migrationFilePath = await createMediaTableMigration(projectRoot);
96
- const { runProjectPrepare } = await import("./dev-NTQTEY5B.mjs");
96
+ const { runProjectPrepare } = await import("./dev-USYW3LBP.mjs");
97
97
  await runProjectPrepare(projectRoot);
98
98
  writeLine(io.stdout, `Created migration: ${makeProjectRelativePath(projectRoot, migrationFilePath)}`);
99
99
  }
@@ -8,9 +8,9 @@ import {
8
8
  readProjectPluginNames,
9
9
  resolveProjectPlugins,
10
10
  writeProjectPluginNames
11
- } from "./chunk-3ICVWL2M.mjs";
12
- import "./chunk-AZ6NVJAP.mjs";
13
- import "./chunk-PVVGQSUP.mjs";
11
+ } from "./chunk-7UXRXXPO.mjs";
12
+ import "./chunk-35ZABJEB.mjs";
13
+ import "./chunk-ARDZVOST.mjs";
14
14
  export {
15
15
  activateProjectPlugin,
16
16
  deactivateProjectPlugin,