Files
damascus-orchestrator/ui/package.json
Hermes 01607f4d9e
Some checks failed
test / contract-and-unit (pull_request) Failing after 15s
feat(dashboard): human-issue UX — markdown + inline answer + Ask Hermes
- react-markdown@9.1.0 + remark-gfm@4.0.1 for question rendering
- AnswerPopover component (shared between drawer + OpenIssues widget)
- OpenIssues: markdown render + inline 'Answer' button per row
- ItemDrawer: markdown render for the answer prompt
- useAskHermes hook + AskHermesResponse schema
- POST /v1/issues/{id}/ask-hermes — emits hermes_ping event
  (queued) or echoes existing answer (answered)
- Tests: 4 new API tests for /ask-hermes, updated UI tests
  for new popover trigger + mock returns
- docs/human-issue-ux.md — flow + migration notes

The 'Ask Hermes' flow: UI pings the backend, backend emits an
event for the leader (operator session) to pick up, leader drafts
an answer and POSTs back via the existing answer endpoint. UI
prefills the textarea — never auto-submits, the human always
reviews and clicks Submit.
2026-06-26 14:09:57 +00:00

42 lines
1.2 KiB
JSON

{
"name": "damascus-ui",
"version": "0.1.0",
"private": true,
"type": "module",
"description": "Damascus orchestrator UI (P4 + P5: read-only dashboard, ingest, answer, project-grouped view, 4 self-improving widgets)",
"scripts": {
"dev": "vite",
"build": "tsc --noEmit && vite build",
"preview": "vite preview --host 0.0.0.0",
"typecheck": "tsc --noEmit",
"test:unit": "vitest run",
"test:unit:watch": "vitest",
"test:e2e": "VITE_API_BASE_URL=http://127.0.0.1:9111 vite build && playwright test"
},
"dependencies": {
"@emotion/react": "^11.13.0",
"@emotion/styled": "^11.13.0",
"@mui/icons-material": "^6.1.0",
"@mui/material": "^6.1.0",
"@mui/x-data-grid": "^7.22.0",
"@tanstack/react-query": "^5.59.0",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-markdown": "^9.1.0",
"remark-gfm": "^4.0.1"
},
"devDependencies": {
"@playwright/test": "^1.61.1",
"@testing-library/jest-dom": "^6.5.0",
"@testing-library/react": "^16.0.0",
"@types/node": "^22.0.0",
"@types/react": "^19.0.0",
"@types/react-dom": "^19.0.0",
"@vitejs/plugin-react": "^4.3.4",
"jsdom": "^25.0.0",
"typescript": "^5.6.0",
"vite": "^6.0.0",
"vitest": "^2.1.0"
}
}