cdk-local 0.141.0 → 0.143.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/dist/cli.js +2 -2
- package/dist/{docker-cmd-DQyeV02S.js → docker-cmd-C6h4cSxa.js} +8 -5
- package/dist/docker-cmd-C6h4cSxa.js.map +1 -0
- package/dist/index.js +2 -2
- package/dist/internal.d.ts.map +1 -1
- package/dist/internal.js +1 -1
- package/dist/{local-studio-fdztI6b8.js → local-studio-BIpTVWYj.js} +71 -13
- package/dist/{local-studio-fdztI6b8.js.map → local-studio-BIpTVWYj.js.map} +1 -1
- package/dist/local-studio-C1YGBilh.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/docker-cmd-DQyeV02S.js.map +0 -1
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-
|
|
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-BIpTVWYj.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.
|
|
7
|
+
program.name("cdkl").description("Run AWS CDK stacks locally with Docker.").version("0.143.0");
|
|
8
8
|
program.addCommand(createLocalInvokeCommand());
|
|
9
9
|
program.addCommand(createLocalInvokeAgentCoreCommand());
|
|
10
10
|
program.addCommand(createLocalStartApiCommand());
|
|
@@ -147,10 +147,13 @@ var ConsoleLogger = class {
|
|
|
147
147
|
}
|
|
148
148
|
return `${timestamp} ${levelStr} ${message}${formattedArgs}`;
|
|
149
149
|
}
|
|
150
|
-
if (
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
150
|
+
if (level === "error") {
|
|
151
|
+
const line = `ERROR: ${message}${formattedArgs}`;
|
|
152
|
+
return this.useColors ? `${colors.red}${line}${colors.reset}` : line;
|
|
153
|
+
}
|
|
154
|
+
if (level === "warn") {
|
|
155
|
+
const line = `WARN: ${message}${formattedArgs}`;
|
|
156
|
+
return this.useColors ? `${colors.yellow}${line}${colors.reset}` : line;
|
|
154
157
|
}
|
|
155
158
|
return `${message}${formattedArgs}`;
|
|
156
159
|
}
|
|
@@ -470,4 +473,4 @@ function mergeEnv(overrides) {
|
|
|
470
473
|
|
|
471
474
|
//#endregion
|
|
472
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 };
|
|
473
|
-
//# sourceMappingURL=docker-cmd-
|
|
476
|
+
//# sourceMappingURL=docker-cmd-C6h4cSxa.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"docker-cmd-C6h4cSxa.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\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":";;;;;;;;;;;;;;;;;;;;;AAqFA,MAAM,WAAgC;CACpC,SAAS;CACT,YAAY;CACZ,aAAa;CACb,oBAAoB;CACpB,kBAAkB;CAClB,WAAW;CACX,sBAAsB;CACtB,cAAc;CACf;AAED,IAAI,UAA+B;;;;;;;AAQnC,SAAgB,eAAe,QAAoC;CACjE,UAAU;EACR,SAAS,QAAQ,WAAW,SAAS;EACrC,YAAY,QAAQ,cAAc,SAAS;EAC3C,aAAa,QAAQ,eAAe,SAAS;EAC7C,oBAAoB,QAAQ,sBAAsB,SAAS;EAC3D,kBAAkB,QAAQ,oBAAoB,SAAS;EACvD,WAAW,QAAQ,aAAa,SAAS;EACzC,sBAAsB,QAAQ,wBAAwB,SAAS;EAC/D,cAAc,QAAQ,gBAAgB,SAAS;EACh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AC;EACF,MAAM,KAAK,UAAU,QAA+B;GAClD,IAAI,IAAI,SAAS,UAAU;IACzB,MAAM,gBAAgB,QAAQ,IAAI,kBAAkB,OAAO,QAAQ;IACnE,uBACE,IAAI,MACF,gBACI,+BAA+B,IAAI,wCACrB,IAAI,mDAClB,+BAA+B,IAAI,iHAExC,CACF;UAED,uBAAO,IAAI,MAAM,GAAG,IAAI,WAAW,IAAI,UAAU,CAAC;IAEpD;EACF,MAAM,KAAK,UAAU,SAAS;GAC5B,IAAI,SAAS,GACX,SAAS;QAET,uBAAO,IAAI,MAAM,GAAG,IAAI,oBAAoB,OAAO,CAAC;IAEtD;GACF;;;;;;;;;;;;;;;;;;;;;;;;AAyBJ,SAAgB,uBAAuB,QAAgB,UAA0B;CAC/E,MAAM,UAAU,OAAO,MAAM;CAI7B,IAFE,QAAQ,SAAS,iCAAiC,IAClD,QAAQ,SAAS,2BAA2B,EAE5C,OACE,mRAEoE,gBAAgB,CAAC,YAAY,kEAC/D,SAAS,8CAA8C,gBAAgB,CAAC,YAAY,6MAG3F;CAG/B,OAAO;;AAGT,SAAS,SAAS,WAAkE;CAClF,MAAM,SAA4B,EAAE,GAAG,QAAQ,KAAK;CACpD,KAAK,MAAM,CAAC,GAAG,MAAM,OAAO,QAAQ,UAAU,EAC5C,IAAI,MAAM,QACR,OAAO,OAAO;MAEd,OAAO,KAAK;CAGhB,OAAO"}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as setEmbedConfig, l as getEmbedConfig, u as resetEmbedConfig } from "./docker-cmd-
|
|
2
|
-
import { $r as collectSsmParameterRefs, D as createLocalStartAgentCoreCommand, F as createLocalStartCloudFrontCommand, Gr as LocalStateSourceError, Hr as substituteAgainstStateAsync, Jr as rejectExplicitCfnStackWithMultipleStacks, Kr as createLocalStateProvider, Mn as createLocalInvokeCommand, Ot as createLocalStartServiceCommand, Pn as createLocalStartApiCommand, Qr as CfnLocalStateProvider, St as createLocalStartAlbCommand, T as formatTargetListing, Ur as substituteEnvVarsFromState, Vr as substituteAgainstState, Wr as substituteEnvVarsFromStateAsync, Xr as resolveCfnRegion, Yr as resolveCfnFallbackRegion, Zr as resolveCfnStackName, a as createLocalStudioCommand, ei as resolveSsmParameters, ii as listTargets, jt as createLocalRunTaskCommand, qr as isCfnFlagPresent, ri as countTargets, sn as createLocalInvokeAgentCoreCommand, w as createLocalListCommand } from "./local-studio-
|
|
1
|
+
import { d as setEmbedConfig, l as getEmbedConfig, u as resetEmbedConfig } from "./docker-cmd-C6h4cSxa.js";
|
|
2
|
+
import { $r as collectSsmParameterRefs, D as createLocalStartAgentCoreCommand, F as createLocalStartCloudFrontCommand, Gr as LocalStateSourceError, Hr as substituteAgainstStateAsync, Jr as rejectExplicitCfnStackWithMultipleStacks, Kr as createLocalStateProvider, Mn as createLocalInvokeCommand, Ot as createLocalStartServiceCommand, Pn as createLocalStartApiCommand, Qr as CfnLocalStateProvider, St as createLocalStartAlbCommand, T as formatTargetListing, Ur as substituteEnvVarsFromState, Vr as substituteAgainstState, Wr as substituteEnvVarsFromStateAsync, Xr as resolveCfnRegion, Yr as resolveCfnFallbackRegion, Zr as resolveCfnStackName, a as createLocalStudioCommand, ei as resolveSsmParameters, ii as listTargets, jt as createLocalRunTaskCommand, qr as isCfnFlagPresent, ri as countTargets, sn as createLocalInvokeAgentCoreCommand, w as createLocalListCommand } from "./local-studio-BIpTVWYj.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 };
|
package/dist/internal.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.ts","names":[],"sources":["../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/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":";;;;iBASgB,gBAAA,CAAiB,KAAA;;;KCmCrB,uBAAA;EACN,IAAA;EAAkB,SAAA;AAAA;EAClB,IAAA;EAAqB,MAAA;AAAA;AAAA,iBAuBX,yBAAA,CAA0B,KAAA,YAAiB,uBAAA;;;UCpB1C,uBAAA;EAEf,OAAA,EAAS,QAAA,CAAS,MAAA;EAElB,WAAA,EAAa,QAAA,CAAS,MAAA;EAEtB,cAAA,EAAgB,QAAA,CAAS,MAAA;EAEzB,WAAA;EAEA,IAAA;EAEA,OAAA,EAAS,QAAA,CAAS,MAAA;EAElB,cAAA,EAAgB,QAAA,C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AA;EACA,iBAAA;EACA,OAAA,EAAS,sBAAA;AAAA,IACP,OAAA,CAAQ,qBAAA;;;iBCOI,4BAAA,CAA6B,KAAA,EAAO,YAAA;AAAA,UAMnC,kCAAA;EAMf,OAAA;AAAA;AAAA,iBAkBc,2BAAA,CACd,MAAA,EAAQ,iBAAA,IACR,IAAA,GAAM,kCAAA,GACL,iBAAA;;;iBC87Ea,gBAAA,CAAiB,QAAA,UAAkB,OAAA;;;UCzhFlC,aAAA;EAEf,YAAA;EAEA,OAAA;AAAA;AAAA,UAIe,YAAA;EAEf,KAAA,EAAO,WAAA;EAEP,UAAA,EAAY,gBAAA;AAAA;AAAA,iBA4BQ,QAAA,CAAS,KAAA,EAAO,aAAA,EAAe,IAAA,EAAM,YAAA,GAAe,OAAA,CAAQ,eAAA"}
|
|
1
|
+
{"version":3,"file":"internal.d.ts","names":[],"sources":["../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/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":";;;;iBASgB,gBAAA,CAAiB,KAAA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BAAA,CACpB,OAAA,EAAS,kCAAA,GACR,OAAA;;;UCxBc,sBAAA;EACf,MAAA;EAEA,GAAA;EAEA,WAAA;EACA,OAAA,EAAS,mBAAA;EACT,IAAA,EAAM,MAAA;EACN,QAAA;AAAA;AAAA,UAIe,qBAAA;EACf,UAAA;EAEA,OAAA,EAAS,MAAA;EAET,OAAA;EACA,IAAA,EAAM,MAAA;AAAA;AAAA,iBAQc,oBAAA,CAAqB,IAAA;EACzC,MAAA,GAAS,KAAA,EAAO,MAAA,sBAA4B,OAAA;EAC5C,oBAAA;EACA,iBAAA;EACA,OAAA,EAAS,sBAAA;AAAA,IACP,OAAA,CAAQ,qBAAA;;;iBCOI,4BAAA,CAA6B,KAAA,EAAO,YAAA;AAAA,UAMnC,kCAAA;EAMf,OAAA;AAAA;AAAA,iBAkBc,2BAAA,CACd,MAAA,EAAQ,iBAAA,IACR,IAAA,GAAM,kCAAA,GACL,iBAAA;;;iBCy+Ea,gBAAA,CAAiB,QAAA,UAAkB,OAAA;;;UCpkFlC,aAAA;EAEf,YAAA;EAEA,OAAA;AAAA;AAAA,UAIe,YAAA;EAEf,KAAA,EAAO,WAAA;EAEP,UAAA,EAAY,gBAAA;AAAA;AAAA,iBA4BQ,QAAA,CAAS,KAAA,EAAO,aAAA,EAAe,IAAA,EAAM,YAAA,GAAe,OAAA,CAAQ,eAAA"}
|
package/dist/internal.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as applyEdgeResponseResult, $n as buildJwksUrlFromIssuer, $t as buildCloudMapIndex, A as startAgentCoreHttpServer, An as classifySourceChange, Ar as handleConnectionsRequest, At as addRunTaskSpecificOptions, B as idFromArn, Bn as buildStageMap, Br as EcsTaskResolutionError, Bt as resolveEcsAssumeRoleOption, C as addListSpecificOptions, Ci as formatStateRemedy, Cn as waitForAgentCorePing, Cr as tryParseStatus, Ct as parseLbPortOverrides, Di as buildStsClientConfig, Dn as computeCodeImageTag, Dr as bufferToBody, Dt as addStartServiceSpecificOptions, E as addStartAgentCoreSpecificOptions, Ei as LocalInvokeBuildError, En as buildAgentCoreCodeImage, Er as probeHostGatewaySupport, Et as resolveAlbFrontDoor, Fn as createWatchPredicates, Fr as architectureToPlatform, Ft as addImageOverrideOptions, G as classifyS3Error, Gn as filterRoutesByApiIdentifiers, Gt as enforceImageOverrideOrphans, H as createDeployedKvsDataSource, Hn as resolveEnvVars, Ht as runEcsServiceEmulator, I as normalizeKvsFileKeys, In as resolveApiTargetSubset, Ir as buildContainerImage, 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 resolveRuntimeCodeMountPath, Lt as ecsClusterOption, M as startAgentCoreWsBridge, Mr as buildConnectEvent, Mt as MAX_TASKS_SUBNET_RANGE_CAP, N as LocalStartCloudFrontError, Nn as addStartApiSpecificOptions, Nr as buildDisconnectEvent, Nt as addCommonEcsServiceOptions, O as buildAgentCoreServeAuthCheck, Oi as resolveProfileCredentials, On as renderCodeDockerfile, Or as ConnectionRegistry, P as addStartCloudFrontSpecificOptions, Pr as buildMessageEvent, Pt as addEcsAssumeRoleOptions, Q as applyEdgeRequestResult, Qn as buildCognitoJwksUrl, Qt as listPinnedTargets, R as parseOriginOverrides, Rn as createFileWatcher, Rr as resolveRuntimeFileExtension, Rt as parseMaxTasks, S as StudioEventBus, Si as derivePseudoParametersFromRegion, Sn as waitForAgentCoreHttpReady, Sr as selectIntegrationResponse, Ti as tryResolveImageFnJoin, Tn as SUPPORTED_CODE_RUNTIMES, Tr as HOST_GATEWAY_MIN_VERSION, Tt as isApplicationLoadBalancer, U as resolveDeployedKvsArnByName, Un as availableApiIdentifiers, Ut as ImageOverrideError, V as resolveKvsModulesForDistribution, Vn as materializeLayerFromArn, 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_MCP_PROTOCOL, _n as parseSseForJsonRpc, _r as applyAuthorizerOverlay, _t as createCloudFrontModule, ai as availableWebSocketApiIdentifiers, an as attachContainerLogStreamer, ar as computeRequestIdentityHash, at as describeS3OriginDomain, b as renderStudioHtml, bi as pickAgentCoreCandidateStack, bn as AGENTCORE_SESSION_ID_HEADER, br as evaluateResponseParameters, bt as addAlbSpecificOptions, c as startStudioProxy, ci as filterWebSocketApisByIdentifiers, cn as bridgeAgentCoreWs, cr as invokeTokenAuthorizer, ct as pickFunctionUrlLogicalIdFromOrigin, d as createStudioDispatcher, di as discoverRoutes, dn as A2A_PATH, dr as buildCorsConfigByApiId, dt as pickTargetFunctionLogicalId, en as CloudMapRegistry, er as createJwksCache, et as buildEdgeRequestEvent, f as filterStudioCustomResources, fi as pickRefLogicalId, fn as a2aInvokeOnce, fr as buildCorsConfigFromCloudFrontChain, ft as resolveCloudFrontDistribution, g as annotatePinnedEcsTargets, gi as AGENTCORE_HTTP_PROTOCOL, gn as mcpInvokeOnce, gr as translateLambdaResponse, gt as stripCloudFrontImport, h as annotateEcsTaskPinnedTargets, hi as AGENTCORE_AGUI_PROTOCOL, hn as MCP_PROTOCOL_VERSION, hr as matchRoute, ht as runViewerResponse, i as coerceStopRequest, in as getContainerNetworkIp, ir as buildMethodArn, it as CLOUDFRONT_DISTRIBUTION_TYPE, j as attachAgentCoreWsBridge, jn as addInvokeSpecificOptions, jr as parseConnectionsPath, k as selectServeInboundAuth, kn as toCmdArgv, kr as buildMgmtEndpointEnvUrl, kt as serviceStrategy, l as relayServeRequest, li as parseSelectionExpressionPath, ln as invokeAgentCoreWs, lr as attachAuthorizers, lt as pickKvsLogicalIdFromArn, m as annotateAlbPinnedBackingServices, mi as AGENTCORE_A2A_PROTOCOL, mn as MCP_PATH, mr as matchPreflight, mt as runViewerRequest, n as coerceRunRequest, ni as resolveSingleTarget, nn as SOFT_RELOAD_COMPLETION_LOG_SUFFIX, nr as verifyJwtAuthorizer, nt as edgeHeadersToHttp, o as resolveServeBaseUrl, oi as discoverWebSocketApis, on as addInvokeAgentCoreSpecificOptions, or as evaluateCachedLambdaPolicy, ot as extractKvsAssociations, p as isCustomResourceLambdaTarget, pi as resolveLambdaArnIntrinsic, pn as MCP_CONTAINER_PORT, pr as isFunctionUrlOacFronted, pt as compileCloudFrontFunction, q as matchBehavior, qn as readMtlsMaterialsFromDisk, qt as parseImageOverrideFlags, r as coerceServeRequest, rn as setShadowReadyTimeoutMs, rr as verifyJwtViaDiscovery, rt as httpHeadersToEdge, s as createStudioServeManager, si as discoverWebSocketApisOrThrow, sr as invokeRequestAuthorizer, st as isCloudFrontDistribution, t as addStudioSpecificOptions, ti as resolveWatchConfig, tn as DEFAULT_SHADOW_READY_TIMEOUT_MS, tr as verifyCognitoJwt, tt as buildEdgeResponseEvent, u as reinvoke, ui as webSocketApiMatchesIdentifier, un as A2A_CONTAINER_PORT, ur as applyCorsResponseHeaders, ut as pickLambdaEdgeFunctionLogicalId, v as startStudioServer, vi as AGENTCORE_RUNTIME_TYPE, vn as AGENTCORE_SIGV4_SERVICE, vr as buildHttpApiV2Event, vt as createLocalFileKvsDataSource, wi as substituteImagePlaceholders, wn as downloadAndExtractS3Bundle, wr as VtlEvaluationError, wt as resolveAlbTarget, x as createStudioStore, xi as resolveAgentCoreTarget, xn as invokeAgentCore, xr as pickResponseTemplate, xt as albStrategy, y as toStudioTargetGroups, yi as AgentCoreResolutionError, yn as signAgentCoreInvocation, yr as buildRestV1Event, yt as createUnboundCloudFrontModule, z as resolveCloudFrontTarget, zn as attachStageContext, zr as resolveRuntimeImage, zt as parseRestartPolicy } from "./local-studio-
|
|
1
|
+
import { $ as applyEdgeResponseResult, $n as buildJwksUrlFromIssuer, $t as buildCloudMapIndex, A as startAgentCoreHttpServer, An as classifySourceChange, Ar as handleConnectionsRequest, At as addRunTaskSpecificOptions, B as idFromArn, Bn as buildStageMap, Br as EcsTaskResolutionError, Bt as resolveEcsAssumeRoleOption, C as addListSpecificOptions, Ci as formatStateRemedy, Cn as waitForAgentCorePing, Cr as tryParseStatus, Ct as parseLbPortOverrides, Di as buildStsClientConfig, Dn as computeCodeImageTag, Dr as bufferToBody, Dt as addStartServiceSpecificOptions, E as addStartAgentCoreSpecificOptions, Ei as LocalInvokeBuildError, En as buildAgentCoreCodeImage, Er as probeHostGatewaySupport, Et as resolveAlbFrontDoor, Fn as createWatchPredicates, Fr as architectureToPlatform, Ft as addImageOverrideOptions, G as classifyS3Error, Gn as filterRoutesByApiIdentifiers, Gt as enforceImageOverrideOrphans, H as createDeployedKvsDataSource, Hn as resolveEnvVars, Ht as runEcsServiceEmulator, I as normalizeKvsFileKeys, In as resolveApiTargetSubset, Ir as buildContainerImage, 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 resolveRuntimeCodeMountPath, Lt as ecsClusterOption, M as startAgentCoreWsBridge, Mr as buildConnectEvent, Mt as MAX_TASKS_SUBNET_RANGE_CAP, N as LocalStartCloudFrontError, Nn as addStartApiSpecificOptions, Nr as buildDisconnectEvent, Nt as addCommonEcsServiceOptions, O as buildAgentCoreServeAuthCheck, Oi as resolveProfileCredentials, On as renderCodeDockerfile, Or as ConnectionRegistry, P as addStartCloudFrontSpecificOptions, Pr as buildMessageEvent, Pt as addEcsAssumeRoleOptions, Q as applyEdgeRequestResult, Qn as buildCognitoJwksUrl, Qt as listPinnedTargets, R as parseOriginOverrides, Rn as createFileWatcher, Rr as resolveRuntimeFileExtension, Rt as parseMaxTasks, S as StudioEventBus, Si as derivePseudoParametersFromRegion, Sn as waitForAgentCoreHttpReady, Sr as selectIntegrationResponse, Ti as tryResolveImageFnJoin, Tn as SUPPORTED_CODE_RUNTIMES, Tr as HOST_GATEWAY_MIN_VERSION, Tt as isApplicationLoadBalancer, U as resolveDeployedKvsArnByName, Un as availableApiIdentifiers, Ut as ImageOverrideError, V as resolveKvsModulesForDistribution, Vn as materializeLayerFromArn, 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_MCP_PROTOCOL, _n as parseSseForJsonRpc, _r as applyAuthorizerOverlay, _t as createCloudFrontModule, ai as availableWebSocketApiIdentifiers, an as attachContainerLogStreamer, ar as computeRequestIdentityHash, at as describeS3OriginDomain, b as renderStudioHtml, bi as pickAgentCoreCandidateStack, bn as AGENTCORE_SESSION_ID_HEADER, br as evaluateResponseParameters, bt as addAlbSpecificOptions, c as startStudioProxy, ci as filterWebSocketApisByIdentifiers, cn as bridgeAgentCoreWs, cr as invokeTokenAuthorizer, ct as pickFunctionUrlLogicalIdFromOrigin, d as createStudioDispatcher, di as discoverRoutes, dn as A2A_PATH, dr as buildCorsConfigByApiId, dt as pickTargetFunctionLogicalId, en as CloudMapRegistry, er as createJwksCache, et as buildEdgeRequestEvent, f as filterStudioCustomResources, fi as pickRefLogicalId, fn as a2aInvokeOnce, fr as buildCorsConfigFromCloudFrontChain, ft as resolveCloudFrontDistribution, g as annotatePinnedEcsTargets, gi as AGENTCORE_HTTP_PROTOCOL, gn as mcpInvokeOnce, gr as translateLambdaResponse, gt as stripCloudFrontImport, h as annotateEcsTaskPinnedTargets, hi as AGENTCORE_AGUI_PROTOCOL, hn as MCP_PROTOCOL_VERSION, hr as matchRoute, ht as runViewerResponse, i as coerceStopRequest, in as getContainerNetworkIp, ir as buildMethodArn, it as CLOUDFRONT_DISTRIBUTION_TYPE, j as attachAgentCoreWsBridge, jn as addInvokeSpecificOptions, jr as parseConnectionsPath, k as selectServeInboundAuth, kn as toCmdArgv, kr as buildMgmtEndpointEnvUrl, kt as serviceStrategy, l as relayServeRequest, li as parseSelectionExpressionPath, ln as invokeAgentCoreWs, lr as attachAuthorizers, lt as pickKvsLogicalIdFromArn, m as annotateAlbPinnedBackingServices, mi as AGENTCORE_A2A_PROTOCOL, mn as MCP_PATH, mr as matchPreflight, mt as runViewerRequest, n as coerceRunRequest, ni as resolveSingleTarget, nn as SOFT_RELOAD_COMPLETION_LOG_SUFFIX, nr as verifyJwtAuthorizer, nt as edgeHeadersToHttp, o as resolveServeBaseUrl, oi as discoverWebSocketApis, on as addInvokeAgentCoreSpecificOptions, or as evaluateCachedLambdaPolicy, ot as extractKvsAssociations, p as isCustomResourceLambdaTarget, pi as resolveLambdaArnIntrinsic, pn as MCP_CONTAINER_PORT, pr as isFunctionUrlOacFronted, pt as compileCloudFrontFunction, q as matchBehavior, qn as readMtlsMaterialsFromDisk, qt as parseImageOverrideFlags, r as coerceServeRequest, rn as setShadowReadyTimeoutMs, rr as verifyJwtViaDiscovery, rt as httpHeadersToEdge, s as createStudioServeManager, si as discoverWebSocketApisOrThrow, sr as invokeRequestAuthorizer, st as isCloudFrontDistribution, t as addStudioSpecificOptions, ti as resolveWatchConfig, tn as DEFAULT_SHADOW_READY_TIMEOUT_MS, tr as verifyCognitoJwt, tt as buildEdgeResponseEvent, u as reinvoke, ui as webSocketApiMatchesIdentifier, un as A2A_CONTAINER_PORT, ur as applyCorsResponseHeaders, ut as pickLambdaEdgeFunctionLogicalId, v as startStudioServer, vi as AGENTCORE_RUNTIME_TYPE, vn as AGENTCORE_SIGV4_SERVICE, vr as buildHttpApiV2Event, vt as createLocalFileKvsDataSource, wi as substituteImagePlaceholders, wn as downloadAndExtractS3Bundle, wr as VtlEvaluationError, wt as resolveAlbTarget, x as createStudioStore, xi as resolveAgentCoreTarget, xn as invokeAgentCore, xr as pickResponseTemplate, xt as albStrategy, y as toStudioTargetGroups, yi as AgentCoreResolutionError, yn as signAgentCoreInvocation, yr as buildRestV1Event, yt as createUnboundCloudFrontModule, z as resolveCloudFrontTarget, zn as attachStageContext, zr as resolveRuntimeImage, zt as parseRestartPolicy } from "./local-studio-BIpTVWYj.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_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, 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, 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, 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, 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 };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as runDockerStreaming, c as resolveConfiguredLogLevel, d as setEmbedConfig, i as runDockerForeground, l as getEmbedConfig, n as formatDockerLoginError, o as spawnStreaming, r as getDockerCmd, s as getLogger } from "./docker-cmd-
|
|
1
|
+
import { a as runDockerStreaming, c as resolveConfiguredLogLevel, d as setEmbedConfig, i as runDockerForeground, l as getEmbedConfig, n as formatDockerLoginError, o as spawnStreaming, r as getDockerCmd, s as getLogger } from "./docker-cmd-C6h4cSxa.js";
|
|
2
2
|
import { chmodSync, cpSync, createWriteStream, existsSync, mkdirSync, mkdtempSync, readFileSync, readdirSync, rmSync, statSync, symlinkSync, unlinkSync, writeFileSync } from "node:fs";
|
|
3
3
|
import { homedir, tmpdir } from "node:os";
|
|
4
4
|
import * as path$1 from "node:path";
|
|
@@ -22848,7 +22848,7 @@ async function softReloadReplica(args) {
|
|
|
22848
22848
|
const defaultDockerInspectWorkdirImpl = async (containerId) => {
|
|
22849
22849
|
const { execFile } = await import("node:child_process");
|
|
22850
22850
|
const { promisify } = await import("node:util");
|
|
22851
|
-
const { getDockerCmd } = await import("./docker-cmd-
|
|
22851
|
+
const { getDockerCmd } = await import("./docker-cmd-C6h4cSxa.js").then((n) => n.t);
|
|
22852
22852
|
const { stdout } = await promisify(execFile)(getDockerCmd(), [
|
|
22853
22853
|
"inspect",
|
|
22854
22854
|
"--format",
|
|
@@ -22867,7 +22867,7 @@ let dockerInspectWorkdirImpl = defaultDockerInspectWorkdirImpl;
|
|
|
22867
22867
|
const defaultDockerCpImpl = async (src, dst) => {
|
|
22868
22868
|
const { execFile } = await import("node:child_process");
|
|
22869
22869
|
const { promisify } = await import("node:util");
|
|
22870
|
-
const { getDockerCmd } = await import("./docker-cmd-
|
|
22870
|
+
const { getDockerCmd } = await import("./docker-cmd-C6h4cSxa.js").then((n) => n.t);
|
|
22871
22871
|
await promisify(execFile)(getDockerCmd(), [
|
|
22872
22872
|
"cp",
|
|
22873
22873
|
src,
|
|
@@ -22882,7 +22882,7 @@ let dockerCpImpl = defaultDockerCpImpl;
|
|
|
22882
22882
|
const defaultDockerRestartImpl = async (containerId) => {
|
|
22883
22883
|
const { execFile } = await import("node:child_process");
|
|
22884
22884
|
const { promisify } = await import("node:util");
|
|
22885
|
-
const { getDockerCmd } = await import("./docker-cmd-
|
|
22885
|
+
const { getDockerCmd } = await import("./docker-cmd-C6h4cSxa.js").then((n) => n.t);
|
|
22886
22886
|
await promisify(execFile)(getDockerCmd(), ["restart", containerId]);
|
|
22887
22887
|
};
|
|
22888
22888
|
let dockerRestartImpl = defaultDockerRestartImpl;
|
|
@@ -22922,7 +22922,7 @@ async function disconnectOldFromSharedNetwork(oldInstance) {
|
|
|
22922
22922
|
const defaultDockerNetworkDisconnectImpl = async (networkName, containerId) => {
|
|
22923
22923
|
const { execFile } = await import("node:child_process");
|
|
22924
22924
|
const { promisify } = await import("node:util");
|
|
22925
|
-
const { getDockerCmd } = await import("./docker-cmd-
|
|
22925
|
+
const { getDockerCmd } = await import("./docker-cmd-C6h4cSxa.js").then((n) => n.t);
|
|
22926
22926
|
await promisify(execFile)(getDockerCmd(), [
|
|
22927
22927
|
"network",
|
|
22928
22928
|
"disconnect",
|
|
@@ -23099,7 +23099,7 @@ function pickEssentialContainerId(instance, service) {
|
|
|
23099
23099
|
const defaultWaitForExitImpl = async (containerId) => {
|
|
23100
23100
|
const { execFile } = await import("node:child_process");
|
|
23101
23101
|
const { promisify } = await import("node:util");
|
|
23102
|
-
const { getDockerCmd } = await import("./docker-cmd-
|
|
23102
|
+
const { getDockerCmd } = await import("./docker-cmd-C6h4cSxa.js").then((n) => n.t);
|
|
23103
23103
|
const { stdout } = await promisify(execFile)(getDockerCmd(), ["wait", containerId], { maxBuffer: 1024 * 1024 });
|
|
23104
23104
|
const code = parseInt(stdout.trim(), 10);
|
|
23105
23105
|
return Number.isFinite(code) ? code : -1;
|
|
@@ -23119,7 +23119,7 @@ const EXIT_LOG_TAIL_LINES = 50;
|
|
|
23119
23119
|
const defaultReadContainerLogsImpl = async (containerId) => {
|
|
23120
23120
|
const { execFile } = await import("node:child_process");
|
|
23121
23121
|
const { promisify } = await import("node:util");
|
|
23122
|
-
const { getDockerCmd } = await import("./docker-cmd-
|
|
23122
|
+
const { getDockerCmd } = await import("./docker-cmd-C6h4cSxa.js").then((n) => n.t);
|
|
23123
23123
|
const { stdout, stderr } = await promisify(execFile)(getDockerCmd(), [
|
|
23124
23124
|
"logs",
|
|
23125
23125
|
"--tail",
|
|
@@ -30769,6 +30769,20 @@ function warnUnsupported(distribution) {
|
|
|
30769
30769
|
else if (origin.kind === "s3-unresolved") logger.warn(`Origin '${origin.originId}' is an S3 origin with no resolvable local source (no BucketDeployment found, or its source could not be located in the cloud assembly). Pass --from-cfn-stack to serve the deployed bucket from real S3 on demand, or point it at a local directory with --origin ${origin.originId}=<dir>. Requests routed to it return 502.`);
|
|
30770
30770
|
}
|
|
30771
30771
|
/**
|
|
30772
|
+
* WARN once at boot when `--cache-origin` is set but `--from-cfn-stack` is not.
|
|
30773
|
+
* `--cache-origin` only feeds the deployed-S3 read-through reader, which is built
|
|
30774
|
+
* exclusively under `--from-cfn-stack` (see {@link resolveDeployedS3Origins}); a
|
|
30775
|
+
* local-BucketDeployment / `--origin <id>=<dir>` distribution serves from disk and
|
|
30776
|
+
* never caches. So without the state flag the flag is a silent no-op — surface that
|
|
30777
|
+
* (loud-but-non-fatal, like the ECR-pin / intrinsic-env-drop WARNs) so the user is
|
|
30778
|
+
* not misled into thinking caching is active. Not an error: `--cache-origin` is
|
|
30779
|
+
* harmless on its own, and in `cdkl studio` the `--from-cfn-stack` binding is
|
|
30780
|
+
* editable per-session, so a hard failure here would be brittle.
|
|
30781
|
+
*/
|
|
30782
|
+
function warnUnusedCacheOrigin(options) {
|
|
30783
|
+
if (options.cacheOrigin === true && !isCfnFlagPresent(options)) getLogger().warn("--cache-origin has no effect without --from-cfn-stack: it caches a deployed-S3 read-through origin, which is only built under --from-cfn-stack. A local BucketDeployment / --origin <id>=<dir> origin serves from disk and is not cached. Pass --from-cfn-stack to enable the deployed-S3 origin (then --cache-origin applies), or drop --cache-origin.");
|
|
30784
|
+
}
|
|
30785
|
+
/**
|
|
30772
30786
|
* Promote each S3 origin with no local BucketDeployment source (`s3-unresolved`)
|
|
30773
30787
|
* to a deployed-S3 read-through origin (issue #405), building one
|
|
30774
30788
|
* {@link S3OriginReader} per origin. This is the front/back-split path: the CDK
|
|
@@ -30897,6 +30911,7 @@ async function localStartCloudFrontCommand(target, options, extraStateProviders)
|
|
|
30897
30911
|
const profileCredentials = options.profile ? await resolveProfileCredentials(options.profile) : void 0;
|
|
30898
30912
|
const deployedS3 = await resolveDeployedS3Origins(initial.distribution, initial.stacks, options, profileCredentials, logger, extraStateProviders);
|
|
30899
30913
|
warnUnsupported(initial.distribution);
|
|
30914
|
+
warnUnusedCacheOrigin(options);
|
|
30900
30915
|
const envOptions = {
|
|
30901
30916
|
...options.fromCfnStack !== void 0 && { fromCfnStack: options.fromCfnStack },
|
|
30902
30917
|
...options.assumeRole !== void 0 && { assumeRole: options.assumeRole },
|
|
@@ -32831,6 +32846,12 @@ const STUDIO_CSS = `
|
|
|
32831
32846
|
.log-hit .lt { color: #777; }
|
|
32832
32847
|
.log-hit .lg { color: #6aa9ff; }
|
|
32833
32848
|
.log-hits-meta { padding: 6px 12px; color: #888; font-size: 11px; }
|
|
32849
|
+
/* Per-line log severity colour (parsed from the WARN: / ERROR: prefix the
|
|
32850
|
+
compact logger emits) so warn / error stand out in the LOGS panel + search
|
|
32851
|
+
even with no ANSI colour over the child pipe. */
|
|
32852
|
+
.log-row { display: block; }
|
|
32853
|
+
.log-warn { color: #e5b567; }
|
|
32854
|
+
.log-error { color: #e0707a; }
|
|
32834
32855
|
#conn { font-size: 11px; }
|
|
32835
32856
|
#conn.up { color: #7bd88f; }
|
|
32836
32857
|
#conn.down { color: #e0707a; }
|
|
@@ -32969,6 +32990,40 @@ const STUDIO_SCRIPT = `
|
|
|
32969
32990
|
return e;
|
|
32970
32991
|
}
|
|
32971
32992
|
|
|
32993
|
+
// Classify a streamed log line by its level prefix so warn / error stand out
|
|
32994
|
+
// even though the captured child output carries no ANSI color (serve children
|
|
32995
|
+
// run colorless under a pipe). cdk-local's compact logger prefixes warn /
|
|
32996
|
+
// error lines with WARN: / ERROR: (utils/logger.ts) -- the one severity
|
|
32997
|
+
// signal that survives the pipe. An optional leading child-logger [module]
|
|
32998
|
+
// tag is tolerated. A container's own runtime logs that happen to start
|
|
32999
|
+
// ERROR: / WARN: are coloured too, which is desirable. Written with string
|
|
33000
|
+
// ops (no regex) because backslash escapes do not survive the STUDIO_SCRIPT
|
|
33001
|
+
// template literal.
|
|
33002
|
+
function logLineClass(line) {
|
|
33003
|
+
let s = line == null ? '' : String(line);
|
|
33004
|
+
if (s.charAt(0) === '[') {
|
|
33005
|
+
const close = s.indexOf('] ');
|
|
33006
|
+
if (close !== -1) s = s.slice(close + 2);
|
|
33007
|
+
}
|
|
33008
|
+
if (s.indexOf('ERROR: ') === 0) return 'log-error';
|
|
33009
|
+
if (s.indexOf('WARN: ') === 0) return 'log-warn';
|
|
33010
|
+
return null;
|
|
33011
|
+
}
|
|
33012
|
+
// Render lines into a <pre> as one block span each so a per-line level colour
|
|
33013
|
+
// can apply (a single textContent join cannot be partially coloured).
|
|
33014
|
+
function fillLogPre(pre, lines) {
|
|
33015
|
+
pre.textContent = '';
|
|
33016
|
+
if (!lines || !lines.length) {
|
|
33017
|
+
pre.textContent = '(none)';
|
|
33018
|
+
return;
|
|
33019
|
+
}
|
|
33020
|
+
for (let i = 0; i < lines.length; i++) {
|
|
33021
|
+
const span = el('span', logLineClass(lines[i]), lines[i]);
|
|
33022
|
+
span.classList.add('log-row');
|
|
33023
|
+
pre.appendChild(span);
|
|
33024
|
+
}
|
|
33025
|
+
}
|
|
33026
|
+
|
|
32972
33027
|
// Per-target run options (issue #301 slice 2). The descriptor table is
|
|
32973
33028
|
// serialized into the page by the server; we render a control per option
|
|
32974
33029
|
// and return { node, collect } so the caller places the section and reads
|
|
@@ -34043,7 +34098,8 @@ const STUDIO_SCRIPT = `
|
|
|
34043
34098
|
};
|
|
34044
34099
|
logClearRow.appendChild(logClear);
|
|
34045
34100
|
logSec.appendChild(logClearRow);
|
|
34046
|
-
const logPre = el('pre', null
|
|
34101
|
+
const logPre = el('pre', null);
|
|
34102
|
+
fillLogPre(logPre, logs);
|
|
34047
34103
|
logSec.appendChild(logPre);
|
|
34048
34104
|
ws.appendChild(logSec);
|
|
34049
34105
|
// Register the live LOGS <pre> so streamed log events update it surgically
|
|
@@ -34663,7 +34719,9 @@ const STUDIO_SCRIPT = `
|
|
|
34663
34719
|
const logs = logsById.get(invId) || [];
|
|
34664
34720
|
const logSec = el('div', 'section');
|
|
34665
34721
|
logSec.appendChild(el('h3', null, 'Logs'));
|
|
34666
|
-
|
|
34722
|
+
const invLogPre = el('pre', null);
|
|
34723
|
+
fillLogPre(invLogPre, logs);
|
|
34724
|
+
logSec.appendChild(invLogPre);
|
|
34667
34725
|
result.appendChild(logSec);
|
|
34668
34726
|
}
|
|
34669
34727
|
|
|
@@ -34812,7 +34870,7 @@ const STUDIO_SCRIPT = `
|
|
|
34812
34870
|
const res = await fetch('/api/invocations/' + encodeURIComponent(id) + '/logs');
|
|
34813
34871
|
const data = await res.json();
|
|
34814
34872
|
const lines = (data.logs || []).map((l) => l.line);
|
|
34815
|
-
if (shownDetailId === id) pre
|
|
34873
|
+
if (shownDetailId === id) fillLogPre(pre, lines);
|
|
34816
34874
|
} catch (err) {
|
|
34817
34875
|
if (shownDetailId === id) pre.textContent = '(failed to load logs)';
|
|
34818
34876
|
}
|
|
@@ -34850,7 +34908,7 @@ const STUDIO_SCRIPT = `
|
|
|
34850
34908
|
const row = el('div', 'log-hit');
|
|
34851
34909
|
row.appendChild(el('span', 'lt', new Date(h.ts).toLocaleTimeString() + ' '));
|
|
34852
34910
|
row.appendChild(el('span', 'lg', (h.target || '') + ' '));
|
|
34853
|
-
row.appendChild(
|
|
34911
|
+
row.appendChild(el('span', logLineClass(h.line), h.line));
|
|
34854
34912
|
results.appendChild(row);
|
|
34855
34913
|
}
|
|
34856
34914
|
} catch (err) {
|
|
@@ -34927,7 +34985,7 @@ const STUDIO_SCRIPT = `
|
|
|
34927
34985
|
// last response). Update only the live LOGS <pre> surgically instead
|
|
34928
34986
|
// (issue #334). A status change still re-renders via onServeEvent.
|
|
34929
34987
|
if (shownServeId === ev.containerId && serveLogId === ev.containerId && serveLogPre) {
|
|
34930
|
-
serveLogPre
|
|
34988
|
+
fillLogPre(serveLogPre, arr);
|
|
34931
34989
|
}
|
|
34932
34990
|
});
|
|
34933
34991
|
setInterval(() => {
|
|
@@ -37585,4 +37643,4 @@ function addStudioSpecificOptions(cmd) {
|
|
|
37585
37643
|
|
|
37586
37644
|
//#endregion
|
|
37587
37645
|
export { applyEdgeResponseResult as $, buildJwksUrlFromIssuer as $n, collectSsmParameterRefs as $r, buildCloudMapIndex as $t, startAgentCoreHttpServer as A, classifySourceChange as An, handleConnectionsRequest as Ar, addRunTaskSpecificOptions as At, idFromArn as B, buildStageMap as Bn, EcsTaskResolutionError as Br, resolveEcsAssumeRoleOption as Bt, addListSpecificOptions as C, formatStateRemedy as Ci, waitForAgentCorePing as Cn, tryParseStatus as Cr, parseLbPortOverrides as Ct, createLocalStartAgentCoreCommand as D, buildStsClientConfig as Di, computeCodeImageTag as Dn, bufferToBody as Dr, addStartServiceSpecificOptions as Dt, addStartAgentCoreSpecificOptions as E, LocalInvokeBuildError as Ei, buildAgentCoreCodeImage as En, probeHostGatewaySupport as Er, resolveAlbFrontDoor as Et, createLocalStartCloudFrontCommand as F, createWatchPredicates as Fn, architectureToPlatform as Fr, addImageOverrideOptions as Ft, classifyS3Error as G, filterRoutesByApiIdentifiers as Gn, LocalStateSourceError as Gr, enforceImageOverrideOrphans as Gt, createDeployedKvsDataSource as H, resolveEnvVars$1 as Hn, substituteAgainstStateAsync as Hr, runEcsServiceEmulator as Ht, normalizeKvsFileKeys as I, resolveApiTargetSubset as In, buildContainerImage as Ir, buildEcsImageResolutionContext$1 as It, startCloudFrontServer as J, startApiServer as Jn, rejectExplicitCfnStackWithMultipleStacks as Jr, resolveImageOverrides as Jt, createS3OriginReader as K, groupRoutesByServer as Kn, createLocalStateProvider as Kr, mergeForService as Kt, parseKvsFileOverrides as L, createAuthorizerCache as Ln, resolveRuntimeCodeMountPath as Lr, ecsClusterOption as Lt, startAgentCoreWsBridge as M, createLocalInvokeCommand as Mn, buildConnectEvent as Mr, MAX_TASKS_SUBNET_RANGE_CAP as Mt, LocalStartCloudFrontError as N, addStartApiSpecificOptions as Nn, buildDisconnectEvent as Nr, addCommonEcsServiceOptions as Nt, buildAgentCoreServeAuthCheck as O, resolveProfileCredentials as Oi, renderCodeDockerfile as On, ConnectionRegistry as Or, createLocalStartServiceCommand as Ot, addStartCloudFrontSpecificOptions as P, createLocalStartApiCommand as Pn, buildMessageEvent as Pr, addEcsAssumeRoleOptions as Pt, applyEdgeRequestResult as Q, buildCognitoJwksUrl as Qn, CfnLocalStateProvider as Qr, listPinnedTargets as Qt, parseOriginOverrides as R, createFileWatcher as Rn, resolveRuntimeFileExtension as Rr, parseMaxTasks as Rt, StudioEventBus as S, derivePseudoParametersFromRegion as Si, waitForAgentCoreHttpReady as Sn, selectIntegrationResponse as Sr, createLocalStartAlbCommand as St, formatTargetListing as T, tryResolveImageFnJoin as Ti, SUPPORTED_CODE_RUNTIMES as Tn, HOST_GATEWAY_MIN_VERSION as Tr, isApplicationLoadBalancer as Tt, resolveDeployedKvsArnByName as U, availableApiIdentifiers as Un, substituteEnvVarsFromState as Ur, ImageOverrideError as Ut, resolveKvsModulesForDistribution as V, materializeLayerFromArn as Vn, substituteAgainstState as Vr, resolveSharedSidecarCredentials as Vt, resolveDeployedOriginBucket as W, filterRoutesByApiIdentifier as Wn, substituteEnvVarsFromStateAsync as Wr, buildImageOverrideTag as Wt, serveFromStaticOrigin as X, resolveServiceIntegrationParameters as Xn, resolveCfnRegion as Xr, describePinnedImageUri as Xt, resolveErrorResponseCandidates as Y, resolveSelectionExpression as Yn, resolveCfnFallbackRegion as Yr, runImageOverrideBuilds as Yt, serveLambdaUrlOrigin as Z, defaultCredentialsLoader as Zn, resolveCfnStackName as Zr, isLocalCdkAssetImage as Zt, filterStudioTargetGroups as _, AGENTCORE_MCP_PROTOCOL as _i, parseSseForJsonRpc as _n, applyAuthorizerOverlay as _r, createCloudFrontModule as _t, createLocalStudioCommand as a, availableWebSocketApiIdentifiers as ai, attachContainerLogStreamer as an, computeRequestIdentityHash as ar, describeS3OriginDomain as at, renderStudioHtml as b, pickAgentCoreCandidateStack as bi, AGENTCORE_SESSION_ID_HEADER as bn, evaluateResponseParameters as br, addAlbSpecificOptions as bt, startStudioProxy as c, filterWebSocketApisByIdentifiers as ci, bridgeAgentCoreWs as cn, invokeTokenAuthorizer as cr, pickFunctionUrlLogicalIdFromOrigin as ct, createStudioDispatcher as d, discoverRoutes as di, A2A_PATH as dn, buildCorsConfigByApiId as dr, pickTargetFunctionLogicalId as dt, resolveSsmParameters as ei, CloudMapRegistry as en, createJwksCache as er, buildEdgeRequestEvent as et, filterStudioCustomResources as f, pickRefLogicalId as fi, a2aInvokeOnce as fn, buildCorsConfigFromCloudFrontChain as fr, resolveCloudFrontDistribution as ft, annotatePinnedEcsTargets as g, AGENTCORE_HTTP_PROTOCOL as gi, mcpInvokeOnce as gn, translateLambdaResponse as gr, stripCloudFrontImport as gt, annotateEcsTaskPinnedTargets as h, AGENTCORE_AGUI_PROTOCOL as hi, MCP_PROTOCOL_VERSION as hn, matchRoute as hr, runViewerResponse as ht, coerceStopRequest as i, listTargets as ii, getContainerNetworkIp as in, buildMethodArn as ir, CLOUDFRONT_DISTRIBUTION_TYPE as it, attachAgentCoreWsBridge as j, addInvokeSpecificOptions as jn, parseConnectionsPath as jr, createLocalRunTaskCommand as jt, selectServeInboundAuth as k, toCmdArgv as kn, buildMgmtEndpointEnvUrl as kr, serviceStrategy as kt, relayServeRequest as l, parseSelectionExpressionPath as li, invokeAgentCoreWs as ln, attachAuthorizers as lr, pickKvsLogicalIdFromArn as lt, annotateAlbPinnedBackingServices as m, AGENTCORE_A2A_PROTOCOL as mi, MCP_PATH as mn, matchPreflight as mr, runViewerRequest as mt, coerceRunRequest as n, resolveSingleTarget as ni, SOFT_RELOAD_COMPLETION_LOG_SUFFIX as nn, verifyJwtAuthorizer as nr, edgeHeadersToHttp as nt, resolveServeBaseUrl as o, discoverWebSocketApis as oi, addInvokeAgentCoreSpecificOptions as on, evaluateCachedLambdaPolicy as or, extractKvsAssociations as ot, isCustomResourceLambdaTarget as p, resolveLambdaArnIntrinsic as pi, MCP_CONTAINER_PORT as pn, isFunctionUrlOacFronted as pr, compileCloudFrontFunction as pt, matchBehavior as q, readMtlsMaterialsFromDisk as qn, isCfnFlagPresent as qr, parseImageOverrideFlags as qt, coerceServeRequest as r, countTargets as ri, setShadowReadyTimeoutMs as rn, verifyJwtViaDiscovery as rr, httpHeadersToEdge as rt, createStudioServeManager as s, discoverWebSocketApisOrThrow as si, createLocalInvokeAgentCoreCommand as sn, invokeRequestAuthorizer as sr, isCloudFrontDistribution as st, addStudioSpecificOptions as t, resolveWatchConfig as ti, DEFAULT_SHADOW_READY_TIMEOUT_MS as tn, verifyCognitoJwt as tr, buildEdgeResponseEvent as tt, reinvoke as u, webSocketApiMatchesIdentifier as ui, A2A_CONTAINER_PORT as un, applyCorsResponseHeaders as ur, pickLambdaEdgeFunctionLogicalId as ut, startStudioServer as v, AGENTCORE_RUNTIME_TYPE as vi, AGENTCORE_SIGV4_SERVICE as vn, buildHttpApiV2Event as vr, createLocalFileKvsDataSource as vt, createLocalListCommand as w, substituteImagePlaceholders as wi, downloadAndExtractS3Bundle as wn, VtlEvaluationError as wr, resolveAlbTarget as wt, createStudioStore as x, resolveAgentCoreTarget as xi, invokeAgentCore as xn, pickResponseTemplate as xr, albStrategy as xt, toStudioTargetGroups as y, AgentCoreResolutionError as yi, signAgentCoreInvocation as yn, buildRestV1Event as yr, createUnboundCloudFrontModule as yt, resolveCloudFrontTarget as z, attachStageContext as zn, resolveRuntimeImage as zr, parseRestartPolicy as zt };
|
|
37588
|
-
//# sourceMappingURL=local-studio-
|
|
37646
|
+
//# sourceMappingURL=local-studio-BIpTVWYj.js.map
|