@hmharness/cli 0.23.4 → 0.23.5

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 (2) hide show
  1. package/dist/main.js +18 -1
  2. package/package.json +12 -12
package/dist/main.js CHANGED
@@ -1269,7 +1269,24 @@ 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
+ const t = await calibrationTrend(homeDir());
1276
+ if (!t.buckets.length) {
1277
+ stdout.write('(预测样本不足——多跑任务/探索后自动积累)\n');
1278
+ return;
1279
+ }
1280
+ stdout.write(`校准趋势 · ${t.buckets.length} 个时间桶 · ${t.verdict}\n`);
1281
+ for (const b of t.buckets) {
1282
+ const bar = '█'.repeat(Math.round(b.reliability * 10)).padEnd(10, '░');
1283
+ stdout.write(` ${b.at.slice(0, 16)} ${bar} ${b.reliability.toFixed(2)} (n=${b.predictions})\n`);
1284
+ }
1285
+ const deltaText = t.reliabilityDelta === null ? 'N/A' : (t.reliabilityDelta >= 0 ? '+' : '') + (t.reliabilityDelta * 100).toFixed(1) + '%';
1286
+ const verdictText = t.verdict === 'improving' ? 'harness 在自我改进(可测的自进化证据)' : t.verdict === 'degrading' ? '退化中,需要诊断' : '平坦/样本内波动';
1287
+ stdout.write('可靠度变化 ' + deltaText + ' —— ' + verdictText + '\n');
1288
+ return;
1289
+ }
1273
1290
  const r = await calibrationReport(homeDir());
1274
1291
  if (r.predictedSteps === 0) {
1275
1292
  stdout.write('(尚无带预测的轨迹——探索/迁移实验会自动记录预测)\n');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hmharness/cli",
3
- "version": "0.23.4",
3
+ "version": "0.23.5",
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.4",
47
- "@hmharness/cognitive": "0.23.4",
48
- "@hmharness/domain-harmony": "0.23.4",
49
- "@hmharness/domain-ops": "0.23.4",
50
- "@hmharness/environments": "0.23.4",
51
- "@hmharness/evaluation": "0.23.4",
52
- "@hmharness/evolution": "0.23.4",
53
- "@hmharness/kernel": "0.23.4",
54
- "@hmharness/observability": "0.23.4",
55
- "@hmharness/sandbox": "0.23.4",
56
- "@hmharness/web": "0.23.4",
46
+ "@hmharness/agent": "0.23.5",
47
+ "@hmharness/cognitive": "0.23.5",
48
+ "@hmharness/domain-harmony": "0.23.5",
49
+ "@hmharness/domain-ops": "0.23.5",
50
+ "@hmharness/environments": "0.23.5",
51
+ "@hmharness/evaluation": "0.23.5",
52
+ "@hmharness/evolution": "0.23.5",
53
+ "@hmharness/kernel": "0.23.5",
54
+ "@hmharness/observability": "0.23.5",
55
+ "@hmharness/sandbox": "0.23.5",
56
+ "@hmharness/web": "0.23.5",
57
57
  "qrcode": "^1.5.4"
58
58
  }
59
59
  }