@holo-js/cli 0.2.5 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/dist/{agent-skills-MSEMQUXT.mjs → agent-skills-CHAXS2YN.mjs} +13 -6
  2. package/dist/bin/holo.mjs +436 -109
  3. package/dist/{broadcast-5MJ3GJK7.mjs → broadcast-5VZM5SGQ.mjs} +13 -10
  4. package/dist/{broadcast-MRJGFCFH.mjs → broadcast-AABT52BK.mjs} +13 -10
  5. package/dist/cache-A42JSVYA.mjs +138 -0
  6. package/dist/cache-DUVBBOZU.mjs +138 -0
  7. package/dist/{cache-migrations-CPYQC7T6.mjs → cache-migrations-4WKSEN2Q.mjs} +12 -10
  8. package/dist/{cache-migrations-APDFSFEX.mjs → cache-migrations-PD2T5AV4.mjs} +14 -12
  9. package/dist/chunk-3RFRE7XG.mjs +491 -0
  10. package/dist/{chunk-PT72AMV7.mjs → chunk-6BHJLCAO.mjs} +256 -392
  11. package/dist/{chunk-KS5TWO75.mjs → chunk-EQUFFLRG.mjs} +7 -7
  12. package/dist/chunk-HX6MOYBO.mjs +2 -0
  13. package/dist/{chunk-YEFJBN56.mjs → chunk-JVLZ3SOW.mjs} +11 -8
  14. package/dist/{chunk-UPXQONEH.mjs → chunk-KRADH7PK.mjs} +55 -51
  15. package/dist/chunk-LALDNNPH.mjs +428 -0
  16. package/dist/chunk-LHK5YUR4.mjs +156 -0
  17. package/dist/{chunk-LBJAJLKU.mjs → chunk-M3IPUCTM.mjs} +1 -1
  18. package/dist/{chunk-TWITVSFZ.mjs → chunk-OI54DOHK.mjs} +256 -392
  19. package/dist/{chunk-LXGQCG56.mjs → chunk-OLZEMIDQ.mjs} +1 -1
  20. package/dist/{chunk-VP2E62DF.mjs → chunk-QSVMXMTQ.mjs} +49 -349
  21. package/dist/{chunk-J76GH2DR.mjs → chunk-R4ZYMEDU.mjs} +129 -86
  22. package/dist/{chunk-XDRCZ3Z5.mjs → chunk-TH5YCOZB.mjs} +57 -53
  23. package/dist/chunk-TRYHX5S4.mjs +360 -0
  24. package/dist/chunk-XBOVM6LO.mjs +41 -0
  25. package/dist/{chunk-ILU426CF.mjs → chunk-YACY2572.mjs} +482 -2
  26. package/dist/{config-MD27U4FM.mjs → config-BZHQK532.mjs} +3 -3
  27. package/dist/{dev-CT4DRTLN.mjs → dev-7KGRV56X.mjs} +10 -8
  28. package/dist/{dev-QDLR6C7K.mjs → dev-GQT37XJU.mjs} +10 -8
  29. package/dist/{discovery-GWTBF5RZ.mjs → discovery-HNH3BLDL.mjs} +8 -6
  30. package/dist/{generators-PUN5TFP5.mjs → generators-3FVW4AEJ.mjs} +18 -15
  31. package/dist/{generators-WQHI7DBW.mjs → generators-JWVNGUUE.mjs} +14 -11
  32. package/dist/index.d.ts +1 -1
  33. package/dist/index.mjs +434 -107
  34. package/dist/{media-migrations-D3CDNMPT.mjs → media-migrations-EG34NYAG.mjs} +13 -11
  35. package/dist/{media-migrations-IWCSCKSA.mjs → media-migrations-LGI7R7AR.mjs} +11 -9
  36. package/dist/plugins-ZGLB6JO6.mjs +24 -0
  37. package/dist/{queue-O3OSLGOV.mjs → queue-BEZDCZCY.mjs} +54 -16
  38. package/dist/{queue-GRB2IH5M.mjs → queue-R54DUUYA.mjs} +54 -16
  39. package/dist/{queue-migrations-7T42S4FX.mjs → queue-migrations-AM3AKT76.mjs} +16 -11
  40. package/dist/{queue-migrations-HFZB64OG.mjs → queue-migrations-U477YSFD.mjs} +18 -13
  41. package/dist/{runtime-TTRP2DGL.mjs → runtime-4TJYZLQV.mjs} +10 -8
  42. package/dist/{runtime-M3G5OKQV.mjs → runtime-MSRQD5W5.mjs} +10 -8
  43. package/dist/{runtime-GSXF4NB3.mjs → runtime-VR5BDPYQ.mjs} +1 -1
  44. package/dist/runtime-worker.mjs +7 -1
  45. package/dist/{scaffold-5BOVJYF3.mjs → scaffold-ASEX5LEX.mjs} +8 -4
  46. package/dist/{scaffold-NY3MWUZF.mjs → scaffold-ZAD3XUSD.mjs} +8 -4
  47. package/dist/{security-ST6ED7EK.mjs → security-4QLV7QCH.mjs} +8 -6
  48. package/dist/{security-H7AGDFBX.mjs → security-KYTLP4DF.mjs} +8 -6
  49. package/package.json +35 -8
  50. package/dist/cache-KVRYC7FB.mjs +0 -66
  51. package/dist/cache-WWE4Q4YE.mjs +0 -66
  52. package/dist/chunk-D7O4SU6N.mjs +0 -2
  53. package/dist/chunk-FGQ2I2YH.mjs +0 -22
@@ -1,14 +1,16 @@
1
1
  import {
2
2
  writeLine
3
3
  } from "./chunk-I7QBCEV7.mjs";
4
- import "./chunk-D7O4SU6N.mjs";
5
- import "./chunk-VP2E62DF.mjs";
6
- import "./chunk-TWITVSFZ.mjs";
7
- import "./chunk-YEFJBN56.mjs";
8
- import "./chunk-J76GH2DR.mjs";
4
+ import "./chunk-HX6MOYBO.mjs";
5
+ import "./chunk-QSVMXMTQ.mjs";
6
+ import "./chunk-OI54DOHK.mjs";
7
+ import "./chunk-JVLZ3SOW.mjs";
8
+ import "./chunk-R4ZYMEDU.mjs";
9
+ import "./chunk-3RFRE7XG.mjs";
10
+ import "./chunk-TRYHX5S4.mjs";
9
11
  import {
10
12
  resolveProjectPackageImportSpecifier
11
- } from "./chunk-ILU426CF.mjs";
13
+ } from "./chunk-YACY2572.mjs";
12
14
 
13
15
  // src/security.ts
14
16
  import { loadConfigDirectory } from "@holo-js/config";
@@ -1,14 +1,16 @@
1
1
  import {
2
2
  writeLine
3
3
  } from "./chunk-I7QBCEV7.mjs";
4
- import "./chunk-D7O4SU6N.mjs";
5
- import "./chunk-VP2E62DF.mjs";
6
- import "./chunk-PT72AMV7.mjs";
7
- import "./chunk-YEFJBN56.mjs";
8
- import "./chunk-J76GH2DR.mjs";
4
+ import "./chunk-HX6MOYBO.mjs";
5
+ import "./chunk-6BHJLCAO.mjs";
6
+ import "./chunk-JVLZ3SOW.mjs";
7
+ import "./chunk-QSVMXMTQ.mjs";
8
+ import "./chunk-R4ZYMEDU.mjs";
9
+ import "./chunk-3RFRE7XG.mjs";
10
+ import "./chunk-TRYHX5S4.mjs";
9
11
  import {
10
12
  resolveProjectPackageImportSpecifier
11
- } from "./chunk-ILU426CF.mjs";
13
+ } from "./chunk-YACY2572.mjs";
12
14
 
13
15
  // src/security.ts
14
16
  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.2.5",
3
+ "version": "0.3.0",
4
4
  "description": "Holo-JS Framework - project creation, discovery, and operational CLI",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -28,17 +28,44 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "@clack/prompts": "^1.5.1",
31
- "@holo-js/cache-db": "^0.2.5",
32
- "@holo-js/config": "^0.2.5",
33
- "@holo-js/core": "^0.2.5",
34
- "@holo-js/db": "^0.2.5",
31
+ "@holo-js/auth": "^0.3.0",
32
+ "@holo-js/cache-db": "^0.3.0",
33
+ "@holo-js/config": "^0.3.0",
34
+ "@holo-js/core": "^0.3.0",
35
+ "@holo-js/db": "^0.3.0",
36
+ "@holo-js/kernel": "^0.3.0",
37
+ "@holo-js/security": "^0.3.0",
38
+ "@holo-js/storage": "^0.3.0",
35
39
  "esbuild": "^0.27.4",
36
40
  "inflection": "^3.0.2"
37
41
  },
42
+ "peerDependencies": {
43
+ "@holo-js/broadcast": "^0.3.0",
44
+ "@holo-js/mail": "^0.3.0",
45
+ "@holo-js/session": "^0.3.0",
46
+ "@holo-js/queue": "^0.3.0"
47
+ },
48
+ "peerDependenciesMeta": {
49
+ "@holo-js/broadcast": {
50
+ "optional": true
51
+ },
52
+ "@holo-js/mail": {
53
+ "optional": true
54
+ },
55
+ "@holo-js/queue": {
56
+ "optional": true
57
+ },
58
+ "@holo-js/session": {
59
+ "optional": true
60
+ }
61
+ },
38
62
  "devDependencies": {
39
- "@holo-js/events": "^0.2.5",
40
- "@holo-js/queue": "^0.2.5",
41
- "@holo-js/queue-db": "^0.2.5",
63
+ "@holo-js/broadcast": "^0.3.0",
64
+ "@holo-js/events": "^0.3.0",
65
+ "@holo-js/mail": "^0.3.0",
66
+ "@holo-js/queue": "^0.3.0",
67
+ "@holo-js/queue-db": "^0.3.0",
68
+ "@holo-js/session": "^0.3.0",
42
69
  "@types/node": "^22.10.2",
43
70
  "tsup": "^8.3.5",
44
71
  "typescript": "^5.7.2",
@@ -1,66 +0,0 @@
1
- import {
2
- writeLine
3
- } from "./chunk-I7QBCEV7.mjs";
4
- import "./chunk-D7O4SU6N.mjs";
5
- import "./chunk-VP2E62DF.mjs";
6
- import "./chunk-TWITVSFZ.mjs";
7
- import "./chunk-YEFJBN56.mjs";
8
- import "./chunk-J76GH2DR.mjs";
9
- import {
10
- resolveProjectPackageImportSpecifier
11
- } from "./chunk-ILU426CF.mjs";
12
-
13
- // src/cache.ts
14
- import { loadConfigDirectory } from "@holo-js/config";
15
- function resolveCacheFacade(cacheModule) {
16
- const candidate = cacheModule.default;
17
- if (candidate) {
18
- return candidate;
19
- }
20
- return cacheModule;
21
- }
22
- async function loadCacheCliModule(projectRoot) {
23
- return await import(resolveProjectPackageImportSpecifier(projectRoot, "@holo-js/cache"));
24
- }
25
- async function initializeCacheMaintenanceEnvironment(projectRoot) {
26
- const loadedConfig = await loadConfigDirectory(projectRoot);
27
- const cacheModule = await loadCacheCliModule(projectRoot);
28
- const cache = resolveCacheFacade(cacheModule);
29
- cache.configureCacheRuntime({
30
- config: loadedConfig.cache,
31
- databaseConfig: loadedConfig.database,
32
- redisConfig: loadedConfig.redis
33
- });
34
- return {
35
- cache,
36
- async cleanup() {
37
- cache.resetCacheRuntime();
38
- }
39
- };
40
- }
41
- async function runCacheClearCommand(io, projectRoot, driverName, dependencies = {}) {
42
- const environment = await (dependencies.initializeCache ?? initializeCacheMaintenanceEnvironment)(projectRoot);
43
- try {
44
- const repository = driverName?.trim() ? environment.cache.driver(driverName) : environment.cache;
45
- await (dependencies.flush ?? (async (target) => await target.flush()))(repository);
46
- writeLine(io.stdout, driverName?.trim() ? `[cache] Cleared cache store "${driverName}".` : "[cache] Cleared the default cache store.");
47
- } finally {
48
- await environment.cleanup();
49
- }
50
- }
51
- async function runCacheForgetCommand(io, projectRoot, key, driverName, dependencies = {}) {
52
- const environment = await (dependencies.initializeCache ?? initializeCacheMaintenanceEnvironment)(projectRoot);
53
- try {
54
- const repository = driverName?.trim() ? environment.cache.driver(driverName) : environment.cache;
55
- const forgotten = await (dependencies.forget ?? (async (target, targetKey) => await target.forget(targetKey)))(repository, key);
56
- writeLine(io.stdout, forgotten ? `[cache] Forgot key "${key}".` : `[cache] Key "${key}" was not present.`);
57
- } finally {
58
- await environment.cleanup();
59
- }
60
- }
61
- export {
62
- initializeCacheMaintenanceEnvironment,
63
- loadCacheCliModule,
64
- runCacheClearCommand,
65
- runCacheForgetCommand
66
- };
@@ -1,66 +0,0 @@
1
- import {
2
- writeLine
3
- } from "./chunk-I7QBCEV7.mjs";
4
- import "./chunk-D7O4SU6N.mjs";
5
- import "./chunk-VP2E62DF.mjs";
6
- import "./chunk-PT72AMV7.mjs";
7
- import "./chunk-YEFJBN56.mjs";
8
- import "./chunk-J76GH2DR.mjs";
9
- import {
10
- resolveProjectPackageImportSpecifier
11
- } from "./chunk-ILU426CF.mjs";
12
-
13
- // src/cache.ts
14
- import { loadConfigDirectory } from "@holo-js/config";
15
- function resolveCacheFacade(cacheModule) {
16
- const candidate = cacheModule.default;
17
- if (candidate) {
18
- return candidate;
19
- }
20
- return cacheModule;
21
- }
22
- async function loadCacheCliModule(projectRoot) {
23
- return await import(resolveProjectPackageImportSpecifier(projectRoot, "@holo-js/cache"));
24
- }
25
- async function initializeCacheMaintenanceEnvironment(projectRoot) {
26
- const loadedConfig = await loadConfigDirectory(projectRoot);
27
- const cacheModule = await loadCacheCliModule(projectRoot);
28
- const cache = resolveCacheFacade(cacheModule);
29
- cache.configureCacheRuntime({
30
- config: loadedConfig.cache,
31
- databaseConfig: loadedConfig.database,
32
- redisConfig: loadedConfig.redis
33
- });
34
- return {
35
- cache,
36
- async cleanup() {
37
- cache.resetCacheRuntime();
38
- }
39
- };
40
- }
41
- async function runCacheClearCommand(io, projectRoot, driverName, dependencies = {}) {
42
- const environment = await (dependencies.initializeCache ?? initializeCacheMaintenanceEnvironment)(projectRoot);
43
- try {
44
- const repository = driverName?.trim() ? environment.cache.driver(driverName) : environment.cache;
45
- await (dependencies.flush ?? (async (target) => await target.flush()))(repository);
46
- writeLine(io.stdout, driverName?.trim() ? `[cache] Cleared cache store "${driverName}".` : "[cache] Cleared the default cache store.");
47
- } finally {
48
- await environment.cleanup();
49
- }
50
- }
51
- async function runCacheForgetCommand(io, projectRoot, key, driverName, dependencies = {}) {
52
- const environment = await (dependencies.initializeCache ?? initializeCacheMaintenanceEnvironment)(projectRoot);
53
- try {
54
- const repository = driverName?.trim() ? environment.cache.driver(driverName) : environment.cache;
55
- const forgotten = await (dependencies.forget ?? (async (target, targetKey) => await target.forget(targetKey)))(repository, key);
56
- writeLine(io.stdout, forgotten ? `[cache] Forgot key "${key}".` : `[cache] Key "${key}" was not present.`);
57
- } finally {
58
- await environment.cleanup();
59
- }
60
- }
61
- export {
62
- initializeCacheMaintenanceEnvironment,
63
- loadCacheCliModule,
64
- runCacheClearCommand,
65
- runCacheForgetCommand
66
- };
@@ -1,2 +0,0 @@
1
- // src/project.ts
2
- import { normalizeHoloProjectConfig } from "@holo-js/db";
@@ -1,22 +0,0 @@
1
- import {
2
- readTextFile
3
- } from "./chunk-ILU426CF.mjs";
4
-
5
- // src/package-json.ts
6
- import { join } from "path";
7
- async function hasProjectDependency(projectRoot, packageName) {
8
- const packageJson = await readTextFile(join(projectRoot, "package.json"));
9
- if (!packageJson) {
10
- return false;
11
- }
12
- try {
13
- const parsed = JSON.parse(packageJson);
14
- return typeof parsed.dependencies?.[packageName] === "string" || typeof parsed.devDependencies?.[packageName] === "string";
15
- } catch {
16
- return false;
17
- }
18
- }
19
-
20
- export {
21
- hasProjectDependency
22
- };