Skip to content

chore: delete @decocms/tunnel — orphaned by the link removal - #5581

Merged
viktormarinho merged 1 commit into
mainfrom
chore/delete-tunnel-package
Aug 3, 2026
Merged

viktormarinho merged 1 commit into
mainfrom
chore/delete-tunnel-package

Conversation

@viktormarinho

@viktormarinho viktormarinho commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

Found by a workspace-usage audit (below). The desktop link (#5570) was the tunnel's only consumer; since it merged, packages/tunnel (3.4k lines — NATS WebSocket tunnel client/server, subject-token codec, reconnect plumbing) has had zero manifest dependents and zero code imports. Never published (no publish workflow, unlike runtime/typegen/mcp-utils/create-deco).

Remaining mentions were fixture data, both handled:

  • scripts/release-changes.test.ts — two path fixtures removed.
  • plugins/ban-e2e-app-imports.test.ts — uses @decocms/tunnel/subject as an example of a denied unlisted package; unchanged, still passes (a deleted package is guaranteed unlisted).

bun run check clean (13 workspaces now), lint at baseline, knip exit 0, bun test scripts plugins green.


The audit that found it (usage of every packages/*)

package manifest dependents code imports verdict
tunnel none 0 files deleted here
shared api, web, sandbox, native, e2e everywhere keep (the contracts hub)
sandbox api, web heavy keep
bindings api, web, runtime 37 files keep
mcp-utils api, web, bindings, runtime 31 files keep — published
runtime api 1 file in-repo keep — published (create-deco scaffolds depend on it)
typegen none 0 in-repo imports keep — published + baked into the sandbox image (npm i -g typegen.tgz, the in-sandbox codegen CLI)
create-deco none — keep — published (npm init deco), standalone by design
ui web (@deco/ui) 462 files keep
e2e none — keep — the Playwright suite, standalone by design

Known follow-up (not here)

packages/shared (54 imported subpaths) and packages/sandbox (./dispatch/*) still export via globs — the same knip blind spot that hid 2k dead lines in the old harness package (#5573). Enumerating those maps is the mechanical next step that would surface dead code pieces inside the surviving packages.


Summary by cubic

Removed the unused @decocms/tunnel package after its only consumer was removed. Cleaned up remaining references and updated the lockfile; no runtime impact.

  • Refactors
    • Deleted packages/tunnel (code and tests) and removed its row from README.md.
    • Updated fixtures in scripts/release-changes.test.ts; kept plugins/ban-e2e-app-imports.test.ts using @decocms/tunnel/subject as a denied example.
    • Bumped workspace versions in bun.lock and pruned tunnel entries.

Written for commit 18023d0. Summary will update on new commits.

Review in cubic

The desktop link (#5570) was the tunnel's only consumer; the package (3.4k
lines: NATS WebSocket tunnel client/server, subject tokens, backoff plumbing)
has had zero manifest dependents and zero code imports since. It was never
published (no publish workflow).

Remaining mentions were fixture data: release-changes.test.ts path fixtures
(removed) and ban-e2e-app-imports.test.ts, which uses @decocms/tunnel/subject
as an example of a DENIED unlisted package — that test keeps passing, a
deleted package is guaranteed unlisted. Root README workspace row removed;
check:readmes now validates 13 workspaces.
@viktormarinho
viktormarinho merged commit d6ef3b8 into main Aug 3, 2026
25 checks passed
@viktormarinho
viktormarinho deleted the chore/delete-tunnel-package branch August 3, 2026 12:53
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