cdk-local 0.87.0 → 0.89.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cli.js +2 -2
- package/dist/index.js +1 -1
- package/dist/internal.d.ts +2 -1
- package/dist/internal.d.ts.map +1 -1
- package/dist/internal.js +2 -2
- package/dist/{local-studio-Cnpre8fu.js → local-studio-DWpZOh3G.js} +191 -61
- package/dist/local-studio-DWpZOh3G.js.map +1 -0
- package/dist/local-studio-nGglI2EG.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/local-studio-Cnpre8fu.js.map +0 -1
package/README.md
CHANGED
|
@@ -83,7 +83,7 @@ cdkl invoke MyStack/Fn --from-cfn-stack --assume-role # ...and run as its depl
|
|
|
83
83
|
- **`run-task`** / single-replica **`start-service`** publish declared container ports on the host (`--host-port <container>=<host>` remaps; handy for privileged ports on macOS). **`start-service`** / **`start-alb`** also list each host URL in a `Service endpoints:` banner after boot so the access URL stays visible.
|
|
84
84
|
- **`start-alb`** stands up the ECS service(s) behind an ALB plus a host-side front-door on each listener port, honoring all six listener-rule conditions, weighted forwards, redirect / fixed-response actions, mixed ECS + Lambda targets, `authenticate-cognito` / `authenticate-oidc` actions (local Bearer-JWT enforcement), and WebSocket `Upgrade` proxying to ECS targets ([details](docs/cli-reference.md#cdkl-start-alb-run-an-alb-fronted-service-locally)).
|
|
85
85
|
- **`invoke-agentcore`** invokes a Bedrock AgentCore Runtime agent locally — container or `fromCodeAsset` / `fromS3` managed runtime, all four runtime protocols (HTTP and AGUI on 8080, MCP on 8000, A2A on 9000; SSE and WebSocket are HTTP wire-shape variants on the same 8080 container), with `customJwtAuthorizer` and `--sigv4` enforcement ([details](docs/cli-reference.md#cdkl-invoke-agentcore-run-bedrock-agentcore-runtime-agents-locally)).
|
|
86
|
-
- **`studio`** opens a local web console over the same synthesized targets: pick a Lambda and invoke it, start / stop a `start-api` / `start-alb` / `start-service` serve, and watch invocations + captured serve requests stream onto a live timeline with their bound logs — a point-and-click front over the same CLI runners. It takes no target (it lists them all); `--no-open` skips the browser launch and `--studio-port` pins the port. Add `--from-cfn-stack` (and `--assume-role`) to bind the whole session to a deployed stack — every invoke / serve from the UI then runs against its real ARNs / Secrets. Each target's composer also exposes its per-run options as controls (ALB `--tls` / `--lb-port`, ECS `--max-tasks` / `--host-port`, a Lambda's `--env-vars` as KEY/VALUE or JSON).
|
|
86
|
+
- **`studio`** opens a local web console over the same synthesized targets: pick a Lambda or an AgentCore runtime and invoke it, start / stop a `start-api` / `start-alb` / `start-service` serve, and watch invocations + captured serve requests stream onto a live timeline with their bound logs — a point-and-click front over the same CLI runners. It takes no target (it lists them all); `--no-open` skips the browser launch and `--studio-port` pins the port. Add `--from-cfn-stack` (and `--assume-role`) to bind the whole session to a deployed stack — every invoke / serve from the UI then runs against its real ARNs / Secrets. Each target's composer also exposes its per-run options as controls (ALB `--tls` / `--lb-port`, ECS `--max-tasks` / `--host-port`, a Lambda's `--env-vars` as KEY/VALUE or JSON, an AgentCore runtime's `--ws` / `--sigv4` / `--bearer-token`). In a big multi-stack app, `--stack 'dev/*'` scopes the displayed target list.
|
|
87
87
|
- Non-TTY (CI / pipes): every command except a bare `start-api` needs an explicit target.
|
|
88
88
|
|
|
89
89
|
Full flags, precedence, and `--from-cfn-stack` resolution: [docs/cli-reference.md](docs/cli-reference.md) and [docs/local-emulation.md](docs/local-emulation.md).
|
package/dist/cli.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
2
|
+
import { Dt as createLocalInvokeCommand, O as createLocalRunTaskCommand, T as createLocalStartServiceCommand, h as createLocalListCommand, i as createLocalStudioCommand, it as createLocalInvokeAgentCoreCommand, kt as createLocalStartApiCommand, y as createLocalStartAlbCommand } from "./local-studio-DWpZOh3G.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.89.0");
|
|
8
8
|
program.addCommand(createLocalInvokeCommand());
|
|
9
9
|
program.addCommand(createLocalInvokeAgentCoreCommand());
|
|
10
10
|
program.addCommand(createLocalStartApiCommand());
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { d as setEmbedConfig, l as getEmbedConfig, u as resetEmbedConfig } from "./docker-cmd-GcI_cqY5.js";
|
|
2
|
-
import {
|
|
2
|
+
import { $n as listTargets, Bn as LocalStateSourceError, Dt as createLocalInvokeCommand, Gn as resolveCfnRegion, Hn as isCfnFlagPresent, In as substituteAgainstState, Jn as collectSsmParameterRefs, Kn as resolveCfnStackName, Ln as substituteAgainstStateAsync, O as createLocalRunTaskCommand, Qn as countTargets, Rn as substituteEnvVarsFromState, T as createLocalStartServiceCommand, Un as rejectExplicitCfnStackWithMultipleStacks, Vn as createLocalStateProvider, Wn as resolveCfnFallbackRegion, Yn as resolveSsmParameters, g as formatTargetListing, h as createLocalListCommand, i as createLocalStudioCommand, it as createLocalInvokeAgentCoreCommand, kt as createLocalStartApiCommand, qn as CfnLocalStateProvider, y as createLocalStartAlbCommand, zn as substituteEnvVarsFromStateAsync } from "./local-studio-DWpZOh3G.js";
|
|
3
3
|
|
|
4
4
|
export { CfnLocalStateProvider, LocalStateSourceError, collectSsmParameterRefs, countTargets, createLocalInvokeAgentCoreCommand, createLocalInvokeCommand, createLocalListCommand, createLocalRunTaskCommand, createLocalStartAlbCommand, createLocalStartApiCommand, createLocalStartServiceCommand, createLocalStateProvider, createLocalStudioCommand, formatTargetListing, getEmbedConfig, isCfnFlagPresent, listTargets, rejectExplicitCfnStackWithMultipleStacks, resetEmbedConfig, resolveCfnFallbackRegion, resolveCfnRegion, resolveCfnStackName, resolveSsmParameters, setEmbedConfig, substituteAgainstState, substituteAgainstStateAsync, substituteEnvVarsFromState, substituteEnvVarsFromStateAsync };
|
package/dist/internal.d.ts
CHANGED
|
@@ -531,6 +531,7 @@ interface StudioTargetGroup {
|
|
|
531
531
|
entries: StudioTarget[];
|
|
532
532
|
}
|
|
533
533
|
declare function toStudioTargetGroups(listing: TargetListing): StudioTargetGroup[];
|
|
534
|
+
declare function filterStudioTargetGroups(groups: StudioTargetGroup[], globs: string[] | undefined): StudioTargetGroup[];
|
|
534
535
|
interface StudioServerOptions {
|
|
535
536
|
port: number;
|
|
536
537
|
host?: string;
|
|
@@ -556,5 +557,5 @@ declare function startStudioServer(options: StudioServerOptions): Promise<Runnin
|
|
|
556
557
|
//#region src/local/studio-ui.d.ts
|
|
557
558
|
declare function renderStudioHtml(appLabel: string, cliName: string): string;
|
|
558
559
|
//#endregion
|
|
559
|
-
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, DEFAULT_SHADOW_READY_TIMEOUT_MS, 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 ImageOverrideEntry, ImageOverrideError, type ImageOverrideGlobals, type ImageOverrideMap, 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 PerServiceBuildInputs, type PinnedTargetEntry, type PlannedAction, type PlannedEcsForwardTarget, type PlannedFixedResponseAction, type PlannedForwardAction, type PlannedForwardTarget, type PlannedFrontDoorListener, type PlannedLambdaForwardTarget, type PlannedRedirectAction, type RawImageOverrideFlags, type RegistrationHandle, type ReloadAssetContext, type ReloadVerdict, type RequestParameterContext, type ResolveParametersOutcome, type ResolvedAgentCoreRuntime, type ResolvedListenerAction, type ResolvedStage, type RestV1IntegrationConfig, type RouteMatchResult, type RouteWithAuth, type RunningStudioProxy, type RunningStudioServer, 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 StudioDispatchConfig, type StudioDispatcher, StudioEventBus, type StudioHistory, type StudioInvocationEvent, type StudioLogEvent, type StudioLogSearchOptions, type StudioProxyConfig, type StudioRunRequest, type StudioRunResult, type StudioServeEvent, type StudioServeManager, type StudioServeManagerConfig, type StudioServeRequest, type StudioServeState, type StudioServerOptions, type StudioStopRequest, type StudioStore, type StudioStoreOptions, type StudioTarget, type StudioTargetGroup, type StudioTargetKind, type TranslatedHttpResponse, VtlEvaluationError, type WarnedAt, type WatchPredicates, type WebSocketHandshakeSnapshot, type WebSocketLambdaEvent, type WebSocketRouteEntry, a2aInvokeOnce, addAlbSpecificOptions, addCommonEcsServiceOptions, addEcsAssumeRoleOptions, addImageOverrideOptions, addInvokeAgentCoreSpecificOptions, addInvokeSpecificOptions, addListSpecificOptions, addRunTaskSpecificOptions, addStartApiSpecificOptions, addStartServiceSpecificOptions, addStudioSpecificOptions, albStrategy, applyAuthorizerOverlay, applyCorsResponseHeaders, architectureToPlatform, attachAuthorizers, attachContainerLogStreamer, attachStageContext, availableApiIdentifiers, bufferToBody, buildAgentCoreCodeImage, buildCloudMapIndex, buildCognitoJwksUrl, buildConnectEvent, buildContainerImage, buildCorsConfigByApiId, buildCorsConfigFromCloudFrontChain, buildDisconnectEvent, buildEcsImageResolutionContext, buildHttpApiV2Event, buildImageOverrideTag, buildJwksUrlFromIssuer, buildMessageEvent, buildMethodArn, buildMgmtEndpointEnvUrl, buildRestV1Event, buildStageMap, buildStsClientConfig, classifySourceChange, coerceRunRequest, coerceStopRequest, computeCodeImageTag, computeRequestIdentityHash, createAuthorizerCache, createFileWatcher, createJwksCache, createStudioDispatcher, createStudioServeManager, createStudioStore, createWatchPredicates, defaultCredentialsLoader, derivePseudoParametersFromRegion, describePinnedImageUri, discoverRoutes, discoverWebSocketApis, discoverWebSocketApisOrThrow, downloadAndExtractS3Bundle, ecsClusterOption, enforceImageOverrideOrphans, evaluateCachedLambdaPolicy, evaluateResponseParameters, filterRoutesByApiIdentifier, filterRoutesByApiIdentifiers, formatStateRemedy, getContainerNetworkIp, groupRoutesByServer, handleConnectionsRequest, invokeAgentCore, invokeAgentCoreWs, invokeRequestAuthorizer, invokeTokenAuthorizer, isApplicationLoadBalancer, isFunctionUrlOacFronted, isLocalCdkAssetImage, listPinnedTargets, matchPreflight, matchRoute, materializeLayerFromArn, mcpInvokeOnce, mergeForService, parseConnectionsPath, parseImageOverrideFlags, parseLbPortOverrides, parseMaxTasks, parseRestartPolicy, parseSelectionExpressionPath, parseSseForJsonRpc, pickAgentCoreCandidateStack, pickRefLogicalId, pickResponseTemplate, probeHostGatewaySupport, readMtlsMaterialsFromDisk, renderCodeDockerfile, renderStudioHtml, resolveAgentCoreTarget, resolveAlbFrontDoor, resolveAlbTarget, resolveApiTargetSubset, resolveEcsAssumeRoleOption, resolveEnvVars, resolveImageOverrides, resolveLambdaArnIntrinsic, resolveProfileCredentials, resolveRuntimeCodeMountPath, resolveRuntimeFileExtension, resolveRuntimeImage, resolveSelectionExpression, resolveServiceIntegrationParameters, resolveSharedSidecarCredentials, resolveSingleTarget, resolveWatchConfig, runEcsServiceEmulator, runImageOverrideBuilds, selectIntegrationResponse, serviceStrategy, setShadowReadyTimeoutMs, signAgentCoreInvocation, startApiServer, startStudioProxy, startStudioServer, substituteImagePlaceholders, toCmdArgv, toStudioTargetGroups, translateLambdaResponse, tryParseStatus, tryResolveImageFnJoin, verifyCognitoJwt, verifyJwtAuthorizer, verifyJwtViaDiscovery, waitForAgentCorePing };
|
|
560
|
+
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, DEFAULT_SHADOW_READY_TIMEOUT_MS, 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 ImageOverrideEntry, ImageOverrideError, type ImageOverrideGlobals, type ImageOverrideMap, 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 PerServiceBuildInputs, type PinnedTargetEntry, type PlannedAction, type PlannedEcsForwardTarget, type PlannedFixedResponseAction, type PlannedForwardAction, type PlannedForwardTarget, type PlannedFrontDoorListener, type PlannedLambdaForwardTarget, type PlannedRedirectAction, type RawImageOverrideFlags, type RegistrationHandle, type ReloadAssetContext, type ReloadVerdict, type RequestParameterContext, type ResolveParametersOutcome, type ResolvedAgentCoreRuntime, type ResolvedListenerAction, type ResolvedStage, type RestV1IntegrationConfig, type RouteMatchResult, type RouteWithAuth, type RunningStudioProxy, type RunningStudioServer, 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 StudioDispatchConfig, type StudioDispatcher, StudioEventBus, type StudioHistory, type StudioInvocationEvent, type StudioLogEvent, type StudioLogSearchOptions, type StudioProxyConfig, type StudioRunRequest, type StudioRunResult, type StudioServeEvent, type StudioServeManager, type StudioServeManagerConfig, type StudioServeRequest, type StudioServeState, type StudioServerOptions, type StudioStopRequest, type StudioStore, type StudioStoreOptions, type StudioTarget, type StudioTargetGroup, type StudioTargetKind, type TranslatedHttpResponse, VtlEvaluationError, type WarnedAt, type WatchPredicates, type WebSocketHandshakeSnapshot, type WebSocketLambdaEvent, type WebSocketRouteEntry, a2aInvokeOnce, addAlbSpecificOptions, addCommonEcsServiceOptions, addEcsAssumeRoleOptions, addImageOverrideOptions, addInvokeAgentCoreSpecificOptions, addInvokeSpecificOptions, addListSpecificOptions, addRunTaskSpecificOptions, addStartApiSpecificOptions, addStartServiceSpecificOptions, addStudioSpecificOptions, albStrategy, applyAuthorizerOverlay, applyCorsResponseHeaders, architectureToPlatform, attachAuthorizers, attachContainerLogStreamer, attachStageContext, availableApiIdentifiers, bufferToBody, buildAgentCoreCodeImage, buildCloudMapIndex, buildCognitoJwksUrl, buildConnectEvent, buildContainerImage, buildCorsConfigByApiId, buildCorsConfigFromCloudFrontChain, buildDisconnectEvent, buildEcsImageResolutionContext, buildHttpApiV2Event, buildImageOverrideTag, buildJwksUrlFromIssuer, buildMessageEvent, buildMethodArn, buildMgmtEndpointEnvUrl, buildRestV1Event, buildStageMap, buildStsClientConfig, classifySourceChange, coerceRunRequest, coerceStopRequest, computeCodeImageTag, computeRequestIdentityHash, createAuthorizerCache, createFileWatcher, createJwksCache, createStudioDispatcher, createStudioServeManager, createStudioStore, createWatchPredicates, defaultCredentialsLoader, derivePseudoParametersFromRegion, describePinnedImageUri, discoverRoutes, discoverWebSocketApis, discoverWebSocketApisOrThrow, downloadAndExtractS3Bundle, ecsClusterOption, enforceImageOverrideOrphans, evaluateCachedLambdaPolicy, evaluateResponseParameters, filterRoutesByApiIdentifier, filterRoutesByApiIdentifiers, filterStudioTargetGroups, formatStateRemedy, getContainerNetworkIp, groupRoutesByServer, handleConnectionsRequest, invokeAgentCore, invokeAgentCoreWs, invokeRequestAuthorizer, invokeTokenAuthorizer, isApplicationLoadBalancer, isFunctionUrlOacFronted, isLocalCdkAssetImage, listPinnedTargets, matchPreflight, matchRoute, materializeLayerFromArn, mcpInvokeOnce, mergeForService, parseConnectionsPath, parseImageOverrideFlags, parseLbPortOverrides, parseMaxTasks, parseRestartPolicy, parseSelectionExpressionPath, parseSseForJsonRpc, pickAgentCoreCandidateStack, pickRefLogicalId, pickResponseTemplate, probeHostGatewaySupport, readMtlsMaterialsFromDisk, renderCodeDockerfile, renderStudioHtml, resolveAgentCoreTarget, resolveAlbFrontDoor, resolveAlbTarget, resolveApiTargetSubset, resolveEcsAssumeRoleOption, resolveEnvVars, resolveImageOverrides, resolveLambdaArnIntrinsic, resolveProfileCredentials, resolveRuntimeCodeMountPath, resolveRuntimeFileExtension, resolveRuntimeImage, resolveSelectionExpression, resolveServiceIntegrationParameters, resolveSharedSidecarCredentials, resolveSingleTarget, resolveWatchConfig, runEcsServiceEmulator, runImageOverrideBuilds, selectIntegrationResponse, serviceStrategy, setShadowReadyTimeoutMs, signAgentCoreInvocation, startApiServer, startStudioProxy, startStudioServer, substituteImagePlaceholders, toCmdArgv, toStudioTargetGroups, translateLambdaResponse, tryParseStatus, tryResolveImageFnJoin, verifyCognitoJwt, verifyJwtAuthorizer, verifyJwtViaDiscovery, waitForAgentCorePing };
|
|
560
561
|
//# 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/image-pin-detector.ts","../src/local/target-picker.ts","../src/local/image-override-engine.ts","../src/local/container-log-streamer.ts","../src/local/studio-store.ts","../src/local/studio-server.ts","../src/local/studio-ui.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,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,CAAS,MAAA;EAoBzB,UAAA,GAAa,QAAA,CAAS,MAAA;AAAA;AAAA,KASZ,wBAAA;EACN,IAAA;EAAY,QAAA,EAAU,MAAA;AAAA;EACtB,IAAA;EAAe,MAAA;AAAA;AAAA,iBAQL,mCAAA,CACd,UAAA,EAAY,QAAA,CAAS,MAAA,oBACrB,GAAA,EAAK,uBAAA,GACJ,wBAAA;AAAA,iBAkCa,0BAAA,CAA2B,KAAA,UAAe,GAAA,EAAK,uBAAA;;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,QAAe,aAAA;EAKf,UAAA,GAAa,KAAA,UAAe,IAAA,GAAO,sBAAA,KAA2B,cAAA;EAQ9D,iBAAA,GAAoB,EAAA,aAAe,cAAA;EAEnC,UAAA,GAAa,EAAA,aAAe,qBAAA;EAE5B,OAAA;AAAA;AAAA,iBAQc,iBAAA,CACd,GAAA,EAAK,cAAA,EACL,OAAA,GAAS,kBAAA,GACR,WAAA;;;UC5Dc,YAAA;EAEf,EAAA;EAEA,WAAA;EAEA,OAAA;EAOA,QAAA;AAAA;AAAA,UAIe,iBAAA;EAEf,IAAA;EAEA,KAAA;EACA,OAAA,EAAS,YAAA;AAAA;AAAA,iBAUK,oBAAA,CAAqB,OAAA,EAAS,aAAA,GAAgB,iBAAA;AAAA,UA8B7C,mBAAA;EAEf,IAAA;EAEA,IAAA;EAEA,GAAA,EAAK,cAAA;EAEL,YAAA,EAAc,iBAAA;EAEd,QAAA;EAEA,OAAA;EAKA,WAAA;EAUA,KAAA,IAAS,IAAA,cAAkB,OAAA;EAK3B,MAAA,IAAU,IAAA,cAAkB,OAAA;EAM5B,UAAA;EAOA,KAAA,GAAQ,WAAA;EAOR,SAAA;EAOA,WAAA,IAAe,IAAA,cAAkB,OAAA;AAAA;AAAA,UAIlB,mBAAA;EAEf,GAAA;EAEA,IAAA;EAEA,KAAA,QAAa,OAAA;AAAA;AAAA,iBAWO,iBAAA,CACpB,OAAA,EAAS,mBAAA,GACR,OAAA,CAAQ,mBAAA;;;iBCsyBK,gBAAA,CAAiB,QAAA,UAAkB,OAAA"}
|
|
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/image-pin-detector.ts","../src/local/target-picker.ts","../src/local/image-override-engine.ts","../src/local/container-log-streamer.ts","../src/local/studio-store.ts","../src/local/studio-server.ts","../src/local/studio-ui.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,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,CAAS,MAAA;EAoBzB,UAAA,GAAa,QAAA,CAAS,MAAA;AAAA;AAAA,KASZ,wBAAA;EACN,IAAA;EAAY,QAAA,EAAU,MAAA;AAAA;EACtB,IAAA;EAAe,MAAA;AAAA;AAAA,iBAQL,mCAAA,CACd,UAAA,EAAY,QAAA,CAAS,MAAA,oBACr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X, $t as buildMethodArn, A as addCommonEcsServiceOptions, An as architectureToPlatform, At as createWatchPredicates, B as ImageOverrideError, Bt as filterRoutesByApiIdentifiers, C as resolveAlbFrontDoor, Cn as ConnectionRegistry, Ct as renderCodeDockerfile, D as addRunTaskSpecificOptions, Dn as buildConnectEvent, E as serviceStrategy, En as parseConnectionsPath, Et as addInvokeSpecificOptions, F as parseMaxTasks, Fn as EcsTaskResolutionError, Ft as buildStageMap, G as resolveImageOverrides, Gt as resolveServiceIntegrationParameters, H as enforceImageOverrideOrphans, Ht as readMtlsMaterialsFromDisk, I as parseRestartPolicy, It as materializeLayerFromArn, J as isLocalCdkAssetImage, Jt as buildJwksUrlFromIssuer, K as runImageOverrideBuilds, Kt as defaultCredentialsLoader, L as resolveEcsAssumeRoleOption, Lt as resolveEnvVars, M as addImageOverrideOptions, Mn as resolveRuntimeCodeMountPath, Mt as createAuthorizerCache, N as buildEcsImageResolutionContext, Nn as resolveRuntimeFileExtension, Nt as createFileWatcher, On as buildDisconnectEvent, Ot as addStartApiSpecificOptions, P as ecsClusterOption, Pn as resolveRuntimeImage, Pt as attachStageContext, Q as DEFAULT_SHADOW_READY_TIMEOUT_MS, Qt as verifyJwtViaDiscovery, R as resolveSharedSidecarCredentials, Rt as availableApiIdentifiers, S as isApplicationLoadBalancer, Sn as bufferToBody, St as computeCodeImageTag, Tn as handleConnectionsRequest, Tt as classifySourceChange, U as mergeForService, Ut as startApiServer, V as buildImageOverrideTag, Vt as groupRoutesByServer, W as parseImageOverrideFlags, Wt as resolveSelectionExpression, X as buildCloudMapIndex, Xn as resolveWatchConfig, Xt as verifyCognitoJwt, Y as listPinnedTargets, Yt as createJwksCache, Z as CloudMapRegistry, Zn as resolveSingleTarget, Zt as verifyJwtAuthorizer, _ as addAlbSpecificOptions, _n as selectIntegrationResponse, _r as tryResolveImageFnJoin, _t as invokeAgentCore, a as createStudioServeManager, an as applyCorsResponseHeaders, ar as resolveLambdaArnIntrinsic, at as invokeAgentCoreWs, b as parseLbPortOverrides, bn as HOST_GATEWAY_MIN_VERSION, br as resolveProfileCredentials, bt as SUPPORTED_CODE_RUNTIMES, c as filterStudioTargetGroups, cn as isFunctionUrlOacFronted, cr as AGENTCORE_HTTP_PROTOCOL, ct as a2aInvokeOnce, d as renderStudioHtml, dn as translateLambdaResponse, dr as AgentCoreResolutionError, dt as MCP_PROTOCOL_VERSION, en as computeRequestIdentityHash, er as discoverWebSocketApis, et as setShadowReadyTimeoutMs, f as createStudioStore, fn as applyAuthorizerOverlay, fr as pickAgentCoreCandidateStack, ft as mcpInvokeOnce, gn as pickResponseTemplate, gr as substituteImagePlaceholders, gt as AGENTCORE_SESSION_ID_HEADER, hn as evaluateResponseParameters, hr as formatStateRemedy, ht as signAgentCoreInvocation, in as attachAuthorizers, ir as pickRefLogicalId, j as addEcsAssumeRoleOptions, jn as buildContainerImage, jt as resolveApiTargetSubset, k as MAX_TASKS_SUBNET_RANGE_CAP, kn as buildMessageEvent, l as startStudioServer, ln as matchPreflight, lr as AGENTCORE_MCP_PROTOCOL, lt as MCP_CONTAINER_PORT, m as addListSpecificOptions, mn as buildRestV1Event, mr as derivePseudoParametersFromRegion, mt as AGENTCORE_SIGV4_SERVICE, n as coerceRunRequest, nn as invokeRequestAuthorizer, nr as parseSelectionExpressionPath, nt as attachContainerLogStreamer, o as startStudioProxy, on as buildCorsConfigByApiId, or as AGENTCORE_A2A_PROTOCOL, ot as A2A_CONTAINER_PORT, p as StudioEventBus, pn as buildHttpApiV2Event, pr as resolveAgentCoreTarget, pt as parseSseForJsonRpc, q as describePinnedImageUri, qt as buildCognitoJwksUrl, r as coerceStopRequest, rn as invokeTokenAuthorizer, rr as discoverRoutes, rt as addInvokeAgentCoreSpecificOptions, s as createStudioDispatcher, sn as buildCorsConfigFromCloudFrontChain, sr as AGENTCORE_AGUI_PROTOCOL, st as A2A_PATH, t as addStudioSpecificOptions, tn as evaluateCachedLambdaPolicy, tr as discoverWebSocketApisOrThrow, tt as getContainerNetworkIp, u as toStudioTargetGroups, un as matchRoute, ur as AGENTCORE_RUNTIME_TYPE, ut as MCP_PATH, v as albStrategy, vn as tryParseStatus, vr as LocalInvokeBuildError, vt as waitForAgentCorePing, w as addStartServiceSpecificOptions, wn as buildMgmtEndpointEnvUrl, wt as toCmdArgv, x as resolveAlbTarget, xn as probeHostGatewaySupport, xt as buildAgentCoreCodeImage, yn as VtlEvaluationError, yr as buildStsClientConfig, yt as downloadAndExtractS3Bundle, z as runEcsServiceEmulator, zt as filterRoutesByApiIdentifier } from "./local-studio-DWpZOh3G.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, DEFAULT_SHADOW_READY_TIMEOUT_MS, EcsTaskResolutionError, HOST_GATEWAY_MIN_VERSION, ImageOverrideError, LocalInvokeBuildError, 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, addStartApiSpecificOptions, addStartServiceSpecificOptions, addStudioSpecificOptions, albStrategy, applyAuthorizerOverlay, applyCorsResponseHeaders, architectureToPlatform, attachAuthorizers, attachContainerLogStreamer, attachStageContext, availableApiIdentifiers, bufferToBody, buildAgentCoreCodeImage, buildCloudMapIndex, buildCognitoJwksUrl, buildConnectEvent, buildContainerImage, buildCorsConfigByApiId, buildCorsConfigFromCloudFrontChain, buildDisconnectEvent, buildEcsImageResolutionContext, buildHttpApiV2Event, buildImageOverrideTag, buildJwksUrlFromIssuer, buildMessageEvent, buildMethodArn, buildMgmtEndpointEnvUrl, buildRestV1Event, buildStageMap, buildStsClientConfig, classifySourceChange, coerceRunRequest, coerceStopRequest, computeCodeImageTag, computeRequestIdentityHash, createAuthorizerCache, createFileWatcher, createJwksCache, createStudioDispatcher, createStudioServeManager, createStudioStore, createWatchPredicates, defaultCredentialsLoader, derivePseudoParametersFromRegion, describePinnedImageUri, discoverRoutes, discoverWebSocketApis, discoverWebSocketApisOrThrow, downloadAndExtractS3Bundle, ecsClusterOption, enforceImageOverrideOrphans, evaluateCachedLambdaPolicy, evaluateResponseParameters, filterRoutesByApiIdentifier, filterRoutesByApiIdentifiers, formatStateRemedy, getContainerNetworkIp, groupRoutesByServer, handleConnectionsRequest, invokeAgentCore, invokeAgentCoreWs, invokeRequestAuthorizer, invokeTokenAuthorizer, isApplicationLoadBalancer, isFunctionUrlOacFronted, isLocalCdkAssetImage, listPinnedTargets, matchPreflight, matchRoute, materializeLayerFromArn, mcpInvokeOnce, mergeForService, parseConnectionsPath, parseImageOverrideFlags, parseLbPortOverrides, parseMaxTasks, parseRestartPolicy, parseSelectionExpressionPath, parseSseForJsonRpc, pickAgentCoreCandidateStack, pickRefLogicalId, pickResponseTemplate, probeHostGatewaySupport, readMtlsMaterialsFromDisk, renderCodeDockerfile, renderStudioHtml, resolveAgentCoreTarget, resolveAlbFrontDoor, resolveAlbTarget, resolveApiTargetSubset, resolveEcsAssumeRoleOption, resolveEnvVars, resolveImageOverrides, resolveLambdaArnIntrinsic, resolveProfileCredentials, resolveRuntimeCodeMountPath, resolveRuntimeFileExtension, resolveRuntimeImage, resolveSelectionExpression, resolveServiceIntegrationParameters, resolveSharedSidecarCredentials, resolveSingleTarget, resolveWatchConfig, runEcsServiceEmulator, runImageOverrideBuilds, selectIntegrationResponse, serviceStrategy, setShadowReadyTimeoutMs, signAgentCoreInvocation, startApiServer, startStudioProxy, startStudioServer, substituteImagePlaceholders, toCmdArgv, toStudioTargetGroups, 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, DEFAULT_SHADOW_READY_TIMEOUT_MS, EcsTaskResolutionError, HOST_GATEWAY_MIN_VERSION, ImageOverrideError, LocalInvokeBuildError, 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, addStartApiSpecificOptions, addStartServiceSpecificOptions, addStudioSpecificOptions, albStrategy, applyAuthorizerOverlay, applyCorsResponseHeaders, architectureToPlatform, attachAuthorizers, attachContainerLogStreamer, attachStageContext, availableApiIdentifiers, bufferToBody, buildAgentCoreCodeImage, buildCloudMapIndex, buildCognitoJwksUrl, buildConnectEvent, buildContainerImage, buildCorsConfigByApiId, buildCorsConfigFromCloudFrontChain, buildDisconnectEvent, buildEcsImageResolutionContext, buildHttpApiV2Event, buildImageOverrideTag, buildJwksUrlFromIssuer, buildMessageEvent, buildMethodArn, buildMgmtEndpointEnvUrl, buildRestV1Event, buildStageMap, buildStsClientConfig, classifySourceChange, coerceRunRequest, coerceStopRequest, computeCodeImageTag, computeRequestIdentityHash, createAuthorizerCache, createFileWatcher, createJwksCache, createStudioDispatcher, createStudioServeManager, createStudioStore, createWatchPredicates, defaultCredentialsLoader, derivePseudoParametersFromRegion, describePinnedImageUri, discoverRoutes, discoverWebSocketApis, discoverWebSocketApisOrThrow, downloadAndExtractS3Bundle, ecsClusterOption, enforceImageOverrideOrphans, evaluateCachedLambdaPolicy, evaluateResponseParameters, filterRoutesByApiIdentifier, filterRoutesByApiIdentifiers, filterStudioTargetGroups, formatStateRemedy, getContainerNetworkIp, groupRoutesByServer, handleConnectionsRequest, invokeAgentCore, invokeAgentCoreWs, invokeRequestAuthorizer, invokeTokenAuthorizer, isApplicationLoadBalancer, isFunctionUrlOacFronted, isLocalCdkAssetImage, listPinnedTargets, matchPreflight, matchRoute, materializeLayerFromArn, mcpInvokeOnce, mergeForService, parseConnectionsPath, parseImageOverrideFlags, parseLbPortOverrides, parseMaxTasks, parseRestartPolicy, parseSelectionExpressionPath, parseSseForJsonRpc, pickAgentCoreCandidateStack, pickRefLogicalId, pickResponseTemplate, probeHostGatewaySupport, readMtlsMaterialsFromDisk, renderCodeDockerfile, renderStudioHtml, resolveAgentCoreTarget, resolveAlbFrontDoor, resolveAlbTarget, resolveApiTargetSubset, resolveEcsAssumeRoleOption, resolveEnvVars, resolveImageOverrides, resolveLambdaArnIntrinsic, resolveProfileCredentials, resolveRuntimeCodeMountPath, resolveRuntimeFileExtension, resolveRuntimeImage, resolveSelectionExpression, resolveServiceIntegrationParameters, resolveSharedSidecarCredentials, resolveSingleTarget, resolveWatchConfig, runEcsServiceEmulator, runImageOverrideBuilds, selectIntegrationResponse, serviceStrategy, setShadowReadyTimeoutMs, signAgentCoreInvocation, startApiServer, startStudioProxy, startStudioServer, substituteImagePlaceholders, toCmdArgv, toStudioTargetGroups, translateLambdaResponse, tryParseStatus, tryResolveImageFnJoin, verifyCognitoJwt, verifyJwtAuthorizer, verifyJwtViaDiscovery, waitForAgentCorePing };
|
|
@@ -23796,12 +23796,12 @@ function matchAlbPathRule(req, rules) {
|
|
|
23796
23796
|
*/
|
|
23797
23797
|
function ruleMatches(rule, requestPath, requestQuery, requestHost, facts) {
|
|
23798
23798
|
if (rule.pathPatterns.length > 0) {
|
|
23799
|
-
if (!rule.pathPatterns.some((pattern) => globToRegExp(pattern, false).test(requestPath))) return false;
|
|
23799
|
+
if (!rule.pathPatterns.some((pattern) => globToRegExp$1(pattern, false).test(requestPath))) return false;
|
|
23800
23800
|
}
|
|
23801
23801
|
const hostPatterns = rule.hostPatterns ?? [];
|
|
23802
23802
|
if (hostPatterns.length > 0) {
|
|
23803
23803
|
if (requestHost === void 0) return false;
|
|
23804
|
-
if (!hostPatterns.some((pattern) => globToRegExp(pattern, true).test(requestHost))) return false;
|
|
23804
|
+
if (!hostPatterns.some((pattern) => globToRegExp$1(pattern, true).test(requestHost))) return false;
|
|
23805
23805
|
}
|
|
23806
23806
|
const headerConditions = rule.httpHeaderConditions ?? [];
|
|
23807
23807
|
if (headerConditions.length > 0) {
|
|
@@ -23837,7 +23837,7 @@ function httpHeaderConditionMatches(cond, headers) {
|
|
|
23837
23837
|
if (rawValue === void 0) return false;
|
|
23838
23838
|
const headerValues = Array.isArray(rawValue) ? rawValue : [rawValue];
|
|
23839
23839
|
return cond.values.some((glob) => {
|
|
23840
|
-
const re = globToRegExp(glob, true);
|
|
23840
|
+
const re = globToRegExp$1(glob, true);
|
|
23841
23841
|
return headerValues.some((v) => re.test(v.toLowerCase()));
|
|
23842
23842
|
});
|
|
23843
23843
|
}
|
|
@@ -23848,8 +23848,8 @@ function httpHeaderConditionMatches(cond, headers) {
|
|
|
23848
23848
|
* Value glob satisfies the condition.
|
|
23849
23849
|
*/
|
|
23850
23850
|
function queryStringConditionMatches(cond, params) {
|
|
23851
|
-
const valueRe = globToRegExp(cond.value, true);
|
|
23852
|
-
const keyRe = cond.key !== void 0 ? globToRegExp(cond.key, true) : void 0;
|
|
23851
|
+
const valueRe = globToRegExp$1(cond.value, true);
|
|
23852
|
+
const keyRe = cond.key !== void 0 ? globToRegExp$1(cond.key, true) : void 0;
|
|
23853
23853
|
return params.some((p) => {
|
|
23854
23854
|
if (keyRe !== void 0 && !keyRe.test(p.key.toLowerCase())) return false;
|
|
23855
23855
|
return valueRe.test(p.value.toLowerCase());
|
|
@@ -23944,7 +23944,7 @@ const REGEXP_META = /[.+^${}()|[\]\\]/;
|
|
|
23944
23944
|
* `caseInsensitive` form lower-cases the pattern (callers pair it with a
|
|
23945
23945
|
* lower-cased input); path patterns are case-sensitive.
|
|
23946
23946
|
*/
|
|
23947
|
-
function globToRegExp(pattern, caseInsensitive) {
|
|
23947
|
+
function globToRegExp$1(pattern, caseInsensitive) {
|
|
23948
23948
|
const source = caseInsensitive ? pattern.toLowerCase() : pattern;
|
|
23949
23949
|
let body = "";
|
|
23950
23950
|
for (const ch of source) if (ch === "*") body += ".*";
|
|
@@ -28029,6 +28029,43 @@ const OPTION_SPECS = {
|
|
|
28029
28029
|
label: "Disable auth guard"
|
|
28030
28030
|
}
|
|
28031
28031
|
],
|
|
28032
|
+
agentcore: [
|
|
28033
|
+
{
|
|
28034
|
+
flag: "--ws",
|
|
28035
|
+
kind: "boolean",
|
|
28036
|
+
label: "Stream over WebSocket (/ws)",
|
|
28037
|
+
help: "Stream over the agent's bidirectional /ws endpoint instead of POST /invocations (one-shot from studio: the event is the first frame, received frames are the response). Ignored for an MCP runtime."
|
|
28038
|
+
},
|
|
28039
|
+
{
|
|
28040
|
+
flag: "--sigv4",
|
|
28041
|
+
kind: "boolean",
|
|
28042
|
+
label: "Sign request with SigV4",
|
|
28043
|
+
help: "Sign the invocation with AWS SigV4 (service bedrock-agentcore) using the resolved credentials. Ignored on a JWT-protected runtime."
|
|
28044
|
+
},
|
|
28045
|
+
{
|
|
28046
|
+
flag: "--bearer-token",
|
|
28047
|
+
kind: "scalar",
|
|
28048
|
+
label: "Bearer token",
|
|
28049
|
+
placeholder: "eyJ...",
|
|
28050
|
+
help: "Bearer JWT to present when the runtime declares a customJwtAuthorizer (verified against the runtime's OIDC discovery URL, then forwarded)."
|
|
28051
|
+
},
|
|
28052
|
+
{
|
|
28053
|
+
flag: "--session-id",
|
|
28054
|
+
kind: "scalar",
|
|
28055
|
+
label: "Session id",
|
|
28056
|
+
placeholder: "auto (random UUID)",
|
|
28057
|
+
help: "AgentCore runtime session id header value. Defaults to a random UUID when blank."
|
|
28058
|
+
},
|
|
28059
|
+
{
|
|
28060
|
+
flag: "--env-vars",
|
|
28061
|
+
kind: "env-kv",
|
|
28062
|
+
label: "Env vars",
|
|
28063
|
+
sep: "=",
|
|
28064
|
+
leftPlaceholder: "KEY",
|
|
28065
|
+
rightPlaceholder: "value",
|
|
28066
|
+
help: "Overlay container env vars — add KEY=VALUE rows or paste a JSON object."
|
|
28067
|
+
}
|
|
28068
|
+
],
|
|
28032
28069
|
ecs: [{
|
|
28033
28070
|
flag: "--max-tasks",
|
|
28034
28071
|
kind: "scalar",
|
|
@@ -28148,13 +28185,14 @@ function resolveEnvVars(kind, values) {
|
|
|
28148
28185
|
* the studio HTTP server (`startStudioServer`) at `GET /`.
|
|
28149
28186
|
*
|
|
28150
28187
|
* 3-pane shell (decision D6), framework-free vanilla JS (decision D7):
|
|
28151
|
-
* - left = target list (from `GET /api/targets`); each Lambda
|
|
28152
|
-
* [Invoke] button, each API a [Start] / [Stop]
|
|
28153
|
-
* `running ● :port` indicator (slice C1), plus a
|
|
28154
|
-
*
|
|
28155
|
-
*
|
|
28156
|
-
*
|
|
28157
|
-
*
|
|
28188
|
+
* - left = target list (from `GET /api/targets`); each Lambda or
|
|
28189
|
+
* AgentCore runtime has an [Invoke] button, each API a [Start] / [Stop]
|
|
28190
|
+
* serve control with a `running ● :port` indicator (slice C1), plus a
|
|
28191
|
+
* selected-highlight.
|
|
28192
|
+
* - center = the WORKSPACE for the selected target: for a Lambda or an
|
|
28193
|
+
* AgentCore runtime, an event composer (textarea + Invoke button) with
|
|
28194
|
+
* the latest run's Request / Response / Logs shown below; for an API, a
|
|
28195
|
+
* Start/Stop control with the served endpoints + streaming logs.
|
|
28158
28196
|
* - right = the timeline (history) of every invocation AND every
|
|
28159
28197
|
* captured serve request (slice C2); clicking a Lambda row reloads
|
|
28160
28198
|
* it into the composer, clicking a captured request row opens a
|
|
@@ -28316,6 +28354,7 @@ const STUDIO_CSS = `
|
|
|
28316
28354
|
const STUDIO_SCRIPT = `
|
|
28317
28355
|
const KIND_LABEL = { lambda: 'Lambda', api: 'API', alb: 'ALB', ecs: 'ECS', agentcore: 'AgentCore' };
|
|
28318
28356
|
const SERVE_KINDS = ['api', 'alb', 'ecs']; // long-running serve targets
|
|
28357
|
+
const INVOKE_KINDS = ['lambda', 'agentcore']; // single-shot invoke targets (event composer)
|
|
28319
28358
|
const rowsById = new Map(); // invocationId -> timeline row element
|
|
28320
28359
|
const invById = new Map(); // invocationId -> latest invocation event
|
|
28321
28360
|
const logsById = new Map(); // invocationId / serve targetId -> [log lines]
|
|
@@ -28482,21 +28521,22 @@ const STUDIO_SCRIPT = `
|
|
|
28482
28521
|
pane.appendChild(el('div', 'group-title', group.title));
|
|
28483
28522
|
for (const entry of group.entries) {
|
|
28484
28523
|
total += 1;
|
|
28485
|
-
// Lambda targets are single-shot invokes; api / alb / ecs
|
|
28486
|
-
// long-running serves. Other kinds list but are not yet runnable.
|
|
28524
|
+
// Lambda + AgentCore targets are single-shot invokes; api / alb / ecs
|
|
28525
|
+
// are long-running serves. Other kinds list but are not yet runnable.
|
|
28487
28526
|
// Within ecs, only services are servable (task defs are run-task).
|
|
28488
28527
|
const isServe = SERVE_KINDS.includes(group.kind) && (group.kind !== 'ecs' || entry.servable === true);
|
|
28489
|
-
const
|
|
28528
|
+
const isInvoke = INVOKE_KINDS.includes(group.kind);
|
|
28529
|
+
const runnable = isInvoke || isServe;
|
|
28490
28530
|
const t = el('div', runnable ? 'target runnable' : 'target');
|
|
28491
28531
|
const name = el('span', 'name', entry.id);
|
|
28492
28532
|
name.title = entry.id; // full path on hover even when truncated
|
|
28493
28533
|
t.appendChild(name);
|
|
28494
28534
|
t.appendChild(el('span', 'kind', '(' + (KIND_LABEL[group.kind] || group.kind) + ')'));
|
|
28495
|
-
if (
|
|
28535
|
+
if (isInvoke) {
|
|
28496
28536
|
const btn = el('button', 'invoke-btn', 'Invoke');
|
|
28497
|
-
btn.onclick = (e) => { e.stopPropagation(); selectTarget(entry.id,
|
|
28537
|
+
btn.onclick = (e) => { e.stopPropagation(); selectTarget(entry.id, group.kind); };
|
|
28498
28538
|
t.appendChild(btn);
|
|
28499
|
-
t.onclick = () => selectTarget(entry.id,
|
|
28539
|
+
t.onclick = () => selectTarget(entry.id, group.kind);
|
|
28500
28540
|
targetEls.set(entry.id, t);
|
|
28501
28541
|
} else if (isServe) {
|
|
28502
28542
|
// A serve target: a running-state dot + a Start/Stop button
|
|
@@ -28840,8 +28880,9 @@ const STUDIO_SCRIPT = `
|
|
|
28840
28880
|
const row = rowsById.get(id);
|
|
28841
28881
|
if (row) row.classList.add('sel');
|
|
28842
28882
|
highlightTarget(ev.target);
|
|
28843
|
-
if (ev.kind
|
|
28844
|
-
// A
|
|
28883
|
+
if (INVOKE_KINDS.includes(ev.kind)) {
|
|
28884
|
+
// A single-shot invocation row (Lambda or AgentCore) reloads into the
|
|
28885
|
+
// re-invokable composer.
|
|
28845
28886
|
shownDetailId = null;
|
|
28846
28887
|
shownServeId = null;
|
|
28847
28888
|
renderComposer(ev.target, ev.kind, ev.request != null ? fmt(ev.request) : '{}');
|
|
@@ -29195,6 +29236,28 @@ function toStudioTargetGroups(listing) {
|
|
|
29195
29236
|
}
|
|
29196
29237
|
];
|
|
29197
29238
|
}
|
|
29239
|
+
/** Compile a `*` / `?` glob to an anchored RegExp matched against a target id. */
|
|
29240
|
+
function globToRegExp(glob) {
|
|
29241
|
+
const escaped = glob.replace(/[.+^${}()|[\]\\]/g, "\\$&").replace(/\*/g, ".*").replace(/\?/g, ".");
|
|
29242
|
+
return new RegExp(`^${escaped}$`);
|
|
29243
|
+
}
|
|
29244
|
+
/**
|
|
29245
|
+
* Filter the studio target groups to the entries whose id matches ANY of
|
|
29246
|
+
* the `--stack` globs (issue #301 slice 4). A target id is `Stack/Construct`,
|
|
29247
|
+
* so `dev/*` keeps stack `dev`'s targets and `dev*` keeps any stack whose
|
|
29248
|
+
* name starts `dev`. This is **display-only** — it scopes the targets LISTED
|
|
29249
|
+
* in the UI, NOT the synth (the whole CDK app is still synthesized; use the
|
|
29250
|
+
* app's own `-c` context gating / a committed `cdk.context.json` to scope
|
|
29251
|
+
* synth). No globs returns the groups unchanged.
|
|
29252
|
+
*/
|
|
29253
|
+
function filterStudioTargetGroups(groups, globs) {
|
|
29254
|
+
if (!globs || globs.length === 0) return groups;
|
|
29255
|
+
const matchers = globs.map(globToRegExp);
|
|
29256
|
+
return groups.map((g) => ({
|
|
29257
|
+
...g,
|
|
29258
|
+
entries: g.entries.filter((e) => matchers.some((r) => r.test(e.id)))
|
|
29259
|
+
}));
|
|
29260
|
+
}
|
|
29198
29261
|
const SSE_HEARTBEAT_MS = 15e3;
|
|
29199
29262
|
/**
|
|
29200
29263
|
* Boot the studio HTTP server: serves the embedded UI at `/`, the target
|
|
@@ -29444,20 +29507,37 @@ function buildSharedChildArgs(config) {
|
|
|
29444
29507
|
|
|
29445
29508
|
//#endregion
|
|
29446
29509
|
//#region src/local/studio-dispatch.ts
|
|
29510
|
+
/**
|
|
29511
|
+
* The single-shot invoke kinds this dispatcher drives, mapped to the `cdkl`
|
|
29512
|
+
* subcommand each spawns. `lambda` -> `cdkl invoke`; `agentcore` ->
|
|
29513
|
+
* `cdkl invoke-agentcore` (issue #301 / #303). Serve kinds (api / alb / ecs)
|
|
29514
|
+
* are NOT here — they are long-running and handled by the serve manager.
|
|
29515
|
+
*/
|
|
29516
|
+
const INVOKE_VERBS = {
|
|
29517
|
+
lambda: "invoke",
|
|
29518
|
+
agentcore: "invoke-agentcore"
|
|
29519
|
+
};
|
|
29447
29520
|
let idCounter = 0;
|
|
29448
29521
|
/**
|
|
29449
|
-
* Build the studio run dispatcher.
|
|
29450
|
-
*
|
|
29451
|
-
*
|
|
29452
|
-
*
|
|
29453
|
-
*
|
|
29522
|
+
* Build the studio run dispatcher. It drives a single-shot invoke by
|
|
29523
|
+
* spawning the SAME headless command the CLI runs — `cdkl invoke` for a
|
|
29524
|
+
* `lambda` target, `cdkl invoke-agentcore` for an `agentcore` target —
|
|
29525
|
+
* because studio is a control plane over the CLI; re-using the whole
|
|
29526
|
+
* command (rather than re-wiring its internals) guarantees byte-for-byte
|
|
29527
|
+
* parity and keeps all of the command's process-global behavior
|
|
29454
29528
|
* (`process.exit`, env mutation, stdin) isolated in a child process.
|
|
29455
29529
|
*
|
|
29456
|
-
* The child's stdout
|
|
29457
|
-
*
|
|
29458
|
-
* events. An `invocation` start
|
|
29459
|
-
* event (with response + status +
|
|
29460
|
-
* the same correlation id so the UI
|
|
29530
|
+
* The child's stdout carries the response (the Lambda return value, or the
|
|
29531
|
+
* AgentCore agent's streamed output); its stderr (status + diagnostics) is
|
|
29532
|
+
* streamed line-by-line onto the bus as `log` events. An `invocation` start
|
|
29533
|
+
* event is emitted before spawn and an end event (with response + status +
|
|
29534
|
+
* duration) after exit, both keyed by the same correlation id so the UI
|
|
29535
|
+
* threads them into one timeline row.
|
|
29536
|
+
*
|
|
29537
|
+
* The two kinds differ only in how the response is recovered from stdout
|
|
29538
|
+
* (a Lambda RIE prints exactly one JSON response line interleaved with
|
|
29539
|
+
* container logs; an AgentCore agent streams its whole output to stdout) —
|
|
29540
|
+
* see {@link extractResponse}.
|
|
29461
29541
|
*/
|
|
29462
29542
|
function createStudioDispatcher(config) {
|
|
29463
29543
|
const spawnFn = config.spawnFn ?? spawn;
|
|
@@ -29470,8 +29550,9 @@ function createStudioDispatcher(config) {
|
|
|
29470
29550
|
async function run(req) {
|
|
29471
29551
|
const invocationId = idFactory();
|
|
29472
29552
|
const startedAt = clock();
|
|
29473
|
-
|
|
29474
|
-
|
|
29553
|
+
const verb = INVOKE_VERBS[req.kind];
|
|
29554
|
+
if (verb === void 0) {
|
|
29555
|
+
const error = `'${req.kind}' targets are not single-shot invokes (served via start-* instead).`;
|
|
29475
29556
|
config.bus.emit("invocation", {
|
|
29476
29557
|
id: invocationId,
|
|
29477
29558
|
ts: startedAt,
|
|
@@ -29505,14 +29586,14 @@ function createStudioDispatcher(config) {
|
|
|
29505
29586
|
const eventFile = join(dir, "event.json");
|
|
29506
29587
|
writeFileSync(eventFile, JSON.stringify(req.event ?? {}));
|
|
29507
29588
|
const args = [
|
|
29508
|
-
|
|
29589
|
+
verb,
|
|
29509
29590
|
req.targetId,
|
|
29510
29591
|
"--event",
|
|
29511
29592
|
eventFile,
|
|
29512
29593
|
...buildSharedChildArgs(config),
|
|
29513
|
-
...buildPerRunArgs(
|
|
29594
|
+
...buildPerRunArgs(req.kind, req.options)
|
|
29514
29595
|
];
|
|
29515
|
-
const envVars = resolveEnvVars(
|
|
29596
|
+
const envVars = resolveEnvVars(req.kind, req.options);
|
|
29516
29597
|
if (envVars) {
|
|
29517
29598
|
const envFile = join(dir, "env-vars.json");
|
|
29518
29599
|
writeFileSync(envFile, JSON.stringify(envVars));
|
|
@@ -29521,26 +29602,9 @@ function createStudioDispatcher(config) {
|
|
|
29521
29602
|
const { code, stdout, stderr } = await runChild(spawnFn, nodeBin, [config.cliEntry, ...args], config.cwd ?? process.cwd(), invocationId, req.targetId, config.bus, clock);
|
|
29522
29603
|
const durationMs = clock() - startedAt;
|
|
29523
29604
|
const ok = code === 0;
|
|
29524
|
-
const failure = stderr.trim() || `cdkl
|
|
29525
|
-
const
|
|
29526
|
-
|
|
29527
|
-
let response;
|
|
29528
|
-
if (ok) {
|
|
29529
|
-
for (let i = stdoutLines.length - 1; i >= 0; i -= 1) {
|
|
29530
|
-
const parsed = tryParseJson(stdoutLines[i] ?? "");
|
|
29531
|
-
if (parsed.ok) {
|
|
29532
|
-
responseIdx = i;
|
|
29533
|
-
response = parsed.value;
|
|
29534
|
-
break;
|
|
29535
|
-
}
|
|
29536
|
-
}
|
|
29537
|
-
if (responseIdx === -1 && stdoutLines.length > 0) {
|
|
29538
|
-
responseIdx = stdoutLines.length - 1;
|
|
29539
|
-
response = stdoutLines[responseIdx];
|
|
29540
|
-
}
|
|
29541
|
-
} else response = failure;
|
|
29542
|
-
stdoutLines.forEach((line, i) => {
|
|
29543
|
-
if (i === responseIdx) return;
|
|
29605
|
+
const failure = stderr.trim() || `cdkl ${verb} exited ${code}`;
|
|
29606
|
+
const { response, raw, stdoutLogLines } = extractResponse(req.kind, stdout, ok, failure);
|
|
29607
|
+
stdoutLogLines.forEach((line) => {
|
|
29544
29608
|
config.bus.emit("log", {
|
|
29545
29609
|
ts: clock(),
|
|
29546
29610
|
containerId: invocationId,
|
|
@@ -29549,7 +29613,6 @@ function createStudioDispatcher(config) {
|
|
|
29549
29613
|
stream: "stdout"
|
|
29550
29614
|
});
|
|
29551
29615
|
});
|
|
29552
|
-
const raw = responseIdx >= 0 ? stdoutLines[responseIdx] ?? "" : "";
|
|
29553
29616
|
const status = ok ? 200 : 500;
|
|
29554
29617
|
config.bus.emit("invocation", {
|
|
29555
29618
|
id: invocationId,
|
|
@@ -29642,6 +29705,67 @@ function runChild(spawnFn, nodeBin, argv, cwd, invocationId, target, bus, clock)
|
|
|
29642
29705
|
});
|
|
29643
29706
|
});
|
|
29644
29707
|
}
|
|
29708
|
+
/**
|
|
29709
|
+
* Recover the response from a child's accumulated stdout, per target kind.
|
|
29710
|
+
* On failure (`ok === false`) the response is the `failure` summary for every
|
|
29711
|
+
* kind and no stdout is treated as the response.
|
|
29712
|
+
*
|
|
29713
|
+
* - **lambda**: `cdkl invoke` interleaves container logs (`START`/`END`/
|
|
29714
|
+
* `REPORT`, handler `console.log`) with the RIE response on stdout. The
|
|
29715
|
+
* response is always a single line of valid JSON, so it is the LAST
|
|
29716
|
+
* JSON-parseable stdout line (robust against a container log line flushing
|
|
29717
|
+
* AFTER the response); every other line is a log. Falls back to the last
|
|
29718
|
+
* line when nothing parses (an unusual non-JSON / empty response).
|
|
29719
|
+
* - **agentcore**: `cdkl invoke-agentcore` streams the agent's WHOLE output to
|
|
29720
|
+
* stdout (HTTP SSE chunks / MCP-A2A JSON-RPC result / `--ws` frames) and
|
|
29721
|
+
* nothing else (synth progress is silenced to stderr by `CDKL_LOG_LEVEL`),
|
|
29722
|
+
* so the entire stdout IS the response — parsed as JSON when it parses
|
|
29723
|
+
* whole (a single MCP result), else kept as the raw streamed text. There
|
|
29724
|
+
* are no separate stdout log lines.
|
|
29725
|
+
*/
|
|
29726
|
+
function extractResponse(kind, stdout, ok, failure) {
|
|
29727
|
+
if (kind === "agentcore") {
|
|
29728
|
+
const text = stdout.trim();
|
|
29729
|
+
if (!ok) return {
|
|
29730
|
+
response: failure,
|
|
29731
|
+
raw: "",
|
|
29732
|
+
stdoutLogLines: []
|
|
29733
|
+
};
|
|
29734
|
+
const parsed = tryParseJson(text);
|
|
29735
|
+
return {
|
|
29736
|
+
response: parsed.ok ? parsed.value : text,
|
|
29737
|
+
raw: text,
|
|
29738
|
+
stdoutLogLines: []
|
|
29739
|
+
};
|
|
29740
|
+
}
|
|
29741
|
+
const stdoutLines = stdout.split("\n").map((l) => l.replace(/\r$/, "").trimEnd()).filter((l) => l.trim().length > 0);
|
|
29742
|
+
if (!ok) return {
|
|
29743
|
+
response: failure,
|
|
29744
|
+
raw: "",
|
|
29745
|
+
stdoutLogLines: stdoutLines
|
|
29746
|
+
};
|
|
29747
|
+
let responseIdx = -1;
|
|
29748
|
+
let response;
|
|
29749
|
+
for (let i = stdoutLines.length - 1; i >= 0; i -= 1) {
|
|
29750
|
+
const parsed = tryParseJson(stdoutLines[i] ?? "");
|
|
29751
|
+
if (parsed.ok) {
|
|
29752
|
+
responseIdx = i;
|
|
29753
|
+
response = parsed.value;
|
|
29754
|
+
break;
|
|
29755
|
+
}
|
|
29756
|
+
}
|
|
29757
|
+
if (responseIdx === -1 && stdoutLines.length > 0) {
|
|
29758
|
+
responseIdx = stdoutLines.length - 1;
|
|
29759
|
+
response = stdoutLines[responseIdx];
|
|
29760
|
+
}
|
|
29761
|
+
const raw = responseIdx >= 0 ? stdoutLines[responseIdx] ?? "" : "";
|
|
29762
|
+
const stdoutLogLines = stdoutLines.filter((_, i) => i !== responseIdx);
|
|
29763
|
+
return {
|
|
29764
|
+
response,
|
|
29765
|
+
raw,
|
|
29766
|
+
stdoutLogLines
|
|
29767
|
+
};
|
|
29768
|
+
}
|
|
29645
29769
|
/** Try to JSON-parse `raw`; `ok` distinguishes a parsed value from a failure. */
|
|
29646
29770
|
function tryParseJson(raw) {
|
|
29647
29771
|
if (raw === "") return {
|
|
@@ -30266,7 +30390,12 @@ async function localStudioCommand(options) {
|
|
|
30266
30390
|
...Object.keys(context).length > 0 && { context }
|
|
30267
30391
|
};
|
|
30268
30392
|
const { stacks } = await synthesizer.synthesize(synthOpts);
|
|
30269
|
-
const targetGroups = toStudioTargetGroups(listTargets(stacks));
|
|
30393
|
+
const targetGroups = filterStudioTargetGroups(toStudioTargetGroups(listTargets(stacks)), options.stack);
|
|
30394
|
+
if (options.stack && options.stack.length > 0) {
|
|
30395
|
+
const shown = targetGroups.reduce((n, g) => n + g.entries.length, 0);
|
|
30396
|
+
if (shown === 0) logger.warn(`--stack ${options.stack.join(" ")} matched no targets; the UI list is empty.`);
|
|
30397
|
+
else logger.info(`--stack filter: showing ${shown} target(s) matching ${options.stack.join(" ")}.`);
|
|
30398
|
+
}
|
|
30270
30399
|
const appLabel = stacks.map((s) => s.stackName).join(", ") || appCmd;
|
|
30271
30400
|
const servableEcs = new Set(targetGroups.filter((g) => g.kind === "ecs").flatMap((g) => g.entries.filter((e) => e.servable).map((e) => e.id)));
|
|
30272
30401
|
const bus = new StudioEventBus();
|
|
@@ -30302,7 +30431,7 @@ async function localStudioCommand(options) {
|
|
|
30302
30431
|
store,
|
|
30303
30432
|
onRun: (body) => {
|
|
30304
30433
|
const req = coerceRunRequest(body);
|
|
30305
|
-
if (req.kind === "lambda") return dispatcher.run(req);
|
|
30434
|
+
if (req.kind === "lambda" || req.kind === "agentcore") return dispatcher.run(req);
|
|
30306
30435
|
if (req.kind === "ecs" && !servableEcs.has(req.targetId)) return Promise.reject(/* @__PURE__ */ new Error(`'${req.targetId}' is not a servable ECS service (an ECS task definition runs via run-task, not start-service).`));
|
|
30307
30436
|
return serveManager.start(req);
|
|
30308
30437
|
},
|
|
@@ -30385,9 +30514,10 @@ function addStudioSpecificOptions(cmd) {
|
|
|
30385
30514
|
cmd.addOption(new Option("--no-open", "Do not auto-open the browser when studio starts (TTY only)"));
|
|
30386
30515
|
cmd.addOption(new Option("--from-cfn-stack [cfn-stack-name]", "Bind the whole studio session to a deployed CloudFormation stack: every invoke / serve started from the UI runs against the deployed stack real ARNs / Secret values. Bare flag auto-resolves a single-stack app; pass a name to pick the stack. Forwarded to each child command."));
|
|
30387
30516
|
cmd.addOption(new Option("--assume-role <arn>", "IAM role ARN to assume for every invoke / serve started from the UI (temp credentials forwarded into the containers). Forwarded to each child command."));
|
|
30517
|
+
cmd.addOption(new Option("--stack <glob...>", "Filter the DISPLAYED targets by stack glob (e.g. \"dev/*\"); a target id is \"Stack/Construct\". Display-only — does NOT scope synth (the whole app is still synthesized; gate synth with the app's own -c context or a committed cdk.context.json). Space-separate multiple globs; a target matching ANY glob is shown."));
|
|
30388
30518
|
return cmd;
|
|
30389
30519
|
}
|
|
30390
30520
|
|
|
30391
30521
|
//#endregion
|
|
30392
|
-
export {
|
|
30393
|
-
//# sourceMappingURL=local-studio-
|
|
30522
|
+
export { SOFT_RELOAD_COMPLETION_LOG_SUFFIX as $, listTargets as $n, buildMethodArn as $t, addCommonEcsServiceOptions as A, architectureToPlatform as An, createWatchPredicates as At, ImageOverrideError as B, LocalStateSourceError as Bn, filterRoutesByApiIdentifiers as Bt, resolveAlbFrontDoor as C, ConnectionRegistry as Cn, renderCodeDockerfile as Ct, addRunTaskSpecificOptions as D, buildConnectEvent as Dn, createLocalInvokeCommand as Dt, serviceStrategy as E, parseConnectionsPath as En, addInvokeSpecificOptions as Et, parseMaxTasks as F, EcsTaskResolutionError as Fn, buildStageMap as Ft, resolveImageOverrides as G, resolveCfnRegion as Gn, resolveServiceIntegrationParameters as Gt, enforceImageOverrideOrphans as H, isCfnFlagPresent as Hn, readMtlsMaterialsFromDisk as Ht, parseRestartPolicy as I, substituteAgainstState as In, materializeLayerFromArn as It, isLocalCdkAssetImage as J, collectSsmParameterRefs as Jn, buildJwksUrlFromIssuer as Jt, runImageOverrideBuilds as K, resolveCfnStackName as Kn, defaultCredentialsLoader as Kt, resolveEcsAssumeRoleOption as L, substituteAgainstStateAsync as Ln, resolveEnvVars$1 as Lt, addImageOverrideOptions as M, resolveRuntimeCodeMountPath as Mn, createAuthorizerCache as Mt, buildEcsImageResolutionContext$1 as N, resolveRuntimeFileExtension as Nn, createFileWatcher as Nt, createLocalRunTaskCommand as O, buildDisconnectEvent as On, addStartApiSpecificOptions as Ot, ecsClusterOption as P, resolveRuntimeImage as Pn, attachStageContext as Pt, DEFAULT_SHADOW_READY_TIMEOUT_MS as Q, countTargets as Qn, verifyJwtViaDiscovery as Qt, resolveSharedSidecarCredentials as R, substituteEnvVarsFromState as Rn, availableApiIdentifiers as Rt, isApplicationLoadBalancer as S, bufferToBody as Sn, computeCodeImageTag as St, createLocalStartServiceCommand as T, handleConnectionsRequest as Tn, classifySourceChange as Tt, mergeForService as U, rejectExplicitCfnStackWithMultipleStacks as Un, startApiServer as Ut, buildImageOverrideTag as V, createLocalStateProvider as Vn, groupRoutesByServer as Vt, parseImageOverrideFlags as W, resolveCfnFallbackRegion as Wn, resolveSelectionExpression as Wt, buildCloudMapIndex as X, resolveWatchConfig as Xn, verifyCognitoJwt as Xt, listPinnedTargets as Y, resolveSsmParameters as Yn, createJwksCache as Yt, CloudMapRegistry as Z, resolveSingleTarget as Zn, verifyJwtAuthorizer as Zt, addAlbSpecificOptions as _, selectIntegrationResponse as _n, tryResolveImageFnJoin as _r, invokeAgentCore as _t, createStudioServeManager as a, applyCorsResponseHeaders as an, resolveLambdaArnIntrinsic as ar, invokeAgentCoreWs as at, parseLbPortOverrides as b, HOST_GATEWAY_MIN_VERSION as bn, resolveProfileCredentials as br, SUPPORTED_CODE_RUNTIMES as bt, filterStudioTargetGroups as c, isFunctionUrlOacFronted as cn, AGENTCORE_HTTP_PROTOCOL as cr, a2aInvokeOnce as ct, renderStudioHtml as d, translateLambdaResponse as dn, AgentCoreResolutionError as dr, MCP_PROTOCOL_VERSION as dt, computeRequestIdentityHash as en, discoverWebSocketApis as er, setShadowReadyTimeoutMs as et, createStudioStore as f, applyAuthorizerOverlay as fn, pickAgentCoreCandidateStack as fr, mcpInvokeOnce as ft, formatTargetListing as g, pickResponseTemplate as gn, substituteImagePlaceholders as gr, AGENTCORE_SESSION_ID_HEADER as gt, createLocalListCommand as h, evaluateResponseParameters as hn, formatStateRemedy as hr, signAgentCoreInvocation as ht, createLocalStudioCommand as i, attachAuthorizers as in, pickRefLogicalId as ir, createLocalInvokeAgentCoreCommand as it, addEcsAssumeRoleOptions as j, buildContainerImage as jn, resolveApiTargetSubset as jt, MAX_TASKS_SUBNET_RANGE_CAP as k, buildMessageEvent as kn, createLocalStartApiCommand as kt, startStudioServer as l, matchPreflight as ln, AGENTCORE_MCP_PROTOCOL as lr, MCP_CONTAINER_PORT as lt, addListSpecificOptions as m, buildRestV1Event as mn, derivePseudoParametersFromRegion as mr, AGENTCORE_SIGV4_SERVICE as mt, coerceRunRequest as n, invokeRequestAuthorizer as nn, parseSelectionExpressionPath as nr, attachContainerLogStreamer as nt, startStudioProxy as o, buildCorsConfigByApiId as on, AGENTCORE_A2A_PROTOCOL as or, A2A_CONTAINER_PORT as ot, StudioEventBus as p, buildHttpApiV2Event as pn, resolveAgentCoreTarget as pr, parseSseForJsonRpc as pt, describePinnedImageUri as q, CfnLocalStateProvider as qn, buildCognitoJwksUrl as qt, coerceStopRequest as r, invokeTokenAuthorizer as rn, discoverRoutes as rr, addInvokeAgentCoreSpecificOptions as rt, createStudioDispatcher as s, buildCorsConfigFromCloudFrontChain as sn, AGENTCORE_AGUI_PROTOCOL as sr, A2A_PATH as st, addStudioSpecificOptions as t, evaluateCachedLambdaPolicy as tn, discoverWebSocketApisOrThrow as tr, getContainerNetworkIp as tt, toStudioTargetGroups as u, matchRoute as un, AGENTCORE_RUNTIME_TYPE as ur, MCP_PATH as ut, albStrategy as v, tryParseStatus as vn, LocalInvokeBuildError as vr, waitForAgentCorePing as vt, addStartServiceSpecificOptions as w, buildMgmtEndpointEnvUrl as wn, toCmdArgv as wt, resolveAlbTarget as x, probeHostGatewaySupport as xn, buildAgentCoreCodeImage as xt, createLocalStartAlbCommand as y, VtlEvaluationError as yn, buildStsClientConfig as yr, downloadAndExtractS3Bundle as yt, runEcsServiceEmulator as z, substituteEnvVarsFromStateAsync as zn, filterRoutesByApiIdentifier as zt };
|
|
30523
|
+
//# sourceMappingURL=local-studio-DWpZOh3G.js.map
|