@llm-dev-ops/agentics-cli 1.3.2 → 1.3.4

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 (116) hide show
  1. package/dist/adapters/base-adapter.js +10 -10
  2. package/dist/adapters/base-adapter.js.map +1 -1
  3. package/dist/audit/audit-trail.js +1 -1
  4. package/dist/cli/index.js +6 -5
  5. package/dist/cli/index.js.map +1 -1
  6. package/dist/commands/deploy.d.ts +14 -5
  7. package/dist/commands/deploy.d.ts.map +1 -1
  8. package/dist/commands/deploy.js +58 -16
  9. package/dist/commands/deploy.js.map +1 -1
  10. package/dist/commands/diligence.d.ts +12 -4
  11. package/dist/commands/diligence.d.ts.map +1 -1
  12. package/dist/commands/diligence.js +54 -14
  13. package/dist/commands/diligence.js.map +1 -1
  14. package/dist/commands/export.d.ts +10 -3
  15. package/dist/commands/export.d.ts.map +1 -1
  16. package/dist/commands/export.js +56 -16
  17. package/dist/commands/export.js.map +1 -1
  18. package/dist/commands/inspect.d.ts +13 -7
  19. package/dist/commands/inspect.d.ts.map +1 -1
  20. package/dist/commands/inspect.js +57 -19
  21. package/dist/commands/inspect.js.map +1 -1
  22. package/dist/commands/plan.d.ts +11 -4
  23. package/dist/commands/plan.d.ts.map +1 -1
  24. package/dist/commands/plan.js +39 -12
  25. package/dist/commands/plan.js.map +1 -1
  26. package/dist/commands/quantify.d.ts +12 -6
  27. package/dist/commands/quantify.d.ts.map +1 -1
  28. package/dist/commands/quantify.js +56 -17
  29. package/dist/commands/quantify.js.map +1 -1
  30. package/dist/commands/simulate.d.ts +10 -3
  31. package/dist/commands/simulate.d.ts.map +1 -1
  32. package/dist/commands/simulate.js +69 -18
  33. package/dist/commands/simulate.js.map +1 -1
  34. package/dist/config/endpoints.d.ts.map +1 -1
  35. package/dist/config/endpoints.js +9 -8
  36. package/dist/config/endpoints.js.map +1 -1
  37. package/dist/contracts/index.d.ts +21 -0
  38. package/dist/contracts/index.d.ts.map +1 -0
  39. package/dist/contracts/index.js +20 -0
  40. package/dist/contracts/index.js.map +1 -0
  41. package/dist/contracts/schemas/index.d.ts +427 -0
  42. package/dist/contracts/schemas/index.d.ts.map +1 -0
  43. package/dist/contracts/schemas/index.js +228 -0
  44. package/dist/contracts/schemas/index.js.map +1 -0
  45. package/dist/contracts/validator.d.ts +60 -0
  46. package/dist/contracts/validator.d.ts.map +1 -0
  47. package/dist/contracts/validator.js +395 -0
  48. package/dist/contracts/validator.js.map +1 -0
  49. package/dist/server/index.d.ts +26 -0
  50. package/dist/server/index.d.ts.map +1 -0
  51. package/dist/server/index.js +144 -0
  52. package/dist/server/index.js.map +1 -0
  53. package/dist/server/routes/auth.d.ts +12 -0
  54. package/dist/server/routes/auth.d.ts.map +1 -0
  55. package/dist/server/routes/auth.js +111 -0
  56. package/dist/server/routes/auth.js.map +1 -0
  57. package/dist/server/routes/diligence.d.ts +12 -0
  58. package/dist/server/routes/diligence.d.ts.map +1 -0
  59. package/dist/server/routes/diligence.js +48 -0
  60. package/dist/server/routes/diligence.js.map +1 -0
  61. package/dist/server/routes/erpsurface.d.ts +11 -0
  62. package/dist/server/routes/erpsurface.d.ts.map +1 -0
  63. package/dist/server/routes/erpsurface.js +59 -0
  64. package/dist/server/routes/erpsurface.js.map +1 -0
  65. package/dist/server/routes/exporters.d.ts +12 -0
  66. package/dist/server/routes/exporters.d.ts.map +1 -0
  67. package/dist/server/routes/exporters.js +47 -0
  68. package/dist/server/routes/exporters.js.map +1 -0
  69. package/dist/server/routes/health.d.ts +11 -0
  70. package/dist/server/routes/health.d.ts.map +1 -0
  71. package/dist/server/routes/health.js +33 -0
  72. package/dist/server/routes/health.js.map +1 -0
  73. package/dist/server/routes/index.d.ts +17 -0
  74. package/dist/server/routes/index.d.ts.map +1 -0
  75. package/dist/server/routes/index.js +17 -0
  76. package/dist/server/routes/index.js.map +1 -0
  77. package/dist/server/routes/intent.d.ts +12 -0
  78. package/dist/server/routes/intent.d.ts.map +1 -0
  79. package/dist/server/routes/intent.js +50 -0
  80. package/dist/server/routes/intent.js.map +1 -0
  81. package/dist/server/routes/manifests.d.ts +12 -0
  82. package/dist/server/routes/manifests.d.ts.map +1 -0
  83. package/dist/server/routes/manifests.js +46 -0
  84. package/dist/server/routes/manifests.js.map +1 -0
  85. package/dist/server/routes/plans.d.ts +12 -0
  86. package/dist/server/routes/plans.d.ts.map +1 -0
  87. package/dist/server/routes/plans.js +47 -0
  88. package/dist/server/routes/plans.js.map +1 -0
  89. package/dist/server/routes/roi.d.ts +12 -0
  90. package/dist/server/routes/roi.d.ts.map +1 -0
  91. package/dist/server/routes/roi.js +48 -0
  92. package/dist/server/routes/roi.js.map +1 -0
  93. package/dist/server/routes/runner.d.ts +12 -0
  94. package/dist/server/routes/runner.d.ts.map +1 -0
  95. package/dist/server/routes/runner.js +50 -0
  96. package/dist/server/routes/runner.js.map +1 -0
  97. package/dist/server/routes/simulate.d.ts +13 -0
  98. package/dist/server/routes/simulate.d.ts.map +1 -0
  99. package/dist/server/routes/simulate.js +58 -0
  100. package/dist/server/routes/simulate.js.map +1 -0
  101. package/dist/server/utils/id-generator.d.ts +32 -0
  102. package/dist/server/utils/id-generator.d.ts.map +1 -0
  103. package/dist/server/utils/id-generator.js +51 -0
  104. package/dist/server/utils/id-generator.js.map +1 -0
  105. package/dist/server/utils/index.d.ts +8 -0
  106. package/dist/server/utils/index.d.ts.map +1 -0
  107. package/dist/server/utils/index.js +8 -0
  108. package/dist/server/utils/index.js.map +1 -0
  109. package/dist/server/utils/response-builder.d.ts +56 -0
  110. package/dist/server/utils/response-builder.d.ts.map +1 -0
  111. package/dist/server/utils/response-builder.js +388 -0
  112. package/dist/server/utils/response-builder.js.map +1 -0
  113. package/dist/types/index.d.ts +3 -3
  114. package/dist/types/index.d.ts.map +1 -1
  115. package/dist/types/index.js.map +1 -1
  116. package/package.json +9 -3
@@ -0,0 +1,427 @@
1
+ /**
2
+ * Contract Schemas - Bundled into CLI
3
+ *
4
+ * These schemas define the request/response contracts for all CLI commands.
5
+ * Bundled directly to avoid external dependency issues.
6
+ */
7
+ export declare const planRequestSchema: {
8
+ type: string;
9
+ properties: {
10
+ manifest_ref: {
11
+ type: string;
12
+ };
13
+ scenario: {
14
+ type: string;
15
+ };
16
+ params: {
17
+ type: string;
18
+ };
19
+ query: {
20
+ type: string;
21
+ };
22
+ };
23
+ additionalProperties: boolean;
24
+ };
25
+ export declare const simulateRequestSchema: {
26
+ type: string;
27
+ properties: {
28
+ plan_ref: {
29
+ type: string;
30
+ properties: {
31
+ id: {
32
+ type: string;
33
+ };
34
+ type: {
35
+ type: string;
36
+ };
37
+ repository: {
38
+ type: string;
39
+ };
40
+ created_at: {
41
+ type: string;
42
+ };
43
+ checksum: {
44
+ type: string;
45
+ };
46
+ };
47
+ };
48
+ scenario: {
49
+ type: string;
50
+ properties: {
51
+ id: {
52
+ type: string;
53
+ };
54
+ name: {
55
+ type: string;
56
+ };
57
+ description: {
58
+ type: string;
59
+ };
60
+ tags: {
61
+ type: string;
62
+ items: {
63
+ type: string;
64
+ };
65
+ };
66
+ };
67
+ };
68
+ config: {
69
+ type: string;
70
+ };
71
+ iterations: {
72
+ type: string;
73
+ minimum: number;
74
+ };
75
+ };
76
+ additionalProperties: boolean;
77
+ };
78
+ export declare const inspectRequestSchema: {
79
+ type: string;
80
+ properties: {
81
+ sim_ref: {
82
+ type: string;
83
+ };
84
+ output_type: {
85
+ type: string;
86
+ };
87
+ depth: {
88
+ type: string;
89
+ };
90
+ };
91
+ additionalProperties: boolean;
92
+ };
93
+ export declare const quantifyRequestSchema: {
94
+ type: string;
95
+ properties: {
96
+ sim_ref: {
97
+ type: string;
98
+ };
99
+ report_type: {
100
+ type: string;
101
+ };
102
+ params: {
103
+ type: string;
104
+ };
105
+ time_horizon: {
106
+ type: string;
107
+ };
108
+ };
109
+ additionalProperties: boolean;
110
+ };
111
+ export declare const deployRequestSchema: {
112
+ type: string;
113
+ properties: {
114
+ sim_ref: {
115
+ type: string;
116
+ };
117
+ spec: {
118
+ type: string;
119
+ };
120
+ environment: {
121
+ type: string;
122
+ };
123
+ };
124
+ additionalProperties: boolean;
125
+ };
126
+ export declare const exportRequestSchema: {
127
+ type: string;
128
+ properties: {
129
+ intent_ref: {
130
+ type: string;
131
+ };
132
+ format_spec: {
133
+ type: string;
134
+ };
135
+ };
136
+ additionalProperties: boolean;
137
+ };
138
+ export declare const diligenceRequestSchema: {
139
+ type: string;
140
+ properties: {
141
+ refs: {};
142
+ requirements: {
143
+ type: string;
144
+ };
145
+ frameworks: {
146
+ type: string;
147
+ };
148
+ include_evidence: {
149
+ type: string;
150
+ };
151
+ certifying_authority: {
152
+ type: string;
153
+ };
154
+ };
155
+ additionalProperties: boolean;
156
+ };
157
+ export declare const manifestsRequestSchema: {
158
+ type: string;
159
+ properties: {
160
+ criteria: {
161
+ type: string;
162
+ };
163
+ query: {
164
+ type: string;
165
+ };
166
+ };
167
+ additionalProperties: boolean;
168
+ };
169
+ export declare const plansRequestSchema: {
170
+ type: string;
171
+ properties: {
172
+ manifest_ref: {
173
+ type: string;
174
+ };
175
+ params: {
176
+ type: string;
177
+ };
178
+ };
179
+ additionalProperties: boolean;
180
+ };
181
+ export declare const baseResponseSchema: {
182
+ type: string;
183
+ properties: {
184
+ id: {
185
+ type: string;
186
+ };
187
+ type: {
188
+ type: string;
189
+ };
190
+ execution_metadata: {
191
+ type: string;
192
+ };
193
+ };
194
+ additionalProperties: boolean;
195
+ };
196
+ export declare const manifestResponseSchema: {
197
+ type: string;
198
+ properties: {
199
+ id: {
200
+ type: string;
201
+ };
202
+ type: {
203
+ type: string;
204
+ const: string;
205
+ };
206
+ execution_metadata: {
207
+ type: string;
208
+ };
209
+ };
210
+ additionalProperties: boolean;
211
+ };
212
+ export declare const planResponseSchema: {
213
+ type: string;
214
+ properties: {
215
+ id: {
216
+ type: string;
217
+ };
218
+ type: {
219
+ type: string;
220
+ const: string;
221
+ };
222
+ execution_metadata: {
223
+ type: string;
224
+ };
225
+ };
226
+ additionalProperties: boolean;
227
+ };
228
+ export declare const simulationResponseSchema: {
229
+ type: string;
230
+ properties: {
231
+ id: {
232
+ type: string;
233
+ };
234
+ type: {
235
+ type: string;
236
+ const: string;
237
+ };
238
+ execution_metadata: {
239
+ type: string;
240
+ };
241
+ };
242
+ additionalProperties: boolean;
243
+ };
244
+ export declare const simulationOutputResponseSchema: {
245
+ type: string;
246
+ properties: {
247
+ id: {
248
+ type: string;
249
+ };
250
+ type: {
251
+ type: string;
252
+ };
253
+ outputs: {
254
+ type: string;
255
+ };
256
+ execution_metadata: {
257
+ type: string;
258
+ };
259
+ };
260
+ additionalProperties: boolean;
261
+ };
262
+ export declare const roiReportResponseSchema: {
263
+ type: string;
264
+ properties: {
265
+ id: {
266
+ type: string;
267
+ };
268
+ type: {
269
+ type: string;
270
+ const: string;
271
+ };
272
+ execution_metadata: {
273
+ type: string;
274
+ };
275
+ };
276
+ additionalProperties: boolean;
277
+ };
278
+ export declare const intentResponseSchema: {
279
+ type: string;
280
+ properties: {
281
+ id: {
282
+ type: string;
283
+ };
284
+ type: {
285
+ type: string;
286
+ const: string;
287
+ };
288
+ execution_metadata: {
289
+ type: string;
290
+ };
291
+ };
292
+ additionalProperties: boolean;
293
+ };
294
+ export declare const exportResponseSchema: {
295
+ type: string;
296
+ properties: {
297
+ id: {
298
+ type: string;
299
+ };
300
+ type: {
301
+ type: string;
302
+ const: string;
303
+ };
304
+ execution_metadata: {
305
+ type: string;
306
+ };
307
+ };
308
+ additionalProperties: boolean;
309
+ };
310
+ export declare const diligencePackageResponseSchema: {
311
+ type: string;
312
+ properties: {
313
+ id: {
314
+ type: string;
315
+ };
316
+ type: {
317
+ type: string;
318
+ const: string;
319
+ };
320
+ execution_metadata: {
321
+ type: string;
322
+ };
323
+ };
324
+ additionalProperties: boolean;
325
+ };
326
+ export declare const platformLayers: readonly ["INTENT_GATE", "SIMULATION_ENGINE", "ROI_CALCULATOR", "EXPORT_GENERATOR"];
327
+ export declare const RequestSchemas: Readonly<{
328
+ PLAN: "plan";
329
+ SIMULATE: "simulate";
330
+ INSPECT: "inspect";
331
+ QUANTIFY: "quantify";
332
+ DEPLOY: "deploy";
333
+ EXPORT: "export";
334
+ DILIGENCE: "diligence";
335
+ MANIFESTS: "manifests";
336
+ PLANS: "plans";
337
+ }>;
338
+ export declare const ResponseSchemas: Readonly<{
339
+ MANIFEST: "manifest";
340
+ PLAN: "plan";
341
+ SIMULATION: "simulation";
342
+ SIMULATION_OUTPUT: "simulationOutput";
343
+ ROI_REPORT: "roiReport";
344
+ INTENT: "intent";
345
+ EXPORT: "export";
346
+ DILIGENCE_PACKAGE: "diligencePackage";
347
+ }>;
348
+ export interface PlanRequestContract {
349
+ manifest_ref?: unknown;
350
+ scenario?: unknown;
351
+ params?: Record<string, unknown>;
352
+ query?: string;
353
+ [key: string]: unknown;
354
+ }
355
+ export interface ManifestsRequestContract {
356
+ criteria?: Record<string, unknown>;
357
+ query?: string;
358
+ [key: string]: unknown;
359
+ }
360
+ export interface SimulateRequestContract {
361
+ plan_ref?: {
362
+ id: string;
363
+ type: string;
364
+ repository?: string;
365
+ created_at?: string;
366
+ checksum?: string;
367
+ };
368
+ scenario?: {
369
+ id: string;
370
+ name: string;
371
+ description: string;
372
+ tags?: string[];
373
+ };
374
+ config?: Record<string, unknown>;
375
+ iterations?: number;
376
+ [key: string]: unknown;
377
+ }
378
+ export interface InspectRequestContract {
379
+ sim_ref: unknown;
380
+ output_type?: string;
381
+ depth?: string | number;
382
+ [key: string]: unknown;
383
+ }
384
+ export interface QuantifyRequestContract {
385
+ sim_ref: unknown;
386
+ report_type?: string;
387
+ params?: Record<string, unknown>;
388
+ time_horizon?: string | number;
389
+ [key: string]: unknown;
390
+ }
391
+ export interface DeployRequestContract {
392
+ sim_ref: unknown;
393
+ spec?: Record<string, unknown>;
394
+ environment?: string;
395
+ [key: string]: unknown;
396
+ }
397
+ export interface ExportRequestContract {
398
+ intent_ref: unknown;
399
+ format_spec?: Record<string, unknown>;
400
+ [key: string]: unknown;
401
+ }
402
+ export interface DiligenceRequestContract {
403
+ refs: unknown[] | {
404
+ natural_language: string;
405
+ };
406
+ requirements?: Record<string, unknown>;
407
+ frameworks?: unknown;
408
+ include_evidence?: boolean;
409
+ certifying_authority?: string;
410
+ [key: string]: unknown;
411
+ }
412
+ export interface ExecutionMetadata {
413
+ trace_id: string;
414
+ timestamp: string;
415
+ layers_executed?: LayerExecutionRecord[];
416
+ execution_graph?: ExecutionGraph;
417
+ }
418
+ export interface LayerExecutionRecord {
419
+ layer: string;
420
+ status: string;
421
+ duration_ms?: number;
422
+ }
423
+ export interface ExecutionGraph {
424
+ nodes: unknown[];
425
+ edges: unknown[];
426
+ }
427
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/contracts/schemas/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;CAS7B,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BjC,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;CAQhC,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;CASjC,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;CAQ/B,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;;CAO/B,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;CAUlC,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;CAOlC,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;CAO9B,CAAC;AAMF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;CAQ9B,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;CAQlC,CAAC;AAEF,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AC/C,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACvC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,oBAAoB,EAAE,CAAC;IACzC,eAAe,CAAC,EAAE,cAAc,CAAC;CAClC;AAED,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,OAAO,EAAE,CAAC;IACjB,KAAK,EAAE,OAAO,EAAE,CAAC;CAClB"}
@@ -0,0 +1,228 @@
1
+ /**
2
+ * Contract Schemas - Bundled into CLI
3
+ *
4
+ * These schemas define the request/response contracts for all CLI commands.
5
+ * Bundled directly to avoid external dependency issues.
6
+ */
7
+ // ============================================================================
8
+ // Request Schemas
9
+ // ============================================================================
10
+ export const planRequestSchema = {
11
+ type: 'object',
12
+ properties: {
13
+ manifest_ref: { type: 'object' },
14
+ scenario: { type: 'object' },
15
+ params: { type: 'object' },
16
+ query: { type: 'string' },
17
+ },
18
+ additionalProperties: true,
19
+ };
20
+ export const simulateRequestSchema = {
21
+ type: 'object',
22
+ properties: {
23
+ plan_ref: {
24
+ type: 'object',
25
+ properties: {
26
+ id: { type: 'string' },
27
+ type: { type: 'string' },
28
+ repository: { type: 'string' },
29
+ created_at: { type: 'string' },
30
+ checksum: { type: 'string' },
31
+ },
32
+ },
33
+ scenario: {
34
+ type: 'object',
35
+ properties: {
36
+ id: { type: 'string' },
37
+ name: { type: 'string' },
38
+ description: { type: 'string' },
39
+ tags: { type: 'array', items: { type: 'string' } },
40
+ },
41
+ },
42
+ config: { type: 'object' },
43
+ iterations: { type: 'integer', minimum: 1 },
44
+ },
45
+ additionalProperties: true,
46
+ };
47
+ export const inspectRequestSchema = {
48
+ type: 'object',
49
+ properties: {
50
+ sim_ref: { type: 'object' },
51
+ output_type: { type: 'string' },
52
+ depth: { type: 'string' },
53
+ },
54
+ additionalProperties: true,
55
+ };
56
+ export const quantifyRequestSchema = {
57
+ type: 'object',
58
+ properties: {
59
+ sim_ref: { type: 'object' },
60
+ report_type: { type: 'string' },
61
+ params: { type: 'object' },
62
+ time_horizon: { type: 'string' },
63
+ },
64
+ additionalProperties: true,
65
+ };
66
+ export const deployRequestSchema = {
67
+ type: 'object',
68
+ properties: {
69
+ sim_ref: { type: 'object' },
70
+ spec: { type: 'object' },
71
+ environment: { type: 'string' },
72
+ },
73
+ additionalProperties: true,
74
+ };
75
+ export const exportRequestSchema = {
76
+ type: 'object',
77
+ properties: {
78
+ intent_ref: { type: 'object' },
79
+ format_spec: { type: 'object' },
80
+ },
81
+ additionalProperties: true,
82
+ };
83
+ export const diligenceRequestSchema = {
84
+ type: 'object',
85
+ properties: {
86
+ refs: {},
87
+ requirements: { type: 'object' },
88
+ frameworks: { type: 'array' },
89
+ include_evidence: { type: 'boolean' },
90
+ certifying_authority: { type: 'string' },
91
+ },
92
+ additionalProperties: true,
93
+ };
94
+ export const manifestsRequestSchema = {
95
+ type: 'object',
96
+ properties: {
97
+ criteria: { type: 'object' },
98
+ query: { type: 'string' },
99
+ },
100
+ additionalProperties: true,
101
+ };
102
+ export const plansRequestSchema = {
103
+ type: 'object',
104
+ properties: {
105
+ manifest_ref: { type: 'object' },
106
+ params: { type: 'object' },
107
+ },
108
+ additionalProperties: true,
109
+ };
110
+ // ============================================================================
111
+ // Response Schemas
112
+ // ============================================================================
113
+ export const baseResponseSchema = {
114
+ type: 'object',
115
+ properties: {
116
+ id: { type: 'string' },
117
+ type: { type: 'string' },
118
+ execution_metadata: { type: 'object' },
119
+ },
120
+ additionalProperties: true,
121
+ };
122
+ export const manifestResponseSchema = {
123
+ type: 'object',
124
+ properties: {
125
+ id: { type: 'string' },
126
+ type: { type: 'string', const: 'ManifestReference' },
127
+ execution_metadata: { type: 'object' },
128
+ },
129
+ additionalProperties: true,
130
+ };
131
+ export const planResponseSchema = {
132
+ type: 'object',
133
+ properties: {
134
+ id: { type: 'string' },
135
+ type: { type: 'string', const: 'PlanReference' },
136
+ execution_metadata: { type: 'object' },
137
+ },
138
+ additionalProperties: true,
139
+ };
140
+ export const simulationResponseSchema = {
141
+ type: 'object',
142
+ properties: {
143
+ id: { type: 'string' },
144
+ type: { type: 'string', const: 'SimulationReference' },
145
+ execution_metadata: { type: 'object' },
146
+ },
147
+ additionalProperties: true,
148
+ };
149
+ export const simulationOutputResponseSchema = {
150
+ type: 'object',
151
+ properties: {
152
+ id: { type: 'string' },
153
+ type: { type: 'string' },
154
+ outputs: { type: 'object' },
155
+ execution_metadata: { type: 'object' },
156
+ },
157
+ additionalProperties: true,
158
+ };
159
+ export const roiReportResponseSchema = {
160
+ type: 'object',
161
+ properties: {
162
+ id: { type: 'string' },
163
+ type: { type: 'string', const: 'ROIReport' },
164
+ execution_metadata: { type: 'object' },
165
+ },
166
+ additionalProperties: true,
167
+ };
168
+ export const intentResponseSchema = {
169
+ type: 'object',
170
+ properties: {
171
+ id: { type: 'string' },
172
+ type: { type: 'string', const: 'IntentReference' },
173
+ execution_metadata: { type: 'object' },
174
+ },
175
+ additionalProperties: true,
176
+ };
177
+ export const exportResponseSchema = {
178
+ type: 'object',
179
+ properties: {
180
+ id: { type: 'string' },
181
+ type: { type: 'string', const: 'ExportReference' },
182
+ execution_metadata: { type: 'object' },
183
+ },
184
+ additionalProperties: true,
185
+ };
186
+ export const diligencePackageResponseSchema = {
187
+ type: 'object',
188
+ properties: {
189
+ id: { type: 'string' },
190
+ type: { type: 'string', const: 'DiligencePackage' },
191
+ execution_metadata: { type: 'object' },
192
+ },
193
+ additionalProperties: true,
194
+ };
195
+ // ============================================================================
196
+ // Execution Proof
197
+ // ============================================================================
198
+ export const platformLayers = [
199
+ 'INTENT_GATE',
200
+ 'SIMULATION_ENGINE',
201
+ 'ROI_CALCULATOR',
202
+ 'EXPORT_GENERATOR',
203
+ ];
204
+ // ============================================================================
205
+ // Schema Registry Constants
206
+ // ============================================================================
207
+ export const RequestSchemas = Object.freeze({
208
+ PLAN: 'plan',
209
+ SIMULATE: 'simulate',
210
+ INSPECT: 'inspect',
211
+ QUANTIFY: 'quantify',
212
+ DEPLOY: 'deploy',
213
+ EXPORT: 'export',
214
+ DILIGENCE: 'diligence',
215
+ MANIFESTS: 'manifests',
216
+ PLANS: 'plans',
217
+ });
218
+ export const ResponseSchemas = Object.freeze({
219
+ MANIFEST: 'manifest',
220
+ PLAN: 'plan',
221
+ SIMULATION: 'simulation',
222
+ SIMULATION_OUTPUT: 'simulationOutput',
223
+ ROI_REPORT: 'roiReport',
224
+ INTENT: 'intent',
225
+ EXPORT: 'export',
226
+ DILIGENCE_PACKAGE: 'diligencePackage',
227
+ });
228
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/contracts/schemas/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,+EAA+E;AAC/E,kBAAkB;AAClB,+EAA+E;AAE/E,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,YAAY,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAChC,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC5B,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC1B,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;KAC1B;IACD,oBAAoB,EAAE,IAAI;CAC3B,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAq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