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
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
# 快速入门:配合 AI 工具使用
|
|
1
|
+
# 快速入门:配合 AI 工具使用 sce
|
|
2
2
|
|
|
3
|
-
> 5分钟学会如何用
|
|
3
|
+
> 5分钟学会如何用 sce 配合 Claude、Cursor、Copilot 等 AI 工具
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
## ⚠️ 重要:
|
|
7
|
+
## ⚠️ 重要:sce 的定位
|
|
8
8
|
|
|
9
|
-
**
|
|
9
|
+
**sce 不是独立开发工具,而是 AI 工具的增强器**
|
|
10
10
|
|
|
11
11
|
```
|
|
12
12
|
你的工作界面 = AI 工具(Codex/Claude/Cursor)
|
|
13
|
-
|
|
13
|
+
sce 的角色 = 后台管理 Spec,为 AI 提供结构化上下文
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
**简单理解**:
|
|
17
|
-
- ❌
|
|
18
|
-
- ✅
|
|
19
|
-
- ✅ 你主要在 AI 工具中工作,
|
|
17
|
+
- ❌ sce 不是用来写代码的
|
|
18
|
+
- ✅ sce 是用来**组织项目信息**,让 AI 更好地帮你写代码
|
|
19
|
+
- ✅ 你主要在 AI 工具中工作,sce 在后台提供支持
|
|
20
20
|
|
|
21
21
|
**三种使用模式**:
|
|
22
|
-
1. **AI 主动调用
|
|
22
|
+
1. **AI 主动调用 sce**(Windsurf/Cline)- 最佳,完全自动 ⭐
|
|
23
23
|
2. **手动导出上下文**(Claude/ChatGPT)- 当前方式
|
|
24
24
|
3. **Watch Mode 自动化**(所有工具)- 进阶用法
|
|
25
25
|
|
|
@@ -29,13 +29,13 @@ kse 的角色 = 后台管理 Spec,为 AI 提供结构化上下文
|
|
|
29
29
|
|
|
30
30
|
## 核心理念
|
|
31
31
|
|
|
32
|
-
**
|
|
32
|
+
**sce 是什么?**
|
|
33
33
|
- 一个 CLI 工具,帮你管理项目的 Spec(需求、设计、任务)
|
|
34
34
|
- 生成结构化的上下文,让 AI 工具更好地理解你的项目
|
|
35
35
|
|
|
36
|
-
**为什么需要
|
|
36
|
+
**为什么需要 sce?**
|
|
37
37
|
- AI 工具需要清晰的上下文才能生成高质量代码
|
|
38
|
-
-
|
|
38
|
+
- sce 帮你组织和导出这些上下文
|
|
39
39
|
- 让 AI 按照你的设计和规范工作
|
|
40
40
|
|
|
41
41
|
---
|
|
@@ -44,7 +44,7 @@ kse 的角色 = 后台管理 Spec,为 AI 提供结构化上下文
|
|
|
44
44
|
|
|
45
45
|
```
|
|
46
46
|
┌─────────────┐
|
|
47
|
-
│ 1. 用
|
|
47
|
+
│ 1. 用 sce │
|
|
48
48
|
│ 创建 Spec │
|
|
49
49
|
└──────┬──────┘
|
|
50
50
|
│
|
|
@@ -77,17 +77,17 @@ kse 的角色 = 后台管理 Spec,为 AI 提供结构化上下文
|
|
|
77
77
|
|
|
78
78
|
## 5分钟快速开始
|
|
79
79
|
|
|
80
|
-
### 步骤 1:安装
|
|
80
|
+
### 步骤 1:安装 sce
|
|
81
81
|
|
|
82
82
|
```bash
|
|
83
|
-
npm install -g
|
|
83
|
+
npm install -g scene-capability-engine
|
|
84
84
|
```
|
|
85
85
|
|
|
86
86
|
### 步骤 2:初始化项目
|
|
87
87
|
|
|
88
88
|
```bash
|
|
89
89
|
cd your-project
|
|
90
|
-
|
|
90
|
+
sce adopt
|
|
91
91
|
```
|
|
92
92
|
|
|
93
93
|
这会在项目中创建 `.kiro/` 目录。
|
|
@@ -95,7 +95,7 @@ kse adopt
|
|
|
95
95
|
### 步骤 3:创建你的第一个 Spec
|
|
96
96
|
|
|
97
97
|
```bash
|
|
98
|
-
|
|
98
|
+
sce spec bootstrap --name 01-00-user-login --non-interactive
|
|
99
99
|
```
|
|
100
100
|
|
|
101
101
|
然后编辑生成的文件:
|
|
@@ -106,7 +106,7 @@ kse spec bootstrap --name 01-00-user-login --non-interactive
|
|
|
106
106
|
### 步骤 4:导出上下文
|
|
107
107
|
|
|
108
108
|
```bash
|
|
109
|
-
|
|
109
|
+
sce context export 01-00-user-login
|
|
110
110
|
```
|
|
111
111
|
|
|
112
112
|
这会生成:`.kiro/specs/01-00-user-login/context-export.md`
|
|
@@ -124,7 +124,7 @@ kse context export 01-00-user-login
|
|
|
124
124
|
|
|
125
125
|
1. 生成任务提示:
|
|
126
126
|
```bash
|
|
127
|
-
|
|
127
|
+
sce prompt generate 01-00-user-login 1.1
|
|
128
128
|
```
|
|
129
129
|
|
|
130
130
|
2. 打开 Cursor Composer (Cmd+K)
|
|
@@ -157,7 +157,7 @@ kse context export 01-00-user-login
|
|
|
157
157
|
### 1. 创建 Spec
|
|
158
158
|
|
|
159
159
|
```bash
|
|
160
|
-
|
|
160
|
+
sce spec bootstrap --name 01-00-user-login --non-interactive
|
|
161
161
|
```
|
|
162
162
|
|
|
163
163
|
### 2. 编写需求(requirements.md)
|
|
@@ -206,7 +206,7 @@ kse spec bootstrap --name 01-00-user-login --non-interactive
|
|
|
206
206
|
### 5. 导出上下文
|
|
207
207
|
|
|
208
208
|
```bash
|
|
209
|
-
|
|
209
|
+
sce context export 01-00-user-login
|
|
210
210
|
```
|
|
211
211
|
|
|
212
212
|
### 6. 在 Claude Code 中使用
|
|
@@ -242,7 +242,7 @@ Claude:[生成测试代码]
|
|
|
242
242
|
|
|
243
243
|
### Cursor
|
|
244
244
|
✅ **优势**:IDE 集成,可以直接修改文件
|
|
245
|
-
📝 **用法**:用 `
|
|
245
|
+
📝 **用法**:用 `sce prompt generate` 生成任务提示
|
|
246
246
|
💡 **技巧**:使用 Composer 模式,让 Cursor 直接编辑文件
|
|
247
247
|
|
|
248
248
|
### GitHub Copilot
|
|
@@ -252,7 +252,7 @@ Claude:[生成测试代码]
|
|
|
252
252
|
|
|
253
253
|
### Windsurf / Cline
|
|
254
254
|
✅ **优势**:可以执行命令和修改文件
|
|
255
|
-
📝 **用法**:让 AI 直接运行 `
|
|
255
|
+
📝 **用法**:让 AI 直接运行 `sce` 命令
|
|
256
256
|
💡 **技巧**:AI 可以自动导出上下文和更新任务状态
|
|
257
257
|
|
|
258
258
|
---
|
|
@@ -271,7 +271,7 @@ Claude:[生成测试代码]
|
|
|
271
271
|
**A**: 使用任务级别的提示:
|
|
272
272
|
```bash
|
|
273
273
|
# 只导出特定任务的上下文
|
|
274
|
-
|
|
274
|
+
sce prompt generate 01-00-user-login 1.1
|
|
275
275
|
```
|
|
276
276
|
|
|
277
277
|
### Q: AI 生成的代码不符合设计怎么办?
|
|
@@ -286,13 +286,13 @@ kse prompt generate 01-00-user-login 1.1
|
|
|
286
286
|
**A**: 使用 Steering Rules:
|
|
287
287
|
```bash
|
|
288
288
|
# 导出时包含规范
|
|
289
|
-
|
|
289
|
+
sce context export 01-00-user-login --steering --steering-files=CORE_PRINCIPLES.md
|
|
290
290
|
```
|
|
291
291
|
|
|
292
292
|
### Q: 可以自动更新任务状态吗?
|
|
293
293
|
|
|
294
294
|
**A**:
|
|
295
|
-
- **
|
|
295
|
+
- **AI IDE**:支持自动更新
|
|
296
296
|
- **其他工具**:需要手动更新 `tasks.md`
|
|
297
297
|
- **未来**:计划支持更多工具的自动更新
|
|
298
298
|
|
|
@@ -315,27 +315,27 @@ kse context export 01-00-user-login --steering --steering-files=CORE_PRINCIPLES.
|
|
|
315
315
|
|
|
316
316
|
导出时包含:
|
|
317
317
|
```bash
|
|
318
|
-
|
|
318
|
+
sce context export 01-00-user-login --steering
|
|
319
319
|
```
|
|
320
320
|
|
|
321
321
|
### 2. 为不同工具生成不同格式的提示
|
|
322
322
|
|
|
323
323
|
```bash
|
|
324
324
|
# 为 Claude 生成
|
|
325
|
-
|
|
325
|
+
sce prompt generate 01-00-user-login 1.1 --tool=claude-code
|
|
326
326
|
|
|
327
327
|
# 为 Cursor 生成
|
|
328
|
-
|
|
328
|
+
sce prompt generate 01-00-user-login 1.1 --tool=cursor
|
|
329
329
|
|
|
330
330
|
# 通用格式
|
|
331
|
-
|
|
331
|
+
sce prompt generate 01-00-user-login 1.1
|
|
332
332
|
```
|
|
333
333
|
|
|
334
334
|
### 3. 批量导出多个任务
|
|
335
335
|
|
|
336
336
|
```bash
|
|
337
337
|
# 导出整个 Spec
|
|
338
|
-
|
|
338
|
+
sce context export 01-00-user-login
|
|
339
339
|
|
|
340
340
|
# 然后在 AI 工具中说:
|
|
341
341
|
# "请按顺序实现任务 1.1 到 1.5"
|
|
@@ -345,14 +345,14 @@ kse context export 01-00-user-login
|
|
|
345
345
|
|
|
346
346
|
## 总结
|
|
347
347
|
|
|
348
|
-
**
|
|
348
|
+
**sce 的价值**:
|
|
349
349
|
1. ✅ 结构化管理项目需求和设计
|
|
350
350
|
2. ✅ 生成 AI 友好的上下文
|
|
351
351
|
3. ✅ 让 AI 按照你的规范工作
|
|
352
352
|
4. ✅ 跟踪任务进度
|
|
353
353
|
|
|
354
354
|
**配合 AI 工具的流程**:
|
|
355
|
-
1. 用
|
|
355
|
+
1. 用 sce 写 Spec(需求、设计、任务)
|
|
356
356
|
2. 导出上下文
|
|
357
357
|
3. 复制给 AI 工具
|
|
358
358
|
4. AI 帮你写代码
|
|
@@ -368,8 +368,8 @@ kse context export 01-00-user-login
|
|
|
368
368
|
**开始使用!** 🚀
|
|
369
369
|
|
|
370
370
|
```bash
|
|
371
|
-
npm install -g
|
|
372
|
-
|
|
373
|
-
|
|
371
|
+
npm install -g scene-capability-engine
|
|
372
|
+
sce adopt
|
|
373
|
+
sce spec bootstrap --name 01-00-my-feature --non-interactive
|
|
374
374
|
```
|
|
375
375
|
|
package/docs/quick-start.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
## What You'll Learn
|
|
8
8
|
|
|
9
|
-
- ✅ Install
|
|
9
|
+
- ✅ Install sce and adopt it in your project
|
|
10
10
|
- ✅ Tell your AI about the methodology
|
|
11
11
|
- ✅ Let AI work according to Spec-driven approach
|
|
12
12
|
|
|
@@ -18,15 +18,15 @@
|
|
|
18
18
|
|
|
19
19
|
---
|
|
20
20
|
|
|
21
|
-
## Step 1: Install
|
|
21
|
+
## Step 1: Install sce (30 seconds)
|
|
22
22
|
|
|
23
23
|
```bash
|
|
24
|
-
npm install -g
|
|
24
|
+
npm install -g scene-capability-engine
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
Verify:
|
|
28
28
|
```bash
|
|
29
|
-
|
|
29
|
+
sce --version
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
---
|
|
@@ -35,7 +35,7 @@ kse --version
|
|
|
35
35
|
|
|
36
36
|
```bash
|
|
37
37
|
cd your-project
|
|
38
|
-
|
|
38
|
+
sce adopt
|
|
39
39
|
```
|
|
40
40
|
|
|
41
41
|
This creates `.kiro/` directory with:
|
|
@@ -78,17 +78,17 @@ I need a user login feature with email and password.
|
|
|
78
78
|
|
|
79
79
|
```bash
|
|
80
80
|
# Single-Spec recommended flow
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
81
|
+
sce spec bootstrap --name 01-00-user-login --non-interactive
|
|
82
|
+
sce spec pipeline run --spec 01-00-user-login
|
|
83
|
+
sce spec gate run --spec 01-00-user-login --json
|
|
84
84
|
|
|
85
85
|
# Multi-Spec flow (defaults to orchestrate mode)
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
86
|
+
sce spec bootstrap --specs "01-00-user-login,01-01-user-session" --max-parallel 3
|
|
87
|
+
sce spec pipeline run --specs "01-00-user-login,01-01-user-session" --max-parallel 3
|
|
88
|
+
sce spec gate run --specs "01-00-user-login,01-01-user-session" --max-parallel 3
|
|
89
89
|
```
|
|
90
90
|
|
|
91
|
-
**The AI uses
|
|
91
|
+
**The AI uses sce commands automatically** - you don't need to learn them.
|
|
92
92
|
|
|
93
93
|
---
|
|
94
94
|
|
|
@@ -97,13 +97,13 @@ kse spec gate run --specs "01-00-user-login,01-01-user-session" --max-parallel 3
|
|
|
97
97
|
Generate a sample KPI input file:
|
|
98
98
|
|
|
99
99
|
```bash
|
|
100
|
-
|
|
100
|
+
sce value metrics sample --out ./kpi-input.json --period 2026-W10 --json
|
|
101
101
|
```
|
|
102
102
|
|
|
103
103
|
Then run:
|
|
104
104
|
|
|
105
105
|
```bash
|
|
106
|
-
|
|
106
|
+
sce value metrics snapshot --input ./kpi-input.json --json
|
|
107
107
|
```
|
|
108
108
|
|
|
109
109
|
If you prefer manual input, use:
|
|
@@ -129,13 +129,13 @@ This gives you a machine-readable snapshot with risk level and output paths.
|
|
|
129
129
|
|
|
130
130
|
You're now using Spec-driven development. Your AI understands the methodology and will follow it.
|
|
131
131
|
|
|
132
|
-
**Key insight:** You don't "use
|
|
132
|
+
**Key insight:** You don't "use sce" - your project "follows Spec-driven methodology" and sce helps enforce it.
|
|
133
133
|
|
|
134
134
|
---
|
|
135
135
|
|
|
136
136
|
## Next Steps
|
|
137
137
|
|
|
138
|
-
- **[Integration Modes](integration-modes.md)** - Understand how AI tools work with
|
|
138
|
+
- **[Integration Modes](integration-modes.md)** - Understand how AI tools work with sce
|
|
139
139
|
- **[Spec Workflow](spec-workflow.md)** - Deep dive into Spec creation
|
|
140
140
|
- **[Tool Guides](tools/)** - Tool-specific tips
|
|
141
141
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Release Checklist
|
|
2
2
|
|
|
3
|
-
> Minimal, repeatable checklist before publishing a new
|
|
3
|
+
> Minimal, repeatable checklist before publishing a new sce version.
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -20,8 +20,8 @@ npm run test:skip-audit
|
|
|
20
20
|
npm test -- tests/unit/commands/value-metrics.test.js
|
|
21
21
|
|
|
22
22
|
# CLI smoke checks
|
|
23
|
-
node bin/
|
|
24
|
-
node bin/
|
|
23
|
+
node bin/scene-capability-engine.js --help
|
|
24
|
+
node bin/scene-capability-engine.js value metrics --help
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
---
|
|
@@ -29,8 +29,8 @@ node bin/kiro-spec-engine.js value metrics --help
|
|
|
29
29
|
## 2. Value Observability Smoke Flow
|
|
30
30
|
|
|
31
31
|
```bash
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
sce value metrics sample --out ./kpi-input.json --json
|
|
33
|
+
sce value metrics snapshot --input ./kpi-input.json --json
|
|
34
34
|
```
|
|
35
35
|
|
|
36
36
|
Expected:
|
|
@@ -70,7 +70,7 @@ Optional sanity scan:
|
|
|
70
70
|
rg -n "yourusername|support@example.com" README.md README.zh.md docs docs/zh -S
|
|
71
71
|
|
|
72
72
|
# Canonical repository link check (should return no matches)
|
|
73
|
-
rg -n "github.com/
|
|
73
|
+
rg -n "github.com/scene-capability-engine/sce" README.md README.zh.md docs START_HERE.txt INSTALL_OFFLINE.txt -S -g "!docs/release-checklist.md" -g "!docs/zh/release-checklist.md"
|
|
74
74
|
```
|
|
75
75
|
|
|
76
76
|
---
|
|
@@ -116,6 +116,6 @@ Ensure:
|
|
|
116
116
|
- `KSE_RELEASE_DRIFT_HARD_GATE_BLOCK_STREAK_MIN`: minimum consecutive hard-gate preflight blocked streak (latest window, default `2`)
|
|
117
117
|
- `KSE_RELEASE_DRIFT_PREFLIGHT_UNAVAILABLE_STREAK_MIN`: minimum consecutive release preflight unavailable streak (latest window, default `2`)
|
|
118
118
|
- Optional local dry-run for gate history index artifact:
|
|
119
|
-
- `
|
|
119
|
+
- `sce auto handoff gate-index --dir .kiro/reports/release-evidence --out .kiro/reports/release-evidence/release-gate-history.json --json`
|
|
120
120
|
|
|
121
121
|
Then proceed with your release workflow (tag, push, npm publish, GitHub release).
|
package/docs/releases/v1.46.2.md
CHANGED
|
@@ -5,15 +5,15 @@ Release date: 2026-02-14
|
|
|
5
5
|
## Highlights
|
|
6
6
|
|
|
7
7
|
- Added KPI observability commands for real delivery measurement:
|
|
8
|
-
- `
|
|
9
|
-
- `
|
|
10
|
-
- `
|
|
8
|
+
- `sce value metrics snapshot`
|
|
9
|
+
- `sce value metrics baseline`
|
|
10
|
+
- `sce value metrics trend`
|
|
11
11
|
- Added first-run scaffold command:
|
|
12
|
-
- `
|
|
12
|
+
- `sce value metrics sample`
|
|
13
13
|
- Improved operator experience:
|
|
14
14
|
- Actionable failure guidance now points to concrete next commands.
|
|
15
15
|
- Strengthened product positioning:
|
|
16
|
-
- README, quick-start, and docs index now clearly express
|
|
16
|
+
- README, quick-start, and docs index now clearly express sce advantages.
|
|
17
17
|
- Refreshed onboarding consistency:
|
|
18
18
|
- `START_HERE.txt`, `INSTALL_OFFLINE.txt`, and `docs/OFFLINE_INSTALL.md` now align with current version and workflow.
|
|
19
19
|
- Improved package hygiene:
|
|
@@ -21,7 +21,7 @@ Release date: 2026-02-14
|
|
|
21
21
|
|
|
22
22
|
## Why This Release Matters
|
|
23
23
|
|
|
24
|
-
This release shifts
|
|
24
|
+
This release shifts sce from "workflow tooling" to "measurable delivery system":
|
|
25
25
|
|
|
26
26
|
- You can now produce weekly, machine-readable KPI evidence.
|
|
27
27
|
- You can compare baseline vs trend for risk review.
|
|
@@ -30,10 +30,10 @@ This release shifts kse from "workflow tooling" to "measurable delivery system":
|
|
|
30
30
|
## Quick Verification
|
|
31
31
|
|
|
32
32
|
```bash
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
sce adopt
|
|
34
|
+
sce spec bootstrap --name 01-00-demo-feature --non-interactive
|
|
35
|
+
sce value metrics sample --out ./kpi-input.json --json
|
|
36
|
+
sce value metrics snapshot --input ./kpi-input.json --json
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
## Upgrade Notes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Scene Runtime Guide
|
|
2
2
|
|
|
3
|
-
> Complete guide to
|
|
3
|
+
> Complete guide to sce Scene features: Template Engine, Quality Pipeline, Ontology, and Moqui ERP Integration
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
## Overview
|
|
13
13
|
|
|
14
|
-
The
|
|
14
|
+
The sce Scene Runtime is a suite of features for building, validating, scoring, and analyzing reusable scene template packages. Scene packages describe business capabilities (e.g., ERP inventory management) as structured templates that AI agents can understand and instantiate.
|
|
15
15
|
|
|
16
16
|
### Feature Timeline
|
|
17
17
|
|
|
@@ -76,16 +76,16 @@ Each layer can extend the parent's variable schema and template files. The `temp
|
|
|
76
76
|
|
|
77
77
|
```bash
|
|
78
78
|
# Validate variable schema
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
sce scene template-validate --package <path>
|
|
80
|
+
sce scene template-validate --package ./my-package --json
|
|
81
81
|
|
|
82
82
|
# Resolve inheritance chain
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
sce scene template-resolve --package <name>
|
|
84
|
+
sce scene template-resolve --package scene-erp-inventory --json
|
|
85
85
|
|
|
86
86
|
# Render templates with variable values
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
sce scene template-render --package <name> --values <json-or-path> --out <dir>
|
|
88
|
+
sce scene template-render --package scene-erp --values '{"entity_name":"Order"}' --out ./output --json
|
|
89
89
|
```
|
|
90
90
|
|
|
91
91
|
---
|
|
@@ -125,17 +125,17 @@ Analyzes Moqui ERP resources and generates reusable scene templates:
|
|
|
125
125
|
|
|
126
126
|
```bash
|
|
127
127
|
# Test connectivity
|
|
128
|
-
|
|
129
|
-
|
|
128
|
+
sce scene connect --config <path>
|
|
129
|
+
sce scene connect --config ./moqui-config.json --json
|
|
130
130
|
|
|
131
131
|
# Discover entities, services, screens
|
|
132
|
-
|
|
133
|
-
|
|
132
|
+
sce scene discover --config <path>
|
|
133
|
+
sce scene discover --config ./moqui-config.json --type entities --json
|
|
134
134
|
|
|
135
135
|
# Extract scene templates
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
136
|
+
sce scene extract --config <path> --out <dir>
|
|
137
|
+
sce scene extract --config ./moqui-config.json --type entities --pattern crud --out ./templates --json
|
|
138
|
+
sce scene extract --config ./moqui-config.json --dry-run --json
|
|
139
139
|
```
|
|
140
140
|
|
|
141
141
|
### Configuration File
|
|
@@ -190,30 +190,30 @@ One-stop workflow: validate → lint → score → preview → publish.
|
|
|
190
190
|
|
|
191
191
|
```bash
|
|
192
192
|
# Full pipeline
|
|
193
|
-
|
|
193
|
+
sce scene contribute --package <path>
|
|
194
194
|
|
|
195
195
|
# With registry target
|
|
196
|
-
|
|
196
|
+
sce scene contribute --package ./my-package --registry ./registry --json
|
|
197
197
|
|
|
198
198
|
# Dry-run (preview only)
|
|
199
|
-
|
|
199
|
+
sce scene contribute --package ./my-package --dry-run
|
|
200
200
|
|
|
201
201
|
# Skip lint step
|
|
202
|
-
|
|
202
|
+
sce scene contribute --package ./my-package --skip-lint --json
|
|
203
203
|
```
|
|
204
204
|
|
|
205
205
|
### CLI Commands
|
|
206
206
|
|
|
207
207
|
```bash
|
|
208
208
|
# Lint
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
209
|
+
sce scene lint --package <path>
|
|
210
|
+
sce scene lint --package ./my-package --json
|
|
211
|
+
sce scene lint --package ./my-package --strict
|
|
212
212
|
|
|
213
213
|
# Score
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
214
|
+
sce scene score --package <path>
|
|
215
|
+
sce scene score --package ./my-package --json
|
|
216
|
+
sce scene score --package ./my-package --strict
|
|
217
217
|
```
|
|
218
218
|
|
|
219
219
|
---
|
|
@@ -301,36 +301,36 @@ Quality scoring bonus dimension (max +10 points) based on:
|
|
|
301
301
|
|
|
302
302
|
```bash
|
|
303
303
|
# Show ontology graph
|
|
304
|
-
|
|
305
|
-
|
|
304
|
+
sce scene ontology show --package <path>
|
|
305
|
+
sce scene ontology show --package ./my-package --json
|
|
306
306
|
|
|
307
307
|
# Query dependency chain
|
|
308
|
-
|
|
309
|
-
|
|
308
|
+
sce scene ontology deps --package <path> --ref <node-ref>
|
|
309
|
+
sce scene ontology deps --package ./my-package --ref entity:Order --json
|
|
310
310
|
|
|
311
311
|
# Query reverse impact radius
|
|
312
|
-
|
|
313
|
-
|
|
312
|
+
sce scene ontology impact --package <path> --ref <node-ref>
|
|
313
|
+
sce scene ontology impact --package ./my-package --ref service:createOrder --relation depends_on,composes --max-depth 2 --json
|
|
314
314
|
|
|
315
315
|
# Query shortest relation path between two refs
|
|
316
|
-
|
|
317
|
-
|
|
316
|
+
sce scene ontology path --package <path> --from <source-ref> --to <target-ref>
|
|
317
|
+
sce scene ontology path --package ./my-package --from service:createOrder --to entity:Order --undirected --json
|
|
318
318
|
|
|
319
319
|
# Validate graph (dangling edges, cycles)
|
|
320
|
-
|
|
321
|
-
|
|
320
|
+
sce scene ontology validate --package <path>
|
|
321
|
+
sce scene ontology validate --package ./my-package --json
|
|
322
322
|
|
|
323
323
|
# Show action abstraction
|
|
324
|
-
|
|
325
|
-
|
|
324
|
+
sce scene ontology actions --package <path>
|
|
325
|
+
sce scene ontology actions --package ./my-package --ref service:createOrder --json
|
|
326
326
|
|
|
327
327
|
# Show data lineage
|
|
328
|
-
|
|
329
|
-
|
|
328
|
+
sce scene ontology lineage --package <path>
|
|
329
|
+
sce scene ontology lineage --package ./my-package --ref entity:Order --json
|
|
330
330
|
|
|
331
331
|
# Show agent hints
|
|
332
|
-
|
|
333
|
-
|
|
332
|
+
sce scene ontology agent-info --package <path>
|
|
333
|
+
sce scene ontology agent-info --package ./my-package --json
|
|
334
334
|
```
|
|
335
335
|
|
|
336
336
|
---
|
|
@@ -339,7 +339,7 @@ kse scene ontology agent-info --package ./my-package --json
|
|
|
339
339
|
|
|
340
340
|
- [Command Reference](command-reference.md) — Complete CLI command documentation
|
|
341
341
|
- [Architecture](architecture.md) — System architecture overview
|
|
342
|
-
- [Developer Guide](developer-guide.md) — Contributing and extending
|
|
342
|
+
- [Developer Guide](developer-guide.md) — Contributing and extending sce
|
|
343
343
|
|
|
344
344
|
---
|
|
345
345
|
|