Hub stage 2: read-only Technitium-compatible server over several servers

node:http server that serves the console build and a /api/* the console accepts:
its own login and session (clusterInitialized, the servers as nodes, hub flag,
Dashboard and Logs only), node=<id> forwarded with that server's token, no node or
cluster merged (stats, top lists, query logs, apps), every write refused with 403,
a short response cache, and an unreachable server reported as hubWarnings. The dev
mock takes --port and --scale so two of them differ. Vitest skips .claude/ worktrees.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
DenozordecandClaude Opus 5.5 committed 2026-10-30 19:04:41 +07:00
1 parent 9df2c2b908
commit 5f29a438c9
8 files changed
+980 -7

No files matched your search

+4 -1
View File
@@ -1,5 +1,5 @@
import { readFileSync } from 'node:fs'
import { defineConfig } from 'vitest/config'
import { configDefaults, defineConfig } from 'vitest/config'
import react from '@vitejs/plugin-react'
/* The build injects this from package.json (see vite.config.ts). The tests run
@@ -19,5 +19,8 @@ export default defineConfig({
menus in a row took more than the default 5 s there while taking about one here. */
testTimeout: 20000,
hookTimeout: 20000,
/* Git worktrees of other sessions live under `.claude/`: their copies of the
tests are not this checkout's. */
exclude: [...configDefaults.exclude, '.claude/**'],
},
})