@hmharness/cli 0.23.5 → 0.23.7
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 +7 -4
- package/package.json +12 -12
package/dist/main.js
CHANGED
|
@@ -1271,13 +1271,16 @@ flags:
|
|
|
1271
1271
|
// calibration — where the harness's value actually lives (+0.4166)
|
|
1272
1272
|
const { calibrationReport, calibrationTrend } = await import('@hmharness/cognitive');
|
|
1273
1273
|
if (rest.includes('--trend')) {
|
|
1274
|
-
// the learning curve: reliability over time = measurable self-evolution
|
|
1275
|
-
|
|
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);
|
|
1276
1279
|
if (!t.buckets.length) {
|
|
1277
|
-
stdout.write('
|
|
1280
|
+
stdout.write('(预测样本不足——多跑任务/探索后自动积累' + (trendEnv ? `,或 ${trendEnv} 环境无带预测轨迹` : '') + ')\n');
|
|
1278
1281
|
return;
|
|
1279
1282
|
}
|
|
1280
|
-
stdout.write(`校准趋势 · ${t.buckets.length} 个时间桶 · ${t.verdict}\n`);
|
|
1283
|
+
stdout.write(`校准趋势 · ${trendEnv ? `环境 ${trendEnv} · ` : ''}${t.buckets.length} 个时间桶 · ${t.verdict}\n`);
|
|
1281
1284
|
for (const b of t.buckets) {
|
|
1282
1285
|
const bar = '█'.repeat(Math.round(b.reliability * 10)).padEnd(10, '░');
|
|
1283
1286
|
stdout.write(` ${b.at.slice(0, 16)} ${bar} ${b.reliability.toFixed(2)} (n=${b.predictions})\n`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hmharness/cli",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.7",
|
|
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.7",
|
|
47
|
+
"@hmharness/cognitive": "0.23.7",
|
|
48
|
+
"@hmharness/domain-harmony": "0.23.7",
|
|
49
|
+
"@hmharness/domain-ops": "0.23.7",
|
|
50
|
+
"@hmharness/environments": "0.23.7",
|
|
51
|
+
"@hmharness/evaluation": "0.23.7",
|
|
52
|
+
"@hmharness/evolution": "0.23.7",
|
|
53
|
+
"@hmharness/kernel": "0.23.7",
|
|
54
|
+
"@hmharness/observability": "0.23.7",
|
|
55
|
+
"@hmharness/sandbox": "0.23.7",
|
|
56
|
+
"@hmharness/web": "0.23.7",
|
|
57
57
|
"qrcode": "^1.5.4"
|
|
58
58
|
}
|
|
59
59
|
}
|