@go-to-k/cdkd 0.230.18 → 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.
package/dist/cli.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { A as withErrorHandling, B as generateResourceName, C as StackHasActiveImportsError, F as getLiveRenderer, H as withSkipPrefix, I as PATTERN_B_NAME_OPTIONS, L as PATTERN_B_NAME_PROPERTIES, M as getLogger, P as runStackBuffered, R as PATTERN_B_RESOURCE_TYPES, S as ResourceUpdateNotSupportedError, U as withStackName, V as generateResourceNameWithFallback, _ as MissingCdkCliError, a as assertRegionMatch, b as ProvisioningError, f as LocalInvokeBuildError$1, i as resolveExplicitPhysicalId, k as normalizeAwsError, l as CdkdError, m as LocalStartServiceError, n as matchesCdkPath, o as disableInstanceApiTermination, p as LocalMigrateError, r as normalizeAwsTagsToCfn, s as isTerminationProtectionPropagationError, t as CDK_PATH_TAG, v as NestedStackChildDirectDestroyError, w as StackTerminationProtectionError, x as ResourceTimeoutError, y as PartialFailureError } from "./import-helpers-DayvBD4T.js";
3
3
  import { a as setAwsClients, i as resetAwsClients, r as getAwsClients, t as AwsClients } from "./aws-clients-pjPwZz1r.js";
4
- import { $ as warnDeprecatedNoPrefixCliFlag, A as LockManager, B as runDockerForeground, C as findActionableSilentDrops, D as DiffCalculator, E as applyRoleArnIfSet, F as stringifyValue, G as isPreSynthesizedAssembly, H as AssetManifestLoader, I as WorkGraph, J as resolveApp, K as getDefaultStateBucketName, L as buildDockerImage, M as rebuildClientForBucketRegion, N as shouldRetainResource, O as DagBuilder, P as AssetPublisher, Q as resolveStateBucketWithDefaultAndSource, R as formatDockerLoginError, S as ProviderRegistry, T as IntrinsicFunctionResolver, U as getDockerImageBySourceHash, V as runDockerStreaming, W as Synthesizer, X as resolveSkipPrefix, Y as resolveCaptureObservedState, Z as resolveStateBucketWithDefault, _ as green, a as withRetry, at as AssemblyReader, b as IAMRoleProvider, c as computeImplicitDeleteEdges, d as isStatefulRecreateTargetSync, et as CFN_TEMPLATE_BODY_LIMIT, f as renderStatefulReason, g as gray, h as cyan, i as withResourceDeadline, it as uploadCfnTemplate, j as S3StateBackend, k as TemplateParser, l as extractDeploymentEventError, m as bold, n as DEFAULT_RESOURCE_WARN_AFTER_MS, nt as MIGRATE_TMP_PREFIX, o as isRetryableTransientError, p as formatResourceLine, q as getLegacyStateBucketName, r as DeployEngine, rt as findLargeInlineResources, s as IMPLICIT_DELETE_DEPENDENCIES, st as resolveBucketRegion, t as DEFAULT_RESOURCE_TIMEOUT_MS, tt as CFN_TEMPLATE_URL_LIMIT, u as MULTI_REGION_RECREATE_BLOCKED_TYPES, v as red, w as CloudControlProvider, x as collectInlinePolicyNamesManagedBySiblings, y as yellow, z as getDockerCmd } from "./deploy-engine-CXgQSFYL.js";
4
+ import { $ as warnDeprecatedNoPrefixCliFlag, A as LockManager, B as runDockerForeground, C as findActionableSilentDrops, D as DiffCalculator, E as applyRoleArnIfSet, F as stringifyValue, G as synthesisStatusMessage, H as AssetManifestLoader, I as WorkGraph, J as resolveApp, K as getDefaultStateBucketName, L as buildDockerImage, M as rebuildClientForBucketRegion, N as shouldRetainResource, O as DagBuilder, P as AssetPublisher, Q as resolveStateBucketWithDefaultAndSource, R as formatDockerLoginError, S as ProviderRegistry, T as IntrinsicFunctionResolver, U as getDockerImageBySourceHash, V as runDockerStreaming, W as Synthesizer, X as resolveSkipPrefix, Y as resolveCaptureObservedState, Z as resolveStateBucketWithDefault, _ as green, a as withRetry, at as AssemblyReader, b as IAMRoleProvider, c as computeImplicitDeleteEdges, d as isStatefulRecreateTargetSync, et as CFN_TEMPLATE_BODY_LIMIT, f as renderStatefulReason, g as gray, h as cyan, i as withResourceDeadline, it as uploadCfnTemplate, j as S3StateBackend, k as TemplateParser, l as extractDeploymentEventError, m as bold, n as DEFAULT_RESOURCE_WARN_AFTER_MS, nt as MIGRATE_TMP_PREFIX, o as isRetryableTransientError, p as formatResourceLine, q as getLegacyStateBucketName, r as DeployEngine, rt as findLargeInlineResources, s as IMPLICIT_DELETE_DEPENDENCIES, st as resolveBucketRegion, t as DEFAULT_RESOURCE_TIMEOUT_MS, tt as CFN_TEMPLATE_URL_LIMIT, u as MULTI_REGION_RECREATE_BLOCKED_TYPES, v as red, w as CloudControlProvider, x as collectInlinePolicyNamesManagedBySiblings, y as yellow, z as getDockerCmd } from "./deploy-engine-Bdy5xKSQ.js";
5
5
  import { t as ASGProvider } from "./asg-provider-Dgj3loIG.js";
6
6
  import { AsyncLocalStorage } from "node:async_hooks";
7
7
  import { createHash, randomBytes, randomUUID } from "node:crypto";
@@ -782,7 +782,7 @@ async function synthCommand(options) {
782
782
  const app = resolveApp(options.app);
783
783
  if (!app) throw new Error("No app command specified. Use --app, set CDKD_APP env var, or add \"app\" to cdk.json");
784
784
  options.app = app;
785
- logger.info("Synthesizing CDK app...");
785
+ logger.info(synthesisStatusMessage(app, "Synthesizing CDK app..."));
786
786
  logger.debug("App command:", options.app);
787
787
  logger.debug("Output directory:", options.output);
788
788
  const synthesizer = new Synthesizer();
@@ -1445,7 +1445,7 @@ const FLUSH_INTERVAL_MS = 2e3;
1445
1445
  const FLUSH_EVENT_THRESHOLD = 50;
1446
1446
  /** Build-time cdkd version, with a dev fallback for non-built contexts. */
1447
1447
  function getCdkdVersion() {
1448
- return "0.230.18";
1448
+ return "0.230.19";
1449
1449
  }
1450
1450
  /**
1451
1451
  * Generate a time-sortable unique run id, e.g.
@@ -37193,7 +37193,7 @@ async function deployCommand(stacks, options) {
37193
37193
  };
37194
37194
  process.on("SIGINT", topLevelSigintHandler);
37195
37195
  try {
37196
- logger.info(cyan(isPreSynthesizedAssembly(app) ? "Reading cloud assembly..." : "Synthesizing CDK app..."));
37196
+ logger.info(cyan(synthesisStatusMessage(app, "Synthesizing CDK app...")));
37197
37197
  const synthesizer = new Synthesizer();
37198
37198
  const context = parseContextOptions(options.context);
37199
37199
  const { stacks: allStacks } = await synthesizer.synthesize({
@@ -38750,7 +38750,7 @@ async function diffCommand(stacks, options) {
38750
38750
  });
38751
38751
  setAwsClients(awsClients);
38752
38752
  try {
38753
- logger.info("Synthesizing CDK app...");
38753
+ logger.info(synthesisStatusMessage(app, "Synthesizing CDK app..."));
38754
38754
  const synthesizer = new Synthesizer();
38755
38755
  const context = parseContextOptions(options.context);
38756
38756
  const { stacks: allStacks } = await synthesizer.synthesize({
@@ -40859,7 +40859,7 @@ async function orphanCommand(pathArgs, options) {
40859
40859
  const lockManager = new LockManager(awsClients.s3, stateConfig);
40860
40860
  const appCmd = options.app || resolveApp();
40861
40861
  if (!appCmd) throw new Error("'cdkd orphan' requires a CDK app: pass --app or set it in cdk.json. The template is read to resolve construct paths to logical IDs.");
40862
- logger.info("Synthesizing CDK app to read template...");
40862
+ logger.info(synthesisStatusMessage(appCmd, "Synthesizing CDK app to read template..."));
40863
40863
  const synthesizer = new Synthesizer();
40864
40864
  const context = parseContextOptions(options.context);
40865
40865
  const resolved = resolveConstructPaths(pathArgs, (await synthesizer.synthesize({
@@ -41078,7 +41078,7 @@ async function publishAssetsCommand(stacks, options) {
41078
41078
  });
41079
41079
  const app = resolveApp(options.app);
41080
41080
  if (!app) throw new Error("No app command specified. Use --app, set CDKD_APP env var, or add \"app\" to cdk.json");
41081
- logger.info("Synthesizing CDK app...");
41081
+ logger.info(synthesisStatusMessage(app, "Synthesizing CDK app..."));
41082
41082
  const synthesizer = new Synthesizer();
41083
41083
  const context = parseContextOptions(options.context);
41084
41084
  const synthOptions = {
@@ -41897,7 +41897,7 @@ async function exportCommand(stackArg, options) {
41897
41897
  } else {
41898
41898
  const appCmd = options.app || resolveApp();
41899
41899
  if (!appCmd) throw new Error("'cdkd export' requires a CDK app (pass --app or set it in cdk.json) OR a pre-rendered CFn template (--template <path>).");
41900
- logger.info("Synthesizing CDK app to read template...");
41900
+ logger.info(synthesisStatusMessage(appCmd, "Synthesizing CDK app to read template..."));
41901
41901
  const synthesizer = new Synthesizer();
41902
41902
  const context = parseContextOptions(options.context);
41903
41903
  const result = await synthesizer.synthesize({
@@ -45156,7 +45156,7 @@ async function importCommand(stackArg, options) {
45156
45156
  registerAllProviders(providerRegistry);
45157
45157
  const appCmd = options.app || resolveApp();
45158
45158
  if (!appCmd) throw new Error("`cdkd state import` requires a CDK app: pass --app or set it in cdk.json. The template is read to find logical IDs, resource types, and dependencies.");
45159
- logger.info("Synthesizing CDK app to read template...");
45159
+ logger.info(synthesisStatusMessage(appCmd, "Synthesizing CDK app to read template..."));
45160
45160
  const synthesizer = new Synthesizer();
45161
45161
  const context = parseContextOptions(options.context);
45162
45162
  const result = await synthesizer.synthesize({
@@ -49345,7 +49345,7 @@ async function localStartApiCommand(target, options) {
49345
49345
  * Hot reload picks up authorizer-config changes via this re-run.
49346
49346
  */
49347
49347
  const synthesizeAndBuild = async () => {
49348
- logger.info("Synthesizing CDK app...");
49348
+ logger.info(synthesisStatusMessage(appCmd, "Synthesizing CDK app..."));
49349
49349
  const synthesizer = new Synthesizer();
49350
49350
  const context = parseContextOptions(options.context);
49351
49351
  const synthOpts = {
@@ -51666,7 +51666,7 @@ async function localRunTaskCommand(target, options) {
51666
51666
  await ensureDockerAvailable();
51667
51667
  const appCmd = resolveApp(options.app);
51668
51668
  if (!appCmd) throw new Error("No CDK app specified. Pass --app, set CDKD_APP, or add \"app\" to cdk.json.");
51669
- logger.info("Synthesizing CDK app...");
51669
+ logger.info(synthesisStatusMessage(appCmd, "Synthesizing CDK app..."));
51670
51670
  const synthesizer = new Synthesizer();
51671
51671
  const context = parseContextOptions(options.context);
51672
51672
  const synthOpts = {
@@ -52310,7 +52310,7 @@ async function localInvokeAgentCoreCommand(target, options) {
52310
52310
  if (options.profile && profileCredentials) profileCredsFile = await writeProfileCredentialsFile(options.profile, profileCredentials);
52311
52311
  const appCmd = resolveApp(options.app);
52312
52312
  if (!appCmd) throw new CdkdError(`No CDK app specified. Pass --app, set ${getEmbedConfig().envPrefix}_APP, or add "app" to cdk.json.`, "LOCAL_INVOKE_AGENTCORE_NO_APP");
52313
- logger.info("Synthesizing CDK app...");
52313
+ logger.info(synthesisStatusMessage(appCmd, "Synthesizing CDK app..."));
52314
52314
  const synthesizer = new Synthesizer();
52315
52315
  const context = parseContextOptions(options.context);
52316
52316
  const synthOpts = {
@@ -53543,7 +53543,7 @@ async function localInvokeCommand(target, options) {
53543
53543
  if (options.profile && profileCredentials) profileCredsFile = await writeProfileCredentialsFile(options.profile, profileCredentials);
53544
53544
  const appCmd = resolveApp(options.app);
53545
53545
  if (!appCmd) throw new Error("No CDK app specified. Pass --app, set CDKD_APP, or add \"app\" to cdk.json.");
53546
- logger.info("Synthesizing CDK app...");
53546
+ logger.info(synthesisStatusMessage(appCmd, "Synthesizing CDK app..."));
53547
53547
  const synthesizer = new Synthesizer();
53548
53548
  const context = parseContextOptions(options.context);
53549
53549
  const synthOpts = {
@@ -55380,7 +55380,7 @@ function reorderArgs(argv) {
55380
55380
  async function main() {
55381
55381
  installPipeCloseHandler();
55382
55382
  const program = new Command();
55383
- program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.230.18");
55383
+ program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.230.19");
55384
55384
  program.addCommand(createBootstrapCommand());
55385
55385
  program.addCommand(createSynthCommand());
55386
55386
  program.addCommand(createListCommand());