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.
@@ -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);