Repository navigation
api drops the public surface library-api-public now holds - #176
Merged
Merged
Conversation
metacensus.public.v1, its generated Go and TypeScript, the ./public export, PublicClient and breaking-public leave api; the README, AGENTS.md and the package description name /metacensus/api/v1 only and point to metacensus/library-api-public for the public surface. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jmbarzee
commented
Nov 21, 2026
jmbarzee
left a comment
Contributor
Author
There was a problem hiding this comment.
pass
Reviewed at 45d3801. Reviewer and author share one identity, so this is a comment review headed with the verdict.
Summary
-
model.Packages, which lists every contract surface routegen emits, changed: drops themetacensus.public.v1entry so api emits only/metacensus/api/v1 -
proto/metacensus/publicand its generated Go/TS, which held the partner-intake surface, changed: deleted;ts/public.tsand the./publicexport go with them -
routes_gen.go,route-manifest,client.ts, which are regenerated from the model, changed:PartnerRoutes,PublicPrefix/publicPrefix,PublicClientgone -
make check/ CI, which gate the contract, changed:breaking-publicand theorigin/mainbaseline fetch removed - contract tests and
check-entry-points.mjs, which kept the two surfaces apart, changed: cross-package field rule, entry-point ownership check and public-prefix branches removed; single-prefix assertions kept - README, AGENTS.md, ts/README, package description, which describe the package, changed: name only
/metacensus/api/v1and point to@metacensus/library-api-public - routegen's per-package machinery, which emits one client/prefix/server per entry, kept as-is (declared in the body)
Focus
- If wrong: a consumer still importing
@metacensus/api/publicorgo/metacensus/public/v1breaks on its next bump. Checked: service-ui-public and service-public-api importlibrary-api-public0.1.0 onmain; service-ui, service-api-standard, service-api-chain reference neither;gh search codehits only api. - Irreversible: the minor release (v0.13.0) publishes an npm version and Go module tag without
./public; nothing in this PR itself. - Most likely wrong about: nothing found; the release note (criterion 4) happens after merge and is not something this diff can hold.
- Cells:
check-cells --diff: 0 errors, no mapping in api. - Verification:
make check && ! git grep -q 'metacensus/public' -- proto go tsexits 0 on head; the grep fails if any public proto, generated code or import is left. Criteria 2–4 are not in the block by the issue's design. - Scope: does what #174 asks and nothing else.
Checks
- CI: Verify and service-api-chain api-check pass
- Verification block exits 0 locally;
make genleaves no diff - Dependents checked on their
main - elegance (inline read, not the agent): no residue describing the removed surface
- open-source: no secrets; the only new external names are public npm
@metacensus/library-api-publicand its Go module path
Nits (apply or leave)
- The generated manifest header still says "One manifest for every surface … Each surface has its own prefix:" over a one-row table, and clientgen says "one client per surface". Consistent with keeping the per-package machinery, which the body declares.
- README line 3 names the Go module
github.com/metacensus/library-api-public, which a public reader cannot fetch while that repo is private. The npm link is enough on its own.
Before landing
Cut a minor release with a note naming library-api-public (criterion 4).
Contributor
Author
|
Both nits are declined:
No change since |
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.
api carries only the authenticated contract,
/metacensus/api/v1. The public surface lives in@metacensus/library-api-public.Removed
proto/metacensus/public, its generated Go and TypeScript,ts/public.ts, the./publicexportPublicClient,PublicPrefix/publicPrefix, andPartnerRoutesfrom the regenerated client, manifest and servermake breaking-publicand CI'sorigin/mainbaseline fetch, which existed only for the public surfaceKept
model.Packagesentry. There is now one entry. Collapsing that machinery would change the exportedRoute.Prefixfield, so it is left out of this PR.Prose
/metacensus/api/v1and point to library-api-public.No live importers
gh search codefor@metacensus/api/publicandmetacensus/public/v1finds hits only in api.Release
Verification
make check && ! git grep -q 'metacensus/public' -- proto go tsexits 0.Closes #174
🤖 Generated with Claude Code