@holo-js/cli 0.1.1 → 0.1.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 (56) hide show
  1. package/dist/bin/holo.mjs +533 -4616
  2. package/dist/broadcast-YZS4OFCM.mjs +84 -0
  3. package/dist/broadcast-ZYFKUFM5.mjs +85 -0
  4. package/dist/cache-ODBZT6IP.mjs +67 -0
  5. package/dist/cache-V43YMG4K.mjs +66 -0
  6. package/dist/cache-migrations-KPOEH6GP.mjs +155 -0
  7. package/dist/cache-migrations-ZUOI2A7N.mjs +154 -0
  8. package/dist/chunk-3OTCSFDG.mjs +849 -0
  9. package/dist/chunk-66FHW725.mjs +465 -0
  10. package/dist/chunk-BWW5TDFI.mjs +4 -0
  11. package/dist/chunk-CUL4RJTG.mjs +22 -0
  12. package/dist/chunk-D4GG556Y.mjs +23 -0
  13. package/dist/chunk-D7O4SU6N.mjs +2 -0
  14. package/dist/chunk-ET7UXHHQ.mjs +166 -0
  15. package/dist/chunk-EUIVXVJL.mjs +25 -0
  16. package/dist/chunk-G5ADO27Q.mjs +463 -0
  17. package/dist/chunk-GSQ3HTRO.mjs +165 -0
  18. package/dist/chunk-H7TJ4FB3.mjs +848 -0
  19. package/dist/chunk-HE6FYNVN.mjs +3203 -0
  20. package/dist/chunk-ICJR7TS4.mjs +66 -0
  21. package/dist/chunk-ICKN56JY.mjs +342 -0
  22. package/dist/chunk-JX2ZH6XY.mjs +270 -0
  23. package/dist/chunk-M7J3YTHR.mjs +26 -0
  24. package/dist/chunk-Q5F6C2D4.mjs +65 -0
  25. package/dist/chunk-QYLSMF7V.mjs +539 -0
  26. package/dist/chunk-RB65DLR4.mjs +343 -0
  27. package/dist/chunk-S7P7EBM3.mjs +787 -0
  28. package/dist/chunk-SRWJU3A5.mjs +11 -0
  29. package/dist/chunk-T4OVZZEE.mjs +3204 -0
  30. package/dist/chunk-URK7C3VQ.mjs +538 -0
  31. package/dist/chunk-VT5IDQG6.mjs +788 -0
  32. package/dist/chunk-XUYKPU5Q.mjs +272 -0
  33. package/dist/chunk-ZXDU7RHU.mjs +9 -0
  34. package/dist/config-DMWBMMGD.mjs +26 -0
  35. package/dist/config-LS5USBRB.mjs +25 -0
  36. package/dist/dev-KGRIGLJY.mjs +42 -0
  37. package/dist/dev-LVHDCPVS.mjs +43 -0
  38. package/dist/discovery-GBLAUTXS.mjs +28 -0
  39. package/dist/discovery-R733D2PO.mjs +29 -0
  40. package/dist/generators-32R45P6Z.mjs +426 -0
  41. package/dist/generators-WSF23UKM.mjs +425 -0
  42. package/dist/index.d.ts +1 -0
  43. package/dist/index.mjs +536 -4618
  44. package/dist/queue-6N7HQMRL.mjs +625 -0
  45. package/dist/queue-QG5EXOG4.mjs +626 -0
  46. package/dist/queue-migrations-JWKU45Y3.mjs +163 -0
  47. package/dist/queue-migrations-O6QSSDPQ.mjs +162 -0
  48. package/dist/runtime-ANBO7VQM.mjs +33 -0
  49. package/dist/runtime-OOSJ5JBY.mjs +32 -0
  50. package/dist/runtime-RI4OWTIT.mjs +55 -0
  51. package/dist/runtime-ZRPK5DIT.mjs +56 -0
  52. package/dist/scaffold-IYWZKT3W.mjs +120 -0
  53. package/dist/scaffold-ULATB4CA.mjs +121 -0
  54. package/dist/security-AE6LGNC4.mjs +68 -0
  55. package/dist/security-OCOPEH2V.mjs +69 -0
  56. package/package.json +10 -9
@@ -0,0 +1,163 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ getRegistryMigrationSlug,
4
+ hasRegisteredCreateTableMigration,
5
+ hasRegisteredMigrationSlug,
6
+ nextMigrationTemplate
7
+ } from "./chunk-ICJR7TS4.mjs";
8
+ import {
9
+ writeLine
10
+ } from "./chunk-SRWJU3A5.mjs";
11
+ import "./chunk-M7J3YTHR.mjs";
12
+ import {
13
+ runProjectPrepare
14
+ } from "./chunk-RB65DLR4.mjs";
15
+ import "./chunk-D4GG556Y.mjs";
16
+ import "./chunk-BWW5TDFI.mjs";
17
+ import {
18
+ prepareProjectDiscovery
19
+ } from "./chunk-VT5IDQG6.mjs";
20
+ import "./chunk-T4OVZZEE.mjs";
21
+ import {
22
+ ensureProjectConfig
23
+ } from "./chunk-ET7UXHHQ.mjs";
24
+ import {
25
+ loadGeneratedProjectRegistry
26
+ } from "./chunk-3OTCSFDG.mjs";
27
+ import {
28
+ makeProjectRelativePath,
29
+ resolveDefaultArtifactPath,
30
+ writeTextFile
31
+ } from "./chunk-66FHW725.mjs";
32
+
33
+ // src/queue-migrations.ts
34
+ import { resolve } from "path";
35
+ import { loadConfigDirectory } from "@holo-js/config";
36
+ import { normalizeMigrationSlug } from "@holo-js/db";
37
+ var DEFAULT_DATABASE_QUEUE_TABLE = "jobs";
38
+ var DEFAULT_FAILED_JOBS_TABLE = "failed_jobs";
39
+ async function loadQueueConfig(projectRoot) {
40
+ return (await loadConfigDirectory(projectRoot)).queue;
41
+ }
42
+ function normalizeQueueMigrationName(tableName) {
43
+ return normalizeMigrationSlug(`create_${tableName.replaceAll(".", "_")}_table`);
44
+ }
45
+ function renderQueueTableMigration(tableName) {
46
+ return [
47
+ "import { defineMigration, type MigrationContext } from '@holo-js/db'",
48
+ "",
49
+ "export default defineMigration({",
50
+ " async up({ schema }: MigrationContext) {",
51
+ ` await schema.createTable('${tableName}', (table) => {`,
52
+ " table.string('id').primaryKey()",
53
+ " table.string('job')",
54
+ " table.string('connection')",
55
+ " table.string('queue')",
56
+ " table.text('payload')",
57
+ " table.integer('attempts').default(0)",
58
+ " table.integer('max_attempts').default(1)",
59
+ " table.bigInteger('available_at')",
60
+ " table.bigInteger('reserved_at').nullable()",
61
+ " table.string('reservation_id').nullable()",
62
+ " table.bigInteger('created_at')",
63
+ ` table.index(['queue', 'available_at'], '${tableName.replaceAll(".", "_")}_queue_available_at_index')`,
64
+ ` table.index(['queue', 'reserved_at'], '${tableName.replaceAll(".", "_")}_queue_reserved_at_index')`,
65
+ ` table.index(['reservation_id'], '${tableName.replaceAll(".", "_")}_reservation_id_index')`,
66
+ " })",
67
+ " },",
68
+ " async down({ schema }: MigrationContext) {",
69
+ ` await schema.dropTable('${tableName}')`,
70
+ " },",
71
+ "})",
72
+ ""
73
+ ].join("\n");
74
+ }
75
+ function renderFailedJobsTableMigration(tableName) {
76
+ return [
77
+ "import { defineMigration, type MigrationContext } from '@holo-js/db'",
78
+ "",
79
+ "export default defineMigration({",
80
+ " async up({ schema }: MigrationContext) {",
81
+ ` await schema.createTable('${tableName}', (table) => {`,
82
+ " table.string('id').primaryKey()",
83
+ " table.string('job_id')",
84
+ " table.string('job')",
85
+ " table.string('connection')",
86
+ " table.string('queue')",
87
+ " table.text('payload')",
88
+ " table.text('exception')",
89
+ " table.bigInteger('failed_at')",
90
+ ` table.index(['job_id'], '${tableName.replaceAll(".", "_")}_job_id_index')`,
91
+ ` table.index(['failed_at'], '${tableName.replaceAll(".", "_")}_failed_at_index')`,
92
+ " })",
93
+ " },",
94
+ " async down({ schema }: MigrationContext) {",
95
+ ` await schema.dropTable('${tableName}')`,
96
+ " },",
97
+ "})",
98
+ ""
99
+ ].join("\n");
100
+ }
101
+ function resolveDatabaseQueueTables(queueConfig) {
102
+ const configured = Object.values(queueConfig.connections).filter((connection) => connection.driver === "database").map((connection) => connection.table);
103
+ return Object.freeze(configured.length > 0 ? [...new Set(configured)] : [DEFAULT_DATABASE_QUEUE_TABLE]);
104
+ }
105
+ async function runQueueTableCommand(io, projectRoot) {
106
+ const project = await ensureProjectConfig(projectRoot);
107
+ const registry = await loadGeneratedProjectRegistry(projectRoot) ?? await prepareProjectDiscovery(projectRoot, project.config);
108
+ const queueConfig = await loadQueueConfig(projectRoot);
109
+ const migrationsDir = resolve(projectRoot, project.config.paths.migrations);
110
+ const createdFiles = [];
111
+ for (const tableName of resolveDatabaseQueueTables(queueConfig)) {
112
+ const migrationName = normalizeQueueMigrationName(tableName);
113
+ if (hasRegisteredMigrationSlug(registry, migrationName) || hasRegisteredCreateTableMigration(registry, tableName)) {
114
+ throw new Error(`A migration for table "${tableName}" already exists.`);
115
+ }
116
+ }
117
+ for (const tableName of resolveDatabaseQueueTables(queueConfig)) {
118
+ const migrationTemplate = await nextMigrationTemplate(normalizeQueueMigrationName(tableName), migrationsDir);
119
+ const migrationFilePath = resolveDefaultArtifactPath(projectRoot, project.config.paths.migrations, migrationTemplate.fileName);
120
+ await writeTextFile(migrationFilePath, renderQueueTableMigration(tableName));
121
+ createdFiles.push(migrationFilePath);
122
+ }
123
+ await runProjectPrepare(projectRoot);
124
+ for (const filePath of createdFiles) {
125
+ writeLine(io.stdout, `Created migration: ${makeProjectRelativePath(projectRoot, filePath)}`);
126
+ }
127
+ }
128
+ async function runQueueFailedTableCommand(io, projectRoot) {
129
+ const project = await ensureProjectConfig(projectRoot);
130
+ const registry = await loadGeneratedProjectRegistry(projectRoot) ?? await prepareProjectDiscovery(projectRoot, project.config);
131
+ const queueConfig = await loadQueueConfig(projectRoot);
132
+ const tableName = queueConfig.failed === false ? DEFAULT_FAILED_JOBS_TABLE : queueConfig.failed.table;
133
+ const migrationName = normalizeQueueMigrationName(tableName);
134
+ if (hasRegisteredMigrationSlug(registry, migrationName) || hasRegisteredCreateTableMigration(registry, tableName)) {
135
+ throw new Error(`A migration for table "${tableName}" already exists.`);
136
+ }
137
+ const migrationTemplate = await nextMigrationTemplate(
138
+ migrationName,
139
+ resolve(projectRoot, project.config.paths.migrations)
140
+ );
141
+ const migrationFilePath = resolveDefaultArtifactPath(projectRoot, project.config.paths.migrations, migrationTemplate.fileName);
142
+ await writeTextFile(migrationFilePath, renderFailedJobsTableMigration(tableName));
143
+ await runProjectPrepare(projectRoot);
144
+ writeLine(io.stdout, `Created migration: ${makeProjectRelativePath(projectRoot, migrationFilePath)}`);
145
+ }
146
+ var queueMigrationInternals = {
147
+ getRegistryMigrationSlug,
148
+ hasRegisteredMigrationSlug,
149
+ hasRegisteredCreateTableMigration,
150
+ nextMigrationTemplate
151
+ };
152
+ export {
153
+ DEFAULT_DATABASE_QUEUE_TABLE,
154
+ DEFAULT_FAILED_JOBS_TABLE,
155
+ loadQueueConfig,
156
+ normalizeQueueMigrationName,
157
+ queueMigrationInternals,
158
+ renderFailedJobsTableMigration,
159
+ renderQueueTableMigration,
160
+ resolveDatabaseQueueTables,
161
+ runQueueFailedTableCommand,
162
+ runQueueTableCommand
163
+ };
@@ -0,0 +1,162 @@
1
+ import {
2
+ getRegistryMigrationSlug,
3
+ hasRegisteredCreateTableMigration,
4
+ hasRegisteredMigrationSlug,
5
+ nextMigrationTemplate
6
+ } from "./chunk-Q5F6C2D4.mjs";
7
+ import {
8
+ writeLine
9
+ } from "./chunk-ZXDU7RHU.mjs";
10
+ import "./chunk-EUIVXVJL.mjs";
11
+ import {
12
+ runProjectPrepare
13
+ } from "./chunk-ICKN56JY.mjs";
14
+ import "./chunk-CUL4RJTG.mjs";
15
+ import "./chunk-D7O4SU6N.mjs";
16
+ import {
17
+ prepareProjectDiscovery
18
+ } from "./chunk-S7P7EBM3.mjs";
19
+ import "./chunk-HE6FYNVN.mjs";
20
+ import {
21
+ ensureProjectConfig
22
+ } from "./chunk-GSQ3HTRO.mjs";
23
+ import {
24
+ loadGeneratedProjectRegistry
25
+ } from "./chunk-H7TJ4FB3.mjs";
26
+ import {
27
+ makeProjectRelativePath,
28
+ resolveDefaultArtifactPath,
29
+ writeTextFile
30
+ } from "./chunk-G5ADO27Q.mjs";
31
+
32
+ // src/queue-migrations.ts
33
+ import { resolve } from "path";
34
+ import { loadConfigDirectory } from "@holo-js/config";
35
+ import { normalizeMigrationSlug } from "@holo-js/db";
36
+ var DEFAULT_DATABASE_QUEUE_TABLE = "jobs";
37
+ var DEFAULT_FAILED_JOBS_TABLE = "failed_jobs";
38
+ async function loadQueueConfig(projectRoot) {
39
+ return (await loadConfigDirectory(projectRoot)).queue;
40
+ }
41
+ function normalizeQueueMigrationName(tableName) {
42
+ return normalizeMigrationSlug(`create_${tableName.replaceAll(".", "_")}_table`);
43
+ }
44
+ function renderQueueTableMigration(tableName) {
45
+ return [
46
+ "import { defineMigration, type MigrationContext } from '@holo-js/db'",
47
+ "",
48
+ "export default defineMigration({",
49
+ " async up({ schema }: MigrationContext) {",
50
+ ` await schema.createTable('${tableName}', (table) => {`,
51
+ " table.string('id').primaryKey()",
52
+ " table.string('job')",
53
+ " table.string('connection')",
54
+ " table.string('queue')",
55
+ " table.text('payload')",
56
+ " table.integer('attempts').default(0)",
57
+ " table.integer('max_attempts').default(1)",
58
+ " table.bigInteger('available_at')",
59
+ " table.bigInteger('reserved_at').nullable()",
60
+ " table.string('reservation_id').nullable()",
61
+ " table.bigInteger('created_at')",
62
+ ` table.index(['queue', 'available_at'], '${tableName.replaceAll(".", "_")}_queue_available_at_index')`,
63
+ ` table.index(['queue', 'reserved_at'], '${tableName.replaceAll(".", "_")}_queue_reserved_at_index')`,
64
+ ` table.index(['reservation_id'], '${tableName.replaceAll(".", "_")}_reservation_id_index')`,
65
+ " })",
66
+ " },",
67
+ " async down({ schema }: MigrationContext) {",
68
+ ` await schema.dropTable('${tableName}')`,
69
+ " },",
70
+ "})",
71
+ ""
72
+ ].join("\n");
73
+ }
74
+ function renderFailedJobsTableMigration(tableName) {
75
+ return [
76
+ "import { defineMigration, type MigrationContext } from '@holo-js/db'",
77
+ "",
78
+ "export default defineMigration({",
79
+ " async up({ schema }: MigrationContext) {",
80
+ ` await schema.createTable('${tableName}', (table) => {`,
81
+ " table.string('id').primaryKey()",
82
+ " table.string('job_id')",
83
+ " table.string('job')",
84
+ " table.string('connection')",
85
+ " table.string('queue')",
86
+ " table.text('payload')",
87
+ " table.text('exception')",
88
+ " table.bigInteger('failed_at')",
89
+ ` table.index(['job_id'], '${tableName.replaceAll(".", "_")}_job_id_index')`,
90
+ ` table.index(['failed_at'], '${tableName.replaceAll(".", "_")}_failed_at_index')`,
91
+ " })",
92
+ " },",
93
+ " async down({ schema }: MigrationContext) {",
94
+ ` await schema.dropTable('${tableName}')`,
95
+ " },",
96
+ "})",
97
+ ""
98
+ ].join("\n");
99
+ }
100
+ function resolveDatabaseQueueTables(queueConfig) {
101
+ const configured = Object.values(queueConfig.connections).filter((connection) => connection.driver === "database").map((connection) => connection.table);
102
+ return Object.freeze(configured.length > 0 ? [...new Set(configured)] : [DEFAULT_DATABASE_QUEUE_TABLE]);
103
+ }
104
+ async function runQueueTableCommand(io, projectRoot) {
105
+ const project = await ensureProjectConfig(projectRoot);
106
+ const registry = await loadGeneratedProjectRegistry(projectRoot) ?? await prepareProjectDiscovery(projectRoot, project.config);
107
+ const queueConfig = await loadQueueConfig(projectRoot);
108
+ const migrationsDir = resolve(projectRoot, project.config.paths.migrations);
109
+ const createdFiles = [];
110
+ for (const tableName of resolveDatabaseQueueTables(queueConfig)) {
111
+ const migrationName = normalizeQueueMigrationName(tableName);
112
+ if (hasRegisteredMigrationSlug(registry, migrationName) || hasRegisteredCreateTableMigration(registry, tableName)) {
113
+ throw new Error(`A migration for table "${tableName}" already exists.`);
114
+ }
115
+ }
116
+ for (const tableName of resolveDatabaseQueueTables(queueConfig)) {
117
+ const migrationTemplate = await nextMigrationTemplate(normalizeQueueMigrationName(tableName), migrationsDir);
118
+ const migrationFilePath = resolveDefaultArtifactPath(projectRoot, project.config.paths.migrations, migrationTemplate.fileName);
119
+ await writeTextFile(migrationFilePath, renderQueueTableMigration(tableName));
120
+ createdFiles.push(migrationFilePath);
121
+ }
122
+ await runProjectPrepare(projectRoot);
123
+ for (const filePath of createdFiles) {
124
+ writeLine(io.stdout, `Created migration: ${makeProjectRelativePath(projectRoot, filePath)}`);
125
+ }
126
+ }
127
+ async function runQueueFailedTableCommand(io, projectRoot) {
128
+ const project = await ensureProjectConfig(projectRoot);
129
+ const registry = await loadGeneratedProjectRegistry(projectRoot) ?? await prepareProjectDiscovery(projectRoot, project.config);
130
+ const queueConfig = await loadQueueConfig(projectRoot);
131
+ const tableName = queueConfig.failed === false ? DEFAULT_FAILED_JOBS_TABLE : queueConfig.failed.table;
132
+ const migrationName = normalizeQueueMigrationName(tableName);
133
+ if (hasRegisteredMigrationSlug(registry, migrationName) || hasRegisteredCreateTableMigration(registry, tableName)) {
134
+ throw new Error(`A migration for table "${tableName}" already exists.`);
135
+ }
136
+ const migrationTemplate = await nextMigrationTemplate(
137
+ migrationName,
138
+ resolve(projectRoot, project.config.paths.migrations)
139
+ );
140
+ const migrationFilePath = resolveDefaultArtifactPath(projectRoot, project.config.paths.migrations, migrationTemplate.fileName);
141
+ await writeTextFile(migrationFilePath, renderFailedJobsTableMigration(tableName));
142
+ await runProjectPrepare(projectRoot);
143
+ writeLine(io.stdout, `Created migration: ${makeProjectRelativePath(projectRoot, migrationFilePath)}`);
144
+ }
145
+ var queueMigrationInternals = {
146
+ getRegistryMigrationSlug,
147
+ hasRegisteredMigrationSlug,
148
+ hasRegisteredCreateTableMigration,
149
+ nextMigrationTemplate
150
+ };
151
+ export {
152
+ DEFAULT_DATABASE_QUEUE_TABLE,
153
+ DEFAULT_FAILED_JOBS_TABLE,
154
+ loadQueueConfig,
155
+ normalizeQueueMigrationName,
156
+ queueMigrationInternals,
157
+ renderFailedJobsTableMigration,
158
+ renderQueueTableMigration,
159
+ resolveDatabaseQueueTables,
160
+ runQueueFailedTableCommand,
161
+ runQueueTableCommand
162
+ };
@@ -0,0 +1,33 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ bundleProjectModule,
4
+ findProjectRoot,
5
+ importProjectModule,
6
+ isModulePackage,
7
+ loadAuthorizationDiscoveryModule,
8
+ loadBroadcastDiscoveryModule,
9
+ loadEventsDiscoveryModule,
10
+ loadQueueDiscoveryModule,
11
+ readTextFile,
12
+ resetProjectModuleBundlerForTesting,
13
+ resolveFirstExistingPath,
14
+ resolveProjectPackageImportSpecifier,
15
+ setProjectModuleBundlerForTesting,
16
+ writeTextFile
17
+ } from "./chunk-66FHW725.mjs";
18
+ export {
19
+ bundleProjectModule,
20
+ findProjectRoot,
21
+ importProjectModule,
22
+ isModulePackage,
23
+ loadAuthorizationDiscoveryModule,
24
+ loadBroadcastDiscoveryModule,
25
+ loadEventsDiscoveryModule,
26
+ loadQueueDiscoveryModule,
27
+ readTextFile,
28
+ resetProjectModuleBundlerForTesting,
29
+ resolveFirstExistingPath,
30
+ resolveProjectPackageImportSpecifier,
31
+ setProjectModuleBundlerForTesting,
32
+ writeTextFile
33
+ };
@@ -0,0 +1,32 @@
1
+ import {
2
+ bundleProjectModule,
3
+ findProjectRoot,
4
+ importProjectModule,
5
+ isModulePackage,
6
+ loadAuthorizationDiscoveryModule,
7
+ loadBroadcastDiscoveryModule,
8
+ loadEventsDiscoveryModule,
9
+ loadQueueDiscoveryModule,
10
+ readTextFile,
11
+ resetProjectModuleBundlerForTesting,
12
+ resolveFirstExistingPath,
13
+ resolveProjectPackageImportSpecifier,
14
+ setProjectModuleBundlerForTesting,
15
+ writeTextFile
16
+ } from "./chunk-G5ADO27Q.mjs";
17
+ export {
18
+ bundleProjectModule,
19
+ findProjectRoot,
20
+ importProjectModule,
21
+ isModulePackage,
22
+ loadAuthorizationDiscoveryModule,
23
+ loadBroadcastDiscoveryModule,
24
+ loadEventsDiscoveryModule,
25
+ loadQueueDiscoveryModule,
26
+ readTextFile,
27
+ resetProjectModuleBundlerForTesting,
28
+ resolveFirstExistingPath,
29
+ resolveProjectPackageImportSpecifier,
30
+ setProjectModuleBundlerForTesting,
31
+ writeTextFile
32
+ };
@@ -0,0 +1,55 @@
1
+ import {
2
+ RUNTIME_MIGRATION_NAME_PATTERN,
3
+ cacheProjectConfig,
4
+ cleanupRuntimeDependencyLink,
5
+ compileFreshDropIdentifierPath,
6
+ createEnvRuntimeConfig,
7
+ createRuntimeInvocation,
8
+ dropAllTablesForFresh,
9
+ ensureRuntimeDependencyLink,
10
+ filterDefinedRuntimeConnectionInput,
11
+ getRuntimeEnvironment,
12
+ getRuntimeFailureMessage,
13
+ inferRuntimeMigrationName,
14
+ initializeProjectRuntime,
15
+ isDefined,
16
+ mergeRuntimeDatabaseConfig,
17
+ nodeRuntimeScript,
18
+ normalizeRuntimeConnectionInput,
19
+ normalizeRuntimeMigration,
20
+ parseBooleanEnv,
21
+ resolveConfigModuleUrl,
22
+ resolvePackageRootFromSpecifier,
23
+ withRuntimeEnvironment
24
+ } from "./chunk-URK7C3VQ.mjs";
25
+ import "./chunk-EUIVXVJL.mjs";
26
+ import "./chunk-D7O4SU6N.mjs";
27
+ import "./chunk-S7P7EBM3.mjs";
28
+ import "./chunk-HE6FYNVN.mjs";
29
+ import "./chunk-GSQ3HTRO.mjs";
30
+ import "./chunk-H7TJ4FB3.mjs";
31
+ import "./chunk-G5ADO27Q.mjs";
32
+ export {
33
+ RUNTIME_MIGRATION_NAME_PATTERN,
34
+ cacheProjectConfig,
35
+ cleanupRuntimeDependencyLink,
36
+ compileFreshDropIdentifierPath,
37
+ createEnvRuntimeConfig,
38
+ createRuntimeInvocation,
39
+ dropAllTablesForFresh,
40
+ ensureRuntimeDependencyLink,
41
+ filterDefinedRuntimeConnectionInput,
42
+ getRuntimeEnvironment,
43
+ getRuntimeFailureMessage,
44
+ inferRuntimeMigrationName,
45
+ initializeProjectRuntime,
46
+ isDefined,
47
+ mergeRuntimeDatabaseConfig,
48
+ nodeRuntimeScript,
49
+ normalizeRuntimeConnectionInput,
50
+ normalizeRuntimeMigration,
51
+ parseBooleanEnv,
52
+ resolveConfigModuleUrl,
53
+ resolvePackageRootFromSpecifier,
54
+ withRuntimeEnvironment
55
+ };
@@ -0,0 +1,56 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ RUNTIME_MIGRATION_NAME_PATTERN,
4
+ cacheProjectConfig,
5
+ cleanupRuntimeDependencyLink,
6
+ compileFreshDropIdentifierPath,
7
+ createEnvRuntimeConfig,
8
+ createRuntimeInvocation,
9
+ dropAllTablesForFresh,
10
+ ensureRuntimeDependencyLink,
11
+ filterDefinedRuntimeConnectionInput,
12
+ getRuntimeEnvironment,
13
+ getRuntimeFailureMessage,
14
+ inferRuntimeMigrationName,
15
+ initializeProjectRuntime,
16
+ isDefined,
17
+ mergeRuntimeDatabaseConfig,
18
+ nodeRuntimeScript,
19
+ normalizeRuntimeConnectionInput,
20
+ normalizeRuntimeMigration,
21
+ parseBooleanEnv,
22
+ resolveConfigModuleUrl,
23
+ resolvePackageRootFromSpecifier,
24
+ withRuntimeEnvironment
25
+ } from "./chunk-QYLSMF7V.mjs";
26
+ import "./chunk-M7J3YTHR.mjs";
27
+ import "./chunk-BWW5TDFI.mjs";
28
+ import "./chunk-VT5IDQG6.mjs";
29
+ import "./chunk-T4OVZZEE.mjs";
30
+ import "./chunk-ET7UXHHQ.mjs";
31
+ import "./chunk-3OTCSFDG.mjs";
32
+ import "./chunk-66FHW725.mjs";
33
+ export {
34
+ RUNTIME_MIGRATION_NAME_PATTERN,
35
+ cacheProjectConfig,
36
+ cleanupRuntimeDependencyLink,
37
+ compileFreshDropIdentifierPath,
38
+ createEnvRuntimeConfig,
39
+ createRuntimeInvocation,
40
+ dropAllTablesForFresh,
41
+ ensureRuntimeDependencyLink,
42
+ filterDefinedRuntimeConnectionInput,
43
+ getRuntimeEnvironment,
44
+ getRuntimeFailureMessage,
45
+ inferRuntimeMigrationName,
46
+ initializeProjectRuntime,
47
+ isDefined,
48
+ mergeRuntimeDatabaseConfig,
49
+ nodeRuntimeScript,
50
+ normalizeRuntimeConnectionInput,
51
+ normalizeRuntimeMigration,
52
+ parseBooleanEnv,
53
+ resolveConfigModuleUrl,
54
+ resolvePackageRootFromSpecifier,
55
+ withRuntimeEnvironment
56
+ };
@@ -0,0 +1,120 @@
1
+ import {
2
+ authFeaturesRequireConfigUpdate,
3
+ detectAuthInstallFeaturesFromConfig,
4
+ hasLoadedConfigFile,
5
+ inferConnectionDriver,
6
+ inferDatabaseDriverFromUrl,
7
+ injectBroadcastAuthEndpoint,
8
+ installAuthIntoProject,
9
+ installAuthorizationIntoProject,
10
+ installBroadcastIntoProject,
11
+ installCacheIntoProject,
12
+ installEventsIntoProject,
13
+ installMailIntoProject,
14
+ installNotificationsIntoProject,
15
+ installQueueIntoProject,
16
+ installSecurityIntoProject,
17
+ normalizeScaffoldEnvSegments,
18
+ renderAuthConfig,
19
+ renderAuthEnvFiles,
20
+ renderAuthMigration,
21
+ renderAuthUserModel,
22
+ renderCacheConfig,
23
+ renderCacheEnvFiles,
24
+ renderEnvFileContents,
25
+ renderFrameworkFiles,
26
+ renderFrameworkRunner,
27
+ renderMailConfig,
28
+ renderMediaConfig,
29
+ renderNotificationsConfig,
30
+ renderNotificationsMigration,
31
+ renderQueueConfig,
32
+ renderQueueEnvFiles,
33
+ renderRedisConfig,
34
+ renderScaffoldAppConfig,
35
+ renderScaffoldDatabaseConfig,
36
+ renderScaffoldEnvFiles,
37
+ renderScaffoldGitignore,
38
+ renderScaffoldPackageJson,
39
+ renderScaffoldTsconfig,
40
+ renderSecurityConfig,
41
+ renderSessionConfig,
42
+ renderStorageConfig,
43
+ resolveBroadcastConfigTargetPath,
44
+ resolveDefaultDatabaseUrl,
45
+ resolvePackageManagerVersion,
46
+ scaffoldProject,
47
+ syncManagedDriverDependencies,
48
+ upsertAuthPackageDependencies,
49
+ upsertCachePackageDependencies,
50
+ upsertEventsPackageDependency,
51
+ upsertMailPackageDependency,
52
+ upsertNotificationsPackageDependency,
53
+ upsertSecurityPackageDependency
54
+ } from "./chunk-HE6FYNVN.mjs";
55
+ import "./chunk-GSQ3HTRO.mjs";
56
+ import "./chunk-H7TJ4FB3.mjs";
57
+ import {
58
+ isSupportedCacheInstallerDriver,
59
+ isSupportedQueueInstallerDriver,
60
+ normalizeScaffoldOptionalPackages,
61
+ sanitizePackageName
62
+ } from "./chunk-G5ADO27Q.mjs";
63
+ export {
64
+ authFeaturesRequireConfigUpdate,
65
+ detectAuthInstallFeaturesFromConfig,
66
+ hasLoadedConfigFile,
67
+ inferConnectionDriver,
68
+ inferDatabaseDriverFromUrl,
69
+ injectBroadcastAuthEndpoint,
70
+ installAuthIntoProject,
71
+ installAuthorizationIntoProject,
72
+ installBroadcastIntoProject,
73
+ installCacheIntoProject,
74
+ installEventsIntoProject,
75
+ installMailIntoProject,
76
+ installNotificationsIntoProject,
77
+ installQueueIntoProject,
78
+ installSecurityIntoProject,
79
+ isSupportedCacheInstallerDriver,
80
+ isSupportedQueueInstallerDriver,
81
+ normalizeScaffoldEnvSegments,
82
+ normalizeScaffoldOptionalPackages,
83
+ renderAuthConfig,
84
+ renderAuthEnvFiles,
85
+ renderAuthMigration,
86
+ renderAuthUserModel,
87
+ renderCacheConfig,
88
+ renderCacheEnvFiles,
89
+ renderEnvFileContents,
90
+ renderFrameworkFiles,
91
+ renderFrameworkRunner,
92
+ renderMailConfig,
93
+ renderMediaConfig,
94
+ renderNotificationsConfig,
95
+ renderNotificationsMigration,
96
+ renderQueueConfig,
97
+ renderQueueEnvFiles,
98
+ renderRedisConfig,
99
+ renderScaffoldAppConfig,
100
+ renderScaffoldDatabaseConfig,
101
+ renderScaffoldEnvFiles,
102
+ renderScaffoldGitignore,
103
+ renderScaffoldPackageJson,
104
+ renderScaffoldTsconfig,
105
+ renderSecurityConfig,
106
+ renderSessionConfig,
107
+ renderStorageConfig,
108
+ resolveBroadcastConfigTargetPath,
109
+ resolveDefaultDatabaseUrl,
110
+ resolvePackageManagerVersion,
111
+ sanitizePackageName,
112
+ scaffoldProject,
113
+ syncManagedDriverDependencies,
114
+ upsertAuthPackageDependencies,
115
+ upsertCachePackageDependencies,
116
+ upsertEventsPackageDependency,
117
+ upsertMailPackageDependency,
118
+ upsertNotificationsPackageDependency,
119
+ upsertSecurityPackageDependency
120
+ };