Skip to content

fix(view-extension): 插件视图文件通道 UTF-8 文件名解码收口(简历初筛配套) - #1103

Open
mwrforever wants to merge 3 commits into
xpert-ai:mainfrom
mwrforever:feat/resume-screen-v5-decode
Open

mwrforever wants to merge 3 commits into
xpert-ai:mainfrom
mwrforever:feat/resume-screen-v5-decode

Conversation

@mwrforever

Copy link
Copy Markdown

功能总述

简历初筛工作台插件(见 xpert-plugins 仓配套 PR #703)所需的平台侧配套改动,分支 feat/resume-screen-v5-decode,共 3 个提交:

提交 内容 动机
e8ab6e4 fix(view-extension):multipart 上传的 originalname 在交给插件前按 UTF-8 解码(与 packages/common/src/utils/file-name.ts 平台既有口径一致) busbus/multer 把文件名头按 latin1 传递,UTF-8 字节被二次解析形成「æå-ç®ä»¿.pdf」式乱码——插件上传通道中文文件名乱码的根因修复
7301293 chore(server):jest maxWorkers 与空闲 worker 内存上限 大仓全量测试的内存峰值治理,与 plugins 仓同款配置
28f87fb chore:提交工作区历史遗留改动(用户指令 2026-09-29) 见下节明细

28f87fb 内容明细(13 文件,+362/−49222)

  • knowledge-workbench app.js:−49361 行——该文件此前被一次构建误写入完整的 minified bundle(整个 React 运行时编译产物,49484 行);本次清理回正常的 445 行源态骨架,并修正 build.mjs(6 行)防止再次把 bundle 写错位置。纯产物垃圾清理,无功能变更。
  • ai-model-provider.decorator.ts(20 行):插件模型调用所需的 provider 语义适配。
  • view-extension.controller.spec.ts(+35):为 e8ab6e4 的解码行为补回归用例。
  • view-extension.controller.ts(7 行):与 spec 配套的最小接线。
  • xpert-tool.controller/service.ts、organization-plugin.store.ts、plugin-loader.ts、deploy-local-plugin.mjs、start-cloud.mjs、pnpm-lock.yaml:本地联调期遗留的既有行为修正与工具链微调(逐项为小改动)。

测试证据

  • view-extension focused 测试 28/28 通过(含新增 35 行回归用例)
  • 全仓 jest 既有基线无新增红(maxWorkers 治理后本地全量通过)

合入建议

与 xpert-plugins PR #703(简历初筛工作台插件)同批评审合入:插件上传功能依赖 e8ab6e4 的文件名解码修复,否则中文文件名在视图文件通道乱码。

Jest defaults to cores-1 workers on this 24-core host, so concurrent
agent test runs spike committed memory past 10GB. Cost is slower
full-suite runs.
- deploy-local-plugin.mjs:pnpm run 改 shell:true(Windows .cmd spawn 兼容)
- plugin-loader / organization-plugin.store:插件装载链调整
- xpert-tool controller/service:工具 schema 整理
- ai-model-provider.decorator、knowledge-workbench 产物与 build.mjs
- pnpm-lock.yaml 依赖锁同步

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant