mirror of
https://github.com/run-llama/template-workflow-basic-ui.git
synced 2026-07-25 00:05:23 -04:00
1af83f8e43
* feat(basic-ui): upgrade to @llamaindex/ui v3 workflow hooks - Update @llamaindex/ui from ^2.1.1 to ~3.6.1 - Move @llamaindex/ui from devDependencies to dependencies - Replace deprecated hooks (useWorkflowRun, useWorkflowHandler) with new v3 hooks (useWorkflow, useHandler) - Add proper event streaming with subscribeToEvents - Use isStopEvent helper for result detection - Display handler status in the UI * fix(basic-ui): use handler.state.result for workflow result display Simplify the implementation by using handler.state.result directly instead of event streaming, which is more reliable for this simple use case where we only need the final result. * better * bump --------- Co-authored-by: Claude <noreply@anthropic.com>
37 lines
1.1 KiB
JSON
37 lines
1.1 KiB
JSON
{
|
|
"name": "ui",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc && vite build",
|
|
"preview": "vite preview",
|
|
"lint": "tsc --noEmit",
|
|
"format": "prettier --write src",
|
|
"format-check": "prettier --check src",
|
|
"all-check": "pnpm i && pnpm run lint && pnpm run format-check && pnpm run build",
|
|
"all-fix": "pnpm i && pnpm run lint && pnpm run format && pnpm run build"
|
|
},
|
|
"dependencies": {
|
|
"@llamaindex/ui": "~3.6.1",
|
|
"react": "^19.0.0",
|
|
"react-dom": "^19.0.0",
|
|
"react-router-dom": "^7.8.0"
|
|
},
|
|
"devDependencies": {
|
|
"@tailwindcss/postcss": "^4",
|
|
"@types/canvas-confetti": "^1.9.0",
|
|
"@types/node": "^20",
|
|
"@types/react": "^19",
|
|
"@types/react-dom": "^19",
|
|
"@vitejs/plugin-react": "^4.3.4",
|
|
"eslint": "^9",
|
|
"prettier": "^3.6.2",
|
|
"tailwindcss": "^4",
|
|
"typescript": "^5",
|
|
"vite": "^5.4.8"
|
|
},
|
|
"packageManager": "pnpm@10.11.0+sha512.6540583f41cc5f628eb3d9773ecee802f4f9ef9923cc45b69890fb47991d4b092964694ec3a4f738a420c918a333062c8b925d312f42e4f0c263eb603551f977"
|
|
}
|