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 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
@@ -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
- const enter = spawnSync("tmux", ["send-keys", "-t", TMUX_TARGET, "Enter"]);
229
- if (enter.status !== 0) {
230
- return reject(new Error(`tmux send-keys: ${(enter.stderr ?? "").toString().trim()}`));
231
- }
232
- resolve();
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-coord-mcp",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "File-backed MCP server for coordinating multiple AI coding agents (Claude Code, Cursor, Cline, etc.) on the same machine.",
5
5
  "type": "module",
6
6
  "bin": {