@hmharness/cli 0.13.4 → 0.13.5
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 +18 -0
- package/package.json +2 -2
package/dist/main.js
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* hmh web [--port=7788] local web frontend (SSE streaming + approvals)
|
|
10
10
|
* hmh tui lite terminal UI (status header + slash commands)
|
|
11
11
|
* hmh ops [scan|brief|stats|status] ops keeper: radar / npm download stats
|
|
12
|
+
hmh knowledge refresh refresh static knowledge (fetch -> diff -> draft)
|
|
12
13
|
* hmh devices|check direct tool run, no model
|
|
13
14
|
* hmh tools list all registered tools (native + MCP)
|
|
14
15
|
* hmh mcp show configured MCP servers and their tools
|
|
@@ -357,6 +358,7 @@ usage:
|
|
|
357
358
|
hmh tui [--no-web] fullscreen terminal UI (slash palette, mouse wheel);
|
|
358
359
|
also starts the web UI in the background (--no-web skips)
|
|
359
360
|
hmh ops [scan|brief|stats|status] ops keeper: radar / npm download stats
|
|
361
|
+
hmh knowledge refresh refresh static knowledge (fetch -> diff -> draft)
|
|
360
362
|
hmh mcp-serve run as an MCP stdio SERVER: expose harmony_* tools to
|
|
361
363
|
Claude Code / Codex / any MCP host
|
|
362
364
|
(host config: npx -y @hmharness/cli mcp-serve)
|
|
@@ -595,6 +597,22 @@ flags:
|
|
|
595
597
|
void PROVIDER_PRESETS;
|
|
596
598
|
return;
|
|
597
599
|
}
|
|
600
|
+
if (cmd === 'knowledge') {
|
|
601
|
+
// day-29 SELFFEED: refreshKnowledge existed but was test-only dead code -
|
|
602
|
+
// wire the knowledge refresh into a real command (offline-safe by design:
|
|
603
|
+
// a clean no-op summary when nothing is reachable).
|
|
604
|
+
await initHome();
|
|
605
|
+
const home = homeDir();
|
|
606
|
+
const cfgK = await loadConfig();
|
|
607
|
+
const { refreshKnowledge } = await import('@hmharness/evolution');
|
|
608
|
+
const r = await refreshKnowledge({
|
|
609
|
+
home,
|
|
610
|
+
provider: resolveProvider(cfgK, 'evolve'),
|
|
611
|
+
say: (l) => stdout.write(DIM(` ${l}\n`)),
|
|
612
|
+
});
|
|
613
|
+
stdout.write((r.draft ? GREEN('✓') + ' knowledge draft: ' + r.draft.name + ' — ' : '') + r.summary + '\n');
|
|
614
|
+
return;
|
|
615
|
+
}
|
|
598
616
|
if (cmd === 'ops') {
|
|
599
617
|
await initHome();
|
|
600
618
|
const { harmonyOpsRadarScan, harmonyOpsRadarBrief, harmonyOpsStatus } = await import('@hmharness/domain-ops');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hmharness/cli",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.5",
|
|
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",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@hmharness/kernel": "0.9.0",
|
|
47
47
|
"@hmharness/observability": "0.7.0",
|
|
48
48
|
"@hmharness/evolution": "0.13.3",
|
|
49
|
-
"@hmharness/domain-harmony": "0.13.
|
|
49
|
+
"@hmharness/domain-harmony": "0.13.5",
|
|
50
50
|
"@hmharness/domain-ops": "0.8.0",
|
|
51
51
|
"@hmharness/agent": "0.11.0",
|
|
52
52
|
"@hmharness/evaluation": "0.8.0",
|