@evolith/smart-cli 1.1.4 → 1.1.5

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 (60) hide show
  1. package/README.es.md +989 -200
  2. package/README.md +98 -20
  3. package/dist/.tsbuildinfo +1 -1
  4. package/dist/CoreApiClient.d.ts +5 -0
  5. package/dist/CoreApiClient.js +25 -0
  6. package/dist/CoreApiClient.js.map +1 -0
  7. package/dist/app.module.js +12 -4
  8. package/dist/app.module.js.map +1 -1
  9. package/dist/commands/agents/agents.command.d.ts +19 -6
  10. package/dist/commands/agents/agents.command.js +333 -21
  11. package/dist/commands/agents/agents.command.js.map +1 -1
  12. package/dist/commands/chat/chat.command.d.ts +7 -0
  13. package/dist/commands/chat/chat.command.js +64 -0
  14. package/dist/commands/chat/chat.command.js.map +1 -0
  15. package/dist/commands/evaluate/evaluate.command.d.ts +28 -0
  16. package/dist/commands/evaluate/evaluate.command.js +197 -0
  17. package/dist/commands/evaluate/evaluate.command.js.map +1 -0
  18. package/dist/commands/mcp/mcp.command.d.ts +17 -0
  19. package/dist/commands/mcp/mcp.command.js +109 -0
  20. package/dist/commands/mcp/mcp.command.js.map +1 -0
  21. package/dist/commands/plan/index.d.ts +2 -0
  22. package/dist/commands/plan/index.js +133 -0
  23. package/dist/commands/plan/index.js.map +1 -0
  24. package/dist/commands/satellite/index.d.ts +2 -0
  25. package/dist/commands/satellite/index.js +8 -0
  26. package/dist/commands/satellite/index.js.map +1 -0
  27. package/dist/commands/satellite/satellite-adopt.command.d.ts +21 -0
  28. package/dist/commands/satellite/satellite-adopt.command.js +193 -0
  29. package/dist/commands/satellite/satellite-adopt.command.js.map +1 -0
  30. package/dist/commands/satellite/satellite-create.command.d.ts +26 -0
  31. package/dist/commands/satellite/satellite-create.command.js +192 -0
  32. package/dist/commands/satellite/satellite-create.command.js.map +1 -0
  33. package/dist/commands/upgrade/upgrade.command.d.ts +12 -4
  34. package/dist/commands/upgrade/upgrade.command.js +139 -19
  35. package/dist/commands/upgrade/upgrade.command.js.map +1 -1
  36. package/dist/commands/validate/validate.command.js +17 -3
  37. package/dist/commands/validate/validate.command.js.map +1 -1
  38. package/dist/infrastructure/agent/agent-runtime.factory.d.ts +9 -0
  39. package/dist/infrastructure/agent/agent-runtime.factory.js +47 -0
  40. package/dist/infrastructure/agent/agent-runtime.factory.js.map +1 -0
  41. package/dist/infrastructure/cli/command-executor.d.ts +1 -0
  42. package/dist/infrastructure/cli/command-executor.js +16 -0
  43. package/dist/infrastructure/cli/command-executor.js.map +1 -1
  44. package/dist/infrastructure/cli/providers/index.js +32 -29
  45. package/dist/infrastructure/cli/providers/index.js.map +1 -1
  46. package/dist/main.js +12 -1
  47. package/dist/main.js.map +1 -1
  48. package/package.json +8 -5
  49. package/dist/commands/init/agents.command.d.ts +0 -24
  50. package/dist/commands/init/agents.command.js +0 -330
  51. package/dist/commands/init/agents.command.js.map +0 -1
  52. package/dist/commands/init/upgrade.command.d.ts +0 -22
  53. package/dist/commands/init/upgrade.command.js +0 -178
  54. package/dist/commands/init/upgrade.command.js.map +0 -1
  55. package/dist/commands/mcp/mcp-serve.command.d.ts +0 -17
  56. package/dist/commands/mcp/mcp-serve.command.js +0 -153
  57. package/dist/commands/mcp/mcp-serve.command.js.map +0 -1
  58. package/dist/commands/upgrade/index.d.ts +0 -1
  59. package/dist/commands/upgrade/index.js +0 -6
  60. package/dist/commands/upgrade/index.js.map +0 -1
@@ -0,0 +1,28 @@
1
+ import { ValidateSatelliteUseCase } from '@evolith/core-domain/application/use-cases/validate-satellite.use-case';
2
+ import type { IFileSystem, ILogger } from '@evolith/core-domain/domain/interfaces';
3
+ import { BaseEvolithCommand } from '../../infrastructure/cli/base-command';
4
+ import { PromptService } from '../../infrastructure/prompts/prompt.service';
5
+ import { ConfigService } from '../../infrastructure/config/config.service';
6
+ interface EvaluateCommandOptions {
7
+ context?: string;
8
+ workspace?: string;
9
+ core?: string;
10
+ phase?: string;
11
+ topology?: string;
12
+ format?: string;
13
+ }
14
+ export declare class EvaluateCommand extends BaseEvolithCommand {
15
+ private readonly useCase;
16
+ private readonly fileSystem;
17
+ private readonly coreLogger;
18
+ constructor(useCase: ValidateSatelliteUseCase, fileSystem: IFileSystem, coreLogger: ILogger, promptService: PromptService, configService?: ConfigService);
19
+ executeCommand(_passed: string[], options?: EvaluateCommandOptions): Promise<void>;
20
+ private buildContext;
21
+ parseContext(val: string): string;
22
+ parseWorkspace(val: string): string;
23
+ parseCore(val: string): string;
24
+ parsePhase(val: string): string;
25
+ parseTopology(val: string): string;
26
+ parseFormat(val: string): string;
27
+ }
28
+ export {};
@@ -0,0 +1,197 @@
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 __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
19
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
20
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
21
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
22
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
23
+ };
24
+ var __importStar = (this && this.__importStar) || (function () {
25
+ var ownKeys = function(o) {
26
+ ownKeys = Object.getOwnPropertyNames || function (o) {
27
+ var ar = [];
28
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
29
+ return ar;
30
+ };
31
+ return ownKeys(o);
32
+ };
33
+ return function (mod) {
34
+ if (mod && mod.__esModule) return mod;
35
+ var result = {};
36
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
37
+ __setModuleDefault(result, mod);
38
+ return result;
39
+ };
40
+ })();
41
+ var __metadata = (this && this.__metadata) || function (k, v) {
42
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
43
+ };
44
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
45
+ return function (target, key) { decorator(target, key, paramIndex); }
46
+ };
47
+ Object.defineProperty(exports, "__esModule", { value: true });
48
+ exports.EvaluateCommand = void 0;
49
+ const path = __importStar(require("path"));
50
+ const common_1 = require("@nestjs/common");
51
+ const nest_commander_1 = require("nest-commander");
52
+ const validate_satellite_use_case_1 = require("@evolith/core-domain/application/use-cases/validate-satellite.use-case");
53
+ const core_domain_1 = require("@evolith/core-domain");
54
+ const evaluation_1 = require("@evolith/core-domain/evaluation");
55
+ const base_command_1 = require("../../infrastructure/cli/base-command");
56
+ const prompt_service_1 = require("../../infrastructure/prompts/prompt.service");
57
+ const config_service_1 = require("../../infrastructure/config/config.service");
58
+ const CORE_VERSION = '1.0.5';
59
+ let EvaluateCommand = class EvaluateCommand extends base_command_1.BaseEvolithCommand {
60
+ constructor(useCase, fileSystem, coreLogger, promptService, configService) {
61
+ super('EvaluateCommand', promptService, configService);
62
+ this.useCase = useCase;
63
+ this.fileSystem = fileSystem;
64
+ this.coreLogger = coreLogger;
65
+ }
66
+ async executeCommand(_passed, options) {
67
+ const ctx = await this.buildContext(options);
68
+ const pipeline = {
69
+ evaluate: async (manifest) => {
70
+ const out = await this.useCase.execute({
71
+ satellitePath: manifest.satellitePath,
72
+ corePath: manifest.corePath,
73
+ manifest,
74
+ });
75
+ if (!out.evaluationVerdict) {
76
+ throw new Error('Evaluation pipeline produced no verdict');
77
+ }
78
+ return out.evaluationVerdict;
79
+ },
80
+ };
81
+ const resolver = {
82
+ resolve: async (ref) => ({
83
+ satellitePath: path.resolve(ref),
84
+ corePath: options?.core || this.profile.core || undefined,
85
+ }),
86
+ };
87
+ const evaluators = (0, evaluation_1.createDefaultKindEvaluators)({
88
+ fileSystem: this.fileSystem,
89
+ logger: this.coreLogger,
90
+ resolveCorePath: () => options?.core || this.profile.core || process.cwd(),
91
+ });
92
+ const orchestrator = new evaluation_1.EvaluationOrchestrator(pipeline, resolver, CORE_VERSION, evaluators);
93
+ const result = await orchestrator.evaluate(ctx);
94
+ const envelope = (0, core_domain_1.createSuccessEnvelope)(result, {
95
+ command: 'evolith evaluate',
96
+ executedAt: result.evaluatedAt,
97
+ durationMs: 0,
98
+ correlationId: result.correlationId ?? `cli-eval-${result.evaluatedAt}`,
99
+ schemaVersion: result.schemaVersion,
100
+ });
101
+ const format = options?.format || 'json';
102
+ if (format === 'json') {
103
+ console.log(JSON.stringify(envelope, null, 2));
104
+ }
105
+ else {
106
+ this.promptService.showInfo(`Verdict: ${result.overallVerdict} (${result.outcome}) — confidence ${result.confidence.toFixed(2)}`);
107
+ if (result.gaps.length > 0) {
108
+ this.promptService.showWarning(`${result.gaps.length} gap(s), ${result.requiredActions.length} required action(s)`);
109
+ }
110
+ console.log(JSON.stringify(envelope, null, 2));
111
+ }
112
+ }
113
+ async buildContext(options) {
114
+ if (options?.context) {
115
+ const fs = await Promise.resolve().then(() => __importStar(require('fs-extra')));
116
+ const resolved = path.resolve(options.context);
117
+ const raw = await fs.readFile(resolved, 'utf-8');
118
+ const parsed = JSON.parse(raw);
119
+ if (!parsed.workspaceRef) {
120
+ return { ...parsed, workspaceRef: this.profile.satellite || process.cwd() };
121
+ }
122
+ return parsed;
123
+ }
124
+ return {
125
+ kinds: ['gate', 'compliance'],
126
+ workspaceRef: options?.workspace || this.profile.satellite || process.cwd(),
127
+ phaseId: options?.phase,
128
+ topologyRef: options?.topology,
129
+ };
130
+ }
131
+ parseContext(val) {
132
+ return val;
133
+ }
134
+ parseWorkspace(val) {
135
+ return val;
136
+ }
137
+ parseCore(val) {
138
+ return val;
139
+ }
140
+ parsePhase(val) {
141
+ return val;
142
+ }
143
+ parseTopology(val) {
144
+ return val;
145
+ }
146
+ parseFormat(val) {
147
+ return val;
148
+ }
149
+ };
150
+ exports.EvaluateCommand = EvaluateCommand;
151
+ __decorate([
152
+ (0, nest_commander_1.Option)({ flags: '--context [path]', description: 'Path to a JSON file with a canonical EvaluationContext' }),
153
+ __metadata("design:type", Function),
154
+ __metadata("design:paramtypes", [String]),
155
+ __metadata("design:returntype", String)
156
+ ], EvaluateCommand.prototype, "parseContext", null);
157
+ __decorate([
158
+ (0, nest_commander_1.Option)({ flags: '-w, --workspace [path]', description: 'Local workspace path (interpreted as workspaceRef; default: profile/cwd)' }),
159
+ __metadata("design:type", Function),
160
+ __metadata("design:paramtypes", [String]),
161
+ __metadata("design:returntype", String)
162
+ ], EvaluateCommand.prototype, "parseWorkspace", null);
163
+ __decorate([
164
+ (0, nest_commander_1.Option)({ flags: '-c, --core [path]', description: 'Path to the Evolith Core repository (default: auto-detect)' }),
165
+ __metadata("design:type", Function),
166
+ __metadata("design:paramtypes", [String]),
167
+ __metadata("design:returntype", String)
168
+ ], EvaluateCommand.prototype, "parseCore", null);
169
+ __decorate([
170
+ (0, nest_commander_1.Option)({ flags: '-p, --phase [id]', description: 'Canonical SDLC phase id (discovery|design|construction|qa|release)' }),
171
+ __metadata("design:type", Function),
172
+ __metadata("design:paramtypes", [String]),
173
+ __metadata("design:returntype", String)
174
+ ], EvaluateCommand.prototype, "parsePhase", null);
175
+ __decorate([
176
+ (0, nest_commander_1.Option)({ flags: '-t, --topology [id]', description: 'Topology reference/override' }),
177
+ __metadata("design:type", Function),
178
+ __metadata("design:paramtypes", [String]),
179
+ __metadata("design:returntype", String)
180
+ ], EvaluateCommand.prototype, "parseTopology", null);
181
+ __decorate([
182
+ (0, nest_commander_1.Option)({ flags: '-f, --format [string]', description: 'Output format (json | text). Default: json' }),
183
+ __metadata("design:type", Function),
184
+ __metadata("design:paramtypes", [String]),
185
+ __metadata("design:returntype", String)
186
+ ], EvaluateCommand.prototype, "parseFormat", null);
187
+ exports.EvaluateCommand = EvaluateCommand = __decorate([
188
+ (0, nest_commander_1.Command)({
189
+ name: 'evaluate',
190
+ description: 'Evaluate an EvaluationContext (gates, artifacts, rules, compliance) and print an EvaluationResult',
191
+ }),
192
+ __param(1, (0, common_1.Inject)('IFileSystem')),
193
+ __param(2, (0, common_1.Inject)('ILogger')),
194
+ __metadata("design:paramtypes", [validate_satellite_use_case_1.ValidateSatelliteUseCase, Object, Object, prompt_service_1.PromptService,
195
+ config_service_1.ConfigService])
196
+ ], EvaluateCommand);
197
+ //# sourceMappingURL=evaluate.command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"evaluate.command.js","sourceRoot":"","sources":["../../../src/commands/evaluate/evaluate.command.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA6B;AAC7B,2CAAwC;AACxC,mDAAiD;AACjD,wHAAkH;AAClH,sDAA6D;AAE7D,gEAMyC;AACzC,wEAA2E;AAC3E,gFAA4E;AAC5E,+EAA2E;AAE3E,MAAM,YAAY,GAAG,OAAO,CAAC;AAuBtB,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,iCAAkB;IACrD,YACmB,OAAiC,EACV,UAAuB,EAC3B,UAAmB,EACvD,aAA4B,EAC5B,aAA6B;QAE7B,KAAK,CAAC,iBAAiB,EAAE,aAAa,EAAE,aAAa,CAAC,CAAC;QANtC,YAAO,GAAP,OAAO,CAA0B;QACV,eAAU,GAAV,UAAU,CAAa;QAC3B,eAAU,GAAV,UAAU,CAAS;IAKzD,CA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qDAGpI;AAGD;IADC,IAAA,uBAAM,EAAC,EAAE,KAAK,EAAE,mBAAmB,EAAE,WAAW,EAAE,4DAA4D,EAAE,CAAC;;;;gDAGjH;AAGD;IADC,IAAA,uBAAM,EAAC,EAAE,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,oEAAoE,EAAE,CAAC;;;;iDAGxH;AAGD;IADC,IAAA,uBAAM,EAAC,EAAE,KAAK,EAAE,qBAAqB,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;;;;oDAGpF;AAGD;IADC,IAAA,uBAAM,EAAC,EAAE,KAAK,EAAE,uBAAuB,EAAE,WAAW,EAAE,4CAA4C,EAAE,CAAC;;;;kDAGrG;0BArHU,eAAe;IAJ3B,IAAA,wBAAO,EAAC;QACP,IAAI,EAAE,UAAU;QAChB,WAAW,EAAE,mGAAmG;KACjH,CAAC;IAIG,WAAA,IAAA,eAAM,EAAC,aAAa,CAAC,CAAA;IACrB,WAAA,IAAA,eAAM,EAAC,SAAS,CAAC,CAAA;qCAFQ,sDAAwB,kBAGnC,8BAAa;QACZ,8BAAa;GANpB,eAAe,CAsH3B"}
@@ -0,0 +1,17 @@
1
+ import { BaseEvolithCommand } from '../../infrastructure/cli/base-command';
2
+ interface McpCommandOptions {
3
+ transport?: string;
4
+ port?: string;
5
+ apiKey?: string;
6
+ confirm?: boolean;
7
+ }
8
+ export declare class McpCommand extends BaseEvolithCommand {
9
+ constructor();
10
+ executeCommand(inputs: string[], options?: McpCommandOptions): Promise<void>;
11
+ private delegateToStandaloneServer;
12
+ parseTransport(value: string): string;
13
+ parsePort(value: string): string;
14
+ parseApiKey(value: string): string;
15
+ parseNoConfirm(): boolean;
16
+ }
17
+ export {};
@@ -0,0 +1,109 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.McpCommand = void 0;
13
+ const child_process_1 = require("child_process");
14
+ const nest_commander_1 = require("nest-commander");
15
+ const base_command_1 = require("../../infrastructure/cli/base-command");
16
+ let McpCommand = class McpCommand extends base_command_1.BaseEvolithCommand {
17
+ constructor() {
18
+ super('McpCommand');
19
+ }
20
+ async executeCommand(inputs, options) {
21
+ const action = inputs[0] || 'serve';
22
+ this.promptService.showWarning('smart-cli mcp is deprecated; use npx @evolith/mcp-server serve or the evolith-mcp binary.');
23
+ if (action === '--help' || action === '-h') {
24
+ this.promptService.showInfo('Usage: smart-cli mcp [serve|version|start|stop] [options]');
25
+ return;
26
+ }
27
+ if (action === 'version') {
28
+ this.promptService.showInfo('Evolith MCP Server (@evolith/mcp-server)');
29
+ return;
30
+ }
31
+ if (action === 'stop') {
32
+ this.promptService.showInfo('No embedded MCP daemon is managed by smart-cli. Stop the standalone process directly.');
33
+ return;
34
+ }
35
+ if (action === 'start') {
36
+ this.promptService.showInfo('Use smart-cli mcp serve to start the standalone MCP server in the foreground.');
37
+ return;
38
+ }
39
+ if (action !== 'serve') {
40
+ throw new Error(`Unknown MCP action: ${action}`);
41
+ }
42
+ this.delegateToStandaloneServer(options);
43
+ }
44
+ delegateToStandaloneServer(options) {
45
+ const args = ['serve'];
46
+ if (options?.transport)
47
+ args.push('--transport', options.transport);
48
+ if (options?.port)
49
+ args.push('--port', options.port);
50
+ if (options?.apiKey)
51
+ args.push('--api-key', options.apiKey);
52
+ const result = (0, child_process_1.spawnSync)(process.execPath, [require.resolve('@evolith/mcp-server'), ...args], {
53
+ stdio: 'inherit',
54
+ env: process.env,
55
+ });
56
+ if (result.error) {
57
+ throw result.error;
58
+ }
59
+ if (typeof result.status === 'number' && result.status !== 0) {
60
+ process.exitCode = result.status;
61
+ }
62
+ }
63
+ parseTransport(value) {
64
+ return value;
65
+ }
66
+ parsePort(value) {
67
+ return value;
68
+ }
69
+ parseApiKey(value) {
70
+ return value;
71
+ }
72
+ parseNoConfirm() {
73
+ return false;
74
+ }
75
+ };
76
+ exports.McpCommand = McpCommand;
77
+ __decorate([
78
+ (0, nest_commander_1.Option)({ flags: '-t, --transport <transport>', description: 'Transport: stdio (default) or http' }),
79
+ __metadata("design:type", Function),
80
+ __metadata("design:paramtypes", [String]),
81
+ __metadata("design:returntype", String)
82
+ ], McpCommand.prototype, "parseTransport", null);
83
+ __decorate([
84
+ (0, nest_commander_1.Option)({ flags: '-p, --port <port>', description: 'HTTP server port (default: 3000, or $PORT)' }),
85
+ __metadata("design:type", Function),
86
+ __metadata("design:paramtypes", [String]),
87
+ __metadata("design:returntype", String)
88
+ ], McpCommand.prototype, "parsePort", null);
89
+ __decorate([
90
+ (0, nest_commander_1.Option)({ flags: '--api-key <key>', description: 'API key for HTTP transport authentication' }),
91
+ __metadata("design:type", Function),
92
+ __metadata("design:paramtypes", [String]),
93
+ __metadata("design:returntype", String)
94
+ ], McpCommand.prototype, "parseApiKey", null);
95
+ __decorate([
96
+ (0, nest_commander_1.Option)({ flags: '--no-confirm', description: 'Skip confirmation prompts' }),
97
+ __metadata("design:type", Function),
98
+ __metadata("design:paramtypes", []),
99
+ __metadata("design:returntype", Boolean)
100
+ ], McpCommand.prototype, "parseNoConfirm", null);
101
+ exports.McpCommand = McpCommand = __decorate([
102
+ (0, nest_commander_1.Command)({
103
+ name: 'mcp',
104
+ description: 'Compatibility shim for the standalone Evolith MCP server',
105
+ arguments: '[action]',
106
+ }),
107
+ __metadata("design:paramtypes", [])
108
+ ], McpCommand);
109
+ //# sourceMappingURL=mcp.command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mcp.command.js","sourceRoot":"","sources":["../../../src/commands/mcp/mcp.command.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAA0C;AAC1C,mDAAiD;AACjD,wEAA2E;AAcpE,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,iCAAkB;IAChD;QACE,KAAK,CAAC,YAAY,CAAC,CAAC;IACtB,CAAC;IAED,KAAK,CAAC,cAAc,CAAC,MAAgB,EAAE,OAA2B;QAChE,MAAM,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,IAAI,OAAO,CAAC;QAEpC,IAAI,CAAC,aAAa,CAAC,WAAW,CAC5B,2FAA2F,CAC5F,CAAC;QAEF,IAAI,MAAM,KAAK,QAAQ,IAAI,MAAM,KAAK,IAAI,EAAE,CAAC;YAC3C,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,2DAA2D,CAAC,CAAC;YACzF,OAAO;QACT,CAAC;QAED,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;YACzB,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,0CAA0C,CAAC,CAAC;YACxE,OAAO;QACT,CAAC;QAED,IAAI,MAAM,KAAK,MAAM,EAAE,CAAC;YACtB,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,uFAAuF,CAAC,CAAC;YACrH,OAAO;QACT,CAAC;QAED,IAAI,MAAM,KAAK,OAAO,EAAE,CAAC;YACvB,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,+EAA+E,CAAC,CAAC;YAC7G,OAAO;QACT,CAAC;QAED,IAAI,MAAM,KAAK,OAAO,EAAE,CAAC;YACvB,MAAM,IAAI,KAAK,CAAC,uBAAuB,MAAM,EAAE,CAAC,CAAC;QACnD,CAAC;QAED,IAAI,CAAC,0BAA0B,CAAC,OAAO,CAAC,CAAC;IAC3C,CAAC;IAEO,0BAA0B,CAAC,OAA2B;Q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AAC,EAAE,KAAK,EAAE,mBAAmB,EAAE,WAAW,EAAE,4CAA4C,EAAE,CAAC;;;;2CAGjG;AAGD;IADC,IAAA,uBAAM,EAAC,EAAE,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,2CAA2C,EAAE,CAAC;;;;6CAG9F;AAGD;IADC,IAAA,uBAAM,EAAC,EAAE,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,2BAA2B,EAAE,CAAC;;;;gDAG3E;qBA9EU,UAAU;IALtB,IAAA,wBAAO,EAAC;QACP,IAAI,EAAE,KAAK;QACX,WAAW,EAAE,0DAA0D;QACvE,SAAS,EAAE,UAAU;KACtB,CAAC;;GACW,UAAU,CA+EtB"}
@@ -0,0 +1,2 @@
1
+ import { Command } from 'commander';
2
+ export declare function makePlanCommand(): Command;
@@ -0,0 +1,133 @@
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.makePlanCommand = makePlanCommand;
37
+ const commander_1 = require("commander");
38
+ const fs = __importStar(require("fs"));
39
+ const path = __importStar(require("path"));
40
+ const agent_runtime_1 = require("@evolith/agent-runtime");
41
+ const core_domain_1 = require("@evolith/core-domain");
42
+ const agent_runtime_factory_1 = require("../../infrastructure/agent/agent-runtime.factory");
43
+ function makePlanCommand() {
44
+ const planCmd = new commander_1.Command('plan')
45
+ .description('Manage Architecture Plans for Pre-Discovery Intake (Phase 00)');
46
+ const getPlanPath = () => path.join(process.cwd(), '.bmad-core', 'architecture-plan.json');
47
+ const ensureBmadCore = () => {
48
+ const dir = path.join(process.cwd(), '.bmad-core');
49
+ if (!fs.existsSync(dir))
50
+ fs.mkdirSync(dir, { recursive: true });
51
+ };
52
+ planCmd
53
+ .command('create')
54
+ .description('Create a new Architecture Plan draft from a prompt')
55
+ .option('--from-prompt <prompt>', 'The natural language description of the requirement')
56
+ .action(async (options) => {
57
+ console.log(`[Evolith CLI] Generating Architecture Plan using AI capability for prompt: "${options.fromPrompt}"`);
58
+ const llm = new agent_runtime_1.GeminiProvider();
59
+ const interpreter = new agent_runtime_1.ArchitecturePlanInterpreter(llm);
60
+ try {
61
+ const plan = await interpreter.interpret(options.fromPrompt);
62
+ plan.status = core_domain_1.ArchitecturePlanStatus.DRAFT;
63
+ ensureBmadCore();
64
+ fs.writeFileSync(getPlanPath(), JSON.stringify(plan, null, 2));
65
+ console.log(`[Evolith CLI] Architecture Plan Draft saved to .bmad-core/architecture-plan.json`);
66
+ console.log(`[Evolith CLI] Run 'evolith plan evaluate' to obtain SDLC mode from the Core Engine.`);
67
+ }
68
+ catch (err) {
69
+ const message = err instanceof Error ? err.message : String(err);
70
+ console.error(`[Evolith CLI] Failed to generate plan: ${message}`);
71
+ }
72
+ });
73
+ planCmd
74
+ .command('evaluate')
75
+ .description('Evaluate the local Architecture Plan through the Core Engine (OPA) to determine SDLC mode')
76
+ .action(async () => {
77
+ const planPath = getPlanPath();
78
+ if (!fs.existsSync(planPath)) {
79
+ console.error('[Evolith CLI] No architecture-plan.json found in .bmad-core. Run create first.');
80
+ return;
81
+ }
82
+ console.log(`[Evolith CLI] Reading local .bmad-core/architecture-plan.json...`);
83
+ const plan = JSON.parse(fs.readFileSync(planPath, 'utf8'));
84
+ console.log(`[Evolith CLI] Routing evaluation request through Agent Runtime...`);
85
+ try {
86
+ const result = await agent_runtime_factory_1.AgentRuntimeFactory.executeCommand({
87
+ intent: 'evaluate architecture plan',
88
+ tool: 'evaluate-architecture-plan',
89
+ parameters: { plan },
90
+ });
91
+ if (result.status === 'error' || result.status === 'blocked') {
92
+ console.error(`[Evolith CLI] Evaluation failed: ${result.summary}`);
93
+ return;
94
+ }
95
+ console.log(`[Evolith CLI] Plan evaluated successfully by Agent Runtime.`);
96
+ console.log(`[Evolith CLI] Saving evaluated plan back to .bmad-core/architecture-plan.json`);
97
+ }
98
+ catch (err) {
99
+ console.error(`[Evolith CLI] Evaluation failed: ${err instanceof Error ? err.message : String(err)}`);
100
+ }
101
+ });
102
+ planCmd
103
+ .command('approve')
104
+ .description('Approve the Architecture Plan to move into SDLC Phase 1.1')
105
+ .option('--approver <name>', 'Name of the approver')
106
+ .action(async (options) => {
107
+ const planPath = getPlanPath();
108
+ if (!fs.existsSync(planPath)) {
109
+ console.error('[Evolith CLI] No architecture-plan.json found. Run create and evaluate first.');
110
+ return;
111
+ }
112
+ const plan = JSON.parse(fs.readFileSync(planPath, 'utf8'));
113
+ if (plan.status !== core_domain_1.ArchitecturePlanStatus.UNDER_REVIEW) {
114
+ console.error('[Evolith CLI] Plan must be in UNDER_REVIEW state to be approved.');
115
+ return;
116
+ }
117
+ if (!options.approver) {
118
+ console.error('[Evolith CLI] You must specify an approver using --approver <name>');
119
+ return;
120
+ }
121
+ console.log(`[Evolith CLI] Approving Plan by ${options.approver}...`);
122
+ plan.status = core_domain_1.ArchitecturePlanStatus.APPROVED;
123
+ plan.governance.approvers = plan.governance.approvers || [];
124
+ plan.governance.approvers.push({
125
+ name: options.approver,
126
+ date: new Date().toISOString()
127
+ });
128
+ fs.writeFileSync(planPath, JSON.stringify(plan, null, 2));
129
+ console.log(`[Evolith CLI] Plan approved. Ready for execution.`);
130
+ });
131
+ return planCmd;
132
+ }
133
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/plan/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,0CA0GC;AAlHD,yCAAoC;AACpC,uCAAyB;AACzB,2CAA6B;AAE7B,0DAAqF;AACrF,sDAA8D;AAC9D,4FAAuF;AAEvF,SAAgB,eAAe;IAC7B,MAAM,OAAO,GAAG,IAAI,mBAAO,CAAC,MAAM,CAAC;SAChC,WAAW,CAAC,+DAA+D,CAAC,CAAC;IAEhF,MAAM,WAAW,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,YAAY,EAAE,wBAAwB,CAAC,CAAC;IAE3F,MAAM,cAAc,GAAG,GAAG,EAAE;QAC1B,MAAM,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,YAAY,CAAC,CAAC;QACnD,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC;YAAE,EAAE,CAAC,SAAS,CAAC,GAAG,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAClE,CAAC,CAAC;IAEF,OAAO;SACJ,OAAO,CAAC,QAAQ,CAAC;SACjB,WAAW,CAAC,oDAAoD,CAAC;SACjE,MAAM,CAAC,wBAAwB,EAAE,qDAAqD,CA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,OAAO;QACT,CAAC;QAED,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;QAC3D,IAAI,IAAI,CAAC,MAAM,KAAK,oCAAsB,CAAC,YAAY,EAAE,CAAC;YACxD,OAAO,CAAC,KAAK,CAAC,kEAAkE,CAAC,CAAC;YAClF,OAAO;QACT,CAAC;QAED,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC;YACtB,OAAO,CAAC,KAAK,CAAC,oEAAoE,CAAC,CAAC;YACpF,OAAO;QACT,CAAC;QAED,OAAO,CAAC,GAAG,CAAC,mCAAmC,OAAO,CAAC,QAAQ,KAAK,CAAC,CAAC;QACtE,IAAI,CAAC,MAAM,GAAG,oCAAsB,CAAC,QAAQ,CAAC;QAC9C,IAAI,CAAC,UAAU,CAAC,SAAS,GAAG,IAAI,CAAC,UAAU,CAAC,SAAS,IAAI,EAAE,CAAC;QAC5D,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,IAAI,CAAC;YAC7B,IAAI,EAAE,OAAO,CAAC,QAAQ;YACtB,IAAI,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;SAC/B,CAAC,CAAC;QAEH,EAAE,CAAC,aAAa,CAAC,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;QAC1D,OAAO,CAAC,GAAG,CAAC,mDAAmD,CAAC,CAAC;IACnE,CAAC,CAAC,CAAC;IAEL,OAAO,OAAO,CAAC;AACjB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { SatelliteCreateCommand } from './satellite-create.command';
2
+ export { SatelliteAdoptCommand } from './satellite-adopt.command';
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SatelliteAdoptCommand = exports.SatelliteCreateCommand = void 0;
4
+ var satellite_create_command_1 = require("./satellite-create.command");
5
+ Object.defineProperty(exports, "SatelliteCreateCommand", { enumerable: true, get: function () { return satellite_create_command_1.SatelliteCreateCommand; } });
6
+ var satellite_adopt_command_1 = require("./satellite-adopt.command");
7
+ Object.defineProperty(exports, "SatelliteAdoptCommand", { enumerable: true, get: function () { return satellite_adopt_command_1.SatelliteAdoptCommand; } });
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/satellite/index.ts"],"names":[],"mappings":";;;AAAA,uEAAoE;AAA3D,kIAAA,sBAAsB,OAAA;AAC/B,qEAAkE;AAAzD,gIAAA,qBAAqB,OAAA"}
@@ -0,0 +1,21 @@
1
+ import { BaseEvolithCommand } from '../../infrastructure/cli/base-command';
2
+ import { PromptService } from '../../infrastructure/prompts/prompt.service';
3
+ import { ConfigService } from '../../infrastructure/config/config.service';
4
+ interface SatelliteAdoptCommandOptions {
5
+ repo?: string;
6
+ topology?: string;
7
+ phase?: string;
8
+ token?: string;
9
+ owner?: string;
10
+ }
11
+ export declare class SatelliteAdoptCommand extends BaseEvolithCommand {
12
+ constructor(promptService: PromptService, configService?: ConfigService);
13
+ executeCommand(_passedParam: string[], options?: SatelliteAdoptCommandOptions): Promise<void>;
14
+ parseRepo(val: string): string;
15
+ parseTopology(val: string): string;
16
+ parsePhase(val: string): string;
17
+ parseToken(val: string): string;
18
+ parseOwner(val: string): string;
19
+ private parseRepoUrl;
20
+ }
21
+ export {};