feat(studio): extract dashboard SPA into @ax/studio (Phase 0)#143
Open
Necmttn wants to merge 7 commits into
Open
feat(studio): extract dashboard SPA into @ax/studio (Phase 0)#143Necmttn wants to merge 7 commits into
Necmttn wants to merge 7 commits into
Conversation
…build-studio.ts hack)
… type errors The SPA imported axctl's ingest/stream-events.ts via a relative path that broke on the move (type-only, so vite builds were unaffected but tsc failed). Move the producer/consumer event contract into @ax/lib/shared as the single source; axctl re-exports it (zero importer churn). Also fix 3 pre-existing null-safety/ cast errors the old vite-only (never-typechecked) SPA had latent.
Deploying ax with
|
| Latest commit: |
4b057b7
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://89ebd271.ax-62d.pages.dev |
| Branch Preview URL: | https://feat-studio-extract.ax-62d.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase 0 of the studio-desktop plan (
docs/superpowers/plans/2026-06-07-studio-desktop-implementation.md, PR #139). Lifts the studio SPA out of the CLI into a first-class workspace app so the daemon, the hosted web deploy, and the future desktop app all consume one package. No SPA logic changes — a move + rewire (plus minor extraction-fallout fixes).What changed
apps/studio/package (@ax/studio) — SPA moved fromapps/axctl/src/dashboard/web/(history preserved viagit mv).STUDIO_TARGET:daemon(base/),web(base/studio/, mock),desktop(base./, mock). Replaces the bareVITE_STUDIO_MOCKboolean;src/api.tsunchanged.dashboard:dev/buildnow delegate to@ax/studio; dropped SPA-only deps fromaxctl(vite, @vitejs/plugin-react, @tanstack/router-plugin, react-query, react-router, react-dom, @types/react-dom). Keptreact+@types/react(TUI).scripts/stage-studio.tsbuilds thewebtarget intoapps/site/public/studio; supersedes & deletes the PR fix(serve): echo Allow-Private-Network so hosted studio can reach loopback daemon #138build-studio.tscopy hack.public/studionow gitignored (was committed)._redirects/studio/*rule retained.IngestStreamEventmoved to@ax/lib/shared/ingest-stream-events(single source for daemon producer + studio consumer); axctl re-exports it. Fixed 3 latent null-safety/cast errors the old vite-only (never-typechecked) SPA carried.Verification
bun run typecheck(root): exit 0@ax/studio+axctltypecheck: exit 0stage-studio.ts: ✓ (correct asset bases:/assets/,/studio/assets/,./assets/)Next: Phase 1 (Electron shell) builds on
apps/studio'sbuild:desktoptarget.Refs #129. Builds on the plan in #139.
🤖 Generated with Claude Code