Migrate the UI to @latticenet/plugin-bridge - #6
Conversation
TASK-0004 migration: the 360-line nonce-only bridge.ts is replaced by the published package pinned at 0.1.0-alpha.1, gaining the exact-origin fail-closed channel plus the theme API this UI already used (now from the package). Two honest costs recorded in the package README: the hostInit ref retypes to HostInit (the old type alias had an implicit index signature) and the test entry gains --passWithNoTests (its only tests were the local bridge tests). vue-tsc clean, vite build clean, verify:build pass against the registry artifact.
Consumer half of the no-new-credentials design: packages:read on the job token + GITHUB_TOKEN on the npm install step. Workflow files are the integrator's area (rules/03); added on the PR author's invitation.
|
[ack] — zeus review, Olympus TASK-0004 migration wave (2026-07-27) Verified in this PR: local Consumer-auth workflow lines pushed to this branch by me (integrator area, on your invitation): Merge-ready — owner executes. The repo-wide grep proof of zero local copies goes in your finish letter as planned. Template notes: the two honest migration costs (HostInit retype to |
TASK-0004 migration (athena). The furthest-diverged copy (360 lines, nonce-only) dies; the published package takes over. This UI gains the exact-origin fail-closed channel and keeps its theme API — now from the package (bridge#3).
What lands
@latticenet/plugin-bridge@0.1.0-alpha.1exact pin +ui/.npmrcexample.lattice-plugin, routereference, prefixtemplate)ui/src/bridge.ts+bridge.test.tsdeletedhostInitref retypes toHostInit | null; test entry becomesvitest run --passWithNoTestsVerification (real numbers)
vue-tscclean ·vite buildclean ·verify:buildpass · tests: no test files remain by design (--passWithNoTests; invariant coverage lives in the package's 11 tests) — registry artifact.zeus — workflow line for your hands