@holo-js/cli 0.3.0 → 0.3.2
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.
- package/dist/bin/holo.mjs +38 -35
- package/dist/{broadcast-5VZM5SGQ.mjs → broadcast-GUQFANQ4.mjs} +9 -11
- package/dist/{cache-A42JSVYA.mjs → cache-PCM2BJJ2.mjs} +8 -9
- package/dist/{cache-migrations-4WKSEN2Q.mjs → cache-migrations-M6VC3JW3.mjs} +13 -15
- package/dist/{chunk-6BHJLCAO.mjs → chunk-BVULOZZ4.mjs} +52 -14
- package/dist/{chunk-TRYHX5S4.mjs → chunk-I6EXRSZM.mjs} +1 -1
- package/dist/{chunk-TH5YCOZB.mjs → chunk-JLZNWWFV.mjs} +28 -17
- package/dist/{chunk-R4ZYMEDU.mjs → chunk-NSG3OJDY.mjs} +116 -7
- package/dist/{chunk-YACY2572.mjs → chunk-OQEZ3MOE.mjs} +47 -47
- package/dist/{chunk-3RFRE7XG.mjs → chunk-SCVF2F3I.mjs} +2 -2
- package/dist/{chunk-EQUFFLRG.mjs → chunk-VQP6GHIQ.mjs} +6 -6
- package/dist/{chunk-QSVMXMTQ.mjs → chunk-VUJ4ITXR.mjs} +3 -3
- package/dist/{chunk-OLZEMIDQ.mjs → chunk-WMBFSYWK.mjs} +1 -1
- package/dist/{chunk-LHK5YUR4.mjs → chunk-XXQUCGBO.mjs} +1 -1
- package/dist/{chunk-I7QBCEV7.mjs → chunk-Y355VYRN.mjs} +5 -3
- package/dist/{chunk-VRGB6DIS.mjs → chunk-YJWHIQ45.mjs} +2 -0
- package/dist/{chunk-JVLZ3SOW.mjs → chunk-ZNJ4APGF.mjs} +2 -2
- package/dist/{config-BZHQK532.mjs → config-43W3SZUI.mjs} +3 -3
- package/dist/{dev-7KGRV56X.mjs → dev-SNXMGPLU.mjs} +9 -10
- package/dist/{discovery-HNH3BLDL.mjs → discovery-7TQXEUYW.mjs} +4 -4
- package/dist/{generators-3FVW4AEJ.mjs → generators-2KJ6OFWA.mjs} +14 -16
- package/dist/index.mjs +38 -35
- package/dist/{media-migrations-EG34NYAG.mjs → media-migrations-JMA7QMX7.mjs} +10 -12
- package/dist/{plugins-ZGLB6JO6.mjs → plugins-D6FWODCH.mjs} +3 -3
- package/dist/{queue-BEZDCZCY.mjs → queue-6QSL5VFZ.mjs} +11 -13
- package/dist/{queue-R54DUUYA.mjs → queue-SAPFMTB7.mjs} +13 -15
- package/dist/{queue-migrations-AM3AKT76.mjs → queue-migrations-GSREPIHP.mjs} +13 -15
- package/dist/{runtime-VR5BDPYQ.mjs → runtime-HYSSH54H.mjs} +1 -1
- package/dist/{runtime-4TJYZLQV.mjs → runtime-RX46GVZQ.mjs} +8 -10
- package/dist/runtime-worker.mjs +18 -1
- package/dist/{scaffold-ASEX5LEX.mjs → scaffold-HPNFLBF2.mjs} +7 -6
- package/dist/{security-KYTLP4DF.mjs → security-NR2WEPQ6.mjs} +8 -9
- package/package.json +19 -19
- package/dist/broadcast-AABT52BK.mjs +0 -206
- package/dist/cache-DUVBBOZU.mjs +0 -138
- package/dist/cache-migrations-PD2T5AV4.mjs +0 -175
- package/dist/chunk-HX6MOYBO.mjs +0 -2
- package/dist/chunk-KRADH7PK.mjs +0 -501
- package/dist/chunk-LALDNNPH.mjs +0 -428
- package/dist/chunk-M3IPUCTM.mjs +0 -25
- package/dist/chunk-OI54DOHK.mjs +0 -3170
- package/dist/dev-GQT37XJU.mjs +0 -46
- package/dist/generators-JWVNGUUE.mjs +0 -523
- package/dist/media-migrations-LGI7R7AR.mjs +0 -108
- package/dist/queue-migrations-U477YSFD.mjs +0 -173
- package/dist/runtime-MSRQD5W5.mjs +0 -59
- package/dist/scaffold-ZAD3XUSD.mjs +0 -143
- package/dist/security-4QLV7QCH.mjs +0 -73
package/dist/index.mjs
CHANGED
|
@@ -15,32 +15,30 @@ import {
|
|
|
15
15
|
resolveNewProjectInput,
|
|
16
16
|
resolveStringFlag,
|
|
17
17
|
splitCsv
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-YJWHIQ45.mjs";
|
|
19
19
|
import {
|
|
20
20
|
hasProjectDependency,
|
|
21
21
|
pinProjectDependencyVersions,
|
|
22
22
|
removeProjectDependency,
|
|
23
23
|
upsertProjectDependency
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import {
|
|
26
|
-
fileExists
|
|
27
|
-
} from "./chunk-M3IPUCTM.mjs";
|
|
24
|
+
} from "./chunk-XXQUCGBO.mjs";
|
|
28
25
|
import {
|
|
29
26
|
runWithSpinner,
|
|
30
|
-
supportsSpinner,
|
|
31
27
|
writeLine
|
|
32
|
-
} from "./chunk-
|
|
33
|
-
import
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
28
|
+
} from "./chunk-Y355VYRN.mjs";
|
|
29
|
+
import {
|
|
30
|
+
ensureEmptyDirectory,
|
|
31
|
+
fileExists
|
|
32
|
+
} from "./chunk-BVULOZZ4.mjs";
|
|
33
|
+
import "./chunk-ZNJ4APGF.mjs";
|
|
34
|
+
import "./chunk-VUJ4ITXR.mjs";
|
|
35
|
+
import "./chunk-NSG3OJDY.mjs";
|
|
36
|
+
import "./chunk-SCVF2F3I.mjs";
|
|
37
|
+
import "./chunk-I6EXRSZM.mjs";
|
|
40
38
|
import {
|
|
41
39
|
APP_CONFIG_FILE_NAMES,
|
|
42
40
|
SUPPORTED_AUTH_SOCIAL_PROVIDERS
|
|
43
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-OQEZ3MOE.mjs";
|
|
44
42
|
|
|
45
43
|
// src/types.ts
|
|
46
44
|
function defineCommand(command) {
|
|
@@ -137,31 +135,31 @@ var projectRuntimeModulePromise;
|
|
|
137
135
|
var projectScaffoldModulePromise;
|
|
138
136
|
var agentSkillsModulePromise;
|
|
139
137
|
function loadRuntimeModule() {
|
|
140
|
-
runtimeModulePromise ??= import("./runtime-
|
|
138
|
+
runtimeModulePromise ??= import("./runtime-RX46GVZQ.mjs");
|
|
141
139
|
return runtimeModulePromise;
|
|
142
140
|
}
|
|
143
141
|
function loadSecurityModule() {
|
|
144
|
-
securityModulePromise ??= import("./security-
|
|
142
|
+
securityModulePromise ??= import("./security-NR2WEPQ6.mjs");
|
|
145
143
|
return securityModulePromise;
|
|
146
144
|
}
|
|
147
145
|
function loadProjectConfigModule() {
|
|
148
|
-
projectConfigModulePromise ??= import("./config-
|
|
146
|
+
projectConfigModulePromise ??= import("./config-43W3SZUI.mjs");
|
|
149
147
|
return projectConfigModulePromise;
|
|
150
148
|
}
|
|
151
149
|
function loadProjectDiscoveryModule() {
|
|
152
|
-
projectDiscoveryModulePromise ??= import("./discovery-
|
|
150
|
+
projectDiscoveryModulePromise ??= import("./discovery-7TQXEUYW.mjs");
|
|
153
151
|
return projectDiscoveryModulePromise;
|
|
154
152
|
}
|
|
155
153
|
function loadProjectPluginsModule() {
|
|
156
|
-
projectPluginsModulePromise ??= import("./plugins-
|
|
154
|
+
projectPluginsModulePromise ??= import("./plugins-D6FWODCH.mjs");
|
|
157
155
|
return projectPluginsModulePromise;
|
|
158
156
|
}
|
|
159
157
|
function loadProjectRuntimeModule() {
|
|
160
|
-
projectRuntimeModulePromise ??= import("./runtime-
|
|
158
|
+
projectRuntimeModulePromise ??= import("./runtime-HYSSH54H.mjs");
|
|
161
159
|
return projectRuntimeModulePromise;
|
|
162
160
|
}
|
|
163
161
|
function loadProjectScaffoldModule() {
|
|
164
|
-
projectScaffoldModulePromise ??= import("./scaffold-
|
|
162
|
+
projectScaffoldModulePromise ??= import("./scaffold-HPNFLBF2.mjs");
|
|
165
163
|
return projectScaffoldModulePromise;
|
|
166
164
|
}
|
|
167
165
|
function loadAgentSkillsModule() {
|
|
@@ -169,7 +167,7 @@ function loadAgentSkillsModule() {
|
|
|
169
167
|
return agentSkillsModulePromise;
|
|
170
168
|
}
|
|
171
169
|
async function resolveRuntimeExecutor(runtimeExecutor) {
|
|
172
|
-
runtimeModulePromise ??= import("./runtime-
|
|
170
|
+
runtimeModulePromise ??= import("./runtime-RX46GVZQ.mjs");
|
|
173
171
|
return runtimeExecutor ?? (await runtimeModulePromise).withRuntimeEnvironment;
|
|
174
172
|
}
|
|
175
173
|
async function resolveExecutor(executors, loader, key) {
|
|
@@ -177,17 +175,17 @@ async function resolveExecutor(executors, loader, key) {
|
|
|
177
175
|
return existing ? existing : await loader();
|
|
178
176
|
}
|
|
179
177
|
async function resolveProjectExecutor(executors, key) {
|
|
180
|
-
devModulePromise ??= import("./dev-
|
|
178
|
+
devModulePromise ??= import("./dev-SNXMGPLU.mjs");
|
|
181
179
|
return resolveExecutor(executors, async () => (await devModulePromise)[key], key);
|
|
182
180
|
}
|
|
183
181
|
async function resolveQueueExecutor(executors, key) {
|
|
184
182
|
return resolveExecutor(executors, async () => {
|
|
185
183
|
if (key === "runQueueFailedTableCommand" || key === "runQueueTableCommand") {
|
|
186
|
-
queueMigrationsModulePromise ??= import("./queue-migrations-
|
|
184
|
+
queueMigrationsModulePromise ??= import("./queue-migrations-GSREPIHP.mjs");
|
|
187
185
|
const migrations = await queueMigrationsModulePromise;
|
|
188
186
|
return key === "runQueueFailedTableCommand" ? migrations.runQueueFailedTableCommand : migrations.runQueueTableCommand;
|
|
189
187
|
}
|
|
190
|
-
queueModulePromise ??= import("./queue-
|
|
188
|
+
queueModulePromise ??= import("./queue-6QSL5VFZ.mjs");
|
|
191
189
|
const queue = await queueModulePromise;
|
|
192
190
|
const resolved = {
|
|
193
191
|
runQueueFailedCommand: queue.runQueueFailedCommand,
|
|
@@ -205,10 +203,10 @@ async function resolveQueueExecutor(executors, key) {
|
|
|
205
203
|
async function resolveCacheExecutor(executors, key) {
|
|
206
204
|
return resolveExecutor(executors, async () => {
|
|
207
205
|
if (key === "runCacheTableCommand") {
|
|
208
|
-
cacheMigrationsModulePromise ??= import("./cache-migrations-
|
|
206
|
+
cacheMigrationsModulePromise ??= import("./cache-migrations-M6VC3JW3.mjs");
|
|
209
207
|
return (await cacheMigrationsModulePromise).runCacheTableCommand;
|
|
210
208
|
}
|
|
211
|
-
cacheModulePromise ??= import("./cache-
|
|
209
|
+
cacheModulePromise ??= import("./cache-PCM2BJJ2.mjs");
|
|
212
210
|
const cache = await cacheModulePromise;
|
|
213
211
|
const resolved = {
|
|
214
212
|
runCacheClearCommand: cache.runCacheClearCommand,
|
|
@@ -218,15 +216,15 @@ async function resolveCacheExecutor(executors, key) {
|
|
|
218
216
|
}, key);
|
|
219
217
|
}
|
|
220
218
|
async function resolveMediaExecutor(executors, key) {
|
|
221
|
-
mediaMigrationsModulePromise ??= import("./media-migrations-
|
|
219
|
+
mediaMigrationsModulePromise ??= import("./media-migrations-JMA7QMX7.mjs");
|
|
222
220
|
return resolveExecutor(executors, async () => (await mediaMigrationsModulePromise)[key], key);
|
|
223
221
|
}
|
|
224
222
|
async function resolveBroadcastExecutor(executors, key) {
|
|
225
|
-
broadcastModulePromise ??= import("./broadcast-
|
|
223
|
+
broadcastModulePromise ??= import("./broadcast-GUQFANQ4.mjs");
|
|
226
224
|
return resolveExecutor(executors, async () => (await broadcastModulePromise)[key], key);
|
|
227
225
|
}
|
|
228
226
|
async function resolveGeneratorCommand(key) {
|
|
229
|
-
generatorsModulePromise ??= import("./generators-
|
|
227
|
+
generatorsModulePromise ??= import("./generators-2KJ6OFWA.mjs");
|
|
230
228
|
return (await generatorsModulePromise)[key];
|
|
231
229
|
}
|
|
232
230
|
|
|
@@ -461,7 +459,12 @@ function createInternalCommands(context, runtimeExecutor, queueExecutors = {}, p
|
|
|
461
459
|
usage: "holo new <name> [--framework <nuxt|next|sveltekit>] [--database <sqlite|mysql|postgres>] [--package-manager <bun|npm|pnpm|yarn>] [--package <storage|events|queue|validation|forms|auth|authorization|notifications|mail|broadcast|realtime|security|cache>] [--storage-default-disk <local|public>]",
|
|
462
460
|
source: "internal",
|
|
463
461
|
async prepare(input) {
|
|
464
|
-
const resolved = await resolveNewProjectInput(
|
|
462
|
+
const resolved = await resolveNewProjectInput(
|
|
463
|
+
context,
|
|
464
|
+
input,
|
|
465
|
+
void 0,
|
|
466
|
+
(projectName) => ensureEmptyDirectory(resolve2(context.cwd, projectName), projectName)
|
|
467
|
+
);
|
|
465
468
|
return {
|
|
466
469
|
args: [resolved.projectName],
|
|
467
470
|
flags: {
|
|
@@ -500,11 +503,11 @@ function createInternalCommands(context, runtimeExecutor, queueExecutors = {}, p
|
|
|
500
503
|
writeLine(context.stdout, `Created Holo project: ${targetDir}`);
|
|
501
504
|
await runWithSpinner(
|
|
502
505
|
context,
|
|
503
|
-
|
|
506
|
+
`Installing dependencies with ${packageManager}...`,
|
|
504
507
|
() => runProjectDependencyInstallForProject(context, projectExecutors, targetDir, {
|
|
505
|
-
writeStatus:
|
|
508
|
+
writeStatus: false
|
|
506
509
|
}),
|
|
507
|
-
|
|
510
|
+
`Dependencies installed with ${packageManager}.`
|
|
508
511
|
);
|
|
509
512
|
writeLine(context.stdout);
|
|
510
513
|
writeLine(context.stdout, "Next steps");
|
|
@@ -2,29 +2,27 @@ import {
|
|
|
2
2
|
hasRegisteredCreateTableMigration,
|
|
3
3
|
hasRegisteredMigrationSlug,
|
|
4
4
|
nextMigrationTemplate
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-M3IPUCTM.mjs";
|
|
5
|
+
} from "./chunk-WMBFSYWK.mjs";
|
|
7
6
|
import {
|
|
8
7
|
writeLine
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-6BHJLCAO.mjs";
|
|
8
|
+
} from "./chunk-Y355VYRN.mjs";
|
|
9
|
+
import "./chunk-BVULOZZ4.mjs";
|
|
12
10
|
import {
|
|
13
11
|
ensureProjectConfig
|
|
14
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ZNJ4APGF.mjs";
|
|
15
13
|
import {
|
|
16
14
|
prepareProjectDiscovery
|
|
17
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-VUJ4ITXR.mjs";
|
|
18
16
|
import {
|
|
19
17
|
loadGeneratedProjectRegistry
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-NSG3OJDY.mjs";
|
|
19
|
+
import "./chunk-SCVF2F3I.mjs";
|
|
20
|
+
import "./chunk-I6EXRSZM.mjs";
|
|
23
21
|
import {
|
|
24
22
|
makeProjectRelativePath,
|
|
25
23
|
resolveDefaultArtifactPath,
|
|
26
24
|
writeTextFile
|
|
27
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-OQEZ3MOE.mjs";
|
|
28
26
|
|
|
29
27
|
// src/media-migrations.ts
|
|
30
28
|
import { readdir } from "fs/promises";
|
|
@@ -95,7 +93,7 @@ async function createMediaTableMigration(projectRoot, options = {}) {
|
|
|
95
93
|
}
|
|
96
94
|
async function runMediaTableCommand(io, projectRoot) {
|
|
97
95
|
const migrationFilePath = await createMediaTableMigration(projectRoot);
|
|
98
|
-
const { runProjectPrepare } = await import("./dev-
|
|
96
|
+
const { runProjectPrepare } = await import("./dev-SNXMGPLU.mjs");
|
|
99
97
|
await runProjectPrepare(projectRoot);
|
|
100
98
|
writeLine(io.stdout, `Created migration: ${makeProjectRelativePath(projectRoot, migrationFilePath)}`);
|
|
101
99
|
}
|
|
@@ -8,9 +8,9 @@ import {
|
|
|
8
8
|
readProjectPluginNames,
|
|
9
9
|
resolveProjectPlugins,
|
|
10
10
|
writeProjectPluginNames
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-SCVF2F3I.mjs";
|
|
12
|
+
import "./chunk-I6EXRSZM.mjs";
|
|
13
|
+
import "./chunk-OQEZ3MOE.mjs";
|
|
14
14
|
export {
|
|
15
15
|
activateProjectPlugin,
|
|
16
16
|
deactivateProjectPlugin,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
initializeProjectRuntime
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VQP6GHIQ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
loadProjectDatabaseDrivers
|
|
6
6
|
} from "./chunk-XBOVM6LO.mjs";
|
|
@@ -10,31 +10,29 @@ import {
|
|
|
10
10
|
normalizeWatchedFilePath,
|
|
11
11
|
runProjectPrepare,
|
|
12
12
|
toPosixSlashes
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-M3IPUCTM.mjs";
|
|
13
|
+
} from "./chunk-JLZNWWFV.mjs";
|
|
14
|
+
import "./chunk-XXQUCGBO.mjs";
|
|
16
15
|
import {
|
|
17
16
|
writeLine
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-6BHJLCAO.mjs";
|
|
17
|
+
} from "./chunk-Y355VYRN.mjs";
|
|
18
|
+
import "./chunk-BVULOZZ4.mjs";
|
|
21
19
|
import {
|
|
22
20
|
ensureProjectConfig,
|
|
23
21
|
loadProjectConfig
|
|
24
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-ZNJ4APGF.mjs";
|
|
25
23
|
import {
|
|
26
24
|
prepareProjectDiscovery
|
|
27
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-VUJ4ITXR.mjs";
|
|
28
26
|
import {
|
|
29
27
|
loadGeneratedProjectRegistry
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
28
|
+
} from "./chunk-NSG3OJDY.mjs";
|
|
29
|
+
import "./chunk-SCVF2F3I.mjs";
|
|
30
|
+
import "./chunk-I6EXRSZM.mjs";
|
|
33
31
|
import {
|
|
34
32
|
HOLO_RUNTIME_ROOT,
|
|
35
33
|
bundleProjectModule,
|
|
36
34
|
resolveProjectPackageImportSpecifier
|
|
37
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-OQEZ3MOE.mjs";
|
|
38
36
|
|
|
39
37
|
// src/queue.ts
|
|
40
38
|
import { spawn } from "child_process";
|
|
@@ -3,38 +3,36 @@ import {
|
|
|
3
3
|
} from "./chunk-XBOVM6LO.mjs";
|
|
4
4
|
import {
|
|
5
5
|
initializeProjectRuntime
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-VQP6GHIQ.mjs";
|
|
7
7
|
import {
|
|
8
8
|
isIgnorableWatchError,
|
|
9
9
|
isRecursiveWatchUnsupported,
|
|
10
10
|
normalizeWatchedFilePath,
|
|
11
11
|
runProjectPrepare,
|
|
12
12
|
toPosixSlashes
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-M3IPUCTM.mjs";
|
|
13
|
+
} from "./chunk-JLZNWWFV.mjs";
|
|
14
|
+
import "./chunk-XXQUCGBO.mjs";
|
|
16
15
|
import {
|
|
17
16
|
writeLine
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import {
|
|
21
|
-
prepareProjectDiscovery
|
|
22
|
-
} from "./chunk-QSVMXMTQ.mjs";
|
|
23
|
-
import "./chunk-OI54DOHK.mjs";
|
|
17
|
+
} from "./chunk-Y355VYRN.mjs";
|
|
18
|
+
import "./chunk-BVULOZZ4.mjs";
|
|
24
19
|
import {
|
|
25
20
|
ensureProjectConfig,
|
|
26
21
|
loadProjectConfig
|
|
27
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-ZNJ4APGF.mjs";
|
|
23
|
+
import {
|
|
24
|
+
prepareProjectDiscovery
|
|
25
|
+
} from "./chunk-VUJ4ITXR.mjs";
|
|
28
26
|
import {
|
|
29
27
|
loadGeneratedProjectRegistry
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
28
|
+
} from "./chunk-NSG3OJDY.mjs";
|
|
29
|
+
import "./chunk-SCVF2F3I.mjs";
|
|
30
|
+
import "./chunk-I6EXRSZM.mjs";
|
|
33
31
|
import {
|
|
34
32
|
HOLO_RUNTIME_ROOT,
|
|
35
33
|
bundleProjectModule,
|
|
36
34
|
resolveProjectPackageImportSpecifier
|
|
37
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-OQEZ3MOE.mjs";
|
|
38
36
|
|
|
39
37
|
// src/queue.ts
|
|
40
38
|
import { spawn } from "child_process";
|
|
@@ -1,35 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runProjectPrepare
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-JLZNWWFV.mjs";
|
|
4
|
+
import "./chunk-XXQUCGBO.mjs";
|
|
5
5
|
import {
|
|
6
6
|
getRegistryMigrationSlug,
|
|
7
7
|
hasRegisteredCreateTableMigration,
|
|
8
8
|
hasRegisteredMigrationSlug,
|
|
9
9
|
nextMigrationTemplate
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-M3IPUCTM.mjs";
|
|
10
|
+
} from "./chunk-WMBFSYWK.mjs";
|
|
12
11
|
import {
|
|
13
12
|
writeLine
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import {
|
|
17
|
-
prepareProjectDiscovery
|
|
18
|
-
} from "./chunk-QSVMXMTQ.mjs";
|
|
19
|
-
import "./chunk-OI54DOHK.mjs";
|
|
13
|
+
} from "./chunk-Y355VYRN.mjs";
|
|
14
|
+
import "./chunk-BVULOZZ4.mjs";
|
|
20
15
|
import {
|
|
21
16
|
ensureProjectConfig
|
|
22
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-ZNJ4APGF.mjs";
|
|
18
|
+
import {
|
|
19
|
+
prepareProjectDiscovery
|
|
20
|
+
} from "./chunk-VUJ4ITXR.mjs";
|
|
23
21
|
import {
|
|
24
22
|
loadGeneratedProjectRegistry
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-NSG3OJDY.mjs";
|
|
24
|
+
import "./chunk-SCVF2F3I.mjs";
|
|
25
|
+
import "./chunk-I6EXRSZM.mjs";
|
|
28
26
|
import {
|
|
29
27
|
makeProjectRelativePath,
|
|
30
28
|
resolveDefaultArtifactPath,
|
|
31
29
|
writeTextFile
|
|
32
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-OQEZ3MOE.mjs";
|
|
33
31
|
|
|
34
32
|
// src/queue-migrations.ts
|
|
35
33
|
import { resolve } from "path";
|
|
@@ -22,16 +22,14 @@ import {
|
|
|
22
22
|
resolveRuntimeWorkerPath,
|
|
23
23
|
runRuntimeInvocation,
|
|
24
24
|
withRuntimeEnvironment
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-TRYHX5S4.mjs";
|
|
34
|
-
import "./chunk-YACY2572.mjs";
|
|
25
|
+
} from "./chunk-VQP6GHIQ.mjs";
|
|
26
|
+
import "./chunk-BVULOZZ4.mjs";
|
|
27
|
+
import "./chunk-ZNJ4APGF.mjs";
|
|
28
|
+
import "./chunk-VUJ4ITXR.mjs";
|
|
29
|
+
import "./chunk-NSG3OJDY.mjs";
|
|
30
|
+
import "./chunk-SCVF2F3I.mjs";
|
|
31
|
+
import "./chunk-I6EXRSZM.mjs";
|
|
32
|
+
import "./chunk-OQEZ3MOE.mjs";
|
|
35
33
|
export {
|
|
36
34
|
RUNTIME_MIGRATION_NAME_PATTERN,
|
|
37
35
|
cacheProjectConfig,
|
package/dist/runtime-worker.mjs
CHANGED
|
@@ -8,6 +8,7 @@ import { dirname } from "path";
|
|
|
8
8
|
import {
|
|
9
9
|
configureDB,
|
|
10
10
|
createMigrationService,
|
|
11
|
+
createSchemaRegistry,
|
|
11
12
|
createSchemaService,
|
|
12
13
|
createSeederService,
|
|
13
14
|
registerGeneratedTables,
|
|
@@ -140,11 +141,24 @@ async function hydrateGeneratedSchemaFromRanMigrations(manager2, migrations) {
|
|
|
140
141
|
return;
|
|
141
142
|
}
|
|
142
143
|
const realConnection = manager2.connection();
|
|
144
|
+
const hydratedRegistry = createSchemaRegistry();
|
|
145
|
+
for (const table of realConnection.getSchemaRegistry().list()) {
|
|
146
|
+
hydratedRegistry.replace(table);
|
|
147
|
+
}
|
|
148
|
+
const replayRegistry = {
|
|
149
|
+
register: (table) => hydratedRegistry.replace(table),
|
|
150
|
+
has: () => false,
|
|
151
|
+
replace: (table) => hydratedRegistry.replace(table),
|
|
152
|
+
delete: (name) => hydratedRegistry.delete(name),
|
|
153
|
+
get: (name) => hydratedRegistry.get(name),
|
|
154
|
+
list: () => hydratedRegistry.list(),
|
|
155
|
+
clear: () => hydratedRegistry.clear()
|
|
156
|
+
};
|
|
143
157
|
const dryRunConnection = {
|
|
144
158
|
getDialect: () => realConnection.getDialect(),
|
|
145
159
|
getCapabilities: () => realConnection.getCapabilities(),
|
|
146
160
|
getSchemaName: () => realConnection.getSchemaName(),
|
|
147
|
-
getSchemaRegistry: () =>
|
|
161
|
+
getSchemaRegistry: () => replayRegistry,
|
|
148
162
|
executeCompiled: async () => void 0,
|
|
149
163
|
introspectCompiled: async () => ({ rows: [], rowCount: 0 }),
|
|
150
164
|
transaction: async (callback) => callback(dryRunConnection)
|
|
@@ -155,6 +169,9 @@ async function hydrateGeneratedSchemaFromRanMigrations(manager2, migrations) {
|
|
|
155
169
|
await migration.up({ db: dryRunConnection, schema });
|
|
156
170
|
}
|
|
157
171
|
}
|
|
172
|
+
for (const table of hydratedRegistry.list()) {
|
|
173
|
+
realConnection.getSchemaRegistry().replace(table);
|
|
174
|
+
}
|
|
158
175
|
}
|
|
159
176
|
async function loadRuntimeItems(entries, matcher, label) {
|
|
160
177
|
const items = [];
|
|
@@ -56,23 +56,24 @@ import {
|
|
|
56
56
|
upsertMediaPackageDependency,
|
|
57
57
|
upsertNotificationsPackageDependency,
|
|
58
58
|
upsertSecurityPackageDependency
|
|
59
|
-
} from "./chunk-
|
|
60
|
-
import "./chunk-
|
|
59
|
+
} from "./chunk-BVULOZZ4.mjs";
|
|
60
|
+
import "./chunk-ZNJ4APGF.mjs";
|
|
61
|
+
import "./chunk-VUJ4ITXR.mjs";
|
|
61
62
|
import {
|
|
62
63
|
renderAuthProviderRouteFiles,
|
|
63
64
|
renderFrameworkFiles,
|
|
64
65
|
renderFrameworkRunner,
|
|
65
66
|
renderFrameworkRunnerForDescriptor,
|
|
66
67
|
renderNextBroadcastConfigRoute
|
|
67
|
-
} from "./chunk-
|
|
68
|
-
import "./chunk-
|
|
69
|
-
import "./chunk-
|
|
68
|
+
} from "./chunk-NSG3OJDY.mjs";
|
|
69
|
+
import "./chunk-SCVF2F3I.mjs";
|
|
70
|
+
import "./chunk-I6EXRSZM.mjs";
|
|
70
71
|
import {
|
|
71
72
|
isSupportedCacheInstallerDriver,
|
|
72
73
|
isSupportedQueueInstallerDriver,
|
|
73
74
|
normalizeScaffoldOptionalPackages,
|
|
74
75
|
sanitizePackageName
|
|
75
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-OQEZ3MOE.mjs";
|
|
76
77
|
export {
|
|
77
78
|
authFeaturesRequireConfigUpdate,
|
|
78
79
|
detectAuthInstallFeaturesFromConfig,
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
writeLine
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-TRYHX5S4.mjs";
|
|
3
|
+
} from "./chunk-Y355VYRN.mjs";
|
|
4
|
+
import "./chunk-BVULOZZ4.mjs";
|
|
5
|
+
import "./chunk-ZNJ4APGF.mjs";
|
|
6
|
+
import "./chunk-VUJ4ITXR.mjs";
|
|
7
|
+
import "./chunk-NSG3OJDY.mjs";
|
|
8
|
+
import "./chunk-SCVF2F3I.mjs";
|
|
9
|
+
import "./chunk-I6EXRSZM.mjs";
|
|
11
10
|
import {
|
|
12
11
|
resolveProjectPackageImportSpecifier
|
|
13
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-OQEZ3MOE.mjs";
|
|
14
13
|
|
|
15
14
|
// src/security.ts
|
|
16
15
|
import { loadConfigDirectory } from "@holo-js/config";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@holo-js/cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "Holo-JS Framework - project creation, discovery, and operational CLI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -28,22 +28,22 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@clack/prompts": "^1.5.1",
|
|
31
|
-
"@holo-js/auth": "^0.3.
|
|
32
|
-
"@holo-js/cache-db": "^0.3.
|
|
33
|
-
"@holo-js/config": "^0.3.
|
|
34
|
-
"@holo-js/core": "^0.3.
|
|
35
|
-
"@holo-js/db": "^0.3.
|
|
36
|
-
"@holo-js/kernel": "^0.3.
|
|
37
|
-
"@holo-js/security": "^0.3.
|
|
38
|
-
"@holo-js/storage": "^0.3.
|
|
31
|
+
"@holo-js/auth": "^0.3.2",
|
|
32
|
+
"@holo-js/cache-db": "^0.3.2",
|
|
33
|
+
"@holo-js/config": "^0.3.2",
|
|
34
|
+
"@holo-js/core": "^0.3.2",
|
|
35
|
+
"@holo-js/db": "^0.3.2",
|
|
36
|
+
"@holo-js/kernel": "^0.3.2",
|
|
37
|
+
"@holo-js/security": "^0.3.2",
|
|
38
|
+
"@holo-js/storage": "^0.3.2",
|
|
39
39
|
"esbuild": "^0.27.4",
|
|
40
40
|
"inflection": "^3.0.2"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@holo-js/broadcast": "^0.3.
|
|
44
|
-
"@holo-js/mail": "^0.3.
|
|
45
|
-
"@holo-js/session": "^0.3.
|
|
46
|
-
"@holo-js/queue": "^0.3.
|
|
43
|
+
"@holo-js/broadcast": "^0.3.2",
|
|
44
|
+
"@holo-js/mail": "^0.3.2",
|
|
45
|
+
"@holo-js/session": "^0.3.2",
|
|
46
|
+
"@holo-js/queue": "^0.3.2"
|
|
47
47
|
},
|
|
48
48
|
"peerDependenciesMeta": {
|
|
49
49
|
"@holo-js/broadcast": {
|
|
@@ -60,12 +60,12 @@
|
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@holo-js/broadcast": "^0.3.
|
|
64
|
-
"@holo-js/events": "^0.3.
|
|
65
|
-
"@holo-js/mail": "^0.3.
|
|
66
|
-
"@holo-js/queue": "^0.3.
|
|
67
|
-
"@holo-js/queue-db": "^0.3.
|
|
68
|
-
"@holo-js/session": "^0.3.
|
|
63
|
+
"@holo-js/broadcast": "^0.3.2",
|
|
64
|
+
"@holo-js/events": "^0.3.2",
|
|
65
|
+
"@holo-js/mail": "^0.3.2",
|
|
66
|
+
"@holo-js/queue": "^0.3.2",
|
|
67
|
+
"@holo-js/queue-db": "^0.3.2",
|
|
68
|
+
"@holo-js/session": "^0.3.2",
|
|
69
69
|
"@types/node": "^22.10.2",
|
|
70
70
|
"tsup": "^8.3.5",
|
|
71
71
|
"typescript": "^5.7.2",
|