@kingsleyasher/dsh-knowledge-base 0.0.0-stage → 3.1.5

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 (516) hide show
  1. package/ARCHITECTURE.en.md +35 -0
  2. package/ARCHITECTURE.md +40 -0
  3. package/BETA4.md +31 -0
  4. package/BETA7.md +35 -0
  5. package/BETA8.md +39 -0
  6. package/BETA9.md +38 -0
  7. package/CONTRIBUTING.md +5 -0
  8. package/DEVELOPMENT.en.md +26 -0
  9. package/DEVELOPMENT.md +27 -0
  10. package/EXISTING-FRAMEWORK-OPTIMIZATION.md +101 -0
  11. package/LICENSE +21 -0
  12. package/MONOREPO.md +34 -0
  13. package/NPM-EDITION.md +12 -0
  14. package/PARSING-PREVIEW.md +84 -0
  15. package/PERFORMANCE.md +43 -0
  16. package/PRIVACY.md +7 -0
  17. package/PROJECT-RECORD.en.md +782 -0
  18. package/PROJECT-RECORD.md +793 -0
  19. package/README.md +109 -3
  20. package/README.zh-CN.md +117 -0
  21. package/RELEASE.en.md +559 -0
  22. package/RELEASE.md +570 -0
  23. package/RETRIEVAL.md +93 -0
  24. package/SECURITY.md +7 -0
  25. package/THIRD-PARTY-NOTICES.md +5 -0
  26. package/VERSIONING.en.md +51 -0
  27. package/VERSIONING.md +50 -0
  28. package/WORKBENCH.en.md +201 -0
  29. package/WORKBENCH.md +195 -0
  30. package/browser-extension/background.js +146 -0
  31. package/browser-extension/icons/knowledge-base-128.png +0 -0
  32. package/browser-extension/icons/knowledge-base-16.png +0 -0
  33. package/browser-extension/icons/knowledge-base-32.png +0 -0
  34. package/browser-extension/icons/knowledge-base-48.png +0 -0
  35. package/browser-extension/manifest.json +25 -0
  36. package/browser-extension/options.html +22 -0
  37. package/browser-extension/options.js +41 -0
  38. package/browser-extension/popup.html +17 -0
  39. package/browser-extension/popup.js +58 -0
  40. package/browser-extension/style.css +11 -0
  41. package/cordis.patch.yml +88 -0
  42. package/docs/LEGACY-246-BOOTSTRAP.md +21 -0
  43. package/docs/LIBRARY-FRAMEWORK-MIGRATION.md +45 -0
  44. package/docs/ORIGINAL-FILE-INDEX-ARCHITECTURE.md +43 -0
  45. package/docs/TODO-LIFECYCLE-VALIDATION.md +42 -0
  46. package/docs/UPDATE-RECOVERY.en.md +18 -0
  47. package/docs/UPDATE-RECOVERY.md +70 -0
  48. package/docs/WINDOWS-SIGNING.md +30 -0
  49. package/docs/client/ARCHITECTURE.en.md +17 -0
  50. package/docs/client/ARCHITECTURE.md +17 -0
  51. package/docs/client/CONTRIBUTING.md +5 -0
  52. package/docs/client/CROSS-VOLUME-TRASH.md +13 -0
  53. package/docs/client/DEVELOPMENT.en.md +33 -0
  54. package/docs/client/DEVELOPMENT.md +33 -0
  55. package/docs/client/EXISTING-FRAMEWORK-OPTIMIZATION.md +3 -0
  56. package/docs/client/PERFORMANCE.md +3 -0
  57. package/docs/client/PRIVACY.md +7 -0
  58. package/docs/client/PROJECT-RECORD.en.md +199 -0
  59. package/docs/client/PROJECT-RECORD.md +219 -0
  60. package/docs/client/README.md +55 -0
  61. package/docs/client/README.zh-CN.md +45 -0
  62. package/docs/client/RELEASE.en.md +148 -0
  63. package/docs/client/RELEASE.md +149 -0
  64. package/docs/client/RETRIEVAL.md +3 -0
  65. package/docs/client/SECURITY.md +7 -0
  66. package/docs/client/THIRD-PARTY-NOTICES.md +5 -0
  67. package/docs/client/VERSIONING.en.md +9 -0
  68. package/docs/client/VERSIONING.md +9 -0
  69. package/docs/client/WORKBENCH.en.md +24 -0
  70. package/docs/client/WORKBENCH.md +24 -0
  71. package/docs/client/skills/personal-knowledge-base/SKILL.md +38 -0
  72. package/docs/releases/client-1.0.1.md +32 -0
  73. package/docs/releases/client-1.0.2.md +32 -0
  74. package/docs/releases/client-1.0.3.md +31 -0
  75. package/docs/releases/client-1.1.1.md +28 -0
  76. package/docs/releases/client-1.1.2.md +16 -0
  77. package/docs/releases/client-1.1.4.md +7 -0
  78. package/docs/releases/client-2.0.0.en.md +13 -0
  79. package/docs/releases/client-2.0.0.md +13 -0
  80. package/docs/releases/client-2.0.1.en.md +10 -0
  81. package/docs/releases/client-2.0.1.md +10 -0
  82. package/docs/releases/client-2.0.3.en.md +8 -0
  83. package/docs/releases/client-2.0.3.md +8 -0
  84. package/docs/releases/plugin-2.4.1.md +24 -0
  85. package/docs/releases/plugin-2.4.10.md +22 -0
  86. package/docs/releases/plugin-2.4.11.md +14 -0
  87. package/docs/releases/plugin-2.4.12.md +14 -0
  88. package/docs/releases/plugin-2.4.13.md +27 -0
  89. package/docs/releases/plugin-2.4.14.md +18 -0
  90. package/docs/releases/plugin-2.4.2.md +31 -0
  91. package/docs/releases/plugin-2.4.3.md +25 -0
  92. package/docs/releases/plugin-2.4.4.md +31 -0
  93. package/docs/releases/plugin-2.4.5.md +23 -0
  94. package/docs/releases/plugin-2.4.6.md +23 -0
  95. package/docs/releases/plugin-2.4.7.md +14 -0
  96. package/docs/releases/plugin-2.4.8.md +14 -0
  97. package/docs/releases/plugin-2.4.9.md +18 -0
  98. package/docs/releases/plugin-2.5.10.md +11 -0
  99. package/docs/releases/plugin-2.5.13.en.md +11 -0
  100. package/docs/releases/plugin-2.5.13.md +11 -0
  101. package/docs/releases/plugin-2.5.3.md +28 -0
  102. package/docs/releases/plugin-2.5.4.md +14 -0
  103. package/docs/releases/plugin-2.5.5.md +16 -0
  104. package/docs/releases/plugin-2.5.6.md +3 -0
  105. package/docs/releases/plugin-2.5.7.md +7 -0
  106. package/docs/releases/plugin-2.5.8.md +7 -0
  107. package/docs/releases/plugin-2.5.9.md +7 -0
  108. package/docs/releases/plugin-3.0.0.en.md +13 -0
  109. package/docs/releases/plugin-3.0.0.md +13 -0
  110. package/docs/releases/plugin-3.0.1.en.md +10 -0
  111. package/docs/releases/plugin-3.0.1.md +10 -0
  112. package/docs/releases/plugin-3.1.3.en.md +11 -0
  113. package/docs/releases/plugin-3.1.3.md +11 -0
  114. package/docs/validation/windows-auto-update-2.4.13.md +31 -0
  115. package/docs/validation/windows-direct-246-to-2413.md +32 -0
  116. package/package.json +78 -6
  117. package/packages/kb-contracts/desktop.js +29 -0
  118. package/packages/kb-contracts/index.js +132 -0
  119. package/packages/kb-contracts/node.js +3 -0
  120. package/packages/kb-contracts/package.json +17 -0
  121. package/packages/kb-contracts/schema.js +42 -0
  122. package/packages/kb-contracts/tools.js +1 -0
  123. package/packages/kb-contracts/version-policy.js +45 -0
  124. package/packages/kb-core/index.js +9 -0
  125. package/packages/kb-core/package.json +15 -0
  126. package/packages/kb-core/src/capture-surface.js +22 -0
  127. package/packages/kb-core/src/documents.js +105 -0
  128. package/packages/kb-core/src/embedded.js +29 -0
  129. package/packages/kb-core/src/file-catalog.js +151 -0
  130. package/packages/kb-core/src/file-classification.js +60 -0
  131. package/packages/kb-core/src/flow-workspace.js +66 -0
  132. package/packages/kb-core/src/flows.js +1136 -0
  133. package/packages/kb-core/src/fsindex.js +293 -0
  134. package/packages/kb-core/src/import-service.js +486 -0
  135. package/packages/kb-core/src/importer.js +909 -0
  136. package/packages/kb-core/src/inbox-flow.js +2 -0
  137. package/packages/kb-core/src/index-architecture.js +48 -0
  138. package/packages/kb-core/src/index-maintenance.js +81 -0
  139. package/packages/kb-core/src/index-policy-service.js +191 -0
  140. package/packages/kb-core/src/index-policy.js +121 -0
  141. package/packages/kb-core/src/kbcore.js +2519 -0
  142. package/packages/kb-core/src/library-framework.js +186 -0
  143. package/packages/kb-core/src/library-state.js +68 -0
  144. package/packages/kb-core/src/managed-files.js +69 -0
  145. package/packages/kb-core/src/map.js +171 -0
  146. package/packages/kb-core/src/parse-credentials.js +49 -0
  147. package/packages/kb-core/src/parse-discovery.js +119 -0
  148. package/packages/kb-core/src/parse-job-storage.js +40 -0
  149. package/packages/kb-core/src/parse-native.js +87 -0
  150. package/packages/kb-core/src/parse-presets.js +46 -0
  151. package/packages/kb-core/src/parse-source-authority.js +72 -0
  152. package/packages/kb-core/src/parsing.js +2307 -0
  153. package/packages/kb-core/src/relation-name-lookup.js +43 -0
  154. package/packages/kb-core/src/retrieval-api.js +79 -0
  155. package/packages/kb-core/src/retrieval-cache.js +22 -0
  156. package/packages/kb-core/src/retrieval-chunks.js +128 -0
  157. package/packages/kb-core/src/retrieval-pool.js +102 -0
  158. package/packages/kb-core/src/retrieval-worker.js +190 -0
  159. package/packages/kb-core/src/retrieval.js +618 -0
  160. package/packages/kb-core/src/runtime-resources.js +73 -0
  161. package/packages/kb-core/src/service-ownership.js +18 -0
  162. package/packages/kb-core/src/source-references.js +61 -0
  163. package/packages/kb-core/src/storage-io.js +121 -0
  164. package/packages/kb-core/src/system-upgrades.js +104 -0
  165. package/packages/kb-core/src/workbench-backup.js +219 -0
  166. package/packages/kb-core/src/workbench-deliverables.js +73 -0
  167. package/packages/kb-core/src/workbench-files.js +25 -0
  168. package/packages/kb-core/src/workbench-inbox.js +57 -0
  169. package/packages/kb-core/src/workbench-links.js +236 -0
  170. package/packages/kb-core/src/workbench-question.js +131 -0
  171. package/packages/kb-core/src/workbench-relation-index.js +110 -0
  172. package/packages/kb-core/src/workbench-state.js +102 -0
  173. package/packages/kb-core/src/workbench-trash.js +213 -0
  174. package/packages/kb-core/src/workbench.js +936 -0
  175. package/packages/kb-service/auth.js +39 -0
  176. package/packages/kb-service/build.js +18 -0
  177. package/packages/kb-service/cli.js +26 -0
  178. package/packages/kb-service/client.js +64 -0
  179. package/packages/kb-service/clipper.js +15 -0
  180. package/packages/kb-service/compatibility.js +34 -0
  181. package/packages/kb-service/desktop-files.js +514 -0
  182. package/packages/kb-service/desktop-host-links.js +39 -0
  183. package/packages/kb-service/dsh-broker.js +64 -0
  184. package/packages/kb-service/dsh-host.js +168 -0
  185. package/packages/kb-service/dsh-stream-relay.js +32 -0
  186. package/packages/kb-service/engines.js +32 -0
  187. package/packages/kb-service/extension.js +8 -0
  188. package/packages/kb-service/first-library-handoff.js +28 -0
  189. package/packages/kb-service/handoff-api.js +22 -0
  190. package/packages/kb-service/host-adapter.js +151 -0
  191. package/packages/kb-service/host-assets.js +9 -0
  192. package/packages/kb-service/host-python.js +30 -0
  193. package/packages/kb-service/host-updates.js +97 -0
  194. package/packages/kb-service/inbox-host.js +47 -0
  195. package/packages/kb-service/inbox-jobs.js +54 -0
  196. package/packages/kb-service/index.js +3 -0
  197. package/packages/kb-service/io.js +24 -0
  198. package/packages/kb-service/launch-lock.js +27 -0
  199. package/packages/kb-service/launcher.js +18 -0
  200. package/packages/kb-service/legacy-handoff.js +27 -0
  201. package/packages/kb-service/legacy-ports.js +18 -0
  202. package/packages/kb-service/main.js +13 -0
  203. package/packages/kb-service/memory-channel.js +57 -0
  204. package/packages/kb-service/memory-sync.js +42 -0
  205. package/packages/kb-service/migration.js +131 -0
  206. package/packages/kb-service/native.py +216 -0
  207. package/packages/kb-service/operations.js +19 -0
  208. package/packages/kb-service/package.json +1 -0
  209. package/packages/kb-service/runtime.js +185 -0
  210. package/packages/kb-service/safe-update.js +104 -0
  211. package/packages/kb-service/service.js +494 -0
  212. package/packages/kb-service/tool-definitions.json +934 -0
  213. package/packages/kb-service/tool-router.js +45 -0
  214. package/packages/kb-service/vector-profiles.js +41 -0
  215. package/presets/01-knowledge-agent.patch.yml +347 -0
  216. package/runtime/python/LICENSE.txt +676 -0
  217. package/runtime/python/_asyncio.pyd +0 -0
  218. package/runtime/python/_bz2.pyd +0 -0
  219. package/runtime/python/_ctypes.pyd +0 -0
  220. package/runtime/python/_decimal.pyd +0 -0
  221. package/runtime/python/_elementtree.pyd +0 -0
  222. package/runtime/python/_hashlib.pyd +0 -0
  223. package/runtime/python/_lzma.pyd +0 -0
  224. package/runtime/python/_multiprocessing.pyd +0 -0
  225. package/runtime/python/_overlapped.pyd +0 -0
  226. package/runtime/python/_queue.pyd +0 -0
  227. package/runtime/python/_remote_debugging.pyd +0 -0
  228. package/runtime/python/_socket.pyd +0 -0
  229. package/runtime/python/_sqlite3.pyd +0 -0
  230. package/runtime/python/_ssl.pyd +0 -0
  231. package/runtime/python/_uuid.pyd +0 -0
  232. package/runtime/python/_wmi.pyd +0 -0
  233. package/runtime/python/_zoneinfo.pyd +0 -0
  234. package/runtime/python/_zstd.pyd +0 -0
  235. package/runtime/python/libcrypto-3.dll +0 -0
  236. package/runtime/python/libffi-8.dll +0 -0
  237. package/runtime/python/libssl-3.dll +0 -0
  238. package/runtime/python/libtommath.dll +0 -0
  239. package/runtime/python/pyexpat.pyd +0 -0
  240. package/runtime/python/python.cat +0 -0
  241. package/runtime/python/python.exe +0 -0
  242. package/runtime/python/python3.dll +0 -0
  243. package/runtime/python/python314._pth +5 -0
  244. package/runtime/python/python314.dll +0 -0
  245. package/runtime/python/python314.zip +0 -0
  246. package/runtime/python/pythonw.exe +0 -0
  247. package/runtime/python/select.pyd +0 -0
  248. package/runtime/python/sqlite3.dll +0 -0
  249. package/runtime/python/unicodedata.pyd +0 -0
  250. package/runtime/python/vcruntime140.dll +0 -0
  251. package/runtime/python/vcruntime140_1.dll +0 -0
  252. package/runtime/python/winsound.pyd +0 -0
  253. package/skills/personal-knowledge-base/SKILL.md +38 -0
  254. package/src/client/capture-icon-192.png +0 -0
  255. package/src/client/capture-icon-512.png +0 -0
  256. package/src/client/capture-icon.svg +12 -0
  257. package/src/client/capture-sw.js +10 -0
  258. package/src/client/capture.css +1 -0
  259. package/src/client/capture.html +1 -0
  260. package/src/client/capture.js +37 -0
  261. package/src/client/capture.webmanifest +1 -0
  262. package/src/client/inbox-organize-bridge.js +22 -0
  263. package/src/client/index.js +4975 -0
  264. package/src/client/knowledge-ui.css +255 -0
  265. package/src/client/pdfjs/LICENSE +177 -0
  266. package/src/client/pdfjs/cmaps/78-EUC-H.bcmap +0 -0
  267. package/src/client/pdfjs/cmaps/78-EUC-V.bcmap +0 -0
  268. package/src/client/pdfjs/cmaps/78-H.bcmap +0 -0
  269. package/src/client/pdfjs/cmaps/78-RKSJ-H.bcmap +0 -0
  270. package/src/client/pdfjs/cmaps/78-RKSJ-V.bcmap +0 -0
  271. package/src/client/pdfjs/cmaps/78-V.bcmap +0 -0
  272. package/src/client/pdfjs/cmaps/78ms-RKSJ-H.bcmap +0 -0
  273. package/src/client/pdfjs/cmaps/78ms-RKSJ-V.bcmap +0 -0
  274. package/src/client/pdfjs/cmaps/83pv-RKSJ-H.bcmap +0 -0
  275. package/src/client/pdfjs/cmaps/90ms-RKSJ-H.bcmap +0 -0
  276. package/src/client/pdfjs/cmaps/90ms-RKSJ-V.bcmap +0 -0
  277. package/src/client/pdfjs/cmaps/90msp-RKSJ-H.bcmap +0 -0
  278. package/src/client/pdfjs/cmaps/90msp-RKSJ-V.bcmap +0 -0
  279. package/src/client/pdfjs/cmaps/90pv-RKSJ-H.bcmap +0 -0
  280. package/src/client/pdfjs/cmaps/90pv-RKSJ-V.bcmap +0 -0
  281. package/src/client/pdfjs/cmaps/Add-H.bcmap +0 -0
  282. package/src/client/pdfjs/cmaps/Add-RKSJ-H.bcmap +0 -0
  283. package/src/client/pdfjs/cmaps/Add-RKSJ-V.bcmap +0 -0
  284. package/src/client/pdfjs/cmaps/Add-V.bcmap +0 -0
  285. package/src/client/pdfjs/cmaps/Adobe-CNS1-0.bcmap +0 -0
  286. package/src/client/pdfjs/cmaps/Adobe-CNS1-1.bcmap +0 -0
  287. package/src/client/pdfjs/cmaps/Adobe-CNS1-2.bcmap +0 -0
  288. package/src/client/pdfjs/cmaps/Adobe-CNS1-3.bcmap +0 -0
  289. package/src/client/pdfjs/cmaps/Adobe-CNS1-4.bcmap +0 -0
  290. package/src/client/pdfjs/cmaps/Adobe-CNS1-5.bcmap +0 -0
  291. package/src/client/pdfjs/cmaps/Adobe-CNS1-6.bcmap +0 -0
  292. package/src/client/pdfjs/cmaps/Adobe-CNS1-UCS2.bcmap +0 -0
  293. package/src/client/pdfjs/cmaps/Adobe-GB1-0.bcmap +0 -0
  294. package/src/client/pdfjs/cmaps/Adobe-GB1-1.bcmap +0 -0
  295. package/src/client/pdfjs/cmaps/Adobe-GB1-2.bcmap +0 -0
  296. package/src/client/pdfjs/cmaps/Adobe-GB1-3.bcmap +0 -0
  297. package/src/client/pdfjs/cmaps/Adobe-GB1-4.bcmap +0 -0
  298. package/src/client/pdfjs/cmaps/Adobe-GB1-5.bcmap +0 -0
  299. package/src/client/pdfjs/cmaps/Adobe-GB1-UCS2.bcmap +0 -0
  300. package/src/client/pdfjs/cmaps/Adobe-Japan1-0.bcmap +0 -0
  301. package/src/client/pdfjs/cmaps/Adobe-Japan1-1.bcmap +0 -0
  302. package/src/client/pdfjs/cmaps/Adobe-Japan1-2.bcmap +0 -0
  303. package/src/client/pdfjs/cmaps/Adobe-Japan1-3.bcmap +0 -0
  304. package/src/client/pdfjs/cmaps/Adobe-Japan1-4.bcmap +0 -0
  305. package/src/client/pdfjs/cmaps/Adobe-Japan1-5.bcmap +0 -0
  306. package/src/client/pdfjs/cmaps/Adobe-Japan1-6.bcmap +0 -0
  307. package/src/client/pdfjs/cmaps/Adobe-Japan1-UCS2.bcmap +0 -0
  308. package/src/client/pdfjs/cmaps/Adobe-Korea1-0.bcmap +0 -0
  309. package/src/client/pdfjs/cmaps/Adobe-Korea1-1.bcmap +0 -0
  310. package/src/client/pdfjs/cmaps/Adobe-Korea1-2.bcmap +0 -0
  311. package/src/client/pdfjs/cmaps/Adobe-Korea1-UCS2.bcmap +0 -0
  312. package/src/client/pdfjs/cmaps/B5-H.bcmap +0 -0
  313. package/src/client/pdfjs/cmaps/B5-V.bcmap +0 -0
  314. package/src/client/pdfjs/cmaps/B5pc-H.bcmap +0 -0
  315. package/src/client/pdfjs/cmaps/B5pc-V.bcmap +0 -0
  316. package/src/client/pdfjs/cmaps/CNS-EUC-H.bcmap +0 -0
  317. package/src/client/pdfjs/cmaps/CNS-EUC-V.bcmap +0 -0
  318. package/src/client/pdfjs/cmaps/CNS1-H.bcmap +0 -0
  319. package/src/client/pdfjs/cmaps/CNS1-V.bcmap +0 -0
  320. package/src/client/pdfjs/cmaps/CNS2-H.bcmap +0 -0
  321. package/src/client/pdfjs/cmaps/CNS2-V.bcmap +3 -0
  322. package/src/client/pdfjs/cmaps/ETHK-B5-H.bcmap +0 -0
  323. package/src/client/pdfjs/cmaps/ETHK-B5-V.bcmap +0 -0
  324. package/src/client/pdfjs/cmaps/ETen-B5-H.bcmap +0 -0
  325. package/src/client/pdfjs/cmaps/ETen-B5-V.bcmap +0 -0
  326. package/src/client/pdfjs/cmaps/ETenms-B5-H.bcmap +3 -0
  327. package/src/client/pdfjs/cmaps/ETenms-B5-V.bcmap +0 -0
  328. package/src/client/pdfjs/cmaps/EUC-H.bcmap +0 -0
  329. package/src/client/pdfjs/cmaps/EUC-V.bcmap +0 -0
  330. package/src/client/pdfjs/cmaps/Ext-H.bcmap +0 -0
  331. package/src/client/pdfjs/cmaps/Ext-RKSJ-H.bcmap +0 -0
  332. package/src/client/pdfjs/cmaps/Ext-RKSJ-V.bcmap +0 -0
  333. package/src/client/pdfjs/cmaps/Ext-V.bcmap +0 -0
  334. package/src/client/pdfjs/cmaps/GB-EUC-H.bcmap +0 -0
  335. package/src/client/pdfjs/cmaps/GB-EUC-V.bcmap +0 -0
  336. package/src/client/pdfjs/cmaps/GB-H.bcmap +4 -0
  337. package/src/client/pdfjs/cmaps/GB-V.bcmap +0 -0
  338. package/src/client/pdfjs/cmaps/GBK-EUC-H.bcmap +0 -0
  339. package/src/client/pdfjs/cmaps/GBK-EUC-V.bcmap +0 -0
  340. package/src/client/pdfjs/cmaps/GBK2K-H.bcmap +0 -0
  341. package/src/client/pdfjs/cmaps/GBK2K-V.bcmap +0 -0
  342. package/src/client/pdfjs/cmaps/GBKp-EUC-H.bcmap +0 -0
  343. package/src/client/pdfjs/cmaps/GBKp-EUC-V.bcmap +0 -0
  344. package/src/client/pdfjs/cmaps/GBT-EUC-H.bcmap +0 -0
  345. package/src/client/pdfjs/cmaps/GBT-EUC-V.bcmap +0 -0
  346. package/src/client/pdfjs/cmaps/GBT-H.bcmap +0 -0
  347. package/src/client/pdfjs/cmaps/GBT-V.bcmap +0 -0
  348. package/src/client/pdfjs/cmaps/GBTpc-EUC-H.bcmap +0 -0
  349. package/src/client/pdfjs/cmaps/GBTpc-EUC-V.bcmap +0 -0
  350. package/src/client/pdfjs/cmaps/GBpc-EUC-H.bcmap +0 -0
  351. package/src/client/pdfjs/cmaps/GBpc-EUC-V.bcmap +0 -0
  352. package/src/client/pdfjs/cmaps/H.bcmap +0 -0
  353. package/src/client/pdfjs/cmaps/HKdla-B5-H.bcmap +0 -0
  354. package/src/client/pdfjs/cmaps/HKdla-B5-V.bcmap +0 -0
  355. package/src/client/pdfjs/cmaps/HKdlb-B5-H.bcmap +0 -0
  356. package/src/client/pdfjs/cmaps/HKdlb-B5-V.bcmap +0 -0
  357. package/src/client/pdfjs/cmaps/HKgccs-B5-H.bcmap +0 -0
  358. package/src/client/pdfjs/cmaps/HKgccs-B5-V.bcmap +0 -0
  359. package/src/client/pdfjs/cmaps/HKm314-B5-H.bcmap +0 -0
  360. package/src/client/pdfjs/cmaps/HKm314-B5-V.bcmap +0 -0
  361. package/src/client/pdfjs/cmaps/HKm471-B5-H.bcmap +0 -0
  362. package/src/client/pdfjs/cmaps/HKm471-B5-V.bcmap +0 -0
  363. package/src/client/pdfjs/cmaps/HKscs-B5-H.bcmap +0 -0
  364. package/src/client/pdfjs/cmaps/HKscs-B5-V.bcmap +0 -0
  365. package/src/client/pdfjs/cmaps/Hankaku.bcmap +0 -0
  366. package/src/client/pdfjs/cmaps/Hiragana.bcmap +0 -0
  367. package/src/client/pdfjs/cmaps/KSC-EUC-H.bcmap +0 -0
  368. package/src/client/pdfjs/cmaps/KSC-EUC-V.bcmap +0 -0
  369. package/src/client/pdfjs/cmaps/KSC-H.bcmap +0 -0
  370. package/src/client/pdfjs/cmaps/KSC-Johab-H.bcmap +0 -0
  371. package/src/client/pdfjs/cmaps/KSC-Johab-V.bcmap +0 -0
  372. package/src/client/pdfjs/cmaps/KSC-V.bcmap +0 -0
  373. package/src/client/pdfjs/cmaps/KSCms-UHC-H.bcmap +0 -0
  374. package/src/client/pdfjs/cmaps/KSCms-UHC-HW-H.bcmap +0 -0
  375. package/src/client/pdfjs/cmaps/KSCms-UHC-HW-V.bcmap +0 -0
  376. package/src/client/pdfjs/cmaps/KSCms-UHC-V.bcmap +0 -0
  377. package/src/client/pdfjs/cmaps/KSCpc-EUC-H.bcmap +0 -0
  378. package/src/client/pdfjs/cmaps/KSCpc-EUC-V.bcmap +0 -0
  379. package/src/client/pdfjs/cmaps/Katakana.bcmap +0 -0
  380. package/src/client/pdfjs/cmaps/LICENSE +36 -0
  381. package/src/client/pdfjs/cmaps/NWP-H.bcmap +0 -0
  382. package/src/client/pdfjs/cmaps/NWP-V.bcmap +0 -0
  383. package/src/client/pdfjs/cmaps/RKSJ-H.bcmap +0 -0
  384. package/src/client/pdfjs/cmaps/RKSJ-V.bcmap +0 -0
  385. package/src/client/pdfjs/cmaps/Roman.bcmap +0 -0
  386. package/src/client/pdfjs/cmaps/UniCNS-UCS2-H.bcmap +0 -0
  387. package/src/client/pdfjs/cmaps/UniCNS-UCS2-V.bcmap +0 -0
  388. package/src/client/pdfjs/cmaps/UniCNS-UTF16-H.bcmap +0 -0
  389. package/src/client/pdfjs/cmaps/UniCNS-UTF16-V.bcmap +0 -0
  390. package/src/client/pdfjs/cmaps/UniCNS-UTF32-H.bcmap +0 -0
  391. package/src/client/pdfjs/cmaps/UniCNS-UTF32-V.bcmap +0 -0
  392. package/src/client/pdfjs/cmaps/UniCNS-UTF8-H.bcmap +0 -0
  393. package/src/client/pdfjs/cmaps/UniCNS-UTF8-V.bcmap +0 -0
  394. package/src/client/pdfjs/cmaps/UniGB-UCS2-H.bcmap +0 -0
  395. package/src/client/pdfjs/cmaps/UniGB-UCS2-V.bcmap +0 -0
  396. package/src/client/pdfjs/cmaps/UniGB-UTF16-H.bcmap +0 -0
  397. package/src/client/pdfjs/cmaps/UniGB-UTF16-V.bcmap +0 -0
  398. package/src/client/pdfjs/cmaps/UniGB-UTF32-H.bcmap +0 -0
  399. package/src/client/pdfjs/cmaps/UniGB-UTF32-V.bcmap +0 -0
  400. package/src/client/pdfjs/cmaps/UniGB-UTF8-H.bcmap +0 -0
  401. package/src/client/pdfjs/cmaps/UniGB-UTF8-V.bcmap +0 -0
  402. package/src/client/pdfjs/cmaps/UniJIS-UCS2-H.bcmap +0 -0
  403. package/src/client/pdfjs/cmaps/UniJIS-UCS2-HW-H.bcmap +0 -0
  404. package/src/client/pdfjs/cmaps/UniJIS-UCS2-HW-V.bcmap +0 -0
  405. package/src/client/pdfjs/cmaps/UniJIS-UCS2-V.bcmap +0 -0
  406. package/src/client/pdfjs/cmaps/UniJIS-UTF16-H.bcmap +0 -0
  407. package/src/client/pdfjs/cmaps/UniJIS-UTF16-V.bcmap +0 -0
  408. package/src/client/pdfjs/cmaps/UniJIS-UTF32-H.bcmap +0 -0
  409. package/src/client/pdfjs/cmaps/UniJIS-UTF32-V.bcmap +0 -0
  410. package/src/client/pdfjs/cmaps/UniJIS-UTF8-H.bcmap +0 -0
  411. package/src/client/pdfjs/cmaps/UniJIS-UTF8-V.bcmap +0 -0
  412. package/src/client/pdfjs/cmaps/UniJIS2004-UTF16-H.bcmap +0 -0
  413. package/src/client/pdfjs/cmaps/UniJIS2004-UTF16-V.bcmap +0 -0
  414. package/src/client/pdfjs/cmaps/UniJIS2004-UTF32-H.bcmap +0 -0
  415. package/src/client/pdfjs/cmaps/UniJIS2004-UTF32-V.bcmap +0 -0
  416. package/src/client/pdfjs/cmaps/UniJIS2004-UTF8-H.bcmap +0 -0
  417. package/src/client/pdfjs/cmaps/UniJIS2004-UTF8-V.bcmap +0 -0
  418. package/src/client/pdfjs/cmaps/UniJISPro-UCS2-HW-V.bcmap +0 -0
  419. package/src/client/pdfjs/cmaps/UniJISPro-UCS2-V.bcmap +0 -0
  420. package/src/client/pdfjs/cmaps/UniJISPro-UTF8-V.bcmap +0 -0
  421. package/src/client/pdfjs/cmaps/UniJISX0213-UTF32-H.bcmap +0 -0
  422. package/src/client/pdfjs/cmaps/UniJISX0213-UTF32-V.bcmap +0 -0
  423. package/src/client/pdfjs/cmaps/UniJISX02132004-UTF32-H.bcmap +0 -0
  424. package/src/client/pdfjs/cmaps/UniJISX02132004-UTF32-V.bcmap +0 -0
  425. package/src/client/pdfjs/cmaps/UniKS-UCS2-H.bcmap +0 -0
  426. package/src/client/pdfjs/cmaps/UniKS-UCS2-V.bcmap +0 -0
  427. package/src/client/pdfjs/cmaps/UniKS-UTF16-H.bcmap +0 -0
  428. package/src/client/pdfjs/cmaps/UniKS-UTF16-V.bcmap +0 -0
  429. package/src/client/pdfjs/cmaps/UniKS-UTF32-H.bcmap +0 -0
  430. package/src/client/pdfjs/cmaps/UniKS-UTF32-V.bcmap +0 -0
  431. package/src/client/pdfjs/cmaps/UniKS-UTF8-H.bcmap +0 -0
  432. package/src/client/pdfjs/cmaps/UniKS-UTF8-V.bcmap +0 -0
  433. package/src/client/pdfjs/cmaps/V.bcmap +0 -0
  434. package/src/client/pdfjs/cmaps/WP-Symbol.bcmap +0 -0
  435. package/src/client/pdfjs/pdf.mjs +26779 -0
  436. package/src/client/pdfjs/pdf.worker.mjs +63420 -0
  437. package/src/client/pdfjs/standard_fonts/FoxitDingbats.pfb +0 -0
  438. package/src/client/pdfjs/standard_fonts/FoxitFixed.pfb +0 -0
  439. package/src/client/pdfjs/standard_fonts/FoxitFixedBold.pfb +0 -0
  440. package/src/client/pdfjs/standard_fonts/FoxitFixedBoldItalic.pfb +0 -0
  441. package/src/client/pdfjs/standard_fonts/FoxitFixedItalic.pfb +0 -0
  442. package/src/client/pdfjs/standard_fonts/FoxitSerif.pfb +0 -0
  443. package/src/client/pdfjs/standard_fonts/FoxitSerifBold.pfb +0 -0
  444. package/src/client/pdfjs/standard_fonts/FoxitSerifBoldItalic.pfb +0 -0
  445. package/src/client/pdfjs/standard_fonts/FoxitSerifItalic.pfb +0 -0
  446. package/src/client/pdfjs/standard_fonts/FoxitSymbol.pfb +0 -0
  447. package/src/client/pdfjs/standard_fonts/LICENSE_FOXIT +27 -0
  448. package/src/client/pdfjs/standard_fonts/LICENSE_LIBERATION +102 -0
  449. package/src/client/pdfjs/standard_fonts/LiberationSans-Bold.ttf +0 -0
  450. package/src/client/pdfjs/standard_fonts/LiberationSans-BoldItalic.ttf +0 -0
  451. package/src/client/pdfjs/standard_fonts/LiberationSans-Italic.ttf +0 -0
  452. package/src/client/pdfjs/standard_fonts/LiberationSans-Regular.ttf +0 -0
  453. package/src/client/pdfjs/wasm/LICENSE_JBIG2 +196 -0
  454. package/src/client/pdfjs/wasm/LICENSE_OPENJPEG +39 -0
  455. package/src/client/pdfjs/wasm/LICENSE_PDFJS_JBIG2 +13 -0
  456. package/src/client/pdfjs/wasm/LICENSE_PDFJS_OPENJPEG +22 -0
  457. package/src/client/pdfjs/wasm/LICENSE_PDFJS_QCMS +22 -0
  458. package/src/client/pdfjs/wasm/LICENSE_QCMS +21 -0
  459. package/src/client/pdfjs/wasm/jbig2.wasm +0 -0
  460. package/src/client/pdfjs/wasm/openjpeg.wasm +0 -0
  461. package/src/client/pdfjs/wasm/openjpeg_nowasm_fallback.js +17 -0
  462. package/src/client/pdfjs/wasm/qcms_bg.wasm +0 -0
  463. package/src/client/todo-lifecycle-ui.js +58 -0
  464. package/src/client/workbench-features.js +148 -0
  465. package/src/client/workbench-relations.js +86 -0
  466. package/src/client/workbench-theme.css +81 -0
  467. package/src/client/workbench-ui.js +1761 -0
  468. package/src/host/capture-surface.js +2 -0
  469. package/src/host/citation-guard.js +40 -0
  470. package/src/host/command-description.js +43 -0
  471. package/src/host/flow-workspace.js +62 -0
  472. package/src/host/flows.js +2 -0
  473. package/src/host/fsindex.js +2 -0
  474. package/src/host/gateway.js +916 -0
  475. package/src/host/import-service.js +2 -0
  476. package/src/host/importer.js +2 -0
  477. package/src/host/index-maintenance.js +2 -0
  478. package/src/host/index-policy-service.js +2 -0
  479. package/src/host/index-policy.js +2 -0
  480. package/src/host/index.js +2220 -0
  481. package/src/host/kbcore.js +2 -0
  482. package/src/host/managed-files.js +2 -0
  483. package/src/host/map.js +2 -0
  484. package/src/host/parse-credentials.js +2 -0
  485. package/src/host/parse-discovery.js +2 -0
  486. package/src/host/parse-native.js +2 -0
  487. package/src/host/parse-presets.js +2 -0
  488. package/src/host/parse-source-authority.js +2 -0
  489. package/src/host/parsing.js +7 -0
  490. package/src/host/relation-name-lookup.js +2 -0
  491. package/src/host/retrieval-api.js +2 -0
  492. package/src/host/retrieval-cache.js +2 -0
  493. package/src/host/retrieval-chunks.js +2 -0
  494. package/src/host/retrieval-pool.js +2 -0
  495. package/src/host/retrieval-worker.js +2 -0
  496. package/src/host/retrieval.js +2 -0
  497. package/src/host/runtime-resources.js +2 -0
  498. package/src/host/selftest.js +747 -0
  499. package/src/host/storage-io.js +2 -0
  500. package/src/host/system-upgrades.js +2 -0
  501. package/src/host/todo-lifecycle.js +66 -0
  502. package/src/host/updates.js +281 -0
  503. package/src/host/versioning.js +2 -0
  504. package/src/host/workbench-backup.js +2 -0
  505. package/src/host/workbench-deliverables.js +2 -0
  506. package/src/host/workbench-files.js +2 -0
  507. package/src/host/workbench-inbox.js +2 -0
  508. package/src/host/workbench-links.js +2 -0
  509. package/src/host/workbench-question.js +2 -0
  510. package/src/host/workbench-relation-index.js +2 -0
  511. package/src/host/workbench-state.js +2 -0
  512. package/src/host/workbench-trash.js +2 -0
  513. package/src/host/workbench.js +5 -0
  514. package/tools/kb-local-model.py +141 -0
  515. package/tools/kb-pdf-pages.py +78 -0
  516. package/tools/kb-transactional-update.py +292 -0
@@ -0,0 +1,199 @@
1
+ # Personal Knowledge Base · Client Evolution
2
+
3
+ [English](PROJECT-RECORD.en.md) · [简体中文](PROJECT-RECORD.md)
4
+
5
+ <!-- project-record-version: 3.1.3 -->
6
+
7
+ **Source: plugin 3.1.3 / client 2.0.3 · Updated: 2026-11-16 · Published GitHub Releases; client installer unsigned.**
8
+
9
+ ## 2026-11-16 · Client 2.0.3 · File tree and patrol performance
10
+
11
+ The file tree no longer reparses the roughly 3.9 MB catalog on every request, and directory entries no longer re-read the exclusion policy or resolve every path segment individually. Catalog and policy are cached by file identity, and listings are reused for 15 seconds behind directory, policy, catalog and privacy signatures. Index patrol reuses the persisted catalog when file stat digests and requests/import-sources content digests are unchanged instead of hashing the library. The client requests only newly expanded directories, reuses loaded rows when a directory is reopened, and refreshes everything only when the sort order changes.
12
+
13
+ The 687-entry real directory went from 376 ms to 32 ms first read and 0.8 ms on repeat; a 250-entry directory with 400 exclusion groups from 819 ms to 49 ms; catalog parsing from 16.5 ms to 0.4 ms; unchanged patrol from about 1.9 s to 0.1 s. Index policy, architecture, maintenance, classification, workbench, large-library and service integration checks pass, with new policy-matcher equivalence, listing-cache invalidation and patrol-reuse checks. Client 2.0.3 is published as a GitHub Release; the installer is unsigned and the update manifest now points at 2.0.3.
14
+
15
+ ## 2026-11-14 · Shared parsing kernel update (desktop installer unpublished)
16
+
17
+ Shared source adds DeepSeek OCR / ASR, default-service selectors and settings fixes. Only plugin 3.1.0 is released in this change. Public desktop installer remains 2.0.1; local 2.0.2 source and signing preparation are not a new installer release.
18
+
19
+ ## 2026-11-11 · Windows signing preparation (source changes; no signed artifact)
20
+
21
+ Add a trusted Authenticode signing entry point with chain, private-key, validity, publisher and timestamp verification. Sign mutated executables before payload hashes and sign the outer installer last. Production packaging requires signing by default; only explicit --allow-unsigned permits a local development build. Locate the payload trailer using the PE certificate table so an appended signature does not break extraction; retain ZIP SHA-256 validation.
22
+
23
+ Validation: real C# compilation and three automated checks covering PE32/PE32+, all eight alignments, invalid certificate directories/trailers and rejection of production packaging without a certificate. Synthetic certificate tables do not establish trusted signing. No certificate is available and no signed installer was produced; the existing local 2.0.2 package is unchanged. The user clarified that blocking occurs on another computer, so local Smart App Control state or scan results cannot verify installation there. The exact remote warning and trusted-signing approval remain outstanding.
24
+
25
+ ## 2026-11-11 · Plugin 3.0.2 / client 2.0.2 · Local manual-install fix
26
+
27
+ Includes the first-library shared-service handoff fix: retain successful creation, stop old embedded-runtime refresh, explain that DSH must fully exit and reopen, serialize concurrent setup and reuse its successful receipt. Single-writer protection remains enforced. No storage epoch change or existing-library rebuild.
28
+
29
+ This is a local build, not yet published to GitHub. Isolated Windows validation covers plugin-first/client-first creation and independent/shared use, plus guide/settings callbacks and handoff API regression checks. The client installer remains unsigned; Smart App Control/administrator-policy blocking is unresolved. Choosing manual installation does not establish system trust. Use an empty destination, reopen the original library, and retain the old installation for rollback.
30
+
31
+ ## 2026-11-11 · Shared-service handoff after first library creation (source fix, unreleased)
32
+
33
+ Fixes the first-use guide refreshing preferences through the embedded kernel immediately after creating a shared library, which triggered SERVICE_REQUIRED. Preserve successful creation, explain that DSH must fully exit and reopen, and stop the guide lease/refresh. Library settings also skip the old-runtime refresh and disable repeated setup/rebuild. Serialize initial setup and retain its successful receipt for this Host lifetime; repeated requests cannot fall back into the embedded writer. Other workspace calls during handoff receive an actionable restart message. Single-writer protection remains enforced; restart connects through the existing persisted binding.
34
+
35
+ Validation covers the actual guide/settings callbacks, concurrent/repeated setup, retry after failure, and Windows plugin-first/client-first creation with independent and shared use. This entry describes unreleased source changes; published versions remain plugin 3.0.1 / client 2.0.1.
36
+
37
+
38
+ Installer audit: the existing 2.0.1 installer has Authenticode status NotSigned. No matching historical Defender detection was found on this machine. Unsigned applications can trigger reputation or Smart App Control blocks; this alone does not establish a malware false positive or resolve Windows trust. The user described a possible Smart App Control or administrator-policy block; the exact category remains unconfirmed. A targeted Defender scan completed without related detections and the release hash matched. This trust blocker is unresolved: no code-signing certificate is available locally. Disabling protection or self-signing is not a substitute for a trusted release signature; organization policy may additionally require administrator approval.
39
+
40
+ ## 2026-11-11 · Plugin 3.0.1 / client 2.0.1 · Update transaction recovery patch
41
+
42
+ Fixes abandoned prepared receipts blocking later updates after a separate Host installation. Under the profile writer lock, archive the complete old receipt and abort only its preparation before staging a new update. Preserve the installed version, candidates and backups, and reject stale confirmations. Publishing/unknown phases, publication backups and active writer locks still require recovery or waiting. Update dialogs distinguish recovery from writer contention.
43
+
44
+ Adds a preparation-only `cancel-prepared` recovery command and bilingual instructions. Archive before cancellation; never roll back a publishing transaction through this command.
45
+
46
+ An installed older version still runs its older updater. An already blocked installation needs one-time safe cancellation of the preparation-only receipt before the normal update to 3.0.1; the not-yet-installed patch cannot repair that updater in advance. This machine's historical receipt was backed up and cancelled. Client 2.0.1 includes the matching repaired backend and plugin.
47
+
48
+ Validation covers real pnpm archive/restage/commit, stale confirmation rejection, writer/publication guards, real Windows service drain and reconnection, and an isolated copy of the installed profile. Synchronizes bilingual records, product feeds and download links. No protocol/storage epoch change or library rebuild. The unsigned client installer still requires an empty destination.
49
+
50
+ ## 2026-11-11 · Recover abandoned prepared updates (source fix, not yet released)
51
+
52
+ A historical prepared receipt no longer permanently blocks a new update after a separate Host installation. Under the profile writer lock, archive the full old receipt and mark it aborted before staging again. Preserve candidates and backups, and reject stale confirmations. Publishing/unknown phases and live writer locks still require recovery or waiting. Show distinct messages for unresolved publication and an occupied writer. Real pnpm regressions cover supersession, stale confirmations, active locks and publication guards. Published 3.0.0 assets remain unchanged.
53
+
54
+ ## 2026-11-11 · Publish plugin 3.0.0 and client 2.0.0
55
+
56
+ Merges release-review fixes, mixed-version interoperability, startup/scoped-update improvements and visual corrections into the unified main repository, with separate v3.0.0 and client-v2.0.0 releases. Synchronizes both languages of the READMEs, client guides, version notes, evolution records, website and product feeds. Independent versions and installations retain protocol/storage/capability-based sharing; a product major bump does not force an index rebuild.
57
+
58
+ Final local regression: 362 of 364 Node checks passed, zero failures and two real-host environment skips; all 24 Python checks passed. Actual installer validation confirmed that client 2.0.0 installed in a new directory resumes the 1.1.4 profile and library, preserves originals and renders without page errors. Nonempty targets remain protected. Source/package, embedded plugin and installer digests are verified before publication; GitHub Actions validates the merge and release tags.
59
+
60
+ Fixes concurrent first activation across old/new clients: an authenticated active owner satisfies duplicate fresh activation without another migration. Conflicts from older services require an active matching library identity before proceeding. Concurrent interoperability tests now retain and close successful connections even when the peer fails, preventing a leaked test process.
61
+
62
+ GitHub Windows checks now await complete service exit before removing test directories. The historical 2.4.3 upgrade fixture adapts only SID/ACL display-alias normalization for the runner built-in Administrator account, without changing legacy protocols, permissions or upgrade behavior.
63
+
64
+ The installer is unsigned and requires an empty destination; silent in-place installation is not implemented. Library migration still requires preview and confirmation. No production library or paid model call was used; real DSH tool-dispatch and ASAR-host checks remain environment-dependent.
65
+
66
+ ## 插件 2.5.3 / 客户端 1.1.1(2026-11-07)
67
+
68
+ 本次统一发布此前本地交付的原件索引架构及后续修正,两端继续使用同一共享内核与服务,独立安装、独立版本。
69
+
70
+ - 原件保持原位;索引层记录身份、路径、分类、标签与指纹。插件和客户端提供迁移预览与确认入口,程序更新不会自动迁移资料库。
71
+ - 客户端增加原件分类文件树及分类操作,分类与隐私筛选由共享服务执行;既有文件、绑定及资料库身份保留。
72
+ - 流程卡保存模型与推理配置,运行使用已保存配置;内置收件箱仍要求 High。自定义流程准备不再误入内置收件箱校验。
73
+ - 任务计划面板修正宽度和向上展开方向;长工具执行期间提示模型核对进度,由模型依据实际结果更新状态。
74
+ - 成品登记说明明确支持复用系列目录:task 填系列目录名,title 填单期标题,path 填库内相对路径。无需按日期拆目录,路径与隐私校验继续生效。
75
+
76
+ 本次验证使用虚构库与针对性检查,发布包核对源码、构建指纹和摘要;不读取真实私有库,不调用收费模型。历史验收记录保留其当时范围;本次打包不代表正式用户安装、DSH 重启激活、真实报告生成或外部发送已经验证。客户端自动覆盖安装与激活尚未接入。
77
+
78
+ 安装:插件使用 v2.5.3 Release 中的 TGZ;客户端使用 client-v1.1.1 Release 中的 Windows x64 Setup.exe(未签名),分别核对清单与 SHA-256。客户端安装目录需为空,先保存工作并退出旧客户端;DSH 插件按宿主提示重新加载或完全退出含托盘后重开,核对版本和构建号。旧 2.4.6 更新受阻时仍使用既有恢复入口。
79
+
80
+ ## Plugin 2.5.3 / desktop client 1.1.1 (2026-11-07)
81
+
82
+ This paired release publishes the previously local original-file index architecture and subsequent fixes. The products share a core and service while retaining independent versions and installations.
83
+
84
+ - Originals stay in place. The index records identity, path, classification, tags and fingerprints. Both products offer migration preview and confirmation; installing an update does not migrate a library automatically.
85
+ - The client adds the original-file classification tree and classification actions, with shared-service visibility checks.
86
+ - Flow cards save model and reasoning settings. Run uses that saved route; the builtin inbox still requires High. Custom-flow preparation no longer enters the builtin inbox-only gate.
87
+ - The task-plan panel fixes width and upward disclosure. Bounded progress reminders ask the model to reconcile actual results during long runs; the observer does not complete tasks itself.
88
+ - Deliverable instructions support existing series folders: task is the folder name, title identifies the issue, and path is library-relative. No per-date folder is required; path and privacy checks remain enforced.
89
+
90
+ Validation uses synthetic libraries and focused checks, with source/archive, build and digest verification. No private library or paid model is used. Historical evidence retains its original scope. Packaging does not establish production installation, running DSH activation, real report generation or external delivery. Client automatic in-place installation and activation remain unfinished.
91
+
92
+ Install the TGZ from v2.5.3 and the unsigned Windows x64 Setup.exe from client-v1.1.1, checking their separate manifests and SHA-256 digests. The client installer requires an empty application directory; save work and exit the old client first. Reload the plugin as directed by DSH or exit including its tray process and reopen, then verify version and build. Existing recovery instructions still apply to blocked legacy 2.4.6 updaters.
93
+
94
+ > Client-specific guide in the unified repository. See the [main README](../../README.md) and [shared release policy](../../VERSIONING.en.md).
95
+
96
+ # Product design and evolution
97
+
98
+ [中文](PROJECT-RECORD.md) · English
99
+
100
+ Client 1.1.1, paired plugin 2.5.3. Updated 2026-11-07.
101
+
102
+ The product puts the existing file hierarchy at the center of a desktop workspace. Reading, editing, comparison and optional DSH conversations share one interface. The file sidebar remains a file browser; management tools open in movable windows with full-page entry points.
103
+
104
+ Development progressed through compatibility baselines, extraction of a shared core, an authorized shared-library service, the desktop workspace, and DSH integration. The 1.0.1 delivery packages the existing implementation with the 2.4.1 plugin and publishes its source/documentation.
105
+
106
+ Key decisions include independent panes and tabs, an explicit editing switch, confirmation for unsaved changes, independently authored light/dark palettes, and deliberate user attachment of conversation context. Opening a document does not automatically submit it to a model. Model operations depend on the host; local file operations remain available independently.
107
+
108
+ The renderer lives in `apps/desktop/src`, desktop permissions in `apps/desktop/main`, shared functionality in `packages`, plugin adapters in `src`, and installer source in `installer-design-b`.
109
+
110
+ Future work includes online updates, data-preserving in-place installation, broader Office fidelity and cross-version compatibility testing. These are plans, not shipped guarantees. Release notes and this record must evolve together.
111
+
112
+
113
+ ## 2.4.13: preserve unrelated Host dependency locks (2026-11-05)
114
+
115
+ Resolve only the dependency-free knowledge package in an isolated resolver, then merge its importer, package and snapshot entries into the original pnpm v9 lockfile. Other source specifiers, pinned versions and records remain byte-for-byte intact. Host-internal packages are not looked up, copied or reinstalled. Unsupported or ambiguous locks and cross-package references fail closed.
116
+
117
+ Nineteen update-confirmation checks and eight real-pnpm/transaction checks passed. An isolated copy of the actual profile metadata also prepared successfully while the live manifest and lock remained unchanged. Rollback and crash recovery remain in place. Live installation and activation results are recorded separately from staging success.
118
+
119
+ ## 2.4.12: local dependencies during automatic update staging (2026-11-05)
120
+
121
+ Retain the shared-build and legacy confirmation fixes from 2.4.11. Profile-local relative package dependencies are now copied into isolated shadow staging so pnpm can resolve them without changing their live source specifiers or files. Escapes, links, metadata collisions and relative packages over 64 MiB are rejected. Knowledge libraries and credentials are not staged.
122
+
123
+ Nineteen confirmation checks and seven real-pnpm/transaction checks passed, including dependency preservation, escape rejection, rollback and crash recovery. Live-device automatic upgrade results are recorded separately; downloads, synthetic checks and disk package versions alone do not establish activation of the new running build.
124
+
125
+ ## 2.4.11: shared build status and automatic update confirmation (2026-11-05)
126
+
127
+ Shared POST status omitted the build required for update confirmation, so an already loaded update could remain uncertain indefinitely. Shared status now includes the Host build. The client can read the legacy GET status for compatibility and still requires an exact version/build match.
128
+
129
+ Nineteen focused checks passed, including the original missing-build regression and legacy status confirmation. Existing writer-lock, prepared-transaction and failure safeguards remain. A client already locked by old code needs a controlled compatibility recovery before its automatic flow can resume; publishing a feed cannot change running old code. Verify the pending request against the installed build before recovery. Live upgrade results are recorded separately from synthetic checks.
130
+
131
+ ## 2.4.10: installation confirmation recovery (2026-11-05)
132
+
133
+ Fix an old missing installation receipt keeping the UI indefinitely uncertain with installation disabled. Reconciliation now checks the installed disk build, active safe operation and profile writer lock. A legacy record clears only after the Host confirms its request is absent and authoritative quiet-writer/build checks pass. Elapsed time and failed requests alone never authorize retry.
134
+
135
+ A prepared but unstarted safe transaction can resume the same transaction without another preparation. Target files already installed under an old running Host require a restart. Active, unverifiable and damaged states continue to block blind installation.
136
+
137
+ Seventeen focused checks passed across legacy recovery, locks, active operations, missing journals, installed-but-unloaded files, transaction continuation and completion state. No live user installation, client-cache deletion or forced restart was performed.
138
+
139
+ An old UI already locked by a pending record cannot load this fix through its disabled button. Use the Host's own Settings → Plugins entry once with this official release, then reload when requested. See the recovery instructions.
140
+
141
+ ## 2.4.9: kb_flow output contract (2026-11-05)
142
+
143
+ Fix shared-mode kb_flow results missing the required action field. Both the service router and Host tool boundary retain the requested action on success, domain errors, disconnection and caller-verification failures. Existing validation, error details and success state remain intact; calls are not replayed.
144
+
145
+ Three focused tests passed across all eight actions, the registered Host tool's success/error returns and an isolated real Windows shared service. Synthetic data only; no live user workflow was replayed.
146
+
147
+ A separate memory-plugin 1.0.4 issue was identified: tool-only continuation could replace recalled preferences with an empty snapshot. Its 1.0.5 local fix is delivered separately, is not included here and has not been publicly released or installed automatically. Synthetic classroom-audio checks cover persisted recall and continuation context, not real-user note creation.
148
+
149
+ ## 2.4.8: parsing records in shared-service settings (2026-11-05)
150
+
151
+ Fix management reads being treated as ordinary session reads. OCR/ASR job and submission visibility now follows the authenticated connection's admin grant instead of whether the request mutates state. Settings can see Agent-initiated tasks across sessions while library visibility filtering remains active. Ordinary model tools and read-only grants retain their existing restrictions; management writes still require authorization.
152
+
153
+ Three focused tests passed. An isolated real Windows shared service uses synthetic local OCR/ASR endpoints and a separate Agent session; both settings read paths see running jobs, submissions and completed history. Ordinary sessions, read-only grants and forged input fields do not gain management access. The regression fails before the fix and passes afterward. No live personal library, paid API or full user-UI verification is claimed.
154
+
155
+ ## 2.4.7: service preparation during update handoff (2026-11-05)
156
+
157
+ Keep the workbench API registered during handoff. The client shows a neutral preparation message and continues after readiness. Only requests explicitly rejected before execution may be retried; genuine HTTP 405, lost responses and unknown write outcomes remain errors. Preparation failures and timeouts retain recovery guidance.
158
+
159
+ Nineteen focused checks passed, including a real local HTTP server, exactly one mutation after readiness, failure/timeout boundaries and service lifecycle checks. No additional full regression or live user-instance/UI verification is claimed.
160
+
161
+ ## 2.4.6: direct 2.4.3 updates and legacy service handoff (2026-11-05)
162
+
163
+ Restore the stable feed for direct updates from normal 2.4.3 installations. Identify the published legacy runtime by its exact fingerprint, release the probe connection and wait for its existing idle lifecycle to finish. Require matching process identity and a clean receipt before starting the new service. Never send legacy shutdown or terminate other clients/tasks; timeout offers recovery guidance.
164
+
165
+ The new client shows recovery help only after an installation or handoff error. A 2.4.3 pnpm failure before new code loads retains the old error UI; its existing release-notes link leads to recovery instructions. Do not claim the new popup exists in that old client. The recovery bundle can reconstruct damaged 2.4.3 code from the pinned public archive, preserving residual files and profile metadata before a transactional upgrade.
166
+
167
+ Windows evidence uses the actual public 2.4.3 archive, a live service and real pnpm. Initial legacy installation still runs through the old Host installer and cannot retroactively acquire transaction protection. Recovery is the fallback on failure. No live user profile installation or complete Electron UI automation is claimed; other legacy versions are outside this targeted verification.
168
+
169
+ ## 2.4.4: safe Windows updates and rollback (2026-11-05)
170
+
171
+ - Run pnpm only against an isolated profile-metadata copy. Verify the archive, build inventory and staged files before touching the live package.
172
+ - An admin-authorized drain protocol refuses other connections and queued/running parsing, import or flow work. Require a clean shutdown receipt and process exit before switching complete directories.
173
+ - Retain the previous package and metadata in a private transaction directory. Failed publication restores and verifies the old files. Durable receipts support recovery after installer interruption and prevent unknown outcomes from being reported as success or retried blindly.
174
+ - The safe feed is release-manifest-v2.json. Legacy release-manifest.json distribution is disabled so old updaters cannot execute the unsafe in-place path. Versions through 2.4.3 need the transition installer once, after exiting the Host and connected clients. A legacy service without the drain protocol is refused.
175
+ - Successful installation requires a Host restart. Embedded mode, missing drain capability, unsupported dependency layouts and incomplete previous installations fail closed.
176
+
177
+ Evidence: 35 focused Node checks, 5 real-filesystem/real-pnpm transaction tests and 1 composite live-service scenario on Windows passed. The scenario covers legacy 2.4.3 refusal, busy connections/tasks, a protocol-capable service using the old package Python, exact restoration after a real 2.4.3 package switch fails, successful upgrade/restart and preserved synthetic originals. Forward safe-protocol upgrades and the unmodified legacy transition are distinct paths. No live user profile installation, real-model evaluation or complete UI regression was performed.
178
+
179
+ ## 2.4.3: source synchronization and Windows parsing jobs (2026-11-05)
180
+
181
+ - Merge text-original retrieval and citation synchronization. Archived text is searchable; edits refresh source records and ranges. Legacy generated mirrors resolve to current originals while independently authored summaries remain searchable.
182
+ - Preserve exclusions across related originals and derived records, reuse unchanged embeddings, and support PDF rendering with non-ASCII paths and versioned Python executables.
183
+ - Serialize parsing-record reads and atomic replacements in one process, including separate service instances. External locks receive bounded retries; exhausted writes preserve the old record and clean up temporary files.
184
+ - Catch background failures during submission, retry and startup recovery. Persist failure diagnostics where possible, report persistence failures, and release heartbeats and running registrations.
185
+
186
+ Windows focused verification passed 73/73 tests: 68 existing checks and 5 injected-failure regressions. Synthetic inputs and transport stubs do not establish real OCR/ASR quality, automatic PDF/Office re-indexing, native source-position mapping or complete desktop compatibility. The independently released client remains 1.0.3; its installer is not rebuilt for this release.
187
+
188
+ ## 2026-11-05: plugin 2.4.2 / desktop client 1.0.3
189
+
190
+ Desktop feedback now creates public GitHub Issues through Cloudflare Workers and D1 without requiring users to log in. Users explicitly confirm publication of entered text plus version/build information. Library files, logs and device paths are not attached automatically. Credentials remain server-side Secrets. Receipts prevent duplicate creation; uncertain outcomes are reconciled. Submission limits apply.
191
+
192
+ New trash archives stay in library metadata on the library volume. Legacy archives remain readable, cross-volume restoration copies and verifies before publication, and failure recovery requires evidence that the source was unchanged and never moved. Reconnection refreshes retain the existing snapshot.
193
+
194
+ Plugin 2.4.2 enables stable update checking/preparation in shared-service Hosts, accepts verified manifests up to 1 MiB, and distinguishes offline/local/preview/ahead states. Bundled Python helpers are verified and copied to a persistent content-addressed location outside the replaceable plugin directory. Existing bindings, configuration, parsing records and service identity are retained. The optional offline installer refuses active clients, backs up and compares state, and invokes the existing package manager. Actual installation and Host activation remain user-operated.
195
+
196
+ Evidence includes feedback tests, live deployment Issues #46/#47 with duplicate receipts, isolated two distinct volumes trash/restore checks, the service file lifecycle, Windows package-directory renaming while a copied helper remains alive, and reopening synthetic 2.4.1 state. Offline installer package-manager calls are mocked. These checks do not establish live-model quality, real-library load performance, full Office fidelity or availability on every network.
197
+
198
+ The products retain independent versions, manifests and digests. Client update checks and verified downloads work; automatic in-place installation/activation remain unfinished. Mirror attachments become available after successful synchronization and verification.
199
+
@@ -0,0 +1,219 @@
1
+ # 个人知识库 · 客户端演进记录
2
+
3
+ [English](PROJECT-RECORD.en.md) · [简体中文](PROJECT-RECORD.md)
4
+
5
+ <!-- project-record-version: 3.1.3 -->
6
+
7
+ **对应源码:插件 3.1.3 / 客户端 2.0.3 · 更新日期:2026-11-16 · 已发布 GitHub Release;客户端安装器未签名。**
8
+
9
+ ## 2026-11-16 · 客户端 2.0.3 · 文件树与周期维护性能
10
+
11
+ 文件树读取不再每次重新解析约 3.9 MB 文件目录,也不为每个条目重复读取排除策略和逐段校验路径;目录与策略按文件身份缓存,列表按目录/策略/目录版本签名复用 15 秒。索引巡检在文件 stat 与 requests/import-sources 内容摘要未变化时复用已持久化目录,不再全库哈希。客户端展开目录只请求新增项,折叠后再展开复用已加载行,仅排序变化时整体刷新。
12
+
13
+ 真实 687 项目录首次读取 376 ms → 32 ms、重复 0.8 ms;400 组排除策略的 250 项目录 819 ms → 49 ms;目录解析 16.5 ms → 0.4 ms;未变化巡检约 1.9 s → 0.1 s。索引策略、架构、维护、分类、工作台、大库与服务集成检查通过;新增策略匹配一致性、列表缓存失效与巡检复用检查。客户端 2.0.3 已发布为 GitHub Release,安装器未签名,更新清单同步为 2.0.3。
14
+
15
+ ## 2026-11-14 · 共享解析内核更新(客户端安装器未发布)
16
+
17
+ 共享源码接入 DeepSeek OCR / ASR,提供默认服务选择及设置页修复。本次发布产品仅为插件 3.1.0;客户端公开安装器仍为 2.0.1,本地 2.0.2 源码及签名准备未作为新安装器发布。
18
+
19
+ ## 2026-11-11 · Windows 签名安装准备(源码修复,尚无签名制品)
20
+
21
+ 补齐受信任 Authenticode 签名入口,验证证书链、私钥、有效期、发布者和时间戳;可执行文件完成修改后再签名,先生成载荷哈希,最终签名外层安装器。正式构建默认要求签名,仅显式 --allow-unsigned 可生成本地开发包。修复安装器按文件末尾定位载荷导致签名追加后无法安装的问题,按 PE 证书表定位签名前的载荷尾部,保留 ZIP SHA-256 校验。
22
+
23
+ 验证:真实 C# 编译通过;3 项自动化检查覆盖 PE32/PE32+、全部 8 种对齐、损坏目录/尾标记及无证书拒绝正式打包。合成证书表测试不等于实际可信签名验证;目前无证书,未产生签名安装器,既有 2.0.2 本地包未替换。用户明确拦截发生在另一台电脑,本机智能应用控制状态和扫描结果不能证明目标电脑可安装;尚待目标机完整提示及可信签名服务审批。
24
+
25
+ ## 2026-11-11 · 插件 3.0.2 / 客户端 2.0.2 · 本地手动安装修复包
26
+
27
+ 包含首次建库共享服务交接修复:建库成功后保留成功结果,停止旧内嵌运行时刷新,提示完全退出并重开 DSH;串行处理并发建库,复用成功回执,继续保留单写入者保护。不改变存储代次,不重建既有知识库。
28
+
29
+ 本次为本地构建,尚未发布到 GitHub。Windows 下插件先建库、客户端先建库和独立/联动使用均通过隔离验证,首次向导与设置页回调及交接 API 回归验证通过。客户端仍为未签名安装器,智能应用控制/管理员策略拦截尚未解决;用户选择手动安装不等于已具备系统信任。安装到空目录并重新打开原知识库,保留旧安装作回退。
30
+
31
+ ## 2026-11-11 · 首次建库后的共享服务交接(源码修复,尚未发布)
32
+
33
+ 修复首次使用向导在新建共享知识库后,立即用旧内嵌内核刷新 preferences 导致 SERVICE_REQUIRED 的问题。建库成功后保留成功结果并明确提示完全退出重开 DSH,暂停当前向导的续约和刷新;设置页同时停止旧运行时刷新,禁用重复建库和重建。宿主串行处理首次建库,成功回执在本进程内复用,重复请求不再落入内嵌写入;交接期间其他工作台操作返回明确的重启提示。单写入者保护继续生效,重启后按现有持久化绑定连接共享服务。
34
+
35
+ 验证:首次向导和设置页真实回调、并发/重复请求、失败重试,以及 Windows 下插件先建库/客户端先建库、重试后独立使用与共库联动。该条记录描述源码修复,已发布版本仍为插件 3.0.1 / 客户端 2.0.1。
36
+
37
+
38
+ 安装器核查:现有 2.0.1 安装器 Authenticode 状态为 NotSigned;未发现本机 Defender 中与该安装器匹配的历史威胁记录。未签名会触发信誉或智能应用控制拦截,不能据此判定为病毒误报,也不能宣称已解决 Windows 信任问题;用户描述疑似智能应用控制或管理员策略拦截,确切类型尚未确认;Defender 定向扫描完成且未返回相关检测,发布包哈希一致。此信任阻断尚未解决,本机无可用代码签名证书,不以关闭保护或自签证书代替受信任发布签名;组织策略仍可能要求管理员批准。
39
+
40
+ ## 2026-11-11 · 插件 3.0.1 / 客户端 2.0.1 · 自动更新事务恢复补丁
41
+
42
+ 修复旧更新停留在 prepared、宿主后来已安装其他版本时,新更新永久受阻的问题。持有配置写锁后完整归档旧事务并取消旧准备,再准备本次更新;不回退当前安装、不删除候选与备份。旧确认请求失效。publishing、未知状态、已存在发布备份或活跃写入锁仍需恢复或等待。更新弹窗区分安装恢复与写入占用。
43
+
44
+ 提供仅取消准备的 `cancel-prepared` 恢复入口及中英文步骤,先归档再取消,拒绝对安装中状态执行回滚。
45
+
46
+ 已安装旧版仍使用旧更新器;若已被历史事务阻塞,须先按恢复说明安全结束“仅准备”的旧事务,不能指望尚未安装的新包修复旧更新器。本机该历史事务已备份取消。此后可按正常入口更新到 3.0.1。客户端 2.0.1 携带相同修复内核及配套插件。
47
+
48
+ 验证包含真实 pnpm 的归档/重新准备/提交、旧确认拒绝、锁与发布保护,真实 Windows 服务停服交接、安装后重新连接,以及真实安装配置隔离副本的升级。中英文文档、产品清单与下载入口同步;不改变协议和存储代次,不重建知识库。客户端仍需空目录安装,安装器未签名。
49
+
50
+ ## 2026-11-11 · 修复历史准备事务阻塞更新(源码修复,尚未发布)
51
+
52
+ 当旧更新仅停在 prepared、宿主随后已安装其他版本时,新更新不再永久受阻。持有配置写锁后先完整归档旧事务,再将其标记为 aborted;候选包和备份保留,旧确认请求不能继续安装。publishing、未知状态及活跃写入锁仍需恢复或等待,不自动跳过。界面区分未完成安装与其他安装进程占用。补充真实 pnpm 回归,验证历史事务被替代、旧确认失效、活跃锁和安装中状态受保护。此项未改动已发布 3.0.0 附件。
53
+
54
+ ## 2026-11-11 · 发布插件 3.0.0 与客户端 2.0.0
55
+
56
+ 本次将发布审查、错版本互通、启动与局部更新优化、界面排版修复合并到统一主仓库,并以 v3.0.0 和 client-v2.0.0 分别发布。同步中英文 README、客户端文档、版本说明、演进记录、官网和产品更新清单。两端独立版本与安装,继续按协议、存储代次和能力协商共库,不因主版本号变化强制重建。
57
+
58
+ 最终本地回归:Node 364 项中 362 通过、0 失败、2 项真实宿主条件跳过;Python 24 项通过。实际安装器验证新目录安装客户端 2.0.0 后接续 1.1.4 的原配置和知识库,资料保留、页面错误为零;非空目录保护生效。完整源码、插件包、内置插件及安装包摘要核对后发布;GitHub Actions 负责合并与标签发布检查。
59
+
60
+ 修复首次共库激活竞态:新旧版本同时接入时,已验证的同库激活结果可复用,避免重复迁移冲突;旧服务返回冲突时先验证其当前激活身份,不重放迁移。错版本并发测试的成功连接在另一连接失败时也会完整关闭,避免测试进程悬挂。
61
+
62
+ GitHub Windows 检查补充:真实服务测试等待完整退出后再清理临时目录;历史 2.4.3 升级夹具仅加入 SID/ACL 显示别名规范化,以适配运行器的内置管理员账户,不改变旧版协议、权限或升级流程。
63
+
64
+ 客户端安装器未签名,要求空安装目录,不支持静默覆盖安装。真实库迁移仍需预览确认。未修改生产资料库,未执行真实收费模型调用;真实 DSH 工具分发与 ASAR 宿主专项仍受环境条件限制。
65
+
66
+ ## 插件 2.5.3 / 客户端 1.1.1(2026-11-07)
67
+
68
+ 本次统一发布此前本地交付的原件索引架构及后续修正,两端继续使用同一共享内核与服务,独立安装、独立版本。
69
+
70
+ - 原件保持原位;索引层记录身份、路径、分类、标签与指纹。插件和客户端提供迁移预览与确认入口,程序更新不会自动迁移资料库。
71
+ - 客户端增加原件分类文件树及分类操作,分类与隐私筛选由共享服务执行;既有文件、绑定及资料库身份保留。
72
+ - 流程卡保存模型与推理配置,运行使用已保存配置;内置收件箱仍要求 High。自定义流程准备不再误入内置收件箱校验。
73
+ - 任务计划面板修正宽度和向上展开方向;长工具执行期间提示模型核对进度,由模型依据实际结果更新状态。
74
+ - 成品登记说明明确支持复用系列目录:task 填系列目录名,title 填单期标题,path 填库内相对路径。无需按日期拆目录,路径与隐私校验继续生效。
75
+
76
+ 本次验证使用虚构库与针对性检查,发布包核对源码、构建指纹和摘要;不读取真实私有库,不调用收费模型。历史验收记录保留其当时范围;本次打包不代表正式用户安装、DSH 重启激活、真实报告生成或外部发送已经验证。客户端自动覆盖安装与激活尚未接入。
77
+
78
+ 安装:插件使用 v2.5.3 Release 中的 TGZ;客户端使用 client-v1.1.1 Release 中的 Windows x64 Setup.exe(未签名),分别核对清单与 SHA-256。客户端安装目录需为空,先保存工作并退出旧客户端;DSH 插件按宿主提示重新加载或完全退出含托盘后重开,核对版本和构建号。旧 2.4.6 更新受阻时仍使用既有恢复入口。
79
+
80
+ ## Plugin 2.5.3 / desktop client 1.1.1 (2026-11-07)
81
+
82
+ This paired release publishes the previously local original-file index architecture and subsequent fixes. The products share a core and service while retaining independent versions and installations.
83
+
84
+ - Originals stay in place. The index records identity, path, classification, tags and fingerprints. Both products offer migration preview and confirmation; installing an update does not migrate a library automatically.
85
+ - The client adds the original-file classification tree and classification actions, with shared-service visibility checks.
86
+ - Flow cards save model and reasoning settings. Run uses that saved route; the builtin inbox still requires High. Custom-flow preparation no longer enters the builtin inbox-only gate.
87
+ - The task-plan panel fixes width and upward disclosure. Bounded progress reminders ask the model to reconcile actual results during long runs; the observer does not complete tasks itself.
88
+ - Deliverable instructions support existing series folders: task is the folder name, title identifies the issue, and path is library-relative. No per-date folder is required; path and privacy checks remain enforced.
89
+
90
+ Validation uses synthetic libraries and focused checks, with source/archive, build and digest verification. No private library or paid model is used. Historical evidence retains its original scope. Packaging does not establish production installation, running DSH activation, real report generation or external delivery. Client automatic in-place installation and activation remain unfinished.
91
+
92
+ Install the TGZ from v2.5.3 and the unsigned Windows x64 Setup.exe from client-v1.1.1, checking their separate manifests and SHA-256 digests. The client installer requires an empty application directory; save work and exit the old client first. Reload the plugin as directed by DSH or exit including its tray process and reopen, then verify version and build. Existing recovery instructions still apply to blocked legacy 2.4.6 updaters.
93
+
94
+ > 本文是统一仓库内的客户端专题。主入口见 [统一 README](../../README.zh-CN.md),两端版本与发布规则见 [统一版本规则](../../VERSIONING.md)。
95
+
96
+ # 设计与演进记录
97
+
98
+ [English](PROJECT-RECORD.en.md) · 中文
99
+
100
+ 对应客户端 1.1.1,共享插件 2.5.3。更新日期:2026-11-07。
101
+
102
+
103
+ ## 2.4.13:更新不再重解析宿主依赖(2026-11-05)
104
+
105
+ 安全更新只在独立解析目录中解析无依赖的知识库包,将其 importer、package、snapshot 三组记录合并到原 pnpm v9 锁文件。其他插件的来源、锁定版本及记录逐字节保留,不再向注册源查找宿主内置包,也不复制或重装其他插件。未知锁格式、歧义或跨包引用失败时保留旧安装。
106
+
107
+ 19 项更新状态检查、8 项真实 pnpm/事务检查通过;另用本机清单的隔离副本验证仅解析知识库包能完成准备,原 profile 清单与锁未改动。保留回滚与崩溃恢复;真实设备安装及加载结果另记,不由准备成功推断。
108
+
109
+ ## 2.4.12:本地依赖与自动更新准备(2026-11-05)
110
+
111
+ 保留 2.4.11 的共享状态构建字段与旧接口确认修复。进一步修复更新准备阶段拒绝 profile 内相对路径本地插件的问题:将这些依赖复制到隔离的影子目录,使 pnpm 只处理影子清单;保持真实 profile 中其他插件的来源字符串及文件不变。拒绝越界、链接、元数据冲突和超过 64 MiB 的相对依赖,不复制运行知识库或凭据。
112
+
113
+ 19 项状态确认检查、7 项真实 pnpm 与事务检查通过,覆盖本地依赖保留、越界拒绝、发布失败回滚和进程崩溃恢复。实际设备自动升级另行记录;下载成功、合成检查或磁盘包版本均不单独代表正在运行的新构建已经生效。
114
+
115
+ ## 2.4.11:共享状态构建与自动更新确认(2026-11-05)
116
+
117
+ 修复共享模式 POST status 缺少 build,而更新确认必须校验版本与构建号的问题。旧安装即使已经加载,也可能永久停在待确认。现在共享状态统一携带 Host 构建;客户端兼容从旧版 GET 状态读取构建,仍要求精确匹配,不按版本号单独确认。
118
+
119
+ 19 项定向检查通过,新增原共享状态缺字段反例和旧接口兼容确认;保留安装锁、已准备事务续装及失败恢复限制。针对已被旧代码锁住的客户端,需要一次受控的兼容恢复才能重新进入自动流程;发布更新源本身不能修改正在运行的旧代码。恢复必须先验证旧请求与已安装构建,不得无条件清空客户端状态。真实用户升级结果单独记录,不把这些合成检查当作实机安装证明。
120
+
121
+ ## 2.4.10:安装待确认状态恢复(2026-11-05)
122
+
123
+ 修复核对不到旧安装回执时,界面永久停在待确认、安装按钮保持禁用的问题。核对流程增加磁盘安装构建、当前安全安装操作和 profile 写锁信息;只有宿主明确没有旧请求、安装操作及写锁均不活跃且当前安装可校验时,才解除旧请求。单纯等待时间变长或接口失败不能触发解除。
124
+
125
+ 已准备但尚未开始的安全事务可继续原事务,不创建第二次准备或重复安装。目标文件已经写入而宿主仍运行旧构建时,显示保存工作并重启;正在安装、无法校验或损坏状态继续拒绝盲目重试。
126
+
127
+ 17 项定向检查通过,覆盖失效旧请求、写锁与活动操作、缺失事务文件、已安装未加载、原事务续装及既有完成状态。没有对正式用户实例执行安装、删除客户端缓存或强制重启。
128
+
129
+ 若旧版界面已经被待确认状态锁住,新修复尚无法加载:在 DSH 自身“设置 → 插件”中使用本版正式安装源更新一次,按宿主提示重新加载;不要在知识库的灰色按钮上反复尝试。详见升级恢复说明。
130
+
131
+ ## 2.4.9:kb_flow 返回契约(2026-11-05)
132
+
133
+ 修复共享模式 kb_flow 的返回结果缺少 action,导致宿主报 value.action 字段缺失的问题。共享服务与 Host 工具边界都按原请求补全动作;业务失败、断线与调用方校验失败也保留 action、原错误和成功状态,不放宽原输出校验,不把失败伪装成成功,不重放调用。
134
+
135
+ 3 项定向测试通过,覆盖全部 8 种动作、实际注册的 Host 工具成功及失败返回,以及隔离真实 Windows 共享服务读取与业务失败。仅使用合成数据,没有重放正式用户流程。
136
+
137
+ 另定位到记忆插件 1.0.4 在工具续步中仅从新输入查用户消息,可能以空快照替换已召回约定;该组件的 1.0.5 本地修复另行交付,不包含在此知识库包内,未公开发布或自动安装。合成课堂录音约定验证了持久保存、召回及解析完成后的上下文续接,未证明正式录音已自动生成笔记。
138
+
139
+ ## 2.4.8:设置页的解析调用记录(2026-11-05)
140
+
141
+ 修复共享服务把管理界面的只读请求当作普通会话的问题。设置页依据已认证连接的管理权限读取 OCR / ASR 执行任务和提交记录,不再按固定界面会话误过滤 Agent 发起的任务;资料可见性筛选仍然生效。普通模型工具和只读连接不因此获得跨会话管理权限,写接口仍要求管理授权。
142
+
143
+ 3 项定向测试通过:在隔离的真实 Windows 共享服务中,由独立 Agent 会话调用本地合成 OCR / ASR 接口,设置页两种读取入口均能看到执行中、提交及完成后的记录;普通会话、只读连接与伪造参数不能越权。反例在修复前复现为空列表,修复后通过。样本和接口为合成数据,未读取正式知识库、调用外部付费服务或验证正式用户完整界面。
144
+
145
+ ## 2.4.7:升级交接等待提示(2026-11-05)
146
+
147
+ 交接期间保留稳定的知识库 API 入口,明确返回服务准备状态;界面显示“知识库服务准备中,请稍候…”,接口就绪后继续读取。只对服务明确确认尚未执行的请求等待后重新提交;真实 HTTP 405、断线及未知写入结果不自动重放。准备失败或等待超时仍提供错误与恢复说明,不把它们伪装为就绪。
148
+
149
+ 19 项定向检查通过,包含真实本地 HTTP 路由准备、恢复后的写请求仅执行一次、失败与超时边界、旧服务交接和服务恢复。未额外重复完整功能回归;未对正式用户实例操作或声称完整界面实测。
150
+
151
+ ## 2.4.6:2.4.3 直接自动升级与旧服务交接(2026-11-05)
152
+
153
+ - 恢复正式自动更新入口,正常 2.4.3 可直接安装本版,不要求先手动安装过渡版本。
154
+ - 新版通过已发布 2.4.3 的精确运行时指纹识别旧服务;释放探测连接后等待旧服务按原有空闲机制自然退出,核对原进程出生标识和清理回执,再启动新服务。不向缺少停服协议的旧服务发送 shutdown,不终止其他连接或任务;超时显示恢复说明。
155
+ - 新版运行中的安装、事务恢复或交接确实报错时,才显示手动更新与恢复说明。2.4.3 若在首次 pnpm 安装阶段就失败,新代码尚未加载,仍使用旧版原错误界面;现有更新说明入口提供同一恢复文档,不能承诺旧界面具有新版弹窗。
156
+ - 手动恢复包可从固定摘要的公开 2.4.3 包重建受损代码目录,保留残留目录和原 profile 清单,再使用事务安装器升级;不清空知识库或解析记录。
157
+
158
+ 验证使用真实公开 2.4.3 TGZ、Windows 上的运行服务与真实 pnpm,覆盖直接安装、自然退出后交接、原件保留及受损旧安装恢复;事务失败回退沿用并补验现有检查。验证范围不包含正式用户 profile 安装或完整 Electron 界面操作。旧 2.4.3 首次安装仍由宿主旧安装器执行,不能获得新版事务器在安装前的保护;异常时走恢复入口。旧更新源不能按客户端运行状态筛选,2.4.3 以外的旧版不属于本次定向保证。
159
+
160
+ ## 2.4.4:Windows 安全更新与失败恢复(2026-11-05)
161
+
162
+ - pnpm 只在隔离的清单副本中准备锁文件;新包先完成摘要、构建号、路径和文件校验,不让包管理器改写在线插件目录。
163
+ - 更新前通过管理员授权的停服协议检查其他连接、排队及运行中的解析、导入和流程任务;忙碌时延后。停服后核对清理回执及进程退出,再切换完整包目录。
164
+ - 原插件目录和清单保留在私有事务目录;切换或清单写入失败时回退并逐文件校验。中途退出的安装可从持久事务记录恢复,不把未知结果标为成功,不重复发起安装。
165
+ - 2.4.4 使用 release-manifest-v2.json。旧 release-manifest.json 停用安装分发,阻断旧更新器继续走不安全的原地安装。2.4.3 及更早版本首次过渡须退出宿主及连接客户端,使用本版过渡安装包;旧服务不支持停服协议时自动路径会拒绝接管。
166
+ - 成功安装后明确提示重启生效。嵌入模式或缺少安全停服能力时保持旧版,暂不自动安装。包带额外依赖、相对本地依赖或旧包已不完整等不支持的情况均停止,不擅自重建用户配置。
167
+
168
+ 验证:35 项 Node 定向检查、5 项真实文件系统/真实 pnpm 事务测试,以及 1 个 Windows 运行服务升级复合场景通过。复合场景包括原始 2.4.3 服务的拒绝接管、额外连接和排队任务的延后、使用旧目录 Python 的协议服务退出、真实 2.4.3 包切换失败后逐文件恢复、成功升级重启和虚构原件保留。具备新停服协议的服务升级与未修改旧服务的首次过渡是两条不同路径。本次未在正式用户 profile 安装,也未验证真实模型或完整 UI。
169
+
170
+ ## 2.4.3:原件同步与 Windows 解析任务修复(2026-11-05)
171
+
172
+ - 合入文本原件与引用同步:归档文本参与检索,原件编辑后更新索引与引用范围;旧的自动生成镜像引用当前原件,独立撰写的摘要仍保留。
173
+ - 调整索引排除与恢复时的关联原件、派生记录及增量向量复用;修复含中文路径及版本化 Python 路径的 PDF 渲染。
174
+ - Windows 解析任务记录的读取和原子替换共用进程级队列,减少句柄重叠;外部占用有限重试,耗尽时保留旧记录并清理临时文件。
175
+ - 提交、重试和启动恢复的后台错误均被捕获;尽力保存失败状态,无法保存时明确报告,清理心跳和运行标记。
176
+
177
+ Windows 定向复验 73/73 通过(原有 68 项及新增 5 项故障测试)。测试使用虚构资料和请求替身,不证明真实 OCR/ASR 效果、自动 PDF/Office 索引同步、原生位置映射或完整桌面运行兼容性。客户端独立发布版本仍为 1.0.3,本次不重新发布客户端安装器。
178
+
179
+ ## 2026-11-05:插件 2.4.2 / 客户端 1.0.3
180
+
181
+ 客户端反馈现已通过 Cloudflare Workers 与 D1 创建公开 GitHub Issue。用户无需登录 GitHub,提交前填写标题、正文并确认公开;只附带版本和构建号,不自动附带资料、日志或设备路径。凭据只保存在服务端 Secret 中。重复提交使用同一回执,结果未知时核对而不盲目重发;存在频率和每日总量限制。
182
+
183
+ 跨盘回收修复:新回收项保存到资料库内部元数据目录;兼容旧回收项目,跨盘恢复经过复制及逐项校验;失败回执只有在确认源目录未变化且未移动时才标记失败。断线重连刷新保留已有页面快照。
184
+
185
+ 插件 2.4.2 修复共库 Host 的正式更新检查与准备接口、1 MiB 发布清单读取及版本状态提示。共享 Host 的 Python helper 按内容摘要复制并验证到插件目录之外的持久运行目录,避免占用待替换的插件文件。沿用原有绑定、配置、解析记录和服务身份,不初始化、迁库或重发解析任务。独立离线安装器先阻止活跃客户端、备份并比较状态,再调用本机包管理器;真实安装及宿主激活由用户完成。
186
+
187
+ 验证包括反馈接口及状态测试、真实部署测试 Issue #46 / #47(重复提交返回原 Issue)、隔离 C/D 双卷回收恢复、服务文件生命周期、Windows helper 存活时原包目录改名,以及 2.4.1 状态重开测试。独立安装器的包管理调用使用模拟;未以用户真实库或真实模型调用作评测,也不声称完整 Office 保真或所有网络可达。
188
+
189
+ 两端分别使用 client-update.json 与 release-manifest-v2.json,版本与 SHA-256 独立核验。客户端检查更新及校验下载已实现,自动覆盖安装与激活尚未实现。镜像附件在同步校验完成后可用。
190
+
191
+
192
+ ## 产品目标
193
+
194
+ 以原有文件结构为中心提供独立桌面工作台。用户能够清楚地知道资料在哪里,在多个文档之间对照阅读、编辑和整理,并按需连接 DSH。文件树始终用于文件浏览;管理工具以可移动浮窗打开,并提供完整页面入口。
195
+
196
+ ## 演进阶段
197
+
198
+ 1. 兼容准备:建立插件基线、状态迁移和接口边界。
199
+ 2. 共享内核:保留插件工具及界面门面,将业务实现拆入共享模块。
200
+ 3. 共库服务:集中授权、写入、迁移与恢复,避免两个入口各自修改同一份索引。
201
+ 4. 桌面工作区:实现文件树、多标签、最多四栏、内容预览与编辑,以及浅深色主题。
202
+ 5. 联动与打磨:接入 DSH 会话、上下文附件和统计;改进浮窗、路径动画、PDF、主题及安装器。
203
+ 6. 1.0.1 整理:客户端与插件 2.4.1 配套打包,提供可公开的源码与文档。
204
+
205
+ ## 设计决策
206
+
207
+ - 分栏、标签和文件分别管理;空栏在关闭最后一个文件后收起,手动创建的新栏允许等待文件。
208
+ - 编辑由开关控制;关闭未保存内容时确认处理方式。
209
+ - 色彩主题同时定义框架、阅读面板、侧栏、选中态和文字,浅深色独立设计。
210
+ - DSH 对话上下文由用户主动拖入或选中文字添加。文件打开不等于自动发送给模型。
211
+ - 模型任务依赖宿主;本地浏览与管理保持独立能力。
212
+
213
+ ## 源码地图
214
+
215
+ `apps/desktop/src` 是界面;`apps/desktop/main` 是桌面权限边界;`packages/kb-core` 与 `packages/kb-service` 是共享业务及服务;`src` 保留配套插件适配;`installer-design-b` 是现有安装器。
216
+
217
+ ## 后续方向与限制
218
+
219
+ 在线更新、保留数据的覆盖安装、更完整的 Office 保真度、跨版本兼容测试仍需继续完善。这些属于后续工作,不是 1.0.1 已交付承诺。每次发布同步更新本文与版本说明,验证范围以具体记录为准。
@@ -0,0 +1,55 @@
1
+
2
+ **[Download Windows client 2.0.3 (EXE)](https://github.com/KingsleyAsher/Personal-Knowledge-Base/releases/download/client-v2.0.3/KnowledgeWorkbench-2.0.3-Setup.exe)** · [Release notes](https://github.com/KingsleyAsher/Personal-Knowledge-Base/releases/tag/client-v2.0.3)
3
+
4
+ > Client-specific guide in the unified repository. See the [main README](../../README.md) and [shared release policy](../../VERSIONING.en.md).
5
+
6
+ # Personal Knowledge Base Client
7
+
8
+ [English](README.md) · [简体中文](README.zh-CN.md)
9
+
10
+ A local-first Windows knowledge workspace for reading, editing and connecting your files. Use it independently, or connect it to DeepSeek Harness (DSH) and the [Personal Knowledge Base plugin](https://github.com/KingsleyAsher/Personal-Knowledge-Base).
11
+
12
+ **Client 2.0.3 · Shared plugin source 3.1.3 · Windows x64**
13
+
14
+ ## Your files, in one workspace
15
+
16
+ - Browse the full file tree, locate paths and open containing folders.
17
+ - Compare up to four resizable preview panes; drag tabs between panes or into a new pane.
18
+ - Read and edit Markdown, UTF-8 text and code. Preview PDF with selectable text and vertical continuous pages; zoom images and drag to pan.
19
+ - Edit supported DOCX text and XLSX/CSV cells. Advanced Office layout and spreadsheet calculation are limited; this is not a full Office replacement.
20
+ - Search, inspect relationships, organize the inbox, manage indexing, recycle files and manage backups through movable tool windows.
21
+ - Use independently designed light/dark palettes, including six color themes, with animated transitions.
22
+ - Connect the DSH sidebar for conversations, Agent presets, model/reasoning selection, streamed replies and explicitly attached file context. Optional memory-plugin integration is available when its host is online.
23
+
24
+ ## Documentation
25
+
26
+ | Guide | English | 中文 |
27
+ |---|---|---|
28
+ | Design and evolution | [Project record](PROJECT-RECORD.en.md) | [设计与演进记录](PROJECT-RECORD.md) |
29
+ | Use and installation | [Workbench](WORKBENCH.en.md) | [使用说明](WORKBENCH.md) |
30
+ | Build from source | [Development](DEVELOPMENT.en.md) | [开发与构建](DEVELOPMENT.md) |
31
+ | Architecture | [Architecture](ARCHITECTURE.en.md) | [架构](ARCHITECTURE.md) |
32
+ | Releases | [Release notes](RELEASE.en.md) | [版本说明](RELEASE.md) |
33
+ | Version policy | [Versioning](VERSIONING.en.md) | [版本规则](VERSIONING.md) |
34
+ | Privacy and reporting | [Security](SECURITY.md) | [隐私与安全](PRIVACY.md) |
35
+
36
+ ## Installation
37
+
38
+ Install a maintainer-provided Windows installer and launch the application from its shortcut. Public downloads, when published, are listed in [Releases](https://github.com/KingsleyAsher/Personal-Knowledge-Base/releases). Client 2.0.3 is published with the installer linked above. Keep the application directory separate from your document libraries.
39
+
40
+ The current installer keeps the existing paper-green interface and animations. It requires an empty target directory; in-place automatic upgrades are not implemented. Uninstall preserves user data. Online client update checking/download/install is not connected yet.
41
+
42
+ ## Development
43
+
44
+ See [build instructions](DEVELOPMENT.en.md). The repository includes the Electron app, React UI, shared core/service, plugin adapter and installer source. Dependencies and downloaded runtimes are excluded from Git.
45
+
46
+ ## Verification boundaries
47
+
48
+ Validation scope / 验证范围:[本次发布说明](../releases/client-2.0.3.md)。历史界面验收不等于本次正式安装验证。
49
+
50
+ MIT licensed; bundled third-party components retain their own licenses. See [third-party notices](THIRD-PARTY-NOTICES.md).
51
+
52
+ Update policy: every eligible version in the selected channel updates automatically, including majors and previews. The client online executor remains unfinished; see [version policy](../../VERSIONING.en.md).
53
+
54
+
55
+ Paired payload / 配套插件:**3.1.3**。[原件索引架构](../ORIGINAL-FILE-INDEX-ARCHITECTURE.md)。
@@ -0,0 +1,45 @@
1
+
2
+ **[下载 Windows 客户端 2.0.3 安装包(EXE)](https://github.com/KingsleyAsher/Personal-Knowledge-Base/releases/download/client-v2.0.3/KnowledgeWorkbench-2.0.3-Setup.exe)** · [版本说明](https://github.com/KingsleyAsher/Personal-Knowledge-Base/releases/tag/client-v2.0.3)
3
+
4
+ > 本文是统一仓库内的客户端专题。主入口见 [统一 README](../../README.zh-CN.md),两端版本与发布规则见 [统一版本规则](../../VERSIONING.md)。
5
+
6
+ # 个人知识库客户端
7
+
8
+ [English](README.md) · [简体中文](README.zh-CN.md)
9
+
10
+ 围绕本地文件构建的 Windows 知识工作台:浏览资料、并排阅读、编辑笔记和探索关联。客户端可以独立使用,也可以与 [DSH 知识库插件](https://github.com/KingsleyAsher/Personal-Knowledge-Base) 共库联动。
11
+
12
+ **客户端 2.0.3 · 共享知识库插件源码 3.1.3 · Windows x64**
13
+
14
+ ## 主要能力
15
+
16
+ - 完整文件树、路径定位、打开所在文件夹;最多四栏并排预览,支持调整宽度及标签拖放。
17
+ - Markdown、UTF-8 文本和代码编辑;PDF 连续纵向阅读、文本选择、内容缩放;图片拖动查看。
18
+ - DOCX 正文与表格文字、XLSX 单元格与公式、CSV 编辑。复杂 Office 排版、完整公式计算和旧 DOC/XLS 格式存在限制。
19
+ - 可移动的全局搜索、关系网络、收件箱、回收站、备份及任务窗口;文件可选择是否进入索引。
20
+ - 独立设计的浅色与深色主题、六套彩色主题和从选择处扩散的切换动画。
21
+ - DSH 侧栏支持会话、Agent 预设、模型与推理强度、流式回复,以及用户主动添加的文件和文字上下文。
22
+ - 可选记忆插件联动;DSH 离线时继续使用本地文件与知识库功能,依赖模型和宿主的操作不可用。
23
+
24
+ ## 文档导航
25
+
26
+ - [设计与演进记录](PROJECT-RECORD.md):产品目标、阶段演进、能力与边界。
27
+ - [安装与使用](WORKBENCH.md)、[开发与构建](DEVELOPMENT.md)、[架构说明](ARCHITECTURE.md)。
28
+ - [版本说明](RELEASE.md)、[版本规则](VERSIONING.md)、[隐私与安全](PRIVACY.md)、[贡献指南](CONTRIBUTING.md)。
29
+
30
+ ## 获取与安装
31
+
32
+ 公开安装包发布后会列在 [Releases](https://github.com/KingsleyAsher/Personal-Knowledge-Base/releases)。客户端 2.0.3 已发布,安装包见上方直接下载入口。
33
+
34
+ 使用维护者提供的安装包,选择独立的应用目录。现有安装器保留纸页绿界面和动画,要求目标目录为空;尚未实现覆盖升级。卸载保留个人资料与设置。客户端在线检查与校验下载可用,自动覆盖安装和激活尚未完成。
35
+
36
+ ## 验证范围
37
+
38
+ Validation scope / 验证范围:[本次发布说明](../releases/client-2.0.3.md)。历史界面验收不等于本次正式安装验证。
39
+
40
+ 采用 MIT 许可证;第三方依赖保留各自许可,见 [第三方说明](THIRD-PARTY-NOTICES.md)。
41
+
42
+ 更新策略统一为所选通道内所有新版本自动更新(含跨大版本与预览版);不再逐次要求手动确认。客户端在线执行链路仍未完成,详见 [版本规则](../../VERSIONING.md)。
43
+
44
+
45
+ Paired payload / 配套插件:**3.1.3**。[原件索引架构](../ORIGINAL-FILE-INDEX-ARCHITECTURE.md)。