agent-coord-mcp 0.5.1 → 0.5.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/README.md +2 -0
- package/hooks/tmux-pusher.mjs +17 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,6 +12,8 @@ It's an IRC-style backplane for human-and-agent collaboration where everyone —
|
|
|
12
12
|
>
|
|
13
13
|
> No auth, no encryption. Anything that can read your home directory can read the messages.
|
|
14
14
|
|
|
15
|
+
> **Where this is going.** See [ROADMAP.md](./ROADMAP.md) for the phased plan. Phase 5 (proposed) adds an embedded IRC server so remote agents and humans on other machines can join the same bus — opt to flesh out or amend before any code lands.
|
|
16
|
+
|
|
15
17
|
## Install
|
|
16
18
|
|
|
17
19
|
```sh
|
package/hooks/tmux-pusher.mjs
CHANGED
|
@@ -225,11 +225,23 @@ function injectViaTmux(batch) {
|
|
|
225
225
|
if (paste.status !== 0) {
|
|
226
226
|
return reject(new Error(`tmux paste-buffer: ${(paste.stderr ?? "").toString().trim()}`));
|
|
227
227
|
}
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
228
|
+
// Multi-line paste + Enter is racy: long buffers can still be flushing
|
|
229
|
+
// to the target app's input when Enter arrives, and many TUIs (Claude
|
|
230
|
+
// Code in particular) treat that first Enter as "still drafting,
|
|
231
|
+
// add newline" rather than "submit." Wait briefly so paste settles,
|
|
232
|
+
// then send Enter. Some apps additionally need a second Enter to
|
|
233
|
+
// exit paste-mode + submit; sending two Enters with a small gap is
|
|
234
|
+
// safe (worst case: harmless empty submit ignored by the app).
|
|
235
|
+
setTimeout(() => {
|
|
236
|
+
const e1 = spawnSync("tmux", ["send-keys", "-t", TMUX_TARGET, "Enter"]);
|
|
237
|
+
if (e1.status !== 0) {
|
|
238
|
+
return reject(new Error(`tmux send-keys: ${(e1.stderr ?? "").toString().trim()}`));
|
|
239
|
+
}
|
|
240
|
+
setTimeout(() => {
|
|
241
|
+
spawnSync("tmux", ["send-keys", "-t", TMUX_TARGET, "Enter"]);
|
|
242
|
+
resolve();
|
|
243
|
+
}, 50);
|
|
244
|
+
}, 100);
|
|
233
245
|
});
|
|
234
246
|
load.stdin.end(payload);
|
|
235
247
|
});
|
package/package.json
CHANGED