sourcecode 3.5.0__py3-none-any.whl → 3.7.0__py3-none-any.whl

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.

Potentially problematic release.


This version of sourcecode might be problematic. Click here for more details.

sourcecode/__init__.py CHANGED
@@ -4,4 +4,4 @@ ASK Engine is the product. ``ask`` is the canonical CLI command; ``sourcecode``
4
4
  the legacy compatibility alias and the Python/PyPI package name. See
5
5
  docs/PRODUCT_IDENTITY.md (normative)."""
6
6
 
7
- __version__ = "3.5.0"
7
+ __version__ = "3.7.0"
sourcecode/change_plan.py CHANGED
@@ -88,7 +88,11 @@ def build_change_plan(
88
88
  resolution = blast.get("resolution", "not_found")
89
89
 
90
90
  # Unresolvable target → return a plan-shaped resolution notice (never crash).
91
- if resolution in ("not_found", "ambiguous_path") or not blast.get("matched_fqns"):
91
+ # The set of resolutions that means "never found it" is one fact, and the CLI
92
+ # reads the same one to decide the exit code (C3-29).
93
+ from sourcecode.target_admission import is_unresolved
94
+
95
+ if is_unresolved(resolution) or not blast.get("matched_fqns"):
92
96
  return {
93
97
  "schema": CHANGE_PLAN_SCHEMA,
94
98
  "target": target,