code-analysis-client-dev 1.6.396__tar.gz → 1.6.398__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.
- {code_analysis_client_dev-1.6.396 → code_analysis_client_dev-1.6.398}/PKG-INFO +1 -1
- {code_analysis_client_dev-1.6.396 → code_analysis_client_dev-1.6.398}/code_analysis_client/check_chain.py +17 -0
- code_analysis_client_dev-1.6.398/code_analysis_client/version.txt +1 -0
- {code_analysis_client_dev-1.6.396 → code_analysis_client_dev-1.6.398}/code_analysis_client_dev.egg-info/PKG-INFO +1 -1
- code_analysis_client_dev-1.6.396/code_analysis_client/version.txt +0 -1
- {code_analysis_client_dev-1.6.396 → code_analysis_client_dev-1.6.398}/README.md +0 -0
- {code_analysis_client_dev-1.6.396 → code_analysis_client_dev-1.6.398}/code_analysis_client/__init__.py +0 -0
- {code_analysis_client_dev-1.6.396 → code_analysis_client_dev-1.6.398}/code_analysis_client/client.py +0 -0
- {code_analysis_client_dev-1.6.396 → code_analysis_client_dev-1.6.398}/code_analysis_client/commands_proxy.py +0 -0
- {code_analysis_client_dev-1.6.396 → code_analysis_client_dev-1.6.398}/code_analysis_client/config.py +0 -0
- {code_analysis_client_dev-1.6.396 → code_analysis_client_dev-1.6.398}/code_analysis_client/exceptions.py +0 -0
- {code_analysis_client_dev-1.6.396 → code_analysis_client_dev-1.6.398}/code_analysis_client/file_session.py +0 -0
- {code_analysis_client_dev-1.6.396 → code_analysis_client_dev-1.6.398}/code_analysis_client/project.py +0 -0
- {code_analysis_client_dev-1.6.396 → code_analysis_client_dev-1.6.398}/code_analysis_client/py.typed +0 -0
- {code_analysis_client_dev-1.6.396 → code_analysis_client_dev-1.6.398}/code_analysis_client/queue_wait.py +0 -0
- {code_analysis_client_dev-1.6.396 → code_analysis_client_dev-1.6.398}/code_analysis_client/responses.py +0 -0
- {code_analysis_client_dev-1.6.396 → code_analysis_client_dev-1.6.398}/code_analysis_client/schema_disk_cache.py +0 -0
- {code_analysis_client_dev-1.6.396 → code_analysis_client_dev-1.6.398}/code_analysis_client/server_api.py +0 -0
- {code_analysis_client_dev-1.6.396 → code_analysis_client_dev-1.6.398}/code_analysis_client/server_schema.py +0 -0
- {code_analysis_client_dev-1.6.396 → code_analysis_client_dev-1.6.398}/code_analysis_client/symbol_tree.py +0 -0
- {code_analysis_client_dev-1.6.396 → code_analysis_client_dev-1.6.398}/code_analysis_client/universal_file.py +0 -0
- {code_analysis_client_dev-1.6.396 → code_analysis_client_dev-1.6.398}/code_analysis_client/validation.py +0 -0
- {code_analysis_client_dev-1.6.396 → code_analysis_client_dev-1.6.398}/code_analysis_client/vectorizer_state.py +0 -0
- {code_analysis_client_dev-1.6.396 → code_analysis_client_dev-1.6.398}/code_analysis_client/worktree.py +0 -0
- {code_analysis_client_dev-1.6.396 → code_analysis_client_dev-1.6.398}/code_analysis_client_dev.egg-info/SOURCES.txt +0 -0
- {code_analysis_client_dev-1.6.396 → code_analysis_client_dev-1.6.398}/code_analysis_client_dev.egg-info/dependency_links.txt +0 -0
- {code_analysis_client_dev-1.6.396 → code_analysis_client_dev-1.6.398}/code_analysis_client_dev.egg-info/requires.txt +0 -0
- {code_analysis_client_dev-1.6.396 → code_analysis_client_dev-1.6.398}/code_analysis_client_dev.egg-info/top_level.txt +0 -0
- {code_analysis_client_dev-1.6.396 → code_analysis_client_dev-1.6.398}/pyproject.toml +0 -0
- {code_analysis_client_dev-1.6.396 → code_analysis_client_dev-1.6.398}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: code-analysis-client-dev
|
|
3
|
-
Version: 1.6.
|
|
3
|
+
Version: 1.6.398
|
|
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
|
|
@@ -177,6 +177,10 @@ class FileCheckAndPromoteResult:
|
|
|
177
177
|
# Seconds spent waiting for the path lock and the project main lock
|
|
178
178
|
# ({path_waited_seconds, main_waited_seconds}); None from an older server.
|
|
179
179
|
lock_wait: Optional[Dict[str, float]] = None
|
|
180
|
+
# [DELETE-TEMP-AFTER-CHECK-20261126] the supplied flag and whether this call removed the
|
|
181
|
+
# documentation temporary copy; False from an older server.
|
|
182
|
+
delete_temp_after_check: bool = False
|
|
183
|
+
temp_copy_deleted: bool = False
|
|
180
184
|
|
|
181
185
|
|
|
182
186
|
def _error_parts(data: Dict[str, Any]) -> tuple[str, str, Dict[str, Any]]:
|
|
@@ -314,6 +318,7 @@ class CheckChainClient:
|
|
|
314
318
|
content: str,
|
|
315
319
|
*,
|
|
316
320
|
check_only: bool = False,
|
|
321
|
+
delete_temp_after_check: bool = False,
|
|
317
322
|
) -> FileCheckAndPromoteResult:
|
|
318
323
|
"""Write, check and promote one file through the editor's worktree.
|
|
319
324
|
|
|
@@ -321,6 +326,10 @@ class CheckChainClient:
|
|
|
321
326
|
successful results (``outcome`` / ``promoted``), never exceptions.
|
|
322
327
|
``check_only=True`` checks the file in a temporary worktree and promotes
|
|
323
328
|
nothing (``promoted`` False, ``commit`` None).
|
|
329
|
+
``delete_temp_after_check=True`` removes the documentation temporary copy of ``path``
|
|
330
|
+
(and its lock and record) right after the check, whatever the verdict; the result's
|
|
331
|
+
``temp_copy_deleted`` says whether it was removed (not on a failed write-back, an unsent
|
|
332
|
+
edit, a copy held by another session or an ordinary file).
|
|
324
333
|
Raises WorktreeConflictError on WORKTREE_SYNC_CONFLICT (with
|
|
325
334
|
``conflicts`` and ``preserved_locked_files``), CheckChainConfigInvalidError
|
|
326
335
|
for a malformed registry entry, and CheckChainError (``code`` from the
|
|
@@ -338,6 +347,10 @@ class CheckChainClient:
|
|
|
338
347
|
raise ClientValidationError("content must be a string", field="content")
|
|
339
348
|
if not isinstance(check_only, bool):
|
|
340
349
|
raise ClientValidationError("check_only must be a bool", field="check_only")
|
|
350
|
+
if not isinstance(delete_temp_after_check, bool):
|
|
351
|
+
raise ClientValidationError(
|
|
352
|
+
"delete_temp_after_check must be a bool", field="delete_temp_after_check"
|
|
353
|
+
)
|
|
341
354
|
params: Dict[str, Any] = {
|
|
342
355
|
"project_id": project_id,
|
|
343
356
|
"editor_session_id": editor_session_id,
|
|
@@ -346,6 +359,8 @@ class CheckChainClient:
|
|
|
346
359
|
}
|
|
347
360
|
if check_only:
|
|
348
361
|
params["check_only"] = True
|
|
362
|
+
if delete_temp_after_check:
|
|
363
|
+
params["delete_temp_after_check"] = True
|
|
349
364
|
data = await self._client.call_validated("file_check_and_promote", params)
|
|
350
365
|
payload = _success_payload(data, command="file_check_and_promote")
|
|
351
366
|
outcome = str(payload.get("outcome", ""))
|
|
@@ -364,4 +379,6 @@ class CheckChainClient:
|
|
|
364
379
|
raw=payload,
|
|
365
380
|
documentation_transfer=payload.get("documentation_transfer"),
|
|
366
381
|
lock_wait=payload.get("lock_wait"),
|
|
382
|
+
delete_temp_after_check=bool(payload.get("delete_temp_after_check", False)),
|
|
383
|
+
temp_copy_deleted=bool(payload.get("temp_copy_deleted", False)),
|
|
367
384
|
)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1.6.398
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: code-analysis-client-dev
|
|
3
|
-
Version: 1.6.
|
|
3
|
+
Version: 1.6.398
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
1.6.396
|
|
File without changes
|
|
File without changes
|
{code_analysis_client_dev-1.6.396 → code_analysis_client_dev-1.6.398}/code_analysis_client/client.py
RENAMED
|
File without changes
|
|
File without changes
|
{code_analysis_client_dev-1.6.396 → code_analysis_client_dev-1.6.398}/code_analysis_client/config.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{code_analysis_client_dev-1.6.396 → code_analysis_client_dev-1.6.398}/code_analysis_client/py.typed
RENAMED
|
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
|