agent-comms 1.0.5 → 1.0.7
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/cli.js +1 -0
- package/package.json +3 -4
- package/bin.js +0 -29
package/dist/cli.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-comms",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"description": "Cross-harness agent communication bus — filesystem-based rooms, DMs, and presence for LLM agents",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"packageManager": "pnpm@10.33.0",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"dist"
|
|
35
35
|
],
|
|
36
36
|
"bin": {
|
|
37
|
-
"agent-comms": "
|
|
37
|
+
"agent-comms": "dist/cli.js"
|
|
38
38
|
},
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"provenance": true,
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"prepare": "husky",
|
|
45
|
-
"build": "tsc",
|
|
45
|
+
"build": "tsc && printf '#!/usr/bin/env node\n' | cat - dist/cli.js > dist/cli.tmp && mv dist/cli.tmp dist/cli.js",
|
|
46
46
|
"lint": "eslint .",
|
|
47
47
|
"test": "node --test dist/test/**/*.test.js",
|
|
48
48
|
"typecheck": "tsc --noEmit"
|
|
@@ -64,7 +64,6 @@
|
|
|
64
64
|
"eslint-config-prettier": "10.1.8",
|
|
65
65
|
"eslint-plugin-prettier": "5.5.5",
|
|
66
66
|
"husky": "9.1.7",
|
|
67
|
-
"jiti": "2.6.1",
|
|
68
67
|
"prettier": "3.8.3",
|
|
69
68
|
"semantic-release": "25.0.3",
|
|
70
69
|
"tsx": "^4.21.0",
|
package/bin.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// Shim: Node.js refuses to type-strip .ts files inside node_modules/.
|
|
3
|
-
// Copy the real CLI to a temp dir and execute it from there.
|
|
4
|
-
import { dirname, join, basename } from "node:path";
|
|
5
|
-
import { fileURLToPath } from "node:url";
|
|
6
|
-
import { execFileSync } from "node:child_process";
|
|
7
|
-
import { cpSync, mkdirSync, rmSync } from "node:fs";
|
|
8
|
-
import { tmpdir } from "node:os";
|
|
9
|
-
|
|
10
|
-
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
11
|
-
const srcDir = join(__dirname, "src");
|
|
12
|
-
const tmpDir = join(tmpdir(), `agent-comms-${process.pid}`);
|
|
13
|
-
|
|
14
|
-
// Copy src/ to temp location so Node can type-strip it
|
|
15
|
-
mkdirSync(tmpDir, { recursive: true });
|
|
16
|
-
cpSync(srcDir, join(tmpDir, "src"), { recursive: true });
|
|
17
|
-
|
|
18
|
-
const script = join(tmpDir, "src", "cli.ts");
|
|
19
|
-
|
|
20
|
-
try {
|
|
21
|
-
execFileSync(process.execPath, [script, ...process.argv.slice(2)], {
|
|
22
|
-
stdio: "inherit",
|
|
23
|
-
});
|
|
24
|
-
} catch (e) {
|
|
25
|
-
if (e && typeof e === "object" && "status" in e) process.exit(e.status);
|
|
26
|
-
throw e;
|
|
27
|
-
} finally {
|
|
28
|
-
rmSync(tmpDir, { recursive: true, force: true });
|
|
29
|
-
}
|