openxiangda 1.0.182 → 1.0.183

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.
@@ -334,6 +334,21 @@ function releaseExecutionPath(changeId, deploymentId, cwd = process.cwd()) {
334
334
  : path.join(base, 'execution.json');
335
335
  }
336
336
 
337
+ function withManagedReleaseForwardedFlags(stepId, args = [], flags = {}) {
338
+ const forwarded = [...args];
339
+ if (stepId !== 'backend-stage' || !flags['adopt-online-baseline']) {
340
+ return forwarded;
341
+ }
342
+ forwarded.push('--adopt-online-baseline');
343
+ const reason = String(
344
+ flags['adoption-reason'] || flags.reason || ''
345
+ ).trim();
346
+ if (reason) {
347
+ forwarded.push('--adoption-reason', reason);
348
+ }
349
+ return forwarded;
350
+ }
351
+
337
352
  module.exports = {
338
353
  bindEnvironmentTarget,
339
354
  buildCandidateBundle,
@@ -349,5 +364,6 @@ module.exports = {
349
364
  resolveEnvironmentTarget,
350
365
  saveCandidate,
351
366
  sha256Canonical,
367
+ withManagedReleaseForwardedFlags,
352
368
  writePrivateJsonAtomic,
353
369
  };
package/lib/cli.js CHANGED
@@ -139,6 +139,7 @@ const {
139
139
  resolveEnvironmentTarget,
140
140
  saveCandidate,
141
141
  sha256Canonical,
142
+ withManagedReleaseForwardedFlags,
142
143
  } = require('./application-environments');
143
144
  const { startDeveloperCenter } = require('./developer-center');
144
145
  const {
@@ -1433,6 +1434,11 @@ function decorateEnvironmentReleaseSteps(steps, target, flags = {}) {
1433
1434
  if (!target.environmentId || !target.targetName) return steps;
1434
1435
  const deploymentId = readStringFlag(flags, 'deployment-id');
1435
1436
  for (const step of steps) {
1437
+ step.args = withManagedReleaseForwardedFlags(
1438
+ step.id,
1439
+ step.args,
1440
+ flags
1441
+ );
1436
1442
  step.args.push('--environment', target.targetName);
1437
1443
  if (deploymentId) step.args.push('--deployment-id', deploymentId);
1438
1444
  if (step.id === 'app-finalize') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openxiangda",
3
- "version": "1.0.182",
3
+ "version": "1.0.183",
4
4
  "description": "OpenXiangda CLI, workspace build tools, runtime SDK, and form components.",
5
5
  "private": false,
6
6
  "bin": {