@go-to-k/cdkd 0.230.17 → 0.230.19

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.
@@ -1992,6 +1992,33 @@ async function bucketExists(client, bucketName) {
1992
1992
  //#endregion
1993
1993
  //#region src/synthesis/synthesizer.ts
1994
1994
  /**
1995
+ * CDK CLI compatibility: a `--app` value pointing at an existing directory is
1996
+ * treated as a pre-synthesized cloud assembly — synthesis (the subprocess
1997
+ * execution) is skipped and the manifest is read directly. A `--app` value that
1998
+ * is a command (e.g. "node app.ts") or any path that is not an existing
1999
+ * directory is synthesized normally.
2000
+ *
2001
+ * Exported so callers can pick an accurate status message
2002
+ * ("Reading cloud assembly..." vs "Synthesizing CDK app...") BEFORE invoking
2003
+ * {@link Synthesizer.synthesize}, which is the single place that branches on it.
2004
+ */
2005
+ function isPreSynthesizedAssembly(app) {
2006
+ const appPath = resolve(app);
2007
+ return existsSync(appPath) && statSync(appPath).isDirectory();
2008
+ }
2009
+ /**
2010
+ * Pick the user-facing status line a command prints right before it invokes
2011
+ * {@link Synthesizer.synthesize}. When `--app` is a pre-synthesized assembly
2012
+ * directory, synthesis is skipped, so "Reading cloud assembly..." is accurate;
2013
+ * otherwise the command's own `synthesizingMessage` (e.g. "Synthesizing CDK
2014
+ * app...") is used. `app` may be undefined (the synthesize() call will then
2015
+ * throw the usual "no app specified" error) — that case keeps the synthesizing
2016
+ * message.
2017
+ */
2018
+ function synthesisStatusMessage(app, synthesizingMessage) {
2019
+ return app !== void 0 && isPreSynthesizedAssembly(app) ? "Reading cloud assembly..." : synthesizingMessage;
2020
+ }
2021
+ /**
1995
2022
  * CDK app synthesizer
1996
2023
  *
1997
2024
  * Replaces @aws-cdk/toolkit-lib with self-implemented:
@@ -2016,7 +2043,7 @@ var Synthesizer = class {
2016
2043
  */
2017
2044
  async synthesize(options) {
2018
2045
  const appPath = resolve(options.app);
2019
- if (existsSync(appPath) && statSync(appPath).isDirectory()) {
2046
+ if (isPreSynthesizedAssembly(options.app)) {
2020
2047
  this.logger.debug(`Using pre-synthesized cloud assembly at ${appPath}`);
2021
2048
  const manifest = this.assemblyReader.readManifest(appPath);
2022
2049
  const stacks = this.assemblyReader.getAllStacks(appPath, manifest);
@@ -14160,5 +14187,5 @@ var DeployEngine = class {
14160
14187
  };
14161
14188
 
14162
14189
  //#endregion
14163
- export { CFN_TEMPLATE_BODY_LIMIT as $, LockManager as A, runDockerForeground as B, findActionableSilentDrops as C, DiffCalculator as D, applyRoleArnIfSet as E, stringifyValue as F, getDefaultStateBucketName as G, AssetManifestLoader as H, WorkGraph as I, resolveCaptureObservedState as J, getLegacyStateBucketName as K, buildDockerImage as L, rebuildClientForBucketRegion as M, shouldRetainResource as N, DagBuilder as O, AssetPublisher as P, warnDeprecatedNoPrefixCliFlag as Q, formatDockerLoginError as R, ProviderRegistry as S, IntrinsicFunctionResolver as T, getDockerImageBySourceHash as U, runDockerStreaming as V, Synthesizer as W, resolveStateBucketWithDefault as X, resolveSkipPrefix as Y, resolveStateBucketWithDefaultAndSource as Z, green as _, withRetry as a, clearBucketRegionCache as at, IAMRoleProvider as b, computeImplicitDeleteEdges as c, isStatefulRecreateTargetSync as d, CFN_TEMPLATE_URL_LIMIT as et, renderStatefulReason as f, gray as g, cyan as h, withResourceDeadline as i, AssemblyReader as it, S3StateBackend as j, TemplateParser as k, extractDeploymentEventError as l, bold as m, DEFAULT_RESOURCE_WARN_AFTER_MS as n, findLargeInlineResources as nt, isRetryableTransientError as o, resolveBucketRegion as ot, formatResourceLine as p, resolveApp as q, DeployEngine as r, uploadCfnTemplate as rt, IMPLICIT_DELETE_DEPENDENCIES as s, DEFAULT_RESOURCE_TIMEOUT_MS as t, MIGRATE_TMP_PREFIX as tt, MULTI_REGION_RECREATE_BLOCKED_TYPES as u, red as v, CloudControlProvider as w, collectInlinePolicyNamesManagedBySiblings as x, yellow as y, getDockerCmd as z };
14164
- //# sourceMappingURL=deploy-engine-CAG2RhWS.js.map
14190
+ export { warnDeprecatedNoPrefixCliFlag as $, LockManager as A, runDockerForeground as B, findActionableSilentDrops as C, DiffCalculator as D, applyRoleArnIfSet as E, stringifyValue as F, synthesisStatusMessage as G, AssetManifestLoader as H, WorkGraph as I, resolveApp as J, getDefaultStateBucketName as K, buildDockerImage as L, rebuildClientForBucketRegion as M, shouldRetainResource as N, DagBuilder as O, AssetPublisher as P, resolveStateBucketWithDefaultAndSource as Q, formatDockerLoginError as R, ProviderRegistry as S, IntrinsicFunctionResolver as T, getDockerImageBySourceHash as U, runDockerStreaming as V, Synthesizer as W, resolveSkipPrefix as X, resolveCaptureObservedState as Y, resolveStateBucketWithDefault as Z, green as _, withRetry as a, AssemblyReader as at, IAMRoleProvider as b, computeImplicitDeleteEdges as c, isStatefulRecreateTargetSync as d, CFN_TEMPLATE_BODY_LIMIT as et, renderStatefulReason as f, gray as g, cyan as h, withResourceDeadline as i, uploadCfnTemplate as it, S3StateBackend as j, TemplateParser as k, extractDeploymentEventError as l, bold as m, DEFAULT_RESOURCE_WARN_AFTER_MS as n, MIGRATE_TMP_PREFIX as nt, isRetryableTransientError as o, clearBucketRegionCache as ot, formatResourceLine as p, getLegacyStateBucketName as q, DeployEngine as r, findLargeInlineResources as rt, IMPLICIT_DELETE_DEPENDENCIES as s, resolveBucketRegion as st, DEFAULT_RESOURCE_TIMEOUT_MS as t, CFN_TEMPLATE_URL_LIMIT as tt, MULTI_REGION_RECREATE_BLOCKED_TYPES as u, red as v, CloudControlProvider as w, collectInlinePolicyNamesManagedBySiblings as x, yellow as y, getDockerCmd as z };
14191
+ //# sourceMappingURL=deploy-engine-Bdy5xKSQ.js.map