This repository was archived by the owner on Jul 16, 2026. It is now read-only.
Repository navigation
refactor: extract conversation UI to private stando-ui repo - #69
Merged
jgluck96 merged 1 commit intoJun 1, 2026
Conversation
The React frontend (client/) is moved out of this repo into the private AG2Platform/stando-ui repo (full history preserved via git subtree split) and plugs back in via CLIENT_DIST_DIR — the same pluggability seam ported in #68. Stando's backend and the UI now ship and version independently; the private UI no longer has to track the OSS sutando UI. Removals: - client/ (97 files) — now lives at AG2Platform/stando-ui - package.json: build:client / dev:client scripts - pnpm-workspace.yaml: client workspace member (lockfile re-pruned) Rewiring so everything still works: - web-server.ts: default dist resolves to ../client/dist (present only in the packaged app, staged by build-app.sh); a dev checkout sets CLIENT_DIST_DIR or gets a 503 with a build hint. Docs/JSDoc updated. - startup.sh: auto-detects a built sibling ../stando-ui/dist when CLIENT_DIST_DIR is unset; otherwise warns. Override always wins. - app/build-app.sh: sources the UI from CLIENT_DIST_DIR or a sibling stando-ui checkout (builds it), stages it at the bundle's client/dist path so the shipped app stays self-contained with no runtime env var. - .github/workflows/release.yml: checks out + builds AG2Platform/stando-ui and passes its dist via CLIENT_DIST_DIR. REQUIRES a new repo secret STANDO_UI_TOKEN (PAT with read access to the private UI repo) — the default GITHUB_TOKEN can't reach another repo. - docs/WIRE.md: the wire contract any UI must honor (ported from OSS). - .env.example / CONTRIBUTING.md / .gitignore: documented + cleaned up. Verified: tsc clean (pre-existing @ai-sdk/openai error unrelated), the CLIENT_DIST_DIR test passes 3/3, frozen lockfile installs, and the server serves the real stando-ui dist end-to-end (200 + hashed assets). Co-authored-by: Cursor <cursoragent@cursor.com>
4 tasks done
This was referenced Jun 1, 2026
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Summary
Moves the React frontend (
client/, 97 files) out of this repo into the private AG2Platform/stando-ui repo and plugs it back in viaCLIENT_DIST_DIR. The backend and UI now ship/version independently — the private UI no longer has to stay in sync with the OSS sutando UI.git subtree split).CLIENT_DIST_DIRprimitive this relies on). Merge feat(web-server): port CLIENT_DIST_DIR pluggability from OSS (Phase 1.7) #68 first, or merge this into that branch..github/workflows/release.ymlnow checks out the private stando-ui repo to build the app bundle's UI. Add a repo secretSTANDO_UI_TOKEN— a PAT (or fine-grained token) with read access toAG2Platform/stando-ui. The defaultGITHUB_TOKENcan't reach another repo. Without it, the "Check out stando-ui" step fails.How the UI plugs back in
What changed (besides the 97 client/ deletions)
src/web-server.ts../client/dist(present only in the packaged app); dev checkout usesCLIENT_DIST_DIRor gets a 503 with a build hint. JSDoc/comments updated.src/startup.sh../stando-ui/distwhenCLIENT_DIST_DIRis unset; warns otherwise. Explicit override always wins.app/build-app.shCLIENT_DIST_DIRor a sibling stando-ui checkout (builds it), stages it at the bundle'sclient/distpath so the shipped.appis self-contained with no runtime env var..github/workflows/release.ymlAG2Platform/stando-ui, passes its dist viaCLIENT_DIST_DIR. NeedsSTANDO_UI_TOKEN(see above).docs/WIRE.mdpackage.jsonbuild:client/dev:clientscripts.pnpm-workspace.yamlclientworkspace member; lockfile re-pruned..env.example,CONTRIBUTING.md,.gitignoreCLIENT_DIST_DIR; removed dead client refs.Test plan
pnpm exec tsc --noEmit— clean except the pre-existing@ai-sdk/openaierror onvoice-agent.ts:48(unrelated, present on main)pnpm exec tsx --test tests/client-dist-dir-override.test.ts— 3/3 passpnpm install --frozen-lockfile— passes after pruning the stale client importerbash -n src/startup.sh+bash -n app/build-app.sh— syntax OKstando-ui/dist(200,#rootdiv, hashed.jsasset with correct MIME)STANDO_UI_TOKENsecret, then run the release workflow to confirm the app bundle stages the UIbash src/startup.shfrom a fresh checkout with a sibling builtstando-ui→ :8080 serves the UIRelated
Made with Cursor