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,24 @@
import type { Construct } from 'constructs';
import type { DockerImageAssetOptions } from '../../../aws-ecr-assets';
import type { ContainerDefinition } from '../container-definition';
import type { ContainerImageConfig } from '../container-image';
import { ContainerImage } from '../container-image';
/**
* The properties for building an AssetImage.
*/
export interface AssetImageProps extends DockerImageAssetOptions {
}
/**
* An image that will be built from a local directory with a Dockerfile
*/
export declare class AssetImage extends ContainerImage {
private readonly directory;
private readonly props;
/**
* Constructs a new instance of the AssetImage class.
*
* @param directory The directory containing the Dockerfile
*/
constructor(directory: string, props?: AssetImageProps);
bind(scope: Construct, containerDefinition: ContainerDefinition): ContainerImageConfig;
}

View File

@@ -0,0 +1 @@
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.AssetImage=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_ecr_assets_1=()=>{var tmp=require("../../../aws-ecr-assets");return aws_ecr_assets_1=()=>tmp,tmp},container_image_1=()=>{var tmp=require("../container-image");return container_image_1=()=>tmp,tmp};class AssetImage extends container_image_1().ContainerImage{directory;props;static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_ecs.AssetImage",version:"2.252.0"};constructor(directory,props={}){super(),this.directory=directory,this.props=props;try{jsiiDeprecationWarnings().aws_cdk_lib_aws_ecs_AssetImageProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,AssetImage),error}}bind(scope,containerDefinition){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_ecs_ContainerDefinition(containerDefinition)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.bind),error}containerDefinition._defaultDisableVersionConsistency?.();const asset=new(aws_ecr_assets_1()).DockerImageAsset(scope,"AssetImage",{directory:this.directory,...this.props});return asset.repository.grantPull(containerDefinition.taskDefinition.obtainExecutionRole()),{imageName:asset.imageUri}}}exports.AssetImage=AssetImage;

View File

@@ -0,0 +1,25 @@
import type { Construct } from 'constructs';
import type * as ecr from '../../../aws-ecr';
import type { ContainerDefinition } from '../container-definition';
import type { ContainerImageConfig } from '../container-image';
import { ContainerImage } from '../container-image';
/**
* An image from an Amazon ECR repository.
*/
export declare class EcrImage extends ContainerImage {
private readonly repository;
private readonly tagOrDigest;
/**
* The image name. Images in Amazon ECR repositories can be specified by either using the full registry/repository:tag or
* registry/repository@digest.
*
* For example, 012345678910.dkr.ecr.<region-name>.amazonaws.com/<repository-name>:latest or
* 012345678910.dkr.ecr.<region-name>.amazonaws.com/<repository-name>@sha256:94afd1f2e64d908bc90dbca0035a5b567EXAMPLE.
*/
readonly imageName: string;
/**
* Constructs a new instance of the EcrImage class.
*/
constructor(repository: ecr.IRepository, tagOrDigest: string);
bind(_scope: Construct, containerDefinition: ContainerDefinition): ContainerImageConfig;
}

View File

@@ -0,0 +1 @@
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.EcrImage=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var container_image_1=()=>{var tmp=require("../container-image");return container_image_1=()=>tmp,tmp};class EcrImage extends container_image_1().ContainerImage{repository;tagOrDigest;static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_ecs.EcrImage",version:"2.252.0"};imageName;constructor(repository,tagOrDigest){super(),this.repository=repository,this.tagOrDigest=tagOrDigest;try{jsiiDeprecationWarnings().aws_cdk_lib_aws_ecr_IRepository(repository)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,EcrImage),error}this.imageName=this.repository.repositoryUriForTagOrDigest(this.tagOrDigest)}bind(_scope,containerDefinition){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_ecs_ContainerDefinition(containerDefinition)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.bind),error}return this.repository.grantPull(containerDefinition.taskDefinition.obtainExecutionRole()),{imageName:this.imageName}}}exports.EcrImage=EcrImage;

View File

@@ -0,0 +1,28 @@
import type { Construct } from 'constructs';
import type * as secretsmanager from '../../../aws-secretsmanager';
import type { ContainerDefinition } from '../container-definition';
import type { ContainerImageConfig } from '../container-image';
import { ContainerImage } from '../container-image';
/**
* The properties for an image hosted in a public or private repository.
*/
export interface RepositoryImageProps {
/**
* The secret to expose to the container that contains the credentials for the image repository.
* The supported value is the full ARN of an AWS Secrets Manager secret.
*/
readonly credentials?: secretsmanager.ISecret;
}
/**
* An image hosted in a public or private repository. For images hosted in Amazon ECR, see
* [EcrImage](https://docs.aws.amazon.com/AmazonECR/latest/userguide/images.html).
*/
export declare class RepositoryImage extends ContainerImage {
private readonly imageName;
private readonly props;
/**
* Constructs a new instance of the RepositoryImage class.
*/
constructor(imageName: string, props?: RepositoryImageProps);
bind(scope: Construct, containerDefinition: ContainerDefinition): ContainerImageConfig;
}

View File

@@ -0,0 +1 @@
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.RepositoryImage=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var core_1=()=>{var tmp=require("../../../core");return core_1=()=>tmp,tmp},container_image_1=()=>{var tmp=require("../container-image");return container_image_1=()=>tmp,tmp};const ECR_IMAGE_REGEX=/(^[a-zA-Z0-9][a-zA-Z0-9-_]*)\.dkr\.ecr\.([a-zA-Z0-9][a-zA-Z0-9-_]*)\.amazonaws.com(\.cn)?\/.*/;class RepositoryImage extends container_image_1().ContainerImage{imageName;props;static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_ecs.RepositoryImage",version:"2.252.0"};constructor(imageName,props={}){super(),this.imageName=imageName,this.props=props;try{jsiiDeprecationWarnings().aws_cdk_lib_aws_ecs_RepositoryImageProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,RepositoryImage),error}}bind(scope,containerDefinition){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_ecs_ContainerDefinition(containerDefinition)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.bind),error}return!core_1().Token.isUnresolved(this.imageName)&&ECR_IMAGE_REGEX.test(this.imageName)&&core_1().Annotations.of(scope).addWarningV2("@aws-cdk/aws-ecs:ecrImageRequiresPolicy","Proper policies need to be attached before pulling from ECR repository, or use 'fromEcrRepository'."),this.props.credentials&&this.props.credentials.grantRead(containerDefinition.taskDefinition.obtainExecutionRole()),{imageName:this.imageName,repositoryCredentials:this.props.credentials&&{credentialsParameter:this.props.credentials.secretArn}}}}exports.RepositoryImage=RepositoryImage;

View File

@@ -0,0 +1,30 @@
import type { Construct } from 'constructs';
import type * as ecr from '../../../aws-ecr';
import type { ContainerDefinition } from '../container-definition';
import type { ContainerImageConfig } from '../container-image';
import { ContainerImage } from '../container-image';
/**
* A special type of `ContainerImage` that uses an ECR repository for the image,
* but a CloudFormation Parameter for the tag of the image in that repository.
* This allows providing this tag through the Parameter at deploy time,
* for example in a CodePipeline that pushes a new tag of the image to the repository during a build step,
* and then provides that new tag through the CloudFormation Parameter in the deploy step.
*
* @see #tagParameterName
*/
export declare class TagParameterContainerImage extends ContainerImage {
private readonly repository;
private imageTagParameter?;
constructor(repository: ecr.IRepository);
bind(scope: Construct, containerDefinition: ContainerDefinition): ContainerImageConfig;
/**
* Returns the name of the CloudFormation Parameter that represents the tag of the image
* in the ECR repository.
*/
get tagParameterName(): string;
/**
* Returns the value of the CloudFormation Parameter that represents the tag of the image
* in the ECR repository.
*/
get tagParameterValue(): string;
}

View File

@@ -0,0 +1 @@
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.TagParameterContainerImage=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var cdk=()=>{var tmp=require("../../../core");return cdk=()=>tmp,tmp},literal_string_1=()=>{var tmp=require("../../../core/lib/private/literal-string");return literal_string_1=()=>tmp,tmp},container_image_1=()=>{var tmp=require("../container-image");return container_image_1=()=>tmp,tmp};class TagParameterContainerImage extends container_image_1().ContainerImage{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_ecs.TagParameterContainerImage",version:"2.252.0"};repository;imageTagParameter;constructor(repository){super();try{jsiiDeprecationWarnings().aws_cdk_lib_aws_ecr_IRepository(repository)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,TagParameterContainerImage),error}this.repository=repository}bind(scope,containerDefinition){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_ecs_ContainerDefinition(containerDefinition)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.bind),error}this.repository.grantPull(containerDefinition.taskDefinition.obtainExecutionRole());const imageTagParameter=new(cdk()).CfnParameter(scope,"ImageTagParam");return this.imageTagParameter=imageTagParameter,{imageName:this.repository.repositoryUriForTag(imageTagParameter.valueAsString)}}get tagParameterName(){return cdk().Lazy.string({produce:()=>{if(this.imageTagParameter)return this.imageTagParameter.logicalId;throw new(cdk()).UnscopedValidationError((0,literal_string_1().lit)`TagParameterNotBound`,"TagParameterContainerImage must be used in a container definition when using tagParameterName")}})}get tagParameterValue(){return cdk().Lazy.string({produce:()=>{if(this.imageTagParameter)return this.imageTagParameter.valueAsString;throw new(cdk()).UnscopedValidationError((0,literal_string_1().lit)`TagParameterNotBound`,"TagParameterContainerImage must be used in a container definition when using tagParameterValue")}})}}exports.TagParameterContainerImage=TagParameterContainerImage;