patchcord 0.2.9 → 0.3.0

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 with auto-inbox checking. Agents automatically respond to messages from other agents without human intervention.",
4
- "version": "0.2.9",
4
+ "version": "0.3.0",
5
5
  "author": {
6
6
  "name": "ppravdin"
7
7
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "patchcord",
3
- "version": "0.2.9",
3
+ "version": "0.3.0",
4
4
  "description": "Cross-machine agent messaging for Claude Code and Codex",
5
5
  "author": "ppravdin",
6
6
  "license": "MIT",
@@ -22,6 +22,26 @@ if [ "$STOP_ACTIVE" = "true" ]; then
22
22
  exit 0
23
23
  fi
24
24
 
25
+ # ── Update check (once per session, first run only) ───────────
26
+ UPDATE_FLAG="/tmp/patchcord_update_checked_$$"
27
+ if [ ! -f "$UPDATE_FLAG" ]; then
28
+ touch "$UPDATE_FLAG"
29
+ plugin_json="${CLAUDE_PLUGIN_ROOT:-.}/.claude-plugin/plugin.json"
30
+ if [ -f "$plugin_json" ]; then
31
+ installed_ver=$(jq -r '.version // ""' "$plugin_json" 2>/dev/null)
32
+ if [ -n "$installed_ver" ]; then
33
+ latest=$(npm view patchcord version --json 2>/dev/null | tr -d '"' || true)
34
+ if [ -n "$latest" ] && [ "$latest" != "$installed_ver" ]; then
35
+ jq -n --arg ver "$latest" '{
36
+ "decision": "block",
37
+ "reason": ("Patchcord plugin update available: v" + $ver + ". Run: npx patchcord@latest install")
38
+ }'
39
+ exit 0
40
+ fi
41
+ fi
42
+ fi
43
+ fi
44
+
25
45
  # Resolve config from project-scoped .mcp.json only.
26
46
  TOKEN=""
27
47
  URL=""