patchcord 0.3.19 → 0.3.20
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/.claude-plugin/plugin.json +1 -1
- package/bin/patchcord.mjs +22 -19
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "patchcord",
|
|
3
3
|
"description": "Cross-machine agent messaging with auto-inbox checking. Agents automatically respond to messages from other agents without human intervention.",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.20",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "ppravdin"
|
|
7
7
|
},
|
package/bin/patchcord.mjs
CHANGED
|
@@ -17,16 +17,15 @@ function run(cmd) {
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
if (
|
|
21
|
-
console.log(`patchcord — agent messaging for
|
|
20
|
+
if (cmd === "help" || cmd === "--help" || cmd === "-h") {
|
|
21
|
+
console.log(`patchcord — agent messaging for AI coding agents
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
patchcord
|
|
25
|
-
patchcord
|
|
26
|
-
patchcord
|
|
27
|
-
patchcord skill apply Fetch custom skill from web console
|
|
23
|
+
Usage:
|
|
24
|
+
npx patchcord@latest Full setup (global + project) — run in your project folder
|
|
25
|
+
npx patchcord@latest --full Same + full statusline (model, context%, git)
|
|
26
|
+
npx patchcord@latest skill apply Fetch custom skill from web console
|
|
28
27
|
|
|
29
|
-
|
|
28
|
+
That's it. One command does everything.`);
|
|
30
29
|
process.exit(0);
|
|
31
30
|
}
|
|
32
31
|
|
|
@@ -35,8 +34,8 @@ if (cmd === "plugin-path") {
|
|
|
35
34
|
process.exit(0);
|
|
36
35
|
}
|
|
37
36
|
|
|
38
|
-
// ──
|
|
39
|
-
if (cmd === "install") {
|
|
37
|
+
// ── main flow: global setup + project setup (or just install/agent for back-compat) ──
|
|
38
|
+
if (!cmd || cmd === "install" || cmd === "agent") {
|
|
40
39
|
const flags = process.argv.slice(3);
|
|
41
40
|
const fullStatusline = flags.includes("--full");
|
|
42
41
|
const { readFileSync, writeFileSync } = await import("fs");
|
|
@@ -135,16 +134,8 @@ Then run: npx patchcord@latest install`);
|
|
|
135
134
|
process.exit(1);
|
|
136
135
|
}
|
|
137
136
|
|
|
138
|
-
|
|
139
|
-
console.log(`Next: cd into your project and run:`);
|
|
140
|
-
console.log(` npx patchcord@latest agent`);
|
|
141
|
-
process.exit(0);
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
// ── agent: per-project interactive setup ──────────────────────
|
|
145
|
-
if (cmd === "agent") {
|
|
137
|
+
// ── project setup (inline, not a separate command) ──────────
|
|
146
138
|
const cwd = process.cwd();
|
|
147
|
-
const { readFileSync, writeFileSync } = await import("fs");
|
|
148
139
|
const { createInterface } = await import("readline");
|
|
149
140
|
|
|
150
141
|
const rl = createInterface({ input: process.stdin, output: process.stdout });
|
|
@@ -158,6 +149,15 @@ if (cmd === "agent") {
|
|
|
158
149
|
const bold = "\x1b[1m";
|
|
159
150
|
const r = "\x1b[0m";
|
|
160
151
|
|
|
152
|
+
// Project directory confirmation
|
|
153
|
+
console.log(`\n${dim}Project folder:${r} ${bold}${cwd}${r}`);
|
|
154
|
+
console.log(`${dim}Patchcord config will be created here. Run this in your project folder.${r}`);
|
|
155
|
+
const proceed = (await ask(`\n${dim}Continue? (Y/n):${r} `)).trim().toLowerCase();
|
|
156
|
+
if (proceed === "n" || proceed === "no") {
|
|
157
|
+
rl.close();
|
|
158
|
+
process.exit(0);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
161
|
console.log(`\n${bold}Which tool are you setting up?${r}\n`);
|
|
162
162
|
console.log(` ${cyan}1.${r} Claude Code`);
|
|
163
163
|
console.log(` ${cyan}2.${r} Codex CLI`);
|
|
@@ -245,6 +245,9 @@ if (cmd === "agent") {
|
|
|
245
245
|
let identity = "";
|
|
246
246
|
let serverUrl = "https://mcp.patchcord.dev";
|
|
247
247
|
|
|
248
|
+
console.log(`\n${dim}Get your token at:${r} ${cyan}https://patchcord.dev/console${r}`);
|
|
249
|
+
console.log(`${dim}Create a project → Add agent → Copy token${r}`);
|
|
250
|
+
|
|
248
251
|
while (!identity) {
|
|
249
252
|
token = (await ask(`\n${bold}Paste your agent token:${r} `)).trim();
|
|
250
253
|
|