Repository navigation
docs(entity-map): cli, format and cloud pages (#2098) - #345
Merged
Merged
Conversation
Completes the Entity map group: index and fixing from #338, mcp from #342, and now the three that were missing. **cli.mdx** — where the map appears in each of the six report formats and what each one actually carries, `squirrel entities` with every flag and format, the diff, and the three store tables with the queries worth knowing. The one worth calling out is `entity_occurrences`: a node's `pages` array is capped at 50, so "every page that declares this Organization" is answerable from that table or from the document's own uncapped page index, and never from the node. **format.mdx** — the version 1 document, the JSON-LD export and the change set, with a real sample of each from an audit of docs.squirrelscan.com. Covers the four key shapes, what can and cannot dangle, and why `coverage` on a gainedId row needs both of its halves. **cloud.mdx** — the dashboard Entities page, its filters and exports, and the two API endpoints. Two differences from the local behaviour are documented rather than left to be discovered: the API's `page` filter is a prefix match where the CLI's is a substring match, and a filtered API response keeps a whole-site `summary` with the filtered totals in `meta.counts`, which is the opposite of what `squirrel entities` returns. Also corrects `--page`'s own help text, which claimed a prefix match. It has always been a substring match. Every page cross-links the others. `make validate` passes, and a filesystem link check over all 2,785 internal links finds none dead in this group. Claude-Session: https://claude.ai/code/session_01T8w822GqnrviVMytnAsKFP Signed-off-by: Nik Cubrilovic <[email protected]>
The flag's help text has always said "matching this URL or prefix". The implementation calls `String.includes`, so `--page /blog` matches `/tag/blog` too. Say what it does. Claude-Session: https://claude.ai/code/session_01T8w822GqnrviVMytnAsKFP Signed-off-by: Nik Cubrilovic <[email protected]>
nc9
force-pushed
the
feat/2098-entity-map-docs
branch
from
September 13, 2026 06:41
20d2442 to
1ce474b
Compare
This was referenced Sep 13, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Completes the Entity map nav group.
indexandfixingcame with #338,mcpwith #342; these are the three that were missing.Implements the public half of the private
squirrelscan/repo#2098(epic section 11).The pages
cli.mdx— where the map appears in each of the six report formats and what each actually carries,squirrel entitieswith every flag and format, the diff, and the three store tables with the queries worth knowing.The point worth pulling out is the page cap. A node's
pagesarray holds at most 50 entries with the rest inmorePages, so "every page that declares this Organization" is answerable fromentity_occurrencesor from the document's own uncapped top-level page index, and never from the node's array. A 50-entry list looks exactly like a complete one.format.mdx— the version 1 document, the JSON-LD export and the change set, with a real sample of each from an audit of docs.squirrelscan.com. Covers the four key shapes, which values can and cannot dangle, and whycoverageon againedIdrow needs both of its halves.cloud.mdx— the dashboard Entities page, its filters and exports, and the two API endpoints.Two surface differences, documented rather than left to be discovered
Both found by fact-checking the pages against the code rather than by writing them:
pagefilter is a prefix match; the CLI's and the MCP tools' is a substring match. The same filter gives different results on each.summaryand puts the filtered totals inmeta.counts.squirrel entitiesdoes the opposite: its summary describes what survived the filter. A script readingsummary.nodeCountafter filtering gets a different number from each.A hosted map is also a projection, capped at 750 entities and five declaring pages per node rather than the local 50, so the page-related caveats are sharper there.
One code change
--page's help text said "matching this URL or prefix". The implementation callsString.includes, so--page /bloghas always matched/tag/blogtoo. Corrected to say what it does.Verification
A codex pass fact-checked every claim, number, field name, flag and table row against the source. It found 18 errors, all fixed here: the database path, what the markdown and XML report sections really contain, the mermaid cap bounding declared nodes only, four key shapes rather than three, a
sameAsstring never dangling, unlisted properties being discarded rather than kept, pages being 2xx-only, and the API summary semantics above.make validatepasses. A filesystem link check over all 2,785 internal links in the docs tree finds one dead link, pre-existing and unrelated, filed as #344.https://claude.ai/code/session_01T8w822GqnrviVMytnAsKFP