scene-capability-engine 3.0.0 → 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.
Files changed (170) hide show
  1. package/CHANGELOG.md +234 -233
  2. package/LICENSE +2 -2
  3. package/README.md +8 -11
  4. package/README.zh.md +7 -10
  5. package/bin/kse.js +1 -1
  6. package/bin/sce.js +1 -1
  7. package/bin/sco.js +1 -1
  8. package/docs/331-poc-adaptation-roadmap.md +25 -25
  9. package/docs/331-poc-dual-track-integration-guide.md +26 -26
  10. package/docs/331-poc-weekly-delivery-checklist.md +8 -8
  11. package/docs/OFFLINE_INSTALL.md +10 -10
  12. package/docs/README.md +24 -24
  13. package/docs/adopt-migration-guide.md +51 -51
  14. package/docs/adoption-guide.md +56 -56
  15. package/docs/agent-hooks-analysis.md +52 -52
  16. package/docs/architecture.md +6 -6
  17. package/docs/articles/ai-driven-development-philosophy-and-practice-review.md +4 -4
  18. package/docs/articles/ai-driven-development-philosophy-and-practice.en.md +9 -9
  19. package/docs/articles/ai-driven-development-philosophy-and-practice.md +10 -10
  20. package/docs/autonomous-control-guide.md +89 -89
  21. package/docs/command-reference.md +11 -11
  22. package/docs/community.md +4 -4
  23. package/docs/cross-tool-guide.md +47 -47
  24. package/docs/developer-guide.md +5 -5
  25. package/docs/document-governance.md +91 -91
  26. package/docs/environment-management-guide.md +53 -53
  27. package/docs/examples/add-export-command/design.md +2 -2
  28. package/docs/examples/add-export-command/requirements.md +5 -5
  29. package/docs/examples/add-export-command/tasks.md +2 -2
  30. package/docs/faq.md +69 -69
  31. package/docs/handoffs/evidence/ontology/moqui-template-baseline-2026-02-17-232922.json +9 -9
  32. package/docs/handoffs/evidence/ontology/moqui-template-baseline-2026-02-17-232922.md +3 -3
  33. package/docs/integration-modes.md +60 -60
  34. package/docs/integration-philosophy.md +48 -48
  35. package/docs/knowledge-management-guide.md +21 -21
  36. package/docs/manual-workflows-guide.md +20 -20
  37. package/docs/moqui-capability-matrix.md +22 -22
  38. package/docs/moqui-template-core-library-playbook.md +20 -20
  39. package/docs/multi-agent-coordination-guide.md +19 -19
  40. package/docs/multi-repo-management-guide.md +93 -93
  41. package/docs/quick-start-with-ai-tools.md +36 -36
  42. package/docs/quick-start.md +16 -16
  43. package/docs/release-checklist.md +7 -7
  44. package/docs/releases/v1.46.2-validation.md +1 -1
  45. package/docs/releases/v1.46.2.md +10 -10
  46. package/docs/scene-runtime-guide.md +42 -42
  47. package/docs/spec-collaboration-guide.md +43 -43
  48. package/docs/spec-locking-guide.md +26 -26
  49. package/docs/spec-numbering-guide.md +6 -6
  50. package/docs/spec-workflow.md +25 -25
  51. package/docs/steering-strategy-guide.md +36 -36
  52. package/docs/team-collaboration-guide.md +23 -23
  53. package/docs/testing-strategy.md +2 -2
  54. package/docs/tools/claude-guide.md +26 -26
  55. package/docs/tools/cursor-guide.md +31 -31
  56. package/docs/tools/generic-guide.md +22 -22
  57. package/docs/tools/kiro-guide.md +43 -43
  58. package/docs/tools/vscode-guide.md +18 -18
  59. package/docs/tools/windsurf-guide.md +50 -50
  60. package/docs/troubleshooting.md +116 -116
  61. package/docs/upgrade-guide.md +49 -49
  62. package/docs/value-observability-guide.md +6 -6
  63. package/docs/zh/README.md +22 -22
  64. package/docs/zh/quick-start.md +34 -34
  65. package/docs/zh/release-checklist.md +6 -6
  66. package/docs/zh/releases/v1.46.2-validation.md +1 -1
  67. package/docs/zh/releases/v1.46.2.md +9 -9
  68. package/docs/zh/spec-numbering-guide.md +6 -6
  69. package/docs/zh/tools/claude-guide.md +14 -14
  70. package/docs/zh/tools/cursor-guide.md +18 -18
  71. package/docs/zh/tools/generic-guide.md +40 -40
  72. package/docs/zh/tools/kiro-guide.md +50 -50
  73. package/docs/zh/tools/vscode-guide.md +20 -20
  74. package/docs/zh/tools/windsurf-guide.md +49 -49
  75. package/docs/zh/value-observability-guide.md +6 -6
  76. package/docs//344/272/244/344/273/230/346/270/205/345/215/225.md +4 -4
  77. package/lib/adoption/adoption-logger.js +1 -1
  78. package/lib/adoption/adoption-strategy.js +3 -3
  79. package/lib/adoption/detection-engine.js +1 -1
  80. package/lib/adoption/error-formatter.js +17 -17
  81. package/lib/adoption/progress-reporter.js +2 -2
  82. package/lib/adoption/smart-orchestrator.js +2 -2
  83. package/lib/adoption/strategy-selector.js +2 -2
  84. package/lib/adoption/summary-generator.js +3 -3
  85. package/lib/auto/autonomous-engine.js +2 -2
  86. package/lib/auto/close-loop-runner.js +9 -9
  87. package/lib/backup/backup-system.js +2 -2
  88. package/lib/collab/collab-manager.js +2 -2
  89. package/lib/commands/adopt.js +16 -16
  90. package/lib/commands/auto.js +93 -93
  91. package/lib/commands/collab.js +8 -8
  92. package/lib/commands/docs.js +26 -26
  93. package/lib/commands/doctor.js +2 -2
  94. package/lib/commands/env.js +14 -14
  95. package/lib/commands/knowledge.js +13 -13
  96. package/lib/commands/lock.js +6 -6
  97. package/lib/commands/ops.js +19 -19
  98. package/lib/commands/orchestrate.js +5 -5
  99. package/lib/commands/prompt.js +3 -3
  100. package/lib/commands/rollback.js +4 -4
  101. package/lib/commands/scene.js +29 -29
  102. package/lib/commands/spec-bootstrap.js +1 -1
  103. package/lib/commands/spec-gate.js +1 -1
  104. package/lib/commands/spec-pipeline.js +1 -1
  105. package/lib/commands/task.js +1 -1
  106. package/lib/commands/templates.js +27 -27
  107. package/lib/commands/upgrade.js +8 -8
  108. package/lib/commands/value.js +4 -4
  109. package/lib/commands/watch.js +9 -9
  110. package/lib/commands/workflows.js +5 -5
  111. package/lib/commands/workspace-multi.js +17 -17
  112. package/lib/commands/workspace.js +5 -5
  113. package/lib/context/context-exporter.js +1 -1
  114. package/lib/context/prompt-generator.js +1 -1
  115. package/lib/data/moqui-capability-lexicon.json +1 -1
  116. package/lib/environment/environment-manager.js +1 -1
  117. package/lib/gitignore/gitignore-detector.js +4 -4
  118. package/lib/gitignore/gitignore-integration.js +2 -2
  119. package/lib/gitignore/gitignore-transformer.js +3 -3
  120. package/lib/gitignore/layered-rules-template.js +2 -2
  121. package/lib/governance/diagnostic-engine.js +4 -4
  122. package/lib/governance/doc-reference-checker.js +1 -1
  123. package/lib/governance/hooks-manager.js +5 -5
  124. package/lib/governance/reporter.js +1 -1
  125. package/lib/knowledge/knowledge-manager.js +6 -6
  126. package/lib/orchestrator/agent-spawner.js +1 -1
  127. package/lib/orchestrator/bootstrap-prompt-builder.js +2 -2
  128. package/lib/repo/config-manager.js +2 -2
  129. package/lib/repo/handlers/init-handler.js +3 -3
  130. package/lib/scene-runtime/audit-emitter.js +2 -2
  131. package/lib/scene-runtime/binding-plugin-loader.js +1 -1
  132. package/lib/scene-runtime/moqui-adapter.js +2 -2
  133. package/lib/scene-runtime/moqui-extractor.js +3 -3
  134. package/lib/scene-runtime/scene-loader.js +3 -3
  135. package/lib/scene-runtime/scene-template-linter.js +1 -1
  136. package/lib/scene-runtime/templates/scene-template-erp-query-v0.1.yaml +1 -1
  137. package/lib/scene-runtime/templates/scene-template-hybrid-shadow-v0.1.yaml +1 -1
  138. package/lib/spec/multi-spec-orchestrate.js +1 -1
  139. package/lib/spec-gate/rules/default-rules.js +1 -1
  140. package/lib/steering/adoption-config.js +1 -1
  141. package/lib/steering/compliance-auto-fixer.js +1 -1
  142. package/lib/steering/compliance-cache.js +3 -3
  143. package/lib/steering/compliance-error-reporter.js +1 -1
  144. package/lib/steering/index.js +1 -1
  145. package/lib/steering/steering-manager.js +7 -7
  146. package/lib/task/task-claimer.js +2 -1
  147. package/lib/templates/metadata-collector.js +6 -6
  148. package/lib/templates/template-creator.js +2 -2
  149. package/lib/templates/template-exporter.js +12 -12
  150. package/lib/upgrade/migration-engine.js +4 -4
  151. package/lib/utils/tool-detector.js +25 -25
  152. package/lib/utils/validation.js +3 -3
  153. package/lib/version/version-checker.js +13 -13
  154. package/lib/version/version-manager.js +7 -7
  155. package/lib/watch/presets.js +4 -4
  156. package/lib/workspace/multi/path-utils.js +1 -1
  157. package/lib/workspace/multi/workspace-context-resolver.js +9 -9
  158. package/lib/workspace/multi/workspace-registry.js +2 -2
  159. package/lib/workspace/multi/workspace-state-manager.js +1 -1
  160. package/lib/workspace/multi/workspace.js +1 -1
  161. package/lib/workspace/workspace-sync.js +1 -1
  162. package/locales/en.json +1 -1
  163. package/locales/zh.json +1 -1
  164. package/package.json +5 -6
  165. package/template/.kiro/README.md +40 -40
  166. package/template/.kiro/specs/SPEC_WORKFLOW_GUIDE.md +3 -3
  167. package/template/.kiro/steering/CORE_PRINCIPLES.md +3 -3
  168. package/template/.kiro/steering/ENVIRONMENT.md +2 -2
  169. package/template/README.md +3 -3
  170. /package/bin/{kiro-spec-engine.js → scene-capability-engine.js} +0 -0
@@ -1,6 +1,6 @@
1
1
  # Project Adoption Guide
2
2
 
3
- This guide explains how to adopt existing projects into Kiro Spec Engine (KSE) using the new **zero-interaction smart adoption system**.
3
+ This guide explains how to adopt existing projects into Scene Capability Engine (sce) using the new **zero-interaction smart adoption system**.
4
4
 
5
5
  ## Table of Contents
6
6
 
@@ -17,7 +17,7 @@ This guide explains how to adopt existing projects into Kiro Spec Engine (KSE) u
17
17
 
18
18
  ## Overview
19
19
 
20
- The `kse adopt` command now features **smart, zero-interaction adoption** that automatically handles project integration without asking any questions.
20
+ The `sce adopt` command now features **smart, zero-interaction adoption** that automatically handles project integration without asking any questions.
21
21
 
22
22
  **Key Features**:
23
23
  - ✅ **Zero Questions** - No user input required
@@ -38,7 +38,7 @@ The `kse adopt` command now features **smart, zero-interaction adoption** that a
38
38
  Simply run:
39
39
  ```bash
40
40
  cd your-project
41
- kse adopt
41
+ sce adopt
42
42
  ```
43
43
 
44
44
  That's it! The system will:
@@ -50,7 +50,7 @@ That's it! The system will:
50
50
 
51
51
  **Example Output**:
52
52
  ```
53
- 🔥 Kiro Spec Engine - Project Adoption
53
+ 🔥 Scene Capability Engine - Project Adoption
54
54
 
55
55
  📦 Analyzing project structure... ✅
56
56
  📋 Creating adoption plan... ✅
@@ -77,14 +77,14 @@ Adoption Plan:
77
77
  Preserved: 3 specs, 2 custom files
78
78
 
79
79
  💡 Your original files are safely backed up.
80
- To restore: kse rollback backup-20260128-143022
80
+ To restore: sce rollback backup-20260128-143022
81
81
  ```
82
82
 
83
83
  ### Preview Changes First
84
84
 
85
85
  Want to see what would happen without making changes?
86
86
  ```bash
87
- kse adopt --dry-run
87
+ sce adopt --dry-run
88
88
  ```
89
89
 
90
90
  ---
@@ -146,7 +146,7 @@ Before any modifications:
146
146
 
147
147
  **Example**:
148
148
  ```bash
149
- $ kse adopt
149
+ $ sce adopt
150
150
 
151
151
  Mode: Fresh
152
152
  Actions:
@@ -168,14 +168,14 @@ Actions:
168
168
 
169
169
  **Example**:
170
170
  ```bash
171
- $ kse adopt
171
+ $ sce adopt
172
172
 
173
173
  ✅ Project already adopted with latest version (v1.9.0)
174
174
  No changes needed.
175
175
 
176
176
  💡 Next steps:
177
- - Create a spec: kse spec bootstrap --name 01-00-my-feature --non-interactive
178
- - Check status: kse status
177
+ - Create a spec: sce spec bootstrap --name 01-00-my-feature --non-interactive
178
+ - Check status: sce status
179
179
  ```
180
180
 
181
181
  ### 3. Smart Update
@@ -190,7 +190,7 @@ No changes needed.
190
190
 
191
191
  **Example**:
192
192
  ```bash
193
- $ kse adopt
193
+ $ sce adopt
194
194
 
195
195
  Mode: Smart Update (v1.8.0 → v1.9.0)
196
196
  Backup: backup-20260128-143022
@@ -212,7 +212,7 @@ Preserved: 3 specs, CURRENT_CONTEXT.md
212
212
 
213
213
  **Example**:
214
214
  ```bash
215
- $ kse adopt
215
+ $ sce adopt
216
216
 
217
217
  Mode: Smart Adopt
218
218
  Backup: backup-20260128-143022
@@ -224,26 +224,26 @@ Preserved: 5 specs, 3 custom files
224
224
 
225
225
  ### 5. Warning Mode
226
226
 
227
- **When**: Local version is newer than KSE version
227
+ **When**: Local version is newer than sce version
228
228
 
229
229
  **Actions**:
230
230
  - Displays warning message
231
231
  - No changes made
232
- - Suggests upgrading KSE
232
+ - Suggests upgrading sce
233
233
 
234
234
  **Example**:
235
235
  ```bash
236
- $ kse adopt
236
+ $ sce adopt
237
237
 
238
- ⚠️ Warning: Project version (v2.0.0) is newer than KSE version (v1.9.0)
238
+ ⚠️ Warning: Project version (v2.0.0) is newer than sce version (v1.9.0)
239
239
 
240
240
  Possible causes:
241
- - You downgraded KSE
242
- - Project was adopted with newer KSE version
241
+ - You downgraded sce
242
+ - Project was adopted with newer sce version
243
243
 
244
244
  Solutions:
245
- 1. Upgrade KSE: npm install -g kiro-spec-engine@latest
246
- 2. Force adopt: kse adopt --force (not recommended)
245
+ 1. Upgrade sce: npm install -g scene-capability-engine@latest
246
+ 2. Force adopt: sce adopt --force (not recommended)
247
247
 
248
248
  No changes made.
249
249
  ```
@@ -256,29 +256,29 @@ No changes made.
256
256
 
257
257
  ```bash
258
258
  # Default: Smart, automatic, safe
259
- kse adopt
259
+ sce adopt
260
260
 
261
261
  # Preview changes without executing
262
- kse adopt --dry-run
262
+ sce adopt --dry-run
263
263
 
264
264
  # Show detailed logs
265
- kse adopt --verbose
265
+ sce adopt --verbose
266
266
 
267
267
  # Force overwrite (with backup)
268
- kse adopt --force
268
+ sce adopt --force
269
269
  ```
270
270
 
271
271
  ### Advanced Options
272
272
 
273
273
  ```bash
274
274
  # Skip backup (dangerous, not recommended)
275
- kse adopt --no-backup
275
+ sce adopt --no-backup
276
276
 
277
277
  # Skip template updates
278
- kse adopt --skip-update
278
+ sce adopt --skip-update
279
279
 
280
280
  # Enable interactive mode (legacy behavior)
281
- kse adopt --interactive
281
+ sce adopt --interactive
282
282
  ```
283
283
 
284
284
  ### Option Details
@@ -298,25 +298,25 @@ kse adopt --interactive
298
298
 
299
299
  ### Scenario 1: First Time User
300
300
 
301
- **Situation**: You just installed KSE and want to adopt your project.
301
+ **Situation**: You just installed sce and want to adopt your project.
302
302
 
303
303
  **Solution**:
304
304
  ```bash
305
305
  cd your-project
306
- kse adopt
306
+ sce adopt
307
307
  ```
308
308
 
309
309
  **What happens**: Fresh adoption creates complete structure, no questions asked.
310
310
 
311
311
  ---
312
312
 
313
- ### Scenario 2: Upgrading KSE Version
313
+ ### Scenario 2: Upgrading sce Version
314
314
 
315
- **Situation**: You upgraded KSE from v1.8.0 to v1.9.0.
315
+ **Situation**: You upgraded sce from v1.8.0 to v1.9.0.
316
316
 
317
317
  **Solution**:
318
318
  ```bash
319
- kse adopt
319
+ sce adopt
320
320
  ```
321
321
 
322
322
  **What happens**: Smart Update backs up and updates template files, preserves your specs.
@@ -329,7 +329,7 @@ kse adopt
329
329
 
330
330
  **Solution**:
331
331
  ```bash
332
- kse adopt --dry-run
332
+ sce adopt --dry-run
333
333
  ```
334
334
 
335
335
  **What happens**: Shows detailed plan without making any changes.
@@ -342,7 +342,7 @@ kse adopt --dry-run
342
342
 
343
343
  **Solution**:
344
344
  ```bash
345
- kse adopt --verbose
345
+ sce adopt --verbose
346
346
  ```
347
347
 
348
348
  **What happens**: Shows detailed logs of every operation.
@@ -355,7 +355,7 @@ kse adopt --verbose
355
355
 
356
356
  **Solution**:
357
357
  ```bash
358
- kse rollback backup-20260128-143022
358
+ sce rollback backup-20260128-143022
359
359
  ```
360
360
 
361
361
  **What happens**: Restores all files from backup.
@@ -371,7 +371,7 @@ kse rollback backup-20260128-143022
371
371
  # Bash script
372
372
  for dir in project1 project2 project3; do
373
373
  cd $dir
374
- kse adopt
374
+ sce adopt
375
375
  cd ..
376
376
  done
377
377
  ```
@@ -429,16 +429,16 @@ chmod -R u+w .kiro/
429
429
 
430
430
  **Error**:
431
431
  ```
432
- ⚠️ Warning: Project version (v2.0.0) is newer than KSE version (v1.9.0)
432
+ ⚠️ Warning: Project version (v2.0.0) is newer than sce version (v1.9.0)
433
433
  ```
434
434
 
435
435
  **Solutions**:
436
436
  ```bash
437
- # Upgrade KSE to latest
438
- npm install -g kiro-spec-engine@latest
437
+ # Upgrade sce to latest
438
+ npm install -g scene-capability-engine@latest
439
439
 
440
440
  # Then adopt again
441
- kse adopt
441
+ sce adopt
442
442
  ```
443
443
 
444
444
  ---
@@ -449,7 +449,7 @@ kse adopt
449
449
 
450
450
  **Solution**:
451
451
  ```bash
452
- kse adopt --interactive
452
+ sce adopt --interactive
453
453
  ```
454
454
 
455
455
  **What happens**: Enables legacy interactive mode with prompts.
@@ -486,7 +486,7 @@ kse adopt --interactive
486
486
 
487
487
  If you prefer the old interactive behavior:
488
488
  ```bash
489
- kse adopt --interactive
489
+ sce adopt --interactive
490
490
  ```
491
491
 
492
492
  This enables:
@@ -510,8 +510,8 @@ For most users, the new smart mode is recommended:
510
510
 
511
511
  For peace of mind:
512
512
  ```bash
513
- kse adopt --dry-run
514
- kse adopt
513
+ sce adopt --dry-run
514
+ sce adopt
515
515
  ```
516
516
 
517
517
  ### 2. Commit Before Adoption
@@ -519,16 +519,16 @@ kse adopt
519
519
  If using version control:
520
520
  ```bash
521
521
  git add -A
522
- git commit -m "Before KSE adoption"
523
- kse adopt
522
+ git commit -m "Before sce adoption"
523
+ sce adopt
524
524
  ```
525
525
 
526
526
  ### 3. Verify After Adoption
527
527
 
528
528
  Check everything is correct:
529
529
  ```bash
530
- kse status
531
- kse version-info
530
+ sce status
531
+ sce version-info
532
532
  ```
533
533
 
534
534
  ### 4. Keep Backups
@@ -543,7 +543,7 @@ ls .kiro/backups/
543
543
 
544
544
  If something seems wrong:
545
545
  ```bash
546
- kse adopt --verbose
546
+ sce adopt --verbose
547
547
  ```
548
548
 
549
549
  ---
@@ -554,7 +554,7 @@ After adoption, your project will have:
554
554
 
555
555
  ```
556
556
  your-project/
557
- ├── .kiro/ # KSE core directory
557
+ ├── .kiro/ # sce core directory
558
558
  │ ├── version.json # Version tracking
559
559
  │ ├── specs/ # Spec storage
560
560
  │ ├── steering/ # AI behavior rules
@@ -579,18 +579,18 @@ After successful adoption:
579
579
  1. **Verify .gitignore configuration**:
580
580
  The adoption process automatically checks and fixes your `.gitignore` for team collaboration. If you see a warning about .gitignore, you can manually fix it:
581
581
  ```bash
582
- kse doctor --fix-gitignore
582
+ sce doctor --fix-gitignore
583
583
  ```
584
584
  Learn more: [Team Collaboration Guide](./team-collaboration-guide.md)
585
585
 
586
586
  2. **Create your first spec**:
587
587
  ```bash
588
- kse spec bootstrap --name 01-00-my-feature --non-interactive
588
+ sce spec bootstrap --name 01-00-my-feature --non-interactive
589
589
  ```
590
590
 
591
591
  3. **Check project status**:
592
592
  ```bash
593
- kse status
593
+ sce status
594
594
  ```
595
595
 
596
596
  4. **Read the spec workflow guide**:
@@ -598,7 +598,7 @@ After successful adoption:
598
598
 
599
599
  5. **Explore Ultrawork**:
600
600
  ```bash
601
- kse enhance requirements .kiro/specs/01-00-my-feature/requirements.md
601
+ sce enhance requirements .kiro/specs/01-00-my-feature/requirements.md
602
602
  ```
603
603
 
604
604
  ---
@@ -606,8 +606,8 @@ After successful adoption:
606
606
  ## Getting Help
607
607
 
608
608
  - **Documentation**: Check README.md in your `.kiro/` directory
609
- - **System Check**: `kse doctor`
610
- - **Version Info**: `kse version-info`
609
+ - **System Check**: `sce doctor`
610
+ - **Version Info**: `sce version-info`
611
611
  - **Issues**: https://github.com/heguangyong/scene-capability-engine/issues
612
612
 
613
613
  ---