claude-dev-env 8.46.20 → 8.46.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.
|
@@ -42,7 +42,7 @@ for each_member in all_members:
|
|
|
42
42
|
|
|
43
43
|
The re-raise comes first, sending an escalation directly through the boundary.
|
|
44
44
|
|
|
45
|
-
**The boundary recognizes declared types.** A runtime crash inside member work — a `TypeError`, an `AttributeError` — ends the run because its type identifies a code defect. `except Exception` triggers the rule (`CODE_RULES.md` §
|
|
45
|
+
**The boundary recognizes declared types.** A runtime crash inside member work — a `TypeError`, an `AttributeError` — ends the run because its type identifies a code defect. `except Exception` triggers the rule (`CODE_RULES.md` §9.7).
|
|
46
46
|
|
|
47
47
|
## Repair, park, and the deliverable
|
|
48
48
|
|
package/package.json
CHANGED
|
@@ -27,7 +27,8 @@ _TEXT_SUFFIXES = frozenset({".md", ".py", ".js", ".mjs", ".ts", ".json", ".xml"}
|
|
|
27
27
|
_MARKDOWN_LINK = re.compile(r"(?<!!)\[[^]]+\]\(([^)\s]+)(?:\s+[^)]*)?\)")
|
|
28
28
|
_INDEX_ANCHOR = re.compile(r"CODE_RULES\.md#([^\s)\]<>\"`]+)", re.IGNORECASE)
|
|
29
29
|
_NUMBERED_CITATION = re.compile(
|
|
30
|
-
r"(
|
|
30
|
+
r"CODE_RULES(?:\.md)?[`'\"]*\s*(?:\u00a7\s*|section\s+)(\d+(?:\.\d+)?)",
|
|
31
|
+
re.IGNORECASE,
|
|
31
32
|
)
|
|
32
33
|
|
|
33
34
|
|
|
@@ -129,6 +130,27 @@ def test_should_report_dead_code_rules_anchor() -> None:
|
|
|
129
130
|
_assert_citations_resolve(index_text, [dead_citation])
|
|
130
131
|
|
|
131
132
|
|
|
133
|
+
def test_should_ignore_section_number_of_another_document() -> None:
|
|
134
|
+
index_text = _INDEX_PATH.read_text(encoding="utf-8")
|
|
135
|
+
foreign_citation = (_INDEX_PATH, "See the runbook section 12 appendix row.")
|
|
136
|
+
_assert_citations_resolve(index_text, [foreign_citation])
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
@pytest.mark.parametrize(
|
|
140
|
+
"citation_text",
|
|
141
|
+
[
|
|
142
|
+
"CODE_RULES.md" + " section 12",
|
|
143
|
+
"``docs/CODE_RULES.md``" + " section 12",
|
|
144
|
+
"CODE_RULES" + " \u00a712",
|
|
145
|
+
"CODE_RULES.md" + " \u00a712",
|
|
146
|
+
],
|
|
147
|
+
)
|
|
148
|
+
def test_should_report_dead_code_rules_section(citation_text: str) -> None:
|
|
149
|
+
index_text = _INDEX_PATH.read_text(encoding="utf-8")
|
|
150
|
+
with pytest.raises(AssertionError, match="dead CODE_RULES" + " section 12"):
|
|
151
|
+
_assert_citations_resolve(index_text, [(_INDEX_PATH, citation_text)])
|
|
152
|
+
|
|
153
|
+
|
|
132
154
|
def _assert_destination_resolves(markdown_path: Path, destination: str) -> None:
|
|
133
155
|
if "://" in destination or destination.startswith("#"):
|
|
134
156
|
return
|