scene-capability-engine 3.0.6 → 3.0.7
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/README.md +1 -0
- package/docs/command-reference.md +17 -0
- package/docs/moqui-standard-rebuild-guide.md +96 -0
- package/package.json +4 -1
package/README.md
CHANGED
|
@@ -253,6 +253,7 @@ sequenceDiagram
|
|
|
253
253
|
- 🌍 **[Environment Management](docs/environment-management-guide.md)** - Multi-environment configuration
|
|
254
254
|
- 📦 **[Multi-Repository Management](docs/multi-repo-management-guide.md)** - Manage multiple Git repositories
|
|
255
255
|
- 🎭 **[Scene Runtime](docs/scene-runtime-guide.md)** - Template engine, quality pipeline, ontology, Moqui ERP
|
|
256
|
+
- ♻️ **[Moqui Standard Rebuild](docs/moqui-standard-rebuild-guide.md)** - Rebuild bootstrap bundle + page-copilot contract from metadata
|
|
256
257
|
- 🤖 **[Multi-Agent Coordination](docs/multi-agent-coordination-guide.md)** - Parallel agent coordination
|
|
257
258
|
- 📈 **[Value Observability](docs/value-observability-guide.md)** - KPI snapshot, baseline, trend, gate-ready evidence
|
|
258
259
|
- 🔌 **[Integration Modes](docs/integration-modes.md)** - Three ways to integrate sce
|
|
@@ -833,6 +833,23 @@ Moqui template library lexicon audit (script-level governance helper):
|
|
|
833
833
|
- By default, template capability auditing is scoped to `manifest.templates` (when matched), reducing noise from unrelated templates.
|
|
834
834
|
- Template scope matching normalizes `sce.scene--*` / `kse.scene--*` prefixes, so renamed template namespaces still map correctly.
|
|
835
835
|
|
|
836
|
+
Moqui standard rebuild helper (script-level recovery bootstrap):
|
|
837
|
+
- `node scripts/moqui-standard-rebuild.js [--metadata <path>] [--out <path>] [--markdown-out <path>] [--bundle-out <path>] [--json]`: build a standard Moqui recovery bundle from metadata, including recommended SCE template matrix, recovery spec plan, handoff manifest seed, ontology seed, and page-copilot context contract.
|
|
838
|
+
- Output now includes `recovery.readiness_matrix`, `recovery.readiness_summary`, and `recovery.prioritized_gaps` for template capability matrix scoring and remediation planning.
|
|
839
|
+
- Bundle now includes `rebuild/matrix-remediation.lines` (gap remediation queue lines).
|
|
840
|
+
- Bundle now includes `rebuild/matrix-remediation-plan.json|.md` (gap-to-source-file remediation plan).
|
|
841
|
+
- This workflow is scoped to SCE outputs and does not mutate business project code directly.
|
|
842
|
+
- Recommended usage for rebuild target path: `E:/workspace/331-poc-rebuild` (keep `331-poc` repair stream isolated).
|
|
843
|
+
|
|
844
|
+
Moqui rebuild gate helper (CI/pre-release readiness gate):
|
|
845
|
+
- `node scripts/moqui-rebuild-gate.js [--metadata <path>] [--out <path>] [--markdown-out <path>] [--bundle-out <path>] [--min-ready <n>] [--max-partial <n>] [--max-gap <n>]`: run rebuild and fail when readiness gate is not met (default: ready>=6, partial<=0, gap<=0).
|
|
846
|
+
- npm alias: `npm run gate:moqui-rebuild`
|
|
847
|
+
|
|
848
|
+
Moqui metadata extractor helper (script-level catalog bootstrap):
|
|
849
|
+
- `node scripts/moqui-metadata-extract.js [--project-dir <path>] [--out <path>] [--markdown-out <path>] [--json]`: build a normalized metadata catalog from multiple sources for rebuild automation. Default sources include Moqui XML resources (`entity/service/screen/form/rule/decision`), scene package contracts (`.kiro/specs/**/docs/scene-package.json`), handoff manifest/capability matrix, and handoff evidence JSON.
|
|
850
|
+
- Recommended first step before `moqui-standard-rebuild`.
|
|
851
|
+
- Keep extraction source read-only and run rebuild generation against SCE output directories.
|
|
852
|
+
|
|
836
853
|
Recommended `.kiro/config/orchestrator.json`:
|
|
837
854
|
|
|
838
855
|
```json
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# Moqui Standard Rebuild Guide
|
|
2
|
+
|
|
3
|
+
This guide bootstraps a standard Moqui recovery bundle using SCE templates and metadata.
|
|
4
|
+
It is designed to avoid direct interference with an in-progress `331-poc` repair stream.
|
|
5
|
+
|
|
6
|
+
## Goal
|
|
7
|
+
|
|
8
|
+
- Rebuild baseline business capability assets from metadata.
|
|
9
|
+
- Keep original Moqui technology stack unchanged.
|
|
10
|
+
- Add a page-level human/AI copilot dialog contract for contextual fixes.
|
|
11
|
+
|
|
12
|
+
## Recommended Workspace Strategy
|
|
13
|
+
|
|
14
|
+
1. Keep SCE in `E:/workspace/kiro-spec-engine` for reusable rebuild tooling.
|
|
15
|
+
2. Keep business rebuild target isolated (recommended): `E:/workspace/331-poc-rebuild`.
|
|
16
|
+
3. Do not write generated recovery files into live `331-poc` unless explicitly approved.
|
|
17
|
+
|
|
18
|
+
## Input Metadata (minimum)
|
|
19
|
+
|
|
20
|
+
Provide a JSON file with at least one of these arrays:
|
|
21
|
+
|
|
22
|
+
- `entities`
|
|
23
|
+
- `services`
|
|
24
|
+
- `screens`
|
|
25
|
+
- `forms`
|
|
26
|
+
|
|
27
|
+
Optional:
|
|
28
|
+
|
|
29
|
+
- `business_rules`
|
|
30
|
+
- `decisions`
|
|
31
|
+
|
|
32
|
+
## Step 1: Extract Metadata (from Moqui project)
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
node scripts/moqui-metadata-extract.js \
|
|
36
|
+
--project-dir E:/workspace/your-moqui-project \
|
|
37
|
+
--out docs/moqui/metadata-catalog.json \
|
|
38
|
+
--markdown-out docs/moqui/metadata-catalog.md \
|
|
39
|
+
--json
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
`moqui-metadata-extract` now performs multi-source catalog extraction by default:
|
|
43
|
+
- Moqui XML (`entity/service/screen/form/rule/decision`)
|
|
44
|
+
- `scene-package.json` contracts in `.kiro/specs/**/docs/`
|
|
45
|
+
- `docs/handoffs/handoff-manifest.json`
|
|
46
|
+
- `docs/handoffs/capability-matrix.md`
|
|
47
|
+
- `docs/handoffs/evidence/**/*.json`
|
|
48
|
+
- `.kiro/recovery/salvage/**/*.json` (if present)
|
|
49
|
+
|
|
50
|
+
## Step 2: Build Rebuild Bundle
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
node scripts/moqui-standard-rebuild.js \
|
|
54
|
+
--metadata docs/moqui/metadata-catalog.json \
|
|
55
|
+
--out .kiro/reports/recovery/moqui-standard-rebuild.json \
|
|
56
|
+
--markdown-out .kiro/reports/recovery/moqui-standard-rebuild.md \
|
|
57
|
+
--bundle-out .kiro/reports/recovery/moqui-standard-bundle \
|
|
58
|
+
--json
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## Step 3: Run Rebuild Readiness Gate (recommended for CI/release)
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
node scripts/moqui-rebuild-gate.js \
|
|
65
|
+
--metadata docs/moqui/metadata-catalog.json \
|
|
66
|
+
--out .kiro/reports/recovery/moqui-standard-rebuild.json \
|
|
67
|
+
--markdown-out .kiro/reports/recovery/moqui-standard-rebuild.md \
|
|
68
|
+
--bundle-out .kiro/reports/recovery/moqui-standard-bundle
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Defaults: `ready>=6`, `partial<=0`, `gap<=0`.
|
|
72
|
+
|
|
73
|
+
## Generated Bundle
|
|
74
|
+
|
|
75
|
+
- `handoff/handoff-manifest.json`: seed manifest for SCE handoff gates.
|
|
76
|
+
- `ontology/moqui-ontology-seed.json`: initial ontology graph seed.
|
|
77
|
+
- `rebuild/recovery-spec-plan.json`: ordered recovery spec list.
|
|
78
|
+
- `rebuild/matrix-remediation.lines`: prioritized remediation queue lines derived from template readiness gaps.
|
|
79
|
+
- `rebuild/matrix-remediation-plan.json`: gap-to-source-file remediation plan for quick 331 execution.
|
|
80
|
+
- `rebuild/matrix-remediation-plan.md`: markdown view of remediation plan.
|
|
81
|
+
- `copilot/page-context-contract.json`: page-context contract for copilot dialog.
|
|
82
|
+
- `copilot/conversation-playbook.md`: operational playbook for human/AI page fixes.
|
|
83
|
+
- rebuild report includes template readiness scoring (`recovery.readiness_matrix`) and prioritized remediation items (`recovery.prioritized_gaps`).
|
|
84
|
+
|
|
85
|
+
## Default Moqui Template Matrix
|
|
86
|
+
|
|
87
|
+
- `kse.scene--moqui-entity-model-core--0.1.0`
|
|
88
|
+
- `kse.scene--moqui-service-contract-core--0.1.0`
|
|
89
|
+
- `kse.scene--moqui-screen-flow-core--0.1.0`
|
|
90
|
+
- `kse.scene--moqui-form-interaction-core--0.1.0`
|
|
91
|
+
- `kse.scene--moqui-rule-decision-core--0.1.0`
|
|
92
|
+
- `kse.scene--moqui-page-copilot-dialog--0.1.0`
|
|
93
|
+
|
|
94
|
+
## Next Step for Business Project
|
|
95
|
+
|
|
96
|
+
Use generated assets as input to a dedicated rebuild project (for example `331-poc-rebuild`) and execute normal SCE handoff + gate flows there.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "scene-capability-engine",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.7",
|
|
4
4
|
"description": "SCE (Scene Capability Engine) - A CLI tool and npm package for spec-driven development with AI coding assistants.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -35,6 +35,9 @@
|
|
|
35
35
|
"test:brand-consistency": "node scripts/check-branding-consistency.js",
|
|
36
36
|
"test:watch": "npx jest --watch",
|
|
37
37
|
"coverage": "npx jest --coverage",
|
|
38
|
+
"report:moqui-metadata": "node scripts/moqui-metadata-extract.js --json",
|
|
39
|
+
"report:moqui-rebuild": "node scripts/moqui-standard-rebuild.js --json",
|
|
40
|
+
"gate:moqui-rebuild": "node scripts/moqui-rebuild-gate.js",
|
|
38
41
|
"report:moqui-baseline": "node scripts/moqui-template-baseline-report.js --json",
|
|
39
42
|
"report:moqui-core-regression": "node scripts/moqui-core-regression-suite.js --json",
|
|
40
43
|
"prepublishOnly": "npm run test:full && npm run test:skip-audit && npm run test:brand-consistency",
|