@@ -13,20 +13,32 @@ exports[`Assets Directory Snapshots > CDK assets > cdk/cdk/.prettierrc should ma
1313` ;
1414
1515exports [` Assets Directory Snapshots > CDK assets > cdk/cdk/README.md should match snapshot 1` ] = `
16- "# Welcome to your CDK TypeScript project
16+ "# AgentCore CDK Project
1717
18- This is a blank project for CDK development with TypeScript .
18+ This CDK project is managed by the AgentCore CLI. It deploys your agent infrastructure into AWS using the \` @aws/agentcore-cdk \` L3 constructs .
1919
20- The \` cdk.json\` file tells the CDK Toolkit how to execute your app.
20+ ## Structure
21+
22+ - \` bin/cdk.ts\` — Entry point. Reads project configuration from \` agentcore/\` and creates a stack per deployment target.
23+ - \` lib/cdk-stack.ts\` — Defines \` AgentCoreStack\` , which wraps the \` AgentCoreApplication\` L3 construct.
24+ - \` test/cdk.test.ts\` — Unit tests for stack synthesis.
2125
2226## Useful commands
2327
24- - \` npm run build\` compile typescript to js
25- - \` npm run watch \` watch for changes and compile
26- - \` npm run test \` perform the jest unit tests
28+ - \` npm run build\` compile TypeScript to JavaScript
29+ - \` npm run test \` run unit tests
30+ - \` npx cdk synth \` emit the synthesized CloudFormation template
2731- \` npx cdk deploy\` deploy this stack to your default AWS account/region
2832- \` npx cdk diff\` compare deployed stack with current state
29- - \` npx cdk synth\` emits the synthesized CloudFormation template
33+
34+ ## Usage
35+
36+ You typically don't need to interact with this directory directly. The AgentCore CLI handles synthesis and deployment:
37+
38+ \`\`\` bash
39+ agentcore deploy # synthesizes and deploys via CDK
40+ agentcore status # checks deployment status
41+ \`\`\`
3042"
3143` ;
3244
@@ -292,21 +304,25 @@ exports[`Assets Directory Snapshots > CDK assets > cdk/cdk/package.json should m
292304` ;
293305
294306exports [` Assets Directory Snapshots > CDK assets > cdk/cdk/test/cdk.test.ts should match snapshot 1` ] = `
295- "// import * as cdk from 'aws-cdk-lib/core';
296- // import { Template } from 'aws-cdk-lib/assertions';
297- // import * as Cdk from '../lib/cdk-stack';
298-
299- // example test. To run these tests, uncomment this file along with the
300- // example resource in lib/cdk-stack.ts
301- test('SQS Queue Created', () => {
302- // const app = new cdk.App();
303- // // WHEN
304- // const stack = new Cdk.CdkStack(app, 'MyTestStack');
305- // // THEN
306- // const template = Template.fromStack(stack);
307- // template.hasResourceProperties('AWS::SQS::Queue', {
308- // VisibilityTimeout: 300
309- // });
307+ "import * as cdk from 'aws-cdk-lib';
308+ import { Template } from 'aws-cdk-lib/assertions';
309+ import { AgentCoreStack } from '../lib/cdk-stack';
310+
311+ test('AgentCoreStack synthesizes with empty spec', () => {
312+ const app = new cdk .App ();
313+ const stack = new AgentCoreStack (app , ' TestStack' , {
314+ spec: {
315+ name: ' testproject' ,
316+ version: 1 ,
317+ agents: [],
318+ memories: [],
319+ credentials: [],
320+ },
321+ });
322+ const template = Template .fromStack (stack );
323+ template .hasOutput (' StackNameOutput' , {
324+ Description: ' Name of the CloudFormation Stack' ,
325+ });
310326} );
311327"
312328` ;
@@ -324,14 +340,14 @@ exports[`Assets Directory Snapshots > CDK assets > cdk/cdk/tsconfig.json should
324340 " strictNullChecks" : true ,
325341 " noImplicitThis" : true ,
326342 " alwaysStrict" : true ,
327- " noUnusedLocals" : false ,
328- " noUnusedParameters" : false ,
343+ " noUnusedLocals" : true ,
344+ " noUnusedParameters" : true ,
329345 " noImplicitReturns" : true ,
330- " noFallthroughCasesInSwitch" : false ,
346+ " noFallthroughCasesInSwitch" : true ,
331347 " inlineSourceMap" : true ,
332348 " inlineSources" : true ,
333349 " experimentalDecorators" : true ,
334- " strictPropertyInitialization" : false ,
350+ " strictPropertyInitialization" : true ,
335351 " skipLibCheck" : true ,
336352 " typeRoots" : [" ./node_modules/@types" ],
337353 " rootDir" : " ." ,
@@ -2345,7 +2361,7 @@ packages = ["."]
23452361` ;
23462362
23472363exports [` Assets Directory Snapshots > Python framework assets > python/python/strands/base/README.md should match snapshot 1` ] = `
2348- "This is a project generated by the agentcore create basic CLI tool !
2364+ "This is a project generated by the AgentCore CLI!
23492365
23502366# Layout
23512367
0 commit comments