patchcord 0.6.7 → 0.6.8

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "patchcord",
3
3
  "description": "Cross-machine agent messaging. Messages from other agents land in the inbox and wake the agent to reply.",
4
- "version": "0.6.7",
4
+ "version": "0.6.8",
5
5
  "author": {
6
6
  "name": "ppravdin"
7
7
  },
package/bin/patchcord.mjs CHANGED
@@ -1961,7 +1961,7 @@ if (!cmd || cmd === "install" || cmd === "agent" || cmd?.startsWith("--")) {
1961
1961
  try { entries = readdirSync(geminiSkillsRoot, { withFileTypes: true }).filter((d) => d.isDirectory()).map((d) => d.name); } catch {}
1962
1962
  const found = entries.filter((n) => noisy.some((p) => n.includes(p)));
1963
1963
  if (found.length) {
1964
- console.log(` ${M.yellow}warning:${M.rst} ~/.gemini/skills has global skills (${found.join(", ")}) — agy-cli reads them in every folder and may hunt patchcord without MCP. Keep orchestrator/patchcord skills in ~/.claude/skills or per-project .agents/skills only.`);
1964
+ console.log(` ${yellow}warning:${r} ~/.gemini/skills has global skills (${found.join(", ")}) — agy-cli reads them in every folder and may hunt patchcord without MCP. Keep orchestrator/patchcord skills in ~/.claude/skills or per-project .agents/skills only.`);
1965
1965
  }
1966
1966
  }
1967
1967
  // true = configured, false = file absent (definitely not), null = unparseable (unknown)
@@ -2429,21 +2429,14 @@ if (!cmd || cmd === "install" || cmd === "agent" || cmd?.startsWith("--")) {
2429
2429
  const identityStr = existingIdentity ? ` (${bold}${existingIdentity}${r}${dim})` : "";
2430
2430
  console.log(`\n ${dim}${existingToolName} agent is already configured in this project${identityStr}${r}`);
2431
2431
 
2432
- if (rl) rl.close();
2433
- const { createInterface: createRLU } = await import("readline");
2434
- const rlU = createRLU({ input: process.stdin, output: process.stdout });
2435
- const askU = (q) => new Promise((resolve) => rlU.question(q, resolve));
2436
-
2437
2432
  // Q1: Add another agent? (most likely reason to re-run installer)
2438
- const addAnswer = (await askU(` ${bold}Add another agent to this project? (y/N):${r} `)).trim().toLowerCase();
2433
+ const addAnswer = (await ask(` ${bold}Add another agent to this project? (y/N):${r} `)).trim().toLowerCase();
2439
2434
  if (addAnswer === "y" || addAnswer === "yes") {
2440
- rlU.close();
2441
2435
  // Drop into browser connect flow — fresh setup for new agent
2442
2436
  token = "";
2443
2437
  } else {
2444
2438
  // Q2: Update existing agent?
2445
- const updateAnswer = (await askU(` ${bold}Update ${existingToolName} agent? (y/N):${r} `)).trim().toLowerCase();
2446
- rlU.close();
2439
+ const updateAnswer = (await ask(` ${bold}Update ${existingToolName} agent? (y/N):${r} `)).trim().toLowerCase();
2447
2440
  if (updateAnswer === "y" || updateAnswer === "yes") {
2448
2441
  token = existingToken;
2449
2442
  if (existingIdentity) {
@@ -2459,6 +2452,7 @@ if (!cmd || cmd === "install" || cmd === "agent" || cmd?.startsWith("--")) {
2459
2452
  } else {
2460
2453
  // Both N — skills already updated by global setup, done
2461
2454
  console.log(`\n ${dim}Skills updated.${r}`);
2455
+ rl.close();
2462
2456
  process.exit(0);
2463
2457
  }
2464
2458
  }
@@ -2466,7 +2460,7 @@ if (!cmd || cmd === "install" || cmd === "agent" || cmd?.startsWith("--")) {
2466
2460
 
2467
2461
  if (!token) {
2468
2462
  // Browser connect flow
2469
- if (rl) rl.close();
2463
+ rl.close();
2470
2464
 
2471
2465
  function canOpenBrowser() {
2472
2466
  if (process.env.SSH_CLIENT || process.env.SSH_TTY) return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "patchcord",
3
- "version": "0.6.7",
3
+ "version": "0.6.8",
4
4
  "description": "Cross-machine agent messaging for Claude Code and Codex",
5
5
  "scripts": {
6
6
  "version": "node scripts/sync-plugin-version.mjs && git add .claude-plugin/plugin.json"