* initialize * expand tool result text limit | add syntax highlighting and json formatting to tool result rendering * fix onError jsdoc * lint * fix unread icon * route protection * improve form handling for NewJobModal * safeJsonParse * remove unneeded comments * remove trycatch * add truncateText helper * add explicit fallback value tos safeJsonParse * add shared cron constant and helpers * reduce frontend indirection * use isLight to compute syntax highlighting theme * remove dead code * remove forJob and make job limit to 50 * create recomputeNextRunAt helper method * add comment about nextRunAt recomputation * add job queue and concurrency control to scheduled jobs * use p-queue * change default max concurrent value to 1 * add comment explaining internal scheduling system * add recomputeNextRunAt on boot * add generated documents to run details * Modify toolsOverride functionality where no tools selected means no tools are given to the agent add a select all/deselect all toggle button for easily selecting all tools in the cerate job form * create usePolling hook * add polling to scheduled jobs and scheduled job runs pages * add cron generation feature in job form * remove cron generation feature | add cron builder feature | add max active scheduled jobs limit * set MAX_ACTIVE to null * replace hour and minute input fields with input with type time * simplify * organize components * move components to bottom of page component * change Generated Documents to Generated Files * add i18n to cronstrue * add i18n * add type="button" to button elements * refactor fileSource retrieval logic * one scheduled job run can have status "running" * add protection of file retrieveal from scheduled job in multiuser mode * fix comments * make job status default to queued * add queued status * fix bug with result trace rendering * store timeout ref and clearTimeout once race settles * remove unneeded handlerPromise tracking * move imports to top level * refactor hardcoded paths to path resolve functions * implement new job form design * simplify * fix button styles * fix runJob bug * implement styles for scheduled jobs page * apply dark mode figma styles * delete unused translation key * implement light mode for new new job modal, run history, and run details * lint * fix light mode scroll bar in tool call card * adjust table header contrast * fix type in subtitle * kill workers when job is in-flight before deleting job * add border-none to buttons * change locale time to iso string * import BackgroundService module level | instatiate backgroundService singltone once and reuse across handlers * add p-queue, @breejs/later and cron-validate as core deps * parse cron expression to a builder state once * add theme to day buttons in cron builder * fix stale tools selection caption * flip popover when popover clips screen height * make ScheduleJob.trigger() await the run insertion | disable run now button if job is in flight * regen table * refactor generated file card * refactor frontend * remove logs * major refactor for tool picking, fix bree/later bug * combine action endpoints, move contine to method * fix unoptimized query with include + take + order * fix dangerous use, refactor job to utils * add copy content to text response * improve notification system subscription for browser * remove unused translations * prevent gen-file cleanup job from deleting active job file generated references * rich text copy * Scheduled Jobs: Translations (#5482) * add locales for scheduled jobs * i18n --------- Co-authored-by: Timothy Carambat <rambat1010@gmail.com> * add config flag with UI notice * update README * telemetry datapoints * Always use UTC on backend, convert to local in frontend * fix tz render * Add job killing * cleanup thinking text in job notifications and break out reasoning in response text. Also hide zero metrics since that is useless * Port generatedFile schema to the normalized workspace chat `outputs` file format so porting to thread is simple and implem between chats <> jobs is 1:1 * what the fuck * compiled bug * fixed thinking oddity in complied frontend * supress multi-toast * fix duration call * Revert "fix duration call" This reverts commit 0491bc71f4223e65ea4046561b15b268fefb8da2. * revert and reapply fix --------- Co-authored-by: Timothy Carambat <rambat1010@gmail.com>
85 lines
2.6 KiB
JSON
85 lines
2.6 KiB
JSON
{
|
|
"name": "anything-llm-frontend",
|
|
"private": false,
|
|
"license": "MIT",
|
|
"type": "module",
|
|
"scripts": {
|
|
"start": "vite --open",
|
|
"dev": "cross-env NODE_ENV=development vite --debug --host=0.0.0.0",
|
|
"build": "vite build && node scripts/postbuild.js",
|
|
"lint:check": "eslint src",
|
|
"lint": "eslint --fix src",
|
|
"preview": "vite preview"
|
|
},
|
|
"dependencies": {
|
|
"@lobehub/icons": "^4.0.3",
|
|
"@microsoft/fetch-event-source": "^2.0.1",
|
|
"@mintplex-labs/piper-tts-web": "^1.0.4",
|
|
"@phosphor-icons/react": "^2.1.7",
|
|
"@tremor/react": "^3.15.1",
|
|
"cronstrue": "^2.50.0",
|
|
"dompurify": "^3.0.8",
|
|
"file-saver": "^2.0.5",
|
|
"he": "^1.2.0",
|
|
"highlight.js": "^11.9.0",
|
|
"i18next": "^23.11.3",
|
|
"i18next-browser-languagedetector": "^7.2.1",
|
|
"js-levenshtein": "^1.1.6",
|
|
"katex": "^0.6.0",
|
|
"lodash.debounce": "^4.0.8",
|
|
"markdown-it": "^13.0.1",
|
|
"moment": "^2.30.1",
|
|
"onnxruntime-web": "^1.18.0",
|
|
"pluralize": "^8.0.0",
|
|
"qrcode.react": "^4.2.0",
|
|
"react": "^18.2.0",
|
|
"react-beautiful-dnd": "13.1.1",
|
|
"react-confetti-explosion": "^2.1.2",
|
|
"react-device-detect": "^2.2.2",
|
|
"react-dom": "^18.2.0",
|
|
"react-dropzone": "^14.2.3",
|
|
"react-error-boundary": "^6.0.0",
|
|
"react-highlight-words": "^0.21.0",
|
|
"react-i18next": "^14.1.1",
|
|
"react-loading-skeleton": "^3.1.0",
|
|
"react-router-dom": "^6.3.0",
|
|
"react-speech-recognition": "^3.10.0",
|
|
"react-tag-input-component": "^2.0.2",
|
|
"react-toastify": "^9.1.3",
|
|
"react-tooltip": "^5.25.2",
|
|
"recharts": "^2.12.5",
|
|
"recharts-to-png": "^2.3.1",
|
|
"text-case": "^1.0.9",
|
|
"truncate": "^3.0.0",
|
|
"uuid": "^9.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@esbuild-plugins/node-globals-polyfill": "^0.1.1",
|
|
"@eslint/js": "^9.39.2",
|
|
"@types/react": "^18.2.23",
|
|
"@types/react-dom": "^18.2.8",
|
|
"@types/react-router-dom": "^5.3.3",
|
|
"@vitejs/plugin-react": "^4.0.0-beta.0",
|
|
"autoprefixer": "^10.4.14",
|
|
"buffer": "^6.0.3",
|
|
"cross-env": "^7.0.3",
|
|
"eslint": "^9.39.2",
|
|
"eslint-config-prettier": "^9.0.0",
|
|
"eslint-plugin-ft-flow": "^3.0.0",
|
|
"eslint-plugin-prettier": "^5.0.0",
|
|
"eslint-plugin-react": "^7.37.5",
|
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
"eslint-plugin-react-refresh": "^0.4.3",
|
|
"eslint-plugin-unused-imports": "^4.3.0",
|
|
"flow-bin": "^0.217.0",
|
|
"flow-remove-types": "^2.217.1",
|
|
"globals": "^16.5.0",
|
|
"hermes-eslint": "^0.15.0",
|
|
"postcss": "^8.4.23",
|
|
"prettier": "^3.0.3",
|
|
"rollup-plugin-visualizer": "^5.9.0",
|
|
"tailwindcss": "^3.3.1",
|
|
"vite": "^4.3.0"
|
|
}
|
|
}
|