cdk-local 0.56.0 → 0.58.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 CHANGED
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
- import { a as createLocalStartApiCommand } from "./cloud-map-resolver-BGl1bgxF.js";
3
- import { a as createLocalRunTaskCommand, i as createLocalStartServiceCommand, o as createLocalInvokeAgentCoreCommand, r as createLocalStartAlbCommand, s as createLocalInvokeCommand, t as createLocalListCommand } from "./local-list-6ZNQh_PK.js";
2
+ import { a as createLocalStartApiCommand } from "./cloud-map-resolver-DjKCYyIq.js";
3
+ import { a as createLocalRunTaskCommand, i as createLocalStartServiceCommand, o as createLocalInvokeAgentCoreCommand, r as createLocalStartAlbCommand, s as createLocalInvokeCommand, t as createLocalListCommand } from "./local-list-B-5gO8ht.js";
4
4
  import { Command } from "commander";
5
5
 
6
6
  //#region src/cli/index.ts
7
7
  const program = new Command();
8
- program.name("cdkl").description("Run AWS CDK stacks locally with Docker.").version("0.56.0");
8
+ program.name("cdkl").description("Run AWS CDK stacks locally with Docker.").version("0.58.0");
9
9
  program.addCommand(createLocalInvokeCommand());
10
10
  program.addCommand(createLocalInvokeAgentCoreCommand());
11
11
  program.addCommand(createLocalStartApiCommand());
@@ -1201,13 +1201,22 @@ const AGENTCORE_RUNTIME_TYPE = "AWS::BedrockAgentCore::Runtime";
1201
1201
  *
1202
1202
  * - `HTTP` — the agent contract (`POST /invocations` + `GET /ping` on 8080).
1203
1203
  * - `MCP` — Model Context Protocol over Streamable HTTP (`POST /mcp` on 8000).
1204
- *
1205
- * `A2A` / `AGUI` declare yet other wire contracts and are not served yet.
1204
+ * - `A2A` — Agent2Agent JSON-RPC 2.0 over HTTP (`POST /` on 9000).
1205
+ * - `AGUI` Agent-User Interaction event streams (SSE on `POST /invocations`,
1206
+ * WebSocket on `/ws`); reuses the HTTP path's container port (8080) and its
1207
+ * incremental SSE / WS streaming.
1206
1208
  */
1207
1209
  const AGENTCORE_HTTP_PROTOCOL = "HTTP";
1208
1210
  const AGENTCORE_MCP_PROTOCOL = "MCP";
1211
+ const AGENTCORE_A2A_PROTOCOL = "A2A";
1212
+ const AGENTCORE_AGUI_PROTOCOL = "AGUI";
1209
1213
  /** Protocols this CLI can run a container for. */
1210
- const SUPPORTED_AGENTCORE_PROTOCOLS = [AGENTCORE_HTTP_PROTOCOL, "MCP"];
1214
+ const SUPPORTED_AGENTCORE_PROTOCOLS = [
1215
+ AGENTCORE_HTTP_PROTOCOL,
1216
+ "MCP",
1217
+ "A2A",
1218
+ AGENTCORE_AGUI_PROTOCOL
1219
+ ];
1211
1220
  var AgentCoreResolutionError = class AgentCoreResolutionError extends Error {
1212
1221
  constructor(message) {
1213
1222
  super(message);
@@ -1409,14 +1418,14 @@ function extractCustomClaims(raw, logicalId) {
1409
1418
  return out;
1410
1419
  }
1411
1420
  /**
1412
- * Validate `ProtocolConfiguration`. Serves `HTTP` (the default when absent)
1413
- * and `MCP`; `A2A` / `AGUI` speak other wire contracts and hard-error with a
1414
- * pointer to the follow-up.
1421
+ * Validate `ProtocolConfiguration`. Serves the four AgentCore protocols
1422
+ * (HTTP / MCP / A2A / AGUI); an unrecognized value hard-errors with the
1423
+ * supported list so the command never starts something it can't run.
1415
1424
  */
1416
1425
  function extractProtocol(value, logicalId, stackName) {
1417
1426
  if (value === void 0 || value === null) return AGENTCORE_HTTP_PROTOCOL;
1418
1427
  if (typeof value !== "string") throw new AgentCoreResolutionError(`AgentCore Runtime '${logicalId}' in ${stackName} has a non-string ProtocolConfiguration. ${getEmbedConfig().cliName} invoke-agentcore supports the ${SUPPORTED_AGENTCORE_PROTOCOLS.join(" / ")} protocols.`);
1419
- if (!SUPPORTED_AGENTCORE_PROTOCOLS.includes(value)) throw new AgentCoreResolutionError(`AgentCore Runtime '${logicalId}' in ${stackName} uses the ${value} protocol. ${getEmbedConfig().cliName} invoke-agentcore supports the ${SUPPORTED_AGENTCORE_PROTOCOLS.join(" / ")} protocols (A2A / AGUI speak different wire contracts and are not served yet).`);
1428
+ if (!SUPPORTED_AGENTCORE_PROTOCOLS.includes(value)) throw new AgentCoreResolutionError(`AgentCore Runtime '${logicalId}' in ${stackName} uses the ${value} protocol. ${getEmbedConfig().cliName} invoke-agentcore supports the ${SUPPORTED_AGENTCORE_PROTOCOLS.join(" / ")} protocols.`);
1420
1429
  return value;
1421
1430
  }
1422
1431
  /**
@@ -1434,8 +1443,8 @@ function extractArtifact(artifact, logicalId, stackName, resources, region, imag
1434
1443
  };
1435
1444
  const container = art["ContainerConfiguration"];
1436
1445
  if (!container || typeof container !== "object" || Array.isArray(container)) throw new AgentCoreResolutionError(`AgentCore Runtime '${logicalId}' in ${stackName} has no ContainerConfiguration in its AgentRuntimeArtifact.`);
1437
- const uri = resolveImageUri(container["ContainerUri"], resources, region, imageContext);
1438
- if (uri === void 0) throw new AgentCoreResolutionError(`AgentCore Runtime '${logicalId}' in ${stackName} has a ContainerConfiguration.ContainerUri that ${getEmbedConfig().cliName} invoke-agentcore cannot resolve. v1 resolves a literal image URI, an Fn::Sub asset URI (the fromAsset / Dockerfile path), and an imported-ECR Fn::Join. A same-stack AWS::ECR::Repository reference is not supported — build the agent as a fromAsset image, or pin a literal / imported ECR image URI.`);
1446
+ const uri = resolveImageUri(container["ContainerUri"], logicalId, stackName, resources, region, imageContext);
1447
+ if (uri === void 0) throw new AgentCoreResolutionError(`AgentCore Runtime '${logicalId}' in ${stackName} has a ContainerConfiguration.ContainerUri that ${getEmbedConfig().cliName} invoke-agentcore cannot resolve. v1 resolves a literal image URI, an Fn::Sub asset URI (the fromAsset / Dockerfile path), an imported-ECR Fn::Join, and a same-stack AWS::ECR::Repository Fn::Join under --from-cfn-stack — build the agent as a fromAsset image, or pin a literal / imported ECR image URI.`);
1439
1448
  return {
1440
1449
  kind: "container",
1441
1450
  containerUri: uri
@@ -1509,9 +1518,12 @@ function isFromS3BucketIntrinsic(value) {
1509
1518
  * an `Fn::Sub` (the template returned verbatim — `${AWS::*}` placeholders
1510
1519
  * are kept for asset-hash matching / later ECR substitution), and the
1511
1520
  * canonical CDK `Fn::Join` ECR shape via the shared {@link intrinsic-image}
1512
- * resolver. Returns undefined when none apply.
1521
+ * resolver. A same-stack `AWS::ECR::Repository` Fn::Join without
1522
+ * `--from-cfn-stack` throws an `AgentCoreResolutionError` pointing the user
1523
+ * at the right flag (mirroring `cdkl run-task`'s shape). Returns undefined
1524
+ * when none of the supported shapes apply.
1513
1525
  */
1514
- function resolveImageUri(value, resources, region, imageContext) {
1526
+ function resolveImageUri(value, logicalId, stackName, resources, region, imageContext) {
1515
1527
  if (typeof value === "string" && value.length > 0) return value;
1516
1528
  if (!value || typeof value !== "object" || Array.isArray(value)) return void 0;
1517
1529
  const obj = value;
@@ -1524,6 +1536,7 @@ function resolveImageUri(value, resources, region, imageContext) {
1524
1536
  return pseudoParameters ? { pseudoParameters } : void 0;
1525
1537
  })());
1526
1538
  if (joinResolved.kind === "resolved") return joinResolved.uri;
1539
+ if (joinResolved.kind === "needs-state") throw new AgentCoreResolutionError(`AgentCore Runtime '${logicalId}' in ${stackName} references same-stack ECR repository '${joinResolved.repoLogicalId}' via Fn::Join. ${getEmbedConfig().cliName} invoke-agentcore cannot resolve the repository URI without state — pass --from-cfn-stack to load the deployed stack state, build via Runtime.fromAsset, or pin a literal / imported ECR image URI.`);
1527
1540
  }
1528
1541
  }
1529
1542
 
@@ -7188,7 +7201,7 @@ async function httpProbe(host, port, timeoutMs) {
7188
7201
  })).text().catch(() => void 0);
7189
7202
  return true;
7190
7203
  } catch (err) {
7191
- if (isTransientNetworkError$2(err)) return false;
7204
+ if (isTransientNetworkError$3(err)) return false;
7192
7205
  throw err;
7193
7206
  } finally {
7194
7207
  clearTimeout(timer);
@@ -7202,7 +7215,7 @@ async function httpProbe(host, port, timeoutMs) {
7202
7215
  * between Docker's port forwarder accepting a TCP connection and the
7203
7216
  * container's RIE process being ready for HTTP.
7204
7217
  */
7205
- function isTransientNetworkError$2(err) {
7218
+ function isTransientNetworkError$3(err) {
7206
7219
  if (!(err instanceof Error)) return false;
7207
7220
  if (err.name === "AbortError") return true;
7208
7221
  if (err.name === "TypeError" && err.message === "fetch failed") return true;
@@ -7989,7 +8002,7 @@ async function pingProbe(host, port, timeoutMs) {
7989
8002
  await response.text().catch(() => void 0);
7990
8003
  return response.status;
7991
8004
  } catch (err) {
7992
- if (isTransientNetworkError$1(err)) return void 0;
8005
+ if (isTransientNetworkError$2(err)) return void 0;
7993
8006
  throw err;
7994
8007
  } finally {
7995
8008
  clearTimeout(timer);
@@ -8001,7 +8014,7 @@ async function pingProbe(host, port, timeoutMs) {
8001
8014
  * `ECONNRESET` / `ECONNREFUSED` / `UND_ERR_SOCKET`. Treat all of those —
8002
8015
  * plus an `AbortError` from the per-probe timeout — as "not ready, retry".
8003
8016
  */
8004
- function isTransientNetworkError$1(err) {
8017
+ function isTransientNetworkError$2(err) {
8005
8018
  if (!(err instanceof Error)) return false;
8006
8019
  if (err.name === "AbortError") return true;
8007
8020
  if (err.name === "TypeError" && err.message === "fetch failed") return true;
@@ -8246,7 +8259,7 @@ async function initializeWithRetry(fetchImpl, url, readyTimeoutMs) {
8246
8259
  lastDetail = `initialize returned HTTP ${response.status}`;
8247
8260
  throw new Error(lastDetail);
8248
8261
  } catch (err) {
8249
- if (!isTransientNetworkError(err)) {
8262
+ if (!isTransientNetworkError$1(err)) {
8250
8263
  if (lastDetail) throw new Error(`MCP initialize at ${url} failed: ${lastDetail}. Check 'docker logs' output.`);
8251
8264
  throw err;
8252
8265
  }
@@ -8281,7 +8294,7 @@ async function postMcp(fetchImpl, url, body, sessionId, timeoutMs) {
8281
8294
  });
8282
8295
  const text = await response.text();
8283
8296
  if (body.id === void 0) return { status: response.status };
8284
- const message = (response.headers.get("content-type") ?? "").includes("text/event-stream") ? parseSseForJsonRpc(text, body.id) : text ? safeJsonParse$1(text) : void 0;
8297
+ const message = (response.headers.get("content-type") ?? "").includes("text/event-stream") ? parseSseForJsonRpc(text, body.id) : text ? safeJsonParse$2(text) : void 0;
8285
8298
  return {
8286
8299
  status: response.status,
8287
8300
  message
@@ -8304,14 +8317,14 @@ function parseSseForJsonRpc(text, id) {
8304
8317
  for (const frame of text.split(/\r?\n\r?\n/)) {
8305
8318
  const data = frame.split(/\r?\n/).filter((line) => line.startsWith("data:")).map((line) => line.slice(5).trimStart()).join("\n");
8306
8319
  if (!data) continue;
8307
- const parsed = safeJsonParse$1(data);
8320
+ const parsed = safeJsonParse$2(data);
8308
8321
  if (parsed === void 0) continue;
8309
8322
  last = parsed;
8310
8323
  if (parsed !== null && typeof parsed === "object" && parsed.id === id) return parsed;
8311
8324
  }
8312
8325
  return last;
8313
8326
  }
8314
- function safeJsonParse$1(text) {
8327
+ function safeJsonParse$2(text) {
8315
8328
  try {
8316
8329
  return JSON.parse(text);
8317
8330
  } catch {
@@ -8325,7 +8338,7 @@ function safeJsonParse$1(text) {
8325
8338
  * per-attempt timeout. Treat all of those — plus the synthetic non-2xx retry
8326
8339
  * — as "not ready, retry".
8327
8340
  */
8328
- function isTransientNetworkError(err) {
8341
+ function isTransientNetworkError$1(err) {
8329
8342
  if (!(err instanceof Error)) return false;
8330
8343
  if (err.name === "AbortError") return true;
8331
8344
  if (err.name === "TypeError" && err.message === "fetch failed") return true;
@@ -8337,6 +8350,111 @@ function isTransientNetworkError(err) {
8337
8350
  return false;
8338
8351
  }
8339
8352
 
8353
+ //#endregion
8354
+ //#region src/local/agentcore-a2a-client.ts
8355
+ /**
8356
+ * Client for the Bedrock AgentCore Runtime A2A protocol contract.
8357
+ *
8358
+ * An A2A-protocol AgentCore Runtime container listens on `0.0.0.0:9000` and
8359
+ * serves the Agent2Agent JSON-RPC 2.0 contract at `POST /` (the root). Each
8360
+ * call is one JSON-RPC request and one JSON-RPC response. Unlike MCP there is
8361
+ * no session lifecycle to negotiate — the request is sent directly. `cdkl
8362
+ * invoke-agentcore` POSTs the method/params from `--event` (defaults to
8363
+ * `agent/getCard`, the agent's discovery card) and prints the response.
8364
+ *
8365
+ * Talking to the local container is **vanilla A2A**: the
8366
+ * `X-Amzn-Bedrock-AgentCore-Runtime-Session-Id` header and the inbound OAuth
8367
+ * bearer are AgentCore managed-plane concerns the front door layers on top,
8368
+ * so a direct local client does not send them.
8369
+ */
8370
+ /** Container port an A2A-protocol AgentCore Runtime listens on. */
8371
+ const A2A_CONTAINER_PORT = 9e3;
8372
+ /** HTTP path of the A2A JSON-RPC endpoint. */
8373
+ const A2A_PATH = "/";
8374
+ /**
8375
+ * Send one JSON-RPC request to a local A2A container and return the parsed
8376
+ * response. The POST is retried while the container boots (there is no
8377
+ * separate readiness endpoint), so this also serves as the wait-for-ready step.
8378
+ */
8379
+ async function a2aInvokeOnce(host, port, request, options = {}) {
8380
+ const fetchImpl = options.fetchImpl ?? fetch;
8381
+ const url = `http://${host}:${port}${"/"}`;
8382
+ const requestTimeoutMs = options.requestTimeoutMs ?? 12e4;
8383
+ const readyTimeoutMs = options.readyTimeoutMs ?? 3e4;
8384
+ const message = await postWithReadyRetry(fetchImpl, url, {
8385
+ jsonrpc: "2.0",
8386
+ id: 1,
8387
+ method: request.method,
8388
+ ...request.params !== void 0 && { params: request.params }
8389
+ }, requestTimeoutMs, readyTimeoutMs);
8390
+ return {
8391
+ ok: !(message !== null && typeof message === "object" && "error" in message),
8392
+ raw: JSON.stringify(message ?? null, null, 2)
8393
+ };
8394
+ }
8395
+ /**
8396
+ * POST a JSON-RPC message, retrying transient connect failures + reachable-
8397
+ * but-non-2xx responses until the container is up. The retry window is
8398
+ * `readyTimeoutMs`; each attempt is bounded by `requestTimeoutMs` (the
8399
+ * per-attempt abort), which protects the user's real (potentially slow)
8400
+ * agent call without misreporting it as "not ready". Connect failures
8401
+ * (ECONNREFUSED) propagate immediately regardless of the abort timer, so
8402
+ * the retry cadence keeps working during boot. The loop exits once a 2xx
8403
+ * arrives (returning the parsed body) or once `readyTimeoutMs` elapses
8404
+ * (throwing the final "did not become ready" error below).
8405
+ */
8406
+ async function postWithReadyRetry(fetchImpl, url, body, requestTimeoutMs, readyTimeoutMs) {
8407
+ const deadline = Date.now() + readyTimeoutMs;
8408
+ let lastDetail = "";
8409
+ while (Date.now() < deadline) {
8410
+ const controller = new AbortController();
8411
+ const timer = setTimeout(() => controller.abort(), requestTimeoutMs);
8412
+ try {
8413
+ const response = await fetchImpl(url, {
8414
+ method: "POST",
8415
+ headers: {
8416
+ "Content-Type": "application/json",
8417
+ Accept: "application/json"
8418
+ },
8419
+ body: JSON.stringify(body),
8420
+ signal: controller.signal
8421
+ });
8422
+ const text = await response.text();
8423
+ if (response.status >= 200 && response.status < 300) {
8424
+ if (!text) return void 0;
8425
+ const parsed = safeJsonParse$1(text);
8426
+ if (parsed === void 0) throw new Error(`A2A POST at ${url} returned HTTP ${response.status} with a non-JSON body: ${text.slice(0, 200)}`);
8427
+ return parsed;
8428
+ }
8429
+ lastDetail = `A2A POST returned HTTP ${response.status}`;
8430
+ } catch (err) {
8431
+ if (!isTransientNetworkError(err)) throw err;
8432
+ lastDetail = err instanceof Error ? err.message : String(err);
8433
+ } finally {
8434
+ clearTimeout(timer);
8435
+ }
8436
+ await setTimeout$1(150);
8437
+ }
8438
+ throw new Error(`A2A server did not become ready on ${url} within ${readyTimeoutMs}ms${lastDetail ? `: ${lastDetail}` : ""}. The container may have exited early or may not serve POST ${"/"} — check 'docker logs'.`);
8439
+ }
8440
+ function safeJsonParse$1(text) {
8441
+ try {
8442
+ return JSON.parse(text);
8443
+ } catch {
8444
+ return;
8445
+ }
8446
+ }
8447
+ function isTransientNetworkError(err) {
8448
+ if (!(err instanceof Error)) return false;
8449
+ if (err.name === "AbortError") return true;
8450
+ if (err.name === "TypeError" && err.message === "fetch failed") return true;
8451
+ const cause = err.cause;
8452
+ if (cause?.code === "ECONNRESET") return true;
8453
+ if (cause?.code === "ECONNREFUSED") return true;
8454
+ if (cause?.code === "UND_ERR_SOCKET") return true;
8455
+ return false;
8456
+ }
8457
+
8340
8458
  //#endregion
8341
8459
  //#region src/local/agentcore-ws-client.ts
8342
8460
  /**
@@ -17827,5 +17945,5 @@ function extractDnsRecords(serviceProps) {
17827
17945
  }
17828
17946
 
17829
17947
  //#endregion
17830
- export { attachAuthorizers as $, parseContextOptions as $n, resolveEcsTaskTarget as $t, buildHttpApiV2Event as A, AGENTCORE_HTTP_PROTOCOL as An, parseEcrUri as At, ConnectionRegistry as B, matchStacks as Bn, removeContainer as Bt, computeRequestIdentityHash as C, listTargets as Cn, singleFlight as Ct, matchRoute as D, discoverRoutes as Dn, waitForRieReady as Dt, invokeTokenAuthorizer as E, parseSelectionExpressionPath as En, invokeRie as Et, tryParseStatus as F, resolveAgentCoreTarget as Fn, appendEnvFlags as Ft, buildDisconnectEvent as G, LocalInvokeBuildError as Gn, resolveRuntimeImage as Gt, handleConnectionsRequest as H, readCdkPathOrUndefined as Hn, streamLogs as Ht, VtlEvaluationError as I, resolveLambdaTarget as In, ensureDockerAvailable as It, buildJwksUrlFromIssuer as J, applyRoleArnIfSet as Jn, applyCrossStackResolverToTask as Jt, buildMessageEvent as K, LocalStartServiceError as Kn, EcsTaskResolutionError as Kt, HOST_GATEWAY_MIN_VERSION as L, derivePseudoParametersFromRegion as Ln, execEnvForSecrets as Lt, evaluateResponseParameters as M, AGENTCORE_RUNTIME_TYPE as Mn, buildDockerImage as Mt, pickResponseTemplate as N, AgentCoreResolutionError as Nn, DockerRunnerError as Nt, translateLambdaResponse as O, pickRefLogicalId as On, architectureToPlatform as Ot, selectIntegrationResponse as P, pickAgentCoreCandidateStack as Pn, SENSITIVE_ENV_KEYS as Pt, verifyJwtViaDiscovery as Q, deprecatedRegionOption as Qn, parseEcsTarget as Qt, probeHostGatewaySupport as R, substituteImagePlaceholders as Rn, pickFreePort as Rt, buildMethodArn as S, countTargets as Sn, writeProfileCredentialsFile as St, invokeRequestAuthorizer as T, discoverWebSocketApisOrThrow as Tn, getDockerImageBySourceHash as Tt, parseConnectionsPath as U, resolveCdkPathToLogicalIds as Un, resolveRuntimeCodeMountPath as Ut, buildMgmtEndpointEnvUrl as V, buildCdkPathIndex as Vn, runDetached as Vt, buildConnectEvent as W, CdkLocalError as Wn, resolveRuntimeFileExtension as Wt, verifyCognitoJwt as X, commonOptions as Xn, derivePartitionAndUrlSuffix as Xt, createJwksCache as Y, appOptions as Yn, checkVolumeHostPath as Yt, verifyJwtAuthorizer as Z, contextOptions as Zn, detectEcsImageResolutionNeeds as Zt, readMtlsMaterialsFromDisk as _, resolveApp as _n, SUPPORTED_CODE_RUNTIMES as _t, createLocalStartApiCommand as a, resolveEnvVars as an, invokeAgentCoreWs as at, resolveServiceIntegrationParameters as b, resolveMultiTarget as bn, renderCodeDockerfile as bt, resolveProfileCredentials as c, createLocalStateProvider as cn, MCP_PROTOCOL_VERSION as ct, attachStageContext as d, resolveCfnFallbackRegion as dn, AGENTCORE_SIGV4_SERVICE as dt, applyDeployedEnvFallback as en, warnIfDeprecatedRegion as er, applyCorsResponseHeaders as et, buildStageMap as f, resolveCfnRegion as fn, signAgentCoreInvocation as ft, groupRoutesByServer as g, resolveSsmParameters as gn, downloadAndExtractS3Bundle as gt, filterRoutesByApiIdentifiers as h, collectSsmParameterRefs as hn, waitForAgentCorePing as ht, getPublishedHostPort as i, substituteEnvVarsFromStateAsync as in, matchPreflight as it, buildRestV1Event as j, AGENTCORE_MCP_PROTOCOL as jn, pullEcrImage as jt, applyAuthorizerOverlay as k, resolveLambdaArnIntrinsic as kn, buildContainerImage as kt, createAuthorizerCache as l, isCfnFlagPresent as ln, mcpInvokeOnce as lt, filterRoutesByApiIdentifier as m, CfnLocalStateProvider as mn, invokeAgentCore as mt, CloudMapRegistry as n, substituteAgainstStateAsync as nn, buildCorsConfigFromCloudFrontChain as nt, createWatchPredicates as o, materializeLayerFromArn as on, MCP_CONTAINER_PORT as ot, availableApiIdentifiers as p, resolveCfnStackName as pn, AGENTCORE_SESSION_ID_HEADER as pt, buildCognitoJwksUrl as q, withErrorHandling as qn, TASK_ROLE_ACCOUNT_PLACEHOLDER as qt, getContainerNetworkIp as r, substituteEnvVarsFromState as rn, isFunctionUrlOacFronted as rt, resolveApiTargetSubset as s, LocalStateSourceError as sn, MCP_PATH as st, buildCloudMapIndex as t, substituteAgainstState as tn, buildCorsConfigByApiId as tt, createFileWatcher as u, rejectExplicitCfnStackWithMultipleStacks as un, parseSseForJsonRpc as ut, startApiServer as v, resolveWatchConfig as vn, buildAgentCoreCodeImage as vt, evaluateCachedLambdaPolicy as w, discoverWebSocketApis as wn, AssetManifestLoader as wt, defaultCredentialsLoader as x, resolveSingleTarget as xn, toCmdArgv as xt, resolveSelectionExpression as y, Synthesizer as yn, computeCodeImageTag as yt, bufferToBody as z, tryResolveImageFnJoin as zn, pullImage as zt };
17831
- //# sourceMappingURL=cloud-map-resolver-BGl1bgxF.js.map
17948
+ export { attachAuthorizers as $, applyRoleArnIfSet as $n, derivePartitionAndUrlSuffix as $t, buildHttpApiV2Event as A, discoverRoutes as An, waitForRieReady as At, ConnectionRegistry as B, resolveAgentCoreTarget as Bn, execEnvForSecrets as Bt, computeRequestIdentityHash as C, resolveMultiTarget as Cn, renderCodeDockerfile as Ct, matchRoute as D, discoverWebSocketApis as Dn, AssetManifestLoader as Dt, invokeTokenAuthorizer as E, listTargets as En, singleFlight as Et, tryParseStatus as F, AGENTCORE_HTTP_PROTOCOL as Fn, buildDockerImage as Ft, buildDisconnectEvent as G, matchStacks as Gn, streamLogs as Gt, handleConnectionsRequest as H, derivePseudoParametersFromRegion as Hn, pullImage as Ht, VtlEvaluationError as I, AGENTCORE_MCP_PROTOCOL as In, DockerRunnerError as It, buildJwksUrlFromIssuer as J, resolveCdkPathToLogicalIds as Jn, resolveRuntimeImage as Jt, buildMessageEvent as K, buildCdkPathIndex as Kn, resolveRuntimeCodeMountPath as Kt, HOST_GATEWAY_MIN_VERSION as L, AGENTCORE_RUNTIME_TYPE as Ln, SENSITIVE_ENV_KEYS as Lt, evaluateResponseParameters as M, resolveLambdaArnIntrinsic as Mn, buildContainerImage as Mt, pickResponseTemplate as N, AGENTCORE_A2A_PROTOCOL as Nn, parseEcrUri as Nt, translateLambdaResponse as O, discoverWebSocketApisOrThrow as On, getDockerImageBySourceHash as Ot, selectIntegrationResponse as P, AGENTCORE_AGUI_PROTOCOL as Pn, pullEcrImage as Pt, verifyJwtViaDiscovery as Q, withErrorHandling as Qn, checkVolumeHostPath as Qt, probeHostGatewaySupport as R, AgentCoreResolutionError as Rn, appendEnvFlags as Rt, buildMethodArn as S, Synthesizer as Sn, computeCodeImageTag as St, invokeRequestAuthorizer as T, countTargets as Tn, writeProfileCredentialsFile as Tt, parseConnectionsPath as U, substituteImagePlaceholders as Un, removeContainer as Ut, buildMgmtEndpointEnvUrl as V, resolveLambdaTarget as Vn, pickFreePort as Vt, buildConnectEvent as W, tryResolveImageFnJoin as Wn, runDetached as Wt, verifyCognitoJwt as X, LocalInvokeBuildError as Xn, TASK_ROLE_ACCOUNT_PLACEHOLDER as Xt, createJwksCache as Y, CdkLocalError as Yn, EcsTaskResolutionError as Yt, verifyJwtAuthorizer as Z, LocalStartServiceError as Zn, applyCrossStackResolverToTask as Zt, readMtlsMaterialsFromDisk as _, CfnLocalStateProvider as _n, invokeAgentCore as _t, createLocalStartApiCommand as a, substituteAgainstStateAsync as an, warnIfDeprecatedRegion as ar, invokeAgentCoreWs as at, resolveServiceIntegrationParameters as b, resolveApp as bn, SUPPORTED_CODE_RUNTIMES as bt, resolveProfileCredentials as c, resolveEnvVars as cn, a2aInvokeOnce as ct, attachStageContext as d, createLocalStateProvider as dn, MCP_PROTOCOL_VERSION as dt, detectEcsImageResolutionNeeds as en, appOptions as er, applyCorsResponseHeaders as et, buildStageMap as f, isCfnFlagPresent as fn, mcpInvokeOnce as ft, groupRoutesByServer as g, resolveCfnStackName as gn, AGENTCORE_SESSION_ID_HEADER as gt, filterRoutesByApiIdentifiers as h, resolveCfnRegion as hn, signAgentCoreInvocation as ht, getPublishedHostPort as i, substituteAgainstState as in, parseContextOptions as ir, matchPreflight as it, buildRestV1Event as j, pickRefLogicalId as jn, architectureToPlatform as jt, applyAuthorizerOverlay as k, parseSelectionExpressionPath as kn, invokeRie as kt, createAuthorizerCache as l, materializeLayerFromArn as ln, MCP_CONTAINER_PORT as lt, filterRoutesByApiIdentifier as m, resolveCfnFallbackRegion as mn, AGENTCORE_SIGV4_SERVICE as mt, CloudMapRegistry as n, resolveEcsTaskTarget as nn, contextOptions as nr, buildCorsConfigFromCloudFrontChain as nt, createWatchPredicates as o, substituteEnvVarsFromState as on, A2A_CONTAINER_PORT as ot, availableApiIdentifiers as p, rejectExplicitCfnStackWithMultipleStacks as pn, parseSseForJsonRpc as pt, buildCognitoJwksUrl as q, readCdkPathOrUndefined as qn, resolveRuntimeFileExtension as qt, getContainerNetworkIp as r, applyDeployedEnvFallback as rn, deprecatedRegionOption as rr, isFunctionUrlOacFronted as rt, resolveApiTargetSubset as s, substituteEnvVarsFromStateAsync as sn, A2A_PATH as st, buildCloudMapIndex as t, parseEcsTarget as tn, commonOptions as tr, buildCorsConfigByApiId as tt, createFileWatcher as u, LocalStateSourceError as un, MCP_PATH as ut, startApiServer as v, collectSsmParameterRefs as vn, waitForAgentCorePing as vt, evaluateCachedLambdaPolicy as w, resolveSingleTarget as wn, toCmdArgv as wt, defaultCredentialsLoader as x, resolveWatchConfig as xn, buildAgentCoreCodeImage as xt, resolveSelectionExpression as y, resolveSsmParameters as yn, downloadAndExtractS3Bundle as yt, bufferToBody as z, pickAgentCoreCandidateStack as zn, ensureDockerAvailable as zt };
17949
+ //# sourceMappingURL=cloud-map-resolver-DjKCYyIq.js.map