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
|
@@ -11,7 +11,7 @@ The Multi-Repository Management feature enables you to manage multiple Git subre
|
|
|
11
11
|
Navigate to your project root and run:
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
|
|
14
|
+
sce repo init
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
This command:
|
|
@@ -36,7 +36,7 @@ Configuration saved to .kiro/project-repos.json
|
|
|
36
36
|
View the status of all repositories at once:
|
|
37
37
|
|
|
38
38
|
```bash
|
|
39
|
-
|
|
39
|
+
sce repo status
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
**Example output:**
|
|
@@ -53,7 +53,7 @@ kse repo status
|
|
|
53
53
|
For detailed file-level changes:
|
|
54
54
|
|
|
55
55
|
```bash
|
|
56
|
-
|
|
56
|
+
sce repo status --verbose
|
|
57
57
|
```
|
|
58
58
|
|
|
59
59
|
### 3. Execute Commands Across Repositories
|
|
@@ -61,7 +61,7 @@ kse repo status --verbose
|
|
|
61
61
|
Run the same Git command in all repositories:
|
|
62
62
|
|
|
63
63
|
```bash
|
|
64
|
-
|
|
64
|
+
sce repo exec "git pull"
|
|
65
65
|
```
|
|
66
66
|
|
|
67
67
|
**Example output:**
|
|
@@ -84,7 +84,7 @@ Summary: 3 succeeded, 0 failed
|
|
|
84
84
|
Preview commands without executing (dry-run):
|
|
85
85
|
|
|
86
86
|
```bash
|
|
87
|
-
|
|
87
|
+
sce repo exec "git pull" --dry-run
|
|
88
88
|
```
|
|
89
89
|
|
|
90
90
|
### 4. Health Check
|
|
@@ -92,7 +92,7 @@ kse repo exec "git pull" --dry-run
|
|
|
92
92
|
Verify that all repositories are properly configured:
|
|
93
93
|
|
|
94
94
|
```bash
|
|
95
|
-
|
|
95
|
+
sce repo health
|
|
96
96
|
```
|
|
97
97
|
|
|
98
98
|
**Example output:**
|
|
@@ -197,7 +197,7 @@ Paths can be specified as:
|
|
|
197
197
|
|
|
198
198
|
### Overview
|
|
199
199
|
|
|
200
|
-
Starting with v1.21.0, you can manually create and edit the `.kiro/project-repos.json` configuration file without relying solely on `
|
|
200
|
+
Starting with v1.21.0, you can manually create and edit the `.kiro/project-repos.json` configuration file without relying solely on `sce repo init`. This is useful for:
|
|
201
201
|
|
|
202
202
|
- Curating a specific list of repositories
|
|
203
203
|
- Removing false positives from auto-scan
|
|
@@ -292,7 +292,7 @@ For more detailed configurations, you can include all optional fields:
|
|
|
292
292
|
|
|
293
293
|
### Validation Rules
|
|
294
294
|
|
|
295
|
-
When you manually create or edit the configuration, `
|
|
295
|
+
When you manually create or edit the configuration, `sce` validates:
|
|
296
296
|
|
|
297
297
|
1. **File Format**: Must be valid JSON
|
|
298
298
|
2. **Structure**: Must have a `repositories` array
|
|
@@ -332,10 +332,10 @@ Create `.kiro/project-repos.json` with your repositories:
|
|
|
332
332
|
**Step 3: Verify the configuration**
|
|
333
333
|
|
|
334
334
|
```bash
|
|
335
|
-
|
|
335
|
+
sce repo status
|
|
336
336
|
```
|
|
337
337
|
|
|
338
|
-
If there are validation errors, `
|
|
338
|
+
If there are validation errors, `sce` will display clear error messages:
|
|
339
339
|
|
|
340
340
|
```
|
|
341
341
|
Error: Repository path validation failed
|
|
@@ -451,7 +451,7 @@ git init
|
|
|
451
451
|
|
|
452
452
|
### Overview
|
|
453
453
|
|
|
454
|
-
Nested repository support allows `
|
|
454
|
+
Nested repository support allows `sce` to discover and manage Git repositories that are nested inside other Git repositories. This is useful for projects with complex structures where components are organized as independent Git repositories within a parent repository.
|
|
455
455
|
|
|
456
456
|
**Example structure:**
|
|
457
457
|
```
|
|
@@ -473,19 +473,19 @@ project-root/
|
|
|
473
473
|
|
|
474
474
|
### Enabling Nested Scanning
|
|
475
475
|
|
|
476
|
-
Nested scanning is **enabled by default** in `
|
|
476
|
+
Nested scanning is **enabled by default** in `sce repo init`. To explicitly control this behavior:
|
|
477
477
|
|
|
478
478
|
```bash
|
|
479
479
|
# Enable nested scanning (default)
|
|
480
|
-
|
|
480
|
+
sce repo init --nested
|
|
481
481
|
|
|
482
482
|
# Disable nested scanning (stop at first repo)
|
|
483
|
-
|
|
483
|
+
sce repo init --no-nested
|
|
484
484
|
```
|
|
485
485
|
|
|
486
486
|
### Parent-Child Relationships
|
|
487
487
|
|
|
488
|
-
When nested repositories are discovered, `
|
|
488
|
+
When nested repositories are discovered, `sce` tracks the parent-child relationship in the configuration file:
|
|
489
489
|
|
|
490
490
|
```json
|
|
491
491
|
{
|
|
@@ -526,7 +526,7 @@ When nested repositories are discovered, `kse` tracks the parent-child relations
|
|
|
526
526
|
When nested repositories are present, commands display the parent-child relationship:
|
|
527
527
|
|
|
528
528
|
```bash
|
|
529
|
-
$
|
|
529
|
+
$ sce repo status
|
|
530
530
|
|
|
531
531
|
┌────────────┬─────────┬────────┬──────────┬───────┬────────┬─────────┐
|
|
532
532
|
│ Name │ Branch │ Status │ Modified │ Ahead │ Behind │ Parent │
|
|
@@ -614,7 +614,7 @@ app/
|
|
|
614
614
|
|
|
615
615
|
### Directory Exclusions
|
|
616
616
|
|
|
617
|
-
To improve performance and avoid scanning unnecessary directories, `
|
|
617
|
+
To improve performance and avoid scanning unnecessary directories, `sce` automatically excludes common non-repository directories:
|
|
618
618
|
|
|
619
619
|
- `node_modules` - Node.js dependencies
|
|
620
620
|
- `.git` - Git metadata
|
|
@@ -626,12 +626,12 @@ To improve performance and avoid scanning unnecessary directories, `kse` automat
|
|
|
626
626
|
You can add custom exclusions using the `--exclude` option:
|
|
627
627
|
|
|
628
628
|
```bash
|
|
629
|
-
|
|
629
|
+
sce repo init --exclude "node_modules,vendor,custom-dir"
|
|
630
630
|
```
|
|
631
631
|
|
|
632
632
|
### Circular Symlink Detection
|
|
633
633
|
|
|
634
|
-
`
|
|
634
|
+
`sce` automatically detects and skips circular symbolic links to prevent infinite loops during scanning:
|
|
635
635
|
|
|
636
636
|
```bash
|
|
637
637
|
# This structure is handled safely
|
|
@@ -648,17 +648,17 @@ Nested scanning may take longer for large directory structures. To optimize:
|
|
|
648
648
|
|
|
649
649
|
1. **Reduce scan depth**: Use `--max-depth` to limit how deep to scan
|
|
650
650
|
```bash
|
|
651
|
-
|
|
651
|
+
sce repo init --max-depth 4
|
|
652
652
|
```
|
|
653
653
|
|
|
654
654
|
2. **Exclude directories**: Skip known non-repository directories
|
|
655
655
|
```bash
|
|
656
|
-
|
|
656
|
+
sce repo init --exclude "node_modules,build,dist"
|
|
657
657
|
```
|
|
658
658
|
|
|
659
659
|
3. **Disable nested scanning**: If you only need top-level repositories
|
|
660
660
|
```bash
|
|
661
|
-
|
|
661
|
+
sce repo init --no-nested
|
|
662
662
|
```
|
|
663
663
|
|
|
664
664
|
### Troubleshooting Nested Repositories
|
|
@@ -669,17 +669,17 @@ If nested repositories are not discovered:
|
|
|
669
669
|
|
|
670
670
|
1. **Check scan depth**: Increase `--max-depth` if repositories are deeply nested
|
|
671
671
|
```bash
|
|
672
|
-
|
|
672
|
+
sce repo init --max-depth 5
|
|
673
673
|
```
|
|
674
674
|
|
|
675
675
|
2. **Verify nested scanning is enabled**: Ensure `--no-nested` is not used
|
|
676
676
|
```bash
|
|
677
|
-
|
|
677
|
+
sce repo init --nested
|
|
678
678
|
```
|
|
679
679
|
|
|
680
680
|
3. **Check exclusions**: Ensure the directory is not excluded
|
|
681
681
|
```bash
|
|
682
|
-
|
|
682
|
+
sce repo init --exclude "node_modules" # Don't exclude the parent directory
|
|
683
683
|
```
|
|
684
684
|
|
|
685
685
|
#### Circular Reference Errors
|
|
@@ -694,7 +694,7 @@ Error: Circular parent reference detected: repo-a -> repo-b -> repo-a
|
|
|
694
694
|
1. Open `.kiro/project-repos.json`
|
|
695
695
|
2. Check the `parent` fields
|
|
696
696
|
3. Remove or fix the circular reference
|
|
697
|
-
4. Run `
|
|
697
|
+
4. Run `sce repo health` to verify
|
|
698
698
|
|
|
699
699
|
#### Parent Repository Not Found
|
|
700
700
|
|
|
@@ -707,7 +707,7 @@ Error: Parent repository not found: backend
|
|
|
707
707
|
**Solution:**
|
|
708
708
|
1. Ensure the parent repository is in the configuration
|
|
709
709
|
2. Check that the `parent` field matches the parent's `path` field exactly
|
|
710
|
-
3. Run `
|
|
710
|
+
3. Run `sce repo init` to regenerate the configuration
|
|
711
711
|
|
|
712
712
|
### Backward Compatibility
|
|
713
713
|
|
|
@@ -716,7 +716,7 @@ Nested repository support is fully backward compatible:
|
|
|
716
716
|
- Existing configurations without `parent` fields work unchanged
|
|
717
717
|
- Repositories without `parent` are treated as top-level repositories
|
|
718
718
|
- The `parent` field is optional and can be omitted
|
|
719
|
-
- Old configurations can be upgraded by running `
|
|
719
|
+
- Old configurations can be upgraded by running `sce repo init`
|
|
720
720
|
|
|
721
721
|
### Migration from Non-Nested to Nested
|
|
722
722
|
|
|
@@ -727,22 +727,22 @@ To migrate an existing configuration to use nested scanning:
|
|
|
727
727
|
cp .kiro/project-repos.json .kiro/project-repos.json.backup
|
|
728
728
|
|
|
729
729
|
# Re-initialize with nested scanning
|
|
730
|
-
|
|
730
|
+
sce repo init --nested -y
|
|
731
731
|
|
|
732
732
|
# Verify the new configuration
|
|
733
|
-
|
|
734
|
-
|
|
733
|
+
sce repo status
|
|
734
|
+
sce repo health
|
|
735
735
|
```
|
|
736
736
|
|
|
737
737
|
## Commands
|
|
738
738
|
|
|
739
|
-
### `
|
|
739
|
+
### `sce repo init`
|
|
740
740
|
|
|
741
741
|
Initialize repository configuration by scanning the project directory.
|
|
742
742
|
|
|
743
743
|
**Usage:**
|
|
744
744
|
```bash
|
|
745
|
-
|
|
745
|
+
sce repo init [options]
|
|
746
746
|
```
|
|
747
747
|
|
|
748
748
|
**Options:**
|
|
@@ -764,28 +764,28 @@ kse repo init [options]
|
|
|
764
764
|
**Example:**
|
|
765
765
|
```bash
|
|
766
766
|
# Initialize with default settings (nested scanning enabled)
|
|
767
|
-
|
|
767
|
+
sce repo init
|
|
768
768
|
|
|
769
769
|
# Skip confirmation prompts
|
|
770
|
-
|
|
770
|
+
sce repo init -y
|
|
771
771
|
|
|
772
772
|
# Disable nested repository scanning
|
|
773
|
-
|
|
773
|
+
sce repo init --no-nested
|
|
774
774
|
|
|
775
775
|
# Scan deeper directory structure
|
|
776
|
-
|
|
776
|
+
sce repo init --max-depth 5
|
|
777
777
|
|
|
778
778
|
# Exclude specific directories
|
|
779
|
-
|
|
779
|
+
sce repo init --exclude "node_modules,vendor"
|
|
780
780
|
```
|
|
781
781
|
|
|
782
|
-
### `
|
|
782
|
+
### `sce repo status`
|
|
783
783
|
|
|
784
784
|
Display the Git status of all repositories.
|
|
785
785
|
|
|
786
786
|
**Usage:**
|
|
787
787
|
```bash
|
|
788
|
-
|
|
788
|
+
sce repo status [options]
|
|
789
789
|
```
|
|
790
790
|
|
|
791
791
|
**Options:**
|
|
@@ -802,22 +802,22 @@ kse repo status [options]
|
|
|
802
802
|
**Example:**
|
|
803
803
|
```bash
|
|
804
804
|
# Basic status
|
|
805
|
-
|
|
805
|
+
sce repo status
|
|
806
806
|
|
|
807
807
|
# Detailed status with file changes
|
|
808
|
-
|
|
808
|
+
sce repo status --verbose
|
|
809
809
|
|
|
810
810
|
# JSON output for scripting
|
|
811
|
-
|
|
811
|
+
sce repo status --json
|
|
812
812
|
```
|
|
813
813
|
|
|
814
|
-
### `
|
|
814
|
+
### `sce repo exec`
|
|
815
815
|
|
|
816
816
|
Execute a Git command in all repositories.
|
|
817
817
|
|
|
818
818
|
**Usage:**
|
|
819
819
|
```bash
|
|
820
|
-
|
|
820
|
+
sce repo exec "<command>" [options]
|
|
821
821
|
```
|
|
822
822
|
|
|
823
823
|
**Options:**
|
|
@@ -833,28 +833,28 @@ kse repo exec "<command>" [options]
|
|
|
833
833
|
**Example:**
|
|
834
834
|
```bash
|
|
835
835
|
# Pull latest changes
|
|
836
|
-
|
|
836
|
+
sce repo exec "git pull"
|
|
837
837
|
|
|
838
838
|
# Create and checkout new branch
|
|
839
|
-
|
|
839
|
+
sce repo exec "git checkout -b feature/new-feature"
|
|
840
840
|
|
|
841
841
|
# Preview without executing
|
|
842
|
-
|
|
842
|
+
sce repo exec "git push" --dry-run
|
|
843
843
|
|
|
844
844
|
# Fetch all remotes
|
|
845
|
-
|
|
845
|
+
sce repo exec "git fetch --all"
|
|
846
846
|
|
|
847
847
|
# Show commit history
|
|
848
|
-
|
|
848
|
+
sce repo exec "git log --oneline -5"
|
|
849
849
|
```
|
|
850
850
|
|
|
851
|
-
### `
|
|
851
|
+
### `sce repo health`
|
|
852
852
|
|
|
853
853
|
Perform health checks on all repositories.
|
|
854
854
|
|
|
855
855
|
**Usage:**
|
|
856
856
|
```bash
|
|
857
|
-
|
|
857
|
+
sce repo health [options]
|
|
858
858
|
```
|
|
859
859
|
|
|
860
860
|
**Options:**
|
|
@@ -874,10 +874,10 @@ kse repo health [options]
|
|
|
874
874
|
**Example:**
|
|
875
875
|
```bash
|
|
876
876
|
# Run health check
|
|
877
|
-
|
|
877
|
+
sce repo health
|
|
878
878
|
|
|
879
879
|
# JSON output for automation
|
|
880
|
-
|
|
880
|
+
sce repo health --json
|
|
881
881
|
```
|
|
882
882
|
|
|
883
883
|
## Common Workflows
|
|
@@ -888,13 +888,13 @@ Start your day by syncing all repositories:
|
|
|
888
888
|
|
|
889
889
|
```bash
|
|
890
890
|
# Check status of all repos
|
|
891
|
-
|
|
891
|
+
sce repo status
|
|
892
892
|
|
|
893
893
|
# Pull latest changes
|
|
894
|
-
|
|
894
|
+
sce repo exec "git pull"
|
|
895
895
|
|
|
896
896
|
# Verify everything is healthy
|
|
897
|
-
|
|
897
|
+
sce repo health
|
|
898
898
|
```
|
|
899
899
|
|
|
900
900
|
### Workflow 2: Feature Branch Creation
|
|
@@ -903,10 +903,10 @@ Create a feature branch across all repositories:
|
|
|
903
903
|
|
|
904
904
|
```bash
|
|
905
905
|
# Create and checkout feature branch
|
|
906
|
-
|
|
906
|
+
sce repo exec "git checkout -b feature/user-authentication"
|
|
907
907
|
|
|
908
908
|
# Verify all repos are on the new branch
|
|
909
|
-
|
|
909
|
+
sce repo status
|
|
910
910
|
```
|
|
911
911
|
|
|
912
912
|
### Workflow 3: Release Preparation
|
|
@@ -915,20 +915,20 @@ Prepare all repositories for a release:
|
|
|
915
915
|
|
|
916
916
|
```bash
|
|
917
917
|
# Ensure all repos are clean
|
|
918
|
-
|
|
918
|
+
sce repo status
|
|
919
919
|
|
|
920
920
|
# Pull latest changes
|
|
921
|
-
|
|
921
|
+
sce repo exec "git pull"
|
|
922
922
|
|
|
923
923
|
# Create release branch
|
|
924
|
-
|
|
924
|
+
sce repo exec "git checkout -b release/v1.2.0"
|
|
925
925
|
|
|
926
926
|
# Tag the release
|
|
927
|
-
|
|
927
|
+
sce repo exec "git tag -a v1.2.0 -m 'Release v1.2.0'"
|
|
928
928
|
|
|
929
929
|
# Push branches and tags
|
|
930
|
-
|
|
931
|
-
|
|
930
|
+
sce repo exec "git push origin release/v1.2.0"
|
|
931
|
+
sce repo exec "git push --tags"
|
|
932
932
|
```
|
|
933
933
|
|
|
934
934
|
### Workflow 4: Troubleshooting
|
|
@@ -937,16 +937,16 @@ Diagnose issues across repositories:
|
|
|
937
937
|
|
|
938
938
|
```bash
|
|
939
939
|
# Run health check
|
|
940
|
-
|
|
940
|
+
sce repo health
|
|
941
941
|
|
|
942
942
|
# Check detailed status
|
|
943
|
-
|
|
943
|
+
sce repo status --verbose
|
|
944
944
|
|
|
945
945
|
# Verify remote connectivity
|
|
946
|
-
|
|
946
|
+
sce repo exec "git remote -v"
|
|
947
947
|
|
|
948
948
|
# Check for uncommitted changes
|
|
949
|
-
|
|
949
|
+
sce repo exec "git status --short"
|
|
950
950
|
```
|
|
951
951
|
|
|
952
952
|
### Workflow 5: Bulk Updates
|
|
@@ -955,17 +955,17 @@ Update dependencies or configuration across all repos:
|
|
|
955
955
|
|
|
956
956
|
```bash
|
|
957
957
|
# Update npm dependencies
|
|
958
|
-
|
|
958
|
+
sce repo exec "npm update"
|
|
959
959
|
|
|
960
960
|
# Run tests
|
|
961
|
-
|
|
961
|
+
sce repo exec "npm test"
|
|
962
962
|
|
|
963
963
|
# Commit changes
|
|
964
|
-
|
|
965
|
-
|
|
964
|
+
sce repo exec "git add ."
|
|
965
|
+
sce repo exec "git commit -m 'chore: update dependencies'"
|
|
966
966
|
|
|
967
967
|
# Push changes
|
|
968
|
-
|
|
968
|
+
sce repo exec "git push"
|
|
969
969
|
```
|
|
970
970
|
|
|
971
971
|
## Manual Configuration
|
|
@@ -1039,7 +1039,7 @@ You can manually edit `.kiro/project-repos.json` to:
|
|
|
1039
1039
|
### Directory Not Detected as Repository
|
|
1040
1040
|
|
|
1041
1041
|
**Problem:**
|
|
1042
|
-
`
|
|
1042
|
+
`sce repo init` doesn't detect a directory that you know contains a Git repository.
|
|
1043
1043
|
|
|
1044
1044
|
**Cause:**
|
|
1045
1045
|
The scanner only identifies directories that contain a `.git` subdirectory. Regular subdirectories within a Git repository are not detected as separate repositories.
|
|
@@ -1061,7 +1061,7 @@ The scanner only identifies directories that contain a `.git` subdirectory. Regu
|
|
|
1061
1061
|
### Too Many Repositories Detected
|
|
1062
1062
|
|
|
1063
1063
|
**Problem:**
|
|
1064
|
-
`
|
|
1064
|
+
`sce repo init` detects many more repositories than you actually have (e.g., 34 detected when you only have 8).
|
|
1065
1065
|
|
|
1066
1066
|
**Cause:**
|
|
1067
1067
|
If you're using a version prior to v1.20.5, the scanner may incorrectly identify regular subdirectories as repositories.
|
|
@@ -1069,11 +1069,11 @@ If you're using a version prior to v1.20.5, the scanner may incorrectly identify
|
|
|
1069
1069
|
**Solution:**
|
|
1070
1070
|
1. Upgrade to v1.20.5 or later:
|
|
1071
1071
|
```bash
|
|
1072
|
-
npm install -g
|
|
1072
|
+
npm install -g scene-capability-engine@latest
|
|
1073
1073
|
```
|
|
1074
1074
|
2. Re-run the initialization:
|
|
1075
1075
|
```bash
|
|
1076
|
-
|
|
1076
|
+
sce repo init
|
|
1077
1077
|
```
|
|
1078
1078
|
3. The scanner will now only detect directories with `.git` subdirectories.
|
|
1079
1079
|
|
|
@@ -1085,7 +1085,7 @@ Error: Configuration file not found at .kiro/project-repos.json
|
|
|
1085
1085
|
```
|
|
1086
1086
|
|
|
1087
1087
|
**Solution:**
|
|
1088
|
-
Run `
|
|
1088
|
+
Run `sce repo init` to create the configuration file.
|
|
1089
1089
|
|
|
1090
1090
|
### Repository Path Not Found
|
|
1091
1091
|
|
|
@@ -1138,7 +1138,7 @@ Error in backend: fatal: not a git repository
|
|
|
1138
1138
|
1. Verify the path is a Git repository
|
|
1139
1139
|
2. Run `git init` if needed
|
|
1140
1140
|
3. Check file permissions
|
|
1141
|
-
4. Run `
|
|
1141
|
+
4. Run `sce repo health` to diagnose
|
|
1142
1142
|
|
|
1143
1143
|
### Permission Denied
|
|
1144
1144
|
|
|
@@ -1217,7 +1217,7 @@ Run health checks regularly:
|
|
|
1217
1217
|
|
|
1218
1218
|
```bash
|
|
1219
1219
|
# Add to your daily workflow
|
|
1220
|
-
|
|
1220
|
+
sce repo health
|
|
1221
1221
|
```
|
|
1222
1222
|
|
|
1223
1223
|
### 7. Dry-Run Before Bulk Operations
|
|
@@ -1226,7 +1226,7 @@ Always preview destructive operations:
|
|
|
1226
1226
|
|
|
1227
1227
|
```bash
|
|
1228
1228
|
# Preview before executing
|
|
1229
|
-
|
|
1229
|
+
sce repo exec "git push --force" --dry-run
|
|
1230
1230
|
```
|
|
1231
1231
|
|
|
1232
1232
|
### 8. Document Custom Workflows
|
|
@@ -1238,13 +1238,13 @@ Create scripts for common workflows:
|
|
|
1238
1238
|
# sync-all.sh - Sync all repositories
|
|
1239
1239
|
|
|
1240
1240
|
echo "Checking status..."
|
|
1241
|
-
|
|
1241
|
+
sce repo status
|
|
1242
1242
|
|
|
1243
1243
|
echo "Pulling changes..."
|
|
1244
|
-
|
|
1244
|
+
sce repo exec "git pull"
|
|
1245
1245
|
|
|
1246
1246
|
echo "Running health check..."
|
|
1247
|
-
|
|
1247
|
+
sce repo health
|
|
1248
1248
|
```
|
|
1249
1249
|
|
|
1250
1250
|
## Advanced Usage
|
|
@@ -1255,13 +1255,13 @@ Use JSON output for automation:
|
|
|
1255
1255
|
|
|
1256
1256
|
```bash
|
|
1257
1257
|
# Get status as JSON
|
|
1258
|
-
|
|
1258
|
+
sce repo status --json > status.json
|
|
1259
1259
|
|
|
1260
1260
|
# Parse with jq
|
|
1261
|
-
|
|
1261
|
+
sce repo status --json | jq '.[] | select(.isClean == false)'
|
|
1262
1262
|
|
|
1263
1263
|
# Check health in CI/CD
|
|
1264
|
-
if
|
|
1264
|
+
if sce repo health --json | jq -e '.[] | select(.healthy == false)' > /dev/null; then
|
|
1265
1265
|
echo "Health check failed!"
|
|
1266
1266
|
exit 1
|
|
1267
1267
|
fi
|
|
@@ -1282,14 +1282,14 @@ jobs:
|
|
|
1282
1282
|
steps:
|
|
1283
1283
|
- uses: actions/checkout@v2
|
|
1284
1284
|
|
|
1285
|
-
- name: Install
|
|
1286
|
-
run: npm install -g
|
|
1285
|
+
- name: Install sce
|
|
1286
|
+
run: npm install -g scene-capability-engine
|
|
1287
1287
|
|
|
1288
1288
|
- name: Check repository health
|
|
1289
|
-
run:
|
|
1289
|
+
run: sce repo health
|
|
1290
1290
|
|
|
1291
1291
|
- name: Check repository status
|
|
1292
|
-
run:
|
|
1292
|
+
run: sce repo status
|
|
1293
1293
|
```
|
|
1294
1294
|
|
|
1295
1295
|
### Custom Configuration Validation
|
|
@@ -1300,7 +1300,7 @@ Validate configuration before committing:
|
|
|
1300
1300
|
# Add to pre-commit hook
|
|
1301
1301
|
#!/bin/bash
|
|
1302
1302
|
if [ -f .kiro/project-repos.json ]; then
|
|
1303
|
-
|
|
1303
|
+
sce repo health || exit 1
|
|
1304
1304
|
fi
|
|
1305
1305
|
```
|
|
1306
1306
|
|