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,58 @@
import type { Construct } from 'constructs';
import type { IJenkinsProvider } from './jenkins-provider';
import * as codepipeline from '../../../aws-codepipeline';
import { Action } from '../action';
/**
* The type of the Jenkins Action that determines its CodePipeline Category -
* Build, or Test.
* Note that a Jenkins provider, even if it has the same name,
* must be separately registered for each type.
*/
export declare enum JenkinsActionType {
/**
* The Action will have the Build Category.
*/
BUILD = 0,
/**
* The Action will have the Test Category.
*/
TEST = 1
}
/**
* Construction properties of `JenkinsAction`.
*/
export interface JenkinsActionProps extends codepipeline.CommonActionProps {
/**
* The source to use as input for this build.
*/
readonly inputs?: codepipeline.Artifact[];
/**
*
*/
readonly outputs?: codepipeline.Artifact[];
/**
* The Jenkins Provider for this Action.
*/
readonly jenkinsProvider: IJenkinsProvider;
/**
* The name of the project (sometimes also called job, or task)
* on your Jenkins installation that will be invoked by this Action.
*
* @example 'MyJob'
*/
readonly projectName: string;
/**
* The type of the Action - Build, or Test.
*/
readonly type: JenkinsActionType;
}
/**
* Jenkins build CodePipeline Action.
*
* @see https://docs.aws.amazon.com/codepipeline/latest/userguide/tutorials-four-stage-pipeline.html
*/
export declare class JenkinsAction extends Action {
private readonly props;
constructor(props: JenkinsActionProps);
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.JenkinsAction=exports.JenkinsActionType=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var jenkins_provider_1=()=>{var tmp=require("./jenkins-provider");return jenkins_provider_1=()=>tmp,tmp},codepipeline=()=>{var tmp=require("../../../aws-codepipeline");return codepipeline=()=>tmp,tmp},action_1=()=>{var tmp=require("../action");return action_1=()=>tmp,tmp},JenkinsActionType;(function(JenkinsActionType2){JenkinsActionType2[JenkinsActionType2.BUILD=0]="BUILD",JenkinsActionType2[JenkinsActionType2.TEST=1]="TEST"})(JenkinsActionType||(exports.JenkinsActionType=JenkinsActionType={}));class JenkinsAction extends action_1().Action{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_codepipeline_actions.JenkinsAction",version:"2.252.0"};props;constructor(props){super({...props,category:props.type===JenkinsActionType.BUILD?codepipeline().ActionCategory.BUILD:codepipeline().ActionCategory.TEST,provider:props.jenkinsProvider.providerName,owner:"Custom",artifactBounds:jenkins_provider_1().jenkinsArtifactsBounds,version:props.jenkinsProvider.version});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_codepipeline_actions_JenkinsActionProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,JenkinsAction),error}this.props=props}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}return this.actionProperties.category===codepipeline().ActionCategory.BUILD?this.props.jenkinsProvider._registerBuildProvider():this.props.jenkinsProvider._registerTestProvider(),{configuration:{ProjectName:this.props.projectName}}}}exports.JenkinsAction=JenkinsAction;

View File

@@ -0,0 +1,138 @@
import type { IConstruct } from 'constructs';
import { Construct } from 'constructs';
import * as codepipeline from '../../../aws-codepipeline';
/**
* A Jenkins provider.
*
* If you want to create a new Jenkins provider managed alongside your CDK code,
* instantiate the `JenkinsProvider` class directly.
*
* If you want to reference an already registered provider,
* use the `JenkinsProvider#fromJenkinsProviderAttributes` method.
*/
export interface IJenkinsProvider extends IConstruct {
readonly providerName: string;
readonly serverUrl: string;
readonly version: string;
/**
* Registers a Jenkins Provider for the build category.
* This method will be automatically called when creating
* a `JenkinsAction`,
* so you should never need to call it explicitly.
*
* @internal
*/
_registerBuildProvider(): void;
/**
* Registers a Jenkins Provider for the test category.
* This method will be automatically called when creating
* a `JenkinsTestAction`,
* so you should never need to call it explicitly.
*
* @internal
*/
_registerTestProvider(): void;
}
/**
* Properties for importing an existing Jenkins provider.
*/
export interface JenkinsProviderAttributes {
/**
* The name of the Jenkins provider that you set in the AWS CodePipeline plugin configuration of your Jenkins project.
*
* @example 'MyJenkinsProvider'
*/
readonly providerName: string;
/**
* The base URL of your Jenkins server.
*
* @example 'http://myjenkins.com:8080'
*/
readonly serverUrl: string;
/**
* The version of your provider.
*
* @default '1'
*/
readonly version?: string;
}
export interface JenkinsProviderProps {
/**
* The name of the Jenkins provider that you set in the AWS CodePipeline plugin configuration of your Jenkins project.
*
* @example 'MyJenkinsProvider'
*/
readonly providerName: string;
/**
* The base URL of your Jenkins server.
*
* @example 'http://myjenkins.com:8080'
*/
readonly serverUrl: string;
/**
* The version of your provider.
*
* @default '1'
*/
readonly version?: string;
/**
* Whether to immediately register a Jenkins Provider for the build category.
* The Provider will always be registered if you create a `JenkinsAction`.
*
* @default false
*/
readonly forBuild?: boolean;
/**
* Whether to immediately register a Jenkins Provider for the test category.
* The Provider will always be registered if you create a `JenkinsTestAction`.
*
* @default false
*/
readonly forTest?: boolean;
}
export declare abstract class BaseJenkinsProvider extends Construct implements IJenkinsProvider {
abstract readonly providerName: string;
abstract readonly serverUrl: string;
readonly version: string;
protected constructor(scope: Construct, id: string, version?: string);
/**
* @internal
*/
abstract _registerBuildProvider(): void;
/**
* @internal
*/
abstract _registerTestProvider(): void;
}
/**
* A class representing Jenkins providers.
*
* @see #import
*/
export declare class JenkinsProvider extends BaseJenkinsProvider {
/**
* Import a Jenkins provider registered either outside the CDK,
* or in a different CDK Stack.
*
* @param scope the parent Construct for the new provider
* @param id the identifier of the new provider Construct
* @param attrs the properties used to identify the existing provider
* @returns a new Construct representing a reference to an existing Jenkins provider
*/
static fromJenkinsProviderAttributes(scope: Construct, id: string, attrs: JenkinsProviderAttributes): IJenkinsProvider;
readonly providerName: string;
readonly serverUrl: string;
private buildIncluded;
private testIncluded;
constructor(scope: Construct, id: string, props: JenkinsProviderProps);
/**
* @internal
*/
_registerBuildProvider(): void;
/**
* @internal
*/
_registerTestProvider(): void;
private registerJenkinsCustomAction;
}
export declare const jenkinsArtifactsBounds: codepipeline.ActionArtifactBounds;

View File

@@ -0,0 +1 @@
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.jenkinsArtifactsBounds=exports.JenkinsProvider=exports.BaseJenkinsProvider=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var constructs_1=()=>{var tmp=require("constructs");return constructs_1=()=>tmp,tmp},codepipeline=()=>{var tmp=require("../../../aws-codepipeline");return codepipeline=()=>tmp,tmp};class BaseJenkinsProvider extends constructs_1().Construct{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_codepipeline_actions.BaseJenkinsProvider",version:"2.252.0"};version;constructor(scope,id,version){super(scope,id),this.version=version||"1"}}exports.BaseJenkinsProvider=BaseJenkinsProvider;class JenkinsProvider extends BaseJenkinsProvider{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_codepipeline_actions.JenkinsProvider",version:"2.252.0"};static fromJenkinsProviderAttributes(scope,id,attrs){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_codepipeline_actions_JenkinsProviderAttributes(attrs)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.fromJenkinsProviderAttributes),error}return new ImportedJenkinsProvider(scope,id,attrs)}providerName;serverUrl;buildIncluded=!1;testIncluded=!1;constructor(scope,id,props){super(scope,id,props.version);try{jsiiDeprecationWarnings().aws_cdk_lib_aws_codepipeline_actions_JenkinsProviderProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,JenkinsProvider),error}this.providerName=props.providerName,this.serverUrl=props.serverUrl,props.forBuild===!0&&this._registerBuildProvider(),props.forTest===!0&&this._registerTestProvider()}_registerBuildProvider(){this.buildIncluded||(this.buildIncluded=!0,this.registerJenkinsCustomAction("JenkinsBuildProviderResource",codepipeline().ActionCategory.BUILD))}_registerTestProvider(){this.testIncluded||(this.testIncluded=!0,this.registerJenkinsCustomAction("JenkinsTestProviderResource",codepipeline().ActionCategory.TEST))}registerJenkinsCustomAction(id,category){new(codepipeline()).CustomActionRegistration(this,id,{category,artifactBounds:exports.jenkinsArtifactsBounds,provider:this.providerName,version:this.version,entityUrl:appendToUrl(this.serverUrl,"job/{Config:ProjectName}"),executionUrl:appendToUrl(this.serverUrl,"job/{Config:ProjectName}/{ExternalExecutionId}"),actionProperties:[{name:"ProjectName",required:!0,key:!0,queryable:!0}]})}}exports.JenkinsProvider=JenkinsProvider;class ImportedJenkinsProvider extends BaseJenkinsProvider{providerName;serverUrl;constructor(scope,id,props){super(scope,id,props.version),this.providerName=props.providerName,this.serverUrl=props.serverUrl}_registerBuildProvider(){}_registerTestProvider(){}}function appendToUrl(baseUrl,path){return baseUrl.endsWith("/")?baseUrl+path:`${baseUrl}/${path}`}exports.jenkinsArtifactsBounds={minInputs:0,maxInputs:5,minOutputs:0,maxOutputs:5};