agent-comms 1.0.4 → 1.0.6
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/README.md +11 -4
- package/package.json +2 -3
- package/bin.js +0 -29
package/README.md
CHANGED
|
@@ -19,9 +19,16 @@ Every operation is a file read/write. A bridge translates file changes into its
|
|
|
19
19
|
## Install
|
|
20
20
|
|
|
21
21
|
```bash
|
|
22
|
-
npx
|
|
23
|
-
npx
|
|
24
|
-
npx
|
|
22
|
+
npx agent-comms # auto-detect harnesses and configure
|
|
23
|
+
npx agent-comms status # check current configuration
|
|
24
|
+
npx agent-comms remove # undo configuration
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Or install as a dependency:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
npm install agent-comms
|
|
31
|
+
pnpm add agent-comms
|
|
25
32
|
```
|
|
26
33
|
|
|
27
34
|
Or clone and run manually:
|
|
@@ -43,7 +50,7 @@ A bridge is two things:
|
|
|
43
50
|
Core provides shared helpers so each bridge only implements those two things:
|
|
44
51
|
|
|
45
52
|
```typescript
|
|
46
|
-
import { BusStore, BusTool, buildAction, ensureRegistered, drainAndFormat } from "agent-comms
|
|
53
|
+
import { BusStore, BusTool, buildAction, ensureRegistered, drainAndFormat } from "agent-comms";
|
|
47
54
|
|
|
48
55
|
const store = new BusStore();
|
|
49
56
|
const tool = new BusTool(store);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-comms",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
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,
|
|
@@ -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
|
-
}
|