scene-capability-engine 3.0.1 → 3.0.2
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/CHANGELOG.md +233 -233
- package/LICENSE +2 -2
- package/README.md +8 -11
- package/README.zh.md +7 -10
- package/bin/kse.js +1 -1
- package/bin/sce.js +1 -1
- package/bin/sco.js +1 -1
- package/docs/331-poc-adaptation-roadmap.md +25 -25
- package/docs/331-poc-dual-track-integration-guide.md +26 -26
- package/docs/331-poc-weekly-delivery-checklist.md +8 -8
- package/docs/OFFLINE_INSTALL.md +10 -10
- package/docs/README.md +24 -24
- package/docs/adopt-migration-guide.md +51 -51
- package/docs/adoption-guide.md +56 -56
- package/docs/agent-hooks-analysis.md +52 -52
- package/docs/architecture.md +6 -6
- package/docs/articles/ai-driven-development-philosophy-and-practice-review.md +4 -4
- package/docs/articles/ai-driven-development-philosophy-and-practice.en.md +9 -9
- package/docs/articles/ai-driven-development-philosophy-and-practice.md +10 -10
- package/docs/autonomous-control-guide.md +89 -89
- package/docs/command-reference.md +11 -11
- package/docs/community.md +4 -4
- package/docs/cross-tool-guide.md +47 -47
- package/docs/developer-guide.md +5 -5
- package/docs/document-governance.md +91 -91
- package/docs/environment-management-guide.md +53 -53
- package/docs/examples/add-export-command/design.md +2 -2
- package/docs/examples/add-export-command/requirements.md +5 -5
- package/docs/examples/add-export-command/tasks.md +2 -2
- package/docs/faq.md +69 -69
- package/docs/handoffs/evidence/ontology/moqui-template-baseline-2026-02-17-232922.json +9 -9
- package/docs/handoffs/evidence/ontology/moqui-template-baseline-2026-02-17-232922.md +3 -3
- package/docs/integration-modes.md +60 -60
- package/docs/integration-philosophy.md +48 -48
- package/docs/knowledge-management-guide.md +21 -21
- package/docs/manual-workflows-guide.md +20 -20
- package/docs/moqui-capability-matrix.md +22 -22
- package/docs/moqui-template-core-library-playbook.md +20 -20
- package/docs/multi-agent-coordination-guide.md +19 -19
- package/docs/multi-repo-management-guide.md +93 -93
- package/docs/quick-start-with-ai-tools.md +36 -36
- package/docs/quick-start.md +16 -16
- package/docs/release-checklist.md +7 -7
- package/docs/releases/v1.46.2-validation.md +1 -1
- package/docs/releases/v1.46.2.md +10 -10
- package/docs/scene-runtime-guide.md +42 -42
- package/docs/spec-collaboration-guide.md +43 -43
- package/docs/spec-locking-guide.md +26 -26
- package/docs/spec-numbering-guide.md +6 -6
- package/docs/spec-workflow.md +25 -25
- package/docs/steering-strategy-guide.md +36 -36
- package/docs/team-collaboration-guide.md +23 -23
- package/docs/testing-strategy.md +2 -2
- package/docs/tools/claude-guide.md +26 -26
- package/docs/tools/cursor-guide.md +31 -31
- package/docs/tools/generic-guide.md +22 -22
- package/docs/tools/kiro-guide.md +43 -43
- package/docs/tools/vscode-guide.md +18 -18
- package/docs/tools/windsurf-guide.md +50 -50
- package/docs/troubleshooting.md +116 -116
- package/docs/upgrade-guide.md +49 -49
- package/docs/value-observability-guide.md +6 -6
- package/docs/zh/README.md +22 -22
- package/docs/zh/quick-start.md +34 -34
- package/docs/zh/release-checklist.md +6 -6
- package/docs/zh/releases/v1.46.2-validation.md +1 -1
- package/docs/zh/releases/v1.46.2.md +9 -9
- package/docs/zh/spec-numbering-guide.md +6 -6
- package/docs/zh/tools/claude-guide.md +14 -14
- package/docs/zh/tools/cursor-guide.md +18 -18
- package/docs/zh/tools/generic-guide.md +40 -40
- package/docs/zh/tools/kiro-guide.md +50 -50
- package/docs/zh/tools/vscode-guide.md +20 -20
- package/docs/zh/tools/windsurf-guide.md +49 -49
- package/docs/zh/value-observability-guide.md +6 -6
- package/docs//344/272/244/344/273/230/346/270/205/345/215/225.md +4 -4
- package/lib/adoption/adoption-logger.js +1 -1
- package/lib/adoption/adoption-strategy.js +3 -3
- package/lib/adoption/detection-engine.js +1 -1
- package/lib/adoption/error-formatter.js +17 -17
- package/lib/adoption/progress-reporter.js +2 -2
- package/lib/adoption/smart-orchestrator.js +2 -2
- package/lib/adoption/strategy-selector.js +2 -2
- package/lib/adoption/summary-generator.js +3 -3
- package/lib/auto/autonomous-engine.js +2 -2
- package/lib/auto/close-loop-runner.js +9 -9
- package/lib/backup/backup-system.js +2 -2
- package/lib/collab/collab-manager.js +2 -2
- package/lib/commands/adopt.js +16 -16
- package/lib/commands/auto.js +93 -93
- package/lib/commands/collab.js +8 -8
- package/lib/commands/docs.js +26 -26
- package/lib/commands/doctor.js +2 -2
- package/lib/commands/env.js +14 -14
- package/lib/commands/knowledge.js +13 -13
- package/lib/commands/lock.js +6 -6
- package/lib/commands/ops.js +19 -19
- package/lib/commands/orchestrate.js +5 -5
- package/lib/commands/prompt.js +3 -3
- package/lib/commands/rollback.js +4 -4
- package/lib/commands/scene.js +29 -29
- package/lib/commands/spec-bootstrap.js +1 -1
- package/lib/commands/spec-gate.js +1 -1
- package/lib/commands/spec-pipeline.js +1 -1
- package/lib/commands/task.js +1 -1
- package/lib/commands/templates.js +27 -27
- package/lib/commands/upgrade.js +8 -8
- package/lib/commands/value.js +4 -4
- package/lib/commands/watch.js +9 -9
- package/lib/commands/workflows.js +5 -5
- package/lib/commands/workspace-multi.js +17 -17
- package/lib/commands/workspace.js +5 -5
- package/lib/context/context-exporter.js +1 -1
- package/lib/context/prompt-generator.js +1 -1
- package/lib/data/moqui-capability-lexicon.json +1 -1
- package/lib/environment/environment-manager.js +1 -1
- package/lib/gitignore/gitignore-detector.js +4 -4
- package/lib/gitignore/gitignore-integration.js +2 -2
- package/lib/gitignore/gitignore-transformer.js +3 -3
- package/lib/gitignore/layered-rules-template.js +2 -2
- package/lib/governance/diagnostic-engine.js +4 -4
- package/lib/governance/doc-reference-checker.js +1 -1
- package/lib/governance/hooks-manager.js +5 -5
- package/lib/governance/reporter.js +1 -1
- package/lib/knowledge/knowledge-manager.js +6 -6
- package/lib/orchestrator/agent-spawner.js +1 -1
- package/lib/orchestrator/bootstrap-prompt-builder.js +2 -2
- package/lib/repo/config-manager.js +2 -2
- package/lib/repo/handlers/init-handler.js +3 -3
- package/lib/scene-runtime/audit-emitter.js +2 -2
- package/lib/scene-runtime/binding-plugin-loader.js +1 -1
- package/lib/scene-runtime/moqui-adapter.js +2 -2
- package/lib/scene-runtime/moqui-extractor.js +3 -3
- package/lib/scene-runtime/scene-loader.js +3 -3
- package/lib/scene-runtime/scene-template-linter.js +1 -1
- package/lib/scene-runtime/templates/scene-template-erp-query-v0.1.yaml +1 -1
- package/lib/scene-runtime/templates/scene-template-hybrid-shadow-v0.1.yaml +1 -1
- package/lib/spec/multi-spec-orchestrate.js +1 -1
- package/lib/spec-gate/rules/default-rules.js +1 -1
- package/lib/steering/adoption-config.js +1 -1
- package/lib/steering/compliance-auto-fixer.js +1 -1
- package/lib/steering/compliance-cache.js +3 -3
- package/lib/steering/compliance-error-reporter.js +1 -1
- package/lib/steering/index.js +1 -1
- package/lib/steering/steering-manager.js +7 -7
- package/lib/task/task-claimer.js +2 -1
- package/lib/templates/metadata-collector.js +6 -6
- package/lib/templates/template-creator.js +2 -2
- package/lib/templates/template-exporter.js +12 -12
- package/lib/upgrade/migration-engine.js +4 -4
- package/lib/utils/tool-detector.js +25 -25
- package/lib/utils/validation.js +3 -3
- package/lib/version/version-checker.js +13 -13
- package/lib/version/version-manager.js +7 -7
- package/lib/watch/presets.js +4 -4
- package/lib/workspace/multi/path-utils.js +1 -1
- package/lib/workspace/multi/workspace-context-resolver.js +9 -9
- package/lib/workspace/multi/workspace-registry.js +2 -2
- package/lib/workspace/multi/workspace-state-manager.js +1 -1
- package/lib/workspace/multi/workspace.js +1 -1
- package/lib/workspace/workspace-sync.js +1 -1
- package/locales/en.json +1 -1
- package/locales/zh.json +1 -1
- package/package.json +3 -5
- package/template/.kiro/README.md +40 -40
- package/template/.kiro/specs/SPEC_WORKFLOW_GUIDE.md +3 -3
- package/template/.kiro/steering/CORE_PRINCIPLES.md +3 -3
- package/template/.kiro/steering/ENVIRONMENT.md +2 -2
- package/template/README.md +3 -3
- /package/bin/{kiro-spec-engine.js → scene-capability-engine.js} +0 -0
package/docs/troubleshooting.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Troubleshooting Guide
|
|
2
2
|
|
|
3
|
-
> Common issues and solutions for
|
|
3
|
+
> Common issues and solutions for sce
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
## Installation Issues
|
|
28
28
|
|
|
29
|
-
### Error: "npm install -g
|
|
29
|
+
### Error: "npm install -g scene-capability-engine" fails
|
|
30
30
|
|
|
31
31
|
**Symptoms:**
|
|
32
32
|
```
|
|
@@ -42,8 +42,8 @@ npm ERR! path /usr/local/lib/node_modules
|
|
|
42
42
|
**Option 1: Use npx (Recommended)**
|
|
43
43
|
```bash
|
|
44
44
|
# No installation needed, run directly
|
|
45
|
-
npx
|
|
46
|
-
npx
|
|
45
|
+
npx sce status
|
|
46
|
+
npx sce adopt
|
|
47
47
|
```
|
|
48
48
|
|
|
49
49
|
**Option 2: Fix npm permissions (macOS/Linux)**
|
|
@@ -59,31 +59,31 @@ export PATH=~/.npm-global/bin:$PATH
|
|
|
59
59
|
source ~/.bashrc # or source ~/.zshrc
|
|
60
60
|
|
|
61
61
|
# Now install
|
|
62
|
-
npm install -g
|
|
62
|
+
npm install -g scene-capability-engine
|
|
63
63
|
```
|
|
64
64
|
|
|
65
65
|
**Option 3: Use sudo (Not Recommended)**
|
|
66
66
|
```bash
|
|
67
|
-
sudo npm install -g
|
|
67
|
+
sudo npm install -g scene-capability-engine
|
|
68
68
|
```
|
|
69
69
|
|
|
70
70
|
---
|
|
71
71
|
|
|
72
|
-
### Error: "
|
|
72
|
+
### Error: "sce: command not found"
|
|
73
73
|
|
|
74
74
|
**Symptoms:**
|
|
75
75
|
```bash
|
|
76
|
-
$
|
|
77
|
-
bash:
|
|
76
|
+
$ sce status
|
|
77
|
+
bash: sce: command not found
|
|
78
78
|
```
|
|
79
79
|
|
|
80
|
-
**Cause:**
|
|
80
|
+
**Cause:** sce is not in your PATH
|
|
81
81
|
|
|
82
82
|
**Solutions:**
|
|
83
83
|
|
|
84
|
-
**Check if
|
|
84
|
+
**Check if sce is installed:**
|
|
85
85
|
```bash
|
|
86
|
-
npm list -g
|
|
86
|
+
npm list -g sce
|
|
87
87
|
```
|
|
88
88
|
|
|
89
89
|
**If installed, find where:**
|
|
@@ -103,8 +103,8 @@ export PATH="/usr/local/bin:$PATH"
|
|
|
103
103
|
|
|
104
104
|
**Verify:**
|
|
105
105
|
```bash
|
|
106
|
-
which
|
|
107
|
-
where
|
|
106
|
+
which sce # macOS/Linux
|
|
107
|
+
where sce # Windows
|
|
108
108
|
```
|
|
109
109
|
|
|
110
110
|
---
|
|
@@ -113,11 +113,11 @@ where kse # Windows
|
|
|
113
113
|
|
|
114
114
|
**Symptoms:**
|
|
115
115
|
```
|
|
116
|
-
Error:
|
|
116
|
+
Error: sce requires Node.js 14 or higher
|
|
117
117
|
Current version: v12.x.x
|
|
118
118
|
```
|
|
119
119
|
|
|
120
|
-
**Cause:**
|
|
120
|
+
**Cause:** sce requires Node.js 14+
|
|
121
121
|
|
|
122
122
|
**Solution:**
|
|
123
123
|
|
|
@@ -145,12 +145,12 @@ node --version
|
|
|
145
145
|
|
|
146
146
|
**Symptoms:**
|
|
147
147
|
```bash
|
|
148
|
-
$
|
|
148
|
+
$ sce adopt
|
|
149
149
|
Error: Not a git repository
|
|
150
|
-
|
|
150
|
+
sce requires a git repository to track Specs
|
|
151
151
|
```
|
|
152
152
|
|
|
153
|
-
**Cause:**
|
|
153
|
+
**Cause:** sce requires git for version control
|
|
154
154
|
|
|
155
155
|
**Solution:**
|
|
156
156
|
|
|
@@ -160,33 +160,33 @@ git init
|
|
|
160
160
|
git add .
|
|
161
161
|
git commit -m "Initial commit"
|
|
162
162
|
|
|
163
|
-
# Now adopt
|
|
164
|
-
|
|
163
|
+
# Now adopt sce
|
|
164
|
+
sce adopt
|
|
165
165
|
```
|
|
166
166
|
|
|
167
167
|
**Why git is required:**
|
|
168
168
|
- Specs should be version controlled
|
|
169
169
|
- Team collaboration needs git
|
|
170
|
-
-
|
|
170
|
+
- sce uses git to detect project root
|
|
171
171
|
|
|
172
172
|
---
|
|
173
173
|
|
|
174
|
-
### Error: "
|
|
174
|
+
### Error: "sce.json already exists"
|
|
175
175
|
|
|
176
176
|
**Symptoms:**
|
|
177
177
|
```bash
|
|
178
|
-
$
|
|
179
|
-
Error:
|
|
180
|
-
Use '
|
|
178
|
+
$ sce adopt
|
|
179
|
+
Error: sce.json already exists
|
|
180
|
+
Use 'sce upgrade' to update existing installation
|
|
181
181
|
```
|
|
182
182
|
|
|
183
|
-
**Cause:** Project already has
|
|
183
|
+
**Cause:** Project already has sce installed
|
|
184
184
|
|
|
185
185
|
**Solutions:**
|
|
186
186
|
|
|
187
187
|
**If you want to upgrade:**
|
|
188
188
|
```bash
|
|
189
|
-
|
|
189
|
+
sce upgrade
|
|
190
190
|
```
|
|
191
191
|
|
|
192
192
|
**If you want to start fresh:**
|
|
@@ -194,12 +194,12 @@ kse upgrade
|
|
|
194
194
|
# Backup existing Specs
|
|
195
195
|
cp -r .kiro .kiro.backup
|
|
196
196
|
|
|
197
|
-
# Remove
|
|
198
|
-
rm
|
|
197
|
+
# Remove sce
|
|
198
|
+
rm sce.json
|
|
199
199
|
rm -rf .kiro
|
|
200
200
|
|
|
201
201
|
# Re-adopt
|
|
202
|
-
|
|
202
|
+
sce adopt
|
|
203
203
|
```
|
|
204
204
|
|
|
205
205
|
---
|
|
@@ -208,7 +208,7 @@ kse adopt
|
|
|
208
208
|
|
|
209
209
|
**Symptoms:**
|
|
210
210
|
```bash
|
|
211
|
-
$
|
|
211
|
+
$ sce adopt
|
|
212
212
|
Error: EACCES: permission denied, mkdir '.kiro'
|
|
213
213
|
```
|
|
214
214
|
|
|
@@ -228,7 +228,7 @@ sudo chown -R $USER:$USER .
|
|
|
228
228
|
|
|
229
229
|
# Or run in a directory you own
|
|
230
230
|
cd ~/projects/my-project
|
|
231
|
-
|
|
231
|
+
sce adopt
|
|
232
232
|
```
|
|
233
233
|
|
|
234
234
|
---
|
|
@@ -239,7 +239,7 @@ kse adopt
|
|
|
239
239
|
|
|
240
240
|
**Symptoms:**
|
|
241
241
|
```bash
|
|
242
|
-
$
|
|
242
|
+
$ sce status
|
|
243
243
|
No Specs found in .kiro/specs/
|
|
244
244
|
```
|
|
245
245
|
|
|
@@ -249,7 +249,7 @@ No Specs found in .kiro/specs/
|
|
|
249
249
|
|
|
250
250
|
**Create your first Spec:**
|
|
251
251
|
```bash
|
|
252
|
-
|
|
252
|
+
sce spec bootstrap --name 01-00-my-feature --non-interactive
|
|
253
253
|
```
|
|
254
254
|
|
|
255
255
|
**Or check if Specs exist:**
|
|
@@ -263,7 +263,7 @@ ls -la .kiro/specs/
|
|
|
263
263
|
|
|
264
264
|
**Symptoms:**
|
|
265
265
|
```bash
|
|
266
|
-
$
|
|
266
|
+
$ sce spec bootstrap --name my-feature --non-interactive
|
|
267
267
|
Error: Invalid Spec name format
|
|
268
268
|
Expected: {number}-{number}-{kebab-case-name}
|
|
269
269
|
```
|
|
@@ -275,13 +275,13 @@ Expected: {number}-{number}-{kebab-case-name}
|
|
|
275
275
|
**Use correct format:**
|
|
276
276
|
```bash
|
|
277
277
|
# ✅ Correct
|
|
278
|
-
|
|
279
|
-
|
|
278
|
+
sce spec bootstrap --name 01-00-user-login --non-interactive
|
|
279
|
+
sce spec bootstrap --name 02-01-fix-auth-bug --non-interactive
|
|
280
280
|
|
|
281
281
|
# ❌ Wrong
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
282
|
+
sce spec bootstrap --name user-login --non-interactive
|
|
283
|
+
sce spec bootstrap --name 01-user-login --non-interactive
|
|
284
|
+
sce spec bootstrap --name UserLogin --non-interactive
|
|
285
285
|
```
|
|
286
286
|
|
|
287
287
|
---
|
|
@@ -290,7 +290,7 @@ kse spec bootstrap --name UserLogin --non-interactive
|
|
|
290
290
|
|
|
291
291
|
**Symptoms:**
|
|
292
292
|
```bash
|
|
293
|
-
$
|
|
293
|
+
$ sce context export 01-00-user-login
|
|
294
294
|
Error: Failed to export context
|
|
295
295
|
```
|
|
296
296
|
|
|
@@ -302,7 +302,7 @@ Error: Failed to export context
|
|
|
302
302
|
ls .kiro/specs/01-00-user-login/
|
|
303
303
|
|
|
304
304
|
# If not, create it
|
|
305
|
-
|
|
305
|
+
sce spec bootstrap --name 01-00-user-login --non-interactive
|
|
306
306
|
```
|
|
307
307
|
|
|
308
308
|
**2. Missing Spec files:**
|
|
@@ -329,7 +329,7 @@ chmod 644 .kiro/specs/01-00-user-login/*.md
|
|
|
329
329
|
|
|
330
330
|
**Symptoms:**
|
|
331
331
|
```bash
|
|
332
|
-
$
|
|
332
|
+
$ sce task claim 01-00-user-login 1.1
|
|
333
333
|
Error: Task 1.1 not found in tasks.md
|
|
334
334
|
```
|
|
335
335
|
|
|
@@ -385,13 +385,13 @@ cat .kiro/specs/01-00-user-login/context-export.md
|
|
|
385
385
|
**3. Break down large contexts:**
|
|
386
386
|
```bash
|
|
387
387
|
# Instead of entire Spec, export specific task
|
|
388
|
-
|
|
388
|
+
sce prompt generate 01-00-user-login 1.1
|
|
389
389
|
```
|
|
390
390
|
|
|
391
391
|
**4. Use steering rules:**
|
|
392
392
|
```bash
|
|
393
393
|
# Include project-specific rules
|
|
394
|
-
|
|
394
|
+
sce context export 01-00-user-login --include-steering
|
|
395
395
|
```
|
|
396
396
|
|
|
397
397
|
---
|
|
@@ -408,7 +408,7 @@ kse context export 01-00-user-login --include-steering
|
|
|
408
408
|
**1. Use task-specific prompts:**
|
|
409
409
|
```bash
|
|
410
410
|
# Export just one task
|
|
411
|
-
|
|
411
|
+
sce prompt generate 01-00-user-login 1.1
|
|
412
412
|
```
|
|
413
413
|
|
|
414
414
|
**2. Simplify your Spec:**
|
|
@@ -471,7 +471,7 @@ class AuthController {
|
|
|
471
471
|
|
|
472
472
|
**Symptoms:**
|
|
473
473
|
```bash
|
|
474
|
-
$
|
|
474
|
+
$ sce watch status
|
|
475
475
|
Status: Running
|
|
476
476
|
|
|
477
477
|
# But editing Spec files doesn't trigger actions
|
|
@@ -481,13 +481,13 @@ Status: Running
|
|
|
481
481
|
|
|
482
482
|
**1. Restart watch mode:**
|
|
483
483
|
```bash
|
|
484
|
-
|
|
485
|
-
|
|
484
|
+
sce watch stop
|
|
485
|
+
sce watch start
|
|
486
486
|
```
|
|
487
487
|
|
|
488
488
|
**2. Check watch patterns:**
|
|
489
489
|
```bash
|
|
490
|
-
|
|
490
|
+
sce watch config
|
|
491
491
|
# Verify patterns include your files
|
|
492
492
|
```
|
|
493
493
|
|
|
@@ -500,7 +500,7 @@ kse watch config
|
|
|
500
500
|
**4. Increase watch delay:**
|
|
501
501
|
```bash
|
|
502
502
|
# If changes are too rapid
|
|
503
|
-
|
|
503
|
+
sce watch config --delay 1000
|
|
504
504
|
```
|
|
505
505
|
|
|
506
506
|
---
|
|
@@ -516,7 +516,7 @@ kse watch config --delay 1000
|
|
|
516
516
|
**1. Reduce watch scope:**
|
|
517
517
|
```bash
|
|
518
518
|
# Watch only specific Specs
|
|
519
|
-
|
|
519
|
+
sce watch start --spec 01-00-user-login
|
|
520
520
|
```
|
|
521
521
|
|
|
522
522
|
**2. Exclude unnecessary files:**
|
|
@@ -534,7 +534,7 @@ kse watch start --spec 01-00-user-login
|
|
|
534
534
|
**3. Stop when not needed:**
|
|
535
535
|
```bash
|
|
536
536
|
# Stop watch mode when not actively developing
|
|
537
|
-
|
|
537
|
+
sce watch stop
|
|
538
538
|
```
|
|
539
539
|
|
|
540
540
|
---
|
|
@@ -549,20 +549,20 @@ kse watch stop
|
|
|
549
549
|
|
|
550
550
|
**1. Check action configuration:**
|
|
551
551
|
```bash
|
|
552
|
-
|
|
552
|
+
sce watch config
|
|
553
553
|
# Verify actions are properly configured
|
|
554
554
|
```
|
|
555
555
|
|
|
556
556
|
**2. Check action logs:**
|
|
557
557
|
```bash
|
|
558
|
-
|
|
558
|
+
sce watch logs
|
|
559
559
|
# Look for error messages
|
|
560
560
|
```
|
|
561
561
|
|
|
562
562
|
**3. Test action manually:**
|
|
563
563
|
```bash
|
|
564
564
|
# Try running the action command directly
|
|
565
|
-
|
|
565
|
+
sce context export 01-00-user-login
|
|
566
566
|
```
|
|
567
567
|
|
|
568
568
|
---
|
|
@@ -573,7 +573,7 @@ kse context export 01-00-user-login
|
|
|
573
573
|
|
|
574
574
|
**Symptoms:**
|
|
575
575
|
```bash
|
|
576
|
-
$
|
|
576
|
+
$ sce docs diagnose
|
|
577
577
|
✅ Project is compliant
|
|
578
578
|
# But you know there are temporary files
|
|
579
579
|
```
|
|
@@ -584,13 +584,13 @@ $ kse docs diagnose
|
|
|
584
584
|
|
|
585
585
|
**1. Check what patterns are configured:**
|
|
586
586
|
```bash
|
|
587
|
-
|
|
587
|
+
sce docs config
|
|
588
588
|
# Look at "Temporary Patterns" section
|
|
589
589
|
```
|
|
590
590
|
|
|
591
591
|
**2. Add custom patterns if needed:**
|
|
592
592
|
```bash
|
|
593
|
-
|
|
593
|
+
sce docs config --set temporary-patterns "*-SUMMARY.md,SESSION-*.md,*-COMPLETE.md,TEMP-*.md,WIP-*.md,MVP-*.md,DRAFT-*.md"
|
|
594
594
|
```
|
|
595
595
|
|
|
596
596
|
**3. Manually check for violations:**
|
|
@@ -607,7 +607,7 @@ ls *.md
|
|
|
607
607
|
|
|
608
608
|
**Symptoms:**
|
|
609
609
|
```bash
|
|
610
|
-
$
|
|
610
|
+
$ sce docs cleanup
|
|
611
611
|
Deleted 0 file(s)
|
|
612
612
|
# But temporary files still exist
|
|
613
613
|
```
|
|
@@ -622,7 +622,7 @@ ls *.md
|
|
|
622
622
|
# If file is "notes.md" (doesn't match patterns)
|
|
623
623
|
# Either rename it to match pattern or delete manually
|
|
624
624
|
mv notes.md TEMP-notes.md
|
|
625
|
-
|
|
625
|
+
sce docs cleanup
|
|
626
626
|
```
|
|
627
627
|
|
|
628
628
|
**2. Files are in subdirectories:**
|
|
@@ -639,7 +639,7 @@ ls -la *.md
|
|
|
639
639
|
|
|
640
640
|
# Fix if needed
|
|
641
641
|
chmod u+w filename.md
|
|
642
|
-
|
|
642
|
+
sce docs cleanup
|
|
643
643
|
```
|
|
644
644
|
|
|
645
645
|
---
|
|
@@ -648,7 +648,7 @@ kse docs cleanup
|
|
|
648
648
|
|
|
649
649
|
**Symptoms:**
|
|
650
650
|
```bash
|
|
651
|
-
$
|
|
651
|
+
$ sce docs archive --spec my-spec
|
|
652
652
|
# Files moved to unexpected subdirectories
|
|
653
653
|
```
|
|
654
654
|
|
|
@@ -672,7 +672,7 @@ mv data.md analysis-report.md
|
|
|
672
672
|
mv tool.js test-script.js
|
|
673
673
|
|
|
674
674
|
# Then archive
|
|
675
|
-
|
|
675
|
+
sce docs archive --spec my-spec
|
|
676
676
|
```
|
|
677
677
|
|
|
678
678
|
---
|
|
@@ -690,10 +690,10 @@ $ git commit -m "Add feature"
|
|
|
690
690
|
**1. Hooks not installed:**
|
|
691
691
|
```bash
|
|
692
692
|
# Check status
|
|
693
|
-
|
|
693
|
+
sce docs hooks status
|
|
694
694
|
|
|
695
695
|
# If not installed
|
|
696
|
-
|
|
696
|
+
sce docs hooks install
|
|
697
697
|
```
|
|
698
698
|
|
|
699
699
|
**2. Hook file not executable:**
|
|
@@ -721,7 +721,7 @@ ls -la .git/
|
|
|
721
721
|
|
|
722
722
|
# If not, initialize git
|
|
723
723
|
git init
|
|
724
|
-
|
|
724
|
+
sce docs hooks install
|
|
725
725
|
```
|
|
726
726
|
|
|
727
727
|
---
|
|
@@ -730,7 +730,7 @@ kse docs hooks install
|
|
|
730
730
|
|
|
731
731
|
**Symptoms:**
|
|
732
732
|
```bash
|
|
733
|
-
$
|
|
733
|
+
$ sce docs validate --spec my-spec
|
|
734
734
|
❌ Missing required file: requirements.md
|
|
735
735
|
# But the file exists
|
|
736
736
|
```
|
|
@@ -751,7 +751,7 @@ ls -la .kiro/specs/my-spec/requirements.md
|
|
|
751
751
|
ls .kiro/specs/
|
|
752
752
|
|
|
753
753
|
# Use exact name
|
|
754
|
-
|
|
754
|
+
sce docs validate --spec 01-00-my-feature
|
|
755
755
|
```
|
|
756
756
|
|
|
757
757
|
**3. Case sensitivity (Linux/macOS):**
|
|
@@ -766,10 +766,10 @@ mv Requirements.md requirements.md
|
|
|
766
766
|
|
|
767
767
|
**Symptoms:**
|
|
768
768
|
```bash
|
|
769
|
-
$
|
|
769
|
+
$ sce docs config --set root-allowed-files "README.md,CUSTOM.md"
|
|
770
770
|
✅ Configuration updated
|
|
771
771
|
|
|
772
|
-
$
|
|
772
|
+
$ sce docs diagnose
|
|
773
773
|
# Still reports CUSTOM.md as violation
|
|
774
774
|
```
|
|
775
775
|
|
|
@@ -790,14 +790,14 @@ cat .kiro/config/docs.json
|
|
|
790
790
|
# Wrong: root-files
|
|
791
791
|
# Correct: root-allowed-files
|
|
792
792
|
|
|
793
|
-
|
|
793
|
+
sce docs config --set root-allowed-files "README.md,CUSTOM.md"
|
|
794
794
|
```
|
|
795
795
|
|
|
796
796
|
**3. Restart any running processes:**
|
|
797
797
|
```bash
|
|
798
798
|
# If watch mode is running
|
|
799
|
-
|
|
800
|
-
|
|
799
|
+
sce watch stop
|
|
800
|
+
sce watch start
|
|
801
801
|
```
|
|
802
802
|
|
|
803
803
|
---
|
|
@@ -806,7 +806,7 @@ kse watch start
|
|
|
806
806
|
|
|
807
807
|
**Symptoms:**
|
|
808
808
|
```bash
|
|
809
|
-
$
|
|
809
|
+
$ sce docs hooks install
|
|
810
810
|
Error: EACCES: permission denied, open '.git/hooks/pre-commit'
|
|
811
811
|
```
|
|
812
812
|
|
|
@@ -825,7 +825,7 @@ ls -la .git/hooks/
|
|
|
825
825
|
chmod u+w .git/hooks/
|
|
826
826
|
|
|
827
827
|
# Try again
|
|
828
|
-
|
|
828
|
+
sce docs hooks install
|
|
829
829
|
```
|
|
830
830
|
|
|
831
831
|
**3. Check if file is read-only:**
|
|
@@ -843,7 +843,7 @@ chmod u+w .git/hooks/pre-commit
|
|
|
843
843
|
|
|
844
844
|
**Symptoms:**
|
|
845
845
|
```bash
|
|
846
|
-
$
|
|
846
|
+
$ sce docs stats
|
|
847
847
|
⚠️ No execution history found
|
|
848
848
|
```
|
|
849
849
|
|
|
@@ -854,13 +854,13 @@ $ kse docs stats
|
|
|
854
854
|
**Run some governance commands:**
|
|
855
855
|
```bash
|
|
856
856
|
# Run diagnostic
|
|
857
|
-
|
|
857
|
+
sce docs diagnose
|
|
858
858
|
|
|
859
859
|
# Run cleanup
|
|
860
|
-
|
|
860
|
+
sce docs cleanup --dry-run
|
|
861
861
|
|
|
862
862
|
# Now check stats
|
|
863
|
-
|
|
863
|
+
sce docs stats
|
|
864
864
|
```
|
|
865
865
|
|
|
866
866
|
**Note:** Only actual operations are logged (not --dry-run for cleanup/archive)
|
|
@@ -871,7 +871,7 @@ kse docs stats
|
|
|
871
871
|
|
|
872
872
|
**Symptoms:**
|
|
873
873
|
```bash
|
|
874
|
-
$
|
|
874
|
+
$ sce docs report
|
|
875
875
|
Error: ENOENT: no such file or directory, open '.kiro/reports/...'
|
|
876
876
|
```
|
|
877
877
|
|
|
@@ -884,16 +884,16 @@ Error: ENOENT: no such file or directory, open '.kiro/reports/...'
|
|
|
884
884
|
mkdir -p .kiro/reports
|
|
885
885
|
|
|
886
886
|
# Try again
|
|
887
|
-
|
|
887
|
+
sce docs report
|
|
888
888
|
```
|
|
889
889
|
|
|
890
|
-
**Or let
|
|
890
|
+
**Or let sce create it:**
|
|
891
891
|
```bash
|
|
892
892
|
# Run diagnostic first (creates directory structure)
|
|
893
|
-
|
|
893
|
+
sce docs diagnose
|
|
894
894
|
|
|
895
895
|
# Then generate report
|
|
896
|
-
|
|
896
|
+
sce docs report
|
|
897
897
|
```
|
|
898
898
|
|
|
899
899
|
---
|
|
@@ -908,8 +908,8 @@ kse docs report
|
|
|
908
908
|
|
|
909
909
|
**Solution:**
|
|
910
910
|
```powershell
|
|
911
|
-
# Use CMD for
|
|
912
|
-
cmd /c
|
|
911
|
+
# Use CMD for sce commands
|
|
912
|
+
cmd /c sce status
|
|
913
913
|
|
|
914
914
|
# Or configure PowerShell execution policy
|
|
915
915
|
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
|
|
@@ -922,13 +922,13 @@ Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
|
|
|
922
922
|
**Solution:**
|
|
923
923
|
```bash
|
|
924
924
|
# ❌ Wrong on Windows
|
|
925
|
-
|
|
925
|
+
sce context export .kiro/specs/01-00-user-login
|
|
926
926
|
|
|
927
927
|
# ✅ Correct on Windows
|
|
928
|
-
|
|
928
|
+
sce context export .kiro\specs\01-00-user-login
|
|
929
929
|
|
|
930
|
-
# ✅ Or use forward slashes (
|
|
931
|
-
|
|
930
|
+
# ✅ Or use forward slashes (sce handles both)
|
|
931
|
+
sce context export 01-00-user-login
|
|
932
932
|
```
|
|
933
933
|
|
|
934
934
|
#### Line endings
|
|
@@ -948,15 +948,15 @@ echo "*.md text eol=lf" >> .gitattributes
|
|
|
948
948
|
|
|
949
949
|
### macOS Issues
|
|
950
950
|
|
|
951
|
-
#### Gatekeeper blocking
|
|
951
|
+
#### Gatekeeper blocking sce
|
|
952
952
|
|
|
953
|
-
**Issue:** "
|
|
953
|
+
**Issue:** "sce cannot be opened because it is from an unidentified developer"
|
|
954
954
|
|
|
955
955
|
**Solution:**
|
|
956
956
|
```bash
|
|
957
|
-
#
|
|
957
|
+
# sce is installed via npm, so this shouldn't happen
|
|
958
958
|
# But if it does:
|
|
959
|
-
xattr -d com.apple.quarantine $(which
|
|
959
|
+
xattr -d com.apple.quarantine $(which sce)
|
|
960
960
|
```
|
|
961
961
|
|
|
962
962
|
#### Permission issues
|
|
@@ -980,7 +980,7 @@ xattr -d com.apple.quarantine $(which kse)
|
|
|
980
980
|
|
|
981
981
|
**Solution:**
|
|
982
982
|
```bash
|
|
983
|
-
# Add
|
|
983
|
+
# Add sce to PATH in your shell config
|
|
984
984
|
# For bash: ~/.bashrc
|
|
985
985
|
# For zsh: ~/.zshrc
|
|
986
986
|
export PATH="$HOME/.npm-global/bin:$PATH"
|
|
@@ -996,10 +996,10 @@ source ~/.bashrc # or ~/.zshrc
|
|
|
996
996
|
**Solution:**
|
|
997
997
|
```bash
|
|
998
998
|
# Check file permissions
|
|
999
|
-
ls -la $(which
|
|
999
|
+
ls -la $(which sce)
|
|
1000
1000
|
|
|
1001
1001
|
# Should be executable
|
|
1002
|
-
chmod +x $(which
|
|
1002
|
+
chmod +x $(which sce)
|
|
1003
1003
|
```
|
|
1004
1004
|
|
|
1005
1005
|
---
|
|
@@ -1010,8 +1010,8 @@ chmod +x $(which kse)
|
|
|
1010
1010
|
|
|
1011
1011
|
**Gather information:**
|
|
1012
1012
|
```bash
|
|
1013
|
-
#
|
|
1014
|
-
|
|
1013
|
+
# sce version
|
|
1014
|
+
sce --version
|
|
1015
1015
|
|
|
1016
1016
|
# Node.js version
|
|
1017
1017
|
node --version
|
|
@@ -1044,7 +1044,7 @@ ls -la .kiro/
|
|
|
1044
1044
|
- Connect with other users
|
|
1045
1045
|
|
|
1046
1046
|
**4. Community:**
|
|
1047
|
-
- Discord: [Join our Discord](https://discord.gg/
|
|
1047
|
+
- Discord: [Join our Discord](https://discord.gg/sce)
|
|
1048
1048
|
- Twitter: [@kse_dev](https://twitter.com/kse_dev)
|
|
1049
1049
|
|
|
1050
1050
|
### Creating a Good Issue Report
|
|
@@ -1054,7 +1054,7 @@ ls -la .kiro/
|
|
|
1054
1054
|
2. **What you expected to happen**
|
|
1055
1055
|
3. **What actually happened**
|
|
1056
1056
|
4. **Error messages** (full text)
|
|
1057
|
-
5. **Environment info** (OS, Node version,
|
|
1057
|
+
5. **Environment info** (OS, Node version, sce version)
|
|
1058
1058
|
6. **Steps to reproduce**
|
|
1059
1059
|
|
|
1060
1060
|
**Example:**
|
|
@@ -1063,8 +1063,8 @@ ls -la .kiro/
|
|
|
1063
1063
|
Context export fails for Spec with Chinese characters in filename
|
|
1064
1064
|
|
|
1065
1065
|
## Steps to Reproduce
|
|
1066
|
-
1. Create Spec:
|
|
1067
|
-
2. Run:
|
|
1066
|
+
1. Create Spec: sce spec bootstrap --name 01-00-用户登录 --non-interactive
|
|
1067
|
+
2. Run: sce context export 01-00-用户登录
|
|
1068
1068
|
3. Error occurs
|
|
1069
1069
|
|
|
1070
1070
|
## Expected Behavior
|
|
@@ -1076,7 +1076,7 @@ Error: Invalid filename
|
|
|
1076
1076
|
## Environment
|
|
1077
1077
|
- OS: macOS 13.0
|
|
1078
1078
|
- Node: v18.12.0
|
|
1079
|
-
-
|
|
1079
|
+
- sce: v1.0.0
|
|
1080
1080
|
|
|
1081
1081
|
## Error Message
|
|
1082
1082
|
```
|
|
@@ -1088,10 +1088,10 @@ Error: EINVAL: invalid filename
|
|
|
1088
1088
|
|
|
1089
1089
|
## Related Documentation
|
|
1090
1090
|
|
|
1091
|
-
- **[Quick Start Guide](quick-start.md)** - Get started with
|
|
1091
|
+
- **[Quick Start Guide](quick-start.md)** - Get started with sce
|
|
1092
1092
|
- **[FAQ](faq.md)** - Frequently asked questions
|
|
1093
|
-
- **[Command Reference](command-reference.md)** - All
|
|
1094
|
-
- **[Integration Modes](integration-modes.md)** - Using
|
|
1093
|
+
- **[Command Reference](command-reference.md)** - All sce commands
|
|
1094
|
+
- **[Integration Modes](integration-modes.md)** - Using sce with AI tools
|
|
1095
1095
|
|
|
1096
1096
|
---
|
|
1097
1097
|
|
|
@@ -1099,7 +1099,7 @@ Error: EINVAL: invalid filename
|
|
|
1099
1099
|
|
|
1100
1100
|
**Most Common Issues:**
|
|
1101
1101
|
1. **Installation** - Use npx or fix npm permissions
|
|
1102
|
-
2. **Command not found** - Add
|
|
1102
|
+
2. **Command not found** - Add sce to PATH
|
|
1103
1103
|
3. **Spec name format** - Use XX-YY-feature-name format
|
|
1104
1104
|
4. **Context too large** - Use task-specific prompts
|
|
1105
1105
|
5. **Watch mode** - Restart or check configuration
|
|
@@ -1107,23 +1107,23 @@ Error: EINVAL: invalid filename
|
|
|
1107
1107
|
|
|
1108
1108
|
**Quick Fixes:**
|
|
1109
1109
|
```bash
|
|
1110
|
-
# Restart
|
|
1111
|
-
|
|
1110
|
+
# Restart sce watch mode
|
|
1111
|
+
sce watch stop && sce watch start
|
|
1112
1112
|
|
|
1113
1113
|
# Verify installation
|
|
1114
|
-
|
|
1114
|
+
sce --version
|
|
1115
1115
|
|
|
1116
1116
|
# Check Spec structure
|
|
1117
1117
|
ls -la .kiro/specs/
|
|
1118
1118
|
|
|
1119
1119
|
# Test context export
|
|
1120
|
-
|
|
1120
|
+
sce context export spec-name
|
|
1121
1121
|
|
|
1122
1122
|
# Check document compliance
|
|
1123
|
-
|
|
1123
|
+
sce docs diagnose
|
|
1124
1124
|
|
|
1125
1125
|
# Clean up temporary files
|
|
1126
|
-
|
|
1126
|
+
sce docs cleanup --dry-run
|
|
1127
1127
|
```
|
|
1128
1128
|
|
|
1129
1129
|
**Still stuck?** → [Create an issue](https://github.com/heguangyong/scene-capability-engine/issues/new)
|