@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.
Files changed (127) hide show
  1. package/dist/agents/system-prompts.d.ts.map +1 -1
  2. package/dist/agents/system-prompts.js +25 -3
  3. package/dist/agents/system-prompts.js.map +1 -1
  4. package/dist/commands/export.d.ts.map +1 -1
  5. package/dist/commands/export.js +20 -1
  6. package/dist/commands/export.js.map +1 -1
  7. package/dist/infrastructure/db-adapter.d.ts +67 -0
  8. package/dist/infrastructure/db-adapter.d.ts.map +1 -0
  9. package/dist/infrastructure/db-adapter.js +151 -0
  10. package/dist/infrastructure/db-adapter.js.map +1 -0
  11. package/dist/infrastructure/sap-adapter.d.ts +95 -0
  12. package/dist/infrastructure/sap-adapter.d.ts.map +1 -0
  13. package/dist/infrastructure/sap-adapter.js +651 -0
  14. package/dist/infrastructure/sap-adapter.js.map +1 -0
  15. package/dist/pipeline/phase3-sparc/phase3-sparc-coordinator.d.ts.map +1 -1
  16. package/dist/pipeline/phase3-sparc/phase3-sparc-coordinator.js +56 -9
  17. package/dist/pipeline/phase3-sparc/phase3-sparc-coordinator.js.map +1 -1
  18. package/dist/routing/capability-classifier.d.ts.map +1 -1
  19. package/dist/routing/capability-classifier.js +16 -1
  20. package/dist/routing/capability-classifier.js.map +1 -1
  21. package/dist/server/routes/erpsurface.d.ts +3 -1
  22. package/dist/server/routes/erpsurface.d.ts.map +1 -1
  23. package/dist/server/routes/erpsurface.js +548 -7
  24. package/dist/server/routes/erpsurface.js.map +1 -1
  25. package/dist/synthesis/simulation-artifact-generator.d.ts.map +1 -1
  26. package/dist/synthesis/simulation-artifact-generator.js +23 -5
  27. package/dist/synthesis/simulation-artifact-generator.js.map +1 -1
  28. package/docs/ecosystem.graph.json +5 -5
  29. package/package.json +1 -1
  30. package/dist/__tests__/api_gateway.test.d.ts +0 -1
  31. package/dist/__tests__/api_gateway.test.js +0 -50
  32. package/dist/__tests__/domain_enterprise_solution.test.d.ts +0 -1
  33. package/dist/__tests__/domain_enterprise_solution.test.js +0 -50
  34. package/dist/__tests__/health.test.d.ts +0 -1
  35. package/dist/__tests__/health.test.js +0 -19
  36. package/dist/__tests__/monitoring_alerts.test.d.ts +0 -1
  37. package/dist/__tests__/monitoring_alerts.test.js +0 -50
  38. package/dist/__tests__/ongoing_regular_stakeholder.test.d.ts +0 -1
  39. package/dist/__tests__/ongoing_regular_stakeholder.test.js +0 -50
  40. package/dist/__tests__/re_evaluate_risk.test.d.ts +0 -1
  41. package/dist/__tests__/re_evaluate_risk.test.js +0 -50
  42. package/dist/__tests__/recommendation.test.d.ts +0 -1
  43. package/dist/__tests__/recommendation.test.js +0 -50
  44. package/dist/__tests__/risk_mitigation_plan.test.d.ts +0 -1
  45. package/dist/__tests__/risk_mitigation_plan.test.js +0 -50
  46. package/dist/__tests__/scoped_pilot_reduce.test.d.ts +0 -1
  47. package/dist/__tests__/scoped_pilot_reduce.test.js +0 -50
  48. package/dist/__tests__/target_enterprise_system.test.d.ts +0 -1
  49. package/dist/__tests__/target_enterprise_system.test.js +0 -50
  50. package/dist/__tests__/underwriting.test.d.ts +0 -1
  51. package/dist/__tests__/underwriting.test.js +0 -50
  52. package/dist/api-gateway/infra/api-gateway-adapter.d.ts +0 -27
  53. package/dist/api-gateway/infra/api-gateway-adapter.js +0 -54
  54. package/dist/api-gateway/ports/api-gateway.d.ts +0 -26
  55. package/dist/api-gateway/ports/api-gateway.js +0 -2
  56. package/dist/contracts/contract-validation.d.ts +0 -11
  57. package/dist/contracts/contract-validation.js +0 -21
  58. package/dist/domain-enterprise-solution/infra/api-gateway-seam-adapter.d.ts +0 -21
  59. package/dist/domain-enterprise-solution/infra/api-gateway-seam-adapter.js +0 -42
  60. package/dist/domain-enterprise-solution/infra/domain-enterprise-solution-adapter.d.ts +0 -25
  61. package/dist/domain-enterprise-solution/infra/domain-enterprise-solution-adapter.js +0 -47
  62. package/dist/domain-enterprise-solution/ports/api-gateway-seam.d.ts +0 -20
  63. package/dist/domain-enterprise-solution/ports/api-gateway-seam.js +0 -2
  64. package/dist/domain-enterprise-solution/ports/domain-enterprise-solution.d.ts +0 -24
  65. package/dist/domain-enterprise-solution/ports/domain-enterprise-solution.js +0 -2
  66. package/dist/enterprise/index.d.ts +0 -15
  67. package/dist/enterprise/index.js +0 -16
  68. package/dist/erp-client/client.d.ts +0 -42
  69. package/dist/erp-client/client.js +0 -235
  70. package/dist/erp-client/mapper.d.ts +0 -9
  71. package/dist/erp-client/mapper.js +0 -116
  72. package/dist/erp-client/retry.d.ts +0 -17
  73. package/dist/erp-client/retry.js +0 -74
  74. package/dist/erp-client/types.d.ts +0 -155
  75. package/dist/erp-client/types.js +0 -2
  76. package/dist/infra/clients.d.ts +0 -27
  77. package/dist/infra/clients.js +0 -16
  78. package/dist/infra/connection-pool.d.ts +0 -16
  79. package/dist/infra/connection-pool.js +0 -13
  80. package/dist/infra/iam-helper.d.ts +0 -1
  81. package/dist/infra/iam-helper.js +0 -138
  82. package/dist/infra/telemetry.d.ts +0 -26
  83. package/dist/infra/telemetry.js +0 -39
  84. package/dist/monitoring-alerts/infra/monitoring-alerts-adapter.d.ts +0 -25
  85. package/dist/monitoring-alerts/infra/monitoring-alerts-adapter.js +0 -47
  86. package/dist/monitoring-alerts/ports/monitoring-alerts.d.ts +0 -24
  87. package/dist/monitoring-alerts/ports/monitoring-alerts.js +0 -2
  88. package/dist/ongoing-regular-stakeholder/infra/ongoing-regular-stakeholder-adapter.d.ts +0 -25
  89. package/dist/ongoing-regular-stakeholder/infra/ongoing-regular-stakeholder-adapter.js +0 -47
  90. package/dist/ongoing-regular-stakeholder/ports/ongoing-regular-stakeholder.d.ts +0 -24
  91. package/dist/ongoing-regular-stakeholder/ports/ongoing-regular-stakeholder.js +0 -2
  92. package/dist/re-evaluate-risk/infra/re-evaluate-risk-adapter.d.ts +0 -25
  93. package/dist/re-evaluate-risk/infra/re-evaluate-risk-adapter.js +0 -47
  94. package/dist/re-evaluate-risk/ports/re-evaluate-risk.d.ts +0 -24
  95. package/dist/re-evaluate-risk/ports/re-evaluate-risk.js +0 -2
  96. package/dist/recommendation/infra/recommendation-adapter.d.ts +0 -25
  97. package/dist/recommendation/infra/recommendation-adapter.js +0 -47
  98. package/dist/recommendation/ports/recommendation.d.ts +0 -24
  99. package/dist/recommendation/ports/recommendation.js +0 -2
  100. package/dist/risk-mitigation-plan/infra/risk-mitigation-plan-adapter.d.ts +0 -25
  101. package/dist/risk-mitigation-plan/infra/risk-mitigation-plan-adapter.js +0 -47
  102. package/dist/risk-mitigation-plan/ports/risk-mitigation-plan.d.ts +0 -24
  103. package/dist/risk-mitigation-plan/ports/risk-mitigation-plan.js +0 -2
  104. package/dist/scoped-pilot-reduce/infra/scoped-pilot-reduce-adapter.d.ts +0 -25
  105. package/dist/scoped-pilot-reduce/infra/scoped-pilot-reduce-adapter.js +0 -47
  106. package/dist/scoped-pilot-reduce/ports/scoped-pilot-reduce.d.ts +0 -24
  107. package/dist/scoped-pilot-reduce/ports/scoped-pilot-reduce.js +0 -2
  108. package/dist/server/dependencies.d.ts +0 -178
  109. package/dist/server/dependencies.js +0 -321
  110. package/dist/server/health.d.ts +0 -2
  111. package/dist/server/health.js +0 -9
  112. package/dist/server/main.d.ts +0 -1
  113. package/dist/server/main.js +0 -21
  114. package/dist/server/middleware.d.ts +0 -4
  115. package/dist/server/middleware.js +0 -106
  116. package/dist/server/routes.d.ts +0 -5
  117. package/dist/server/routes.js +0 -1100
  118. package/dist/server/schemas.d.ts +0 -217
  119. package/dist/server/schemas.js +0 -185
  120. package/dist/target-enterprise-system/infra/target-enterprise-system-adapter.d.ts +0 -25
  121. package/dist/target-enterprise-system/infra/target-enterprise-system-adapter.js +0 -47
  122. package/dist/target-enterprise-system/ports/target-enterprise-system.d.ts +0 -24
  123. package/dist/target-enterprise-system/ports/target-enterprise-system.js +0 -2
  124. package/dist/underwriting/infra/underwriting-adapter.d.ts +0 -25
  125. package/dist/underwriting/infra/underwriting-adapter.js +0 -47
  126. package/dist/underwriting/ports/underwriting.d.ts +0 -24
  127. package/dist/underwriting/ports/underwriting.js +0 -2
@@ -1 +0,0 @@
1
- export {};
@@ -1,138 +0,0 @@
1
- // Generated by Phase 4 pipeline — do not edit manually
2
- function detectProvider() {
3
- return (process.env['CLOUD_PROVIDER'] ?? 'gcp').toLowerCase();
4
- }
5
- /**
6
- * GCP: Fetch identity token from the metadata server.
7
- */
8
- async function fetchGcpToken(audience) {
9
- const url = 'http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/identity'
10
- + `?audience=${encodeURIComponent(audience)}&format=full`;
11
- const response = await fetch(url, {
12
- headers: { 'Metadata-Flavor': 'Google' },
13
- });
14
- if (!response.ok) {
15
- throw new Error(`GCP metadata token request failed: HTTP ${response.status}`);
16
- }
17
- return response.text();
18
- }
19
- /**
20
- * AWS: Fetch a session token via IMDSv2 (two-step: PUT for token, then GET credentials).
21
- */
22
- async function fetchAwsToken(_audience) {
23
- // Step 1: Get IMDSv2 session token
24
- const tokenRes = await fetch('http://169.254.169.254/latest/api/token', {
25
- method: 'PUT',
26
- headers: { 'X-aws-ec2-metadata-token-ttl-seconds': '300' },
27
- });
28
- if (!tokenRes.ok) {
29
- throw new Error(`AWS IMDSv2 token request failed: HTTP ${tokenRes.status}`);
30
- }
31
- const imdsToken = await tokenRes.text();
32
- // Step 2: Use the session token to retrieve IAM role credentials
33
- const credsRes = await fetch('http://169.254.169.254/latest/meta-data/iam/security-credentials/', { headers: { 'X-aws-ec2-metadata-token': imdsToken } });
34
- if (!credsRes.ok) {
35
- throw new Error(`AWS IMDS credentials request failed: HTTP ${credsRes.status}`);
36
- }
37
- const roleName = (await credsRes.text()).trim();
38
- const roleRes = await fetch();
39
- `http://169.254.169.254/latest/meta-data/iam/security-credentials/\${roleName}\`,
40
- { headers: { 'X-aws-ec2-metadata-token': imdsToken } },
41
- );
42
- if (!roleRes.ok) {
43
- throw new Error(`;
44
- AWS;
45
- IMDS;
46
- role;
47
- credentials;
48
- request;
49
- failed: HTTP;
50
- $;
51
- {
52
- roleRes.status;
53
- }
54
- `);
55
- }
56
- const creds = await roleRes.json() as { Token: string };
57
- return creds.Token;
58
- }
59
-
60
- /**
61
- * Azure: Fetch an access token from the Azure Instance Metadata Service (IMDS).
62
- */
63
- async function fetchAzureToken(audience: string): Promise<string> {
64
- const resource = audience || 'https://management.azure.com/';
65
- const url =
66
- 'http://169.254.169.254/metadata/identity/oauth2/token'
67
- + ` ? api - version : ;
68
- 2018 - 2 - 1 & resource;
69
- $;
70
- {
71
- encodeURIComponent(resource);
72
- }
73
- `;
74
-
75
- const response = await fetch(url, {
76
- headers: { Metadata: 'true' },
77
- });
78
- if (!response.ok) {
79
- throw new Error(`;
80
- Azure;
81
- IMDS;
82
- token;
83
- request;
84
- failed: HTTP;
85
- $;
86
- {
87
- response.status;
88
- }
89
- `);
90
- }
91
- const body = await response.json() as { access_token: string };
92
- return body.access_token;
93
- }
94
-
95
- /**
96
- * Fetch an identity/session token for service-to-service authentication.
97
- * Automatically selects the correct provider based on CLOUD_PROVIDER env var.
98
- *
99
- * @param audience - The target audience or resource URI for the token.
100
- * @returns The bearer token string.
101
- */
102
- export async function fetchIdentityToken(audience: string): Promise<string> {
103
- const provider = detectProvider();
104
-
105
- switch (provider) {
106
- case 'gcp':
107
- return fetchGcpToken(audience);
108
- case 'aws':
109
- return fetchAwsToken(audience);
110
- case 'azure':
111
- return fetchAzureToken(audience);
112
- default: {
113
- // Fallback: use AUTH_TOKEN env var for on-prem or unsupported providers
114
- const token = process.env['AUTH_TOKEN'];
115
- if (!token) {
116
- throw new Error(
117
- `;
118
- No;
119
- identity;
120
- token;
121
- available: unsupported;
122
- provider;
123
- "${provider}" ` +
124
- `;
125
- and;
126
- AUTH_TOKEN;
127
- env;
128
- var is, not, set;
129
- `,
130
- );
131
- }
132
- return token;
133
- }
134
- }
135
- }
136
- ;
137
- }
138
- export {};
@@ -1,26 +0,0 @@
1
- /**
2
- * OpenTelemetry wrapper for infrastructure adapters.
3
- *
4
- * Provides span creation and a convenience withSpan() helper.
5
- * Self-contained — no pipeline dependencies.
6
- */
7
- export interface SpanAttributes {
8
- readonly [key: string]: string | number | boolean;
9
- }
10
- export interface Span {
11
- readonly name: string;
12
- readonly startTime: number;
13
- end(status: 'ok' | 'error', attributes?: SpanAttributes): void;
14
- }
15
- export interface Telemetry {
16
- createSpan(service: string, operation: string, attributes?: SpanAttributes): Span;
17
- withSpan<T>(service: string, operation: string, attributes: SpanAttributes, fn: () => Promise<T>): Promise<T>;
18
- }
19
- /**
20
- * Console-based telemetry implementation.
21
- * Replace with OpenTelemetry SDK integration for production.
22
- */
23
- export declare class ConsoleTelemetry implements Telemetry {
24
- createSpan(service: string, operation: string, attributes?: SpanAttributes): Span;
25
- withSpan<T>(service: string, operation: string, attributes: SpanAttributes, fn: () => Promise<T>): Promise<T>;
26
- }
@@ -1,39 +0,0 @@
1
- // Generated by Phase 4 pipeline — do not edit manually
2
- /**
3
- * Console-based telemetry implementation.
4
- * Replace with OpenTelemetry SDK integration for production.
5
- */
6
- export class ConsoleTelemetry {
7
- createSpan(service, operation, attributes = {}) {
8
- const startTime = Date.now();
9
- const name = `${service}.${operation}`;
10
- return {
11
- name,
12
- startTime,
13
- end(status, endAttrs = {}) {
14
- const duration = Date.now() - startTime;
15
- const level = status === 'error' ? 'error' : 'info';
16
- const logFn = level === 'error' ? console.error : console.info;
17
- logFn(JSON.stringify({
18
- span: name,
19
- status,
20
- durationMs: duration,
21
- ...attributes,
22
- ...endAttrs,
23
- }));
24
- },
25
- };
26
- }
27
- async withSpan(service, operation, attributes, fn) {
28
- const span = this.createSpan(service, operation, attributes);
29
- try {
30
- const result = await fn();
31
- span.end('ok');
32
- return result;
33
- }
34
- catch (err) {
35
- span.end('error', { error: err instanceof Error ? err.message : String(err) });
36
- throw err;
37
- }
38
- }
39
- }
@@ -1,25 +0,0 @@
1
- import type { MonitoringAlertsPort, MonitoringAlertsInput, MonitoringAlerts } from '../ports/monitoring-alerts.js';
2
- import type { Telemetry } from '../../infra/telemetry.js';
3
- import type { DbClient, ErpClient } from '../../infra/clients.js';
4
- /**
5
- * Infrastructure adapter: MonitoringAlertsAdapter
6
- * Bounded context: monitoring-alerts
7
- * ERP system: infor
8
- *
9
- * Bridges the MonitoringAlertsPort port to the infor ERP system
10
- * and the underlying database client.
11
- */
12
- export declare class MonitoringAlertsAdapter implements MonitoringAlertsPort {
13
- private readonly db;
14
- private readonly erp;
15
- private readonly telemetry;
16
- constructor(db: DbClient, erp: ErpClient, telemetry: Telemetry);
17
- /** Creates or updates monitoring-alerts record */
18
- manageMonitoringAlerts(input: MonitoringAlertsInput): Promise<MonitoringAlerts>;
19
- /** Creates or updates monitoring-alerts record */
20
- queryMonitoringAlerts(input: MonitoringAlertsInput): Promise<MonitoringAlerts>;
21
- /** Returns monitoring-alerts data */
22
- listMonitoringAlerts(input: Record<string, unknown>): Promise<MonitoringAlerts[]>;
23
- /** Returns monitoring-alerts data */
24
- id(input: Record<string, unknown>): Promise<MonitoringAlerts[]>;
25
- }
@@ -1,47 +0,0 @@
1
- // Generated by Phase 4 pipeline — do not edit manually
2
- /**
3
- * Infrastructure adapter: MonitoringAlertsAdapter
4
- * Bounded context: monitoring-alerts
5
- * ERP system: infor
6
- *
7
- * Bridges the MonitoringAlertsPort port to the infor ERP system
8
- * and the underlying database client.
9
- */
10
- export class MonitoringAlertsAdapter {
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 monitoring-alerts record */
20
- async manageMonitoringAlerts(input) {
21
- return this.telemetry.withSpan('monitoring_alerts', 'manageMonitoringAlerts', {}, async () => {
22
- const result = await this.erp.invoke('manageMonitoringAlerts', input);
23
- return result;
24
- });
25
- }
26
- /** Creates or updates monitoring-alerts record */
27
- async queryMonitoringAlerts(input) {
28
- return this.telemetry.withSpan('monitoring_alerts', 'queryMonitoringAlerts', {}, async () => {
29
- const rows = await this.db.query('SELECT * FROM monitoring_alerts WHERE 1=1', []);
30
- return rows;
31
- });
32
- }
33
- /** Returns monitoring-alerts data */
34
- async listMonitoringAlerts(input) {
35
- return this.telemetry.withSpan('monitoring_alerts', 'listMonitoringAlerts', {}, async () => {
36
- const rows = await this.db.query('SELECT * FROM monitoring_alerts WHERE 1=1', []);
37
- return rows;
38
- });
39
- }
40
- /** Returns monitoring-alerts data */
41
- async id(input) {
42
- return this.telemetry.withSpan('monitoring_alerts', 'id', {}, async () => {
43
- const result = await this.erp.invoke('id', input);
44
- return result;
45
- });
46
- }
47
- }
@@ -1,24 +0,0 @@
1
- /**
2
- * Port interface for bounded context: monitoring-alerts
3
- */
4
- export interface MonitoringAlertsInput {
5
- readonly id: string;
6
- readonly monitoring_alerts_id: string;
7
- }
8
- export interface MonitoringAlerts {
9
- readonly id: string;
10
- readonly created_at: string;
11
- readonly updated_at: string;
12
- readonly status: 'active' | 'inactive' | 'pending' | 'completed' | 'error';
13
- readonly monitoring_alerts_id: string;
14
- }
15
- export interface MonitoringAlertsPort {
16
- /** Creates or updates monitoring-alerts record */
17
- manageMonitoringAlerts(input: MonitoringAlertsInput): Promise<MonitoringAlerts>;
18
- /** Creates or updates monitoring-alerts record */
19
- queryMonitoringAlerts(input: MonitoringAlertsInput): Promise<MonitoringAlerts>;
20
- /** Returns monitoring-alerts data */
21
- listMonitoringAlerts(input: Record<string, unknown>): Promise<MonitoringAlerts[]>;
22
- /** Returns monitoring-alerts data */
23
- id(input: Record<string, unknown>): Promise<MonitoringAlerts[]>;
24
- }
@@ -1,2 +0,0 @@
1
- // Generated by Phase 4 pipeline — do not edit manually
2
- export {};
@@ -1,25 +0,0 @@
1
- import type { OngoingRegularStakeholderPort, OngoingRegularStakeholderInput, OngoingRegularStakeholder } from '../ports/ongoing-regular-stakeholder.js';
2
- import type { Telemetry } from '../../infra/telemetry.js';
3
- import type { DbClient, ErpClient } from '../../infra/clients.js';
4
- /**
5
- * Infrastructure adapter: OngoingRegularStakeholderAdapter
6
- * Bounded context: ongoing-regular-stakeholder
7
- * ERP system: infor
8
- *
9
- * Bridges the OngoingRegularStakeholderPort port to the infor ERP system
10
- * and the underlying database client.
11
- */
12
- export declare class OngoingRegularStakeholderAdapter implements OngoingRegularStakeholderPort {
13
- private readonly db;
14
- private readonly erp;
15
- private readonly telemetry;
16
- constructor(db: DbClient, erp: ErpClient, telemetry: Telemetry);
17
- /** Creates or updates ongoing-regular-stakeholder record */
18
- manageOngoingRegular(input: OngoingRegularStakeholderInput): Promise<OngoingRegularStakeholder>;
19
- /** Creates or updates ongoing-regular-stakeholder record */
20
- queryOngoingRegular(input: OngoingRegularStakeholderInput): Promise<OngoingRegularStakeholder>;
21
- /** Returns ongoing-regular-stakeholder data */
22
- listOngoingRegularStakeholder(input: Record<string, unknown>): Promise<OngoingRegularStakeholder[]>;
23
- /** Returns ongoing-regular-stakeholder data */
24
- id(input: Record<string, unknown>): Promise<OngoingRegularStakeholder[]>;
25
- }
@@ -1,47 +0,0 @@
1
- // Generated by Phase 4 pipeline — do not edit manually
2
- /**
3
- * Infrastructure adapter: OngoingRegularStakeholderAdapter
4
- * Bounded context: ongoing-regular-stakeholder
5
- * ERP system: infor
6
- *
7
- * Bridges the OngoingRegularStakeholderPort port to the infor ERP system
8
- * and the underlying database client.
9
- */
10
- export class OngoingRegularStakeholderAdapter {
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 ongoing-regular-stakeholder record */
20
- async manageOngoingRegular(input) {
21
- return this.telemetry.withSpan('ongoing_regular_stakeholder', 'manageOngoingRegular', {}, async () => {
22
- const result = await this.erp.invoke('manageOngoingRegular', input);
23
- return result;
24
- });
25
- }
26
- /** Creates or updates ongoing-regular-stakeholder record */
27
- async queryOngoingRegular(input) {
28
- return this.telemetry.withSpan('ongoing_regular_stakeholder', 'queryOngoingRegular', {}, async () => {
29
- const rows = await this.db.query('SELECT * FROM ongoing_regular_stakeholder WHERE 1=1', []);
30
- return rows;
31
- });
32
- }
33
- /** Returns ongoing-regular-stakeholder data */
34
- async listOngoingRegularStakeholder(input) {
35
- return this.telemetry.withSpan('ongoing_regular_stakeholder', 'listOngoingRegularStakeholder', {}, async () => {
36
- const rows = await this.db.query('SELECT * FROM ongoing_regular_stakeholder WHERE 1=1', []);
37
- return rows;
38
- });
39
- }
40
- /** Returns ongoing-regular-stakeholder data */
41
- async id(input) {
42
- return this.telemetry.withSpan('ongoing_regular_stakeholder', 'id', {}, async () => {
43
- const result = await this.erp.invoke('id', input);
44
- return result;
45
- });
46
- }
47
- }
@@ -1,24 +0,0 @@
1
- /**
2
- * Port interface for bounded context: ongoing-regular-stakeholder
3
- */
4
- export interface OngoingRegularStakeholderInput {
5
- readonly id: string;
6
- readonly ongoing_regular_stakeholder_id: string;
7
- }
8
- export interface OngoingRegularStakeholder {
9
- readonly id: string;
10
- readonly created_at: string;
11
- readonly updated_at: string;
12
- readonly status: 'active' | 'inactive' | 'pending' | 'completed' | 'error';
13
- readonly ongoing_regular_stakeholder_id: string;
14
- }
15
- export interface OngoingRegularStakeholderPort {
16
- /** Creates or updates ongoing-regular-stakeholder record */
17
- manageOngoingRegular(input: OngoingRegularStakeholderInput): Promise<OngoingRegularStakeholder>;
18
- /** Creates or updates ongoing-regular-stakeholder record */
19
- queryOngoingRegular(input: OngoingRegularStakeholderInput): Promise<OngoingRegularStakeholder>;
20
- /** Returns ongoing-regular-stakeholder data */
21
- listOngoingRegularStakeholder(input: Record<string, unknown>): Promise<OngoingRegularStakeholder[]>;
22
- /** Returns ongoing-regular-stakeholder data */
23
- id(input: Record<string, unknown>): Promise<OngoingRegularStakeholder[]>;
24
- }
@@ -1,2 +0,0 @@
1
- // Generated by Phase 4 pipeline — do not edit manually
2
- export {};
@@ -1,25 +0,0 @@
1
- import type { ReEvaluateRiskPort, ReEvaluateRiskInput, ReEvaluateRisk } from '../ports/re-evaluate-risk.js';
2
- import type { Telemetry } from '../../infra/telemetry.js';
3
- import type { DbClient, ErpClient } from '../../infra/clients.js';
4
- /**
5
- * Infrastructure adapter: ReEvaluateRiskAdapter
6
- * Bounded context: re-evaluate-risk
7
- * ERP system: infor
8
- *
9
- * Bridges the ReEvaluateRiskPort port to the infor ERP system
10
- * and the underlying database client.
11
- */
12
- export declare class ReEvaluateRiskAdapter implements ReEvaluateRiskPort {
13
- private readonly db;
14
- private readonly erp;
15
- private readonly telemetry;
16
- constructor(db: DbClient, erp: ErpClient, telemetry: Telemetry);
17
- /** Creates or updates re-evaluate-risk record */
18
- manageReEvaluate(input: ReEvaluateRiskInput): Promise<ReEvaluateRisk>;
19
- /** Creates or updates re-evaluate-risk record */
20
- queryReEvaluate(input: ReEvaluateRiskInput): Promise<ReEvaluateRisk>;
21
- /** Returns re-evaluate-risk data */
22
- listReEvaluateRisk(input: Record<string, unknown>): Promise<ReEvaluateRisk[]>;
23
- /** Returns re-evaluate-risk data */
24
- id(input: Record<string, unknown>): Promise<ReEvaluateRisk[]>;
25
- }
@@ -1,47 +0,0 @@
1
- // Generated by Phase 4 pipeline — do not edit manually
2
- /**
3
- * Infrastructure adapter: ReEvaluateRiskAdapter
4
- * Bounded context: re-evaluate-risk
5
- * ERP system: infor
6
- *
7
- * Bridges the ReEvaluateRiskPort port to the infor ERP system
8
- * and the underlying database client.
9
- */
10
- export class ReEvaluateRiskAdapter {
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 re-evaluate-risk record */
20
- async manageReEvaluate(input) {
21
- return this.telemetry.withSpan('re_evaluate_risk', 'manageReEvaluate', {}, async () => {
22
- const result = await this.erp.invoke('manageReEvaluate', input);
23
- return result;
24
- });
25
- }
26
- /** Creates or updates re-evaluate-risk record */
27
- async queryReEvaluate(input) {
28
- return this.telemetry.withSpan('re_evaluate_risk', 'queryReEvaluate', {}, async () => {
29
- const rows = await this.db.query('SELECT * FROM re_evaluate_risk WHERE 1=1', []);
30
- return rows;
31
- });
32
- }
33
- /** Returns re-evaluate-risk data */
34
- async listReEvaluateRisk(input) {
35
- return this.telemetry.withSpan('re_evaluate_risk', 'listReEvaluateRisk', {}, async () => {
36
- const rows = await this.db.query('SELECT * FROM re_evaluate_risk WHERE 1=1', []);
37
- return rows;
38
- });
39
- }
40
- /** Returns re-evaluate-risk data */
41
- async id(input) {
42
- return this.telemetry.withSpan('re_evaluate_risk', 'id', {}, async () => {
43
- const result = await this.erp.invoke('id', input);
44
- return result;
45
- });
46
- }
47
- }
@@ -1,24 +0,0 @@
1
- /**
2
- * Port interface for bounded context: re-evaluate-risk
3
- */
4
- export interface ReEvaluateRiskInput {
5
- readonly id: string;
6
- readonly re_evaluate_risk_id: string;
7
- }
8
- export interface ReEvaluateRisk {
9
- readonly id: string;
10
- readonly created_at: string;
11
- readonly updated_at: string;
12
- readonly status: 'active' | 'inactive' | 'pending' | 'completed' | 'error';
13
- readonly re_evaluate_risk_id: string;
14
- }
15
- export interface ReEvaluateRiskPort {
16
- /** Creates or updates re-evaluate-risk record */
17
- manageReEvaluate(input: ReEvaluateRiskInput): Promise<ReEvaluateRisk>;
18
- /** Creates or updates re-evaluate-risk record */
19
- queryReEvaluate(input: ReEvaluateRiskInput): Promise<ReEvaluateRisk>;
20
- /** Returns re-evaluate-risk data */
21
- listReEvaluateRisk(input: Record<string, unknown>): Promise<ReEvaluateRisk[]>;
22
- /** Returns re-evaluate-risk data */
23
- id(input: Record<string, unknown>): Promise<ReEvaluateRisk[]>;
24
- }
@@ -1,2 +0,0 @@
1
- // Generated by Phase 4 pipeline — do not edit manually
2
- export {};
@@ -1,25 +0,0 @@
1
- import type { RecommendationPort, RecommendationInput, Recommendation } from '../ports/recommendation.js';
2
- import type { Telemetry } from '../../infra/telemetry.js';
3
- import type { DbClient, ErpClient } from '../../infra/clients.js';
4
- /**
5
- * Infrastructure adapter: RecommendationAdapter
6
- * Bounded context: recommendation
7
- * ERP system: infor
8
- *
9
- * Bridges the RecommendationPort port to the infor ERP system
10
- * and the underlying database client.
11
- */
12
- export declare class RecommendationAdapter implements RecommendationPort {
13
- private readonly db;
14
- private readonly erp;
15
- private readonly telemetry;
16
- constructor(db: DbClient, erp: ErpClient, telemetry: Telemetry);
17
- /** Creates or updates recommendation record */
18
- manageRecommendation(input: RecommendationInput): Promise<Recommendation>;
19
- /** Creates or updates recommendation record */
20
- queryRecommendation(input: RecommendationInput): Promise<Recommendation>;
21
- /** Returns recommendation data */
22
- listRecommendation(input: Record<string, unknown>): Promise<Recommendation[]>;
23
- /** Returns recommendation data */
24
- id(input: Record<string, unknown>): Promise<Recommendation[]>;
25
- }
@@ -1,47 +0,0 @@
1
- // Generated by Phase 4 pipeline — do not edit manually
2
- /**
3
- * Infrastructure adapter: RecommendationAdapter
4
- * Bounded context: recommendation
5
- * ERP system: infor
6
- *
7
- * Bridges the RecommendationPort port to the infor ERP system
8
- * and the underlying database client.
9
- */
10
- export class RecommendationAdapter {
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 recommendation record */
20
- async manageRecommendation(input) {
21
- return this.telemetry.withSpan('recommendation', 'manageRecommendation', {}, async () => {
22
- const result = await this.erp.invoke('manageRecommendation', input);
23
- return result;
24
- });
25
- }
26
- /** Creates or updates recommendation record */
27
- async queryRecommendation(input) {
28
- return this.telemetry.withSpan('recommendation', 'queryRecommendation', {}, async () => {
29
- const rows = await this.db.query('SELECT * FROM recommendation WHERE 1=1', []);
30
- return rows;
31
- });
32
- }
33
- /** Returns recommendation data */
34
- async listRecommendation(input) {
35
- return this.telemetry.withSpan('recommendation', 'listRecommendation', {}, async () => {
36
- const rows = await this.db.query('SELECT * FROM recommendation WHERE 1=1', []);
37
- return rows;
38
- });
39
- }
40
- /** Returns recommendation data */
41
- async id(input) {
42
- return this.telemetry.withSpan('recommendation', 'id', {}, async () => {
43
- const result = await this.erp.invoke('id', input);
44
- return result;
45
- });
46
- }
47
- }
@@ -1,24 +0,0 @@
1
- /**
2
- * Port interface for bounded context: recommendation
3
- */
4
- export interface RecommendationInput {
5
- readonly id: string;
6
- readonly recommendation_id: string;
7
- }
8
- export interface Recommendation {
9
- readonly id: string;
10
- readonly created_at: string;
11
- readonly updated_at: string;
12
- readonly status: 'active' | 'inactive' | 'pending' | 'completed' | 'error';
13
- readonly recommendation_id: string;
14
- }
15
- export interface RecommendationPort {
16
- /** Creates or updates recommendation record */
17
- manageRecommendation(input: RecommendationInput): Promise<Recommendation>;
18
- /** Creates or updates recommendation record */
19
- queryRecommendation(input: RecommendationInput): Promise<Recommendation>;
20
- /** Returns recommendation data */
21
- listRecommendation(input: Record<string, unknown>): Promise<Recommendation[]>;
22
- /** Returns recommendation data */
23
- id(input: Record<string, unknown>): Promise<Recommendation[]>;
24
- }
@@ -1,2 +0,0 @@
1
- // Generated by Phase 4 pipeline — do not edit manually
2
- export {};
@@ -1,25 +0,0 @@
1
- import type { RiskMitigationPlanPort, RiskMitigationPlanInput, RiskMitigationPlan } from '../ports/risk-mitigation-plan.js';
2
- import type { Telemetry } from '../../infra/telemetry.js';
3
- import type { DbClient, ErpClient } from '../../infra/clients.js';
4
- /**
5
- * Infrastructure adapter: RiskMitigationPlanAdapter
6
- * Bounded context: risk-mitigation-plan
7
- * ERP system: infor
8
- *
9
- * Bridges the RiskMitigationPlanPort port to the infor ERP system
10
- * and the underlying database client.
11
- */
12
- export declare class RiskMitigationPlanAdapter implements RiskMitigationPlanPort {
13
- private readonly db;
14
- private readonly erp;
15
- private readonly telemetry;
16
- constructor(db: DbClient, erp: ErpClient, telemetry: Telemetry);
17
- /** Creates or updates risk-mitigation-plan record */
18
- manageRiskMitigation(input: RiskMitigationPlanInput): Promise<RiskMitigationPlan>;
19
- /** Creates or updates risk-mitigation-plan record */
20
- queryRiskMitigation(input: RiskMitigationPlanInput): Promise<RiskMitigationPlan>;
21
- /** Returns risk-mitigation-plan data */
22
- listRiskMitigationPlan(input: Record<string, unknown>): Promise<RiskMitigationPlan[]>;
23
- /** Returns risk-mitigation-plan data */
24
- id(input: Record<string, unknown>): Promise<RiskMitigationPlan[]>;
25
- }