@hmharness/agent 0.21.1 → 0.21.2

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/runner.js +5 -2
  2. package/package.json +8 -8
package/dist/runner.js CHANGED
@@ -144,8 +144,11 @@ export async function contextPack(task, sessionId, opts = {}) {
144
144
  retrieveInsights(home, task, { workspace: opts.workspace ?? undefined }),
145
145
  // blueprint M3: the world model feeds the planner — which tools history
146
146
  // trusts/distrusts lands in the system prompt (empty until ≥3 steps of
147
- // evidence exist, so cold starts see nothing)
148
- import('@hmharness/cognitive').then((m) => m.buildContextDigest(home)).catch(() => ''),
147
+ // evidence exist, so cold starts see nothing). HMH_NO_COGNITIVE=1 strips
148
+ // it — the ablation arm for §26's harness-contribution measurement.
149
+ process.env.HMH_NO_COGNITIVE === '1'
150
+ ? Promise.resolve('')
151
+ : import('@hmharness/cognitive').then((m) => m.buildContextDigest(home)).catch(() => ''),
149
152
  ]);
150
153
  let canaryBlock = '';
151
154
  let canaryNames = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hmharness/agent",
3
- "version": "0.21.1",
3
+ "version": "0.21.2",
4
4
  "description": "hmharness agent execution layer: base tools, system prompt, sub-agent spawn, and the shared task runner that frontends (cli, web) drive.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -15,13 +15,13 @@
15
15
  "build": "tsc -p tsconfig.build.json"
16
16
  },
17
17
  "dependencies": {
18
- "@hmharness/cognitive": "0.21.1",
19
- "@hmharness/domain-harmony": "0.21.1",
20
- "@hmharness/domain-ops": "0.21.1",
21
- "@hmharness/evolution": "0.21.1",
22
- "@hmharness/kernel": "0.21.1",
23
- "@hmharness/observability": "0.21.1",
24
- "@hmharness/sandbox": "0.21.1"
18
+ "@hmharness/cognitive": "0.21.2",
19
+ "@hmharness/domain-harmony": "0.21.2",
20
+ "@hmharness/domain-ops": "0.21.2",
21
+ "@hmharness/evolution": "0.21.2",
22
+ "@hmharness/kernel": "0.21.2",
23
+ "@hmharness/observability": "0.21.2",
24
+ "@hmharness/sandbox": "0.21.2"
25
25
  },
26
26
  "files": [
27
27
  "dist"