patchcord 0.5.48 → 0.5.50

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.
Files changed (2) hide show
  1. package/bin/patchcord.mjs +17 -7
  2. package/package.json +1 -1
package/bin/patchcord.mjs CHANGED
@@ -12,6 +12,13 @@ const __dirname = dirname(fileURLToPath(import.meta.url));
12
12
  const pluginRoot = join(__dirname, "..");
13
13
  const cmd = process.argv[2];
14
14
 
15
+ if (cmd === "--version" || cmd === "-v") {
16
+ const { readFileSync: _rf } = await import("fs");
17
+ const { version } = JSON.parse(_rf(join(__dirname, "..", "package.json"), "utf-8"));
18
+ process.stdout.write(`${version}\n`);
19
+ process.exit(0);
20
+ }
21
+
15
22
  function run(cmd) {
16
23
  try {
17
24
  return execSync(cmd, { stdio: "pipe", encoding: "utf-8" }).trim();
@@ -63,13 +70,16 @@ if (cmd === "help" || cmd === "--help" || cmd === "-h") {
63
70
  console.log(`patchcord — agent messaging for AI coding agents
64
71
 
65
72
  Usage:
66
- npx patchcord@latest Setup via browser (patchcord.dev)
67
- npx patchcord@latest --token <token> Self-hosted / CI setup
68
- npx patchcord@latest --token <token> --server <url> Self-hosted with custom server
69
- npx patchcord@latest --full Same + full statusline
70
- npx patchcord@latest --rename <new-name> [--tool <slug>] Rename this agent (paste from dashboard)
71
- npx patchcord@latest subscribe Start the realtime listener (used by /patchcord:subscribe)
72
- npx patchcord@latest skill apply Fetch custom skill from web console`);
73
+ patchcord Setup via browser (patchcord.dev)
74
+ patchcord --token <token> Self-hosted / CI setup
75
+ patchcord --token <token> --server <url> Self-hosted with custom server
76
+ patchcord --full Same + full statusline
77
+ patchcord --rename <new-name> [--tool <slug>] Rename this agent (paste from dashboard)
78
+ patchcord subscribe Start the realtime listener
79
+ patchcord --version Show installed version
80
+ patchcord --help Show this help
81
+
82
+ First install: npx patchcord@latest`);
73
83
  process.exit(0);
74
84
  }
75
85
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "patchcord",
3
- "version": "0.5.48",
3
+ "version": "0.5.50",
4
4
  "description": "Cross-machine agent messaging for Claude Code and Codex",
5
5
  "author": "ppravdin",
6
6
  "license": "MIT",