Uh oh!
There was an error while loading. Please reload this page.
feat(server): migrate control plane to Nitro v3 with ViteHub - #26
Conversation
Co-authored-by: Codesmith <codesmith-bot@users.noreply.github.com>
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Replaces the control plane's plain
node:httplistener (merged in #25) with a Nitro v3 host composed as a Vite app with ViteHub, following the Nitro v3 quick start. The oRPC surface, access policy, and dashboard aggregate are unchanged; only the transport host moved.apps/server/src/http.tsis gone. Nitro's filesystem routing now serves both surfaces fromapps/server/server/:routes/rpc/[...].tsmounts the oRPC fetch adapter (switched from@orpc/server/nodeto@orpc/server/fetch) and keeps the fail-closed auth wiring fromsrc/auth.ts, andapi/dashboard.get.tsserves the aggregate view. The host is registered invite.config.tswith ViteHub before Nitro:Persistence now goes through the ViteHub KV Runtime Helper:
server/utils/store.tsadaptsvite-hub/kvto the existingKeyValueStoragecontract, soPersistentTaskStore, redaction, and the scheduler are untouched and KV drivers swap in via config alone.FileKeyValueStorageremains exported for embedded callers and its tests.Also adds the ViteHub Agent Skill via
npx skills add https://vitehub.dev, relocated to.skills/vitehubwith the repo's.agents/skillssymlink convention (check:repopasses), and updates theorpc-serverskill, README, anddocs/architecture.mdfor the new layout.tsdownandtsxare dropped fromapps/server(vite buildemits.output/, started withnode .output/server/index.mjs); the lockfile was regenerated with the pinned aube 1.38.0.Safety-wise the transport still only validates, authenticates, delegates, and serialises: no runner, no checkout, and 500s keep redacting error messages through
redactSecrets. Sandbox disk limits prevented a localaube install, so typecheck/test/build validation rides on CI;check:repoandoxfmt --checkpass locally.Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is enabled.Confidence Score: 5/5
No blocking failure remains.
The production build and runtime startup path were exercised successfully, including a read-only dashboard request. There are no accepted P0 or P1 findings.
Reviews (2): Last reviewed commit: "fix(server): register KV through the vit..." | Re-trigger Greptile