@go-to-k/cdkd 0.230.7 → 0.230.8

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/README.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # cdkd (CDK Direct)
2
2
 
3
+ [![npm version](https://img.shields.io/npm/v/@go-to-k/cdkd.svg)](https://www.npmjs.com/package/@go-to-k/cdkd)
4
+ [![Downloads](https://img.shields.io/npm/dw/@go-to-k/cdkd.svg)](https://www.npmjs.com/package/@go-to-k/cdkd)
5
+ [![License: Apache-2.0](https://img.shields.io/npm/l/@go-to-k/cdkd.svg)](./LICENSE)
6
+
3
7
  Drop-in CDK CLI for existing CDK apps — faster deploys via AWS SDK instead of CloudFormation, plus local emulation for Lambda, API Gateway, and ECS.
4
8
 
5
9
  - **Drop-in CDK compatible** — your existing CDK app code runs as-is.
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 CFN_TEMPLATE_BODY_LIMIT, A as LockManager, B as runDockerForeground, C as findActionableSilentDrops, D as DiffCalculator, E as applyRoleArnIfSet, F as stringifyValue, G as getDefaultStateBucketName, H as AssetManifestLoader, I as WorkGraph, J as resolveCaptureObservedState, K as getLegacyStateBucketName, L as buildDockerImage, M as rebuildClientForBucketRegion, N as shouldRetainResource, O as DagBuilder, P as AssetPublisher, Q as warnDeprecatedNoPrefixCliFlag, R as formatDockerLoginError, S as ProviderRegistry, T as IntrinsicFunctionResolver, U as getDockerImageBySourceHash, V as runDockerStreaming, W as Synthesizer, X as resolveStateBucketWithDefault, Y as resolveSkipPrefix, Z as resolveStateBucketWithDefaultAndSource, _ as green, a as withRetry, b as IAMRoleProvider, c as computeImplicitDeleteEdges, d as isStatefulRecreateTargetSync, et as CFN_TEMPLATE_URL_LIMIT, f as renderStatefulReason, g as gray, h as cyan, i as withResourceDeadline, it as AssemblyReader, j as S3StateBackend, k as TemplateParser, l as extractDeploymentEventError, m as bold, n as DEFAULT_RESOURCE_WARN_AFTER_MS, nt as findLargeInlineResources, o as isRetryableTransientError, ot as resolveBucketRegion, p as formatResourceLine, q as resolveApp, r as DeployEngine, rt as uploadCfnTemplate, s as IMPLICIT_DELETE_DEPENDENCIES, t as DEFAULT_RESOURCE_TIMEOUT_MS, tt as MIGRATE_TMP_PREFIX, 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-DP5yW4f5.js";
4
+ import { $ as CFN_TEMPLATE_BODY_LIMIT, A as LockManager, B as runDockerForeground, C as findActionableSilentDrops, D as DiffCalculator, E as applyRoleArnIfSet, F as stringifyValue, G as getDefaultStateBucketName, H as AssetManifestLoader, I as WorkGraph, J as resolveCaptureObservedState, K as getLegacyStateBucketName, L as buildDockerImage, M as rebuildClientForBucketRegion, N as shouldRetainResource, O as DagBuilder, P as AssetPublisher, Q as warnDeprecatedNoPrefixCliFlag, R as formatDockerLoginError, S as ProviderRegistry, T as IntrinsicFunctionResolver, U as getDockerImageBySourceHash, V as runDockerStreaming, W as Synthesizer, X as resolveStateBucketWithDefault, Y as resolveSkipPrefix, Z as resolveStateBucketWithDefaultAndSource, _ as green, a as withRetry, b as IAMRoleProvider, c as computeImplicitDeleteEdges, d as isStatefulRecreateTargetSync, et as CFN_TEMPLATE_URL_LIMIT, f as renderStatefulReason, g as gray, h as cyan, i as withResourceDeadline, it as AssemblyReader, j as S3StateBackend, k as TemplateParser, l as extractDeploymentEventError, m as bold, n as DEFAULT_RESOURCE_WARN_AFTER_MS, nt as findLargeInlineResources, o as isRetryableTransientError, ot as resolveBucketRegion, p as formatResourceLine, q as resolveApp, r as DeployEngine, rt as uploadCfnTemplate, s as IMPLICIT_DELETE_DEPENDENCIES, t as DEFAULT_RESOURCE_TIMEOUT_MS, tt as MIGRATE_TMP_PREFIX, 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-CT3wqDMn.js";
5
5
  import { t as ASGProvider } from "./asg-provider-Dgj3loIG.js";
6
6
  import { AsyncLocalStorage } from "node:async_hooks";
7
7
  import { randomBytes, randomUUID } from "node:crypto";
@@ -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.7";
1448
+ return "0.230.8";
1449
1449
  }
1450
1450
  /**
1451
1451
  * Generate a time-sortable unique run id, e.g.
@@ -55314,7 +55314,7 @@ function reorderArgs(argv) {
55314
55314
  async function main() {
55315
55315
  installPipeCloseHandler();
55316
55316
  const program = new Command();
55317
- program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.230.7");
55317
+ program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.230.8");
55318
55318
  program.addCommand(createBootstrapCommand());
55319
55319
  program.addCommand(createSynthCommand());
55320
55320
  program.addCommand(createListCommand());
@@ -5629,7 +5629,11 @@ const AWS_NO_VALUE = Symbol("AWS::NoValue");
5629
5629
  * trailing `<ref>` component:
5630
5630
  * - AWS::ApiGateway::Model `<restApiId>|<modelName>` -> model name
5631
5631
  * - AWS::ApiGateway::RequestValidator `<restApiId>|<validatorId>` -> validator id
5632
- * - AWS::Cognito::UserPoolClient `<userPoolId>|<clientId>` -> client id
5632
+ * - AWS::Cognito::UserPoolClient `<userPoolId>|<clientId>` -> client id
5633
+ * - AWS::Cognito::UserPoolResourceServer `<userPoolId>|<identifier>` -> resource-server identifier
5634
+ * - AWS::Cognito::UserPoolGroup `<userPoolId>|<groupName>` -> group name
5635
+ * - AWS::Cognito::UserPoolIdentityProvider `<userPoolId>|<providerName>` -> provider name
5636
+ * - AWS::Cognito::UserPoolDomain `<userPoolId>|<domain>` -> domain
5633
5637
  * - AWS::AppConfig::Environment `<appId>|<envId>` -> environment id
5634
5638
  * - AWS::AppConfig::ConfigurationProfile `<appId>|<profileId>` -> profile id
5635
5639
  * - AWS::AppConfig::HostedConfigurationVersion `<appId>|<profileId>|<ver>` -> version number
@@ -5640,11 +5644,30 @@ const AWS_NO_VALUE = Symbol("AWS::NoValue");
5640
5644
  * 2-segment (`<parent>|<ref>`) and 3-segment AppConfig compounds; for the
5641
5645
  * 2-segment types it is identical to after-first-pipe. AppConfig::Application
5642
5646
  * and ::DeploymentStrategy are NOT here — their Ref is a simple, pipe-free id.
5647
+ *
5648
+ * MAINTENANCE — when you add a type here, AUDIT THE WHOLE SERVICE FAMILY, not
5649
+ * just the one type a bug surfaced. CC compound-id types cluster by service (the
5650
+ * Cognito UserPool family alone needed 5 entries; AppConfig needed 4) because a
5651
+ * service's child resources share the `<parentId>|<childKey>` id convention. For
5652
+ * each sibling child type:
5653
+ * 1. `aws cloudformation describe-type --type RESOURCE --type-name AWS::<Svc>::<T>`
5654
+ * -> `Schema.primaryIdentifier` confirms it is compound + the segment order.
5655
+ * 2. Read the type's AWS-docs "Return values / Ref" — add it ONLY if `Ref`
5656
+ * returns the trailing `<child>` segment.
5657
+ * 3. EXCLUDE types whose `Ref` returns a synthetic / prefixed string rather
5658
+ * than a bare id segment — e.g. Cognito::UserPoolRiskConfigurationAttachment
5659
+ * / ::UserPoolUICustomizationAttachment return
5660
+ * `<TypeName>-<UserPoolId>-<ClientId>`, NOT the after-pipe segment.
5661
+ * 4. Pin each addition with a unit test in intrinsic-functions.test.ts.
5643
5662
  */
5644
5663
  const REF_RETURNS_SEGMENT_AFTER_PIPE = new Set([
5645
5664
  "AWS::ApiGateway::Model",
5646
5665
  "AWS::ApiGateway::RequestValidator",
5647
5666
  "AWS::Cognito::UserPoolClient",
5667
+ "AWS::Cognito::UserPoolResourceServer",
5668
+ "AWS::Cognito::UserPoolGroup",
5669
+ "AWS::Cognito::UserPoolIdentityProvider",
5670
+ "AWS::Cognito::UserPoolDomain",
5648
5671
  "AWS::AppConfig::Environment",
5649
5672
  "AWS::AppConfig::ConfigurationProfile",
5650
5673
  "AWS::AppConfig::HostedConfigurationVersion",
@@ -13784,4 +13807,4 @@ var DeployEngine = class {
13784
13807
 
13785
13808
  //#endregion
13786
13809
  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 };
13787
- //# sourceMappingURL=deploy-engine-DP5yW4f5.js.map
13810
+ //# sourceMappingURL=deploy-engine-CT3wqDMn.js.map