Repository navigation
feat(sdk): #80 — automate view-payload vendoring (kill the silent drift) - #1762
Merged
Merged
Conversation
The SDK deliberately VENDORS continuum view payloads from the canonical ts-rs
output (protocol/typescript/positron/) so a UI app depends only on
@continuum/sdk-typescript and stays public-installable. But the re-vendoring was
manual ("do not hand-edit; re-vendor on change") and drifted silently:
ChatViewState.purpose was hand-synced (not byte-exact), ForgeViewState was never
vendored at all.
- scripts/vendor-views.mjs — ONE declared vendored set (chat + foundry closures),
copied deterministically from protocol/. `--check` mode fails loud on drift.
- Re-vendored ChatViewState (now byte-exact) + vendored ForgeViewState +
ForgeModelView; barrels (views/index + SDK index) export them → the client can
now import the foundry types (unblocks the foundry renderer).
- Wired `vendor:views:check` into `check:clients` so future drift can't merge.
Boy-scout while the gate was tightened: fixed 2 pre-existing non-null-assertion
lint errors (patternProjections.spec.ts) and 1 pre-existing typecheck error
(apps/tui fixture missing the now-required `purpose`) — both slipped past the CI
ratchet since #1757/#1758 but the tightened check:clients surfaces them. Full
check:clients green (73 client tests).
Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…mated script (review #1762) The header still said 'chat closure only' and 'do not hand-edit; re-vendor' — now it names the chat AND foundry closures and points at scripts/vendor-views.mjs + the check:clients drift guard. Same boy-scout discipline the header preaches. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
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.
The SDK vendors continuum view payloads from canonical
protocol/typescript/positron/to stay self-contained — but re-vendoring was manual and drifted (ChatViewState.purposehand-synced,ForgeViewStatenever vendored).scripts/vendor-views.mjs: one declared vendored set, deterministic copy;--checkfails loud on drift.vendor:views:checkwired intocheck:clients— drift can't merge again.Full
check:clientsgreen (73 client tests).🤖 Generated with Claude Code