patchcord 0.5.118 → 0.5.119

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,13 +1,10 @@
1
1
  {
2
2
  "name": "patchcord",
3
- "description": "Cross-machine agent messaging with push delivery. Messages from other agents arrive as native channel notifications.",
4
- "version": "0.5.14",
3
+ "description": "Cross-machine agent messaging. Messages from other agents arrive via inbox with Stop-hook wake-up.",
4
+ "version": "0.5.119",
5
5
  "author": {
6
6
  "name": "ppravdin"
7
7
  },
8
8
  "repository": "https://github.com/ppravdin/patchcord",
9
- "skills": "./skills/",
10
- "channel": {
11
- "server": "./channel/server.ts"
12
- }
9
+ "skills": "./skills/"
13
10
  }
package/package.json CHANGED
@@ -1,7 +1,10 @@
1
1
  {
2
2
  "name": "patchcord",
3
- "version": "0.5.118",
3
+ "version": "0.5.119",
4
4
  "description": "Cross-machine agent messaging for Claude Code and Codex",
5
+ "scripts": {
6
+ "version": "node scripts/sync-plugin-version.mjs && git add .claude-plugin/plugin.json"
7
+ },
5
8
  "author": "ppravdin",
6
9
  "license": "MIT",
7
10
  "repository": {
@@ -0,0 +1,24 @@
1
+ #!/usr/bin/env node
2
+ // Keep .claude-plugin/plugin.json's version in lockstep with package.json.
3
+ //
4
+ // Runs from the npm "version" lifecycle (see package.json scripts.version), so
5
+ // every `npm version <x>` rewrites the plugin manifest and stages it in the same
6
+ // commit. This prevents the drift that shipped a 0.5.14 manifest inside a 0.5.118
7
+ // package — which, combined with a manifest field pointing at an unshipped file,
8
+ // crashed every interactive Claude Code startup.
9
+ import { readFileSync, writeFileSync } from "node:fs";
10
+ import { fileURLToPath } from "node:url";
11
+ import { dirname, join } from "node:path";
12
+
13
+ const root = join(dirname(fileURLToPath(import.meta.url)), "..");
14
+ const pkg = JSON.parse(readFileSync(join(root, "package.json"), "utf8"));
15
+ const manifestPath = join(root, ".claude-plugin", "plugin.json");
16
+ const manifest = JSON.parse(readFileSync(manifestPath, "utf8"));
17
+
18
+ if (manifest.version === pkg.version) {
19
+ process.exit(0);
20
+ }
21
+
22
+ manifest.version = pkg.version;
23
+ writeFileSync(manifestPath, JSON.stringify(manifest, null, 2) + "\n");
24
+ process.stderr.write(`synced plugin.json version -> ${pkg.version}\n`);