generated from coulomb/repo-seed
chore: update standalone state hub wiring
This commit is contained in:
@@ -38,7 +38,7 @@ Two services are exposed through the tunnel:
|
||||
### Start the services
|
||||
|
||||
```bash
|
||||
cd ~/the-custodian/state-hub
|
||||
cd ~/state-hub
|
||||
|
||||
make api # FastAPI on :8000
|
||||
make mcp-http # MCP SSE server on :8001 (separate terminal)
|
||||
|
||||
@@ -317,7 +317,7 @@ CSS variables, so they adapt correctly to both light (`air`) and dark
|
||||
## Running the dashboard
|
||||
|
||||
```bash
|
||||
cd ~/the-custodian/state-hub/dashboard
|
||||
cd ~/state-hub/dashboard
|
||||
|
||||
npm run dev # Preview server on :3000 with hot reload
|
||||
npm run build # Static build into dist/
|
||||
|
||||
@@ -38,7 +38,7 @@ If the API goes offline while you are viewing a page:
|
||||
To restart the API:
|
||||
|
||||
```bash
|
||||
cd ~/the-custodian/state-hub
|
||||
cd ~/state-hub
|
||||
make api # db + migrate + uvicorn (restarts if already running)
|
||||
```
|
||||
|
||||
|
||||
@@ -157,7 +157,7 @@ The CLI is installed via `make install-cli` from the state-hub directory.
|
||||
Ensure `~/.local/bin` is on your `PATH`.
|
||||
|
||||
**`ERROR: Cannot reach API`**
|
||||
The state hub API must be running: `cd ~/the-custodian/state-hub && make api`
|
||||
The state hub API must be running: `cd ~/state-hub && make api`
|
||||
|
||||
**`CLAUDE.custodian.md` already exists**
|
||||
Re-running `custodian register-project` overwrites it with a fresh
|
||||
|
||||
@@ -71,7 +71,7 @@ custodian register-project --domain <slug>
|
||||
|
||||
```bash
|
||||
# Auto-detects lockfile at repo root
|
||||
cd ~/the-custodian/state-hub
|
||||
cd ~/state-hub
|
||||
make ingest-sbom REPO=<slug> REPO_PATH=/absolute/path
|
||||
|
||||
# Multi-ecosystem repo — scan all lockfiles recursively
|
||||
|
||||
@@ -205,7 +205,7 @@ The hub's schema is organised in concentric layers:
|
||||
## Running the hub
|
||||
|
||||
```bash
|
||||
cd ~/the-custodian/state-hub
|
||||
cd ~/state-hub
|
||||
|
||||
make db # Start PostgreSQL (Docker)
|
||||
make migrate # Alembic upgrade head
|
||||
|
||||
@@ -107,7 +107,7 @@ const _liveEl = html`<div class="live-indicator">
|
||||
<span style="color:${_ok ? 'var(--theme-foreground-focus)' : 'red'}">●</span>
|
||||
${_ok
|
||||
? `Live · updated ${_ts?.toLocaleTimeString()}`
|
||||
: html`<span style="color:red">Offline — run: <code>cd ~/the-custodian/state-hub && make api</code></span>`}
|
||||
: html`<span style="color:red">Offline — run: <code>cd ~/state-hub && make api</code></span>`}
|
||||
</div>`;
|
||||
withDocHelp(_liveEl, "/docs/live-data");
|
||||
injectTocTop("live-indicator", _liveEl);
|
||||
|
||||
@@ -78,7 +78,7 @@ display(html`<div class="app-grid">
|
||||
icon: "🐘", name: "pgAdmin", status: pgadminUp,
|
||||
desc: "PostgreSQL admin UI for the state-hub database. Start with: make db in state-hub/.",
|
||||
url: "http://127.0.0.1:5050", label: "127.0.0.1:5050",
|
||||
note: pgadminUp ? "" : "Start with: cd ~/the-custodian/state-hub && docker compose --profile pgadmin up -d",
|
||||
note: pgadminUp ? "" : "Start with: cd ~/state-hub && docker compose --profile pgadmin up -d",
|
||||
})}
|
||||
${appCard({
|
||||
icon: "🌉", name: "ops-bridge", status: null,
|
||||
|
||||
Reference in New Issue
Block a user