@hmharness/cli 0.19.5 → 0.19.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.
Files changed (2) hide show
  1. package/dist/main.js +22 -1
  2. package/package.json +12 -12
package/dist/main.js CHANGED
@@ -1063,6 +1063,9 @@ flags:
1063
1063
  stdout.write(`迁移实验 ${source} → ${target}(每臂 ${report.runsPerArm} 次探索)\n`);
1064
1064
  stdout.write(` 动作重叠: ${report.actionOverlap.length ? report.actionOverlap.join(', ') : '(无——两环境无共享动作类型,本实验不构成迁移检验)'}\n`);
1065
1065
  stdout.write(` 带迁移成功率 ${report.withTransfer} vs 空白对照 ${report.fromScratch} → 迁移分 ${report.score} [${report.verdict}]\n`);
1066
+ if (report.brierWith !== undefined && report.brierWithout !== undefined) {
1067
+ stdout.write(` 校准: 带迁移 Brier ${report.brierWith} vs 空白 ${report.brierWithout}${report.calibrationDelta !== undefined && report.calibrationDelta > 0 ? `(种子臂预测更准 +${report.calibrationDelta} = 真实携带知识)` : ''}\n`);
1068
+ }
1066
1069
  if (report.verdict === 'negative')
1067
1070
  stdout.write(YELLOW(' ⚠ 负迁移:源环境信念在目标环境有害——世界模型需要修订\n'));
1068
1071
  }
@@ -1071,8 +1074,26 @@ flags:
1071
1074
  }
1072
1075
  return;
1073
1076
  }
1077
+ if (sub === 'team') {
1078
+ // blueprint M10: replay the governed multi-agent history (immutable
1079
+ // multi-agent.jsonl — teams, spawns, budgets, failures)
1080
+ const { teamLog } = await import('@hmharness/agent');
1081
+ const events = await teamLog(40);
1082
+ if (events.length === 0) {
1083
+ stdout.write('(暂无多智能体记录——跑一个带 spawn_agent 的任务后自动生成)\n');
1084
+ return;
1085
+ }
1086
+ for (const e of events.slice(-20)) {
1087
+ const label = e.event === 'team.created' ? `team created · goal: ${String(e.goal).slice(0, 50)}`
1088
+ : e.event === 'spawn.started' ? `spawn ${e.nodeId} [${e.role}] budget=${e.budgetUnits} · ${String(e.task).slice(0, 50)}`
1089
+ : e.event === 'spawn.done' ? `done ${e.nodeId} [${e.role}] ${e.durationMs}ms`
1090
+ : `FAIL ${e.nodeId} [${e.role}] ${String(e.error ?? '').slice(0, 60)}`;
1091
+ stdout.write(` ${String(e.at).slice(11, 19)} ${label}\n`);
1092
+ }
1093
+ return;
1094
+ }
1074
1095
  if (sub !== 'status') {
1075
- stdout.write('用法: hmh cognitive status|world-model|diagnose|bench|drift|skills|explore|transfer — 认知子系统与世界模型\n');
1096
+ stdout.write('用法: hmh cognitive status|world-model|diagnose|bench|drift|skills|explore|transfer|team — 认知子系统与世界模型\n');
1076
1097
  return;
1077
1098
  }
1078
1099
  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.5",
3
+ "version": "0.19.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.19.5",
47
- "@hmharness/cognitive": "0.19.5",
48
- "@hmharness/domain-harmony": "0.19.5",
49
- "@hmharness/domain-ops": "0.19.5",
50
- "@hmharness/environments": "0.19.5",
51
- "@hmharness/evaluation": "0.19.5",
52
- "@hmharness/evolution": "0.19.5",
53
- "@hmharness/kernel": "0.19.5",
54
- "@hmharness/observability": "0.19.5",
55
- "@hmharness/sandbox": "0.19.5",
56
- "@hmharness/web": "0.19.5",
46
+ "@hmharness/agent": "0.19.7",
47
+ "@hmharness/cognitive": "0.19.7",
48
+ "@hmharness/domain-harmony": "0.19.7",
49
+ "@hmharness/domain-ops": "0.19.7",
50
+ "@hmharness/environments": "0.19.7",
51
+ "@hmharness/evaluation": "0.19.7",
52
+ "@hmharness/evolution": "0.19.7",
53
+ "@hmharness/kernel": "0.19.7",
54
+ "@hmharness/observability": "0.19.7",
55
+ "@hmharness/sandbox": "0.19.7",
56
+ "@hmharness/web": "0.19.7",
57
57
  "qrcode": "^1.5.4"
58
58
  }
59
59
  }