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,64 @@
/**
* Interface for ItemBatcher configuration properties
*/
export interface ItemBatcherProps {
/**
* MaxItemsPerBatch
*
* Specifies the maximum number of items that each child workflow execution processes, as static number
*
* @default - uses value of `maxItemsPerBatchPath` as the max items per batch,
* no limits on the number of items in a batch under the 256KB limit if that property was also not provided
*/
readonly maxItemsPerBatch?: number;
/**
* MaxItemsPerBatchPath
*
* Specifies the maximum number of items that each child workflow execution processes, as JsonPath
*
* @default - uses value of `maxItemsPerBatch` as the max items per batch,
* no limits on the number of items in a batch under the 256KB limit if that property was also not provided
*/
readonly maxItemsPerBatchPath?: string;
/**
* MaxInputBytesPerBatch
*
* Specifies the maximum number of bytes that each child workflow execution processes, as static number
*
* @default - uses value of `maxInputBytesPerBatchPath` as the max size per batch,
* no limits on the batch size under the 256KB limit if that property was also not provided
*/
readonly maxInputBytesPerBatch?: number;
/**
* MaxInputBytesPerBatchPath
*
* Specifies the maximum number of bytes that each child workflow execution processes, as JsonPath
*
* @default - uses value of `maxInputBytesPerBatch` as the max size per batch,
* no limits on the batch size under the 256KB limit if that property was also not provided
*/
readonly maxInputBytesPerBatchPath?: string;
/**
* BatchInput
*
* Fixed JSON input to include in each batch passed to each child workflow execution
*
* @default - No batchInput
*/
readonly batchInput?: object;
}
/**
* Configuration for processing a group of items in a single child workflow execution
*/
export declare class ItemBatcher {
private props;
constructor(props: ItemBatcherProps);
/**
* Render ItemBatcher in ASL JSON format
*/
render(): any;
/**
* Validate this ItemBatcher
*/
validateItemBatcher(): string[];
}

View File

@@ -0,0 +1 @@
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ItemBatcher=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");class ItemBatcher{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_stepfunctions.ItemBatcher",version:"2.252.0"};props;constructor(props){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_stepfunctions_ItemBatcherProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,ItemBatcher),error}this.props=props}render(){return{...this.props.maxItemsPerBatch&&{MaxItemsPerBatch:this.props.maxItemsPerBatch},...this.props.maxItemsPerBatchPath&&{MaxItemsPerBatchPath:this.props.maxItemsPerBatchPath},...this.props.maxInputBytesPerBatch&&{MaxInputBytesPerBatch:this.props.maxInputBytesPerBatch},...this.props.maxInputBytesPerBatchPath&&{MaxInputBytesPerBatchPath:this.props.maxInputBytesPerBatchPath},...this.props.batchInput&&{BatchInput:this.props.batchInput}}}validateItemBatcher(){const errors=[];return this.props.maxItemsPerBatch&&this.props.maxItemsPerBatchPath&&errors.push("Provide either `maxItemsPerBatch` or `maxItemsPerBatchPath`, but not both"),this.props.maxInputBytesPerBatch&&this.props.maxInputBytesPerBatchPath&&errors.push("Provide either `maxInputBytesPerBatch` or `maxInputBytesPerBatchPath`, but not both"),!this.props.maxItemsPerBatch&&!this.props.maxItemsPerBatchPath&&!this.props.maxInputBytesPerBatch&&!this.props.maxInputBytesPerBatchPath&&!this.props.batchInput&&errors.push("Provide at least one value to the ItemBatcher"),errors}}exports.ItemBatcher=ItemBatcher;

View File

@@ -0,0 +1,285 @@
import * as iam from '../../../../aws-iam';
import type { IBucket } from '../../../../aws-s3';
import { QueryLanguage } from '../../types';
/**
* Base interface for Item Reader configurations
*/
export interface IItemReader {
/**
* S3 Bucket containing objects to iterate over or a file with a list to iterate over
*/
readonly bucket: IBucket;
/**
* S3 bucket name containing objects to iterate over or a file with a list to iterate over, as JsonPath
*/
readonly bucketNamePath?: string;
/**
* The Amazon S3 API action that Step Functions must invoke depending on the specified dataset.
*/
readonly resource: string;
/**
* Limits the number of items passed to the Distributed Map state
*
* @default - Distributed Map state will iterate over all items provided by the ItemReader
*/
readonly maxItems?: number;
/**
* Render the ItemReader as JSON object
*/
render(queryLanguage?: QueryLanguage): any;
/**
* Compile policy statements to provide relevent permissions to the state machine
*/
providePolicyStatements(): iam.PolicyStatement[];
/**
* Validate that ItemReader contains exactly either @see bucket or @see bucketNamePath
*/
validateItemReader(): string[];
}
/**
* Base interface for Item Reader configuration properties
*/
export interface ItemReaderProps {
/**
* S3 Bucket containing objects to iterate over or a file with a list to iterate over
*
* @default - S3 bucket will be determined from @see bucketNamePath
*/
readonly bucket?: IBucket;
/**
* S3 bucket name containing objects to iterate over or a file with a list to iterate over, as JsonPath
*
* @default - S3 bucket will be determined from @see bucket
*/
readonly bucketNamePath?: string;
/**
* Limits the number of items passed to the Distributed Map state
*
* @default - Distributed Map state will iterate over all items provided by the ItemReader
*/
readonly maxItems?: number;
}
/**
* Properties for configuring an Item Reader that iterates over objects in an S3 bucket
*/
export interface S3ObjectsItemReaderProps extends ItemReaderProps {
/**
* S3 prefix used to limit objects to iterate over
*
* @default - No prefix
*/
readonly prefix?: string;
}
/**
* Item Reader configuration for iterating over objects in an S3 bucket
*/
export declare class S3ObjectsItemReader implements IItemReader {
private readonly _bucket?;
/**
* S3 Bucket containing objects to iterate over
*/
get bucket(): IBucket;
/**
* S3 bucket name containing objects to iterate over or a file with a list to iterate over, as JsonPath
*/
readonly bucketNamePath?: string;
/**
* ARN for the `listObjectsV2` method of the S3 API
* This API method is used to iterate all objects in the S3 bucket/prefix
*/
readonly resource: string;
/**
* S3 prefix used to limit objects to iterate over
*
* @default - No prefix
*/
readonly prefix?: string;
/**
* Limits the number of items passed to the Distributed Map state
*
* @default - Distributed Map state will iterate over all items provided by the ItemReader
*/
readonly maxItems?: number;
constructor(props: S3ObjectsItemReaderProps);
/**
* Renders the ItemReader configuration as JSON object
* @returns - JSON object
*/
render(queryLanguage?: QueryLanguage): any;
/**
* Compile policy statements to provide relevent permissions to the state machine
*/
providePolicyStatements(): iam.PolicyStatement[];
/**
* Validate that ItemReader contains exactly either @see bucket or @see bucketNamePath
*/
validateItemReader(): string[];
}
/**
* Base interface for Item Reader configuration properties the iterate over entries in a S3 file
*/
export interface S3FileItemReaderProps extends ItemReaderProps {
/**
* Key of file stored in S3 bucket containing an array to iterate over
*/
readonly key: string;
}
/**
* Base Item Reader configuration for iterating over entries in a S3 file
*/
declare abstract class S3FileItemReader implements IItemReader {
private readonly _bucket?;
/**
* S3 Bucket containing a file with a list to iterate over
*/
get bucket(): IBucket;
/**
* S3 bucket name containing objects to iterate over or a file with a list to iterate over, as JsonPath
*/
readonly bucketNamePath?: string;
/**
* S3 key of a file with a list to iterate over
*/
readonly key: string;
/**
* ARN for the `getObject` method of the S3 API
* This API method is used to iterate all objects in the S3 bucket/prefix
*/
readonly resource: string;
/**
* Limits the number of items passed to the Distributed Map state
*
* @default - No maxItems
*/
readonly maxItems?: number;
protected abstract readonly inputType: string;
constructor(props: S3FileItemReaderProps);
/**
* Renders the ItemReader configuration as JSON object
* @returns - JSON object
*/
render(queryLanguage?: QueryLanguage): any;
/**
* Compile policy statements to provide relevent permissions to the state machine
*/
providePolicyStatements(): iam.PolicyStatement[];
/**
* Validate that ItemReader contains exactly either @see bucket or @see bucketNamePath
*/
validateItemReader(): string[];
}
/**
* Item Reader configuration for iterating over items in a JSON array stored in a S3 file
*/
export declare class S3JsonItemReader extends S3FileItemReader {
protected readonly inputType: string;
}
/**
* Item Reader configuration for iterating over the rows of the JSONL file stored in S3
*/
export declare class S3JsonLItemReader extends S3FileItemReader {
protected readonly inputType: string;
}
/**
* CSV header location options
*/
export declare enum CsvHeaderLocation {
/**
* Headers will be read from first row of CSV file
*/
FIRST_ROW = "FIRST_ROW",
/**
* Headers are provided in CSVHeaders property
*/
GIVEN = "GIVEN"
}
/**
* Configuration for CSV header options for a CSV Item Reader
*/
export declare class CsvHeaders {
/**
* Configures S3CsvItemReader to read headers from the first row of the CSV file
* @returns - CsvHeaders
*/
static useFirstRow(): CsvHeaders;
/**
* Configures S3CsvItemReader to use the headers provided in the `headers` parameter
* @param headers - List of headers
* @returns - CsvHeaders
*/
static use(headers: string[]): CsvHeaders;
/**
* Location of headers in CSV file
*/
readonly headerLocation: CsvHeaderLocation;
/**
* List of headers if `headerLocation` is `GIVEN`
*/
readonly headers?: string[];
private constructor();
}
/**
* Properties for configuring an Item Reader that iterates over items in a CSV file in S3
*/
export interface S3CsvItemReaderProps extends S3FileItemReaderProps {
/**
* CSV file header configuration
*
* @default - CsvHeaders with CsvHeadersLocation.FIRST_ROW
*/
readonly csvHeaders?: CsvHeaders;
/**
* Delimiter used in a CSV file
*
* @default undefined - Default setting is COMMA.
*/
readonly csvDelimiter?: CsvDelimiter;
}
/**
* Delimiter used in CSV file
*/
export declare enum CsvDelimiter {
/**
* Comma delimiter
*/
COMMA = "COMMA",
/**
* Pipe delimiter
*/
PIPE = "PIPE",
/**
* Semicolon delimiter
*/
SEMICOLON = "SEMICOLON",
/**
* Space delimiter
*/
SPACE = "SPACE",
/**
* Tab delimiter
*/
TAB = "TAB"
}
/**
* Item Reader configuration for iterating over items in a CSV file stored in S3
*/
export declare class S3CsvItemReader extends S3FileItemReader {
/**
* CSV headers configuration
*/
readonly csvHeaders: CsvHeaders;
/**
* Delimiter used in CSV file
*/
readonly csvDelimiter?: CsvDelimiter;
protected readonly inputType: string;
constructor(props: S3CsvItemReaderProps);
render(queryLanguage?: QueryLanguage): any;
}
/**
* Item Reader configuration for iterating over items in a S3 inventory manifest file stored in S3
*/
export declare class S3ManifestItemReader extends S3FileItemReader {
protected readonly inputType: string;
}
export {};

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,172 @@
import * as iam from '../../../../aws-iam';
import type { IBucket } from '../../../../aws-s3';
import { QueryLanguage } from '../../types';
/**
* Interface for Result Writer configuration props
* @deprecated use {@link ResultWriterV2Props} instead
*/
export interface ResultWriterProps {
/**
* S3 Bucket in which to save Map Run results
*/
readonly bucket: IBucket;
/**
* S3 prefix in which to save Map Run results
*
* @default - No prefix
*/
readonly prefix?: string;
}
/**
* Interface for Result Writer configuration props
*/
export interface ResultWriterV2Props {
/**
* S3 Bucket in which to save Map Run results
* @default - specify a bucket
*/
readonly bucket?: IBucket;
/**
* S3 bucket name in which to save Map Run results, as JsonPath
*
* @default - no bucket path
*/
readonly bucketNamePath?: string;
/**
* S3 prefix in which to save Map Run results
*
* @default - No prefix
*/
readonly prefix?: string;
/**
* Configuration to format the output of the Child Workflow executions
*
* @default - Specify both Transformation and OutputType
*/
readonly writerConfig?: WriterConfig;
}
/**
* The transformation to be applied to the Output of the Child Workflow executions
*/
export declare enum Transformation {
/**
* Returns the output of the child workflow executions unchanged, in addition to the workflow metadata.
* Default when exporting the child workflow execution results to Amazon S3 and WriterConfig is not specified.
*/
NONE = "NONE",
/**
* Returns the output of the child workflow executions. Default when ResultWriter is not specified.
*/
COMPACT = "COMPACT",
/**
* Returns the output of the child workflow executions.
* If a child workflow execution returns an array,this option flattens the array,
* prior to returning the result to a state output or writing the result to an Amazon S3 object.
*/
FLATTEN = "FLATTEN"
}
/**
* The format of the Output of the child workflow executions
*/
export declare enum OutputType {
/**
* Formats the results as a JSON array
*/
JSON = "JSON",
/**
* Formats the results as JSON Lines
*/
JSONL = "JSONL"
}
/**
* Interface for Writer Config props
*/
export interface WriterConfigProps {
/**
* The transformation to be applied to the Output of the Child Workflow executions
*/
readonly transformation: Transformation;
/**
* The format of the Output of the child workflow executions
*/
readonly outputType: OutputType;
}
/**
* Configuration to format the output
*/
export declare class WriterConfig {
/**
* The transformation to be applied to the Output of the Child Workflow executions
*/
readonly transformation: Transformation;
/**
* The format of the Output of the child workflow executions
*/
readonly outputType: OutputType;
constructor(props: WriterConfigProps);
}
/**
* Configuration for writing Distributed Map state results to S3
* @deprecated use {@link ResultWriterV2} instead
*/
export declare class ResultWriter {
/**
* S3 Bucket in which to save Map Run results
*/
readonly bucket: IBucket;
/**
* S3 prefix in which to save Map Run results
*
* @default - No prefix
*/
readonly prefix?: string;
constructor(props: ResultWriterProps);
/**
* Render ResultWriter in ASL JSON format
*/
render(queryLanguage?: QueryLanguage): any;
/**
* Compile policy statements to provide relevent permissions to the state machine
*/
providePolicyStatements(): iam.PolicyStatement[];
}
/**
* Configuration for writing Distributed Map state results to S3
* The ResultWriter field cannot be empty. You must specify one of these sets of sub-fields.
* writerConfig - to preview the formatted output, without saving the results to Amazon S3.
* bucket and prefix - to save the results to Amazon S3 without additional formatting.
* All three fields: writerConfig, bucket and prefix - to format the output and save it to Amazon S3.
*/
export declare class ResultWriterV2 {
/**
* S3 Bucket in which to save Map Run results
*/
readonly bucket?: IBucket;
/**
* S3 bucket name in which to save Map Run results, as JsonPath
*/
readonly bucketNamePath?: string;
/**
* S3 prefix in which to save Map Run results
*
* @default - No prefix
*/
readonly prefix?: string;
/**
* Configuration to format the output of the Child Workflow executions
*/
readonly writerConfig?: WriterConfig;
constructor(props: ResultWriterV2Props);
/**
* Render ResultWriter in ASL JSON format
*/
render(queryLanguage?: QueryLanguage): any;
/**
* Compile policy statements to provide relevent permissions to the state machine
*/
providePolicyStatements(): iam.PolicyStatement[];
/**
* Validate that ResultWriter contains exactly either @see bucket or @see bucketNamePath
*/
validateResultWriter(): string[];
}

File diff suppressed because one or more lines are too long