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,71 @@
import type { Construct } from 'constructs';
import type * as iam from '../../../aws-iam';
/**
* The type of the init element.
*/
export declare enum InitElementType {
PACKAGE = "PACKAGE",
GROUP = "GROUP",
USER = "USER",
SOURCE = "SOURCE",
FILE = "FILE",
COMMAND = "COMMAND",
SERVICE = "SERVICE"
}
/**
* The platform to which the init template applies.
*/
export declare enum InitPlatform {
WINDOWS = "WINDOWS",
LINUX = "LINUX"
}
/**
* Context information passed when an InitElement is being consumed
* @internal
*/
export interface InitBindOptions {
/**
* Scope in which to define any resources, if necessary.
*/
readonly scope: Construct;
/**
* Which OS platform (Linux, Windows) the init block will be for.
* Impacts which config types are available and how they are created.
*/
readonly platform: InitPlatform;
/**
* Ordered index of current element type. Primarily used to auto-generate
* command keys and retain ordering.
*/
readonly index: number;
/**
* Instance role of the consuming instance or fleet
*/
readonly instanceRole: iam.IRole;
}
/**
* A return type for a configured InitElement. Both its CloudFormation representation, and any
* additional metadata needed to create the CloudFormation::Init.
*
* Marked internal so as not to leak the underlying L1 representation.
*
* @internal
*/
export interface InitElementConfig {
/**
* The CloudFormation representation of the configuration of an InitElement.
*/
readonly config: Record<string, any>;
/**
* Optional authentication blocks to be associated with the Init Config
*
* @default - No authentication associated with the config
*/
readonly authentication?: Record<string, any>;
/**
* Optional string representing a hash of the asset associated with this element (if any).
*
* @default - No hash is provided
*/
readonly assetHash?: string;
}

View File

@@ -0,0 +1 @@
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.InitPlatform=exports.InitElementType=void 0;var InitElementType;(function(InitElementType2){InitElementType2.PACKAGE="PACKAGE",InitElementType2.GROUP="GROUP",InitElementType2.USER="USER",InitElementType2.SOURCE="SOURCE",InitElementType2.FILE="FILE",InitElementType2.COMMAND="COMMAND",InitElementType2.SERVICE="SERVICE"})(InitElementType||(exports.InitElementType=InitElementType={}));var InitPlatform;(function(InitPlatform2){InitPlatform2.WINDOWS="WINDOWS",InitPlatform2.LINUX="LINUX"})(InitPlatform||(exports.InitPlatform=InitPlatform={}));

View File

@@ -0,0 +1,6 @@
import type { IConstruct } from 'constructs';
import type { INetworkAclRef, ISubnetRef } from '../ec2.generated';
import type { INetworkAcl } from '../network-acl';
import type { ISubnet } from '../vpc';
export declare function asNetworkAcl(x: INetworkAclRef, scope: IConstruct): INetworkAcl;
export declare function asSubnet(x: ISubnetRef, scope: IConstruct): ISubnet;

View File

@@ -0,0 +1 @@
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.asNetworkAcl=asNetworkAcl,exports.asSubnet=asSubnet;var errors_1=()=>{var tmp=require("../../../core/lib/errors");return errors_1=()=>tmp,tmp},literal_string_1=()=>{var tmp=require("../../../core/lib/private/literal-string");return literal_string_1=()=>tmp,tmp};function asNetworkAcl(x,scope){if("addEntry"in x)return x;throw new(errors_1()).ValidationError((0,literal_string_1().lit)`ProvidedNetworkAclInstanceNetwork`,`Provided networkAcl is not an instance of INetworkAcl: ${x.constructor.name}`,scope)}function asSubnet(x,scope){if("subnetId"in x)return x;throw new(errors_1()).ValidationError((0,literal_string_1().lit)`ProvidedSubnetInstanceSubnet`,`Provided subnet is not an instance of ISubnet: ${x.constructor.name}`,scope)}

View File

@@ -0,0 +1,5 @@
import type { Construct } from 'constructs';
import type { CfnInstance, CfnLaunchTemplate } from '../ec2.generated';
import type { BlockDevice } from '../volume';
export declare function instanceBlockDeviceMappings(construct: Construct, blockDevices: BlockDevice[]): CfnInstance.BlockDeviceMappingProperty[];
export declare function launchTemplateBlockDeviceMappings(construct: Construct, blockDevices: BlockDevice[]): CfnLaunchTemplate.BlockDeviceMappingProperty[];

View File

@@ -0,0 +1 @@
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.instanceBlockDeviceMappings=instanceBlockDeviceMappings,exports.launchTemplateBlockDeviceMappings=launchTemplateBlockDeviceMappings;var core_1=()=>{var tmp=require("../../../core");return core_1=()=>tmp,tmp},literal_string_1=()=>{var tmp=require("../../../core/lib/private/literal-string");return literal_string_1=()=>tmp,tmp},volume_1=()=>{var tmp=require("../volume");return volume_1=()=>tmp,tmp};function instanceBlockDeviceMappings(construct,blockDevices){for(const blockDevice of blockDevices)blockDevice.volume.ebsDevice?.throughput!==void 0&&core_1().Annotations.of(construct).addWarningV2("@aws-cdk/aws-ec2:throughputNotSupported","The throughput property is not supported on EC2 instances. Use a Launch Template instead. See https://github.com/aws/aws-cdk/issues/34033 for more information.");return synthesizeBlockDeviceMappings(construct,blockDevices,{})}function launchTemplateBlockDeviceMappings(construct,blockDevices){return synthesizeBlockDeviceMappings(construct,blockDevices,"")}function synthesizeBlockDeviceMappings(construct,blockDevices,noDeviceValue){return blockDevices.map(({deviceName,volume,mappingEnabled})=>{const{virtualName,ebsDevice:ebs}=volume;let finalEbs;if(ebs){const{iops,throughput,volumeType,kmsKey,...rest}=ebs;if(throughput){if(volumeType!==volume_1().EbsDeviceVolumeType.GP3)throw new(core_1()).ValidationError((0,literal_string_1().lit)`RequiresThroughputRequiresVolumetype`,`'throughput' requires 'volumeType': ${volume_1().EbsDeviceVolumeType.GP3}, got: ${volumeType}.`,construct);if(!Number.isInteger(throughput))throw new(core_1()).ValidationError((0,literal_string_1().lit)`MustBeThroughputInteger`,`'throughput' must be an integer, got: ${throughput}.`,construct);if(throughput<125||throughput>2e3)throw new(core_1()).ValidationError((0,literal_string_1().lit)`MustBeThroughputBetween2000`,`'throughput' must be between 125 and 2000, got ${throughput}.`,construct);const maximumThroughputRatio=.25;if(iops){const iopsRatio=throughput/iops;if(iopsRatio>maximumThroughputRatio)throw new(core_1()).ValidationError((0,literal_string_1().lit)`ThroughputMiBpsIopsRatio`,`Throughput (MiBps) to iops ratio of ${iopsRatio} is too high; maximum is ${maximumThroughputRatio} MiBps per iops`,construct)}}if(iops)volumeType!==volume_1().EbsDeviceVolumeType.IO1&&volumeType!==volume_1().EbsDeviceVolumeType.IO2&&volumeType!==volume_1().EbsDeviceVolumeType.GP3&&core_1().Annotations.of(construct).addWarningV2("@aws-cdk/aws-ec2:iopsIgnored","iops will be ignored without volumeType: IO1, IO2, or GP3");else if(volumeType===volume_1().EbsDeviceVolumeType.IO1||volumeType===volume_1().EbsDeviceVolumeType.IO2)throw new(core_1()).ValidationError((0,literal_string_1().lit)`IopsPropertyRequiredVolumeType`,"iops property is required with volumeType: EbsDeviceVolumeType.IO1 and EbsDeviceVolumeType.IO2",construct);finalEbs={...rest,iops,throughput,volumeType,kmsKeyId:kmsKey?.keyArn}}else finalEbs=void 0;return{deviceName,ebs:finalEbs,virtualName,noDevice:mappingEnabled===!1?noDeviceValue:void 0}})}