cdk-local 0.147.0 → 0.147.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.
@@ -2,10 +2,7 @@ import { Command, Option } from "commander";
2
2
  import { SSMClient } from "@aws-sdk/client-ssm";
3
3
  import { spawn } from "node:child_process";
4
4
  import { WebSocket } from "ws";
5
- import { IncomingHttpHeaders, IncomingMessage, Server, ServerResponse } from "node:http";
6
5
  import graphlib from "graphlib";
7
- import * as vm from "node:vm";
8
-
9
6
  //#region src/types/resource.d.ts
10
7
  interface CloudFormationTemplate {
11
8
  AWSTemplateFormatVersion?: string;
@@ -248,37 +245,6 @@ interface CreateLocalInvokeCommandOptions {
248
245
  declare function createLocalInvokeCommand(opts?: CreateLocalInvokeCommandOptions): Command;
249
246
  declare function addInvokeSpecificOptions(cmd: Command): Command;
250
247
  //#endregion
251
- //#region src/local/file-watcher.d.ts
252
- interface FileWatcher {
253
- close(): Promise<void>;
254
- }
255
- interface FileWatcherOptions {
256
- paths: readonly string[];
257
- onChange: (changedPaths: readonly string[]) => void;
258
- debounceMs?: number;
259
- ignoreInitial?: boolean;
260
- ignored?: (path: string) => boolean;
261
- shouldTrigger?: (path: string) => boolean;
262
- }
263
- declare function createFileWatcher(options: FileWatcherOptions): FileWatcher;
264
- //#endregion
265
- //#region src/local/source-change-classifier.d.ts
266
- interface ReloadAssetContext {
267
- oldAssetHash?: string;
268
- newAssetHash: string;
269
- newAssetSourceDir: string;
270
- dockerFile: string;
271
- }
272
- type ReloadVerdict = {
273
- kind: 'rebuild';
274
- reason: string;
275
- } | {
276
- kind: 'soft-reload';
277
- reason: string;
278
- newAssetSourceDir: string;
279
- };
280
- declare function classifySourceChange(changedPaths: readonly string[], ctx: ReloadAssetContext | undefined): ReloadVerdict;
281
- //#endregion
282
248
  //#region src/local/intrinsic-image.d.ts
283
249
  interface ImageResolutionContext {
284
250
  pseudoParameters?: {
@@ -314,136 +280,6 @@ type FnJoinResolveOutcome = {
314
280
  declare function tryResolveImageFnJoin(raw: unknown, resources: Record<string, TemplateResource>, context: ImageResolutionContext | undefined): FnJoinResolveOutcome;
315
281
  declare function substituteImagePlaceholders(flat: string, resources: Record<string, TemplateResource>, context: ImageResolutionContext | undefined): string;
316
282
  //#endregion
317
- //#region src/local/agentcore-resolver.d.ts
318
- declare const AGENTCORE_RUNTIME_TYPE = "AWS::BedrockAgentCore::Runtime";
319
- declare const AGENTCORE_HTTP_PROTOCOL = "HTTP";
320
- declare const AGENTCORE_MCP_PROTOCOL = "MCP";
321
- declare const AGENTCORE_A2A_PROTOCOL = "A2A";
322
- declare const AGENTCORE_AGUI_PROTOCOL = "AGUI";
323
- interface ResolvedAgentCoreRuntime {
324
- stack: StackInfo;
325
- logicalId: string;
326
- resource: TemplateResource;
327
- containerUri?: string;
328
- codeArtifact?: AgentCoreCodeArtifact;
329
- environmentVariables: Record<string, unknown>;
330
- roleArn?: string;
331
- protocol: string;
332
- jwtAuthorizer?: AgentCoreJwtAuthorizer;
333
- }
334
- interface AgentCoreJwtAuthorizer {
335
- discoveryUrl: string;
336
- allowedAudience?: string[];
337
- allowedClients?: string[];
338
- allowedScopes?: string[];
339
- customClaims?: AgentCoreCustomClaim[];
340
- }
341
- interface AgentCoreCustomClaim {
342
- name: string;
343
- valueType: 'STRING' | 'STRING_ARRAY';
344
- operator: 'EQUALS' | 'CONTAINS' | 'CONTAINS_ANY';
345
- value: string | string[];
346
- }
347
- interface AgentCoreCodeArtifact {
348
- runtime: string;
349
- entryPoint: string[];
350
- codeAssetHash: string;
351
- s3Source?: {
352
- bucket?: string;
353
- bucketIntrinsic?: unknown;
354
- key: string;
355
- versionId?: string;
356
- };
357
- }
358
- declare class AgentCoreResolutionError extends Error {
359
- constructor(message: string);
360
- }
361
- declare function resolveAgentCoreTarget(target: string, stacks: StackInfo[], imageContext?: ImageResolutionContext): ResolvedAgentCoreRuntime;
362
- declare function pickAgentCoreCandidateStack(target: string, stacks: StackInfo[]): StackInfo | undefined;
363
- //#endregion
364
- //#region src/local/agentcore-sigv4-sign.d.ts
365
- declare const AGENTCORE_SIGV4_SERVICE = "bedrock-agentcore";
366
- interface SigV4Credentials {
367
- accessKeyId: string;
368
- secretAccessKey: string;
369
- sessionToken?: string;
370
- }
371
- interface SignAgentCoreInvocationOptions {
372
- credentials: SigV4Credentials;
373
- region: string;
374
- host: string;
375
- port: number;
376
- path: string;
377
- body: string | Buffer;
378
- sessionId: string;
379
- method?: string;
380
- now?: () => number;
381
- }
382
- interface SignedAgentCoreHeaders {
383
- authorization: string;
384
- amzDate: string;
385
- amzContentSha256: string;
386
- amzSecurityToken?: string;
387
- }
388
- declare function signAgentCoreInvocation(opts: SignAgentCoreInvocationOptions): Promise<SignedAgentCoreHeaders>;
389
- //#endregion
390
- //#region src/local/agentcore-client.d.ts
391
- declare const AGENTCORE_SESSION_ID_HEADER = "X-Amzn-Bedrock-AgentCore-Runtime-Session-Id";
392
- interface AgentCoreInvokeResult {
393
- status: number;
394
- contentType: string | null;
395
- raw: string;
396
- streamed: boolean;
397
- }
398
- declare function waitForAgentCorePing(host: string, port: number, timeoutMs?: number): Promise<void>;
399
- declare function waitForAgentCoreHttpReady(host: string, port: number, path: string, timeoutMs?: number): Promise<void>;
400
- interface InvokeAgentCoreOptions {
401
- sessionId: string;
402
- timeoutMs: number;
403
- authorization?: string;
404
- additionalHeaders?: Record<string, string>;
405
- onChunk?: (text: string) => void;
406
- }
407
- declare function invokeAgentCore(host: string, port: number, event: unknown, options: InvokeAgentCoreOptions): Promise<AgentCoreInvokeResult>;
408
- //#endregion
409
- //#region src/local/agentcore-mcp-client.d.ts
410
- declare const MCP_CONTAINER_PORT = 8000;
411
- declare const MCP_PATH = "/mcp";
412
- declare const MCP_PROTOCOL_VERSION = "2025-06-18";
413
- interface McpJsonRpcRequest {
414
- method: string;
415
- params?: unknown;
416
- }
417
- interface McpInvokeResult {
418
- ok: boolean;
419
- raw: string;
420
- }
421
- interface McpInvokeOptions {
422
- readyTimeoutMs?: number;
423
- requestTimeoutMs?: number;
424
- fetchImpl?: typeof fetch;
425
- }
426
- declare function mcpInvokeOnce(host: string, port: number, request: McpJsonRpcRequest, options?: McpInvokeOptions): Promise<McpInvokeResult>;
427
- declare function parseSseForJsonRpc(text: string, id: number): unknown;
428
- //#endregion
429
- //#region src/local/agentcore-a2a-client.d.ts
430
- declare const A2A_CONTAINER_PORT = 9000;
431
- declare const A2A_PATH = "/";
432
- interface A2aJsonRpcRequest {
433
- method: string;
434
- params?: unknown;
435
- }
436
- interface A2aInvokeResult {
437
- ok: boolean;
438
- raw: string;
439
- }
440
- interface A2aInvokeOptions {
441
- readyTimeoutMs?: number;
442
- requestTimeoutMs?: number;
443
- fetchImpl?: typeof fetch;
444
- }
445
- declare function a2aInvokeOnce(host: string, port: number, request: A2aJsonRpcRequest, options?: A2aInvokeOptions): Promise<A2aInvokeResult>;
446
- //#endregion
447
283
  //#region src/local/agentcore-ws-client.d.ts
448
284
  interface InvokeAgentCoreWsOptions {
449
285
  sessionId: string;
@@ -474,39 +310,6 @@ interface AgentCoreWsBridgeHandle {
474
310
  declare function bridgeAgentCoreWs(host: string, port: number, options: BridgeAgentCoreWsOptions): AgentCoreWsBridgeHandle;
475
311
  declare function invokeAgentCoreWs(host: string, port: number, event: unknown, options: InvokeAgentCoreWsOptions): Promise<AgentCoreWsResult>;
476
312
  //#endregion
477
- //#region src/local/env-resolver.d.ts
478
- interface EnvResolutionResult {
479
- resolved: Record<string, string>;
480
- unresolved: string[];
481
- }
482
- interface EnvOverrideFile {
483
- Parameters?: Record<string, string | null>;
484
- [logicalIdOrDisplayPath: string]: Record<string, string | null> | undefined;
485
- }
486
- declare function resolveEnvVars(logicalId: string, displayPath: string | undefined, templateEnv: Record<string, unknown> | undefined, overrides?: EnvOverrideFile): EnvResolutionResult;
487
- //#endregion
488
- //#region src/types/assets.d.ts
489
- interface DockerImageAssetSource {
490
- directory?: string;
491
- executable?: string[];
492
- dockerFile?: string;
493
- dockerBuildTarget?: string;
494
- dockerBuildArgs?: Record<string, string>;
495
- dockerBuildContexts?: Record<string, string>;
496
- dockerBuildSsh?: string;
497
- dockerBuildSecrets?: Record<string, string>;
498
- networkMode?: string;
499
- platform?: string;
500
- dockerOutputs?: string[];
501
- cacheFrom?: DockerCacheOption[];
502
- cacheTo?: DockerCacheOption;
503
- cacheDisabled?: boolean;
504
- }
505
- interface DockerCacheOption {
506
- type: string;
507
- params?: Record<string, string>;
508
- }
509
- //#endregion
510
313
  //#region src/cli/commands/local-invoke-agentcore.d.ts
511
314
  interface CreateLocalInvokeAgentCoreCommandOptions {
512
315
  extraStateProviders?: ExtraStateProviders;
@@ -515,21 +318,6 @@ interface CreateLocalInvokeAgentCoreCommandOptions {
515
318
  declare function createLocalInvokeAgentCoreCommand(opts?: CreateLocalInvokeAgentCoreCommandOptions): Command;
516
319
  declare function addInvokeAgentCoreSpecificOptions(cmd: Command): Command;
517
320
  //#endregion
518
- //#region src/utils/profile-resolver.d.ts
519
- declare function resolveProfileCredentials(profile: string): Promise<{
520
- accessKeyId: string;
521
- secretAccessKey: string;
522
- sessionToken?: string;
523
- region?: string;
524
- }>;
525
- declare function buildStsClientConfig(args: {
526
- region?: string | undefined;
527
- profile?: string | undefined;
528
- }): {
529
- region?: string;
530
- profile?: string;
531
- };
532
- //#endregion
533
321
  //#region src/cli/config-loader.d.ts
534
322
  interface CdkWatchConfig {
535
323
  include: string[];
@@ -540,26 +328,6 @@ declare function resolveWatchConfig(): CdkWatchConfig;
540
328
  //#region src/local/httpv2-service-integration.d.ts
541
329
  type SupportedSubtype = 'EventBridge-PutEvents' | 'SQS-SendMessage' | 'SQS-ReceiveMessage' | 'SQS-DeleteMessage' | 'SQS-PurgeQueue' | 'Kinesis-PutRecord' | 'StepFunctions-StartExecution' | 'StepFunctions-StartSyncExecution' | 'StepFunctions-StopExecution' | 'AppConfig-GetConfiguration';
542
330
  //#endregion
543
- //#region src/local/container-pool.d.ts
544
- interface ContainerHandle {
545
- logicalId: string;
546
- containerId: string;
547
- containerName: string;
548
- hostPort: number;
549
- containerHost: string;
550
- stopLogStream: () => void;
551
- }
552
- interface ContainerPool {
553
- acquire(logicalId: string): Promise<ContainerHandle>;
554
- release(handle: ContainerHandle): void;
555
- dispose(): Promise<void>;
556
- }
557
- //#endregion
558
- //#region src/local/vtl-engine.d.ts
559
- declare class VtlEvaluationError extends Error {
560
- constructor(message: string);
561
- }
562
- //#endregion
563
331
  //#region src/local/integration-response-selector.d.ts
564
332
  interface IntegrationResponseEntry {
565
333
  StatusCode: string;
@@ -670,28 +438,6 @@ declare function webSocketApiMatchesIdentifier(api: DiscoveredWebSocketApi, iden
670
438
  declare function filterWebSocketApisByIdentifiers(apis: readonly DiscoveredWebSocketApi[], identifiers: readonly string[]): DiscoveredWebSocketApi[];
671
439
  declare function availableWebSocketApiIdentifiers(apis: readonly DiscoveredWebSocketApi[]): string[];
672
440
  //#endregion
673
- //#region src/local/cors-handler.d.ts
674
- interface CorsConfig {
675
- AllowOrigins: string[];
676
- AllowMethods: string[];
677
- AllowHeaders: string[];
678
- ExposeHeaders: string[];
679
- MaxAge?: number;
680
- AllowCredentials?: boolean;
681
- }
682
- declare function buildCorsConfigByApiId(template: CloudFormationTemplate): Map<string, CorsConfig>;
683
- declare function buildCorsConfigFromCloudFrontChain(template: CloudFormationTemplate): Map<string, CorsConfig>;
684
- declare function isFunctionUrlOacFronted(template: CloudFormationTemplate, fnUrlLogicalId: string): boolean;
685
- interface PreflightResponse {
686
- statusCode: number;
687
- headers: Record<string, string>;
688
- }
689
- declare function matchPreflight(req: {
690
- method: string;
691
- headers: Record<string, string[]>;
692
- }, config: CorsConfig): PreflightResponse | null;
693
- declare function applyCorsResponseHeaders(res: ServerResponse, apiLogicalId: string | undefined, corsConfigByApiId: Map<string, CorsConfig>, requestOrigin: string | undefined): void;
694
- //#endregion
695
441
  //#region src/local/authorizer-resolver.d.ts
696
442
  interface LambdaTokenAuthorizer {
697
443
  kind: 'lambda-token';
@@ -759,146 +505,6 @@ interface RouteWithAuth {
759
505
  }
760
506
  declare function attachAuthorizers(stacks: readonly StackInfo[], routes: readonly DiscoveredRoute[]): RouteWithAuth[];
761
507
  //#endregion
762
- //#region src/local/authorizer-cache.d.ts
763
- interface CachedAuthorizerResult {
764
- allow: boolean;
765
- principalId?: string;
766
- context?: Record<string, unknown>;
767
- policy?: unknown;
768
- }
769
- interface AuthorizerCache {
770
- get(authorizerLogicalId: string, identityHash: string): CachedAuthorizerResult | undefined;
771
- set(authorizerLogicalId: string, identityHash: string, ttlSeconds: number, result: CachedAuthorizerResult): void;
772
- clear(): void;
773
- size(): number;
774
- }
775
- declare function createAuthorizerCache(opts?: {
776
- now?: () => number;
777
- }): AuthorizerCache;
778
- //#endregion
779
- //#region src/local/cognito-jwt.d.ts
780
- interface JwksKey {
781
- kid: string;
782
- n: string;
783
- e: string;
784
- alg?: string;
785
- kty: string;
786
- use?: string;
787
- }
788
- interface JwksCacheEntry {
789
- byKid: Map<string, JwksKey>;
790
- expiresAt: number;
791
- passThrough: boolean;
792
- }
793
- interface JwksCache {
794
- fetchAndCache(jwksUrl: string): Promise<JwksCacheEntry>;
795
- peek(jwksUrl: string): JwksCacheEntry | undefined;
796
- clear(): void;
797
- }
798
- type WarnedAt = Map<string, number>;
799
- declare function createJwksCache(opts?: {
800
- fetchImpl?: (url: string) => Promise<{
801
- ok: boolean;
802
- status: number;
803
- text: () => Promise<string>;
804
- }>;
805
- now?: () => number;
806
- ttlMs?: number;
807
- failureTtlMs?: number;
808
- }): JwksCache;
809
- declare function buildCognitoJwksUrl(region: string, userPoolId: string): string;
810
- declare function buildJwksUrlFromIssuer(issuer: string): string;
811
- declare function verifyCognitoJwt(authorizer: CognitoUserPoolAuthorizer, authorizationHeader: string | undefined, jwksCache: JwksCache, opts?: {
812
- now?: () => number;
813
- warnedAt?: WarnedAt;
814
- }): Promise<CachedAuthorizerResult & {
815
- identityHash: string | undefined;
816
- ttlSeconds: number;
817
- }>;
818
- declare function verifyJwtAuthorizer(authorizer: JwtAuthorizer, authorizationHeader: string | undefined, jwksCache: JwksCache, opts?: {
819
- now?: () => number;
820
- warnedAt?: WarnedAt;
821
- }): Promise<CachedAuthorizerResult & {
822
- identityHash: string | undefined;
823
- ttlSeconds: number;
824
- }>;
825
- interface DiscoveryJwtAuthorizer {
826
- discoveryUrl: string;
827
- allowedAudience?: readonly string[];
828
- allowedClients?: readonly string[];
829
- allowedScopes?: readonly string[];
830
- customClaims?: readonly JwtCustomClaim[];
831
- }
832
- interface JwtCustomClaim {
833
- name: string;
834
- valueType: 'STRING' | 'STRING_ARRAY';
835
- operator: 'EQUALS' | 'CONTAINS' | 'CONTAINS_ANY';
836
- value: string | string[];
837
- }
838
- declare function verifyJwtViaDiscovery(authorizer: DiscoveryJwtAuthorizer, authorizationHeader: string | undefined, jwksCache: JwksCache, opts?: {
839
- now?: () => number;
840
- warnedAt?: WarnedAt;
841
- fetchImpl?: (url: string) => Promise<{
842
- ok: boolean;
843
- status: number;
844
- text: () => Promise<string>;
845
- }>;
846
- }): Promise<CachedAuthorizerResult & {
847
- identityHash: string | undefined;
848
- ttlSeconds: number;
849
- }>;
850
- //#endregion
851
- //#region src/local/sigv4-verify.d.ts
852
- interface ResolvedCredentials {
853
- accessKeyId: string;
854
- secretAccessKey: string;
855
- sessionToken?: string | undefined;
856
- }
857
- type CredentialsLoader = () => Promise<ResolvedCredentials>;
858
- declare function defaultCredentialsLoader(): CredentialsLoader;
859
- //#endregion
860
- //#region src/local/http-server.d.ts
861
- interface ServerState {
862
- routes: readonly RouteWithAuth[];
863
- pool: ContainerPool;
864
- corsConfigByApiId: Map<string, CorsConfig>;
865
- }
866
- interface StartApiServerOptions {
867
- state: ServerState;
868
- rieTimeoutMs: number;
869
- host: string;
870
- port: number;
871
- authorizerCache?: AuthorizerCache;
872
- jwksCache?: JwksCache;
873
- jwksWarnedAt?: WarnedAt;
874
- mtls?: MtlsServerConfig;
875
- sigV4CredentialsLoader?: CredentialsLoader;
876
- sigV4WarnedForeignIds?: Set<string>;
877
- sigV4Strict?: boolean;
878
- defaultRegion?: string;
879
- preDispatch?: (req: IncomingMessage, res: ServerResponse) => Promise<boolean>;
880
- }
881
- interface MtlsServerConfig {
882
- caPem: Buffer;
883
- certPem: Buffer;
884
- keyPem: Buffer;
885
- }
886
- interface StartedApiServer {
887
- port: number;
888
- host: string;
889
- scheme: 'http' | 'https';
890
- server: Server;
891
- close: () => Promise<void>;
892
- setServerState: (next: ServerState) => ServerState;
893
- getServerState: () => ServerState;
894
- }
895
- declare function startApiServer(opts: StartApiServerOptions): Promise<StartedApiServer>;
896
- declare function readMtlsMaterialsFromDisk(opts: {
897
- truststorePath: string;
898
- certPath: string;
899
- keyPath: string;
900
- }): MtlsServerConfig;
901
- //#endregion
902
508
  //#region src/cli/commands/local-start-api.d.ts
903
509
  interface CreateLocalStartApiCommandOptions {
904
510
  extraStateProviders?: ExtraStateProviders;
@@ -1055,91 +661,6 @@ interface TargetListing {
1055
661
  declare function listTargets(stacks: readonly StackInfo[]): TargetListing;
1056
662
  declare function countTargets(listing: TargetListing): number;
1057
663
  //#endregion
1058
- //#region src/local/ecs-service-resolver.d.ts
1059
- interface ResolvedServiceConnect {
1060
- namespaceName: string;
1061
- services: ReadonlyArray<{
1062
- portName: string;
1063
- containerPort: number;
1064
- discoveryName: string;
1065
- clientAliases: ReadonlyArray<{
1066
- dnsName?: string;
1067
- port: number;
1068
- }>;
1069
- }>;
1070
- }
1071
- interface ResolvedServiceRegistry {
1072
- cloudMapServiceLogicalId: string;
1073
- containerName?: string;
1074
- containerPort?: number;
1075
- }
1076
- interface ResolvedEcsService {
1077
- stack: StackInfo;
1078
- serviceLogicalId: string;
1079
- resource: TemplateResource;
1080
- serviceName: string;
1081
- serviceDisplayName: string;
1082
- desiredCount: number;
1083
- healthCheckGracePeriodSeconds: number;
1084
- task: ResolvedEcsTask;
1085
- serviceConnect?: ResolvedServiceConnect;
1086
- serviceRegistries: ReadonlyArray<ResolvedServiceRegistry>;
1087
- warnings: string[];
1088
- }
1089
- //#endregion
1090
- //#region src/local/cloud-map-registry.d.ts
1091
- interface RegisteredEndpoint {
1092
- ip: string;
1093
- port: number;
1094
- ownerKey: string;
1095
- }
1096
- interface RegistrationHandle {
1097
- readonly fqdn: string;
1098
- readonly ownerKey: string;
1099
- }
1100
- interface RegistryListing {
1101
- namespace: string;
1102
- discoveryName: string;
1103
- endpoints: ReadonlyArray<RegisteredEndpoint>;
1104
- isAlias: boolean;
1105
- }
1106
- declare class CloudMapRegistry {
1107
- private readonly byFqdn;
1108
- private readonly aliasIndex;
1109
- register(namespace: string, discoveryName: string, endpoint: RegisteredEndpoint): RegistrationHandle;
1110
- registerAlias(alias: string, targetFqdn: string): void;
1111
- unregister(handle: RegistrationHandle): boolean;
1112
- unregisterByOwner(ownerKeyPrefix: string): number;
1113
- lookup(namespace: string, discoveryName: string): ReadonlyArray<RegisteredEndpoint> | undefined;
1114
- lookupAlias(alias: string): ReadonlyArray<RegisteredEndpoint> | undefined;
1115
- buildAddHostFlags(excludeOwnerKeyPrefix?: string): string[];
1116
- list(): ReadonlyArray<RegistryListing>;
1117
- isEmpty(): boolean;
1118
- }
1119
- //#endregion
1120
- //#region src/local/cloud-map-resolver.d.ts
1121
- interface ResolvedCloudMapNamespace {
1122
- logicalId: string;
1123
- name: string;
1124
- }
1125
- interface ResolvedCloudMapService {
1126
- logicalId: string;
1127
- namespaceLogicalId: string;
1128
- namespaceName: string;
1129
- name: string;
1130
- dnsRecords: ReadonlyArray<{
1131
- type: 'A' | 'SRV';
1132
- ttlSeconds: number;
1133
- }>;
1134
- }
1135
- interface CloudMapIndex {
1136
- namespacesByLogicalId: Map<string, ResolvedCloudMapNamespace>;
1137
- namespacesByName: Map<string, ResolvedCloudMapNamespace>;
1138
- servicesByLogicalId: Map<string, ResolvedCloudMapService>;
1139
- warnings: string[];
1140
- }
1141
- declare function buildCloudMapIndex(stack: StackInfo): CloudMapIndex;
1142
- //#endregion
1143
664
  //#region src/local/ecs-service-runner.d.ts
1144
665
  declare const SOFT_RELOAD_COMPLETION_LOG_SUFFIX = "restart + TCP-ready probe complete; Cloud Map + front-door re-published.";
1145
666
  declare const DEFAULT_SHADOW_READY_TIMEOUT_MS = 60000;
@@ -1386,253 +907,6 @@ declare function albStrategy(options: EcsServiceEmulatorOptions): EmulatorStrate
1386
907
  declare function createLocalStartAlbCommand(opts?: CreateLocalStartAlbCommandOptions): Command;
1387
908
  declare function addAlbSpecificOptions(cmd: Command): Command;
1388
909
  //#endregion
1389
- //#region src/local/cloudfront-kvs.d.ts
1390
- interface KvsDataSource {
1391
- readonly label: string;
1392
- readonly kvsId?: string;
1393
- getValue(key: string): Promise<string | undefined>;
1394
- }
1395
- interface CloudFrontKvsHandle {
1396
- get(key: string, options?: {
1397
- format?: 'string' | 'json';
1398
- }): Promise<unknown>;
1399
- exists(key: string): Promise<boolean>;
1400
- meta(): Promise<never>;
1401
- count(): Promise<never>;
1402
- }
1403
- interface CloudFrontModule {
1404
- kvs(kvsId?: string): CloudFrontKvsHandle;
1405
- }
1406
- declare function createCloudFrontModule(sources: readonly KvsDataSource[]): CloudFrontModule;
1407
- declare function createUnboundCloudFrontModule(functionLogicalId: string): CloudFrontModule;
1408
- declare function createLocalFileKvsDataSource(args: {
1409
- id: string;
1410
- filePath: string;
1411
- }): KvsDataSource;
1412
- //#endregion
1413
- //#region src/local/cloudfront-function-runtime.d.ts
1414
- interface CfValue {
1415
- value: string;
1416
- multiValue?: Array<{
1417
- value: string;
1418
- }>;
1419
- }
1420
- interface CfRequest {
1421
- method: string;
1422
- uri: string;
1423
- querystring: Record<string, CfValue>;
1424
- headers: Record<string, CfValue>;
1425
- cookies: Record<string, CfValue>;
1426
- }
1427
- interface CfResponse {
1428
- statusCode: number;
1429
- statusDescription?: string;
1430
- headers: Record<string, CfValue>;
1431
- cookies?: Record<string, CfValue>;
1432
- body?: string | {
1433
- encoding?: 'text' | 'base64';
1434
- data?: string;
1435
- };
1436
- }
1437
- interface CfViewerRequestEvent {
1438
- version: '1.0';
1439
- context: {
1440
- distributionDomainName: string;
1441
- distributionId: string;
1442
- eventType: string;
1443
- requestId: string;
1444
- };
1445
- viewer: {
1446
- ip: string;
1447
- };
1448
- request: CfRequest;
1449
- }
1450
- interface CfViewerResponseEvent extends CfViewerRequestEvent {
1451
- response: CfResponse;
1452
- }
1453
- interface CloudFrontKvsAssociation {
1454
- arnValue: unknown;
1455
- kvsLogicalId?: string;
1456
- }
1457
- interface CompiledCloudFrontFunction {
1458
- logicalId: string;
1459
- runtime: string;
1460
- script: vm.Script;
1461
- cloudfrontBindingName?: string;
1462
- kvsAssociations?: CloudFrontKvsAssociation[];
1463
- cloudfrontModule?: CloudFrontModule;
1464
- }
1465
- declare function stripCloudFrontImport(code: string): {
1466
- code: string;
1467
- bindingName?: string;
1468
- };
1469
- declare function compileCloudFrontFunction(logicalId: string, code: string, runtime: string): CompiledCloudFrontFunction;
1470
- type ViewerRequestOutcome = {
1471
- kind: 'continue';
1472
- request: CfRequest;
1473
- } | {
1474
- kind: 'response';
1475
- response: CfResponse;
1476
- };
1477
- declare function runViewerRequest(fn: CompiledCloudFrontFunction, event: CfViewerRequestEvent): Promise<ViewerRequestOutcome>;
1478
- declare function runViewerResponse(fn: CompiledCloudFrontFunction, event: CfViewerResponseEvent): Promise<CfResponse>;
1479
- //#endregion
1480
- //#region src/local/cloudfront-static-origin.d.ts
1481
- interface ResolvedCustomErrorResponse {
1482
- errorCode: number;
1483
- responsePagePath?: string;
1484
- responseCode?: number;
1485
- }
1486
- interface StaticOriginResult {
1487
- statusCode: number;
1488
- headers: Record<string, string>;
1489
- body: Buffer;
1490
- }
1491
- declare function serveFromStaticOrigin(input: {
1492
- localDirs: readonly string[];
1493
- uri: string;
1494
- defaultRootObject?: string;
1495
- customErrorResponses?: readonly ResolvedCustomErrorResponse[];
1496
- }): StaticOriginResult;
1497
- interface ErrorResponseCandidate {
1498
- errorKey: string;
1499
- responseCode: number;
1500
- }
1501
- declare function resolveErrorResponseCandidates(customErrorResponses?: readonly ResolvedCustomErrorResponse[]): ErrorResponseCandidate[];
1502
- //#endregion
1503
- //#region src/local/cloudfront-resolver.d.ts
1504
- interface ResolvedCloudFrontFunction extends CompiledCloudFrontFunction {}
1505
- interface ResolvedLambdaEdgeAssoc {
1506
- functionLogicalId: string;
1507
- includeBody: boolean;
1508
- }
1509
- interface ResolvedLambdaEdge {
1510
- viewerRequest?: ResolvedLambdaEdgeAssoc;
1511
- originRequest?: ResolvedLambdaEdgeAssoc;
1512
- originResponse?: ResolvedLambdaEdgeAssoc;
1513
- viewerResponse?: ResolvedLambdaEdgeAssoc;
1514
- }
1515
- interface ResolvedBehavior {
1516
- pathPattern?: string;
1517
- targetOriginId: string;
1518
- viewerProtocolPolicy?: string;
1519
- viewerRequest?: ResolvedCloudFrontFunction;
1520
- viewerResponse?: ResolvedCloudFrontFunction;
1521
- lambdaEdge?: ResolvedLambdaEdge;
1522
- cors?: CorsConfig;
1523
- }
1524
- type ResolvedOrigin = {
1525
- kind: 's3';
1526
- originId: string;
1527
- localDirs: string[];
1528
- } | {
1529
- kind: 's3-unresolved';
1530
- originId: string;
1531
- bucketLogicalId?: string;
1532
- bucketName?: string;
1533
- deployedConfigOnly?: boolean;
1534
- } | {
1535
- kind: 's3-deployed';
1536
- originId: string;
1537
- bucketName: string;
1538
- } | {
1539
- kind: 'lambda-url';
1540
- originId: string;
1541
- functionLogicalId: string;
1542
- functionUrlLogicalId: string;
1543
- } | {
1544
- kind: 'custom';
1545
- originId: string;
1546
- domainName: string;
1547
- };
1548
- interface ResolvedDistribution {
1549
- logicalId: string;
1550
- stackName: string;
1551
- defaultRootObject?: string;
1552
- behaviors: ResolvedBehavior[];
1553
- origins: Map<string, ResolvedOrigin>;
1554
- customErrorResponses: ResolvedCustomErrorResponse[];
1555
- }
1556
- declare const CLOUDFRONT_DISTRIBUTION_TYPE = "AWS::CloudFront::Distribution";
1557
- declare function resolveCloudFrontDistribution(args: {
1558
- stack: StackInfo;
1559
- logicalId: string;
1560
- originOverrides?: Map<string, string>;
1561
- }): ResolvedDistribution;
1562
- declare function extractKvsAssociations(functionConfig: Record<string, unknown>): CloudFrontKvsAssociation[];
1563
- declare function pickKvsLogicalIdFromArn(value: unknown): string | undefined;
1564
- declare function pickLambdaEdgeFunctionLogicalId(value: unknown, template: CloudFormationTemplate): string | undefined;
1565
- declare function describeS3OriginDomain(value: unknown): {
1566
- isS3: boolean;
1567
- bucketName?: string;
1568
- };
1569
- declare function pickFunctionUrlLogicalIdFromOrigin(value: unknown): string | undefined;
1570
- declare function pickTargetFunctionLogicalId(value: unknown): string | undefined;
1571
- declare function isCloudFrontDistribution(resource: TemplateResource): boolean;
1572
- //#endregion
1573
- //#region src/local/cloudfront-s3-origin.d.ts
1574
- interface S3OriginCredentials {
1575
- accessKeyId: string;
1576
- secretAccessKey: string;
1577
- sessionToken?: string;
1578
- }
1579
- type S3FetchResult = {
1580
- kind: 'found';
1581
- body: Buffer;
1582
- } | {
1583
- kind: 'not-found';
1584
- } | {
1585
- kind: 'denied';
1586
- } | {
1587
- kind: 'error';
1588
- message: string;
1589
- };
1590
- type S3ObjectFetcher = (key: string) => Promise<S3FetchResult>;
1591
- interface S3OriginReaderOptions {
1592
- region?: string;
1593
- credentials?: S3OriginCredentials;
1594
- cache?: boolean;
1595
- fetchObject?: S3ObjectFetcher;
1596
- }
1597
- interface S3OriginReader {
1598
- (input: {
1599
- uri: string;
1600
- defaultRootObject?: string;
1601
- customErrorResponses?: readonly ResolvedCustomErrorResponse[];
1602
- }): Promise<StaticOriginResult>;
1603
- close(): Promise<void>;
1604
- clearCache(): void;
1605
- }
1606
- declare function createS3OriginReader(bucketName: string, options?: S3OriginReaderOptions): S3OriginReader;
1607
- declare function classifyS3Error(err: unknown): S3FetchResult;
1608
- //#endregion
1609
- //#region src/local/front-door-tls.d.ts
1610
- interface FrontDoorTlsMaterials {
1611
- certPem: Buffer;
1612
- keyPem: Buffer;
1613
- }
1614
- //#endregion
1615
- //#region src/local/cloudfront-server.d.ts
1616
- type LambdaUrlInvokerMap = Map<string, (event: Record<string, unknown>) => Promise<unknown>>;
1617
- interface StartedCloudFrontServer {
1618
- url: string;
1619
- port: number;
1620
- scheme: 'http' | 'https';
1621
- update(distribution: ResolvedDistribution): void;
1622
- close(): Promise<void>;
1623
- }
1624
- interface StartCloudFrontServerOptions {
1625
- distribution: ResolvedDistribution;
1626
- host: string;
1627
- port: number;
1628
- tls?: FrontDoorTlsMaterials;
1629
- lambdaInvokers?: LambdaUrlInvokerMap;
1630
- edgeInvokers?: LambdaUrlInvokerMap;
1631
- s3OriginReaders?: Map<string, S3OriginReader>;
1632
- }
1633
- declare function startCloudFrontServer(options: StartCloudFrontServerOptions): Promise<StartedCloudFrontServer>;
1634
- declare function matchBehavior(behaviors: readonly ResolvedBehavior[], uri: string): ResolvedBehavior | undefined;
1635
- //#endregion
1636
910
  //#region src/cli/commands/local-start-cloudfront.d.ts
1637
911
  declare class LocalStartCloudFrontError extends CdkLocalError {
1638
912
  constructor(message: string, cause?: Error);
@@ -1651,63 +925,6 @@ declare function resolveCloudFrontTarget(target: string, stacks: StackInfo[]): {
1651
925
  declare function createLocalStartCloudFrontCommand(opts?: CreateLocalStartCloudFrontCommandOptions): Command;
1652
926
  declare function addStartCloudFrontSpecificOptions(cmd: Command): Command;
1653
927
  //#endregion
1654
- //#region src/local/agentcore-serve-auth.d.ts
1655
- interface AgentCoreServeAuthResult {
1656
- allow: boolean;
1657
- status?: number;
1658
- message?: string;
1659
- authorization?: string;
1660
- }
1661
- type AgentCoreServeAuthCheck = (headers: IncomingHttpHeaders) => Promise<AgentCoreServeAuthResult>;
1662
- interface BuildAgentCoreServeAuthCheckOptions {
1663
- noVerifyAuth?: boolean;
1664
- bearerToken?: string;
1665
- jwksCache?: JwksCache;
1666
- warnedAt?: WarnedAt;
1667
- }
1668
- declare function buildAgentCoreServeAuthCheck(authorizer: AgentCoreJwtAuthorizer, opts?: BuildAgentCoreServeAuthCheckOptions): AgentCoreServeAuthCheck;
1669
- interface ServeInboundAuthPlan {
1670
- authCheck?: AgentCoreServeAuthCheck;
1671
- bridgeAuthorization?: string;
1672
- sign: boolean;
1673
- }
1674
- declare function selectServeInboundAuth(resolved: Pick<ResolvedAgentCoreRuntime, 'jwtAuthorizer'>, options: {
1675
- bearerToken?: string;
1676
- verifyAuth?: boolean;
1677
- }, sigv4Active: boolean, buildAuthCheck?: typeof buildAgentCoreServeAuthCheck): ServeInboundAuthPlan;
1678
- //#endregion
1679
- //#region src/local/agentcore-http-server.d.ts
1680
- interface AgentCoreServeRoute {
1681
- method: string;
1682
- path: string;
1683
- }
1684
- type AgentCoreServeSignRequest = (opts: {
1685
- method: string;
1686
- path: string;
1687
- body: Buffer;
1688
- sessionId: string;
1689
- }) => Promise<Record<string, string>>;
1690
- interface AgentCoreHttpServerConfig {
1691
- containerHost: string;
1692
- containerPort: number;
1693
- host?: string;
1694
- port?: number;
1695
- sessionId?: string;
1696
- authorization?: string;
1697
- routes?: AgentCoreServeRoute[];
1698
- attachWs?: boolean;
1699
- authCheck?: AgentCoreServeAuthCheck;
1700
- signRequest?: AgentCoreServeSignRequest;
1701
- }
1702
- interface RunningAgentCoreHttpServer {
1703
- httpUrl: string;
1704
- wsUrl?: string;
1705
- port: number;
1706
- setContainerPort(port: number): void;
1707
- close(): Promise<void>;
1708
- }
1709
- declare function startAgentCoreHttpServer(config: AgentCoreHttpServerConfig): Promise<RunningAgentCoreHttpServer>;
1710
- //#endregion
1711
928
  //#region src/cli/commands/local-start-agentcore.d.ts
1712
929
  interface CreateLocalStartAgentCoreCommandOptions {
1713
930
  extraStateProviders?: ExtraStateProviders;
@@ -1772,83 +989,6 @@ declare class StudioEventBus {
1772
989
  listenerCount<E extends keyof StudioEventMap>(event: E): number;
1773
990
  }
1774
991
  //#endregion
1775
- //#region src/local/studio-store.d.ts
1776
- interface StudioStoreOptions {
1777
- maxInvocations?: number;
1778
- maxLogs?: number;
1779
- bindGraceMs?: number;
1780
- }
1781
- interface StudioHistory {
1782
- invocations: StudioInvocationEvent[];
1783
- logs: StudioLogEvent[];
1784
- }
1785
- interface StudioLogSearchOptions {
1786
- target?: string;
1787
- limit?: number;
1788
- }
1789
- interface StudioStore {
1790
- history: () => StudioHistory;
1791
- searchLogs: (query: string, opts?: StudioLogSearchOptions) => StudioLogEvent[];
1792
- logsForInvocation: (id: string) => StudioLogEvent[];
1793
- invocation: (id: string) => StudioInvocationEvent | undefined;
1794
- dispose: () => void;
1795
- }
1796
- declare function createStudioStore(bus: StudioEventBus, options?: StudioStoreOptions): StudioStore;
1797
- //#endregion
1798
- //#region src/local/studio-server.d.ts
1799
- interface StudioTarget {
1800
- id: string;
1801
- qualifiedId: string;
1802
- surface?: string;
1803
- servable?: boolean;
1804
- pinned?: boolean;
1805
- pinUnresolved?: boolean;
1806
- backingPinnedServices?: {
1807
- id: string;
1808
- label: string;
1809
- }[];
1810
- agentCoreHasWs?: boolean;
1811
- agentCoreContractPath?: string;
1812
- }
1813
- interface StudioTargetGroup {
1814
- kind: 'lambda' | 'api' | 'alb' | 'ecs' | 'ecs-task' | 'cloudfront' | 'agentcore' | 'agentcore-ws';
1815
- title: string;
1816
- entries: StudioTarget[];
1817
- }
1818
- declare function toStudioTargetGroups(listing: TargetListing): StudioTargetGroup[];
1819
- declare function annotatePinnedEcsTargets(groups: StudioTargetGroup[], classify: (targetId: string) => boolean): boolean;
1820
- declare function annotateEcsTaskPinnedTargets(groups: StudioTargetGroup[], classify: (targetId: string) => boolean): boolean;
1821
- declare function annotateAlbPinnedBackingServices(groups: StudioTargetGroup[], resolveBackingPinned: (albEntry: StudioTarget) => {
1822
- id: string;
1823
- label: string;
1824
- }[]): boolean;
1825
- declare function filterStudioTargetGroups(groups: StudioTargetGroup[], globs: string[] | undefined): StudioTargetGroup[];
1826
- interface StudioServerOptions {
1827
- port: number;
1828
- host?: string;
1829
- bus: StudioEventBus;
1830
- targetGroups: StudioTargetGroup[];
1831
- dockerfiles?: string[];
1832
- appLabel: string;
1833
- cliName: string;
1834
- maxPortBump?: number;
1835
- onRun?: (body: unknown) => Promise<unknown>;
1836
- onStop?: (body: unknown) => Promise<unknown>;
1837
- onServeRequest?: (body: unknown) => Promise<unknown>;
1838
- onReinvoke?: (body: unknown) => Promise<unknown>;
1839
- getRunning?: () => unknown;
1840
- store?: StudioStore;
1841
- getConfig?: () => unknown;
1842
- patchConfig?: (body: unknown) => Promise<unknown>;
1843
- }
1844
- interface RunningStudioServer {
1845
- url: string;
1846
- port: number;
1847
- close: () => Promise<void>;
1848
- setTargets: (groups: StudioTargetGroup[], dockerfiles?: string[]) => void;
1849
- }
1850
- declare function startStudioServer(options: StudioServerOptions): Promise<RunningStudioServer>;
1851
- //#endregion
1852
992
  //#region src/local/studio-child-args.d.ts
1853
993
  interface SharedChildConfig {
1854
994
  app?: string;
@@ -1905,25 +1045,6 @@ interface StudioDispatcher {
1905
1045
  }
1906
1046
  declare function createStudioDispatcher(config: StudioDispatchConfig): StudioDispatcher;
1907
1047
  //#endregion
1908
- //#region src/local/studio-request-relay.d.ts
1909
- interface ServeRequestInput {
1910
- baseUrl: string;
1911
- method: string;
1912
- path?: string;
1913
- headers?: Record<string, string>;
1914
- body?: string;
1915
- timeoutMs?: number;
1916
- maxBodyChars?: number;
1917
- }
1918
- interface ServeRequestResult {
1919
- status: number;
1920
- headers: Record<string, string>;
1921
- body: string;
1922
- truncated: boolean;
1923
- durationMs: number;
1924
- }
1925
- declare function relayServeRequest(input: ServeRequestInput, fetchFn?: typeof fetch, clock?: () => number): Promise<ServeRequestResult>;
1926
- //#endregion
1927
1048
  //#region src/local/studio-proxy.d.ts
1928
1049
  interface StudioProxyConfig {
1929
1050
  bus: StudioEventBus;
@@ -2005,5 +1126,5 @@ interface CreateLocalStudioCommandOptions {
2005
1126
  declare function createLocalStudioCommand(opts?: CreateLocalStudioCommandOptions): Command;
2006
1127
  declare function addStudioSpecificOptions(cmd: Command): Command;
2007
1128
  //#endregion
2008
- export { createLocalStartAgentCoreCommand as $, substituteEnvVarsFromState as $a, signAgentCoreInvocation as $i, RegistrationHandle as $n, discoverWebSocketApisOrThrow as $r, CompiledCloudFrontFunction as $t, annotateAlbPinnedBackingServices as A, setEmbedConfig as Aa, A2A_PATH as Ai, PlannedLambdaForwardTarget as An, buildJwksUrlFromIssuer as Ar, CLOUDFRONT_DISTRIBUTION_TYPE as At, createStudioStore as B, resolveCfnStackName as Ba, McpJsonRpcRequest as Bi, resolveEcsAssumeRoleOption as Bn, LambdaTokenAuthorizer as Br, pickFunctionUrlLogicalIdFromOrigin as Bt, StudioRunRequest as C, CreateLocalInvokeCommandOptions as Ca, AgentCoreWsBridgeHandle as Ci, MAX_TASKS_SUBNET_RANGE_CAP as Cn, CredentialsLoader as Cr, S3FetchResult as Ct, StudioServerOptions as D, CdkLocalEmbedConfig as Da, bridgeAgentCoreWs as Di, PlannedForwardAction as Dn, JwtCustomClaim as Dr, S3OriginReaderOptions as Dt, RunningStudioServer as E, ResolvedArnLambdaLayer as Ea, InvokeAgentCoreWsOptions as Ei, PlannedFixedResponseAction as En, JwksCache as Er, S3OriginReader as Et, toStudioTargetGroups as F, createLocalStateProvider as Fa, MCP_CONTAINER_PORT as Fi, addImageOverrideOptions as Fn, AuthorizerCache as Fr, ResolvedLambdaEdgeAssoc as Ft, StudioTargetKind as G, collectSsmParameterRefs as Ga, InvokeAgentCoreOptions as Gi, isApplicationLoadBalancer as Gn, buildCorsConfigByApiId as Gr, ErrorResponseCandidate as Gt, StudioInvocationEvent as H, LocalStateRecord as Ha, parseSseForJsonRpc as Hi, runEcsServiceEmulator as Hn, attachAuthorizers as Hr, pickLambdaEdgeFunctionLogicalId as Ht, StudioHistory as I, isCfnFlagPresent as Ia, MCP_PATH as Ii, buildEcsImageResolutionContext as In, CachedAuthorizerResult as Ir, ResolvedOrigin as It, addListSpecificOptions as J, PseudoParameters as Ja, waitForAgentCorePing as Ji, SOFT_RELOAD_COMPLETION_LOG_SUFFIX as Jn, matchPreflight as Jr, resolveErrorResponseCandidates as Jt, CreateLocalListCommandOptions as K, resolveSsmParameters as Ka, invokeAgentCore as Ki, resolveAlbFrontDoor as Kn, buildCorsConfigFromCloudFrontChain as Kr, ResolvedCustomErrorResponse as Kt, StudioLogSearchOptions as L, rejectExplicitCfnStackWithMultipleStacks as La, MCP_PROTOCOL_VERSION as Li, ecsClusterOption as Ln, createAuthorizerCache as Lr, describeS3OriginDomain as Lt, annotatePinnedEcsTargets as M, LocalStateProviderFactory as Ma, A2aInvokeResult as Mi, ServiceBoot as Mn, verifyCognitoJwt as Mr, ResolvedCloudFrontFunction as Mt, filterStudioTargetGroups as N, LocalStateSourceError as Na, A2aJsonRpcRequest as Ni, addCommonEcsServiceOptions as Nn, verifyJwtAuthorizer as Nr, ResolvedDistribution as Nt, StudioTarget as O, getEmbedConfig as Oa, invokeAgentCoreWs as Oi, PlannedForwardTarget as On, WarnedAt as Or, classifyS3Error as Ot, startStudioServer as P, LocalStateSourceOptions as Pa, a2aInvokeOnce as Pi, addEcsAssumeRoleOptions as Pn, verifyJwtViaDiscovery as Pr, ResolvedLambdaEdge as Pt, addStartAgentCoreSpecificOptions as Q, substituteAgainstStateAsync as Qa, SignedAgentCoreHeaders as Qi, CloudMapRegistry as Qn, discoverWebSocketApis as Qr, CloudFrontKvsAssociation as Qt, StudioStore as R, resolveCfnFallbackRegion as Ra, McpInvokeOptions as Ri, parseMaxTasks as Rn, AuthorizerInfo as Rr, extractKvsAssociations as Rt, StudioDispatcher as S, createFileWatcher as Sa, resolveEnvVars as Si, FrontDoorPlan as Sn, startApiServer as Sr, startCloudFrontServer as St, createStudioDispatcher as T, createLocalInvokeCommand as Ta, BridgeAgentCoreWsOptions as Ti, PlannedEcsForwardTarget as Tn, DiscoveryJwtAuthorizer as Tr, S3OriginCredentials as Tt, StudioLogEvent as U, ResolvedSsmParameters as Ua, AGENTCORE_SESSION_ID_HEADER as Ui, FrontDoorForwardTarget as Un, CorsConfig as Ur, pickTargetFunctionLogicalId as Ut, StudioEventBus as V, LocalStateProvider as Va, mcpInvokeOnce as Vi, resolveSharedSidecarCredentials as Vn, RouteWithAuth as Vr, pickKvsLogicalIdFromArn as Vt, StudioServeEvent as W, SsmParameterRef as Wa, AgentCoreInvokeResult as Wi, ResolvedListenerAction as Wn, applyCorsResponseHeaders as Wr, resolveCloudFrontDistribution as Wt, formatTargetListing as X, SubstitutionContext as Xa, SigV4Credentials as Xi, CloudMapIndex as Xn, WebSocketRouteEntry as Xr, CfRequest as Xt, createLocalListCommand as Y, StateEnvSubstitutionAudit as Ya, AGENTCORE_SIGV4_SERVICE as Yi, setShadowReadyTimeoutMs as Yn, DiscoveredWebSocketApi as Yr, serveFromStaticOrigin as Yt, CreateLocalStartAgentCoreCommandOptions as Z, substituteAgainstState as Za, SignAgentCoreInvocationOptions as Zi, buildCloudMapIndex as Zn, availableWebSocketApiIdentifiers as Zr, CfResponse as Zt, startStudioProxy as _, ReloadAssetContext as _a, CreateLocalInvokeAgentCoreCommandOptions as _i, addStartServiceSpecificOptions as _n, resolveApiTargetSubset as _r, parseOriginOverrides as _t, coerceServeRequest as a, AgentCoreCodeArtifact as aa, discoverRoutes as ai, CloudFrontModule as an, CdkLocalError as ar, AgentCoreServeAuthCheck as at, relayServeRequest as b, FileWatcher as ba, DockerImageAssetSource as bi, EcsServiceEmulatorOptions as bn, StartedApiServer as br, StartedCloudFrontServer as bt, resolveServeBaseUrl as c, AgentCoreResolutionError as ca, pickResponseTemplate as ci, createLocalFileKvsDataSource as cn, addRunTaskSpecificOptions as cr, ServeInboundAuthPlan as ct, StudioServeRequest as d, resolveAgentCoreTarget as da, VtlEvaluationError as di, addAlbSpecificOptions as dn, ApiTargetSubset as dr, CreateLocalStartCloudFrontCommandOptions as dt, AGENTCORE_A2A_PROTOCOL as ea, filterWebSocketApisByIdentifiers as ei, compileCloudFrontFunction as en, substituteEnvVarsFromStateAsync as eo, ResolvedEcsService as er, AgentCoreHttpServerConfig as et, StudioServeState as f, ImageResolutionContext as fa, ContainerPool as fi, albStrategy as fn, CreateLocalStartApiCommandOptions as fr, LocalStartCloudFrontError as ft, StudioProxyConfig as g, tryResolveImageFnJoin as ga, resolveProfileCredentials as gi, CreateLocalStartServiceCommandOptions as gn, createWatchPredicates as gr, parseKvsFileOverrides as gt, RunningStudioProxy as h, substituteImagePlaceholders as ha, buildStsClientConfig as hi, resolveAlbTarget as hn, createLocalStartApiCommand as hr, normalizeKvsFileKeys as ht, coerceRunRequest as i, AGENTCORE_RUNTIME_TYPE as ia, RestV1IntegrationConfig as ii, CloudFrontKvsHandle as in, listTargets as ir, startAgentCoreHttpServer as it, annotateEcsTaskPinnedTargets as j, ExtraStateProviders as ja, A2aInvokeOptions as ji, PlannedRedirectAction as jn, createJwksCache as jr, ResolvedBehavior as jt, StudioTargetGroup as k, resetEmbedConfig as ka, A2A_CONTAINER_PORT as ki, PlannedFrontDoorListener as kn, buildCognitoJwksUrl as kr, createS3OriginReader as kt, StudioServeManager as l, ResolvedAgentCoreRuntime as la, selectIntegrationResponse as li, createUnboundCloudFrontModule as ln, createLocalRunTaskCommand as lr, buildAgentCoreServeAuthCheck as lt, createStudioServeManager as m, formatStateRemedy as ma, resolveWatchConfig as mi, parseLbPortOverrides as mn, addStartApiSpecificOptions as mr, createLocalStartCloudFrontCommand as mt, StudioServeRequestPayload as n, AGENTCORE_HTTP_PROTOCOL as na, webSocketApiMatchesIdentifier as ni, runViewerResponse as nn, TargetListing as nr, AgentCoreServeSignRequest as nt, coerceStopRequest as o, AgentCoreCustomClaim as oa, IntegrationResponseEntry as oi, KvsDataSource as on, LocalInvokeBuildError as or, AgentCoreServeAuthResult as ot, StudioStopRequest as p, derivePseudoParametersFromRegion as pa, CdkWatchConfig as pi, createLocalStartAlbCommand as pn, WatchPredicates as pr, addStartCloudFrontSpecificOptions as pt, FormatTargetListingOptions as q, CrossStackResolver as qa, waitForAgentCoreHttpReady as qi, DEFAULT_SHADOW_READY_TIMEOUT_MS as qn, isFunctionUrlOacFronted as qr, StaticOriginResult as qt, addStudioSpecificOptions as r, AGENTCORE_MCP_PROTOCOL as ra, DiscoveredRoute as ri, stripCloudFrontImport as rn, countTargets as rr, RunningAgentCoreHttpServer as rt, createLocalStudioCommand as s, AgentCoreJwtAuthorizer as sa, evaluateResponseParameters as si, createCloudFrontModule as sn, CreateLocalRunTaskCommandOptions as sr, BuildAgentCoreServeAuthCheckOptions as st, CreateLocalStudioCommandOptions as t, AGENTCORE_AGUI_PROTOCOL as ta, parseSelectionExpressionPath as ti, runViewerRequest as tn, CloudFormationTemplate as to, TargetEntry as tr, AgentCoreServeRoute as tt, StudioServeManagerConfig as u, pickAgentCoreCandidateStack as ua, tryParseStatus as ui, CreateLocalStartAlbCommandOptions as un, EcsTaskResolutionError as ur, selectServeInboundAuth as ut, ServeRequestInput as v, ReloadVerdict as va, addInvokeAgentCoreSpecificOptions as vi, createLocalStartServiceCommand as vn, MtlsServerConfig as vr, resolveCloudFrontTarget as vt, StudioRunResult as w, addInvokeSpecificOptions as wa, AgentCoreWsResult as wi, PlannedAction as wn, defaultCredentialsLoader as wr, S3ObjectFetcher as wt, StudioDispatchConfig as x, FileWatcherOptions as xa, EnvOverrideFile as xi, EmulatorStrategy as xn, readMtlsMaterialsFromDisk as xr, matchBehavior as xt, ServeRequestResult as y, classifySourceChange as ya, createLocalInvokeAgentCoreCommand as yi, serviceStrategy as yn, ServerState as yr, LambdaUrlInvokerMap as yt, StudioStoreOptions as z, resolveCfnRegion as za, McpInvokeResult as zi, parseRestartPolicy as zn, LambdaRequestAuthorizer as zr, isCloudFrontDistribution as zt };
2009
- //# sourceMappingURL=local-studio-DcBEEMJp.d.ts.map
1129
+ export { serviceStrategy as $, LocalStateRecord as $n, RouteWithAuth as $t, addListSpecificOptions as A, formatStateRemedy as An, TargetEntry as At, normalizeKvsFileKeys as B, resetEmbedConfig as Bn, ResolvedEcsTask as Bt, StudioEventBus as C, AgentCoreWsResult as Cn, FrontDoorForwardTarget as Ct, StudioTargetKind as D, invokeAgentCoreWs as Dn, DEFAULT_SHADOW_READY_TIMEOUT_MS as Dt, StudioServeEvent as E, bridgeAgentCoreWs as En, resolveAlbFrontDoor as Et, createLocalStartAgentCoreCommand as F, createLocalInvokeCommand as Fn, LocalInvokeBuildError as Ft, addAlbSpecificOptions as G, LocalStateSourceOptions as Gn, createLocalStartApiCommand as Gt, parseOriginOverrides as H, ExtraStateProviders as Hn, CreateLocalStartApiCommandOptions as Ht, CreateLocalStartCloudFrontCommandOptions as I, ResolvedArnLambdaLayer as In, CreateLocalRunTaskCommandOptions as It, parseLbPortOverrides as J, rejectExplicitCfnStackWithMultipleStacks as Jn, AuthorizerInfo as Jt, albStrategy as K, createLocalStateProvider as Kn, createWatchPredicates as Kt, LocalStartCloudFrontError as L, StackInfo as Ln, addRunTaskSpecificOptions as Lt, formatTargetListing as M, tryResolveImageFnJoin as Mn, countTargets as Mt, CreateLocalStartAgentCoreCommandOptions as N, CreateLocalInvokeCommandOptions as Nn, listTargets as Nt, CreateLocalListCommandOptions as O, ImageResolutionContext as On, SOFT_RELOAD_COMPLETION_LOG_SUFFIX as Ot, addStartAgentCoreSpecificOptions as P, addInvokeSpecificOptions as Pn, CdkLocalError as Pt, createLocalStartServiceCommand as Q, LocalStateProvider as Qn, LambdaTokenAuthorizer as Qt, addStartCloudFrontSpecificOptions as R, CdkLocalEmbedConfig as Rn, createLocalRunTaskCommand as Rt, createStudioDispatcher as S, AgentCoreWsBridgeHandle as Sn, runEcsServiceEmulator as St, StudioLogEvent as T, InvokeAgentCoreWsOptions as Tn, isApplicationLoadBalancer as Tt, resolveCloudFrontTarget as U, LocalStateProviderFactory as Un, WatchPredicates as Ut, parseKvsFileOverrides as V, setEmbedConfig as Vn, ApiTargetSubset as Vt, CreateLocalStartAlbCommandOptions as W, LocalStateSourceError as Wn, addStartApiSpecificOptions as Wt, CreateLocalStartServiceCommandOptions as X, resolveCfnRegion as Xn, JwtAuthorizer as Xt, resolveAlbTarget as Y, resolveCfnFallbackRegion as Yn, CognitoUserPoolAuthorizer as Yt, addStartServiceSpecificOptions as Z, resolveCfnStackName as Zn, LambdaRequestAuthorizer as Zt, startStudioProxy as _, CdkWatchConfig as _n, ecsClusterOption as _t, coerceServeRequest as a, discoverWebSocketApisOrThrow as an, PseudoParameters as ar, PlannedEcsForwardTarget as at, StudioRunRequest as b, addInvokeAgentCoreSpecificOptions as bn, resolveEcsAssumeRoleOption as bt, resolveServeBaseUrl as c, webSocketApiMatchesIdentifier as cn, substituteAgainstState as cr, PlannedForwardTarget as ct, StudioServeRequest as d, discoverRoutes as dn, substituteEnvVarsFromStateAsync as dr, PlannedRedirectAction as dt, attachAuthorizers as en, ResolvedSsmParameters as er, EcsServiceEmulatorOptions as et, StudioServeState as f, IntegrationResponseEntry as fn, CloudFormationTemplate as fr, ServiceBoot as ft, StudioProxyConfig as g, tryParseStatus as gn, buildEcsImageResolutionContext as gt, RunningStudioProxy as h, selectIntegrationResponse as hn, addImageOverrideOptions as ht, coerceRunRequest as i, discoverWebSocketApis as in, CrossStackResolver as ir, PlannedAction as it, createLocalListCommand as j, substituteImagePlaceholders as jn, TargetListing as jt, FormatTargetListingOptions as k, derivePseudoParametersFromRegion as kn, setShadowReadyTimeoutMs as kt, StudioServeManager as l, DiscoveredRoute as ln, substituteAgainstStateAsync as lr, PlannedFrontDoorListener as lt, createStudioServeManager as m, pickResponseTemplate as mn, addEcsAssumeRoleOptions as mt, StudioServeRequestPayload as n, WebSocketRouteEntry as nn, collectSsmParameterRefs as nr, FrontDoorPlan as nt, coerceStopRequest as o, filterWebSocketApisByIdentifiers as on, StateEnvSubstitutionAudit as or, PlannedFixedResponseAction as ot, StudioStopRequest as p, evaluateResponseParameters as pn, TemplateResource as pr, addCommonEcsServiceOptions as pt, createLocalStartAlbCommand as q, isCfnFlagPresent as qn, resolveApiTargetSubset as qt, addStudioSpecificOptions as r, availableWebSocketApiIdentifiers as rn, resolveSsmParameters as rr, MAX_TASKS_SUBNET_RANGE_CAP as rt, createLocalStudioCommand as s, parseSelectionExpressionPath as sn, SubstitutionContext as sr, PlannedForwardAction as st, CreateLocalStudioCommandOptions as t, DiscoveredWebSocketApi as tn, SsmParameterRef as tr, EmulatorStrategy as tt, StudioServeManagerConfig as u, RestV1IntegrationConfig as un, substituteEnvVarsFromState as ur, PlannedLambdaForwardTarget as ut, StudioDispatchConfig as v, resolveWatchConfig as vn, parseMaxTasks as vt, StudioInvocationEvent as w, BridgeAgentCoreWsOptions as wn, ResolvedListenerAction as wt, StudioRunResult as x, createLocalInvokeAgentCoreCommand as xn, resolveSharedSidecarCredentials as xt, StudioDispatcher as y, CreateLocalInvokeAgentCoreCommandOptions as yn, parseRestartPolicy as yt, createLocalStartCloudFrontCommand as z, getEmbedConfig as zn, EcsTaskResolutionError as zt };
1130
+ //# sourceMappingURL=local-studio-BBA_8Xvk.d.ts.map