cdk-local 0.149.1 → 0.149.3

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
@@ -144,7 +144,7 @@ cdkl invoke --from-cfn-stack --stack-region eu-west-1 # cross-region CFn clien
144
144
  cdkl invoke --from-cfn-stack --assume-role # auto-assume deployed execution role
145
145
  ```
146
146
 
147
- Substitutes `Ref` / `Fn::ImportValue` / `Fn::GetStackOutput` in env vars with the deployed physical IDs / exports, decrypts `AWS::SSM::Parameter::Value` entries (kept off the `docker run` argv), and resolves same-stack ECR `ContainerUri` to the deployed image. `Fn::GetAtt` in the Lambda's own env is recovered from the deployed function's resolved `Environment.Variables` via `lambda:GetFunctionConfiguration`. Full resolution rules: [docs/cli-reference.md#cloudformation-driven-env-recovery---from-cfn-stack](docs/cli-reference.md#cloudformation-driven-env-recovery---from-cfn-stack).
147
+ Substitutes `Ref` / `Fn::ImportValue` / `Fn::GetStackOutput` in env vars with the deployed physical IDs / exports, decrypts `AWS::SSM::Parameter::Value` entries (kept off the `docker run` argv; under `CDK_DOCKER=finch` on macOS / Windows they are refused unless you opt in, see [docs/local-emulation.md#finch-on-macos-and-windows](docs/local-emulation.md#finch-on-macos-and-windows)), and resolves same-stack ECR `ContainerUri` to the deployed image. `Fn::GetAtt` in the Lambda's own env is recovered from the deployed function's resolved `Environment.Variables` via `lambda:GetFunctionConfiguration`. Full resolution rules: [docs/cli-reference.md#cloudformation-driven-env-recovery---from-cfn-stack](docs/cli-reference.md#cloudformation-driven-env-recovery---from-cfn-stack).
148
148
 
149
149
  ## Corporate proxy — `HTTPS_PROXY` / `NO_PROXY`
150
150
 
package/dist/cli.js CHANGED
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
- import { D as createLocalStartAgentCoreCommand, F as createLocalStartCloudFrontCommand, Mn as createLocalInvokeCommand, Ot as createLocalStartServiceCommand, Pn as createLocalStartApiCommand, St as createLocalStartAlbCommand, a as createLocalStudioCommand, jt as createLocalRunTaskCommand, sn as createLocalInvokeAgentCoreCommand, w as createLocalListCommand } from "./local-studio-D8cHeCcp.js";
2
+ import { D as createLocalStartAgentCoreCommand, F as createLocalStartCloudFrontCommand, Mn as createLocalInvokeCommand, Ot as createLocalStartServiceCommand, Pn as createLocalStartApiCommand, St as createLocalStartAlbCommand, a as createLocalStudioCommand, jt as createLocalRunTaskCommand, sn as createLocalInvokeAgentCoreCommand, w as createLocalListCommand } from "./local-studio-BbLfdSy4.js";
3
3
  import { Command } from "commander";
4
4
 
5
5
  //#region src/cli/index.ts
6
6
  const program = new Command();
7
- program.name("cdkl").description("Run AWS CDK stacks locally with Docker.").version("0.149.1");
7
+ program.name("cdkl").description("Run AWS CDK stacks locally with Docker.").version("0.149.3");
8
8
  program.addCommand(createLocalInvokeCommand());
9
9
  program.addCommand(createLocalInvokeAgentCoreCommand());
10
10
  program.addCommand(createLocalStartApiCommand());
@@ -246,12 +246,16 @@ function getLogger() {
246
246
  //#endregion
247
247
  //#region src/utils/docker-cmd.ts
248
248
  var docker_cmd_exports = /* @__PURE__ */ __exportAll({
249
+ allowSecretsOnArgvEnvName: () => allowSecretsOnArgvEnvName,
250
+ finchSecretArgvRefusal: () => finchSecretArgvRefusal,
249
251
  formatDockerLoginError: () => formatDockerLoginError,
250
252
  getDockerCmd: () => getDockerCmd,
253
+ isFinchVmClient: () => isFinchVmClient,
251
254
  runDockerForeground: () => runDockerForeground,
252
255
  runDockerStreaming: () => runDockerStreaming,
253
256
  spawnForeground: () => spawnForeground,
254
- spawnStreaming: () => spawnStreaming
257
+ spawnStreaming: () => spawnStreaming,
258
+ warnFinchArgvExposure: () => warnFinchArgvExposure
255
259
  });
256
260
  /**
257
261
  * Shared helpers for invoking the docker-compatible CLI binary across cdk-local.
@@ -282,6 +286,86 @@ function getDockerCmd() {
282
286
  return override && override.length > 0 ? override : "docker";
283
287
  }
284
288
  /**
289
+ * Is the container client finch running its Lima VM (macOS / Windows)? There
290
+ * the value-less `-e KEY` form (`appendEnvFlags` in `local/docker-runner.ts`)
291
+ * does NOT keep a value off the process command line (issue #749): finch's
292
+ * `handleEnv` resolves each bare `KEY` against its own environment and
293
+ * re-emits `-e KEY=<value>` on the argv of the `limactl shell finch sudo -E
294
+ * nerdctl ...` child it starts, and `--env-file` is read on the host and
295
+ * re-emitted the same way (runfinch/finch `cmd/finch/nerdctl_remote.go`,
296
+ * `handleEnv` / `handleEnvFile`). Its `passedEnvs` list also puts
297
+ * `AWS_ACCESS_KEY_ID` / `AWS_SECRET_ACCESS_KEY` / `AWS_SESSION_TOKEN` from its
298
+ * environment on that argv for every command. finch on Linux passes the argv
299
+ * to nerdctl unchanged and is NOT matched.
300
+ *
301
+ * Detection is by the BASENAME of the resolved binary (`finch`, `finch.exe`,
302
+ * any case): a wrapper script or a symlink under another name is not
303
+ * recognised, and neither is Lima's own `nerdctl.lima`.
304
+ */
305
+ function isFinchVmClient(cmd = getDockerCmd(), platform = process.platform) {
306
+ if (platform !== "darwin" && platform !== "win32") return false;
307
+ const base = (cmd.split(/[\\/]/).pop() ?? "").toLowerCase();
308
+ return base === "finch" || base === "finch.exe";
309
+ }
310
+ /**
311
+ * The env var that accepts, while it is set, that a container client puts
312
+ * secret VALUES on a process command line ({@link finchSecretArgvRefusal}):
313
+ * `<envPrefix>_ALLOW_SECRETS_ON_ARGV`, so `CDKL_ALLOW_SECRETS_ON_ARGV` for
314
+ * `cdkl` and the embedding host's own prefix otherwise. Only `1` or `true`
315
+ * (any case) opts in.
316
+ */
317
+ function allowSecretsOnArgvEnvName() {
318
+ return `${getEmbedConfig().envPrefix}_ALLOW_SECRETS_ON_ARGV`;
319
+ }
320
+ function secretsOnArgvAllowed() {
321
+ const v = process.env[allowSecretsOnArgvEnvName()];
322
+ return v !== void 0 && ["1", "true"].includes(v.trim().toLowerCase());
323
+ }
324
+ const MESSAGE_UNSAFE_CHARS = /[\u0000-\u001f\u007f-\u009f\u2028\u2029]/g;
325
+ /**
326
+ * Render template- or state-sourced text (an env var name, a container name,
327
+ * an image URI) for a message: control and line-separator characters are
328
+ * escaped as `\uXXXX` so a hostile value cannot drive the terminal or forge a
329
+ * log line. Plain text renders unchanged.
330
+ */
331
+ function escapeForMessage(text) {
332
+ return text.replace(MESSAGE_UNSAFE_CHARS, (c) => `\\u${c.charCodeAt(0).toString(16).padStart(4, "0")}`);
333
+ }
334
+ /**
335
+ * The refusal text when template-sourced secrets (ECS `Secrets`, decrypted
336
+ * `SecureString` values) would be forwarded under {@link isFinchVmClient}, or
337
+ * `undefined` when they may be forwarded: another client, no such secret, or
338
+ * {@link allowSecretsOnArgvEnvName} set. The caller throws it in its own error
339
+ * class BEFORE any `docker run`. The AWS credential set is not refused here
340
+ * but warned about by {@link warnFinchArgvExposure}: forwarding it is what puts
341
+ * credentials that are not in this process's own environment (`--assume-role`,
342
+ * `--profile`, the metadata sidecar's) on that argv, and the warning makes that
343
+ * visible while keeping finch usable for containers that need AWS access. Names
344
+ * only, never a value. `subject` is context such as the container name; it is
345
+ * escaped like the names.
346
+ */
347
+ function finchSecretArgvRefusal(secretNames, subject) {
348
+ if (secretNames.length === 0 || !isFinchVmClient() || secretsOnArgvAllowed()) return void 0;
349
+ const names = [...new Set(secretNames)];
350
+ return `${escapeForMessage(subject)}: refusing to forward secret(s) ${names.map(escapeForMessage).join(", ")} under CDK_DOCKER=finch on macOS / Windows. finch turns each value-less '-e KEY' into '-e KEY=<value>' on the command line of the limactl process it starts, where other local processes can read the plaintext. Use a container client that keeps the value off the command line (for example the default 'docker', by unsetting CDK_DOCKER), or set ${allowSecretsOnArgvEnvName()}=1 to accept that exposure while it stays set.`;
351
+ }
352
+ /** Key sets already warned about by {@link warnFinchArgvExposure} in this process. */
353
+ const finchArgvWarned = /* @__PURE__ */ new Set();
354
+ /**
355
+ * Warn, once per process per distinct key set, that under
356
+ * {@link isFinchVmClient} the values of `keys` (the sensitive env about to be
357
+ * forwarded as value-less `-e KEY`) reach the `limactl` command line. Names
358
+ * only, never a value.
359
+ */
360
+ function warnFinchArgvExposure(keys) {
361
+ if (keys.length === 0 || !isFinchVmClient()) return;
362
+ const names = [...new Set(keys)].sort();
363
+ const latch = JSON.stringify(names);
364
+ if (finchArgvWarned.has(latch)) return;
365
+ finchArgvWarned.add(latch);
366
+ getLogger().warn(`CDK_DOCKER=finch on macOS / Windows puts the values of ${names.map(escapeForMessage).join(", ")} on the command line of the limactl process it starts (finch turns a value-less '-e KEY' into '-e KEY=<value>'), where other local processes can read them. The default 'docker' client keeps them off the command line.`);
367
+ }
368
+ /**
285
369
  * Spawn a docker-compatible CLI binary (resolved via `getDockerCmd`) with
286
370
  * streaming I/O. Collects stdout/stderr in memory and resolves with both
287
371
  * on exit code 0; rejects with a `SpawnError` carrying both streams on any
@@ -472,5 +556,5 @@ function mergeEnv(overrides) {
472
556
  }
473
557
 
474
558
  //#endregion
475
- export { runDockerStreaming as a, resolveConfiguredLogLevel as c, setEmbedConfig as d, runDockerForeground as i, getEmbedConfig as l, formatDockerLoginError as n, spawnStreaming as o, getDockerCmd as r, getLogger as s, docker_cmd_exports as t, resetEmbedConfig as u };
476
- //# sourceMappingURL=docker-cmd-DLX1TqVw.js.map
559
+ export { runDockerForeground as a, warnFinchArgvExposure as c, getEmbedConfig as d, resetEmbedConfig as f, getDockerCmd as i, getLogger as l, finchSecretArgvRefusal as n, runDockerStreaming as o, setEmbedConfig as p, formatDockerLoginError as r, spawnStreaming as s, docker_cmd_exports as t, resolveConfiguredLogLevel as u };
560
+ //# sourceMappingURL=docker-cmd-SocNyC9q.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"docker-cmd-SocNyC9q.js","names":["createSpinner"],"sources":["../src/local/embed-config.ts","../src/utils/logger.ts","../src/utils/docker-cmd.ts"],"sourcesContent":["/**\n * Embed-time branding configuration.\n *\n * cdk-local hardcodes its own branding (`cdkl` binary, `cdk-local`\n * product name, `cdkl-*` Docker / AWS resource names, `/cdk-local-aws`\n * credential bind-mount) into user-visible error messages and resource\n * identifiers. A host that embeds cdk-local's Commander factories (e.g.\n * cdkd, whose binary is `cdkd` and whose subcommand group is\n * `cdkd local`) passes a {@link CdkLocalEmbedConfig} so those strings\n * read in the host's own branding instead.\n *\n * The four command factories call {@link setEmbedConfig} before building\n * their Commander option tree, so both construction-time strings (option\n * descriptions / defaults) and action-time strings (errors, resource\n * names) read the resolved config via {@link getEmbedConfig}. When no\n * config is supplied every field falls back to cdk-local's own defaults,\n * leaving native `cdkl` behavior byte-identical.\n */\nexport interface CdkLocalEmbedConfig {\n /**\n * Command prefix for subcommand references in user-facing strings, e.g.\n * `${cliName} invoke` / `${cliName} start-api`. Default `'cdkl'`; cdkd\n * passes `'cdkd local'`.\n */\n cliName?: string;\n /**\n * Bare executable / process name for standalone references, e.g.\n * `${binaryName} is exiting` / `${binaryName} could not determine ...`,\n * the local request id, and the hyphen-free Cognito user-pool\n * placeholder id. Default `'cdkl'`; cdkd passes `'cdkd'`.\n */\n binaryName?: string;\n /**\n * Product name for prose references, e.g. `${productName} supports ...`.\n * Also seeds the profile-credentials tmpdir prefix. Default\n * `'cdk-local'`; cdkd passes `'cdkd'`.\n */\n productName?: string;\n /**\n * Prefix for generated Docker / AWS resource identifiers — container,\n * volume, network, image-tag, tmpdir names, STS `RoleSessionName`s, and\n * the example Cloud Map namespace. Default `'cdkl'`; cdkd passes\n * `'cdkd-local'`.\n */\n resourceNamePrefix?: string;\n /**\n * Container directory the host AWS shared-credentials file is\n * bind-mounted under. Default `'/cdk-local-aws'`; cdkd passes\n * `'/cdkd-aws'`.\n */\n awsBindMountPath?: string;\n /**\n * Prefix for the environment variables this CLI reads — `${envPrefix}_APP`\n * (the `--app` fallback) and `${envPrefix}_ROLE_ARN` (the `--role-arn`\n * fallback). Default `'CDKL'`; cdkd passes `'CDKD'`.\n */\n envPrefix?: string;\n /**\n * Whether this host fails-closed by default on unverifiable AWS_IAM SigV4\n * requests. cdk-local's default is warn-and-pass (`false`); a host like\n * cdkd that ships fail-closed-by-default passes `true`. Drives the polarity\n * of the SigV4 warn-message advice (whether the strictness flag reads as an\n * opt-IN or opt-OUT). Default `false`.\n */\n sigV4StrictByDefault?: boolean;\n /**\n * The CLI flag a user toggles to change SigV4 strictness. With\n * `sigV4StrictByDefault: false` it is an opt-IN flag (`'--strict-sigv4'`,\n * the default); with `sigV4StrictByDefault: true` it is the host's opt-OUT\n * flag (cdkd passes `'--allow-unverified-sigv4'`). Default `'--strict-sigv4'`.\n */\n sigV4OptFlag?: string;\n}\n\nexport interface ResolvedEmbedConfig {\n cliName: string;\n binaryName: string;\n productName: string;\n resourceNamePrefix: string;\n awsBindMountPath: string;\n envPrefix: string;\n sigV4StrictByDefault: boolean;\n sigV4OptFlag: string;\n}\n\nconst DEFAULTS: ResolvedEmbedConfig = {\n cliName: 'cdkl',\n binaryName: 'cdkl',\n productName: 'cdk-local',\n resourceNamePrefix: 'cdkl',\n awsBindMountPath: '/cdk-local-aws',\n envPrefix: 'CDKL',\n sigV4StrictByDefault: false,\n sigV4OptFlag: '--strict-sigv4',\n};\n\nlet current: ResolvedEmbedConfig = DEFAULTS;\n\n/**\n * Resolve and install the active embed config. Called once per command\n * factory with the host's overrides (or `undefined` for native cdkl\n * behavior). Idempotent: re-calling with the same overrides is a no-op,\n * which is why all four factories may safely set the same config.\n */\nexport function setEmbedConfig(config?: CdkLocalEmbedConfig): void {\n current = {\n cliName: config?.cliName ?? DEFAULTS.cliName,\n binaryName: config?.binaryName ?? DEFAULTS.binaryName,\n productName: config?.productName ?? DEFAULTS.productName,\n resourceNamePrefix: config?.resourceNamePrefix ?? DEFAULTS.resourceNamePrefix,\n awsBindMountPath: config?.awsBindMountPath ?? DEFAULTS.awsBindMountPath,\n envPrefix: config?.envPrefix ?? DEFAULTS.envPrefix,\n sigV4StrictByDefault: config?.sigV4StrictByDefault ?? DEFAULTS.sigV4StrictByDefault,\n sigV4OptFlag: config?.sigV4OptFlag ?? DEFAULTS.sigV4OptFlag,\n };\n}\n\n/** The active resolved embed config. */\nexport function getEmbedConfig(): ResolvedEmbedConfig {\n return current;\n}\n\n/** Restore cdk-local defaults. Primarily a test-isolation helper. */\nexport function resetEmbedConfig(): void {\n current = DEFAULTS;\n}\n","/**\n * Logger interface and console implementation for cdk-local.\n *\n * A minimal `Logger` / `LogLevel` interface with a `ConsoleLogger`\n * (`getLogger()` / `setLogger()` exports, `child(prefix)` for prefixed\n * sub-loggers). cdk-local invokes a single Lambda / API / task at a time,\n * so there is no parallel multi-stack output to interleave — a plain\n * console logger with no output buffer or live progress renderer suffices.\n */\n\nexport type LogLevel = 'debug' | 'info' | 'warn' | 'error';\n\nexport interface Logger {\n debug(message: string, ...args: unknown[]): void;\n info(message: string, ...args: unknown[]): void;\n warn(message: string, ...args: unknown[]): void;\n error(message: string, ...args: unknown[]): void;\n setLevel(level: LogLevel): void;\n getLevel(): LogLevel;\n child(prefix: string): Logger;\n}\n\n/**\n * ANSI color codes\n *\n * Kept internal — `ConsoleLogger.formatMessage` references these for the\n * verbose/compact mode level prefixes.\n */\nconst colors = {\n reset: '\\x1b[0m',\n bright: '\\x1b[1m',\n dim: '\\x1b[2m',\n red: '\\x1b[31m',\n green: '\\x1b[32m',\n yellow: '\\x1b[33m',\n blue: '\\x1b[34m',\n cyan: '\\x1b[36m',\n gray: '\\x1b[90m',\n} as const;\n\nfunction formatTimestamp(): string {\n const now = new Date();\n return now.toISOString();\n}\n\n/**\n * Resolve whether ANSI color should be emitted by default.\n *\n * Color is appropriate for an interactive terminal but is noise (literal\n * `\\x1b[31m...` escapes) when the output is a pipe — e.g. when `cdkl studio`\n * spawns `cdkl invoke` / a serve command as a child and captures its output to\n * render in the browser, where the raw escapes leak as visible text. So the\n * default tracks the stdout TTY-ness, with the two standard env overrides:\n *\n * - `NO_COLOR` (any non-empty value) forces colors OFF (https://no-color.org).\n * - `FORCE_COLOR` (non-empty, not `'0'` / `'false'`) forces colors ON, even\n * when not a TTY (the convention many CLIs honor for CI / log capture).\n * - otherwise: on when `process.stdout.isTTY`.\n *\n * We gate on `process.stdout.isTTY` even though warn / error go to stderr via\n * `console.error` / `console.warn`. In the case this fix targets — a piped\n * child (e.g. studio) — NEITHER stdout nor stderr is a TTY, so gating on stdout\n * still yields colorless output. Tracking stdout matches common CLI tooling and\n * keeps a single, predictable signal; an explicit `useColors` argument (passed\n * by child loggers) always overrides this default.\n */\nexport function resolveDefaultUseColors(): boolean {\n const noColor = process.env['NO_COLOR'];\n if (noColor !== undefined && noColor !== '') {\n return false;\n }\n const forceColor = process.env['FORCE_COLOR'];\n if (\n forceColor !== undefined &&\n forceColor !== '' &&\n forceColor !== '0' &&\n forceColor !== 'false'\n ) {\n return true;\n }\n return !!process.stdout.isTTY;\n}\n\n/**\n * Console logger implementation\n *\n * Supports two output modes:\n * - verbose (debug level): timestamps, module prefixes, all details\n * - compact (info level): clean output without timestamps or prefixes\n */\nexport class ConsoleLogger implements Logger {\n private level: LogLevel;\n private useColors: boolean;\n\n constructor(level: LogLevel = 'info', useColors: boolean = resolveDefaultUseColors()) {\n this.level = level;\n this.useColors = useColors;\n }\n\n private shouldLog(level: LogLevel): boolean {\n const levels: LogLevel[] = ['debug', 'info', 'warn', 'error'];\n const currentLevelIndex = levels.indexOf(this.level);\n const messageLevelIndex = levels.indexOf(level);\n return messageLevelIndex >= currentLevelIndex;\n }\n\n private formatMessage(level: LogLevel, message: string, ...args: unknown[]): string {\n const formattedArgs = args.length > 0 ? ' ' + args.map((a) => JSON.stringify(a)).join(' ') : '';\n\n if (this.level === 'debug') {\n const timestamp = formatTimestamp();\n const levelStr = level.toUpperCase().padEnd(5);\n\n if (this.useColors) {\n const levelColorMap: Record<LogLevel, string> = {\n debug: colors.gray,\n info: colors.blue,\n warn: colors.yellow,\n error: colors.red,\n };\n const levelColor = levelColorMap[level];\n\n return `${colors.dim}${timestamp}${colors.reset} ${levelColor}${levelStr}${colors.reset} ${message}${formattedArgs}`;\n }\n\n return `${timestamp} ${levelStr} ${message}${formattedArgs}`;\n }\n\n // Compact mode (info level) prefixes warn / error with an UPPERCASE level\n // tag so the severity is legible even when ANSI color is stripped — a\n // piped / redirected CLI run, `NO_COLOR`, or the `cdkl studio` serve child\n // (captured over a pipe, so colorless). Color, when available, still wraps\n // the whole line. info stays prefix-less so the common-case progress output\n // is unchanged. The prefix is the one severity signal that survives a pipe,\n // and studio's LOG panel re-colors off it (studio-ui).\n if (level === 'error') {\n const line = `ERROR: ${message}${formattedArgs}`;\n return this.useColors ? `${colors.red}${line}${colors.reset}` : line;\n }\n if (level === 'warn') {\n const line = `WARN: ${message}${formattedArgs}`;\n return this.useColors ? `${colors.yellow}${line}${colors.reset}` : line;\n }\n\n return `${message}${formattedArgs}`;\n }\n\n private emit(level: LogLevel, formatted: string): void {\n // `cdkl studio` sets `CDKL_LOG_STREAM=stdout` on its spawned serve children\n // (issue #403) so EVERY level routes to stdout instead of the default\n // warn/error -> stderr split. studio captures a child's stdout and stderr\n // via two separate OS pipes, and Node does NOT guarantee cross-pipe\n // delivery order — a warn written just before a stdout banner can surface\n // AFTER it in the studio LOG panel (e.g. the pinned-image WARN landing\n // below \"Press ^C to shut down.\"). Emitting one stream preserves emission\n // order for that consumer. Direct CLI use never sets the var, so the\n // warn/error -> stderr split is unchanged there.\n if (process.env['CDKL_LOG_STREAM'] === 'stdout') {\n console.log(formatted);\n return;\n }\n if (level === 'error') console.error(formatted);\n else if (level === 'warn') console.warn(formatted);\n else if (level === 'info') console.info(formatted);\n else console.debug(formatted);\n }\n\n debug(message: string, ...args: unknown[]): void {\n if (this.shouldLog('debug')) {\n this.emit('debug', this.formatMessage('debug', message, ...args));\n }\n }\n\n info(message: string, ...args: unknown[]): void {\n if (this.shouldLog('info')) {\n this.emit('info', this.formatMessage('info', message, ...args));\n }\n }\n\n warn(message: string, ...args: unknown[]): void {\n if (this.shouldLog('warn')) {\n this.emit('warn', this.formatMessage('warn', message, ...args));\n }\n }\n\n error(message: string, ...args: unknown[]): void {\n if (this.shouldLog('error')) {\n this.emit('error', this.formatMessage('error', message, ...args));\n }\n }\n\n setLevel(level: LogLevel): void {\n this.level = level;\n }\n\n getLevel(): LogLevel {\n return this.level;\n }\n\n child(prefix: string): ChildLogger {\n return new ChildLogger(prefix, this.useColors);\n }\n}\n\n/**\n * Child logger that always syncs level from global logger\n */\nclass ChildLogger extends ConsoleLogger {\n private readonly prefix: string;\n\n constructor(prefix: string, useColors: boolean) {\n super('info', useColors);\n this.prefix = prefix;\n }\n\n private syncLevel(): void {\n if (globalLogger) {\n this.setLevel(globalLogger.getLevel());\n }\n }\n\n override debug(message: string, ...args: unknown[]): void {\n this.syncLevel();\n super.debug(`[${this.prefix}] ${message}`, ...args);\n }\n\n override info(message: string, ...args: unknown[]): void {\n this.syncLevel();\n const msg = this.getLevel() === 'debug' ? `[${this.prefix}] ${message}` : message;\n super.info(msg, ...args);\n }\n\n override warn(message: string, ...args: unknown[]): void {\n this.syncLevel();\n const msg = this.getLevel() === 'debug' ? `[${this.prefix}] ${message}` : message;\n super.warn(msg, ...args);\n }\n\n override error(message: string, ...args: unknown[]): void {\n this.syncLevel();\n const msg = this.getLevel() === 'debug' ? `[${this.prefix}] ${message}` : message;\n super.error(msg, ...args);\n }\n}\n\n/**\n * Resolve the initial log level from the `CDKL_LOG_LEVEL` env var, falling\n * back to `'info'`. This is primarily an internal contract: `cdkl studio`\n * spawns its single-shot `cdkl invoke` child with `CDKL_LOG_LEVEL=warn` so\n * cdk-local's OWN synth / orchestration progress (toolkit \"Successfully\n * synthesized to ...\", asset-bundling lines, info-level status) is silenced\n * in the child — leaving the studio LOGS panel showing only the Lambda\n * container's runtime logs (which stream straight from `docker logs` and are\n * unaffected by this level) plus the response. `--verbose` still overrides to\n * `debug` at the command layer. An invalid value is ignored.\n */\nexport function resolveConfiguredLogLevel(): LogLevel {\n const env = process.env['CDKL_LOG_LEVEL'];\n if (env === 'debug' || env === 'info' || env === 'warn' || env === 'error') {\n return env;\n }\n return 'info';\n}\n\nlet globalLogger: ConsoleLogger | null = null;\n\nexport function getLogger(): ConsoleLogger {\n if (!globalLogger) {\n globalLogger = new ConsoleLogger(resolveConfiguredLogLevel());\n }\n return globalLogger;\n}\n\nexport function setLogger(logger: ConsoleLogger): void {\n globalLogger = logger;\n}\n","import { spawn } from 'node:child_process';\nimport { spinner as createSpinner } from '@clack/prompts';\nimport { getLogger } from './logger.js';\nimport { getEmbedConfig } from '../local/embed-config.js';\n\n/**\n * Shared helpers for invoking the docker-compatible CLI binary across cdk-local.\n *\n * Two parity decisions with `aws-cdk-cli`'s `cdk-assets-lib`:\n * 1. `CDK_DOCKER` env var swaps the binary so podman / finch users can\n * run cdk-local without code changes (`CDK_DOCKER=podman cdkl invoke`).\n * 2. `runDockerStreaming` uses streaming spawn rather than `execFile`'s\n * buffered `maxBuffer` ceiling. BuildKit's progress output can run to\n * tens of MB on multi-stage builds with `# syntax=docker/dockerfile:1`\n * frontend downloads + heredoc / `RUN --mount=...` features; the 50 MB\n * `execFile` ceiling cdk-local used to set silently killed those builds\n * with `ERR_CHILD_PROCESS_STDIO_MAXBUFFER`.\n *\n * Output handling: stdout/stderr are collected in memory unconditionally so\n * `runDockerStreaming` can return them to the caller for error wrapping.\n * When the logger is at debug level (i.e. the user passed `--verbose`),\n * the chunks are ALSO mirrored to `process.stdout` / `process.stderr` so\n * the user sees live build progress.\n */\n\n/**\n * Return the docker-compatible CLI binary to invoke. Matches CDK CLI:\n * `CDK_DOCKER` env var overrides the default `docker` so users on\n * podman / finch / nerdctl can swap without changing cdk-local code.\n */\nexport function getDockerCmd(): string {\n const override = process.env['CDK_DOCKER'];\n return override && override.length > 0 ? override : 'docker';\n}\n\n/**\n * Is the container client finch running its Lima VM (macOS / Windows)? There\n * the value-less `-e KEY` form (`appendEnvFlags` in `local/docker-runner.ts`)\n * does NOT keep a value off the process command line (issue #749): finch's\n * `handleEnv` resolves each bare `KEY` against its own environment and\n * re-emits `-e KEY=<value>` on the argv of the `limactl shell finch sudo -E\n * nerdctl ...` child it starts, and `--env-file` is read on the host and\n * re-emitted the same way (runfinch/finch `cmd/finch/nerdctl_remote.go`,\n * `handleEnv` / `handleEnvFile`). Its `passedEnvs` list also puts\n * `AWS_ACCESS_KEY_ID` / `AWS_SECRET_ACCESS_KEY` / `AWS_SESSION_TOKEN` from its\n * environment on that argv for every command. finch on Linux passes the argv\n * to nerdctl unchanged and is NOT matched.\n *\n * Detection is by the BASENAME of the resolved binary (`finch`, `finch.exe`,\n * any case): a wrapper script or a symlink under another name is not\n * recognised, and neither is Lima's own `nerdctl.lima`.\n */\nexport function isFinchVmClient(\n cmd: string = getDockerCmd(),\n platform: NodeJS.Platform = process.platform\n): boolean {\n if (platform !== 'darwin' && platform !== 'win32') return false;\n const base = (cmd.split(/[\\\\/]/).pop() ?? '').toLowerCase();\n return base === 'finch' || base === 'finch.exe';\n}\n\n/**\n * The env var that accepts, while it is set, that a container client puts\n * secret VALUES on a process command line ({@link finchSecretArgvRefusal}):\n * `<envPrefix>_ALLOW_SECRETS_ON_ARGV`, so `CDKL_ALLOW_SECRETS_ON_ARGV` for\n * `cdkl` and the embedding host's own prefix otherwise. Only `1` or `true`\n * (any case) opts in.\n */\nexport function allowSecretsOnArgvEnvName(): string {\n return `${getEmbedConfig().envPrefix}_ALLOW_SECRETS_ON_ARGV`;\n}\n\nfunction secretsOnArgvAllowed(): boolean {\n const v = process.env[allowSecretsOnArgvEnvName()];\n return v !== undefined && ['1', 'true'].includes(v.trim().toLowerCase());\n}\n\n// eslint-disable-next-line no-control-regex -- the control characters are exactly what is escaped.\nconst MESSAGE_UNSAFE_CHARS = /[\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029]/g;\n\n/**\n * Render template- or state-sourced text (an env var name, a container name,\n * an image URI) for a message: control and line-separator characters are\n * escaped as `\\uXXXX` so a hostile value cannot drive the terminal or forge a\n * log line. Plain text renders unchanged.\n */\nfunction escapeForMessage(text: string): string {\n return text.replace(\n MESSAGE_UNSAFE_CHARS,\n (c) => `\\\\u${c.charCodeAt(0).toString(16).padStart(4, '0')}`\n );\n}\n\n/**\n * The refusal text when template-sourced secrets (ECS `Secrets`, decrypted\n * `SecureString` values) would be forwarded under {@link isFinchVmClient}, or\n * `undefined` when they may be forwarded: another client, no such secret, or\n * {@link allowSecretsOnArgvEnvName} set. The caller throws it in its own error\n * class BEFORE any `docker run`. The AWS credential set is not refused here\n * but warned about by {@link warnFinchArgvExposure}: forwarding it is what puts\n * credentials that are not in this process's own environment (`--assume-role`,\n * `--profile`, the metadata sidecar's) on that argv, and the warning makes that\n * visible while keeping finch usable for containers that need AWS access. Names\n * only, never a value. `subject` is context such as the container name; it is\n * escaped like the names.\n */\nexport function finchSecretArgvRefusal(\n secretNames: readonly string[],\n subject: string\n): string | undefined {\n if (secretNames.length === 0 || !isFinchVmClient() || secretsOnArgvAllowed()) return undefined;\n const names = [...new Set(secretNames)];\n return (\n `${escapeForMessage(subject)}: refusing to forward secret(s) ${names.map(escapeForMessage).join(', ')} ` +\n `under CDK_DOCKER=finch on macOS / Windows. finch turns each value-less '-e KEY' into ` +\n `'-e KEY=<value>' on the command line of the limactl process it starts, where other local ` +\n `processes can read the plaintext. Use a container client that keeps the value off the command ` +\n `line (for example the default 'docker', by unsetting CDK_DOCKER), or set ` +\n `${allowSecretsOnArgvEnvName()}=1 to accept that exposure while it stays set.`\n );\n}\n\n/** Key sets already warned about by {@link warnFinchArgvExposure} in this process. */\nconst finchArgvWarned = new Set<string>();\n\n/** Test-only: forget which key sets {@link warnFinchArgvExposure} warned about. */\nexport function resetFinchArgvWarningsForTest(): void {\n finchArgvWarned.clear();\n}\n\n/**\n * Warn, once per process per distinct key set, that under\n * {@link isFinchVmClient} the values of `keys` (the sensitive env about to be\n * forwarded as value-less `-e KEY`) reach the `limactl` command line. Names\n * only, never a value.\n */\nexport function warnFinchArgvExposure(keys: readonly string[]): void {\n if (keys.length === 0 || !isFinchVmClient()) return;\n const names = [...new Set(keys)].sort();\n const latch = JSON.stringify(names);\n if (finchArgvWarned.has(latch)) return;\n finchArgvWarned.add(latch);\n getLogger().warn(\n `CDK_DOCKER=finch on macOS / Windows puts the values of ${names.map(escapeForMessage).join(', ')} ` +\n `on the command line of the limactl process it starts (finch turns a value-less '-e KEY' into ` +\n `'-e KEY=<value>'), where other local processes can read them. The default 'docker' client ` +\n `keeps them off the command line.`\n );\n}\n\nexport interface SpawnResult {\n stdout: string;\n stderr: string;\n}\n\nexport interface SpawnError extends Error {\n /** Captured stderr at the time of failure. */\n stderr: string;\n /** Captured stdout at the time of failure. */\n stdout: string;\n /** Process exit code (null when the process was killed by signal). */\n exitCode: number | null;\n}\n\nexport interface RunDockerOptions {\n /** Optional working directory for the subprocess. */\n cwd?: string;\n /**\n * Additional environment variables to set. Merged on top of `process.env`\n * (so the user's `DOCKER_BUILDKIT=1` and friends propagate through).\n */\n env?: Record<string, string | undefined>;\n /** When set, written to stdin (used by `docker login --password-stdin`). */\n input?: string;\n /**\n * When true, mirror stdout/stderr chunks to `process.stdout` / `process.stderr`\n * as they arrive. Useful for `docker pull` / `docker build` where live\n * progress is desirable. Defaults to \"true when the logger is at debug\n * level\" — matches the existing `--verbose` UX.\n */\n streamLive?: boolean;\n /**\n * When set, show an interactive {@link createSpinner | clack spinner}\n * with this label for the duration of the spawn — so a long-running\n * `docker build` / `docker pull` against a real-world image doesn't\n * look like cdk-local hung. The spinner only renders when:\n *\n * - `streamLive` is false (live BuildKit output already shows motion;\n * overlaying a spinner on top would visually clash and the line\n * overwriting would mangle the build log), AND\n * - `process.stdout` is a TTY (non-TTY callers such as integ-test\n * fixtures or CI runs already log linearly; a spinner there would\n * emit raw ANSI escapes into the captured log).\n *\n * In either skipped case the spawn proceeds as if `progressLabel` were\n * undefined — the caller's pre-spawn `logger.info(...)` \"Building X...\"\n * line continues to be the only progress signal, which is the\n * pre-spinner behavior and matches what scripts / CI expect.\n *\n * On exit code 0 the spinner stops with the same label and a check\n * mark; on non-zero exit it stops with an error mark before the\n * rejection propagates, so the caller's `try {} catch {}` wrap still\n * sees a clean spinner-less stderr.\n *\n * Concurrency: each `@clack/prompts` spinner instance registers its own\n * `SIGINT` / `SIGTERM` / `exit` / `uncaughtExceptionMonitor` /\n * `unhandledRejection` listeners against `process`. Callers must\n * serialize concurrent spinner-bearing `spawnStreaming` invocations on\n * the same `process.stdout` — two simultaneous spinners overwrite each\n * other's frame line AND accumulate listeners (Node trips its default\n * 10-listener warning at ~3 concurrent spinners). Every cdk-local call\n * site as of this PR is strictly sequential\n * (`runImageOverrideBuilds` for-of, `prepareImages` for-of, ECS\n * Lambda asset builds are one-per-invoke); the future parallel-build\n * path should either drop the label or memoize a single shared spinner.\n */\n progressLabel?: string;\n}\n\n/**\n * Spawn a docker-compatible CLI binary (resolved via `getDockerCmd`) with\n * streaming I/O. Collects stdout/stderr in memory and resolves with both\n * on exit code 0; rejects with a `SpawnError` carrying both streams on any\n * non-zero exit so the caller can wrap with its own error class without\n * losing the upstream output.\n *\n * No `maxBuffer` ceiling: BuildKit progress output frequently exceeds the\n * `child_process.execFile` default of 1 MB (cdk-local previously bumped to 50 MB\n * but BuildKit + frontend pulls can still exceed that on first-time builds).\n */\nexport async function runDockerStreaming(\n args: string[],\n options: RunDockerOptions = {}\n): Promise<SpawnResult> {\n return spawnStreaming(getDockerCmd(), args, options);\n}\n\n/**\n * Generic streaming spawn — used by `runDockerStreaming` AND by the\n * `executable` source mode in `docker-build.ts` (which runs an arbitrary\n * user-supplied build command, not docker).\n */\nexport async function spawnStreaming(\n cmd: string,\n args: string[],\n options: RunDockerOptions = {}\n): Promise<SpawnResult> {\n const streamLive = options.streamLive ?? getLogger().getLevel() === 'debug';\n const env = options.env ? mergeEnv(options.env) : undefined;\n const spin = startProgressSpinner(options.progressLabel, streamLive);\n\n return new Promise<SpawnResult>((resolve, reject) => {\n // Defensive: a synchronous throw from `spawn` (e.g. Node's\n // `ERR_INVALID_ARG_TYPE` on a non-string `cmd`) bypasses the close /\n // error handlers below — without this try/catch the spinner would be\n // left animating until process exit. Today unreachable\n // (`getDockerCmd()` always returns a string + all call-site `args`\n // are `string[]`), but the wrap is free defense-in-depth on a\n // process-launch helper.\n let child;\n try {\n child = spawn(cmd, args, {\n cwd: options.cwd,\n env,\n stdio: [options.input ? 'pipe' : 'ignore', 'pipe', 'pipe'],\n });\n } catch (err) {\n stopProgressSpinner(spin, options.progressLabel);\n reject(err as Error);\n return;\n }\n\n const stdoutChunks: Buffer[] = [];\n const stderrChunks: Buffer[] = [];\n\n child.stdout!.on('data', (chunk: Buffer) => {\n stdoutChunks.push(chunk);\n if (streamLive) process.stdout.write(chunk);\n });\n child.stderr!.on('data', (chunk: Buffer) => {\n stderrChunks.push(chunk);\n if (streamLive) process.stderr.write(chunk);\n });\n\n child.once('error', (err: NodeJS.ErrnoException) => {\n stopProgressSpinner(spin, options.progressLabel);\n if (err.code === 'ENOENT') {\n const usingOverride = process.env['CDK_DOCKER'] === cmd && cmd !== 'docker';\n reject(\n new Error(\n usingOverride\n ? `Failed to find and execute '${cmd}' (resolved via CDK_DOCKER). ` +\n `Install '${cmd}' or unset CDK_DOCKER to fall back to 'docker'.`\n : `Failed to find and execute '${cmd}'. Install Docker (or set the ` +\n `'CDK_DOCKER' environment variable to a compatible binary such as podman / finch).`\n )\n );\n } else {\n reject(err);\n }\n });\n\n child.once('close', (code) => {\n const stdout = Buffer.concat(stdoutChunks).toString('utf-8');\n const stderr = Buffer.concat(stderrChunks).toString('utf-8');\n if (code === 0) {\n stopProgressSpinner(spin, options.progressLabel);\n resolve({ stdout, stderr });\n } else {\n stopProgressSpinner(spin, options.progressLabel);\n const message =\n stderr.trim() || stdout.trim() || `${cmd} ${args[0] ?? ''} exited with code ${code}`;\n const err = new Error(message) as SpawnError;\n err.stderr = stderr;\n err.stdout = stdout;\n err.exitCode = code;\n reject(err);\n }\n });\n\n if (options.input !== undefined) {\n // Defensive: when spawn() fails (e.g. ENOENT race), the synchronous\n // write below could emit a stream 'error' event before the close /\n // error handlers above fire. Without a listener, Node escalates that\n // to \"Unhandled 'error' event\" on some versions. cdk-local's only `input`\n // call site is `docker login --password-stdin` with short payloads\n // that complete well within the syscall, so this is unlikely to fire\n // in practice — but the no-op listener is free.\n child.stdin!.on('error', () => {\n /* surfaced via the outer error/close handlers above */\n });\n child.stdin!.write(options.input);\n child.stdin!.end();\n }\n });\n}\n\ntype ClackSpinner = ReturnType<typeof createSpinner>;\n\n/**\n * Start an interactive clack spinner for the spawn, but only when the\n * current shell would actually render it (TTY) and the caller isn't\n * already streaming live output. Returns `undefined` when either\n * precondition fails — `stopProgressSpinner` then is a no-op.\n *\n * Test seam: the integration with `@clack/prompts` is mocked in\n * `tests/unit/utils/docker-cmd-progress-spinner.test.ts`.\n */\nfunction startProgressSpinner(\n label: string | undefined,\n streamLive: boolean\n): ClackSpinner | undefined {\n if (label === undefined || streamLive || process.stdout.isTTY !== true) return undefined;\n const spin = createSpinner();\n spin.start(label);\n return spin;\n}\n\nfunction stopProgressSpinner(spin: ClackSpinner | undefined, label: string | undefined): void {\n // `@clack/prompts`' `spinner().stop(message?)` only takes the message at\n // the TS-level signature (the runtime impl ignores the optional `code`\n // second arg, hard-coding success), so we mirror its public API. The\n // upstream caller's wrapped error / rejection still surfaces the\n // failure detail; the spinner's only job here is to stop animating\n // cleanly so the error stderr renders on its own fresh line.\n if (spin === undefined) return;\n spin.stop(label ?? '');\n}\n\n/**\n * Spawn a docker-compatible CLI binary (resolved via `getDockerCmd`) attached\n * to the parent process's stdio so the user sees live output (`docker pull`\n * layer progress, `docker login` interactive prompts that should never fire\n * with `--password-stdin` but still safe to inherit, etc.). Resolves on exit\n * code 0; rejects with a plain `Error` carrying the exit code on any non-zero\n * exit, so the caller can wrap with its own error class.\n *\n * Differs from {@link runDockerStreaming} in two ways:\n * 1. `stdio: 'inherit'` — output is NOT captured, so terminal control codes\n * (color, progress bar overwrites) flow through unchanged. This is the\n * load-bearing reason for the split: `docker pull`'s progress bars only\n * animate properly when stdout is a real TTY connected to the parent.\n * 2. No `input` / `streamLive` options — inherit-mode has nothing to\n * capture and nothing to mirror.\n *\n * Used by the `--verbose`-mode `docker pull` plumbing in `docker-runner.ts`\n * and `ecr-puller.ts` (visible layer progress). Non-verbose pulls go through\n * {@link runDockerStreaming} so stderr can be folded into the error message.\n */\nexport async function runDockerForeground(\n args: string[],\n options: ForegroundOptions = {}\n): Promise<void> {\n return spawnForeground(getDockerCmd(), args, options);\n}\n\nexport interface ForegroundOptions {\n /** Optional working directory for the subprocess. */\n cwd?: string;\n /**\n * Additional environment variables to set. Merged on top of `process.env`\n * (same semantics as {@link RunDockerOptions.env}).\n */\n env?: Record<string, string | undefined>;\n}\n\n/**\n * Foreground (stdio-inherit) spawn — the inherit-mode counterpart to\n * {@link spawnStreaming}. Used by {@link runDockerForeground} for docker-CLI\n * subprocesses.\n *\n * The ENOENT branch crafts a docker-specific install hint (\"Install Docker\n * (or set CDK_DOCKER ...)\"), so non-docker callers reusing this helper\n * would see a misleading error on missing-binary failures. Keep the binary\n * docker-shaped, or update the ENOENT message before adding a non-docker\n * call site.\n */\nexport async function spawnForeground(\n cmd: string,\n args: string[],\n options: ForegroundOptions = {}\n): Promise<void> {\n const env = options.env ? mergeEnv(options.env) : undefined;\n return new Promise<void>((resolve, reject) => {\n const child = spawn(cmd, args, {\n cwd: options.cwd,\n env,\n stdio: 'inherit',\n });\n child.once('error', (err: NodeJS.ErrnoException) => {\n if (err.code === 'ENOENT') {\n const usingOverride = process.env['CDK_DOCKER'] === cmd && cmd !== 'docker';\n reject(\n new Error(\n usingOverride\n ? `Failed to find and execute '${cmd}' (resolved via CDK_DOCKER). ` +\n `Install '${cmd}' or unset CDK_DOCKER to fall back to 'docker'.`\n : `Failed to find and execute '${cmd}'. Install Docker (or set the ` +\n `'CDK_DOCKER' environment variable to a compatible binary such as podman / finch).`\n )\n );\n } else {\n reject(new Error(`${cmd} failed: ${err.message}`));\n }\n });\n child.once('close', (code) => {\n if (code === 0) {\n resolve();\n } else {\n reject(new Error(`${cmd} exited with code ${code}`));\n }\n });\n });\n}\n\n/**\n * Format the stderr from a failed `docker login` so the surfaced cdk-local\n * error gives the user an actionable workaround when the underlying\n * failure is a credential-helper persistence bug (which has nothing to\n * do with cdk-local, AWS, or IAM perms — the docker CLI itself fails to\n * save the auth token to the platform's credential store). The most\n * common shape is `osxkeychain` on macOS rejecting an overwrite for\n * an existing entry, but `wincred` (Windows), `pass` (Linux), and\n * `secretservice` (Linux) hit the same class of `Error saving\n * credentials` failure, so the rewritten message stays platform-\n * agnostic — `docker logout <endpoint>` is the correct recovery on\n * every backend.\n *\n * Detected docker / docker-credential-* output patterns:\n * - `error storing credentials - err: exit status 1, out: \\`The\n * specified item already exists in the keychain.\\`` (osxkeychain)\n * - `Error saving credentials: ...` (any backend)\n *\n * Non-matching failures (genuine IAM / network / endpoint problems)\n * pass through with just the stderr trimmed — the original message\n * stays load-bearing for diagnosis.\n */\nexport function formatDockerLoginError(stderr: string, endpoint: string): string {\n const trimmed = stderr.trim();\n const isCredentialHelperFailure =\n trimmed.includes('already exists in the keychain') ||\n trimmed.includes('Error saving credentials');\n if (isCredentialHelperFailure) {\n return (\n `docker's credential helper (osxkeychain on macOS / wincred on Windows / pass / secretservice on Linux) ` +\n `failed to persist the ECR auth token. The \"already exists in the keychain\" / \"Error saving credentials\" ` +\n `output is a known docker-credential-helpers issue — unrelated to ${getEmbedConfig().productName}, AWS credentials, or IAM perms. ` +\n `Quick fix: run \\`docker logout ${endpoint}\\` to clear the stale entry, then retry the ${getEmbedConfig().productName} command. ` +\n `Permanent fix: edit ~/.docker/config.json and remove (or empty) the platform-specific \"credsStore\" entry ` +\n `(e.g. \"osxkeychain\" → \"\" or \"desktop\" on macOS Docker Desktop). ` +\n `Original docker stderr: ${trimmed}`\n );\n }\n return trimmed;\n}\n\nfunction mergeEnv(overrides: Record<string, string | undefined>): NodeJS.ProcessEnv {\n const merged: NodeJS.ProcessEnv = { ...process.env };\n for (const [k, v] of Object.entries(overrides)) {\n if (v === undefined) {\n delete merged[k];\n } else {\n merged[k] = v;\n }\n }\n return merged;\n}\n"],"mappings":";;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I,oBAAoB,MAAM,CAAC;EAEvD,CAAC;CACH,CAAC;AACH;;;;;;;;;;;;;;;;;;;;;;;AAwBA,SAAgB,uBAAuB,QAAgB,UAA0B;CAC/E,MAAM,UAAU,OAAO,KAAK;CAI5B,IAFE,QAAQ,SAAS,gCAAgC,KACjD,QAAQ,SAAS,0BAA0B,GAE3C,OACE,mRAEoE,eAAe,CAAC,CAAC,YAAY,kEAC/D,SAAS,8CAA8C,eAAe,CAAC,CAAC,YAAY,6MAG3F;CAG/B,OAAO;AACT;AAEA,SAAS,SAAS,WAAkE;CAClF,MAAM,SAA4B,EAAE,GAAG,QAAQ,IAAI;CACnD,KAAK,MAAM,CAAC,GAAG,MAAM,OAAO,QAAQ,SAAS,GAC3C,IAAI,MAAM,QACR,OAAO,OAAO;MAEd,OAAO,KAAK;CAGhB,OAAO;AACT"}
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { d as setEmbedConfig, l as getEmbedConfig, u as resetEmbedConfig } from "./docker-cmd-DLX1TqVw.js";
2
- import { $r as resolveCfnStackName, D as createLocalStartAgentCoreCommand, F as createLocalStartCloudFrontCommand, Gr as substituteEnvVarsFromState, Jr as createLocalStateProvider, Kr as substituteEnvVarsFromStateAsync, Mn as createLocalInvokeCommand, Ot as createLocalStartServiceCommand, Pn as createLocalStartApiCommand, Qr as resolveCfnRegion, St as createLocalStartAlbCommand, T as formatTargetListing, Ur as substituteAgainstState, Wr as substituteAgainstStateAsync, Xr as rejectExplicitCfnStackWithMultipleStacks, Yr as isCfnFlagPresent, Zr as resolveCfnFallbackRegion, a as createLocalStudioCommand, ai as countTargets, ei as CfnLocalStateProvider, jt as createLocalRunTaskCommand, ni as resolveSsmParameters, oi as listTargets, qr as LocalStateSourceError, sn as createLocalInvokeAgentCoreCommand, ti as collectSsmParameterRefs, w as createLocalListCommand } from "./local-studio-D8cHeCcp.js";
1
+ import { d as getEmbedConfig, f as resetEmbedConfig, p as setEmbedConfig } from "./docker-cmd-SocNyC9q.js";
2
+ import { $r as resolveCfnStackName, D as createLocalStartAgentCoreCommand, F as createLocalStartCloudFrontCommand, Gr as substituteEnvVarsFromState, Jr as createLocalStateProvider, Kr as substituteEnvVarsFromStateAsync, Mn as createLocalInvokeCommand, Ot as createLocalStartServiceCommand, Pn as createLocalStartApiCommand, Qr as resolveCfnRegion, St as createLocalStartAlbCommand, T as formatTargetListing, Ur as substituteAgainstState, Wr as substituteAgainstStateAsync, Xr as rejectExplicitCfnStackWithMultipleStacks, Yr as isCfnFlagPresent, Zr as resolveCfnFallbackRegion, a as createLocalStudioCommand, ai as countTargets, ei as CfnLocalStateProvider, jt as createLocalRunTaskCommand, ni as resolveSsmParameters, oi as listTargets, qr as LocalStateSourceError, sn as createLocalInvokeAgentCoreCommand, ti as collectSsmParameterRefs, w as createLocalListCommand } from "./local-studio-BbLfdSy4.js";
3
3
 
4
4
  export { CfnLocalStateProvider, LocalStateSourceError, collectSsmParameterRefs, countTargets, createLocalInvokeAgentCoreCommand, createLocalInvokeCommand, createLocalListCommand, createLocalRunTaskCommand, createLocalStartAgentCoreCommand, createLocalStartAlbCommand, createLocalStartApiCommand, createLocalStartCloudFrontCommand, createLocalStartServiceCommand, createLocalStateProvider, createLocalStudioCommand, formatTargetListing, getEmbedConfig, isCfnFlagPresent, listTargets, rejectExplicitCfnStackWithMultipleStacks, resetEmbedConfig, resolveCfnFallbackRegion, resolveCfnRegion, resolveCfnStackName, resolveSsmParameters, setEmbedConfig, substituteAgainstState, substituteAgainstStateAsync, substituteEnvVarsFromState, substituteEnvVarsFromStateAsync };
@@ -568,6 +568,8 @@ interface StaticOriginResult {
568
568
  }
569
569
  declare function serveFromStaticOrigin(input: {
570
570
  localDirs: readonly string[];
571
+ containLinks?: boolean;
572
+ hideDotfilesIn?: readonly string[];
571
573
  uri: string;
572
574
  defaultRootObject?: string;
573
575
  customErrorResponses?: readonly ResolvedCustomErrorResponse[];
@@ -603,6 +605,8 @@ type ResolvedOrigin = {
603
605
  kind: 's3';
604
606
  originId: string;
605
607
  localDirs: string[];
608
+ hideDotfilesIn?: string[];
609
+ fromAssembly?: boolean;
606
610
  } | {
607
611
  kind: 's3-unresolved';
608
612
  originId: string;
@@ -1237,6 +1241,7 @@ declare function downloadAndExtractS3Bundle(location: S3BundleLocation, options?
1237
1241
  interface BuildContainerImageOptions {
1238
1242
  architecture: 'x86_64' | 'arm64';
1239
1243
  noBuild?: boolean;
1244
+ assetOutdir?: string;
1240
1245
  }
1241
1246
  declare function buildContainerImage(asset: {
1242
1247
  source: DockerImageAssetSource;
@@ -1 +1 @@
1
- {"version":3,"file":"internal.d.ts","names":[],"sources":["../src/local/file-watcher.ts","../src/local/source-change-classifier.ts","../src/local/agentcore-resolver.ts","../src/local/agentcore-sigv4-sign.ts","../src/local/agentcore-client.ts","../src/local/agentcore-mcp-client.ts","../src/local/agentcore-a2a-client.ts","../src/local/env-resolver.ts","../src/types/assets.ts","../src/local/container-pool.ts","../src/local/vtl-engine.ts","../src/local/cors-handler.ts","../src/local/authorizer-cache.ts","../src/local/cognito-jwt.ts","../src/local/sigv4-verify.ts","../src/local/http-server.ts","../src/local/ecs-service-resolver.ts","../src/local/cloud-map-registry.ts","../src/local/cloud-map-resolver.ts","../src/local/cloudfront-kvs.ts","../src/local/cloudfront-function-runtime.ts","../src/local/cloudfront-static-origin.ts","../src/local/cloudfront-resolver.ts","../src/local/cloudfront-s3-origin.ts","../src/local/front-door-tls.ts","../src/local/cloudfront-server.ts","../src/local/agentcore-serve-auth.ts","../src/local/agentcore-http-server.ts","../src/local/studio-store.ts","../src/local/studio-server.ts","../src/local/studio-request-relay.ts","../src/local/intrinsic-utils.ts","../src/local/intrinsic-lambda-arn.ts","../src/local/parameter-mapping.ts","../src/local/api-gateway-response.ts","../src/local/docker-inspect.ts","../src/local/route-matcher.ts","../src/local/api-gateway-event.ts","../src/local/lambda-authorizer.ts","../src/local/stage-resolver.ts","../src/local/runtime-image.ts","../src/local/websocket-event.ts","../src/local/websocket-mgmt-api.ts","../src/local/websocket-body.ts","../src/local/docker-version.ts","../src/local/api-server-grouping.ts","../src/local/layer-arn-materializer.ts","../src/local/credential-error.ts","../src/local/agentcore-code-build.ts","../src/local/agentcore-ws-bridge.ts","../src/local/agentcore-s3-bundle.ts","../src/local/docker-image-builder.ts","../src/local/image-pin-detector.ts","../src/local/target-picker.ts","../src/local/image-override-engine.ts","../src/local/container-log-streamer.ts","../src/local/cloudfront-edge-event.ts","../src/local/cloudfront-kvs-client.ts","../src/local/cloudfront-kvs-binding.ts","../src/local/cloudfront-distribution-config.ts","../src/local/cloudfront-lambda-origin.ts","../src/local/studio-custom-resource-filter.ts","../src/local/studio-ui.ts","../src/local/studio-reinvoke.ts"],"mappings":";;;;;;UAwBiB;EAEf,SAAS;;UAGM;EAEf;EAWA,WAAW;EAEX;EAOA;EASA,WAAW;EAWX,iBAAiB;;iBAkBH,kBAAkB,SAAS,qBAAqB;;;UCxC/C;EASf;EAMA;EASA;EAUA;;KAGU;EAEN;EAEA;;EAGA;EAEA;EAEA;;iBAqIU,qBACd,iCACA,KAAK,iCACJ;;;cCtNU;cAYA;cACA;cACA;cACA;UAmBI;EAEf,OAAO;EAEP;EAEA,UAAU;EAaV;EAOA,eAAe;EAOf,sBAAsB;EAMtB;EAEA;EAOA,gBAAgB;;UAaD;EACf;EACA;EACA;EACA;EACA,eAAe;;UAgBA;EACf;EACA;EACA;EACA;;UA0Be;EACf;EACA;EACA;EACA;IACE;IACA;IACA;IACA;;;cAIS,iCAAiC;EAC5C,YAAY;;iBAkBE,uBACd,gBACA,QAAQ,aACR,eAAe,yBACd;iBA+Ba,4BACd,gBACA,QAAQ,cACP;;;cCrNU;UAGI;EACf;EACA;EACA;;UAGe;EACf,aAAa;EACb;EACA;EACA;EAEA;EAQA,eAAe;EAEf;EAEA;EAEA;;UAQe;EAEf;EAEA;EAEA;EAEA;;iBAOoB,wBACpB,MAAM,iCACL,QAAQ;;;cCjDE;UAEI;EAEf;EAEA;EAMA;EAMA;;iBAcoB,q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;EAC5C;EACA;EACA,SAAS;IACP,QAAQ;;;iBCOI,6BAA6B,OAAO;UAMnC;EAMf;;iBAkBc,4BACd,QAAQ,qBACR,OAAM,qCACL;;;iBCgjFa,iBAAiB,kBAAkB;;;UC3oFlC;EAEf;EAEA;;UAIe;EAEf,OAAO;EAEP,YAAY;;iBA4BQ,SAAS,OAAO,eAAe,MAAM,eAAe,QAAQ"}
1
+ {"version":3,"file":"internal.d.ts","names":[],"sources":["../src/local/file-watcher.ts","../src/local/source-change-classifier.ts","../src/local/agentcore-resolver.ts","../src/local/agentcore-sigv4-sign.ts","../src/local/agentcore-client.ts","../src/local/agentcore-mcp-client.ts","../src/local/agentcore-a2a-client.ts","../src/local/env-resolver.ts","../src/types/assets.ts","../src/local/container-pool.ts","../src/local/vtl-engine.ts","../src/local/cors-handler.ts","../src/local/authorizer-cache.ts","../src/local/cognito-jwt.ts","../src/local/sigv4-verify.ts","../src/local/http-server.ts","../src/local/ecs-service-resolver.ts","../src/local/cloud-map-registry.ts","../src/local/cloud-map-resolver.ts","../src/local/cloudfront-kvs.ts","../src/local/cloudfront-function-runtime.ts","../src/local/cloudfront-static-origin.ts","../src/local/cloudfront-resolver.ts","../src/local/cloudfront-s3-origin.ts","../src/local/front-door-tls.ts","../src/local/cloudfront-server.ts","../src/local/agentcore-serve-auth.ts","../src/local/agentcore-http-server.ts","../src/local/studio-store.ts","../src/local/studio-server.ts","../src/local/studio-request-relay.ts","../src/local/intrinsic-utils.ts","../src/local/intrinsic-lambda-arn.ts","../src/local/parameter-mapping.ts","../src/local/api-gateway-response.ts","../src/local/docker-inspect.ts","../src/local/route-matcher.ts","../src/local/api-gateway-event.ts","../src/local/lambda-authorizer.ts","../src/local/stage-resolver.ts","../src/local/runtime-image.ts","../src/local/websocket-event.ts","../src/local/websocket-mgmt-api.ts","../src/local/websocket-body.ts","../src/local/docker-version.ts","../src/local/api-server-grouping.ts","../src/local/layer-arn-materializer.ts","../src/local/credential-error.ts","../src/local/agentcore-code-build.ts","../src/local/agentcore-ws-bridge.ts","../src/local/agentcore-s3-bundle.ts","../src/local/docker-image-builder.ts","../src/local/image-pin-detector.ts","../src/local/target-picker.ts","../src/local/image-override-engine.ts","../src/local/container-log-streamer.ts","../src/local/cloudfront-edge-event.ts","../src/local/cloudfront-kvs-client.ts","../src/local/cloudfront-kvs-binding.ts","../src/local/cloudfront-distribution-config.ts","../src/local/cloudfront-lambda-origin.ts","../src/local/studio-custom-resource-filter.ts","../src/local/studio-ui.ts","../src/local/studio-reinvoke.ts"],"mappings":";;;;;;UAwBiB;EAEf,SAAS;;UAGM;EAEf;EAWA,WAAW;EAEX;EAOA;EASA,WAAW;EAWX,iBAAiB;;iBAkBH,kBAAkB,SAAS,qBAAqB;;;UCxC/C;EASf;EAMA;EASA;EAUA;;KAGU;EAEN;EAEA;;EAGA;EAEA;EAEA;;iBAqIU,qBACd,iCACA,KAAK,iCACJ;;;cCtNU;cAYA;cACA;cACA;cACA;UAmBI;EAEf,OAAO;EAEP;EAEA,UAAU;EAaV;EAOA,eAAe;EAOf,sBAAsB;EAMtB;EAEA;EAOA,gBAAgB;;UAaD;EACf;EACA;EACA;EACA;EACA,eAAe;;UAgBA;EACf;EACA;EACA;EACA;;UA0Be;EACf;EACA;EACA;EACA;IACE;IACA;IACA;IACA;;;cAIS,iCAAiC;EAC5C,YAAY;;iBAkBE,uBACd,gBACA,QAAQ,aACR,eAAe,yBACd;iBA+Ba,4BACd,gBACA,QAAQ,cACP;;;cCrNU;UAGI;EACf;EACA;EACA;;UAGe;EACf,aAAa;EACb;EACA;EACA;EAEA;EAQA,eAAe;EAEf;EAEA;EAEA;;UAQe;EAEf;EAEA;EAEA;EAEA;;iBAOoB,wBACpB,MAAM,iCACL,QAAQ;;;cCjDE;UAEI;EAEf;EAEA;EAMA;EAMA;;iBAcoB,qBACpB,cACA,cACA,qBACC;iBA0EmB,0BACpB,cACA,cACA,cACA,qBACC;UAoDc;EAEf;EAEA;EAMA;EAQA,oBAAoB;EASpB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BAkBc,4BACd,QAAQ,qBACR,OAAM,qCACL;;;iBCgjFa,iBAAiB,kBAAkB;;;UC3oFlC;EAEf;EAEA;;UAIe;EAEf,OAAO;EAEP,YAAY;;iBA4BQ,SAAS,OAAO,eAAe,MAAM,eAAe,QAAQ"}
package/dist/internal.js CHANGED
@@ -1,3 +1,3 @@
1
- import { $ as applyEdgeResponseResult, $n as buildJwksUrlFromIssuer, $t as buildCloudMapIndex, A as startAgentCoreHttpServer, Ai as describeCredentialLoadFailure, An as classifySourceChange, Ar as ConnectionRegistry, At as addRunTaskSpecificOptions, B as idFromArn, Bn as buildStageMap, Br as resolveRuntimeFileExtension, Bt as resolveEcsAssumeRoleOption, C as addListSpecificOptions, Ci as resolveAgentCoreTarget, Cn as waitForAgentCorePing, Cr as tryParseStatus, Ct as parseLbPortOverrides, Di as tryResolveImageFnJoin, Dn as computeCodeImageTag, Dr as probeHostGatewaySupport, Dt as addStartServiceSpecificOptions, E as addStartAgentCoreSpecificOptions, Ei as substituteImagePlaceholders, En as buildAgentCoreCodeImage, Er as HOST_GATEWAY_MIN_VERSION, Et as resolveAlbFrontDoor, Fn as createWatchPredicates, Fr as buildDisconnectEvent, Ft as addImageOverrideOptions, G as classifyS3Error, Gn as filterRoutesByApiIdentifiers, Gt as enforceImageOverrideOrphans, H as createDeployedKvsDataSource, Hn as resolveEnvVars, Hr as EcsTaskResolutionError, Ht as runEcsServiceEmulator, I as normalizeKvsFileKeys, In as resolveApiTargetSubset, Ir as buildMessageEvent, It as buildEcsImageResolutionContext, J as startCloudFrontServer, Jn as startApiServer, Jt as resolveImageOverrides, K as createS3OriginReader, Kn as groupRoutesByServer, Kt as mergeForService, L as parseKvsFileOverrides, Ln as createAuthorizerCache, Lr as architectureToPlatform, Lt as ecsClusterOption, M as startAgentCoreWsBridge, Mi as resolveProfileCredentials, Mr as handleConnectionsRequest, Mt as MAX_TASKS_SUBNET_RANGE_CAP, N as LocalStartCloudFrontError, Ni as buildProxyClientConfig, Nn as addStartApiSpecificOptions, Nr as parseConnectionsPath, Nt as addCommonEcsServiceOptions, O as buildAgentCoreServeAuthCheck, Oi as LocalInvokeBuildError, On as renderCodeDockerfile, Or as resolveHostGatewayExtraHosts, P as addStartCloudFrontSpecificOptions, Pi as isProxyEnvConfigured, Pr as buildConnectEvent, Pt as addEcsAssumeRoleOptions, Q as applyEdgeRequestResult, Qn as buildCognitoJwksUrl, Qt as listPinnedTargets, R as parseOriginOverrides, Rn as createFileWatcher, Rr as buildContainerImage, Rt as parseMaxTasks, S as StudioEventBus, Si as pickAgentCoreCandidateStack, Sn as waitForAgentCoreHttpReady, Sr as selectIntegrationResponse, Ti as formatStateRemedy, Tn as SUPPORTED_CODE_RUNTIMES, Tr as HOST_DOCKER_INTERNAL_GATEWAY, Tt as isApplicationLoadBalancer, U as resolveDeployedKvsArnByName, Un as availableApiIdentifiers, Ut as ImageOverrideError, V as resolveKvsModulesForDistribution, Vn as materializeLayerFromArn, Vr as resolveRuntimeImage, Vt as resolveSharedSidecarCredentials, W as resolveDeployedOriginBucket, Wn as filterRoutesByApiIdentifier, Wt as buildImageOverrideTag, X as serveFromStaticOrigin, Xn as resolveServiceIntegrationParameters, Xt as describePinnedImageUri, Y as resolveErrorResponseCandidates, Yn as resolveSelectionExpression, Yt as runImageOverrideBuilds, Z as serveLambdaUrlOrigin, Zn as defaultCredentialsLoader, Zt as isLocalCdkAssetImage, _ as filterStudioTargetGroups, _i as AGENTCORE_AGUI_PROTOCOL, _n as parseSseForJsonRpc, _r as applyAuthorizerOverlay, _t as createCloudFrontModule, an as attachContainerLogStreamer, ar as computeRequestIdentityHash, at as describeS3OriginDomain, b as renderStudioHtml, bi as AGENTCORE_RUNTIME_TYPE, bn as AGENTCORE_SESSION_ID_HEADER, br as evaluateResponseParameters, bt as addAlbSpecificOptions, c as startStudioProxy, ci as discoverWebSocketApis, cn as bridgeAgentCoreWs, cr as invokeTokenAuthorizer, ct as pickFunctionUrlLogicalIdFromOrigin, d as createStudioDispatcher, di as parseSelectionExpressionPath, dn as A2A_PATH, dr as buildCorsConfigByApiId, dt as pickTargetFunctionLogicalId, en as CloudMapRegistry, er as createJwksCache, et as buildEdgeRequestEvent, f as filterStudioCustomResources, fi as webSocketApiMatchesIdentifier, fn as a2aInvokeOnce, fr as buildCorsConfigFromCloudFrontChain, ft as resolveCloudFrontDistribution, g as annotatePinnedEcsTargets, gi as AGENTCORE_A2A_PROTOCOL, gn as mcpInvokeOnce, gr as translateLambdaResponse, gt as stripCloudFrontImport, h as annotateEcsTaskPinnedTargets, hi as resolveLambdaArnIntrinsic, hn as MCP_PROTOCOL_VERSION, hr as matchRoute, ht as runViewerResponse, i as coerceStopRequest, ii as resolveSingleTarget, in as getContainerNetworkIp, ir as buildMethodArn, it as CLOUDFRONT_DISTRIBUTION_TYPE, j as attachAgentCoreWsBridge, ji as buildStsClientConfig, jn as addInvokeSpecificOptions, jr as buildMgmtEndpointEnvUrl, k as selectServeInboundAuth, ki as describeAwsFailureForWarn, kn as toCmdArgv, kr as bufferToBody, kt as serviceStrategy, l as relayServeRequest, li as discoverWebSocketApisOrThrow, ln as invokeAgentCoreWs, lr as attachAuthorizers, lt as pickKvsLogicalIdFromArn, m as annotateAlbPinnedBackingServices, mi as pickRefLogicalId, mn as MCP_PATH, mr as matchPreflight, mt as runViewerRequest, n as coerceRunRequest, nn as SOFT_RELOAD_COMPLETION_LOG_SUFFIX, nr as verifyJwtAuthorizer, nt as edgeHeadersToHttp, o as resolveServeBaseUrl, on as addInvokeAgentCoreSpecificOptions, or as evaluateCachedLambdaPolicy, ot as extractKvsAssociations, p as isCustomResourceLambdaTarget, pi as discoverRoutes, pn as MCP_CONTAINER_PORT, pr as isFunctionUrlOacFronted, pt as compileCloudFrontFunction, q as matchBehavior, qn as readMtlsMaterialsFromDisk, qt as parseImageOverrideFlags, r as coerceServeRequest, ri as resolveWatchConfig, rn as setShadowReadyTimeoutMs, rr as verifyJwtViaDiscovery, rt as httpHeadersToEdge, s as createStudioServeManager, si as availableWebSocketApiIdentifiers, sr as invokeRequestAuthorizer, st as isCloudFrontDistribution, t as addStudioSpecificOptions, tn as DEFAULT_SHADOW_READY_TIMEOUT_MS, tr as verifyCognitoJwt, tt as buildEdgeResponseEvent, u as reinvoke, ui as filterWebSocketApisByIdentifiers, un as A2A_CONTAINER_PORT, ur as applyCorsResponseHeaders, ut as pickLambdaEdgeFunctionLogicalId, v as startStudioServer, vi as AGENTCORE_HTTP_PROTOCOL, vn as AGENTCORE_SIGV4_SERVICE, vr as buildHttpApiV2Event, vt as createLocalFileKvsDataSource, wi as derivePseudoParametersFromRegion, wn as downloadAndExtractS3Bundle, wr as VtlEvaluationError, wt as resolveAlbTarget, x as createStudioStore, xi as AgentCoreResolutionError, xn as invokeAgentCore, xr as pickResponseTemplate, xt as albStrategy, y as toStudioTargetGroups, yi as AGENTCORE_MCP_PROTOCOL, yn as signAgentCoreInvocation, yr as buildRestV1Event, yt as createUnboundCloudFrontModule, z as resolveCloudFrontTarget, zn as attachStageContext, zr as resolveRuntimeCodeMountPath, zt as parseRestartPolicy } from "./local-studio-D8cHeCcp.js";
1
+ import { $ as applyEdgeResponseResult, $n as buildJwksUrlFromIssuer, $t as buildCloudMapIndex, A as startAgentCoreHttpServer, Ai as describeCredentialLoadFailure, An as classifySourceChange, Ar as ConnectionRegistry, At as addRunTaskSpecificOptions, B as idFromArn, Bn as buildStageMap, Br as resolveRuntimeFileExtension, Bt as resolveEcsAssumeRoleOption, C as addListSpecificOptions, Ci as resolveAgentCoreTarget, Cn as waitForAgentCorePing, Cr as tryParseStatus, Ct as parseLbPortOverrides, Di as tryResolveImageFnJoin, Dn as computeCodeImageTag, Dr as probeHostGatewaySupport, Dt as addStartServiceSpecificOptions, E as addStartAgentCoreSpecificOptions, Ei as substituteImagePlaceholders, En as buildAgentCoreCodeImage, Er as HOST_GATEWAY_MIN_VERSION, Et as resolveAlbFrontDoor, Fn as createWatchPredicates, Fr as buildDisconnectEvent, Ft as addImageOverrideOptions, G as classifyS3Error, Gn as filterRoutesByApiIdentifiers, Gt as enforceImageOverrideOrphans, H as createDeployedKvsDataSource, Hn as resolveEnvVars, Hr as EcsTaskResolutionError, Ht as runEcsServiceEmulator, I as normalizeKvsFileKeys, In as resolveApiTargetSubset, Ir as buildMessageEvent, It as buildEcsImageResolutionContext, J as startCloudFrontServer, Jn as startApiServer, Jt as resolveImageOverrides, K as createS3OriginReader, Kn as groupRoutesByServer, Kt as mergeForService, L as parseKvsFileOverrides, Ln as createAuthorizerCache, Lr as architectureToPlatform, Lt as ecsClusterOption, M as startAgentCoreWsBridge, Mi as resolveProfileCredentials, Mr as handleConnectionsRequest, Mt as MAX_TASKS_SUBNET_RANGE_CAP, N as LocalStartCloudFrontError, Ni as buildProxyClientConfig, Nn as addStartApiSpecificOptions, Nr as parseConnectionsPath, Nt as addCommonEcsServiceOptions, O as buildAgentCoreServeAuthCheck, Oi as LocalInvokeBuildError, On as renderCodeDockerfile, Or as resolveHostGatewayExtraHosts, P as addStartCloudFrontSpecificOptions, Pi as isProxyEnvConfigured, Pr as buildConnectEvent, Pt as addEcsAssumeRoleOptions, Q as applyEdgeRequestResult, Qn as buildCognitoJwksUrl, Qt as listPinnedTargets, R as parseOriginOverrides, Rn as createFileWatcher, Rr as buildContainerImage, Rt as parseMaxTasks, S as StudioEventBus, Si as pickAgentCoreCandidateStack, Sn as waitForAgentCoreHttpReady, Sr as selectIntegrationResponse, Ti as formatStateRemedy, Tn as SUPPORTED_CODE_RUNTIMES, Tr as HOST_DOCKER_INTERNAL_GATEWAY, Tt as isApplicationLoadBalancer, U as resolveDeployedKvsArnByName, Un as availableApiIdentifiers, Ut as ImageOverrideError, V as resolveKvsModulesForDistribution, Vn as materializeLayerFromArn, Vr as resolveRuntimeImage, Vt as resolveSharedSidecarCredentials, W as resolveDeployedOriginBucket, Wn as filterRoutesByApiIdentifier, Wt as buildImageOverrideTag, X as serveFromStaticOrigin, Xn as resolveServiceIntegrationParameters, Xt as describePinnedImageUri, Y as resolveErrorResponseCandidates, Yn as resolveSelectionExpression, Yt as runImageOverrideBuilds, Z as serveLambdaUrlOrigin, Zn as defaultCredentialsLoader, Zt as isLocalCdkAssetImage, _ as filterStudioTargetGroups, _i as AGENTCORE_AGUI_PROTOCOL, _n as parseSseForJsonRpc, _r as applyAuthorizerOverlay, _t as createCloudFrontModule, an as attachContainerLogStreamer, ar as computeRequestIdentityHash, at as describeS3OriginDomain, b as renderStudioHtml, bi as AGENTCORE_RUNTIME_TYPE, bn as AGENTCORE_SESSION_ID_HEADER, br as evaluateResponseParameters, bt as addAlbSpecificOptions, c as startStudioProxy, ci as discoverWebSocketApis, cn as bridgeAgentCoreWs, cr as invokeTokenAuthorizer, ct as pickFunctionUrlLogicalIdFromOrigin, d as createStudioDispatcher, di as parseSelectionExpressionPath, dn as A2A_PATH, dr as buildCorsConfigByApiId, dt as pickTargetFunctionLogicalId, en as CloudMapRegistry, er as createJwksCache, et as buildEdgeRequestEvent, f as filterStudioCustomResources, fi as webSocketApiMatchesIdentifier, fn as a2aInvokeOnce, fr as buildCorsConfigFromCloudFrontChain, ft as resolveCloudFrontDistribution, g as annotatePinnedEcsTargets, gi as AGENTCORE_A2A_PROTOCOL, gn as mcpInvokeOnce, gr as translateLambdaResponse, gt as stripCloudFrontImport, h as annotateEcsTaskPinnedTargets, hi as resolveLambdaArnIntrinsic, hn as MCP_PROTOCOL_VERSION, hr as matchRoute, ht as runViewerResponse, i as coerceStopRequest, ii as resolveSingleTarget, in as getContainerNetworkIp, ir as buildMethodArn, it as CLOUDFRONT_DISTRIBUTION_TYPE, j as attachAgentCoreWsBridge, ji as buildStsClientConfig, jn as addInvokeSpecificOptions, jr as buildMgmtEndpointEnvUrl, k as selectServeInboundAuth, ki as describeAwsFailureForWarn, kn as toCmdArgv, kr as bufferToBody, kt as serviceStrategy, l as relayServeRequest, li as discoverWebSocketApisOrThrow, ln as invokeAgentCoreWs, lr as attachAuthorizers, lt as pickKvsLogicalIdFromArn, m as annotateAlbPinnedBackingServices, mi as pickRefLogicalId, mn as MCP_PATH, mr as matchPreflight, mt as runViewerRequest, n as coerceRunRequest, nn as SOFT_RELOAD_COMPLETION_LOG_SUFFIX, nr as verifyJwtAuthorizer, nt as edgeHeadersToHttp, o as resolveServeBaseUrl, on as addInvokeAgentCoreSpecificOptions, or as evaluateCachedLambdaPolicy, ot as extractKvsAssociations, p as isCustomResourceLambdaTarget, pi as discoverRoutes, pn as MCP_CONTAINER_PORT, pr as isFunctionUrlOacFronted, pt as compileCloudFrontFunction, q as matchBehavior, qn as readMtlsMaterialsFromDisk, qt as parseImageOverrideFlags, r as coerceServeRequest, ri as resolveWatchConfig, rn as setShadowReadyTimeoutMs, rr as verifyJwtViaDiscovery, rt as httpHeadersToEdge, s as createStudioServeManager, si as availableWebSocketApiIdentifiers, sr as invokeRequestAuthorizer, st as isCloudFrontDistribution, t as addStudioSpecificOptions, tn as DEFAULT_SHADOW_READY_TIMEOUT_MS, tr as verifyCognitoJwt, tt as buildEdgeResponseEvent, u as reinvoke, ui as filterWebSocketApisByIdentifiers, un as A2A_CONTAINER_PORT, ur as applyCorsResponseHeaders, ut as pickLambdaEdgeFunctionLogicalId, v as startStudioServer, vi as AGENTCORE_HTTP_PROTOCOL, vn as AGENTCORE_SIGV4_SERVICE, vr as buildHttpApiV2Event, vt as createLocalFileKvsDataSource, wi as derivePseudoParametersFromRegion, wn as downloadAndExtractS3Bundle, wr as VtlEvaluationError, wt as resolveAlbTarget, x as createStudioStore, xi as AgentCoreResolutionError, xn as invokeAgentCore, xr as pickResponseTemplate, xt as albStrategy, y as toStudioTargetGroups, yi as AGENTCORE_MCP_PROTOCOL, yn as signAgentCoreInvocation, yr as buildRestV1Event, yt as createUnboundCloudFrontModule, z as resolveCloudFrontTarget, zn as attachStageContext, zr as resolveRuntimeCodeMountPath, zt as parseRestartPolicy } from "./local-studio-BbLfdSy4.js";
2
2
 
3
3
  export { A2A_CONTAINER_PORT, A2A_PATH, AGENTCORE_A2A_PROTOCOL, AGENTCORE_AGUI_PROTOCOL, AGENTCORE_HTTP_PROTOCOL, AGENTCORE_MCP_PROTOCOL, AGENTCORE_RUNTIME_TYPE, AGENTCORE_SESSION_ID_HEADER, AGENTCORE_SIGV4_SERVICE, AgentCoreResolutionError, CLOUDFRONT_DISTRIBUTION_TYPE, CloudMapRegistry, ConnectionRegistry, DEFAULT_SHADOW_READY_TIMEOUT_MS, EcsTaskResolutionError, HOST_DOCKER_INTERNAL_GATEWAY, HOST_GATEWAY_MIN_VERSION, ImageOverrideError, LocalInvokeBuildError, LocalStartCloudFrontError, MAX_TASKS_SUBNET_RANGE_CAP, MCP_CONTAINER_PORT, MCP_PATH, MCP_PROTOCOL_VERSION, SOFT_RELOAD_COMPLETION_LOG_SUFFIX, SUPPORTED_CODE_RUNTIMES, StudioEventBus, VtlEvaluationError, a2aInvokeOnce, addAlbSpecificOptions, addCommonEcsServiceOptions, addEcsAssumeRoleOptions, addImageOverrideOptions, addInvokeAgentCoreSpecificOptions, addInvokeSpecificOptions, addListSpecificOptions, addRunTaskSpecificOptions, addStartAgentCoreSpecificOptions, addStartApiSpecificOptions, addStartCloudFrontSpecificOptions, addStartServiceSpecificOptions, addStudioSpecificOptions, albStrategy, annotateAlbPinnedBackingServices, annotateEcsTaskPinnedTargets, annotatePinnedEcsTargets, applyAuthorizerOverlay, applyCorsResponseHeaders, applyEdgeRequestResult, applyEdgeResponseResult, architectureToPlatform, attachAgentCoreWsBridge, attachAuthorizers, attachContainerLogStreamer, attachStageContext, availableApiIdentifiers, availableWebSocketApiIdentifiers, bridgeAgentCoreWs, bufferToBody, buildAgentCoreCodeImage, buildAgentCoreServeAuthCheck, buildCloudMapIndex, buildCognitoJwksUrl, buildConnectEvent, buildContainerImage, buildCorsConfigByApiId, buildCorsConfigFromCloudFrontChain, buildDisconnectEvent, buildEcsImageResolutionContext, buildEdgeRequestEvent, buildEdgeResponseEvent, buildHttpApiV2Event, buildImageOverrideTag, buildJwksUrlFromIssuer, buildMessageEvent, buildMethodArn, buildMgmtEndpointEnvUrl, buildProxyClientConfig, buildRestV1Event, buildStageMap, buildStsClientConfig, classifyS3Error, classifySourceChange, coerceRunRequest, coerceServeRequest, coerceStopRequest, compileCloudFrontFunction, computeCodeImageTag, computeRequestIdentityHash, createAuthorizerCache, createCloudFrontModule, createDeployedKvsDataSource, createFileWatcher, createJwksCache, createLocalFileKvsDataSource, createS3OriginReader, createStudioDispatcher, createStudioServeManager, createStudioStore, createUnboundCloudFrontModule, createWatchPredicates, defaultCredentialsLoader, derivePseudoParametersFromRegion, describeAwsFailureForWarn, describeCredentialLoadFailure, describePinnedImageUri, describeS3OriginDomain, discoverRoutes, discoverWebSocketApis, discoverWebSocketApisOrThrow, downloadAndExtractS3Bundle, ecsClusterOption, edgeHeadersToHttp, enforceImageOverrideOrphans, evaluateCachedLambdaPolicy, evaluateResponseParameters, extractKvsAssociations, filterRoutesByApiIdentifier, filterRoutesByApiIdentifiers, filterStudioCustomResources, filterStudioTargetGroups, filterWebSocketApisByIdentifiers, formatStateRemedy, getContainerNetworkIp, groupRoutesByServer, handleConnectionsRequest, httpHeadersToEdge, idFromArn, invokeAgentCore, invokeAgentCoreWs, invokeRequestAuthorizer, invokeTokenAuthorizer, isApplicationLoadBalancer, isCloudFrontDistribution, isCustomResourceLambdaTarget, isFunctionUrlOacFronted, isLocalCdkAssetImage, isProxyEnvConfigured, listPinnedTargets, matchBehavior, matchPreflight, matchRoute, materializeLayerFromArn, mcpInvokeOnce, mergeForService, normalizeKvsFileKeys, parseConnectionsPath, parseImageOverrideFlags, parseKvsFileOverrides, parseLbPortOverrides, parseMaxTasks, parseOriginOverrides, parseRestartPolicy, parseSelectionExpressionPath, parseSseForJsonRpc, pickAgentCoreCandidateStack, pickFunctionUrlLogicalIdFromOrigin, pickKvsLogicalIdFromArn, pickLambdaEdgeFunctionLogicalId, pickRefLogicalId, pickResponseTemplate, pickTargetFunctionLogicalId, probeHostGatewaySupport, readMtlsMaterialsFromDisk, reinvoke, relayServeRequest, renderCodeDockerfile, renderStudioHtml, resolveAgentCoreTarget, resolveAlbFrontDoor, resolveAlbTarget, resolveApiTargetSubset, resolveCloudFrontDistribution, resolveCloudFrontTarget, resolveDeployedKvsArnByName, resolveDeployedOriginBucket, resolveEcsAssumeRoleOption, resolveEnvVars, resolveErrorResponseCandidates, resolveHostGatewayExtraHosts, resolveImageOverrides, resolveKvsModulesForDistribution, resolveLambdaArnIntrinsic, resolveProfileCredentials, resolveRuntimeCodeMountPath, resolveRuntimeFileExtension, resolveRuntimeImage, resolveSelectionExpression, resolveServeBaseUrl, resolveServiceIntegrationParameters, resolveSharedSidecarCredentials, resolveSingleTarget, resolveWatchConfig, runEcsServiceEmulator, runImageOverrideBuilds, runViewerRequest, runViewerResponse, selectIntegrationResponse, selectServeInboundAuth, serveFromStaticOrigin, serveLambdaUrlOrigin, serviceStrategy, setShadowReadyTimeoutMs, signAgentCoreInvocation, startAgentCoreHttpServer, startAgentCoreWsBridge, startApiServer, startCloudFrontServer, startStudioProxy, startStudioServer, stripCloudFrontImport, substituteImagePlaceholders, toCmdArgv, toStudioTargetGroups, translateLambdaResponse, tryParseStatus, tryResolveImageFnJoin, verifyCognitoJwt, verifyJwtAuthorizer, verifyJwtViaDiscovery, waitForAgentCoreHttpReady, waitForAgentCorePing, webSocketApiMatchesIdentifier };