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,5 @@
node_modules
# CDK asset staging directory
.cdk.staging
cdk.out

View File

@@ -0,0 +1,3 @@
# CDK asset staging directory
.cdk.staging
cdk.out

View File

@@ -0,0 +1,13 @@
# Welcome to your CDK JavaScript project
You should explore the contents of this project. It demonstrates a CDK app with an instance of a stack (`%name.PascalCased%Stack`)
which contains an Amazon SQS queue that is subscribed to an Amazon SNS topic.
The `cdk.json` file tells the CDK Toolkit how to execute your app. The build step is not required when using JavaScript.
## Useful commands
* `%pm-cmd% test` perform the jest unit tests
* `cdk deploy` deploy this stack to your default AWS account/region
* `cdk diff` compare deployed stack with current state
* `cdk synth` emits the synthesized CloudFormation template

View File

@@ -0,0 +1,6 @@
#!/usr/bin/env node
const cdk = require('aws-cdk-lib/core');
const { %name.PascalCased%Stack } = require('../lib/%name%-stack');
const app = new cdk.App();
new %name.PascalCased%Stack(app, '%stackname%');

View File

@@ -0,0 +1,15 @@
{
"app": "node bin/%name%.js",
"watch": {
"include": ["**"],
"exclude": [
"README.md",
"cdk*.json",
"jest.config.js",
"package*.json",
"yarn.lock",
"node_modules",
"test"
]
}
}

View File

@@ -0,0 +1,4 @@
module.exports = {
testEnvironment: 'node',
setupFilesAfterEnv: ['aws-cdk-lib/testhelpers/jest-autoclean'],
}

View File

@@ -0,0 +1,25 @@
const cdk = require('aws-cdk-lib/core');
const sns = require('aws-cdk-lib/aws-sns');
const subs = require('aws-cdk-lib/aws-sns-subscriptions');
const sqs = require('aws-cdk-lib/aws-sqs');
class %name.PascalCased%Stack extends cdk.Stack {
/**
* @param {cdk.App} scope
* @param {string} id
* @param {cdk.StackProps=} props
*/
constructor(scope, id, props) {
super(scope, id, props);
const queue = new sqs.Queue(this, '%name.PascalCased%Queue', {
visibilityTimeout: cdk.Duration.seconds(300)
});
const topic = new sns.Topic(this, '%name.PascalCased%Topic');
topic.addSubscription(new subs.SqsSubscription(queue));
}
}
module.exports = { %name.PascalCased%Stack }

View File

@@ -0,0 +1,17 @@
{
"name": "%name%",
"version": "0.1.0",
"scripts": {
"build": "echo \"The build step is not required when using JavaScript!\" && exit 0",
"cdk": "cdk",
"test": "jest"
},
"devDependencies": {
"aws-cdk": "%cdk-cli-version%",
"jest": "^30"
},
"dependencies": {
"aws-cdk-lib": "%cdk-version%",
"constructs": "%constructs-version%"
}
}

View File

@@ -0,0 +1,16 @@
const cdk = require('aws-cdk-lib/core');
const { Match, Template } = require('aws-cdk-lib/assertions');
const %name.PascalCased% = require('../lib/%name%-stack');
test('SQS Queue and SNS Topic Created', () => {
const app = new cdk.App();
// WHEN
const stack = new %name.PascalCased%.%name.PascalCased%Stack(app, 'MyTestStack');
// THEN
const template = Template.fromStack(stack);
template.hasResourceProperties('AWS::SQS::Queue', {
VisibilityTimeout: 300,
});
template.resourceCountIs('AWS::SNS::Topic', 1);
});

View File

@@ -0,0 +1,34 @@
{
"compilerOptions": {
"target": "ES2020",
"module": "commonjs",
"lib": [
"es2020"
],
"declaration": true,
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
"noImplicitThis": true,
"alwaysStrict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": false,
"inlineSourceMap": true,
"inlineSources": true,
"experimentalDecorators": true,
"strictPropertyInitialization": false,
"allowJs": true,
"checkJs": true,
"noEmit": true,
"skipLibCheck": true,
"typeRoots": [
"./node_modules/@types"
]
},
"exclude": [
"node_modules",
"cdk.out"
]
}