@go-to-k/cdkd 0.280.44 → 0.280.45

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.
@@ -12915,7 +12915,7 @@ var CloudControlProvider = class {
12915
12915
  if (context?.finalSnapshotIdentifier !== void 0) throw new ProvisioningError(`${logicalId} (${resourceType}) requires a final snapshot (DeletionPolicy: Snapshot), but the Cloud Control API delete route has no final-snapshot parameter. Re-run with --skip-final-snapshot after snapshotting manually, or retain the resource.`, resourceType, logicalId, physicalId);
12916
12916
  if (context?.removeProtection === true && resourceType === "AWS::AutoScaling::AutoScalingGroup") {
12917
12917
  this.logger.debug(`Delegating protected AutoScalingGroup ${logicalId} delete to the SDK ASGProvider (Cloud Control cannot force-delete a protected ASG)`);
12918
- const { ASGProvider } = await import("./asg-provider-BBKdxCVP.js").then((n) => n.n);
12918
+ const { ASGProvider } = await import("./asg-provider-DwyF44v8.js").then((n) => n.n);
12919
12919
  await new ASGProvider().delete(logicalId, physicalId, resourceType, _properties, context);
12920
12920
  return;
12921
12921
  }
@@ -19236,6 +19236,35 @@ function recordAfterRollbackUpdate(restored, result) {
19236
19236
  properties: { ...result.effectiveProperties }
19237
19237
  } : restored;
19238
19238
  }
19239
+ /**
19240
+ * The `properties` override to merge into the state record rebuilt after the
19241
+ * reverse-replacement replay-CREATE (issue #1682) — the create-side twin of
19242
+ * {@link recordAfterRollbackUpdate}.
19243
+ *
19244
+ * The bag handed to `create()` on both arms of that path IS `prev.properties`,
19245
+ * so — exactly as on the UPDATE side — a returned `effectiveProperties` is its
19246
+ * complete replacement and no per-key delta is needed. Without this the arm
19247
+ * rebuilt the record from `prev.properties` unconditionally, so a provider that
19248
+ * deliberately SUBSTITUTED a malformed block on a replay (the `replayWarn`
19249
+ * downgrade of issue #1544) announced the substitution into a void and the
19250
+ * phantom drift it exists to close survived the rollback.
19251
+ *
19252
+ * Falls back to the restored record's own `properties` when the provider
19253
+ * reported nothing — the pre-#1682 behavior — rather than blanking the record.
19254
+ * An empty object is a legitimate COMPLETE answer (a provider that sent
19255
+ * nothing), so the gate is an explicit PRESENCE test rather than truthiness —
19256
+ * matching the `??` the contract in `.claude/rules/providers.md` prescribes,
19257
+ * and saying so at the one place a future reader would otherwise have to
19258
+ * re-derive that `{}` must not fall back.
19259
+ *
19260
+ * Applied on the name-idempotent ADOPT path too (`adoptedLiveNewResource`).
19261
+ * That arm's warning says state records "the pre-replacement properties", and
19262
+ * it still does: a substitution repairs an unusable field of that same
19263
+ * pre-replacement bag, it does not swap in the new generation's values.
19264
+ */
19265
+ function recordedPropertiesAfterReplayCreate(restored, result) {
19266
+ return result.effectiveProperties === void 0 ? restored.properties : { ...result.effectiveProperties };
19267
+ }
19239
19268
  async function replaySingle(op, stateResources, stackName, ctx, orphanLogicalIds, result, afterOp, isInterrupted) {
19240
19269
  const action = classifyRollbackOp(op, stateResources, orphanLogicalIds);
19241
19270
  const { logger } = ctx;
@@ -19421,7 +19450,8 @@ async function replaySingle(op, stateResources, stackName, ctx, orphanLogicalIds
19421
19450
  stateResources[op.logicalId] = {
19422
19451
  ...prevRecord,
19423
19452
  physicalId: createResult.physicalId,
19424
- attributes: createResult.attributes ?? {}
19453
+ attributes: createResult.attributes ?? {},
19454
+ properties: recordedPropertiesAfterReplayCreate(prevRecord, createResult)
19425
19455
  };
19426
19456
  await afterOp?.(op.logicalId);
19427
19457
  if (!deletedNewFirst && !adoptedLiveNewResource) try {
@@ -19732,7 +19762,7 @@ const FLUSH_INTERVAL_MS = 2e3;
19732
19762
  const FLUSH_EVENT_THRESHOLD = 50;
19733
19763
  /** Build-time cdkd version, with a dev fallback for non-built contexts. */
19734
19764
  function getCdkdVersion() {
19735
- return "0.280.44";
19765
+ return "0.280.45";
19736
19766
  }
19737
19767
  /**
19738
19768
  * Generate a time-sortable unique run id, e.g.
@@ -21898,4 +21928,4 @@ var DeployEngine = class {
21898
21928
 
21899
21929
  //#endregion
21900
21930
  export { requireConfigArray as $, expectedOwnerParam as $t, green as A, withErrorHandling as An, getDockerCmd as At, slowCcOperationTimeoutMs as B, resolveAutoAssetStorage as Bt, MULTI_REGION_RECREATE_BLOCKED_TYPES as C, StackHasActiveImportsError as Cn, ensureAssetStorage as Ct, bold as D, formatError as Dn, validateContainerRepoName as Dt, formatResourceLine as E, SynthesisError as En, validateAssetBucketName as Et, clearOnUpdateRemoval as F, Synthesizer as Ft, refStateLookupFromResource as G, resolveUseCdkBootstrapAssets as Gt, isTerminationProtectionPropagationError as H, resolveSkipPrefix as Ht, ProviderRegistry as I, synthesisStatusMessage as It, resolveExplicitPhysicalId as J, CFN_TEMPLATE_BODY_LIMIT as Jt, WAFv2WebACLProvider as K, stateBucketExistenceConfirmed as Kt, findActionableSilentDrops as L, getDefaultStateBucketName as Lt, yellow as M, runDockerStreaming as Mt, IAMRoleProvider as N, AssetManifestLoader as Nt, cyan as O, isCdkdError as On, buildDockerImage as Ot, collectInlinePolicyNamesManagedBySiblings as P, getDockerImageBySourceHash as Pt, replayWarn as Q, uploadCfnTemplate as Qt, findSilentDropProperties as R, getLegacyStateBucketName as Rt, extractDeploymentEventError as S, ResourceUpdateNotSupportedError as Sn, BOOTSTRAP_MARKER_PREFIX as St, renderStatefulReason as T, StateError as Tn, parseBootstrapMarker as Tt, IntrinsicFunctionResolver as U, resolveStateBucketWithDefault as Ut, disableInstanceApiTermination as V, resolveCaptureObservedState as Vt, cfnRefValueFromPhysicalId as W, resolveStateBucketWithDefaultAndSource as Wt, configStringRefusal as X, MIGRATE_TMP_PREFIX as Xt, assertRegionMatch as Y, CFN_TEMPLATE_URL_LIMIT as Yt, readConfigString as Z, findLargeInlineResources as Zt, createPreDeleteFinalSnapshot as _, MissingCdkCliError as _n, buildAssetRedirectMap as _t, DeploymentEventsStore as a, getAwsClients as an, withRetry as at, unsupportedFinalSnapshotError as b, ProvisioningError as bn, rewriteTemplateAssetReferences as bt, replayFailedOperations as c, AssetError as cn, DagBuilder as ct, IMPLICIT_DELETE_DEPENDENCIES as d, DependencyError as dn, S3StateBackend as dt, AssemblyReader as en, requireConfigObject as et, computeImplicitDeleteEdges as f, DeployCancelledError as fn, rebuildClientForBucketRegion as ft, ccRoutedFinalSnapshotError as g, LockError as gn, WorkGraph as gt, buildFinalSnapshotIdentifier as h, LocalStartServiceError as hn, stringifyValue as ht, DeploymentEventsReader as i, AwsClients as in, describeTypeWithThrottleRetry as it, red as j, __exportAll as jn, runDockerForeground as jt, gray as k, normalizeAwsError as kn, formatDockerLoginError as kt, replayRollback as l, CdkdError as ln, TemplateParser as lt, PRE_DELETE_SNAPSHOT_TYPES as m, LocalMigrateError as mn, AssetPublisher as mt, DEFAULT_RESOURCE_WARN_AFTER_MS as n, clearBucketRegionCache as nn, applyRoleArnIfSet as nt, planFailedOps as o, resetAwsClients as on, isRetryableTransientError as ot, ATOMIC_FINAL_SNAPSHOT_TYPES as p, LocalInvokeBuildError as pn, shouldRetainResource as pt, normalizeAwsTagsToCfn as q, warnDeprecatedNoPrefixCliFlag as qt, DeployEngine as r, resolveBucketRegion as rn, DiffCalculator as rt, planRollback as s, setAwsClients as sn, isThrottlingError as st, DEFAULT_RESOURCE_TIMEOUT_MS as t, processStackMessages as tn, requireConfigString as tt, withResourceDeadline as u, ConfigError as un, LockManager as ut, isFinalSnapshotError as v, NestedStackChildDirectDestroyError as vn, createAssetRedirectResolver as vt, isStatefulRecreateTargetSync as w, StackTerminationProtectionError as wn, getBootstrapMarkerKey as wt, makeCanonicalizePropertiesFn as x, ResourceTimeoutError as xn, AssetModeResolver as xt, refusesFinalSnapshot as y, PartialFailureError as yn, loadPublishableAssetManifest as yt, CloudControlProvider as z, resolveApp as zt };
21901
- //# sourceMappingURL=deploy-engine-nEjymkij.js.map
21931
+ //# sourceMappingURL=deploy-engine-Dnfehcah.js.map