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,4 @@
{
"description": "Template for a CDK Construct Library",
"aliases": "library"
}

View File

@@ -0,0 +1,8 @@
*.js
!jest.config.js
*.d.ts
node_modules
# CDK asset staging directory
.cdk.staging
cdk.out

View File

@@ -0,0 +1,6 @@
*.ts
!*.d.ts
# CDK asset staging directory
.cdk.staging
cdk.out

View File

@@ -0,0 +1,12 @@
# Welcome to your CDK TypeScript Construct Library project
You should explore the contents of this project. It demonstrates a CDK Construct Library that includes a construct (`%name.PascalCased%`)
which contains an Amazon SQS queue that is subscribed to an Amazon SNS topic.
The construct defines an interface (`%name.PascalCased%Props`) to configure the visibility timeout of the queue.
## Useful commands
* `%pm-cmd% build` compile typescript to js
* `%pm-cmd% watch` watch for changes and compile
* `%pm-cmd% test` perform the jest unit tests

View File

@@ -0,0 +1,9 @@
module.exports = {
testEnvironment: 'node',
roots: ['<rootDir>/test'],
testMatch: ['**/*.test.ts'],
transform: {
'^.+\\.tsx?$': 'ts-jest'
},
setupFilesAfterEnv: ['aws-cdk-lib/testhelpers/jest-autoclean'],
};

View File

@@ -0,0 +1,21 @@
// import * as cdk from 'aws-cdk-lib';
import { Construct } from 'constructs';
// import * as sqs from 'aws-cdk-lib/aws-sqs';
export interface %name.PascalCased%Props {
// Define construct properties here
}
export class %name.PascalCased% extends Construct {
constructor(scope: Construct, id: string, props: %name.PascalCased%Props = {}) {
super(scope, id);
// Define construct contents here
// example resource
// const queue = new sqs.Queue(this, '%name.PascalCased%Queue', {
// visibilityTimeout: cdk.Duration.seconds(300)
// });
}
}

View File

@@ -0,0 +1,24 @@
{
"name": "%name%",
"version": "0.1.0",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"scripts": {
"build": "tsc",
"watch": "tsc -w",
"test": "jest"
},
"devDependencies": {
"@types/jest": "^30",
"@types/node": "^20.19.24",
"aws-cdk-lib": "%cdk-version%",
"constructs": "%constructs-version%",
"jest": "^30",
"ts-jest": "^29",
"typescript": "~5.9.3"
},
"peerDependencies": {
"aws-cdk-lib": "%cdk-version%",
"constructs": "%constructs-version%"
}
}

View File

@@ -0,0 +1,18 @@
// import * as cdk from 'aws-cdk-lib/core';
// import { Template } from 'aws-cdk-lib/assertions';
// import * as %name.PascalCased% from '../lib/index';
// example test. To run these tests, uncomment this file along with the
// example resource in lib/index.ts
test('SQS Queue Created', () => {
// const app = new cdk.App();
// const stack = new cdk.Stack(app, "TestStack");
// // WHEN
// new %name.PascalCased%.%name.PascalCased%(stack, 'MyTestConstruct');
// // THEN
// const template = Template.fromStack(stack);
// template.hasResourceProperties('AWS::SQS::Queue', {
// VisibilityTimeout: 300
// });
});

View File

@@ -0,0 +1,32 @@
{
"compilerOptions": {
"target": "ES2022",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"lib": [
"es2022"
],
"declaration": true,
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
"noImplicitThis": true,
"alwaysStrict": true,
"noUnusedLocals": false,
"noUnusedParameters": false,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": false,
"inlineSourceMap": true,
"inlineSources": true,
"experimentalDecorators": true,
"strictPropertyInitialization": false,
"skipLibCheck": true,
"typeRoots": [
"./node_modules/@types"
]
},
"exclude": [
"node_modules",
"cdk.out"
]
}