Skip to content

Reorganize core's export surface into audience-specific subpaths - #169

Merged
cuibonobo merged 2 commits into
mainfrom
claude/issue-168-kq2556
Aug 15, 2026
Merged

Reorganize core's export surface into audience-specific subpaths#169
cuibonobo merged 2 commits into
mainfrom
claude/issue-168-kq2556

Conversation

@cuibonobo

@cuibonobo cuibonobo commented Aug 14, 2026

Copy link
Copy Markdown
Member

Split packages/core's flat index.ts into root plus ./did, ./wire and
./adapter subpaths so a caller's import path signals audience: apps at
keygen/custody, both sides of the auth handshake, and adapter
implementers, respectively. Root no longer re-exports the subpaths.

Also removes the 20 runtime exports and 3 types with no reference
outside packages/core per the un-export audit, keeping the 8 that have
a named consumer with a comment pointing to it. Updates every in-repo
consumer, their vitest subpath aliases, and the READMEs/spec docs that
showed import examples.

Closes #168

claude added 2 commits August 14, 2026 18:25
Split packages/core's flat index.ts into root plus ./did, ./wire and
./adapter subpaths so a caller's import path signals audience: apps at
keygen/custody, both sides of the auth handshake, and adapter
implementers, respectively. Root no longer re-exports the subpaths.

Also removes the 20 runtime exports and 3 types with no reference
outside packages/core per the un-export audit, keeping the 8 that have
a named consumer with a comment pointing to it. Updates every in-repo
consumer, their vitest subpath aliases, and the READMEs/spec docs that
showed import examples.

Refs #168
access.ts loses its singled-out "internal — no public export" note —
id.ts, schema.ts, did.ts, auth.ts and attachment-download.ts are just
as implementation-only and weren't annotated either. testing.ts now
says explicitly that it's exported, since it (unlike those files) is
the public /testing surface itself, not an implementation detail.
@cuibonobo
cuibonobo merged commit 4ed4afa into main Aug 15, 2026
5 checks passed
@cuibonobo
cuibonobo deleted the claude/issue-168-kq2556 branch August 15, 2026 17:10
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.

Reorganize the public export surface: subpath entry points by concern, and an un-export audit

2 participants