@hmharness/cli 0.22.3 → 0.22.4

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/ablate-task.js +17 -5
  2. package/package.json +12 -12
@@ -80,11 +80,19 @@ async function poolOf(difficulty, home, filter) {
80
80
  * harness output was merely verbose. Same instrument, same reading.)
81
81
  */
82
82
  async function runOnce(task, bare, timeoutMs) {
83
- const prev = process.env.HMH_NO_COGNITIVE;
84
- if (bare)
83
+ const prevCog = process.env.HMH_NO_COGNITIVE;
84
+ const prevCtx = process.env.HMH_NO_CONTEXT;
85
+ if (bare) {
86
+ // full ablation: strip the tool-reliability digest AND the experience
87
+ // layer (memory + task-relevant lessons) — v0.22.3 showed the digest
88
+ // alone has no effect; the live hypothesis is the value lives in lessons
85
89
  process.env.HMH_NO_COGNITIVE = '1';
86
- else
90
+ process.env.HMH_NO_CONTEXT = '1';
91
+ }
92
+ else {
87
93
  delete process.env.HMH_NO_COGNITIVE;
94
+ delete process.env.HMH_NO_CONTEXT;
95
+ }
88
96
  let finalText = '';
89
97
  try {
90
98
  const { runAgentTask, buildRegistry } = await import('@hmharness/agent');
@@ -113,10 +121,14 @@ async function runOnce(task, bare, timeoutMs) {
113
121
  return { ok: false, output: finalText, error: String(err).slice(0, 120) };
114
122
  }
115
123
  finally {
116
- if (prev === undefined)
124
+ if (prevCog === undefined)
117
125
  delete process.env.HMH_NO_COGNITIVE;
118
126
  else
119
- process.env.HMH_NO_COGNITIVE = prev;
127
+ process.env.HMH_NO_COGNITIVE = prevCog;
128
+ if (prevCtx === undefined)
129
+ delete process.env.HMH_NO_CONTEXT;
130
+ else
131
+ process.env.HMH_NO_CONTEXT = prevCtx;
120
132
  }
121
133
  }
122
134
  export function verdictOf(r, check) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hmharness/cli",
3
- "version": "0.22.3",
3
+ "version": "0.22.4",
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.22.3",
47
- "@hmharness/cognitive": "0.22.3",
48
- "@hmharness/domain-harmony": "0.22.3",
49
- "@hmharness/domain-ops": "0.22.3",
50
- "@hmharness/environments": "0.22.3",
51
- "@hmharness/evaluation": "0.22.3",
52
- "@hmharness/evolution": "0.22.3",
53
- "@hmharness/kernel": "0.22.3",
54
- "@hmharness/observability": "0.22.3",
55
- "@hmharness/sandbox": "0.22.3",
56
- "@hmharness/web": "0.22.3",
46
+ "@hmharness/agent": "0.22.4",
47
+ "@hmharness/cognitive": "0.22.4",
48
+ "@hmharness/domain-harmony": "0.22.4",
49
+ "@hmharness/domain-ops": "0.22.4",
50
+ "@hmharness/environments": "0.22.4",
51
+ "@hmharness/evaluation": "0.22.4",
52
+ "@hmharness/evolution": "0.22.4",
53
+ "@hmharness/kernel": "0.22.4",
54
+ "@hmharness/observability": "0.22.4",
55
+ "@hmharness/sandbox": "0.22.4",
56
+ "@hmharness/web": "0.22.4",
57
57
  "qrcode": "^1.5.4"
58
58
  }
59
59
  }