dsh-learn-space 0.0.0-stage → 1.1.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.
- package/LICENSE +21 -0
- package/README.md +46 -2
- package/assets/mermaid.min.js +2811 -0
- package/client.js +1740 -0
- package/cordis.patch.yml +8 -0
- package/icon.svg +8 -0
- package/index.js +1226 -0
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +56 -3
- package/quiz.js +218 -0
- package/skills/quiz/SKILL.md +37 -0
- package/skills/teach/SKILL.md +165 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Liang Dong
|
|
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/README.md
CHANGED
|
@@ -1,3 +1,47 @@
|
|
|
1
|
-
#
|
|
1
|
+
# dsh-learn-space
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
DeepSeek Harness(dsh)的学习空间插件:AI 辅导的个人学习面板。教学在 dsh 聊天里进行,进度沉淀为工作区里的 Markdown 文件。
|
|
4
|
+
|
|
5
|
+
## 功能
|
|
6
|
+
|
|
7
|
+
- **两阶段教学**:摸底定位水平 → 生成课程依赖图(mermaid DAG)→ 逐节点教学,quiz 确认后才解锁下一节点
|
|
8
|
+
- **学习面板**:侧边栏入口,课程进度、知识节点(点开看教学内容)、错题本、学习记录、答题历史
|
|
9
|
+
- **数据沉淀**:`curriculum/<主题>/`(plan.md 依赖图 + notes/ 教学笔记 + mistakes.md 错题 + study-log.md)、`journal/YYYY-MM.md` 学习日志
|
|
10
|
+
- **导出学习报告**:自包含 HTML(内嵌 mermaid 渲染),含每个节点的学习内容/教学笔记、学习记录、答题历史、错题
|
|
11
|
+
- **资料支持**:上传资料放 `materials/<主题>/`,或让 AI 上网检索核实后规划
|
|
12
|
+
|
|
13
|
+
## 安装
|
|
14
|
+
|
|
15
|
+
在 dsh 插件搜索中搜 `dsh-learn-space` 安装;或手动在 profile 目录:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
pnpm add dsh-learn-space
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
然后把 `dsh-learn-space` 加入 profile `package.json` 的 `dsh.profile.bundles` 列表。
|
|
22
|
+
|
|
23
|
+
## 配置
|
|
24
|
+
|
|
25
|
+
插件自带挂载声明,默认数据根目录为进程工作目录。想固定数据目录,在 profile 的 `cordis.patch.yml` 里覆盖:
|
|
26
|
+
|
|
27
|
+
```yaml
|
|
28
|
+
- id: learning-space
|
|
29
|
+
name: dsh-learn-space
|
|
30
|
+
config:
|
|
31
|
+
root: 'D:/my-learning-space'
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## 开始一节课
|
|
35
|
+
|
|
36
|
+
对 AI 说:**「用 teach 开始学 <主题>」**。AI 会先问学习目标与资料来源,出题摸底后展示依赖图计划,你点头即开课。教学法(teach/quiz 两个 skill)随包内置,工作区 `skills/` 下有同名文件时优先用工作区的(可定制)。
|
|
37
|
+
|
|
38
|
+
## 节点状态标记(plan.md checkbox)
|
|
39
|
+
|
|
40
|
+
- `[x]` 已确认(quiz 通过)
|
|
41
|
+
- `[~]` 进行中
|
|
42
|
+
- `[!]` 有错题待修复
|
|
43
|
+
- `[ ]` 未学
|
|
44
|
+
|
|
45
|
+
## License
|
|
46
|
+
|
|
47
|
+
MIT
|