scene-capability-engine 3.0.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.
- package/CHANGELOG.md +2513 -0
- package/LICENSE +21 -0
- package/README.md +765 -0
- package/README.zh.md +630 -0
- package/bin/kiro-spec-engine.js +796 -0
- package/bin/kse.js +3 -0
- package/bin/sce.js +3 -0
- package/bin/sco.js +3 -0
- package/docs/331-poc-adaptation-roadmap.md +156 -0
- package/docs/331-poc-dual-track-integration-guide.md +120 -0
- package/docs/331-poc-weekly-delivery-checklist.md +52 -0
- package/docs/OFFLINE_INSTALL.md +96 -0
- package/docs/README.md +279 -0
- package/docs/adopt-migration-guide.md +599 -0
- package/docs/adoption-guide.md +616 -0
- package/docs/agent-hooks-analysis.md +815 -0
- package/docs/architecture.md +733 -0
- package/docs/articles/ai-driven-development-philosophy-and-practice-review.md +208 -0
- package/docs/articles/ai-driven-development-philosophy-and-practice.en.md +459 -0
- package/docs/articles/ai-driven-development-philosophy-and-practice.md +492 -0
- package/docs/autonomous-control-guide.md +851 -0
- package/docs/command-reference.md +1368 -0
- package/docs/community.md +115 -0
- package/docs/cross-tool-guide.md +555 -0
- package/docs/developer-guide.md +619 -0
- package/docs/document-governance.md +865 -0
- package/docs/environment-management-guide.md +526 -0
- package/docs/examples/add-export-command/design.md +194 -0
- package/docs/examples/add-export-command/requirements.md +110 -0
- package/docs/examples/add-export-command/tasks.md +88 -0
- package/docs/examples/add-rest-api/design.md +855 -0
- package/docs/examples/add-rest-api/requirements.md +323 -0
- package/docs/examples/add-rest-api/tasks.md +355 -0
- package/docs/examples/add-user-dashboard/design.md +192 -0
- package/docs/examples/add-user-dashboard/requirements.md +143 -0
- package/docs/examples/add-user-dashboard/tasks.md +91 -0
- package/docs/faq.md +697 -0
- package/docs/handoffs/evidence/ontology/moqui-template-baseline-2026-02-17-232922.json +156 -0
- package/docs/handoffs/evidence/ontology/moqui-template-baseline-2026-02-17-232922.md +24 -0
- package/docs/images/wechat-qr.png +0 -0
- package/docs/integration-modes.md +529 -0
- package/docs/integration-philosophy.md +313 -0
- package/docs/knowledge-management-guide.md +263 -0
- package/docs/manual-workflows-guide.md +418 -0
- package/docs/moqui-capability-matrix.md +73 -0
- package/docs/moqui-template-core-library-playbook.md +109 -0
- package/docs/multi-agent-coordination-guide.md +553 -0
- package/docs/multi-repo-management-guide.md +1344 -0
- package/docs/quick-start-with-ai-tools.md +375 -0
- package/docs/quick-start.md +146 -0
- package/docs/release-checklist.md +121 -0
- package/docs/releases/README.md +13 -0
- package/docs/releases/v1.46.2-validation.md +45 -0
- package/docs/releases/v1.46.2.md +50 -0
- package/docs/scene-runtime-guide.md +347 -0
- package/docs/spec-collaboration-guide.md +369 -0
- package/docs/spec-locking-guide.md +225 -0
- package/docs/spec-numbering-guide.md +348 -0
- package/docs/spec-workflow.md +519 -0
- package/docs/steering-strategy-guide.md +196 -0
- package/docs/team-collaboration-guide.md +465 -0
- package/docs/testing-strategy.md +272 -0
- package/docs/tools/claude-guide.md +654 -0
- package/docs/tools/cursor-guide.md +706 -0
- package/docs/tools/generic-guide.md +446 -0
- package/docs/tools/kiro-guide.md +308 -0
- package/docs/tools/vscode-guide.md +445 -0
- package/docs/tools/windsurf-guide.md +391 -0
- package/docs/troubleshooting.md +1135 -0
- package/docs/upgrade-guide.md +639 -0
- package/docs/value-observability-guide.md +127 -0
- package/docs/zh/README.md +341 -0
- package/docs/zh/quick-start.md +764 -0
- package/docs/zh/release-checklist.md +121 -0
- package/docs/zh/releases/README.md +13 -0
- package/docs/zh/releases/v1.46.2-validation.md +45 -0
- package/docs/zh/releases/v1.46.2.md +50 -0
- package/docs/zh/spec-numbering-guide.md +348 -0
- package/docs/zh/tools/claude-guide.md +349 -0
- package/docs/zh/tools/cursor-guide.md +281 -0
- package/docs/zh/tools/generic-guide.md +499 -0
- package/docs/zh/tools/kiro-guide.md +342 -0
- package/docs/zh/tools/vscode-guide.md +449 -0
- package/docs/zh/tools/windsurf-guide.md +378 -0
- package/docs/zh/value-observability-guide.md +127 -0
- package/docs//344/272/244/344/273/230/346/270/205/345/215/225.md +75 -0
- package/lib/adoption/adoption-logger.js +487 -0
- package/lib/adoption/adoption-strategy.js +538 -0
- package/lib/adoption/backup-manager.js +420 -0
- package/lib/adoption/conflict-resolver.js +410 -0
- package/lib/adoption/detection-engine.js +275 -0
- package/lib/adoption/diff-viewer.js +226 -0
- package/lib/adoption/error-formatter.js +509 -0
- package/lib/adoption/file-classifier.js +385 -0
- package/lib/adoption/progress-reporter.js +534 -0
- package/lib/adoption/smart-orchestrator.js +470 -0
- package/lib/adoption/strategy-selector.js +218 -0
- package/lib/adoption/summary-generator.js +493 -0
- package/lib/adoption/template-sync.js +605 -0
- package/lib/auto/autonomous-engine.js +485 -0
- package/lib/auto/checkpoint-manager.js +300 -0
- package/lib/auto/close-loop-runner.js +2476 -0
- package/lib/auto/config-schema.js +176 -0
- package/lib/auto/decision-engine.js +344 -0
- package/lib/auto/error-recovery-manager.js +580 -0
- package/lib/auto/goal-decomposer.js +278 -0
- package/lib/auto/progress-tracker.js +502 -0
- package/lib/auto/safety-manager.js +186 -0
- package/lib/auto/semantic-decomposer.js +137 -0
- package/lib/auto/state-manager.js +126 -0
- package/lib/auto/task-queue-manager.js +340 -0
- package/lib/backup/backup-system.js +372 -0
- package/lib/backup/selective-backup.js +207 -0
- package/lib/collab/agent-registry.js +240 -0
- package/lib/collab/collab-manager.js +285 -0
- package/lib/collab/contract-manager.js +320 -0
- package/lib/collab/coordinator.js +370 -0
- package/lib/collab/dependency-manager.js +280 -0
- package/lib/collab/index.js +20 -0
- package/lib/collab/integration-manager.js +202 -0
- package/lib/collab/merge-coordinator.js +252 -0
- package/lib/collab/metadata-manager.js +233 -0
- package/lib/collab/multi-agent-config.js +120 -0
- package/lib/collab/spec-lifecycle-manager.js +304 -0
- package/lib/collab/sync-barrier.js +88 -0
- package/lib/collab/visualizer.js +208 -0
- package/lib/commands/adopt.js +749 -0
- package/lib/commands/auto.js +19559 -0
- package/lib/commands/collab.js +275 -0
- package/lib/commands/context.js +99 -0
- package/lib/commands/docs.js +808 -0
- package/lib/commands/doctor.js +273 -0
- package/lib/commands/env.js +420 -0
- package/lib/commands/knowledge.js +309 -0
- package/lib/commands/lock.js +235 -0
- package/lib/commands/ops.js +409 -0
- package/lib/commands/orchestrate.js +446 -0
- package/lib/commands/prompt.js +105 -0
- package/lib/commands/repo.js +118 -0
- package/lib/commands/rollback.js +219 -0
- package/lib/commands/scene.js +15549 -0
- package/lib/commands/spec-bootstrap.js +147 -0
- package/lib/commands/spec-gate.js +157 -0
- package/lib/commands/spec-pipeline.js +205 -0
- package/lib/commands/status.js +321 -0
- package/lib/commands/task.js +199 -0
- package/lib/commands/templates.js +654 -0
- package/lib/commands/upgrade.js +231 -0
- package/lib/commands/value.js +569 -0
- package/lib/commands/watch.js +684 -0
- package/lib/commands/workflows.js +240 -0
- package/lib/commands/workspace-multi.js +325 -0
- package/lib/commands/workspace.js +189 -0
- package/lib/context/context-exporter.js +378 -0
- package/lib/context/prompt-generator.js +482 -0
- package/lib/data/moqui-capability-lexicon.json +45 -0
- package/lib/environment/backup-system.js +189 -0
- package/lib/environment/environment-manager.js +379 -0
- package/lib/environment/environment-registry.js +168 -0
- package/lib/gitignore/gitignore-backup.js +229 -0
- package/lib/gitignore/gitignore-detector.js +239 -0
- package/lib/gitignore/gitignore-integration.js +267 -0
- package/lib/gitignore/gitignore-transformer.js +193 -0
- package/lib/gitignore/layered-rules-template.js +42 -0
- package/lib/governance/archive-tool.js +284 -0
- package/lib/governance/cleanup-tool.js +237 -0
- package/lib/governance/config-manager.js +186 -0
- package/lib/governance/diagnostic-engine.js +271 -0
- package/lib/governance/doc-reference-checker.js +200 -0
- package/lib/governance/execution-logger.js +243 -0
- package/lib/governance/file-scanner.js +285 -0
- package/lib/governance/hooks-manager.js +333 -0
- package/lib/governance/reporter.js +337 -0
- package/lib/governance/validation-engine.js +181 -0
- package/lib/i18n.js +79 -0
- package/lib/knowledge/entry-manager.js +208 -0
- package/lib/knowledge/index-manager.js +261 -0
- package/lib/knowledge/knowledge-manager.js +273 -0
- package/lib/knowledge/template-manager.js +191 -0
- package/lib/lock/index.js +21 -0
- package/lib/lock/lock-file.js +192 -0
- package/lib/lock/lock-manager.js +321 -0
- package/lib/lock/machine-identifier.js +135 -0
- package/lib/lock/steering-file-lock.js +207 -0
- package/lib/lock/task-lock-manager.js +345 -0
- package/lib/operations/audit-logger.js +293 -0
- package/lib/operations/feedback-manager.js +1147 -0
- package/lib/operations/index.js +23 -0
- package/lib/operations/models/index.js +170 -0
- package/lib/operations/operations-manager.js +151 -0
- package/lib/operations/operations-validator.js +280 -0
- package/lib/operations/permission-manager.js +354 -0
- package/lib/operations/template-loader.js +143 -0
- package/lib/orchestrator/agent-spawner.js +629 -0
- package/lib/orchestrator/bootstrap-prompt-builder.js +236 -0
- package/lib/orchestrator/index.js +19 -0
- package/lib/orchestrator/orchestration-engine.js +1270 -0
- package/lib/orchestrator/orchestrator-config.js +173 -0
- package/lib/orchestrator/status-monitor.js +591 -0
- package/lib/python-checker.js +209 -0
- package/lib/repo/config-manager.js +580 -0
- package/lib/repo/errors/config-error.js +13 -0
- package/lib/repo/errors/git-error.js +15 -0
- package/lib/repo/errors/repo-error.js +14 -0
- package/lib/repo/git-operations.js +181 -0
- package/lib/repo/handlers/.gitkeep +1 -0
- package/lib/repo/handlers/exec-handler.js +155 -0
- package/lib/repo/handlers/health-handler.js +169 -0
- package/lib/repo/handlers/init-handler.js +197 -0
- package/lib/repo/handlers/status-handler.js +176 -0
- package/lib/repo/output-formatter.js +184 -0
- package/lib/repo/path-resolver.js +178 -0
- package/lib/repo/repo-manager.js +514 -0
- package/lib/scene-runtime/audit-emitter.js +59 -0
- package/lib/scene-runtime/binding-plugin-loader.js +351 -0
- package/lib/scene-runtime/binding-registry.js +349 -0
- package/lib/scene-runtime/eval-bridge.js +44 -0
- package/lib/scene-runtime/index.js +19 -0
- package/lib/scene-runtime/moqui-adapter.js +620 -0
- package/lib/scene-runtime/moqui-client.js +606 -0
- package/lib/scene-runtime/moqui-extractor.js +2029 -0
- package/lib/scene-runtime/plan-compiler.js +208 -0
- package/lib/scene-runtime/policy-gate.js +58 -0
- package/lib/scene-runtime/runtime-executor.js +358 -0
- package/lib/scene-runtime/scene-loader.js +96 -0
- package/lib/scene-runtime/scene-ontology.js +959 -0
- package/lib/scene-runtime/scene-template-linter.js +852 -0
- package/lib/scene-runtime/templates/scene-template-erp-query-v0.1.yaml +28 -0
- package/lib/scene-runtime/templates/scene-template-hybrid-shadow-v0.1.yaml +34 -0
- package/lib/spec/bootstrap/context-collector.js +48 -0
- package/lib/spec/bootstrap/draft-generator.js +158 -0
- package/lib/spec/bootstrap/questionnaire-engine.js +70 -0
- package/lib/spec/bootstrap/trace-emitter.js +59 -0
- package/lib/spec/multi-spec-orchestrate.js +93 -0
- package/lib/spec/pipeline/constants.js +6 -0
- package/lib/spec/pipeline/stage-adapters.js +118 -0
- package/lib/spec/pipeline/stage-runner.js +146 -0
- package/lib/spec/pipeline/state-store.js +119 -0
- package/lib/spec-gate/engine/gate-engine.js +165 -0
- package/lib/spec-gate/policy/default-policy.js +22 -0
- package/lib/spec-gate/policy/policy-loader.js +103 -0
- package/lib/spec-gate/result-emitter.js +81 -0
- package/lib/spec-gate/rules/default-rules.js +156 -0
- package/lib/spec-gate/rules/rule-registry.js +51 -0
- package/lib/steering/adoption-config.js +164 -0
- package/lib/steering/compliance-auto-fixer.js +204 -0
- package/lib/steering/compliance-cache.js +99 -0
- package/lib/steering/compliance-error-reporter.js +70 -0
- package/lib/steering/context-sync-manager.js +273 -0
- package/lib/steering/index.js +92 -0
- package/lib/steering/spec-steering.js +230 -0
- package/lib/steering/steering-compliance-checker.js +73 -0
- package/lib/steering/steering-loader.js +144 -0
- package/lib/steering/steering-manager.js +289 -0
- package/lib/task/index.js +12 -0
- package/lib/task/task-claimer.js +489 -0
- package/lib/task/task-status-store.js +418 -0
- package/lib/templates/cache-manager.js +440 -0
- package/lib/templates/content-generalizer.js +247 -0
- package/lib/templates/frontmatter-generator.js +128 -0
- package/lib/templates/git-handler.js +471 -0
- package/lib/templates/metadata-collector.js +328 -0
- package/lib/templates/path-utils.js +144 -0
- package/lib/templates/registry-parser.js +505 -0
- package/lib/templates/spec-reader.js +216 -0
- package/lib/templates/template-applicator.js +249 -0
- package/lib/templates/template-creator.js +256 -0
- package/lib/templates/template-error.js +143 -0
- package/lib/templates/template-exporter.js +502 -0
- package/lib/templates/template-manager.js +782 -0
- package/lib/templates/template-validator.js +361 -0
- package/lib/upgrade/migration-engine.js +382 -0
- package/lib/upgrade/migrations/.gitkeep +52 -0
- package/lib/upgrade/migrations/1.0.0-to-1.1.0.js +78 -0
- package/lib/utils/file-diff.js +177 -0
- package/lib/utils/fs-utils.js +274 -0
- package/lib/utils/tool-detector.js +383 -0
- package/lib/utils/validation.js +324 -0
- package/lib/value/gate-summary-emitter.js +99 -0
- package/lib/value/metric-contract-loader.js +210 -0
- package/lib/value/risk-evaluator.js +117 -0
- package/lib/value/weekly-snapshot-builder.js +61 -0
- package/lib/version/version-checker.js +156 -0
- package/lib/version/version-manager.js +327 -0
- package/lib/watch/action-executor.js +458 -0
- package/lib/watch/event-debouncer.js +323 -0
- package/lib/watch/execution-logger.js +550 -0
- package/lib/watch/file-watcher.js +499 -0
- package/lib/watch/presets.js +266 -0
- package/lib/watch/watch-manager.js +533 -0
- package/lib/workspace/multi/global-config.js +150 -0
- package/lib/workspace/multi/index.js +22 -0
- package/lib/workspace/multi/path-utils.js +173 -0
- package/lib/workspace/multi/workspace-context-resolver.js +244 -0
- package/lib/workspace/multi/workspace-registry.js +196 -0
- package/lib/workspace/multi/workspace-state-manager.js +537 -0
- package/lib/workspace/multi/workspace.js +90 -0
- package/lib/workspace/workspace-manager.js +370 -0
- package/lib/workspace/workspace-sync.js +356 -0
- package/locales/en.json +114 -0
- package/locales/zh.json +114 -0
- package/package.json +102 -0
- package/template/.kiro/README.md +247 -0
- package/template/.kiro/hooks/check-spec-on-create.kiro.hook +17 -0
- package/template/.kiro/hooks/run-tests-on-save.kiro.hook +13 -0
- package/template/.kiro/hooks/sync-tasks-on-edit.kiro.hook +16 -0
- package/template/.kiro/specs/SPEC_WORKFLOW_GUIDE.md +134 -0
- package/template/.kiro/steering/CORE_PRINCIPLES.md +133 -0
- package/template/.kiro/steering/CURRENT_CONTEXT.md +30 -0
- package/template/.kiro/steering/ENVIRONMENT.md +35 -0
- package/template/.kiro/steering/RULES_GUIDE.md +46 -0
- package/template/.kiro/templates/operations/default/change-impact.md +112 -0
- package/template/.kiro/templates/operations/default/deployment.md +91 -0
- package/template/.kiro/templates/operations/default/feedback-response.md +269 -0
- package/template/.kiro/templates/operations/default/migration-plan.md +172 -0
- package/template/.kiro/templates/operations/default/monitoring.md +135 -0
- package/template/.kiro/templates/operations/default/operations.md +135 -0
- package/template/.kiro/templates/operations/default/rollback.md +143 -0
- package/template/.kiro/templates/operations/default/tools.yaml +364 -0
- package/template/.kiro/templates/operations/default/troubleshooting.md +123 -0
- package/template/.kiro/tools/backup_manager.py +295 -0
- package/template/.kiro/tools/configuration_manager.py +218 -0
- package/template/.kiro/tools/document_evaluator.py +550 -0
- package/template/.kiro/tools/enhancement_logger.py +168 -0
- package/template/.kiro/tools/error_handler.py +335 -0
- package/template/.kiro/tools/improvement_identifier.py +444 -0
- package/template/.kiro/tools/modification_applicator.py +737 -0
- package/template/.kiro/tools/quality_gate_enforcer.py +207 -0
- package/template/.kiro/tools/quality_scorer.py +305 -0
- package/template/.kiro/tools/report_generator.py +154 -0
- package/template/.kiro/tools/ultrawork_enhancer.py +676 -0
- package/template/.kiro/tools/ultrawork_enhancer_refactored.py +0 -0
- package/template/.kiro/tools/ultrawork_enhancer_v2.py +463 -0
- package/template/.kiro/tools/ultrawork_enhancer_v3.py +606 -0
- package/template/.kiro/tools/workflow_quality_gate.py +100 -0
- package/template/README.md +111 -0
package/locales/en.json
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
{
|
|
2
|
+
"cli": {
|
|
3
|
+
"name": "sce",
|
|
4
|
+
"description": "🔥 SCE (Scene Capability Engine) - Structured AI delivery with Specs, orchestration, and KPI observability",
|
|
5
|
+
"commands": {
|
|
6
|
+
"init": {
|
|
7
|
+
"description": "Initialize a new SCE project",
|
|
8
|
+
"projectNamePrompt": "Enter project name:",
|
|
9
|
+
"forceOption": "Force initialization even if .kiro directory exists",
|
|
10
|
+
"alreadyExists": "⚠️ .kiro directory already exists",
|
|
11
|
+
"overwritePrompt": "Do you want to overwrite it?",
|
|
12
|
+
"cancelled": "Initialization cancelled.",
|
|
13
|
+
"success": "🎉 SCE project initialized successfully!",
|
|
14
|
+
"nextSteps": "📋 Next steps:",
|
|
15
|
+
"step1": "Create your first spec: mkdir .kiro/specs/01-00-your-feature",
|
|
16
|
+
"step2": "Write basic requirements.md",
|
|
17
|
+
"step3": "Enhance with Ultrawork: sce enhance requirements .kiro/specs/01-00-your-feature/requirements.md",
|
|
18
|
+
"startJourney": "🔥 Start your Ultrawork journey!",
|
|
19
|
+
"error": "❌ Error initializing project:"
|
|
20
|
+
},
|
|
21
|
+
"enhance": {
|
|
22
|
+
"description": "Enhance document quality with Ultrawork spirit",
|
|
23
|
+
"starting": "🔥 Starting {stage} stage Ultrawork enhancement...",
|
|
24
|
+
"toolNotFound": "❌ Ultrawork tool not found. Please run: sce init",
|
|
25
|
+
"completed": "✅ Ultrawork enhancement completed!",
|
|
26
|
+
"failed": "❌ Enhancement failed with code:",
|
|
27
|
+
"pythonError": "❌ Error running Python tool:",
|
|
28
|
+
"pythonTip": "💡 Make sure Python 3.8+ is installed and in PATH"
|
|
29
|
+
},
|
|
30
|
+
"createSpec": {
|
|
31
|
+
"description": "Create a new spec directory",
|
|
32
|
+
"success": "✅ Created spec directory:",
|
|
33
|
+
"nextSteps": "📋 Next steps:",
|
|
34
|
+
"step1": "Create requirements.md in the spec directory",
|
|
35
|
+
"step2": "Enhance with: sce enhance requirements {specPath}/requirements.md",
|
|
36
|
+
"error": "❌ Error creating spec:"
|
|
37
|
+
},
|
|
38
|
+
"status": {
|
|
39
|
+
"description": "Check project status and available specs",
|
|
40
|
+
"noProject": "⚠️ No SCE project found in current directory",
|
|
41
|
+
"initTip": "Run: sce init to initialize",
|
|
42
|
+
"title": "🔥 SCE Project Status",
|
|
43
|
+
"toolStatus": "Ultrawork Tool:",
|
|
44
|
+
"available": "✅ Available",
|
|
45
|
+
"missing": "❌ Missing",
|
|
46
|
+
"specsTitle": "📋 Available Specs:",
|
|
47
|
+
"noSpecs": "No specs found",
|
|
48
|
+
"requirements": "Requirements:",
|
|
49
|
+
"design": "Design:",
|
|
50
|
+
"tasks": "Tasks:"
|
|
51
|
+
},
|
|
52
|
+
"doctor": {
|
|
53
|
+
"description": "Check system requirements and diagnostics",
|
|
54
|
+
"title": "System Diagnostics",
|
|
55
|
+
"checking": "Checking system requirements...",
|
|
56
|
+
"nodejs": "Node.js",
|
|
57
|
+
"python": "Python",
|
|
58
|
+
"python_note": "Note: Python is required for Ultrawork quality enhancement features.",
|
|
59
|
+
"all_good": "All system requirements are met!",
|
|
60
|
+
"ready": "You're ready to use all SCE features including Ultrawork enhancements.",
|
|
61
|
+
"python_missing": "Python is not available",
|
|
62
|
+
"basic_features": "Basic CLI features (init, status, create-spec) will work normally.",
|
|
63
|
+
"ultrawork_unavailable": "Ultrawork enhancement features require Python 3.8 or higher."
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"ultrawork": {
|
|
68
|
+
"spirit": {
|
|
69
|
+
"title": "🔥 Ultrawork Spirit",
|
|
70
|
+
"subtitle": "Like Sisyphus pushing the boulder up the mountain",
|
|
71
|
+
"principles": {
|
|
72
|
+
"relentless": "Never give up, relentless effort",
|
|
73
|
+
"excellence": "Pursue professional-grade quality",
|
|
74
|
+
"improvement": "Continuous improvement and optimization",
|
|
75
|
+
"completion": "Perfect completion of every task"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"quality": {
|
|
79
|
+
"scoring": "Quality Scoring: {score}/10",
|
|
80
|
+
"professional": "✅ Document has reached professional standards!",
|
|
81
|
+
"improving": "🔄 Round {iteration} improvement: {improvements}",
|
|
82
|
+
"noImprovements": "⚠️ No more improvements identified, stopping iteration",
|
|
83
|
+
"scoreNotImproved": "⚠️ Quality score not improved, stopping iteration"
|
|
84
|
+
},
|
|
85
|
+
"stages": {
|
|
86
|
+
"requirements": "Requirements",
|
|
87
|
+
"design": "Design",
|
|
88
|
+
"tasks": "Tasks"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"messages": {
|
|
92
|
+
"success": "✅ Success",
|
|
93
|
+
"error": "❌ Error",
|
|
94
|
+
"warning": "⚠️ Warning",
|
|
95
|
+
"info": "💡 Info",
|
|
96
|
+
"processing": "🔄 Processing",
|
|
97
|
+
"completed": "🎉 Completed"
|
|
98
|
+
},
|
|
99
|
+
"python": {
|
|
100
|
+
"available": "Python {version} is available",
|
|
101
|
+
"not_found": "Python is not installed or not found in PATH",
|
|
102
|
+
"version_too_old": "Python {version} is installed, but version {required} or higher is required",
|
|
103
|
+
"malformed_version": "Unable to parse Python version: {version}",
|
|
104
|
+
"error_header": "✗ Python is required for Ultrawork quality enhancement features",
|
|
105
|
+
"install_header": "Installation instructions:",
|
|
106
|
+
"help_footer": "For more help, visit: https://github.com/USERNAME/kiro-spec-engine#python-setup",
|
|
107
|
+
"install": {
|
|
108
|
+
"windows": "Windows:\n1. Download Python from https://www.python.org/downloads/\n2. Run the installer and check 'Add Python to PATH'\n3. Restart your terminal and run: python --version",
|
|
109
|
+
"macos": "macOS:\n1. Install Homebrew if not already installed: /bin/bash -c \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)\"\n2. Install Python: brew install python\n3. Verify installation: python3 --version",
|
|
110
|
+
"linux": "Linux:\n1. Ubuntu/Debian: sudo apt-get update && sudo apt-get install python3 python3-pip\n2. Fedora/RHEL: sudo dnf install python3 python3-pip\n3. Verify installation: python3 --version",
|
|
111
|
+
"default": "Please visit https://www.python.org/downloads/ to download and install Python 3.8 or higher for your operating system."
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
package/locales/zh.json
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
{
|
|
2
|
+
"cli": {
|
|
3
|
+
"name": "sce",
|
|
4
|
+
"description": "🔥 SCE(场景能力引擎)- 以 Spec、编排与 KPI 可观测驱动 AI 交付",
|
|
5
|
+
"commands": {
|
|
6
|
+
"init": {
|
|
7
|
+
"description": "初始化新的 SCE(场景能力引擎)项目",
|
|
8
|
+
"projectNamePrompt": "请输入项目名称:",
|
|
9
|
+
"forceOption": "强制初始化,即使 .kiro 目录已存在",
|
|
10
|
+
"alreadyExists": "⚠️ .kiro 目录已存在",
|
|
11
|
+
"overwritePrompt": "是否要覆盖它?",
|
|
12
|
+
"cancelled": "初始化已取消。",
|
|
13
|
+
"success": "🎉 SCE 项目初始化成功!",
|
|
14
|
+
"nextSteps": "📋 下一步操作:",
|
|
15
|
+
"step1": "创建第一个 Spec: mkdir .kiro/specs/01-00-your-feature",
|
|
16
|
+
"step2": "编写基础 requirements.md",
|
|
17
|
+
"step3": "使用 Ultrawork 增强: sce enhance requirements .kiro/specs/01-00-your-feature/requirements.md",
|
|
18
|
+
"startJourney": "🔥 开始你的 Ultrawork 之旅!",
|
|
19
|
+
"error": "❌ 初始化项目时出错:"
|
|
20
|
+
},
|
|
21
|
+
"enhance": {
|
|
22
|
+
"description": "使用 Ultrawork 精神增强文档质量",
|
|
23
|
+
"starting": "🔥 启动 {stage} 阶段 Ultrawork 增强...",
|
|
24
|
+
"toolNotFound": "❌ 找不到 Ultrawork 工具。请运行: sce init",
|
|
25
|
+
"completed": "✅ Ultrawork 增强完成!",
|
|
26
|
+
"failed": "❌ 增强失败,错误代码:",
|
|
27
|
+
"pythonError": "❌ 运行 Python 工具时出错:",
|
|
28
|
+
"pythonTip": "💡 请确保已安装 Python 3.8+ 并在 PATH 中"
|
|
29
|
+
},
|
|
30
|
+
"createSpec": {
|
|
31
|
+
"description": "创建新的 Spec 目录",
|
|
32
|
+
"success": "✅ 已创建 Spec 目录:",
|
|
33
|
+
"nextSteps": "📋 下一步操作:",
|
|
34
|
+
"step1": "在 Spec 目录中创建 requirements.md",
|
|
35
|
+
"step2": "使用以下命令增强: sce enhance requirements {specPath}/requirements.md",
|
|
36
|
+
"error": "❌ 创建 Spec 时出错:"
|
|
37
|
+
},
|
|
38
|
+
"status": {
|
|
39
|
+
"description": "检查项目状态和可用的 Specs",
|
|
40
|
+
"noProject": "⚠️ 当前目录中未找到 SCE 项目",
|
|
41
|
+
"initTip": "运行: sce init 来初始化",
|
|
42
|
+
"title": "🔥 SCE 项目状态",
|
|
43
|
+
"toolStatus": "Ultrawork 工具:",
|
|
44
|
+
"available": "✅ 可用",
|
|
45
|
+
"missing": "❌ 缺失",
|
|
46
|
+
"specsTitle": "📋 可用的 Specs:",
|
|
47
|
+
"noSpecs": "未找到 Specs",
|
|
48
|
+
"requirements": "需求文档:",
|
|
49
|
+
"design": "设计文档:",
|
|
50
|
+
"tasks": "任务文档:"
|
|
51
|
+
},
|
|
52
|
+
"doctor": {
|
|
53
|
+
"description": "检查系统要求和诊断信息",
|
|
54
|
+
"title": "系统诊断",
|
|
55
|
+
"checking": "正在检查系统要求...",
|
|
56
|
+
"nodejs": "Node.js",
|
|
57
|
+
"python": "Python",
|
|
58
|
+
"python_note": "注意: Ultrawork 质量增强功能需要 Python。",
|
|
59
|
+
"all_good": "所有系统要求均已满足!",
|
|
60
|
+
"ready": "您已准备好使用 SCE 的所有功能,包括 Ultrawork 增强。",
|
|
61
|
+
"python_missing": "Python 不可用",
|
|
62
|
+
"basic_features": "基本 CLI 功能(init、status、create-spec)可以正常工作。",
|
|
63
|
+
"ultrawork_unavailable": "Ultrawork 增强功能需要 Python 3.8 或更高版本。"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"ultrawork": {
|
|
68
|
+
"spirit": {
|
|
69
|
+
"title": "🔥 Ultrawork 精神",
|
|
70
|
+
"subtitle": "像西西弗斯推石上山一样",
|
|
71
|
+
"principles": {
|
|
72
|
+
"relentless": "永不放弃,不懈努力",
|
|
73
|
+
"excellence": "追求专业级质量",
|
|
74
|
+
"improvement": "持续改进和优化",
|
|
75
|
+
"completion": "完美完成每个任务"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"quality": {
|
|
79
|
+
"scoring": "质量评分: {score}/10",
|
|
80
|
+
"professional": "✅ 文档已达到专业级标准!",
|
|
81
|
+
"improving": "🔄 第 {iteration} 轮改进: {improvements}",
|
|
82
|
+
"noImprovements": "⚠️ 无法识别更多改进点,停止迭代",
|
|
83
|
+
"scoreNotImproved": "⚠️ 质量评分未提升,停止迭代"
|
|
84
|
+
},
|
|
85
|
+
"stages": {
|
|
86
|
+
"requirements": "需求",
|
|
87
|
+
"design": "设计",
|
|
88
|
+
"tasks": "任务"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"messages": {
|
|
92
|
+
"success": "✅ 成功",
|
|
93
|
+
"error": "❌ 错误",
|
|
94
|
+
"warning": "⚠️ 警告",
|
|
95
|
+
"info": "💡 提示",
|
|
96
|
+
"processing": "🔄 处理中",
|
|
97
|
+
"completed": "🎉 完成"
|
|
98
|
+
},
|
|
99
|
+
"python": {
|
|
100
|
+
"available": "Python {version} 可用",
|
|
101
|
+
"not_found": "未安装 Python 或 Python 不在 PATH 中",
|
|
102
|
+
"version_too_old": "已安装 Python {version},但需要 {required} 或更高版本",
|
|
103
|
+
"malformed_version": "无法解析 Python 版本: {version}",
|
|
104
|
+
"error_header": "✗ Ultrawork 质量增强功能需要 Python",
|
|
105
|
+
"install_header": "安装说明:",
|
|
106
|
+
"help_footer": "获取更多帮助,请访问: https://github.com/USERNAME/kiro-spec-engine#python-setup",
|
|
107
|
+
"install": {
|
|
108
|
+
"windows": "Windows:\n1. 从 https://www.python.org/downloads/ 下载 Python\n2. 运行安装程序并勾选 'Add Python to PATH'\n3. 重启终端并运行: python --version",
|
|
109
|
+
"macos": "macOS:\n1. 如果尚未安装 Homebrew,请先安装: /bin/bash -c \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)\"\n2. 安装 Python: brew install python\n3. 验证安装: python3 --version",
|
|
110
|
+
"linux": "Linux:\n1. Ubuntu/Debian: sudo apt-get update && sudo apt-get install python3 python3-pip\n2. Fedora/RHEL: sudo dnf install python3 python3-pip\n3. 验证安装: python3 --version",
|
|
111
|
+
"default": "请访问 https://www.python.org/downloads/ 下载并安装适合您操作系统的 Python 3.8 或更高版本。"
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "scene-capability-engine",
|
|
3
|
+
"version": "3.0.0",
|
|
4
|
+
"description": "SCE (Scene Capability Engine) - A CLI tool and npm package for spec-driven development with AI coding assistants.",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"bin": {
|
|
7
|
+
"sce": "bin/sce.js",
|
|
8
|
+
"sco": "bin/sco.js",
|
|
9
|
+
"kse": "bin/kse.js",
|
|
10
|
+
"kiro-spec-engine": "bin/kiro-spec-engine.js"
|
|
11
|
+
},
|
|
12
|
+
"files": [
|
|
13
|
+
"bin/",
|
|
14
|
+
"lib/",
|
|
15
|
+
"template/",
|
|
16
|
+
"!template/.kiro/tools/__pycache__/",
|
|
17
|
+
"!template/.kiro/tools/**/*.pyc",
|
|
18
|
+
"!template/.kiro/tools/**/*.pyo",
|
|
19
|
+
"!template/.kiro/tools/**/*.pyd",
|
|
20
|
+
"locales/",
|
|
21
|
+
"docs/",
|
|
22
|
+
"README.md",
|
|
23
|
+
"README.zh.md",
|
|
24
|
+
"LICENSE",
|
|
25
|
+
"CHANGELOG.md"
|
|
26
|
+
],
|
|
27
|
+
"scripts": {
|
|
28
|
+
"test": "npx jest",
|
|
29
|
+
"test:smoke": "npm run test:ci",
|
|
30
|
+
"test:full": "npx jest --config=jest.config.js",
|
|
31
|
+
"test:ci": "npx jest --config=jest.config.ci.js",
|
|
32
|
+
"test:unit": "npx jest tests/unit",
|
|
33
|
+
"test:integration": "npx jest tests/integration",
|
|
34
|
+
"test:properties": "npx jest tests/properties",
|
|
35
|
+
"test:handles": "npx jest --config=jest.config.js --runInBand --detectOpenHandles",
|
|
36
|
+
"test:skip-audit": "node scripts/check-skip-allowlist.js",
|
|
37
|
+
"test:watch": "npx jest --watch",
|
|
38
|
+
"coverage": "npx jest --coverage",
|
|
39
|
+
"report:moqui-baseline": "node scripts/moqui-template-baseline-report.js --json",
|
|
40
|
+
"report:moqui-core-regression": "node scripts/moqui-core-regression-suite.js --json",
|
|
41
|
+
"prepublishOnly": "npm run test:full && npm run test:skip-audit",
|
|
42
|
+
"publish:manual": "npm publish --access public",
|
|
43
|
+
"install-global": "npm install -g .",
|
|
44
|
+
"uninstall-global": "npm uninstall -g scene-capability-engine"
|
|
45
|
+
},
|
|
46
|
+
"keywords": [
|
|
47
|
+
"kiro",
|
|
48
|
+
"spec",
|
|
49
|
+
"spec-driven",
|
|
50
|
+
"engine",
|
|
51
|
+
"steering",
|
|
52
|
+
"rules-engine",
|
|
53
|
+
"development",
|
|
54
|
+
"quality",
|
|
55
|
+
"ultrawork",
|
|
56
|
+
"ai",
|
|
57
|
+
"productivity",
|
|
58
|
+
"cli",
|
|
59
|
+
"i18n",
|
|
60
|
+
"multilingual",
|
|
61
|
+
"chinese",
|
|
62
|
+
"english",
|
|
63
|
+
"development-tools",
|
|
64
|
+
"quality-enhancement",
|
|
65
|
+
"sisyphus",
|
|
66
|
+
"sco",
|
|
67
|
+
"scene",
|
|
68
|
+
"sce",
|
|
69
|
+
"scene-capability-engine"
|
|
70
|
+
],
|
|
71
|
+
"author": "heguangyong",
|
|
72
|
+
"license": "MIT",
|
|
73
|
+
"repository": {
|
|
74
|
+
"type": "git",
|
|
75
|
+
"url": "git+https://github.com/heguangyong/scene-capability-engine.git"
|
|
76
|
+
},
|
|
77
|
+
"bugs": {
|
|
78
|
+
"url": "https://github.com/heguangyong/scene-capability-engine/issues"
|
|
79
|
+
},
|
|
80
|
+
"homepage": "https://github.com/heguangyong/scene-capability-engine#readme",
|
|
81
|
+
"engines": {
|
|
82
|
+
"node": ">=16.0.0",
|
|
83
|
+
"python": ">=3.8.0"
|
|
84
|
+
},
|
|
85
|
+
"dependencies": {
|
|
86
|
+
"chalk": "^4.1.2",
|
|
87
|
+
"chokidar": "^3.5.3",
|
|
88
|
+
"cli-table3": "^0.6.5",
|
|
89
|
+
"commander": "^9.0.0",
|
|
90
|
+
"fs-extra": "^10.0.0",
|
|
91
|
+
"inquirer": "^8.2.0",
|
|
92
|
+
"js-yaml": "^4.1.1",
|
|
93
|
+
"minimatch": "^10.1.1",
|
|
94
|
+
"path": "^0.12.7",
|
|
95
|
+
"semver": "^7.5.4",
|
|
96
|
+
"simple-git": "^3.30.0"
|
|
97
|
+
},
|
|
98
|
+
"devDependencies": {
|
|
99
|
+
"fast-check": "^4.5.3",
|
|
100
|
+
"jest": "^27.5.1"
|
|
101
|
+
}
|
|
102
|
+
}
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
# Project Development Guide
|
|
2
|
+
|
|
3
|
+
> **AI Tools: Read this first!** This project follows Spec-driven development methodology powered by kse (Kiro Spec Engine).
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 🎯 How This Project Works
|
|
8
|
+
|
|
9
|
+
This project uses **Spec-driven development** - a structured approach where:
|
|
10
|
+
- Every feature starts with a **Spec** (requirements + design + tasks)
|
|
11
|
+
- All work is tracked and documented
|
|
12
|
+
- AI tools help implement features according to Specs
|
|
13
|
+
|
|
14
|
+
**Your role as AI:**
|
|
15
|
+
- When user requests a feature → Check if Spec exists, if not, help create one
|
|
16
|
+
- When implementing → Follow the Spec's requirements and design
|
|
17
|
+
- When stuck → Read the Spec documents for context
|
|
18
|
+
- Track progress by updating task status
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## 🚀 kse Capabilities (v1.45.x)
|
|
23
|
+
|
|
24
|
+
**IMPORTANT**: After installing or updating kse, read this section to understand all available capabilities. Using the right tool for the job ensures efficient, high-quality development.
|
|
25
|
+
|
|
26
|
+
### Core: Spec-Driven Development
|
|
27
|
+
- `kse adopt` — Initialize kse in a project (creates `.kiro/` structure)
|
|
28
|
+
- `kse create-spec <name>` — Create a new Spec (requirements + design + tasks)
|
|
29
|
+
- `kse status` — Show project status and Spec progress
|
|
30
|
+
- `kse workflows` — List available Specs and workflows
|
|
31
|
+
- `kse context export <spec-name>` — Export Spec context for AI consumption
|
|
32
|
+
- `kse prompt generate <spec> <task>` — Generate task-specific prompt
|
|
33
|
+
|
|
34
|
+
### Task Management
|
|
35
|
+
- `kse task claim <spec> <task-id>` — Claim a task for execution
|
|
36
|
+
- `kse task list <spec>` — List claimed tasks
|
|
37
|
+
- Task status tracking in `tasks.md`: `[ ]` not started, `[-]` in progress, `[x]` completed
|
|
38
|
+
|
|
39
|
+
### Spec Locking (Multi-User)
|
|
40
|
+
- `kse lock acquire <spec>` — Lock a Spec to prevent conflicts
|
|
41
|
+
- `kse lock release <spec>` / `kse unlock <spec>` — Release lock
|
|
42
|
+
- `kse lock status` — Check lock status
|
|
43
|
+
- `kse lock cleanup` — Remove stale locks (24h timeout)
|
|
44
|
+
- `kse lock whoami` — Show machine identifier
|
|
45
|
+
|
|
46
|
+
### Workspace Management
|
|
47
|
+
- `kse workspace create/list/switch/info/remove` — Manage multiple kse projects
|
|
48
|
+
- Global state: `~/.kse/workspace-state.json`
|
|
49
|
+
|
|
50
|
+
### Environment Configuration
|
|
51
|
+
- `kse env list/switch/info/register/unregister/rollback/verify/run` — Multi-environment management
|
|
52
|
+
- Automatic backup before each switch, instant rollback support
|
|
53
|
+
|
|
54
|
+
### Multi-Repository Management
|
|
55
|
+
- `kse repo init [--nested]` — Auto-discover Git repositories
|
|
56
|
+
- `kse repo status [--verbose]` — Status of all repositories
|
|
57
|
+
- `kse repo exec "<command>"` — Execute command across all repos
|
|
58
|
+
- `kse repo health` — Check repository health
|
|
59
|
+
|
|
60
|
+
### Spec-Level Collaboration
|
|
61
|
+
- `kse collab init/status/assign/verify/integrate/migrate` — Coordinate parallel Spec development
|
|
62
|
+
- Master Spec + Sub-Specs with dependency management
|
|
63
|
+
- Interface contracts for cross-Spec compatibility
|
|
64
|
+
|
|
65
|
+
### Multi-Agent Parallel Coordination (v1.43.0)
|
|
66
|
+
When multiple AI agents work on the same project simultaneously:
|
|
67
|
+
- **AgentRegistry** (`lib/collab`) — Agent lifecycle with heartbeat monitoring
|
|
68
|
+
- **TaskLockManager** (`lib/lock`) — File-based task mutual exclusion
|
|
69
|
+
- **TaskStatusStore** (`lib/task`) — Concurrent-safe tasks.md updates with retry
|
|
70
|
+
- **SteeringFileLock** (`lib/lock`) — Steering file write serialization
|
|
71
|
+
- **MergeCoordinator** (`lib/collab`) — Git branch isolation per agent
|
|
72
|
+
- **Coordinator** (`lib/collab`) — Central task assignment (optional)
|
|
73
|
+
- Config: `.kiro/config/multi-agent.json` (`enabled: true` to activate)
|
|
74
|
+
- All components are no-ops in single-agent mode (zero overhead)
|
|
75
|
+
- See `docs/multi-agent-coordination-guide.md` for full API reference
|
|
76
|
+
|
|
77
|
+
### Spec-Level Steering & Context Sync (v1.44.0)
|
|
78
|
+
Fourth steering layer (L4) and Spec lifecycle coordination for multi-agent scenarios:
|
|
79
|
+
- **SpecSteering** (`lib/steering`) — Per-Spec `steering.md` CRUD with template generation, Markdown ↔ structured object roundtrip
|
|
80
|
+
- **SteeringLoader** (`lib/steering`) — Unified L1-L4 four-layer steering loader with merged output
|
|
81
|
+
- **ContextSyncManager** (`lib/steering`) — Multi-agent CURRENT_CONTEXT.md maintenance with Spec progress table, SteeringFileLock-protected writes
|
|
82
|
+
- **SpecLifecycleManager** (`lib/collab`) — Spec state machine (planned → assigned → in-progress → completed → released) with auto-completion detection
|
|
83
|
+
- **SyncBarrier** (`lib/collab`) — Agent Spec-switch synchronization barrier (uncommitted changes check, steering reload)
|
|
84
|
+
- **Coordinator Integration** — `completeTask` auto-checks Spec completion; `assignTask` runs SyncBarrier
|
|
85
|
+
- All components are no-ops in single-agent mode (zero overhead)
|
|
86
|
+
- See `docs/multi-agent-coordination-guide.md` for full API reference
|
|
87
|
+
|
|
88
|
+
### Autonomous Control
|
|
89
|
+
- `kse auto create <description>` — Create and execute Spec autonomously
|
|
90
|
+
- `kse auto run <spec>` — Execute existing Spec tasks autonomously
|
|
91
|
+
- `kse auto status/resume/stop/config` — Manage autonomous execution
|
|
92
|
+
- Intelligent error recovery, checkpoint system, learning from history
|
|
93
|
+
|
|
94
|
+
### Agent Orchestrator — Multi-Agent Spec Execution (v1.45.0)
|
|
95
|
+
Automate parallel Spec execution via Codex CLI sub-agents (replaces manual multi-terminal workflow):
|
|
96
|
+
- `kse orchestrate run --specs "spec-a,spec-b,spec-c" --max-parallel 3` — Start multi-agent orchestration
|
|
97
|
+
- `kse orchestrate status` — View orchestration progress (per-Spec status, overall state)
|
|
98
|
+
- `kse orchestrate stop` — Gracefully stop all sub-agents
|
|
99
|
+
- **OrchestratorConfig** (`lib/orchestrator`) — Configuration management (agent backend, parallelism, timeout, retries) via `.kiro/config/orchestrator.json`
|
|
100
|
+
- **BootstrapPromptBuilder** (`lib/orchestrator`) — Builds bootstrap prompts with Spec path, steering context, execution instructions
|
|
101
|
+
- **AgentSpawner** (`lib/orchestrator`) — Process manager for Codex CLI sub-agents with timeout detection, graceful termination (SIGTERM → SIGKILL)
|
|
102
|
+
- **StatusMonitor** (`lib/orchestrator`) — Codex JSON Lines event parsing, per-Spec status tracking, orchestration-level aggregation
|
|
103
|
+
- **OrchestrationEngine** (`lib/orchestrator`) — DAG-based dependency analysis, batch scheduling, parallel execution (≤ maxParallel), failure propagation, retry mechanism
|
|
104
|
+
- Prerequisites: Codex CLI installed, `CODEX_API_KEY` environment variable set
|
|
105
|
+
- 11 correctness properties verified via property-based testing
|
|
106
|
+
|
|
107
|
+
### Scene Runtime (Template Engine + Quality + ERP)
|
|
108
|
+
- **Template Engine**: `kse scene template-validate/resolve/render` — Variable schema, multi-file rendering, 3-layer inheritance
|
|
109
|
+
- **Package Registry**: `kse scene publish/unpublish/install/list/search/info/diff/version` — Local package management
|
|
110
|
+
- **Quality Pipeline**: `kse scene lint/score/contribute` — 10-category lint, quality scoring, one-stop publish
|
|
111
|
+
- **Ontology**: `kse scene ontology show/deps/validate/actions/lineage/agent-info` — Semantic relationship graph
|
|
112
|
+
- **Moqui ERP**: `kse scene connect/discover/extract` — ERP integration and template extraction
|
|
113
|
+
- **Registry Ops**: `kse scene deprecate/audit/owner/tag/lock/stats` — Advanced registry management
|
|
114
|
+
|
|
115
|
+
### Document Governance
|
|
116
|
+
- `kse docs diagnose/cleanup/validate/archive/hooks` — Document lifecycle management
|
|
117
|
+
- Automatic compliance checking and cleanup
|
|
118
|
+
|
|
119
|
+
### DevOps Integration
|
|
120
|
+
- `kse ops init/validate/audit/takeover/feedback` — Operations Spec management
|
|
121
|
+
- Progressive AI autonomy levels (L1-L5)
|
|
122
|
+
|
|
123
|
+
### Knowledge Management
|
|
124
|
+
- `kse knowledge init/add/list/search/show/delete/stats` — Personal knowledge base
|
|
125
|
+
|
|
126
|
+
---
|
|
127
|
+
|
|
128
|
+
## 📋 Development Workflow
|
|
129
|
+
|
|
130
|
+
### When User Asks You to Implement a Feature
|
|
131
|
+
|
|
132
|
+
**Step 1: Check if Spec exists**
|
|
133
|
+
```
|
|
134
|
+
Look in .kiro/specs/ directory
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
**Step 2: If Spec exists**
|
|
138
|
+
- Read `requirements.md` - understand what to build
|
|
139
|
+
- Read `design.md` - understand how to build it
|
|
140
|
+
- Read `tasks.md` - see implementation steps
|
|
141
|
+
- Implement according to the Spec
|
|
142
|
+
- Update task status as you complete work
|
|
143
|
+
|
|
144
|
+
**Step 3: If no Spec exists**
|
|
145
|
+
- Suggest creating a Spec first
|
|
146
|
+
- Help user define requirements
|
|
147
|
+
- Help design the solution
|
|
148
|
+
- Break down into tasks
|
|
149
|
+
- Then implement
|
|
150
|
+
|
|
151
|
+
### When Working in Multi-Agent Mode
|
|
152
|
+
|
|
153
|
+
If `.kiro/config/multi-agent.json` exists with `enabled: true`:
|
|
154
|
+
1. Register with AgentRegistry before starting work
|
|
155
|
+
2. Acquire task locks before modifying any task
|
|
156
|
+
3. Use TaskStatusStore for concurrent-safe tasks.md updates
|
|
157
|
+
4. Use SteeringFileLock when updating steering files
|
|
158
|
+
5. Deregister when done (auto-releases all locks)
|
|
159
|
+
|
|
160
|
+
---
|
|
161
|
+
|
|
162
|
+
## 📁 Project Structure
|
|
163
|
+
|
|
164
|
+
```
|
|
165
|
+
.kiro/
|
|
166
|
+
├── README.md # This file - project development guide
|
|
167
|
+
├── specs/ # All Specs live here
|
|
168
|
+
│ └── {spec-name}/ # Individual Spec
|
|
169
|
+
│ ├── requirements.md # What we're building
|
|
170
|
+
│ ├── design.md # How we'll build it
|
|
171
|
+
│ ├── tasks.md # Implementation steps
|
|
172
|
+
│ ├── steering.md # Spec-level steering (L4, multi-agent)
|
|
173
|
+
│ ├── lifecycle.json # Spec lifecycle state (multi-agent)
|
|
174
|
+
│ └── locks/ # Task lock files (multi-agent)
|
|
175
|
+
├── steering/ # Development rules (auto-loaded by AI)
|
|
176
|
+
│ ├── CORE_PRINCIPLES.md # Core development principles
|
|
177
|
+
│ ├── ENVIRONMENT.md # Project environment
|
|
178
|
+
│ ├── CURRENT_CONTEXT.md # Current work context
|
|
179
|
+
│ └── RULES_GUIDE.md # Rules index
|
|
180
|
+
├── config/ # Configuration files
|
|
181
|
+
│ ├── multi-agent.json # Multi-agent coordination config
|
|
182
|
+
│ ├── agent-registry.json # Active agent registry
|
|
183
|
+
│ └── coordination-log.json # Coordinator assignment log
|
|
184
|
+
└── tools/ # Tool configurations
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
**Key files:**
|
|
188
|
+
- `.kiro/steering/CORE_PRINCIPLES.md` - Development principles for this project
|
|
189
|
+
- `.kiro/steering/CURRENT_CONTEXT.md` - What we're currently working on
|
|
190
|
+
- `.kiro/specs/{spec-name}/` - Feature specifications
|
|
191
|
+
|
|
192
|
+
---
|
|
193
|
+
|
|
194
|
+
## 📖 What is a Spec?
|
|
195
|
+
|
|
196
|
+
A Spec is a complete feature definition with three parts:
|
|
197
|
+
|
|
198
|
+
### 1. requirements.md - WHAT we're building
|
|
199
|
+
- User stories, functional requirements, acceptance criteria
|
|
200
|
+
|
|
201
|
+
### 2. design.md - HOW we'll build it
|
|
202
|
+
- Architecture, component design, API design, technology choices
|
|
203
|
+
|
|
204
|
+
### 3. tasks.md - Implementation steps
|
|
205
|
+
- Ordered task list with dependencies and implementation notes
|
|
206
|
+
- Status: `- [ ]` Not started | `- [-]` In progress | `- [x]` Completed
|
|
207
|
+
|
|
208
|
+
---
|
|
209
|
+
|
|
210
|
+
## 💡 Working with This Project
|
|
211
|
+
|
|
212
|
+
### DO:
|
|
213
|
+
- ✅ Check for existing Specs before starting work
|
|
214
|
+
- ✅ Follow requirements and design in Specs
|
|
215
|
+
- ✅ Update task status as you work
|
|
216
|
+
- ✅ Read steering rules for project-specific guidelines
|
|
217
|
+
- ✅ Use task locks in multi-agent mode
|
|
218
|
+
- ✅ Run tests before marking tasks complete
|
|
219
|
+
|
|
220
|
+
### DON'T:
|
|
221
|
+
- ❌ Start implementing without understanding requirements
|
|
222
|
+
- ❌ Ignore the design document
|
|
223
|
+
- ❌ Create files in wrong locations (use Spec directories)
|
|
224
|
+
- ❌ Skip updating task status
|
|
225
|
+
- ❌ Modify tasks.md without locks in multi-agent mode
|
|
226
|
+
|
|
227
|
+
---
|
|
228
|
+
|
|
229
|
+
## 🔍 Finding Information
|
|
230
|
+
|
|
231
|
+
| Need | Where |
|
|
232
|
+
|------|-------|
|
|
233
|
+
| Feature requirements | `.kiro/specs/{spec-name}/requirements.md` |
|
|
234
|
+
| Implementation design | `.kiro/specs/{spec-name}/design.md` |
|
|
235
|
+
| What to work on | `.kiro/specs/{spec-name}/tasks.md` |
|
|
236
|
+
| Project context | `.kiro/steering/CURRENT_CONTEXT.md` |
|
|
237
|
+
| Development rules | `.kiro/steering/CORE_PRINCIPLES.md` |
|
|
238
|
+
| Project status | `kse status` |
|
|
239
|
+
| Multi-agent setup | `.kiro/config/multi-agent.json` |
|
|
240
|
+
| Full documentation | `docs/` directory |
|
|
241
|
+
|
|
242
|
+
---
|
|
243
|
+
|
|
244
|
+
**Project Type**: Spec-driven development
|
|
245
|
+
**kse Version**: 1.44.x
|
|
246
|
+
**Last Updated**: 2026-02-12
|
|
247
|
+
**Purpose**: Guide AI tools to work effectively with this project
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"enabled": true,
|
|
3
|
+
"name": "Check Spec on Create",
|
|
4
|
+
"description": "Validate spec structure when new spec files are created",
|
|
5
|
+
"version": "1",
|
|
6
|
+
"when": {
|
|
7
|
+
"type": "fileCreated",
|
|
8
|
+
"patterns": [
|
|
9
|
+
".kiro/specs/*/requirements.md",
|
|
10
|
+
".kiro/specs/*/design.md"
|
|
11
|
+
]
|
|
12
|
+
},
|
|
13
|
+
"then": {
|
|
14
|
+
"type": "askAgent",
|
|
15
|
+
"prompt": "A new spec document has been created. Please review it for completeness: check that it has proper structure, clear acceptance criteria, and follows the spec template. Suggest improvements if needed."
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"enabled": true,
|
|
3
|
+
"name": "Run Tests",
|
|
4
|
+
"description": "Run npm test and report results. Click the button in Agent Hooks panel to trigger.",
|
|
5
|
+
"version": "1",
|
|
6
|
+
"when": {
|
|
7
|
+
"type": "userTriggered"
|
|
8
|
+
},
|
|
9
|
+
"then": {
|
|
10
|
+
"type": "askAgent",
|
|
11
|
+
"prompt": "Run `npm test` and if any tests fail, analyze the errors and suggest fixes. If all tests pass, just say the count. Keep it brief."
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"enabled": true,
|
|
3
|
+
"name": "Sync Tasks on Edit",
|
|
4
|
+
"description": "Automatically sync workspace when tasks.md is edited",
|
|
5
|
+
"version": "1",
|
|
6
|
+
"when": {
|
|
7
|
+
"type": "fileEdited",
|
|
8
|
+
"patterns": [
|
|
9
|
+
"**/tasks.md"
|
|
10
|
+
]
|
|
11
|
+
},
|
|
12
|
+
"then": {
|
|
13
|
+
"type": "askAgent",
|
|
14
|
+
"prompt": "The tasks.md file has been updated. Please review the changes and update the workspace status if needed. Run `kse workspace sync` to synchronize."
|
|
15
|
+
}
|
|
16
|
+
}
|