patchcord 0.3.73 → 0.3.75

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/bin/patchcord.mjs CHANGED
@@ -828,6 +828,15 @@ if (!cmd || cmd === "install" || cmd === "agent" || cmd === "--token" || cmd ===
828
828
  writeFileSync(mcpPath, JSON.stringify(mcpConfig, null, 2) + "\n");
829
829
  }
830
830
  console.log(`\n ${green}✓${r} Claude Code configured: ${dim}${mcpPath}${r}`);
831
+
832
+ // Enable patchcord statusline (agent identity + inbox count in status bar)
833
+ try {
834
+ const enableScript = join(pluginRoot, "scripts", "enable-statusline.sh");
835
+ if (existsSync(enableScript)) {
836
+ execSync(`bash "${enableScript}" --full`, { stdio: "ignore" });
837
+ console.log(` ${green}✓${r} Statusline enabled`);
838
+ }
839
+ } catch {}
831
840
  }
832
841
 
833
842
  // Warn about gitignore for per-project configs with tokens
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "patchcord",
3
- "version": "0.3.73",
3
+ "version": "0.3.75",
4
4
  "description": "Cross-machine agent messaging for Claude Code and Codex",
5
5
  "author": "ppravdin",
6
6
  "license": "MIT",
@@ -55,7 +55,8 @@ if [ -n "$mcp_json" ]; then
55
55
  mcp_url=$(jq -r '.mcpServers.patchcord.url // empty' "$mcp_json" 2>/dev/null || true)
56
56
  mcp_auth=$(jq -r '.mcpServers.patchcord.headers.Authorization // empty' "$mcp_json" 2>/dev/null || true)
57
57
  if [ -n "$mcp_url" ] && [ -n "$mcp_auth" ]; then
58
- pc_url="${mcp_url%/mcp}"
58
+ pc_url="${mcp_url%/mcp/bearer}"
59
+ pc_url="${pc_url%/mcp}"
59
60
  pc_token="${mcp_auth#Bearer }"
60
61
  fi
61
62
  fi
@@ -132,7 +133,7 @@ fi
132
133
  line=""
133
134
 
134
135
  if $FULL; then
135
- model_name=$(echo "$input" | jq -r '.model.display_name // "Claude"')
136
+ model_name=$(echo "$input" | jq -r 'if .model | type == "object" then .model.display_name // "Claude" elif .model | type == "string" then .model else "Claude" end' 2>/dev/null || echo "Claude")
136
137
 
137
138
  size=$(echo "$input" | jq -r '.context_window.context_window_size // 200000')
138
139
  [ "$size" -eq 0 ] 2>/dev/null && size=200000