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,62 @@
import type { Construct } from 'constructs';
import * as codepipeline from '../../../aws-codepipeline';
import { Action } from '../action';
/**
* Construction properties of the `CommandsAction`.
*/
export interface CommandsActionProps extends codepipeline.CommonAwsActionProps {
/**
* The source to use as input for this action.
*/
readonly input: codepipeline.Artifact;
/**
* The list of additional input artifacts for this action.
*
* @default - no extra inputs
*/
readonly extraInputs?: codepipeline.Artifact[];
/**
* The output artifact for this action.
*
* You can filter files that you want to export as the output artifact for the action.
*
* @example
* new codepipeline.Artifact('CommandsArtifact', ['my-dir/**']);
*
* @default - no output artifact
*/
readonly output?: codepipeline.Artifact;
/**
* The names of the variables in your environment that you want to export.
*
* These variables can be referenced in other actions by using the `variable` method
* of this class.
*
* @see https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-env-vars.html
* @default - No output variables are exported
*/
readonly outputVariables?: string[];
/**
* Shell commands for the Commands action to run.
*
* All formats are supported except multi-line formats.
*
* The length of the commands array must be between 1 and 50.
*/
readonly commands: string[];
}
/**
* CodePipeline compute action that uses AWS Commands.
*/
export declare class CommandsAction extends Action {
private readonly outputVariables;
constructor(props: CommandsActionProps);
/**
* Reference a CodePipeline variable exported in the Commands action.
*
* @param variableName the name of the variable exported by `outputVariables`
* @see https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-env-vars.html
*/
variable(variableName: string): string;
protected bound(scope: Construct, stage: codepipeline.IStage, options: codepipeline.ActionBindOptions): codepipeline.ActionConfig;
}

View File

@@ -0,0 +1 @@
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CommandsAction=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var codepipeline=()=>{var tmp=require("../../../aws-codepipeline");return codepipeline=()=>tmp,tmp},iam=()=>{var tmp=require("../../../aws-iam");return iam=()=>tmp,tmp},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},action_1=()=>{var tmp=require("../action");return action_1=()=>tmp,tmp};class CommandsAction extends action_1().Action{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_codepipeline_actions.CommandsAction",version:"2.252.0"};outputVariables;constructor(props){super({...props,category:codepipeline().ActionCategory.COMPUTE,provider:"Commands",artifactBounds:{minInputs:1,maxInputs:10,minOutputs:0,maxOutputs:1},inputs:[props.input,...props.extraInputs||[]],outputs:props.output?[props.output]:[],commands:props.commands,outputVariables:props.outputVariables});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_codepipeline_actions_CommandsActionProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CommandsAction),error}if(props.commands.length<1||props.commands.length>50)throw new(cdk()).UnscopedValidationError((0,literal_string_1().lit)`InvalidCommandsLength`,`The length of the commands array must be between 1 and 50, got: ${props.commands.length}`);if(props.outputVariables!==void 0&&(props.outputVariables.length<1||props.outputVariables.length>15))throw new(cdk()).UnscopedValidationError((0,literal_string_1().lit)`InvalidOutputVariablesLength`,`The length of the outputVariables array must be between 1 and 15, got: ${props.outputVariables.length}`);this.outputVariables=props.outputVariables||[]}variable(variableName){if(!this.outputVariables.includes(variableName))throw new(cdk()).UnscopedValidationError((0,literal_string_1().lit)`VariableNotExported`,`Variable '${variableName}' is not exported by \`outputVariables\`, exported variables: ${this.outputVariables.join(", ")}`);return this.variableExpression(variableName)}bound(scope,stage,options){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_codepipeline_IStage(stage),jsiiDeprecationWarnings().aws_cdk_lib_aws_codepipeline_ActionBindOptions(options)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.bound),error}const logGroupArn=cdk().Stack.of(scope).formatArn({service:"logs",resource:"log-group",resourceName:`/aws/codepipeline/${stage.pipeline.pipelineName}`,arnFormat:cdk().ArnFormat.COLON_RESOURCE_NAME}),logGroupArnWithWildcard=`${logGroupArn}:*`;return options.role.addToPrincipalPolicy(new(iam()).PolicyStatement({resources:[logGroupArn,logGroupArnWithWildcard],actions:["logs:CreateLogGroup","logs:CreateLogStream","logs:PutLogEvents"]})),options.role.addToPrincipalPolicy(new(iam()).PolicyStatement({resources:[logGroupArnWithWildcard],actions:["logs:GetLogEvents"]})),(this.actionProperties.inputs??[]).length>0&&options.bucket.grantRead(options.role),(this.actionProperties.outputs??[]).length>0&&options.bucket.grantWrite(options.role),{}}}exports.CommandsAction=CommandsAction;