@hmharness/cli 0.20.2 → 0.20.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.
- package/dist/main.js +18 -2
- package/package.json +12 -12
package/dist/main.js
CHANGED
|
@@ -931,9 +931,25 @@ flags:
|
|
|
931
931
|
return;
|
|
932
932
|
}
|
|
933
933
|
if (sub === 'bench') {
|
|
934
|
-
// BENCH seed: uniform metrics over recorded runs
|
|
934
|
+
// BENCH seed + ARC-005: uniform metrics over recorded runs; ARC variant
|
|
935
|
+
// adds action/exploration efficiency + recovery per play
|
|
936
|
+
const benchEnv = rest.find((a) => a.startsWith('--env='))?.slice(6) ?? 'terminal';
|
|
937
|
+
if (benchEnv === 'arc3') {
|
|
938
|
+
const { arc3Metrics } = await import('@hmharness/cognitive');
|
|
939
|
+
const r = await arc3Metrics(homeDir());
|
|
940
|
+
if (!r) {
|
|
941
|
+
stdout.write('(尚无 ARC 对局——hmh cognitive play --env=arc3 后再来)\n');
|
|
942
|
+
return;
|
|
943
|
+
}
|
|
944
|
+
stdout.write(`ARC-AGI-3 指标 · ${r.plays} 次对局 · 共 ${r.totalActions} 动作 · 过关 ${r.totalLevelsCompleted}\n`);
|
|
945
|
+
stdout.write(` 动作效率 ${r.meanActionEfficiency}(关/动作)· 探索效率 ${r.meanExplorationEfficiency}(动作空间覆盖/7)· 恢复率 ${r.meanRecoveryRate}\n`);
|
|
946
|
+
for (const p of r.perPlay.slice(-5)) {
|
|
947
|
+
stdout.write(` ${p.trajectoryId.slice(0, 30).padEnd(32)} ${String(p.actions).padStart(3)} 动作 ${p.levelsCompleted}/${p.levelCount} 关 · 效率 ${p.actionEfficiency}\n`);
|
|
948
|
+
}
|
|
949
|
+
return;
|
|
950
|
+
}
|
|
935
951
|
const { benchFromTrajectories } = await import('@hmharness/cognitive');
|
|
936
|
-
const report = await benchFromTrajectories(homeDir());
|
|
952
|
+
const report = await benchFromTrajectories(homeDir(), benchEnv);
|
|
937
953
|
if (!report) {
|
|
938
954
|
stdout.write('(尚无轨迹——跑几次任务后再来)\n');
|
|
939
955
|
return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hmharness/cli",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.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.20.
|
|
47
|
-
"@hmharness/cognitive": "0.20.
|
|
48
|
-
"@hmharness/domain-harmony": "0.20.
|
|
49
|
-
"@hmharness/domain-ops": "0.20.
|
|
50
|
-
"@hmharness/environments": "0.20.
|
|
51
|
-
"@hmharness/evaluation": "0.20.
|
|
52
|
-
"@hmharness/evolution": "0.20.
|
|
53
|
-
"@hmharness/kernel": "0.20.
|
|
54
|
-
"@hmharness/observability": "0.20.
|
|
55
|
-
"@hmharness/sandbox": "0.20.
|
|
56
|
-
"@hmharness/web": "0.20.
|
|
46
|
+
"@hmharness/agent": "0.20.3",
|
|
47
|
+
"@hmharness/cognitive": "0.20.3",
|
|
48
|
+
"@hmharness/domain-harmony": "0.20.3",
|
|
49
|
+
"@hmharness/domain-ops": "0.20.3",
|
|
50
|
+
"@hmharness/environments": "0.20.3",
|
|
51
|
+
"@hmharness/evaluation": "0.20.3",
|
|
52
|
+
"@hmharness/evolution": "0.20.3",
|
|
53
|
+
"@hmharness/kernel": "0.20.3",
|
|
54
|
+
"@hmharness/observability": "0.20.3",
|
|
55
|
+
"@hmharness/sandbox": "0.20.3",
|
|
56
|
+
"@hmharness/web": "0.20.3",
|
|
57
57
|
"qrcode": "^1.5.4"
|
|
58
58
|
}
|
|
59
59
|
}
|