dsh-total-quality 2.0.55 → 2.0.57

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (197) hide show
  1. package/CONTRIBUTING.md +51 -47
  2. package/LICENSE.md +37 -37
  3. package/README.en.md +32 -30
  4. package/README.md +90 -88
  5. package/agent-host.cjs +277 -277
  6. package/client.js +199 -92
  7. package/cordis.patch.yml +5 -5
  8. package/docs/enterprise-onboarding.md +10 -10
  9. package/docs/technical-reference.md +223 -223
  10. package/host.cjs +91 -124
  11. package/llm-bridge.cjs +234 -234
  12. package/locale/en.json +5 -5
  13. package/locale/zh.json +5 -5
  14. package/package.json +3 -2
  15. package/public/app.css +3 -0
  16. package/public/app.js +6 -2
  17. package/public/index.html +8 -9
  18. package/public/js/api.js +152 -152
  19. package/public/js/assistant-history.js +62 -62
  20. package/public/js/material-library.js +100 -100
  21. package/public/js/mobile-preview.js +119 -0
  22. package/public/js/pages-company-knowledge.js +9 -32
  23. package/public/js/pages-core.js +232 -232
  24. package/public/js/pages-growth.js +148 -148
  25. package/public/js/pages-qms.js +1 -1
  26. package/public/js/pages-qtools.js +410 -410
  27. package/public/js/pages-thanks.js +71 -71
  28. package/public/js/plugin-updates.js +53 -0
  29. package/public/js/quality-workflow.js +205 -205
  30. package/public/js/survey-dates.js +41 -41
  31. package/public/js/survey-knowledge.js +301 -301
  32. package/public/js/tool-wizards.js +621 -621
  33. package/public/js/ui.js +467 -467
  34. package/public/js/voice-capture-worklet.js +30 -30
  35. package/public/js/xiaozhi-voice.js +264 -264
  36. package/public/js/xiaozhi.js +468 -468
  37. package/public/platform-help.html +426 -426
  38. package/public/platform-site/assets/0468a68574112812.css +10703 -10703
  39. package/public/platform-site/assets/159e086d35adfa1c.css +2094 -2094
  40. package/public/platform-site/assets/169e3159cade0d9f.css +98 -98
  41. package/public/platform-site/assets/22b917c4a3d4ae3d.svg +14 -14
  42. package/public/platform-site/assets/476f9254ccf723e7.css +8265 -8265
  43. package/public/platform-site/assets/85a0a4fb4416ded9.css +120 -120
  44. package/public/platform-site/assets/a3b272383226f6d9.svg +135 -135
  45. package/public/platform-site/assets/fd16dc5f3cc9d97e.svg +104 -104
  46. package/public/platform-site/assets/qip-favicon.svg +5 -5
  47. package/public/platform-site/index.html +279 -279
  48. package/public/platform-site/offline.js +261 -261
  49. package/public/platform-site/qip-brand.css +566 -566
  50. package/public/platform-site/qip-module-guides.js +237 -237
  51. package/public/responsive.css +103 -101
  52. package/public/vendor/markdown-it-15.0.3.LICENSE +22 -22
  53. package/public/vendor/markdown-it-15.0.3.umd.min.js +13 -13
  54. package/public/workbench.css +7 -7
  55. package/public/xiaozhi.css +292 -292
  56. package/resources/qms-templates/019ffb58f24ed48d.docx +0 -0
  57. package/resources/qms-templates/04a69165fc15143a.docx +0 -0
  58. package/resources/qms-templates/09af69358c989a63.docx +0 -0
  59. package/resources/qms-templates/0e7ac77844e45311.docx +0 -0
  60. package/resources/qms-templates/12446a1b5e173c71.docx +0 -0
  61. package/resources/qms-templates/15ae40f67f9a3efc.docx +0 -0
  62. package/resources/qms-templates/18a69bbebf2ece7f.docx +0 -0
  63. package/resources/qms-templates/1978faa989134f02.docx +0 -0
  64. package/resources/qms-templates/1a30e121de752f7b.docx +0 -0
  65. package/resources/qms-templates/1b88907969ea7d4c.docx +0 -0
  66. package/resources/qms-templates/1e92b808722bf90a.docx +0 -0
  67. package/resources/qms-templates/2091cad340dc0e7f.docx +0 -0
  68. package/resources/qms-templates/271ae1002c896ed7.docx +0 -0
  69. package/resources/qms-templates/280ce53e5d3b5fcf.docx +0 -0
  70. package/resources/qms-templates/28ca8e4ede0adf6d.docx +0 -0
  71. package/resources/qms-templates/2ac6675f3cb1f993.docx +0 -0
  72. package/resources/qms-templates/2c3b799389909d8b.docx +0 -0
  73. package/resources/qms-templates/2c51038ba2cc3264.docx +0 -0
  74. package/resources/qms-templates/30c888851d16d764.docx +0 -0
  75. package/resources/qms-templates/3459fc4daaa2743d.docx +0 -0
  76. package/resources/qms-templates/3751dafc335e0e80.docx +0 -0
  77. package/resources/qms-templates/38798cd4298cd2db.docx +0 -0
  78. package/resources/qms-templates/38f551f9d738ab0a.docx +0 -0
  79. package/resources/qms-templates/3c85a23ea17018b4.docx +0 -0
  80. package/resources/qms-templates/3cdb7d14caf1b852.docx +0 -0
  81. package/resources/qms-templates/3f23239bb6b3e1db.docx +0 -0
  82. package/resources/qms-templates/42a5b9efeeaa8007.docx +0 -0
  83. package/resources/qms-templates/47352aafe9b8dac1.docx +0 -0
  84. package/resources/qms-templates/495359b1e3cbb8fe.docx +0 -0
  85. package/resources/qms-templates/4ca6920464785166.docx +0 -0
  86. package/resources/qms-templates/4ce862582a7791be.docx +0 -0
  87. package/resources/qms-templates/54c9a02a10991b9e.docx +0 -0
  88. package/resources/qms-templates/5aeb8fddf5f3693f.docx +0 -0
  89. package/resources/qms-templates/5d7e5576b0e73be7.docx +0 -0
  90. package/resources/qms-templates/5db3a40edac37791.docx +0 -0
  91. package/resources/qms-templates/5ffa21eb78eb6f77.docx +0 -0
  92. package/resources/qms-templates/60d0fbcb709b7161.docx +0 -0
  93. package/resources/qms-templates/63e1d3a166756095.docx +0 -0
  94. package/resources/qms-templates/65c724c080d32f10.docx +0 -0
  95. package/resources/qms-templates/674bd7826c6cbac2.docx +0 -0
  96. package/resources/qms-templates/677e851acca1b879.docx +0 -0
  97. package/resources/qms-templates/6bf15feb1a0d2a8d.docx +0 -0
  98. package/resources/qms-templates/6c3889c7d0918db9.docx +0 -0
  99. package/resources/qms-templates/6c4c349eeb0a96a8.docx +0 -0
  100. package/resources/qms-templates/6c5befbd33f759c1.docx +0 -0
  101. package/resources/qms-templates/6df8367901347508.docx +0 -0
  102. package/resources/qms-templates/71db51997037692b.docx +0 -0
  103. package/resources/qms-templates/78a8ef8c76510c99.docx +0 -0
  104. package/resources/qms-templates/8397bfd1c0a1b013.docx +0 -0
  105. package/resources/qms-templates/84d750cf858b60a1.docx +0 -0
  106. package/resources/qms-templates/880de58a4b334533.docx +0 -0
  107. package/resources/qms-templates/88c37d1b87d9b78c.docx +0 -0
  108. package/resources/qms-templates/88e9cd42f1849462.docx +0 -0
  109. package/resources/qms-templates/8956597403be35b6.docx +0 -0
  110. package/resources/qms-templates/94675c810a233e1f.docx +0 -0
  111. package/resources/qms-templates/94dff59dd7ebec6e.docx +0 -0
  112. package/resources/qms-templates/9670b9cd02141594.docx +0 -0
  113. package/resources/qms-templates/98c373ebd7b5163d.docx +0 -0
  114. package/resources/qms-templates/a4078cf2378a9388.docx +0 -0
  115. package/resources/qms-templates/a5b110c7ef917139.docx +0 -0
  116. package/resources/qms-templates/aec75820e45774be.docx +0 -0
  117. package/resources/qms-templates/b31c085e281d230c.docx +0 -0
  118. package/resources/qms-templates/b7c1c3c72f8ffeef.docx +0 -0
  119. package/resources/qms-templates/b81b82eaa5c8f422.docx +0 -0
  120. package/resources/qms-templates/b92a2fa31f75f137.docx +0 -0
  121. package/resources/qms-templates/b96c54ae9cfffc54.docx +0 -0
  122. package/resources/qms-templates/bc47cfd626c010e7.docx +0 -0
  123. package/resources/qms-templates/be60792734afca69.docx +0 -0
  124. package/resources/qms-templates/c0018d8ae9ad19e1.docx +0 -0
  125. package/resources/qms-templates/c171027c964c8be3.docx +0 -0
  126. package/resources/qms-templates/c4b93d71f5d98b4b.docx +0 -0
  127. package/resources/qms-templates/c531da29fcb3090f.docx +0 -0
  128. package/resources/qms-templates/c88eddd43358d015.docx +0 -0
  129. package/resources/qms-templates/cb978da542f0d892.docx +0 -0
  130. package/resources/qms-templates/ccde4a94532a8d36.docx +0 -0
  131. package/resources/qms-templates/cf3fb1e20ae6f24d.docx +0 -0
  132. package/resources/qms-templates/d231b4982fc8113e.docx +0 -0
  133. package/resources/qms-templates/d3c55aa5ed14055c.docx +0 -0
  134. package/resources/qms-templates/db45c44a00a13349.docx +0 -0
  135. package/resources/qms-templates/db849a41210f54e0.docx +0 -0
  136. package/resources/qms-templates/dba9ce363d83ddc8.docx +0 -0
  137. package/resources/qms-templates/dca3ea4c95eb2225.docx +0 -0
  138. package/resources/qms-templates/dfa4220d2b6b8131.docx +0 -0
  139. package/resources/qms-templates/dfa51222c777734f.docx +0 -0
  140. package/resources/qms-templates/e07ea511507e14f5.docx +0 -0
  141. package/resources/qms-templates/e0a2e00c03458dfa.docx +0 -0
  142. package/resources/qms-templates/e0e802f46b6764d1.docx +0 -0
  143. package/resources/qms-templates/e53fc85717f2852b.docx +0 -0
  144. package/resources/qms-templates/e9dd82d5e54520e5.docx +0 -0
  145. package/resources/qms-templates/ea7bfc22c06d82a9.docx +0 -0
  146. package/resources/qms-templates/ecf0db9f37294536.docx +0 -0
  147. package/resources/qms-templates/f05fcfc87e82ff39.docx +0 -0
  148. package/resources/qms-templates/fb9e56a17c4a4f97.docx +0 -0
  149. package/resources/qms-templates/manifest.json +932 -0
  150. package/src/data/seed-sme.js +317 -317
  151. package/src/data/seed.js +879 -879
  152. package/src/lib/backup-identity.js +57 -57
  153. package/src/lib/chat-answer.js +225 -225
  154. package/src/lib/chat-context.js +99 -99
  155. package/src/lib/company-library.js +28 -19
  156. package/src/lib/data-import.js +217 -217
  157. package/src/lib/data-sources.js +118 -118
  158. package/src/lib/demo-data.js +27 -1
  159. package/src/lib/employee-intake.js +84 -84
  160. package/src/lib/growth.js +53 -53
  161. package/src/lib/intake-packets.js +119 -119
  162. package/src/lib/issue-intake.js +88 -88
  163. package/src/lib/kb-revision.js +214 -214
  164. package/src/lib/llm.js +279 -279
  165. package/src/lib/model-error.js +14 -14
  166. package/src/lib/privacy.js +26 -26
  167. package/src/lib/qms-drafting.js +194 -194
  168. package/src/lib/qms-jobs.js +11 -7
  169. package/src/lib/qms-manual-review.js +185 -185
  170. package/src/lib/qms-procedure-review.js +109 -109
  171. package/src/lib/qms-templates.js +358 -326
  172. package/src/lib/qms.js +369 -369
  173. package/src/lib/quality-priority.js +100 -100
  174. package/src/lib/quality-state.js +92 -92
  175. package/src/lib/quality-workflow.js +65 -65
  176. package/src/lib/retrieval.js +159 -159
  177. package/src/lib/spc.js +127 -127
  178. package/src/lib/voice-hotwords.txt +22 -22
  179. package/src/lib/voice-text.js +13 -13
  180. package/src/lib/voice-worker.js +72 -72
  181. package/src/lib/voice.js +330 -330
  182. package/src/lib/workbench-notices.js +49 -49
  183. package/src/lib/workbench.js +103 -106
  184. package/src/package.json +3 -3
  185. package/src/tools/analysis.js +306 -306
  186. package/src/tools/data.js +596 -596
  187. package/src/tools/docs.js +430 -430
  188. package/src/tools/registry.js +57 -57
  189. package/tools-dsh.cjs +153 -153
  190. package//345/256/211/350/243/205/350/257/264/346/230/216.md +33 -25
  191. package//346/234/254/346/234/272/347/213/254/347/253/213/345/256/211/350/243/205/350/257/264/346/230/216.md +17 -17
  192. package//350/207/252/346/243/200.cjs +88 -88
  193. package/public/js/remote-knowledge.js +0 -165
  194. package/public/js/workbench-notices.js +0 -67
  195. package/public/remote-knowledge-help.html +0 -35
  196. package/public/remote-knowledge.css +0 -40
  197. package/src/lib/remote-knowledge.js +0 -284
package/CONTRIBUTING.md CHANGED
@@ -1,47 +1,51 @@
1
- # 参与贡献(CONTRIBUTING)
2
-
3
- 感谢您愿意让这个开源质量平台更好用。下面是最短的上手路径。
4
-
5
- ## 1. 本地跑起来
6
-
7
- 本插件没有构建步骤:原生 ESM + 浏览器原生 JS,改完刷新页面(`Ctrl+Shift+R`)即生效。
8
-
9
- ```bash
10
- # 语法自检(改动后随手跑,CI 也会跑)
11
- node --check host.cjs
12
- for f in public/app.js public/js/*.js src/lib/*.js src/tools/*.js; do node --check "$f"; done
13
-
14
- # 不需要 Harness 的引擎自检(会临时建库、跑统计与导出)
15
- node 自检.cjs
16
- ```
17
-
18
- 安装到 Harness 的方式见 `安装说明.md`;开发期可以用 `plugin_manager set_bundle` 开关插件来验证加载。
19
-
20
- ## 2. 提 Issue
21
-
22
- 请写清三件事:**哪个页面/接口**、**复现步骤**、**期望结果**。
23
- 数据相关的 issue 请附上「车间/产品名称被改成了什么」(初始设置页截图即可),这类问题多数和口径迁移有关。
24
-
25
- ## 3. 提 Pull Request
26
-
27
- - 一个 PR 只做一件事;重构与新功能不要混在一起。
28
- - 提交前跑一遍上面的 `node --check`;改 UI 的请附截图。
29
- - 不要提交 `node_modules/`、数据库文件(`*.db`、`*.db-wal`)、`reports/` 或任何真实企业数据。
30
- - 新增页面请同时更新:`public/index.html` 的菜单项、`README.md` 的页面清单、必要时 `tool-wizards.js` 的工具清单。
31
-
32
- ## 4. 代码约定
33
-
34
- | 位置 | 说明 |
35
- | --- | --- |
36
- | `host.cjs` | 宿主半:HTTP 路由(`route(method, regexp, handler)`)、静态资源、SQLite 读写 |
37
- | `client.js` | Harness 左侧栏入口与 iframe 挂载 |
38
- | `public/` | 插件页面:`app.js` 壳与动作、`js/pages-*.js` 各页、`js/ui.js` 组件、`app.css` 样式 |
39
- | `src/tools/` | 交给智能体的工具(`define({name, description, input, run})`,重名会被注册中心拦) |
40
- | `src/lib/` | 业务能力:`store`(内存态 + SQLite 落盘)、`stats`、`office`、`qms`(体系文件模板) |
41
- | `src/data/` | 两套初始数据:`seed.js`(大中型)、`seed-sme.js`(中小型) |
42
-
43
- 约定:文案用中文、不要出现具体车企/品牌等第三方名称;数据口径(公司/部门/车间/产品)一律走「初始设置」,不要在代码里写死。
44
-
45
- ## 5. 许可
46
-
47
- 提交即表示您同意以 [MIT](LICENSE.md) 许可发布您的贡献。
1
+ # 参与贡献(CONTRIBUTING)
2
+
3
+ 感谢您愿意让这个开源质量平台更好用。下面是最短的上手路径。
4
+
5
+ ## 1. 本地跑起来
6
+
7
+ 本插件没有构建步骤:原生 ESM + 浏览器原生 JS,改完刷新页面(`Ctrl+Shift+R`)即生效。
8
+
9
+ ```bash
10
+ # 语法自检(改动后随手跑,CI 也会跑)
11
+ node --check host.cjs
12
+ for f in public/app.js public/js/*.js src/lib/*.js src/tools/*.js; do node --check "$f"; done
13
+
14
+ # 不需要 Harness 的引擎自检(会临时建库、跑统计与导出)
15
+ node 自检.cjs
16
+ ```
17
+
18
+ 安装到 Harness 的方式见 `安装说明.md`;开发期可以用 `plugin_manager set_bundle` 开关插件来验证加载。
19
+
20
+ ## 2. 提 Issue
21
+
22
+ 请写清三件事:**哪个页面/接口**、**复现步骤**、**期望结果**。
23
+ 数据相关的 issue 请附上「车间/产品名称被改成了什么」(初始设置页截图即可),这类问题多数和口径迁移有关。
24
+
25
+ ## 3. 提 Pull Request
26
+
27
+ - 一个 PR 只做一件事;重构与新功能不要混在一起。
28
+ - 提交前跑一遍上面的 `node --check`;改 UI 的请附截图。
29
+ - 不要提交 `node_modules/`、数据库文件(`*.db`、`*.db-wal`)、`reports/` 或任何真实企业数据。
30
+ - 新增页面请同时更新:`public/index.html` 的菜单项、`README.md` 的页面清单、必要时 `tool-wizards.js` 的工具清单。
31
+
32
+ ## 4. 代码约定
33
+
34
+ | 位置 | 说明 |
35
+ | --- | --- |
36
+ | `host.cjs` | 宿主半:HTTP 路由(`route(method, regexp, handler)`)、静态资源、SQLite 读写 |
37
+ | `client.js` | Harness 左侧栏入口与 iframe 挂载 |
38
+ | `public/` | 插件页面:`app.js` 壳与动作、`js/pages-*.js` 各页、`js/ui.js` 组件、`app.css` 样式 |
39
+ | `src/tools/` | 交给智能体的工具(`define({name, description, input, run})`,重名会被注册中心拦) |
40
+ | `src/lib/` | 业务能力:`store`(内存态 + SQLite 落盘)、`stats`、`office`、`qms`(体系文件模板) |
41
+ | `src/data/` | 两套初始数据:`seed.js`(大中型)、`seed-sme.js`(中小型) |
42
+
43
+ 约定:文案用中文、不要出现具体车企/品牌等第三方名称;数据口径(公司/部门/车间/产品)一律走「初始设置」,不要在代码里写死。
44
+
45
+ 发布 npm 包时,将打包目录中的 `package.json` 包名、`cordis.patch.yml` 的 `name` 和
46
+ `client.js` 最后传入的模块名统一改为 `dsh-total-quality`。工作台入口 ID 继续使用
47
+ `qip-real-workbench`,GitHub 安装包继续使用原来的包名和模块名。
48
+
49
+ ## 5. 许可
50
+
51
+ 提交即表示您同意以 [MIT](LICENSE.md) 许可发布您的贡献。
package/LICENSE.md CHANGED
@@ -1,37 +1,37 @@
1
- # MIT License
2
-
3
- Copyright (c) 2026 全质开源质量平台贡献者 / Quanzhi Open-Source Quality Platform contributors
4
-
5
- 本插件(`qip-real-workbench`,含 Host 半、Client 半、统计/文档引擎移植与页面资源)以 MIT 许可开源发布。
6
-
7
- Permission is hereby granted, free of charge, to any person obtaining a copy
8
- of this software and associated documentation files (the "Software"), to deal
9
- in the Software without restriction, including without limitation the rights
10
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
- copies of the Software, and to permit persons to whom the Software is
12
- furnished to do so, subject to the following conditions:
13
-
14
- The above copyright notice and this permission notice shall be included in all
15
- copies or substantial portions of the Software.
16
-
17
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
- SOFTWARE.
24
-
25
- ---
26
-
27
- ## 中文说明(非法律文本,仅供理解)
28
-
29
- - **您可以**:商用、修改、二次开发、私有化部署、再分发,无需付费、无需获得额外授权。
30
- - **您需要**:保留本许可与版权声明;对外分发时随包附带本文件。
31
- - **不含**:本插件不附带任何厂商的私有数据、客户资料或商用证书文件;初始数据均为程序生成的合成样例,仅供试用与培训。
32
- - **免责**:软件按「现状」提供,不承诺适用性;用于实际生产前,请自行复核体系文件条文与统计结论。
33
-
34
- ## 第三方依赖
35
-
36
- - DeepSeek Harness(宿主)、Node.js / `node:sqlite`、以及任何随包安装的 npm 依赖,遵循其各自许可。
37
- - 浏览器侧的图标为系统 emoji 字符,不包含第三方图标字体资源。
1
+ # MIT License
2
+
3
+ Copyright (c) 2026 全质开源质量平台贡献者 / Quanzhi Open-Source Quality Platform contributors
4
+
5
+ 本插件(`qip-real-workbench`,含 Host 半、Client 半、统计/文档引擎移植与页面资源)以 MIT 许可开源发布。
6
+
7
+ Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ of this software and associated documentation files (the "Software"), to deal
9
+ in the Software without restriction, including without limitation the rights
10
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ copies of the Software, and to permit persons to whom the Software is
12
+ furnished to do so, subject to the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall be included in all
15
+ copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
+ SOFTWARE.
24
+
25
+ ---
26
+
27
+ ## 中文说明(非法律文本,仅供理解)
28
+
29
+ - **您可以**:商用、修改、二次开发、私有化部署、再分发,无需付费、无需获得额外授权。
30
+ - **您需要**:保留本许可与版权声明;对外分发时随包附带本文件。
31
+ - **不含**:本插件不附带任何厂商的私有数据、客户资料或商用证书文件;初始数据均为程序生成的合成样例,仅供试用与培训。
32
+ - **免责**:软件按「现状」提供,不承诺适用性;用于实际生产前,请自行复核体系文件条文与统计结论。
33
+
34
+ ## 第三方依赖
35
+
36
+ - DeepSeek Harness(宿主)、Node.js / `node:sqlite`、以及任何随包安装的 npm 依赖,遵循其各自许可。
37
+ - 浏览器侧的图标为系统 emoji 字符,不包含第三方图标字体资源。
package/README.en.md CHANGED
@@ -1,30 +1,32 @@
1
- <p align="center"><img src="icon.svg" width="72" height="72" alt="Quanzhi"></p>
2
-
3
- <h1 align="center">Quanzhi Open-Source Quality Platform</h1>
4
-
5
- <p align="center">Manufacturing quality management in DeepSeek Harness</p>
6
- <p align="center"><a href="README.md">简体中文</a> · <strong>English</strong></p>
7
-
8
- Quanzhi connects shop-floor reporting, quality analysis, reviews, and controlled documents. Employees can report defects and attach photos or files from a computer or phone. Quality engineers can trace affected batches and inspect measurements. Supervisors assign work and review evidence in the same case.
9
-
10
- ![Quanzhi workspace](docs/preview/manager-desktop.png)
11
-
12
- ## Getting started
13
-
14
- Download `qip-real-workbench-2.0.55.tgz` from the [latest release](https://github.com/total-quality/dsh-total-quality/releases/latest) and install it in the DSH Web profile. Open **全质开源质量平台** in the sidebar. Choose an empty workspace for company records or load sample data for a trial.
15
-
16
- ```sh
17
- dsh plugin --profile web add https://github.com/total-quality/dsh-total-quality/releases/download/v2.0.55/qip-real-workbench-2.0.55.tgz
18
- ```
19
-
20
- ## What you can do
21
-
22
- - Record quality issues, assign follow-up work, and review corrective actions.
23
- - Import measurements and defects, run SPC and capability analysis, and export Word or Excel reports.
24
- - Publish controlled document revisions with effective dates.
25
- - Ask Xiaozhi to find and cite documents or analyze a quality issue.
26
- - Draft quality manuals and procedures from enterprise templates and survey data.
27
-
28
- Open the unified workspace from the DSH sidebar on the computer running DSH. The layout adapts to narrow windows. AI features use the model configured in DSH and the organization’s model data permissions.
29
-
30
- [Installation guide (Chinese)](安装说明.md) · [Workspace and data migration (Chinese)](docs/enterprise-onboarding.md) · [MIT license](LICENSE.md)
1
+ <p align="center"><img src="icon.svg" width="72" height="72" alt="Quanzhi"></p>
2
+
3
+ <h1 align="center">Quanzhi Open-Source Quality Platform</h1>
4
+
5
+ <p align="center">Manufacturing quality management in DeepSeek Harness</p>
6
+ <p align="center"><a href="README.md">简体中文</a> · <strong>English</strong></p>
7
+
8
+ Quanzhi connects shop-floor reporting, quality analysis, reviews, and controlled documents. Employees can report defects and attach photos or files from a computer or phone. Quality engineers can trace affected batches and inspect measurements. Supervisors assign work and review evidence in the same case.
9
+
10
+ ![Quanzhi workspace](docs/preview/manager-desktop.png)
11
+
12
+ ## Getting started
13
+
14
+ Enter `dsh-total-quality` in DSH’s Add Plugin dialog to install the latest npm version. The GitHub release also provides an installable bundle.
15
+
16
+ Download `qip-real-workbench-2.0.57.tgz` from the [latest release](https://github.com/total-quality/dsh-total-quality/releases/latest) and install it in the DSH Web profile. Open **全质开源质量平台** in the sidebar. Choose an empty workspace for company records or load sample data for a trial.
17
+
18
+ ```sh
19
+ dsh plugin --profile web add https://github.com/total-quality/dsh-total-quality/releases/download/v2.0.57/qip-real-workbench-2.0.57.tgz
20
+ ```
21
+
22
+ ## What you can do
23
+
24
+ - Record quality issues, assign follow-up work, and review corrective actions.
25
+ - Import measurements and defects, run SPC and capability analysis, and export Word or Excel reports.
26
+ - Publish controlled document revisions with effective dates.
27
+ - Ask Xiaozhi to find and cite documents or analyze a quality issue.
28
+ - Draft quality manuals and procedures from enterprise templates and survey data.
29
+
30
+ Open the unified workspace from the DSH sidebar on the computer running DSH. The layout adapts to narrow windows. AI features use the model configured in DSH and the organization’s model data permissions.
31
+
32
+ [Installation guide (Chinese)](安装说明.md) · [Workspace and data migration (Chinese)](docs/enterprise-onboarding.md) · [MIT license](LICENSE.md)
package/README.md CHANGED
@@ -1,88 +1,90 @@
1
- <p align="center"><img src="icon.svg" width="72" height="72" alt="全质开源质量平台"></p>
2
-
3
- <h1 align="center">全质开源质量平台</h1>
4
-
5
- <p align="center">面向中小制造企业的开源质量工作台 · DeepSeek Harness 插件</p>
6
-
7
- <p align="center">
8
- <a href="https://github.com/total-quality/dsh-total-quality/releases/latest"><img src="https://img.shields.io/github/v/release/total-quality/dsh-total-quality?style=flat-square&amp;logo=github&amp;label=release&amp;labelColor=12213B&amp;color=2458B3" alt="最新版本"></a>
9
- <a href="安装说明.md"><img src="https://img.shields.io/badge/docs-installation-287BE0?style=flat-square&amp;labelColor=12213B" alt="安装说明"></a>
10
- <a href="LICENSE.md"><img src="https://img.shields.io/badge/license-MIT-16886B?style=flat-square&amp;labelColor=12213B" alt="MIT 许可证"></a>
11
- <a href="https://github.com/total-quality/dsh-total-quality/stargazers"><img src="https://img.shields.io/github/stars/total-quality/dsh-total-quality?style=flat-square&amp;logo=github&amp;label=stars&amp;labelColor=12213B&amp;color=AD722A" alt="GitHub Stars"></a>
12
- </p>
13
-
14
- <p align="center"><strong>简体中文</strong> · <a href="README.en.md">English</a></p>
15
-
16
- <p align="center">
17
- <a href="#项目概览">项目概览</a> · <a href="#快速上手">快速上手</a> · <a href="#业务场景">业务场景</a> · <a href="#功能特性">功能特性</a> · <a href="#企业部署与手机使用">企业部署与手机使用</a> · <a href="#版本发布">版本发布</a>
18
- </p>
19
-
20
- ## 项目概览
21
-
22
- 全质把制造现场的异常上报、质量分析、任务分派、审批和文件查阅放进同一个 DSH 插件。员工可在电脑或手机上报异常并附上照片或文件。质量工程师可查询同一批次的测量、质量问题和检验标准。主管在原事项上分派、退回补证或复核,员工在自己的工作台查看处理进度。
23
-
24
- | 谁在用 | 日常操作 |
25
- | --- | --- |
26
- | 班组人员、检验员 | 上报异常、补传证据、导入测量或缺陷数据、查看待办和适用于本岗位的现行文件。 |
27
- | 质量主管、质量工程师 | 核对异常线索和相似事项,安排整改,查看 SPC 与能力指数,复核措施并跟进 8D。 |
28
- | 研发、工艺、采购 | 跟踪研发验证和试产问题,整理 DFMEA,查来料批次及供应商资料。 |
29
- | 体系、培训负责人 | 维护文控版次与阅读范围,根据体系调研和企业模板编制草稿,记录带教和考核。 |
30
-
31
- ![全质工作台首页,展示质量晨报、风险与在办指标](docs/preview/manager-desktop.png)
32
-
33
- ## 快速上手
34
-
35
- 1. 在 [发布页](https://github.com/total-quality/dsh-total-quality/releases/latest) 下载 `qip-real-workbench-2.0.55.tgz`,添加到 DeepSeek Harness 的 Web 插件配置。装好后打开侧栏 **「全质开源质量平台」**。
36
- 2. 首次打开可选择「开始使用」建立空白台账,或在试用环境选择「体验示例」。在「我 → 企业设置」录入公司、车间和产品,再从数据管理下载导入模板。
37
- 3. 验证最小流程时,先上报一条异常,打开事项详情,核对责任人、证据和进度。操作路径见[工作台使用与数据迁移](docs/enterprise-onboarding.md)。
38
-
39
- DSH Web 版可以直接安装:
40
-
41
- ```sh
42
- dsh plugin --profile web add https://github.com/total-quality/dsh-total-quality/releases/download/v2.0.55/qip-real-workbench-2.0.55.tgz
43
- ```
44
-
45
- [完整安装说明](安装说明.md) · [本地开发和自检](CONTRIBUTING.md)
46
-
47
- ## 业务场景
48
-
49
- ### 登记异常并跟进整改
50
-
51
- 从「今天」或「事项」点「报一件事」,填写现场情况、产品、车间及批次。事项详情可登记责任人、更新整改状态、查看历史附件或发起验收。
52
-
53
- ### 从测量波动追到处理记录
54
-
55
- 把巡检或来料测量表导入数据管理,预检特性编号、规格和测量列后再确认。原始文件归档,统计按台账中的特性和时间窗口计算。发现控制图判异后,可在事项里打开小质做根因分析,并继续查原始测量、历史事项或现行作业要求。需立项时,可将事项升级为 8D 项目。
56
-
57
- ### 查现行作业要求,编制体系文件
58
-
59
- 在企业知识库上传作业指导书,维护文件编号、版次、生效日期及适用范围。小质能根据提问判断该列出文件目录、查阅文件正文还是解答通用问题,并引用查到的适用原文。
60
-
61
- 体系人员可把企业知识库里的手册和程序文件作为模板,结合已保存的体系调研和企业设置生成 Word 草稿。生成结果在相应的「已生成」列表预览、下载或删除。提交前可对照原模板复核章次、职责、数据和附件引用。
62
-
63
- ## 功能特性
64
-
65
- | 模块 | 能做什么 |
66
- | --- | --- |
67
- | 事项、审批和改进 | 登记质量问题、分派与复核、跟进 8D、生成处理报告,可查看审批意见与历史。 |
68
- | 统计和数据管理 | 导入 Excel/CSV 测量、问题和质检数据,使用控制图、判异与 Cpk/Ppk 等统计工具,导出 Word/Excel。 |
69
- | 小质和专业助手 | 小质可按当前页面回答、引用资料和分析事项。研发质量助手、供应商质量助手和专家团各自提供对应的问答入口。 |
70
- | 企业知识库与体系文件 | 管理原件、索引、版次和适用范围,接入企业服务端的受控资料,根据模板生成手册、程序文件和三层次文件。 |
71
- | 数据管理 | 支持质量提醒、业务数据源、历史资料复核和业务备份恢复。 |
72
-
73
- 模型问答和体系文档编制使用 DSH 提供的模型服务。常规台账、导入、统计和权限操作可独立使用。小质的麦克风按钮在停止录音后把识别结果填进输入框,首次使用会下载中文识别模型。
74
-
75
- ## 工作台与数据
76
-
77
- 在运行 DSH Web 的电脑上,从侧栏打开全质工作台。窄窗口下可通过顶部「菜单」进入各页面。「远程知识库」可使用已获授权的地址和设备密钥读取外部目录和文件。
78
-
79
- [工作台使用与数据迁移](docs/enterprise-onboarding.md)
80
-
81
- ## 版本发布
82
-
83
- - [下载最新版](https://github.com/total-quality/dsh-total-quality/releases/latest)
84
- - [原版仓库 dsh-total-quality-o1](https://github.com/total-quality/dsh-total-quality-o1)
85
- - [反馈问题与建议](https://github.com/total-quality/dsh-total-quality/issues)
86
- - [技术参考](docs/technical-reference.md) · [MIT 许可证](LICENSE.md)
87
-
88
- 界面截图来自独立的示例台账。
1
+ <p align="center"><img src="icon.svg" width="72" height="72" alt="全质开源质量平台"></p>
2
+
3
+ <h1 align="center">全质开源质量平台</h1>
4
+
5
+ <p align="center">面向中小制造企业的开源质量工作台 · DeepSeek Harness 插件</p>
6
+
7
+ <p align="center">
8
+ <a href="https://github.com/total-quality/dsh-total-quality/releases/latest"><img src="https://img.shields.io/github/v/release/total-quality/dsh-total-quality?style=flat-square&amp;logo=github&amp;label=release&amp;labelColor=12213B&amp;color=2458B3" alt="最新版本"></a>
9
+ <a href="安装说明.md"><img src="https://img.shields.io/badge/docs-installation-287BE0?style=flat-square&amp;labelColor=12213B" alt="安装说明"></a>
10
+ <a href="LICENSE.md"><img src="https://img.shields.io/badge/license-MIT-16886B?style=flat-square&amp;labelColor=12213B" alt="MIT 许可证"></a>
11
+ <a href="https://github.com/total-quality/dsh-total-quality/stargazers"><img src="https://img.shields.io/github/stars/total-quality/dsh-total-quality?style=flat-square&amp;logo=github&amp;label=stars&amp;labelColor=12213B&amp;color=AD722A" alt="GitHub Stars"></a>
12
+ </p>
13
+
14
+ <p align="center"><strong>简体中文</strong> · <a href="README.en.md">English</a></p>
15
+
16
+ <p align="center">
17
+ <a href="#项目概览">项目概览</a> · <a href="#快速上手">快速上手</a> · <a href="#业务场景">业务场景</a> · <a href="#功能特性">功能特性</a> · <a href="#工作台与数据">工作台与数据</a> · <a href="#版本发布">版本发布</a>
18
+ </p>
19
+
20
+ ## 项目概览
21
+
22
+ 全质把制造现场的异常上报、质量分析、任务分派、审批和文件查阅放进同一个 DSH 插件。员工可在电脑或手机上报异常并附上照片或文件。质量工程师可查询同一批次的测量、质量问题和检验标准。主管在原事项上分派、退回补证或复核,员工在自己的工作台查看处理进度。
23
+
24
+ | 谁在用 | 日常操作 |
25
+ | --- | --- |
26
+ | 班组人员、检验员 | 上报异常、补传证据、导入测量或缺陷数据、查看待办和适用于本岗位的现行文件。 |
27
+ | 质量主管、质量工程师 | 核对异常线索和相似事项,安排整改,查看 SPC 与能力指数,复核措施并跟进 8D。 |
28
+ | 研发、工艺、采购 | 跟踪研发验证和试产问题,整理 DFMEA,查来料批次及供应商资料。 |
29
+ | 体系、培训负责人 | 维护文控版次与阅读范围,根据体系调研和企业模板编制草稿,记录带教和考核。 |
30
+
31
+ ![全质工作台首页,展示质量晨报、风险与在办指标](docs/preview/manager-desktop.png)
32
+
33
+ ## 快速上手
34
+
35
+ 在 DSH 的「添加插件」中输入 `dsh-total-quality`,即可从 npm 安装最新版。也可以通过 GitHub 安装包安装。
36
+
37
+ 1. 在 [发布页](https://github.com/total-quality/dsh-total-quality/releases/latest) 下载 `qip-real-workbench-2.0.57.tgz`,添加到 DeepSeek Harness 的 Web 插件配置。装好后打开侧栏 **「全质开源质量平台」**。
38
+ 2. 首次打开可选择「开始使用」建立空白台账,或在试用环境选择「体验示例」。在「我 → 企业设置」录入公司、车间和产品,再从数据管理下载导入模板。
39
+ 3. 验证最小流程时,先上报一条异常,打开事项详情,核对责任人、证据和进度。操作路径见[工作台使用与数据迁移](docs/enterprise-onboarding.md)。
40
+
41
+ DSH Web 版可以直接安装:
42
+
43
+ ```sh
44
+ dsh plugin --profile web add https://github.com/total-quality/dsh-total-quality/releases/download/v2.0.57/qip-real-workbench-2.0.57.tgz
45
+ ```
46
+
47
+ [完整安装说明](安装说明.md) · [本地开发和自检](CONTRIBUTING.md)
48
+
49
+ ## 业务场景
50
+
51
+ ### 登记异常并跟进整改
52
+
53
+ 从「今天」或「事项」点「报一件事」,填写现场情况、产品、车间及批次。事项详情可登记责任人、更新整改状态、查看历史附件或发起验收。
54
+
55
+ ### 从测量波动追到处理记录
56
+
57
+ 把巡检或来料测量表导入数据管理,预检特性编号、规格和测量列后再确认。原始文件归档,统计按台账中的特性和时间窗口计算。发现控制图判异后,可在事项里打开小质做根因分析,并继续查原始测量、历史事项或现行作业要求。需立项时,可将事项升级为 8D 项目。
58
+
59
+ ### 查现行作业要求,编制体系文件
60
+
61
+ 在企业知识库上传作业指导书,维护文件编号、版次、生效日期及适用范围。小质能根据提问判断该列出文件目录、查阅文件正文还是解答通用问题,并引用查到的适用原文。
62
+
63
+ 体系人员可把企业知识库里的手册和程序文件作为模板,结合已保存的体系调研和企业设置生成 Word 草稿。缺少适用的企业原件时,使用所选体系的平台模板。平台模板仅用于生成。生成结果在相应的「已生成」列表预览、下载或删除。提交前可对照原模板复核章次、职责、数据和附件引用。
64
+
65
+ ## 功能特性
66
+
67
+ | 模块 | 能做什么 |
68
+ | --- | --- |
69
+ | 事项、审批和改进 | 登记质量问题、分派与复核、跟进 8D、生成处理报告,可查看审批意见与历史。 |
70
+ | 统计和数据管理 | 导入 Excel/CSV 测量、问题和质检数据,使用控制图、判异与 Cpk/Ppk 等统计工具,导出 Word/Excel。 |
71
+ | 小质和专业助手 | 小质可按当前页面回答、引用资料和分析事项。研发质量助手、供应商质量助手和专家团各自提供对应的问答入口。 |
72
+ | 企业知识库与体系文件 | 管理原件、索引、版次和适用范围,根据适用原件生成手册和程序文件。 |
73
+ | 数据管理 | 支持业务数据源、历史资料复核和业务备份恢复。 |
74
+
75
+ 模型问答和体系文档编制使用 DSH 提供的模型服务。常规台账、导入、统计和权限操作可独立使用。小质的麦克风按钮在停止录音后把识别结果填进输入框,首次使用会下载中文识别模型。
76
+
77
+ ## 工作台与数据
78
+
79
+ 从 DSH Web 侧栏打开全质工作台。窄窗口下可通过顶部「菜单」进入各页面,「帮助 → 移动端适配」提供手机界面预览。
80
+
81
+ [工作台使用与数据迁移](docs/enterprise-onboarding.md)
82
+
83
+ ## 版本发布
84
+
85
+ - [下载最新版](https://github.com/total-quality/dsh-total-quality/releases/latest)
86
+ - [原版仓库 dsh-total-quality-o1](https://github.com/total-quality/dsh-total-quality-o1)
87
+ - [反馈问题与建议](https://github.com/total-quality/dsh-total-quality/issues)
88
+ - [技术参考](docs/technical-reference.md) · [MIT 许可证](LICENSE.md)
89
+
90
+ 界面截图来自独立的示例台账。