scene-capability-engine 3.3.26 → 3.4.6
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 +82 -0
- package/README.md +100 -711
- package/README.zh.md +103 -577
- package/bin/scene-capability-engine.js +103 -0
- package/docs/README.md +47 -249
- package/docs/command-reference.md +84 -9
- package/docs/images/wechat-qr.png +0 -0
- package/docs/spec-workflow.md +35 -4
- package/docs/zh/README.md +44 -331
- package/lib/adoption/adoption-strategy.js +5 -0
- package/lib/adoption/detection-engine.js +5 -0
- package/lib/adoption/file-classifier.js +6 -1
- package/lib/adoption/smart-orchestrator.js +5 -0
- package/lib/commands/adopt.js +32 -0
- package/lib/commands/errorbook.js +551 -4
- package/lib/commands/spec-domain.js +78 -2
- package/lib/commands/studio.js +550 -9
- package/lib/commands/upgrade.js +16 -0
- package/lib/problem/problem-evaluator.js +1035 -0
- package/lib/spec/domain-modeling.js +266 -5
- package/lib/workspace/takeover-baseline.js +514 -0
- package/package.json +1 -1
- package/template/.sce/config/problem-closure-policy.json +18 -0
- package/template/.sce/config/problem-eval-policy.json +78 -0
- package/template/.sce/config/session-governance.json +8 -0
- package/template/.sce/config/spec-domain-policy.json +14 -0
- package/template/.sce/config/takeover-baseline.json +33 -0
- package/template/.sce/steering/CORE_PRINCIPLES.md +4 -2
package/lib/commands/upgrade.js
CHANGED
|
@@ -11,6 +11,7 @@ const path = require('path');
|
|
|
11
11
|
const VersionManager = require('../version/version-manager');
|
|
12
12
|
const MigrationEngine = require('../upgrade/migration-engine');
|
|
13
13
|
const BackupSystem = require('../backup/backup-system');
|
|
14
|
+
const { applyTakeoverBaseline } = require('../workspace/takeover-baseline');
|
|
14
15
|
|
|
15
16
|
/**
|
|
16
17
|
* Executes the upgrade command
|
|
@@ -177,6 +178,12 @@ async function upgradeCommand(options = {}) {
|
|
|
177
178
|
|
|
178
179
|
// 9. Report results
|
|
179
180
|
if (result.success) {
|
|
181
|
+
const takeoverReport = await applyTakeoverBaseline(projectPath, {
|
|
182
|
+
apply: true,
|
|
183
|
+
writeReport: true,
|
|
184
|
+
sceVersion: packageJson.version
|
|
185
|
+
});
|
|
186
|
+
|
|
180
187
|
console.log(chalk.green('✅ Upgrade completed successfully!'));
|
|
181
188
|
console.log();
|
|
182
189
|
console.log(` Upgraded from ${chalk.cyan(result.fromVersion)} to ${chalk.cyan(result.toVersion)}`);
|
|
@@ -200,6 +207,15 @@ async function upgradeCommand(options = {}) {
|
|
|
200
207
|
console.log(chalk.yellow('⚠️ Warnings:'));
|
|
201
208
|
result.warnings.forEach(warning => console.log(` ${warning}`));
|
|
202
209
|
}
|
|
210
|
+
|
|
211
|
+
if (takeoverReport.detected_project && (takeoverReport.summary.created > 0 || takeoverReport.summary.updated > 0)) {
|
|
212
|
+
console.log();
|
|
213
|
+
console.log(chalk.blue('🧭 Takeover baseline aligned with current SCE defaults'));
|
|
214
|
+
console.log(chalk.gray(` created=${takeoverReport.summary.created}, updated=${takeoverReport.summary.updated}`));
|
|
215
|
+
if (takeoverReport.report_file) {
|
|
216
|
+
console.log(chalk.gray(` report: ${takeoverReport.report_file}`));
|
|
217
|
+
}
|
|
218
|
+
}
|
|
203
219
|
|
|
204
220
|
console.log();
|
|
205
221
|
console.log(chalk.blue('📦 Backup:'), backup.id);
|