claude-dev-env 8.46.15 → 8.46.17
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.
|
@@ -34,7 +34,7 @@ check_js_sibling_return_object_key_drift = (
|
|
|
34
34
|
_MJS_PATH = "skills/autoconverge/workflow/converge_multi.mjs"
|
|
35
35
|
|
|
36
36
|
_SHIPPED_CONVERGE_MJS = (
|
|
37
|
-
_HOOK_DIRECTORY.parents[
|
|
37
|
+
_HOOK_DIRECTORY.parents[3] / "skill-archive" / "autoconverge" / "workflow" / "converge.mjs"
|
|
38
38
|
)
|
|
39
39
|
|
|
40
40
|
_SHIPPED_INSTALL_MYPY_INI_MJS = (
|
|
@@ -12,6 +12,7 @@ rather than the OS temp directory, matching the sibling workflow-hook tests.
|
|
|
12
12
|
import contextlib
|
|
13
13
|
import functools
|
|
14
14
|
import importlib.util
|
|
15
|
+
import inspect
|
|
15
16
|
import json
|
|
16
17
|
import os
|
|
17
18
|
import shutil
|
|
@@ -59,9 +60,15 @@ def _strip_read_only_and_retry(removal_function, target_path, *_exc_info):
|
|
|
59
60
|
pass
|
|
60
61
|
|
|
61
62
|
|
|
63
|
+
_rmtree_supports_onexc = "onexc" in inspect.signature(shutil.rmtree).parameters
|
|
64
|
+
|
|
65
|
+
|
|
62
66
|
def _force_rmtree(target_path: str) -> None:
|
|
63
67
|
with contextlib.suppress(OSError):
|
|
64
|
-
|
|
68
|
+
if _rmtree_supports_onexc:
|
|
69
|
+
shutil.rmtree(target_path, onexc=_strip_read_only_and_retry)
|
|
70
|
+
else:
|
|
71
|
+
shutil.rmtree(target_path, onerror=_strip_read_only_and_retry)
|
|
65
72
|
|
|
66
73
|
|
|
67
74
|
@functools.lru_cache(maxsize=1)
|