Skip to content

docs: position codeshot as the docs-and-CI layer for CodeGraph; v0.3.0 - #50

Merged
inth3shadows merged 2 commits into
masterfrom
claude-20261016-074652-212
Oct 16, 2026
Merged

inth3shadows merged 2 commits into
masterfrom
claude-20261016-074652-212

Conversation

@inth3shadows

@inth3shadows inth3shadows commented Oct 16, 2026 •

Copy link
Copy Markdown
Owner

Why

CodeGraph is building an interactive viewer (codegraph ui: on upstream main, gated and not in any release yet). It covers ad-hoc exploration of one symbol's trail. The README now leads with what a viewer can't do: committed diagrams that CI keeps honest.

What changed

  • README intro: a table of three jobs (--embed --check, --forbid, --diff), and a GitHub Actions example that runs --check and --forbid in one scan. The example pins the actions by SHA, @colbymchenry/codegraph@1.6.0 and codeshot#v0.3.0, and passes an explicit --out.
  • Section order: architecture → diff → single-symbol trail → flags shared by every mode.
  • Accuracy fixes from two review rounds:
    • The committed diagram needs the same codegraph build and Node line as CI.
    • --limit is ignored by the Node 22.5+ direct index read, and the README now lists when codeshot falls back to the CLI.
    • The default --embed filename includes the checkout directory, so always pass --out.
    • The design decision now describes the direct index read.
    • --depth/--max-depth-nodes are rejected only when not left at their defaults.
  • USAGE.md / TECHNICAL.md / package.json: the same corrections, the new description, and version 0.3.0.

Release

After merge, tag v0.3.0 on the merge commit. release.yml publishes it, and the README's #v0.3.0 pin resolves. v0.2.0 predates --forbid.

Verification

  • npm test: 195 passed, 0 failed.
  • README quickstart run in a fresh copy of the repo: embed exit 0, then --check --forbid exit 0.
  • Combined command on this repo: exit 0 with a clean rule, exit 1 with test/->render/.
  • The YAML example parses, and all pins resolve.

Follow-ups (to file)

  • The default --embed filename includes the checkout directory (the code fix, rather than the doc workaround).
  • npm codegraph 1.6.1/1.6.2 may already ship #1801. Re-evaluate the pin and the "not yet in an npm release" text.

CodeGraph is growing an interactive viewer (`codegraph ui`, on upstream main,
not yet released), which covers ad-hoc exploration of one symbol's trail.
Lead the README with what a viewer can't do: committed diagrams kept honest
by --embed/--check, --forbid architecture rules, and --diff for PR review.

- New intro: three-job table, GitHub Actions example, "why" vs on-demand tools
- Reorder modes: architecture, diff, single-symbol trail
- Split the old Usage list into symbol-only flags and flags shared by every mode
- Design decisions: standalone-tool rationale now reflects the viewer
- CI example: explicit --out, one combined --check --forbid scan, pinned
  actions/codegraph/codeshot; no longer claims to match ci.yml exactly
- Say committed diagrams need CI's codegraph build and Node line, and when
  --limit is ignored (Node 22.5+ direct index read) and its fallbacks
- Design decision now describes the direct index read; viewer claims
  hedged as unreleased
- USAGE/TECHNICAL: --out in embed/check examples, default filename caveat,
  depth-flag rejection only when non-default; package description
- Version 0.3.0 so the README can pin #v0.3.0 (first tag with --forbid)
@inth3shadows inth3shadows changed the title docs(readme): position codeshot as the docs-and-CI layer for CodeGraph docs: position codeshot as the docs-and-CI layer for CodeGraph; v0.3.0 Oct 16, 2026
@inth3shadows
inth3shadows merged commit 68b5053 into master Oct 16, 2026
7 checks passed
@inth3shadows
inth3shadows deleted the claude-20261016-074652-212 branch October 16, 2026 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant