@hmharness/cli 0.23.29 → 0.23.30

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.
@@ -0,0 +1,248 @@
1
+ #!/usr/bin/env node
2
+ // heal-tree.cjs — self-healing completeness check for the hmharness board tree.
3
+ // TWIN COPY: scripts/heal-tree.cjs (repo installs) and
4
+ // packages/cli/board/heal-tree.cjs (ships in the npm package). Keep both in
5
+ // sync. install-kaihongos.cjs copies this file to <HMH_HOME>/heal-tree.cjs
6
+ // and the launcher hook (see installHealLayer) runs it before every start.
7
+ //
8
+ // WHY: a board auto-update swaps node_modules wholesale; any incompleteness
9
+ // in the package set — a lagging hardcoded list, a rename or split between
10
+ // releases — bricks the next launch with ERR_MODULE_NOT_FOUND. Repairs made
11
+ // INSIDE the tree are wiped by the same swap, so the healer lives outside it
12
+ // (in ~/.hmharness, the state dir no update touches).
13
+ //
14
+ // HOW: discover the required @hmharness/* set from the tree itself —
15
+ // 1. BFS over installed package.json "dependencies" (declared graph)
16
+ // 2. static scan of built code for '@hmharness/<name>' imports (catches
17
+ // undeclared-but-imported packages)
18
+ // then download any missing tarball from registry.npmjs.org at the version
19
+ // the tree is on; offline, restore from node_modules.bak at the same version.
20
+ // No hardcoded package list: immune to upstream growth. As a second layer it
21
+ // also re-extends the PACKAGES list of the embedded board installer, so the
22
+ // NEXT auto-update itself installs a complete tree.
23
+ //
24
+ // Exit 0 = tree verified complete. Exit 1 = could not complete (retried on
25
+ // the next launch). The launcher never blocks on this script.
26
+ const fs = require('fs');
27
+ const path = require('path');
28
+ const https = require('https');
29
+ const { spawnSync } = require('child_process');
30
+
31
+ // Board home is overridable so the same script serves non-default --home=
32
+ // installs; the launcher hook exports HMH_BOARD_HOME before invoking it.
33
+ const BOARD_HOME = process.env.HMH_BOARD_HOME || '/data/local/home';
34
+ const HROOT = path.join(BOARD_HOME, '.local', 'hmharness');
35
+ const NM = path.join(HROOT, 'node_modules', '@hmharness');
36
+ const HMH_HOME = path.join(BOARD_HOME, '.hmharness');
37
+ const LOG = path.join(HMH_HOME, 'heal.log');
38
+ const REG = 'https://registry.npmjs.org';
39
+ const MAX_ROUNDS = 6;
40
+
41
+ function log(msg) {
42
+ const line = '[' + new Date().toISOString() + '] ' + msg;
43
+ try { fs.appendFileSync(LOG, line + '\n'); } catch { /* best-effort */ }
44
+ }
45
+
46
+ // ---------- registry helpers (Node core only, busybox for tar) --------------
47
+ function download(url, file) {
48
+ return new Promise((resolve, reject) => {
49
+ let attempt = 0;
50
+ const go = () => {
51
+ attempt++;
52
+ const req = https.request(new URL(url), { headers: { 'User-Agent': 'hmh-heal' }, timeout: 45000 }, (res) => {
53
+ if (res.statusCode !== 200) { res.resume(); reject(new Error(url + ' -> ' + res.statusCode)); return; }
54
+ const out = fs.createWriteStream(file);
55
+ res.pipe(out);
56
+ out.on('finish', () => out.close(resolve));
57
+ out.on('error', reject);
58
+ });
59
+ req.on('timeout', () => { req.destroy(); retry(); });
60
+ req.on('error', (e) => {
61
+ if (attempt < 8 && /EAI_AGAIN|ENOTFOUND|ECONNRESET|ETIMEDOUT/.test(e.code || '')) setTimeout(retry, 2000 * attempt);
62
+ else reject(e);
63
+ });
64
+ req.end();
65
+ };
66
+ const retry = () => { if (attempt < 8) go(); else reject(new Error('retries exhausted: ' + url)); };
67
+ go();
68
+ });
69
+ }
70
+
71
+ function extract(tgz, dest) {
72
+ fs.rmSync(dest, { recursive: true, force: true });
73
+ fs.mkdirSync(dest, { recursive: true });
74
+ const cmds = [
75
+ ['busybox', ['tar', '-xzf', tgz, '-C', dest, '--strip-components=1']],
76
+ ['tar', ['-xzf', tgz, '-C', dest, '--strip-components=1']],
77
+ ];
78
+ for (const [bin, args] of cmds) {
79
+ const r = spawnSync(bin, args, { encoding: 'utf8' });
80
+ if (r.status === 0) return;
81
+ }
82
+ throw new Error('no usable tar');
83
+ }
84
+
85
+ /** Offline fallback: copy a package from the previous tree (node_modules.bak)
86
+ * when the registry is unreachable, but ONLY at the exact same version. */
87
+ function restoreFromBak(name, ver) {
88
+ const bakPkg = path.join(HROOT, 'node_modules.bak', '@hmharness', name, 'package.json');
89
+ try {
90
+ const bak = JSON.parse(fs.readFileSync(bakPkg, 'utf8'));
91
+ if (bak.version !== ver) return false;
92
+ fs.cpSync(path.dirname(bakPkg), path.join(NM, name), { recursive: true });
93
+ return true;
94
+ } catch { return false; }
95
+ }
96
+
97
+ // ---------- discovery -------------------------------------------------------
98
+ function readPkg(name) {
99
+ try { return JSON.parse(fs.readFileSync(path.join(NM, name, 'package.json'), 'utf8')); }
100
+ catch { return null; }
101
+ }
102
+
103
+ /** All @hmharness/* names referenced by the tree: declared deps (BFS) plus
104
+ * imports found in built code (catches undeclared imports). */
105
+ function discoverRequired() {
106
+ const have = new Set(fs.readdirSync(NM));
107
+ const declared = new Map(); // name -> Set of required version strings
108
+ const queue = ['cli'];
109
+ const seen = new Set();
110
+ while (queue.length) {
111
+ const n = queue.shift();
112
+ if (seen.has(n) || !have.has(n)) continue;
113
+ seen.add(n);
114
+ const deps = (readPkg(n) || {}).dependencies || {};
115
+ for (const [dep, ver] of Object.entries(deps)) {
116
+ if (!dep.startsWith('@hmharness/')) continue;
117
+ const sub = dep.slice(11);
118
+ if (!declared.has(sub)) declared.set(sub, new Set());
119
+ declared.get(sub).add(String(ver));
120
+ if (have.has(sub) && !seen.has(sub)) queue.push(sub);
121
+ }
122
+ }
123
+ // static import scan over built code (dist/, board/, root .js) for BOTH
124
+ // declared and undeclared references
125
+ const imported = new Set();
126
+ const scanDir = (dir) => {
127
+ let entries;
128
+ try { entries = fs.readdirSync(dir, { withFileTypes: true }); } catch { return; }
129
+ for (const e of entries) {
130
+ const p = path.join(dir, e.name);
131
+ if (e.isDirectory()) { if (e.name !== 'node_modules') scanDir(p); continue; }
132
+ if (!e.name.endsWith('.js') && !e.name.endsWith('.cjs') && !e.name.endsWith('.mjs')) continue;
133
+ let src;
134
+ try { src = fs.readFileSync(p, 'utf8'); } catch { continue; }
135
+ for (const m of src.matchAll(/@hmharness\/([a-z0-9][a-z0-9.-]*)/g)) imported.add(m[1]);
136
+ }
137
+ };
138
+ for (const n of have) scanDir(path.join(NM, n));
139
+ return { have, declared, imported };
140
+ }
141
+
142
+ /** Best version for a missing package: prefer the tree's cli version (first-party
143
+ * packages release in lockstep), then any explicitly declared version, then
144
+ * the max declared. */
145
+ function pickVersion(name, declared, cliVer) {
146
+ const vs = declared.get(name) || new Set();
147
+ if (vs.has(cliVer)) return cliVer;
148
+ const clean = [...vs].map((v) => v.replace(/[^0-9.]/g, '')).filter(Boolean).sort((a, b) => {
149
+ const pa = a.split('.').map(Number), pb = b.split('.').map(Number);
150
+ for (let i = 0; i < 3; i++) if ((pa[i] || 0) !== (pb[i] || 0)) return (pa[i] || 0) - (pb[i] || 0);
151
+ return 0;
152
+ });
153
+ return clean[clean.length - 1] || cliVer;
154
+ }
155
+
156
+ // ---------- layer 2: patch the embedded installer's package list ------------
157
+ function patchEmbeddedInstaller(required) {
158
+ const inst = path.join(NM, 'cli', 'board', 'install-kaihongos.cjs');
159
+ if (!fs.existsSync(inst)) return;
160
+ let src;
161
+ try { src = fs.readFileSync(inst, 'utf8'); } catch { return; }
162
+ const m = src.match(/const PACKAGES = \[([^\]]*)\]/);
163
+ if (!m) return;
164
+ const cur = new Set([...m[1].matchAll(/'([a-z0-9-]+)'/g)].map((x) => x[1]));
165
+ const need = new Set([...cur, ...required]);
166
+ need.delete('cli');
167
+ if (need.size === cur.size - (cur.has('cli') ? 1 : 0)) return; // nothing new
168
+ const names = ['cli', ...[...need].sort()];
169
+ const arr = "const PACKAGES = [" + names.map((n) => "'" + n + "'").join(', ') + "];";
170
+ const next = src.replace(/const PACKAGES = \[[^\]]*\]/, arr +
171
+ '\n// (list auto-extended by heal-tree.cjs: registry deps + code imports)');
172
+ // write only when it still parses (write to a .cjs temp — node --check
173
+ // rejects unknown extensions — then check and swap)
174
+ try {
175
+ const tmp = inst + '.heal.cjs';
176
+ fs.writeFileSync(tmp, next);
177
+ const c2 = spawnSync(process.execPath, ['--check', tmp], { encoding: 'utf8' });
178
+ if (c2.status === 0) { fs.rmSync(inst, { force: true }); fs.renameSync(tmp, inst); log('patched embedded installer PACKAGES -> ' + names.length + ' packages'); }
179
+ else { fs.rmSync(tmp, { force: true }); log('warn: embedded installer patch failed --check (' + String((c2.stderr || '')).split('\n')[0].slice(0, 120) + '), left stock'); }
180
+ } catch (e) { log('warn: could not patch embedded installer: ' + e.message); }
181
+ }
182
+
183
+ // ---------- main ------------------------------------------------------------
184
+ (async () => {
185
+ // keep the log bounded
186
+ try { const st = fs.statSync(LOG); if (st.size > 256 * 1024) fs.rmSync(LOG); } catch { /* new */ }
187
+ // single-instance lock (5 min staleness). NOTE: exit via process.exitCode +
188
+ // return — process.exit() skips finally and would leak the lock dir.
189
+ const lock = path.join(HMH_HOME, '.heal.lock');
190
+ try {
191
+ const st = fs.statSync(lock);
192
+ if (Date.now() - st.mtimeMs < 5 * 60_000) { log('another heal is running, skipping (stamp untouched)'); process.exit(1); }
193
+ } catch { /* no lock */ }
194
+ fs.rmSync(lock, { recursive: true, force: true });
195
+ try { fs.mkdirSync(lock); } catch { /* ok */ }
196
+
197
+ let exitCode = 1;
198
+ try {
199
+ if (!fs.existsSync(path.join(NM, 'cli'))) {
200
+ log('FATAL: cli package missing entirely — run the board installer manually');
201
+ return;
202
+ }
203
+ const cliVer = readPkg('cli').version;
204
+ log('heal start · tree @' + cliVer);
205
+
206
+ let installedTotal = 0;
207
+ for (let round = 0; round < MAX_ROUNDS; round++) {
208
+ const { have, declared, imported } = discoverRequired();
209
+ const missing = [...new Set([...declared.keys(), ...imported])].filter((n) => !have.has(n));
210
+ if (missing.length === 0) {
211
+ // complete: patch the embedded installer so the NEXT auto-update
212
+ // itself installs a complete tree (layer 2), then report success
213
+ patchEmbeddedInstaller(new Set([...declared.keys(), ...imported]));
214
+ log('tree complete (' + have.size + ' first-party packages)' + (installedTotal ? ' · installed ' + installedTotal + ' this run' : ''));
215
+ exitCode = 0;
216
+ return;
217
+ }
218
+ let progressed = false;
219
+ let networkFailed = false;
220
+ for (const name of missing) {
221
+ const ver = pickVersion(name, declared, cliVer);
222
+ const tgz = path.join(HROOT, '.heal.tgz');
223
+ log('missing ' + name + ' -> installing @' + ver);
224
+ try {
225
+ await download(REG + '/@hmharness/' + name + '/-/' + name + '-' + ver + '.tgz', tgz);
226
+ extract(tgz, path.join(NM, name));
227
+ const got = readPkg(name);
228
+ if (!got || got.version !== ver) throw new Error('unpacked ' + (got && got.version) + ' != ' + ver);
229
+ log('installed ' + name + '@' + ver);
230
+ installedTotal++; progressed = true;
231
+ } catch (e) {
232
+ const notFound = /-> 404/.test(e.message);
233
+ log((notFound ? 'warn: ' : 'error: ') + name + '@' + ver + ': ' + e.message.slice(0, 140));
234
+ if (notFound) continue; // scan-only overmatch: ignore
235
+ // network failure: try the previous tree at the same version, else
236
+ // keep going — other packages may still download fine
237
+ networkFailed = true;
238
+ if (restoreFromBak(name, ver)) { log('restored ' + name + '@' + ver + ' from node_modules.bak (offline)'); installedTotal++; progressed = true; }
239
+ }
240
+ }
241
+ if (!progressed) { log('no progress this round' + (networkFailed ? ' (network unreachable — will retry next launch)' : '')); return; }
242
+ }
243
+ log('rounds exhausted');
244
+ } finally {
245
+ try { fs.rmdirSync(lock); } catch { /* already gone */ }
246
+ }
247
+ process.exitCode = exitCode;
248
+ })();
@@ -10,7 +10,7 @@
10
10
  // 1. locates a usable Node >= 22 (the running one, or known board paths)
11
11
  // 2. resolves the @hmharness/* version set from registry.npmjs.org
12
12
  // (offline fallback: known-good pins below)
13
- // 3. downloads the 10 first-party tarballs and unpacks them under
13
+ // 3. downloads the first-party tarballs and unpacks them under
14
14
  // <BOARD_HOME>/.local/hmharness/node_modules (staged, verified, swapped)
15
15
  // 4. writes a hardened launcher and installs it into THREE locations:
16
16
  // <BOARD_HOME>/.local/bin/hmh (user path, always writable)
@@ -19,11 +19,14 @@
19
19
  // ALSO visible inside isolated
20
20
  // tmpfs mount-namespace terminals
21
21
  // where /bin -> /system/bin)
22
- // 5. first run: `hmh init` if config.json is missing
22
+ // 5. installs the SELF-HEAL layer (heal-tree.cjs + a launcher-sourced hook):
23
+ // the package set below is a FLOOR, extendHeal covers the rest — see
24
+ // "why the heal layer exists" above installHealLayer()
25
+ // 6. first run: `hmh init` if config.json is missing
23
26
  //
24
27
  // Usage:
25
28
  // node install-kaihongos.cjs # install/upgrade to latest
26
- // node install-kaihongos.cjs --bin-only # only (re)write launchers
29
+ // node install-kaihongos.cjs --bin-only # only (re)write launchers+heal
27
30
  // node install-kaihongos.cjs --home=/x # non-default board home
28
31
  //
29
32
  // Only Node core modules are used; tar extraction uses busybox tar.
@@ -46,14 +49,23 @@ const ROOT = path.join(BOARD_HOME, '.local', 'hmharness');
46
49
  const NM = path.join(ROOT, 'node_modules');
47
50
  const HMH_HOME = path.join(BOARD_HOME, '.hmharness');
48
51
  const REG = 'https://registry.npmjs.org';
49
- const PACKAGES = ['cli', 'web', 'agent', 'kernel', 'sandbox', 'evolution',
50
- 'domain-ops', 'evaluation', 'observability', 'domain-harmony'];
52
+ // FLOOR list only. resolveVersions() unions this with whatever the latest cli
53
+ // DECLARES as first-party deps, so new first-party packages are picked up
54
+ // without editing this file — the historical failure mode was exactly that
55
+ // lag: the list said 10 while cli had grown to 15 (cognitive, environments,
56
+ // lsp, browser, extension ...), every auto-update shipped an incomplete tree
57
+ // and the next launch died with ERR_MODULE_NOT_FOUND.
58
+ let PACKAGES = ['cli', 'web', 'agent', 'kernel', 'sandbox', 'evolution',
59
+ 'domain-ops', 'evaluation', 'observability', 'domain-harmony',
60
+ 'cognitive', 'environments', 'lsp', 'browser', 'extension'];
51
61
 
52
62
  // Known-good pin set (offline fallback when the registry is unreachable).
63
+ // The release bot keeps versions synced; the NAMES must cover the full
64
+ // first-party set so the offline path cannot produce an incomplete tree.
53
65
  const FALLBACK_PINS = {
54
- cli: '0.23.29', web: '0.23.29', agent: '0.23.29', kernel: '0.23.29',
55
- sandbox: '0.23.29', evolution: '0.23.29', 'domain-ops': '0.23.29',
56
- evaluation: '0.23.29', observability: '0.23.29', 'domain-harmony': '0.23.29',
66
+ cli: '0.23.30', web: '0.23.30', agent: '0.23.30', kernel: '0.23.30',
67
+ sandbox: '0.23.30', evolution: '0.23.30', 'domain-ops': '0.23.30',
68
+ evaluation: '0.23.30', observability: '0.23.30', 'domain-harmony': '0.23.30',
57
69
  };
58
70
 
59
71
  // ---------- helpers ---------------------------------------------------------
@@ -118,12 +130,23 @@ async function resolveVersions() {
118
130
  const meta = await httpsJSON(REG + '/@hmharness/cli');
119
131
  const cliLatest = meta['dist-tags'].latest;
120
132
  const deps = (meta.versions[cliLatest].dependencies) || {};
133
+ // dynamic package set: floor ∪ first-party deps the latest cli declares —
134
+ // new upstream packages ride along without this file being touched
135
+ const names = new Set(PACKAGES);
136
+ for (const d of Object.keys(deps)) {
137
+ if (d.startsWith('@hmharness/')) names.add(d.slice('@hmharness/'.length));
138
+ }
139
+ names.delete('cli');
140
+ PACKAGES = ['cli', ...[...names].sort()];
141
+ log(' package set (' + PACKAGES.length + '): ' + PACKAGES.join(', '));
121
142
  const pins = { cli: cliLatest };
122
143
  for (const n of PACKAGES.slice(1)) {
123
144
  const want = deps['@hmharness/' + n];
124
145
  if (want && want !== '*') { pins[n] = want.replace(/[^0-9.]/g, ''); continue; }
125
- const m = await httpsJSON(REG + '/@hmharness/' + n);
126
- pins[n] = m['dist-tags'].latest;
146
+ // not declared by the latest cli: pin to the cli version itself —
147
+ // first-party packages release in lockstep, and a per-package dist-tag
148
+ // lookup can drift or 404 for brand-new names
149
+ pins[n] = cliLatest;
127
150
  }
128
151
  return pins;
129
152
  }
@@ -199,6 +222,70 @@ function writeLauncher(nodeBin) {
199
222
  }
200
223
  }
201
224
 
225
+ // ---------- self-heal layer --------------------------------------------------
226
+ // Why: the board auto-update channel re-runs THIS installer from inside the
227
+ // freshly downloaded npm package. Even with the dynamic package set above,
228
+ // belt-and-braces says the installed tree should be able to repair itself:
229
+ // a package renamed, split, or added between releases cannot brick the
230
+ // board install. The heal script discovers required @hmharness/* packages
231
+ // from the tree ITSELF (deps graph BFS + a static import scan of built
232
+ // code), so it never goes stale the way any hardcoded list does.
233
+ //
234
+ // Two pieces are installed, both OUTSIDE node_modules (which every update
235
+ // swaps wholesale):
236
+ // 1. <HMH_HOME>/heal-tree.cjs — the repair script (this file's
237
+ // sibling twin: scripts/heal-tree.cjs / packages/cli/board/heal-tree.cjs)
238
+ // 2. a marked hook block in <BOARD_HOME>/.config/apikeys.env — the stock
239
+ // launcher template always sources that file before exec'ing the CLI,
240
+ // and the updater never touches user config, so it is the one durable
241
+ // pre-start hook point. A no-op heal run costs ~0.1s; failures never
242
+ // block startup.
243
+ const HEAL_HOOK_BEGIN = '# >>> hmh board self-heal hook (installed by install-kaihongos.cjs; keep) <<<';
244
+ const HEAL_HOOK_END = '# <<< end hmh board self-heal hook >>>';
245
+
246
+ function healHookSource() {
247
+ return [
248
+ HEAL_HOOK_BEGIN,
249
+ '# Runs heal-tree.cjs BEFORE the CLI starts: verifies the vendor tree is',
250
+ '# complete and repairs it (registry, or node_modules.bak offline) when an',
251
+ '# auto-update left packages missing. No-op cost ~0.1s; never blocks start.',
252
+ 'if [ -d ' + NM + '/@hmharness ]; then',
253
+ ' _HMH_HEAL_NODE="${HNODE:-' + path.join(BOARD_HOME, 'dsh-pack/node/bin/node.bin') + '}"',
254
+ ' if [ -x "$_HMH_HEAL_NODE" ]; then',
255
+ ' HMH_BOARD_HOME="' + BOARD_HOME + '" \\',
256
+ ' "$_HMH_HEAL_NODE" ' + path.join(HMH_HOME, 'heal-tree.cjs') + ' >>' + path.join(HMH_HOME, 'heal.log') + ' 2>&1 \\',
257
+ ' || echo "hmh: self-heal could not complete (see ' + path.join(HMH_HOME, 'heal.log') + ') — starting anyway" >&2',
258
+ ' fi',
259
+ 'fi',
260
+ 'unset _HMH_HEAL_NODE',
261
+ HEAL_HOOK_END,
262
+ '',
263
+ ].join('\n');
264
+ }
265
+
266
+ function installHealLayer() {
267
+ const sibling = path.join(__dirname, 'heal-tree.cjs');
268
+ if (!fs.existsSync(sibling)) { log('warn: heal-tree.cjs not found beside installer — self-heal layer NOT installed'); return; }
269
+ const healDst = path.join(HMH_HOME, 'heal-tree.cjs');
270
+ fs.mkdirSync(HMH_HOME, { recursive: true });
271
+ fs.writeFileSync(healDst, fs.readFileSync(sibling, 'utf8'));
272
+ fs.chmodSync(healDst, 0o600);
273
+ log('heal: ' + healDst);
274
+
275
+ // merge the hook into apikeys.env, preserving whatever the user keeps there
276
+ const envFile = path.join(BOARD_HOME, '.config', 'apikeys.env');
277
+ fs.mkdirSync(path.dirname(envFile), { recursive: true });
278
+ let prev = '';
279
+ try { prev = fs.readFileSync(envFile, 'utf8'); } catch (_) { /* new */ }
280
+ const esc = (s) => s.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
281
+ const stripped = prev
282
+ .replace(new RegExp(esc(HEAL_HOOK_BEGIN) + '[\\s\\S]*?' + esc(HEAL_HOOK_END) + '\\n?', 'g'), '')
283
+ .replace(/\n{3,}/g, '\n\n');
284
+ const next = (stripped.endsWith('\n') || stripped === '' ? stripped : stripped + '\n') + healHookSource();
285
+ fs.writeFileSync(envFile, next);
286
+ log('heal hook: ' + envFile + (prev.trim() ? ' (existing content preserved)' : ''));
287
+ }
288
+
202
289
  // ---------- main ------------------------------------------------------------
203
290
  (async () => {
204
291
  log('board home: ' + BOARD_HOME);
@@ -245,6 +332,7 @@ function writeLauncher(nodeBin) {
245
332
  }
246
333
 
247
334
  writeLauncher(nodeBin);
335
+ installHealLayer();
248
336
 
249
337
  // first run: create the state skeleton + blank config (never overwrite)
250
338
  if (!fs.existsSync(path.join(HMH_HOME, 'config.json'))) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hmharness/cli",
3
- "version": "0.23.29",
3
+ "version": "0.23.30",
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",
@@ -45,20 +45,20 @@
45
45
  "build": "tsc -p tsconfig.build.json"
46
46
  },
47
47
  "dependencies": {
48
- "@hmharness/agent": "0.23.29",
49
- "@hmharness/browser": "0.23.29",
50
- "@hmharness/cognitive": "0.23.29",
51
- "@hmharness/domain-harmony": "0.23.29",
52
- "@hmharness/domain-ops": "0.23.29",
53
- "@hmharness/environments": "0.23.29",
54
- "@hmharness/evaluation": "0.23.29",
55
- "@hmharness/evolution": "0.23.29",
56
- "@hmharness/extension": "0.23.29",
57
- "@hmharness/kernel": "0.23.29",
58
- "@hmharness/observability": "0.23.29",
59
- "@hmharness/sandbox": "0.23.29",
60
- "@hmharness/web": "0.23.29",
48
+ "@hmharness/agent": "0.23.30",
49
+ "@hmharness/browser": "0.23.30",
50
+ "@hmharness/cognitive": "0.23.30",
51
+ "@hmharness/domain-harmony": "0.23.30",
52
+ "@hmharness/domain-ops": "0.23.30",
53
+ "@hmharness/environments": "0.23.30",
54
+ "@hmharness/evaluation": "0.23.30",
55
+ "@hmharness/evolution": "0.23.30",
56
+ "@hmharness/extension": "0.23.30",
57
+ "@hmharness/kernel": "0.23.30",
58
+ "@hmharness/observability": "0.23.30",
59
+ "@hmharness/sandbox": "0.23.30",
60
+ "@hmharness/web": "0.23.30",
61
61
  "qrcode": "^1.5.4",
62
- "@hmharness/lsp": "0.23.29"
62
+ "@hmharness/lsp": "0.23.30"
63
63
  }
64
64
  }
@@ -1,5 +1,10 @@
1
1
  {
2
2
  "notes": [
3
+ {
4
+ "v": "0.23.30",
5
+ "date": "2026-10-07",
6
+ "note": "0.24 研究里程碑:学习改变行动的跨环境证据(规划门判别力随动作词表丰富度上升,harmonyos 达 0.71-0.97);认知账本 2.0 可回放 DAG;Skill 2.0 schema;泛化实验室把 0.39 拒绝归因为触发/前置条件轴;Web 驾驶舱升八态(规划/验证/恢复/终态可见)"
7
+ },
3
8
  {
4
9
  "v": "0.23.29",
5
10
  "date": "2026-10-07",