@hmharness/cli 0.19.7 → 0.19.8
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 +20 -1
- package/package.json +12 -12
package/dist/main.js
CHANGED
|
@@ -1092,8 +1092,27 @@ flags:
|
|
|
1092
1092
|
}
|
|
1093
1093
|
return;
|
|
1094
1094
|
}
|
|
1095
|
+
if (sub === 'learn') {
|
|
1096
|
+
// blueprint M8 live: diagnose -> train memory-target opportunities ->
|
|
1097
|
+
// entries land with provenance; promotion continues via evolve bench.
|
|
1098
|
+
const { runLearningLoop } = await import('@hmharness/cognitive');
|
|
1099
|
+
const { appendMemory } = await import('@hmharness/evolution');
|
|
1100
|
+
const home = homeDir();
|
|
1101
|
+
const report = await runLearningLoop(home, {
|
|
1102
|
+
writeEvolutionNote: (note) => appendMemory(home, note),
|
|
1103
|
+
});
|
|
1104
|
+
stdout.write(`学习环 · ${report.trajectories} 条轨迹 → ${report.opportunities} 个机会,训练 ${report.trained} 个\n`);
|
|
1105
|
+
if (report.outcomes.length === 0)
|
|
1106
|
+
stdout.write(' (暂无满足证据阈值的学习机会——多跑几次任务)\n');
|
|
1107
|
+
for (const o of report.outcomes) {
|
|
1108
|
+
stdout.write(` ${o.trained ? '✓ 已训练' : '· 跳过'} ${o.signal.slice(0, 70)}\n`);
|
|
1109
|
+
if (o.trained)
|
|
1110
|
+
stdout.write(DIM(` 记忆 ${o.memoryEntries.join(',')} 已落盘(带溯源);晋升继续走 evolve 基准管线\n`));
|
|
1111
|
+
}
|
|
1112
|
+
return;
|
|
1113
|
+
}
|
|
1095
1114
|
if (sub !== 'status') {
|
|
1096
|
-
stdout.write('用法: hmh cognitive status|world-model|diagnose|bench|drift|skills|explore|transfer|team — 认知子系统与世界模型\n');
|
|
1115
|
+
stdout.write('用法: hmh cognitive status|world-model|diagnose|bench|drift|skills|explore|transfer|team|learn — 认知子系统与世界模型\n');
|
|
1097
1116
|
return;
|
|
1098
1117
|
}
|
|
1099
1118
|
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.19.
|
|
3
|
+
"version": "0.19.8",
|
|
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.19.
|
|
47
|
-
"@hmharness/cognitive": "0.19.
|
|
48
|
-
"@hmharness/domain-harmony": "0.19.
|
|
49
|
-
"@hmharness/domain-ops": "0.19.
|
|
50
|
-
"@hmharness/environments": "0.19.
|
|
51
|
-
"@hmharness/evaluation": "0.19.
|
|
52
|
-
"@hmharness/evolution": "0.19.
|
|
53
|
-
"@hmharness/kernel": "0.19.
|
|
54
|
-
"@hmharness/observability": "0.19.
|
|
55
|
-
"@hmharness/sandbox": "0.19.
|
|
56
|
-
"@hmharness/web": "0.19.
|
|
46
|
+
"@hmharness/agent": "0.19.8",
|
|
47
|
+
"@hmharness/cognitive": "0.19.8",
|
|
48
|
+
"@hmharness/domain-harmony": "0.19.8",
|
|
49
|
+
"@hmharness/domain-ops": "0.19.8",
|
|
50
|
+
"@hmharness/environments": "0.19.8",
|
|
51
|
+
"@hmharness/evaluation": "0.19.8",
|
|
52
|
+
"@hmharness/evolution": "0.19.8",
|
|
53
|
+
"@hmharness/kernel": "0.19.8",
|
|
54
|
+
"@hmharness/observability": "0.19.8",
|
|
55
|
+
"@hmharness/sandbox": "0.19.8",
|
|
56
|
+
"@hmharness/web": "0.19.8",
|
|
57
57
|
"qrcode": "^1.5.4"
|
|
58
58
|
}
|
|
59
59
|
}
|