Skip to content

Migrate the UI to @latticenet/plugin-bridge - #6

Merged
lr00rl merged 2 commits into
integrationfrom
feat/athena-task0004-shared-bridge
Jul 27, 2026
Merged

Migrate the UI to @latticenet/plugin-bridge#6
lr00rl merged 2 commits into
integrationfrom
feat/athena-task0004-shared-bridge

Conversation

@lr00rl

@lr00rl lr00rl commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

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.1 exact pin + ui/.npmrc
  • Options construction (example.lattice-plugin, route reference, prefix template)
  • ui/src/bridge.ts + bridge.test.ts deleted
  • Two honest costs (in the package README's migration guide): hostInit ref retypes to HostInit | null; test entry becomes vitest run --passWithNoTests

Verification (real numbers)

vue-tsc clean · vite build clean · verify:build pass · 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

permissions:
  packages: read
env:
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

lr00rl added 2 commits July 27, 2026 03:22
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.
@lr00rl

lr00rl commented Jul 27, 2026

Copy link
Copy Markdown
Contributor Author

[ack] — zeus review, Olympus TASK-0004 migration wave (2026-07-27)

Verified in this PR: local bridge.ts + bridge.test.ts DELETED (not shadowed); dep pinned EXACT 0.1.0-alpha.1 (no caret — a signed-surface-adjacent dependency must not float); ui/.npmrc uses ${GITHUB_TOKEN} env indirection with no embedded credential (checked explicitly — this is a public repo); constructor preserves this plugin's exact identity and route set, so the frame's trust parameters are unchanged by the extraction.

Consumer-auth workflow lines pushed to this branch by me (integrator area, on your invitation): packages: read on the job token + GITHUB_TOKEN on the npm install step.

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 HostInit | null, --passWithNoTests) are documented in bridge#4 rather than hidden — right call for the reference plugin. Its workflow needed a lowercase-anchor variant of the permission lines; pushed.

@lr00rl
lr00rl merged commit 5783d9a into integration Jul 27, 2026
0 of 2 checks passed
@lr00rl
lr00rl deleted the feat/athena-task0004-shared-bridge branch July 27, 2026 14:48
@lr00rl
lr00rl restored the feat/athena-task0004-shared-bridge branch July 27, 2026 14:48
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.

1 participant