@skrr-ai/cli 0.1.153 → 0.1.154
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/lib/duties.js +30 -8
- package/dist/lib/duty-product.js +12 -2
- package/oclif.manifest.json +1 -1
- package/package.json +2 -2
package/dist/lib/duties.js
CHANGED
|
@@ -1481,9 +1481,7 @@ scheduleIssues) {
|
|
|
1481
1481
|
const criteria = duty.target?.successCriteria || [];
|
|
1482
1482
|
const evidenceHealth = latestCheck?.inputs?.evidenceHealth;
|
|
1483
1483
|
const evidenceLine = describeEvidenceHealth(evidenceHealth, criteria.length);
|
|
1484
|
-
const assessment = duty.assessment
|
|
1485
|
-
? (0, data_provider_2.readDutyAssessment)(duty.assessment)
|
|
1486
|
-
: undefined;
|
|
1484
|
+
const assessment = duty.assessment ? (0, data_provider_2.readDutyAssessment)(duty.assessment) : undefined;
|
|
1487
1485
|
log(`Assessment: ${assessment?.label ?? 'Unknown'}`);
|
|
1488
1486
|
log(`Evidence: ${describeAssessmentEvidence(assessment?.evidence)}`);
|
|
1489
1487
|
log(`Operation: ${describeOperation(assessment?.operation, assessment?.operationReason)}`);
|
|
@@ -1557,7 +1555,8 @@ scheduleIssues) {
|
|
|
1557
1555
|
if (decision?.summaryClarification && duty.state.summary === decision.summaryClarificationFor) {
|
|
1558
1556
|
log(decision.summaryClarification);
|
|
1559
1557
|
}
|
|
1560
|
-
else if (duty.state.summary ===
|
|
1558
|
+
else if (duty.state.summary ===
|
|
1559
|
+
'Its last run already covered this evidence, so no new run was started.') {
|
|
1561
1560
|
log('This statement alone does not prove that the evidence was observed or the work succeeded.');
|
|
1562
1561
|
}
|
|
1563
1562
|
}
|
|
@@ -1680,7 +1679,8 @@ function renderCheckList(checks, log) {
|
|
|
1680
1679
|
if (reasons.length > 0)
|
|
1681
1680
|
log(`'-' = not retained. ${reasons.join(' ')}`);
|
|
1682
1681
|
for (const check of checks) {
|
|
1683
|
-
if (check.decision?.summaryClarification &&
|
|
1682
|
+
if (check.decision?.summaryClarification &&
|
|
1683
|
+
(check.decision.whyNow ?? check.decision.summary) === check.decision.summaryClarificationFor) {
|
|
1684
1684
|
log(`Check ${check.id ?? '-'}: ${check.decision.summaryClarification}`);
|
|
1685
1685
|
}
|
|
1686
1686
|
}
|
|
@@ -1792,6 +1792,16 @@ function renderDutyLedger(ledger, log) {
|
|
|
1792
1792
|
{ key: 'actions', header: 'ACTIONS' },
|
|
1793
1793
|
{ key: 'why', header: 'WHY', maxWidth: 48 },
|
|
1794
1794
|
], 'No checks recorded.', log);
|
|
1795
|
+
// The WHY cell is the stored sentence, cut to fit. For a deduplicated follow-through that
|
|
1796
|
+
// sentence ("Its last run already covered this evidence") reads as proof the work was seen,
|
|
1797
|
+
// so the clarification the server sends with it is printed beneath the table, as the trace
|
|
1798
|
+
// does (OSK-23051).
|
|
1799
|
+
for (const item of checks) {
|
|
1800
|
+
const clarification = record(item.decision)?.summaryClarification;
|
|
1801
|
+
if (typeof clarification === 'string' && clarification) {
|
|
1802
|
+
log(`Check ${text(item.id)}: ${clarification}`);
|
|
1803
|
+
}
|
|
1804
|
+
}
|
|
1795
1805
|
}
|
|
1796
1806
|
if (runs.length) {
|
|
1797
1807
|
log('Runs:');
|
|
@@ -2046,8 +2056,18 @@ function cycleSummary(cycle) {
|
|
|
2046
2056
|
: 'applied an agent result';
|
|
2047
2057
|
}
|
|
2048
2058
|
if (cycle.outcome === 'in_flight') {
|
|
2049
|
-
const runs = cycle.runs
|
|
2050
|
-
|
|
2059
|
+
const runs = cycle.runs ?? [];
|
|
2060
|
+
if (!runs.length)
|
|
2061
|
+
return 'check still running';
|
|
2062
|
+
// A run parked for a runtime is not "still going" (OSK-23379): it has not started, and the server
|
|
2063
|
+
// says why (`waiting`), so the row says parked and names the reason once.
|
|
2064
|
+
const parked = runs.filter((run) => run.waiting);
|
|
2065
|
+
if (!parked.length)
|
|
2066
|
+
return `${runs.length} run(s) still going`;
|
|
2067
|
+
const why = [...new Set(parked.map((run) => run.waiting?.summary))].join('; ');
|
|
2068
|
+
return parked.length === runs.length
|
|
2069
|
+
? `${parked.length} run(s) parked — ${why}`
|
|
2070
|
+
: `${runs.length - parked.length} running, ${parked.length} parked — ${why}`;
|
|
2051
2071
|
}
|
|
2052
2072
|
return cycle.note || cycle.decision?.summary || cycle.decision?.posture || 'nothing to act on';
|
|
2053
2073
|
}
|
|
@@ -2100,7 +2120,9 @@ function formatDutyCycles(page) {
|
|
|
2100
2120
|
: CYCLE_GLYPH[cycle.outcome] || '?';
|
|
2101
2121
|
const word = echo ? 'recorded' : owed ? 'owed' : String(cycle.outcome);
|
|
2102
2122
|
lines.push(`${cycleTime(cycle.startedAt)} ${glyph} ${word.padEnd(9)} ${cycleWake(cycle).padEnd(18)} ${echo ? recordOnlyEchoSummary(cycle) : cycleSummary(cycle)}`);
|
|
2103
|
-
if (!echo &&
|
|
2123
|
+
if (!echo &&
|
|
2124
|
+
cycle.decision?.summaryClarification &&
|
|
2125
|
+
cycleSummary(cycle) === cycle.decision.summary) {
|
|
2104
2126
|
lines.push(` ${cycle.decision.summaryClarification}`);
|
|
2105
2127
|
}
|
|
2106
2128
|
lines.push(...platformFetchLines(cycle));
|
package/dist/lib/duty-product.js
CHANGED
|
@@ -51,6 +51,11 @@ function renderExecutionReceipt(receipt, log, verbose = false) {
|
|
|
51
51
|
const identity = receipt.runtime.name || receipt.runtime.id || 'the selected runtime';
|
|
52
52
|
log(`Runtime: ${identity}${receipt.runtime.kind ? ` · ${receipt.runtime.kind}` : ''}${receipt.runtime.provider ? ` · ${receipt.runtime.provider}` : ''}`);
|
|
53
53
|
}
|
|
54
|
+
// The server attaches the same evidence, usually the Check itself, to every phase of one
|
|
55
|
+
// execution, so the link was printed under Check, Working, Decided and Delivered (OSK-23271).
|
|
56
|
+
// Each piece of evidence is printed once, under the first phase that has it and a place to
|
|
57
|
+
// open it; different evidence stays on the phase it belongs to. The web receipt does the same.
|
|
58
|
+
const printedEvidence = new Set();
|
|
54
59
|
for (const phase of receipt.phases) {
|
|
55
60
|
const mark = { done: '✓', working: '→', waiting: '…', failed: '×', skipped: '–' }[phase.status];
|
|
56
61
|
const label = phase.phase === 'observed' && receipt.checkKind === 'follow_through'
|
|
@@ -59,8 +64,13 @@ function renderExecutionReceipt(receipt, log, verbose = false) {
|
|
|
59
64
|
log(` ${mark} ${label}: ${phase.summary}${phase.at ? ` · ${phase.at}` : ''}`);
|
|
60
65
|
for (const evidence of phase.evidence) {
|
|
61
66
|
const location = evidence.url || evidence.path;
|
|
62
|
-
if (location)
|
|
63
|
-
|
|
67
|
+
if (!location)
|
|
68
|
+
continue;
|
|
69
|
+
const identity = `${evidence.kind}:${evidence.id}`;
|
|
70
|
+
if (printedEvidence.has(identity))
|
|
71
|
+
continue;
|
|
72
|
+
printedEvidence.add(identity);
|
|
73
|
+
log(` ${evidence.label}: ${location}`);
|
|
64
74
|
}
|
|
65
75
|
}
|
|
66
76
|
// "Next" names an action only when the receipt has one. A reason that only
|
package/oclif.manifest.json
CHANGED
|
@@ -144608,5 +144608,5 @@
|
|
|
144608
144608
|
]
|
|
144609
144609
|
}
|
|
144610
144610
|
},
|
|
144611
|
-
"version": "0.1.
|
|
144611
|
+
"version": "0.1.154"
|
|
144612
144612
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skrr-ai/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.154",
|
|
4
4
|
"description": "Command-line interface for skrr",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "skrr",
|
|
@@ -678,5 +678,5 @@
|
|
|
678
678
|
"engines": {
|
|
679
679
|
"node": ">=20.0.0"
|
|
680
680
|
},
|
|
681
|
-
"gitHead": "
|
|
681
|
+
"gitHead": "0d5a186d01c6e500b1e95a94836e73421f6e060b"
|
|
682
682
|
}
|