code-analysis-client 1.6.216__tar.gz → 1.6.218__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.
Files changed (28) hide show
  1. {code_analysis_client-1.6.216 → code_analysis_client-1.6.218}/PKG-INFO +5 -5
  2. {code_analysis_client-1.6.216 → code_analysis_client-1.6.218}/README.md +4 -4
  3. {code_analysis_client-1.6.216 → code_analysis_client-1.6.218}/code_analysis_client/config.py +23 -0
  4. code_analysis_client-1.6.218/code_analysis_client/version.txt +1 -0
  5. {code_analysis_client-1.6.216 → code_analysis_client-1.6.218}/code_analysis_client.egg-info/PKG-INFO +5 -5
  6. code_analysis_client-1.6.216/code_analysis_client/version.txt +0 -1
  7. {code_analysis_client-1.6.216 → code_analysis_client-1.6.218}/code_analysis_client/__init__.py +0 -0
  8. {code_analysis_client-1.6.216 → code_analysis_client-1.6.218}/code_analysis_client/check_chain.py +0 -0
  9. {code_analysis_client-1.6.216 → code_analysis_client-1.6.218}/code_analysis_client/client.py +0 -0
  10. {code_analysis_client-1.6.216 → code_analysis_client-1.6.218}/code_analysis_client/commands_proxy.py +0 -0
  11. {code_analysis_client-1.6.216 → code_analysis_client-1.6.218}/code_analysis_client/exceptions.py +0 -0
  12. {code_analysis_client-1.6.216 → code_analysis_client-1.6.218}/code_analysis_client/file_session.py +0 -0
  13. {code_analysis_client-1.6.216 → code_analysis_client-1.6.218}/code_analysis_client/py.typed +0 -0
  14. {code_analysis_client-1.6.216 → code_analysis_client-1.6.218}/code_analysis_client/queue_wait.py +0 -0
  15. {code_analysis_client-1.6.216 → code_analysis_client-1.6.218}/code_analysis_client/responses.py +0 -0
  16. {code_analysis_client-1.6.216 → code_analysis_client-1.6.218}/code_analysis_client/schema_disk_cache.py +0 -0
  17. {code_analysis_client-1.6.216 → code_analysis_client-1.6.218}/code_analysis_client/server_api.py +0 -0
  18. {code_analysis_client-1.6.216 → code_analysis_client-1.6.218}/code_analysis_client/server_schema.py +0 -0
  19. {code_analysis_client-1.6.216 → code_analysis_client-1.6.218}/code_analysis_client/universal_file.py +0 -0
  20. {code_analysis_client-1.6.216 → code_analysis_client-1.6.218}/code_analysis_client/validation.py +0 -0
  21. {code_analysis_client-1.6.216 → code_analysis_client-1.6.218}/code_analysis_client/vectorizer_state.py +0 -0
  22. {code_analysis_client-1.6.216 → code_analysis_client-1.6.218}/code_analysis_client/worktree.py +0 -0
  23. {code_analysis_client-1.6.216 → code_analysis_client-1.6.218}/code_analysis_client.egg-info/SOURCES.txt +0 -0
  24. {code_analysis_client-1.6.216 → code_analysis_client-1.6.218}/code_analysis_client.egg-info/dependency_links.txt +0 -0
  25. {code_analysis_client-1.6.216 → code_analysis_client-1.6.218}/code_analysis_client.egg-info/requires.txt +0 -0
  26. {code_analysis_client-1.6.216 → code_analysis_client-1.6.218}/code_analysis_client.egg-info/top_level.txt +0 -0
  27. {code_analysis_client-1.6.216 → code_analysis_client-1.6.218}/pyproject.toml +0 -0
  28. {code_analysis_client-1.6.216 → code_analysis_client-1.6.218}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: code-analysis-client
3
- Version: 1.6.216
3
+ Version: 1.6.218
4
4
  Summary: Async JSON-RPC client for the code-analysis MCP server (mcp-proxy-adapter JsonRpcClient)
5
5
  Author-email: Vasiliy Zdanovskiy <vasilyvz@gmail.com>
6
6
  Requires-Python: >=3.10
@@ -162,7 +162,7 @@ pytest tests/test_client_server_api_sync.py tests/test_code_analysis_client.py -
162
162
  ```
163
163
 
164
164
  Package version is in the root ``pyproject.toml``; before a client wheel build run
165
- ``python scripts/sync_code_analysis_client_version.py`` (also done by ``release_build.sh``).
165
+ ``python scripts/sync_code_analysis_client_version.py`` (``./build.sh <VERSION>`` does it as its bump step).
166
166
 
167
167
  ## Examples (this repository)
168
168
 
@@ -197,9 +197,9 @@ pytest tests/test_code_analysis_client.py
197
197
 
198
198
  The client wheel version is read from ``client/code_analysis_client/version.txt``.
199
199
  That file must match ``[project].version`` in the **repository root**
200
- ``pyproject.toml``. Sync before build:
200
+ ``pyproject.toml``. The client is published only by the repository release script,
201
+ together with the server image (same version, already-published versions fail):
201
202
 
202
203
  ```bash
203
- python scripts/sync_code_analysis_client_version.py
204
- cd client && python -m build && twine check dist/* && twine upload dist/*
204
+ ./build.sh <VERSION>
205
205
  ```
@@ -150,7 +150,7 @@ pytest tests/test_client_server_api_sync.py tests/test_code_analysis_client.py -
150
150
  ```
151
151
 
152
152
  Package version is in the root ``pyproject.toml``; before a client wheel build run
153
- ``python scripts/sync_code_analysis_client_version.py`` (also done by ``release_build.sh``).
153
+ ``python scripts/sync_code_analysis_client_version.py`` (``./build.sh <VERSION>`` does it as its bump step).
154
154
 
155
155
  ## Examples (this repository)
156
156
 
@@ -185,9 +185,9 @@ pytest tests/test_code_analysis_client.py
185
185
 
186
186
  The client wheel version is read from ``client/code_analysis_client/version.txt``.
187
187
  That file must match ``[project].version`` in the **repository root**
188
- ``pyproject.toml``. Sync before build:
188
+ ``pyproject.toml``. The client is published only by the repository release script,
189
+ together with the server image (same version, already-published versions fail):
189
190
 
190
191
  ```bash
191
- python scripts/sync_code_analysis_client_version.py
192
- cd client && python -m build && twine check dist/* && twine upload dist/*
192
+ ./build.sh <VERSION>
193
193
  ```
@@ -8,9 +8,32 @@ email: vasilyvz@gmail.com
8
8
  from __future__ import annotations
9
9
 
10
10
  import json
11
+ import os
11
12
  from pathlib import Path
12
13
  from typing import Any, Mapping
13
14
 
15
+ CANONICAL_CONFIG_PATH = Path("/etc/casmgr/config.json")
16
+
17
+
18
+ def resolve_config_path(explicit: str | Path | None = None) -> Path:
19
+ """Return the server config path: explicit, then ``CASMGR_CONFIG``, then ``/etc/casmgr/config.json``.
20
+
21
+ Never falls back to the current working directory.
22
+
23
+ Raises:
24
+ FileNotFoundError: when no explicit path, no ``CASMGR_CONFIG`` and no ``/etc/casmgr/config.json``.
25
+ """
26
+ if explicit is not None and str(explicit).strip():
27
+ return Path(str(explicit)).expanduser().resolve()
28
+ env_value = os.environ.get("CASMGR_CONFIG", "").strip()
29
+ if env_value:
30
+ return Path(env_value).expanduser().resolve()
31
+ if CANONICAL_CONFIG_PATH.is_file():
32
+ return CANONICAL_CONFIG_PATH
33
+ raise FileNotFoundError(
34
+ "no server config found: pass a path, set CASMGR_CONFIG, or install /etc/casmgr/config.json"
35
+ )
36
+
14
37
 
15
38
  def _expand_path(value: Any) -> str | None:
16
39
  """Expand a non-empty filesystem path value to an absolute string."""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: code-analysis-client
3
- Version: 1.6.216
3
+ Version: 1.6.218
4
4
  Summary: Async JSON-RPC client for the code-analysis MCP server (mcp-proxy-adapter JsonRpcClient)
5
5
  Author-email: Vasiliy Zdanovskiy <vasilyvz@gmail.com>
6
6
  Requires-Python: >=3.10
@@ -162,7 +162,7 @@ pytest tests/test_client_server_api_sync.py tests/test_code_analysis_client.py -
162
162
  ```
163
163
 
164
164
  Package version is in the root ``pyproject.toml``; before a client wheel build run
165
- ``python scripts/sync_code_analysis_client_version.py`` (also done by ``release_build.sh``).
165
+ ``python scripts/sync_code_analysis_client_version.py`` (``./build.sh <VERSION>`` does it as its bump step).
166
166
 
167
167
  ## Examples (this repository)
168
168
 
@@ -197,9 +197,9 @@ pytest tests/test_code_analysis_client.py
197
197
 
198
198
  The client wheel version is read from ``client/code_analysis_client/version.txt``.
199
199
  That file must match ``[project].version`` in the **repository root**
200
- ``pyproject.toml``. Sync before build:
200
+ ``pyproject.toml``. The client is published only by the repository release script,
201
+ together with the server image (same version, already-published versions fail):
201
202
 
202
203
  ```bash
203
- python scripts/sync_code_analysis_client_version.py
204
- cd client && python -m build && twine check dist/* && twine upload dist/*
204
+ ./build.sh <VERSION>
205
205
  ```