Skip to content

Commit 3cfb344

Browse files
authored
refactor(plugin-sdk): make API baseline module-mergeable (#121842)
1 parent 2cc11af commit 3cfb344

5 files changed

Lines changed: 249 additions & 5069 deletions

File tree

‎docs/.generated/README.md‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ snapshots remain local inspection artifacts.
77

88
- `config-baseline.sha256` — hashes of config baseline JSON artifacts.
99
- `config-baseline.counts.json` — maximum entry counts for each config baseline kind.
10-
- `plugin-sdk-api-baseline.jsonl` — one content-derived record per Plugin SDK module and export.
10+
- `plugin-sdk-api-baseline.jsonl` — one content hash per Plugin SDK module.
1111
- `sqlite-session-transcript-schema-baseline.sha256` — hash of the sessions/transcripts SQLite schema baseline.
1212

1313
**Local only (gitignored):**
@@ -24,11 +24,11 @@ Do not edit any of these files by hand.
2424
- Validate Plugin SDK API contract manifest: `pnpm plugin-sdk:api:check`
2525

2626
The Plugin SDK contract sorts modules by import specifier and exports by kind
27-
then name. Its line-delimited records keep concurrent changes to separate
28-
exports mergeable. Export records carry the normalized `declaration` and an
29-
explicit `closureHash` for surface-reachable repo declarations. Committed
30-
records omit source paths so file moves do not change the contract; origin
31-
`source` fields remain available in the local pretty JSON snapshot.
27+
then name. Each line hashes one module's normalized declarations and the
28+
surface-reachable declaration closure hashes, so changes to different modules
29+
do not rewrite shared aggregate records. Committed records omit source paths so
30+
file moves do not change the contract; origin `source` fields remain available
31+
in the local pretty JSON snapshot.
3232

3333
- Regenerate SQLite sessions/transcripts schema baseline: `pnpm sqlite:sessions-schema:gen`
3434
- Validate SQLite sessions/transcripts schema baseline: `pnpm sqlite:sessions-schema:check`

0 commit comments

Comments
 (0)