Repository navigation
docs(gui): refresh architecture docs for the sidecar compute path - #213
Merged
Merged
Conversation
After #192/#193/#194 the desktop app runs compute (plan/validate/plot) through the bundled FastAPI sidecar via the OpenAPI-typed client, and the Tauri shell is a thin native host (files, Marlin serial, sidecar supervision). The GUI docs still described the removed invoke->CLI->temp -file compute path. - Rewrite architecture/cli-integration.md around the two backends: the HTTP sidecar for compute (supervision, handshake, typed client) and the Tauri commands that remain (files, stream_program, marlin::*). Document the uniform `_up_/bundled-*` path resolution and the freeze/bundle flow. - schemas.md: drop the removed PlanSummary/Simulation/PlotPreview command schemas; clarify that compute responses are typed by the generated client (no Zod) while Zod still covers user input, .wind files, and the remaining Tauri command responses. Fix the .wind example to the real WindDefinitionSchema (1.x schemaVersion, #140). - overview.md: update the architecture diagram + framing to the sidecar + native-host split; list the new src-tauri modules and the git-ignored bundled-cli/bundled-api artifact dirs. Refs #194, #195.
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.
Follow-up to #194 (PR #212). After #192/#193/#194 the desktop app runs compute (plan/validate/plot) through the bundled FastAPI sidecar via the OpenAPI-typed client, and the Tauri shell is a thin native host. The GUI docs still described the removed invoke→CLI→temp-file compute path; this brings them back in line with the code.
Changes
architecture/cli-integration.md— retitled "Backend Integration"; rewritten around the two backends: the HTTP sidecar for compute (process supervision, JSON handshake, theopenapi-fetchtyped client, CORS) and the Tauri commands that remain (file I/O,stream_program,marlin::*, health). Documents the uniform_up_/bundled-*path resolution (the refactor(gui): consume the API client for compute operations (#193) #208 fix) and the freeze/bundle pipeline. Net ~−375 lines of obsolete code dumps.guides/schemas.md— dropped the removedPlanSummary/Simulation/PlotPreviewcommand schemas; clarified that compute responses are typed by the generated client (no Zod) while Zod still covers user input,.windfiles, and the remaining Tauri command responses. Fixed the.windexample to the realWindDefinitionSchema(1.xschemaVersion, Fix schemaVersion schema constraint (const 1.0 rejects future minors) #140).overview.md— updated the architecture diagram + framing to the sidecar + native-host split; listed the newsrc-taurimodules and the git-ignoredbundled-cli/bundled-apiartifact dirs.Verification
--strict)._up_/bundled-*resolution, removed-vs-retained schemas, freeze/bundle) verified correct. It caught one invented field (diagnosticsonCliHealthResponseSchema) — fixed by switching that illustration to a generic example.Out of scope (pre-existing, not regressions): a stale out-of-tree
contributing.mdlink and the simplified discriminated-union teaching examples inschemas.md.Refs #195.