agent-claw: automated task changes

This commit is contained in:
daniel
2026-05-06 18:55:16 -05:00
parent 38905bb1e9
commit 732b00fb66
8494 changed files with 2018127 additions and 4 deletions

View File

@@ -0,0 +1,87 @@
import type { WebSocketRouteIntegrationConfig, WebSocketRouteIntegrationBindOptions, PassthroughBehavior, ContentHandling } from '../../../aws-apigatewayv2';
import { WebSocketRouteIntegration } from '../../../aws-apigatewayv2';
import type { IRole } from '../../../aws-iam';
import type { Duration } from '../../../core';
/**
* Props for AWS type integration for a WebSocket Api.
*/
export interface WebSocketAwsIntegrationProps {
/**
* Integration URI.
*/
readonly integrationUri: string;
/**
* Specifies the integration's HTTP method type.
*/
readonly integrationMethod: string;
/**
* Specifies how to handle response payload content type conversions.
*
* @default - The response payload will be passed through from the integration response to
* the route response or method response without modification.
*/
readonly contentHandling?: ContentHandling;
/**
* Specifies the credentials role required for the integration.
*
* @default - No credential role provided.
*/
readonly credentialsRole?: IRole;
/**
* The request parameters that API Gateway sends with the backend request.
* Specify request parameters as key-value pairs (string-to-string
* mappings), with a destination as the key and a source as the value.
*
* @default - No request parameter provided to the integration.
*/
readonly requestParameters?: {
[dest: string]: string;
};
/**
* A map of Apache Velocity templates that are applied on the request
* payload.
*
* ```
* { "application/json": "{ \"statusCode\": 200 }" }
* ```
*
* @default - No request template provided to the integration.
*/
readonly requestTemplates?: {
[contentType: string]: string;
};
/**
* The template selection expression for the integration.
*
* @default - No template selection expression provided.
*/
readonly templateSelectionExpression?: string;
/**
* The maximum amount of time an integration will run before it returns without a response.
* Must be between 50 milliseconds and 29 seconds.
*
* @default Duration.seconds(29)
*/
readonly timeout?: Duration;
/**
* Specifies the pass-through behavior for incoming requests based on the
* Content-Type header in the request, and the available mapping templates
* specified as the requestTemplates property on the Integration resource.
* There are three valid values: WHEN_NO_MATCH, WHEN_NO_TEMPLATES, and
* NEVER.
*
* @default - No passthrough behavior required.
*/
readonly passthroughBehavior?: PassthroughBehavior;
}
/**
* AWS WebSocket AWS Type Integration
*/
export declare class WebSocketAwsIntegration extends WebSocketRouteIntegration {
private readonly props;
/**
* @param id id of the underlying integration construct
*/
constructor(id: string, props: WebSocketAwsIntegrationProps);
bind(_options: WebSocketRouteIntegrationBindOptions): WebSocketRouteIntegrationConfig;
}

View File

@@ -0,0 +1 @@
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.WebSocketAwsIntegration=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var aws_apigatewayv2_1=()=>{var tmp=require("../../../aws-apigatewayv2");return aws_apigatewayv2_1=()=>tmp,tmp};class WebSocketAwsIntegration extends aws_apigatewayv2_1().WebSocketRouteIntegration{props;static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_apigatewayv2_integrations.WebSocketAwsIntegration",version:"2.252.0"};constructor(id,props){super(id),this.props=props;try{jsiiDeprecationWarnings().aws_cdk_lib_aws_apigatewayv2_integrations_WebSocketAwsIntegrationProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,WebSocketAwsIntegration),error}}bind(_options){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_apigatewayv2_WebSocketRouteIntegrationBindOptions(_options)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.bind),error}return{type:aws_apigatewayv2_1().WebSocketIntegrationType.AWS,uri:this.props.integrationUri,method:this.props.integrationMethod,contentHandling:this.props.contentHandling,credentialsRole:this.props.credentialsRole,requestParameters:this.props.requestParameters,requestTemplates:this.props.requestTemplates,passthroughBehavior:this.props.passthroughBehavior,templateSelectionExpression:this.props.templateSelectionExpression,timeout:this.props.timeout}}}exports.WebSocketAwsIntegration=WebSocketAwsIntegration;

View File

@@ -0,0 +1,3 @@
export * from './lambda';
export * from './mock';
export * from './aws';

View File

@@ -0,0 +1 @@
"use strict";var __createBinding=exports&&exports.__createBinding||(Object.create?(function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}):(function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]})),__exportStar=exports&&exports.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0});var _noFold;exports.WebSocketLambdaIntegration=void 0,Object.defineProperty(exports,_noFold="WebSocketLambdaIntegration",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lambda").WebSocketLambdaIntegration;return Object.defineProperty(exports,_noFold="WebSocketLambdaIntegration",{enumerable:!0,configurable:!0,value}),value}}),exports.WebSocketMockIntegration=void 0,Object.defineProperty(exports,_noFold="WebSocketMockIntegration",{enumerable:!0,configurable:!0,get:()=>{var value=require("./mock").WebSocketMockIntegration;return Object.defineProperty(exports,_noFold="WebSocketMockIntegration",{enumerable:!0,configurable:!0,value}),value}}),exports.WebSocketAwsIntegration=void 0,Object.defineProperty(exports,_noFold="WebSocketAwsIntegration",{enumerable:!0,configurable:!0,get:()=>{var value=require("./aws").WebSocketAwsIntegration;return Object.defineProperty(exports,_noFold="WebSocketAwsIntegration",{enumerable:!0,configurable:!0,value}),value}});

View File

@@ -0,0 +1,38 @@
import type { WebSocketRouteIntegrationBindOptions, WebSocketRouteIntegrationConfig, ContentHandling } from '../../../aws-apigatewayv2';
import { WebSocketRouteIntegration } from '../../../aws-apigatewayv2';
import type { IFunction } from '../../../aws-lambda';
import type { Duration } from '../../../core';
/**
* Props for Lambda type integration for a WebSocket Api.
*/
export interface WebSocketLambdaIntegrationProps {
/**
* The maximum amount of time an integration will run before it returns without a response.
* Must be between 50 milliseconds and 29 seconds.
*
* @default Duration.seconds(29)
*/
readonly timeout?: Duration;
/**
* Specifies how to handle response payload content type conversions.
*
* @default - The response payload will be passed through from the integration response to
* the route response or method response without modification.
*/
readonly contentHandling?: ContentHandling;
}
/**
* Lambda WebSocket Integration
*/
export declare class WebSocketLambdaIntegration extends WebSocketRouteIntegration {
private readonly handler;
private readonly props;
private readonly _id;
/**
* @param id id of the underlying integration construct
* @param handler the Lambda function handler
* @param props properties to configure the integration
*/
constructor(id: string, handler: IFunction, props?: WebSocketLambdaIntegrationProps);
bind(options: WebSocketRouteIntegrationBindOptions): WebSocketRouteIntegrationConfig;
}

View File

@@ -0,0 +1 @@
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.WebSocketLambdaIntegration=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var aws_apigatewayv2_1=()=>{var tmp=require("../../../aws-apigatewayv2");return aws_apigatewayv2_1=()=>tmp,tmp},aws_iam_1=()=>{var tmp=require("../../../aws-iam");return aws_iam_1=()=>tmp,tmp},core_1=()=>{var tmp=require("../../../core");return core_1=()=>tmp,tmp};class WebSocketLambdaIntegration extends aws_apigatewayv2_1().WebSocketRouteIntegration{handler;props;static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_apigatewayv2_integrations.WebSocketLambdaIntegration",version:"2.252.0"};_id;constructor(id,handler,props={}){super(id),this.handler=handler,this.props=props;try{jsiiDeprecationWarnings().aws_cdk_lib_aws_lambda_IFunction(handler),jsiiDeprecationWarnings().aws_cdk_lib_aws_apigatewayv2_integrations_WebSocketLambdaIntegrationProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,WebSocketLambdaIntegration),error}this._id=id}bind(options){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_apigatewayv2_WebSocketRouteIntegrationBindOptions(options)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.bind),error}const route=options.route;this.handler.addPermission(`${this._id}-Permission`,{scope:options.scope,principal:new(aws_iam_1()).ServicePrincipal("apigateway.amazonaws.com"),sourceArn:core_1().Stack.of(route).formatArn({service:"execute-api",resource:route.webSocketApi.apiId,resourceName:`*${route.routeKey}`})});const integrationUri=core_1().Stack.of(route).formatArn({service:"apigateway",account:"lambda",resource:"path/2015-03-31/functions",resourceName:`${this.handler.functionArn}/invocations`});return{type:aws_apigatewayv2_1().WebSocketIntegrationType.AWS_PROXY,uri:integrationUri,timeout:this.props.timeout,contentHandling:this.props.contentHandling}}}exports.WebSocketLambdaIntegration=WebSocketLambdaIntegration;

View File

@@ -0,0 +1,38 @@
import type { WebSocketRouteIntegrationConfig, WebSocketRouteIntegrationBindOptions } from '../../../aws-apigatewayv2';
import { WebSocketRouteIntegration } from '../../../aws-apigatewayv2';
/**
* Props for Mock type integration for a WebSocket Api.
*/
export interface WebSocketMockIntegrationProps {
/**
* A map of Apache Velocity templates that are applied on the request
* payload.
*
* ```
* { "application/json": "{ \"statusCode\": 200 }" }
* ```
*
* @default - No request template provided to the integration.
* @see https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api-mapping-template-reference.html
*/
readonly requestTemplates?: {
[contentType: string]: string;
};
/**
* The template selection expression for the integration.
*
* @default - No template selection expression provided.
*/
readonly templateSelectionExpression?: string;
}
/**
* Mock WebSocket Integration
*/
export declare class WebSocketMockIntegration extends WebSocketRouteIntegration {
private readonly props;
/**
* @param id id of the underlying integration construct
*/
constructor(id: string, props?: WebSocketMockIntegrationProps);
bind(options: WebSocketRouteIntegrationBindOptions): WebSocketRouteIntegrationConfig;
}

View File

@@ -0,0 +1 @@
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.WebSocketMockIntegration=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var aws_apigatewayv2_1=()=>{var tmp=require("../../../aws-apigatewayv2");return aws_apigatewayv2_1=()=>tmp,tmp};class WebSocketMockIntegration extends aws_apigatewayv2_1().WebSocketRouteIntegration{props;static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_apigatewayv2_integrations.WebSocketMockIntegration",version:"2.252.0"};constructor(id,props={}){super(id),this.props=props;try{jsiiDeprecationWarnings().aws_cdk_lib_aws_apigatewayv2_integrations_WebSocketMockIntegrationProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,WebSocketMockIntegration),error}}bind(options){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_apigatewayv2_WebSocketRouteIntegrationBindOptions(options)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.bind),error}return{type:aws_apigatewayv2_1().WebSocketIntegrationType.MOCK,uri:"",requestTemplates:this.props.requestTemplates,templateSelectionExpression:this.props.templateSelectionExpression}}}exports.WebSocketMockIntegration=WebSocketMockIntegration;