kaven-cli 0.4.0 → 0.4.2-alpha.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 (57) hide show
  1. package/README.md +181 -207
  2. package/dist/EnvManager-NMS3NMIE.js +15 -0
  3. package/dist/MarketplaceClient-YCFH2VU4.js +1 -0
  4. package/dist/chunk-JHLQ46NG.js +1 -0
  5. package/dist/index.d.ts +4 -0
  6. package/dist/index.js +243 -289
  7. package/dist/tier-table-DQMPQSI2.js +6 -0
  8. package/package.json +26 -10
  9. package/dist/commands/auth/login.js +0 -122
  10. package/dist/commands/auth/logout.js +0 -23
  11. package/dist/commands/auth/whoami.js +0 -36
  12. package/dist/commands/cache/index.js +0 -43
  13. package/dist/commands/config/features.js +0 -1026
  14. package/dist/commands/config/index.js +0 -95
  15. package/dist/commands/index.js +0 -2
  16. package/dist/commands/init/index.js +0 -197
  17. package/dist/commands/init-ci/index.js +0 -153
  18. package/dist/commands/license/index.js +0 -10
  19. package/dist/commands/license/status.js +0 -44
  20. package/dist/commands/license/tier-table.js +0 -46
  21. package/dist/commands/marketplace/browse.js +0 -186
  22. package/dist/commands/marketplace/install.js +0 -263
  23. package/dist/commands/marketplace/list.js +0 -122
  24. package/dist/commands/module/activate.js +0 -206
  25. package/dist/commands/module/add.js +0 -69
  26. package/dist/commands/module/doctor.js +0 -175
  27. package/dist/commands/module/publish.js +0 -258
  28. package/dist/commands/module/remove.js +0 -58
  29. package/dist/commands/telemetry/view.js +0 -27
  30. package/dist/commands/upgrade/check.js +0 -162
  31. package/dist/commands/upgrade/index.js +0 -185
  32. package/dist/core/AuthService.js +0 -222
  33. package/dist/core/CacheManager.js +0 -154
  34. package/dist/core/ConfigManager.js +0 -166
  35. package/dist/core/EnvManager.js +0 -196
  36. package/dist/core/ErrorRecovery.js +0 -192
  37. package/dist/core/LicenseService.js +0 -83
  38. package/dist/core/ManifestParser.js +0 -52
  39. package/dist/core/MarkerService.js +0 -62
  40. package/dist/core/ModuleDoctor.js +0 -451
  41. package/dist/core/ModuleInstaller.js +0 -169
  42. package/dist/core/ProjectInitializer.js +0 -166
  43. package/dist/core/RegistryResolver.js +0 -95
  44. package/dist/core/SchemaActivator.js +0 -270
  45. package/dist/core/ScriptRunner.js +0 -73
  46. package/dist/core/SignatureVerifier.js +0 -75
  47. package/dist/core/index.js +0 -2
  48. package/dist/infrastructure/Container.js +0 -37
  49. package/dist/infrastructure/MarketplaceClient.js +0 -399
  50. package/dist/infrastructure/TelemetryBuffer.js +0 -73
  51. package/dist/infrastructure/TransactionalFileSystem.js +0 -77
  52. package/dist/infrastructure/errors.js +0 -63
  53. package/dist/infrastructure/index.js +0 -2
  54. package/dist/types/auth.js +0 -2
  55. package/dist/types/manifest.js +0 -45
  56. package/dist/types/markers.js +0 -10
  57. package/dist/types/marketplace.js +0 -2
@@ -1,45 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ModuleManifestSchema = void 0;
4
- const zod_1 = require("zod");
5
- const DependencySchema = zod_1.z.object({
6
- npm: zod_1.z.array(zod_1.z.string()).default([]),
7
- peerModules: zod_1.z.array(zod_1.z.string()).default([]),
8
- kavenVersion: zod_1.z.string().default(">=0.1.0"),
9
- });
10
- const FileSetSchema = zod_1.z.object({
11
- source: zod_1.z.string(),
12
- dest: zod_1.z.string(),
13
- });
14
- const FilesSchema = zod_1.z.object({
15
- backend: zod_1.z.array(FileSetSchema).default([]),
16
- frontend: zod_1.z.array(FileSetSchema).default([]),
17
- database: zod_1.z.array(FileSetSchema).default([]),
18
- });
19
- const InjectionSchema = zod_1.z.object({
20
- file: zod_1.z.string(),
21
- anchor: zod_1.z.string(),
22
- code: zod_1.z.string(),
23
- moduleName: zod_1.z.string().optional(),
24
- });
25
- const ScriptsSchema = zod_1.z.object({
26
- postInstall: zod_1.z.string().nullable().default(null),
27
- preRemove: zod_1.z.string().nullable().default(null),
28
- });
29
- const EnvVarSchema = zod_1.z.object({
30
- key: zod_1.z.string(),
31
- required: zod_1.z.boolean().default(false),
32
- example: zod_1.z.string().optional(),
33
- });
34
- exports.ModuleManifestSchema = zod_1.z.object({
35
- name: zod_1.z.string().min(1),
36
- version: zod_1.z.string().regex(/^\d+\.\d+\.\d+$/),
37
- description: zod_1.z.string().optional(),
38
- author: zod_1.z.string().default("Kaven"),
39
- license: zod_1.z.string().default("Proprietary"),
40
- dependencies: DependencySchema,
41
- files: FilesSchema,
42
- injections: zod_1.z.array(InjectionSchema),
43
- scripts: ScriptsSchema,
44
- env: zod_1.z.array(EnvVarSchema).default([]),
45
- });
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createMarker = createMarker;
4
- function createMarker(moduleName) {
5
- return {
6
- moduleName,
7
- beginMarker: `// [KAVEN_MODULE:${moduleName} BEGIN]`,
8
- endMarker: `// [KAVEN_MODULE:${moduleName} END]`,
9
- };
10
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });