@hmharness/codexhost-bridge 0.5.3 → 0.6.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.
- package/bin/hmh-codexhost.mjs +11 -2
- package/package.json +7 -4
package/bin/hmh-codexhost.mjs
CHANGED
|
@@ -11,12 +11,21 @@
|
|
|
11
11
|
// background work inside the agent (self-evolution cycles etc.) must not
|
|
12
12
|
// keep this one-shot process alive - we exit hard after the final line.
|
|
13
13
|
import process from "node:process";
|
|
14
|
+
import { existsSync } from "node:fs";
|
|
14
15
|
import { createRequire } from "node:module";
|
|
15
16
|
|
|
16
17
|
const require = createRequire(import.meta.url);
|
|
17
18
|
const { version } = require("../package.json");
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
// Prefer the hoisted sibling used by npm workspaces and global installs. This
|
|
20
|
+
// also prevents a stale npm-link-local dependency shadowing the workspace build.
|
|
21
|
+
const agentUrl = new URL("../../agent/dist/index.js", import.meta.url);
|
|
22
|
+
const kernelUrl = new URL("../../kernel/dist/index.js", import.meta.url);
|
|
23
|
+
const { buildRegistry, runAgentTask } = await import(
|
|
24
|
+
existsSync(agentUrl) ? agentUrl.href : "@hmharness/agent"
|
|
25
|
+
);
|
|
26
|
+
const { loadConfig, listProviders, homeDir } = await import(
|
|
27
|
+
existsSync(kernelUrl) ? kernelUrl.href : "@hmharness/kernel"
|
|
28
|
+
);
|
|
20
29
|
|
|
21
30
|
function fail(error) {
|
|
22
31
|
process.stderr.write(`${error instanceof Error ? error.message : String(error)}\n`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hmharness/codexhost-bridge",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"description": "Machine-readable hmharness bridge for CodexHost and other agent desktop hosts.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"test": "node --test test/*.test.mjs"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@hmharness/agent": "0.
|
|
19
|
-
"@hmharness/kernel": "0.
|
|
18
|
+
"@hmharness/agent": "0.6.2",
|
|
19
|
+
"@hmharness/kernel": "0.6.2"
|
|
20
20
|
},
|
|
21
21
|
"engines": {
|
|
22
22
|
"node": ">=22"
|
|
@@ -36,5 +36,8 @@
|
|
|
36
36
|
"directory": "packages/codexhost-bridge"
|
|
37
37
|
},
|
|
38
38
|
"homepage": "https://github.com/swsgbl/hmharness/tree/main/packages/codexhost-bridge",
|
|
39
|
-
"bugs": "https://github.com/swsgbl/hmharness/issues"
|
|
39
|
+
"bugs": "https://github.com/swsgbl/hmharness/issues",
|
|
40
|
+
"directories": {
|
|
41
|
+
"test": "test"
|
|
42
|
+
}
|
|
40
43
|
}
|