dsh-den 0.0.0-stage → 1.18.0

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 (328) hide show
  1. package/LICENSE +21 -0
  2. package/LICENSE-K-Dense-scientific-agents +21 -0
  3. package/LICENSE-novotnyllc-dotnet-artisan +21 -0
  4. package/NOTICE-fork.md +19 -0
  5. package/README.md +259 -2
  6. package/THIRD_PARTY_NOTICES.md +212 -0
  7. package/assets/expert-generation/methodology.md +160 -0
  8. package/assets/personas/domain/engineering/dotnet-/344/273/243/347/240/201/345/256/241/346/237/245/345/256/230.md +148 -0
  9. package/assets/personas/domain/engineering/dotnet-/346/200/247/350/203/275/345/271/266/345/217/221/350/257/212/346/226/255/345/270/210.md +157 -0
  10. package/assets/personas/domain/engineering/rf-/344/273/252/350/241/250/345/233/236/350/267/257/344/270/216/346/265/213/351/207/217/351/223/276.md +204 -0
  11. package/assets/personas/domain/engineering/rf-/345/244/251/347/272/277/346/265/213/351/207/217/344/270/223/345/256/266.md +156 -0
  12. package/assets/personas/domain/engineering/rf-/345/276/256/346/263/242/347/224/265/350/267/257/344/270/216vna/346/265/213/351/207/217.md +161 -0
  13. package/assets/personas/domain/engineering/rf-/347/224/265/347/243/201/344/273/277/347/234/237/344/270/216/346/232/227/345/256/244/346/265/213/351/207/217.md +151 -0
  14. package/assets/personas/domain/engineering//351/253/230/347/272/247-dotnet-blazor-/345/267/245/347/250/213/345/270/210.md +156 -0
  15. package/assets/personas/domain/testing/rf-/346/265/213/351/207/217/344/270/215/347/241/256/345/256/232/345/272/246/351/242/204/347/256/227.md +141 -0
  16. package/assets/personas/domain/testing/rf-/350/256/241/351/207/217/346/272/257/346/272/220/344/270/216/346/240/241/345/207/206.md +170 -0
  17. package/assets/personas/generic/engineering//345/217/215/345/220/221/351/252/214/350/257/201/350/200/205.md +67 -0
  18. package/assets/personas/generic/engineering//345/217/252/350/257/273/345/256/241/346/237/245/350/200/205.md +70 -0
  19. package/assets/personas/generic/engineering//345/256/236/347/216/260/350/200/205.md +58 -0
  20. package/assets/personas/generic/engineering//346/226/271/346/241/210/350/256/276/350/256/241/350/200/205.md +69 -0
  21. package/assets/personas/generic/engineering//350/260/203/347/240/224/350/200/205.md +69 -0
  22. package/assets/personas/generic/quality//346/265/213/350/257/225/345/267/245/347/250/213/345/270/210.md +71 -0
  23. package/cordis.patch.yml +5 -0
  24. package/lib/api/dictionaryRoute.d.ts +8 -0
  25. package/lib/api/dictionaryRoute.js +78 -0
  26. package/lib/api/http.d.ts +31 -0
  27. package/lib/api/http.js +62 -0
  28. package/lib/api/knowledgeRecallRoute.d.ts +23 -0
  29. package/lib/api/knowledgeRecallRoute.js +102 -0
  30. package/lib/api/localDirRoute.d.ts +26 -0
  31. package/lib/api/localDirRoute.js +137 -0
  32. package/lib/api/openFileRoute.d.ts +2 -0
  33. package/lib/api/openFileRoute.js +114 -0
  34. package/lib/api/routes/ai-sessions.d.ts +7 -0
  35. package/lib/api/routes/ai-sessions.js +52 -0
  36. package/lib/api/routes/drafts.d.ts +12 -0
  37. package/lib/api/routes/drafts.js +380 -0
  38. package/lib/api/routes/experts.d.ts +36 -0
  39. package/lib/api/routes/experts.js +215 -0
  40. package/lib/api/routes/helpers.d.ts +73 -0
  41. package/lib/api/routes/helpers.js +190 -0
  42. package/lib/api/routes/idea-clusters.d.ts +9 -0
  43. package/lib/api/routes/idea-clusters.js +83 -0
  44. package/lib/api/routes/ideas.d.ts +7 -0
  45. package/lib/api/routes/ideas.js +67 -0
  46. package/lib/api/routes/knowledge.d.ts +7 -0
  47. package/lib/api/routes/knowledge.js +163 -0
  48. package/lib/api/routes/model-modalities.d.ts +51 -0
  49. package/lib/api/routes/model-modalities.js +78 -0
  50. package/lib/api/routes/personas.d.ts +30 -0
  51. package/lib/api/routes/personas.js +134 -0
  52. package/lib/api/routes/plans.d.ts +22 -0
  53. package/lib/api/routes/plans.js +171 -0
  54. package/lib/api/routes/projects.d.ts +12 -0
  55. package/lib/api/routes/projects.js +85 -0
  56. package/lib/api/routes/quick-attachments.d.ts +104 -0
  57. package/lib/api/routes/quick-attachments.js +560 -0
  58. package/lib/api/routes/reminders.d.ts +29 -0
  59. package/lib/api/routes/reminders.js +106 -0
  60. package/lib/api/routes/reports.d.ts +7 -0
  61. package/lib/api/routes/reports.js +51 -0
  62. package/lib/api/routes/skills.d.ts +15 -0
  63. package/lib/api/routes/skills.js +36 -0
  64. package/lib/api/routes/tasks.d.ts +7 -0
  65. package/lib/api/routes/tasks.js +325 -0
  66. package/lib/api/routes.d.ts +81 -0
  67. package/lib/api/routes.js +424 -0
  68. package/lib/api/skills.d.ts +43 -0
  69. package/lib/api/skills.js +48 -0
  70. package/lib/build-info.json +8 -0
  71. package/lib/client/aiSessionReuse.d.ts +45 -0
  72. package/lib/client/aiSessionReuse.js +15 -0
  73. package/lib/client/api.d.ts +32 -0
  74. package/lib/client/api.js +87 -0
  75. package/lib/client/buildId.d.ts +21 -0
  76. package/lib/client/buildId.js +26 -0
  77. package/lib/client/capabilities.d.ts +87 -0
  78. package/lib/client/capabilities.js +100 -0
  79. package/lib/client/capacity.d.ts +116 -0
  80. package/lib/client/capacity.js +131 -0
  81. package/lib/client/components/CapacityRulePanel.d.ts +50 -0
  82. package/lib/client/components/CapacityRulePanel.js +78 -0
  83. package/lib/client/components/DayPanel.d.ts +116 -0
  84. package/lib/client/components/DayPanel.js +75 -0
  85. package/lib/client/components/Icon.d.ts +7 -0
  86. package/lib/client/components/Icon.js +35 -0
  87. package/lib/client/components/IdeaCardGrid.d.ts +71 -0
  88. package/lib/client/components/IdeaCardGrid.js +112 -0
  89. package/lib/client/components/KnowledgeDraftBody.d.ts +6 -0
  90. package/lib/client/components/KnowledgeDraftBody.js +38 -0
  91. package/lib/client/components/KnowledgeList.d.ts +63 -0
  92. package/lib/client/components/KnowledgeList.js +89 -0
  93. package/lib/client/components/LocalDocModal.d.ts +59 -0
  94. package/lib/client/components/LocalDocModal.js +68 -0
  95. package/lib/client/components/MarkdownText.d.ts +3 -0
  96. package/lib/client/components/MarkdownText.js +180 -0
  97. package/lib/client/components/PersonaPicker.d.ts +19 -0
  98. package/lib/client/components/PersonaPicker.js +59 -0
  99. package/lib/client/components/PlanPanel.d.ts +34 -0
  100. package/lib/client/components/PlanPanel.js +221 -0
  101. package/lib/client/components/TabBar.d.ts +48 -0
  102. package/lib/client/components/TabBar.js +46 -0
  103. package/lib/client/components/TagFilter.d.ts +23 -0
  104. package/lib/client/components/TagFilter.js +71 -0
  105. package/lib/client/components/TaskList.d.ts +83 -0
  106. package/lib/client/components/TaskList.js +62 -0
  107. package/lib/client/components/TaskProgress.d.ts +23 -0
  108. package/lib/client/components/TaskProgress.js +106 -0
  109. package/lib/client/components/WorkspacePicker.d.ts +36 -0
  110. package/lib/client/components/WorkspacePicker.js +9 -0
  111. package/lib/client/constants.d.ts +49 -0
  112. package/lib/client/constants.js +49 -0
  113. package/lib/client/currentSession.d.ts +60 -0
  114. package/lib/client/currentSession.js +77 -0
  115. package/lib/client/dailyPlanPrompt.d.ts +42 -0
  116. package/lib/client/dailyPlanPrompt.js +86 -0
  117. package/lib/client/entryContract.d.ts +122 -0
  118. package/lib/client/entryContract.js +201 -0
  119. package/lib/client/entryLocale.d.ts +46 -0
  120. package/lib/client/entryLocale.js +89 -0
  121. package/lib/client/expertInputSource.d.ts +219 -0
  122. package/lib/client/expertInputSource.js +430 -0
  123. package/lib/client/expertPrompt.d.ts +51 -0
  124. package/lib/client/expertPrompt.js +74 -0
  125. package/lib/client/externalLink.d.ts +87 -0
  126. package/lib/client/externalLink.js +95 -0
  127. package/lib/client/format.d.ts +22 -0
  128. package/lib/client/format.js +126 -0
  129. package/lib/client/hooks/useWorkbenchExperts.d.ts +499 -0
  130. package/lib/client/hooks/useWorkbenchExperts.js +1233 -0
  131. package/lib/client/i18n.d.ts +27 -0
  132. package/lib/client/i18n.js +37 -0
  133. package/lib/client/inlineMarkdown.d.ts +44 -0
  134. package/lib/client/inlineMarkdown.js +58 -0
  135. package/lib/client/intakeWorkspace.d.ts +82 -0
  136. package/lib/client/intakeWorkspace.js +119 -0
  137. package/lib/client/listPresentation.d.ts +186 -0
  138. package/lib/client/listPresentation.js +306 -0
  139. package/lib/client/localDirBrowser.d.ts +28 -0
  140. package/lib/client/localDirBrowser.js +32 -0
  141. package/lib/client/modelCapability.d.ts +275 -0
  142. package/lib/client/modelCapability.js +348 -0
  143. package/lib/client/modelDirectorySession.d.ts +39 -0
  144. package/lib/client/modelDirectorySession.js +66 -0
  145. package/lib/client/notificationCapability.d.ts +104 -0
  146. package/lib/client/notificationCapability.js +152 -0
  147. package/lib/client/overlayMount.d.ts +52 -0
  148. package/lib/client/overlayMount.js +77 -0
  149. package/lib/client/panelGeometry.d.ts +97 -0
  150. package/lib/client/panelGeometry.js +102 -0
  151. package/lib/client/panelState.d.ts +112 -0
  152. package/lib/client/panelState.js +89 -0
  153. package/lib/client/personaPicker.d.ts +129 -0
  154. package/lib/client/personaPicker.js +175 -0
  155. package/lib/client/personaPrompt.d.ts +24 -0
  156. package/lib/client/personaPrompt.js +39 -0
  157. package/lib/client/popoverPlacement.d.ts +117 -0
  158. package/lib/client/popoverPlacement.js +138 -0
  159. package/lib/client/quickAttachments.d.ts +108 -0
  160. package/lib/client/quickAttachments.js +131 -0
  161. package/lib/client/quickWorkspaceDefault.d.ts +50 -0
  162. package/lib/client/quickWorkspaceDefault.js +90 -0
  163. package/lib/client/runtimeServices.d.ts +29 -0
  164. package/lib/client/runtimeServices.js +89 -0
  165. package/lib/client/serviceScope.d.ts +58 -0
  166. package/lib/client/serviceScope.js +73 -0
  167. package/lib/client/sessionRef.d.ts +160 -0
  168. package/lib/client/sessionRef.js +215 -0
  169. package/lib/client/skillPrompt.d.ts +12 -0
  170. package/lib/client/skillPrompt.js +27 -0
  171. package/lib/client/styles.d.ts +9 -0
  172. package/lib/client/styles.js +1277 -0
  173. package/lib/client/taskFilterSort.d.ts +54 -0
  174. package/lib/client/taskFilterSort.js +136 -0
  175. package/lib/client/taskFolder.d.ts +87 -0
  176. package/lib/client/taskFolder.js +146 -0
  177. package/lib/client/taskProgressView.d.ts +63 -0
  178. package/lib/client/taskProgressView.js +49 -0
  179. package/lib/client/viewTypes.d.ts +413 -0
  180. package/lib/client/viewTypes.js +1 -0
  181. package/lib/client/workspacePath.d.ts +37 -0
  182. package/lib/client/workspacePath.js +86 -0
  183. package/lib/client/workspacePicker.d.ts +40 -0
  184. package/lib/client/workspacePicker.js +89 -0
  185. package/lib/client.js +1298 -0
  186. package/lib/db/database.d.ts +23 -0
  187. package/lib/db/database.js +75 -0
  188. package/lib/db/repo/ai-sessions.d.ts +20 -0
  189. package/lib/db/repo/ai-sessions.js +32 -0
  190. package/lib/db/repo/dictionaries.d.ts +27 -0
  191. package/lib/db/repo/dictionaries.js +89 -0
  192. package/lib/db/repo/drafts.d.ts +137 -0
  193. package/lib/db/repo/drafts.js +382 -0
  194. package/lib/db/repo/experts.d.ts +166 -0
  195. package/lib/db/repo/experts.js +371 -0
  196. package/lib/db/repo/ideas.d.ts +71 -0
  197. package/lib/db/repo/ideas.js +273 -0
  198. package/lib/db/repo/knowledge.d.ts +68 -0
  199. package/lib/db/repo/knowledge.js +181 -0
  200. package/lib/db/repo/meta.d.ts +8 -0
  201. package/lib/db/repo/meta.js +6 -0
  202. package/lib/db/repo/persona-bindings.d.ts +42 -0
  203. package/lib/db/repo/persona-bindings.js +28 -0
  204. package/lib/db/repo/personas.d.ts +46 -0
  205. package/lib/db/repo/personas.js +48 -0
  206. package/lib/db/repo/plans.d.ts +121 -0
  207. package/lib/db/repo/plans.js +416 -0
  208. package/lib/db/repo/progress.d.ts +94 -0
  209. package/lib/db/repo/progress.js +141 -0
  210. package/lib/db/repo/projects.d.ts +51 -0
  211. package/lib/db/repo/projects.js +137 -0
  212. package/lib/db/repo/recurring.d.ts +4 -0
  213. package/lib/db/repo/recurring.js +116 -0
  214. package/lib/db/repo/reminder-queue.d.ts +44 -0
  215. package/lib/db/repo/reminder-queue.js +109 -0
  216. package/lib/db/repo/reminders.d.ts +37 -0
  217. package/lib/db/repo/reminders.js +106 -0
  218. package/lib/db/repo/reports.d.ts +32 -0
  219. package/lib/db/repo/reports.js +89 -0
  220. package/lib/db/repo/shared.d.ts +90 -0
  221. package/lib/db/repo/shared.js +80 -0
  222. package/lib/db/repo/status.d.ts +39 -0
  223. package/lib/db/repo/status.js +209 -0
  224. package/lib/db/repo/task-memory.d.ts +27 -0
  225. package/lib/db/repo/task-memory.js +79 -0
  226. package/lib/db/repo/task-primitives.d.ts +78 -0
  227. package/lib/db/repo/task-primitives.js +164 -0
  228. package/lib/db/repo/task-sessions.d.ts +18 -0
  229. package/lib/db/repo/task-sessions.js +26 -0
  230. package/lib/db/repo/tasks.d.ts +29 -0
  231. package/lib/db/repo/tasks.js +291 -0
  232. package/lib/db/repo.d.ts +161 -0
  233. package/lib/db/repo.js +41 -0
  234. package/lib/db/schema.d.ts +12 -0
  235. package/lib/db/schema.js +625 -0
  236. package/lib/db/seed.d.ts +13 -0
  237. package/lib/db/seed.js +94 -0
  238. package/lib/experts/catalog.d.ts +212 -0
  239. package/lib/experts/catalog.js +677 -0
  240. package/lib/experts/command.d.ts +81 -0
  241. package/lib/experts/command.js +208 -0
  242. package/lib/experts/drafts.d.ts +222 -0
  243. package/lib/experts/drafts.js +1108 -0
  244. package/lib/experts/host-adapter.d.ts +231 -0
  245. package/lib/experts/host-adapter.js +416 -0
  246. package/lib/experts/install.d.ts +153 -0
  247. package/lib/experts/install.js +1496 -0
  248. package/lib/experts/invocation.d.ts +183 -0
  249. package/lib/experts/invocation.js +970 -0
  250. package/lib/experts/paths.d.ts +256 -0
  251. package/lib/experts/paths.js +748 -0
  252. package/lib/experts/provenance.d.ts +97 -0
  253. package/lib/experts/provenance.js +538 -0
  254. package/lib/experts/service.d.ts +206 -0
  255. package/lib/experts/service.js +834 -0
  256. package/lib/experts/skill-package.d.ts +101 -0
  257. package/lib/experts/skill-package.js +380 -0
  258. package/lib/experts/skill-provider.d.ts +146 -0
  259. package/lib/experts/skill-provider.js +469 -0
  260. package/lib/experts/tools.d.ts +79 -0
  261. package/lib/experts/tools.js +724 -0
  262. package/lib/index.d.ts +94 -0
  263. package/lib/index.js +612 -0
  264. package/lib/knowledge-recall-log.d.ts +90 -0
  265. package/lib/knowledge-recall-log.js +176 -0
  266. package/lib/knowledge-recall.d.ts +443 -0
  267. package/lib/knowledge-recall.js +1274 -0
  268. package/lib/knowledge-tools.d.ts +16 -0
  269. package/lib/knowledge-tools.js +211 -0
  270. package/lib/personas/binding.d.ts +133 -0
  271. package/lib/personas/binding.js +199 -0
  272. package/lib/personas/library.d.ts +121 -0
  273. package/lib/personas/library.js +446 -0
  274. package/lib/personas/managed.d.ts +80 -0
  275. package/lib/personas/managed.js +279 -0
  276. package/lib/personas/parse.d.ts +45 -0
  277. package/lib/personas/parse.js +399 -0
  278. package/lib/personas/resources.d.ts +47 -0
  279. package/lib/personas/resources.js +262 -0
  280. package/lib/personas/roots.d.ts +27 -0
  281. package/lib/personas/roots.js +21 -0
  282. package/lib/reminder/adapter.d.ts +157 -0
  283. package/lib/reminder/adapter.js +221 -0
  284. package/lib/reminder/config.d.ts +45 -0
  285. package/lib/reminder/config.js +99 -0
  286. package/lib/reminder/draft-notify.d.ts +79 -0
  287. package/lib/reminder/draft-notify.js +283 -0
  288. package/lib/reminder/policy.d.ts +62 -0
  289. package/lib/reminder/policy.js +93 -0
  290. package/lib/reminder/scheduler.d.ts +75 -0
  291. package/lib/reminder/scheduler.js +273 -0
  292. package/lib/reminder/weixin-status.d.ts +13 -0
  293. package/lib/reminder/weixin-status.js +29 -0
  294. package/lib/review-memory.d.ts +119 -0
  295. package/lib/review-memory.js +376 -0
  296. package/lib/shared/contracts.d.ts +431 -0
  297. package/lib/shared/contracts.js +10 -0
  298. package/lib/shared/dailyPlanPolicy.d.ts +570 -0
  299. package/lib/shared/dailyPlanPolicy.js +909 -0
  300. package/lib/shared/expert.d.ts +308 -0
  301. package/lib/shared/expert.js +271 -0
  302. package/lib/shared/i18n.d.ts +57 -0
  303. package/lib/shared/i18n.js +802 -0
  304. package/lib/shared/knowledgeDraftOverwrite.d.ts +133 -0
  305. package/lib/shared/knowledgeDraftOverwrite.js +190 -0
  306. package/lib/shared/knowledgeRecall.d.ts +566 -0
  307. package/lib/shared/knowledgeRecall.js +792 -0
  308. package/lib/shared/persona.d.ts +205 -0
  309. package/lib/shared/persona.js +180 -0
  310. package/lib/shared/quickAttachments.d.ts +31 -0
  311. package/lib/shared/quickAttachments.js +34 -0
  312. package/lib/shared/quickWorkspaceRecent.d.ts +49 -0
  313. package/lib/shared/quickWorkspaceRecent.js +82 -0
  314. package/lib/shared/taskProgress.d.ts +109 -0
  315. package/lib/shared/taskProgress.js +134 -0
  316. package/lib/tools.d.ts +87 -0
  317. package/lib/tools.js +1234 -0
  318. package/lib/workspace-check.d.ts +27 -0
  319. package/lib/workspace-check.js +90 -0
  320. package/package.json +111 -4
  321. package/screenshot//344/273/212/346/227/245/344/273/273/345/212/241.PNG +0 -0
  322. package/screenshot//344/273/212/346/227/245/346/216/222/345/272/217.png +0 -0
  323. package/screenshot//344/273/273/345/212/241/345/210/227/350/241/250.png +0 -0
  324. package/screenshot//345/276/256/344/277/241/346/216/245/345/205/245.png +0 -0
  325. package/screenshot//345/277/253/351/200/237/345/275/225/345/205/245.png +0 -0
  326. package/screenshot//346/227/245/345/216/206/345/212/237/350/203/275.png +0 -0
  327. package/screenshot//347/202/271/345/255/220/345/212/237/350/203/275.png +0 -0
  328. package/screenshot//347/237/245/350/257/206/345/272/223.png +0 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Du Penglai
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 K-Dense, Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Claire Novotny LLC
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/NOTICE-fork.md ADDED
@@ -0,0 +1,19 @@
1
+ # NOTICE:二开 fork
2
+
3
+ 本仓库是 **yzz 的二开 fork**,基于:
4
+
5
+ - 上游项目:dsh-personal-workbench(https://github.com/Dely0/dsh-personal-workbench)
6
+ - 上游作者与版权:Copyright (c) 2026 Du Penglai
7
+ - 上游许可证:MIT(见 [LICENSE](./LICENSE),本 fork 原样保留,未做任何修改)
8
+ - fork 基线版本:1.17.2
9
+
10
+ ## 本 fork 的修改(自 2026-12-01 起)
11
+
12
+ 新增「项目」层:`projects` 表 + `tasks.project_id`(迁移 20)、项目 CRUD 的 API 与仓储、
13
+ 任务页项目页签与项目管理、新建/编辑任务时的项目选择、AI 工具的 `project` 参数与
14
+ `workbench_list_projects`。逐条清单见 [README.md](./README.md#本-fork-改了什么)。
15
+
16
+ ## 许可
17
+
18
+ 本 fork 依据 MIT 许可证同样以 MIT 授权发布。第三方组件的版权与许可见
19
+ [THIRD_PARTY_NOTICES.md](./THIRD_PARTY_NOTICES.md) 与仓库内的 `LICENSE-*` 文件。
package/README.md CHANGED
@@ -1,3 +1,260 @@
1
- # Temporary Holding Version
1
+ # dsh-personal-workbench
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ > **⚠️ 这是二开 fork(yzz)**:在上游 [Dely0/dsh-personal-workbench](https://github.com/Dely0/dsh-personal-workbench) 的基础上加了 **「项目」层**(任务可归属到一个项目,未归属的进「收集箱」)。许可证与上游一致(MIT),版权与出处见 [LICENSE](./LICENSE) 与 [NOTICE-fork.md](./NOTICE-fork.md)。fork 的差异清单见文末「本 fork 改了什么」。
4
+
5
+ [![npm version](https://img.shields.io/npm/v/@dely0/dsh-personal-workbench)](https://www.npmjs.com/package/@dely0/dsh-personal-workbench)
6
+ [![license](https://img.shields.io/npm/l/@dely0/dsh-personal-workbench)](./LICENSE)
7
+
8
+ **DSH(DeepSeek Harness)个人工作台插件**:把 DSH 变成「日历 + 层级任务 + AI 助手」的工作台。
9
+ 自然语言录入任务,AI 澄清 / 拆解 / 执行 / 复盘,数据全部留在本机。
10
+
11
+ [English](#english) · 简体中文
12
+
13
+ ![今日](screenshot/%E4%BB%8A%E6%97%A5%E4%BB%BB%E5%8A%A1.PNG)
14
+
15
+ | 日历 | 快速录入 | 知识库 |
16
+ |---|---|---|
17
+ | ![日历](screenshot/%E6%97%A5%E5%8E%86%E5%8A%9F%E8%83%BD.png) | ![快速录入](screenshot/%E5%BF%AB%E9%80%9F%E5%BD%95%E5%85%A5.png) | ![知识库](screenshot/%E7%9F%A5%E8%AF%86%E5%BA%93.png) |
18
+
19
+ ## 亮点
20
+
21
+ - 📅 **日历(周/月)+ 树状任务列表**;「今日」「日历」「任务」三视图,筛选排序可组合、保留父子层级
22
+ - ✨ **自然语言快速录入** → AI 澄清后生成任务;支持贴图与 PDF/DOCX 附件,不收的文件逐条给原因
23
+ - 🧠 **每个任务关联多个 AI 会话**:澄清 / 咨询 / 拆解 / 执行 / 复盘
24
+ - 🎭 **专家人格(角色库)**:三级来源(用户库 > 外部目录 > 内置 15 篇);会话前选定,正文按需加载、不进提示词
25
+ - ✅ **「AI 申请完成 → 用户验收」闭环**;进度是显式值,AI 不能靠进度把任务标完成(ADR 0003/0004)
26
+ - 🗓️ **每日计划 + 容量账本**:AI 排序提案 → 确认才生效;「今日投入结束」≠ 任务完成(ADR 0007)
27
+ - 🎯 **会话前选 Skill / 模型 / 角色**,提示词自动注入「加载这些技能」
28
+ - ⏰ **到期提醒**:页内横幅 + 系统通知;可选微信通道(需 `@xmanrui/dsh-im`)
29
+ - 🌐 **界面语言**:自动 / 中文 / English(设置 → 语言);顶栏、设置、角色库/专家、快速录入、任务表单、知识库与选择器已支持英文,深层说明文案增量迁移
30
+ - 🔒 **数据只在本机** `~/.dsh/workbench`,不上传任何服务器
31
+
32
+ ## 安装
33
+
34
+ 前置:**DSH ≥ `0.1.5-rc.1`**(Web 版)、Node `^22.19.0` 或 `>=24.0.0`、pnpm `>=11.7.0 <12`。
35
+
36
+ ```sh
37
+ dsh plugin --profile web add @dely0/dsh-personal-workbench
38
+ ```
39
+
40
+ > ⚠️ **装完必须重启 `dsh web`,只刷新浏览器不够**:客户端 bundle 由宿主在**启动时**读进内存,
41
+ > 刷新拿到的是旧代码。升级/回退同理。
42
+
43
+ 其它装法:
44
+
45
+ ```sh
46
+ # GitHub 源码
47
+ dsh plugin --profile web add git+https://github.com/Dely0/dsh-personal-workbench.git
48
+ # Release tarball
49
+ dsh plugin --profile web add file:/path/to/dsh-personal-workbench-<version>.tgz
50
+ ```
51
+
52
+ ## 快速上手
53
+
54
+ 1. 侧栏点「工作台」打开面板;
55
+ 2. 「快速录入」说一句话 → AI 澄清 → 确认建任务;
56
+ 3. 任务详情点「AI 执行」→ 在会话里干活 → 完成后回面板**验收**;
57
+ 4. 「今日」看待办与容量,需要时点「AI 智能排序」排今天的顺序;「日历」按天回看与排期。
58
+
59
+ ## 兼容性
60
+
61
+ | 项 | 要求 | 拿不到时 |
62
+ |---|---|---|
63
+ | **面板本体**(官方槽位 + `layout.selectPanel`) | **DSH `0.1.5-rc.1+`** | **面板整块不启动**并打一条可读日志(刻意不降级) |
64
+ | 服务端能力:任务/日历/知识库/点子、提醒、日报周报、`workbench_*` 工具 | `0.1.0-rc.6+` | — |
65
+ | 会话绑定 `sessions.retain()` | `0.1.7-rc.2+` | 旧宿主自动回落 `sessions.binding()` |
66
+ | Skill 选择器 | 宿主 `skills` 注册表 | 选择器隐藏 |
67
+ | 微信提醒 | 可选插件 `@xmanrui/dsh-im` | 静默降级为页内提醒 + 系统通知 |
68
+
69
+ **最低支持版本是 `0.1.5-rc.1`,这是硬边界。** 为什么低于它选择"明确不启动"而不是降级、
70
+ 以及 0.2.0 引入的插件兼容性预检(peer 区间为什么写成并列区间):
71
+ 见 [`docs/releases/v1.15.8.md`](docs/releases/v1.15.8.md) 与
72
+ [`docs/design/2026-09-13-client-architecture-official-only.md`](docs/design/2026-09-13-client-architecture-official-only.md)。
73
+
74
+ ## 开发
75
+
76
+ ```sh
77
+ git clone https://github.com/Dely0/dsh-personal-workbench.git
78
+ cd dsh-personal-workbench
79
+ pnpm install
80
+ pnpm check # 类型检查 + 构建
81
+ pnpm test # 全量回归(跑构建产物)
82
+ pnpm build && pnpm dev:install # 装盘到本机 profile(装完重启 dsh web)
83
+ ```
84
+
85
+ | 文档 | 用途 |
86
+ |---|---|
87
+ | [`.dsh/skills/dsh-plugin-change/`](.dsh/skills/dsh-plugin-change/SKILL.md) | **改代码前先读**:架构硬约束、本项目的编码规范与回归防线 |
88
+ | [`.dsh/skills/dsh-release/`](.dsh/skills/dsh-release/SKILL.md) | **发版前先读**:公开发布的硬门禁与命令序列(范围表、变异探针、PII 两面、tag/npm/Release、**发布成功判据**) |
89
+ | [`docs/release-checklist.md`](docs/release-checklist.md) | 发版前自检清单(可勾选版) |
90
+ | [`scripts/release-preflight.mjs`](scripts/release-preflight.mjs) | **发布门禁一键跑**:typecheck → 单测 → 全探针(每步 build)→ PII 两面 → 版本/文档;`--phase post` 做 tarball 与 sha1 对账、用户视角安装、Release 复核 |
91
+ | [`scripts/dev-verify.mjs`](scripts/dev-verify.mjs) | 研发版本验收链:构建 → 装盘 → 隔离实例重启 → 浏览器套件 → 证据包 |
92
+ | [`docs/issues/`](docs/issues/) | 滚动维护的已知问题与待办 |
93
+ | [`docs/adr/`](docs/adr/) | 已冻结的口径决策(容量、进度、角色、验收链、每日投入) |
94
+
95
+ ## 版本历史
96
+
97
+ | 版本 | 要点 |
98
+ |---|---|
99
+ | **1.17.2** | **两处「点开就废」的可用性修复**:① **模型选择器一个模型都列不出来**([issue #19](https://github.com/Dely0/dsh-personal-workbench/issues/19) / PR [#20](https://github.com/Dely0/dsh-personal-workbench/pull/20),[@SnowNight777](https://github.com/SnowNight777))—— DSH 0.2.1-rc.3 上宿主 `directoryFor(sessionId)` 先查 `sessions.scope()`,scope 只在有人 `retain()` 之后才物化,而 `ModelPicker` 自己挑会话却从不 retain ⇒ 先报 `ui-model-selection: session "…" resolved no scope`,补掉后首次建目录再报 `cannot get property "remote.session" without inject`(cordis traceable 服务把服务实例 `ctx` 影射成调用方 ctx)。本版取目录前按契约 retain(引用计数、卸载/切会话释放)、挑会话口径收敛到 `pickDirectorySessionId()`、调用宿主服务改走 `ctx.inject(['remote.session'])` 的子 ctx(可选依赖,不把没装该 provider 的机器整块面板 pending),重试判据只认 `resolved no scope` / `resolved no binding`。② **「AI 执行」弹窗拿不到「开始」**([issue #17](https://github.com/Dely0/dsh-personal-workbench/issues/17) / PR [#21](https://github.com/Dely0/dsh-personal-workbench/pull/21),[@WUWAN01](https://github.com/WUWAN01) 报告)—— `.wb-modal` 无高度上限、操作栏走普通文档流,1080p/150% 下弹窗高于视口、底部「取消/开始」被推到屏幕外且整页滚动救不回来(`task_sessions` 0 行);本版加 `max-height:min(88vh,900px)`、`overflow-y:auto`、`overscroll-behavior:contain`,底栏改 `position:sticky` 并补图层底色,附「缺一条规则就红」的 CSS 判据与实机双相位探针 `scripts/repro/repro-issue17-modal-overflow.mjs`。同版合入 i18n 深度翻译二轮([PR #18](https://github.com/Dely0/dsh-personal-workbench/pull/18),[@Chewbacca96](https://github.com/Chewbacca96))。详见 [docs/releases/v1.17.2.md](docs/releases/v1.17.2.md) |
100
+ | **1.17.1** | **修复 issue #15:点子页「新建 / 重命名文件夹」点了没反应**(v1.16.3 客户端拆分的残留)—— 五个「新建文件夹」入口与卡片 hover 的 ✎ 从 1.16.3 起只改 `folderForm` 状态、**没有任何组件读它**,于是没弹窗、没请求、没报错;本版按拆分前的 DOM 恢复文件夹弹窗(新建/重命名两模式、Enter 提交、Esc/遮罩取消、空标题禁用),并让 `Modal` 优先聚焦 `[data-autofocus]` 主字段(否则焦点落在关闭按钮上,打字没反应)。同版新增 `test/ideasFolderForm.test.mjs`(hook 暴露的状态/动作必须有渲染层读者,防"只写不读"静默丢失回归),并修掉验收链在英文界面下的两处假红(「返回对话」定位改共享表达式、expert 真实模型跳过显式登记)。详见 [`docs/releases/v1.17.1.md`](docs/releases/v1.17.1.md) |
101
+ | **1.17.0** | **角色库/专家 UI 可用性 + 英文界面(i18n)+ 宿主浮层挂载**:修掉专家草稿预览一字一行/横向溢出、设置页「继续修改」后弹窗不关、「查看草稿」被设置弹窗遮挡、界面露出 `**` 与角色来源标签重复;设置新增**语言**(自动/中文/English),顶栏、设置、角色库/专家、快速录入、任务表单与知识库等顶层界面支持英文,语言保存后重启仍保留;浮层改为优先挂宿主 `[data-shell-overlay]` 层并补 `pointer-events`,修复桌面端设置弹窗与模型列表被面板盖住([issue #14](https://github.com/Dely0/dsh-personal-workbench/issues/14))。英文界面见 [issue #12](https://github.com/Dely0/dsh-personal-workbench/issues/12)。详见 [`docs/releases/v1.17.0.md`](docs/releases/v1.17.0.md) |
102
+ | **1.16.5** | **合入外部贡献:工作台样式节点丢失后的自愈**([issue #9](https://github.com/Dely0/dsh-personal-workbench/issues/9) / [PR #10](https://github.com/Dely0/dsh-personal-workbench/pull/10),[@SnowNight777](https://github.com/SnowNight777))—— 插件活动期间 `style[data-dsh-personal-workbench-style]` 被删掉后约 **600ms** 内自动重建,关闭态面板不再"无样式弹出并覆盖界面";观察者挂在**插件实例**上(不是模块级),`cleanup()` 先 `disposed = true` 再 `disconnect()`。同版修掉 **main 连续 33 次红的 CI**:`test/db.test.mjs` 那条"同链计划项"断言的**场景**从 2026-10-01 起就写错了、且 `finally` 里的清理异常会顶替断言失败(正是它被长期读成"Windows EPERM 假失败"的原因),CI run **#84** 双绿。详见 [`docs/releases/v1.16.5.md`](docs/releases/v1.16.5.md) |
103
+ | **1.16.4** | **「排入今日」的父子口径定案**:计划项必须是**可执行叶子**,在**父任务**上点一次 = 按树序**展开它下面所有未完成叶子**(各自带自己的投入),父任务自己不是计划项、在「计划」页签作**分组行**(「已排 N / 共 M 个子任务 · 合计 X 分钟」);候选池只收叶子、AI 侧口径同步「只排可执行叶子」(含父任务的提案整份被拒)。同版修掉「**清除今日计划不刷新**」与两处验收链套件假红。口径见 [`docs/adr/0010-plan-items-are-executable-leaves.md`](docs/adr/0010-plan-items-are-executable-leaves.md),详见 [`docs/releases/v1.16.4.md`](docs/releases/v1.16.4.md) |
104
+ | **1.16.3** | **客户端入口拆分**:`src/client/index.tsx` **5725 → 1972 行**、`WorkbenchApp` **4197 → 631 行**;117 个 state 按域收进 16 个 hook,五个视图与任务详情区各自成组件(`hooks/` + `views/` + `app/` 装配四段);ADR-0008 结构硬门(体内 `useState`/`api`/`fetch`/定时器 = 0、单个顶层块 ≤80 行)落成扫描判据。**纯结构重构、零行为变化**。详见 [`docs/releases/v1.16.3.md`](docs/releases/v1.16.3.md) |
105
+ | **1.16.2** | 日期面板补**「逾期」/「未排期」两个任务页签**(无截止、没排期、非进行中的任务终于有归宿,「未排期」= 补集:三页签并集恰好是全部未完成)+ 这两个页签的行内**「排入今日」**;统计卡「逾期」口径统一到**当日 00:00**(与页签同一把尺子)。详见 [`docs/releases/v1.16.2.md`](docs/releases/v1.16.2.md) |
106
+ | 1.16.1 | AI 会话工作区**双模式**(已有工作区下拉 + 文件夹弹框);「今日」与「日历」收敛为**同一个日期面板**(计划/已完成/报告三页签,树口径=当日到期 ∪ 当日计划项 ∪ 进行中,逐条标来源);构建期类型源对齐 DSH `0.2.0-rc.2`。详见 [`docs/releases/v1.16.1.md`](docs/releases/v1.16.1.md) |
107
+ | 1.16.0 | 任务进度(显式值、AI 不能靠进度完成)+ 专家人格角色库(三级来源 / 15 篇内置)+ 研发版本验收链。⚠️ schema 18 → 19。详见 [`docs/releases/v1.16.0.md`](docs/releases/v1.16.0.md) |
108
+ | 1.15.8 | 适配 DSH `0.2.0-rc.1` 的插件兼容性预检(peer 改**并列区间**,下界不动) |
109
+ | 1.15.7 | 快速录入模型选择死锁 + rc.2 系统通知失败被吞(两处 P0) |
110
+ | 1.15.6 | 补齐 `0.1.7-rc.2` 上「当前会话」读取的三处静默 `undefined` |
111
+ | 1.15.5 | 适配 `0.1.7-rc.2`:会话绑定/打开、标题栏让位、侧栏量宽、工作区静默丢件 |
112
+ | 1.15.3 | 合入社区三项修复(提醒漏建 / 投递目标缓存 / 复用会话陈旧引用) |
113
+ | 1.15.2 | 模型浮层遮挡、默认工作区被任务污染、容量账本透明化、知识库 Tab 化、知识自动召回 |
114
+ | 1.15.1 | 任务资料夹改 `<任务ID>-<标题片段>`、快录附件(图片/PDF/DOCX)、模型选择器、`/workbench` 命令 |
115
+ | 1.14.57 | 架构重构:面板可见性唯一权威源、删除 DOM 降级腿、能力门槛「明确不启动」 |
116
+ | 更早 | 完整发行说明见 [`docs/releases/`](docs/releases/) |
117
+
118
+ ## 路线图
119
+
120
+ - [ ] 客户端 `WorkbenchApp` 拆分(施工图待重写)
121
+ - [ ] 任务拖拽排序、数据导入导出
122
+ - [ ] 定时自动化、多端同步(各自单独立项)
123
+
124
+ ## 致谢
125
+
126
+ - **[@Guojing6](https://github.com/Guojing6)** —— v1.15.1 的多项能力源自其 fork
127
+ [`Guojing6/dsh-workbench`](https://github.com/Guojing6/dsh-workbench):任务资料夹改用任务 ID、
128
+ 快录附件、模型选择器、`/workbench` 斜杠命令、请求围栏加固;并定位了两个我们一直带着的真 bug。
129
+ - **[@SnowNight777](https://github.com/SnowNight777)** —— v1.15.3 的三项修复全部来自其报告
130
+ (issue [#4](https://github.com/Dely0/dsh-personal-workbench/issues/4) /
131
+ [#5](https://github.com/Dely0/dsh-personal-workbench/issues/5) /
132
+ [#7](https://github.com/Dely0/dsh-personal-workbench/issues/7) 与 PR
133
+ [#6](https://github.com/Dely0/dsh-personal-workbench/pull/6) /
134
+ [#8](https://github.com/Dely0/dsh-personal-workbench/pull/8));**v1.16.5 的工作台样式自愈**同样来自其
135
+ issue [#9](https://github.com/Dely0/dsh-personal-workbench/issues/9)(含故障注入最小复现与只读状态采集脚本)
136
+ 与 PR [#10](https://github.com/Dely0/dsh-personal-workbench/pull/10)(样式节点丢失后的自动恢复 + 生命周期清理 + 7 例回归)。
137
+ - **[@Chewbacca96](https://github.com/Chewbacca96)** —— v1.17.0 的 UI localization(issue [#12](https://github.com/Dely0/dsh-personal-workbench/issues/12))需求与边界定义。
138
+ - **[@SnowNight777](https://github.com/SnowNight777)** —— v1.17.0 的宿主浮层挂载修复(issue [#14](https://github.com/Dely0/dsh-personal-workbench/issues/14))提供了真实测量、`elementFromPoint` 证据与可直接落地的方案;此前 v1.15.3 / v1.16.5 的贡献见下。
139
+ - [@tujunwenjie](https://github.com/tujunwenjie)、[@lhmhz](https://github.com/lhmhz) —— issue 诊断报告。
140
+ - **[@SnowNight777](https://github.com/SnowNight777)** —— **v1.17.2 的模型选择器修复**(issue
141
+ [#19](https://github.com/Dely0/dsh-personal-workbench/issues/19) / PR
142
+ [#20](https://github.com/Dely0/dsh-personal-workbench/pull/20)):报告自带两条根因(`retain()` 之后 scope 才物化;
143
+ cordis traceable 服务把服务实例 `ctx` 影射成调用方 ctx,于是宿主里那句 `this.ctx.remote.session` 要求调用方 inject),
144
+ 并先划清「不能把可选 provider 写进 `inject`」的边界;PR 在 DSH 0.2.1-rc.3 桌面端实测通过。
145
+ 此前 v1.15.3 / v1.16.5 / v1.17.0 的贡献见下。
146
+ - **[@WUWAN01](https://github.com/WUWAN01)** —— **v1.17.2 的「AI 执行」弹窗视口缺陷**(issue
147
+ [#17](https://github.com/Dely0/dsh-personal-workbench/issues/17)):报告含完整 DOM 结构、`lib/client.js:155` 的
148
+ `.wb-modal-mask` 规则位置、`task_sessions` 0 行证据与可直接落地的修补建议(高度上限 / 内部滚动 / sticky 底栏),
149
+ 并指出 `lib/client/styles.js` 运行时并未被加载。
150
+ - **[@Chewbacca96](https://github.com/Chewbacca96)** —— v1.17.2 的 **i18n 深度翻译二轮**(PR
151
+ [#18](https://github.com/Dely0/dsh-personal-workbench/pull/18)):面板入口、草稿横幅、设置、容量规则、任务详情与点子 Tab。
152
+ - **内置角色库**含两个 MIT 上游(`novotnyllc/dotnet-artisan`、`K-Dense-AI/scientific-agents`)的领域角色,
153
+ 完整署名与「我们改了什么」见 [`THIRD_PARTY_NOTICES.md`](./THIRD_PARTY_NOTICES.md)。
154
+
155
+ 逐项来源与许可证见 [`THIRD_PARTY_NOTICES.md`](./THIRD_PARTY_NOTICES.md)。
156
+
157
+ ## 免责声明
158
+
159
+ 社区项目,与 DeepSeek 官方无关,不提供任何担保。安装即表示你信任该代码会以你的 DSH 用户权限在本机运行;执行类 AI 操作可能修改工作区文件、消耗 API 额度,请先阅读代码并谨慎使用。
160
+
161
+ ## License
162
+
163
+ [MIT](./LICENSE)。部分 DOM 挂载模式与客户端构建包装参考了 `dsh-task-board`(BSD-3-Clause)与 `dsh-genui`(MIT),详见 [`THIRD_PARTY_NOTICES.md`](./THIRD_PARTY_NOTICES.md)。
164
+
165
+ ---
166
+
167
+ # English
168
+
169
+ **A personal workbench plugin for [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) (DSH)** —
170
+ turn DSH into a calendar + hierarchical task list + AI assistant workbench. All data stays on your machine.
171
+
172
+ ## Highlights
173
+
174
+ - 📅 Calendar (week/month) + tree task list; Today / Calendar / Tasks views with combinable filters that keep parent-child structure
175
+ - ✨ Natural-language quick capture → AI clarification → task created; images and PDF/DOCX attachments supported
176
+ - 🧠 Multiple AI sessions per task: clarify / consult / breakdown / execute / review
177
+ - 🎭 **Personas**: three-tier library (user > external dir > 15 built-ins), picked per session, loaded on demand (never inlined into the prompt)
178
+ - ✅ "AI requests completion → you accept" loop; progress is an explicit value the AI cannot use to complete a task
179
+ - 🗓️ Daily plan + capacity ledger: AI proposes an order, only your confirmation applies it; "done for today" ≠ task completed
180
+ - 🎯 Pick Skill / model / persona before each AI session; prompt gets a "load these skills" instruction
181
+ - ⏰ Due reminders (in-panel banner + system notification), optional WeChat channel via `@xmanrui/dsh-im`
182
+ - 🌐 **UI language**: auto / 中文 / English (Settings → Language); top-level chrome, settings, personas/experts, quick capture, task forms, knowledge view and pickers are translated, with deeper copy migrated incrementally
183
+ - 🔒 Local-only storage at `~/.dsh/workbench`
184
+
185
+ ## Install
186
+
187
+ Requires **DSH ≥ `0.1.5-rc.1`** (web), Node `^22.19.0` or `>=24.0.0`, pnpm `>=11.7.0 <12`.
188
+
189
+ ```sh
190
+ dsh plugin --profile web add @dely0/dsh-personal-workbench
191
+ # or: dsh plugin --profile web add git+https://github.com/Dely0/dsh-personal-workbench.git
192
+ ```
193
+
194
+ > ⚠️ **You must restart `dsh web` after installing** — the client bundle is read into memory at host startup, so a browser refresh keeps serving the old code.
195
+
196
+ ## Compatibility
197
+
198
+ | | Requirement | If missing |
199
+ |---|---|---|
200
+ | **Panel** (official slots + `layout.selectPanel`) | **DSH `0.1.5-rc.1+`** | Panel **refuses to start** and logs a readable reason (deliberately not degraded) |
201
+ | Server-side features (tasks, reminders, reports, `workbench_*` tools) | `0.1.0-rc.6+` | — |
202
+ | Session binding via `sessions.retain()` | `0.1.7-rc.2+` | Falls back to `sessions.binding()` on older hosts |
203
+ | WeChat reminders | optional `@xmanrui/dsh-im` | Falls back to in-panel + system notifications |
204
+
205
+ ## Development
206
+
207
+ ```sh
208
+ pnpm install && pnpm check && pnpm test
209
+ ```
210
+
211
+ Read [`.dsh/skills/dsh-plugin-change/`](.dsh/skills/dsh-plugin-change/SKILL.md) before changing code and
212
+ [`.dsh/skills/dsh-release/`](.dsh/skills/dsh-release/SKILL.md) before publishing; a tick-box version of the
213
+ release checklist lives in [`docs/release-checklist.md`](docs/release-checklist.md), and the automated
214
+ verification chain in [`scripts/dev-verify.mjs`](scripts/dev-verify.mjs).
215
+
216
+ ## Credits & License
217
+
218
+ Community project, not affiliated with DeepSeek; provided as-is. **v1.17.2** ships fixes and translations
219
+ from [@SnowNight777](https://github.com/SnowNight777) (model picker, #19/#20),
220
+ [@WUWAN01](https://github.com/WUWAN01) (AI-run modal viewport, #17) and
221
+ [@Chewbacca96](https://github.com/Chewbacca96) (deeper i18n pass, #18). External contributions and bundled
222
+ MIT-licensed persona sources are listed in [`THIRD_PARTY_NOTICES.md`](./THIRD_PARTY_NOTICES.md).
223
+ Licensed under [MIT](./LICENSE).
224
+
225
+ ---
226
+
227
+ ## 本 fork 改了什么
228
+
229
+ 只加一件事:**项目**。其余能力与上游 1.17.2 一致。
230
+
231
+ - 数据(迁移 20):新表 `projects`;`tasks.project_id`(`NULL` = 收集箱)。存量任务**不回填**,一律进收集箱。
232
+ - 项目归属:一条任务最多一个项目;**子任务跟随父任务**(跨项目子任务会被拒),父任务换项目时整棵子树级联。
233
+ - 界面:「任务」页顶部多了项目页签(全部 / 收集箱 / 各项目,带条数徽标);`+ 项目` / `重命名` / `删除项目`(删除时任务移到收集箱,**不删任务**);新建任务弹窗与任务详情都能选项目。
234
+ - AI:`workbench_submit_task` / `workbench_update_task` 新增 `project` 参数(按**项目名**精确匹配,查不到会报错并列出现有项目);新增只读工具 `workbench_list_projects`。建/改名/删项目只在界面做,AI 不建项目。
235
+ - API:`/api/workbench/projects`(GET/POST/PATCH/DELETE)、任务列表支持 `?project_id=`、bootstrap 下发 `projects`。
236
+
237
+ ### 怎么装(本机实际做法)
238
+
239
+ 它与官方 `@dely0/dsh-personal-workbench` **不能共存**(工具名 / 路由前缀 / service id 全撞),只能替换。两个包同版本号,装的只有一套。
240
+
241
+ ```bash
242
+ # 1) 备份(数据库 + 官方插件目录)
243
+ mkdir -p ~/.dsh/workbench/backup-$(date +%Y%m%d)
244
+ cp ~/.dsh/workbench/workbench.db* ~/.dsh/workbench/backup-*/ 2>/dev/null
245
+ cp -R ~/.dsh/profiles/desktop/node_modules/@dely0/dsh-personal-workbench \
246
+ ~/.dsh/workbench/backup-$(date +%Y%m%d)/plugin-official
247
+
248
+ # 2) 构建本仓库
249
+ pnpm install && pnpm build
250
+
251
+ # 3) 覆盖到 profile(`dsh plugin add <本地路径>` 因 pnpm store 版本不兼容会报
252
+ # ERR_PNPM_UNEXPECTED_STORE,所以直接覆盖构建产物;版本号保持 1.17.2 以免宿主校验不一致)
253
+ rsync -a --delete lib/ ~/.dsh/profiles/desktop/node_modules/@dely0/dsh-personal-workbench/lib/
254
+ cp package.json cordis.patch.yml LICENSE* NOTICE-fork.md README.md \
255
+ ~/.dsh/profiles/desktop/node_modules/@dely0/dsh-personal-workbench/
256
+
257
+ # 4) 重启 DSH(服务端代码在宿主启动时加载;重启时数据库自动迁移到 20)
258
+ ```
259
+
260
+ 回滚:把 `plugin-official/` 拷回原路径,再用备份的 `workbench.db*` 覆盖回去。
@@ -0,0 +1,212 @@
1
+ # Third-Party Notices
2
+
3
+ This project contains code patterns adapted from the following open-source projects.
4
+
5
+ ## Bundled expert personas (`assets/personas/`)
6
+
7
+ Nine of the built-in expert personas under `assets/personas/engineering/` and
8
+ `assets/personas/testing/` come from the company-internal `公司内部角色库` repository,
9
+ which vendored and (for the RF batch) re-wrote material from two upstream MIT projects.
10
+ Both upstreams permit redistribution and modification; the MIT condition
11
+ — keep the copyright notice and the full license text in copies — is satisfied by this
12
+ notice plus the two `LICENSE-*` files in the repository root.
13
+
14
+ The personas are **read-only data**, not code: the plugin parses them and never writes
15
+ to any persona source. The three upstreams and what was done to each are listed below.
16
+
17
+ ### 1. novotnyllc/dotnet-artisan
18
+
19
+ - Repository: https://github.com/novotnyllc/dotnet-artisan
20
+ - Copyright (c) 2026 Claire Novotny LLC
21
+ - License: MIT — full text in [`LICENSE-novotnyllc-dotnet-artisan`](LICENSE-novotnyllc-dotnet-artisan)
22
+ - Commit at vendoring time: `3db3ae6381fb665b5b4772335a4f378c7ed07e92` (2026-08-17)
23
+ - Upstream paths used: `plugins/dotnet-artisan/agents/` (top-level agent personas) and the
24
+ `dotnet-architect` / `dotnet-blazor-specialist` / `dotnet-aspnetcore-specialist` /
25
+ `dotnet-code-review-agent` / `dotnet-performance-analyst` /
26
+ `dotnet-async-performance-specialist` / `dotnet-csharp-concurrency-specialist` personas
27
+
28
+ Bundled personas derived from this upstream:
29
+
30
+ | Bundled file | Persona |
31
+ |---|---|
32
+ | `assets/personas/engineering/高级-dotnet-blazor-工程师.md` | 高级 .NET / Blazor 工程师 |
33
+ | `assets/personas/engineering/dotnet-代码审查官.md` | .NET 代码审查官 |
34
+ | `assets/personas/engineering/dotnet-性能并发诊断师.md` | .NET 性能与并发诊断师 |
35
+
36
+ Modifications: composed/merged from the upstream personas listed above, condensed, and
37
+ rendered into the Chinese `# 名称` + metadata-blockquote + `## 身份` form that this
38
+ plugin's parser consumes. The vendoring step additionally dropped the upstream
39
+ `license:` frontmatter line (this plugin's parser has a closed key whitelist, so the line
40
+ would have been silently ignored and would not have carried the attribution obligation).
41
+ No upstream code is shipped.
42
+
43
+ ### 2. K-Dense-AI/scientific-agents
44
+
45
+ - Repository: https://github.com/K-Dense-AI/scientific-agents
46
+ - Copyright (c) 2026 K-Dense, Inc.
47
+ - License: MIT — full text in [`LICENSE-K-Dense-scientific-agents`](LICENSE-K-Dense-scientific-agents)
48
+ - Commit at vendoring time: `acbd93d` (`--depth 1`)
49
+ - Upstream paths used: `<slug>/AGENTS.md`
50
+
51
+ Bundled personas derived from this upstream:
52
+
53
+ | Bundled file | Persona | Upstream slug |
54
+ |---|---|---|
55
+ | `assets/personas/engineering/rf-天线测量专家.md` | 天线测量专家 | `antenna-engineer` |
56
+ | `assets/personas/engineering/rf-电磁仿真与暗室测量.md` | 电磁仿真与暗室测量专家 | `electromagnetics-engineer` |
57
+ | `assets/personas/engineering/rf-微波电路与vna测量.md` | 微波电路与 VNA 测量专家 | `rf-microwave-engineer` |
58
+ | `assets/personas/engineering/rf-仪表回路与测量链.md` | 仪表回路与测量链专家 | `instrumentation-engineer` |
59
+ | `assets/personas/testing/rf-测量不确定度预算.md` | 测量不确定度预算专家 | `metrology-scientist` (split, half 1) |
60
+ | `assets/personas/testing/rf-计量溯源与校准.md` | 计量溯源与校准专家 | `metrology-scientist` (split, half 2) |
61
+
62
+ Modifications: **re-written, not copied.** For each entry the upstream English persona was
63
+ read, its decision-relevant content (troubleshooting tables, Definition-of-Done lists,
64
+ instrument/file-format inventories, rigour checkpoints) was extracted, and it was
65
+ re-authored in Chinese into the `身份 / 核心使命 / 第一原理 / 红线 / 工作纪律 / 输出格式`
66
+ structure, capped at 20000 characters. The upstream English text is deliberately **not**
67
+ bundled. `metrology-scientist` exceeded the cap even after compression, so it was split
68
+ into two personas (uncertainty budget vs. traceability/calibration). No upstream code is
69
+ shipped.
70
+
71
+ ### 3. 公司内部角色库 (internal, the vendoring intermediary)
72
+
73
+ - The nine files above arrived here through the company-internal `公司内部角色库` repository
74
+ (`personas/dotnet/`, `personas/rf/`), whose `vendor/UPSTREAM.md` is the authoritative
75
+ provenance record for both upstreams. File names were **not** changed on import, so the
76
+ per-persona sections above remain directly traceable; only the directory layout differs
77
+ (`dotnet/` + `rf/` → `engineering/` + `testing/`, matching the persona `分类` declared
78
+ in each file's metadata block).
79
+
80
+ The remaining built-in personas (`反向验证者`, `只读审查者`, `实现者`, `方案设计者`, `调研者`,
81
+ `测试工程师`) are this project's own work and are not covered by this section.
82
+
83
+ ---
84
+
85
+ ## dsh-task-board (part of dsh-web-ui)
86
+
87
+ - Repository: https://github.com/zhu1090093659/dsh-web-ui
88
+ - Package: @linxin666/dsh-client-ui-task-board
89
+ - Copyright (c) 2026, zhu1090093659
90
+ - License: BSD 3-Clause
91
+
92
+ Adapted material: the DOM-level sidebar entry injection and center-column takeover
93
+ pattern (selectors, MutationObserver self-healing, cross-panel activation protocol).
94
+ The adapted code has been rewritten for this plugin, but the structural approach
95
+ is derived from dsh-task-board.
96
+
97
+ BSD 3-Clause License text:
98
+
99
+ Copyright (c) 2026, zhu1090093659
100
+ All rights reserved.
101
+
102
+ Redistribution and use in source and binary forms, with or without
103
+ modification, are permitted provided that the following conditions are met:
104
+
105
+ 1. Redistributions of source code must retain the above copyright notice, this
106
+ list of conditions and the following disclaimer.
107
+
108
+ 2. Redistributions in binary form must reproduce the above copyright notice,
109
+ this list of conditions and the following disclaimer in the documentation
110
+ and/or other materials provided with the distribution.
111
+
112
+ 3. Neither the name of the copyright holder nor the names of its
113
+ contributors may be used to endorse or promote products derived from
114
+ this software without specific prior written permission.
115
+
116
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
117
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
118
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
119
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
120
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
121
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
122
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
123
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
124
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
125
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
126
+
127
+ ## dsh-genui
128
+
129
+ - Repository: https://github.com/omdsh-dev/dsh-genui
130
+ - Copyright (c) 2026 dsh-external
131
+ - License: MIT
132
+
133
+ Adapted material: the tsdown build configuration pattern that emits the DSH
134
+ `window.__ModuleLoader__.load` client bundle wrapper. The build config has been
135
+ rewritten for this plugin, but the wrapper approach derives from dsh-genui.
136
+ MIT license text is available at the repository link above.
137
+
138
+ ## Guojing6/dsh-workbench (fork of this project)
139
+
140
+ - Repository: https://github.com/Guojing6/dsh-workbench
141
+ - Upstream: a fork of Dely0/dsh-personal-workbench
142
+ - License: MIT (same as this project)
143
+
144
+ Adapted material: the design and implementation approach for **task folders keyed by task id**
145
+ (including pre-allocating the task id at clarification time so the folder name and the task id
146
+ are the same thing), **quick-intake attachments** (PDF/DOCX text extraction, and images through
147
+ the host's multimodal `PromptContentPart` pipeline), the **quick-intake model picker**, the
148
+ **`/workbench` slash command**, and **consolidating the duplicated request-fence helpers**
149
+ (loopback check / JSON response / body reader). Also credited for locating two real bugs this
150
+ project had been carrying: `ws.items[0]` picking an unrelated workspace when a task had no path,
151
+ and building the clarification folder name out of the user's raw sentence.
152
+
153
+ Nothing was copied verbatim: that branch is based on v1.10.1, and this repository has since
154
+ been restructured (`src/api/routes.ts` → `src/api/routes/*`, `src/db/repo.ts` → `src/db/repo/*`,
155
+ client split into `src/client/components/*`), so every item was re-implemented against the
156
+ current modules — with deliberate differences, e.g. an added legacy-path compatibility rule
157
+ for task folders, and a rewritten decompression guard in the attachment parser.
158
+
159
+ ## SnowNight777/dsh-personal-workbench (contributor, v1.15.3 / v1.16.5)
160
+
161
+ - Contributor: https://github.com/SnowNight777
162
+ - Reports: issues #4 / #5 / #7 / #9 · Pull requests #6 / #8 / #10
163
+ - License: MIT (same as this project) — the changes were accepted as upstream contributions
164
+
165
+ Accepted contributions (v1.15.3). These are **contributed changes, not adapted third-party
166
+ material** — they are listed here so every piece of externally-authored code in this repository
167
+ is traceable from one place:
168
+
169
+ - **Task-reminder creation for three missing paths.** `addReminder` had only two call sites
170
+ (the parent task at draft confirmation, and the manual `POST /tasks/:id/reminders` route), so
171
+ subtasks produced by `walkChildren`, tasks created through `POST /api/workbench/tasks`, and
172
+ tasks whose due date was set later via `PATCH /api/workbench/tasks/:id` never got a reminder
173
+ row — and the scheduler only reads `task_reminders`, so those tasks could never fire.
174
+ The contributed patch adds the same "explicit offset → type default → priority default"
175
+ resolution used for the parent task, and guards the `PATCH` path against duplicates.
176
+ - **Delivery-target cache.** `GET /api/workbench/reminders/channel` now resolves the target
177
+ before reporting status, so a bound target is no longer mis-reported as "not configured"
178
+ after a restart.
179
+ - **Reusable-session availability predicate.** New pure module `src/client/aiSessionReuse.ts`
180
+ (`isAiSessionReusable`) plus table-driven tests, applied to five places that previously opened
181
+ a stored `session_id` without checking whether it was still usable (registry reuse, the report
182
+ row's own `sessionId` fallback, "enter review session", the task-detail session tab, and the
183
+ draft banner). When the predicate does not hold, those paths fall back to creating a new
184
+ session or surface an explicit notice instead of failing silently.
185
+
186
+ Accepted contributions (v1.16.5):
187
+
188
+ - **Workbench stylesheet recovery after removal** (issue #9, pull request #10). The workbench injects
189
+ a single `<style data-dsh-personal-workbench-style>` element; when that element disappeared while the
190
+ plugin was loaded, the panel's computed styles fell back to `position: static; display: block`, so a
191
+ *closed* panel was drawn on top of the interface. The contributed fix adds an instance-scoped
192
+ `MutationObserver` on `document.head` (`childList`) that calls `ensureStyle()` to rebuild the element,
193
+ and folds it into the plugin lifecycle: `cleanup()` sets `disposed = true` **before** calling
194
+ `styleObserver.disconnect()`, and `disposePreviousInstance()` covers the "previous instance left an
195
+ observer armed" path. The first revision's module-level `styleHealArmed` flag was removed by the author
196
+ in `049e0ae` — recovery belongs to the instance, not the module. Seven regression cases land in
197
+ `test/styleRecovery.test.mjs` (repeated removal restores a single node; cleanup is idempotent; pending
198
+ notifications cannot restore after cleanup; re-apply arms a fresh observer; a disposed module cannot
199
+ restore its old CSS; unrelated head changes do not duplicate CSS; previous-instance cleanup precedes
200
+ observer registration). The author states explicitly that the *root cause* of the natural removal was
201
+ never captured — this is defensive self-healing, not a root-cause fix.
202
+
203
+ No maintainer revision on top of this contribution: the three original commits (`9cf7a37` / `a7d927a` /
204
+ `049e0ae`) were merged unchanged through a real merge commit (`848ad0b`), so GitHub shows the pull request
205
+ as merged and the author's name stays on the commits. The CI repair carried by the same release
206
+ (`05fea07` / `7980493`, `test/db.test.mjs`) is maintainer-authored and is **not** part of this contribution.
207
+
208
+ One maintainer revision on top of the v1.15.3 contribution (`c78416e`): the last branch of
209
+ `isTargetConfigured` was tightened from `return adapter.available()` to `return false`, so users
210
+ who never bound a delivery target keep the previous "do nothing" behaviour instead of repeatedly
211
+ attempting and failing delivery. See [`docs/releases/v1.15.3.md`](docs/releases/v1.15.3.md) §3.
212
+