@hmharness/agent 0.23.19 → 0.23.21
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/runner.d.ts +1 -0
- package/dist/runner.js +14 -0
- package/package.json +10 -9
package/dist/runner.d.ts
CHANGED
package/dist/runner.js
CHANGED
|
@@ -16,6 +16,7 @@ import { appendMemory, listSkills, readInsights, readNotes, retrieveInsights, re
|
|
|
16
16
|
import { harmonyTools } from '@hmharness/domain-harmony';
|
|
17
17
|
import { opsTools } from '@hmharness/domain-ops';
|
|
18
18
|
import { discoverServers, lspTools } from '@hmharness/lsp';
|
|
19
|
+
import { discoverBrowsers, browserTools } from '@hmharness/browser';
|
|
19
20
|
import * as readline from 'node:readline/promises';
|
|
20
21
|
import { stdin } from 'node:process';
|
|
21
22
|
import { baseTools } from "./tools.js";
|
|
@@ -51,6 +52,19 @@ export function nativeRegistry(depth, opts = {}) {
|
|
|
51
52
|
}
|
|
52
53
|
catch { /* lsp optional: never block tool assembly */ }
|
|
53
54
|
}
|
|
55
|
+
// BrowserOS browser_* family — same rule: only when a BrowserOS binary
|
|
56
|
+
// is discoverable + healthy. Trust is enforced at launch time (like lsp
|
|
57
|
+
// clientFor): an untrusted binary produces an actionable error, not a
|
|
58
|
+
// dead tool. The user's daily browser is never touched — tools drive a
|
|
59
|
+
// dedicated instance.
|
|
60
|
+
if (opts.browser !== false) {
|
|
61
|
+
try {
|
|
62
|
+
if (discoverBrowsers().some((b) => b.healthy)) {
|
|
63
|
+
reg.registerAll(browserTools({ workspaceRoot: opts.workspaceRoot ?? process.cwd(), home: homeDir() }));
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
catch { /* browser optional: never block tool assembly */ }
|
|
67
|
+
}
|
|
54
68
|
if (depth < MAX_SPAWN_DEPTH) {
|
|
55
69
|
// blueprint M10: every spawn_agent is governed by the live topology
|
|
56
70
|
// (role contract + shared budget + immutable multi-agent.jsonl audit);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hmharness/agent",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.21",
|
|
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,14 +15,15 @@
|
|
|
15
15
|
"build": "tsc -p tsconfig.build.json"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@hmharness/cognitive": "0.23.
|
|
19
|
-
"@hmharness/domain-harmony": "0.23.
|
|
20
|
-
"@hmharness/domain-ops": "0.23.
|
|
21
|
-
"@hmharness/evolution": "0.23.
|
|
22
|
-
"@hmharness/kernel": "0.23.
|
|
23
|
-
"@hmharness/observability": "0.23.
|
|
24
|
-
"@hmharness/sandbox": "0.23.
|
|
25
|
-
"@hmharness/lsp": "0.23.
|
|
18
|
+
"@hmharness/cognitive": "0.23.21",
|
|
19
|
+
"@hmharness/domain-harmony": "0.23.21",
|
|
20
|
+
"@hmharness/domain-ops": "0.23.21",
|
|
21
|
+
"@hmharness/evolution": "0.23.21",
|
|
22
|
+
"@hmharness/kernel": "0.23.21",
|
|
23
|
+
"@hmharness/observability": "0.23.21",
|
|
24
|
+
"@hmharness/sandbox": "0.23.21",
|
|
25
|
+
"@hmharness/lsp": "0.23.21",
|
|
26
|
+
"@hmharness/browser": "0.23.21"
|
|
26
27
|
},
|
|
27
28
|
"files": [
|
|
28
29
|
"dist"
|