WeKnora/frontend/src/utils
wizardchen bbe95a6c1b refactor(skills): enhance skill upload size management and error handling
- Updated .env.example to clarify skill zip upload limits and their implications for Nginx configuration.
- Refactored frontend logic to differentiate between skill zip uploads and other uploads, ensuring accurate error messages for oversized requests.
- Improved utility functions for managing upload limits and added tests to validate behavior for oversized JSON bodies.
- Enhanced error handling in various handlers to provide clearer feedback on upload size constraints, particularly for sandbox and catalog installations.
2026-09-02 15:08:05 +08:00
..
_repro_gap.mjs feat(frontend): enhance chat streaming visuals with shimmer effect and fade tail 2026-06-22 10:48:53 +08:00
agent-mode.test.mjs fix(agent): reconcile agent stream mode and shared-agent readiness UX 2026-06-25 23:33:39 +08:00
agent-mode.ts fix(agent): reconcile agent stream mode and shared-agent readiness UX 2026-06-25 23:33:39 +08:00
agent-readiness.test.mjs fix(agent): reconcile agent stream mode and shared-agent readiness UX 2026-06-25 23:33:39 +08:00
agent-readiness.ts fix(agent): reconcile agent stream mode and shared-agent readiness UX 2026-06-25 23:33:39 +08:00
agent-tool-display.test.mjs ui(chat): show skill names on tool cards and render sandbox file lists 2026-08-28 15:41:03 +08:00
agent-tool-display.ts fix(chat): 兜底回答不再把原始命中数报成检索结果数 2026-08-13 21:34:21 +08:00
agent-tool-icons.ts feat(agent): write workspace scripts and run them with installed skills 2026-08-29 22:45:18 +08:00
agentWebSearch.test.mjs fix: harden shared agent source permissions 2026-07-30 12:28:23 +08:00
agentWebSearch.ts fix: harden shared agent source permissions 2026-07-30 12:28:23 +08:00
api-base.ts feat(frontend): respect BASE_URL so the SPA works behind a path-prefix reverse proxy 2026-05-05 00:58:19 +08:00
attachmentParsingDisplay.test.mjs feat(chat): add session-scoped temporary attachments with async parsing 2026-07-16 17:41:27 +08:00
attachmentParsingDisplay.ts feat(chat): add session-scoped temporary attachments with async parsing 2026-07-16 17:41:27 +08:00
attachmentPreview.test.mjs feat(chat): add session-scoped temporary attachments with async parsing 2026-07-16 17:41:27 +08:00
attachmentPreview.ts feat(agent): preview skill artifacts and verify installs without running them (#2823) 2026-08-27 10:30:32 +08:00
card-list-badge.ts fix(frontend): hide redundant card badges when section headers apply 2026-06-26 16:55:44 +08:00
caret.ts feat: 支持输入框内选择知识库和文件,优化选择交互体验 2025-12-22 13:11:31 +08:00
chatMarkdownRenderer.test.ts fix(chat): enforce retrieved image output in answers 2026-07-15 18:10:31 +08:00
chatMarkdownRenderer.ts fix(frontend): keep streamed Mermaid diagrams from reverting to code (#2885) 2026-08-31 13:25:50 +08:00
chatMessageShared.ts fix(frontend): keep streamed Mermaid diagrams from reverting to code (#2885) 2026-08-31 13:25:50 +08:00
chatQuestionMinimap.test.ts ui(chat): refine the question outline to a tighter Codex-like rail 2026-08-27 20:10:11 +08:00
chatQuestionMinimap.ts ui(chat): refine the question outline to a tighter Codex-like rail 2026-08-27 20:10:11 +08:00
chatRequestDebug.ts feat(chat): add request info button and debug payload for stream requests 2026-06-04 15:48:04 +08:00
citationChunkCache.test.mjs feat(chat): add citation popover and chunk caching 2026-06-16 01:09:55 +08:00
citationChunkCache.ts feat(chat): add citation popover and chunk caching 2026-06-16 01:09:55 +08:00
citationMarkdown.ts feat(frontend): enhance chat markdown rendering and streaming behavior 2026-06-22 10:48:53 +08:00
clipboard.ts fix(ui): 统一剪贴板复制为公共方法,HTTP 环境回退 execCommand 2026-08-12 15:38:01 +08:00
cronHumanize.ts feat(datasource): implement data source management functionality 2026-03-30 20:46:07 +08:00
disable-autofill.ts feat(integrations): polish embed/IM channel editors and agent rebind 2026-06-24 20:09:19 +08:00
embedAllowedOrigins.ts feat(embed): add widget, visitor chat, and management UI (#1657) 2026-06-12 23:10:39 +08:00
embedBaseUrl.ts feat(embed): add widget, visitor chat, and management UI (#1657) 2026-06-12 23:10:39 +08:00
embedContext.ts feat(embed): add widget, visitor chat, and management UI (#1657) 2026-06-12 23:10:39 +08:00
embedFile.ts feat(embed): add widget, visitor chat, and management UI (#1657) 2026-06-12 23:10:39 +08:00
embedToast.ts feat(embed): add widget, visitor chat, and management UI (#1657) 2026-06-12 23:10:39 +08:00
filePreview.test.ts feat(agent): preview skill artifacts and verify installs without running them (#2823) 2026-08-27 10:30:32 +08:00
filePreview.ts feat(agent): preview skill artifacts and verify installs without running them (#2823) 2026-08-27 10:30:32 +08:00
fileTypeVerification.test.ts fix(knowledge): support local HTML uploads 2026-07-29 20:11:17 +08:00
fileTypeVerification.ts fix(knowledge): support local HTML uploads 2026-07-29 20:11:17 +08:00
files.ts ui(chat): restyle the generated-files drawer to match settings lists 2026-08-25 17:56:13 +08:00
finalAnswer.ts refactor(agent): remove final_answer tool references and update related logic 2026-06-04 15:48:04 +08:00
format-list.ts fix(agent): address readiness review findings 2026-06-25 23:33:39 +08:00
grepResultsGroup.test.mjs feat(chat): enhance references drawer behavior and citation handling 2026-07-17 10:19:43 +08:00
grepResultsGroup.ts feat(chat): enhance references drawer behavior and citation handling 2026-07-17 10:19:43 +08:00
index.ts fix(skills): raise skill zip cap and keep uninstall progress stable 2026-09-02 15:08:05 +08:00
knowledgeChunksDisplay.test.mjs feat(chat): refactor agent stream display and tool result rendering 2026-06-16 01:21:19 +08:00
knowledgeChunksDisplay.ts feat(chat): refactor agent stream display and tool result rendering 2026-06-16 01:21:19 +08:00
knowledgeProcessingStatus.test.mjs fix(knowledge): align processing timeline status with knowledge row 2026-07-14 16:49:56 +08:00
knowledgeProcessingStatus.ts fix(knowledge): align processing timeline status with knowledge row 2026-07-14 16:49:56 +08:00
knowledgeTrace.test.ts fix(frontend): clarify processing timeline status 2026-07-28 20:45:59 +08:00
knowledgeTrace.ts fix(frontend): clarify processing timeline status 2026-07-28 20:45:59 +08:00
loginNotify.ts feat(auth): support tenantless provisioning and gated self-service workspace creation 2026-07-13 18:13:51 +08:00
markdownDomPurify.test.mjs fix(frontend): open chat reference links in new tabs 2026-07-14 18:13:53 +08:00
markdownDomPurify.ts feat(agent): preview skill artifacts and verify installs without running them (#2823) 2026-08-27 10:30:32 +08:00
markdownEnhancements.ts fix(ui): 统一剪贴板复制为公共方法,HTTP 环境回退 execCommand 2026-08-12 15:38:01 +08:00
markdownTableNormalize.ts feat(parser): add OpenDataLoader, PaddleOCR-VL engines, and parser improvements 2026-06-03 12:29:13 +08:00
mermaidShared.ts fix(frontend): keep streamed Mermaid diagrams from reverting to code (#2885) 2026-08-31 13:25:50 +08:00
mermaidStreaming.test.ts fix(frontend): keep streamed Mermaid diagrams from reverting to code (#2885) 2026-08-31 13:25:50 +08:00
mermaidStreaming.ts fix(frontend): keep streamed Mermaid diagrams from reverting to code (#2885) 2026-08-31 13:25:50 +08:00
mermaidViewer.ts feat(chat): add shared markdown rendering pipeline 2026-06-16 01:09:55 +08:00
messageTimestamp.test.ts fix(chat): insert timestamps as conversation flow dividers 2026-08-24 18:34:40 +08:00
messageTimestamp.ts fix(chat): insert timestamps as conversation flow dividers 2026-08-24 18:34:40 +08:00
modelDefaults.ts feat(agent): prefill default rerank model on agent creation 2026-08-10 17:20:01 +08:00
passwordPolicy.ts feat: support complex password (#2929) 2026-09-01 11:50:10 +08:00
protectedFileAccess.test.ts feat(files): add message-scoped proxy for shared-agent chat images 2026-08-07 18:10:16 +08:00
protectedFileAccess.ts feat(files): add message-scoped proxy for shared-agent chat images 2026-08-07 18:10:16 +08:00
rag-pipeline-history.test.mjs feat(chat): add session-scoped temporary attachments with async parsing 2026-07-16 17:41:27 +08:00
rag-pipeline-history.ts fix(frontend): cover attachment-only turns and stalled streams in the RAG wait row 2026-08-04 13:21:23 +08:00
rag-pipeline-state.test.ts fix(frontend): cover attachment-only turns and stalled streams in the RAG wait row 2026-08-04 13:21:23 +08:00
rag-pipeline-state.ts fix(frontend): cover attachment-only turns and stalled streams in the RAG wait row 2026-08-04 13:21:23 +08:00
referenceSources.test.mjs fix(chat): polish references drawer layout and web reference titles 2026-07-17 11:04:16 +08:00
referenceSources.ts fix(chat): polish references drawer layout and web reference titles 2026-07-17 11:04:16 +08:00
request.ts refactor(skills): improve skill bundle size handling and error management 2026-09-02 15:08:05 +08:00
sandboxArtifactRefs.test.ts feat(agent): preview skill artifacts and verify installs without running them (#2823) 2026-08-27 10:30:32 +08:00
sandboxArtifactRefs.ts ui(sandbox): redesign personal sandbox secrets settings 2026-08-27 16:55:09 +08:00
security.test.ts feat(resource): add stable resource registry with LLM-context alias compaction 2026-07-15 17:02:43 +08:00
security.ts feat(agent): preview skill artifacts and verify installs without running them (#2823) 2026-08-27 10:30:32 +08:00
sessionMarkdown.test.ts feat(chat): add session header actions and Markdown export 2026-07-17 16:16:35 +08:00
sessionMarkdown.ts feat(chat): add session header actions and Markdown export 2026-07-17 16:16:35 +08:00
shellExecResult.test.ts fix(agent): keep skill-script stdout on failure for the model and UI 2026-08-28 15:05:42 +08:00
shellExecResult.ts fix(agent): keep skill-script stdout on failure for the model and UI 2026-08-28 15:05:42 +08:00
skillArtifacts.test.ts feat(agent): preview skill artifacts and verify installs without running them (#2823) 2026-08-27 10:30:32 +08:00
skillArtifacts.ts feat(agent): preview skill artifacts and verify installs without running them (#2823) 2026-08-27 10:30:32 +08:00
skillToolDisplay.test.ts ui(chat): show skill names on tool cards and render sandbox file lists 2026-08-28 15:41:03 +08:00
skillToolDisplay.ts ui(chat): show skill names on tool cards and render sandbox file lists 2026-08-28 15:41:03 +08:00
tdesign-icon-offline.ts fix(frontend): improve offline and legacy browser support 2026-05-21 11:19:44 +08:00
tenantModelReadiness.ts feat(contextualGuides): add multiple contextual guide components for agent and knowledge base creation 2026-06-03 14:42:46 +08:00
tenantSwitch.ts docs: fix 登陆 typo to 登录 2026-08-07 17:04:49 +08:00
thinkingControl.test.ts feat: add LiteLLM as a model provider (#2923) 2026-09-01 12:21:03 +08:00
thinkingControl.ts feat: add LiteLLM as a model provider (#2923) 2026-09-01 12:21:03 +08:00
tool-capabilities.ts refactor(agent): remove final_answer tool references and update related logic 2026-06-04 15:48:04 +08:00
tool-icons.ts feat: friendly display for MCP tool names in frontend (#715) 2026-03-21 10:22:05 +08:00
uploadLimit.test.mjs refactor(skills): enhance skill upload size management and error handling 2026-09-02 15:08:05 +08:00
uploadLimit.ts refactor(skills): enhance skill upload size management and error handling 2026-09-02 15:08:05 +08:00
weknoraCloudModels.ts feat(i18n): update WeKnoraCloud integration and enhance model management 2026-06-10 20:52:39 +08:00
wikiLineDiff.test.ts Improve Wiki reader layout and revision history UX. 2026-08-05 18:15:11 +08:00
wikiLineDiff.ts Improve Wiki reader layout and revision history UX. 2026-08-05 18:15:11 +08:00
wikiRevisionDiff.test.ts Improve Wiki reader layout and revision history UX. 2026-08-05 18:15:11 +08:00
wikiRevisionDiff.ts Improve Wiki reader layout and revision history UX. 2026-08-05 18:15:11 +08:00
wikiToolReferences.test.ts feat(chat): show wiki tool results in the references drawer 2026-07-23 19:41:34 +08:00
wikiToolReferences.ts feat(chat): show wiki tool results in the references drawer 2026-07-23 19:41:34 +08:00
workspaceNotifyContent.ts feat(i18n): enhance notification templates with raw message handling 2026-05-18 20:37:57 +08:00
zoom.ts fix(frontend): correct floating UI positioning under root `zoom` 2026-05-24 23:03:26 +08:00