Skip to content

Scaffold apps/tui workspace + BAZ-004 user story#8

Open
rullopat wants to merge 1 commit into
mainfrom
feat/tui-scaffold
Open

Scaffold apps/tui workspace + BAZ-004 user story#8
rullopat wants to merge 1 commit into
mainfrom
feat/tui-scaffold

Conversation

@rullopat

Copy link
Copy Markdown
Owner

Summary

  • New apps/tui workspace: TS + Ink 7 + React 19, ~200 LOC scaffold with a working agents-list screen against the local daemon.
  • Reuses @bazilion/client + @bazilion/api-types directly — the deciding factor in the framework decision (no wire-type duplication, no permanent dual source of truth).
  • docs/backlog/todo/BAZ-004-tui-client.md captures the user story, the framework decision (TS + Ink + Bun-compile chosen via 10-agent fan-out research over Go+Bubble Tea / Rust+Ratatui / etc.), v1 scope (read-mostly screens; chat streaming + write CRUD deferred to follow-up BAZs), open questions, and tests.
  • Dev runs via tsx (matches monorepo convention); release path uses bun build --compile per-platform — devs do not need Bun installed locally.
  • apps/tui excluded from root tsconfig.json (JSX + jsx: "react-jsx", same precedent as web/mobile) but stays inside biome.json since it follows root conventions.

Strictly additive: no changes to apps/daemon, apps/web, apps/mobile, apps/cli, or any packages/*.

Test plan

  • pnpm install succeeds, lockfile updated
  • pnpm --filter @bazilion/tui typecheck clean
  • biome check apps/tui clean
  • Root pnpm typecheck unchanged (clean — apps/tui correctly excluded)
  • pnpm --filter @bazilion/tui dev against a running local daemon renders the agents list
  • First-run gate: launching with an incomplete setup renders the "Setup not complete" screen instead of throwing
  • Daemon unreachable (no ~/.bazilion/auth.json): prints a friendly error and exits 1

🤖 Generated with Claude Code

New TS + Ink 7 + React 19 TUI client, packaged via `bun build --compile`.
Reuses @bazilion/client and @bazilion/api-types directly (the hermetic-
package investment pays off). v1 scope is scaffold + read-mostly screens
— agents-list lands here, streaming chat and write CRUD follow in
per-screen BAZs.

Dev runs via `tsx` (matches monorepo convention); only the release path
needs Bun. apps/tui is excluded from the root tsconfig (JSX + needs
`jsx: "react-jsx"`, same precedent as web/mobile) but stays inside
biome.json since it follows root conventions.

User story moved to docs/backlog/todo/ with the full framework decision
(10-agent fan-out research summary) and v1 scope.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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