React/Vite frontend for the Cales procurement intelligence demo.
npm install
npm run devBy default the app uses src/data/mock.ts. To connect it to the backend, copy .env.example to .env.local and set:
VITE_API_URL=http://localhost:8000
VITE_AGENT_API_URL=http://localhost:8000
VITE_UI_AGENT_API_URL=http://localhost:8000When VITE_AGENT_API_URL is set, the UI cursor agent calls the backend /agent/ui endpoint. VITE_UI_AGENT_API_URL can override that target with either the backend base URL or the full /agent/ui endpoint.
npm run lint
npm run buildPOST /agent/analyzereturns the website report JSON plusexecutive_pdf.- Generated reports use the backend
request_idas the report route id. - Public
/r/:reportIdpages first read local storage, then fall back toGET /agent/reports/:reportId. - The Create Report page sends screen state to
/agent/uiand applies returned cursor actions to controls marked withdata-agent-id.