@hmharness/cli 0.23.4 → 0.23.6
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/main.js +21 -1
- package/package.json +12 -12
package/dist/main.js
CHANGED
|
@@ -1269,7 +1269,27 @@ flags:
|
|
|
1269
1269
|
if (sub === 'calibration') {
|
|
1270
1270
|
// the §26-proven valuable dimension, first-class: per-action prediction
|
|
1271
1271
|
// calibration — where the harness's value actually lives (+0.4166)
|
|
1272
|
-
const { calibrationReport } = await import('@hmharness/cognitive');
|
|
1272
|
+
const { calibrationReport, calibrationTrend } = await import('@hmharness/cognitive');
|
|
1273
|
+
if (rest.includes('--trend')) {
|
|
1274
|
+
// the learning curve: reliability over time = measurable self-evolution.
|
|
1275
|
+
// --env=<id> isolates ONE environment (mixed-distribution guard:
|
|
1276
|
+
// exploration buckets probe unfamiliar actions on purpose)
|
|
1277
|
+
const trendEnv = rest.find((a) => a.startsWith('--env='))?.slice(6);
|
|
1278
|
+
const t = await calibrationTrend(homeDir(), 5, trendEnv);
|
|
1279
|
+
if (!t.buckets.length) {
|
|
1280
|
+
stdout.write('(预测样本不足——多跑任务/探索后自动积累' + (trendEnv ? `,或 ${trendEnv} 环境无带预测轨迹` : '') + ')\n');
|
|
1281
|
+
return;
|
|
1282
|
+
}
|
|
1283
|
+
stdout.write(`校准趋势 · ${trendEnv ? `环境 ${trendEnv} · ` : ''}${t.buckets.length} 个时间桶 · ${t.verdict}\n`);
|
|
1284
|
+
for (const b of t.buckets) {
|
|
1285
|
+
const bar = '█'.repeat(Math.round(b.reliability * 10)).padEnd(10, '░');
|
|
1286
|
+
stdout.write(` ${b.at.slice(0, 16)} ${bar} ${b.reliability.toFixed(2)} (n=${b.predictions})\n`);
|
|
1287
|
+
}
|
|
1288
|
+
const deltaText = t.reliabilityDelta === null ? 'N/A' : (t.reliabilityDelta >= 0 ? '+' : '') + (t.reliabilityDelta * 100).toFixed(1) + '%';
|
|
1289
|
+
const verdictText = t.verdict === 'improving' ? 'harness 在自我改进(可测的自进化证据)' : t.verdict === 'degrading' ? '退化中,需要诊断' : '平坦/样本内波动';
|
|
1290
|
+
stdout.write('可靠度变化 ' + deltaText + ' —— ' + verdictText + '\n');
|
|
1291
|
+
return;
|
|
1292
|
+
}
|
|
1273
1293
|
const r = await calibrationReport(homeDir());
|
|
1274
1294
|
if (r.predictedSteps === 0) {
|
|
1275
1295
|
stdout.write('(尚无带预测的轨迹——探索/迁移实验会自动记录预测)\n');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hmharness/cli",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.6",
|
|
4
4
|
"description": "hmharness command line: one-shot tasks, an interactive REPL, a fullscreen TUI, the web frontend, and direct tool invocation.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -43,17 +43,17 @@
|
|
|
43
43
|
"build": "tsc -p tsconfig.build.json"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@hmharness/agent": "0.23.
|
|
47
|
-
"@hmharness/cognitive": "0.23.
|
|
48
|
-
"@hmharness/domain-harmony": "0.23.
|
|
49
|
-
"@hmharness/domain-ops": "0.23.
|
|
50
|
-
"@hmharness/environments": "0.23.
|
|
51
|
-
"@hmharness/evaluation": "0.23.
|
|
52
|
-
"@hmharness/evolution": "0.23.
|
|
53
|
-
"@hmharness/kernel": "0.23.
|
|
54
|
-
"@hmharness/observability": "0.23.
|
|
55
|
-
"@hmharness/sandbox": "0.23.
|
|
56
|
-
"@hmharness/web": "0.23.
|
|
46
|
+
"@hmharness/agent": "0.23.6",
|
|
47
|
+
"@hmharness/cognitive": "0.23.6",
|
|
48
|
+
"@hmharness/domain-harmony": "0.23.6",
|
|
49
|
+
"@hmharness/domain-ops": "0.23.6",
|
|
50
|
+
"@hmharness/environments": "0.23.6",
|
|
51
|
+
"@hmharness/evaluation": "0.23.6",
|
|
52
|
+
"@hmharness/evolution": "0.23.6",
|
|
53
|
+
"@hmharness/kernel": "0.23.6",
|
|
54
|
+
"@hmharness/observability": "0.23.6",
|
|
55
|
+
"@hmharness/sandbox": "0.23.6",
|
|
56
|
+
"@hmharness/web": "0.23.6",
|
|
57
57
|
"qrcode": "^1.5.4"
|
|
58
58
|
}
|
|
59
59
|
}
|