sillyspec 3.9.0 → 3.10.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 (206) hide show
  1. package/.claude/skills/sillyspec-archive/SKILL.md +17 -0
  2. package/.claude/skills/sillyspec-auto/SKILL.md +78 -0
  3. package/.claude/skills/sillyspec-brainstorm/SKILL.md +17 -0
  4. package/{templates/commit.md → .claude/skills/sillyspec-commit/SKILL.md} +32 -47
  5. package/.claude/skills/sillyspec-continue/SKILL.md +45 -0
  6. package/.claude/skills/sillyspec-doctor/SKILL.md +27 -0
  7. package/.claude/skills/sillyspec-execute/SKILL.md +17 -0
  8. package/.claude/skills/sillyspec-explore/SKILL.md +105 -0
  9. package/.claude/skills/sillyspec-export/SKILL.md +53 -0
  10. package/.claude/skills/sillyspec-init/SKILL.md +170 -0
  11. package/.claude/skills/sillyspec-plan/SKILL.md +17 -0
  12. package/.claude/skills/sillyspec-propose/SKILL.md +17 -0
  13. package/.claude/skills/sillyspec-quick/SKILL.md +17 -0
  14. package/.claude/skills/sillyspec-resume/SKILL.md +111 -0
  15. package/.claude/skills/sillyspec-scan/SKILL.md +17 -0
  16. package/.claude/skills/sillyspec-state/SKILL.md +54 -0
  17. package/.claude/skills/sillyspec-status/SKILL.md +17 -0
  18. package/.claude/skills/sillyspec-verify/SKILL.md +17 -0
  19. package/.claude/skills/sillyspec-workspace/SKILL.md +149 -0
  20. package/README.md +19 -11
  21. package/SKILL.md +15 -10
  22. package/package.json +7 -9
  23. package/packages/dashboard/dist/assets/index-BcM2J-hv.css +1 -0
  24. package/packages/dashboard/dist/assets/index-DpLHK4jv.js +7446 -0
  25. package/packages/dashboard/dist/index.html +16 -16
  26. package/packages/dashboard/dist/prototype-dashboard.html +836 -0
  27. package/packages/dashboard/dist/prototype-overview.html +256 -0
  28. package/packages/dashboard/package-lock.json +226 -6
  29. package/packages/dashboard/package.json +8 -5
  30. package/packages/dashboard/public/logo.jpg +0 -0
  31. package/packages/dashboard/public/prototype-dashboard.html +836 -0
  32. package/packages/dashboard/public/prototype-overview.html +256 -0
  33. package/packages/dashboard/server/executor.js +1 -1
  34. package/packages/dashboard/server/index.js +341 -113
  35. package/packages/dashboard/server/parser.js +442 -30
  36. package/packages/dashboard/server/watcher.js +214 -134
  37. package/packages/dashboard/src/App.vue +475 -71
  38. package/packages/dashboard/src/components/ActionBar.vue +36 -43
  39. package/packages/dashboard/src/components/CommandPalette.vue +45 -66
  40. package/packages/dashboard/src/components/DetailPanel.vue +68 -53
  41. package/packages/dashboard/src/components/DocPreview.vue +257 -0
  42. package/packages/dashboard/src/components/DocTree.vue +114 -0
  43. package/packages/dashboard/src/components/HResizeHandle.vue +48 -0
  44. package/packages/dashboard/src/components/LogStream.vue +13 -33
  45. package/packages/dashboard/src/components/PipelineStage.vue +8 -8
  46. package/packages/dashboard/src/components/PipelineView.vue +99 -45
  47. package/packages/dashboard/src/components/ProjectCard.vue +187 -0
  48. package/packages/dashboard/src/components/ProjectList.vue +103 -45
  49. package/packages/dashboard/src/components/ProjectOverview.vue +152 -0
  50. package/packages/dashboard/src/components/StageBadge.vue +13 -13
  51. package/packages/dashboard/src/components/StepCard.vue +15 -15
  52. package/packages/dashboard/src/components/VResizeHandle.vue +61 -0
  53. package/packages/dashboard/src/components/detail/DocsDetail.vue +48 -0
  54. package/packages/dashboard/src/components/detail/GitDetail.vue +61 -0
  55. package/packages/dashboard/src/components/detail/TechDetail.vue +43 -0
  56. package/packages/dashboard/src/composables/useDashboard.js +48 -6
  57. package/packages/dashboard/src/composables/useKeyboard.js +6 -4
  58. package/packages/dashboard/src/composables/useLayout.js +131 -0
  59. package/packages/dashboard/src/main.js +4 -1
  60. package/packages/dashboard/src/style.css +17 -17
  61. package/src/index.js +141 -22
  62. package/src/init.js +93 -231
  63. package/src/migrate.js +117 -0
  64. package/src/progress.js +460 -0
  65. package/src/run.js +635 -0
  66. package/src/setup.js +2 -72
  67. package/src/stages/archive.js +54 -0
  68. package/src/stages/brainstorm.js +264 -0
  69. package/src/stages/doctor.js +303 -0
  70. package/src/stages/execute.js +287 -0
  71. package/src/stages/explore.js +34 -0
  72. package/src/stages/index.js +28 -0
  73. package/src/stages/plan.js +354 -0
  74. package/src/stages/propose.js +115 -0
  75. package/src/stages/quick.js +64 -0
  76. package/src/stages/scan.js +141 -0
  77. package/src/stages/status.js +65 -0
  78. package/src/stages/verify.js +135 -0
  79. package/.sillyspec/changes/dashboard/design.md +0 -219
  80. package/.sillyspec/plans/2026-04-05-dashboard.md +0 -737
  81. package/.sillyspec/specs/2026-04-05-dashboard-design.md +0 -206
  82. package/dist/steps/brainstorm/01-load-context.md +0 -30
  83. package/dist/steps/brainstorm/02-reuse-check.md +0 -6
  84. package/dist/steps/brainstorm/03-prototype-analysis.md +0 -11
  85. package/dist/steps/brainstorm/04-module-split.md +0 -23
  86. package/dist/steps/brainstorm/05-dialog-explore.md +0 -8
  87. package/dist/steps/brainstorm/06-propose-approaches.md +0 -3
  88. package/dist/steps/brainstorm/07-present-design.md +0 -3
  89. package/dist/steps/brainstorm/08-write-design.md +0 -21
  90. package/dist/steps/brainstorm/09-self-review.md +0 -15
  91. package/dist/steps/brainstorm/10-user-confirm.md +0 -3
  92. package/dist/steps/brainstorm/11-output-spec.md +0 -7
  93. package/dist/steps/brainstorm/manifest.yaml +0 -26
  94. package/dist/steps/execute/01-load-context.md +0 -41
  95. package/dist/steps/execute/02-scan-conventions.md +0 -47
  96. package/dist/steps/execute/03-skill-mcp.md +0 -19
  97. package/dist/steps/execute/04-assign-task.md +0 -22
  98. package/dist/steps/execute/04b-prompt-template.md +0 -54
  99. package/dist/steps/execute/05-write-test.md +0 -7
  100. package/dist/steps/execute/06-write-code.md +0 -8
  101. package/dist/steps/execute/07-run-test.md +0 -26
  102. package/dist/steps/execute/08-fix-issues.md +0 -28
  103. package/dist/steps/execute/09-next-task.md +0 -33
  104. package/dist/steps/execute/manifest.yaml +0 -28
  105. package/dist/steps/plan/01-load-context.md +0 -22
  106. package/dist/steps/plan/02-anchor-confirm.md +0 -1
  107. package/dist/steps/plan/03-expand-tasks.md +0 -33
  108. package/dist/steps/plan/04-mark-order.md +0 -15
  109. package/dist/steps/plan/05-e2e-planning.md +0 -17
  110. package/dist/steps/plan/06-self-check.md +0 -16
  111. package/dist/steps/plan/07-save.md +0 -1
  112. package/dist/steps/plan/manifest.yaml +0 -18
  113. package/dist/steps/scan/01-env-detect.md +0 -51
  114. package/dist/steps/scan/02-tech-stack.md +0 -16
  115. package/dist/steps/scan/03-conventions.md +0 -16
  116. package/dist/steps/scan/04-structure.md +0 -19
  117. package/dist/steps/scan/05-quality.md +0 -18
  118. package/dist/steps/scan/06-complete.md +0 -49
  119. package/dist/steps/scan/manifest.yaml +0 -16
  120. package/dist/steps/verify/01-load-specs.md +0 -28
  121. package/dist/steps/verify/02-check-tasks.md +0 -1
  122. package/dist/steps/verify/03-check-design.md +0 -6
  123. package/dist/steps/verify/04-run-tests.md +0 -7
  124. package/dist/steps/verify/05-e2e-tests.md +0 -27
  125. package/dist/steps/verify/05b-e2e-fix.md +0 -33
  126. package/dist/steps/verify/06-code-quality.md +0 -25
  127. package/dist/steps/verify/07-lint-check.md +0 -27
  128. package/dist/steps/verify/08-output-report.md +0 -14
  129. package/dist/steps/verify/manifest.yaml +0 -22
  130. package/docs/.vitepress/config.mts +0 -45
  131. package/docs/.vitepress/dist/404.html +0 -25
  132. package/docs/.vitepress/dist/assets/app.YytxICdd.js +0 -1
  133. package/docs/.vitepress/dist/assets/chunks/framework.Czhw_PXq.js +0 -19
  134. package/docs/.vitepress/dist/assets/chunks/theme.DusTRZQk.js +0 -1
  135. package/docs/.vitepress/dist/assets/index.md.C3VCvtQA.js +0 -1
  136. package/docs/.vitepress/dist/assets/index.md.C3VCvtQA.lean.js +0 -1
  137. package/docs/.vitepress/dist/assets/inter-italic-cyrillic-ext.r48I6akx.woff2 +0 -0
  138. package/docs/.vitepress/dist/assets/inter-italic-cyrillic.By2_1cv3.woff2 +0 -0
  139. package/docs/.vitepress/dist/assets/inter-italic-greek-ext.1u6EdAuj.woff2 +0 -0
  140. package/docs/.vitepress/dist/assets/inter-italic-greek.DJ8dCoTZ.woff2 +0 -0
  141. package/docs/.vitepress/dist/assets/inter-italic-latin-ext.CN1xVJS-.woff2 +0 -0
  142. package/docs/.vitepress/dist/assets/inter-italic-latin.C2AdPX0b.woff2 +0 -0
  143. package/docs/.vitepress/dist/assets/inter-italic-vietnamese.BSbpV94h.woff2 +0 -0
  144. package/docs/.vitepress/dist/assets/inter-roman-cyrillic-ext.BBPuwvHQ.woff2 +0 -0
  145. package/docs/.vitepress/dist/assets/inter-roman-cyrillic.C5lxZ8CY.woff2 +0 -0
  146. package/docs/.vitepress/dist/assets/inter-roman-greek-ext.CqjqNYQ-.woff2 +0 -0
  147. package/docs/.vitepress/dist/assets/inter-roman-greek.BBVDIX6e.woff2 +0 -0
  148. package/docs/.vitepress/dist/assets/inter-roman-latin-ext.4ZJIpNVo.woff2 +0 -0
  149. package/docs/.vitepress/dist/assets/inter-roman-latin.Di8DUHzh.woff2 +0 -0
  150. package/docs/.vitepress/dist/assets/inter-roman-vietnamese.BjW4sHH5.woff2 +0 -0
  151. package/docs/.vitepress/dist/assets/sillyspec_commands.md.CXFFsj08.js +0 -15
  152. package/docs/.vitepress/dist/assets/sillyspec_commands.md.CXFFsj08.lean.js +0 -1
  153. package/docs/.vitepress/dist/assets/sillyspec_dashboard.md.BuPXHqjX.js +0 -4
  154. package/docs/.vitepress/dist/assets/sillyspec_dashboard.md.BuPXHqjX.lean.js +0 -1
  155. package/docs/.vitepress/dist/assets/sillyspec_file-io.md.Cz3x7llx.js +0 -1
  156. package/docs/.vitepress/dist/assets/sillyspec_file-io.md.Cz3x7llx.lean.js +0 -1
  157. package/docs/.vitepress/dist/assets/sillyspec_getting-started.md.ClcvV8k3.js +0 -4
  158. package/docs/.vitepress/dist/assets/sillyspec_getting-started.md.ClcvV8k3.lean.js +0 -1
  159. package/docs/.vitepress/dist/assets/sillyspec_install.md.CKuR2tiT.js +0 -5
  160. package/docs/.vitepress/dist/assets/sillyspec_install.md.CKuR2tiT.lean.js +0 -1
  161. package/docs/.vitepress/dist/assets/sillyspec_lifecycle.md.DY293cR1.js +0 -28
  162. package/docs/.vitepress/dist/assets/sillyspec_lifecycle.md.DY293cR1.lean.js +0 -1
  163. package/docs/.vitepress/dist/assets/sillyspec_structure.md.sVYS4zPs.js +0 -30
  164. package/docs/.vitepress/dist/assets/sillyspec_structure.md.sVYS4zPs.lean.js +0 -1
  165. package/docs/.vitepress/dist/assets/style.DFTx90Kk.css +0 -1
  166. package/docs/.vitepress/dist/hashmap.json +0 -1
  167. package/docs/.vitepress/dist/index.html +0 -28
  168. package/docs/.vitepress/dist/sillyspec/commands.html +0 -42
  169. package/docs/.vitepress/dist/sillyspec/dashboard.html +0 -31
  170. package/docs/.vitepress/dist/sillyspec/file-io.html +0 -28
  171. package/docs/.vitepress/dist/sillyspec/getting-started.html +0 -31
  172. package/docs/.vitepress/dist/sillyspec/install.html +0 -32
  173. package/docs/.vitepress/dist/sillyspec/lifecycle.html +0 -55
  174. package/docs/.vitepress/dist/sillyspec/structure.html +0 -57
  175. package/docs/.vitepress/dist/vp-icons.css +0 -1
  176. package/docs/index.md +0 -34
  177. package/docs/sillyspec/commands.md +0 -218
  178. package/docs/sillyspec/dashboard.md +0 -51
  179. package/docs/sillyspec/file-io.md +0 -34
  180. package/docs/sillyspec/getting-started.md +0 -61
  181. package/docs/sillyspec/install.md +0 -51
  182. package/docs/sillyspec/lifecycle.md +0 -146
  183. package/docs/sillyspec/structure.md +0 -62
  184. package/packages/dashboard/dist/assets/index-Bh-GPjKY.css +0 -1
  185. package/packages/dashboard/dist/assets/index-CrCn5Gg6.js +0 -17
  186. package/src/step.js +0 -543
  187. package/templates/archive.md +0 -120
  188. package/templates/brainstorm.md +0 -170
  189. package/templates/continue.md +0 -32
  190. package/templates/execute.md +0 -304
  191. package/templates/explore.md +0 -59
  192. package/templates/export.md +0 -21
  193. package/templates/init.md +0 -61
  194. package/templates/plan.md +0 -146
  195. package/templates/quick.md +0 -135
  196. package/templates/scan-quick.md +0 -49
  197. package/templates/scan.md +0 -156
  198. package/templates/skills/playwright-e2e/SKILL.md +0 -340
  199. package/templates/status.md +0 -75
  200. package/templates/verify.md +0 -236
  201. package/templates/workspace-sync.md +0 -99
  202. package/templates/workspace.md +0 -70
  203. /package/{docs/.vitepress/dist/logo.jpg → logo.jpg} +0 -0
  204. /package/{docs/.vitepress → packages/dashboard}/dist/favicon.jpg +0 -0
  205. /package/{docs/public → packages/dashboard/dist}/logo.jpg +0 -0
  206. /package/{docs → packages/dashboard}/public/favicon.jpg +0 -0
@@ -0,0 +1,256 @@
1
+ <!DOCTYPE html>
2
+ <html lang="zh-CN">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Dashboard 概览区域原型</title>
7
+ <style>
8
+ * {
9
+ margin: 0;
10
+ padding: 0;
11
+ box-sizing: border-box;
12
+ }
13
+ body {
14
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
15
+ background: #F5F5F7;
16
+ height: 100vh;
17
+ display: flex;
18
+ flex-direction: column;
19
+ }
20
+ /* 概览区域 - 40% */
21
+ .overview-section {
22
+ height: 40%;
23
+ background: #FFFFFF;
24
+ border-bottom: 2px solid #2A3040;
25
+ padding: 16px 24px;
26
+ display: flex;
27
+ flex-direction: column;
28
+ }
29
+ .section-header {
30
+ display: flex;
31
+ justify-content: space-between;
32
+ align-items: center;
33
+ margin-bottom: 16px;
34
+ }
35
+ .section-title {
36
+ font-size: 18px;
37
+ font-weight: 600;
38
+ color: #1A1A1A;
39
+ }
40
+ .section-actions {
41
+ display: flex;
42
+ gap: 8px;
43
+ }
44
+ .btn {
45
+ padding: 6px 12px;
46
+ border-radius: 6px;
47
+ border: none;
48
+ cursor: pointer;
49
+ font-size: 13px;
50
+ font-weight: 500;
51
+ }
52
+ .btn-primary {
53
+ background: #D97706;
54
+ color: white;
55
+ }
56
+ .btn-secondary {
57
+ background: #E5E7EB;
58
+ color: #374151;
59
+ }
60
+ /* 水平滚动卡片容器 */
61
+ .cards-container {
62
+ flex: 1;
63
+ display: flex;
64
+ gap: 16px;
65
+ overflow-x: auto;
66
+ overflow-y: hidden;
67
+ padding-bottom: 8px;
68
+ }
69
+ .cards-container::-webkit-scrollbar {
70
+ height: 8px;
71
+ }
72
+ .cards-container::-webkit-scrollbar-track {
73
+ background: #F3F4F6;
74
+ border-radius: 4px;
75
+ }
76
+ .cards-container::-webkit-scrollbar-thumb {
77
+ background: #D1D5DB;
78
+ border-radius: 4px;
79
+ }
80
+ /* 项目卡片 */
81
+ .project-card {
82
+ width: 280px;
83
+ height: 120px;
84
+ background: white;
85
+ border: 2px solid #E5E7EB;
86
+ border-radius: 12px;
87
+ padding: 16px;
88
+ display: flex;
89
+ flex-direction: column;
90
+ justify-content: space-between;
91
+ cursor: pointer;
92
+ transition: all 0.2s;
93
+ flex-shrink: 0;
94
+ }
95
+ .project-card:hover {
96
+ border-color: #D97706;
97
+ box-shadow: 0 4px 12px rgba(217, 119, 6, 0.15);
98
+ }
99
+ .project-card.selected {
100
+ border-color: #D97706;
101
+ box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.2);
102
+ }
103
+ .card-header {
104
+ display: flex;
105
+ justify-content: space-between;
106
+ align-items: flex-start;
107
+ }
108
+ .project-name {
109
+ font-size: 16px;
110
+ font-weight: 600;
111
+ color: #1A1A1A;
112
+ }
113
+ .last-active {
114
+ font-size: 11px;
115
+ color: #9CA3AF;
116
+ }
117
+ .stage-badge {
118
+ display: inline-block;
119
+ padding: 4px 10px;
120
+ border-radius: 12px;
121
+ font-size: 12px;
122
+ font-weight: 500;
123
+ }
124
+ .stage-badge.in-progress {
125
+ background: #DBEAFE;
126
+ color: #1D4ED8;
127
+ }
128
+ .stage-badge.completed {
129
+ background: #D1FAE5;
130
+ color: #047857;
131
+ }
132
+ .stage-badge.pending {
133
+ background: #F3F4F6;
134
+ color: #6B7280;
135
+ }
136
+ .progress-section {
137
+ display: flex;
138
+ align-items: center;
139
+ gap: 8px;
140
+ }
141
+ .progress-bar {
142
+ flex: 1;
143
+ height: 6px;
144
+ background: #E5E7EB;
145
+ border-radius: 3px;
146
+ overflow: hidden;
147
+ }
148
+ .progress-fill {
149
+ height: 100%;
150
+ border-radius: 3px;
151
+ transition: width 0.3s;
152
+ }
153
+ .progress-fill.in-progress { background: #3B82F6; }
154
+ .progress-fill.completed { background: #10B981; }
155
+ .progress-fill.pending { background: #9CA3AF; }
156
+ .progress-text {
157
+ font-size: 12px;
158
+ font-weight: 600;
159
+ color: #374151;
160
+ }
161
+ /* 详情区域 - 60% */
162
+ .detail-section {
163
+ flex: 1;
164
+ background: #FAFAFA;
165
+ padding: 24px;
166
+ display: flex;
167
+ align-items: center;
168
+ justify-content: center;
169
+ color: #9CA3AF;
170
+ font-size: 14px;
171
+ }
172
+ </style>
173
+ </head>
174
+ <body>
175
+ <!-- 概览区域 -->
176
+ <div class="overview-section">
177
+ <div class="section-header">
178
+ <h1 class="section-title">项目概览</h1>
179
+ <div class="section-actions">
180
+ <button class="btn btn-secondary">刷新</button>
181
+ <button class="btn btn-primary">添加项目</button>
182
+ </div>
183
+ </div>
184
+ <div class="cards-container">
185
+ <!-- 项目卡片 1 - 进行中 -->
186
+ <div class="project-card selected">
187
+ <div class="card-header">
188
+ <span class="project-name">sillyspec</span>
189
+ <span class="last-active">2分钟前</span>
190
+ </div>
191
+ <div>
192
+ <span class="stage-badge in-progress">需求探索</span>
193
+ </div>
194
+ <div class="progress-section">
195
+ <div class="progress-bar">
196
+ <div class="progress-fill in-progress" style="width: 40%"></div>
197
+ </div>
198
+ <span class="progress-text">40%</span>
199
+ </div>
200
+ </div>
201
+ <!-- 项目卡片 2 - 进行中 -->
202
+ <div class="project-card">
203
+ <div class="card-header">
204
+ <span class="project-name">my-blog</span>
205
+ <span class="last-active">15分钟前</span>
206
+ </div>
207
+ <div>
208
+ <span class="stage-badge in-progress">实现计划</span>
209
+ </div>
210
+ <div class="progress-section">
211
+ <div class="progress-bar">
212
+ <div class="progress-fill in-progress" style="width: 75%"></div>
213
+ </div>
214
+ <span class="progress-text">75%</span>
215
+ </div>
216
+ </div>
217
+ <!-- 项目卡片 3 - 已完成 -->
218
+ <div class="project-card">
219
+ <div class="card-header">
220
+ <span class="project-name">user-service</span>
221
+ <span class="last-active">1小时前</span>
222
+ </div>
223
+ <div>
224
+ <span class="stage-badge completed">验证确认</span>
225
+ </div>
226
+ <div class="progress-section">
227
+ <div class="progress-bar">
228
+ <div class="progress-fill completed" style="width: 100%"></div>
229
+ </div>
230
+ <span class="progress-text">100%</span>
231
+ </div>
232
+ </div>
233
+ <!-- 项目卡片 4 - 未开始 -->
234
+ <div class="project-card">
235
+ <div class="card-header">
236
+ <span class="project-name">payment-api</span>
237
+ <span class="last-active">昨天</span>
238
+ </div>
239
+ <div>
240
+ <span class="stage-badge pending">未开始</span>
241
+ </div>
242
+ <div class="progress-section">
243
+ <div class="progress-bar">
244
+ <div class="progress-fill pending" style="width: 0%"></div>
245
+ </div>
246
+ <span class="progress-text">0%</span>
247
+ </div>
248
+ </div>
249
+ </div>
250
+ </div>
251
+ <!-- 详情区域 -->
252
+ <div class="detail-section">
253
+ 点击上方卡片查看项目详情
254
+ </div>
255
+ </body>
256
+ </html>
@@ -9,7 +9,7 @@ import { spawn } from 'child_process'
9
9
  * @returns {function} Kill function to terminate the process
10
10
  */
11
11
  export function executeCommand(projectPath, command, onOutput, onComplete) {
12
- const args = command.split(' ')
12
+ const args = String(command || '').trim().split(/\s+/).filter(Boolean)
13
13
  const proc = spawn('npx', ['sillyspec', ...args], {
14
14
  cwd: projectPath,
15
15
  env: { ...process.env }