Skip to content

Commit 48d1e7c

Browse files
committed
chore(contracts): keep the exhaustive snapshot facade re-export, suppress its fallow report
1 parent 39a396c commit 48d1e7c

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

‎.fallowrc.json‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,11 @@
263263
"file": "src/runtime.ts",
264264
"exports": ["createAgentDevice", "localCommandPolicy"]
265265
},
266+
{
267+
"comment": "The contracts snapshot façade must re-export every symbol of ../snapshot-scope.ts (scripts/layering/package-boundaries.test.ts, façade exhaustiveness); callers import it from @agent-device/contracts/snapshot-scope, so the façade copy has no consumer.",
268+
"file": "packages/contracts/src/facades/snapshot.ts",
269+
"exports": ["findSnapshotScopeRange"]
270+
},
266271
{
267272
"comment": "Test fixtures: every *.fixtures.ts builds doubles for co-located *.test.ts files (several import `vi` directly) and none is imported by production source, so --production analysis sees no consumer for any of them. Scoped to unused-exports rather than ignorePatterns so fixtures stay inside every other Fallow rule (health, dead-code, cycles); `*` rather than today's three symbols because the property being asserted is per-file, not per-symbol.",
268273
"file": "**/*.fixtures.ts",

‎packages/contracts/src/facades/snapshot.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
export { isScrollableNodeLike, isScrollableType } from '../snapshot-scroll.ts';
22
export {
3+
findSnapshotScopeRange,
34
matchesSnapshotScope,
45
normalizeSnapshotScope,
56
reindexSnapshotNodes,

0 commit comments

Comments
 (0)