@llm-dev-ops/agentics-cli 2.1.0 → 2.1.2
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/mcp/mcp-server.js +8 -1
- package/dist/mcp/mcp-server.js.map +1 -1
- package/dist/pipeline/auto-chain.d.ts.map +1 -1
- package/dist/pipeline/auto-chain.js +130 -1
- package/dist/pipeline/auto-chain.js.map +1 -1
- package/dist/pipeline/phase2/phases/prompt-generator.d.ts.map +1 -1
- package/dist/pipeline/phase2/phases/prompt-generator.js +25 -5
- package/dist/pipeline/phase2/phases/prompt-generator.js.map +1 -1
- package/dist/synthesis/simulation-renderers.d.ts.map +1 -1
- package/dist/synthesis/simulation-renderers.js +33 -1
- package/dist/synthesis/simulation-renderers.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simulation-renderers.d.ts","sourceRoot":"","sources":["../../src/synthesis/simulation-renderers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAMH,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,UAAU,aAAa;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC;AA+CD,mDAAmD;AACnD,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,WAAW,EAAE,GAAG;IAC3D,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,EAAE,CAAA;KAAE,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KAAK,EAAE,MAAM,EACb,gBAAgB,EAAE,OAAO,EACzB,eAAe,EAAE,WAAW,EAAE,GAC7B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA6CzB;AAMD,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,MAAM,EACb,gBAAgB,EAAE,OAAO,EACzB,eAAe,EAAE,WAAW,EAAE,GAC7B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAgGzB;AAMD,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,MAAM,EACb,gBAAgB,EAAE,OAAO,EACzB,eAAe,EAAE,WAAW,EAAE,GAC7B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAuFzB;AAMD,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,MAAM,EACb,gBAAgB,EAAE,OAAO,EACzB,eAAe,EAAE,WAAW,EAAE,GAC7B,MAAM,CA6KR;AAMD,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,MAAM,EACb,iBAAiB,EAAE,OAAO,EAC1B,eAAe,EAAE,WAAW,EAAE,GAC7B,MAAM,CAoFR;AA4GD,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,MAAM,EACb,iBAAiB,EAAE,OAAO,EAC1B,eAAe,EAAE,WAAW,EAAE,GAC7B,MAAM,CAoDR;AAMD,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,MAAM,EACb,iBAAiB,EAAE,OAAO,EAC1B,eAAe,EAAE,WAAW,EAAE,GAC7B,MAAM,CAkER"}
|
|
@@ -997,6 +997,8 @@ function generateDomainRisks(query, extracted) {
|
|
|
997
997
|
risk: 'Scope creep beyond initial prototype boundaries',
|
|
998
998
|
category: 'Project', likelihood: 'High', impact: 'Medium', score: 6,
|
|
999
999
|
mitigation: 'Fixed scope contract with explicit phase gates; changes require stakeholder re-approval',
|
|
1000
|
+
financialExposure: '20-40% budget overrun if uncontrolled',
|
|
1001
|
+
scheduleImpact: '3-6 weeks additional',
|
|
1000
1002
|
});
|
|
1001
1003
|
// Size-dependent risks
|
|
1002
1004
|
if (/\b\d{2,6}\s*(?:employee|staff|people|worker|team member)/i.test(q)) {
|
|
@@ -1552,7 +1554,10 @@ export function renderDecisionMemo(query, simulationResult, platformResults) {
|
|
|
1552
1554
|
lines.push('|---|------|----------|-----------|--------|------------|');
|
|
1553
1555
|
for (let i = 0; i < Math.min(risks.length, 5); i++) {
|
|
1554
1556
|
const r = risks[i];
|
|
1555
|
-
|
|
1557
|
+
// ADR-052: Include business framing (financial exposure + schedule) when available
|
|
1558
|
+
const businessContext = [r.financialExposure, r.scheduleImpact].filter(Boolean).join('; ');
|
|
1559
|
+
const riskText = businessContext ? `${r.risk} _(${businessContext})_` : r.risk;
|
|
1560
|
+
lines.push(`| ${i + 1} | ${riskText} | ${r.category} | ${r.likelihood} | ${r.impact} | ${r.mitigation} |`);
|
|
1556
1561
|
}
|
|
1557
1562
|
lines.push('');
|
|
1558
1563
|
// Implementation Approach
|
|
@@ -2537,6 +2542,33 @@ export function renderFinancialAnalysis(query, simulationResult, platformResults
|
|
|
2537
2542
|
lines.push(`| Optimistic | Faster adoption, lower integration costs | ${optCostStr} | ${fin.roi ? fin.roi.replace(/\d+/, m => String(Math.round(parseInt(m) * 1.3))) : 'Above base'} | 25% |`);
|
|
2538
2543
|
lines.push(`| Pessimistic | Slower adoption, scope growth | ${pessCostStr} | ${fin.roi ? fin.roi.replace(/\d+/, m => String(Math.round(parseInt(m) * 0.6))) : 'Below base'} | 25% |`);
|
|
2539
2544
|
lines.push('', '*Scenario analysis assumes ±20% cost variance and ±30% timeline variance from base case.*', '');
|
|
2545
|
+
// ADR-052: Sensitivity table — show how ROI changes with different reduction targets
|
|
2546
|
+
lines.push('## Sensitivity Analysis', '');
|
|
2547
|
+
lines.push('Impact of varying the primary improvement target on projected savings:', '');
|
|
2548
|
+
lines.push('| Reduction Target | Projected Savings | ROI | Payback |');
|
|
2549
|
+
lines.push('|-----------------|-------------------|-----|---------|');
|
|
2550
|
+
if (fin.revenue) {
|
|
2551
|
+
// Parse the base savings figure for sensitivity calculations
|
|
2552
|
+
const savingsMatch = fin.revenue.match(/\$([0-9,.]+)([KMB]?)/i);
|
|
2553
|
+
if (savingsMatch) {
|
|
2554
|
+
const numStr = savingsMatch[1].replace(/,/g, '');
|
|
2555
|
+
const suffix = (savingsMatch[2] || '').toUpperCase();
|
|
2556
|
+
const mult = suffix === 'M' ? 1_000_000 : suffix === 'K' ? 1_000 : suffix === 'B' ? 1_000_000_000 : 1;
|
|
2557
|
+
const baseSavings = parseFloat(numStr) * mult;
|
|
2558
|
+
const fmtS = (n) => n >= 1_000_000 ? `$${(n / 1_000_000).toFixed(1)}M` : `$${(n / 1000).toFixed(0)}K`;
|
|
2559
|
+
const budgetMatch2 = fin.budget?.match(/\$([0-9,.]+)([KMB]?)/i);
|
|
2560
|
+
const baseInvest = budgetMatch2 ? parseFloat(budgetMatch2[1].replace(/,/g, '')) * (budgetMatch2[2]?.toUpperCase() === 'M' ? 1_000_000 : budgetMatch2[2]?.toUpperCase() === 'K' ? 1_000 : 1) : baseSavings * 0.6;
|
|
2561
|
+
for (const pct of [0.5, 0.75, 1.0, 1.25]) {
|
|
2562
|
+
const savings = baseSavings * pct;
|
|
2563
|
+
const roi = Math.round((savings / baseInvest) * 100);
|
|
2564
|
+
const payback = savings > 0 ? Math.round(baseInvest / (savings / 12)) : 0;
|
|
2565
|
+
const label = pct === 1.0 ? '**Base case**' : pct < 1 ? `Conservative (${Math.round(pct * 100)}%)` : `Aggressive (${Math.round(pct * 100)}%)`;
|
|
2566
|
+
lines.push(`| ${label} | ${fmtS(savings)} | ${roi}% | ${payback} months |`);
|
|
2567
|
+
}
|
|
2568
|
+
}
|
|
2569
|
+
}
|
|
2570
|
+
lines.push('');
|
|
2571
|
+
lines.push('*Sensitivity shows how outcomes vary if the primary improvement target is higher or lower than the base case estimate.*', '');
|
|
2540
2572
|
if (lineage.simulationId) {
|
|
2541
2573
|
lines.push(`*Simulation: ${lineage.simulationId}${lineage.traceId ? ` | Trace: ${lineage.traceId}` : ''}*`);
|
|
2542
2574
|
}
|