@hmharness/cli 0.23.1 → 0.23.3

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 +19 -1
  2. package/package.json +12 -12
package/dist/main.js CHANGED
@@ -1266,8 +1266,26 @@ flags:
1266
1266
  }, { home: hd, loadConfig: lc, resolveProvider: rp });
1267
1267
  return;
1268
1268
  }
1269
+ if (sub === 'calibration') {
1270
+ // the §26-proven valuable dimension, first-class: per-action prediction
1271
+ // calibration — where the harness's value actually lives (+0.4166)
1272
+ const { calibrationReport } = await import('@hmharness/cognitive');
1273
+ const r = await calibrationReport(homeDir());
1274
+ if (r.predictedSteps === 0) {
1275
+ stdout.write('(尚无带预测的轨迹——探索/迁移实验会自动记录预测)\n');
1276
+ return;
1277
+ }
1278
+ stdout.write(`校准报告 · ${r.predictedSteps}/${r.totalSteps} 步带预测 · 总体平均误差 ${r.overallMeanError}(可靠度 ${r.overallReliability})\n`);
1279
+ stdout.write(' 动作类型 预测数 平均误差 可靠度\n');
1280
+ for (const row of r.rows) {
1281
+ const bar = '█'.repeat(Math.round(row.reliability * 10)).padEnd(10, '░');
1282
+ stdout.write(` ${row.actionType.padEnd(24)}${String(row.predictions).padStart(4)} ${row.meanError.toFixed(3).padStart(7)} ${bar} ${row.reliability.toFixed(2)}\n`);
1283
+ }
1284
+ stdout.write(DIM(' 可靠度=1-平均误差:harness 认知层的实证价值所在(校准维+0.4166,全谱系唯一正读数)\n'));
1285
+ return;
1286
+ }
1269
1287
  if (sub !== 'status') {
1270
- stdout.write('用法: hmh cognitive status|world-model|diagnose|bench|drift|skills|explore|transfer|team|learn|replay|export|purge|play|ablate — 认知子系统与世界模型\n');
1288
+ stdout.write('用法: hmh cognitive status|world-model|diagnose|bench|calibration|drift|skills|explore|transfer|team|learn|replay|export|purge|play|ablate — 认知子系统与世界模型\n');
1271
1289
  return;
1272
1290
  }
1273
1291
  const { cognitiveStatus, formatCognitiveStatus } = await import('@hmharness/cognitive');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hmharness/cli",
3
- "version": "0.23.1",
3
+ "version": "0.23.3",
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.1",
47
- "@hmharness/cognitive": "0.23.1",
48
- "@hmharness/domain-harmony": "0.23.1",
49
- "@hmharness/domain-ops": "0.23.1",
50
- "@hmharness/environments": "0.23.1",
51
- "@hmharness/evaluation": "0.23.1",
52
- "@hmharness/evolution": "0.23.1",
53
- "@hmharness/kernel": "0.23.1",
54
- "@hmharness/observability": "0.23.1",
55
- "@hmharness/sandbox": "0.23.1",
56
- "@hmharness/web": "0.23.1",
46
+ "@hmharness/agent": "0.23.3",
47
+ "@hmharness/cognitive": "0.23.3",
48
+ "@hmharness/domain-harmony": "0.23.3",
49
+ "@hmharness/domain-ops": "0.23.3",
50
+ "@hmharness/environments": "0.23.3",
51
+ "@hmharness/evaluation": "0.23.3",
52
+ "@hmharness/evolution": "0.23.3",
53
+ "@hmharness/kernel": "0.23.3",
54
+ "@hmharness/observability": "0.23.3",
55
+ "@hmharness/sandbox": "0.23.3",
56
+ "@hmharness/web": "0.23.3",
57
57
  "qrcode": "^1.5.4"
58
58
  }
59
59
  }