fcp-python 0.1.0__tar.gz → 0.1.2__tar.gz
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.
- fcp_python-0.1.2/.claude-plugin/plugin.json +11 -0
- fcp_python-0.1.2/.mcp.json +8 -0
- {fcp_python-0.1.0 → fcp_python-0.1.2}/PKG-INFO +1 -1
- {fcp_python-0.1.0 → fcp_python-0.1.2}/pyproject.toml +1 -1
- {fcp_python-0.1.0 → fcp_python-0.1.2}/src/fcp_python/bridge.py +13 -12
- {fcp_python-0.1.0 → fcp_python-0.1.2}/tests/test_bridge.py +16 -3
- {fcp_python-0.1.0 → fcp_python-0.1.2}/uv.lock +1 -1
- {fcp_python-0.1.0 → fcp_python-0.1.2}/.github/workflows/ci.yml +0 -0
- {fcp_python-0.1.0 → fcp_python-0.1.2}/.github/workflows/release.yml +0 -0
- {fcp_python-0.1.0 → fcp_python-0.1.2}/CLAUDE.md +0 -0
- {fcp_python-0.1.0 → fcp_python-0.1.2}/Makefile +0 -0
- {fcp_python-0.1.0 → fcp_python-0.1.2}/README.md +0 -0
- {fcp_python-0.1.0 → fcp_python-0.1.2}/src/fcp_python/__init__.py +0 -0
- {fcp_python-0.1.0 → fcp_python-0.1.2}/src/fcp_python/domain/__init__.py +0 -0
- {fcp_python-0.1.0 → fcp_python-0.1.2}/src/fcp_python/domain/format.py +0 -0
- {fcp_python-0.1.0 → fcp_python-0.1.2}/src/fcp_python/domain/model.py +0 -0
- {fcp_python-0.1.0 → fcp_python-0.1.2}/src/fcp_python/domain/mutation.py +0 -0
- {fcp_python-0.1.0 → fcp_python-0.1.2}/src/fcp_python/domain/query.py +0 -0
- {fcp_python-0.1.0 → fcp_python-0.1.2}/src/fcp_python/domain/verbs.py +0 -0
- {fcp_python-0.1.0 → fcp_python-0.1.2}/src/fcp_python/lsp/__init__.py +0 -0
- {fcp_python-0.1.0 → fcp_python-0.1.2}/src/fcp_python/lsp/client.py +0 -0
- {fcp_python-0.1.0 → fcp_python-0.1.2}/src/fcp_python/lsp/lifecycle.py +0 -0
- {fcp_python-0.1.0 → fcp_python-0.1.2}/src/fcp_python/lsp/transport.py +0 -0
- {fcp_python-0.1.0 → fcp_python-0.1.2}/src/fcp_python/lsp/types.py +0 -0
- {fcp_python-0.1.0 → fcp_python-0.1.2}/src/fcp_python/lsp/workspace_edit.py +0 -0
- {fcp_python-0.1.0 → fcp_python-0.1.2}/src/fcp_python/main.py +0 -0
- {fcp_python-0.1.0 → fcp_python-0.1.2}/src/fcp_python/resolver/__init__.py +0 -0
- {fcp_python-0.1.0 → fcp_python-0.1.2}/src/fcp_python/resolver/index.py +0 -0
- {fcp_python-0.1.0 → fcp_python-0.1.2}/src/fcp_python/resolver/pipeline.py +0 -0
- {fcp_python-0.1.0 → fcp_python-0.1.2}/src/fcp_python/resolver/selectors.py +0 -0
- {fcp_python-0.1.0 → fcp_python-0.1.2}/tests/__init__.py +0 -0
- {fcp_python-0.1.0 → fcp_python-0.1.2}/tests/test_client.py +0 -0
- {fcp_python-0.1.0 → fcp_python-0.1.2}/tests/test_format.py +0 -0
- {fcp_python-0.1.0 → fcp_python-0.1.2}/tests/test_index.py +0 -0
- {fcp_python-0.1.0 → fcp_python-0.1.2}/tests/test_lifecycle.py +0 -0
- {fcp_python-0.1.0 → fcp_python-0.1.2}/tests/test_model.py +0 -0
- {fcp_python-0.1.0 → fcp_python-0.1.2}/tests/test_mutation.py +0 -0
- {fcp_python-0.1.0 → fcp_python-0.1.2}/tests/test_pipeline.py +0 -0
- {fcp_python-0.1.0 → fcp_python-0.1.2}/tests/test_query.py +0 -0
- {fcp_python-0.1.0 → fcp_python-0.1.2}/tests/test_selectors.py +0 -0
- {fcp_python-0.1.0 → fcp_python-0.1.2}/tests/test_transport.py +0 -0
- {fcp_python-0.1.0 → fcp_python-0.1.2}/tests/test_types.py +0 -0
- {fcp_python-0.1.0 → fcp_python-0.1.2}/tests/test_verbs.py +0 -0
- {fcp_python-0.1.0 → fcp_python-0.1.2}/tests/test_workspace_edit.py +0 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "fcp-python",
|
|
3
|
+
"description": "Query and refactor Python codebases through intent-level commands",
|
|
4
|
+
"version": "0.1.2",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": {
|
|
7
|
+
"name": "Scott Meyer"
|
|
8
|
+
},
|
|
9
|
+
"repository": "https://github.com/aetherwing-io/fcp-python",
|
|
10
|
+
"keywords": ["python", "pylsp", "refactoring", "code-intelligence", "mcp"]
|
|
11
|
+
}
|
|
@@ -100,22 +100,23 @@ def _bridge_thread(
|
|
|
100
100
|
|
|
101
101
|
|
|
102
102
|
def _discover_socket() -> str | None:
|
|
103
|
-
"""Find daemon socket path.
|
|
104
|
-
|
|
103
|
+
"""Find daemon socket path.
|
|
104
|
+
|
|
105
|
+
Matches slipstream-core's default_socket_path():
|
|
106
|
+
SLIPSTREAM_SOCKET || {XDG_RUNTIME_DIR || TMPDIR || /tmp}/slipstream.sock
|
|
107
|
+
"""
|
|
108
|
+
# 1. SLIPSTREAM_SOCKET env var (set by daemon when it spawns plugins)
|
|
105
109
|
path = os.environ.get("SLIPSTREAM_SOCKET")
|
|
106
110
|
if path and os.path.exists(path):
|
|
107
111
|
return path
|
|
108
112
|
|
|
109
|
-
# 2.
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
# 3. /tmp/slipstream-{uid}/daemon.sock
|
|
117
|
-
uid = os.getuid()
|
|
118
|
-
path = f"/tmp/slipstream-{uid}/daemon.sock"
|
|
113
|
+
# 2. Default path: {runtime_dir}/slipstream.sock
|
|
114
|
+
runtime_dir = (
|
|
115
|
+
os.environ.get("XDG_RUNTIME_DIR")
|
|
116
|
+
or os.environ.get("TMPDIR")
|
|
117
|
+
or "/tmp"
|
|
118
|
+
)
|
|
119
|
+
path = os.path.join(runtime_dir, "slipstream.sock")
|
|
119
120
|
if os.path.exists(path):
|
|
120
121
|
return path
|
|
121
122
|
|
|
@@ -36,13 +36,26 @@ class TestDiscoverSocket:
|
|
|
36
36
|
os.environ.update(orig)
|
|
37
37
|
|
|
38
38
|
def test_xdg_runtime_dir(self, tmp_path):
|
|
39
|
-
|
|
40
|
-
ss_dir.mkdir()
|
|
41
|
-
sock = ss_dir / "daemon.sock"
|
|
39
|
+
sock = tmp_path / "slipstream.sock"
|
|
42
40
|
sock.touch()
|
|
43
41
|
orig = os.environ.copy()
|
|
44
42
|
os.environ.pop("SLIPSTREAM_SOCKET", None)
|
|
45
43
|
os.environ["XDG_RUNTIME_DIR"] = str(tmp_path)
|
|
44
|
+
os.environ.pop("TMPDIR", None)
|
|
45
|
+
try:
|
|
46
|
+
result = _discover_socket()
|
|
47
|
+
assert result == str(sock)
|
|
48
|
+
finally:
|
|
49
|
+
os.environ.clear()
|
|
50
|
+
os.environ.update(orig)
|
|
51
|
+
|
|
52
|
+
def test_tmpdir_fallback(self, tmp_path):
|
|
53
|
+
sock = tmp_path / "slipstream.sock"
|
|
54
|
+
sock.touch()
|
|
55
|
+
orig = os.environ.copy()
|
|
56
|
+
os.environ.pop("SLIPSTREAM_SOCKET", None)
|
|
57
|
+
os.environ.pop("XDG_RUNTIME_DIR", None)
|
|
58
|
+
os.environ["TMPDIR"] = str(tmp_path)
|
|
46
59
|
try:
|
|
47
60
|
result = _discover_socket()
|
|
48
61
|
assert result == str(sock)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|