sumulige-claude 1.5.1 → 1.6.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 (223) hide show
  1. package/.claude/hooks/hook-registry.json +0 -15
  2. package/.claude/rules/coding-style.md +18 -7
  3. package/.claude/rules/hooks.md +15 -4
  4. package/.claude/rules/performance.md +15 -5
  5. package/.claude/rules/security.md +140 -4
  6. package/.claude/rules/testing.md +138 -9
  7. package/.claude/rules/web-design-standard.md +16 -5
  8. package/.claude/skills/algorithmic-art/metadata.yaml +28 -0
  9. package/.claude/skills/api-tester/SKILL.md +61 -0
  10. package/.claude/skills/api-tester/examples/basic.md +3 -0
  11. package/.claude/skills/api-tester/metadata.yaml +30 -0
  12. package/.claude/skills/api-tester/templates/default.md +3 -0
  13. package/.claude/skills/brand-guidelines/metadata.yaml +26 -0
  14. package/.claude/skills/canvas-design/metadata.yaml +27 -0
  15. package/.claude/skills/code-reviewer-123/SKILL.md +61 -0
  16. package/.claude/skills/code-reviewer-123/examples/basic.md +3 -0
  17. package/.claude/skills/code-reviewer-123/metadata.yaml +30 -0
  18. package/.claude/skills/code-reviewer-123/templates/default.md +3 -0
  19. package/.claude/skills/doc-coauthoring/metadata.yaml +27 -0
  20. package/.claude/skills/docx/metadata.yaml +30 -0
  21. package/.claude/skills/frontend-design/metadata.yaml +28 -0
  22. package/.claude/skills/internal-comms/metadata.yaml +28 -0
  23. package/.claude/skills/mcp-builder/metadata.yaml +26 -0
  24. package/.claude/skills/my-skill/SKILL.md +61 -0
  25. package/.claude/skills/my-skill/examples/basic.md +3 -0
  26. package/.claude/skills/my-skill/metadata.yaml +30 -0
  27. package/.claude/skills/my-skill/templates/default.md +3 -0
  28. package/.claude/skills/pdf/metadata.yaml +29 -0
  29. package/.claude/skills/pptx/metadata.yaml +29 -0
  30. package/.claude/skills/react-best-practices/metadata.yaml +26 -0
  31. package/.claude/skills/react-node-practices/SKILL.md +409 -0
  32. package/.claude/skills/react-node-practices/metadata.yaml +56 -0
  33. package/.claude/skills/skill-creator/metadata.yaml +25 -0
  34. package/.claude/skills/slack-gif-creator/metadata.yaml +28 -0
  35. package/.claude/skills/test-skill-name/SKILL.md +61 -0
  36. package/.claude/skills/test-skill-name/examples/basic.md +3 -0
  37. package/.claude/skills/test-skill-name/metadata.yaml +30 -0
  38. package/.claude/skills/test-skill-name/templates/default.md +3 -0
  39. package/.claude/skills/test-workflow/metadata.yaml +32 -0
  40. package/.claude/skills/theme-factory/metadata.yaml +26 -0
  41. package/.claude/skills/threejs-fundamentals/metadata.yaml +27 -0
  42. package/.claude/skills/web-artifacts-builder/metadata.yaml +30 -0
  43. package/.claude/skills/web-design-guidelines/metadata.yaml +26 -0
  44. package/.claude/skills/webapp-testing/metadata.yaml +26 -0
  45. package/.claude/skills/xlsx/metadata.yaml +29 -0
  46. package/LICENSE +21 -0
  47. package/README.md +280 -529
  48. package/cli.js +19 -3
  49. package/package.json +29 -3
  50. package/template/.codex/README.md +69 -0
  51. package/template/.codex/config.toml +56 -0
  52. package/template/AGENTS.md +94 -0
  53. package/.claude/.kickoff-hint.txt +0 -52
  54. package/.claude/.sumulige-claude-version +0 -1
  55. package/.claude/.version +0 -1
  56. package/.claude/AGENTS.md +0 -42
  57. package/.claude/ANCHORS.md +0 -40
  58. package/.claude/CLAUDE.md +0 -138
  59. package/.claude/MEMORY.md +0 -69
  60. package/.claude/PROJECT_LOG.md +0 -101
  61. package/.claude/THINKING_CHAIN_GUIDE.md +0 -287
  62. package/.claude/USAGE.md +0 -175
  63. package/.claude/boris-optimizations.md +0 -167
  64. package/.claude/handoffs/INDEX.md +0 -21
  65. package/.claude/handoffs/LATEST.md +0 -76
  66. package/.claude/handoffs/handoff_2026-01-22T13-07-04-757Z.md +0 -76
  67. package/.claude/quality-gate.json +0 -82
  68. package/.claude/rag/skill-index.json +0 -135
  69. package/.claude/settings.json +0 -99
  70. package/.claude/settings.local.json +0 -175
  71. package/.claude/templates/PROJECT_KICKOFF.md +0 -89
  72. package/.claude/templates/PROJECT_PROPOSAL.md +0 -227
  73. package/.claude/templates/TASK_PLAN.md +0 -121
  74. package/.claude/templates/hooks/README.md +0 -302
  75. package/.claude/templates/hooks/hook.sh.template +0 -94
  76. package/.claude/templates/hooks/user-prompt-submit.cjs.template +0 -116
  77. package/.claude/templates/hooks/user-response-submit.cjs.template +0 -94
  78. package/.claude/templates/hooks/validate.js +0 -173
  79. package/.claude/templates/tasks/develop.md +0 -69
  80. package/.claude/templates/tasks/research.md +0 -64
  81. package/.claude/templates/tasks/test.md +0 -96
  82. package/.claude/thinking-routes/.last-sync +0 -1
  83. package/.claude/thinking-routes/QUICKREF.md +0 -98
  84. package/.claude/workflow/document-scanner.js +0 -426
  85. package/.claude/workflow/knowledge-engine.js +0 -941
  86. package/.claude/workflow/notebooklm/browser.js +0 -1028
  87. package/.claude/workflow/phases/phase1-research.js +0 -578
  88. package/.claude/workflow/phases/phase1-research.ts +0 -465
  89. package/.claude/workflow/phases/phase2-approve.js +0 -722
  90. package/.claude/workflow/phases/phase3-plan.js +0 -1200
  91. package/.claude/workflow/phases/phase4-develop.js +0 -894
  92. package/.claude/workflow/search-cache.js +0 -230
  93. package/.claude/workflow/templates/approval.md +0 -315
  94. package/.claude/workflow/templates/development.md +0 -377
  95. package/.claude/workflow/templates/planning.md +0 -328
  96. package/.claude/workflow/templates/research.md +0 -250
  97. package/.claude/workflow/types.js +0 -37
  98. package/.claude/workflow/web-search.js +0 -278
  99. package/.claude-plugin/marketplace.json +0 -71
  100. package/.github/workflows/sync-skills.yml +0 -74
  101. package/.versionrc +0 -25
  102. package/AGENTS.md +0 -580
  103. package/CHANGELOG.md +0 -481
  104. package/CLAUDE-template.md +0 -114
  105. package/DEV_TOOLS_GUIDE.md +0 -190
  106. package/PROJECT_STRUCTURE.md +0 -266
  107. package/Q&A.md +0 -325
  108. package/config/defaults.json +0 -34
  109. package/config/official-skills.json +0 -183
  110. package/config/quality-gate.json +0 -67
  111. package/config/skill-categories.json +0 -40
  112. package/config/version-manifest.json +0 -85
  113. package/demos/power-3d-scatter.html +0 -683
  114. package/development/cache/web-search/search_1193d605f8eb364651fc2f2041b58a31.json +0 -36
  115. package/development/cache/web-search/search_3798bf06960edc125f744a1abb5b72c5.json +0 -36
  116. package/development/cache/web-search/search_37c7d4843a53f0d83f1122a6f908a2a3.json +0 -36
  117. package/development/cache/web-search/search_44166fa0153709ee168485a22aa0ab40.json +0 -36
  118. package/development/cache/web-search/search_4deaebb1f77e86a8ca066dc5a49c59fd.json +0 -36
  119. package/development/cache/web-search/search_94da91789466070a7f545612e73c7372.json +0 -36
  120. package/development/cache/web-search/search_dd5de8491b8b803a3cb01339cd210fb0.json +0 -36
  121. package/development/knowledge-base/.index.clean.json +0 -1
  122. package/development/knowledge-base/.index.json +0 -486
  123. package/development/knowledge-base/test-best-practices.md +0 -29
  124. package/development/projects/proj_mkh1pazz_ixmt1/phase1/feasibility-report.md +0 -160
  125. package/development/projects/proj_mkh4jvnb_z7rwf/phase1/feasibility-report.md +0 -160
  126. package/development/projects/proj_mkh4jxkd_ewz5a/phase1/feasibility-report.md +0 -160
  127. package/development/projects/proj_mkh4k84n_ni73k/phase1/feasibility-report.md +0 -160
  128. package/development/projects/proj_mkh4wfyd_u9w88/phase1/feasibility-report.md +0 -160
  129. package/development/projects/proj_mkh4wsbo_iahvf/development/projects/proj_mkh4xbpg_4na5w/phase1/feasibility-report.md +0 -160
  130. package/development/projects/proj_mkh4wsbo_iahvf/phase1/feasibility-report.md +0 -160
  131. package/development/projects/proj_mkh4xulg_1ka8x/phase1/feasibility-report.md +0 -160
  132. package/development/projects/proj_mkh4xwhj_gch8j/phase1/feasibility-report.md +0 -160
  133. package/development/projects/proj_mkh4y2qk_9lm8z/phase1/feasibility-report.md +0 -160
  134. package/development/projects/proj_mkh4y2qk_9lm8z/phase2/requirements.md +0 -226
  135. package/development/projects/proj_mkh4y2qk_9lm8z/phase3/PRD.md +0 -345
  136. package/development/projects/proj_mkh4y2qk_9lm8z/phase3/TASK_PLAN.md +0 -284
  137. package/development/projects/proj_mkh4y2qk_9lm8z/phase3/prototype/README.md +0 -14
  138. package/development/projects/proj_mkh4y2qk_9lm8z/phase4/DEVELOPMENT_LOG.md +0 -35
  139. package/development/projects/proj_mkh4y2qk_9lm8z/phase4/TASKS.md +0 -34
  140. package/development/projects/proj_mkh4y2qk_9lm8z/phase4/source/.env.example +0 -5
  141. package/development/projects/proj_mkh4y2qk_9lm8z/phase4/source/README.md +0 -60
  142. package/development/projects/proj_mkh4y2qk_9lm8z/phase4/source/package.json +0 -25
  143. package/development/projects/proj_mkh4y2qk_9lm8z/phase4/source/src/index.js +0 -70
  144. package/development/projects/proj_mkh4y2qk_9lm8z/phase4/source/src/routes/index.js +0 -48
  145. package/development/projects/proj_mkh4y2qk_9lm8z/phase4/source/tests/health.test.js +0 -20
  146. package/development/projects/proj_mkh4y2qk_9lm8z/phase4/source/tests/jest.config.js +0 -21
  147. package/development/projects/proj_mkh7veqg_3lypc/phase1/feasibility-report.md +0 -160
  148. package/development/projects/proj_mkh7veqg_3lypc/phase2/requirements.md +0 -226
  149. package/development/projects/proj_mkh7veqg_3lypc/phase3/PRD.md +0 -345
  150. package/development/projects/proj_mkh7veqg_3lypc/phase3/TASK_PLAN.md +0 -284
  151. package/development/projects/proj_mkh7veqg_3lypc/phase3/prototype/README.md +0 -14
  152. package/development/projects/proj_mkh8k8fo_rmqn5/phase1/feasibility-report.md +0 -160
  153. package/development/projects/proj_mkh8xyhy_1vshq/phase1/feasibility-report.md +0 -178
  154. package/development/projects/proj_mkh8zddd_dhamf/phase1/feasibility-report.md +0 -377
  155. package/development/projects/proj_mkh8zddd_dhamf/phase2/requirements.md +0 -442
  156. package/development/projects/proj_mkh8zddd_dhamf/phase3/api-design.md +0 -800
  157. package/development/projects/proj_mkh8zddd_dhamf/phase3/architecture.md +0 -625
  158. package/development/projects/proj_mkh8zddd_dhamf/phase3/data-model.md +0 -830
  159. package/development/projects/proj_mkh8zddd_dhamf/phase3/risks.md +0 -957
  160. package/development/projects/proj_mkh8zddd_dhamf/phase3/wbs.md +0 -381
  161. package/development/todos/.state.json +0 -19
  162. package/development/todos/INDEX.md +0 -63
  163. package/development/todos/active/_README.md +0 -49
  164. package/development/todos/archived/_README.md +0 -11
  165. package/development/todos/backlog/_README.md +0 -11
  166. package/development/todos/backlog/mcp-integration.md +0 -35
  167. package/development/todos/completed/_README.md +0 -11
  168. package/development/todos/completed/boris-optimizations.md +0 -39
  169. package/development/todos/completed/develop/local-knowledge-index.md +0 -85
  170. package/development/todos/completed/develop/todo-system.md +0 -47
  171. package/development/todos/completed/develop/web-search-integration.md +0 -83
  172. package/development/todos/completed/test/phase1-e2e-test.md +0 -103
  173. package/docs/DEVELOPMENT.md +0 -461
  174. package/docs/MARKETPLACE.md +0 -352
  175. package/docs/RELEASE.md +0 -93
  176. package/jest.config.js +0 -63
  177. package/lib/commands.js +0 -3588
  178. package/lib/config-manager.js +0 -441
  179. package/lib/config-schema.js +0 -408
  180. package/lib/config-validator.js +0 -330
  181. package/lib/config.js +0 -122
  182. package/lib/errors.js +0 -305
  183. package/lib/incremental-sync.js +0 -274
  184. package/lib/marketplace.js +0 -487
  185. package/lib/migrations.js +0 -154
  186. package/lib/permission-audit.js +0 -255
  187. package/lib/quality-gate.js +0 -431
  188. package/lib/quality-rules.js +0 -373
  189. package/lib/utils.js +0 -150
  190. package/lib/version-check.js +0 -169
  191. package/lib/version-manifest.js +0 -171
  192. package/project-paradigm.md +0 -313
  193. package/prompts/how-to-find.md +0 -163
  194. package/prompts/linus-architect.md +0 -71
  195. package/prompts/software-architect.md +0 -173
  196. package/prompts/web-designer.md +0 -249
  197. package/scripts/fix-hooks.mjs +0 -97
  198. package/scripts/sync-external.mjs +0 -298
  199. package/scripts/sync-to-home.sh +0 -108
  200. package/scripts/update-registry.mjs +0 -325
  201. package/sources.yaml +0 -83
  202. package/tests/README.md +0 -263
  203. package/tests/commands.test.js +0 -1086
  204. package/tests/config-manager.test.js +0 -677
  205. package/tests/config-schema.test.js +0 -425
  206. package/tests/config-validator.test.js +0 -436
  207. package/tests/config.test.js +0 -100
  208. package/tests/errors.test.js +0 -477
  209. package/tests/manual/phase1-e2e.sh +0 -389
  210. package/tests/manual/phase2-test-cases.md +0 -311
  211. package/tests/manual/phase3-test-cases.md +0 -309
  212. package/tests/manual/phase4-test-cases.md +0 -414
  213. package/tests/manual/test-cases.md +0 -417
  214. package/tests/marketplace.test.js +0 -420
  215. package/tests/migrations.test.js +0 -187
  216. package/tests/quality-gate.test.js +0 -679
  217. package/tests/quality-rules.test.js +0 -619
  218. package/tests/sync-external.test.js +0 -214
  219. package/tests/update-registry.test.js +0 -251
  220. package/tests/utils.test.js +0 -171
  221. package/tests/version-check.test.js +0 -75
  222. package/tests/web-search.test.js +0 -392
  223. package/thinkinglens-silent.md +0 -138
@@ -1,417 +0,0 @@
1
- # Phase 1 E2E Test Cases
2
-
3
- > **版本**: 1.0
4
- > **日期**: 2026-01-17
5
- > **状态**: 🚧 进行中
6
-
7
- ---
8
-
9
- ## 测试概述
10
-
11
- 本文档定义了 Phase 1(项目立项阶段)的端到端测试用例。
12
-
13
- ### 测试范围
14
-
15
- | 模块 | 测试内容 |
16
- |------|----------|
17
- | Workflow CLI | 项目创建、状态查询、验证、列表 |
18
- | Knowledge Engine | 添加文档、查询、缓存管理 |
19
- | Quality Gates | 可行性报告质量检查 |
20
-
21
- ---
22
-
23
- ## TC-001: 基础工作流流程
24
-
25
- ### 描述
26
- 验证从用户输入想法到生成可行性报告的完整流程。
27
-
28
- ### 前置条件
29
- - CLI 已安装 (`npm link`)
30
- - 开发目录存在
31
-
32
- ### 测试步骤
33
-
34
- ```bash
35
- # 1. 创建新项目
36
- smc workflow start "构建一个个人博客系统"
37
-
38
- # 2. 检查项目目录是否创建
39
- ls development/projects/
40
-
41
- # 3. 检查可行性报告是否生成
42
- ls development/projects/<project-id>/phase1/feasibility-report.md
43
-
44
- # 4. 查看报告内容
45
- cat development/projects/<project-id>/phase1/feasibility-report.md
46
- ```
47
-
48
- ### 预期结果
49
-
50
- | 步骤 | 预期输出 |
51
- |------|----------|
52
- | 1 | `✅ Created project: <project-id>` |
53
- | 2 | 项目目录存在 |
54
- | 3 | `feasibility-report.md` 文件存在 |
55
- | 4 | 报告包含以下章节:<br>- # 可行性分析报告<br>- ## 需求概述<br>- ## 关联发现<br>- ## 业界最佳实践<br>- ## 可行性评估<br>- ## 建议 |
56
-
57
- ### 实际结果
58
- _(测试后填写)_
59
-
60
- ### 状态
61
- - [ ] 通过
62
- - [ ] 失败
63
-
64
- ---
65
-
66
- ## TC-002: 工作流状态查询
67
-
68
- ### 描述
69
- 验证 `smc workflow status` 命令正确显示当前工作流状态。
70
-
71
- ### 前置条件
72
- - 至少有一个项目已创建
73
-
74
- ### 测试步骤
75
-
76
- ```bash
77
- # 1. 查询工作流状态
78
- smc workflow status
79
-
80
- # 2. 验证输出包含项目列表
81
- ```
82
-
83
- ### 预期结果
84
-
85
- | 字段 | 说明 |
86
- |------|------|
87
- | Project ID | 项目唯一标识符 |
88
- | Phase | 当前阶段 (phase1) |
89
- | Status | 状态 (draft/review/completed) |
90
- | Created | 创建时间 |
91
-
92
- ### 实际结果
93
- _(测试后填写)_
94
-
95
- ### 状态
96
- - [ ] 通过
97
- - [ ] 失败
98
-
99
- ---
100
-
101
- ## TC-003: 质量门控验证
102
-
103
- ### 描述
104
- 验证可行性报告质量检查功能。
105
-
106
- ### 前置条件
107
- - 可行性报告已生成
108
-
109
- ### 测试步骤
110
-
111
- ```bash
112
- # 1. 验证报告
113
- smc workflow validate development/projects/<id>/phase1/feasibility-report.md
114
-
115
- # 2. 创建一个不完整的报告进行测试
116
- cat > /tmp/incomplete.md << 'EOF'
117
- # 不完整的报告
118
-
119
- 这里什么都没有。
120
- EOF
121
-
122
- smc workflow validate /tmp/incomplete.md
123
- ```
124
-
125
- ### 预期结果
126
-
127
- | 场景 | 预期输出 |
128
- |------|----------|
129
- | 完整报告 | `✅ PASSED` - 6项检查全部通过 |
130
- | 不完整报告 | `❌ BLOCKER` - 列出缺失的字段 |
131
-
132
- ### 质量门控检查项
133
-
134
- 1. **需求概述** (hasRequirementSummary) - 报告是否有明确的需求概述
135
- 2. **关联分析** (hasCorrelationAnalysis) - 是否有关联发现内容
136
- 3. **最佳实践** (hasBestPractices) - 是否引用业界最佳实践
137
- 4. **可行性结论** (hasFeasibilityConclusion) - 是否有明确的可行性评估
138
- 5. **时间预估** (hasTimeEstimate) - 是否有预估时间
139
- 6. **风险评估** (hasRiskAssessment) - 是否有风险点分析
140
-
141
- ### 实际结果
142
- _(测试后填写)_
143
-
144
- ### 状态
145
- - [ ] 通过
146
- - [ ] 失败
147
-
148
- ---
149
-
150
- ## TC-004: 知识库 - 添加文档
151
-
152
- ### 描述
153
- 验证向知识库添加本地文档的功能。
154
-
155
- ### 前置条件
156
- - 有一个 Markdown 文件
157
-
158
- ### 测试步骤
159
-
160
- ```bash
161
- # 1. 添加单个文件
162
- smc knowledge add ./docs/best-practices.md
163
-
164
- # 2. 添加整个目录
165
- smc knowledge add ./development/knowledge-base/
166
-
167
- # 3. 列出知识源
168
- smc knowledge list
169
- ```
170
-
171
- ### 预期结果
172
-
173
- | 步骤 | 预期输出 |
174
- |------|----------|
175
- | 1 | `✅ Added: best-practices.md (1234 words, 5 headings)` |
176
- | 2 | 显示所有已索引的文件 |
177
- | 3 | 列出所有知识源,包含标题、标签、类型 |
178
-
179
- ### 状态
180
- - [ ] 通过
181
- - [ ] 失败
182
-
183
- ---
184
-
185
- ## TC-005: 知识库 - 查询
186
-
187
- ### 描述
188
- 验证从知识库查询相关信息的功能。
189
-
190
- ### 前置条件
191
- - 知识库中已有文档
192
-
193
- ### 测试步骤
194
-
195
- ```bash
196
- # 1. 简单查询
197
- smc knowledge query "API设计"
198
-
199
- # 2. 带标签过滤
200
- smc knowledge query "REST" --tags architecture
201
-
202
- # 3. 网络搜索
203
- smc knowledge query --web "React 19 new features"
204
- ```
205
-
206
- ### 预期结果
207
-
208
- | 步骤 | 预期输出 |
209
- |------|----------|
210
- | 1 | 返回相关文档,按相关性排序 |
211
- | 2 | 只返回带 architecture 标签的结果 |
212
- | 3 | 返回网络搜索结果 + 本地结果 |
213
-
214
- ### 相关性评分算法
215
-
216
- ```
217
- 总分 = 标题匹配(35%) + 标签匹配(25%) + 内容匹配(30%) + 标题匹配(10%)
218
- ```
219
-
220
- ### 状态
221
- - [ ] 通过
222
- - [ ] 失败
223
-
224
- ---
225
-
226
- ## TC-006: 知识库 - 缓存管理
227
-
228
- ### 描述
229
- 验证网络搜索结果缓存功能。
230
-
231
- ### 前置条件
232
- - 已执行过网络搜索
233
-
234
- ### 测试步骤
235
-
236
- ```bash
237
- # 1. 查看缓存统计
238
- smc knowledge cache stats
239
-
240
- # 2. 执行搜索
241
- smc knowledge query --web "test query"
242
-
243
- # 3. 再次查看缓存
244
- smc knowledge cache stats
245
-
246
- # 4. 清理过期缓存
247
- smc knowledge cache clean
248
-
249
- # 5. 清空所有缓存
250
- smc knowledge cache clear
251
- ```
252
-
253
- ### 预期结果
254
-
255
- | 步骤 | 预期输出 |
256
- |------|----------|
257
- | 1 | 缓存条目数、有效条目数、总大小 |
258
- | 2 | 第一次搜索,从网络获取 |
259
- | 3 | 缓存条目 +1 |
260
- | 4 | 删除过期条目 |
261
- | 5 | 所有缓存被清空 |
262
-
263
- ### 缓存配置
264
-
265
- | 参数 | 值 |
266
- |------|-----|
267
- | TTL | 24 小时 |
268
- | 存储路径 | `development/cache/web-search/` |
269
- | 键格式 | `search_{md5(query)}.json` |
270
-
271
- ### 状态
272
- - [ ] 通过
273
- - [ ] 失败
274
-
275
- ---
276
-
277
- ## TC-007: 增量索引更新
278
-
279
- ### 描述
280
- 验证文件修改后自动更新索引的功能。
281
-
282
- ### 前置条件
283
- - 文件已添加到知识库
284
-
285
- ### 测试步骤
286
-
287
- ```bash
288
- # 1. 修改已索引的文件
289
- echo "## 新章节" >> ./docs/best-practices.md
290
-
291
- # 2. 更新索引
292
- smc knowledge update
293
-
294
- # 3. 查询新内容
295
- smc knowledge query "新章节"
296
- ```
297
-
298
- ### 预期结果
299
-
300
- | 步骤 | 预期输出 |
301
- |------|----------|
302
- | 1 | 文件修改时间更新 |
303
- | 2 | 检测到变化并重新索引 |
304
- | 3 | 返回包含新内容的结果 |
305
-
306
- ### 状态
307
- - [ ] 通过
308
- - [ ] 失败
309
-
310
- ---
311
-
312
- ## TC-008: NotebookLM 集成
313
-
314
- ### 描述
315
- 验证 NotebookLM 浏览器自动化集成。
316
-
317
- ### 前置条件
318
- - NotebookLM 账号已认证
319
-
320
- ### 测试步骤
321
-
322
- ```bash
323
- # 1. 检查认证状态
324
- smc notebooklm status
325
-
326
- # 2. 如果未认证,执行认证
327
- smc notebooklm auth
328
-
329
- # 3. 提问
330
- smc notebooklm ask "什么是好教练" <notebook_url>
331
-
332
- # 4. 清理会话
333
- smc notebooklm clear
334
- ```
335
-
336
- ### 预期结果
337
-
338
- | 步骤 | 预期输出 |
339
- |------|----------|
340
- | 1 | 显示认证状态和会话信息 |
341
- | 2 | 浏览器打开,等待用户登录 |
342
- | 3 | 流式返回 NotebookLM 回答 |
343
- | 4 | 会话已清除 |
344
-
345
- ### 状态
346
- - [ ] 通过
347
- - [ ] 失败
348
- - [ ] 跳过 (无 NotebookLM 访问权限)
349
-
350
- ---
351
-
352
- ## 测试执行记录
353
-
354
- ### 测试环境
355
-
356
- | 项目 | 值 |
357
- |------|-----|
358
- | 操作系统 | macOS Darwin 23.6.0 |
359
- | Node.js 版本 | _(填写)_ |
360
- | CLI 版本 | 1.1.2 |
361
-
362
- ### 执行日期
363
- _(测试执行时填写)_
364
-
365
- ### 结果汇总
366
-
367
- | 用例编号 | 用例名称 | 状态 | 备注 |
368
- |----------|----------|------|------|
369
- | TC-001 | 基础工作流流程 | | |
370
- | TC-002 | 工作流状态查询 | | |
371
- | TC-003 | 质量门控验证 | | |
372
- | TC-004 | 知识库 - 添加文档 | | |
373
- | TC-005 | 知识库 - 查询 | | |
374
- | TC-006 | 知识库 - 缓存管理 | | |
375
- | TC-007 | 增量索引更新 | | |
376
- | TC-008 | NotebookLM 集成 | | |
377
-
378
- ### 通过率
379
- _(测试完成后计算)_
380
-
381
- ---
382
-
383
- ## 问题追踪
384
-
385
- ### 发现的问题
386
-
387
- | ID | 描述 | 严重性 | 状态 |
388
- |----|------|--------|------|
389
- | | | | |
390
-
391
- ### 严重性级别
392
-
393
- - **P0** - 阻塞性问题,无法继续
394
- - **P1** - 严重问题,影响核心功能
395
- - **P2** - 一般问题,有绕过方案
396
- - **P3** - 轻微问题,不影响使用
397
-
398
- ---
399
-
400
- ## 附录
401
-
402
- ### 快速测试命令
403
-
404
- ```bash
405
- # 一键执行所有基础测试
406
- bash tests/manual/phase1-e2e.sh
407
-
408
- # 单独测试工作流
409
- smc workflow start "测试项目"
410
- smc workflow status
411
- smc workflow validate $(ls -t development/projects/*/phase1/feasibility-report.md | head -1)
412
-
413
- # 单独测试知识库
414
- smc knowledge add ./README.md
415
- smc knowledge query "cli"
416
- smc knowledge cache stats
417
- ```