Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 26 additions & 2 deletions fixtures/golden/minimal/barrel-files.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,40 @@
[
{
"file_path": "src/api/client.ts",
"exports": 2
"exports": 7
},
{
"file_path": "src/components/shop/index.ts",
"exports": 4
},
{
"file_path": "src/utils/date.ts",
"exports": 4
},
{
"file_path": "src/components/shop/ShopButton.tsx",
"exports": 2
},
{
"file_path": "src/utils/date.ts",
"file_path": "src/lib/cache.ts",
"exports": 2
},
{
"file_path": "src/lib/store.ts",
"exports": 2
},
{
"file_path": "src/utils/format.ts",
"exports": 2
},
{
"file_path": "src/components/shop/ProductCard.tsx",
"exports": 1
},
{
"file_path": "src/components/shop/ShopButton.default.ts",
"exports": 1
},
{
"file_path": "src/consumer.ts",
"exports": 1
Expand Down
6 changes: 6 additions & 0 deletions fixtures/golden/minimal/calls-consumer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
{
"callee_name": "createClient"
},
{
"callee_name": "epochMs"
},
{
"callee_name": "get"
},
{
"callee_name": "now"
}
Expand Down
3 changes: 3 additions & 0 deletions fixtures/golden/minimal/components-no-false-positives.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
[
{
"name": "ProductCard"
},
{
"name": "ShopButton"
}
Expand Down
12 changes: 12 additions & 0 deletions fixtures/golden/minimal/dependencies-from-consumer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,20 @@
"from_path": "src/consumer.ts",
"to_path": "src/api/client.ts"
},
{
"from_path": "src/consumer.ts",
"to_path": "src/components/shop/index.ts"
},
{
"from_path": "src/consumer.ts",
"to_path": "src/lib/cache.ts"
},
{
"from_path": "src/consumer.ts",
"to_path": "src/utils/date.ts"
},
{
"from_path": "src/consumer.ts",
"to_path": "src/utils/format.ts"
}
]
16 changes: 16 additions & 0 deletions fixtures/golden/minimal/deprecated-symbols.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,26 @@
[
{
"name": "legacyClient",
"kind": "function",
"file_path": "src/api/client.ts",
"line_start": 41,
"signature": "legacyClient()",
"doc_comment": "@deprecated Use `createClient({ baseUrl })` directly. Kept as a fixture for\n`deprecated-symbols` + `--format sarif` / `--format annotations` recipes."
},
{
"name": "now",
"kind": "function",
"file_path": "src/utils/date.ts",
"line_start": 5,
"signature": "now(): number",
"doc_comment": "@deprecated Use `Date.now()` directly. Kept as a fixture for the\n`deprecated-symbols` recipe golden test."
},
{
"name": "epochMs",
"kind": "function",
"file_path": "src/utils/format.ts",
"line_start": 5,
"signature": "epochMs(): number",
"doc_comment": "@deprecated Drift detector for the SARIF / GH-annotations golden output.\nPair with `now()` in `./date.ts` to give recipes >1 row to render."
}
]
20 changes: 20 additions & 0 deletions fixtures/golden/minimal/exports-client.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,28 @@
"name": "ClientConfig",
"kind": "type"
},
{
"name": "Transport",
"kind": "type"
},
{
"name": "createClient",
"kind": "value"
},
{
"name": "setupTransport",
"kind": "value"
},
{
"name": "openSocket",
"kind": "value"
},
{
"name": "handshake",
"kind": "value"
},
{
"name": "legacyClient",
"kind": "value"
}
]
2 changes: 1 addition & 1 deletion fixtures/golden/minimal/files-count.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[
{
"n": 11
"n": 18
}
]
64 changes: 53 additions & 11 deletions fixtures/golden/minimal/files-hashes.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
[
{
"path": ".codemap/recipes/shop-symbols.md",
"content_hash": "0ef26e4291fd1dbfb60887d79251bfd9eb1af71675811ba40a1932368e6b112c",
"language": "md",
"line_count": 9
},
{
"path": "README.md",
"content_hash": "428564b4ac5e4864ca2292a4195b726be3d4c7c5cac3d19dd01f17714d026c66",
"content_hash": "75032b11e435e7f265151787faf72c59a986b491ba4e866856ba77eda6b4deb4",
"language": "md",
"line_count": 11
"line_count": 41
},
{
"path": "package.json",
Expand All @@ -13,27 +19,57 @@
},
{
"path": "src/api/client.ts",
"content_hash": "4d0ec5edad3f758e7f84898dd602dbacaf3ea65ad87614ae9f179bd2383bbf56",
"content_hash": "625df0a0f197f2233506c028f5a4b2022567587de2ecc5e81863c2cb2654e507",
"language": "ts",
"line_count": 9
"line_count": 44
},
{
"path": "src/components/shop/ProductCard.tsx",
"content_hash": "4cdd3d8376da664789c075bfdb3eab49adc3460fcd0810eedc1ad456e7c5be9a",
"language": "tsx",
"line_count": 20
},
{
"path": "src/components/shop/ShopButton.default.ts",
"content_hash": "105488e5bfb6446c071d2cf2311411aa9e7301d1b75ca72e317fde79c1d35740",
"language": "ts",
"line_count": 5
},
{
"path": "src/components/shop/ShopButton.tsx",
"content_hash": "481b9ff2e493fd69b36b67d2738e298999ce55040bce64c4c38a2e736c0573fd",
"content_hash": "cbc7939a134240c0076f76f6499fa893309f131dda53eaef4d946470f42c54af",
"language": "tsx",
"line_count": 15
},
{
"path": "src/components/shop/index.ts",
"content_hash": "824c09d50df619c90500baad1489075e9fe501090aeeb7afa39e335d41ce52c2",
"language": "ts",
"line_count": 8
},
{
"path": "src/consumer.ts",
"content_hash": "420ad98f7fedaf07ec07d1a64ef6ade100be4a7973883718a3942c68b1350903",
"content_hash": "ab868f04a0f22a8b132bc7a4ae42b403dad9c20185497f8513c06dd26c848091",
"language": "ts",
"line_count": 11
"line_count": 19
},
{
"path": "src/lib/cache.ts",
"content_hash": "a185908afc6dca9552783847c0726686378dcf60e9d5714bfdb0aa24c479a4c1",
"language": "ts",
"line_count": 21
},
{
"path": "src/lib/store.ts",
"content_hash": "a23e13e22cecf8051d83659b39f792b6fc592f90d501da83d75ab5fd61dac1a8",
"language": "ts",
"line_count": 15
},
{
"path": "src/notes.md",
"content_hash": "1a2bff433137690132077b15032ba3f07f5ed1b576b894816890342155ab640a",
"content_hash": "03ab92544e475626defcaafec97e1169d7940532ca3eeb4a25d28b4816c1ca9a",
"language": "md",
"line_count": 4
"line_count": 11
},
{
"path": "src/styles/button.module.css",
Expand All @@ -55,9 +91,15 @@
},
{
"path": "src/utils/date.ts",
"content_hash": "89e6301076caeb9f4c13cee8ea06f7f25a5e1aa239daf921f7ff984236ffa177",
"content_hash": "d42719b407b74b0ebab2d0ed25e004413e6a2231d4ad05aa51e431bea5075396",
"language": "ts",
"line_count": 15
"line_count": 29
},
{
"path": "src/utils/format.ts",
"content_hash": "8f4e1b729d1a69f1457a57c0a6ce61740ff27f2119976d2183ca053bf50b2ad6",
"language": "ts",
"line_count": 16
},
{
"path": "tsconfig.json",
Expand Down
10 changes: 5 additions & 5 deletions fixtures/golden/minimal/index-summary.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[
{
"files": 11,
"symbols": 9,
"imports": 3,
"components": 1,
"dependencies": 2
"files": 18,
"symbols": 33,
"imports": 11,
"components": 2,
"dependencies": 10
}
]
8 changes: 8 additions & 0 deletions fixtures/golden/minimal/markers-all-kinds.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
"kind": "FIXME",
"n": 1
},
{
"kind": "HACK",
"n": 2
},
{
"kind": "NOTE",
"n": 2
},
{
"kind": "TODO",
"n": 2
Expand Down
18 changes: 18 additions & 0 deletions fixtures/golden/minimal/markers-notes-todo.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,23 @@
"line_number": 3,
"kind": "TODO",
"content": "this file exists so marker scans have a predictable hit."
},
{
"file_path": "src/notes.md",
"line_number": 5,
"kind": "HACK",
"content": "this whole fixture is intentionally tiny — exercise codemap, not real UX."
},
{
"file_path": "src/notes.md",
"line_number": 7,
"kind": "NOTE",
"content": "when adding a new generated artifact under `.codemap/`, also bump the"
},
{
"file_path": "src/notes.md",
"line_number": 10,
"kind": "NOTE",
"content": "codemap's marker scanner recognises `TODO`/`FIXME`/`HACK`/`NOTE` only — `XXX` is not yet a kind."
}
]
27 changes: 27 additions & 0 deletions fixtures/golden/minimal/visibility-tags.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,32 @@
"line_start": 12,
"signature": "_epochSeconds(): number",
"doc_comment": "@internal Implementation helper — fixture for the `visibility-tags` recipe."
},
{
"name": "nanoseconds",
"kind": "function",
"visibility": "alpha",
"file_path": "src/utils/date.ts",
"line_start": 19,
"signature": "nanoseconds(): bigint",
"doc_comment": "@alpha Experimental — fixture for `visibility-tags` four-tag coverage."
},
{
"name": "_hiResEpoch",
"kind": "function",
"visibility": "private",
"file_path": "src/utils/date.ts",
"line_start": 26,
"signature": "_hiResEpoch(): number",
"doc_comment": "@private Internal-only utility — fixture for `visibility-tags` four-tag coverage."
},
{
"name": "nowIso",
"kind": "function",
"visibility": "beta",
"file_path": "src/utils/format.ts",
"line_start": 13,
"signature": "nowIso(): string",
"doc_comment": "@beta Fixture for the `visibility-tags` recipe — lock-in for the four-tag\ncoverage (alongside `@internal`, `@alpha`, `@private`)."
}
]
8 changes: 8 additions & 0 deletions fixtures/minimal/.codemap/recipes/shop-symbols.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
actions:
- type: review-shop-surface
auto_fixable: false
description: "Public shop component surface — review when adding/removing components."
---

Shop component public surface — every exported function under `src/components/shop/`. Used for change-impact reviews when the shop UI evolves.
9 changes: 9 additions & 0 deletions fixtures/minimal/.codemap/recipes/shop-symbols.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
-- Project-local recipe — exercises `<state-dir>/recipes/<id>.{sql,md}` discovery
-- and the `codemap query --recipe <id>` path. Frontmatter actions in the
-- sibling `.md` file attach a per-row hint to JSON output.
SELECT name, file_path, line_start, signature
FROM symbols
WHERE file_path LIKE 'src/components/shop/%'
AND kind = 'function'
AND is_exported = 1
ORDER BY file_path, line_start;
Comment thread
SutuSebastian marked this conversation as resolved.
10 changes: 10 additions & 0 deletions fixtures/minimal/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Fixture CODEOWNERS — exercises `codemap query --group-by owner`.
# Real ownership lookup uses last-matching-rule semantics; we keep two rules
# so the recipe groups fan-in / fan-out by team.

src/api/ @backend
src/components/ @frontend
src/lib/ @backend
src/utils/ @platform
src/styles/ @frontend
*.md @docs
Loading
Loading