@kya-os/create-mcpi-app 1.9.33 → 1.9.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/.turbo/turbo-build.log +16 -12
  2. package/.turbo/turbo-test$colon$coverage.log +1829 -0
  3. package/.turbo/turbo-test.log +628 -0
  4. package/dist/bundles/blank.js +94964 -81677
  5. package/dist/bundles/ecommerce.js +94964 -81677
  6. package/dist/bundles/hardware-world.js +94979 -81692
  7. package/dist/bundles/manifest.json +14 -9
  8. package/dist/bundles/mix-station.js +112480 -0
  9. package/dist/cli-runner.d.ts.map +1 -1
  10. package/dist/cli-runner.js +23 -0
  11. package/dist/cli-runner.js.map +1 -1
  12. package/dist/helpers/fetch-cloudflare-mcpi-template.js +1 -1
  13. package/dist/helpers/generate-cloudflare-files.d.ts +1 -1
  14. package/dist/helpers/generate-cloudflare-files.d.ts.map +1 -1
  15. package/dist/helpers/generate-cloudflare-files.js +441 -7
  16. package/dist/helpers/generate-cloudflare-files.js.map +1 -1
  17. package/dist/helpers/generate-openapi-project.d.ts +36 -0
  18. package/dist/helpers/generate-openapi-project.d.ts.map +1 -0
  19. package/dist/helpers/generate-openapi-project.js +114 -0
  20. package/dist/helpers/generate-openapi-project.js.map +1 -0
  21. package/dist/helpers/generate-openapi-tools.d.ts +43 -0
  22. package/dist/helpers/generate-openapi-tools.d.ts.map +1 -0
  23. package/dist/helpers/generate-openapi-tools.js +550 -0
  24. package/dist/helpers/generate-openapi-tools.js.map +1 -0
  25. package/dist/helpers/generate-runtime-config.d.ts +16 -0
  26. package/dist/helpers/generate-runtime-config.d.ts.map +1 -0
  27. package/dist/helpers/generate-runtime-config.js +49 -0
  28. package/dist/helpers/generate-runtime-config.js.map +1 -0
  29. package/dist/helpers/get-package-versions.js +3 -3
  30. package/dist/helpers/get-package-versions.js.map +1 -1
  31. package/dist/helpers/openapi-ingestion.d.ts +21 -0
  32. package/dist/helpers/openapi-ingestion.d.ts.map +1 -0
  33. package/dist/helpers/openapi-ingestion.js +433 -0
  34. package/dist/helpers/openapi-ingestion.js.map +1 -0
  35. package/dist/helpers/wrap/command.d.ts +12 -0
  36. package/dist/helpers/wrap/command.d.ts.map +1 -0
  37. package/dist/helpers/wrap/command.js +344 -0
  38. package/dist/helpers/wrap/command.js.map +1 -0
  39. package/dist/helpers/wrap/detect-server.d.ts +30 -0
  40. package/dist/helpers/wrap/detect-server.d.ts.map +1 -0
  41. package/dist/helpers/wrap/detect-server.js +207 -0
  42. package/dist/helpers/wrap/detect-server.js.map +1 -0
  43. package/dist/helpers/wrap/index.d.ts +13 -0
  44. package/dist/helpers/wrap/index.d.ts.map +1 -0
  45. package/dist/helpers/wrap/index.js +11 -0
  46. package/dist/helpers/wrap/index.js.map +1 -0
  47. package/dist/helpers/wrap/templates.d.ts +24 -0
  48. package/dist/helpers/wrap/templates.d.ts.map +1 -0
  49. package/dist/helpers/wrap/templates.js +221 -0
  50. package/dist/helpers/wrap/templates.js.map +1 -0
  51. package/dist/types/openapi-generator.d.ts +142 -0
  52. package/dist/types/openapi-generator.d.ts.map +1 -0
  53. package/dist/types/openapi-generator.js +8 -0
  54. package/dist/types/openapi-generator.js.map +1 -0
  55. package/package.json +31 -9
@@ -0,0 +1,1829 @@
1
+
2
+ 
3
+ > @kya-os/create-mcpi-app@1.9.33 test:coverage /Users/dylanhobbs/@kya-os/xmcp-i/packages/create-mcpi-app
4
+ > vitest run --coverage
5
+
6
+ [?25l
7
+  RUN  v4.0.18 /Users/dylanhobbs/@kya-os/xmcp-i/packages/create-mcpi-app
8
+ Coverage enabled with v8
9
+
10
+ [?2026h
11
+  ❯ src/__tests__/helpers/identity-manager.test.ts [queued]
12
+
13
+  Test Files 0 passed (37)
14
+  Tests 0 passed (0)
15
+  Start at 13:15:03
16
+  Duration 312ms
17
+ [?2026l[?2026h
18
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts [queued]
19
+  ❯ src/__tests__/helpers/identity-manager.test.ts [queued]
20
+
21
+  Test Files 0 passed (37)
22
+  Tests 0 passed (0)
23
+  Start at 13:15:03
24
+  Duration 730ms
25
+ [?2026l[?2026h
26
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts [queued]
27
+  ❯ src/__tests__/helpers/generate-cloudflare-files.test.ts [queued]
28
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts [queued]
29
+  ❯ src/__tests__/helpers/generate-openapi-tools.test.ts [queued]
30
+  ❯ src/__tests__/helpers/identity-manager.test.ts [queued]
31
+  ❯ src/__tests__/helpers/install.test.ts [queued]
32
+  ❯ test-cloudflare/tests/do-routing.test.ts [queued]
33
+
34
+  Test Files 0 passed (37)
35
+  Tests 0 passed (0)
36
+  Start at 13:15:03
37
+  Duration 830ms
38
+ [?2026l[?2026h
39
+  ❯ src/__tests__/helpers/create.test.ts [queued]
40
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts [queued]
41
+  ❯ src/__tests__/helpers/fetch-mcpi-template.test.ts [queued]
42
+  ❯ src/__tests__/helpers/generate-cloudflare-files.test.ts [queued]
43
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts [queued]
44
+  ❯ src/__tests__/helpers/generate-openapi-tools.test.ts [queued]
45
+  ❯ src/__tests__/helpers/get-package-versions.test.ts [queued]
46
+  ❯ src/__tests__/helpers/identity-manager.test.ts [queued]
47
+  ❯ src/__tests__/helpers/install.test.ts [queued]
48
+  ❯ src/__tests__/utils/is-folder-empty.test.ts [queued]
49
+  ❯ test-cloudflare/tests/do-routing.test.ts [queued]
50
+
51
+  Test Files 0 passed (37)
52
+  Tests 0 passed (0)
53
+  Start at 13:15:03
54
+  Duration 968ms
55
+ [?2026l[?2026h
56
+  ❯ src/__tests__/cli-runner.test.ts [queued]
57
+  ❯ src/__tests__/helpers/create.test.ts [queued]
58
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts [queued]
59
+  ❯ src/__tests__/helpers/fetch-mcpi-template.test.ts [queued]
60
+  ❯ src/__tests__/helpers/fetch-xmcp-template.test.ts [queued]
61
+  ❯ src/__tests__/helpers/generate-cloudflare-files.test.ts [queued]
62
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts [queued]
63
+  ❯ src/__tests__/helpers/generate-openapi-tools.test.ts [queued]
64
+  ❯ src/__tests__/helpers/get-package-versions.test.ts [queued]
65
+  ❯ src/__tests__/helpers/identity-manager.test.ts [queued]
66
+  ❯ src/__tests__/helpers/install.test.ts [queued]
67
+  ❯ src/__tests__/helpers/openapi-ingestion.test.ts [queued]
68
+  ❯ src/__tests__/scaffolder-envprefix.test.ts [queued]
69
+  ❯ src/__tests__/utils/is-folder-empty.test.ts [queued]
70
+  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
71
+
72
+  Test Files 0 passed (37)
73
+  Tests 0 passed (14)
74
+  Start at 13:15:03
75
+  Duration 1.10s
76
+ [?2026l[?2026h
77
+  ❯ src/__tests__/cli-runner.test.ts [queued]
78
+  ❯ src/__tests__/helpers/create.test.ts [queued]
79
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts [queued]
80
+  ❯ src/__tests__/helpers/fetch-mcpi-template.test.ts [queued]
81
+  ❯ src/__tests__/helpers/fetch-xmcp-template.test.ts [queued]
82
+  ❯ src/__tests__/helpers/generate-cloudflare-files.test.ts [queued]
83
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts [queued]
84
+  ❯ src/__tests__/helpers/generate-openapi-tools.test.ts [queued]
85
+  ❯ src/__tests__/helpers/get-package-versions.test.ts 0/6
86
+  ❯ src/__tests__/helpers/identity-manager.test.ts [queued]
87
+  ❯ src/__tests__/helpers/install.test.ts 0/21
88
+  ❯ src/__tests__/helpers/openapi-ingestion.test.ts [queued]
89
+  ❯ src/__tests__/scaffolder-envprefix.test.ts [queued]
90
+  ❯ src/__tests__/utils/is-folder-empty.test.ts [queued]
91
+  ❯ test-cloudflare/tests/do-routing.test.ts 10/14
92
+
93
+  Test Files 0 passed (37)
94
+  Tests 10 passed (41)
95
+  Start at 13:15:03
96
+  Duration 1.32s
97
+ [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with npm
98
+ 
99
+ 📦 Installing dependencies with npm...
100
+ ✓ Lockfile created (package-lock.json) - remember to commit it
101
+
102
+ stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with yarn
103
+ 
104
+ 📦 Installing dependencies with yarn...
105
+ ✓ Lockfile created (yarn.lock) - remember to commit it
106
+
107
+ stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with pnpm
108
+ 
109
+ 📦 Installing dependencies with pnpm...
110
+ ✓ Lockfile created (pnpm-lock.yaml) - remember to commit it
111
+
112
+ stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should use correct working directory
113
+ 
114
+ 📦 Installing dependencies with npm...
115
+ ✓ Lockfile created (package-lock.json) - remember to commit it
116
+
117
+
118
+  ❯ src/__tests__/cli-runner.test.ts 0/4
119
+  ❯ src/__tests__/helpers/create.test.ts [queued]
120
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 9/25
121
+  ❯ src/__tests__/helpers/fetch-mcpi-template.test.ts 16/16
122
+  ❯ src/__tests__/helpers/fetch-xmcp-template.test.ts 0/3
123
+  ❯ src/__tests__/helpers/generate-cloudflare-files.test.ts 26/26
124
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts [queued]
125
+  ❯ src/__tests__/helpers/generate-openapi-tools.test.ts [queued]
126
+  ❯ src/__tests__/helpers/get-package-versions.test.ts 6/6
127
+  ❯ src/__tests__/helpers/identity-manager.test.ts 16/16
128
+  ❯ src/__tests__/helpers/install.test.ts 21/21
129
+  ❯ src/__tests__/helpers/openapi-ingestion.test.ts [queued]
130
+  ❯ src/__tests__/scaffolder-envprefix.test.ts 2/4
131
+  ❯ src/__tests__/utils/is-folder-empty.test.ts 21/21
132
+  ❯ test-cloudflare/tests/do-routing.test.ts 14/14
133
+
134
+  Test Files 7 passed (37)
135
+  Tests 130 passed | 1 skipped (156)
136
+  Start at 13:15:03
137
+  Duration 1.55s
138
+ [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Install progress reporting > should report correct package manager in log
139
+ ⚠️ Warning: No lockfile generated (pnpm-lock.yaml)
140
+
141
+
142
+  ❯ src/__tests__/cli-runner.test.ts 0/4
143
+  ❯ src/__tests__/helpers/create.test.ts [queued]
144
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 9/25
145
+  ❯ src/__tests__/helpers/fetch-mcpi-template.test.ts 16/16
146
+  ❯ src/__tests__/helpers/fetch-xmcp-template.test.ts 0/3
147
+  ❯ src/__tests__/helpers/generate-cloudflare-files.test.ts 26/26
148
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts [queued]
149
+  ❯ src/__tests__/helpers/generate-openapi-tools.test.ts [queued]
150
+  ❯ src/__tests__/helpers/get-package-versions.test.ts 6/6
151
+  ❯ src/__tests__/helpers/identity-manager.test.ts 16/16
152
+  ❯ src/__tests__/helpers/install.test.ts 21/21
153
+  ❯ src/__tests__/helpers/openapi-ingestion.test.ts [queued]
154
+  ❯ src/__tests__/scaffolder-envprefix.test.ts 2/4
155
+  ❯ src/__tests__/utils/is-folder-empty.test.ts 21/21
156
+  ❯ test-cloudflare/tests/do-routing.test.ts 14/14
157
+
158
+  Test Files 7 passed (37)
159
+  Tests 130 passed | 1 skipped (156)
160
+  Start at 13:15:03
161
+  Duration 1.55s
162
+ [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Install progress reporting > should check for lockfile after installation
163
+ 
164
+ 📦 Installing dependencies with npm...
165
+ ✓ Lockfile created (package-lock.json) - remember to commit it
166
+
167
+ stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should throw error when installation fails
168
+ 
169
+ 📦 Installing dependencies with npm...
170
+
171
+
172
+  ❯ src/__tests__/cli-runner.test.ts 0/4
173
+  ❯ src/__tests__/helpers/create.test.ts [queued]
174
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 9/25
175
+  ❯ src/__tests__/helpers/fetch-mcpi-template.test.ts 16/16
176
+  ❯ src/__tests__/helpers/fetch-xmcp-template.test.ts 0/3
177
+  ❯ src/__tests__/helpers/generate-cloudflare-files.test.ts 26/26
178
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts [queued]
179
+  ❯ src/__tests__/helpers/generate-openapi-tools.test.ts [queued]
180
+  ❯ src/__tests__/helpers/get-package-versions.test.ts 6/6
181
+  ❯ src/__tests__/helpers/identity-manager.test.ts 16/16
182
+  ❯ src/__tests__/helpers/install.test.ts 21/21
183
+  ❯ src/__tests__/helpers/openapi-ingestion.test.ts [queued]
184
+  ❯ src/__tests__/scaffolder-envprefix.test.ts 2/4
185
+  ❯ src/__tests__/utils/is-folder-empty.test.ts 21/21
186
+  ❯ test-cloudflare/tests/do-routing.test.ts 14/14
187
+
188
+  Test Files 7 passed (37)
189
+  Tests 130 passed | 1 skipped (156)
190
+  Start at 13:15:03
191
+  Duration 1.55s
192
+ [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Error handling > should throw error when installation fails
193
+ Failed to install dependencies with npm.
194
+
195
+
196
+  ❯ src/__tests__/cli-runner.test.ts 0/4
197
+  ❯ src/__tests__/helpers/create.test.ts [queued]
198
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 9/25
199
+  ❯ src/__tests__/helpers/fetch-mcpi-template.test.ts 16/16
200
+  ❯ src/__tests__/helpers/fetch-xmcp-template.test.ts 0/3
201
+  ❯ src/__tests__/helpers/generate-cloudflare-files.test.ts 26/26
202
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts [queued]
203
+  ❯ src/__tests__/helpers/generate-openapi-tools.test.ts [queued]
204
+  ❯ src/__tests__/helpers/get-package-versions.test.ts 6/6
205
+  ❯ src/__tests__/helpers/identity-manager.test.ts 16/16
206
+  ❯ src/__tests__/helpers/install.test.ts 21/21
207
+  ❯ src/__tests__/helpers/openapi-ingestion.test.ts [queued]
208
+  ❯ src/__tests__/scaffolder-envprefix.test.ts 2/4
209
+  ❯ src/__tests__/utils/is-folder-empty.test.ts 21/21
210
+  ❯ test-cloudflare/tests/do-routing.test.ts 14/14
211
+
212
+  Test Files 7 passed (37)
213
+  Tests 130 passed | 1 skipped (156)
214
+  Start at 13:15:03
215
+  Duration 1.55s
216
+ [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle network errors during installation
217
+ 
218
+ 📦 Installing dependencies with npm...
219
+
220
+
221
+  ❯ src/__tests__/cli-runner.test.ts 0/4
222
+  ❯ src/__tests__/helpers/create.test.ts [queued]
223
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 9/25
224
+  ❯ src/__tests__/helpers/fetch-mcpi-template.test.ts 16/16
225
+  ❯ src/__tests__/helpers/fetch-xmcp-template.test.ts 0/3
226
+  ❯ src/__tests__/helpers/generate-cloudflare-files.test.ts 26/26
227
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts [queued]
228
+  ❯ src/__tests__/helpers/generate-openapi-tools.test.ts [queued]
229
+  ❯ src/__tests__/helpers/get-package-versions.test.ts 6/6
230
+  ❯ src/__tests__/helpers/identity-manager.test.ts 16/16
231
+  ❯ src/__tests__/helpers/install.test.ts 21/21
232
+  ❯ src/__tests__/helpers/openapi-ingestion.test.ts [queued]
233
+  ❯ src/__tests__/scaffolder-envprefix.test.ts 2/4
234
+  ❯ src/__tests__/utils/is-folder-empty.test.ts 21/21
235
+  ❯ test-cloudflare/tests/do-routing.test.ts 14/14
236
+
237
+  Test Files 7 passed (37)
238
+  Tests 130 passed | 1 skipped (156)
239
+  Start at 13:15:03
240
+  Duration 1.55s
241
+ [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle network errors during installation
242
+ Failed to install dependencies with npm.
243
+
244
+
245
+  ❯ src/__tests__/cli-runner.test.ts 0/4
246
+  ❯ src/__tests__/helpers/create.test.ts [queued]
247
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 9/25
248
+  ❯ src/__tests__/helpers/fetch-mcpi-template.test.ts 16/16
249
+  ❯ src/__tests__/helpers/fetch-xmcp-template.test.ts 0/3
250
+  ❯ src/__tests__/helpers/generate-cloudflare-files.test.ts 26/26
251
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts [queued]
252
+  ❯ src/__tests__/helpers/generate-openapi-tools.test.ts [queued]
253
+  ❯ src/__tests__/helpers/get-package-versions.test.ts 6/6
254
+  ❯ src/__tests__/helpers/identity-manager.test.ts 16/16
255
+  ❯ src/__tests__/helpers/install.test.ts 21/21
256
+  ❯ src/__tests__/helpers/openapi-ingestion.test.ts [queued]
257
+  ❯ src/__tests__/scaffolder-envprefix.test.ts 2/4
258
+  ❯ src/__tests__/utils/is-folder-empty.test.ts 21/21
259
+  ❯ test-cloudflare/tests/do-routing.test.ts 14/14
260
+
261
+  Test Files 7 passed (37)
262
+  Tests 130 passed | 1 skipped (156)
263
+  Start at 13:15:03
264
+  Duration 1.55s
265
+ [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle permission errors during installation
266
+ 
267
+ 📦 Installing dependencies with npm...
268
+
269
+
270
+  ❯ src/__tests__/cli-runner.test.ts 0/4
271
+  ❯ src/__tests__/helpers/create.test.ts [queued]
272
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 9/25
273
+  ❯ src/__tests__/helpers/fetch-mcpi-template.test.ts 16/16
274
+  ❯ src/__tests__/helpers/fetch-xmcp-template.test.ts 0/3
275
+  ❯ src/__tests__/helpers/generate-cloudflare-files.test.ts 26/26
276
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts [queued]
277
+  ❯ src/__tests__/helpers/generate-openapi-tools.test.ts [queued]
278
+  ❯ src/__tests__/helpers/get-package-versions.test.ts 6/6
279
+  ❯ src/__tests__/helpers/identity-manager.test.ts 16/16
280
+  ❯ src/__tests__/helpers/install.test.ts 21/21
281
+  ❯ src/__tests__/helpers/openapi-ingestion.test.ts [queued]
282
+  ❯ src/__tests__/scaffolder-envprefix.test.ts 2/4
283
+  ❯ src/__tests__/utils/is-folder-empty.test.ts 21/21
284
+  ❯ test-cloudflare/tests/do-routing.test.ts 14/14
285
+
286
+  Test Files 7 passed (37)
287
+  Tests 130 passed | 1 skipped (156)
288
+  Start at 13:15:03
289
+  Duration 1.55s
290
+ [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle permission errors during installation
291
+ Failed to install dependencies with npm.
292
+
293
+
294
+  ❯ src/__tests__/cli-runner.test.ts 0/4
295
+  ❯ src/__tests__/helpers/create.test.ts [queued]
296
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 9/25
297
+  ❯ src/__tests__/helpers/fetch-mcpi-template.test.ts 16/16
298
+  ❯ src/__tests__/helpers/fetch-xmcp-template.test.ts 0/3
299
+  ❯ src/__tests__/helpers/generate-cloudflare-files.test.ts 26/26
300
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts [queued]
301
+  ❯ src/__tests__/helpers/generate-openapi-tools.test.ts [queued]
302
+  ❯ src/__tests__/helpers/get-package-versions.test.ts 6/6
303
+  ❯ src/__tests__/helpers/identity-manager.test.ts 16/16
304
+  ❯ src/__tests__/helpers/install.test.ts 21/21
305
+  ❯ src/__tests__/helpers/openapi-ingestion.test.ts [queued]
306
+  ❯ src/__tests__/scaffolder-envprefix.test.ts 2/4
307
+  ❯ src/__tests__/utils/is-folder-empty.test.ts 21/21
308
+  ❯ test-cloudflare/tests/do-routing.test.ts 14/14
309
+
310
+  Test Files 7 passed (37)
311
+  Tests 130 passed | 1 skipped (156)
312
+  Start at 13:15:03
313
+  Duration 1.55s
314
+ [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Error handling > should log error message when installation fails
315
+ 
316
+ 📦 Installing dependencies with npm...
317
+
318
+ stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle invalid package manager gracefully
319
+ 
320
+ 📦 Installing dependencies with unknown...
321
+
322
+
323
+  ❯ src/__tests__/cli-runner.test.ts 0/4
324
+  ❯ src/__tests__/helpers/create.test.ts [queued]
325
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 9/25
326
+  ❯ src/__tests__/helpers/fetch-mcpi-template.test.ts 16/16
327
+  ❯ src/__tests__/helpers/fetch-xmcp-template.test.ts 0/3
328
+  ❯ src/__tests__/helpers/generate-cloudflare-files.test.ts 26/26
329
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts [queued]
330
+  ❯ src/__tests__/helpers/generate-openapi-tools.test.ts [queued]
331
+  ❯ src/__tests__/helpers/get-package-versions.test.ts 6/6
332
+  ❯ src/__tests__/helpers/identity-manager.test.ts 16/16
333
+  ❯ src/__tests__/helpers/install.test.ts 21/21
334
+  ❯ src/__tests__/helpers/openapi-ingestion.test.ts [queued]
335
+  ❯ src/__tests__/scaffolder-envprefix.test.ts 2/4
336
+  ❯ src/__tests__/utils/is-folder-empty.test.ts 21/21
337
+  ❯ test-cloudflare/tests/do-routing.test.ts 14/14
338
+
339
+  Test Files 7 passed (37)
340
+  Tests 130 passed | 1 skipped (156)
341
+  Start at 13:15:03
342
+  Duration 1.55s
343
+ [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle invalid package manager gracefully
344
+ ⚠️ Warning: Unknown package manager "unknown", cannot check lockfile
345
+
346
+
347
+  ❯ src/__tests__/cli-runner.test.ts 0/4
348
+  ❯ src/__tests__/helpers/create.test.ts [queued]
349
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 9/25
350
+  ❯ src/__tests__/helpers/fetch-mcpi-template.test.ts 16/16
351
+  ❯ src/__tests__/helpers/fetch-xmcp-template.test.ts 0/3
352
+  ❯ src/__tests__/helpers/generate-cloudflare-files.test.ts 26/26
353
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts [queued]
354
+  ❯ src/__tests__/helpers/generate-openapi-tools.test.ts [queued]
355
+  ❯ src/__tests__/helpers/get-package-versions.test.ts 6/6
356
+  ❯ src/__tests__/helpers/identity-manager.test.ts 16/16
357
+  ❯ src/__tests__/helpers/install.test.ts 21/21
358
+  ❯ src/__tests__/helpers/openapi-ingestion.test.ts [queued]
359
+  ❯ src/__tests__/scaffolder-envprefix.test.ts 2/4
360
+  ❯ src/__tests__/utils/is-folder-empty.test.ts 21/21
361
+  ❯ test-cloudflare/tests/do-routing.test.ts 14/14
362
+
363
+  Test Files 7 passed (37)
364
+  Tests 130 passed | 1 skipped (156)
365
+  Start at 13:15:03
366
+  Duration 1.55s
367
+ [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Lockfile validation > should warn when lockfile not created
368
+ 
369
+ 📦 Installing dependencies with npm...
370
+
371
+ stdout | src/__tests__/helpers/install.test.ts > install > Lockfile validation > should warn when package manager lockfile cannot be determined
372
+ 
373
+ 📦 Installing dependencies with custom...
374
+
375
+ ✓ src/__tests__/helpers/get-package-versions.test.ts (6 tests) 100ms
376
+ ✓ src/__tests__/helpers/identity-manager.test.ts (16 tests) 21ms
377
+ ✓ src/__tests__/helpers/install.test.ts (21 tests) 25ms
378
+ ✓ test-cloudflare/tests/do-routing.test.ts (14 tests) 292ms
379
+
380
+  ❯ src/__tests__/cli-runner.test.ts 0/4
381
+  ❯ src/__tests__/helpers/create.test.ts [queued]
382
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 9/25
383
+  ❯ src/__tests__/helpers/fetch-mcpi-template.test.ts 16/16
384
+  ❯ src/__tests__/helpers/fetch-xmcp-template.test.ts 0/3
385
+  ❯ src/__tests__/helpers/generate-cloudflare-files.test.ts 26/26
386
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts [queued]
387
+  ❯ src/__tests__/helpers/generate-openapi-tools.test.ts [queued]
388
+  ❯ src/__tests__/helpers/get-package-versions.test.ts 6/6
389
+  ❯ src/__tests__/helpers/identity-manager.test.ts 16/16
390
+  ❯ src/__tests__/helpers/install.test.ts 21/21
391
+  ❯ src/__tests__/helpers/openapi-ingestion.test.ts [queued]
392
+  ❯ src/__tests__/scaffolder-envprefix.test.ts 2/4
393
+  ❯ src/__tests__/utils/is-folder-empty.test.ts 21/21
394
+  ❯ test-cloudflare/tests/do-routing.test.ts 14/14
395
+
396
+  Test Files 7 passed (37)
397
+  Tests 130 passed | 1 skipped (156)
398
+  Start at 13:15:03
399
+  Duration 1.55s
400
+ [?2026l[?2026h(node:78468) ExperimentalWarning: The Ed25519 Web Crypto API algorithm is an experimental feature and might change at any time
401
+ (Use `node --trace-warnings ...` to show where the warning was created)
402
+
403
+  ❯ src/__tests__/cli-runner.test.ts 0/4
404
+  ❯ src/__tests__/helpers/create.test.ts [queued]
405
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 9/25
406
+  ❯ src/__tests__/helpers/fetch-mcpi-template.test.ts 16/16
407
+  ❯ src/__tests__/helpers/fetch-xmcp-template.test.ts 0/3
408
+  ❯ src/__tests__/helpers/generate-cloudflare-files.test.ts 26/26
409
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts [queued]
410
+  ❯ src/__tests__/helpers/generate-openapi-tools.test.ts [queued]
411
+  ❯ src/__tests__/helpers/get-package-versions.test.ts 6/6
412
+  ❯ src/__tests__/helpers/identity-manager.test.ts 16/16
413
+  ❯ src/__tests__/helpers/install.test.ts 21/21
414
+  ❯ src/__tests__/helpers/openapi-ingestion.test.ts [queued]
415
+  ❯ src/__tests__/scaffolder-envprefix.test.ts 2/4
416
+  ❯ src/__tests__/utils/is-folder-empty.test.ts 21/21
417
+  ❯ test-cloudflare/tests/do-routing.test.ts 14/14
418
+
419
+  Test Files 7 passed (37)
420
+  Tests 130 passed | 1 skipped (156)
421
+  Start at 13:15:03
422
+  Duration 1.55s
423
+ [?2026l[?2026hstdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include envPrefix in generated index.ts
424
+ 
425
+ 🏗️ Generating Cloudflare MCP-I project: test-agent...
426
+
427
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include envPrefix in generated index.ts
428
+ 🔑 Generating cryptographic identity...
429
+
430
+
431
+  ❯ src/__tests__/cli-runner.test.ts 0/4
432
+  ❯ src/__tests__/helpers/create.test.ts [queued]
433
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 9/25
434
+  ❯ src/__tests__/helpers/fetch-mcpi-template.test.ts 16/16
435
+  ❯ src/__tests__/helpers/fetch-xmcp-template.test.ts 0/3
436
+  ❯ src/__tests__/helpers/generate-cloudflare-files.test.ts 26/26
437
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts [queued]
438
+  ❯ src/__tests__/helpers/generate-openapi-tools.test.ts [queued]
439
+  ❯ src/__tests__/helpers/get-package-versions.test.ts 6/6
440
+  ❯ src/__tests__/helpers/identity-manager.test.ts 16/16
441
+  ❯ src/__tests__/helpers/install.test.ts 21/21
442
+  ❯ src/__tests__/helpers/openapi-ingestion.test.ts [queued]
443
+  ❯ src/__tests__/scaffolder-envprefix.test.ts 2/4
444
+  ❯ src/__tests__/utils/is-folder-empty.test.ts 21/21
445
+  ❯ test-cloudflare/tests/do-routing.test.ts 14/14
446
+
447
+  Test Files 7 passed (37)
448
+  Tests 130 passed | 1 skipped (156)
449
+  Start at 13:15:03
450
+  Duration 1.55s
451
+ [?2026l[?2026h(node:78484) ExperimentalWarning: The Ed25519 Web Crypto API algorithm is an experimental feature and might change at any time
452
+ (Use `node --trace-warnings ...` to show where the warning was created)
453
+
454
+  ❯ src/__tests__/cli-runner.test.ts 0/4
455
+  ❯ src/__tests__/helpers/create.test.ts [queued]
456
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 9/25
457
+  ❯ src/__tests__/helpers/fetch-mcpi-template.test.ts 16/16
458
+  ❯ src/__tests__/helpers/fetch-xmcp-template.test.ts 0/3
459
+  ❯ src/__tests__/helpers/generate-cloudflare-files.test.ts 26/26
460
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts [queued]
461
+  ❯ src/__tests__/helpers/generate-openapi-tools.test.ts [queued]
462
+  ❯ src/__tests__/helpers/get-package-versions.test.ts 6/6
463
+  ❯ src/__tests__/helpers/identity-manager.test.ts 16/16
464
+  ❯ src/__tests__/helpers/install.test.ts 21/21
465
+  ❯ src/__tests__/helpers/openapi-ingestion.test.ts [queued]
466
+  ❯ src/__tests__/scaffolder-envprefix.test.ts 2/4
467
+  ❯ src/__tests__/utils/is-folder-empty.test.ts 21/21
468
+  ❯ test-cloudflare/tests/do-routing.test.ts 14/14
469
+
470
+  Test Files 7 passed (37)
471
+  Tests 130 passed | 1 skipped (156)
472
+  Start at 13:15:03
473
+  Duration 1.55s
474
+ [?2026l[?2026h ✓ src/__tests__/utils/is-folder-empty.test.ts (21 tests) 13ms
475
+
476
+  ❯ src/__tests__/cli-runner.test.ts 0/4
477
+  ❯ src/__tests__/helpers/create.test.ts [queued]
478
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 9/25
479
+  ❯ src/__tests__/helpers/fetch-mcpi-template.test.ts 16/16
480
+  ❯ src/__tests__/helpers/fetch-xmcp-template.test.ts 0/3
481
+  ❯ src/__tests__/helpers/generate-cloudflare-files.test.ts 26/26
482
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts [queued]
483
+  ❯ src/__tests__/helpers/generate-openapi-tools.test.ts [queued]
484
+  ❯ src/__tests__/helpers/get-package-versions.test.ts 6/6
485
+  ❯ src/__tests__/helpers/identity-manager.test.ts 16/16
486
+  ❯ src/__tests__/helpers/install.test.ts 21/21
487
+  ❯ src/__tests__/helpers/openapi-ingestion.test.ts [queued]
488
+  ❯ src/__tests__/scaffolder-envprefix.test.ts 2/4
489
+  ❯ src/__tests__/utils/is-folder-empty.test.ts 21/21
490
+  ❯ test-cloudflare/tests/do-routing.test.ts 14/14
491
+
492
+  Test Files 7 passed (37)
493
+  Tests 130 passed | 1 skipped (156)
494
+  Start at 13:15:03
495
+  Duration 1.55s
496
+ [?2026l[?2026h(node:78460) ExperimentalWarning: The Ed25519 Web Crypto API algorithm is an experimental feature and might change at any time
497
+ (Use `node --trace-warnings ...` to show where the warning was created)
498
+
499
+  ❯ src/__tests__/cli-runner.test.ts 0/4
500
+  ❯ src/__tests__/helpers/create.test.ts [queued]
501
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 9/25
502
+  ❯ src/__tests__/helpers/fetch-mcpi-template.test.ts 16/16
503
+  ❯ src/__tests__/helpers/fetch-xmcp-template.test.ts 0/3
504
+  ❯ src/__tests__/helpers/generate-cloudflare-files.test.ts 26/26
505
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts [queued]
506
+  ❯ src/__tests__/helpers/generate-openapi-tools.test.ts [queued]
507
+  ❯ src/__tests__/helpers/get-package-versions.test.ts 6/6
508
+  ❯ src/__tests__/helpers/identity-manager.test.ts 16/16
509
+  ❯ src/__tests__/helpers/install.test.ts 21/21
510
+  ❯ src/__tests__/helpers/openapi-ingestion.test.ts [queued]
511
+  ❯ src/__tests__/scaffolder-envprefix.test.ts 2/4
512
+  ❯ src/__tests__/utils/is-folder-empty.test.ts 21/21
513
+  ❯ test-cloudflare/tests/do-routing.test.ts 14/14
514
+
515
+  Test Files 7 passed (37)
516
+  Tests 130 passed | 1 skipped (156)
517
+  Start at 13:15:03
518
+  Duration 1.55s
519
+ [?2026l[?2026hstdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include envPrefix in generated index.ts
520
+ ✔ Created Cloudflare MCP-I template files
521
+ - Generated identity keys in .dev.vars
522
+ - Configured wrangler.toml with unified KV namespace (auto-provisioned)
523
+ - Created modular tool structure
524
+
525
+ ============================================================
526
+ 🎉 Cloudflare MCP-I project created successfully!
527
+ ============================================================
528
+
529
+ 📝 Important Configuration Notes:
530
+
531
+ 1. ADMIN_API_KEY (in .dev.vars):
532
+ - Set to same value as AGENTSHIELD_API_KEY for convenience
533
+ - You can change it if you need separate admin endpoint security
534
+ - Required for admin endpoints like /admin/clear-cache
535
+
536
+ 2. KV Namespace (auto-provisioned by Wrangler v4):
537
+ - Single unified namespace for all MCP-I storage
538
+ - ✨ Automatically created on first deploy - no setup needed!
539
+ - Wrangler updates wrangler.toml with namespace ID
540
+
541
+ 🚀 Next Steps:
542
+ cd test-agent
543
+ wrangler login # Login to Cloudflare first!
544
+ npm run dev # Start local development
545
+ npm run deploy # Deploy (KV auto-created!)
546
+
547
+
548
+ ✓ src/__tests__/helpers/generate-cloudflare-files.test.ts (26 tests | 1 skipped) 23ms
549
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should use correct prefix format (uppercase with underscores)
550
+ 
551
+ 🏗️ Generating Cloudflare MCP-I project: my-awesome-agent...
552
+
553
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should use correct prefix format (uppercase with underscores)
554
+ 🔑 Generating cryptographic identity...
555
+
556
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should use correct prefix format (uppercase with underscores)
557
+ ✔ Created Cloudflare MCP-I template files
558
+ - Generated identity keys in .dev.vars
559
+ - Configured wrangler.toml with unified KV namespace (auto-provisioned)
560
+ - Created modular tool structure
561
+
562
+ ============================================================
563
+ 🎉 Cloudflare MCP-I project created successfully!
564
+ ============================================================
565
+
566
+ 📝 Important Configuration Notes:
567
+
568
+ 1. ADMIN_API_KEY (in .dev.vars):
569
+ - Set to same value as AGENTSHIELD_API_KEY for convenience
570
+ - You can change it if you need separate admin endpoint security
571
+ - Required for admin endpoints like /admin/clear-cache
572
+
573
+ 2. KV Namespace (auto-provisioned by Wrangler v4):
574
+ - Single unified namespace for all MCP-I storage
575
+ - ✨ Automatically created on first deploy - no setup needed!
576
+ - Wrangler updates wrangler.toml with namespace ID
577
+
578
+ 🚀 Next Steps:
579
+ cd my-awesome-agent
580
+ wrangler login # Login to Cloudflare first!
581
+ npm run dev # Start local development
582
+ npm run deploy # Deploy (KV auto-created!)
583
+
584
+
585
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include comment explaining envPrefix purpose
586
+ 
587
+ 🏗️ Generating Cloudflare MCP-I project: test-agent...
588
+
589
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include comment explaining envPrefix purpose
590
+ 🔑 Generating cryptographic identity...
591
+
592
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include comment explaining envPrefix purpose
593
+ ✔ Created Cloudflare MCP-I template files
594
+ - Generated identity keys in .dev.vars
595
+ - Configured wrangler.toml with unified KV namespace (auto-provisioned)
596
+ - Created modular tool structure
597
+
598
+ ============================================================
599
+ 🎉 Cloudflare MCP-I project created successfully!
600
+ ============================================================
601
+
602
+ 📝 Important Configuration Notes:
603
+
604
+ 1. ADMIN_API_KEY (in .dev.vars):
605
+ - Set to same value as AGENTSHIELD_API_KEY for convenience
606
+ - You can change it if you need separate admin endpoint security
607
+ - Required for admin endpoints like /admin/clear-cache
608
+
609
+ 2. KV Namespace (auto-provisioned by Wrangler v4):
610
+ - Single unified namespace for all MCP-I storage
611
+ - ✨ Automatically created on first deploy - no setup needed!
612
+ - Wrangler updates wrangler.toml with namespace ID
613
+
614
+ 🚀 Next Steps:
615
+ cd test-agent
616
+ wrangler login # Login to Cloudflare first!
617
+ npm run dev # Start local development
618
+ npm run deploy # Deploy (KV auto-created!)
619
+
620
+
621
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should match envPrefix with KV binding names in wrangler.toml
622
+ 
623
+ 🏗️ Generating Cloudflare MCP-I project: test-agent...
624
+
625
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should match envPrefix with KV binding names in wrangler.toml
626
+ 🔑 Generating cryptographic identity...
627
+
628
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should match envPrefix with KV binding names in wrangler.toml
629
+ ✔ Created Cloudflare MCP-I template files
630
+ - Generated identity keys in .dev.vars
631
+ - Configured wrangler.toml with unified KV namespace (auto-provisioned)
632
+ - Created modular tool structure
633
+
634
+ ============================================================
635
+ 🎉 Cloudflare MCP-I project created successfully!
636
+ ============================================================
637
+
638
+ 📝 Important Configuration Notes:
639
+
640
+ 1. ADMIN_API_KEY (in .dev.vars):
641
+ - Set to same value as AGENTSHIELD_API_KEY for convenience
642
+ - You can change it if you need separate admin endpoint security
643
+ - Required for admin endpoints like /admin/clear-cache
644
+
645
+ 2. KV Namespace (auto-provisioned by Wrangler v4):
646
+ - Single unified namespace for all MCP-I storage
647
+ - ✨ Automatically created on first deploy - no setup needed!
648
+ - Wrangler updates wrangler.toml with namespace ID
649
+
650
+ 🚀 Next Steps:
651
+ cd test-agent
652
+ wrangler login # Login to Cloudflare first!
653
+ npm run dev # Start local development
654
+ npm run deploy # Deploy (KV auto-created!)
655
+
656
+
657
+
658
+  ❯ src/__tests__/cli-runner.test.ts 0/4
659
+  ❯ src/__tests__/helpers/create.test.ts [queued]
660
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 9/25
661
+  ❯ src/__tests__/helpers/fetch-mcpi-template.test.ts 16/16
662
+  ❯ src/__tests__/helpers/fetch-xmcp-template.test.ts 0/3
663
+  ❯ src/__tests__/helpers/generate-cloudflare-files.test.ts 26/26
664
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts [queued]
665
+  ❯ src/__tests__/helpers/generate-openapi-tools.test.ts [queued]
666
+  ❯ src/__tests__/helpers/get-package-versions.test.ts 6/6
667
+  ❯ src/__tests__/helpers/identity-manager.test.ts 16/16
668
+  ❯ src/__tests__/helpers/install.test.ts 21/21
669
+  ❯ src/__tests__/helpers/openapi-ingestion.test.ts [queued]
670
+  ❯ src/__tests__/scaffolder-envprefix.test.ts 2/4
671
+  ❯ src/__tests__/utils/is-folder-empty.test.ts 21/21
672
+  ❯ test-cloudflare/tests/do-routing.test.ts 14/14
673
+
674
+  Test Files 7 passed (37)
675
+  Tests 130 passed | 1 skipped (156)
676
+  Start at 13:15:03
677
+  Duration 1.55s
678
+ [?2026l[?2026hstderr | src/__tests__/helpers/fetch-xmcp-template.test.ts > fetchXMCPTemplate > falls back to default when next channel is unavailable
679
+ ⚠️ dist-tag 'next' not available for xmcp, falling back to ^0.3.1
680
+
681
+
682
+  ❯ src/__tests__/cli-runner.test.ts 0/4
683
+  ❯ src/__tests__/helpers/create.test.ts [queued]
684
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 9/25
685
+  ❯ src/__tests__/helpers/fetch-mcpi-template.test.ts 16/16
686
+  ❯ src/__tests__/helpers/fetch-xmcp-template.test.ts 0/3
687
+  ❯ src/__tests__/helpers/generate-cloudflare-files.test.ts 26/26
688
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts [queued]
689
+  ❯ src/__tests__/helpers/generate-openapi-tools.test.ts [queued]
690
+  ❯ src/__tests__/helpers/get-package-versions.test.ts 6/6
691
+  ❯ src/__tests__/helpers/identity-manager.test.ts 16/16
692
+  ❯ src/__tests__/helpers/install.test.ts 21/21
693
+  ❯ src/__tests__/helpers/openapi-ingestion.test.ts [queued]
694
+  ❯ src/__tests__/scaffolder-envprefix.test.ts 2/4
695
+  ❯ src/__tests__/utils/is-folder-empty.test.ts 21/21
696
+  ❯ test-cloudflare/tests/do-routing.test.ts 14/14
697
+
698
+  Test Files 7 passed (37)
699
+  Tests 130 passed | 1 skipped (156)
700
+  Start at 13:15:03
701
+  Duration 1.55s
702
+ [?2026l[?2026h ✓ src/__tests__/helpers/fetch-mcpi-template.test.ts (16 tests) 54ms
703
+
704
+  ❯ src/__tests__/cli-runner.test.ts 0/4
705
+  ❯ src/__tests__/helpers/create.test.ts [queued]
706
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 9/25
707
+  ❯ src/__tests__/helpers/fetch-mcpi-template.test.ts 16/16
708
+  ❯ src/__tests__/helpers/fetch-xmcp-template.test.ts 0/3
709
+  ❯ src/__tests__/helpers/generate-cloudflare-files.test.ts 26/26
710
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts [queued]
711
+  ❯ src/__tests__/helpers/generate-openapi-tools.test.ts [queued]
712
+  ❯ src/__tests__/helpers/get-package-versions.test.ts 6/6
713
+  ❯ src/__tests__/helpers/identity-manager.test.ts 16/16
714
+  ❯ src/__tests__/helpers/install.test.ts 21/21
715
+  ❯ src/__tests__/helpers/openapi-ingestion.test.ts [queued]
716
+  ❯ src/__tests__/scaffolder-envprefix.test.ts 2/4
717
+  ❯ src/__tests__/utils/is-folder-empty.test.ts 21/21
718
+  ❯ test-cloudflare/tests/do-routing.test.ts 14/14
719
+
720
+  Test Files 7 passed (37)
721
+  Tests 130 passed | 1 skipped (156)
722
+  Start at 13:15:03
723
+  Duration 1.55s
724
+ [?2026l[?2026h ✓ src/__tests__/scaffolder-envprefix.test.ts (4 tests) 175ms
725
+ ✓ src/__tests__/helpers/fetch-xmcp-template.test.ts (3 tests) 24ms
726
+
727
+  ❯ src/__tests__/cli-runner.test.ts 0/4
728
+  ❯ src/__tests__/cloudflare-template.test.ts [queued]
729
+  ❯ src/__tests__/helpers/create.test.ts 0/13
730
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 16/25
731
+  ❯ src/__tests__/helpers/fetch-mcpi-template.test.ts 16/16
732
+  ❯ src/__tests__/helpers/fetch-xmcp-template.test.ts 3/3
733
+  ❯ src/__tests__/helpers/generate-cloudflare-files.test.ts 26/26
734
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts 0/25
735
+  ❯ src/__tests__/helpers/generate-openapi-tools.test.ts 0/45
736
+  ❯ src/__tests__/helpers/identity-manager.test.ts 16/16
737
+  ❯ src/__tests__/helpers/install.test.ts 21/21
738
+  ❯ src/__tests__/helpers/openapi-ingestion.test.ts 0/65
739
+  ❯ src/__tests__/scaffolder-envprefix.test.ts 4/4
740
+  ❯ src/__tests__/utils/is-folder-empty.test.ts 21/21
741
+  ❯ test-cloudflare/tests/do-routing.test.ts 14/14
742
+
743
+  Test Files 9 passed (37)
744
+  Tests 142 passed | 1 skipped (304)
745
+  Start at 13:15:03
746
+  Duration 1.80s
747
+ [?2026l[?2026h ✓ src/__tests__/helpers/create.test.ts (13 tests) 51ms
748
+ ✓ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts (25 tests) 446ms
749
+
750
+  ❯ src/__tests__/cli-runner.test.ts 0/4
751
+  ❯ src/__tests__/cloudflare-template.test.ts [queued]
752
+  ❯ src/__tests__/e2e/scaffolder-dependency-verification.test.ts [queued]
753
+  ❯ src/__tests__/helpers/apply-identity-preset.test.ts [queued]
754
+  ❯ src/__tests__/helpers/create.test.ts 13/13
755
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 25/25
756
+  ❯ src/__tests__/helpers/fetch-xmcp-template.test.ts 3/3
757
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts 0/25
758
+  ❯ src/__tests__/helpers/generate-openapi-tools.test.ts 8/45
759
+  ❯ src/__tests__/helpers/openapi-ingestion.test.ts 34/65
760
+  ❯ src/__tests__/helpers/rename.test.ts [queued]
761
+  ❯ src/__tests__/index.test.ts [queued]
762
+  ❯ src/__tests__/scaffolder-envprefix.test.ts 4/4
763
+  ❯ test-cloudflare/tests/cache-invalidation.test.ts [queued]
764
+  ❯ test-cloudflare/tests/session-management.test.ts [queued]
765
+
766
+  Test Files 11 passed (37)
767
+  Tests 206 passed | 1 skipped (304)
768
+  Start at 13:15:03
769
+  Duration 1.90s
770
+ [?2026l[?2026h ✓ test-cloudflare/tests/cache-invalidation.test.ts (18 tests) 5ms
771
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > passes CLI flags to createProject when using --yes
772
+ 
773
+ create-mcpi-app@1.9.33
774
+
775
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > passes CLI flags to createProject when using --yes
776
+ BANNER
777
+
778
+ Enhanced with identity features by MCP-I
779
+
780
+
781
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > passes CLI flags to createProject when using --yes
782
+ 
783
+ Next Steps:
784
+ 1. Install dependencies:
785
+ cd my-agent
786
+ npm install
787
+
788
+ 2. Start development server:
789
+ npm run dev
790
+
791
+ 3. Deploy when ready:
792
+ npm run start
793
+
794
+
795
+  ❯ src/__tests__/cli-runner.test.ts 1/4
796
+  ❯ src/__tests__/cloudflare-template.test.ts 0/30
797
+  ❯ src/__tests__/e2e/scaffolder-dependency-verification.test.ts [queued]
798
+  ❯ src/__tests__/helpers/apply-identity-preset.test.ts 0/16
799
+  ❯ src/__tests__/helpers/create.test.ts 13/13
800
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 25/25
801
+  ❯ src/__tests__/helpers/fetch-xmcp-template.test.ts 3/3
802
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts 0/25
803
+  ❯ src/__tests__/helpers/generate-openapi-tools.test.ts 24/45
804
+  ❯ src/__tests__/helpers/openapi-ingestion.test.ts 35/65
805
+  ❯ src/__tests__/helpers/rename.test.ts [queued]
806
+  ❯ src/__tests__/index.test.ts 0/4
807
+  ❯ src/__tests__/scaffolder-envprefix.test.ts 4/4
808
+  ❯ test-cloudflare/tests/cache-invalidation.test.ts 18/18
809
+  ❯ test-cloudflare/tests/session-management.test.ts 0/17
810
+
811
+  Test Files 12 passed (37)
812
+  Tests 242 passed | 1 skipped (389)
813
+  Start at 13:15:03
814
+  Duration 2.02s
815
+ [?2026l[?2026h(node:78800) ExperimentalWarning: The Ed25519 Web Crypto API algorithm is an experimental feature and might change at any time
816
+ (Use `node --trace-warnings ...` to show where the warning was created)
817
+
818
+  ❯ src/__tests__/cli-runner.test.ts 1/4
819
+  ❯ src/__tests__/cloudflare-template.test.ts 0/30
820
+  ❯ src/__tests__/e2e/scaffolder-dependency-verification.test.ts [queued]
821
+  ❯ src/__tests__/helpers/apply-identity-preset.test.ts 0/16
822
+  ❯ src/__tests__/helpers/create.test.ts 13/13
823
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 25/25
824
+  ❯ src/__tests__/helpers/fetch-xmcp-template.test.ts 3/3
825
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts 0/25
826
+  ❯ src/__tests__/helpers/generate-openapi-tools.test.ts 24/45
827
+  ❯ src/__tests__/helpers/openapi-ingestion.test.ts 35/65
828
+  ❯ src/__tests__/helpers/rename.test.ts [queued]
829
+  ❯ src/__tests__/index.test.ts 0/4
830
+  ❯ src/__tests__/scaffolder-envprefix.test.ts 4/4
831
+  ❯ test-cloudflare/tests/cache-invalidation.test.ts 18/18
832
+  ❯ test-cloudflare/tests/session-management.test.ts 0/17
833
+
834
+  Test Files 12 passed (37)
835
+  Tests 242 passed | 1 skipped (389)
836
+  Start at 13:15:03
837
+  Duration 2.02s
838
+ [?2026l[?2026hstdout | src/__tests__/cli-runner.test.ts > runCLI > exits when project name validation fails
839
+ 
840
+ create-mcpi-app@1.9.33
841
+
842
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > exits when project name validation fails
843
+ BANNER
844
+
845
+ Enhanced with identity features by MCP-I
846
+
847
+
848
+
849
+  ❯ src/__tests__/cli-runner.test.ts 1/4
850
+  ❯ src/__tests__/cloudflare-template.test.ts 0/30
851
+  ❯ src/__tests__/e2e/scaffolder-dependency-verification.test.ts [queued]
852
+  ❯ src/__tests__/helpers/apply-identity-preset.test.ts 0/16
853
+  ❯ src/__tests__/helpers/create.test.ts 13/13
854
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 25/25
855
+  ❯ src/__tests__/helpers/fetch-xmcp-template.test.ts 3/3
856
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts 0/25
857
+  ❯ src/__tests__/helpers/generate-openapi-tools.test.ts 24/45
858
+  ❯ src/__tests__/helpers/openapi-ingestion.test.ts 35/65
859
+  ❯ src/__tests__/helpers/rename.test.ts [queued]
860
+  ❯ src/__tests__/index.test.ts 0/4
861
+  ❯ src/__tests__/scaffolder-envprefix.test.ts 4/4
862
+  ❯ test-cloudflare/tests/cache-invalidation.test.ts 18/18
863
+  ❯ test-cloudflare/tests/session-management.test.ts 0/17
864
+
865
+  Test Files 12 passed (37)
866
+  Tests 242 passed | 1 skipped (389)
867
+  Start at 13:15:03
868
+  Duration 2.02s
869
+ [?2026l[?2026hstderr | src/__tests__/cli-runner.test.ts > runCLI > exits when project name validation fails
870
+ Invalid project name:
871
+ - bad
872
+
873
+
874
+  ❯ src/__tests__/cli-runner.test.ts 1/4
875
+  ❯ src/__tests__/cloudflare-template.test.ts 0/30
876
+  ❯ src/__tests__/e2e/scaffolder-dependency-verification.test.ts [queued]
877
+  ❯ src/__tests__/helpers/apply-identity-preset.test.ts 0/16
878
+  ❯ src/__tests__/helpers/create.test.ts 13/13
879
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 25/25
880
+  ❯ src/__tests__/helpers/fetch-xmcp-template.test.ts 3/3
881
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts 0/25
882
+  ❯ src/__tests__/helpers/generate-openapi-tools.test.ts 24/45
883
+  ❯ src/__tests__/helpers/openapi-ingestion.test.ts 35/65
884
+  ❯ src/__tests__/helpers/rename.test.ts [queued]
885
+  ❯ src/__tests__/index.test.ts 0/4
886
+  ❯ src/__tests__/scaffolder-envprefix.test.ts 4/4
887
+  ❯ test-cloudflare/tests/cache-invalidation.test.ts 18/18
888
+  ❯ test-cloudflare/tests/session-management.test.ts 0/17
889
+
890
+  Test Files 12 passed (37)
891
+  Tests 242 passed | 1 skipped (389)
892
+  Start at 13:15:03
893
+  Duration 2.02s
894
+ [?2026l[?2026hstdout | src/__tests__/cli-runner.test.ts > runCLI > honors package manager and version flags
895
+ 
896
+ create-mcpi-app@1.9.33
897
+
898
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > honors package manager and version flags
899
+ BANNER
900
+
901
+ Enhanced with identity features by MCP-I
902
+
903
+
904
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > honors package manager and version flags
905
+ 
906
+ Next Steps:
907
+ 1. Install dependencies:
908
+ cd pnpm-agent
909
+ pnpm install
910
+
911
+ 2. Initialize identity:
912
+ pnpm init
913
+
914
+ 3. Start development server:
915
+ pnpm dev
916
+
917
+ 4. Deploy when ready:
918
+ pnpm start
919
+
920
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > prompts for package manager and transports when --yes is not set
921
+ 
922
+ create-mcpi-app@1.9.33
923
+
924
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > prompts for package manager and transports when --yes is not set
925
+ BANNER
926
+
927
+ Enhanced with identity features by MCP-I
928
+
929
+
930
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > prompts for package manager and transports when --yes is not set
931
+ 
932
+ Creating a new xmcp app in /Users/dylanhobbs/@kya-os/xmcp-i/packages/create-mcpi-app/interactive-app.
933
+
934
+
935
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > prompts for package manager and transports when --yes is not set
936
+ 
937
+ Next Steps:
938
+ 1. Install dependencies:
939
+ cd interactive-app
940
+ pnpm install
941
+
942
+ 2. Start development server:
943
+ pnpm dev
944
+
945
+ 3. Deploy when ready:
946
+ pnpm start
947
+
948
+ stdout | test-cloudflare/tests/session-management.test.ts > Session Management > Session Security > should not expose session data in logs
949
+ [Session] Created session: secure-session
950
+
951
+
952
+  ❯ src/__tests__/cli-runner.test.ts 1/4
953
+  ❯ src/__tests__/cloudflare-template.test.ts 0/30
954
+  ❯ src/__tests__/e2e/scaffolder-dependency-verification.test.ts [queued]
955
+  ❯ src/__tests__/helpers/apply-identity-preset.test.ts 0/16
956
+  ❯ src/__tests__/helpers/create.test.ts 13/13
957
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 25/25
958
+  ❯ src/__tests__/helpers/fetch-xmcp-template.test.ts 3/3
959
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts 0/25
960
+  ❯ src/__tests__/helpers/generate-openapi-tools.test.ts 24/45
961
+  ❯ src/__tests__/helpers/openapi-ingestion.test.ts 35/65
962
+  ❯ src/__tests__/helpers/rename.test.ts [queued]
963
+  ❯ src/__tests__/index.test.ts 0/4
964
+  ❯ src/__tests__/scaffolder-envprefix.test.ts 4/4
965
+  ❯ test-cloudflare/tests/cache-invalidation.test.ts 18/18
966
+  ❯ test-cloudflare/tests/session-management.test.ts 0/17
967
+
968
+  Test Files 12 passed (37)
969
+  Tests 242 passed | 1 skipped (389)
970
+  Start at 13:15:03
971
+  Duration 2.02s
972
+ [?2026l[?2026h ✓ src/__tests__/cli-runner.test.ts (4 tests) 593ms
973
+ ✓ passes CLI flags to createProject when using --yes  584ms
974
+ ✓ test-cloudflare/tests/session-management.test.ts (17 tests) 68ms
975
+ ✓ src/__tests__/index.test.ts (4 tests) 79ms
976
+ ✓ src/__tests__/helpers/rename.test.ts (6 tests) 17ms
977
+ ✓ src/__tests__/helpers/openapi-ingestion.test.ts (65 tests) 356ms
978
+ stdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffolder Dependency Verification E2E > Cloudflare Template Dependencies > should scaffold with correct @kya-os/mcp-i-cloudflare version
979
+ 
980
+ 🏗️ Generating Cloudflare MCP-I project: test-project...
981
+
982
+ stdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffolder Dependency Verification E2E > Cloudflare Template Dependencies > should scaffold with correct @kya-os/mcp-i-cloudflare version
983
+ 🔑 Generating cryptographic identity...
984
+
985
+
986
+  ❯ src/__tests__/cli-runner.test.ts 4/4
987
+  ❯ src/__tests__/cloudflare-template.test.ts 4/30
988
+  ❯ src/__tests__/e2e/scaffolder-dependency-verification.test.ts 0/7
989
+  ❯ src/__tests__/helpers/apply-identity-preset.test.ts 2/16
990
+  ❯ src/__tests__/helpers/create.test.ts 13/13
991
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 25/25
992
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts 7/25
993
+  ❯ src/__tests__/helpers/generate-openapi-tools.test.ts 29/45
994
+  ❯ src/__tests__/helpers/kta-registration.test.ts 0/8
995
+  ❯ src/__tests__/helpers/openapi-ingestion.test.ts 65/65
996
+  ❯ src/__tests__/helpers/rename.test.ts 6/6
997
+  ❯ src/__tests__/index.test.ts 4/4
998
+  ❯ src/__tests__/wrangler-v4-compatibility.test.ts [queued]
999
+  ❯ test-cloudflare/tests/cache-invalidation.test.ts 18/18
1000
+  ❯ test-cloudflare/tests/session-management.test.ts 17/17
1001
+
1002
+  Test Files 17 passed (37)
1003
+  Tests 320 passed | 1 skipped (410)
1004
+  Start at 13:15:03
1005
+  Duration 2.44s
1006
+ [?2026l[?2026h(node:78842) ExperimentalWarning: The Ed25519 Web Crypto API algorithm is an experimental feature and might change at any time
1007
+ (Use `node --trace-warnings ...` to show where the warning was created)
1008
+
1009
+  ❯ src/__tests__/cli-runner.test.ts 4/4
1010
+  ❯ src/__tests__/cloudflare-template.test.ts 4/30
1011
+  ❯ src/__tests__/e2e/scaffolder-dependency-verification.test.ts 0/7
1012
+  ❯ src/__tests__/helpers/apply-identity-preset.test.ts 2/16
1013
+  ❯ src/__tests__/helpers/create.test.ts 13/13
1014
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 25/25
1015
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts 7/25
1016
+  ❯ src/__tests__/helpers/generate-openapi-tools.test.ts 29/45
1017
+  ❯ src/__tests__/helpers/kta-registration.test.ts 0/8
1018
+  ❯ src/__tests__/helpers/openapi-ingestion.test.ts 65/65
1019
+  ❯ src/__tests__/helpers/rename.test.ts 6/6
1020
+  ❯ src/__tests__/index.test.ts 4/4
1021
+  ❯ src/__tests__/wrangler-v4-compatibility.test.ts [queued]
1022
+  ❯ test-cloudflare/tests/cache-invalidation.test.ts 18/18
1023
+  ❯ test-cloudflare/tests/session-management.test.ts 17/17
1024
+
1025
+  Test Files 17 passed (37)
1026
+  Tests 320 passed | 1 skipped (410)
1027
+  Start at 13:15:03
1028
+  Duration 2.44s
1029
+ [?2026l[?2026hstdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffolder Dependency Verification E2E > Cloudflare Template Dependencies > should scaffold with correct @kya-os/mcp-i-cloudflare version
1030
+ ✔ Created Cloudflare MCP-I template files
1031
+ - Generated identity keys in .dev.vars
1032
+ - Configured wrangler.toml with unified KV namespace (auto-provisioned)
1033
+ - Created modular tool structure
1034
+
1035
+ ============================================================
1036
+ 🎉 Cloudflare MCP-I project created successfully!
1037
+ ============================================================
1038
+
1039
+ 📝 Important Configuration Notes:
1040
+
1041
+ 1. ADMIN_API_KEY (in .dev.vars):
1042
+ - Set to same value as AGENTSHIELD_API_KEY for convenience
1043
+ - You can change it if you need separate admin endpoint security
1044
+ - Required for admin endpoints like /admin/clear-cache
1045
+
1046
+ 2. KV Namespace (auto-provisioned by Wrangler v4):
1047
+ - Single unified namespace for all MCP-I storage
1048
+ - ✨ Automatically created on first deploy - no setup needed!
1049
+ - Wrangler updates wrangler.toml with namespace ID
1050
+
1051
+ 🚀 Next Steps:
1052
+ cd test-project
1053
+ wrangler login # Login to Cloudflare first!
1054
+ npm run dev # Start local development
1055
+ npm run deploy # Deploy (KV auto-created!)
1056
+
1057
+
1058
+
1059
+  ❯ src/__tests__/cli-runner.test.ts 4/4
1060
+  ❯ src/__tests__/cloudflare-template.test.ts 4/30
1061
+  ❯ src/__tests__/e2e/scaffolder-dependency-verification.test.ts 0/7
1062
+  ❯ src/__tests__/helpers/apply-identity-preset.test.ts 2/16
1063
+  ❯ src/__tests__/helpers/create.test.ts 13/13
1064
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 25/25
1065
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts 7/25
1066
+  ❯ src/__tests__/helpers/generate-openapi-tools.test.ts 29/45
1067
+  ❯ src/__tests__/helpers/kta-registration.test.ts 0/8
1068
+  ❯ src/__tests__/helpers/openapi-ingestion.test.ts 65/65
1069
+  ❯ src/__tests__/helpers/rename.test.ts 6/6
1070
+  ❯ src/__tests__/index.test.ts 4/4
1071
+  ❯ src/__tests__/wrangler-v4-compatibility.test.ts [queued]
1072
+  ❯ test-cloudflare/tests/cache-invalidation.test.ts 18/18
1073
+  ❯ test-cloudflare/tests/session-management.test.ts 17/17
1074
+
1075
+  Test Files 17 passed (37)
1076
+  Tests 320 passed | 1 skipped (410)
1077
+  Start at 13:15:03
1078
+  Duration 2.44s
1079
+ [?2026l[?2026h
1080
+  ❯ src/__tests__/cli-runner.test.ts 4/4
1081
+  ❯ src/__tests__/cloudflare-template.test.ts 5/30
1082
+  ❯ src/__tests__/e2e/scaffolder-dependency-verification.test.ts 0/7
1083
+  ❯ src/__tests__/helpers/apply-identity-preset.test.ts 4/16
1084
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 25/25
1085
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts 9/25
1086
+  ❯ src/__tests__/helpers/generate-openapi-tools.test.ts 32/45
1087
+  ❯ src/__tests__/helpers/kta-registration.test.ts 7/8
1088
+  ❯ src/__tests__/helpers/openapi-ingestion.test.ts 65/65
1089
+  ❯ src/__tests__/helpers/rename.test.ts 6/6
1090
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts [queued]
1091
+  ❯ src/__tests__/index.test.ts 4/4
1092
+  ❯ src/__tests__/wrangler-v4-compatibility.test.ts [queued]
1093
+  ❯ test-cloudflare/tests/cache-invalidation.test.ts 18/18
1094
+  ❯ test-cloudflare/tests/session-management.test.ts 17/17
1095
+
1096
+  Test Files 17 passed (37)
1097
+  Tests 335 passed | 1 skipped (410)
1098
+  Start at 13:15:03
1099
+  Duration 2.68s
1100
+ [?2026l[?2026h ✓ src/__tests__/helpers/kta-registration.test.ts (8 tests) 314ms
1101
+ stdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffolder Dependency Verification E2E > Cloudflare Template Dependencies > should include AGENTSHIELD_PROJECT_ID in wrangler.toml template
1102
+ 
1103
+ 🏗️ Generating Cloudflare MCP-I project: test-project-env...
1104
+
1105
+ stdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffolder Dependency Verification E2E > Cloudflare Template Dependencies > should include AGENTSHIELD_PROJECT_ID in wrangler.toml template
1106
+ 🔑 Generating cryptographic identity...
1107
+
1108
+
1109
+  ❯ src/__tests__/cli-runner.test.ts 4/4
1110
+  ❯ src/__tests__/cloudflare-template.test.ts 6/30
1111
+  ❯ src/__tests__/e2e/scaffolder-dependency-verification.test.ts 0/7
1112
+  ❯ src/__tests__/helpers/apply-identity-preset.test.ts 4/16
1113
+  ❯ src/__tests__/helpers/generate-config.test.ts [queued]
1114
+  ❯ src/__tests__/helpers/generate-identity.test.ts [queued]
1115
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts 9/25
1116
+  ❯ src/__tests__/helpers/generate-openapi-tools.test.ts 32/45
1117
+  ❯ src/__tests__/helpers/kta-registration.test.ts 8/8
1118
+  ❯ src/__tests__/helpers/openapi-ingestion.test.ts 65/65
1119
+  ❯ src/__tests__/helpers/rename.test.ts 6/6
1120
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts [queued]
1121
+  ❯ src/__tests__/index.test.ts 4/4
1122
+  ❯ src/__tests__/wrangler-v4-compatibility.test.ts 0/11
1123
+  ❯ test-cloudflare/tests/session-management.test.ts 17/17
1124
+
1125
+  Test Files 18 passed (37)
1126
+  Tests 337 passed | 1 skipped (421)
1127
+  Start at 13:15:03
1128
+  Duration 2.79s
1129
+ [?2026l[?2026h
1130
+  ❯ src/__tests__/cli-runner.test.ts 4/4
1131
+  ❯ src/__tests__/cloudflare-template.test.ts 9/30
1132
+  ❯ src/__tests__/e2e/scaffolder-dependency-verification.test.ts 1/7
1133
+  ❯ src/__tests__/helpers/apply-identity-preset.test.ts 6/16
1134
+  ❯ src/__tests__/helpers/generate-config.test.ts [queued]
1135
+  ❯ src/__tests__/helpers/generate-identity.test.ts [queued]
1136
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts 9/25
1137
+  ❯ src/__tests__/helpers/generate-openapi-tools.test.ts 33/45
1138
+  ❯ src/__tests__/helpers/kta-registration.test.ts 8/8
1139
+  ❯ src/__tests__/helpers/openapi-ingestion.test.ts 65/65
1140
+  ❯ src/__tests__/helpers/rename.test.ts 6/6
1141
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts [queued]
1142
+  ❯ src/__tests__/index.test.ts 4/4
1143
+  ❯ src/__tests__/wrangler-v4-compatibility.test.ts 0/11
1144
+  ❯ test-cloudflare/tests/session-management.test.ts 17/17
1145
+
1146
+  Test Files 18 passed (37)
1147
+  Tests 344 passed | 1 skipped (421)
1148
+  Start at 13:15:03
1149
+  Duration 3.10s
1150
+ [?2026l[?2026hstdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffolder Dependency Verification E2E > Cloudflare Template Dependencies > should include AGENTSHIELD_PROJECT_ID in wrangler.toml template
1151
+ ✔ Created Cloudflare MCP-I template files
1152
+ - Generated identity keys in .dev.vars
1153
+ - Configured wrangler.toml with unified KV namespace (auto-provisioned)
1154
+ - Created modular tool structure
1155
+
1156
+ ============================================================
1157
+ 🎉 Cloudflare MCP-I project created successfully!
1158
+ ============================================================
1159
+
1160
+ 📝 Important Configuration Notes:
1161
+
1162
+ 1. ADMIN_API_KEY (in .dev.vars):
1163
+ - Set to same value as AGENTSHIELD_API_KEY for convenience
1164
+ - You can change it if you need separate admin endpoint security
1165
+ - Required for admin endpoints like /admin/clear-cache
1166
+
1167
+ 2. KV Namespace (auto-provisioned by Wrangler v4):
1168
+ - Single unified namespace for all MCP-I storage
1169
+ - ✨ Automatically created on first deploy - no setup needed!
1170
+ - Wrangler updates wrangler.toml with namespace ID
1171
+
1172
+ 🚀 Next Steps:
1173
+ cd test-project-env
1174
+ wrangler login # Login to Cloudflare first!
1175
+ npm run dev # Start local development
1176
+ npm run deploy # Deploy (KV auto-created!)
1177
+
1178
+
1179
+
1180
+  ❯ src/__tests__/cloudflare-template.test.ts 9/30
1181
+  ❯ src/__tests__/e2e/scaffolder-dependency-verification.test.ts 1/7
1182
+  ❯ src/__tests__/helpers/apply-identity-preset.test.ts 6/16
1183
+  ❯ src/__tests__/helpers/generate-config.test.ts 0/25
1184
+  ❯ src/__tests__/helpers/generate-identity.test.ts [queued]
1185
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts 10/25
1186
+  ❯ src/__tests__/helpers/generate-openapi-tools.test.ts 33/45
1187
+  ❯ src/__tests__/helpers/kta-registration.test.ts 8/8
1188
+  ❯ src/__tests__/helpers/openapi-ingestion.test.ts 65/65
1189
+  ❯ src/__tests__/helpers/rename.test.ts 6/6
1190
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts [queued]
1191
+  ❯ src/__tests__/index.test.ts 4/4
1192
+  ❯ src/__tests__/wrangler-v4-compatibility.test.ts 0/11
1193
+  ❯ test-cloudflare/tests/session-management.test.ts 17/17
1194
+
1195
+  Test Files 18 passed (37)
1196
+  Tests 345 passed | 1 skipped (446)
1197
+  Start at 13:15:03
1198
+  Duration 3.20s
1199
+ [?2026l[?2026hstdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffolder Dependency Verification E2E > Cloudflare Template Dependencies > should set AGENTSHIELD_PROJECT_ID when --project is provided
1200
+ 
1201
+ 🏗️ Generating Cloudflare MCP-I project: test-project-with-id...
1202
+
1203
+ stdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffolder Dependency Verification E2E > Cloudflare Template Dependencies > should set AGENTSHIELD_PROJECT_ID when --project is provided
1204
+ 🔑 Generating cryptographic identity...
1205
+
1206
+
1207
+  ❯ src/__tests__/cloudflare-template.test.ts 9/30
1208
+  ❯ src/__tests__/e2e/scaffolder-dependency-verification.test.ts 2/7
1209
+  ❯ src/__tests__/helpers/apply-identity-preset.test.ts 7/16
1210
+  ❯ src/__tests__/helpers/generate-config.test.ts 0/25
1211
+  ❯ src/__tests__/helpers/generate-identity.test.ts 0/24
1212
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts 11/25
1213
+  ❯ src/__tests__/helpers/generate-openapi-tools.test.ts 34/45
1214
+  ❯ src/__tests__/helpers/kta-registration.test.ts 8/8
1215
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts [queued]
1216
+  ❯ src/__tests__/wrangler-v4-compatibility.test.ts 0/11
1217
+
1218
+  Test Files 18 passed (37)
1219
+  Tests 349 passed | 1 skipped (470)
1220
+  Start at 13:15:03
1221
+  Duration 3.47s
1222
+ [?2026l[?2026h(node:78862) ExperimentalWarning: The Ed25519 Web Crypto API algorithm is an experimental feature and might change at any time
1223
+ (Use `node --trace-warnings ...` to show where the warning was created)
1224
+
1225
+  ❯ src/__tests__/cloudflare-template.test.ts 10/30
1226
+  ❯ src/__tests__/e2e/scaffolder-dependency-verification.test.ts 2/7
1227
+  ❯ src/__tests__/helpers/apply-identity-preset.test.ts 7/16
1228
+  ❯ src/__tests__/helpers/generate-config.test.ts 1/25
1229
+  ❯ src/__tests__/helpers/generate-identity.test.ts 1/24
1230
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts 11/25
1231
+  ❯ src/__tests__/helpers/generate-openapi-tools.test.ts 34/45
1232
+  ❯ src/__tests__/helpers/kta-registration.test.ts 8/8
1233
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts [queued]
1234
+  ❯ src/__tests__/wrangler-v4-compatibility.test.ts 1/11
1235
+
1236
+  Test Files 18 passed (37)
1237
+  Tests 353 passed | 1 skipped (470)
1238
+  Start at 13:15:03
1239
+  Duration 3.68s
1240
+ [?2026l[?2026hstdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffolder Dependency Verification E2E > Cloudflare Template Dependencies > should set AGENTSHIELD_PROJECT_ID when --project is provided
1241
+ ✔ Created Cloudflare MCP-I template files
1242
+ - Generated identity keys in .dev.vars
1243
+ - Configured wrangler.toml with unified KV namespace (auto-provisioned)
1244
+ - Created modular tool structure
1245
+
1246
+ ============================================================
1247
+ 🎉 Cloudflare MCP-I project created successfully!
1248
+ ============================================================
1249
+
1250
+ 📝 Important Configuration Notes:
1251
+
1252
+ 1. ADMIN_API_KEY (in .dev.vars):
1253
+ - Set to same value as AGENTSHIELD_API_KEY for convenience
1254
+ - You can change it if you need separate admin endpoint security
1255
+ - Required for admin endpoints like /admin/clear-cache
1256
+
1257
+ 2. KV Namespace (auto-provisioned by Wrangler v4):
1258
+ - Single unified namespace for all MCP-I storage
1259
+ - ✨ Automatically created on first deploy - no setup needed!
1260
+ - Wrangler updates wrangler.toml with namespace ID
1261
+
1262
+ 🚀 Next Steps:
1263
+ cd test-project-with-id
1264
+ wrangler login # Login to Cloudflare first!
1265
+ npm run dev # Start local development
1266
+ npm run deploy # Deploy (KV auto-created!)
1267
+
1268
+
1269
+
1270
+  ❯ src/__tests__/cloudflare-template.test.ts 10/30
1271
+  ❯ src/__tests__/e2e/scaffolder-dependency-verification.test.ts 2/7
1272
+  ❯ src/__tests__/helpers/apply-identity-preset.test.ts 7/16
1273
+  ❯ src/__tests__/helpers/generate-config.test.ts 1/25
1274
+  ❯ src/__tests__/helpers/generate-identity.test.ts 1/24
1275
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts 11/25
1276
+  ❯ src/__tests__/helpers/generate-openapi-tools.test.ts 34/45
1277
+  ❯ src/__tests__/helpers/kta-registration.test.ts 8/8
1278
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts [queued]
1279
+  ❯ src/__tests__/wrangler-v4-compatibility.test.ts 1/11
1280
+
1281
+  Test Files 18 passed (37)
1282
+  Tests 353 passed | 1 skipped (470)
1283
+  Start at 13:15:03
1284
+  Duration 3.68s
1285
+ [?2026l[?2026hstdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffolder Dependency Verification E2E > Cloudflare Template Dependencies > should comment out AGENTSHIELD_PROJECT_ID when --project is NOT provided
1286
+ 
1287
+ 🏗️ Generating Cloudflare MCP-I project: test-project-no-id...
1288
+
1289
+ stdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffolder Dependency Verification E2E > Cloudflare Template Dependencies > should comment out AGENTSHIELD_PROJECT_ID when --project is NOT provided
1290
+ 🔑 Generating cryptographic identity...
1291
+
1292
+ stdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffolder Dependency Verification E2E > Cloudflare Template Dependencies > should comment out AGENTSHIELD_PROJECT_ID when --project is NOT provided
1293
+ ✔ Created Cloudflare MCP-I template files
1294
+ - Generated identity keys in .dev.vars
1295
+ - Configured wrangler.toml with unified KV namespace (auto-provisioned)
1296
+ - Created modular tool structure
1297
+
1298
+ ============================================================
1299
+ 🎉 Cloudflare MCP-I project created successfully!
1300
+ ============================================================
1301
+
1302
+ 📝 Important Configuration Notes:
1303
+
1304
+ 1. ADMIN_API_KEY (in .dev.vars):
1305
+ - Set to same value as AGENTSHIELD_API_KEY for convenience
1306
+ - You can change it if you need separate admin endpoint security
1307
+ - Required for admin endpoints like /admin/clear-cache
1308
+
1309
+ 2. KV Namespace (auto-provisioned by Wrangler v4):
1310
+ - Single unified namespace for all MCP-I storage
1311
+ - ✨ Automatically created on first deploy - no setup needed!
1312
+ - Wrangler updates wrangler.toml with namespace ID
1313
+
1314
+ 🚀 Next Steps:
1315
+ cd test-project-no-id
1316
+ wrangler login # Login to Cloudflare first!
1317
+ npm run dev # Start local development
1318
+ npm run deploy # Deploy (KV auto-created!)
1319
+
1320
+
1321
+ stdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffolder Dependency Verification E2E > Runtime Config Includes projectId > should pass AGENTSHIELD_PROJECT_ID to runtime config
1322
+ 
1323
+ 🏗️ Generating Cloudflare MCP-I project: test-project-runtime...
1324
+
1325
+
1326
+  ❯ src/__tests__/cloudflare-template.test.ts 10/30
1327
+  ❯ src/__tests__/e2e/scaffolder-dependency-verification.test.ts 4/7
1328
+  ❯ src/__tests__/helpers/apply-identity-preset.test.ts 9/16
1329
+  ❯ src/__tests__/helpers/generate-config.test.ts 4/25
1330
+  ❯ src/__tests__/helpers/generate-identity.test.ts 4/24
1331
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts 13/25
1332
+  ❯ src/__tests__/helpers/generate-openapi-tools.test.ts 37/45
1333
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts [queued]
1334
+  ❯ src/__tests__/wrangler-v4-compatibility.test.ts 1/11
1335
+
1336
+  Test Files 18 passed (37)
1337
+  Tests 368 passed | 1 skipped (470)
1338
+  Start at 13:15:03
1339
+  Duration 3.96s
1340
+ [?2026l[?2026hstdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffolder Dependency Verification E2E > Runtime Config Includes projectId > should pass AGENTSHIELD_PROJECT_ID to runtime config
1341
+ 🔑 Generating cryptographic identity...
1342
+
1343
+
1344
+  ❯ src/__tests__/cloudflare-template.test.ts 11/30
1345
+  ❯ src/__tests__/e2e/scaffolder-dependency-verification.test.ts 4/7
1346
+  ❯ src/__tests__/helpers/apply-identity-preset.test.ts 9/16
1347
+  ❯ src/__tests__/helpers/copy-template.test.ts [queued]
1348
+  ❯ src/__tests__/helpers/generate-config.test.ts 5/25
1349
+  ❯ src/__tests__/helpers/generate-identity.test.ts 8/24
1350
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts 13/25
1351
+  ❯ src/__tests__/helpers/generate-openapi-tools.test.ts 39/45
1352
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts [queued]
1353
+  ❯ src/__tests__/wrangler-v4-compatibility.test.ts 3/11
1354
+  ❯ src/helpers/__tests__/generate-cloudflare-files.spec.ts [queued]
1355
+
1356
+  Test Files 18 passed (37)
1357
+  Tests 378 passed | 1 skipped (470)
1358
+  Start at 13:15:03
1359
+  Duration 4.17s
1360
+ [?2026l[?2026h
1361
+  ❯ src/__tests__/cloudflare-template.test.ts 12/30
1362
+  ❯ src/__tests__/e2e/scaffolder-dependency-verification.test.ts 4/7
1363
+  ❯ src/__tests__/helpers/apply-identity-preset.test.ts 9/16
1364
+  ❯ src/__tests__/helpers/copy-template.test.ts [queued]
1365
+  ❯ src/__tests__/helpers/generate-config.test.ts 7/25
1366
+  ❯ src/__tests__/helpers/generate-identity.test.ts 9/24
1367
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts 13/25
1368
+  ❯ src/__tests__/helpers/generate-openapi-tools.test.ts 43/45
1369
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts 0/23
1370
+  ❯ src/__tests__/wrangler-v4-compatibility.test.ts 3/11
1371
+  ❯ src/helpers/__tests__/generate-cloudflare-files.spec.ts [queued]
1372
+  ❯ src/utils/__tests__/fetch-remote-config.test.ts [queued]
1373
+
1374
+  Test Files 18 passed (37)
1375
+  Tests 386 passed | 1 skipped (493)
1376
+  Start at 13:15:03
1377
+  Duration 4.27s
1378
+ [?2026l[?2026hstdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffolder Dependency Verification E2E > Runtime Config Includes projectId > should pass AGENTSHIELD_PROJECT_ID to runtime config
1379
+ ✔ Created Cloudflare MCP-I template files
1380
+ - Generated identity keys in .dev.vars
1381
+ - Configured wrangler.toml with unified KV namespace (auto-provisioned)
1382
+ - Created modular tool structure
1383
+
1384
+ ============================================================
1385
+ 🎉 Cloudflare MCP-I project created successfully!
1386
+ ============================================================
1387
+
1388
+ 📝 Important Configuration Notes:
1389
+
1390
+ 1. ADMIN_API_KEY (in .dev.vars):
1391
+ - Set to same value as AGENTSHIELD_API_KEY for convenience
1392
+ - You can change it if you need separate admin endpoint security
1393
+ - Required for admin endpoints like /admin/clear-cache
1394
+
1395
+ 2. KV Namespace (auto-provisioned by Wrangler v4):
1396
+ - Single unified namespace for all MCP-I storage
1397
+ - ✨ Automatically created on first deploy - no setup needed!
1398
+ - Wrangler updates wrangler.toml with namespace ID
1399
+
1400
+ 🚀 Next Steps:
1401
+ cd test-project-runtime
1402
+ wrangler login # Login to Cloudflare first!
1403
+ npm run dev # Start local development
1404
+ npm run deploy # Deploy (KV auto-created!)
1405
+
1406
+
1407
+
1408
+  ❯ src/__tests__/cloudflare-template.test.ts 12/30
1409
+  ❯ src/__tests__/e2e/scaffolder-dependency-verification.test.ts 4/7
1410
+  ❯ src/__tests__/helpers/apply-identity-preset.test.ts 10/16
1411
+  ❯ src/__tests__/helpers/copy-template.test.ts [queued]
1412
+  ❯ src/__tests__/helpers/generate-config.test.ts 12/25
1413
+  ❯ src/__tests__/helpers/generate-identity.test.ts 18/24
1414
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts 13/25
1415
+  ❯ src/__tests__/helpers/generate-openapi-tools.test.ts 44/45
1416
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts 7/23
1417
+  ❯ src/__tests__/wrangler-v4-compatibility.test.ts 3/11
1418
+  ❯ src/helpers/__tests__/generate-cloudflare-files.spec.ts [queued]
1419
+  ❯ src/utils/__tests__/fetch-remote-config.test.ts [queued]
1420
+  ❯ test-cloudflare/tests/cors-security.test.ts [queued]
1421
+
1422
+  Test Files 18 passed (37)
1423
+  Tests 409 passed | 1 skipped (493)
1424
+  Start at 13:15:03
1425
+  Duration 4.72s
1426
+ [?2026l[?2026h ✓ src/__tests__/helpers/generate-identity.test.ts (24 tests) 1307ms
1427
+
1428
+  ❯ src/__tests__/cloudflare-template.test.ts 13/30
1429
+  ❯ src/__tests__/e2e/scaffolder-dependency-verification.test.ts 4/7
1430
+  ❯ src/__tests__/helpers/apply-identity-preset.test.ts 10/16
1431
+  ❯ src/__tests__/helpers/copy-template.test.ts [queued]
1432
+  ❯ src/__tests__/helpers/generate-config.test.ts 12/25
1433
+  ❯ src/__tests__/helpers/generate-identity.test.ts 24/24
1434
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts 13/25
1435
+  ❯ src/__tests__/helpers/generate-openapi-tools.test.ts 44/45
1436
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts 7/23
1437
+  ❯ src/__tests__/wrangler-v4-compatibility.test.ts 4/11
1438
+  ❯ src/helpers/__tests__/generate-cloudflare-files.spec.ts [queued]
1439
+  ❯ src/utils/__tests__/fetch-remote-config.test.ts [queued]
1440
+  ❯ test-cloudflare/tests/cors-security.test.ts [queued]
1441
+
1442
+  Test Files 19 passed (37)
1443
+  Tests 417 passed | 1 skipped (493)
1444
+  Start at 13:15:03
1445
+  Duration 4.85s
1446
+ [?2026l[?2026hstdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffolder Dependency Verification E2E > No Workspace References > should not include workspace: references in scaffolded package.json
1447
+ 
1448
+ 🏗️ Generating Cloudflare MCP-I project: test-project-no-workspace...
1449
+
1450
+ stdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffolder Dependency Verification E2E > No Workspace References > should not include workspace: references in scaffolded package.json
1451
+ 🔑 Generating cryptographic identity...
1452
+
1453
+
1454
+  ❯ src/__tests__/cloudflare-template.test.ts 13/30
1455
+  ❯ src/__tests__/e2e/scaffolder-dependency-verification.test.ts 4/7
1456
+  ❯ src/__tests__/helpers/apply-identity-preset.test.ts 11/16
1457
+  ❯ src/__tests__/helpers/copy-template.test.ts [queued]
1458
+  ❯ src/__tests__/helpers/generate-config.test.ts 15/25
1459
+  ❯ src/__tests__/helpers/generate-identity.test.ts 24/24
1460
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts 14/25
1461
+  ❯ src/__tests__/helpers/generate-openapi-tools.test.ts 45/45
1462
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts 8/23
1463
+  ❯ src/__tests__/wrangler-v4-compatibility.test.ts 4/11
1464
+  ❯ src/helpers/__tests__/generate-cloudflare-files.spec.ts [queued]
1465
+  ❯ src/utils/__tests__/fetch-remote-config.test.ts [queued]
1466
+  ❯ test-cloudflare/tests/cors-security.test.ts [queued]
1467
+
1468
+  Test Files 19 passed (37)
1469
+  Tests 424 passed | 1 skipped (493)
1470
+  Start at 13:15:03
1471
+  Duration 4.97s
1472
+ [?2026l[?2026h
1473
+  ❯ src/__tests__/cloudflare-template.test.ts 13/30
1474
+  ❯ src/__tests__/e2e/scaffolder-dependency-verification.test.ts 4/7
1475
+  ❯ src/__tests__/helpers/apply-identity-preset.test.ts 11/16
1476
+  ❯ src/__tests__/helpers/copy-template.test.ts [queued]
1477
+  ❯ src/__tests__/helpers/generate-config.test.ts 16/25
1478
+  ❯ src/__tests__/helpers/generate-identity.test.ts 24/24
1479
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts 14/25
1480
+  ❯ src/__tests__/helpers/generate-openapi-tools.test.ts 45/45
1481
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts 8/23
1482
+  ❯ src/__tests__/wrangler-v4-compatibility.test.ts 4/11
1483
+  ❯ src/helpers/__tests__/generate-cloudflare-files.spec.ts [queued]
1484
+  ❯ src/utils/__tests__/fetch-remote-config.test.ts [queued]
1485
+  ❯ test-cloudflare/tests/cors-security.test.ts [queued]
1486
+
1487
+  Test Files 19 passed (37)
1488
+  Tests 425 passed | 1 skipped (493)
1489
+  Start at 13:15:03
1490
+  Duration 5.25s
1491
+ [?2026l[?2026h ✓ src/__tests__/helpers/generate-openapi-tools.test.ts (45 tests) 3279ms
1492
+ ✓ creates one tool file per operation  376ms
1493
+ ✓ agent.ts imports tools using factory functions  465ms
1494
+ ✓ creates agent-env.ts with AgentEnv interface  712ms
1495
+ stdout | src/__tests__/e2e/scaffolder-dependency-verification.test.ts > Scaffolder Dependency Verification E2E > No Workspace References > should not include workspace: references in scaffolded package.json
1496
+ ✔ Created Cloudflare MCP-I template files
1497
+ - Generated identity keys in .dev.vars
1498
+ - Configured wrangler.toml with unified KV namespace (auto-provisioned)
1499
+ - Created modular tool structure
1500
+
1501
+ ============================================================
1502
+ 🎉 Cloudflare MCP-I project created successfully!
1503
+ ============================================================
1504
+
1505
+ 📝 Important Configuration Notes:
1506
+
1507
+ 1. ADMIN_API_KEY (in .dev.vars):
1508
+ - Set to same value as AGENTSHIELD_API_KEY for convenience
1509
+ - You can change it if you need separate admin endpoint security
1510
+ - Required for admin endpoints like /admin/clear-cache
1511
+
1512
+ 2. KV Namespace (auto-provisioned by Wrangler v4):
1513
+ - Single unified namespace for all MCP-I storage
1514
+ - ✨ Automatically created on first deploy - no setup needed!
1515
+ - Wrangler updates wrangler.toml with namespace ID
1516
+
1517
+ 🚀 Next Steps:
1518
+ cd test-project-no-workspace
1519
+ wrangler login # Login to Cloudflare first!
1520
+ npm run dev # Start local development
1521
+ npm run deploy # Deploy (KV auto-created!)
1522
+
1523
+
1524
+
1525
+  ❯ src/__tests__/cloudflare-template.test.ts 13/30
1526
+  ❯ src/__tests__/e2e/scaffolder-dependency-verification.test.ts 6/7
1527
+  ❯ src/__tests__/helpers/apply-identity-preset.test.ts 12/16
1528
+  ❯ src/__tests__/helpers/copy-template.test.ts [queued]
1529
+  ❯ src/__tests__/helpers/fetch-cloudflare-template.test.ts [queued]
1530
+  ❯ src/__tests__/helpers/generate-config.test.ts 21/25
1531
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts 15/25
1532
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts 11/23
1533
+  ❯ src/__tests__/wrangler-v4-compatibility.test.ts 5/11
1534
+  ❯ src/helpers/__tests__/generate-cloudflare-files.spec.ts [queued]
1535
+  ❯ src/utils/__tests__/fetch-remote-config.test.ts [queued]
1536
+  ❯ test-cloudflare/tests/cors-security.test.ts [queued]
1537
+  ❯ test-cloudflare/tests/delegation.test.ts [queued]
1538
+
1539
+  Test Files 20 passed (37)
1540
+  Tests 438 passed | 1 skipped (493)
1541
+  Start at 13:15:03
1542
+  Duration 5.35s
1543
+ [?2026l[?2026h ✓ src/__tests__/helpers/generate-config.test.ts (25 tests) 2121ms
1544
+ ✓ should generate xmcp.config.ts with default values  434ms
1545
+ ✓ should create valid TypeScript runtime config file  362ms
1546
+ ✓ should handle invalid transport values gracefully  339ms
1547
+ ✓ src/__tests__/e2e/scaffolder-dependency-verification.test.ts (7 tests) 3019ms
1548
+ ✓ should scaffold with correct @kya-os/mcp-i-cloudflare version  430ms
1549
+ ✓ should include AGENTSHIELD_PROJECT_ID in wrangler.toml template  482ms
1550
+ ✓ should set AGENTSHIELD_PROJECT_ID when --project is provided  593ms
1551
+ ✓ should pass AGENTSHIELD_PROJECT_ID to runtime config  903ms
1552
+ ✓ should not include workspace: references in scaffolded package.json  447ms
1553
+ ✓ src/__tests__/helpers/validate-project-structure.test.ts (23 tests) 1055ms
1554
+ ✓ should detect missing xmcp.config.ts file  380ms
1555
+ ✓ should validate all required files exist  335ms
1556
+
1557
+  ❯ src/__tests__/cloudflare-template.test.ts 14/30
1558
+  ❯ src/__tests__/helpers/apply-identity-preset.test.ts 15/16
1559
+  ❯ src/__tests__/helpers/copy-template.test.ts [queued]
1560
+  ❯ src/__tests__/helpers/fetch-cloudflare-template.test.ts [queued]
1561
+  ❯ src/__tests__/helpers/generate-config.test.ts 25/25
1562
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts 16/25
1563
+  ❯ src/__tests__/wrangler-v4-compatibility.test.ts 9/11
1564
+  ❯ src/helpers/__tests__/generate-cloudflare-files.spec.ts [queued]
1565
+  ❯ src/utils/__tests__/fetch-remote-config.test.ts 0/9
1566
+  ❯ test-cloudflare/tests/cors-security.test.ts 0/29
1567
+  ❯ test-cloudflare/tests/delegation.test.ts [queued]
1568
+
1569
+  Test Files 23 passed (37)
1570
+  Tests 464 passed | 1 skipped (531)
1571
+  Start at 13:15:03
1572
+  Duration 5.67s
1573
+ [?2026l[?2026h ✓ test-cloudflare/tests/cors-security.test.ts (29 tests) 39ms
1574
+
1575
+  ❯ src/__tests__/cloudflare-template.test.ts 15/30
1576
+  ❯ src/__tests__/helpers/apply-identity-preset.test.ts 15/16
1577
+  ❯ src/__tests__/helpers/copy-template.test.ts [queued]
1578
+  ❯ src/__tests__/helpers/fetch-cloudflare-template.test.ts [queued]
1579
+  ❯ src/__tests__/helpers/generate-config.test.ts 25/25
1580
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts 16/25
1581
+  ❯ src/__tests__/wrangler-v4-compatibility.test.ts 9/11
1582
+  ❯ src/helpers/__tests__/generate-cloudflare-files.spec.ts 0/28
1583
+  ❯ src/utils/__tests__/fetch-remote-config.test.ts 1/9
1584
+  ❯ test-cloudflare/tests/delegation.test.ts [queued]
1585
+
1586
+  Test Files 24 passed (37)
1587
+  Tests 495 passed | 1 skipped (559)
1588
+  Start at 13:15:03
1589
+  Duration 5.92s
1590
+ [?2026l[?2026h ✓ src/utils/__tests__/fetch-remote-config.test.ts (9 tests) 30ms
1591
+ ✓ src/__tests__/helpers/apply-identity-preset.test.ts (16 tests) 3894ms
1592
+ ✓ should enhance existing tools when tools directory exists with files  365ms
1593
+ ✓ should handle tool file with 'hello' in content without false positive  350ms
1594
+ ✓ should add identity dependencies with published versions  468ms
1595
+ ✓ should create .gitignore with identity entries if not exists  478ms
1596
+ ✓ should append to existing .gitignore without duplicates  451ms
1597
+ ✓ should create .mcpi directory  449ms
1598
+ ✓ should log progress messages when applying preset  502ms
1599
+
1600
+  ❯ src/__tests__/cloudflare-template.test.ts 15/30
1601
+  ❯ src/__tests__/helpers/copy-template.test.ts 1/11
1602
+  ❯ src/__tests__/helpers/fetch-cloudflare-template.test.ts [queued]
1603
+  ❯ src/__tests__/helpers/generate-config.test.ts 25/25
1604
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts 16/25
1605
+  ❯ src/__tests__/wrangler-v4-compatibility.test.ts 9/11
1606
+  ❯ src/helpers/__tests__/generate-cloudflare-files.spec.ts 1/28
1607
+  ❯ test-cloudflare/tests/delegation.test.ts [queued]
1608
+
1609
+  Test Files 26 passed (37)
1610
+  Tests 506 passed | 1 skipped (570)
1611
+  Start at 13:15:03
1612
+  Duration 6.09s
1613
+ [?2026l[?2026h(node:78974) ExperimentalWarning: The Ed25519 Web Crypto API algorithm is an experimental feature and might change at any time
1614
+ (Use `node --trace-warnings ...` to show where the warning was created)
1615
+
1616
+  ❯ src/__tests__/cloudflare-template.test.ts 15/30
1617
+  ❯ src/__tests__/helpers/copy-template.test.ts 1/11
1618
+  ❯ src/__tests__/helpers/fetch-cloudflare-template.test.ts [queued]
1619
+  ❯ src/__tests__/helpers/generate-config.test.ts 25/25
1620
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts 17/25
1621
+  ❯ src/helpers/__tests__/generate-cloudflare-files.spec.ts 1/28
1622
+  ❯ test-cloudflare/tests/delegation.test.ts [queued]
1623
+
1624
+  Test Files 27 passed (37)
1625
+  Tests 509 passed | 1 skipped (570)
1626
+  Start at 13:15:03
1627
+  Duration 6.19s
1628
+ [?2026l[?2026h ✓ src/__tests__/wrangler-v4-compatibility.test.ts (11 tests) 3344ms
1629
+ ✓ should use Wrangler v4.x in package.json  498ms
1630
+ ✓ should use modern compatibility_flags in wrangler.toml (not deprecated node_compat)  594ms
1631
+ ✓ should use compatible @cloudflare/vitest-pool-workers version  656ms
1632
+ ✓ should use a valid compatibility_date (not a future date)  686ms
1633
+ ✓ MCPI template should not use any deprecated Wrangler v3 features  690ms
1634
+
1635
+  ❯ src/__tests__/cloudflare-template.test.ts 15/30
1636
+  ❯ src/__tests__/helpers/copy-template.test.ts 1/11
1637
+  ❯ src/__tests__/helpers/fetch-cloudflare-template.test.ts [queued]
1638
+  ❯ src/__tests__/helpers/generate-config.test.ts 25/25
1639
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts 17/25
1640
+  ❯ src/helpers/__tests__/generate-cloudflare-files.spec.ts 1/28
1641
+  ❯ test-cloudflare/tests/delegation.test.ts [queued]
1642
+
1643
+  Test Files 27 passed (37)
1644
+  Tests 509 passed | 1 skipped (570)
1645
+  Start at 13:15:03
1646
+  Duration 6.19s
1647
+ [?2026l[?2026h
1648
+  ❯ src/__tests__/cloudflare-template.test.ts 17/30
1649
+  ❯ src/__tests__/helpers/copy-template.test.ts 3/11
1650
+  ❯ src/__tests__/helpers/fetch-cloudflare-template.test.ts [queued]
1651
+  ❯ src/__tests__/helpers/generate-config.test.ts 25/25
1652
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts 18/25
1653
+  ❯ src/helpers/__tests__/generate-cloudflare-files.spec.ts 7/28
1654
+  ❯ test-cloudflare/tests/delegation.test.ts 0/12
1655
+
1656
+  Test Files 27 passed (37)
1657
+  Tests 520 passed | 1 skipped (582)
1658
+  Start at 13:15:03
1659
+  Duration 6.41s
1660
+ [?2026l[?2026h ✓ src/helpers/__tests__/generate-cloudflare-files.spec.ts (28 tests) 528ms
1661
+
1662
+
1663
+  ❯ src/__tests__/cloudflare-template.test.ts 18/30
1664
+  ❯ src/__tests__/helpers/copy-template.test.ts 5/11
1665
+  ❯ src/__tests__/helpers/fetch-cloudflare-template.test.ts [queued]
1666
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts 19/25
1667
+  ❯ test-cloudflare/tests/delegation.test.ts 0/12
1668
+
1669
+  Test Files 28 passed (37)
1670
+  Tests 545 passed | 1 skipped (582)
1671
+  Start at 13:15:03
1672
+  Duration 6.62s
1673
+ [?2026l[?2026h ✓ test-cloudflare/tests/delegation.test.ts (12 tests) 27ms
1674
+
1675
+
1676
+  ❯ src/__tests__/cloudflare-template.test.ts 18/30
1677
+  ❯ src/__tests__/helpers/copy-template.test.ts 5/11
1678
+  ❯ src/__tests__/helpers/fetch-cloudflare-template.test.ts [queued]
1679
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts 20/25
1680
+
1681
+  Test Files 29 passed (37)
1682
+  Tests 558 passed | 1 skipped (582)
1683
+  Start at 13:15:03
1684
+  Duration 6.72s
1685
+ [?2026l[?2026h
1686
+
1687
+  ❯ src/__tests__/cloudflare-template.test.ts 18/30
1688
+  ❯ src/__tests__/helpers/copy-template.test.ts 6/11
1689
+  ❯ src/__tests__/helpers/fetch-cloudflare-template.test.ts 0/4
1690
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts 20/25
1691
+
1692
+  Test Files 29 passed (37)
1693
+  Tests 559 passed | 1 skipped (586)
1694
+  Start at 13:15:03
1695
+  Duration 6.82s
1696
+ [?2026l[?2026h ✓ src/__tests__/helpers/copy-template.test.ts (11 tests) 922ms
1697
+ ✓ should not copy .git directory  303ms
1698
+
1699
+
1700
+  ❯ src/__tests__/cloudflare-template.test.ts 18/30
1701
+  ❯ src/__tests__/helpers/fetch-cloudflare-template.test.ts 1/4
1702
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts 20/25
1703
+
1704
+  Test Files 30 passed (37)
1705
+  Tests 565 passed | 1 skipped (586)
1706
+  Start at 13:15:03
1707
+  Duration 6.93s
1708
+ [?2026l[?2026h ✓ src/__tests__/helpers/fetch-cloudflare-template.test.ts (4 tests) 156ms
1709
+
1710
+
1711
+  ❯ src/__tests__/cloudflare-template.test.ts 19/30
1712
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts 20/25
1713
+
1714
+  Test Files 31 passed (37)
1715
+  Tests 569 passed | 1 skipped (586)
1716
+  Start at 13:15:03
1717
+  Duration 7.13s
1718
+ [?2026l[?2026h
1719
+
1720
+  ❯ src/__tests__/cloudflare-template.test.ts 21/30
1721
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts 22/25
1722
+
1723
+  Test Files 31 passed (37)
1724
+  Tests 573 passed | 1 skipped (586)
1725
+  Start at 13:15:03
1726
+  Duration 7.34s
1727
+ [?2026l[?2026h
1728
+  ❯ src/__tests__/cloudflare-template.test.ts 21/30
1729
+  ❯ src/__tests__/effects/index.test.ts [queued]
1730
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts 22/25
1731
+
1732
+  Test Files 31 passed (37)
1733
+  Tests 573 passed | 1 skipped (586)
1734
+  Start at 13:15:03
1735
+  Duration 7.45s
1736
+ [?2026l[?2026h
1737
+  ❯ src/__tests__/cloudflare-template.test.ts 24/30
1738
+  ❯ src/__tests__/effects/index.test.ts [queued]
1739
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts 24/25
1740
+  ❯ src/__tests__/utils/check-node.test.ts [queued]
1741
+  ❯ src/__tests__/utils/validate-project-name.test.ts [queued]
1742
+
1743
+  Test Files 31 passed (37)
1744
+  Tests 577 passed | 2 skipped (586)
1745
+  Start at 13:15:03
1746
+  Duration 7.66s
1747
+ [?2026l[?2026h
1748
+  ❯ src/__tests__/cloudflare-template.test.ts 25/30
1749
+  ❯ src/__tests__/effects/index.test.ts [queued]
1750
+  ❯ src/__tests__/helpers/generate-openapi-project.test.ts 25/25
1751
+  ❯ src/__tests__/utils/check-node.test.ts 0/7
1752
+  ❯ src/__tests__/utils/validate-project-name.test.ts [queued]
1753
+
1754
+  Test Files 31 passed (37)
1755
+  Tests 579 passed | 2 skipped (593)
1756
+  Start at 13:15:03
1757
+  Duration 7.77s
1758
+ [?2026l[?2026h ✓ src/__tests__/helpers/generate-openapi-project.test.ts (25 tests) 6081ms
1759
+ ✓ creates README.md  372ms
1760
+ ✓ creates tool files under src/tools/  389ms
1761
+ ✓ private key placeholder is in .dev.vars.example, not the real key  581ms
1762
+ ✓ private key is NOT in package.json  916ms
1763
+ ✓ private key is NOT in any tool file  506ms
1764
+ ✓ includes MCP_IDENTITY_PUBLIC_KEY  647ms
1765
+ ✓ includes KV namespace binding  344ms
1766
+ ✓ includes @kya-os/mcp-i-cloudflare dependency  449ms
1767
+ ✓ agent extends MCPICloudflareAgent  311ms
1768
+ ✓ src/__tests__/utils/check-node.test.ts (7 tests) 28ms
1769
+
1770
+  ❯ src/__tests__/cloudflare-template.test.ts 26/30
1771
+  ❯ src/__tests__/effects/index.test.ts 0/5
1772
+  ❯ src/__tests__/utils/validate-project-name.test.ts [queued]
1773
+  ❯ src/helpers/__tests__/config-builder.spec.ts [queued]
1774
+
1775
+  Test Files 33 passed (37)
1776
+  Tests 587 passed | 2 skipped (598)
1777
+  Start at 13:15:03
1778
+  Duration 7.98s
1779
+ [?2026l[?2026h ✓ src/__tests__/effects/index.test.ts (5 tests) 4ms
1780
+
1781
+  ❯ src/__tests__/cloudflare-template.test.ts 26/30
1782
+  ❯ src/__tests__/utils/validate-project-name.test.ts [queued]
1783
+  ❯ src/helpers/__tests__/config-builder.spec.ts 0/12
1784
+
1785
+  Test Files 34 passed (37)
1786
+  Tests 592 passed | 2 skipped (610)
1787
+  Start at 13:15:03
1788
+  Duration 8.20s
1789
+ [?2026l[?2026h ✓ src/__tests__/utils/validate-project-name.test.ts (29 tests) 18ms
1790
+ ✓ src/__tests__/cloudflare-template.test.ts (30 tests | 2 skipped) 6344ms
1791
+ ✓ should import Durable Object class from agent.ts  308ms
1792
+ ✓ should generate agent class with all required abstract methods  380ms
1793
+ ✓ should include MCP_SERVER_URL placeholder in wrangler.toml  556ms
1794
+ ✓ should handle MCP_SERVER_URL configuration  426ms
1795
+ ✓ should include unified MCPI_KV namespace binding in wrangler.toml  631ms
1796
+ ✓ should create KV namespace creation scripts in package.json  575ms
1797
+ ✓ should not include setup script (Wrangler v4 auto-provisions)  382ms
1798
+ ✓ should include simplified runtime configuration  370ms
1799
+ ✓ should include unified MCPI_KV binding regardless of API key  309ms
1800
+ ✓ should include unified MCPI_KV binding without API key  684ms
1801
+ ✓ should include identity variables in wrangler.toml  308ms
1802
+ ✓ should use correct package manager in scripts  320ms
1803
+ ✓ should create correct package.json structure  350ms
1804
+
1805
+  ❯ src/helpers/__tests__/config-builder.spec.ts 0/12
1806
+
1807
+  Test Files 36 passed (37)
1808
+  Tests 624 passed | 3 skipped (639)
1809
+  Start at 13:15:03
1810
+  Duration 8.30s
1811
+ [?2026lstderr | src/helpers/__tests__/config-builder.spec.ts > buildConfigWithRemote > should fallback to local config when remote fetch fails
1812
+ [RemoteConfig] Neither projectId nor agentDid provided
1813
+
1814
+ ✓ src/helpers/__tests__/config-builder.spec.ts (12 tests) 5ms
1815
+
1816
+  Test Files  37 passed (37)
1817
+  Tests  636 passed | 3 skipped (639)
1818
+  Start at  13:15:03
1819
+  Duration  8.93s (transform 11.31s, setup 0ms, import 22.27s, tests 34.86s, environment 38ms)
1820
+
1821
+  % Coverage report from v8
1822
+
1823
+ =============================== Coverage summary ===============================
1824
+ Statements : 71.09% ( 1129/1588 )
1825
+ Branches : 60.02% ( 572/953 )
1826
+ Functions : 73.33% ( 110/150 )
1827
+ Lines : 72.34% ( 1109/1533 )
1828
+ ================================================================================
1829
+ [?25h