xiaoju
2a52b930b9
chore: raise default maxRounds from 5 to 10 (CLI, matches API default)
...
小橘 <xiaoju@shazhou.work >
2026-05-09 13:17:57 +00:00
xiaoju
08a79b77db
fix: SSE sends 'done' event for non-running threads, frontend stops reconnecting
...
- routes-live: emit 'done' event before closing SSE for non-running threads
- use-sse: handle 'done' event — set completed, disconnect, stop reconnect
- Prevents 'Live' badge flash on failed/completed threads
小橘 <xiaoju@shazhou.work >
2026-05-09 12:49:20 +00:00
xiaoju
22a6200b69
fix: close SSE stream for non-running threads, fix Live badge
...
- routes-live: check .running marker before keeping SSE open;
if thread is not running, emit existing records and close
- thread-detail: only show Live badge when connected AND not completed
小橘 <xiaoju@shazhou.work >
2026-05-09 12:45:58 +00:00
xiaoju
f16e7641fd
chore: add .env.production for dashboard gateway URL
...
小橘 <xiaoju@shazhou.work >
2026-05-09 11:58:51 +00:00
xiaoju
3b41625001
feat: dashboard API key authentication
...
- Gateway: DASHBOARD_API_KEY middleware on /endpoints and /api/* routes
- Dashboard: login page with key validation, stored in localStorage
- SSE: key passed as ?key= query param (EventSource can't set headers)
- Sidebar: logout button to clear key
Refs #169
小橘 <xiaoju@shazhou.work >
2026-05-09 11:56:25 +00:00
xiaoju
c602d2284b
fix(dashboard): pass content as children to ReactMarkdown
...
Self-closing <ReactMarkdown /> renders nothing — need children.
小橘 <xiaoju@shazhou.work >
2026-05-09 10:58:33 +00:00
xiaoju
d96e10b0fc
feat(dashboard): structured record rendering with markdown support ( #169 )
...
- API returns structured fields for thread-start (workflow, prompt, status)
and workflow-result (returnCode, content, timestamp)
- New RecordCard component renders by type:
- StartCard: workflow name badge + prompt blockquote
- RoleMessage: role-colored badges (preparer/agent/extractor) + markdown
- ResultCard: success/fail status badge + summary
- Added react-markdown + shiki for markdown rendering with syntax highlighting
- Replaces generic <pre> blocks with proper structured rendering
Refs #169
小橘 <xiaoju@shazhou.work >
2026-05-09 10:41:13 +00:00
xiaoju
9e98119145
feat: dashboard multi-agent support + CF Pages deploy
...
Phase C of #164 :
- Dashboard fetches agents from gateway /endpoints
- Sidebar shows agent selector with online/offline status
- All API calls routed through gateway /api/:agent/*
- Hash routing: #agent/threads/id format
- SSE live streaming via gateway proxy
- VITE_GATEWAY_URL env var for gateway configuration
- Deployed to CF Pages: workflow-dashboard-54r.pages.dev
- Custom domain: workflow.shazhou.work (pending SSL)
Ref: #164 , closes #167
小橘 🍊 (NEKO Team)
2026-05-09 10:01:27 +00:00
xiaoju
44018bd17d
chore: rename packages/dashboard → packages/workflow-dashboard
...
Align folder name with package name @uncaged/workflow-dashboard,
consistent with all other packages in the monorepo.
2026-05-09 03:57:49 +00:00