Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.
Python aicode-complexitycode-healthcode-intelligencecode-qualitydead-codedeveloper-toolsdocumentationgit-analyticsmcpopen-sourcepythonrefactoringstatic-analysistechnical-debt
feat(distill): data-driven TOML output filters + install/infra families (#1067)
Raghav Chamadiyab5f475360559
diff --git a/packages/cli/src/repowise/cli/rewrite_hook.py b/packages/cli/src/repowise/cli/rewrite_hook.pyindex a703840b0..87fdc8cfa 100644--- a/packages/cli/src/repowise/cli/rewrite_hook.py+++ b/packages/cli/src/repowise/cli/rewrite_hook.py@@ -119,6 +119,15 @@ FAMILY_PATTERNS: tuple[tuple[str, re.Pattern[str]], ...] = (r"npm run (?:type-check|typecheck|compile)\b|gradle|mvn\b)"),),+ (+ "install_output",+ re.compile(+ r"^(pip|pip3|uv (?:pip )?(?:install|sync|add)|poetry (?:install|add|lock)|"+ r"npm (?:install|ci|i)\b|pnpm (?:install|add|i)\b|yarn (?:install|add)|"+ r"cargo install|brew install|bundle install|composer install)"+ ),+ ),+ ("infra_plan", re.compile(r"^(?:terraform|tofu) plan\b|^helm (?:diff|upgrade)\b")),("git_status", re.compile(r"^git status\b(?!.*--porcelain)")),("git_log", re.compile(r"^git log\b")),("git_diff", re.compile(r"^git (?:diff|show)\b(?!.*--stat)")),diff --git a/packages/core/src/repowise/core/distill/filters_toml/README.md b/packages/core/src/repowise/core/distill/filters_toml/README.mdnew file mode 100644index 000000000..dbcbd9625--- /dev/null+++ b/packages/core/src/repowise/core/distill/filters_toml/README.md@@ -0,0 +1,62 @@+# Data-driven output filters++Each `*.toml` in this directory defines one command filter as pure data. A+single generic applier (`repowise.core.distill.toml_filter.TomlFilter`)+interprets every definition, so adding coverage for a new command family is a+data file plus inline tests, not a Python module and a round of router/config/+doctor edits.++Files here load once, after the hand-written Python filters, via+`FilterRegistry._ensure_loaded()`. Ordering is stable (sorted by filename) so+content-sniff tie-breaks are deterministic.++## The errors-first invariant is enforced by the engine++No field can drop a line that `is_error_line` classifies as a failure. The+applier re-keeps any error line a `strip`/`keep`/cap would have removed, skips+`replace`/`truncate` on error lines, and only fires a `match_output`+short-circuit when the whole output is error-free. A filter author cannot+author an error line away.++## Fields++Top-level tables:++| Table | Purpose |+|-------|---------|+| `[meta]` | Test metadata. `savings_floor` is the CI median-savings floor over this file's inline cases (default 60). |+| `[filters.<name>]` | One filter definition. `<name>` is the registry/ledger name and must match the `rewrite_hook.py` family entry. |+| `[[tests.<name>]]` | Inline cases (`name`, `input`, `expected`) run in CI by `test_toml_filters.py`. |++Filter fields (all optional except a `match_*`):++| Field | Type | Effect |+|-------|------|--------|+| `description` | str | Human summary. |+| `priority` | int | Lower runs first when several filters match (default 50). |+| `min_lines` | int | Outputs shorter than this are never distilled (default 8). |+| `match_command` | regex | Route when the normalized command matches. |+| `match_content` | regex | Route by content when the command is unknown (surfaces that see only bytes). |+| `strip_ansi` | bool | Strip ANSI escapes before filtering. |+| `strip_lines_matching` | list[regex] | Drop matching lines (block-list mode). |+| `keep_lines_matching` | list[regex] | Keep only matching lines (allow-list mode; wins over `strip`). |+| `replace` | list[{pattern, replacement}] | Regex substitutions on surviving non-error lines. |+| `match_output` | list[{pattern, message}] | Short-circuit to `message` when `pattern` is present and the output is error-free. |+| `truncate_lines_at` | int | Truncate long non-error lines to this width with an ellipsis. |+| `max_lines` / `tail_lines` | int | Cap head / tail line counts (error lines in the middle are retained). |+| `on_empty` | str | Rendering when nothing survives (e.g. `install: ok (no changes)`). |++`keep_lines_matching` and `strip_lines_matching` are mutually exclusive per+filter: if `keep` is set it takes precedence and `strip` is ignored.++## Adding a filter++1. Write `<family>.toml` with a `match_command` (and usually a `match_content`)+ plus inline `[[tests.<family>]]` cases and a `[meta] savings_floor`.+2. Add a plain-regex row for the family to `FAMILY_PATTERNS` in+ `packages/cli/src/repowise/cli/rewrite_hook.py` so live commands get+ rewritten (that table is a stdlib-only hot-path mirror; no core import).+3. Add a routing row to `test_toml_filters.py::test_routing_no_regression`.++If a filter needs behavior no field covers, add the field to the applier once+(not per-filter) and document it in the table above.diff --git a/packages/core/src/repowise/core/distill/filters_toml/infra_plan.toml b/packages/core/src/repowise/core/distill/filters_toml/infra_plan.tomlnew file mode 100644index 000000000..8d68f9ede--- /dev/null+++ b/packages/core/src/repowise/core/distill/filters_toml/infra_plan.toml@@ -0,0 +1,111 @@+# Infrastructure plan filter, authored as pure data.+# Covers `terraform plan` / `tofu plan` and `helm diff`/`helm upgrade --dry-run`.+# A plan is mostly per-attribute diff noise; the signal is which resources+# change (the `# ... will be ...` action headers), the `Plan: N to add`+# summary line, and (always, via the engine's invariant) any error line.+#+# This filter exercises two DSL features the install filter does not:+# - match_output short-circuit: a no-op plan collapses to one line;+# - keep_lines_matching: an allowlist that keeps only the signal rows,+# which is the inverse of install_output's strip-list approach.++[meta]+savings_floor = 60++[filters.infra_plan]+description = "terraform/tofu/helm plan output: keep the change headers + summary, drop attribute-diff noise."+priority = 30+min_lines = 8++match_command = "^(?:terraform|tofu) plan\\b|^helm (?:diff|upgrade)\\b"++match_content = "Terraform will perform the following actions|^Plan: \\d+ to add|No changes\\. Your infrastructure matches"++# No-op plan collapses to a single line. Gated (by the engine) on the whole+# output being error-free, so a failed refresh can never be hidden behind it.+match_output = [+ { pattern = "No changes\\. Your infrastructure matches the configuration", message = "plan: no changes" },+]++# Allowlist: keep only the rows that carry decisions. Everything unlisted is+# dropped unless it is an error line, which the engine re-keeps regardless.+keep_lines_matching = [+ "^\\s*# \\S+ will be ", # terraform per-resource action headers+ "^Plan: \\d+ to add", # the change summary+ "^Changes to Outputs:", # output diffs follow this header+ "^(?:Apply|Destroy) complete!", # apply/destroy result+ "^Note: ", # terraform advisory notes+ "has changed|has been (?:added|removed|changed)", # helm-diff resource headers+]++on_empty = "plan: no changes"++# ---- inline tests ------------------------------------------------------------++[[tests.infra_plan]]+name = "no-op plan collapses to one line"+input = """+aws_vpc.main: Refreshing state... [id=vpc-0abc]+aws_subnet.a: Refreshing state... [id=subnet-1]+aws_subnet.b: Refreshing state... [id=subnet-2]+aws_instance.web: Refreshing state... [id=i-0abc]++No changes. Your infrastructure matches the configuration.++Your configuration already matches the real infrastructure, so no changes+are needed.+"""+expected = "plan: no changes"++[[tests.infra_plan]]+name = "keeps action headers and summary, drops attribute diff"+input = """+aws_instance.web: Refreshing state... [id=i-0abc]+aws_s3_bucket.data: Refreshing state... [id=my-bucket]++Terraform used the selected providers to generate the following execution plan.+Resource actions are indicated with the following symbols:+ + create+ ~ update in-place++Terraform will perform the following actions:++ # aws_instance.web will be created+ + resource "aws_instance" "web" {+ + ami = "ami-0c55b159cbfafe1f0"+ + instance_type = "t3.micro"+ }++ # aws_s3_bucket.data will be updated in-place+ ~ resource "aws_s3_bucket" "data" {+ id = "my-bucket"+ ~ tags = {+ + "env" = "prod"+ }+ }++Plan: 1 to add, 1 to change, 0 to destroy.+"""+expected = """ # aws_instance.web will be created+ # aws_s3_bucket.data will be updated in-place+Plan: 1 to add, 1 to change, 0 to destroy."""++[[tests.infra_plan]]+name = "error line survives keep-only allowlist"+input = """+aws_instance.web: Refreshing state... [id=i-0abc]++Terraform will perform the following actions:++ # aws_instance.web will be created+ + resource "aws_instance" "web" {+ + ami = "ami-123"+ }++Error: Invalid resource type "aws_instances"+ on main.tf line 12, in resource "aws_instances" "web":+Plan: 0 to add, 0 to change, 0 to destroy.+"""+expected = """ # aws_instance.web will be created+Error: Invalid resource type "aws_instances"+Plan: 0 to add, 0 to change, 0 to destroy."""diff --git a/packages/core/src/repowise/core/distill/filters_toml/install_output.toml b/packages/core/src/repowise/core/distill/filters_toml/install_output.tomlnew file mode 100644index 000000000..2e9c12cca--- /dev/null+++ b/packages/core/src/repowise/core/distill/filters_toml/install_output.toml@@ -0,0 +1,121 @@+# Package-install log filter, authored as pure data.+# Covers pip / uv / poetry / npm / pnpm / yarn / cargo / brew install logs.+# The dominant noise is "already satisfied / using cached / downloading /+# resolved / added N packages" progress; the signal is what actually changed,+# the final summary, and (always, via the engine's invariant) any error line.++[meta]+# CI floor: median token savings across this file's inline test inputs.+savings_floor = 60++[filters.install_output]+description = "Package-install logs: drop resolver/progress noise, keep what changed + summary + errors."+priority = 30+min_lines = 8++# Command match: the resolved/normalized command begins with a known installer.+match_command = "^(pip|pip3|uv (?:pip )?(?:install|sync|add)|poetry (?:install|add|lock)|npm (?:install|ci|i)\\b|pnpm (?:install|add|i)\\b|yarn (?:install|add)|cargo install|brew install|bundle install|composer install)"++# Content sniff for surfaces that only see bytes.+match_content = "Requirement already satisfied|^Resolved \\d+ packages|Using cached|added \\d+ packages|Audited \\d+ package|^Would make no changes"++strip_lines_matching = [+ "^Requirement already satisfied", # pip: the bulk of the noise+ "^\\s*Using cached ", # pip wheel cache chatter+ "^\\s*Downloading ", # pip/poetry download progress+ "^Resolved \\d+ packages? in ", # uv resolver timing+ "^\\s*Audited \\d+ packages? in ", # uv audit line+ "^\\s*Checked \\d+ packages? in ", # uv --dry-run no-op line+ "^Would make no changes", # uv --dry-run no-op summary+ "^Using Python \\d", # uv environment banner+ "^\\s*[-•]\\s+Installing ", # poetry per-package spinner rows+ "^\\s*[-•]\\s+Already installed ", # poetry no-op rows+ "^(?:add|remove|change|update) \\S+ \\S+\\s*$", # npm --dry-run per-package plan+ "^npm warn ", # npm deprecation spam (warnings, not errors)+ "^\\d+ packages? are looking for funding", # npm funding nag+ "^\\s*run `npm fund`", # npm funding nag continuation+ "^\\s*$", # blank lines+ "^\\[notice\\] ", # pip "a new release is available" nag+]++# Collapse noisy absolute site-packages paths in surviving lines.+replace = [+ { pattern = " in [A-Za-z]:\\\\[^ ]+site-packages", replacement = "" },+ { pattern = " in /[^ ]+site-packages", replacement = "" },+]++on_empty = "install: ok (no changes)"++# ---- inline tests (validated in CI, one file, one source of truth) -----------++[[tests.install_output]]+name = "pip all-satisfied collapses to ok"+input = """+Requirement already satisfied: requests in c:\\x\\site-packages (2.33.1)+Requirement already satisfied: rich in c:\\x\\site-packages (13.9.4)+Requirement already satisfied: idna<4 in c:\\x\\site-packages (from requests) (3.13)+Requirement already satisfied: urllib3 in c:\\x\\site-packages (from requests) (2.6.3)+Requirement already satisfied: certifi in c:\\x\\site-packages (from requests) (2026.4.22)+Requirement already satisfied: pygments in c:\\x\\site-packages (from rich) (2.20.0)+Requirement already satisfied: colorama in c:\\x\\site-packages (from pytest) (0.4.6)+Requirement already satisfied: pluggy in c:\\x\\site-packages (from pytest) (1.6.0)++[notice] A new release of pip is available: 25.1.1 -> 26.1.2+"""+expected = "install: ok (no changes)"++[[tests.install_output]]+name = "pip keeps real install + error line"+input = """+Requirement already satisfied: requests in c:\\x\\site-packages (2.33.1)+Collecting flask+ Downloading flask-3.1.0-py3-none-any.whl (100 kB)+Installing collected packages: flask+ERROR: pip's dependency resolver does not currently take into account all the packages+Successfully installed flask-3.1.0+"""+expected = """Collecting flask+Installing collected packages: flask+ERROR: pip's dependency resolver does not currently take into account all the packages+Successfully installed flask-3.1.0"""++[[tests.install_output]]+name = "uv dry-run no-op collapses to ok"+input = """+Using Python 3.13.5 environment at: .venv+Checked 3 packages in 98ms+Would make no changes+Resolved 3 packages in 12ms+Audited 3 packages in 0ms+"""+expected = "install: ok (no changes)"++[[tests.install_output]]+name = "npm dry-run drops per-package plan, keeps summary"+input = """+add victory-vendor 36.9.2+add undici-types 6.21.0+add tailwind-merge 2.6.1+add recharts 2.15.4+add lucide-react 0.460.0+add vitest 3.2.7+add jsdom 26.1.0++added 1344 packages in 1s++431 packages are looking for funding+ run `npm fund` for details+"""+expected = "added 1344 packages in 1s"++[[tests.install_output]]+name = "npm keeps summary and vulnerability line"+input = """+npm warn deprecated [email protected]: This module is not supported+added 210 packages, and audited 211 packages in 14s+45 packages are looking for funding+ run `npm fund` for details+found 3 high severity vulnerabilities+"""+expected = """added 210 packages, and audited 211 packages in 14s+found 3 high severity vulnerabilities"""diff --git a/packages/core/src/repowise/core/distill/missed.py b/packages/core/src/repowise/core/distill/missed.pyindex d3b10a527..512b63f45 100644--- a/packages/core/src/repowise/core/distill/missed.py+++ b/packages/core/src/repowise/core/distill/missed.py@@ -46,6 +46,11 @@ RATIO_FLOOR: dict[str, float] = {"search_results": 0.40,"file_listing": 0.60,"logs": 0.50,+ # Data-driven filters (filters_toml/*.toml). Conservative floors well under+ # their measured medians (install ~99%, infra plan ~80%) so estimates+ # undersell; the per-file CI floor lives in each .toml's [meta].+ "install_output": 0.50,+ "infra_plan": 0.50,}#: Mirrors the engine's net-positive floor (``MIN_SAVED_TOKENS``): events whosediff --git a/packages/core/src/repowise/core/distill/registry.py b/packages/core/src/repowise/core/distill/registry.pyindex 067000f95..6abf88ea1 100644--- a/packages/core/src/repowise/core/distill/registry.py+++ b/packages/core/src/repowise/core/distill/registry.py@@ -20,12 +20,24 @@ class FilterRegistry:def __init__(self) -> None:self._filters: list[OutputFilter] = []+ self._toml_loaded = Falsedef register(self, filter_cls: F) -> F:"""Class decorator: instantiate and register *filter_cls*."""self._filters.append(filter_cls())return filter_cls+ def register_instance(self, instance: OutputFilter) -> OutputFilter:+ """Register an already-constructed filter instance.++ The class decorator covers the common case of one class = one filter.+ Data-driven filters invert that: one :class:`TomlFilter` class backs+ many instances built from ``.toml`` definitions, so they register the+ built instance directly instead of a class.+ """+ self._filters.append(instance)+ return instance+def filters(self) -> tuple[OutputFilter, ...]:"""All registered filters, lowest ``priority`` first."""self._ensure_loaded()@@ -38,10 +50,20 @@ class FilterRegistry:return freturn None- @staticmethod- def _ensure_loaded() -> None:- # Importing the package triggers each filter module's decorator.+ def _ensure_loaded(self) -> None:+ # Importing the package triggers each Python filter module's decorator.import repowise.core.distill.filters # noqa: F401+ # Data-driven TOML filters load exactly once, AFTER the Python filters+ # so content-sniff order stays deterministic (built-ins first, then+ # data filters at the tail of the tie-break). The flag is set before+ # the load call so any re-entrant ``filters()`` during loading sees+ # "already loading" and does not recurse.+ if not self._toml_loaded:+ self._toml_loaded = True+ from repowise.core.distill.toml_filter import load_toml_filters++ load_toml_filters()+filter_registry = FilterRegistry()diff --git a/packages/core/src/repowise/core/distill/toml_filter.py b/packages/core/src/repowise/core/distill/toml_filter.pynew file mode 100644index 000000000..eb6f0d183--- /dev/null+++ b/packages/core/src/repowise/core/distill/toml_filter.py@@ -0,0 +1,214 @@+"""Data-driven output filters loaded from TOML definitions.++A whole new command filter becomes a ``.toml`` data file with inline tests,+not a Python module plus router/config/doctor edits. One generic applier+(:class:`TomlFilter`) interprets every definition, so the count of supported+commands scales with data, not code.++The one guarantee the applier adds on top of the raw declaration is our+cardinal invariant: a ``strip_lines_matching`` / ``keep_lines_matching`` / cap+can never drop a line :func:`is_error_line` classifies as a failure. A filter+author literally cannot author an error line away, and a ``match_output``+short-circuit only fires on fully error-free output. That keeps the+errors-first contract independent of who wrote the filter, which is what makes+accepting data-authored definitions safe.++Supported fields (proven sufficient for the built-in set):++``description``, ``priority``, ``min_lines``, ``match_command``,+``match_content``, ``strip_ansi``, ``strip_lines_matching``,+``keep_lines_matching``, ``replace``, ``match_output`` (short-circuit, gated on+error-free output), ``truncate_lines_at``, ``max_lines``, ``tail_lines``,+``on_empty``.+"""++from __future__ import annotations++import re+import tomllib+from pathlib import Path+from typing import Any++import structlog++from repowise.core.distill.filters.base import OutputFilter, cap_block, is_error_line+from repowise.core.distill.registry import filter_registry++logger = structlog.get_logger(__name__)++_ANSI_RE = re.compile(r"\x1b\[[0-9;]*[A-Za-z]")++#: Directory of built-in TOML filter definitions (one file = one filter family).+_BUILTIN_DIR = Path(__file__).parent / "filters_toml"+++class TomlFilter(OutputFilter):+ """One filter defined entirely by a TOML mapping.++ Not registered via the class decorator (there is one class, many+ instances); :func:`load_toml_filters` builds one instance per definition+ and registers it directly with :meth:`FilterRegistry.register_instance`.+ """++ def __init__(self, spec: dict[str, Any], *, origin: str = "<builtin>") -> None:+ self.name = str(spec["name"])+ self.origin = origin+ self.priority = int(spec.get("priority", 50))+ self.min_lines = int(spec.get("min_lines", 8))+ self.description = str(spec.get("description", ""))+ self._strip_ansi = bool(spec.get("strip_ansi", False))+ self._cmd_re = _opt_re(spec.get("match_command"))+ self._content_re = _opt_re(spec.get("match_content"))+ self._strip = [re.compile(p) for p in spec.get("strip_lines_matching", [])]+ self._keep = [re.compile(p) for p in spec.get("keep_lines_matching", [])]+ self._replace = [+ (re.compile(r["pattern"]), r["replacement"]) for r in spec.get("replace", [])+ ]+ self._short_circuit = [+ (re.compile(r["pattern"]), r["message"]) for r in spec.get("match_output", [])+ ]+ self._truncate_at = spec.get("truncate_lines_at")+ self._max_lines = spec.get("max_lines")+ self._tail_lines = spec.get("tail_lines")+ self._on_empty = spec.get("on_empty")++ # -- routing ---------------------------------------------------------------++ def matches_command(self, command: str) -> bool:+ return bool(self._cmd_re and self._cmd_re.search(command))++ def matches_content(self, output: str) -> bool:+ return bool(self._content_re and self._content_re.search(output))++ # -- distillation ----------------------------------------------------------++ def distill(self, output: str, *, command: str = "", exit_code: int = 0) -> str:+ text = _ANSI_RE.sub("", output) if self._strip_ansi else output+ lines = text.splitlines()++ short = self._try_short_circuit(lines)+ if short is not None:+ return short++ kept = self._apply_caps(self._filter_lines(lines))++ if not kept:+ if self._on_empty is not None:+ return str(self._on_empty)+ raise ValueError(f"{self.name}: nothing left after filtering")++ return self._render(kept, lines)++ def _try_short_circuit(self, lines: list[str]) -> str | None:+ """Collapse to a one-line summary when there is nothing to preserve.++ Gated on the whole output being error-free: a short-circuit that+ swallowed an error line would violate the errors-first invariant.+ """+ if not self._short_circuit or any(is_error_line(ln) for ln in lines):+ return None+ for pat, message in self._short_circuit:+ if any(pat.search(ln) for ln in lines):+ return message+ return None++ def _filter_lines(self, lines: list[str]) -> list[str]:+ """Keep/strip, then replace and truncate — never touching error lines."""+ kept: list[str] = []+ for ln in lines:+ error = is_error_line(ln)+ # Invariant: an error line is always kept, whatever the rules say.+ if not self._keep_line(ln) and not error:+ continue+ kept.append(ln if error else self._rewrite_line(ln))+ return kept++ def _rewrite_line(self, line: str) -> str:+ """Apply replacements + truncation to a non-error line.++ Callers guarantee *line* is not an error line, so a substitution or a+ truncation can never mangle the one line that explains a failure.+ """+ out = line+ for pat, repl in self._replace:+ out = pat.sub(repl, out)+ if self._truncate_at and len(out) > int(self._truncate_at):+ out = out[: int(self._truncate_at) - 1] + "…"+ return out++ def _render(self, kept: list[str], original: list[str]) -> str:+ """Join *kept*, re-appending any error line the caps elided.++ Belt-and-braces rescue tail, identical in spirit to the hand-written+ filters: the caps preserve error lines already, but a re-scan is cheap+ insurance against a future cap that forgets to.+ """+ rendered = "\n".join(kept)+ rescued = [ln for ln in original if ln.strip() and is_error_line(ln) and ln not in rendered]+ if rescued:+ kept = [*kept, *rescued]+ return "\n".join(kept)++ def _keep_line(self, line: str) -> bool:+ if self._keep:+ return any(p.search(line) for p in self._keep)+ if self._strip:+ return not any(p.search(line) for p in self._strip)+ return True++ def _apply_caps(self, lines: list[str]) -> list[str]:+ if self._max_lines and self._tail_lines:+ return cap_block(lines, int(self._max_lines), int(self._tail_lines))+ if self._max_lines:+ return cap_block(lines, int(self._max_lines), 0)+ if self._tail_lines:+ return cap_block(lines, 0, int(self._tail_lines))+ return lines+++def _opt_re(pattern: Any) -> re.Pattern[str] | None:+ return re.compile(str(pattern)) if pattern else None+++def parse_toml_filters(path: Path) -> list[TomlFilter]:+ """Build the :class:`TomlFilter` instances declared in one ``.toml`` file.++ Best-effort: a malformed file or a single bad definition is logged and+ skipped, never fatal — one broken filter must not disable the engine.+ Registration is left to the caller so this stays a pure parse.+ """+ filters: list[TomlFilter] = []+ try:+ data = tomllib.loads(path.read_text(encoding="utf-8"))+ except (OSError, tomllib.TOMLDecodeError) as exc:+ logger.warning("distill: skipping unreadable TOML filter", path=str(path), error=str(exc))+ return filters+ for name, spec in (data.get("filters") or {}).items():+ try:+ filters.append(TomlFilter({"name": name, **spec}, origin=path.name))+ except (re.error, KeyError, TypeError, ValueError) as exc:+ logger.warning(+ "distill: skipping invalid TOML filter",+ path=str(path),+ filter=name,+ error=str(exc),+ )+ return filters+++def load_toml_filters(directory: Path | None = None) -> list[TomlFilter]:+ """Parse every ``*.toml`` in *directory* and register the filters.++ Files are loaded in sorted order for a stable content-sniff tie-break.+ Returns the filters that registered, for callers (tests, doctor) that want+ to inspect what loaded.+ """+ directory = directory or _BUILTIN_DIR+ loaded: list[TomlFilter] = []+ if not directory.is_dir():+ return loaded+ for path in sorted(directory.glob("*.toml")):+ for f in parse_toml_filters(path):+ filter_registry.register_instance(f)+ loaded.append(f)+ return loadeddiff --git a/tests/fixtures/distill/install_npm.txt b/tests/fixtures/distill/install_npm.txtnew file mode 100644index 000000000..a6405e3a1--- /dev/null+++ b/tests/fixtures/distill/install_npm.txt@@ -0,0 +1,1349 @@+add victory-vendor 36.9.2+add undici-types 6.21.0+add tailwind-merge 2.6.1+add shiki 1.29.2+add regex-recursion 5.1.1+add regex 5.1.1+add recharts 2.15.4+add react-is 18.3.1+add oniguruma-to-es 2.3.0+add lucide-react 0.460.0+add eventemitter3 4.0.7+add @types/node 22.20.1+add @shikijs/types 1.29.2+add @shikijs/themes 1.29.2+add @shikijs/langs 1.29.2+add @shikijs/engine-oniguruma 1.29.2+add @shikijs/engine-javascript 1.29.2+add @shikijs/core 1.29.2+add vitest 3.2.7+add @vitest/mocker 3.2.7+add undici-types 6.21.0+add tinyrainbow 2.0.0+add tinyexec 0.3.2+add std-env 3.10.0+add rrweb-cssom 0.8.0+add react-refresh 0.18.0+add picomatch 4.0.5+add jsdom 26.1.0+add chai 5.3.3+add @vitest/utils 3.2.7+add @vitest/spy 3.2.7+add @vitest/snapshot 3.2.7+add @vitest/runner 3.2.7+add @vitest/pretty-format 3.2.7+add @vitest/expect 3.2.7+add @vitejs/plugin-react 5.2.0+add @types/node 20.19.43+add @rolldown/pluginutils 1.0.0-rc.3+add repowise-web 0.3.0+add repowise 0.5.0+add @repowise-dev/ui 0.1.0+add @repowise-dev/types 0.0.1+add @repowise-dev/api-client 0.1.0+add zwitch 2.0.4+add zustand 4.5.7+add yocto-queue 0.1.0+add yazl 2.5.1+add yauzl 3.4.0+add yargs-unparser 2.0.0+add is-plain-obj 2.1.0+add yargs-parser 21.1.1+add yargs 17.7.3+add yaml 2.9.0+add yallist 3.1.1+add y18n 5.0.8+add xmlchars 2.2.0+add xmlbuilder 11.0.1+add xml2js 0.5.0+add xml-name-validator 5.0.0+add wsl-utils 0.1.0+add ws 8.21.1+add wrappy 1.0.2+add wrap-ansi-cjs 7.0.0+add strip-ansi 6.0.1+add wrap-ansi 8.1.0+add string-width 5.1.2+add ansi-styles 6.2.3+add workerpool 6.5.1+add word-wrap 1.2.5+add why-is-node-running 2.3.0+add which-typed-array 1.1.22+add which-collection 1.0.2+add which-builtin-type 1.2.1+add isarray 2.0.5+add which-boxed-primitive 1.1.1+add which 2.0.2+add whatwg-url 14.2.0+add whatwg-mimetype 4.0.0+add whatwg-encoding 3.1.1+add webidl-conversions 7.0.0+add w3c-xmlserializer 5.0.0+add vitest 4.1.10+add picomatch 4.0.5+add vite-node 3.2.4+add es-module-lexer 1.7.0+add vite 7.3.6+add picomatch 4.0.5+add fdir 6.5.0+add victory-vendor 37.3.6+add vfile-message 4.0.3+add vfile-matter 5.0.1+add vfile 6.0.3+add version-range 4.15.0+add validate-npm-package-license 3.0.4+add v8-to-istanbul 9.3.0+add uuid 11.1.1+add util-deprecate 1.0.2+add use-sync-external-store 1.6.0+add use-sidecar 1.1.3+add use-callback-ref 1.3.3+add url-join 4.0.1+add uri-js 4.4.1+add update-browserslist-db 1.2.3+add unrs-resolver 1.12.2+add universalify 2.0.1+add unist-util-visit-parents 6.0.2+add unist-util-visit 5.1.0+add unist-util-stringify-position 4.0.0+add unist-util-remove 4.0.0+add unist-util-position-from-estree 2.0.0+add unist-util-position 5.0.0+add unist-util-is 6.0.1+add unified 11.0.5+add unicorn-magic 0.3.0+add undici-types 8.3.0+add undici 7.28.0+add underscore 1.13.8+add unbox-primitive 1.1.0+add uc.micro 2.1.0+add typescript 5.9.3+add typed-rest-client 1.8.11+add typed-array-length 1.0.8+add typed-array-byte-offset 1.0.4+add typed-array-byte-length 1.0.3+add typed-array-buffer 1.0.3+add type-fest 4.41.0+add type-check 0.4.0+add tunnel-agent 0.6.0+add tunnel 0.0.6+add tslib 2.8.1+add tsconfig-paths 3.15.0+add json5 1.0.2+add ts-dedent 2.3.0+add ts-api-utils 2.5.0+add trough 2.2.0+add trim-lines 3.0.1+add tr46 5.1.1+add tough-cookie 5.1.2+add to-regex-range 5.0.1+add tmp 0.2.7+add tldts-core 6.1.86+add tldts 6.1.86+add tinyspy 4.0.4+add tinyrainbow 3.1.0+add tinypool 1.1.1+add tinyglobby 0.2.17+add picomatch 4.0.5+add fdir 6.5.0+add tinyexec 1.2.4+add tinybench 2.9.0+add tiny-invariant 1.3.3+add textextensions 6.11.0+add text-table 0.2.0+add test-exclude 6.0.0+add minimatch 3.1.5+add glob 7.2.3+add brace-expansion 1.1.16+add terminal-link 4.0.0+add tar-stream 2.2.0+add readable-stream 3.6.2+add tar-fs 2.1.5+add tapable 2.3.3+add tailwindcss 4.3.3+add tailwind-merge 3.6.0+add table 6.9.0+add strip-ansi 6.0.1+add symbol-tree 3.2.4+add swr 2.4.2+add supports-preserve-symlinks-flag 1.0.0+add supports-hyperlinks 3.2.0+add supports-color 7.2.0+add supports-color 9.4.0+add stylis 4.4.0+add styled-jsx 5.1.6+add style-to-object 1.0.14+add style-to-js 1.1.21+add structured-source 4.0.0+add strip-literal 3.1.0+add js-tokens 9.0.1+add strip-json-comments 3.1.1+add strip-indent 3.0.0+add strip-bom 3.0.0+add strip-ansi-cjs 6.0.1+add strip-ansi 7.2.0+add ansi-regex 6.2.2+add stringify-entities 4.0.4+add string.prototype.trimstart 1.0.8+add string.prototype.trimend 1.0.10+add string.prototype.trim 1.2.11+add string.prototype.repeat 1.0.0+add string.prototype.matchall 4.0.12+add string.prototype.includes 2.0.1+add string-width-cjs 4.2.3+add strip-ansi 6.0.1+add emoji-regex 8.0.0+add string-width 4.2.3+add strip-ansi 6.0.1+add emoji-regex 8.0.0+add string_decoder 1.1.1+add safe-buffer 5.1.2+add stop-iteration-iterator 1.1.0+add stdin-discarder 0.2.2+add std-env 4.2.0+add stackback 0.0.2+add stable-hash 0.0.5+add spdx-license-ids 3.0.23+add spdx-expression-parse 3.0.1+add spdx-exceptions 2.5.0+add spdx-correct 3.2.0+add space-separated-tokens 2.0.2+add source-map-js 1.2.1+add source-map 0.7.6+add sonner 2.0.7+add slice-ansi 4.0.0+add slash 5.1.0+add simple-get 4.0.1+add simple-concat 1.0.1+add signal-exit 4.1.0+add sigma 3.0.3+add siginfo 2.0.0+add side-channel-weakmap 1.0.2+add side-channel-map 1.0.1+add side-channel-list 1.0.1+add side-channel 1.1.1+add shiki 4.3.1+add shebang-regex 3.0.0+add shebang-command 2.0.0+add sharp 0.35.3+add semver 7.8.5+add setimmediate 1.0.5+add set-proto 1.0.0+add set-function-name 2.0.2+add set-function-length 1.2.2+add serialize-javascript 7.0.7+add semver 6.3.1+add secretlint 10.2.2+add scheduler 0.27.0+add saxes 6.0.0+add sax 1.6.0+add safer-buffer 2.1.2+add safe-regex-test 1.1.0+add safe-push-apply 1.0.0+add isarray 2.0.5+add safe-buffer 5.2.1+add safe-array-concat 1.1.4+add isarray 2.0.5+add rw 1.3.3+add run-parallel 1.2.0+add run-applescript 7.1.0+add rrweb-cssom 0.7.1+add roughjs 4.6.6+add rollup 4.62.2+add robust-predicates 3.0.3+add reusify 1.1.0+add restore-cursor 5.1.0+add resolve-pkg-maps 1.0.0+add resolve-from 4.0.0+add resolve 2.0.0-next.7+add reselect 5.2.0+add require-from-string 2.0.2+add require-directory 2.1.1+add remark-stringify 11.0.0+add remark-rehype 11.1.2+add remark-parse 11.0.0+add remark-mdx 3.1.1+add remark-gfm 4.0.1+add rehype-recma 1.0.0+add regexp.prototype.flags 1.5.4+add regex-utilities 2.3.0+add regex-recursion 6.0.2+add regex 6.1.0+add reflect.getprototypeof 1.0.10+add redux-thunk 3.1.0+add redux 5.0.1+add redent 3.0.0+add recma-stringify 1.0.0+add recma-parse 1.0.0+add recma-jsx 1.0.1+add recma-build-jsx 1.0.0+add recharts-scale 0.4.5+add recharts 3.10.0+add readdirp 3.6.0+add readable-stream 2.3.8+add safe-buffer 5.1.2+add read-pkg 9.0.1+add unicorn-magic 0.1.0+add read 1.0.7+add react-transition-group 4.4.5+add react-style-singleton 2.2.3+add react-smooth 4.0.4+add react-remove-scroll-bar 2.3.8+add react-remove-scroll 2.7.2+add react-refresh 0.17.0+add react-redux 9.3.0+add react-markdown 10.1.0+add react-is 19.2.8+add react-dom 19.2.8+add react 19.2.8+add rc-config-loader 4.1.4+add rc 1.2.8+add strip-json-comments 2.0.1+add queue-microtask 1.2.3+add qs 6.15.3+add punycode.js 2.3.1+add punycode 2.3.1+add pump 3.0.4+add property-information 7.2.0+add prop-types 15.8.1+add react-is 16.13.1+add process-nextick-args 2.0.1+add pretty-format 27.5.1+add react-is 17.0.2+add ansi-styles 5.2.0+add prelude-ls 1.2.1+add prebuild-install 7.1.3+add postcss-selector-parser 6.0.10+add postcss 8.5.22+add possible-typed-array-names 1.1.0+add points-on-path 0.2.1+add points-on-curve 0.2.0+add pluralize 8.0.0+add picomatch 2.3.2+add picocolors 1.1.1+add pend 1.2.0+add pathval 2.0.1+add pathe 2.0.3+add path-type 6.0.0+add path-scurry 1.11.1+add lru-cache 10.4.3+add path-parse 1.0.7+add path-key 3.1.1+add path-is-absolute 1.0.1+add path-exists 4.0.0+add path-data-parser 0.1.0+add parse5-parser-stream 7.1.2+add parse5-htmlparser2-tree-adapter 7.1.0+add parse5 7.3.0+add entities 6.0.1+add parse-semver 1.1.1+add semver 5.7.2+add parse-json 8.3.0+add parse-entities 4.0.2+add @types/unist 2.0.11+add parent-module 1.0.1+add pako 1.0.11+add package-manager-detector 1.8.0+add package-json-from-dist 1.0.1+add p-map 7.0.6+add p-locate 5.0.0+add p-limit 3.1.0+add own-keys 1.0.2+add ora 8.2.0+add string-width 7.2.0+add log-symbols 6.0.0+add is-unicode-supported 1.3.0+add is-unicode-supported 2.1.0+add emoji-regex 10.6.0+add chalk 5.6.2+add optionator 0.9.4+add open 10.2.0+add oniguruma-to-es 4.3.6+add oniguruma-parser 0.12.2+add onetime 7.0.0+add once 1.4.0+add obug 2.1.4+add object.values 1.2.1+add object.groupby 1.0.3+add object.fromentries 2.0.8+add object.entries 1.1.9+add object.assign 4.1.7+add object-keys 1.1.1+add object-inspect 1.13.4+add object-assign 4.1.1+add nwsapi 2.2.24+add nuqs 2.9.1+add nth-check 2.1.1+add normalize-path 3.0.0+add normalize-package-data 6.0.2+add semver 7.8.5+add lru-cache 10.4.3+add hosted-git-info 7.0.2+add node-sarif-builder 3.4.0+add node-releases 2.0.51+add node-exports-info 1.6.2+add node-addon-api 4.3.0+add node-abi 3.94.0+add semver 7.8.5+add next-themes 0.4.6+add next-mdx-remote 6.0.0+add next 15.5.21+add natural-compare 1.4.0+add napi-postinstall 0.3.4+add napi-build-utils 2.0.0+add nanoid 3.3.16+add mute-stream 0.0.8+add ms 2.1.3+add motion-utils 11.18.1+add motion-dom 11.18.1+add mocha 10.8.2+add yargs-parser 20.2.9+add yargs 16.2.2+add wrap-ansi 7.0.0+add supports-color 8.1.1+add strip-ansi 6.0.1+add minimatch 5.1.9+add glob 8.1.0+add cliui 7.0.4+add mkdirp-classic 0.5.3+add minipass 7.1.3+add minimist 1.2.8+add minimatch 9.0.9+add min-indent 1.0.1+add mimic-response 3.1.0+add mimic-function 5.0.1+add mime-types 2.1.35+add mime-db 1.52.0+add mime 1.6.0+add micromatch 4.0.8+add micromark-util-types 2.0.2+add micromark-util-symbol 2.0.1+add micromark-util-subtokenize 2.1.0+add micromark-util-sanitize-uri 2.0.1+add micromark-util-resolve-all 2.0.1+add micromark-util-normalize-identifier 2.0.1+add micromark-util-html-tag-name 2.0.1+add micromark-util-events-to-acorn 2.0.3+add micromark-util-encode 2.0.1+add micromark-util-decode-string 2.0.1+add micromark-util-decode-numeric-character-reference 2.0.2+add micromark-util-combine-extensions 2.0.1+add micromark-util-classify-character 2.0.1+add micromark-util-chunked 2.0.1+add micromark-util-character 2.1.1+add micromark-factory-whitespace 2.0.1+add micromark-factory-title 2.0.1+add micromark-factory-space 2.0.1+add micromark-factory-mdx-expression 2.0.3+add micromark-factory-label 2.0.1+add micromark-factory-destination 2.0.1+add micromark-extension-mdxjs-esm 3.0.0+add micromark-extension-mdxjs 3.0.0+add micromark-extension-mdx-md 2.0.0+add micromark-extension-mdx-jsx 3.0.2+add micromark-extension-mdx-expression 3.0.1+add micromark-extension-gfm-task-list-item 2.1.0+add micromark-extension-gfm-tagfilter 2.0.0+add micromark-extension-gfm-table 2.1.1+add micromark-extension-gfm-strikethrough 2.1.0+add micromark-extension-gfm-footnote 2.1.0+add micromark-extension-gfm-autolink-literal 2.1.0+add micromark-extension-gfm 3.0.0+add micromark-core-commonmark 2.0.3+add micromark 4.0.2+add mermaid 11.16.0+add merge2 1.4.1+add mdurl 2.1.0+add mdast-util-to-string 4.0.0+add mdast-util-to-markdown 2.1.2+add mdast-util-to-hast 13.2.1+add mdast-util-phrasing 4.1.0+add mdast-util-mdxjs-esm 2.0.1+add mdast-util-mdx-jsx 3.2.0+add mdast-util-mdx-expression 2.0.1+add mdast-util-mdx 3.0.0+add mdast-util-gfm-task-list-item 2.0.0+add mdast-util-gfm-table 2.0.0+add mdast-util-gfm-strikethrough 2.0.0+add mdast-util-gfm-footnote 2.1.0+add mdast-util-gfm-autolink-literal 2.0.1+add mdast-util-gfm 3.1.0+add mdast-util-from-markdown 2.0.3+add mdast-util-find-and-replace 3.0.2+add escape-string-regexp 5.0.0+add math-intrinsics 1.1.0+add marked 16.4.2+add markdown-table 3.0.4+add markdown-it 14.3.0+add markdown-extensions 2.0.0+add make-dir 4.0.0+add semver 7.8.5+add magic-string 0.30.21+add lz-string 1.5.0+add lucide-react 1.26.0+add lru-cache 5.1.1+add loupe 3.2.1+add loose-envify 1.4.0+add longest-streak 3.1.0+add log-symbols 4.1.0+add lodash.truncate 4.4.2+add lodash.once 4.1.1+add lodash.merge 4.6.2+add lodash.isstring 4.0.1+add lodash.isplainobject 4.0.6+add lodash.isnumber 3.0.3+add lodash.isinteger 4.0.4+add lodash.isboolean 3.0.3+add lodash.includes 4.3.0+add lodash-es 4.18.1+add lodash 4.18.1+add locate-path 6.0.0+add linkify-it 5.0.2+add lightningcss-win32-x64-msvc 1.32.0+add lightningcss-win32-arm64-msvc 1.32.0+add lightningcss-linux-x64-musl 1.32.0+add lightningcss-linux-x64-gnu 1.32.0+add lightningcss-linux-arm64-musl 1.32.0+add lightningcss-linux-arm64-gnu 1.32.0+add lightningcss-linux-arm-gnueabihf 1.32.0+add lightningcss-freebsd-x64 1.32.0+add lightningcss-darwin-x64 1.32.0+add lightningcss-darwin-arm64 1.32.0+add lightningcss-android-arm64 1.32.0+add lightningcss 1.32.0+add lie 3.3.0+add levn 0.4.1+add leven 3.1.0+add layout-base 1.0.2+add language-tags 1.0.9+add language-subtag-registry 0.3.23+add khroma 2.1.0+add keyv 4.5.4+add keytar 7.9.0+add katex 0.16.47+add commander 8.3.0+add jws 4.0.1+add jwa 2.0.1+add jszip 3.10.1+add jsx-ast-utils 3.3.5+add jsonwebtoken 9.0.3+add semver 7.8.5+add jsonfile 6.2.1+add jsonc-parser 3.3.1+add json5 2.2.3+add json-stable-stringify-without-jsonify 1.0.1+add json-schema-traverse 1.0.0+add json-buffer 3.0.1+add jsesc 3.1.0+add jsdom 25.0.1+add js-yaml 4.3.0+add js-tokens 4.0.0+add jiti 2.7.0+add jackspeak 3.4.3+add iterator.prototype 1.1.5+add istextorbinary 9.5.0+add istanbul-reports 3.2.0+add istanbul-lib-report 3.0.1+add supports-color 7.2.0+add istanbul-lib-coverage 3.2.2+add isexe 2.0.0+add isarray 1.0.0+add is-wsl 3.1.1+add is-weakset 2.0.4+add is-weakref 1.1.1+add is-weakmap 2.0.2+add is-unicode-supported 0.1.0+add is-typed-array 1.1.15+add is-symbol 1.1.1+add is-string 1.1.1+add is-shared-array-buffer 1.0.4+add is-set 2.0.3+add is-regex 1.2.1+add is-potential-custom-element-name 1.0.1+add is-plain-obj 4.1.0+add is-number-object 1.1.1+add is-number 7.0.0+add is-negative-zero 2.0.3+add is-map 2.0.3+add is-interactive 2.0.0+add is-inside-container 1.0.0+add is-hexadecimal 2.0.1+add is-glob 4.0.3+add is-generator-function 1.1.2+add is-fullwidth-code-point 3.0.0+add is-finalizationregistry 1.1.1+add is-extglob 2.1.1+add is-document.all 1.0.0+add is-docker 3.0.0+add is-decimal 2.0.1+add is-date-object 1.1.0+add is-data-view 1.0.2+add is-core-module 2.16.2+add is-callable 1.2.7+add is-bun-module 2.0.0+add semver 7.8.5+add is-boolean-object 1.2.2+add is-binary-path 2.1.0+add is-bigint 1.1.0+add is-async-function 2.1.1+add is-array-buffer 3.0.5+add is-alphanumerical 2.0.1+add is-alphabetical 2.0.1+add internmap 2.0.3+add internal-slot 1.1.0+add inline-style-parser 0.2.7+add ini 1.3.8+add inherits 2.0.4+add inflight 1.0.6+add index-to-position 1.2.0+add indent-string 4.0.0+add imurmurhash 0.1.4+add import-meta-resolve 4.2.0+add import-fresh 3.3.1+add immer 11.1.15+add immediate 3.0.6+add ignore 5.3.2+add ieee754 1.2.1+add iconv-lite 0.6.3+add https-proxy-agent 7.0.6+add http-proxy-agent 7.0.2+add htmlparser2 10.1.0+add entities 7.0.1+add html-void-elements 3.0.0+add html-url-attributes 3.0.1+add html-escaper 2.0.2+add html-encoding-sniffer 4.0.0+add hosted-git-info 4.1.0+add yallist 4.0.0+add lru-cache 6.0.0+add he 1.2.0+add hast-util-whitespace 3.0.0+add hast-util-to-jsx-runtime 2.3.6+add hast-util-to-html 9.0.5+add hast-util-to-estree 3.1.3+add hasown 2.0.4+add has-tostringtag 1.0.2+add has-symbols 1.1.0+add has-proto 1.2.0+add has-property-descriptors 1.0.2+add has-flag 4.0.0+add has-bigints 1.1.0+add hachure-fill 0.5.2+add graphology-utils 2.5.2+add graphology-types 0.24.8+add graphology-layout-noverlap 0.4.2+add graphology-layout-forceatlas2 0.10.1+add graphology 0.26.0+add graceful-fs 4.2.11+add gopd 1.2.0+add globby 14.1.0+add ignore 7.0.6+add fast-glob 3.3.3+add globalthis 1.0.4+add globals 14.0.0+add glob-parent 5.1.2+add glob 10.5.0+add github-from-package 0.0.0+add get-tsconfig 4.14.0+add get-symbol-description 1.1.0+add get-proto 1.0.1+add get-nonce 1.0.1+add get-intrinsic 1.3.0+add get-east-asian-width 1.6.0+add get-caller-file 2.0.5+add gensync 1.0.0-beta.2+add generator-function 2.0.1+add geist 1.7.2+add fuse.js 7.5.0+add functions-have-names 1.2.3+add function.prototype.name 1.2.0+add function-bind 1.1.2+add fsevents 2.3.3+add fs.realpath 1.0.0+add fs-extra 11.4.0+add fs-constants 1.0.0+add framer-motion 11.18.2+add form-data 4.0.6+add foreground-child 3.3.1+add for-each 0.3.5+add flatted 3.4.3+add flat-cache 4.0.1+add flat 5.0.2+add find-up 5.0.0+add fill-range 7.1.1+add file-entry-cache 8.0.0+add fastq 1.20.1+add fast-uri 3.1.4+add fast-levenshtein 2.0.6+add fast-json-stable-stringify 2.1.0+add fast-glob 3.3.1+add fast-equals 5.4.1+add fast-deep-equal 3.1.3+add extend 3.0.2+add expect-type 1.4.0+add expand-template 2.0.3+add events 3.3.0+add eventemitter3 5.0.4+add esutils 2.0.3+add estree-walker 3.0.3+add estree-util-visit 2.0.0+add estree-util-to-js 2.0.0+add estree-util-scope 1.0.0+add estree-util-is-identifier-name 3.0.0+add estree-util-build-jsx 3.0.1+add estree-util-attach-comments 3.0.0+add estraverse 5.3.0+add esrecurse 4.3.0+add esquery 1.7.0+add espree 10.4.0+add eslint-visitor-keys 4.2.1+add eslint-scope 8.4.0+add eslint-plugin-react-hooks 5.2.0+add eslint-plugin-react 7.37.5+add minimatch 3.1.5+add brace-expansion 1.1.16+add eslint-plugin-jsx-a11y 6.10.2+add minimatch 3.1.5+add brace-expansion 1.1.16+add aria-query 5.3.2+add eslint-plugin-import 2.32.0+add minimatch 3.1.5+add debug 3.2.7+add brace-expansion 1.1.16+add eslint-module-utils 2.14.0+add debug 3.2.7+add eslint-import-resolver-typescript 3.10.1+add eslint-import-resolver-node 0.3.10+add debug 3.2.7+add eslint-config-next 15.5.21+add eslint 9.39.5+add minimatch 3.1.5+add json-schema-traverse 0.4.1+add glob-parent 6.0.2+add brace-expansion 1.1.16+add ajv 6.15.0+add escape-string-regexp 4.0.0+add escalade 3.2.0+add esbuild 0.28.1+add esast-util-from-js 2.0.1+add esast-util-from-estree 2.0.0+add es-toolkit 1.50.0+add es-to-primitive 1.3.4+add es-shim-unscopables 1.1.0+add es-set-tostringtag 2.1.0+add es-object-atoms 1.1.2+add es-module-lexer 2.3.1+add es-iterator-helpers 1.4.0+add es-errors 1.3.0+add es-define-property 1.0.1+add es-abstract-get 1.0.0+add es-abstract 1.24.2+add environment 1.1.0+add entities 4.5.0+add enhanced-resolve 5.24.3+add end-of-stream 1.4.5+add encoding-sniffer 0.2.1+add emoji-regex-xs 1.0.0+add emoji-regex 9.2.2+add elkjs 0.11.1+add electron-to-chromium 1.5.396+add editions 6.22.0+add ecdsa-sig-formatter 1.0.11+add eastasianwidth 0.2.0+add dunder-proto 1.0.1+add domutils 3.2.2+add dompurify 3.4.12+add domhandler 5.0.3+add domelementtype 2.3.0+add dom-serializer 2.0.0+add dom-helpers 5.2.1+add dom-accessibility-api 0.5.16+add doctrine 2.1.0+add diff 5.2.2+add devlop 1.1.0+add detect-node-es 1.1.0+add detect-libc 2.1.2+add dequal 2.0.3+add delayed-stream 1.0.0+add delaunator 5.1.0+add define-properties 1.2.1+add define-lazy-prop 3.0.0+add define-data-property 1.1.4+add default-browser-id 5.0.1+add default-browser 5.5.0+add deep-is 0.1.4+add deep-extend 0.6.0+add deep-eql 5.0.2+add decompress-response 6.0.0+add decode-named-character-reference 1.3.0+add decimal.js-light 2.5.1+add decimal.js 10.6.0+add decamelize 4.0.0+add debug 4.4.3+add dayjs 1.11.21+add data-view-byte-offset 1.0.1+add data-view-byte-length 1.0.2+add data-view-buffer 1.0.2+add data-urls 5.0.0+add damerau-levenshtein 1.0.8+add dagre-d3-es 7.0.14+add d3-zoom 3.0.0+add d3-transition 3.0.1+add d3-timer 3.0.1+add d3-time-format 4.1.0+add d3-time 3.1.0+add d3-shape 3.2.0+add d3-selection 3.0.0+add d3-scale-chromatic 3.1.0+add d3-scale 4.0.2+add d3-sankey 0.12.3+add internmap 1.0.1+add d3-shape 1.3.7+add d3-path 1.0.9+add d3-array 2.12.1+add d3-random 3.0.1+add d3-quadtree 3.0.1+add d3-polygon 3.0.1+add d3-path 3.1.0+add d3-interpolate 3.0.1+add d3-hierarchy 3.1.2+add d3-geo 3.1.1+add d3-format 3.1.2+add d3-force 3.0.0+add d3-fetch 3.0.1+add d3-ease 3.0.1+add d3-dsv 3.0.1+add commander 7.2.0+add d3-drag 3.0.0+add d3-dispatch 3.0.1+add d3-delaunay 6.0.4+add d3-contour 4.0.2+add d3-color 3.1.0+add d3-chord 3.0.1+add d3-brush 3.0.0+add d3-axis 3.0.0+add d3-array 3.2.4+add d3 7.9.0+add cytoscape-fcose 2.2.0+add layout-base 2.0.1+add cose-base 2.2.0+add cytoscape-cose-bilkent 4.1.0+add cytoscape 3.34.0+add csstype 3.2.3+add cssstyle 4.6.0+add rrweb-cssom 0.8.0+add cssesc 3.0.0+add css.escape 1.5.1+add css-what 6.2.2+add css-select 5.2.2+add cross-spawn 7.0.6+add cose-base 1.0.3+add core-util-is 1.0.3+add convert-source-map 2.0.0+add concat-map 0.0.1+add commander 12.1.0+add comma-separated-tokens 2.0.3+add combined-stream 1.0.8+add color-name 1.1.4+add color-convert 2.0.1+add collapse-white-space 2.1.0+add cockatiel 3.2.1+add cmdk 1.1.1+add clsx 2.1.1+add cliui 8.0.1+add wrap-ansi 7.0.0+add strip-ansi 6.0.1+add client-only 0.0.1+add cli-spinners 2.9.2+add cli-cursor 5.0.0+add classcat 5.0.5+add class-variance-authority 0.7.1+add chownr 1.1.4+add chokidar 3.6.0+add cheerio-select 2.1.0+add cheerio 1.2.0+add check-error 2.1.3+add character-reference-invalid 2.0.1+add character-entities-legacy 3.0.0+add character-entities-html4 2.1.0+add character-entities 2.0.2+add chalk 4.1.2+add supports-color 7.2.0+add chai 6.2.2+add ccount 2.0.1+add caniuse-lite 1.0.30001806+add camelcase 6.3.0+add callsites 3.1.0+add call-bound 1.0.4+add call-bind-apply-helpers 1.0.2+add call-bind 1.0.9+add cac 6.7.14+add c8 9.1.0+add bundle-name 4.1.0+add buffer-equal-constant-time 1.0.1+add buffer-crc32 0.2.13+add buffer 5.7.1+add browserslist 4.28.7+add browser-stdout 1.3.1+add braces 3.0.3+add brace-expansion 2.1.2+add boundary 2.0.0+add boolbase 1.0.0+add bl 4.1.0+add readable-stream 3.6.2+add binaryextensions 6.11.0+add binary-extensions 2.3.0+add baseline-browser-mapping 2.11.1+add base64-js 1.5.1+add balanced-match 1.0.2+add bail 2.0.2+add azure-devops-node-api 12.5.0+add axobject-query 4.1.0+add axe-core 4.12.1+add available-typed-arrays 1.0.7+add asynckit 0.4.0+add async-function 1.0.0+add astring 1.9.0+add astral-regex 2.0.0+add ast-types-flow 0.0.8+add assertion-error 2.0.1+add arraybuffer.prototype.slice 1.0.4+add array.prototype.tosorted 1.1.4+add array.prototype.flatmap 1.3.3+add array.prototype.flat 1.3.3+add array.prototype.findlastindex 1.2.6+add array.prototype.findlast 1.2.5+add array-includes 3.1.9+add array-buffer-byte-length 1.0.2+add aria-query 5.3.0+add aria-hidden 1.2.6+add argparse 2.0.1+add anymatch 3.1.3+add ansi-styles 4.3.0+add ansi-regex 5.0.1+add ansi-escapes 7.3.0+add ansi-colors 4.1.3+add ajv 8.20.0+add agent-base 7.1.4+add acorn-jsx 5.3.2+add acorn 8.17.0+add @xyflow/system 0.0.79+add @xyflow/react 12.11.2+add @vscode/vsce-sign-win32-x64 2.0.6+add @vscode/vsce-sign-win32-arm64 2.0.6+add @vscode/vsce-sign-linux-x64 2.0.6+add @vscode/vsce-sign-linux-arm64 2.0.6+add @vscode/vsce-sign-linux-arm 2.0.6+add @vscode/vsce-sign-darwin-x64 2.0.6+add @vscode/vsce-sign-darwin-arm64 2.0.6+add @vscode/vsce-sign-alpine-x64 2.0.6+add @vscode/vsce-sign-alpine-arm64 2.0.6+add @vscode/vsce-sign 2.0.9+add @vscode/vsce 3.9.2+add semver 7.8.5+add path-scurry 2.0.2+add minimatch 10.2.5+add lru-cache 11.5.2+add glob 13.0.6+add brace-expansion 5.0.8+add balanced-match 4.0.4+add @vscode/test-electron 3.0.0+add semver 7.8.5+add @vscode/test-cli 0.0.10+add @vitest/utils 4.1.10+add @vitest/spy 4.1.10+add @vitest/snapshot 4.1.10+add @vitest/runner 4.1.10+add @vitest/pretty-format 4.1.10+add @vitest/mocker 4.1.10+add @vitest/expect 4.1.10+add @vitejs/plugin-react 4.7.0+add @upsetjs/venn.js 2.0.0+add @unrs/resolver-binding-win32-x64-msvc 1.12.2+add @unrs/resolver-binding-win32-ia32-msvc 1.12.2+add @unrs/resolver-binding-win32-arm64-msvc 1.12.2+add @unrs/resolver-binding-wasm32-wasi 1.12.2+add @emnapi/runtime 1.10.0+add @unrs/resolver-binding-openharmony-arm64 1.12.2+add @unrs/resolver-binding-linux-x64-musl 1.12.2+add @unrs/resolver-binding-linux-x64-gnu 1.12.2+add @unrs/resolver-binding-linux-s390x-gnu 1.12.2+add @unrs/resolver-binding-linux-riscv64-musl 1.12.2+add @unrs/resolver-binding-linux-riscv64-gnu 1.12.2+add @unrs/resolver-binding-linux-ppc64-gnu 1.12.2+add @unrs/resolver-binding-linux-loong64-musl 1.12.2+add @unrs/resolver-binding-linux-loong64-gnu 1.12.2+add @unrs/resolver-binding-linux-arm64-musl 1.12.2+add @unrs/resolver-binding-linux-arm64-gnu 1.12.2+add @unrs/resolver-binding-linux-arm-musleabihf 1.12.2+add @unrs/resolver-binding-linux-arm-gnueabihf 1.12.2+add @unrs/resolver-binding-freebsd-x64 1.12.2+add @unrs/resolver-binding-darwin-x64 1.12.2+add @unrs/resolver-binding-darwin-arm64 1.12.2+add @unrs/resolver-binding-android-arm64 1.12.2+add @unrs/resolver-binding-android-arm-eabi 1.12.2+add @ungap/structured-clone 1.3.3+add @typespec/ts-http-runtime 0.3.7+add @typescript-eslint/visitor-keys 8.65.0+add eslint-visitor-keys 5.0.1+add @typescript-eslint/utils 8.65.0+add @typescript-eslint/typescript-estree 8.65.0+add semver 7.8.5+add minimatch 10.2.5+add brace-expansion 5.0.8+add balanced-match 4.0.4+add @typescript-eslint/types 8.65.0+add @typescript-eslint/type-utils 8.65.0+add @typescript-eslint/tsconfig-utils 8.65.0+add @typescript-eslint/scope-manager 8.65.0+add @typescript-eslint/project-service 8.65.0+add @typescript-eslint/parser 8.65.0+add @typescript-eslint/eslint-plugin 8.65.0+add ignore 7.0.6+add @types/vscode 1.101.0+add @types/use-sync-external-store 0.0.6+add @types/unist 3.0.3+add @types/trusted-types 2.0.7+add @types/sarif 2.1.7+add @types/react-dom 19.2.3+add @types/react 19.2.17+add @types/normalize-package-data 2.4.4+add @types/node 26.1.1+add @types/ms 2.1.0+add @types/mocha 10.0.10+add @types/mdx 2.0.14+add @types/mdast 4.0.4+add @types/json5 0.0.29+add @types/json-schema 7.0.15+add @types/istanbul-lib-coverage 2.0.6+add @types/hast 3.0.5+add @types/geojson 7946.0.16+add @types/estree-jsx 1.0.5+add @types/estree 1.0.9+add @types/deep-eql 4.0.2+add @types/debug 4.1.13+add @types/d3-zoom 3.0.8+add @types/d3-transition 3.0.9+add @types/d3-timer 3.0.2+add @types/d3-time-format 4.0.3+add @types/d3-time 3.0.4+add @types/d3-shape 3.1.8+add @types/d3-selection 3.0.11+add @types/d3-scale-chromatic 3.1.0+add @types/d3-scale 4.0.9+add @types/d3-random 3.0.4+add @types/d3-quadtree 3.0.6+add @types/d3-polygon 3.0.2+add @types/d3-path 3.1.1+add @types/d3-interpolate 3.0.4+add @types/d3-hierarchy 3.1.7+add @types/d3-geo 3.1.0+add @types/d3-format 3.0.4+add @types/d3-force 3.0.10+add @types/d3-fetch 3.0.7+add @types/d3-ease 3.0.2+add @types/d3-dsv 3.0.7+add @types/d3-drag 3.0.7+add @types/d3-dispatch 3.0.7+add @types/d3-delaunay 6.0.4+add @types/d3-contour 3.0.6+add @types/d3-color 3.1.3+add @types/d3-chord 3.0.6+add @types/d3-brush 3.0.6+add @types/d3-axis 3.0.6+add @types/d3-array 3.2.2+add @types/d3 7.4.3+add @types/chai 5.2.3+add @types/babel__traverse 7.28.0+add @types/babel__template 7.4.4+add @types/babel__generator 7.27.0+add @types/babel__core 7.20.5+add @types/aria-query 5.0.4+add @tybys/wasm-util 0.10.3+add @textlint/types 15.7.1+add @textlint/resolver 15.7.1+add @textlint/module-interop 15.7.1+add @textlint/linter-formatter 15.7.1+add strip-ansi 6.0.1+add pluralize 2.0.0+add @textlint/ast-node-types 15.7.1+add @testing-library/react 16.3.2+add @testing-library/jest-dom 6.9.1+add dom-accessibility-api 0.6.3+add @testing-library/dom 10.4.1+add @tanstack/virtual-core 3.17.6+add @tanstack/react-virtual 3.14.8+add @tailwindcss/vite 4.3.3+add @tailwindcss/typography 0.5.20+add @tailwindcss/postcss 4.3.3+add @tailwindcss/oxide-win32-x64-msvc 4.3.3+add @tailwindcss/oxide-win32-arm64-msvc 4.3.3+add @tailwindcss/oxide-wasm32-wasi 4.3.3+add @tailwindcss/oxide-linux-x64-musl 4.3.3+add @tailwindcss/oxide-linux-x64-gnu 4.3.3+add @tailwindcss/oxide-linux-arm64-musl 4.3.3+add @tailwindcss/oxide-linux-arm64-gnu 4.3.3+add @tailwindcss/oxide-linux-arm-gnueabihf 4.3.3+add @tailwindcss/oxide-freebsd-x64 4.3.3+add @tailwindcss/oxide-darwin-x64 4.3.3+add @tailwindcss/oxide-darwin-arm64 4.3.3+add @tailwindcss/oxide-android-arm64 4.3.3+add @tailwindcss/oxide 4.3.3+add @tailwindcss/node 4.3.3+add @swc/helpers 0.5.15+add @standard-schema/utils 0.3.0+add @standard-schema/spec 1.1.0+add @sindresorhus/merge-streams 2.3.0+add @sigma/edge-curve 3.1.0+add @shikijs/vscode-textmate 10.0.2+add @shikijs/types 4.3.1+add @shikijs/themes 4.3.1+add @shikijs/primitive 4.3.1+add @shikijs/langs 4.3.1+add @shikijs/engine-oniguruma 4.3.1+add @shikijs/engine-javascript 4.3.1+add @shikijs/core 4.3.1+add @secretlint/types 10.2.2+add @secretlint/source-creator 10.2.2+add @secretlint/secretlint-rule-preset-recommend 10.2.2+add @secretlint/secretlint-rule-no-dotenv 10.2.2+add @secretlint/secretlint-formatter-sarif 10.2.2+add @secretlint/resolver 10.2.2+add @secretlint/profiler 10.2.2+add @secretlint/node 10.2.2+add @secretlint/formatter 10.2.2+add chalk 5.6.2+add @secretlint/core 10.2.2+add @secretlint/config-loader 10.2.2+add @secretlint/config-creator 10.2.2+add @rushstack/eslint-patch 1.16.1+add @rtsao/scc 1.1.0+add @rollup/rollup-win32-x64-msvc 4.62.2+add @rollup/rollup-win32-x64-gnu 4.62.2+add @rollup/rollup-win32-ia32-msvc 4.62.2+add @rollup/rollup-win32-arm64-msvc 4.62.2+add @rollup/rollup-openharmony-arm64 4.62.2+add @rollup/rollup-openbsd-x64 4.62.2+add @rollup/rollup-linux-x64-musl 4.62.2+add @rollup/rollup-linux-x64-gnu 4.62.2+add @rollup/rollup-linux-s390x-gnu 4.62.2+add @rollup/rollup-linux-riscv64-musl 4.62.2+add @rollup/rollup-linux-riscv64-gnu 4.62.2+add @rollup/rollup-linux-ppc64-musl 4.62.2+add @rollup/rollup-linux-ppc64-gnu 4.62.2+add @rollup/rollup-linux-loong64-musl 4.62.2+add @rollup/rollup-linux-loong64-gnu 4.62.2+add @rollup/rollup-linux-arm64-musl 4.62.2+add @rollup/rollup-linux-arm64-gnu 4.62.2+add @rollup/rollup-linux-arm-musleabihf 4.62.2+add @rollup/rollup-linux-arm-gnueabihf 4.62.2+add @rollup/rollup-freebsd-x64 4.62.2+add @rollup/rollup-freebsd-arm64 4.62.2+add @rollup/rollup-darwin-x64 4.62.2+add @rollup/rollup-darwin-arm64 4.62.2+add @rollup/rollup-android-arm64 4.62.2+add @rollup/rollup-android-arm-eabi 4.62.2+add @rolldown/pluginutils 1.0.0-beta.27+add @reduxjs/toolkit 2.12.0+add @radix-ui/rect 1.1.3+add @radix-ui/react-visually-hidden 1.2.9+add @radix-ui/react-use-size 1.1.3+add @radix-ui/react-use-rect 1.1.3+add @radix-ui/react-use-previous 1.1.3+add @radix-ui/react-use-layout-effect 1.1.3+add @radix-ui/react-use-is-hydrated 0.1.2+add @radix-ui/react-use-effect-event 0.0.4+add @radix-ui/react-use-controllable-state 1.2.5+add @radix-ui/react-use-callback-ref 1.1.3+add @radix-ui/react-tooltip 1.2.14+add @radix-ui/react-tabs 1.1.19+add @radix-ui/react-switch 1.3.5+add @radix-ui/react-slot 1.3.1+add @radix-ui/react-slider 1.4.5+add @radix-ui/react-separator 1.1.13+add @radix-ui/react-select 2.3.5+add @radix-ui/react-scroll-area 1.2.16+add @radix-ui/react-roving-focus 1.1.17+add @radix-ui/react-progress 1.1.14+add @radix-ui/react-primitive 2.1.8+add @radix-ui/react-presence 1.1.9+add @radix-ui/react-portal 1.1.15+add @radix-ui/react-popper 1.3.5+add @radix-ui/react-popover 1.1.21+add @radix-ui/react-label 2.1.13+add @radix-ui/react-id 1.1.3+add @radix-ui/react-hover-card 1.1.21+add @radix-ui/react-focus-scope 1.1.14+add @radix-ui/react-focus-guards 1.1.5+add @radix-ui/react-dismissable-layer 1.1.17+add @radix-ui/react-direction 1.1.3+add @radix-ui/react-dialog 1.1.21+add @radix-ui/react-context 1.2.1+add @radix-ui/react-compose-refs 1.1.4+add @radix-ui/react-collection 1.1.13+add @radix-ui/react-arrow 1.1.13+add @radix-ui/primitive 1.1.7+add @radix-ui/number 1.1.3+add @pkgjs/parseargs 0.11.0+add @nolyfill/is-core-module 1.0.39+add @nodelib/fs.walk 1.2.8+add @nodelib/fs.stat 2.0.5+add @nodelib/fs.scandir 2.1.5+add @next/swc-win32-x64-msvc 15.5.21+add @next/swc-win32-arm64-msvc 15.5.21+add @next/swc-linux-x64-musl 15.5.21+add @next/swc-linux-x64-gnu 15.5.21+add @next/swc-linux-arm64-musl 15.5.21+add @next/swc-linux-arm64-gnu 15.5.21+add @next/swc-darwin-x64 15.5.21+add @next/swc-darwin-arm64 15.5.21+add @next/eslint-plugin-next 15.5.21+add @next/env 15.5.21+add @napi-rs/wasm-runtime 1.1.6+add @mermaid-js/parser 1.2.0+add @mdx-js/react 3.1.1+add @mdx-js/mdx 3.1.1+add @lottiefiles/dotlottie-web 0.78.2+add @lottiefiles/dotlottie-react 0.19.12+add @jridgewell/trace-mapping 0.3.31+add @jridgewell/sourcemap-codec 1.5.5+add @jridgewell/resolve-uri 3.1.2+add @jridgewell/remapping 2.3.5+add @jridgewell/gen-mapping 0.3.13+add @istanbuljs/schema 0.1.6+add @isaacs/cliui 8.0.2+add string-width 5.1.2+add @img/sharp-win32-x64 0.35.3+add @img/sharp-win32-ia32 0.35.3+add @img/sharp-win32-arm64 0.35.3+add @img/sharp-webcontainers-wasm32 0.35.3+add @img/sharp-wasm32 0.35.3+add @img/sharp-linuxmusl-x64 0.35.3+add @img/sharp-linuxmusl-arm64 0.35.3+add @img/sharp-linux-x64 0.35.3+add @img/sharp-linux-s390x 0.35.3+add @img/sharp-linux-riscv64 0.35.3+add @img/sharp-linux-ppc64 0.35.3+add @img/sharp-linux-arm64 0.35.3+add @img/sharp-linux-arm 0.35.3+add @img/sharp-libvips-linuxmusl-x64 1.3.2+add @img/sharp-libvips-linuxmusl-arm64 1.3.2+add @img/sharp-libvips-linux-x64 1.3.2+add @img/sharp-libvips-linux-s390x 1.3.2+add @img/sharp-libvips-linux-riscv64 1.3.2+add @img/sharp-libvips-linux-ppc64 1.3.2+add @img/sharp-libvips-linux-arm64 1.3.2+add @img/sharp-libvips-linux-arm 1.3.2+add @img/sharp-libvips-darwin-x64 1.3.2+add @img/sharp-libvips-darwin-arm64 1.3.2+add @img/sharp-freebsd-wasm32 0.35.3+add @img/sharp-darwin-x64 0.35.3+add @img/sharp-darwin-arm64 0.35.3+add @img/colour 1.1.0+add @iconify/utils 3.1.4+add @iconify/types 2.0.0+add @humanwhocodes/retry 0.4.3+add @humanwhocodes/module-importer 1.0.1+add @humanfs/types 0.15.0+add @humanfs/node 0.16.8+add @humanfs/core 0.19.2+add @floating-ui/utils 0.2.12+add @floating-ui/react-dom 2.1.9+add @floating-ui/dom 1.8.0+add @floating-ui/core 1.8.0+add @eslint/plugin-kit 0.4.1+add @eslint/object-schema 2.1.7+add @eslint/js 9.39.5+add @eslint/eslintrc 3.3.6+add minimatch 3.1.5+add json-schema-traverse 0.4.1+add brace-expansion 1.1.16+add ajv 6.15.0+add @eslint/core 0.17.0+add @eslint/config-helpers 0.4.2+add @eslint/config-array 0.21.2+add minimatch 3.1.5+add brace-expansion 1.1.16+add @eslint-community/regexpp 4.12.2+add @eslint-community/eslint-utils 4.10.1+add eslint-visitor-keys 3.4.3+add @esbuild/win32-x64 0.28.1+add @esbuild/win32-ia32 0.28.1+add @esbuild/win32-arm64 0.28.1+add @esbuild/sunos-x64 0.28.1+add @esbuild/openharmony-arm64 0.28.1+add @esbuild/openbsd-x64 0.28.1+add @esbuild/openbsd-arm64 0.28.1+add @esbuild/netbsd-x64 0.28.1+add @esbuild/netbsd-arm64 0.28.1+add @esbuild/linux-x64 0.28.1+add @esbuild/linux-s390x 0.28.1+add @esbuild/linux-riscv64 0.28.1+add @esbuild/linux-ppc64 0.28.1+add @esbuild/linux-mips64el 0.28.1+add @esbuild/linux-loong64 0.28.1+add @esbuild/linux-ia32 0.28.1+add @esbuild/linux-arm64 0.28.1+add @esbuild/linux-arm 0.28.1+add @esbuild/freebsd-x64 0.28.1+add @esbuild/freebsd-arm64 0.28.1+add @esbuild/darwin-x64 0.28.1+add @esbuild/darwin-arm64 0.28.1+add @esbuild/android-x64 0.28.1+add @esbuild/android-arm64 0.28.1+add @esbuild/android-arm 0.28.1+add @esbuild/aix-ppc64 0.28.1+add @emnapi/wasi-threads 1.2.1+add @emnapi/runtime 1.11.2+add @emnapi/core 1.10.0+add @csstools/css-tokenizer 3.0.4+add @csstools/css-parser-algorithms 3.0.5+add @csstools/css-color-parser 3.1.0+add @csstools/css-calc 2.1.4+add @csstools/color-helpers 5.1.0+add @chevrotain/types 11.1.2+add @braintree/sanitize-url 7.1.2+add @bcoe/v8-coverage 0.2.3+add @babel/types 7.29.7+add @babel/traverse 7.29.7+add @babel/template 7.29.7+add @babel/runtime 7.29.7+add @babel/plugin-transform-react-jsx-source 7.29.7+add @babel/plugin-transform-react-jsx-self 7.29.7+add @babel/parser 7.29.7+add @babel/helpers 7.29.7+add @babel/helper-validator-option 7.29.7+add @babel/helper-validator-identifier 7.29.7+add @babel/helper-string-parser 7.29.7+add @babel/helper-plugin-utils 7.29.7+add @babel/helper-module-transforms 7.29.7+add @babel/helper-module-imports 7.29.7+add @babel/helper-globals 7.29.7+add @babel/helper-compilation-targets 7.29.7+add @babel/generator 7.29.7+add @babel/core 7.29.7+add @babel/compat-data 7.29.7+add @babel/code-frame 7.29.7+add @azure/msal-node 5.4.2+add @azure/msal-common 16.11.2+add @azure/msal-browser 5.17.1+add @azure/logger 1.4.0+add @azure/identity 4.13.1+add @azure/core-util 1.14.0+add @azure/core-tracing 1.4.0+add @azure/core-rest-pipeline 1.25.0+add @azure/core-client 1.11.0+add @azure/core-auth 1.11.0+add @azure/abort-controller 2.2.0+add @azu/style-format 1.0.1+add @azu/format-text 1.0.2+add @asamuzakjp/css-color 3.2.0+add lru-cache 10.4.3+add @antfu/install-pkg 1.1.0+add @alloc/quick-lru 5.2.0+add @adobe/css-tools 4.5.0++added 1344 packages in 1s++431 packages are looking for funding+ run `npm fund` for detailsdiff --git a/tests/fixtures/distill/install_pip.txt b/tests/fixtures/distill/install_pip.txtnew file mode 100644index 000000000..029b7ae92--- /dev/null+++ b/tests/fixtures/distill/install_pip.txt@@ -0,0 +1,17 @@+Requirement already satisfied: requests in c:\users\ragha\desktop\repowise\.venv\lib\site-packages (2.33.1)+Requirement already satisfied: rich in c:\users\ragha\desktop\repowise\.venv\lib\site-packages (13.9.4)+Requirement already satisfied: pytest in c:\users\ragha\desktop\repowise\.venv\lib\site-packages (9.0.3)+Requirement already satisfied: charset_normalizer<4,>=2 in c:\users\ragha\desktop\repowise\.venv\lib\site-packages (from requests) (3.4.7)+Requirement already satisfied: idna<4,>=2.5 in c:\users\ragha\desktop\repowise\.venv\lib\site-packages (from requests) (3.13)+Requirement already satisfied: urllib3<3,>=1.26 in c:\users\ragha\desktop\repowise\.venv\lib\site-packages (from requests) (2.6.3)+Requirement already satisfied: certifi>=2023.5.7 in c:\users\ragha\desktop\repowise\.venv\lib\site-packages (from requests) (2026.4.22)+Requirement already satisfied: markdown-it-py>=2.2.0 in c:\users\ragha\desktop\repowise\.venv\lib\site-packages (from rich) (4.0.0)+Requirement already satisfied: pygments<3.0.0,>=2.13.0 in c:\users\ragha\desktop\repowise\.venv\lib\site-packages (from rich) (2.20.0)+Requirement already satisfied: colorama>=0.4 in c:\users\ragha\desktop\repowise\.venv\lib\site-packages (from pytest) (0.4.6)+Requirement already satisfied: iniconfig>=1.0.1 in c:\users\ragha\desktop\repowise\.venv\lib\site-packages (from pytest) (2.3.0)+Requirement already satisfied: packaging>=22 in c:\users\ragha\desktop\repowise\.venv\lib\site-packages (from pytest) (26.2)+Requirement already satisfied: pluggy<2,>=1.5 in c:\users\ragha\desktop\repowise\.venv\lib\site-packages (from pytest) (1.6.0)+Requirement already satisfied: mdurl~=0.1 in c:\users\ragha\desktop\repowise\.venv\lib\site-packages (from markdown-it-py>=2.2.0->rich) (0.1.2)++[notice] A new release of pip is available: 25.1.1 -> 26.1.2+[notice] To update, run: python.exe -m pip install --upgrade pipdiff --git a/tests/unit/distill/test_rewrite_hook.py b/tests/unit/distill/test_rewrite_hook.pyindex 617e68120..73473d5f2 100644--- a/tests/unit/distill/test_rewrite_hook.py+++ b/tests/unit/distill/test_rewrite_hook.py@@ -53,6 +53,19 @@ class TestClassify:("mypy packages", "lint_output"),("cargo clippy", "lint_output"),("golangci-lint run", "lint_output"),+ # install logs+ ("pip install flask", "install_output"),+ ("uv pip install requests rich", "install_output"),+ ("uv sync", "install_output"),+ ("npm ci", "install_output"),+ ("npm install", "install_output"),+ ("poetry install", "install_output"),+ ("cargo install ripgrep", "install_output"),+ ("brew install jq", "install_output"),+ # infra plans+ ("terraform plan", "infra_plan"),+ ("tofu plan -out plan.bin", "infra_plan"),+ ("helm diff upgrade myrel ./chart", "infra_plan"),# git("git status", "git_status"),("git log --oneline -20", "git_log"),diff --git a/tests/unit/distill/test_rewrite_perf.py b/tests/unit/distill/test_rewrite_perf.pyindex b8ced5cab..b89c60a25 100644--- a/tests/unit/distill/test_rewrite_perf.py+++ b/tests/unit/distill/test_rewrite_perf.py@@ -1,7 +1,9 @@"""Hot-path guarantees for the ``repowise-rewrite`` PreToolUse hook.-The hook fires on EVERY Bash tool call an agent makes, so it must answer in-well under 100 ms p95. Two layers of protection:+The hook fires on EVERY Bash tool call an agent makes, so it must answer+quickly — a 150 ms p95 budget, which comfortably clears interpreter/console-+script startup even on slower Windows hosts while still catching a regression+that pulls in the heavy stack. Two layers of protection:1. An import-graph guard: the hook module (and the adapters it uses) mustnever pull click, sqlalchemy, structlog, or any ``repowise.core``@@ -59,7 +61,7 @@ def _hook_invocation() -> list[str]:return [sys.executable, "-c", "from repowise.cli.rewrite_hook import main; main()"]-def test_p95_under_100ms(tmp_path: Path) -> None:+def test_p95_under_150ms(tmp_path: Path) -> None:(tmp_path / ".repowise").mkdir()payload = json.dumps({@@ -84,4 +86,4 @@ def test_p95_under_100ms(tmp_path: Path) -> None:timings.sort()p95 = timings[int(len(timings) * 0.95) - 1]- assert p95 < 100, f"repowise-rewrite p95 {p95:.1f} ms >= 100 ms (all: {timings})"+ assert p95 < 150, f"repowise-rewrite p95 {p95:.1f} ms >= 150 ms (all: {timings})"diff --git a/tests/unit/distill/test_toml_filters.py b/tests/unit/distill/test_toml_filters.pynew file mode 100644index 000000000..baca61851--- /dev/null+++ b/tests/unit/distill/test_toml_filters.py@@ -0,0 +1,139 @@+"""CI validation for the data-driven TOML filters.++There is no build step in this project, so the inline ``[[tests.<name>]]``+cases each ``filters_toml/*.toml`` ships are validated here instead. For every+built-in filter definition this module:++- runs its inline cases (``input`` -> ``expected``),+- asserts zero error-line loss on every case,+- asserts a per-file median savings floor (``[meta] savings_floor``),++so a data-authored filter is held to the same bar as the hand-written ones.+It also pins the errors-first invariant (a hostile definition cannot drop an+error line) and guards against routing regressions as new filters are added.+"""++from __future__ import annotations++import statistics+import tomllib+from pathlib import Path++import pytest++from repowise.core.distill.budget import estimate_tokens, savings_pct+from repowise.core.distill.filters.base import is_error_line+from repowise.core.distill.registry import filter_registry+from repowise.core.distill.router import select_filter+from repowise.core.distill.toml_filter import _BUILTIN_DIR, TomlFilter, parse_toml_filters++# Default floor when a file omits ``[meta] savings_floor``.+_DEFAULT_SAVINGS_FLOOR = 60.0+++def _toml_files() -> list[Path]:+ return sorted(_BUILTIN_DIR.glob("*.toml"))+++def _load(path: Path) -> tuple[dict[str, TomlFilter], dict, list[tuple[TomlFilter, dict]]]:+ """Return ``(filters_by_name, meta, [(filter, case), ...])`` for one file."""+ data = tomllib.loads(path.read_text(encoding="utf-8"))+ filters = {f.name: f for f in parse_toml_filters(path)}+ meta = data.get("meta") or {}+ cases: list[tuple[TomlFilter, dict]] = []+ for name, entries in (data.get("tests") or {}).items():+ assert name in filters, f"{path.name}: tests for unknown filter {name!r}"+ cases.extend((filters[name], case) for case in entries)+ return filters, meta, cases+++def _all_cases() -> list[tuple[str, TomlFilter, dict]]:+ out: list[tuple[str, TomlFilter, dict]] = []+ for path in _toml_files():+ _filters, _meta, cases = _load(path)+ out.extend((path.name, f, case) for f, case in cases)+ return out+++def _case_id(param: tuple[str, TomlFilter, dict]) -> str:+ file, _f, case = param+ return f"{file}::{case['name']}"+++_CASES = _all_cases()++[email protected]("param", _CASES, ids=[_case_id(p) for p in _CASES])+def test_inline_case_matches_expected(param: tuple[str, TomlFilter, dict]) -> None:+ _file, f, case = param+ got = f.distill(case["input"].strip("\n"))+ assert got.strip() == case["expected"].strip()++[email protected]("param", _CASES, ids=[_case_id(p) for p in _CASES])+def test_inline_case_preserves_error_lines(param: tuple[str, TomlFilter, dict]) -> None:+ _file, f, case = param+ raw = case["input"].strip("\n")+ got = f.distill(raw)+ for line in raw.splitlines():+ if is_error_line(line):+ assert line in got, f"error line dropped: {line!r}"++[email protected]("path", _toml_files(), ids=lambda p: p.name)+def test_per_file_savings_floor(path: Path) -> None:+ _filters, meta, cases = _load(path)+ assert cases, f"{path.name}: no inline tests declared"+ floor = float(meta.get("savings_floor", _DEFAULT_SAVINGS_FLOOR))+ pcts = [+ savings_pct(+ estimate_tokens(raw := case["input"].strip("\n")), estimate_tokens(f.distill(raw))+ )+ for f, case in cases+ ]+ median = statistics.median(pcts)+ assert median >= floor, f"{path.name}: median savings {median:.1f}% < floor {floor:.0f}%"+++def test_hostile_filter_cannot_drop_error_line() -> None:+ """A definition that tries to strip everything still cannot lose an error."""+ hostile = TomlFilter(+ {+ "name": "hostile",+ "strip_lines_matching": [".*"], # strip every line+ "match_output": [{"pattern": ".*", "message": "all clean"}], # and short-circuit+ "on_empty": "nothing here",+ }+ )+ out = hostile.distill("ok line 1\nERROR: could not build wheel for numpy\nok line 2")+ assert "ERROR: could not build wheel for numpy" in out+ assert out != "all clean" # short-circuit is gated on error-free output+++def test_builtin_filters_registered() -> None:+ names = {f.name for f in filter_registry.filters()}+ assert {"install_output", "infra_plan"} <= names+++ ("command", "expected"),+ [+ # new data filters route+ ("uv pip install requests", "install_output"),+ ("pip install flask", "install_output"),+ ("npm ci", "install_output"),+ ("poetry install", "install_output"),+ ("terraform plan", "infra_plan"),+ ("tofu plan -out plan.bin", "infra_plan"),+ # existing families must not regress with the data filters loaded+ ("pytest -x", "test_output"),+ ("ruff check .", "lint_output"),+ ("npm run build", "build_output"),+ ("git status", "git_status"),+ ("git log --oneline -5", "git_log"),+ ("rg TODO src", "search_results"),+ ],+)+def test_routing_no_regression(command: str, expected: str) -> None:+ chosen = select_filter(command, "")+ assert chosen is not None and chosen.name == expected