cdk-local 0.71.1 → 0.71.2
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/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/internal.d.ts +6 -2
- package/dist/internal.d.ts.map +1 -1
- package/dist/internal.js +2 -2
- package/dist/{local-list-EOmrWeTr.js → local-list-BS463YYd.js} +95 -3
- package/dist/local-list-BS463YYd.js.map +1 -0
- package/dist/{local-list-Czcuil71.d.ts → local-list-DA9d0XQR.d.ts} +120 -2
- package/dist/local-list-DA9d0XQR.d.ts.map +1 -0
- package/package.json +1 -1
- package/dist/local-list-Czcuil71.d.ts.map +0 -1
- package/dist/local-list-EOmrWeTr.js.map +0 -1
package/dist/cli.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
2
|
+
import { M as createLocalInvokeAgentCoreCommand, P as createLocalStartApiCommand, en as createLocalInvokeCommand, f as createLocalStartServiceCommand, k as createLocalRunTaskCommand, n as createLocalListCommand, o as createLocalStartAlbCommand } from "./local-list-BS463YYd.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.71.
|
|
7
|
+
program.name("cdkl").description("Run AWS CDK stacks locally with Docker.").version("0.71.2");
|
|
8
8
|
program.addCommand(createLocalInvokeCommand());
|
|
9
9
|
program.addCommand(createLocalInvokeAgentCoreCommand());
|
|
10
10
|
program.addCommand(createLocalStartApiCommand());
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $n as LocalStateProviderFactory, $t as CreateLocalInvokeAgentCoreCommandOptions, Gn as createLocalInvokeCommand, J as TargetEntry, Jn as CdkLocalEmbedConfig, Qn as ExtraStateProviders, Sr as CloudFormationTemplate, Un as CreateLocalInvokeCommandOptions, X as countTargets, Xn as resetEmbedConfig, Y as TargetListing, Yn as getEmbedConfig, Z as listTargets, Zn as setEmbedConfig, _r as SubstitutionContext, a as formatTargetListing, ar as resolveCfnFallbackRegion, at as CreateLocalStartApiCommandOptions, br as substituteEnvVarsFromState, cr as LocalStateProvider, ct as createLocalStartApiCommand, dr as SsmParameterRef, er as LocalStateSourceError, et as CreateLocalRunTaskCommandOptions, f as CreateLocalStartServiceCommandOptions, fr as collectSsmParameterRefs, gr as StateEnvSubstitutionAudit, hr as PseudoParameters, i as createLocalListCommand, ir as rejectExplicitCfnStackWithMultipleStacks, l as createLocalStartAlbCommand, lr as LocalStateRecord, m as createLocalStartServiceCommand, mr as CrossStackResolver, n as FormatTargetListingOptions, nr as createLocalStateProvider, nt as createLocalRunTaskCommand, o as CreateLocalStartAlbCommandOptions, or as resolveCfnRegion, pr as resolveSsmParameters, rr as isCfnFlagPresent, sr as resolveCfnStackName, t as CreateLocalListCommandOptions, tn as createLocalInvokeAgentCoreCommand, tr as LocalStateSourceOptions, ur as ResolvedSsmParameters, vr as substituteAgainstState, xr as substituteEnvVarsFromStateAsync, yr as substituteAgainstStateAsync } from "./local-list-DA9d0XQR.js";
|
|
2
2
|
import { CloudFormationClient } from "@aws-sdk/client-cloudformation";
|
|
3
3
|
|
|
4
4
|
//#region src/local/cfn-local-state-provider.d.ts
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { c as getEmbedConfig, l as resetEmbedConfig, u as setEmbedConfig } from "./docker-cmd-voNPrcRh.js";
|
|
2
|
-
import {
|
|
2
|
+
import { En as listTargets, M as createLocalInvokeAgentCoreCommand, P as createLocalStartApiCommand, Sn as resolveSsmParameters, Tn as countTargets, _n as resolveCfnFallbackRegion, bn as CfnLocalStateProvider, cn as substituteAgainstStateAsync, en as createLocalInvokeCommand, f as createLocalStartServiceCommand, gn as rejectExplicitCfnStackWithMultipleStacks, hn as isCfnFlagPresent, k as createLocalRunTaskCommand, ln as substituteEnvVarsFromState, mn as createLocalStateProvider, n as createLocalListCommand, o as createLocalStartAlbCommand, pn as LocalStateSourceError, r as formatTargetListing, sn as substituteAgainstState, un as substituteEnvVarsFromStateAsync, vn as resolveCfnRegion, xn as collectSsmParameterRefs, yn as resolveCfnStackName } from "./local-list-BS463YYd.js";
|
|
3
3
|
|
|
4
4
|
export { CfnLocalStateProvider, LocalStateSourceError, collectSsmParameterRefs, countTargets, createLocalInvokeAgentCoreCommand, createLocalInvokeCommand, createLocalListCommand, createLocalRunTaskCommand, createLocalStartAlbCommand, createLocalStartApiCommand, createLocalStartServiceCommand, createLocalStateProvider, formatTargetListing, getEmbedConfig, isCfnFlagPresent, listTargets, rejectExplicitCfnStackWithMultipleStacks, resetEmbedConfig, resolveCfnFallbackRegion, resolveCfnRegion, resolveCfnStackName, resolveSsmParameters, setEmbedConfig, substituteAgainstState, substituteAgainstStateAsync, substituteEnvVarsFromState, substituteEnvVarsFromStateAsync };
|
package/dist/internal.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $
|
|
1
|
+
import { $ as LocalInvokeBuildError, A as buildEcsImageResolutionContext, An as AGENTCORE_RUNTIME_TYPE, At as AuthorizerInfo, B as ReloadVerdict, Bn as formatStateRemedy, Bt as matchPreflight, C as PlannedForwardAction, Cn as InvokeAgentCoreOptions, Ct as createJwksCache, D as PlannedRedirectAction, Dn as AGENTCORE_AGUI_PROTOCOL, Dt as AuthorizerCache, E as PlannedLambdaForwardTarget, En as AGENTCORE_A2A_PROTOCOL, Et as verifyJwtViaDiscovery, F as FrontDoorForwardTarget, Fn as ResolvedAgentCoreRuntime, Ft as CorsConfig, G as CloudMapRegistry, Gt as evaluateResponseParameters, H as SOFT_RELOAD_COMPLETION_LOG_SUFFIX, Hn as tryResolveImageFnJoin, Ht as RestV1IntegrationConfig, I as ResolvedListenerAction, In as pickAgentCoreCandidateStack, It as applyCorsResponseHeaders, J as TargetEntry, Jt as tryParseStatus, K as RegistrationHandle, Kn as ResolvedArnLambdaLayer, Kt as pickResponseTemplate, L as isApplicationLoadBalancer, Ln as resolveAgentCoreTarget, Lt as buildCorsConfigByApiId, M as parseRestartPolicy, Mn as AgentCoreCustomClaim, Mt as LambdaTokenAuthorizer, N as resolveSharedSidecarCredentials, Nn as AgentCoreJwtAuthorizer, Nt as RouteWithAuth, O as ServiceBoot, On as AGENTCORE_HTTP_PROTOCOL, Ot as CachedAuthorizerResult, P as runEcsServiceEmulator, Pn as AgentCoreResolutionError, Pt as attachAuthorizers, Q as CdkLocalError, Qt as resolveWatchConfig, R as resolveAlbFrontDoor, Rn as ImageResolutionContext, Rt as buildCorsConfigFromCloudFrontChain, S as PlannedFixedResponseAction, Sn as AgentCoreInvokeResult, Sr as CloudFormationTemplate, St as buildJwksUrlFromIssuer, T as PlannedFrontDoorListener, Tn as waitForAgentCorePing, Tt as verifyJwtAuthorizer, U as CloudMapIndex, Ut as discoverRoutes, V as classifySourceChange, Vn as substituteImagePlaceholders, Vt as DiscoveredRoute, W as buildCloudMapIndex, Wn as addInvokeSpecificOptions, Wt as IntegrationResponseEntry, Xt as ContainerPool, Yt as VtlEvaluationError, Zt as CdkWatchConfig, _ as EmulatorStrategy, _n as McpInvokeResult, _t as defaultCredentialsLoader, an as InvokeAgentCoreWsOptions, b as PlannedAction, bn as parseSseForJsonRpc, bt as JwtCustomClaim, c as albStrategy, cn as A2A_PATH, d as resolveAlbTarget, dn as A2aJsonRpcRequest, dt as MtlsServerConfig, en as addInvokeAgentCoreSpecificOptions, fn as a2aInvokeOnce, ft as ServerState, g as EcsServiceEmulatorOptions, gn as McpInvokeOptions, gt as CredentialsLoader, h as serviceStrategy, hn as MCP_PROTOCOL_VERSION, ht as startApiServer, in as AgentCoreWsResult, it as ApiTargetSubset, j as parseMaxTasks, jn as AgentCoreCodeArtifact, jt as LambdaRequestAuthorizer, k as addCommonEcsServiceOptions, kn as AGENTCORE_MCP_PROTOCOL, kt as createAuthorizerCache, ln as A2aInvokeOptions, lt as createWatchPredicates, mn as MCP_PATH, mt as readMtlsMaterialsFromDisk, nn as EnvOverrideFile, on as invokeAgentCoreWs, ot as WatchPredicates, p as addStartServiceSpecificOptions, pn as MCP_CONTAINER_PORT, pt as StartedApiServer, q as ResolvedEcsService, qn as StackInfo, qt as selectIntegrationResponse, r as addListSpecificOptions, rn as resolveEnvVars, rt as EcsTaskResolutionError, s as addAlbSpecificOptions, sn as A2A_CONTAINER_PORT, st as addStartApiSpecificOptions, tt as addRunTaskSpecificOptions, u as parseLbPortOverrides, un as A2aInvokeResult, ut as resolveApiTargetSubset, v as FrontDoorPlan, vn as McpJsonRpcRequest, vt as DiscoveryJwtAuthorizer, w as PlannedForwardTarget, wn as invokeAgentCore, wt as verifyCognitoJwt, x as PlannedEcsForwardTarget, xn as AGENTCORE_SESSION_ID_HEADER, xt as buildCognitoJwksUrl, y as MAX_TASKS_SUBNET_RANGE_CAP, yn as mcpInvokeOnce, yt as JwksCache, z as ReloadAssetContext, zn as derivePseudoParametersFromRegion, zt as isFunctionUrlOacFronted } from "./local-list-DA9d0XQR.js";
|
|
2
2
|
import { WebSocket } from "ws";
|
|
3
3
|
import { IncomingMessage, ServerResponse } from "node:http";
|
|
4
4
|
|
|
@@ -434,6 +434,10 @@ interface FileWatcherOptions {
|
|
|
434
434
|
}
|
|
435
435
|
declare function createFileWatcher(options: FileWatcherOptions): FileWatcher;
|
|
436
436
|
//#endregion
|
|
437
|
+
//#region src/local/image-pin-detector.d.ts
|
|
438
|
+
declare function isLocalCdkAssetImage(service: ResolvedEcsService): boolean;
|
|
439
|
+
declare function describePinnedImageUri(service: ResolvedEcsService): string | undefined;
|
|
440
|
+
//#endregion
|
|
437
441
|
//#region src/local/target-picker.d.ts
|
|
438
442
|
interface ResolveParams {
|
|
439
443
|
entries: TargetEntry[];
|
|
@@ -446,5 +450,5 @@ declare function resolveSingleTarget(provided: string | undefined, params: Resol
|
|
|
446
450
|
//#region src/local/container-log-streamer.d.ts
|
|
447
451
|
declare function attachContainerLogStreamer(prefix: string, containerId: string): () => void;
|
|
448
452
|
//#endregion
|
|
449
|
-
export { A2A_CONTAINER_PORT, A2A_PATH, type A2aInvokeOptions, type A2aInvokeResult, type A2aJsonRpcRequest, AGENTCORE_A2A_PROTOCOL, AGENTCORE_AGUI_PROTOCOL, AGENTCORE_HTTP_PROTOCOL, AGENTCORE_MCP_PROTOCOL, AGENTCORE_RUNTIME_TYPE, AGENTCORE_SESSION_ID_HEADER, AGENTCORE_SIGV4_SERVICE, type AgentCoreCodeArtifact, type AgentCoreCustomClaim, type AgentCoreInvokeResult, type AgentCoreJwtAuthorizer, AgentCoreResolutionError, type AgentCoreWsResult, type ApiServerGroup, type ApiTargetSubset, type AuthorizerCache, type AuthorizerEventOverlay, type AuthorizerInfo, type BuildAgentCoreCodeImageOptions, type BuildContainerImageOptions, type CachedAuthorizerResult, type CdkWatchConfig, type CloudMapIndex, CloudMapRegistry, ConnectionRegistry, type ConnectionRegistryEntry, type CorsConfig, type CredentialsLoader, type DiscoveredRoute, type DiscoveredWebSocketApi, type DiscoveryJwtAuthorizer, type DownloadS3BundleOptions, type EcsServiceEmulatorOptions, EcsTaskResolutionError, type EmulatorStrategy, type EnvOverrideFile, type ExtractedS3Bundle, type FileWatcher, type FileWatcherOptions, type FrontDoorForwardTarget, type FrontDoorPlan, HOST_GATEWAY_MIN_VERSION, type HttpRequestSnapshot, type ImageResolutionContext, type IntegrationResponseEntry, type InvokeAgentCoreOptions, type InvokeAgentCoreWsOptions, type JwksCache, type JwtCustomClaim, type LambdaArnResolveOutcome, LocalInvokeBuildError, MAX_TASKS_SUBNET_RANGE_CAP, MCP_CONTAINER_PORT, MCP_PATH, MCP_PROTOCOL_VERSION, type MatchedRouteContext, type McpInvokeOptions, type McpInvokeResult, type McpJsonRpcRequest, type MtlsServerConfig, type PlannedAction, type PlannedEcsForwardTarget, type PlannedFixedResponseAction, type PlannedForwardAction, type PlannedForwardTarget, type PlannedFrontDoorListener, type PlannedLambdaForwardTarget, type PlannedRedirectAction, type RegistrationHandle, type ReloadAssetContext, type ReloadVerdict, type RequestParameterContext, type ResolveParametersOutcome, type ResolvedAgentCoreRuntime, type ResolvedListenerAction, type ResolvedStage, type RestV1IntegrationConfig, type RouteMatchResult, type RouteWithAuth, type S3BundleCredentials, type S3BundleLocation, SOFT_RELOAD_COMPLETION_LOG_SUFFIX, SUPPORTED_CODE_RUNTIMES, type ServerState, type ServiceBoot, type SigV4Credentials, type SignAgentCoreInvocationOptions, type SignedAgentCoreHeaders, type StartedApiServer, type TranslatedHttpResponse, VtlEvaluationError, type WatchPredicates, type WebSocketHandshakeSnapshot, type WebSocketLambdaEvent, type WebSocketRouteEntry, a2aInvokeOnce, addAlbSpecificOptions, addCommonEcsServiceOptions, addInvokeAgentCoreSpecificOptions, addInvokeSpecificOptions, addListSpecificOptions, addRunTaskSpecificOptions, addStartApiSpecificOptions, addStartServiceSpecificOptions, albStrategy, applyAuthorizerOverlay, applyCorsResponseHeaders, architectureToPlatform, attachAuthorizers, attachContainerLogStreamer, attachStageContext, availableApiIdentifiers, bufferToBody, buildAgentCoreCodeImage, buildCloudMapIndex, buildCognitoJwksUrl, buildConnectEvent, buildContainerImage, buildCorsConfigByApiId, buildCorsConfigFromCloudFrontChain, buildDisconnectEvent, buildEcsImageResolutionContext, buildHttpApiV2Event, buildJwksUrlFromIssuer, buildMessageEvent, buildMethodArn, buildMgmtEndpointEnvUrl, buildRestV1Event, buildStageMap, classifySourceChange, computeCodeImageTag, computeRequestIdentityHash, createAuthorizerCache, createFileWatcher, createJwksCache, createWatchPredicates, defaultCredentialsLoader, derivePseudoParametersFromRegion, discoverRoutes, discoverWebSocketApis, discoverWebSocketApisOrThrow, downloadAndExtractS3Bundle, evaluateCachedLambdaPolicy, evaluateResponseParameters, filterRoutesByApiIdentifier, filterRoutesByApiIdentifiers, formatStateRemedy, getContainerNetworkIp, groupRoutesByServer, handleConnectionsRequest, invokeAgentCore, invokeAgentCoreWs, invokeRequestAuthorizer, invokeTokenAuthorizer, isApplicationLoadBalancer, isFunctionUrlOacFronted, matchPreflight, matchRoute, materializeLayerFromArn, mcpInvokeOnce, parseConnectionsPath, parseLbPortOverrides, parseMaxTasks, parseRestartPolicy, parseSelectionExpressionPath, parseSseForJsonRpc, pickAgentCoreCandidateStack, pickRefLogicalId, pickResponseTemplate, probeHostGatewaySupport, readMtlsMaterialsFromDisk, renderCodeDockerfile, resolveAgentCoreTarget, resolveAlbFrontDoor, resolveAlbTarget, resolveApiTargetSubset, resolveEnvVars, resolveLambdaArnIntrinsic, resolveRuntimeCodeMountPath, resolveRuntimeFileExtension, resolveRuntimeImage, resolveSelectionExpression, resolveServiceIntegrationParameters, resolveSharedSidecarCredentials, resolveSingleTarget, resolveWatchConfig, runEcsServiceEmulator, selectIntegrationResponse, serviceStrategy, signAgentCoreInvocation, startApiServer, substituteImagePlaceholders, toCmdArgv, translateLambdaResponse, tryParseStatus, tryResolveImageFnJoin, verifyCognitoJwt, verifyJwtAuthorizer, verifyJwtViaDiscovery, waitForAgentCorePing };
|
|
453
|
+
export { A2A_CONTAINER_PORT, A2A_PATH, type A2aInvokeOptions, type A2aInvokeResult, type A2aJsonRpcRequest, AGENTCORE_A2A_PROTOCOL, AGENTCORE_AGUI_PROTOCOL, AGENTCORE_HTTP_PROTOCOL, AGENTCORE_MCP_PROTOCOL, AGENTCORE_RUNTIME_TYPE, AGENTCORE_SESSION_ID_HEADER, AGENTCORE_SIGV4_SERVICE, type AgentCoreCodeArtifact, type AgentCoreCustomClaim, type AgentCoreInvokeResult, type AgentCoreJwtAuthorizer, AgentCoreResolutionError, type AgentCoreWsResult, type ApiServerGroup, type ApiTargetSubset, type AuthorizerCache, type AuthorizerEventOverlay, type AuthorizerInfo, type BuildAgentCoreCodeImageOptions, type BuildContainerImageOptions, type CachedAuthorizerResult, type CdkWatchConfig, type CloudMapIndex, CloudMapRegistry, ConnectionRegistry, type ConnectionRegistryEntry, type CorsConfig, type CredentialsLoader, type DiscoveredRoute, type DiscoveredWebSocketApi, type DiscoveryJwtAuthorizer, type DownloadS3BundleOptions, type EcsServiceEmulatorOptions, EcsTaskResolutionError, type EmulatorStrategy, type EnvOverrideFile, type ExtractedS3Bundle, type FileWatcher, type FileWatcherOptions, type FrontDoorForwardTarget, type FrontDoorPlan, HOST_GATEWAY_MIN_VERSION, type HttpRequestSnapshot, type ImageResolutionContext, type IntegrationResponseEntry, type InvokeAgentCoreOptions, type InvokeAgentCoreWsOptions, type JwksCache, type JwtCustomClaim, type LambdaArnResolveOutcome, LocalInvokeBuildError, MAX_TASKS_SUBNET_RANGE_CAP, MCP_CONTAINER_PORT, MCP_PATH, MCP_PROTOCOL_VERSION, type MatchedRouteContext, type McpInvokeOptions, type McpInvokeResult, type McpJsonRpcRequest, type MtlsServerConfig, type PlannedAction, type PlannedEcsForwardTarget, type PlannedFixedResponseAction, type PlannedForwardAction, type PlannedForwardTarget, type PlannedFrontDoorListener, type PlannedLambdaForwardTarget, type PlannedRedirectAction, type RegistrationHandle, type ReloadAssetContext, type ReloadVerdict, type RequestParameterContext, type ResolveParametersOutcome, type ResolvedAgentCoreRuntime, type ResolvedListenerAction, type ResolvedStage, type RestV1IntegrationConfig, type RouteMatchResult, type RouteWithAuth, type S3BundleCredentials, type S3BundleLocation, SOFT_RELOAD_COMPLETION_LOG_SUFFIX, SUPPORTED_CODE_RUNTIMES, type ServerState, type ServiceBoot, type SigV4Credentials, type SignAgentCoreInvocationOptions, type SignedAgentCoreHeaders, type StartedApiServer, type TranslatedHttpResponse, VtlEvaluationError, type WatchPredicates, type WebSocketHandshakeSnapshot, type WebSocketLambdaEvent, type WebSocketRouteEntry, a2aInvokeOnce, addAlbSpecificOptions, addCommonEcsServiceOptions, addInvokeAgentCoreSpecificOptions, addInvokeSpecificOptions, addListSpecificOptions, addRunTaskSpecificOptions, addStartApiSpecificOptions, addStartServiceSpecificOptions, albStrategy, applyAuthorizerOverlay, applyCorsResponseHeaders, architectureToPlatform, attachAuthorizers, attachContainerLogStreamer, attachStageContext, availableApiIdentifiers, bufferToBody, buildAgentCoreCodeImage, buildCloudMapIndex, buildCognitoJwksUrl, buildConnectEvent, buildContainerImage, buildCorsConfigByApiId, buildCorsConfigFromCloudFrontChain, buildDisconnectEvent, buildEcsImageResolutionContext, buildHttpApiV2Event, buildJwksUrlFromIssuer, buildMessageEvent, buildMethodArn, buildMgmtEndpointEnvUrl, buildRestV1Event, buildStageMap, classifySourceChange, computeCodeImageTag, computeRequestIdentityHash, createAuthorizerCache, createFileWatcher, createJwksCache, createWatchPredicates, defaultCredentialsLoader, derivePseudoParametersFromRegion, describePinnedImageUri, discoverRoutes, discoverWebSocketApis, discoverWebSocketApisOrThrow, downloadAndExtractS3Bundle, evaluateCachedLambdaPolicy, evaluateResponseParameters, filterRoutesByApiIdentifier, filterRoutesByApiIdentifiers, formatStateRemedy, getContainerNetworkIp, groupRoutesByServer, handleConnectionsRequest, invokeAgentCore, invokeAgentCoreWs, invokeRequestAuthorizer, invokeTokenAuthorizer, isApplicationLoadBalancer, isFunctionUrlOacFronted, isLocalCdkAssetImage, matchPreflight, matchRoute, materializeLayerFromArn, mcpInvokeOnce, parseConnectionsPath, parseLbPortOverrides, parseMaxTasks, parseRestartPolicy, parseSelectionExpressionPath, parseSseForJsonRpc, pickAgentCoreCandidateStack, pickRefLogicalId, pickResponseTemplate, probeHostGatewaySupport, readMtlsMaterialsFromDisk, renderCodeDockerfile, resolveAgentCoreTarget, resolveAlbFrontDoor, resolveAlbTarget, resolveApiTargetSubset, resolveEnvVars, resolveLambdaArnIntrinsic, resolveRuntimeCodeMountPath, resolveRuntimeFileExtension, resolveRuntimeImage, resolveSelectionExpression, resolveServiceIntegrationParameters, resolveSharedSidecarCredentials, resolveSingleTarget, resolveWatchConfig, runEcsServiceEmulator, selectIntegrationResponse, serviceStrategy, signAgentCoreInvocation, startApiServer, substituteImagePlaceholders, toCmdArgv, translateLambdaResponse, tryParseStatus, tryResolveImageFnJoin, verifyCognitoJwt, verifyJwtAuthorizer, verifyJwtViaDiscovery, waitForAgentCorePing };
|
|
450
454
|
//# sourceMappingURL=internal.d.ts.map
|
package/dist/internal.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.ts","names":[],"sources":["../src/types/assets.ts","../src/local/intrinsic-utils.ts","../src/local/intrinsic-lambda-arn.ts","../src/local/parameter-mapping.ts","../src/local/api-gateway-response.ts","../src/local/docker-inspect.ts","../src/local/route-matcher.ts","../src/local/api-gateway-event.ts","../src/local/websocket-route-discovery.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-s3-bundle.ts","../src/local/agentcore-sigv4-sign.ts","../src/local/docker-image-builder.ts","../src/local/file-watcher.ts","../src/local/target-picker.ts","../src/local/container-log-streamer.ts"],"mappings":";;;;;UAmEiB,sBAAA;EAKf,SAAA;EAOA,UAAA;EAEA,UAAA;EAEA,iBAAA;EAEA,eAAA,GAAkB,MAAA;EAElB,mBAAA,GAAsB,MAAA;EAEtB,cAAA;EAEA,kBAAA,GAAqB,MAAA;EAErB,WAAA;EAEA,QAAA;EAEA,aAAA;EAEA,SAAA,GAAY,iBAAA;EAEZ,OAAA,GAAU,iBAAA;EAEV,aAAA;AAAA;AAAA,UAOe,iBAAA;EAMf,IAAA;EAKA,MAAA,GAAS,MAAA;AAAA;;;iBChHK,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,E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A,aAAA;EASA,OAAA,IAAW,IAAA;EAWX,aAAA,IAAiB,IAAA;AAAA;AAAA,iBAeH,iBAAA,CAAkB,OAAA,EAAS,kBAAA,GAAqB,WAAA;;;
|
|
1
|
+
{"version":3,"file":"internal.d.ts","names":[],"sources":["../src/types/assets.ts","../src/local/intrinsic-utils.ts","../src/local/intrinsic-lambda-arn.ts","../src/local/parameter-mapping.ts","../src/local/api-gateway-response.ts","../src/local/docker-inspect.ts","../src/local/route-matcher.ts","../src/local/api-gateway-event.ts","../src/local/websocket-route-discovery.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-s3-bundle.ts","../src/local/agentcore-sigv4-sign.ts","../src/local/docker-image-builder.ts","../src/local/file-watcher.ts","../src/local/image-pin-detector.ts","../src/local/target-picker.ts","../src/local/container-log-streamer.ts"],"mappings":";;;;;UAmEiB,sBAAA;EAKf,SAAA;EAOA,UAAA;EAEA,UAAA;EAEA,iBAAA;EAEA,eAAA,GAAkB,MAAA;EAElB,mBAAA,GAAsB,MAAA;EAEtB,cAAA;EAEA,kBAAA,GAAqB,MAAA;EAErB,WAAA;EAEA,QAAA;EAEA,aAAA;EAEA,SAAA,GAAY,iBAAA;EAEZ,OAAA,GAAU,iBAAA;EAEV,aAAA;AAAA;AAAA,UAOe,iBAAA;EAMf,IAAA;EAKA,MAAA,GAAS,MAAA;AAAA;;;iBChHK,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,WAA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AWX,aAAA,IAAiB,IAAA;AAAA;AAAA,iBAeH,iBAAA,CAAkB,OAAA,EAAS,kBAAA,GAAqB,WAAA;;;iBCzBhD,oBAAA,CAAqB,OAAA,EAAS,kBAAA;AAAA,iBAgB9B,sBAAA,CAAuB,OAAA,EAAS,kBAAA;;;UCsGtC,aAAA;EAER,OAAA,EAAS,WAAA;EAET,OAAA;EAEA,IAAA;EAEA,SAAA,QAAiB,aAAA;AAAA;AAAA,iBAyBG,mBAAA,CACpB,QAAA,sBACA,MAAA,EAAQ,aAAA,GACP,OAAA;;;iBClKa,0BAAA,CAA2B,MAAA,UAAgB,WAAA"}
|
package/dist/internal.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as invokeRequestAuthorizer, $t as addInvokeSpecificOptions, A as attachContainerLogStreamer, An as discoverRoutes, At as buildCorsConfigFromCloudFrontChain, B as buildStageMap, Bn as resolveAgentCoreTarget, Bt as mcpInvokeOnce, C as buildCloudMapIndex, Cn as resolveWatchConfig, Ct as createJwksCache, D as getContainerNetworkIp, Dn as discoverWebSocketApis, Dt as attachAuthorizers, E as SOFT_RELOAD_COMPLETION_LOG_SUFFIX, Et as verifyJwtViaDiscovery, F as createWatchPredicates, Fn as AGENTCORE_HTTP_PROTOCOL, Ft as A2A_PATH, G as readMtlsMaterialsFromDisk, Gn as LocalInvokeBuildError, Gt as invokeAgentCore, H as filterRoutesByApiIdentifier, Hn as formatStateRemedy, Ht as AGENTCORE_SIGV4_SERVICE, I as resolveApiTargetSubset, In as AGENTCORE_MCP_PROTOCOL, It as a2aInvokeOnce, J as resolveServiceIntegrationParameters, Jt as SUPPORTED_CODE_RUNTIMES, K as startApiServer, Kt as waitForAgentCorePing, L as createAuthorizerCache, Ln as AGENTCORE_RUNTIME_TYPE, Lt as MCP_CONTAINER_PORT, Mn as resolveLambdaArnIntrinsic, Mt as matchPreflight, N as addStartApiSpecificOptions, Nn as AGENTCORE_A2A_PROTOCOL, Nt as invokeAgentCoreWs, O as addRunTaskSpecificOptions, On as discoverWebSocketApisOrThrow, Ot as applyCorsResponseHeaders, Pn as AGENTCORE_AGUI_PROTOCOL, Pt as A2A_CONTAINER_PORT, Q as evaluateCachedLambdaPolicy, Qt as toCmdArgv, R as createFileWatcher, Rn as AgentCoreResolutionError, Rt as MCP_PATH, S as isLocalCdkAssetImage, St as buildJwksUrlFromIssuer, T as classifySourceChange, Tt as verifyJwtAuthorizer, U as filterRoutesByApiIdentifiers, Un as substituteImagePlaceholders, Ut as signAgentCoreInvocation, V as availableApiIdentifiers, Vn as derivePseudoParametersFromRegion, Vt as parseSseForJsonRpc, W as groupRoutesByServer, Wn as tryResolveImageFnJoin, Wt as AGENTCORE_SESSION_ID_HEADER, X as buildMethodArn, Xt as computeCodeImageTag, Y as defaultCredentialsLoader, Yt as buildAgentCoreCodeImage, Z as computeRequestIdentityHash, Zt as renderCodeDockerfile, _ as parseMaxTasks, _t as parseConnectionsPath, a as albStrategy, an as resolveRuntimeImage, at as buildRestV1Event, b as runEcsServiceEmulator, bt as buildMessageEvent, c as resolveAlbTarget, ct as selectIntegrationResponse, d as addStartServiceSpecificOptions, dn as resolveEnvVars, dt as HOST_GATEWAY_MIN_VERSION, et as invokeTokenAuthorizer, fn as materializeLayerFromArn, ft as probeHostGatewaySupport, g as buildEcsImageResolutionContext, gt as handleConnectionsRequest, h as addCommonEcsServiceOptions, ht as buildMgmtEndpointEnvUrl, i as addAlbSpecificOptions, in as resolveRuntimeFileExtension, it as buildHttpApiV2Event, j as addInvokeAgentCoreSpecificOptions, jn as pickRefLogicalId, jt as isFunctionUrlOacFronted, kn as parseSelectionExpressionPath, kt as buildCorsConfigByApiId, l as isApplicationLoadBalancer, lt as tryParseStatus, m as MAX_TASKS_SUBNET_RANGE_CAP, mt as ConnectionRegistry, nn as buildContainerImage, nt as translateLambdaResponse, on as EcsTaskResolutionError, ot as evaluateResponseParameters, p as serviceStrategy, pt as bufferToBody, q as resolveSelectionExpression, qt as downloadAndExtractS3Bundle, rn as resolveRuntimeCodeMountPath, rt as applyAuthorizerOverlay, s as parseLbPortOverrides, st as pickResponseTemplate, t as addListSpecificOptions, tn as architectureToPlatform, tt as matchRoute, u as resolveAlbFrontDoor, ut as VtlEvaluationError, v as parseRestartPolicy, vt as buildConnectEvent, w as CloudMapRegistry, wn as resolveSingleTarget, wt as verifyCognitoJwt, x as describePinnedImageUri, xt as buildCognitoJwksUrl, y as resolveSharedSidecarCredentials, yt as buildDisconnectEvent, z as attachStageContext, zn as pickAgentCoreCandidateStack, zt as MCP_PROTOCOL_VERSION } from "./local-list-BS463YYd.js";
|
|
2
2
|
|
|
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, CloudMapRegistry, ConnectionRegistry, EcsTaskResolutionError, HOST_GATEWAY_MIN_VERSION, LocalInvokeBuildError, MAX_TASKS_SUBNET_RANGE_CAP, MCP_CONTAINER_PORT, MCP_PATH, MCP_PROTOCOL_VERSION, SOFT_RELOAD_COMPLETION_LOG_SUFFIX, SUPPORTED_CODE_RUNTIMES, VtlEvaluationError, a2aInvokeOnce, addAlbSpecificOptions, addCommonEcsServiceOptions, addInvokeAgentCoreSpecificOptions, addInvokeSpecificOptions, addListSpecificOptions, addRunTaskSpecificOptions, addStartApiSpecificOptions, addStartServiceSpecificOptions, albStrategy, applyAuthorizerOverlay, applyCorsResponseHeaders, architectureToPlatform, attachAuthorizers, attachContainerLogStreamer, attachStageContext, availableApiIdentifiers, bufferToBody, buildAgentCoreCodeImage, buildCloudMapIndex, buildCognitoJwksUrl, buildConnectEvent, buildContainerImage, buildCorsConfigByApiId, buildCorsConfigFromCloudFrontChain, buildDisconnectEvent, buildEcsImageResolutionContext, buildHttpApiV2Event, buildJwksUrlFromIssuer, buildMessageEvent, buildMethodArn, buildMgmtEndpointEnvUrl, buildRestV1Event, buildStageMap, classifySourceChange, computeCodeImageTag, computeRequestIdentityHash, createAuthorizerCache, createFileWatcher, createJwksCache, createWatchPredicates, defaultCredentialsLoader, derivePseudoParametersFromRegion, discoverRoutes, discoverWebSocketApis, discoverWebSocketApisOrThrow, downloadAndExtractS3Bundle, evaluateCachedLambdaPolicy, evaluateResponseParameters, filterRoutesByApiIdentifier, filterRoutesByApiIdentifiers, formatStateRemedy, getContainerNetworkIp, groupRoutesByServer, handleConnectionsRequest, invokeAgentCore, invokeAgentCoreWs, invokeRequestAuthorizer, invokeTokenAuthorizer, isApplicationLoadBalancer, isFunctionUrlOacFronted, matchPreflight, matchRoute, materializeLayerFromArn, mcpInvokeOnce, parseConnectionsPath, parseLbPortOverrides, parseMaxTasks, parseRestartPolicy, parseSelectionExpressionPath, parseSseForJsonRpc, pickAgentCoreCandidateStack, pickRefLogicalId, pickResponseTemplate, probeHostGatewaySupport, readMtlsMaterialsFromDisk, renderCodeDockerfile, resolveAgentCoreTarget, resolveAlbFrontDoor, resolveAlbTarget, resolveApiTargetSubset, resolveEnvVars, resolveLambdaArnIntrinsic, resolveRuntimeCodeMountPath, resolveRuntimeFileExtension, resolveRuntimeImage, resolveSelectionExpression, resolveServiceIntegrationParameters, resolveSharedSidecarCredentials, resolveSingleTarget, resolveWatchConfig, runEcsServiceEmulator, selectIntegrationResponse, serviceStrategy, signAgentCoreInvocation, startApiServer, substituteImagePlaceholders, toCmdArgv, translateLambdaResponse, tryParseStatus, tryResolveImageFnJoin, verifyCognitoJwt, verifyJwtAuthorizer, verifyJwtViaDiscovery, waitForAgentCorePing };
|
|
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, CloudMapRegistry, ConnectionRegistry, EcsTaskResolutionError, HOST_GATEWAY_MIN_VERSION, LocalInvokeBuildError, MAX_TASKS_SUBNET_RANGE_CAP, MCP_CONTAINER_PORT, MCP_PATH, MCP_PROTOCOL_VERSION, SOFT_RELOAD_COMPLETION_LOG_SUFFIX, SUPPORTED_CODE_RUNTIMES, VtlEvaluationError, a2aInvokeOnce, addAlbSpecificOptions, addCommonEcsServiceOptions, addInvokeAgentCoreSpecificOptions, addInvokeSpecificOptions, addListSpecificOptions, addRunTaskSpecificOptions, addStartApiSpecificOptions, addStartServiceSpecificOptions, albStrategy, applyAuthorizerOverlay, applyCorsResponseHeaders, architectureToPlatform, attachAuthorizers, attachContainerLogStreamer, attachStageContext, availableApiIdentifiers, bufferToBody, buildAgentCoreCodeImage, buildCloudMapIndex, buildCognitoJwksUrl, buildConnectEvent, buildContainerImage, buildCorsConfigByApiId, buildCorsConfigFromCloudFrontChain, buildDisconnectEvent, buildEcsImageResolutionContext, buildHttpApiV2Event, buildJwksUrlFromIssuer, buildMessageEvent, buildMethodArn, buildMgmtEndpointEnvUrl, buildRestV1Event, buildStageMap, classifySourceChange, computeCodeImageTag, computeRequestIdentityHash, createAuthorizerCache, createFileWatcher, createJwksCache, createWatchPredicates, defaultCredentialsLoader, derivePseudoParametersFromRegion, describePinnedImageUri, discoverRoutes, discoverWebSocketApis, discoverWebSocketApisOrThrow, downloadAndExtractS3Bundle, evaluateCachedLambdaPolicy, evaluateResponseParameters, filterRoutesByApiIdentifier, filterRoutesByApiIdentifiers, formatStateRemedy, getContainerNetworkIp, groupRoutesByServer, handleConnectionsRequest, invokeAgentCore, invokeAgentCoreWs, invokeRequestAuthorizer, invokeTokenAuthorizer, isApplicationLoadBalancer, isFunctionUrlOacFronted, isLocalCdkAssetImage, matchPreflight, matchRoute, materializeLayerFromArn, mcpInvokeOnce, parseConnectionsPath, parseLbPortOverrides, parseMaxTasks, parseRestartPolicy, parseSelectionExpressionPath, parseSseForJsonRpc, pickAgentCoreCandidateStack, pickRefLogicalId, pickResponseTemplate, probeHostGatewaySupport, readMtlsMaterialsFromDisk, renderCodeDockerfile, resolveAgentCoreTarget, resolveAlbFrontDoor, resolveAlbTarget, resolveApiTargetSubset, resolveEnvVars, resolveLambdaArnIntrinsic, resolveRuntimeCodeMountPath, resolveRuntimeFileExtension, resolveRuntimeImage, resolveSelectionExpression, resolveServiceIntegrationParameters, resolveSharedSidecarCredentials, resolveSingleTarget, resolveWatchConfig, runEcsServiceEmulator, selectIntegrationResponse, serviceStrategy, signAgentCoreInvocation, startApiServer, substituteImagePlaceholders, toCmdArgv, translateLambdaResponse, tryParseStatus, tryResolveImageFnJoin, verifyCognitoJwt, verifyJwtAuthorizer, verifyJwtViaDiscovery, waitForAgentCorePing };
|
|
@@ -24164,6 +24164,85 @@ function cookieHasSessionPrefix(cookieHeader, sessionCookiePrefix) {
|
|
|
24164
24164
|
return false;
|
|
24165
24165
|
}
|
|
24166
24166
|
|
|
24167
|
+
//#endregion
|
|
24168
|
+
//#region src/local/image-pin-detector.ts
|
|
24169
|
+
/**
|
|
24170
|
+
* Issue #234 — detect whether a booted ECS service's representative
|
|
24171
|
+
* container image is a local CDK docker-image asset (i.e. one the
|
|
24172
|
+
* `--watch` reload pathway can actually rebuild from local source) or
|
|
24173
|
+
* a deployed-registry pin (ECR / public registry) the rolling primitive
|
|
24174
|
+
* would re-pull byte-identical from on every save.
|
|
24175
|
+
*
|
|
24176
|
+
* The "representative" container picks the first essential container,
|
|
24177
|
+
* falling back to the first container if no container is marked
|
|
24178
|
+
* essential — same heuristic {@link loadAssetContextForTarget} (the
|
|
24179
|
+
* source-change classifier's context loader) uses for picking the
|
|
24180
|
+
* image whose asset hash drives the rebuild-vs-soft-reload decision.
|
|
24181
|
+
* Multi-essential tasks with mixed image kinds are rare; both call
|
|
24182
|
+
* sites of this helper (the boot-time `--watch` warn + the reload-time
|
|
24183
|
+
* skip guard) match on that same first-essential anchor so the
|
|
24184
|
+
* verdict surfaced to the user aligns with what the classifier sees.
|
|
24185
|
+
*
|
|
24186
|
+
* Host-side use case: cdkd and other shim hosts that wrap
|
|
24187
|
+
* `runEcsServiceEmulator` reuse this helper to produce the same
|
|
24188
|
+
* boot-time WARN + reload-time skip diagnostics under `--watch` when
|
|
24189
|
+
* the deployed image is pinned by `--from-cfn-stack` against a
|
|
24190
|
+
* `ContainerImage.fromEcrRepository(...)` service. Without this
|
|
24191
|
+
* helper a host would silently inherit the same no-op-disguised-as-
|
|
24192
|
+
* success symptom issue #234 documents.
|
|
24193
|
+
*
|
|
24194
|
+
* @internal — not part of the semver-covered public surface; exposed
|
|
24195
|
+
* via `cdk-local/internal` only. The stable entry point for hosts is
|
|
24196
|
+
* the emulator (`runEcsServiceEmulator`); call this directly only if
|
|
24197
|
+
* you need to reproduce the per-target image-kind classification.
|
|
24198
|
+
*/
|
|
24199
|
+
/**
|
|
24200
|
+
* Returns the first essential container's image, falling back to the
|
|
24201
|
+
* first container if none are marked essential. `undefined` when the
|
|
24202
|
+
* service has no containers (degenerate; the resolver would have
|
|
24203
|
+
* already warned).
|
|
24204
|
+
*/
|
|
24205
|
+
function representativeImage(service) {
|
|
24206
|
+
return (service.task.containers.find((c) => c.essential) ?? service.task.containers[0])?.image;
|
|
24207
|
+
}
|
|
24208
|
+
/**
|
|
24209
|
+
* Returns true when the service's representative container image is a
|
|
24210
|
+
* local CDK docker-image asset (`ContainerImage.fromAsset(...)`-style)
|
|
24211
|
+
* — i.e. the `--watch` reload pathway has a local source tree to
|
|
24212
|
+
* rebuild from. Returns false when the image is an ECR pin
|
|
24213
|
+
* (`ContainerImage.fromEcrRepository(repo, tag)`-style; typically
|
|
24214
|
+
* surfaced under `--from-cfn-stack`) or a public-registry pin
|
|
24215
|
+
* (`ContainerImage.fromRegistry('nginx:latest')`-style). In both
|
|
24216
|
+
* "false" cases the rolling primitive would re-pull byte-identical
|
|
24217
|
+
* content on every save and disguise a no-op as a successful reload.
|
|
24218
|
+
*
|
|
24219
|
+
* Mirrors the bail-out branch in {@link loadAssetContextForTarget}:
|
|
24220
|
+
* when this returns false, the source-change classifier sees
|
|
24221
|
+
* `undefined` for the asset context and returns
|
|
24222
|
+
* `{ kind: 'rebuild', reason: 'target image is not a CDK docker-image asset' }`.
|
|
24223
|
+
*/
|
|
24224
|
+
function isLocalCdkAssetImage(service) {
|
|
24225
|
+
const image = representativeImage(service);
|
|
24226
|
+
return image !== void 0 && image.kind === "cdk-asset";
|
|
24227
|
+
}
|
|
24228
|
+
/**
|
|
24229
|
+
* Returns a short human-readable label for the deployed-registry URI
|
|
24230
|
+
* the representative container image is pinned to, or `undefined`
|
|
24231
|
+
* when the image IS a local CDK asset (in which case the boot-time
|
|
24232
|
+
* warn does not fire). For `ecr` images this surfaces the full
|
|
24233
|
+
* `<acct>.dkr.ecr.<region>.amazonaws.com/<repo>:<tag>` URI; for
|
|
24234
|
+
* `public` images this surfaces the registry URI as-is
|
|
24235
|
+
* (e.g. `public.ecr.aws/foo/bar:tag` or `nginx:latest`). The boot-time
|
|
24236
|
+
* warn includes this so the user can see which image is pinning the
|
|
24237
|
+
* service to a no-source-edit-pickup configuration.
|
|
24238
|
+
*/
|
|
24239
|
+
function describePinnedImageUri(service) {
|
|
24240
|
+
const image = representativeImage(service);
|
|
24241
|
+
if (!image) return void 0;
|
|
24242
|
+
if (image.kind === "cdk-asset") return void 0;
|
|
24243
|
+
return image.uri;
|
|
24244
|
+
}
|
|
24245
|
+
|
|
24167
24246
|
//#endregion
|
|
24168
24247
|
//#region src/cli/commands/ecs-service-emulator.ts
|
|
24169
24248
|
/**
|
|
@@ -24307,7 +24386,16 @@ async function runEcsServiceEmulator(targets, options, strategy, extraStateProvi
|
|
|
24307
24386
|
} else logger.info(`Service(s) running: ${frontDoorLambdaRunners.length} Lambda target(s) behind the ALB front-door.`);
|
|
24308
24387
|
logEndpointsBanner(perTarget, frontDoorServers, logger);
|
|
24309
24388
|
logger.info("Press ^C to shut down.");
|
|
24310
|
-
|
|
24389
|
+
const watchActive = options.watch === true && strategy.supportsWatch === true;
|
|
24390
|
+
if (watchActive) for (const pt of perTarget) {
|
|
24391
|
+
const service = pt.controller?.service;
|
|
24392
|
+
if (!service) continue;
|
|
24393
|
+
if (isLocalCdkAssetImage(service)) continue;
|
|
24394
|
+
const pinnedUri = describePinnedImageUri(service);
|
|
24395
|
+
const uriDisplay = pinnedUri ? `\`${pinnedUri}\`` : "a deployed registry";
|
|
24396
|
+
logger.warn(`'${pt.boot.target}': \`--watch\` will not pick up local source changes — running image is pinned to a deployed registry (${uriDisplay}). To iterate on local source, drop \`--from-cfn-stack\` and switch the CDK app to \`ContainerImage.fromAsset(...)\`.`);
|
|
24397
|
+
}
|
|
24398
|
+
if (watchActive) {
|
|
24311
24399
|
const watchRoot = process.cwd();
|
|
24312
24400
|
const { ignored, shouldTrigger, excludePatterns } = createWatchPredicates({
|
|
24313
24401
|
watchRoot,
|
|
@@ -24453,6 +24541,10 @@ async function reloadAllServices(args) {
|
|
|
24453
24541
|
reason: "classifier context unavailable; falling back to rebuild"
|
|
24454
24542
|
};
|
|
24455
24543
|
}
|
|
24544
|
+
if (verdict.kind === "rebuild" && verdict.reason === "target image is not a CDK docker-image asset" && !isLocalCdkAssetImage(controller.service)) {
|
|
24545
|
+
logger.info(`Reload skipped for '${newBoot.target}' (no-op): image pinned to deployed registry; no local rebuild possible.`);
|
|
24546
|
+
continue;
|
|
24547
|
+
}
|
|
24456
24548
|
await rollOneTarget({
|
|
24457
24549
|
controller,
|
|
24458
24550
|
newBoot,
|
|
@@ -26172,5 +26264,5 @@ function addListSpecificOptions(cmd) {
|
|
|
26172
26264
|
}
|
|
26173
26265
|
|
|
26174
26266
|
//#endregion
|
|
26175
|
-
export {
|
|
26176
|
-
//# sourceMappingURL=local-list-
|
|
26267
|
+
export { invokeRequestAuthorizer as $, addInvokeSpecificOptions as $t, attachContainerLogStreamer as A, discoverRoutes as An, buildCorsConfigFromCloudFrontChain as At, buildStageMap as B, resolveAgentCoreTarget as Bn, mcpInvokeOnce as Bt, buildCloudMapIndex as C, resolveWatchConfig as Cn, createJwksCache as Ct, getContainerNetworkIp as D, discoverWebSocketApis as Dn, attachAuthorizers as Dt, SOFT_RELOAD_COMPLETION_LOG_SUFFIX as E, listTargets as En, verifyJwtViaDiscovery as Et, createWatchPredicates as F, AGENTCORE_HTTP_PROTOCOL as Fn, A2A_PATH as Ft, readMtlsMaterialsFromDisk as G, LocalInvokeBuildError as Gn, invokeAgentCore as Gt, filterRoutesByApiIdentifier as H, formatStateRemedy as Hn, AGENTCORE_SIGV4_SERVICE as Ht, resolveApiTargetSubset as I, AGENTCORE_MCP_PROTOCOL as In, a2aInvokeOnce as It, resolveServiceIntegrationParameters as J, SUPPORTED_CODE_RUNTIMES as Jt, startApiServer as K, waitForAgentCorePing as Kt, createAuthorizerCache as L, AGENTCORE_RUNTIME_TYPE as Ln, MCP_CONTAINER_PORT as Lt, createLocalInvokeAgentCoreCommand as M, resolveLambdaArnIntrinsic as Mn, matchPreflight as Mt, addStartApiSpecificOptions as N, AGENTCORE_A2A_PROTOCOL as Nn, invokeAgentCoreWs as Nt, addRunTaskSpecificOptions as O, discoverWebSocketApisOrThrow as On, applyCorsResponseHeaders as Ot, createLocalStartApiCommand as P, AGENTCORE_AGUI_PROTOCOL as Pn, A2A_CONTAINER_PORT as Pt, evaluateCachedLambdaPolicy as Q, toCmdArgv as Qt, createFileWatcher as R, AgentCoreResolutionError as Rn, MCP_PATH as Rt, isLocalCdkAssetImage as S, resolveSsmParameters as Sn, buildJwksUrlFromIssuer as St, classifySourceChange as T, countTargets as Tn, verifyJwtAuthorizer as Tt, filterRoutesByApiIdentifiers as U, substituteImagePlaceholders as Un, signAgentCoreInvocation as Ut, availableApiIdentifiers as V, derivePseudoParametersFromRegion as Vn, parseSseForJsonRpc as Vt, groupRoutesByServer as W, tryResolveImageFnJoin as Wn, AGENTCORE_SESSION_ID_HEADER as Wt, buildMethodArn as X, computeCodeImageTag as Xt, defaultCredentialsLoader as Y, buildAgentCoreCodeImage as Yt, computeRequestIdentityHash as Z, renderCodeDockerfile as Zt, parseMaxTasks as _, resolveCfnFallbackRegion as _n, parseConnectionsPath as _t, albStrategy as a, resolveRuntimeImage as an, buildRestV1Event as at, runEcsServiceEmulator as b, CfnLocalStateProvider as bn, buildMessageEvent as bt, resolveAlbTarget as c, substituteAgainstStateAsync as cn, selectIntegrationResponse as ct, addStartServiceSpecificOptions as d, resolveEnvVars as dn, HOST_GATEWAY_MIN_VERSION as dt, createLocalInvokeCommand as en, invokeTokenAuthorizer as et, createLocalStartServiceCommand as f, materializeLayerFromArn as fn, probeHostGatewaySupport as ft, buildEcsImageResolutionContext as g, rejectExplicitCfnStackWithMultipleStacks as gn, handleConnectionsRequest as gt, addCommonEcsServiceOptions as h, isCfnFlagPresent as hn, buildMgmtEndpointEnvUrl as ht, addAlbSpecificOptions as i, resolveRuntimeFileExtension as in, buildHttpApiV2Event as it, addInvokeAgentCoreSpecificOptions as j, pickRefLogicalId as jn, isFunctionUrlOacFronted as jt, createLocalRunTaskCommand as k, parseSelectionExpressionPath as kn, buildCorsConfigByApiId as kt, isApplicationLoadBalancer as l, substituteEnvVarsFromState as ln, tryParseStatus as lt, MAX_TASKS_SUBNET_RANGE_CAP as m, createLocalStateProvider as mn, ConnectionRegistry as mt, createLocalListCommand as n, buildContainerImage as nn, translateLambdaResponse as nt, createLocalStartAlbCommand as o, EcsTaskResolutionError as on, evaluateResponseParameters as ot, serviceStrategy as p, LocalStateSourceError as pn, bufferToBody as pt, resolveSelectionExpression as q, downloadAndExtractS3Bundle as qt, formatTargetListing as r, resolveRuntimeCodeMountPath as rn, applyAuthorizerOverlay as rt, parseLbPortOverrides as s, substituteAgainstState as sn, pickResponseTemplate as st, addListSpecificOptions as t, architectureToPlatform as tn, matchRoute as tt, resolveAlbFrontDoor as u, substituteEnvVarsFromStateAsync as un, VtlEvaluationError as ut, parseRestartPolicy as v, resolveCfnRegion as vn, buildConnectEvent as vt, CloudMapRegistry as w, resolveSingleTarget as wn, verifyCognitoJwt as wt, describePinnedImageUri as x, collectSsmParameterRefs as xn, buildCognitoJwksUrl as xt, resolveSharedSidecarCredentials as y, resolveCfnStackName as yn, buildDisconnectEvent as yt, attachStageContext as z, pickAgentCoreCandidateStack as zn, MCP_PROTOCOL_VERSION as zt };
|
|
26268
|
+
//# sourceMappingURL=local-list-BS463YYd.js.map
|