@llm-dev-ops/agentics-cli 1.4.87 → 1.4.90
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/dist/__tests__/api_gateway.test.d.ts +1 -0
- package/dist/__tests__/api_gateway.test.js +50 -0
- package/dist/__tests__/domain_enterprise_solution.test.d.ts +1 -0
- package/dist/__tests__/domain_enterprise_solution.test.js +50 -0
- package/dist/__tests__/health.test.d.ts +1 -0
- package/dist/__tests__/health.test.js +19 -0
- package/dist/__tests__/monitoring_alerts.test.d.ts +1 -0
- package/dist/__tests__/monitoring_alerts.test.js +50 -0
- package/dist/__tests__/ongoing_regular_stakeholder.test.d.ts +1 -0
- package/dist/__tests__/ongoing_regular_stakeholder.test.js +50 -0
- package/dist/__tests__/re_evaluate_risk.test.d.ts +1 -0
- package/dist/__tests__/re_evaluate_risk.test.js +50 -0
- package/dist/__tests__/recommendation.test.d.ts +1 -0
- package/dist/__tests__/recommendation.test.js +50 -0
- package/dist/__tests__/risk_mitigation_plan.test.d.ts +1 -0
- package/dist/__tests__/risk_mitigation_plan.test.js +50 -0
- package/dist/__tests__/scoped_pilot_reduce.test.d.ts +1 -0
- package/dist/__tests__/scoped_pilot_reduce.test.js +50 -0
- package/dist/__tests__/target_enterprise_system.test.d.ts +1 -0
- package/dist/__tests__/target_enterprise_system.test.js +50 -0
- package/dist/__tests__/underwriting.test.d.ts +1 -0
- package/dist/__tests__/underwriting.test.js +50 -0
- package/dist/api-gateway/infra/api-gateway-adapter.d.ts +27 -0
- package/dist/api-gateway/infra/api-gateway-adapter.js +54 -0
- package/dist/api-gateway/ports/api-gateway.d.ts +26 -0
- package/dist/api-gateway/ports/api-gateway.js +2 -0
- package/dist/config/endpoints.js +30 -30
- package/dist/config/endpoints.js.map +1 -1
- package/dist/contracts/contract-validation.d.ts +11 -0
- package/dist/contracts/contract-validation.js +21 -0
- package/dist/domain-enterprise-solution/infra/api-gateway-seam-adapter.d.ts +21 -0
- package/dist/domain-enterprise-solution/infra/api-gateway-seam-adapter.js +42 -0
- package/dist/domain-enterprise-solution/infra/domain-enterprise-solution-adapter.d.ts +25 -0
- package/dist/domain-enterprise-solution/infra/domain-enterprise-solution-adapter.js +47 -0
- package/dist/domain-enterprise-solution/ports/api-gateway-seam.d.ts +20 -0
- package/dist/domain-enterprise-solution/ports/api-gateway-seam.js +2 -0
- package/dist/domain-enterprise-solution/ports/domain-enterprise-solution.d.ts +24 -0
- package/dist/domain-enterprise-solution/ports/domain-enterprise-solution.js +2 -0
- package/dist/enterprise/index.d.ts +15 -0
- package/dist/enterprise/index.js +16 -0
- package/dist/erp-client/client.d.ts +42 -0
- package/dist/erp-client/client.js +235 -0
- package/dist/erp-client/mapper.d.ts +9 -0
- package/dist/erp-client/mapper.js +116 -0
- package/dist/erp-client/retry.d.ts +17 -0
- package/dist/erp-client/retry.js +74 -0
- package/dist/erp-client/types.d.ts +155 -0
- package/dist/erp-client/types.js +2 -0
- package/dist/infra/clients.d.ts +27 -0
- package/dist/infra/clients.js +16 -0
- package/dist/infra/connection-pool.d.ts +16 -0
- package/dist/infra/connection-pool.js +13 -0
- package/dist/infra/iam-helper.d.ts +1 -0
- package/dist/infra/iam-helper.js +138 -0
- package/dist/infra/telemetry.d.ts +26 -0
- package/dist/infra/telemetry.js +39 -0
- package/dist/monitoring-alerts/infra/monitoring-alerts-adapter.d.ts +25 -0
- package/dist/monitoring-alerts/infra/monitoring-alerts-adapter.js +47 -0
- package/dist/monitoring-alerts/ports/monitoring-alerts.d.ts +24 -0
- package/dist/monitoring-alerts/ports/monitoring-alerts.js +2 -0
- package/dist/ongoing-regular-stakeholder/infra/ongoing-regular-stakeholder-adapter.d.ts +25 -0
- package/dist/ongoing-regular-stakeholder/infra/ongoing-regular-stakeholder-adapter.js +47 -0
- package/dist/ongoing-regular-stakeholder/ports/ongoing-regular-stakeholder.d.ts +24 -0
- package/dist/ongoing-regular-stakeholder/ports/ongoing-regular-stakeholder.js +2 -0
- package/dist/pipeline/phase2/phase2-coordinator.d.ts.map +1 -1
- package/dist/pipeline/phase2/phase2-coordinator.js +7 -3
- package/dist/pipeline/phase2/phase2-coordinator.js.map +1 -1
- package/dist/pipeline/ruflo-phase-executor.js +1 -1
- package/dist/pipeline/ruflo-phase-executor.js.map +1 -1
- package/dist/re-evaluate-risk/infra/re-evaluate-risk-adapter.d.ts +25 -0
- package/dist/re-evaluate-risk/infra/re-evaluate-risk-adapter.js +47 -0
- package/dist/re-evaluate-risk/ports/re-evaluate-risk.d.ts +24 -0
- package/dist/re-evaluate-risk/ports/re-evaluate-risk.js +2 -0
- package/dist/recommendation/infra/recommendation-adapter.d.ts +25 -0
- package/dist/recommendation/infra/recommendation-adapter.js +47 -0
- package/dist/recommendation/ports/recommendation.d.ts +24 -0
- package/dist/recommendation/ports/recommendation.js +2 -0
- package/dist/risk-mitigation-plan/infra/risk-mitigation-plan-adapter.d.ts +25 -0
- package/dist/risk-mitigation-plan/infra/risk-mitigation-plan-adapter.js +47 -0
- package/dist/risk-mitigation-plan/ports/risk-mitigation-plan.d.ts +24 -0
- package/dist/risk-mitigation-plan/ports/risk-mitigation-plan.js +2 -0
- package/dist/scoped-pilot-reduce/infra/scoped-pilot-reduce-adapter.d.ts +25 -0
- package/dist/scoped-pilot-reduce/infra/scoped-pilot-reduce-adapter.js +47 -0
- package/dist/scoped-pilot-reduce/ports/scoped-pilot-reduce.d.ts +24 -0
- package/dist/scoped-pilot-reduce/ports/scoped-pilot-reduce.js +2 -0
- package/dist/server/dependencies.d.ts +178 -0
- package/dist/server/dependencies.js +321 -0
- package/dist/server/health.d.ts +2 -0
- package/dist/server/health.js +9 -0
- package/dist/server/main.d.ts +1 -0
- package/dist/server/main.js +21 -0
- package/dist/server/middleware.d.ts +4 -0
- package/dist/server/middleware.js +106 -0
- package/dist/server/routes.d.ts +5 -0
- package/dist/server/routes.js +1100 -0
- package/dist/server/schemas.d.ts +217 -0
- package/dist/server/schemas.js +185 -0
- package/dist/target-enterprise-system/infra/target-enterprise-system-adapter.d.ts +25 -0
- package/dist/target-enterprise-system/infra/target-enterprise-system-adapter.js +47 -0
- package/dist/target-enterprise-system/ports/target-enterprise-system.d.ts +24 -0
- package/dist/target-enterprise-system/ports/target-enterprise-system.js +2 -0
- package/dist/underwriting/infra/underwriting-adapter.d.ts +25 -0
- package/dist/underwriting/infra/underwriting-adapter.js +47 -0
- package/dist/underwriting/ports/underwriting.d.ts +24 -0
- package/dist/underwriting/ports/underwriting.js +2 -0
- package/docs/ecosystem.graph.json +295 -214
- package/package.json +1 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Port interface for bounded context: api-gateway
|
|
3
|
+
*/
|
|
4
|
+
export interface ApiGatewayInput {
|
|
5
|
+
readonly id: string;
|
|
6
|
+
readonly api_gateway_id: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ApiGateway {
|
|
9
|
+
readonly id: string;
|
|
10
|
+
readonly created_at: string;
|
|
11
|
+
readonly updated_at: string;
|
|
12
|
+
readonly status: 'active' | 'inactive' | 'pending' | 'completed' | 'error';
|
|
13
|
+
readonly api_gateway_id: string;
|
|
14
|
+
}
|
|
15
|
+
export interface ApiGatewayPort {
|
|
16
|
+
/** Creates or updates api-gateway record */
|
|
17
|
+
routeRequests(input: ApiGatewayInput): Promise<ApiGateway>;
|
|
18
|
+
/** Creates or updates api-gateway record */
|
|
19
|
+
authenticate(input: ApiGatewayInput): Promise<ApiGateway>;
|
|
20
|
+
/** Creates or updates api-gateway record */
|
|
21
|
+
rateLimit(input: ApiGatewayInput): Promise<ApiGateway>;
|
|
22
|
+
/** Returns api-gateway data */
|
|
23
|
+
listApiGateway(input: Record<string, unknown>): Promise<ApiGateway[]>;
|
|
24
|
+
/** Returns api-gateway data */
|
|
25
|
+
id(input: Record<string, unknown>): Promise<ApiGateway[]>;
|
|
26
|
+
}
|
package/dist/config/endpoints.js
CHANGED
|
@@ -155,150 +155,150 @@ export const DEFAULT_ENDPOINTS = {
|
|
|
155
155
|
timeout: 30000, // 30 seconds for plan storage operations
|
|
156
156
|
},
|
|
157
157
|
// ==========================================================================
|
|
158
|
-
// Downstream Agent Cloud
|
|
159
|
-
// All deployed as
|
|
160
|
-
// URL pattern: https://
|
|
158
|
+
// Downstream Agent Services (Cloud Run)
|
|
159
|
+
// All deployed as Cloud Run services in us-central1
|
|
160
|
+
// URL pattern: https://{name}-xx7kwyd5ra-uc.a.run.app
|
|
161
161
|
// ==========================================================================
|
|
162
162
|
// Phase 1: Evaluation, Telemetry, Safety
|
|
163
163
|
'test-bench-agents': {
|
|
164
|
-
baseUrl: process.env['TEST_BENCH_URL'] ?? 'https://
|
|
164
|
+
baseUrl: process.env['TEST_BENCH_URL'] ?? 'https://test-bench-agents-xx7kwyd5ra-uc.a.run.app',
|
|
165
165
|
version: 'v1',
|
|
166
166
|
timeout: 120000, // 2 minutes for evaluation runs
|
|
167
167
|
},
|
|
168
168
|
'observatory-agents': {
|
|
169
|
-
baseUrl: process.env['OBSERVATORY_URL'] ?? 'https://
|
|
169
|
+
baseUrl: process.env['OBSERVATORY_URL'] ?? 'https://observatory-agents-xx7kwyd5ra-uc.a.run.app',
|
|
170
170
|
version: 'v1',
|
|
171
171
|
timeout: 60000,
|
|
172
172
|
},
|
|
173
173
|
'shield-agents': {
|
|
174
|
-
baseUrl: process.env['SHIELD_URL'] ?? 'https://
|
|
174
|
+
baseUrl: process.env['SHIELD_URL'] ?? 'https://shield-agents-xx7kwyd5ra-uc.a.run.app',
|
|
175
175
|
version: 'v1',
|
|
176
176
|
timeout: 30000,
|
|
177
177
|
},
|
|
178
178
|
// Phase 2: Operational Intelligence
|
|
179
179
|
'sentinel-agents': {
|
|
180
|
-
baseUrl: process.env['SENTINEL_URL'] ?? 'https://
|
|
180
|
+
baseUrl: process.env['SENTINEL_URL'] ?? 'https://sentinel-agents-xx7kwyd5ra-uc.a.run.app',
|
|
181
181
|
version: 'v1',
|
|
182
182
|
timeout: 60000,
|
|
183
183
|
},
|
|
184
184
|
'memory-graph-agents': {
|
|
185
|
-
baseUrl: process.env['MEMORY_GRAPH_URL'] ?? 'https://
|
|
185
|
+
baseUrl: process.env['MEMORY_GRAPH_URL'] ?? 'https://memory-graph-agents-xx7kwyd5ra-uc.a.run.app',
|
|
186
186
|
version: 'v1',
|
|
187
187
|
timeout: 60000,
|
|
188
188
|
},
|
|
189
189
|
'latency-lens-agents': {
|
|
190
|
-
baseUrl: process.env['LATENCY_LENS_URL'] ?? 'https://
|
|
190
|
+
baseUrl: process.env['LATENCY_LENS_URL'] ?? 'https://latency-lens-agents-xx7kwyd5ra-uc.a.run.app',
|
|
191
191
|
version: 'v1',
|
|
192
192
|
timeout: 60000,
|
|
193
193
|
},
|
|
194
194
|
'forge-agents': {
|
|
195
|
-
baseUrl: process.env['FORGE_URL'] ?? 'https://
|
|
195
|
+
baseUrl: process.env['FORGE_URL'] ?? 'https://forge-agents-xx7kwyd5ra-uc.a.run.app',
|
|
196
196
|
version: 'v1',
|
|
197
197
|
timeout: 120000, // 2 minutes for SDK generation
|
|
198
198
|
},
|
|
199
199
|
// Phase 3: Automation & Resilience
|
|
200
200
|
'edge-agents': {
|
|
201
|
-
baseUrl: process.env['EDGE_AGENTS_URL'] ?? 'https://
|
|
201
|
+
baseUrl: process.env['EDGE_AGENTS_URL'] ?? 'https://edge-agents-xx7kwyd5ra-uc.a.run.app',
|
|
202
202
|
version: 'v1',
|
|
203
203
|
timeout: 30000,
|
|
204
204
|
},
|
|
205
205
|
'auto-optimizer-agents': {
|
|
206
|
-
baseUrl: process.env['AUTO_OPTIMIZER_URL'] ?? 'https://
|
|
206
|
+
baseUrl: process.env['AUTO_OPTIMIZER_URL'] ?? 'https://auto-optimizer-agents-xx7kwyd5ra-uc.a.run.app',
|
|
207
207
|
version: 'v1',
|
|
208
208
|
timeout: 60000,
|
|
209
209
|
},
|
|
210
210
|
'incident-manager-agents': {
|
|
211
|
-
baseUrl: process.env['INCIDENT_MANAGER_URL'] ?? 'https://
|
|
211
|
+
baseUrl: process.env['INCIDENT_MANAGER_URL'] ?? 'https://incident-manager-agents-xx7kwyd5ra-uc.a.run.app',
|
|
212
212
|
version: 'v1',
|
|
213
213
|
timeout: 60000,
|
|
214
214
|
},
|
|
215
215
|
'orchestrator-agents': {
|
|
216
|
-
baseUrl: process.env['ORCHESTRATOR_URL'] ?? 'https://
|
|
216
|
+
baseUrl: process.env['ORCHESTRATOR_URL'] ?? 'https://orchestrator-agents-xx7kwyd5ra-uc.a.run.app',
|
|
217
217
|
version: 'v1',
|
|
218
218
|
timeout: 300000, // 5 minutes for orchestration workflows
|
|
219
219
|
},
|
|
220
220
|
// Phase 4: Governance & FinOps
|
|
221
221
|
'costops-agents': {
|
|
222
|
-
baseUrl: process.env['COSTOPS_URL'] ?? 'https://
|
|
222
|
+
baseUrl: process.env['COSTOPS_URL'] ?? 'https://costops-agents-xx7kwyd5ra-uc.a.run.app',
|
|
223
223
|
version: 'v1',
|
|
224
224
|
timeout: 120000,
|
|
225
225
|
},
|
|
226
226
|
'governance-dashboard-agents': {
|
|
227
|
-
baseUrl: process.env['GOVERNANCE_DASHBOARD_URL'] ?? 'https://
|
|
227
|
+
baseUrl: process.env['GOVERNANCE_DASHBOARD_URL'] ?? 'https://governance-dashboard-agents-xx7kwyd5ra-uc.a.run.app',
|
|
228
228
|
version: 'v1',
|
|
229
229
|
timeout: 60000,
|
|
230
230
|
},
|
|
231
231
|
'policy-engine-agents': {
|
|
232
|
-
baseUrl: process.env['POLICY_ENGINE_URL'] ?? 'https://
|
|
232
|
+
baseUrl: process.env['POLICY_ENGINE_URL'] ?? 'https://policy-engine-agents-xx7kwyd5ra-uc.a.run.app',
|
|
233
233
|
version: 'v1',
|
|
234
234
|
timeout: 30000,
|
|
235
235
|
},
|
|
236
236
|
// Phase 5: Ecosystem & Collaboration
|
|
237
237
|
'registry-agents': {
|
|
238
|
-
baseUrl: process.env['REGISTRY_URL'] ?? 'https://
|
|
238
|
+
baseUrl: process.env['REGISTRY_URL'] ?? 'https://registry-agents-xx7kwyd5ra-uc.a.run.app',
|
|
239
239
|
version: 'v1',
|
|
240
240
|
timeout: 30000,
|
|
241
241
|
},
|
|
242
242
|
'marketplace-agents': {
|
|
243
|
-
baseUrl: process.env['MARKETPLACE_URL'] ?? 'https://
|
|
243
|
+
baseUrl: process.env['MARKETPLACE_URL'] ?? 'https://marketplace-agents-xx7kwyd5ra-uc.a.run.app',
|
|
244
244
|
version: 'v1',
|
|
245
245
|
timeout: 60000,
|
|
246
246
|
},
|
|
247
247
|
'analytics-hub-agents': {
|
|
248
|
-
baseUrl: process.env['ANALYTICS_HUB_URL'] ?? 'https://
|
|
248
|
+
baseUrl: process.env['ANALYTICS_HUB_URL'] ?? 'https://analytics-hub-agents-xx7kwyd5ra-uc.a.run.app',
|
|
249
249
|
version: 'v1',
|
|
250
250
|
timeout: 120000,
|
|
251
251
|
},
|
|
252
252
|
// Phase 6: Core Infrastructure
|
|
253
253
|
'config-manager-agents': {
|
|
254
|
-
baseUrl: process.env['CONFIG_MANAGER_URL'] ?? 'https://
|
|
254
|
+
baseUrl: process.env['CONFIG_MANAGER_URL'] ?? 'https://config-manager-agents-xx7kwyd5ra-uc.a.run.app',
|
|
255
255
|
version: 'v1',
|
|
256
256
|
timeout: 30000,
|
|
257
257
|
},
|
|
258
258
|
'schema-registry-agents': {
|
|
259
|
-
baseUrl: process.env['SCHEMA_REGISTRY_URL'] ?? 'https://
|
|
259
|
+
baseUrl: process.env['SCHEMA_REGISTRY_URL'] ?? 'https://schema-registry-agents-xx7kwyd5ra-uc.a.run.app',
|
|
260
260
|
version: 'v1',
|
|
261
261
|
timeout: 30000,
|
|
262
262
|
},
|
|
263
263
|
'connector-hub-agents': {
|
|
264
|
-
baseUrl: process.env['CONNECTOR_HUB_URL'] ?? 'https://
|
|
264
|
+
baseUrl: process.env['CONNECTOR_HUB_URL'] ?? 'https://connector-hub-agents-xx7kwyd5ra-uc.a.run.app',
|
|
265
265
|
version: 'v1',
|
|
266
266
|
timeout: 60000,
|
|
267
267
|
},
|
|
268
268
|
// Phase 7: Intelligence & Expansion
|
|
269
269
|
'copilot-agents': {
|
|
270
|
-
baseUrl: process.env['COPILOT_URL'] ?? 'https://
|
|
270
|
+
baseUrl: process.env['COPILOT_URL'] ?? 'https://copilot-agents-xx7kwyd5ra-uc.a.run.app',
|
|
271
271
|
version: 'v1',
|
|
272
272
|
timeout: 120000,
|
|
273
273
|
},
|
|
274
274
|
'simulator-agents': {
|
|
275
|
-
baseUrl: process.env['SIMULATOR_URL'] ?? 'https://
|
|
275
|
+
baseUrl: process.env['SIMULATOR_URL'] ?? 'https://simulator-agents-xx7kwyd5ra-uc.a.run.app',
|
|
276
276
|
version: 'v1',
|
|
277
277
|
timeout: 300000, // 5 minutes for simulations
|
|
278
278
|
},
|
|
279
279
|
'benchmark-exchange-agents': {
|
|
280
|
-
baseUrl: process.env['BENCHMARK_EXCHANGE_URL'] ?? 'https://
|
|
280
|
+
baseUrl: process.env['BENCHMARK_EXCHANGE_URL'] ?? 'https://benchmark-exchange-agents-xx7kwyd5ra-uc.a.run.app',
|
|
281
281
|
version: 'v1',
|
|
282
282
|
timeout: 60000,
|
|
283
283
|
},
|
|
284
284
|
'inference-gateway-agents': {
|
|
285
|
-
baseUrl: process.env['INFERENCE_GATEWAY_URL'] ?? 'https://
|
|
285
|
+
baseUrl: process.env['INFERENCE_GATEWAY_URL'] ?? 'https://inference-gateway-agents-xx7kwyd5ra-uc.a.run.app',
|
|
286
286
|
version: 'v1',
|
|
287
287
|
timeout: 120000,
|
|
288
288
|
},
|
|
289
289
|
'data-vault-agents': {
|
|
290
|
-
baseUrl: process.env['DATA_VAULT_URL'] ?? 'https://
|
|
290
|
+
baseUrl: process.env['DATA_VAULT_URL'] ?? 'https://data-vault-agents-xx7kwyd5ra-uc.a.run.app',
|
|
291
291
|
version: 'v1',
|
|
292
292
|
timeout: 60000,
|
|
293
293
|
},
|
|
294
294
|
'research-lab-agents': {
|
|
295
|
-
baseUrl: process.env['RESEARCH_LAB_URL'] ?? 'https://
|
|
295
|
+
baseUrl: process.env['RESEARCH_LAB_URL'] ?? 'https://research-lab-agents-xx7kwyd5ra-uc.a.run.app',
|
|
296
296
|
version: 'v1',
|
|
297
297
|
timeout: 120000,
|
|
298
298
|
},
|
|
299
299
|
// Phase 9: Apex Platform
|
|
300
300
|
'platform-agents': {
|
|
301
|
-
baseUrl: process.env['PLATFORM_AGENTS_URL'] ?? 'https://
|
|
301
|
+
baseUrl: process.env['PLATFORM_AGENTS_URL'] ?? 'https://platform-agents-xx7kwyd5ra-uc.a.run.app',
|
|
302
302
|
version: 'v1',
|
|
303
303
|
timeout: 60000,
|
|
304
304
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoints.js","sourceRoot":"","sources":["../../src/config/endpoints.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,+EAA+E;AAC/E,mCAAmC;AACnC,+EAA+E;AAE/E;;;GAGG;AACH,MAAM,UAAU,cAAc;IAC5B,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACnD,OAAO,QAAQ,KAAK,MAAM,IAAI,QAAQ,KAAK,GAAG,CAAC;AACjD,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,cAAc,CAAC,GAAW;IACxC,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC;QAC5B,8DAA8D;QAC9D,MAAM,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC;QAC/C,OAAO,CACL,QAAQ,KAAK,WAAW;YACxB,QAAQ,KAAK,WAAW;YACxB,QAAQ,KAAK,KAAK;YAClB,QAAQ,KAAK,OAAO;YACpB,QAAQ,CAAC,UAAU,CAAC,MAAM,CAAC;YAC3B,QAAQ,CAAC,QAAQ,CAAC,YAAY,CAAC,CAChC,CAAC;IACJ,CAAC;IAAC,MAA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;;GAKG;AACH,MAAM,UAAU,gBAAgB,CAC9B,SAAqC;IAErC,MAAM,SAAS,GAAG;QAChB,GAAG,iBAAiB;QACpB,GAAG,SAAS;KACb,CAAC;IAEF,6BAA6B;IAC7B,KAAK,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC;QAC9D,mBAAmB,CAAC,WAAW,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IACnD,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,mBAAmB;IAKjC,MAAM,UAAU,GAAG,cAAc,EAAE,CAAC;IACpC,OAAO;QACL,UAAU;QACV,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,YAAY;QACzC,WAAW,EAAE,UAAU;YACrB,CAAC,CAAC,sDAAsD;YACxD,CAAC,CAAC,4CAA4C;KACjD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Contract validation for ERP deployment artifacts.
|
|
3
|
+
* Schema source: runtime
|
|
4
|
+
*/
|
|
5
|
+
type JsonSchema = Record<string, any>;
|
|
6
|
+
export interface ValidationResult {
|
|
7
|
+
readonly valid: boolean;
|
|
8
|
+
readonly errors: string[];
|
|
9
|
+
}
|
|
10
|
+
export declare function validateDeploymentArtifact(payload: unknown, schema?: JsonSchema): ValidationResult;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Generated by Phase 6 pipeline — do not edit manually
|
|
2
|
+
const EMBEDDED_SCHEMA = null;
|
|
3
|
+
export function validateDeploymentArtifact(payload, schema) {
|
|
4
|
+
const activeSchema = schema ?? EMBEDDED_SCHEMA;
|
|
5
|
+
const errors = [];
|
|
6
|
+
if (activeSchema === null) {
|
|
7
|
+
return { valid: true, errors: ['Schema not available — validation skipped'] };
|
|
8
|
+
}
|
|
9
|
+
if (typeof payload !== 'object' || payload === null) {
|
|
10
|
+
return { valid: false, errors: ['Payload must be a non-null object'] };
|
|
11
|
+
}
|
|
12
|
+
const obj = payload;
|
|
13
|
+
const requiredFields = activeSchema['required'];
|
|
14
|
+
if (Array.isArray(requiredFields)) {
|
|
15
|
+
for (const field of requiredFields) {
|
|
16
|
+
if (!(field in obj))
|
|
17
|
+
errors.push(`Missing required field: ${field}`);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return { valid: errors.length === 0, errors };
|
|
21
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ApiGatewaySeamPort, DomainEnterpriseSolution, DomainEnterpriseSolutionInput } from '../ports/api-gateway-seam.js';
|
|
2
|
+
import type { Telemetry } from '../../infra/telemetry.js';
|
|
3
|
+
import type { DbClient, ErpClient } from '../../infra/clients.js';
|
|
4
|
+
/**
|
|
5
|
+
* Infrastructure adapter: ApiGatewaySeamAdapter
|
|
6
|
+
* Bounded context: domain-enterprise-solution
|
|
7
|
+
* ERP system: infor
|
|
8
|
+
*
|
|
9
|
+
* Bridges the ApiGatewaySeamPort port to the infor ERP system
|
|
10
|
+
* and the underlying database client.
|
|
11
|
+
*/
|
|
12
|
+
export declare class ApiGatewaySeamAdapter implements ApiGatewaySeamPort {
|
|
13
|
+
private readonly db;
|
|
14
|
+
private readonly erp;
|
|
15
|
+
private readonly telemetry;
|
|
16
|
+
constructor(db: DbClient, erp: ErpClient, telemetry: Telemetry);
|
|
17
|
+
findById(id: string): Promise<DomainEnterpriseSolution | null>;
|
|
18
|
+
findAll(filters?: Record<string, unknown>): Promise<DomainEnterpriseSolution[]>;
|
|
19
|
+
save(input: DomainEnterpriseSolutionInput): Promise<DomainEnterpriseSolution>;
|
|
20
|
+
deleteById(id: string): Promise<void>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// Generated by Phase 4 pipeline — do not edit manually
|
|
2
|
+
/**
|
|
3
|
+
* Infrastructure adapter: ApiGatewaySeamAdapter
|
|
4
|
+
* Bounded context: domain-enterprise-solution
|
|
5
|
+
* ERP system: infor
|
|
6
|
+
*
|
|
7
|
+
* Bridges the ApiGatewaySeamPort port to the infor ERP system
|
|
8
|
+
* and the underlying database client.
|
|
9
|
+
*/
|
|
10
|
+
export class ApiGatewaySeamAdapter {
|
|
11
|
+
db;
|
|
12
|
+
erp;
|
|
13
|
+
telemetry;
|
|
14
|
+
constructor(db, erp, telemetry) {
|
|
15
|
+
this.db = db;
|
|
16
|
+
this.erp = erp;
|
|
17
|
+
this.telemetry = telemetry;
|
|
18
|
+
}
|
|
19
|
+
async findById(id) {
|
|
20
|
+
return this.telemetry.withSpan('domain_enterprise_solution', 'findById', { id }, async () => {
|
|
21
|
+
const rows = await this.db.query('SELECT * FROM api_gateway_seam WHERE id = :1', [id]);
|
|
22
|
+
return rows[0] ?? null;
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
async findAll(filters) {
|
|
26
|
+
return this.telemetry.withSpan('domain_enterprise_solution', 'findAll', {}, async () => {
|
|
27
|
+
const rows = await this.db.query('SELECT * FROM api_gateway_seam', []);
|
|
28
|
+
return rows;
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
async save(input) {
|
|
32
|
+
return this.telemetry.withSpan('domain_enterprise_solution', 'save', {}, async () => {
|
|
33
|
+
const result = await this.erp.invoke('save', input);
|
|
34
|
+
return result;
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
async deleteById(id) {
|
|
38
|
+
return this.telemetry.withSpan('domain_enterprise_solution', 'deleteById', { id }, async () => {
|
|
39
|
+
await this.db.execute('DELETE FROM api_gateway_seam WHERE id = :1', [id]);
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { DomainEnterpriseSolutionPort, DomainEnterpriseSolutionInput, DomainEnterpriseSolution } from '../ports/domain-enterprise-solution.js';
|
|
2
|
+
import type { Telemetry } from '../../infra/telemetry.js';
|
|
3
|
+
import type { DbClient, ErpClient } from '../../infra/clients.js';
|
|
4
|
+
/**
|
|
5
|
+
* Infrastructure adapter: DomainEnterpriseSolutionAdapter
|
|
6
|
+
* Bounded context: domain-enterprise-solution
|
|
7
|
+
* ERP system: infor
|
|
8
|
+
*
|
|
9
|
+
* Bridges the DomainEnterpriseSolutionPort port to the infor ERP system
|
|
10
|
+
* and the underlying database client.
|
|
11
|
+
*/
|
|
12
|
+
export declare class DomainEnterpriseSolutionAdapter implements DomainEnterpriseSolutionPort {
|
|
13
|
+
private readonly db;
|
|
14
|
+
private readonly erp;
|
|
15
|
+
private readonly telemetry;
|
|
16
|
+
constructor(db: DbClient, erp: ErpClient, telemetry: Telemetry);
|
|
17
|
+
/** Creates or updates domain-enterprise-solution record */
|
|
18
|
+
manageDomainEnterprise(input: DomainEnterpriseSolutionInput): Promise<DomainEnterpriseSolution>;
|
|
19
|
+
/** Creates or updates domain-enterprise-solution record */
|
|
20
|
+
queryDomainEnterprise(input: DomainEnterpriseSolutionInput): Promise<DomainEnterpriseSolution>;
|
|
21
|
+
/** Returns domain-enterprise-solution data */
|
|
22
|
+
listDomainEnterpriseSolution(input: Record<string, unknown>): Promise<DomainEnterpriseSolution[]>;
|
|
23
|
+
/** Returns domain-enterprise-solution data */
|
|
24
|
+
id(input: Record<string, unknown>): Promise<DomainEnterpriseSolution[]>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// Generated by Phase 4 pipeline — do not edit manually
|
|
2
|
+
/**
|
|
3
|
+
* Infrastructure adapter: DomainEnterpriseSolutionAdapter
|
|
4
|
+
* Bounded context: domain-enterprise-solution
|
|
5
|
+
* ERP system: infor
|
|
6
|
+
*
|
|
7
|
+
* Bridges the DomainEnterpriseSolutionPort port to the infor ERP system
|
|
8
|
+
* and the underlying database client.
|
|
9
|
+
*/
|
|
10
|
+
export class DomainEnterpriseSolutionAdapter {
|
|
11
|
+
db;
|
|
12
|
+
erp;
|
|
13
|
+
telemetry;
|
|
14
|
+
constructor(db, erp, telemetry) {
|
|
15
|
+
this.db = db;
|
|
16
|
+
this.erp = erp;
|
|
17
|
+
this.telemetry = telemetry;
|
|
18
|
+
}
|
|
19
|
+
/** Creates or updates domain-enterprise-solution record */
|
|
20
|
+
async manageDomainEnterprise(input) {
|
|
21
|
+
return this.telemetry.withSpan('domain_enterprise_solution', 'manageDomainEnterprise', {}, async () => {
|
|
22
|
+
const result = await this.erp.invoke('manageDomainEnterprise', input);
|
|
23
|
+
return result;
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
/** Creates or updates domain-enterprise-solution record */
|
|
27
|
+
async queryDomainEnterprise(input) {
|
|
28
|
+
return this.telemetry.withSpan('domain_enterprise_solution', 'queryDomainEnterprise', {}, async () => {
|
|
29
|
+
const rows = await this.db.query('SELECT * FROM domain_enterprise_solution WHERE 1=1', []);
|
|
30
|
+
return rows;
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
/** Returns domain-enterprise-solution data */
|
|
34
|
+
async listDomainEnterpriseSolution(input) {
|
|
35
|
+
return this.telemetry.withSpan('domain_enterprise_solution', 'listDomainEnterpriseSolution', {}, async () => {
|
|
36
|
+
const rows = await this.db.query('SELECT * FROM domain_enterprise_solution WHERE 1=1', []);
|
|
37
|
+
return rows;
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
/** Returns domain-enterprise-solution data */
|
|
41
|
+
async id(input) {
|
|
42
|
+
return this.telemetry.withSpan('domain_enterprise_solution', 'id', {}, async () => {
|
|
43
|
+
const result = await this.erp.invoke('id', input);
|
|
44
|
+
return result;
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Port interface for bounded context: domain-enterprise-solution
|
|
3
|
+
*/
|
|
4
|
+
export interface DomainEnterpriseSolution {
|
|
5
|
+
readonly id: string;
|
|
6
|
+
readonly created_at: string;
|
|
7
|
+
readonly updated_at: string;
|
|
8
|
+
readonly status: 'active' | 'inactive' | 'pending' | 'completed' | 'error';
|
|
9
|
+
readonly domain_enterprise_solution_id: string;
|
|
10
|
+
}
|
|
11
|
+
export interface DomainEnterpriseSolutionInput {
|
|
12
|
+
readonly id: string;
|
|
13
|
+
readonly domain_enterprise_solution_id: string;
|
|
14
|
+
}
|
|
15
|
+
export interface ApiGatewaySeamPort {
|
|
16
|
+
findById(id: string): Promise<DomainEnterpriseSolution | null>;
|
|
17
|
+
findAll(filters?: Record<string, unknown>): Promise<DomainEnterpriseSolution[]>;
|
|
18
|
+
save(input: DomainEnterpriseSolutionInput): Promise<DomainEnterpriseSolution>;
|
|
19
|
+
deleteById(id: string): Promise<void>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Port interface for bounded context: domain-enterprise-solution
|
|
3
|
+
*/
|
|
4
|
+
export interface DomainEnterpriseSolutionInput {
|
|
5
|
+
readonly id: string;
|
|
6
|
+
readonly domain_enterprise_solution_id: string;
|
|
7
|
+
}
|
|
8
|
+
export interface DomainEnterpriseSolution {
|
|
9
|
+
readonly id: string;
|
|
10
|
+
readonly created_at: string;
|
|
11
|
+
readonly updated_at: string;
|
|
12
|
+
readonly status: 'active' | 'inactive' | 'pending' | 'completed' | 'error';
|
|
13
|
+
readonly domain_enterprise_solution_id: string;
|
|
14
|
+
}
|
|
15
|
+
export interface DomainEnterpriseSolutionPort {
|
|
16
|
+
/** Creates or updates domain-enterprise-solution record */
|
|
17
|
+
manageDomainEnterprise(input: DomainEnterpriseSolutionInput): Promise<DomainEnterpriseSolution>;
|
|
18
|
+
/** Creates or updates domain-enterprise-solution record */
|
|
19
|
+
queryDomainEnterprise(input: DomainEnterpriseSolutionInput): Promise<DomainEnterpriseSolution>;
|
|
20
|
+
/** Returns domain-enterprise-solution data */
|
|
21
|
+
listDomainEnterpriseSolution(input: Record<string, unknown>): Promise<DomainEnterpriseSolution[]>;
|
|
22
|
+
/** Returns domain-enterprise-solution data */
|
|
23
|
+
id(input: Record<string, unknown>): Promise<DomainEnterpriseSolution[]>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enterprise Integration & Memory Architecture Exports (ADR-004)
|
|
3
|
+
*
|
|
4
|
+
* This module implements the enterprise integration domain model
|
|
5
|
+
* described in ADR-004. All exports serve the five bounded contexts:
|
|
6
|
+
*
|
|
7
|
+
* 1. Enterprise Simulation Domain - simulation memory records
|
|
8
|
+
* 2. Memory & Lineage Domain - lineage tracking, traceability
|
|
9
|
+
* 3. Integration Domain - integration registry, proposals
|
|
10
|
+
* 4. ERP Surface Domain - ERP mappings
|
|
11
|
+
* 5. CLI as Orchestrator - validation helpers
|
|
12
|
+
*/
|
|
13
|
+
export { createLineageRecord, createSimulationMemoryRecord, completeSimulationMemoryRecord, failSimulationMemoryRecord, createIntegrationProposal, createErpSurfaceMapping, validateTraceability, validateLineageChain, } from './lineage.js';
|
|
14
|
+
export { INTEGRATION_REGISTRY, lookupIntegration, getIntegrationsByCategory, getIntegrationNames, isKnownIntegration, getAffectedEntities, } from './integration-registry.js';
|
|
15
|
+
export type { IntegrationDefinition, IntegrationCategory, } from './integration-registry.js';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enterprise Integration & Memory Architecture Exports (ADR-004)
|
|
3
|
+
*
|
|
4
|
+
* This module implements the enterprise integration domain model
|
|
5
|
+
* described in ADR-004. All exports serve the five bounded contexts:
|
|
6
|
+
*
|
|
7
|
+
* 1. Enterprise Simulation Domain - simulation memory records
|
|
8
|
+
* 2. Memory & Lineage Domain - lineage tracking, traceability
|
|
9
|
+
* 3. Integration Domain - integration registry, proposals
|
|
10
|
+
* 4. ERP Surface Domain - ERP mappings
|
|
11
|
+
* 5. CLI as Orchestrator - validation helpers
|
|
12
|
+
*/
|
|
13
|
+
// Lineage tracking (ADR-004, Domain 2)
|
|
14
|
+
export { createLineageRecord, createSimulationMemoryRecord, completeSimulationMemoryRecord, failSimulationMemoryRecord, createIntegrationProposal, createErpSurfaceMapping, validateTraceability, validateLineageChain, } from './lineage.js';
|
|
15
|
+
// Integration registry (ADR-004, Domain 3)
|
|
16
|
+
export { INTEGRATION_REGISTRY, lookupIntegration, getIntegrationsByCategory, getIntegrationNames, isKnownIntegration, getAffectedEntities, } from './integration-registry.js';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { ErpSurfaceResponse, DomainTransferOrder, DomainPurchaseOrder, DomainItemReceipt, DomainInventoryBalance, GovernanceConfig, SyncQueueEntry, SyncStatus } from './types.js';
|
|
2
|
+
export interface AuditLogger {
|
|
3
|
+
log(entityType: string, entityId: string, action: string, actor: string, payload: unknown): Promise<void>;
|
|
4
|
+
}
|
|
5
|
+
export declare class InforClient {
|
|
6
|
+
private readonly baseUrl;
|
|
7
|
+
private readonly serviceAccountEmail;
|
|
8
|
+
private readonly mapper;
|
|
9
|
+
private readonly breaker;
|
|
10
|
+
private readonly governance;
|
|
11
|
+
private readonly audit;
|
|
12
|
+
private readonly syncQueue;
|
|
13
|
+
private readonly recentErrors;
|
|
14
|
+
private lastSuccessfulSync;
|
|
15
|
+
constructor(config: {
|
|
16
|
+
baseUrl: string;
|
|
17
|
+
serviceAccountEmail: string;
|
|
18
|
+
governance: GovernanceConfig;
|
|
19
|
+
audit?: AuditLogger;
|
|
20
|
+
circuitBreakerThreshold?: number;
|
|
21
|
+
circuitBreakerResetMs?: number;
|
|
22
|
+
});
|
|
23
|
+
private assertWriteAllowed;
|
|
24
|
+
createTransferOrder(domain: DomainTransferOrder, correlationId: string): Promise<ErpSurfaceResponse>;
|
|
25
|
+
createPurchaseOrder(domain: DomainPurchaseOrder, correlationId: string): Promise<ErpSurfaceResponse>;
|
|
26
|
+
getInventoryBalance(subsidiary: string, location: string, item: string, correlationId: string): Promise<DomainInventoryBalance | null>;
|
|
27
|
+
updateItemReceipt(domain: DomainItemReceipt, transferNsId: string, correlationId: string): Promise<ErpSurfaceResponse>;
|
|
28
|
+
getSyncStatus(): SyncStatus;
|
|
29
|
+
getPendingQueue(): ReadonlyArray<SyncQueueEntry>;
|
|
30
|
+
drainSyncQueue(): Promise<{
|
|
31
|
+
processed: number;
|
|
32
|
+
failed: number;
|
|
33
|
+
}>;
|
|
34
|
+
private post;
|
|
35
|
+
private get;
|
|
36
|
+
private getIdentityToken;
|
|
37
|
+
private executeWithFallback;
|
|
38
|
+
private recordError;
|
|
39
|
+
private operationToPath;
|
|
40
|
+
private auditBefore;
|
|
41
|
+
private auditAfter;
|
|
42
|
+
}
|