@evolith/smart-cli 1.1.2 → 1.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 (196) hide show
  1. package/dist/app.module.d.ts +2 -0
  2. package/dist/app.module.js +134 -0
  3. package/dist/app.module.js.map +1 -0
  4. package/dist/commands/adr/adr.command.d.ts +34 -0
  5. package/dist/commands/adr/adr.command.js +351 -0
  6. package/dist/commands/adr/adr.command.js.map +1 -0
  7. package/dist/commands/agents/agents.command.d.ts +14 -0
  8. package/dist/commands/agents/agents.command.js +61 -0
  9. package/dist/commands/agents/agents.command.js.map +1 -0
  10. package/dist/commands/agents/index.d.ts +1 -0
  11. package/dist/commands/agents/index.js +6 -0
  12. package/dist/commands/agents/index.js.map +1 -0
  13. package/dist/commands/alias/alias.command.d.ts +16 -0
  14. package/dist/commands/alias/alias.command.js +95 -0
  15. package/dist/commands/alias/alias.command.js.map +1 -0
  16. package/dist/commands/api/api.catalog.d.ts +38 -0
  17. package/dist/commands/api/api.catalog.js +167 -0
  18. package/dist/commands/api/api.catalog.js.map +1 -0
  19. package/dist/commands/api/api.command.d.ts +21 -0
  20. package/dist/commands/api/api.command.js +162 -0
  21. package/dist/commands/api/api.command.js.map +1 -0
  22. package/dist/commands/architecture/scaffold/index.d.ts +2 -0
  23. package/dist/commands/architecture/scaffold/index.js +6 -0
  24. package/dist/commands/architecture/scaffold/index.js.map +1 -0
  25. package/dist/commands/architecture/scaffold/scaffold-strategy.d.ts +15 -0
  26. package/dist/commands/architecture/scaffold/scaffold-strategy.js +20 -0
  27. package/dist/commands/architecture/scaffold/scaffold-strategy.js.map +1 -0
  28. package/dist/commands/architecture/scaffold.command.d.ts +16 -0
  29. package/dist/commands/architecture/scaffold.command.js +321 -0
  30. package/dist/commands/architecture/scaffold.command.js.map +1 -0
  31. package/dist/commands/completion/completion.command.d.ts +28 -0
  32. package/dist/commands/completion/completion.command.js +321 -0
  33. package/dist/commands/completion/completion.command.js.map +1 -0
  34. package/dist/commands/docs/docs.command.d.ts +17 -0
  35. package/dist/commands/docs/docs.command.js +292 -0
  36. package/dist/commands/docs/docs.command.js.map +1 -0
  37. package/dist/commands/drift/drift.command.d.ts +28 -0
  38. package/dist/commands/drift/drift.command.js +283 -0
  39. package/dist/commands/drift/drift.command.js.map +1 -0
  40. package/dist/commands/fixtures/fixtures.command.d.ts +21 -0
  41. package/dist/commands/fixtures/fixtures.command.js +310 -0
  42. package/dist/commands/fixtures/fixtures.command.js.map +1 -0
  43. package/dist/commands/gate/gate.command.d.ts +29 -0
  44. package/dist/commands/gate/gate.command.js +193 -0
  45. package/dist/commands/gate/gate.command.js.map +1 -0
  46. package/dist/commands/history/history.command.d.ts +29 -0
  47. package/dist/commands/history/history.command.js +237 -0
  48. package/dist/commands/history/history.command.js.map +1 -0
  49. package/dist/commands/init/agents.command.d.ts +24 -0
  50. package/dist/commands/init/agents.command.js +330 -0
  51. package/dist/commands/init/agents.command.js.map +1 -0
  52. package/dist/commands/init/init.command.d.ts +26 -0
  53. package/dist/commands/init/init.command.js +170 -0
  54. package/dist/commands/init/init.command.js.map +1 -0
  55. package/dist/commands/init/init.wizard.d.ts +19 -0
  56. package/dist/commands/init/init.wizard.js +181 -0
  57. package/dist/commands/init/init.wizard.js.map +1 -0
  58. package/dist/commands/init/upgrade.command.d.ts +22 -0
  59. package/dist/commands/init/upgrade.command.js +178 -0
  60. package/dist/commands/init/upgrade.command.js.map +1 -0
  61. package/dist/commands/mcp/mcp-serve.command.d.ts +17 -0
  62. package/dist/commands/mcp/mcp-serve.command.js +153 -0
  63. package/dist/commands/mcp/mcp-serve.command.js.map +1 -0
  64. package/dist/commands/phase/phase-advance.command.d.ts +30 -0
  65. package/dist/commands/phase/phase-advance.command.js +206 -0
  66. package/dist/commands/phase/phase-advance.command.js.map +1 -0
  67. package/dist/commands/profile/profile.command.d.ts +18 -0
  68. package/dist/commands/profile/profile.command.js +198 -0
  69. package/dist/commands/profile/profile.command.js.map +1 -0
  70. package/dist/commands/sdlc/gate-status.command.d.ts +10 -0
  71. package/dist/commands/sdlc/gate-status.command.js +162 -0
  72. package/dist/commands/sdlc/gate-status.command.js.map +1 -0
  73. package/dist/commands/sdlc/generate-domain.command.d.ts +8 -0
  74. package/dist/commands/sdlc/generate-domain.command.js +165 -0
  75. package/dist/commands/sdlc/generate-domain.command.js.map +1 -0
  76. package/dist/commands/sdlc/handoff.command.d.ts +27 -0
  77. package/dist/commands/sdlc/handoff.command.js +275 -0
  78. package/dist/commands/sdlc/handoff.command.js.map +1 -0
  79. package/dist/commands/sdlc/sdlc.command.d.ts +5 -0
  80. package/dist/commands/sdlc/sdlc.command.js +44 -0
  81. package/dist/commands/sdlc/sdlc.command.js.map +1 -0
  82. package/dist/commands/standards/standards.command.d.ts +30 -0
  83. package/dist/commands/standards/standards.command.js +283 -0
  84. package/dist/commands/standards/standards.command.js.map +1 -0
  85. package/dist/commands/update/update.command.d.ts +21 -0
  86. package/dist/commands/update/update.command.js +214 -0
  87. package/dist/commands/update/update.command.js.map +1 -0
  88. package/dist/commands/upgrade/index.d.ts +1 -0
  89. package/dist/commands/upgrade/index.js +6 -0
  90. package/dist/commands/upgrade/index.js.map +1 -0
  91. package/dist/commands/upgrade/upgrade.command.d.ts +14 -0
  92. package/dist/commands/upgrade/upgrade.command.js +58 -0
  93. package/dist/commands/upgrade/upgrade.command.js.map +1 -0
  94. package/dist/commands/validate/validate.command.d.ts +43 -0
  95. package/dist/commands/validate/validate.command.js +514 -0
  96. package/dist/commands/validate/validate.command.js.map +1 -0
  97. package/dist/config/alias.service.d.ts +14 -0
  98. package/dist/config/alias.service.js +103 -0
  99. package/dist/config/alias.service.js.map +1 -0
  100. package/dist/contributions/contribution-validator.d.ts +16 -0
  101. package/dist/contributions/contribution-validator.js +34 -0
  102. package/dist/contributions/contribution-validator.js.map +1 -0
  103. package/dist/contributions/index.d.ts +1 -0
  104. package/dist/contributions/index.js +6 -0
  105. package/dist/contributions/index.js.map +1 -0
  106. package/dist/infrastructure/adapters/agent-registry.service.d.ts +30 -0
  107. package/dist/infrastructure/adapters/agent-registry.service.js +175 -0
  108. package/dist/infrastructure/adapters/agent-registry.service.js.map +1 -0
  109. package/dist/infrastructure/architecture/nx-workspace.strategy.d.ts +19 -0
  110. package/dist/infrastructure/architecture/nx-workspace.strategy.js +125 -0
  111. package/dist/infrastructure/architecture/nx-workspace.strategy.js.map +1 -0
  112. package/dist/infrastructure/catalog/catalog-loader.d.ts +21 -0
  113. package/dist/infrastructure/catalog/catalog-loader.js +144 -0
  114. package/dist/infrastructure/catalog/catalog-loader.js.map +1 -0
  115. package/dist/infrastructure/cli/base-command.d.ts +14 -0
  116. package/dist/infrastructure/cli/base-command.js +41 -0
  117. package/dist/infrastructure/cli/base-command.js.map +1 -0
  118. package/dist/infrastructure/cli/command-executor.d.ts +20 -0
  119. package/dist/infrastructure/cli/command-executor.js +110 -0
  120. package/dist/infrastructure/cli/command-executor.js.map +1 -0
  121. package/dist/infrastructure/cli/providers/index.d.ts +52 -0
  122. package/dist/infrastructure/cli/providers/index.js +175 -0
  123. package/dist/infrastructure/cli/providers/index.js.map +1 -0
  124. package/dist/infrastructure/config/config.service.d.ts +34 -0
  125. package/dist/infrastructure/config/config.service.js +126 -0
  126. package/dist/infrastructure/config/config.service.js.map +1 -0
  127. package/dist/infrastructure/filesystem/file-manager.service.d.ts +12 -0
  128. package/dist/infrastructure/filesystem/file-manager.service.js +79 -0
  129. package/dist/infrastructure/filesystem/file-manager.service.js.map +1 -0
  130. package/dist/infrastructure/formatters/output-formatter.service.d.ts +28 -0
  131. package/dist/infrastructure/formatters/output-formatter.service.js +199 -0
  132. package/dist/infrastructure/formatters/output-formatter.service.js.map +1 -0
  133. package/dist/infrastructure/observability/command-watcher.d.ts +45 -0
  134. package/dist/infrastructure/observability/command-watcher.js +199 -0
  135. package/dist/infrastructure/observability/command-watcher.js.map +1 -0
  136. package/dist/infrastructure/observability/error-reporter.d.ts +47 -0
  137. package/dist/infrastructure/observability/error-reporter.js +163 -0
  138. package/dist/infrastructure/observability/error-reporter.js.map +1 -0
  139. package/dist/infrastructure/observability/index.d.ts +11 -0
  140. package/dist/infrastructure/observability/index.js +31 -0
  141. package/dist/infrastructure/observability/index.js.map +1 -0
  142. package/dist/infrastructure/observability/otel-tracing.d.ts +4 -0
  143. package/dist/infrastructure/observability/otel-tracing.js +34 -0
  144. package/dist/infrastructure/observability/otel-tracing.js.map +1 -0
  145. package/dist/infrastructure/observability/structured-logger.d.ts +53 -0
  146. package/dist/infrastructure/observability/structured-logger.js +123 -0
  147. package/dist/infrastructure/observability/structured-logger.js.map +1 -0
  148. package/dist/infrastructure/observability/timing.d.ts +23 -0
  149. package/dist/infrastructure/observability/timing.js +140 -0
  150. package/dist/infrastructure/observability/timing.js.map +1 -0
  151. package/dist/infrastructure/observability/tool-usage-telemetry.service.d.ts +46 -0
  152. package/dist/infrastructure/observability/tool-usage-telemetry.service.js +181 -0
  153. package/dist/infrastructure/observability/tool-usage-telemetry.service.js.map +1 -0
  154. package/dist/infrastructure/plugins/plugin-loader.d.ts +10 -0
  155. package/dist/infrastructure/plugins/plugin-loader.js +145 -0
  156. package/dist/infrastructure/plugins/plugin-loader.js.map +1 -0
  157. package/dist/infrastructure/plugins/plugin.module.d.ts +4 -0
  158. package/dist/infrastructure/plugins/plugin.module.js +28 -0
  159. package/dist/infrastructure/plugins/plugin.module.js.map +1 -0
  160. package/dist/infrastructure/prompts/init-prompt-group.d.ts +3 -0
  161. package/dist/infrastructure/prompts/init-prompt-group.js +115 -0
  162. package/dist/infrastructure/prompts/init-prompt-group.js.map +1 -0
  163. package/dist/infrastructure/prompts/init-prompt-options.d.ts +10 -0
  164. package/dist/infrastructure/prompts/init-prompt-options.js +40 -0
  165. package/dist/infrastructure/prompts/init-prompt-options.js.map +1 -0
  166. package/dist/infrastructure/prompts/progress.service.d.ts +24 -0
  167. package/dist/infrastructure/prompts/progress.service.js +180 -0
  168. package/dist/infrastructure/prompts/progress.service.js.map +1 -0
  169. package/dist/infrastructure/prompts/prompt.service.d.ts +42 -0
  170. package/dist/infrastructure/prompts/prompt.service.js +142 -0
  171. package/dist/infrastructure/prompts/prompt.service.js.map +1 -0
  172. package/dist/infrastructure/prompts/wizard.service.d.ts +27 -0
  173. package/dist/infrastructure/prompts/wizard.service.js +163 -0
  174. package/dist/infrastructure/prompts/wizard.service.js.map +1 -0
  175. package/dist/infrastructure/providers/config-parser.provider.d.ts +15 -0
  176. package/dist/infrastructure/providers/config-parser.provider.js +68 -0
  177. package/dist/infrastructure/providers/config-parser.provider.js.map +1 -0
  178. package/dist/infrastructure/providers/logger.provider.d.ts +10 -0
  179. package/dist/infrastructure/providers/logger.provider.js +84 -0
  180. package/dist/infrastructure/providers/logger.provider.js.map +1 -0
  181. package/dist/infrastructure/providers/mock-filesystem.provider.d.ts +34 -0
  182. package/dist/infrastructure/providers/mock-filesystem.provider.js +129 -0
  183. package/dist/infrastructure/providers/mock-filesystem.provider.js.map +1 -0
  184. package/dist/infrastructure/providers/node-filesystem.provider.d.ts +23 -0
  185. package/dist/infrastructure/providers/node-filesystem.provider.js +117 -0
  186. package/dist/infrastructure/providers/node-filesystem.provider.js.map +1 -0
  187. package/dist/main.d.ts +2 -0
  188. package/dist/main.js +27 -0
  189. package/dist/main.js.map +1 -0
  190. package/dist/plugins/index.d.ts +1 -0
  191. package/dist/plugins/index.js +6 -0
  192. package/dist/plugins/index.js.map +1 -0
  193. package/dist/plugins/plugin-registry.d.ts +22 -0
  194. package/dist/plugins/plugin-registry.js +33 -0
  195. package/dist/plugins/plugin-registry.js.map +1 -0
  196. package/package.json +1 -1
@@ -0,0 +1,129 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MockFileSystemProvider = void 0;
4
+ class MockFileSystemProvider {
5
+ constructor() {
6
+ this.files = new Map();
7
+ }
8
+ setFile(path, content) {
9
+ this.files.set(path, { path, isDirectory: false, isFile: true, content });
10
+ }
11
+ setJson(path, data) {
12
+ this.files.set(path, { path, isDirectory: false, isFile: true, json: data });
13
+ }
14
+ setDirectory(path) {
15
+ this.files.set(path, { path, isDirectory: true, isFile: false });
16
+ }
17
+ clear() {
18
+ this.files.clear();
19
+ }
20
+ normalize(path) {
21
+ return path.replace(/\\/g, '/').replace(/\/+/g, '/');
22
+ }
23
+ async exists(filePath) {
24
+ const normalized = this.normalize(filePath);
25
+ if (this.files.has(normalized)) {
26
+ return true;
27
+ }
28
+ let parent = normalized.substring(0, normalized.lastIndexOf('/'));
29
+ while (parent && parent !== '/') {
30
+ if (this.files.has(parent)) {
31
+ return this.files.get(parent).isDirectory;
32
+ }
33
+ parent = parent.substring(0, parent.lastIndexOf('/'));
34
+ }
35
+ return false;
36
+ }
37
+ existsSync(filePath) {
38
+ return this.files.has(this.normalize(filePath));
39
+ }
40
+ async readFile(filePath) {
41
+ const normalized = this.normalize(filePath);
42
+ const entry = this.files.get(normalized);
43
+ if (!entry) {
44
+ throw new Error(`File not found: ${filePath}`);
45
+ }
46
+ if (entry.isDirectory) {
47
+ throw new Error(`Path is directory: ${filePath}`);
48
+ }
49
+ return entry.content || '';
50
+ }
51
+ async readFileBuffer(filePath) {
52
+ const content = await this.readFile(filePath);
53
+ return Buffer.from(content);
54
+ }
55
+ async readJson(filePath) {
56
+ const normalized = this.normalize(filePath);
57
+ const entry = this.files.get(normalized);
58
+ if (!entry) {
59
+ throw new Error(`File not found: ${filePath}`);
60
+ }
61
+ if (entry.json !== undefined) {
62
+ return entry.json;
63
+ }
64
+ if (entry.content) {
65
+ return JSON.parse(entry.content || '{}');
66
+ }
67
+ throw new Error(`No JSON content: ${filePath}`);
68
+ }
69
+ async writeFile(filePath, content) {
70
+ const normalized = this.normalize(filePath);
71
+ this.files.set(normalized, { path: normalized, isDirectory: false, isFile: true, content });
72
+ }
73
+ async writeJson(filePath, data) {
74
+ const normalized = this.normalize(filePath);
75
+ this.files.set(normalized, { path: normalized, isDirectory: false, isFile: true, json: data });
76
+ }
77
+ async readdir(filePath) {
78
+ const normalized = this.normalize(filePath);
79
+ const results = [];
80
+ for (const [path, entry] of this.files.entries()) {
81
+ if (path.startsWith(normalized + '/')) {
82
+ const relative = path.substring(normalized.length + 1);
83
+ if (!relative.includes('/')) {
84
+ results.push({
85
+ name: entry.path.split('/').pop(),
86
+ isDirectory: () => entry.isDirectory,
87
+ isFile: () => entry.isFile,
88
+ });
89
+ }
90
+ }
91
+ }
92
+ return results;
93
+ }
94
+ async readdirNames(filePath) {
95
+ const entries = await this.readdir(filePath);
96
+ return entries.map(e => e.name);
97
+ }
98
+ async remove(filePath) {
99
+ const normalized = this.normalize(filePath);
100
+ this.files.delete(normalized);
101
+ for (const key of this.files.keys()) {
102
+ if (key.startsWith(normalized + '/')) {
103
+ this.files.delete(key);
104
+ }
105
+ }
106
+ }
107
+ async ensureDir(filePath) {
108
+ const normalized = this.normalize(filePath);
109
+ if (!this.files.has(normalized)) {
110
+ this.files.set(normalized, { path: normalized, isDirectory: true, isFile: false });
111
+ }
112
+ }
113
+ async stat(filePath) {
114
+ const normalized = this.normalize(filePath);
115
+ const entry = this.files.get(normalized);
116
+ if (!entry) {
117
+ throw new Error(`Path not found: ${filePath}`);
118
+ }
119
+ return {
120
+ isDirectory: () => entry.isDirectory,
121
+ isFile: () => entry.isFile,
122
+ };
123
+ }
124
+ async mkdir(path) { }
125
+ async copy(src, dest) { }
126
+ async ensureFile(path) { }
127
+ }
128
+ exports.MockFileSystemProvider = MockFileSystemProvider;
129
+ //# sourceMappingURL=mock-filesystem.provider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mock-filesystem.provider.js","sourceRoot":"","sources":["../../../src/infrastructure/providers/mock-filesystem.provider.ts"],"names":[],"mappings":";;;AAUA,MAAa,sBAAsB;IAAnC;QACU,UAAK,GAA+B,IAAI,GAAG,EAAE,CAAC;IA2IxD,CAAC;IAzIC,OAAO,CAAC,IAAY,EAAE,OAAe;QACnC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IA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CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,CAAC;YAChC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;QACrF,CAAC;IACH,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,QAAgB;QACzB,MAAM,UAAU,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;QAC5C,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;QACzC,IAAI,CAAC,KAAK,EAAE,CAAC;YACX,MAAM,IAAI,KAAK,CAAC,mBAAmB,QAAQ,EAAE,CAAC,CAAC;QACjD,CAAC;QACD,OAAO;YACL,WAAW,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,WAAW;YACpC,MAAM,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,MAAM;SAC3B,CAAC;IACJ,CAAC;IACD,KAAK,CAAC,KAAK,CAAC,IAAY,IAAkB,CAAC;IAC3C,KAAK,CAAC,IAAI,CAAC,GAAW,EAAE,IAAY,IAAkB,CAAC;IACvD,KAAK,CAAC,UAAU,CAAC,IAAY,IAAkB,CAAC;CACjD;AA5ID,wDA4IC"}
@@ -0,0 +1,23 @@
1
+ import { IFileSystem, IFileSystemProvider, FileExistsOptions, FileReadOptions, FileWriteOptions, DirEntry } from '@evolith/core-domain/domain/interfaces';
2
+ export declare class NodeFileSystemProvider implements IFileSystemProvider, IFileSystem {
3
+ createFileSystem(): IFileSystem;
4
+ private resolvePath;
5
+ exists(filePath: string, options?: FileExistsOptions): Promise<boolean>;
6
+ existsSync(filePath: string): boolean;
7
+ readFile(filePath: string, options?: FileReadOptions): Promise<string>;
8
+ readFileBuffer(filePath: string): Promise<Buffer>;
9
+ readJson<T = unknown>(filePath: string, options?: FileReadOptions): Promise<T>;
10
+ writeFile(filePath: string, content: string, options?: FileWriteOptions): Promise<void>;
11
+ writeJson(filePath: string, data: unknown, options?: FileWriteOptions): Promise<void>;
12
+ readdir(filePath: string): Promise<DirEntry[]>;
13
+ readdirNames(filePath: string): Promise<string[]>;
14
+ remove(filePath: string): Promise<void>;
15
+ ensureDir(filePath: string): Promise<void>;
16
+ stat(filePath: string): Promise<{
17
+ isDirectory: () => boolean;
18
+ isFile: () => boolean;
19
+ }>;
20
+ mkdir(path: string): Promise<void>;
21
+ copy(src: string, dest: string): Promise<void>;
22
+ ensureFile(path: string): Promise<void>;
23
+ }
@@ -0,0 +1,117 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.NodeFileSystemProvider = void 0;
37
+ const fs = __importStar(require("fs-extra"));
38
+ const path = __importStar(require("path"));
39
+ class NodeFileSystemProvider {
40
+ createFileSystem() {
41
+ return this;
42
+ }
43
+ resolvePath(filePath, cwd) {
44
+ if (path.isAbsolute(filePath)) {
45
+ return filePath;
46
+ }
47
+ return cwd ? path.join(cwd, filePath) : path.resolve(filePath);
48
+ }
49
+ async exists(filePath, options) {
50
+ const resolved = this.resolvePath(filePath, options?.cwd);
51
+ return fs.pathExists(resolved);
52
+ }
53
+ existsSync(filePath) {
54
+ const resolved = this.resolvePath(filePath);
55
+ return fs.existsSync(resolved);
56
+ }
57
+ async readFile(filePath, options) {
58
+ const resolved = this.resolvePath(filePath, options?.cwd);
59
+ return fs.readFile(resolved, options?.encoding || 'utf-8');
60
+ }
61
+ async readFileBuffer(filePath) {
62
+ const resolved = this.resolvePath(filePath);
63
+ return fs.readFile(resolved);
64
+ }
65
+ async readJson(filePath, options) {
66
+ const content = await this.readFile(filePath, options);
67
+ return JSON.parse(content);
68
+ }
69
+ async writeFile(filePath, content, options) {
70
+ const resolved = this.resolvePath(filePath, options?.cwd);
71
+ await fs.writeFile(resolved, content, options?.encoding || 'utf-8');
72
+ }
73
+ async writeJson(filePath, data, options) {
74
+ const resolved = this.resolvePath(filePath, options?.cwd);
75
+ await fs.writeJson(resolved, data, { spaces: 2, ...options });
76
+ }
77
+ async readdir(filePath) {
78
+ const resolved = this.resolvePath(filePath);
79
+ const entries = await fs.readdir(resolved, { withFileTypes: true });
80
+ return entries.map(entry => ({
81
+ name: entry.name,
82
+ isDirectory: () => entry.isDirectory(),
83
+ isFile: () => entry.isFile(),
84
+ }));
85
+ }
86
+ async readdirNames(filePath) {
87
+ const resolved = this.resolvePath(filePath);
88
+ return fs.readdir(resolved);
89
+ }
90
+ async remove(filePath) {
91
+ const resolved = this.resolvePath(filePath);
92
+ await fs.remove(resolved);
93
+ }
94
+ async ensureDir(filePath) {
95
+ const resolved = this.resolvePath(filePath);
96
+ await fs.ensureDir(resolved);
97
+ }
98
+ async stat(filePath) {
99
+ const resolved = this.resolvePath(filePath);
100
+ const stat = await fs.stat(resolved);
101
+ return {
102
+ isDirectory: () => stat.isDirectory(),
103
+ isFile: () => stat.isFile(),
104
+ };
105
+ }
106
+ async mkdir(path) {
107
+ await fs.promises.mkdir(path, { recursive: true });
108
+ }
109
+ async copy(src, dest) {
110
+ await fs.promises.copyFile(src, dest);
111
+ }
112
+ async ensureFile(path) {
113
+ await fs.ensureFile(path);
114
+ }
115
+ }
116
+ exports.NodeFileSystemProvider = NodeFileSystemProvider;
117
+ //# sourceMappingURL=node-filesystem.provider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node-filesystem.provider.js","sourceRoot":"","sources":["../../../src/infrastructure/providers/node-filesystem.provider.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA+B;AAC/B,2CAA6B;AAU7B,MAAa,sBAAsB;IACjC,gBAAgB;QACd,OAAO,IAAI,CAAC;IACd,CAAC;IACO,WAAW,CAAC,QAAgB,EAAE,GAAY;QAChD,IAAI,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;YAC9B,OAAO,QAAQ,CAAC;QAClB,CAAC;QACD,OAAO,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IACjE,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,QAAgB,EAAE,OAA2B;QACxD,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,OAAO,EAAE,GAAG,CAAC,CAAC;QAC1D,OAAO,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;IACjC,CAAC;IAED,UAAU,CAAC,QAAgB;QACzB,MAAM,QAAQ,GAA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CAAC,QAAQ,CAAC,CAAC;QACrC,OAAO;YACL,WAAW,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE;YACrC,MAAM,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE;SAC5B,CAAC;IACJ,CAAC;IACD,KAAK,CAAC,KAAK,CAAC,IAAY;QACtB,MAAM,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IACrD,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,GAAW,EAAE,IAAY;QAClC,MAAM,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;IACxC,CAAC;IAED,KAAK,CAAC,UAAU,CAAC,IAAY;QAC3B,MAAM,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IAC5B,CAAC;CACF;AA1FD,wDA0FC"}
package/dist/main.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ export {};
package/dist/main.js ADDED
@@ -0,0 +1,27 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ const otel_tracing_1 = require("./infrastructure/observability/otel-tracing");
5
+ const nest_commander_1 = require("nest-commander");
6
+ const app_module_1 = require("./app.module");
7
+ const alias_service_1 = require("./config/alias.service");
8
+ (0, otel_tracing_1.initCliOtel)();
9
+ async function bootstrap() {
10
+ const aliasService = new alias_service_1.AliasService();
11
+ const args = process.argv.slice(2);
12
+ if (args.length > 0) {
13
+ const resolved = aliasService.resolve(args[0]);
14
+ if (resolved !== args[0]) {
15
+ args[0] = resolved;
16
+ process.argv = [process.argv[0], process.argv[1], ...args];
17
+ }
18
+ }
19
+ await nest_commander_1.CommandFactory.run(app_module_1.AppModule, ['warn', 'error']);
20
+ }
21
+ bootstrap()
22
+ .catch((err) => {
23
+ console.error(err);
24
+ process.exit(1);
25
+ })
26
+ .finally(() => (0, otel_tracing_1.shutdownCliOtel)());
27
+ //# sourceMappingURL=main.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";;;AACA,8EAA2F;AAC3F,mDAAgD;AAChD,6CAAyC;AACzC,0DAAsD;AAEtD,IAAA,0BAAW,GAAE,CAAC;AAEd,KAAK,UAAU,SAAS;IAEtB,MAAM,YAAY,GAAG,IAAI,4BAAY,EAAE,CAAC;IACxC,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACnC,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACpB,MAAM,QAAQ,GAAG,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QAC/C,IAAI,QAAQ,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;YACzB,IAAI,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC;YAEnB,OAAO,CAAC,IAAI,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,GAAG,IAAI,CAAC,CAAC;QAC7D,CAAC;IACH,CAAC;IACD,MAAM,+BAAc,CAAC,GAAG,CAAC,sBAAS,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;AACzD,CAAC;AAED,SAAS,EAAE;KACR,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACb,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACnB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC;KACD,OAAO,CAAC,GAAG,EAAE,CAAC,IAAA,8BAAe,GAAE,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export { PluginRegistry, EvolithPlugin, PluginManifest } from './plugin-registry';
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PluginRegistry = void 0;
4
+ var plugin_registry_1 = require("./plugin-registry");
5
+ Object.defineProperty(exports, "PluginRegistry", { enumerable: true, get: function () { return plugin_registry_1.PluginRegistry; } });
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/plugins/index.ts"],"names":[],"mappings":";;;AAAA,qDAAkF;AAAzE,iHAAA,cAAc,OAAA"}
@@ -0,0 +1,22 @@
1
+ export interface EvolithPlugin {
2
+ readonly id: string;
3
+ readonly name: string;
4
+ readonly version: string;
5
+ register(): void;
6
+ unregister?(): void;
7
+ }
8
+ export interface PluginManifest {
9
+ id: string;
10
+ name: string;
11
+ version: string;
12
+ entrypoint: string;
13
+ commands?: string[];
14
+ }
15
+ export declare class PluginRegistry {
16
+ private readonly plugins;
17
+ register(plugin: EvolithPlugin): void;
18
+ unregister(pluginId: string): void;
19
+ get(pluginId: string): EvolithPlugin | undefined;
20
+ list(): EvolithPlugin[];
21
+ has(pluginId: string): boolean;
22
+ }
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PluginRegistry = void 0;
4
+ class PluginRegistry {
5
+ constructor() {
6
+ this.plugins = new Map();
7
+ }
8
+ register(plugin) {
9
+ if (this.plugins.has(plugin.id)) {
10
+ throw new Error(`Plugin already registered: ${plugin.id}`);
11
+ }
12
+ plugin.register();
13
+ this.plugins.set(plugin.id, plugin);
14
+ }
15
+ unregister(pluginId) {
16
+ const plugin = this.plugins.get(pluginId);
17
+ if (!plugin)
18
+ return;
19
+ plugin.unregister?.();
20
+ this.plugins.delete(pluginId);
21
+ }
22
+ get(pluginId) {
23
+ return this.plugins.get(pluginId);
24
+ }
25
+ list() {
26
+ return [...this.plugins.values()];
27
+ }
28
+ has(pluginId) {
29
+ return this.plugins.has(pluginId);
30
+ }
31
+ }
32
+ exports.PluginRegistry = PluginRegistry;
33
+ //# sourceMappingURL=plugin-registry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin-registry.js","sourceRoot":"","sources":["../../src/plugins/plugin-registry.ts"],"names":[],"mappings":";;;AAgBA,MAAa,cAAc;IAA3B;QACmB,YAAO,GAAG,IAAI,GAAG,EAAyB,CAAC;IA4B9D,CAAC;IA1BC,QAAQ,CAAC,MAAqB;QAC5B,IAAI,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC;YAChC,MAAM,IAAI,KAAK,CAAC,8BAA8B,MAAM,CAAC,EAAE,EAAE,CAAC,CAAC;QAC7D,CAAC;QACD,MAAM,CAAC,QAAQ,EAAE,CAAC;QAClB,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;IACtC,CAAC;IAED,UAAU,CAAC,QAAgB;QACzB,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QAC1C,IAAI,CAAC,MAAM;YAAE,OAAO;QACpB,MAAM,CAAC,UAAU,EAAE,EAAE,CAAC;QACtB,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAChC,CAAC;IAED,GAAG,CAAC,QAAgB;QAClB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACpC,CAAC;IAED,IAAI;QACF,OAAO,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IACpC,CAAC;IAED,GAAG,CAAC,QAAgB;QAClB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACpC,CAAC;CACF;AA7BD,wCA6BC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evolith/smart-cli",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "Evolith Smart CLI - Governance, standards validation, and AI agent integration for satellite repositories",
5
5
  "main": "dist/main.js",
6
6
  "bin": {