4. feat: remote proxy handler for desktop app #91
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
RemoteHandlerthat proxies frontend requests to a remote Nebi team server in local/desktop modecliclientpackage (typed methods) for all upstream communicationstore.Config/store.CredentialslocalMode == trueunder/api/v1/remote/*Endpoints (13 total)
POST /connect— authenticate with remote server, store tokenGET /server— connection statusDELETE /server— disconnect, clear credentialsGET/POST/DELETE /workspaces[/:id]— proxy CRUDGET /workspaces/:id/versions— proxy version listingGET /workspaces/:id/tags— proxy tag listingGET /workspaces/:id/pixi-toml— proxy pixi.toml (JSON wrapped)GET /workspaces/:id/versions/:version/pixi-toml— proxy (JSON wrapped)GET /workspaces/:id/versions/:version/pixi-lock— proxy (JSON wrapped)POST /workspaces/:id/push— proxy version pushDesign decisions
{"content": "..."}for uniform frontend consumptionTest plan
go vet ./...go test ./internal/api/handlers/... ./internal/service/... ./internal/store/...