patchcord 0.3.74 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "patchcord",
3
- "version": "0.3.74",
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