@llm-dev-ops/agentics-cli 1.0.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.
- package/README.md +1 -0
- package/dist/adapters/base-adapter.d.ts +73 -0
- package/dist/adapters/base-adapter.d.ts.map +1 -0
- package/dist/adapters/base-adapter.js +311 -0
- package/dist/adapters/base-adapter.js.map +1 -0
- package/dist/adapters/index.d.ts +8 -0
- package/dist/adapters/index.d.ts.map +1 -0
- package/dist/adapters/index.js +7 -0
- package/dist/adapters/index.js.map +1 -0
- package/dist/audit/audit-trail.d.ts +68 -0
- package/dist/audit/audit-trail.d.ts.map +1 -0
- package/dist/audit/audit-trail.js +172 -0
- package/dist/audit/audit-trail.js.map +1 -0
- package/dist/cli/index.d.ts +15 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +265 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/commands/deploy.d.ts +23 -0
- package/dist/commands/deploy.d.ts.map +1 -0
- package/dist/commands/deploy.js +97 -0
- package/dist/commands/deploy.js.map +1 -0
- package/dist/commands/diligence.d.ts +23 -0
- package/dist/commands/diligence.d.ts.map +1 -0
- package/dist/commands/diligence.js +97 -0
- package/dist/commands/diligence.js.map +1 -0
- package/dist/commands/export.d.ts +23 -0
- package/dist/commands/export.d.ts.map +1 -0
- package/dist/commands/export.js +99 -0
- package/dist/commands/export.js.map +1 -0
- package/dist/commands/index.d.ts +20 -0
- package/dist/commands/index.d.ts.map +1 -0
- package/dist/commands/index.js +13 -0
- package/dist/commands/index.js.map +1 -0
- package/dist/commands/inspect.d.ts +25 -0
- package/dist/commands/inspect.d.ts.map +1 -0
- package/dist/commands/inspect.js +101 -0
- package/dist/commands/inspect.js.map +1 -0
- package/dist/commands/plan.d.ts +23 -0
- package/dist/commands/plan.d.ts.map +1 -0
- package/dist/commands/plan.js +114 -0
- package/dist/commands/plan.js.map +1 -0
- package/dist/commands/quantify.d.ts +26 -0
- package/dist/commands/quantify.d.ts.map +1 -0
- package/dist/commands/quantify.js +102 -0
- package/dist/commands/quantify.js.map +1 -0
- package/dist/commands/simulate.d.ts +23 -0
- package/dist/commands/simulate.d.ts.map +1 -0
- package/dist/commands/simulate.js +97 -0
- package/dist/commands/simulate.js.map +1 -0
- package/dist/config/endpoints.d.ts +16 -0
- package/dist/config/endpoints.d.ts.map +1 -0
- package/dist/config/endpoints.js +73 -0
- package/dist/config/endpoints.js.map +1 -0
- package/dist/errors/index.d.ts +120 -0
- package/dist/errors/index.d.ts.map +1 -0
- package/dist/errors/index.js +281 -0
- package/dist/errors/index.js.map +1 -0
- package/dist/modules/artifact-handoff.d.ts +57 -0
- package/dist/modules/artifact-handoff.d.ts.map +1 -0
- package/dist/modules/artifact-handoff.js +85 -0
- package/dist/modules/artifact-handoff.js.map +1 -0
- package/dist/modules/command-parser.d.ts +28 -0
- package/dist/modules/command-parser.d.ts.map +1 -0
- package/dist/modules/command-parser.js +176 -0
- package/dist/modules/command-parser.js.map +1 -0
- package/dist/modules/index.d.ts +14 -0
- package/dist/modules/index.d.ts.map +1 -0
- package/dist/modules/index.js +10 -0
- package/dist/modules/index.js.map +1 -0
- package/dist/modules/orchestration-engine.d.ts +43 -0
- package/dist/modules/orchestration-engine.d.ts.map +1 -0
- package/dist/modules/orchestration-engine.js +159 -0
- package/dist/modules/orchestration-engine.js.map +1 -0
- package/dist/modules/output-renderer.d.ts +51 -0
- package/dist/modules/output-renderer.d.ts.map +1 -0
- package/dist/modules/output-renderer.js +193 -0
- package/dist/modules/output-renderer.js.map +1 -0
- package/dist/types/index.d.ts +223 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +33 -0
- package/dist/types/index.js.map +1 -0
- package/package.json +64 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Output Rendering Module (Module E)
|
|
3
|
+
*
|
|
4
|
+
* SPARC Architecture Reference: §2.6
|
|
5
|
+
*
|
|
6
|
+
* PURPOSE: Format output for display
|
|
7
|
+
*
|
|
8
|
+
* DEPENDENCIES: None
|
|
9
|
+
*
|
|
10
|
+
* FORBIDDEN:
|
|
11
|
+
* - Data Transformation (NO semantic changes)
|
|
12
|
+
* - Data Validation (NO schema checking)
|
|
13
|
+
* - Business Logic (NO conditional processing)
|
|
14
|
+
* - Side Effects (NO logging or metrics)
|
|
15
|
+
*/
|
|
16
|
+
import type { OutputOptions, BaseReference, OrchestrationResult, ErrorInfo } from '../types/index.js';
|
|
17
|
+
export interface IOutputRenderer {
|
|
18
|
+
render(data: unknown, options: OutputOptions): string;
|
|
19
|
+
renderReference(ref: BaseReference, options: OutputOptions): string;
|
|
20
|
+
renderResult(result: OrchestrationResult, options: OutputOptions): string;
|
|
21
|
+
renderError(error: ErrorInfo, options: OutputOptions): string;
|
|
22
|
+
}
|
|
23
|
+
export declare class OutputRenderer implements IOutputRenderer {
|
|
24
|
+
/**
|
|
25
|
+
* Render arbitrary data to specified format
|
|
26
|
+
* PASSTHROUGH: No transformation of data semantics
|
|
27
|
+
*/
|
|
28
|
+
render(data: unknown, options: OutputOptions): string;
|
|
29
|
+
/**
|
|
30
|
+
* Render a reference object
|
|
31
|
+
*/
|
|
32
|
+
renderReference(ref: BaseReference, options: OutputOptions): string;
|
|
33
|
+
/**
|
|
34
|
+
* Render orchestration result
|
|
35
|
+
*/
|
|
36
|
+
renderResult(result: OrchestrationResult, options: OutputOptions): string;
|
|
37
|
+
/**
|
|
38
|
+
* Render error information
|
|
39
|
+
*/
|
|
40
|
+
renderError(error: ErrorInfo, options: OutputOptions): string;
|
|
41
|
+
private toJson;
|
|
42
|
+
private toYaml;
|
|
43
|
+
private objectToYaml;
|
|
44
|
+
private toTable;
|
|
45
|
+
private toCsv;
|
|
46
|
+
private escapeCsv;
|
|
47
|
+
private toText;
|
|
48
|
+
private formatValue;
|
|
49
|
+
}
|
|
50
|
+
export declare function createOutputRenderer(): IOutputRenderer;
|
|
51
|
+
//# sourceMappingURL=output-renderer.d.ts.map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|
|
|
1
|
+
/**
|
|
2
|
+
* Output Rendering Module (Module E)
|
|
3
|
+
*
|
|
4
|
+
* SPARC Architecture Reference: §2.6
|
|
5
|
+
*
|
|
6
|
+
* PURPOSE: Format output for display
|
|
7
|
+
*
|
|
8
|
+
* DEPENDENCIES: None
|
|
9
|
+
*
|
|
10
|
+
* FORBIDDEN:
|
|
11
|
+
* - Data Transformation (NO semantic changes)
|
|
12
|
+
* - Data Validation (NO schema checking)
|
|
13
|
+
* - Business Logic (NO conditional processing)
|
|
14
|
+
* - Side Effects (NO logging or metrics)
|
|
15
|
+
*/
|
|
16
|
+
// ============================================================================
|
|
17
|
+
// Output Renderer Implementation
|
|
18
|
+
// ============================================================================
|
|
19
|
+
export class OutputRenderer {
|
|
20
|
+
/**
|
|
21
|
+
* Render arbitrary data to specified format
|
|
22
|
+
* PASSTHROUGH: No transformation of data semantics
|
|
23
|
+
*/
|
|
24
|
+
render(data, options) {
|
|
25
|
+
switch (options.format) {
|
|
26
|
+
case 'json':
|
|
27
|
+
return this.toJson(data, options.pretty ?? false);
|
|
28
|
+
case 'yaml':
|
|
29
|
+
return this.toYaml(data);
|
|
30
|
+
case 'table':
|
|
31
|
+
return this.toTable(data);
|
|
32
|
+
case 'csv':
|
|
33
|
+
return this.toCsv(data);
|
|
34
|
+
case 'text':
|
|
35
|
+
default:
|
|
36
|
+
return this.toText(data);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Render a reference object
|
|
41
|
+
*/
|
|
42
|
+
renderReference(ref, options) {
|
|
43
|
+
return this.render(ref, options);
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Render orchestration result
|
|
47
|
+
*/
|
|
48
|
+
renderResult(result, options) {
|
|
49
|
+
return this.render(result, options);
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Render error information
|
|
53
|
+
*/
|
|
54
|
+
renderError(error, options) {
|
|
55
|
+
if (options.format === 'json') {
|
|
56
|
+
return this.toJson(error, options.pretty ?? false);
|
|
57
|
+
}
|
|
58
|
+
// Text format for errors
|
|
59
|
+
let output = `Error [${error.code}]: ${error.message}`;
|
|
60
|
+
if (error.details && Object.keys(error.details).length > 0) {
|
|
61
|
+
output += `\n Details: ${JSON.stringify(error.details)}`;
|
|
62
|
+
}
|
|
63
|
+
if (error.correlationId) {
|
|
64
|
+
output += `\n Correlation ID: ${error.correlationId}`;
|
|
65
|
+
}
|
|
66
|
+
return output;
|
|
67
|
+
}
|
|
68
|
+
// ============================================================================
|
|
69
|
+
// Format Converters
|
|
70
|
+
// ============================================================================
|
|
71
|
+
toJson(data, pretty) {
|
|
72
|
+
return pretty
|
|
73
|
+
? JSON.stringify(data, null, 2)
|
|
74
|
+
: JSON.stringify(data);
|
|
75
|
+
}
|
|
76
|
+
toYaml(data) {
|
|
77
|
+
// Simple YAML conversion (no external dependencies per SPARC)
|
|
78
|
+
return this.objectToYaml(data, 0);
|
|
79
|
+
}
|
|
80
|
+
objectToYaml(data, indent) {
|
|
81
|
+
const prefix = ' '.repeat(indent);
|
|
82
|
+
if (data === null || data === undefined) {
|
|
83
|
+
return 'null';
|
|
84
|
+
}
|
|
85
|
+
if (typeof data === 'string') {
|
|
86
|
+
// Quote strings that need it
|
|
87
|
+
if (data.includes('\n') || data.includes(':') || data.includes('#')) {
|
|
88
|
+
return `"${data.replace(/"/g, '\\"')}"`;
|
|
89
|
+
}
|
|
90
|
+
return data;
|
|
91
|
+
}
|
|
92
|
+
if (typeof data === 'number' || typeof data === 'boolean') {
|
|
93
|
+
return String(data);
|
|
94
|
+
}
|
|
95
|
+
if (Array.isArray(data)) {
|
|
96
|
+
if (data.length === 0)
|
|
97
|
+
return '[]';
|
|
98
|
+
return data
|
|
99
|
+
.map(item => `${prefix}- ${this.objectToYaml(item, indent + 1).trimStart()}`)
|
|
100
|
+
.join('\n');
|
|
101
|
+
}
|
|
102
|
+
if (typeof data === 'object') {
|
|
103
|
+
const obj = data;
|
|
104
|
+
const keys = Object.keys(obj);
|
|
105
|
+
if (keys.length === 0)
|
|
106
|
+
return '{}';
|
|
107
|
+
return keys
|
|
108
|
+
.map(key => {
|
|
109
|
+
const value = obj[key];
|
|
110
|
+
const valueStr = this.objectToYaml(value, indent + 1);
|
|
111
|
+
if (typeof value === 'object' && value !== null && !Array.isArray(value)) {
|
|
112
|
+
return `${prefix}${key}:\n${valueStr}`;
|
|
113
|
+
}
|
|
114
|
+
return `${prefix}${key}: ${valueStr}`;
|
|
115
|
+
})
|
|
116
|
+
.join('\n');
|
|
117
|
+
}
|
|
118
|
+
return String(data);
|
|
119
|
+
}
|
|
120
|
+
toTable(data) {
|
|
121
|
+
if (!data || typeof data !== 'object') {
|
|
122
|
+
return String(data);
|
|
123
|
+
}
|
|
124
|
+
// Handle array of objects
|
|
125
|
+
if (Array.isArray(data)) {
|
|
126
|
+
if (data.length === 0)
|
|
127
|
+
return '(empty)';
|
|
128
|
+
const firstItem = data[0];
|
|
129
|
+
if (typeof firstItem !== 'object' || firstItem === null) {
|
|
130
|
+
return data.map(String).join('\n');
|
|
131
|
+
}
|
|
132
|
+
const headers = Object.keys(firstItem);
|
|
133
|
+
const rows = data.map(item => {
|
|
134
|
+
const obj = item;
|
|
135
|
+
return headers.map(h => String(obj[h] ?? '')).join('\t');
|
|
136
|
+
});
|
|
137
|
+
return [headers.join('\t'), ...rows].join('\n');
|
|
138
|
+
}
|
|
139
|
+
// Handle single object
|
|
140
|
+
const obj = data;
|
|
141
|
+
return Object.entries(obj)
|
|
142
|
+
.map(([key, value]) => `${key}: ${this.formatValue(value)}`)
|
|
143
|
+
.join('\n');
|
|
144
|
+
}
|
|
145
|
+
toCsv(data) {
|
|
146
|
+
if (!Array.isArray(data)) {
|
|
147
|
+
return this.toTable(data);
|
|
148
|
+
}
|
|
149
|
+
if (data.length === 0)
|
|
150
|
+
return '';
|
|
151
|
+
const firstItem = data[0];
|
|
152
|
+
if (typeof firstItem !== 'object' || firstItem === null) {
|
|
153
|
+
return data.map(item => this.escapeCsv(String(item))).join('\n');
|
|
154
|
+
}
|
|
155
|
+
const headers = Object.keys(firstItem);
|
|
156
|
+
const headerRow = headers.map(h => this.escapeCsv(h)).join(',');
|
|
157
|
+
const rows = data.map(item => {
|
|
158
|
+
const obj = item;
|
|
159
|
+
return headers.map(h => this.escapeCsv(String(obj[h] ?? ''))).join(',');
|
|
160
|
+
});
|
|
161
|
+
return [headerRow, ...rows].join('\n');
|
|
162
|
+
}
|
|
163
|
+
escapeCsv(value) {
|
|
164
|
+
if (value.includes(',') || value.includes('"') || value.includes('\n')) {
|
|
165
|
+
return `"${value.replace(/"/g, '""')}"`;
|
|
166
|
+
}
|
|
167
|
+
return value;
|
|
168
|
+
}
|
|
169
|
+
toText(data) {
|
|
170
|
+
if (typeof data === 'string')
|
|
171
|
+
return data;
|
|
172
|
+
if (data === null || data === undefined)
|
|
173
|
+
return '';
|
|
174
|
+
if (typeof data === 'object') {
|
|
175
|
+
return JSON.stringify(data, null, 2);
|
|
176
|
+
}
|
|
177
|
+
return String(data);
|
|
178
|
+
}
|
|
179
|
+
formatValue(value) {
|
|
180
|
+
if (value === null || value === undefined)
|
|
181
|
+
return '';
|
|
182
|
+
if (typeof value === 'object')
|
|
183
|
+
return JSON.stringify(value);
|
|
184
|
+
return String(value);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
// ============================================================================
|
|
188
|
+
// Factory Function
|
|
189
|
+
// ============================================================================
|
|
190
|
+
export function createOutputRenderer() {
|
|
191
|
+
return new OutputRenderer();
|
|
192
|
+
}
|
|
193
|
+
//# sourceMappingURL=output-renderer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"output-renderer.js","sourceRoot":"","sources":["../../src/modules/output-renderer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAoBH,+EAA+E;AAC/E,iCAAiC;AACjC,+EAA+E;AAE/E,MAAM,OAAO,cAAc;IACzB;;;OAGG;IACH,MAAM,CAAC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,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;YACvE,OAAO,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC;QAC1C,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IAEO,MAAM,CAAC,IAAa;QAC1B,IAAI,OAAO,IAAI,KAAK,QAAQ;YAAE,OAAO,IAAI,CAAC;QAC1C,IAAI,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,SAAS;YAAE,OAAO,EAAE,CAAC;QACnD,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;YAC7B,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;QACvC,CAAC;QACD,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IAEO,WAAW,CAAC,KAAc;QAChC,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS;YAAE,OAAO,EAAE,CAAC;QACrD,IAAI,OAAO,KAAK,KAAK,QAAQ;YAAE,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QAC5D,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;IACvB,CAAC;CACF;AAED,+EAA+E;AAC/E,mBAAmB;AACnB,+EAA+E;AAE/E,MAAM,UAAU,oBAAoB;IAClC,OAAO,IAAI,cAAc,EAAE,CAAC;AAC9B,CAAC"}
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type Definitions for agentics-cli
|
|
3
|
+
*
|
|
4
|
+
* SPARC Architecture Reference:
|
|
5
|
+
* - All types defined here are used across modules
|
|
6
|
+
* - Types are interface-based for loose coupling
|
|
7
|
+
* - No business logic in type definitions
|
|
8
|
+
*/
|
|
9
|
+
export interface BaseReference {
|
|
10
|
+
id: string;
|
|
11
|
+
type: ReferenceType;
|
|
12
|
+
repository: string;
|
|
13
|
+
created_at: string;
|
|
14
|
+
checksum: string;
|
|
15
|
+
}
|
|
16
|
+
export type ReferenceType = 'ManifestReference' | 'PlanReference' | 'SimulationReference' | 'SimulationOutputReference' | 'RoiReportReference' | 'IntentReference' | 'ExportReference' | 'DiligencePackageReference';
|
|
17
|
+
export interface PlanReference extends BaseReference {
|
|
18
|
+
type: 'PlanReference';
|
|
19
|
+
repository: 'agentics-simulation-planner';
|
|
20
|
+
manifest_ref?: ManifestReference;
|
|
21
|
+
}
|
|
22
|
+
export interface ManifestReference extends BaseReference {
|
|
23
|
+
type: 'ManifestReference';
|
|
24
|
+
repository: 'agentics-org-manifests';
|
|
25
|
+
}
|
|
26
|
+
export interface SimulationReference extends BaseReference {
|
|
27
|
+
type: 'SimulationReference';
|
|
28
|
+
repository: 'agentics-simulation-runner';
|
|
29
|
+
plan_ref: PlanReference;
|
|
30
|
+
iteration_count?: number;
|
|
31
|
+
}
|
|
32
|
+
export interface SimulationOutputReference extends BaseReference {
|
|
33
|
+
type: 'SimulationOutputReference';
|
|
34
|
+
repository: 'agentics-simulation-engine';
|
|
35
|
+
sim_ref: SimulationReference;
|
|
36
|
+
output_type: SimulationOutputType;
|
|
37
|
+
artifact_location: string;
|
|
38
|
+
}
|
|
39
|
+
export type SimulationOutputType = 'metrics' | 'logs' | 'state' | 'events' | 'summary' | 'full';
|
|
40
|
+
export interface RoiReportReference extends BaseReference {
|
|
41
|
+
type: 'RoiReportReference';
|
|
42
|
+
repository: 'enterprise-roi-engine';
|
|
43
|
+
sim_ref: SimulationReference;
|
|
44
|
+
report_type: RoiReportType;
|
|
45
|
+
artifact_location: string;
|
|
46
|
+
}
|
|
47
|
+
export type RoiReportType = 'executive-summary' | 'detailed-analysis' | 'cfo-grade' | 'custom';
|
|
48
|
+
export interface IntentReference extends BaseReference {
|
|
49
|
+
type: 'IntentReference';
|
|
50
|
+
repository: 'agentics-deployment-intent';
|
|
51
|
+
sim_ref: SimulationReference;
|
|
52
|
+
status: IntentStatus;
|
|
53
|
+
}
|
|
54
|
+
export type IntentStatus = 'pending' | 'approved' | 'rejected';
|
|
55
|
+
export interface ExportReference extends BaseReference {
|
|
56
|
+
type: 'ExportReference';
|
|
57
|
+
repository: 'agentics-deployment-exporters';
|
|
58
|
+
intent_ref: IntentReference;
|
|
59
|
+
format: ExportFormat;
|
|
60
|
+
artifact_location: string;
|
|
61
|
+
}
|
|
62
|
+
export type ExportFormat = 'terraform' | 'kubernetes' | 'cloudformation' | 'pulumi' | 'ansible' | 'custom';
|
|
63
|
+
export interface DiligencePackageReference extends BaseReference {
|
|
64
|
+
type: 'DiligencePackageReference';
|
|
65
|
+
repository: 'diligence-artifacts';
|
|
66
|
+
source_refs: BaseReference[];
|
|
67
|
+
frameworks: ComplianceFramework[];
|
|
68
|
+
package_location: string;
|
|
69
|
+
}
|
|
70
|
+
export type ComplianceFramework = 'SOC2' | 'HIPAA' | 'GDPR' | 'PCI-DSS' | 'custom';
|
|
71
|
+
export interface CommandObject {
|
|
72
|
+
command: string;
|
|
73
|
+
subcommand?: string;
|
|
74
|
+
flags: Record<string, boolean>;
|
|
75
|
+
options: Record<string, string>;
|
|
76
|
+
positionalArgs: string[];
|
|
77
|
+
}
|
|
78
|
+
export interface CommandOptions {
|
|
79
|
+
timeout?: number;
|
|
80
|
+
trace_id?: string;
|
|
81
|
+
format?: OutputFormat;
|
|
82
|
+
verbose?: boolean;
|
|
83
|
+
}
|
|
84
|
+
export interface OrchestrationResult {
|
|
85
|
+
stages: StageResult[];
|
|
86
|
+
artifacts: ArtifactReference[];
|
|
87
|
+
timing: TimingInfo;
|
|
88
|
+
success: boolean;
|
|
89
|
+
}
|
|
90
|
+
export interface StageResult {
|
|
91
|
+
name: string;
|
|
92
|
+
status: StageStatus;
|
|
93
|
+
response: unknown;
|
|
94
|
+
error?: ErrorInfo;
|
|
95
|
+
timing: number;
|
|
96
|
+
}
|
|
97
|
+
export type StageStatus = 'pending' | 'running' | 'complete' | 'failed';
|
|
98
|
+
export interface ArtifactReference {
|
|
99
|
+
id: string;
|
|
100
|
+
type: string;
|
|
101
|
+
location: string;
|
|
102
|
+
checksum?: string;
|
|
103
|
+
metadata?: Record<string, string>;
|
|
104
|
+
}
|
|
105
|
+
export interface TimingInfo {
|
|
106
|
+
total: number;
|
|
107
|
+
breakdown: Record<string, number>;
|
|
108
|
+
started_at: string;
|
|
109
|
+
completed_at: string;
|
|
110
|
+
}
|
|
111
|
+
export interface AdapterRequest {
|
|
112
|
+
endpoint: string;
|
|
113
|
+
method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
|
|
114
|
+
headers: Record<string, string>;
|
|
115
|
+
body?: unknown;
|
|
116
|
+
timeout?: number;
|
|
117
|
+
}
|
|
118
|
+
export interface AdapterResponse {
|
|
119
|
+
status: number;
|
|
120
|
+
headers: Record<string, string>;
|
|
121
|
+
body: unknown;
|
|
122
|
+
timing: number;
|
|
123
|
+
}
|
|
124
|
+
export interface HealthStatus {
|
|
125
|
+
healthy: boolean;
|
|
126
|
+
latency: number;
|
|
127
|
+
version?: string;
|
|
128
|
+
}
|
|
129
|
+
export interface EndpointConfig {
|
|
130
|
+
baseUrl: string;
|
|
131
|
+
version: string;
|
|
132
|
+
timeout: number;
|
|
133
|
+
}
|
|
134
|
+
export interface ErrorInfo {
|
|
135
|
+
code: string;
|
|
136
|
+
category: ErrorCategory;
|
|
137
|
+
message: string;
|
|
138
|
+
details?: Record<string, unknown>;
|
|
139
|
+
stack?: string;
|
|
140
|
+
timestamp: string;
|
|
141
|
+
module: string;
|
|
142
|
+
correlationId?: string;
|
|
143
|
+
}
|
|
144
|
+
export type ErrorCategory = 'INPUT_ERROR' | 'NETWORK_ERROR' | 'DOWNSTREAM_ERROR' | 'INTERNAL_ERROR' | 'CONFIG_ERROR' | 'AUTH_ERROR';
|
|
145
|
+
export interface ContractViolation {
|
|
146
|
+
service: string;
|
|
147
|
+
expected_contract: string;
|
|
148
|
+
actual_response: unknown;
|
|
149
|
+
violation_type: ViolationType;
|
|
150
|
+
}
|
|
151
|
+
export type ViolationType = 'schema_mismatch' | 'missing_field' | 'type_error' | 'missing_contract';
|
|
152
|
+
export interface AuditEntry {
|
|
153
|
+
id: string;
|
|
154
|
+
version: string;
|
|
155
|
+
command: string;
|
|
156
|
+
inputs_hash: string;
|
|
157
|
+
inputs_redacted: unknown;
|
|
158
|
+
outputs: BaseReference | null;
|
|
159
|
+
dependencies: string[];
|
|
160
|
+
timestamp: string;
|
|
161
|
+
duration_ms: number;
|
|
162
|
+
status: 'SUCCESS' | 'FAILED';
|
|
163
|
+
error_code?: string;
|
|
164
|
+
error_message?: string;
|
|
165
|
+
trace_id: string;
|
|
166
|
+
parent_id?: string;
|
|
167
|
+
checksum: string;
|
|
168
|
+
}
|
|
169
|
+
export interface DownstreamCall {
|
|
170
|
+
service: string;
|
|
171
|
+
method: string;
|
|
172
|
+
timestamp: string;
|
|
173
|
+
duration_ms: number;
|
|
174
|
+
success: boolean;
|
|
175
|
+
}
|
|
176
|
+
export type OutputFormat = 'json' | 'yaml' | 'table' | 'text' | 'csv';
|
|
177
|
+
export interface OutputOptions {
|
|
178
|
+
format: OutputFormat;
|
|
179
|
+
pretty?: boolean;
|
|
180
|
+
colorize?: boolean;
|
|
181
|
+
destination?: 'stdout' | 'stderr' | string;
|
|
182
|
+
includeStack?: boolean;
|
|
183
|
+
}
|
|
184
|
+
export interface CLIConfig {
|
|
185
|
+
endpoints: EndpointRegistry;
|
|
186
|
+
timeout: number;
|
|
187
|
+
trace_id?: string;
|
|
188
|
+
auth_token?: string;
|
|
189
|
+
log_level: LogLevel;
|
|
190
|
+
}
|
|
191
|
+
export type LogLevel = 'error' | 'warn' | 'info' | 'debug';
|
|
192
|
+
export interface EndpointRegistry {
|
|
193
|
+
'agentics-org-manifests': EndpointConfig;
|
|
194
|
+
'agentics-simulation-planner': EndpointConfig;
|
|
195
|
+
'agentics-simulation-runner': EndpointConfig;
|
|
196
|
+
'agentics-simulation-engine': EndpointConfig;
|
|
197
|
+
'enterprise-roi-engine': EndpointConfig;
|
|
198
|
+
'agentics-deployment-intent': EndpointConfig;
|
|
199
|
+
'agentics-deployment-exporters': EndpointConfig;
|
|
200
|
+
'diligence-artifacts': EndpointConfig;
|
|
201
|
+
}
|
|
202
|
+
export declare const EXIT_CODES: {
|
|
203
|
+
readonly SUCCESS: 0;
|
|
204
|
+
readonly GENERAL_ERROR: 1;
|
|
205
|
+
readonly MISUSE: 2;
|
|
206
|
+
readonly USAGE_ERROR: 64;
|
|
207
|
+
readonly DATA_FORMAT_ERROR: 65;
|
|
208
|
+
readonly CANNOT_OPEN_INPUT: 66;
|
|
209
|
+
readonly SERVICE_UNAVAILABLE: 69;
|
|
210
|
+
readonly INTERNAL_ERROR: 70;
|
|
211
|
+
readonly IO_ERROR: 74;
|
|
212
|
+
readonly TEMPORARY_FAILURE: 75;
|
|
213
|
+
readonly PERMISSION_DENIED: 77;
|
|
214
|
+
readonly CONFIG_ERROR: 78;
|
|
215
|
+
readonly ARG_VALIDATION_ERROR: 100;
|
|
216
|
+
readonly CONFIG_VALIDATION_ERROR: 110;
|
|
217
|
+
readonly NETWORK_ERROR: 120;
|
|
218
|
+
readonly AUTH_ERROR: 130;
|
|
219
|
+
readonly SERVICE_ERROR: 140;
|
|
220
|
+
readonly INTERNAL_CLI_ERROR: 150;
|
|
221
|
+
};
|
|
222
|
+
export type ExitCode = (typeof EXIT_CODES)[keyof typeof EXIT_CODES];
|
|
223
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAMH,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,aAAa,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;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C,uBAAuB,EAAE,cAAc,CAAC;IACxC,4BAA4B,EAAE,cAAc,CAAC;IAC7C,+BAA+B,EAAE,cAAc,CAAC;IAChD,qBAAqB,EAAE,cAAc,CAAC;CACvC;AAMD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;CAoBb,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,OAAO,UAAU,CAAC,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type Definitions for agentics-cli
|
|
3
|
+
*
|
|
4
|
+
* SPARC Architecture Reference:
|
|
5
|
+
* - All types defined here are used across modules
|
|
6
|
+
* - Types are interface-based for loose coupling
|
|
7
|
+
* - No business logic in type definitions
|
|
8
|
+
*/
|
|
9
|
+
// ============================================================================
|
|
10
|
+
// Exit Codes (SPARC_REFINEMENT §5.5)
|
|
11
|
+
// ============================================================================
|
|
12
|
+
export const EXIT_CODES = {
|
|
13
|
+
SUCCESS: 0,
|
|
14
|
+
GENERAL_ERROR: 1,
|
|
15
|
+
MISUSE: 2,
|
|
16
|
+
USAGE_ERROR: 64,
|
|
17
|
+
DATA_FORMAT_ERROR: 65,
|
|
18
|
+
CANNOT_OPEN_INPUT: 66,
|
|
19
|
+
SERVICE_UNAVAILABLE: 69,
|
|
20
|
+
INTERNAL_ERROR: 70,
|
|
21
|
+
IO_ERROR: 74,
|
|
22
|
+
TEMPORARY_FAILURE: 75,
|
|
23
|
+
PERMISSION_DENIED: 77,
|
|
24
|
+
CONFIG_ERROR: 78,
|
|
25
|
+
// Reserved for agentics-cli
|
|
26
|
+
ARG_VALIDATION_ERROR: 100,
|
|
27
|
+
CONFIG_VALIDATION_ERROR: 110,
|
|
28
|
+
NETWORK_ERROR: 120,
|
|
29
|
+
AUTH_ERROR: 130,
|
|
30
|
+
SERVICE_ERROR: 140,
|
|
31
|
+
INTERNAL_CLI_ERROR: 150,
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAsSH,+EAA+E;AAC/E,qCAAqC;AACrC,+EAA+E;AAE/E,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,OAAO,EAAE,CAAC;IACV,aAAa,EAAE,CAAC;IAChB,MAAM,EAAE,CAAC;IACT,WAAW,EAAE,EAAE;IACf,iBAAiB,EAAE,EAAE;IACrB,iBAAiB,EAAE,EAAE;IACrB,mBAAmB,EAAE,EAAE;IACvB,cAAc,EAAE,EAAE;IAClB,QAAQ,EAAE,EAAE;IACZ,iBAAiB,EAAE,EAAE;IACrB,iBAAiB,EAAE,EAAE;IACrB,YAAY,EAAE,EAAE;IAChB,4BAA4B;IAC5B,oBAAoB,EAAE,GAAG;IACzB,uBAAuB,EAAE,GAAG;IAC5B,aAAa,EAAE,GAAG;IAClB,UAAU,EAAE,GAAG;IACf,aAAa,EAAE,GAAG;IAClB,kBAAkB,EAAE,GAAG;CACf,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@llm-dev-ops/agentics-cli",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Agentics CLI - Pure orchestration layer for agentics platform services",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/cli/index.js",
|
|
7
|
+
"bin": {
|
|
8
|
+
"agentics": "dist/cli/index.js"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"dist",
|
|
12
|
+
"README.md"
|
|
13
|
+
],
|
|
14
|
+
"scripts": {
|
|
15
|
+
"build": "tsc",
|
|
16
|
+
"clean": "rm -rf dist",
|
|
17
|
+
"dev": "tsc --watch",
|
|
18
|
+
"lint": "eslint src --ext .ts",
|
|
19
|
+
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
|
|
20
|
+
"test:unit": "npm test -- --testPathPattern=tests/unit",
|
|
21
|
+
"test:integration": "npm test -- --testPathPattern=tests/integration",
|
|
22
|
+
"test:e2e": "npm test -- --testPathPattern=tests/e2e",
|
|
23
|
+
"typecheck": "tsc --noEmit",
|
|
24
|
+
"prepublishOnly": "npm run clean && npm run build"
|
|
25
|
+
},
|
|
26
|
+
"keywords": [
|
|
27
|
+
"agentics",
|
|
28
|
+
"cli",
|
|
29
|
+
"orchestration",
|
|
30
|
+
"deployment",
|
|
31
|
+
"llm",
|
|
32
|
+
"ai-agents",
|
|
33
|
+
"simulation"
|
|
34
|
+
],
|
|
35
|
+
"author": "llm-dev-ops",
|
|
36
|
+
"license": "MIT",
|
|
37
|
+
"repository": {
|
|
38
|
+
"type": "git",
|
|
39
|
+
"url": "https://github.com/llm-dev-ops/agentics-cli.git"
|
|
40
|
+
},
|
|
41
|
+
"homepage": "https://github.com/llm-dev-ops/agentics-cli#readme",
|
|
42
|
+
"bugs": {
|
|
43
|
+
"url": "https://github.com/llm-dev-ops/agentics-cli/issues"
|
|
44
|
+
},
|
|
45
|
+
"publishConfig": {
|
|
46
|
+
"access": "public"
|
|
47
|
+
},
|
|
48
|
+
"engines": {
|
|
49
|
+
"node": ">=18.0.0"
|
|
50
|
+
},
|
|
51
|
+
"dependencies": {
|
|
52
|
+
"claude-flow": "^2.7.47"
|
|
53
|
+
},
|
|
54
|
+
"devDependencies": {
|
|
55
|
+
"@types/jest": "^29.0.0",
|
|
56
|
+
"@types/node": "^20.19.27",
|
|
57
|
+
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
|
58
|
+
"@typescript-eslint/parser": "^6.0.0",
|
|
59
|
+
"eslint": "^8.0.0",
|
|
60
|
+
"jest": "^29.0.0",
|
|
61
|
+
"ts-jest": "^29.0.0",
|
|
62
|
+
"typescript": "^5.9.3"
|
|
63
|
+
}
|
|
64
|
+
}
|