Repository navigation
Commit de54554
feat(project): vend a thin CDK app built on transformAgentCoreJson (#2249)
* feat(project): vend a thin CDK app built on transformAgentCoreJson
The CDK app `project create` writes into agentcore/cdk/ shrinks to two files. bin/cdk.ts
calls readAgentCoreProject, resolveTargetStacks and transformAgentCoreJson from
@aws/agentcore-cdk and instantiates one AgentCoreStack per target; lib/cdk-stack.ts
instantiates one AgentCoreApplication (construct id 'Application' unchanged) and is the
file a customer edits to add resources and grant runtimes or harnesses access to them.
Everything the old 181-line bin/cdk.ts did — reading the spec, every harness.json and
system-prompt.md, connector files and deployed-state.json, stack naming and tagging —
now lives in the library, so it changes with the library version rather than on
customers' disks. No `as any`: the types come from the pinned library. The unused
StackNameOutput output is dropped.
test/cdk.test.ts, jest.config.js, .prettierrc and npmignore.template are removed, and
jest, ts-jest, @types/jest and prettier leave the vended package.json with the test and
format scripts: the library's vitest suite and this repository's tests cover synthesis,
and a customer who wants tests in their CDK app adds them. The pin moves to
0.1.0-alpha.53, the first library release carrying transformAgentCoreJson;
dependencies["@aws/agentcore-cdk"] stays a plain exact version string for
scripts/sync-vended-cdk.ts.
The manager snapshot drops the four removed files. The observability and CDK-backend
comments that cited src/assets/cdk now point at the library helper and construct that own
the rule. pathLimit: a fresh install puts its deepest file 155 characters below the
project root (aws-cdk-lib's shipped fixtures, not jest), so the Windows limit is derived
from that measurement (104-character project root) instead of the old "about 100" guess.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KEWrUu52DmcWE3sx4VEhKL
* docs(project): describe extending the vended CDK stack
The project create entry in the command tree says what agentcore/cdk contains now, a new
"Extending the CDK app" subsection walks through lib/cdk-stack.ts, the accessors, grants,
environment variables and redeploying (noting that project status reports only the
resources agentcore.json declares), and the Windows path note carries the measured depth.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KEWrUu52DmcWE3sx4VEhKL
---------
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>1 parent bfaeeb9 commit de54554
14 files changed
Lines changed: 149 additions & 459 deletions
File tree
- src
- assets/cdk
- bin
- lib
- test
- core/project
- __snapshots__
- backends
- handlers/project/create
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
142 | 144 | | |
143 | 145 | | |
144 | 146 | | |
| |||
475 | 477 | | |
476 | 478 | | |
477 | 479 | | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
478 | 512 | | |
479 | 513 | | |
480 | 514 | | |
| |||
1100 | 1134 | | |
1101 | 1135 | | |
1102 | 1136 | | |
1103 | | - | |
1104 | | - | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
1105 | 1141 | | |
1106 | 1142 | | |
1107 | 1143 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
4 | 5 | | |
5 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
6 | 11 | | |
7 | | - | |
8 | | - | |
9 | | - | |
| 12 | + | |
10 | 13 | | |
11 | | - | |
| 14 | + | |
12 | 15 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
18 | 21 | | |
19 | | - | |
| 22 | + | |
20 | 23 | | |
21 | | - | |
| 24 | + | |
22 | 25 | | |
23 | | - | |
24 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
25 | 30 | | |
26 | | - | |
27 | | - | |
28 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
29 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
138 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
139 | 9 | | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
172 | 23 | | |
173 | 24 | | |
174 | | - | |
175 | 25 | | |
176 | | - | |
177 | | - | |
178 | | - | |
| 26 | + | |
179 | 27 | | |
180 | 28 | | |
181 | | - | |
| 29 | + | |
This file was deleted.
0 commit comments