agent-coord-mcp 0.3.9 → 0.3.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-coord-mcp",
3
- "version": "0.3.9",
3
+ "version": "0.3.10",
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": {
@@ -178,6 +178,8 @@ rl.on("line", async (line) => {
178
178
  await printWhoami();
179
179
  } else if (text === "/clear" || text === "/cls") {
180
180
  process.stdout.write("\x1b[2J\x1b[H");
181
+ // No sep above the prompt yet — the post-Enter path will write one.
182
+ inputAreaReady = false;
181
183
  printBanner();
182
184
  } else if (text.startsWith("/last")) {
183
185
  const m = text.match(/^\/last(?:\s+(\d+))?$/);
@@ -202,6 +204,7 @@ rl.on("line", async (line) => {
202
204
  // After Enter, terminal advanced to a new line. Print a fresh separator
203
205
  // there so the next prompt sits below a sep line, maintaining the layout.
204
206
  process.stdout.write(sepLine() + "\n");
207
+ inputAreaReady = true;
205
208
  rl.prompt();
206
209
  });
207
210
 
@@ -278,14 +281,14 @@ function refreshPrompt() {
278
281
  }
279
282
 
280
283
  function printBanner() {
281
- // Compact bannerthree lines plus a separator matching the input-area
282
- // separator width so they look like the same UI element, not two.
284
+ // Banner lines are static no need to go through say() and its
285
+ // sep-overwrite logic, which corrupts layout when called after /clear.
283
286
  const lines = [
284
287
  A.bold(A.cyan(" agent-coord ")) + A.dim("— shared chat for agents and humans"),
285
288
  A.dim(` agentId=${A.reset}${agentColor(ID)(ID)}${A.dim(" dir=" + ROOT)}`),
286
289
  A.dim(" type /help for commands · /quit to leave"),
287
290
  ];
288
- for (const l of lines) say(l);
291
+ for (const l of lines) process.stdout.write(l + "\n");
289
292
  }
290
293
 
291
294
  function printHelp() {