@llm-dev-ops/agentics-cli 1.4.95 → 1.5.1
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/agents/system-prompts.d.ts.map +1 -1
- package/dist/agents/system-prompts.js +25 -3
- package/dist/agents/system-prompts.js.map +1 -1
- package/dist/commands/export.d.ts.map +1 -1
- package/dist/commands/export.js +20 -1
- package/dist/commands/export.js.map +1 -1
- package/dist/infrastructure/db-adapter.d.ts +67 -0
- package/dist/infrastructure/db-adapter.d.ts.map +1 -0
- package/dist/infrastructure/db-adapter.js +151 -0
- package/dist/infrastructure/db-adapter.js.map +1 -0
- package/dist/infrastructure/sap-adapter.d.ts +95 -0
- package/dist/infrastructure/sap-adapter.d.ts.map +1 -0
- package/dist/infrastructure/sap-adapter.js +651 -0
- package/dist/infrastructure/sap-adapter.js.map +1 -0
- package/dist/pipeline/phase3-sparc/phase3-sparc-coordinator.d.ts.map +1 -1
- package/dist/pipeline/phase3-sparc/phase3-sparc-coordinator.js +56 -9
- package/dist/pipeline/phase3-sparc/phase3-sparc-coordinator.js.map +1 -1
- package/dist/routing/capability-classifier.d.ts.map +1 -1
- package/dist/routing/capability-classifier.js +16 -1
- package/dist/routing/capability-classifier.js.map +1 -1
- package/dist/server/routes/erpsurface.d.ts +3 -1
- package/dist/server/routes/erpsurface.d.ts.map +1 -1
- package/dist/server/routes/erpsurface.js +548 -7
- package/dist/server/routes/erpsurface.js.map +1 -1
- package/dist/synthesis/simulation-artifact-generator.d.ts.map +1 -1
- package/dist/synthesis/simulation-artifact-generator.js +23 -5
- package/dist/synthesis/simulation-artifact-generator.js.map +1 -1
- package/docs/ecosystem.graph.json +5 -5
- package/package.json +1 -1
- package/dist/__tests__/api_gateway.test.d.ts +0 -1
- package/dist/__tests__/api_gateway.test.js +0 -50
- package/dist/__tests__/domain_enterprise_solution.test.d.ts +0 -1
- package/dist/__tests__/domain_enterprise_solution.test.js +0 -50
- package/dist/__tests__/health.test.d.ts +0 -1
- package/dist/__tests__/health.test.js +0 -19
- package/dist/__tests__/monitoring_alerts.test.d.ts +0 -1
- package/dist/__tests__/monitoring_alerts.test.js +0 -50
- package/dist/__tests__/ongoing_regular_stakeholder.test.d.ts +0 -1
- package/dist/__tests__/ongoing_regular_stakeholder.test.js +0 -50
- package/dist/__tests__/re_evaluate_risk.test.d.ts +0 -1
- package/dist/__tests__/re_evaluate_risk.test.js +0 -50
- package/dist/__tests__/recommendation.test.d.ts +0 -1
- package/dist/__tests__/recommendation.test.js +0 -50
- package/dist/__tests__/risk_mitigation_plan.test.d.ts +0 -1
- package/dist/__tests__/risk_mitigation_plan.test.js +0 -50
- package/dist/__tests__/scoped_pilot_reduce.test.d.ts +0 -1
- package/dist/__tests__/scoped_pilot_reduce.test.js +0 -50
- package/dist/__tests__/target_enterprise_system.test.d.ts +0 -1
- package/dist/__tests__/target_enterprise_system.test.js +0 -50
- package/dist/__tests__/underwriting.test.d.ts +0 -1
- package/dist/__tests__/underwriting.test.js +0 -50
- package/dist/api-gateway/infra/api-gateway-adapter.d.ts +0 -27
- package/dist/api-gateway/infra/api-gateway-adapter.js +0 -54
- package/dist/api-gateway/ports/api-gateway.d.ts +0 -26
- package/dist/api-gateway/ports/api-gateway.js +0 -2
- package/dist/contracts/contract-validation.d.ts +0 -11
- package/dist/contracts/contract-validation.js +0 -21
- package/dist/domain-enterprise-solution/infra/api-gateway-seam-adapter.d.ts +0 -21
- package/dist/domain-enterprise-solution/infra/api-gateway-seam-adapter.js +0 -42
- package/dist/domain-enterprise-solution/infra/domain-enterprise-solution-adapter.d.ts +0 -25
- package/dist/domain-enterprise-solution/infra/domain-enterprise-solution-adapter.js +0 -47
- package/dist/domain-enterprise-solution/ports/api-gateway-seam.d.ts +0 -20
- package/dist/domain-enterprise-solution/ports/api-gateway-seam.js +0 -2
- package/dist/domain-enterprise-solution/ports/domain-enterprise-solution.d.ts +0 -24
- package/dist/domain-enterprise-solution/ports/domain-enterprise-solution.js +0 -2
- package/dist/enterprise/index.d.ts +0 -15
- package/dist/enterprise/index.js +0 -16
- package/dist/erp-client/client.d.ts +0 -42
- package/dist/erp-client/client.js +0 -235
- package/dist/erp-client/mapper.d.ts +0 -9
- package/dist/erp-client/mapper.js +0 -116
- package/dist/erp-client/retry.d.ts +0 -17
- package/dist/erp-client/retry.js +0 -74
- package/dist/erp-client/types.d.ts +0 -155
- package/dist/erp-client/types.js +0 -2
- package/dist/infra/clients.d.ts +0 -27
- package/dist/infra/clients.js +0 -16
- package/dist/infra/connection-pool.d.ts +0 -16
- package/dist/infra/connection-pool.js +0 -13
- package/dist/infra/iam-helper.d.ts +0 -1
- package/dist/infra/iam-helper.js +0 -138
- package/dist/infra/telemetry.d.ts +0 -26
- package/dist/infra/telemetry.js +0 -39
- package/dist/monitoring-alerts/infra/monitoring-alerts-adapter.d.ts +0 -25
- package/dist/monitoring-alerts/infra/monitoring-alerts-adapter.js +0 -47
- package/dist/monitoring-alerts/ports/monitoring-alerts.d.ts +0 -24
- package/dist/monitoring-alerts/ports/monitoring-alerts.js +0 -2
- package/dist/ongoing-regular-stakeholder/infra/ongoing-regular-stakeholder-adapter.d.ts +0 -25
- package/dist/ongoing-regular-stakeholder/infra/ongoing-regular-stakeholder-adapter.js +0 -47
- package/dist/ongoing-regular-stakeholder/ports/ongoing-regular-stakeholder.d.ts +0 -24
- package/dist/ongoing-regular-stakeholder/ports/ongoing-regular-stakeholder.js +0 -2
- package/dist/re-evaluate-risk/infra/re-evaluate-risk-adapter.d.ts +0 -25
- package/dist/re-evaluate-risk/infra/re-evaluate-risk-adapter.js +0 -47
- package/dist/re-evaluate-risk/ports/re-evaluate-risk.d.ts +0 -24
- package/dist/re-evaluate-risk/ports/re-evaluate-risk.js +0 -2
- package/dist/recommendation/infra/recommendation-adapter.d.ts +0 -25
- package/dist/recommendation/infra/recommendation-adapter.js +0 -47
- package/dist/recommendation/ports/recommendation.d.ts +0 -24
- package/dist/recommendation/ports/recommendation.js +0 -2
- package/dist/risk-mitigation-plan/infra/risk-mitigation-plan-adapter.d.ts +0 -25
- package/dist/risk-mitigation-plan/infra/risk-mitigation-plan-adapter.js +0 -47
- package/dist/risk-mitigation-plan/ports/risk-mitigation-plan.d.ts +0 -24
- package/dist/risk-mitigation-plan/ports/risk-mitigation-plan.js +0 -2
- package/dist/scoped-pilot-reduce/infra/scoped-pilot-reduce-adapter.d.ts +0 -25
- package/dist/scoped-pilot-reduce/infra/scoped-pilot-reduce-adapter.js +0 -47
- package/dist/scoped-pilot-reduce/ports/scoped-pilot-reduce.d.ts +0 -24
- package/dist/scoped-pilot-reduce/ports/scoped-pilot-reduce.js +0 -2
- package/dist/server/dependencies.d.ts +0 -178
- package/dist/server/dependencies.js +0 -321
- package/dist/server/health.d.ts +0 -2
- package/dist/server/health.js +0 -9
- package/dist/server/main.d.ts +0 -1
- package/dist/server/main.js +0 -21
- package/dist/server/middleware.d.ts +0 -4
- package/dist/server/middleware.js +0 -106
- package/dist/server/routes.d.ts +0 -5
- package/dist/server/routes.js +0 -1100
- package/dist/server/schemas.d.ts +0 -217
- package/dist/server/schemas.js +0 -185
- package/dist/target-enterprise-system/infra/target-enterprise-system-adapter.d.ts +0 -25
- package/dist/target-enterprise-system/infra/target-enterprise-system-adapter.js +0 -47
- package/dist/target-enterprise-system/ports/target-enterprise-system.d.ts +0 -24
- package/dist/target-enterprise-system/ports/target-enterprise-system.js +0 -2
- package/dist/underwriting/infra/underwriting-adapter.d.ts +0 -25
- package/dist/underwriting/infra/underwriting-adapter.js +0 -47
- package/dist/underwriting/ports/underwriting.d.ts +0 -24
- package/dist/underwriting/ports/underwriting.js +0 -2
package/dist/server/health.d.ts
DELETED
package/dist/server/health.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
// Generated by Phase 4 pipeline — do not edit manually
|
|
2
|
-
import { Hono } from 'hono';
|
|
3
|
-
export const healthRouter = new Hono();
|
|
4
|
-
healthRouter.get('/healthz', (c) => {
|
|
5
|
-
return c.json({ status: 'ok' }, 200);
|
|
6
|
-
});
|
|
7
|
-
healthRouter.get('/readyz', (c) => {
|
|
8
|
-
return c.json({ status: 'ready' }, 200);
|
|
9
|
-
});
|
package/dist/server/main.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/server/main.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
// Generated by Phase 4 pipeline — do not edit manually
|
|
2
|
-
import { serve } from '@hono/node-server';
|
|
3
|
-
import { app } from './routes.js';
|
|
4
|
-
const PORT = parseInt(process.env.PORT ?? '8080', 10);
|
|
5
|
-
serve({ fetch: app.fetch, port: PORT }, (info) => {
|
|
6
|
-
process.stdout.write(JSON.stringify({
|
|
7
|
-
severity: 'INFO',
|
|
8
|
-
message: 'HTTP server started',
|
|
9
|
-
port: info.port,
|
|
10
|
-
pid: process.pid,
|
|
11
|
-
timestamp: new Date().toISOString(),
|
|
12
|
-
}) + '\n');
|
|
13
|
-
});
|
|
14
|
-
process.on('SIGTERM', () => {
|
|
15
|
-
process.stdout.write(JSON.stringify({
|
|
16
|
-
severity: 'INFO',
|
|
17
|
-
message: 'Received SIGTERM — shutting down gracefully',
|
|
18
|
-
timestamp: new Date().toISOString(),
|
|
19
|
-
}) + '\n');
|
|
20
|
-
process.exit(0);
|
|
21
|
-
});
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
// Generated by Phase 4 pipeline — do not edit manually
|
|
2
|
-
import { createMiddleware } from 'hono/factory';
|
|
3
|
-
import * as crypto from 'node:crypto';
|
|
4
|
-
import * as jwt from 'jsonwebtoken';
|
|
5
|
-
import jwksClient from 'jwks-rsa';
|
|
6
|
-
// ---------------------------------------------------------------------------
|
|
7
|
-
// Correlation ID middleware
|
|
8
|
-
// ---------------------------------------------------------------------------
|
|
9
|
-
export const correlationMiddleware = createMiddleware(async (c, next) => {
|
|
10
|
-
const correlationId = c.req.header('X-Correlation-ID') ?? crypto.randomUUID();
|
|
11
|
-
c.set('correlationId', correlationId);
|
|
12
|
-
c.header('X-Correlation-ID', correlationId);
|
|
13
|
-
await next();
|
|
14
|
-
});
|
|
15
|
-
// ---------------------------------------------------------------------------
|
|
16
|
-
// IAM token validation middleware (JWKS-backed JWT verification)
|
|
17
|
-
// ---------------------------------------------------------------------------
|
|
18
|
-
const JWKS_URI = process.env.IAM_JWKS_URI ?? 'https://www.googleapis.com/oauth2/v3/certs';
|
|
19
|
-
const IAM_AUDIENCE = process.env.IAM_AUDIENCE ?? '';
|
|
20
|
-
const IAM_ISSUERS = (process.env.IAM_ISSUERS ?? 'https://accounts.google.com').split(',').map(s => s.trim());
|
|
21
|
-
const jwksRsa = jwksClient({
|
|
22
|
-
jwksUri: JWKS_URI,
|
|
23
|
-
cache: true,
|
|
24
|
-
cacheMaxAge: 600_000,
|
|
25
|
-
rateLimit: true,
|
|
26
|
-
jwksRequestsPerMinute: 10,
|
|
27
|
-
});
|
|
28
|
-
function getSigningKey(kid) {
|
|
29
|
-
return new Promise((resolve, reject) => {
|
|
30
|
-
jwksRsa.getSigningKey(kid, (err, key) => {
|
|
31
|
-
if (err || !key)
|
|
32
|
-
return reject(err ?? new Error('No signing key found'));
|
|
33
|
-
resolve(key.getPublicKey());
|
|
34
|
-
});
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
export const iamMiddleware = createMiddleware(async (c, next) => {
|
|
38
|
-
const path = new URL(c.req.url).pathname;
|
|
39
|
-
if (path === '/health/healthz' || path === '/health/readyz') {
|
|
40
|
-
await next();
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
43
|
-
const authHeader = c.req.header('Authorization');
|
|
44
|
-
if (!authHeader?.startsWith('Bearer ')) {
|
|
45
|
-
return c.json({ error: { code: 'UNAUTHORIZED', message: 'Missing Bearer token' } }, 401);
|
|
46
|
-
}
|
|
47
|
-
const token = authHeader.slice(7);
|
|
48
|
-
if (!token) {
|
|
49
|
-
return c.json({ error: { code: 'UNAUTHORIZED', message: 'Empty token' } }, 401);
|
|
50
|
-
}
|
|
51
|
-
try {
|
|
52
|
-
const decoded = jwt.decode(token, { complete: true });
|
|
53
|
-
if (!decoded || typeof decoded === 'string' || !decoded.header.kid) {
|
|
54
|
-
return c.json({ error: { code: 'UNAUTHORIZED', message: 'Malformed token: missing kid' } }, 401);
|
|
55
|
-
}
|
|
56
|
-
const signingKey = await getSigningKey(decoded.header.kid);
|
|
57
|
-
const verifyOptions = {
|
|
58
|
-
algorithms: ['RS256', 'RS384', 'RS512', 'ES256', 'ES384'],
|
|
59
|
-
};
|
|
60
|
-
if (IAM_ISSUERS.length > 0 && IAM_ISSUERS[0] !== '') {
|
|
61
|
-
verifyOptions.issuer = IAM_ISSUERS;
|
|
62
|
-
}
|
|
63
|
-
if (IAM_AUDIENCE) {
|
|
64
|
-
verifyOptions.audience = IAM_AUDIENCE;
|
|
65
|
-
}
|
|
66
|
-
const payload = jwt.verify(token, signingKey, verifyOptions);
|
|
67
|
-
c.set('iamClaims', payload);
|
|
68
|
-
}
|
|
69
|
-
catch (err) {
|
|
70
|
-
const message = err instanceof Error ? err.message : 'Token verification failed';
|
|
71
|
-
return c.json({ error: { code: 'UNAUTHORIZED', message } }, 401);
|
|
72
|
-
}
|
|
73
|
-
await next();
|
|
74
|
-
});
|
|
75
|
-
// ---------------------------------------------------------------------------
|
|
76
|
-
// Structured JSON request/response logging middleware
|
|
77
|
-
// ---------------------------------------------------------------------------
|
|
78
|
-
export const loggingMiddleware = createMiddleware(async (c, next) => {
|
|
79
|
-
const startTime = Date.now();
|
|
80
|
-
const correlationId = c.get('correlationId');
|
|
81
|
-
process.stdout.write(JSON.stringify({
|
|
82
|
-
severity: 'INFO',
|
|
83
|
-
message: 'request received',
|
|
84
|
-
httpRequest: {
|
|
85
|
-
method: c.req.method,
|
|
86
|
-
url: c.req.url,
|
|
87
|
-
userAgent: c.req.header('user-agent'),
|
|
88
|
-
},
|
|
89
|
-
correlationId,
|
|
90
|
-
timestamp: new Date().toISOString(),
|
|
91
|
-
}) + '\n');
|
|
92
|
-
await next();
|
|
93
|
-
const durationMs = Date.now() - startTime;
|
|
94
|
-
process.stdout.write(JSON.stringify({
|
|
95
|
-
severity: 'INFO',
|
|
96
|
-
message: 'request completed',
|
|
97
|
-
httpRequest: {
|
|
98
|
-
method: c.req.method,
|
|
99
|
-
url: c.req.url,
|
|
100
|
-
status: c.res.status,
|
|
101
|
-
latency: `${durationMs}ms`,
|
|
102
|
-
},
|
|
103
|
-
correlationId,
|
|
104
|
-
timestamp: new Date().toISOString(),
|
|
105
|
-
}) + '\n');
|
|
106
|
-
});
|
package/dist/server/routes.d.ts
DELETED