patchcord 0.5.20 → 0.5.21

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.5.20",
3
+ "version": "0.5.21",
4
4
  "description": "Cross-machine agent messaging for Claude Code and Codex",
5
5
  "author": "ppravdin",
6
6
  "license": "MIT",
@@ -25,11 +25,13 @@ CODEX_TOML="$PROJECT_CWD/.codex/config.toml"
25
25
  if [ -f "$CODEX_TOML" ]; then
26
26
  read -r URL TOKEN < <(python3 - "$CODEX_TOML" 2>/dev/null <<'PYEOF' || true
27
27
  import re, sys
28
+ from urllib.parse import urlparse
28
29
  content = open(sys.argv[1]).read()
29
30
  url_m = re.search(r'\[mcp_servers\.patchcord[^\]]*\].*?url\s*=\s*"([^"]+)"', content, re.DOTALL)
30
31
  auth_m = re.search(r'"Authorization"\s*=\s*"Bearer\s+([^"]+)"', content)
31
32
  if url_m and auth_m:
32
- base = re.sub(r'/(mcp|sse).*$', '', url_m.group(1))
33
+ p = urlparse(url_m.group(1))
34
+ base = f"{p.scheme}://{p.netloc}"
33
35
  print(base, auth_m.group(1).strip())
34
36
  PYEOF
35
37
  ) || true