Skip to content

feat: adopt drive and TUI catalog - #42133

Merged
kitlangton merged 5 commits into
v2from
catalog-lab
Aug 12, 2026
Merged

kitlangton merged 5 commits into
v2from
catalog-lab

Conversation

@kitlangton

@kitlangton kitlangton commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

What

Adopts opencode-drive into the V2 monorepo and gives the captured TUI state browser a first-party internal home at dev.opencode.ai/lab/catalog.

  • packages/drive: the published Drive library and CLI, now consuming the workspace V2 client directly.
  • packages/lab/catalog: the terminal UI catalog with complete Opencode, Tokyo Night, and Everforest capture matrices.
  • .github/workflows/deploy-lab-catalog.yml: deploys the internal catalog when the V2 branch changes.

How

  • Preserves the public opencode-drive package name and CLI while replacing its pinned next-channel client with @opencode-ai/client: workspace:*.
  • Adds packages/lab/* as the namespace for internal developer/design tools.
  • Builds catalog assets with /lab/catalog/ as their public path and rewrites Worker requests to the static asset root, including SPA deep links.
  • Runs current-HEAD captures directly against the monorepo working tree; explicit historical revisions still use prepared worktrees.
  • Retargets catalog feedback links and labels to anomalyco/opencode.
  • Keeps Drive at its published 1.4.3 baseline but marks the workspace package private until npm ownership, trusted publishing, and public Client dependency gates are complete. OpenCode product releases explicitly skip Drive version rewriting.

Scope

  • Targets the v2 branch because Drive consumes the V2 Effect client/service API. The dev branch currently exposes the legacy client surface.
  • Deploys only to dev.opencode.ai/lab/catalog; there is deliberately no opencode.ai production route and no redirect from catalog.kitlangton.dev.
  • Keeps the source repository/history intact for now. Archiving anomalyco/opencode-drive happens after this lands.

Testing

  • packages/drive: bun run lint, bun typecheck, bun run test (263 tests)
  • packages/lab/catalog: removed dead UI/motion code, stale manual experiments/docs, and unused dependencies; fixed multi-revision theme ID collisions
  • packages/lab/catalog: bun run lint, bun typecheck, bun run test (31 tests), bun run build
  • packages/lab/catalog: bunx wrangler deploy --dry-run
  • Push hook: full monorepo bun turbo typecheck --concurrency=3 (34 tasks)
  • Added Turbo test tasks so normal PR CI discovers Drive and catalog tests
  • Verified generated HTML uses /lab/catalog/ asset URLs and Worker route tests cover app-shell and capture asset rewriting.

Flow

flowchart LR
  V2[OpenCode V2 workspace] --> Drive[packages/drive]
  Drive --> Capture[Catalog capture scenarios]
  Capture --> Frames[Three themed frame matrices]
  Frames --> Catalog[packages/lab/catalog]
  Catalog --> Worker[opencode-lab-catalog Worker]
  Worker --> URL[dev.opencode.ai/lab/catalog]
Loading

Closes #42126

@kitlangton
kitlangton merged commit 69a465d into v2 Aug 12, 2026
8 of 12 checks passed
@kitlangton
kitlangton deleted the catalog-lab branch August 12, 2026 22:01
jinhuang712 pushed a commit to jinhuang712/opencode that referenced this pull request Sep 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant