Skip to content

Commit 47a55d3

Browse files
si1verwind17claude
andcommitted
Scanner: group the vizcode package by stage
The package was 35 flat modules, and every new feature added more. It now has one subpackage per pipeline stage: scan/ (repository to structure.json, with the language adapters and packs), map/ (assemble and check code-map.json) and layout/ (positions). The versions and the helpers every stage uses (ids, gitsrc, readme) stay at the top level. Only the package moves: the commands SKILL.md runs keep their paths, and the map format, scanner, schema and rules versions are unchanged, so existing maps rescan incrementally as before. Imports in the commands, tests and viewer tooling, the schema and CHANGES.md lookups, and the paths in SKILL.md, format.md and DEVELOPMENT.md follow the move. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent 758523a commit 47a55d3

144 files changed

Lines changed: 275 additions & 226 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎DEVELOPMENT.md‎

Lines changed: 1 addition & 0 deletions

‎skills/visualizing-codebases/SKILL.md‎

Lines changed: 2 additions & 2 deletions

‎skills/visualizing-codebases/format.md‎

Lines changed: 4 additions & 4 deletions

‎skills/visualizing-codebases/scripts/assemble.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@
1818

1919
import audit # noqa: E402
2020
import view # noqa: E402
21-
from vizcode import gitsrc, mapcheck # noqa: E402
22-
from vizcode.assemble import assemble, ensure_repo_files, evidence_errors, meaning_errors # noqa: E402
21+
from vizcode import gitsrc # noqa: E402
22+
from vizcode.map import mapcheck # noqa: E402
23+
from vizcode.map.assemble import assemble, ensure_repo_files, evidence_errors, meaning_errors # noqa: E402
2324

2425

2526
def main(argv: list[str] | None = None) -> int:

‎skills/visualizing-codebases/scripts/audit.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@
2020

2121
sys.path.insert(0, str(Path(__file__).resolve().parent))
2222

23-
from vizcode import findings, gitsrc, mapcheck, readme # noqa: E402
24-
from vizcode.notes import parse_notes # noqa: E402
23+
from vizcode.map import findings, mapcheck # noqa: E402
24+
from vizcode import gitsrc, readme # noqa: E402
25+
from vizcode.map.notes import parse_notes # noqa: E402
2526

2627
AUDIT_MJS = Path(__file__).resolve().parent.parent / "viewer" / "dist" / "audit.mjs"
2728
SKIP = "drawing checks skipped: "

‎skills/visualizing-codebases/scripts/config.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import sys
1515
from pathlib import Path
1616

17-
from vizcode import secrets # noqa: E402
17+
from vizcode.scan import secrets # noqa: E402
1818

1919
ENV_FILES = (".env", ".env.*", "*.env")
2020
TEMPLATES = ("*.example", "*.sample", "*.template", "*.example.*", "*.sample.*", "*.template.*")

‎skills/visualizing-codebases/scripts/diff.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@
2828

2929
import audit # noqa: E402
3030
import view # noqa: E402
31-
from vizcode import gitsrc, rules # noqa: E402
32-
from vizcode.incremental import SOURCE_SUFFIXES, plan # noqa: E402
31+
from vizcode import gitsrc # noqa: E402
32+
from vizcode.map import rules # noqa: E402
33+
from vizcode.map.incremental import SOURCE_SUFFIXES, plan # noqa: E402
3334

3435
PREVIOUS = "meaning.previous.json"
3536

‎skills/visualizing-codebases/scripts/examples.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717

1818
sys.path.insert(0, str(Path(__file__).resolve().parent))
1919

20-
from vizcode import examples, gitsrc # noqa: E402
20+
from vizcode.map import examples # noqa: E402
21+
from vizcode import gitsrc # noqa: E402
2122

2223

2324
def _mark(found: list[dict]) -> str:

‎skills/visualizing-codebases/scripts/extract.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414

1515
sys.path.insert(0, str(Path(__file__).resolve().parent))
1616

17-
from vizcode import gitsrc, stack, structure # noqa: E402
17+
from vizcode import gitsrc # noqa: E402
18+
from vizcode.scan import stack, structure # noqa: E402
1819

1920

2021
def main(argv: list[str] | None = None) -> int:

‎skills/visualizing-codebases/scripts/validate.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
sys.path.insert(0, str(Path(__file__).resolve().parent))
1010

11-
from vizcode import mapcheck # noqa: E402
11+
from vizcode.map import mapcheck # noqa: E402
1212

1313

1414
def main(argv: list[str] | None = None) -> int:

0 commit comments

Comments
 (0)