@go-to-k/cdkd 0.209.1 → 0.210.0

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
@@ -251,10 +251,11 @@ The Docker-backed commands above require Docker. Pass `--from-state`
251
251
  substitute deployed physical IDs into intrinsic-valued env vars /
252
252
  secrets / image URIs; without either, intrinsic values are dropped with
253
253
  a per-key warning (matches `sam local *`). The two flags are mutually
254
- exclusive. `start-cloudfront` is the partial exception: a
255
- CloudFront-Functions + S3-origin distribution serves entirely in-process
256
- (no Docker), and it carries cdk-local's `--from-cfn-stack` but not cdkd's
257
- `--from-state` (its factory lacks the state-provider seam issue #766).
254
+ exclusive. `start-cloudfront` carries both `--from-state` and
255
+ `--from-cfn-stack` too (since cdk-local 0.128.0 / issue #766); a
256
+ CloudFront-Functions + S3-origin distribution still serves entirely
257
+ in-process (no Docker), while a Lambda Function URL origin runs via the
258
+ RIE container.
258
259
 
259
260
  ### `local invoke`
260
261
 
package/dist/cli.js CHANGED
@@ -50809,14 +50809,17 @@ function createLocalInvokeAgentCoreCommand() {
50809
50809
  * `--stack-region`) live in cdk-local's `addStartAgentCoreSpecificOptions` and
50810
50810
  * are auto-inherited.
50811
50811
  *
50812
- * UNLIKE `start-cloudfront`, this command DOES bind deployed state: cdk-local's
50813
- * factory accepts an `extraStateProviders` option (the same seam the
50814
- * heavy-wrapper `cdkd local *` commands use), so cdkd threads its S3-backed
50815
- * `--from-state` factory in via `cdkdExtraStateProviders` and layers the
50816
- * cdkd-specific `--from-state` / `--state-bucket` / `--state-prefix` flags on
50817
- * top of cdk-local's inherited `--from-cfn-stack` / `--stack-region` (issue
50818
- * #766). The factory's internal `createLocalStateProvider` call picks cdkd's
50819
- * `fromState` factory transparently when `--from-state` is passed.
50812
+ * Like `start-cloudfront` / `start-alb` / `start-service`, this command binds
50813
+ * deployed state through cdk-local's `extraStateProviders` seam: the factory
50814
+ * accepts an `extraStateProviders` option (the same seam those commands use), so
50815
+ * cdkd threads its S3-backed `--from-state` factory in via
50816
+ * `cdkdExtraStateProviders` and layers the cdkd-specific `--from-state` /
50817
+ * `--state-bucket` / `--state-prefix` flags on top of cdk-local's inherited
50818
+ * `--from-cfn-stack` / `--stack-region` (issue #766; the `start-agentcore`
50819
+ * factory carried the seam from the start, the `start-cloudfront` factory gained
50820
+ * it in cdk-local 0.128.0). The factory's internal `createLocalStateProvider`
50821
+ * call picks cdkd's `fromState` factory transparently when `--from-state` is
50822
+ * passed.
50820
50823
  *
50821
50824
  * The active cdkd embed config is re-handed to the factory so branding stays
50822
50825
  * cdkd: cdk-local's factory calls `setEmbedConfig(opts.embedConfig)`, and
@@ -50871,16 +50874,17 @@ function createLocalStartAlbCommand() {
50871
50874
  * binding a Function URL origin's backing Lambda + a deployed-S3 origin's bucket
50872
50875
  * name to deployed state) live in cdk-local and are auto-inherited.
50873
50876
  *
50874
- * UNLIKE `start-agentcore` / `start-alb` / `start-service`, this command does
50875
- * NOT thread cdkd's S3-backed `--from-state` source: cdk-local's
50876
- * `CreateLocalStartCloudFrontCommandOptions` accepts only `embedConfig`, not the
50877
- * `extraStateProviders` seam (the factory's internal `createLocalStateProvider`
50878
- * calls pass no fourth argument). So `--from-state` / `--state-bucket` /
50879
- * `--state-prefix` and `cdkdExtraStateProviders` threading are intentionally
50880
- * absent here start-cloudfront stays exempt from issue #766 until cdk-local
50881
- * adds `extraStateProviders` to its start-cloudfront factory. Until then the
50882
- * `--from-cfn-stack` flag (CloudFormation-backed deployed state) is the only
50883
- * state source on this command.
50877
+ * As of cdk-local 0.128.0 (go-to-k/cdk-local#426 / #436) the start-cloudfront
50878
+ * factory accepts the `extraStateProviders` seam — the same one
50879
+ * `start-agentcore` / `start-alb` / `start-service` use — so cdkd now threads
50880
+ * its S3-backed `--from-state` factory in via `cdkdExtraStateProviders` and
50881
+ * layers the cdkd-specific `--from-state` / `--state-bucket` / `--state-prefix`
50882
+ * flags on top of cdk-local's inherited `--from-cfn-stack` / `--stack-region`
50883
+ * (issue #766). The factory's internal `createLocalStateProvider` calls pick
50884
+ * cdkd's `fromState` factory transparently when `--from-state` is passed, so a
50885
+ * Function URL origin's backing Lambda + a deployed-S3 origin's bucket name can
50886
+ * be bound to cdkd-managed state (after a prior `cdkd deploy`), not just to a
50887
+ * CloudFormation stack.
50884
50888
  *
50885
50889
  * The active cdkd embed config is re-handed to the factory so branding stays
50886
50890
  * cdkd: cdk-local's factory calls `setEmbedConfig(opts.embedConfig)`, and
@@ -50889,7 +50893,14 @@ function createLocalStartAlbCommand() {
50889
50893
  * cdk-local's `cdkl` defaults.
50890
50894
  */
50891
50895
  function createLocalStartCloudFrontCommand$1() {
50892
- return createLocalStartCloudFrontCommand({ embedConfig: getEmbedConfig() });
50896
+ const cmd = createLocalStartCloudFrontCommand({
50897
+ embedConfig: getEmbedConfig(),
50898
+ extraStateProviders: cdkdExtraStateProviders
50899
+ });
50900
+ cmd.addOption(new Option("--from-state", "Read cdkd's S3 state for the target stack and substitute Ref / Fn::GetAtt / Fn::Sub / Fn::ImportValue / Fn::GetStackOutput intrinsics when binding a Lambda Function URL origin's backing Lambda and a deployed-S3 origin's bucket name. Mutually exclusive with --from-cfn-stack.").default(false));
50901
+ cmd.addOption(new Option("--state-bucket <bucket>", "S3 bucket for --from-state. Falls back to CDKD_STATE_BUCKET env or cdk.json context.cdkd.stateBucket."));
50902
+ cmd.addOption(new Option("--state-prefix <prefix>", "S3 key prefix for --from-state state files.").default("cdkd"));
50903
+ return cmd;
50893
50904
  }
50894
50905
 
50895
50906
  //#endregion
@@ -52836,7 +52847,7 @@ function reorderArgs(argv) {
52836
52847
  async function main() {
52837
52848
  installPipeCloseHandler();
52838
52849
  const program = new Command();
52839
- program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.209.1");
52850
+ program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.210.0");
52840
52851
  program.addCommand(createBootstrapCommand());
52841
52852
  program.addCommand(createSynthCommand());
52842
52853
  program.addCommand(createListCommand());