scene-capability-engine 3.0.1 → 3.0.3
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 +235 -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 +31 -16
- 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/images/wechat-qr.png +0 -0
- 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 +43 -22
- package/docs/moqui-template-core-library-playbook.md +49 -21
- 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 +1148 -106
- 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 +30 -30
- 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 +258 -2
- 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/orchestrator/orchestration-engine.js +55 -6
- 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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Multi-Agent Parallel Coordination Guide
|
|
2
2
|
|
|
3
|
-
> Enable multiple AI agents to work on the same
|
|
3
|
+
> Enable multiple AI agents to work on the same sce project simultaneously without conflicts.
|
|
4
4
|
|
|
5
5
|
**Version**: 1.44.0
|
|
6
6
|
**Last Updated**: 2026-02-12
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
## Overview
|
|
11
11
|
|
|
12
|
-
When multiple AI agent instances (e.g., multiple
|
|
12
|
+
When multiple AI agent instances (e.g., multiple AI IDE windows, Claude Code sessions, or Cursor instances) work on the same project, they can accidentally overwrite each other's changes, claim the same tasks, or corrupt shared files like `tasks.md`.
|
|
13
13
|
|
|
14
14
|
The Multi-Agent Parallel Coordination system solves this with six layers of protection:
|
|
15
15
|
|
|
@@ -56,7 +56,7 @@ Create the configuration file `.kiro/config/multi-agent.json`:
|
|
|
56
56
|
When an agent starts working, it registers with the AgentRegistry:
|
|
57
57
|
|
|
58
58
|
```javascript
|
|
59
|
-
const { AgentRegistry } = require('
|
|
59
|
+
const { AgentRegistry } = require('scene-capability-engine/lib/collab');
|
|
60
60
|
|
|
61
61
|
const registry = new AgentRegistry(workspaceRoot);
|
|
62
62
|
const { agentId } = await registry.register();
|
|
@@ -67,7 +67,7 @@ const { agentId } = await registry.register();
|
|
|
67
67
|
### 3. Lock Tasks Before Working
|
|
68
68
|
|
|
69
69
|
```javascript
|
|
70
|
-
const { TaskLockManager } = require('
|
|
70
|
+
const { TaskLockManager } = require('scene-capability-engine/lib/lock');
|
|
71
71
|
|
|
72
72
|
const lockManager = new TaskLockManager(workspaceRoot);
|
|
73
73
|
const result = await lockManager.acquireTaskLock('my-spec', '1.1', agentId);
|
|
@@ -124,7 +124,7 @@ Manages agent lifecycle with heartbeat-based health monitoring.
|
|
|
124
124
|
**Storage**: `.kiro/config/agent-registry.json`
|
|
125
125
|
|
|
126
126
|
```javascript
|
|
127
|
-
const { AgentRegistry } = require('
|
|
127
|
+
const { AgentRegistry } = require('scene-capability-engine/lib/collab');
|
|
128
128
|
const registry = new AgentRegistry(workspaceRoot);
|
|
129
129
|
|
|
130
130
|
// Register a new agent
|
|
@@ -157,7 +157,7 @@ File-based mutual exclusion for task ownership.
|
|
|
157
157
|
**Lock files**: `.kiro/specs/{specName}/locks/{taskId}.lock`
|
|
158
158
|
|
|
159
159
|
```javascript
|
|
160
|
-
const { TaskLockManager } = require('
|
|
160
|
+
const { TaskLockManager } = require('scene-capability-engine/lib/lock');
|
|
161
161
|
const lockManager = new TaskLockManager(workspaceRoot);
|
|
162
162
|
|
|
163
163
|
// Acquire a task lock
|
|
@@ -194,7 +194,7 @@ Concurrent-safe updates to `tasks.md` with conflict detection and retry.
|
|
|
194
194
|
**File**: `lib/task/task-status-store.js`
|
|
195
195
|
|
|
196
196
|
```javascript
|
|
197
|
-
const { TaskStatusStore } = require('
|
|
197
|
+
const { TaskStatusStore } = require('scene-capability-engine/lib/task');
|
|
198
198
|
const store = new TaskStatusStore(workspaceRoot);
|
|
199
199
|
|
|
200
200
|
// Update task status with file locking
|
|
@@ -223,7 +223,7 @@ Write serialization for steering files (`.kiro/steering/*.md`).
|
|
|
223
223
|
**File**: `lib/lock/steering-file-lock.js`
|
|
224
224
|
|
|
225
225
|
```javascript
|
|
226
|
-
const { SteeringFileLock } = require('
|
|
226
|
+
const { SteeringFileLock } = require('scene-capability-engine/lib/lock');
|
|
227
227
|
const steeringLock = new SteeringFileLock(workspaceRoot);
|
|
228
228
|
|
|
229
229
|
// Execute callback with lock held
|
|
@@ -249,7 +249,7 @@ Git branch isolation per agent for conflict-free parallel development.
|
|
|
249
249
|
**File**: `lib/collab/merge-coordinator.js`
|
|
250
250
|
|
|
251
251
|
```javascript
|
|
252
|
-
const { MergeCoordinator } = require('
|
|
252
|
+
const { MergeCoordinator } = require('scene-capability-engine/lib/collab');
|
|
253
253
|
const merger = new MergeCoordinator(workspaceRoot);
|
|
254
254
|
|
|
255
255
|
// Create agent-specific branch
|
|
@@ -277,7 +277,7 @@ When `coordinator: true` in config, provides intelligent task assignment based o
|
|
|
277
277
|
**Log**: `.kiro/config/coordination-log.json`
|
|
278
278
|
|
|
279
279
|
```javascript
|
|
280
|
-
const { Coordinator } = require('
|
|
280
|
+
const { Coordinator } = require('scene-capability-engine/lib/collab');
|
|
281
281
|
const coordinator = new Coordinator(workspaceRoot, depManager, registry, lockManager);
|
|
282
282
|
|
|
283
283
|
// Get tasks ready to execute (dependencies satisfied, not locked)
|
|
@@ -303,7 +303,7 @@ Per-Spec `steering.md` providing independent constraints, notes, and decisions f
|
|
|
303
303
|
**Storage**: `.kiro/specs/{spec-name}/steering.md`
|
|
304
304
|
|
|
305
305
|
```javascript
|
|
306
|
-
const { SpecSteering } = require('
|
|
306
|
+
const { SpecSteering } = require('scene-capability-engine/lib/steering');
|
|
307
307
|
const specSteering = new SpecSteering(workspaceRoot);
|
|
308
308
|
|
|
309
309
|
// Create a steering template for a new Spec
|
|
@@ -330,7 +330,7 @@ Unified loader that merges all four steering layers (L1-L4) into a single contex
|
|
|
330
330
|
**File**: `lib/steering/steering-loader.js`
|
|
331
331
|
|
|
332
332
|
```javascript
|
|
333
|
-
const { SteeringLoader } = require('
|
|
333
|
+
const { SteeringLoader } = require('scene-capability-engine/lib/steering');
|
|
334
334
|
const loader = new SteeringLoader(workspaceRoot);
|
|
335
335
|
|
|
336
336
|
// Load a specific layer
|
|
@@ -351,7 +351,7 @@ Multi-agent friendly maintenance of `CURRENT_CONTEXT.md` with structured Spec pr
|
|
|
351
351
|
**File**: `lib/steering/context-sync-manager.js`
|
|
352
352
|
|
|
353
353
|
```javascript
|
|
354
|
-
const { ContextSyncManager } = require('
|
|
354
|
+
const { ContextSyncManager } = require('scene-capability-engine/lib/steering');
|
|
355
355
|
const syncManager = new ContextSyncManager(workspaceRoot);
|
|
356
356
|
|
|
357
357
|
// Read current context
|
|
@@ -382,7 +382,7 @@ State machine managing Spec lifecycle transitions with auto-completion detection
|
|
|
382
382
|
Valid transitions: `planned → assigned → in-progress → completed → released`
|
|
383
383
|
|
|
384
384
|
```javascript
|
|
385
|
-
const { SpecLifecycleManager } = require('
|
|
385
|
+
const { SpecLifecycleManager } = require('scene-capability-engine/lib/collab');
|
|
386
386
|
const lifecycle = new SpecLifecycleManager(workspaceRoot);
|
|
387
387
|
|
|
388
388
|
// Get current Spec status
|
|
@@ -407,7 +407,7 @@ Ensures agents synchronize state before switching between Specs.
|
|
|
407
407
|
**File**: `lib/collab/sync-barrier.js`
|
|
408
408
|
|
|
409
409
|
```javascript
|
|
410
|
-
const { SyncBarrier } = require('
|
|
410
|
+
const { SyncBarrier } = require('scene-capability-engine/lib/collab');
|
|
411
411
|
const barrier = new SyncBarrier(workspaceRoot);
|
|
412
412
|
|
|
413
413
|
// Check before switching Specs
|
|
@@ -532,16 +532,16 @@ All components check `MultiAgentConfig.isEnabled()` before doing anything:
|
|
|
532
532
|
|
|
533
533
|
```javascript
|
|
534
534
|
// Collaboration modules
|
|
535
|
-
const { AgentRegistry, Coordinator, MergeCoordinator, MultiAgentConfig, SpecLifecycleManager, SyncBarrier } = require('
|
|
535
|
+
const { AgentRegistry, Coordinator, MergeCoordinator, MultiAgentConfig, SpecLifecycleManager, SyncBarrier } = require('scene-capability-engine/lib/collab');
|
|
536
536
|
|
|
537
537
|
// Steering modules
|
|
538
|
-
const { SpecSteering, SteeringLoader, ContextSyncManager } = require('
|
|
538
|
+
const { SpecSteering, SteeringLoader, ContextSyncManager } = require('scene-capability-engine/lib/steering');
|
|
539
539
|
|
|
540
540
|
// Lock modules
|
|
541
|
-
const { TaskLockManager, SteeringFileLock } = require('
|
|
541
|
+
const { TaskLockManager, SteeringFileLock } = require('scene-capability-engine/lib/lock');
|
|
542
542
|
|
|
543
543
|
// Task modules
|
|
544
|
-
const { TaskStatusStore } = require('
|
|
544
|
+
const { TaskStatusStore } = require('scene-capability-engine/lib/task');
|
|
545
545
|
```
|
|
546
546
|
|
|
547
547
|
---
|