@kya-os/create-mcpi-app 1.8.47 β†’ 1.8.49

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.
@@ -1,605 +1,1222 @@
1
-
2
- > @kya-os/create-mcpi-app@1.8.45 test:coverage /Users/dylanhobbs/Documents/@kya-os/xmcp-i/packages/create-mcpi-app
3
- > vitest run --coverage
4
-
5
-
6
-  RUN  v4.0.14 /Users/dylanhobbs/Documents/@kya-os/xmcp-i/packages/create-mcpi-app
7
- Coverage enabled with v8
8
-
9
- stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with npm
10
- 
11
- πŸ“¦ Installing dependencies with npm...
12
- βœ“ Lockfile created (package-lock.json) - remember to commit it
13
-
14
- stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with yarn
15
- 
16
- πŸ“¦ Installing dependencies with yarn...
17
- βœ“ Lockfile created (yarn.lock) - remember to commit it
18
-
19
- stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with pnpm
20
- 
21
- πŸ“¦ Installing dependencies with pnpm...
22
- βœ“ Lockfile created (pnpm-lock.yaml) - remember to commit it
23
-
24
- 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
25
- 
26
- πŸ—οΈ Generating Cloudflare MCP-I project: test-project...
27
-
28
- βœ“ src/__tests__/helpers/copy-template.test.ts (11 tests) 72ms
29
- stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should use correct working directory
30
- 
31
- πŸ“¦ Installing dependencies with npm...
32
- βœ“ Lockfile created (package-lock.json) - remember to commit it
33
-
34
- 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
35
- πŸ”‘ Generating cryptographic identity...
36
-
37
- stderr | src/__tests__/helpers/install.test.ts > install > Install progress reporting > should report correct package manager in log
38
- ⚠️ Warning: No lockfile generated (pnpm-lock.yaml)
39
-
40
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include envPrefix in generated index.ts
41
- 
42
- πŸ—οΈ Generating Cloudflare MCP-I project: test-agent...
43
-
44
- stdout | src/__tests__/helpers/install.test.ts > install > Install progress reporting > should check for lockfile after installation
45
- 
46
- πŸ“¦ Installing dependencies with npm...
47
- βœ“ Lockfile created (package-lock.json) - remember to commit it
48
-
49
- stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should throw error when installation fails
50
- 
51
- πŸ“¦ Installing dependencies with npm...
52
-
53
- stderr | src/__tests__/helpers/install.test.ts > install > Error handling > should throw error when installation fails
54
- Failed to install dependencies with npm.
55
-
56
- stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle network errors during installation
57
- 
58
- πŸ“¦ Installing dependencies with npm...
59
-
60
- stderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle network errors during installation
61
- Failed to install dependencies with npm.
62
-
63
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include envPrefix in generated index.ts
64
- πŸ”‘ Generating cryptographic identity...
65
-
66
- stderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle permission errors during installation
67
- Failed to install dependencies with npm.
68
- stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle permission errors during installation
69
- 
70
-
71
- πŸ“¦ Installing dependencies with npm...
72
-
73
- stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should log error message when installation fails
74
- 
75
- πŸ“¦ Installing dependencies with npm...
76
-
77
- stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle invalid package manager gracefully
78
- 
79
- πŸ“¦ Installing dependencies with unknown...
80
-
81
- stderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle invalid package manager gracefully
82
- ⚠️ Warning: Unknown package manager "unknown", cannot check lockfile
83
-
84
- βœ“ src/__tests__/index.test.ts (4 tests) 110ms
85
- stdout | src/__tests__/helpers/install.test.ts > install > Lockfile validation > should warn when lockfile not created
86
- 
87
- πŸ“¦ Installing dependencies with npm...
88
-
89
- stdout | src/__tests__/helpers/install.test.ts > install > Lockfile validation > should warn when package manager lockfile cannot be determined
90
- 
91
- πŸ“¦ Installing dependencies with custom...
92
-
93
- 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
94
- βœ” Created Cloudflare MCP-I template files
95
- - Generated identity keys in .dev.vars
96
- - Configured wrangler.toml with KV namespaces (auto-provisioned)
97
- - Created modular tool structure
98
-
99
- ============================================================
100
- πŸŽ‰ Cloudflare MCP-I project created successfully!
101
- ============================================================
102
-
103
- πŸ“ Important Configuration Notes:
104
-
105
- 1. ADMIN_API_KEY (in .dev.vars):
106
- - Set to same value as AGENTSHIELD_API_KEY for convenience
107
- - You can change it if you need separate admin endpoint security
108
- - Required for admin endpoints like /admin/clear-cache
109
-
110
- 2. KV Namespaces (auto-provisioned by Wrangler v4):
111
- - Required for MCP-I security features
112
- - ✨ Automatically created on first deploy - no setup needed!
113
- - Wrangler updates wrangler.toml with namespace IDs
114
-
115
- πŸš€ Next Steps:
116
- cd test-project
117
- wrangler login # Login to Cloudflare first!
118
- npm run dev # Start local development
119
- npm run deploy # Deploy (KV auto-created!)
120
-
121
-
122
- βœ“ src/__tests__/helpers/generate-config.test.ts (25 tests) 95ms
123
- βœ“ src/__tests__/helpers/install.test.ts (21 tests) 76ms
124
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include envPrefix in generated index.ts
125
- βœ” Created Cloudflare MCP-I template files
126
- - Generated identity keys in .dev.vars
127
- - Configured wrangler.toml with KV namespaces (auto-provisioned)
128
- - Created modular tool structure
129
-
130
- ============================================================
131
- πŸŽ‰ Cloudflare MCP-I project created successfully!
132
- ============================================================
133
-
134
- πŸ“ Important Configuration Notes:
135
-
136
- 1. ADMIN_API_KEY (in .dev.vars):
137
- - Set to same value as AGENTSHIELD_API_KEY for convenience
138
- - You can change it if you need separate admin endpoint security
139
- - Required for admin endpoints like /admin/clear-cache
140
-
141
- 2. KV Namespaces (auto-provisioned by Wrangler v4):
142
- - Required for MCP-I security features
143
- - ✨ Automatically created on first deploy - no setup needed!
144
- - Wrangler updates wrangler.toml with namespace IDs
145
-
146
- πŸš€ Next Steps:
147
- cd test-agent
148
- wrangler login # Login to Cloudflare first!
149
- npm run dev # Start local development
150
- npm run deploy # Deploy (KV auto-created!)
151
-
152
-
153
- 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
154
- 
155
- πŸ—οΈ Generating Cloudflare MCP-I project: test-project-env...
156
-
157
- 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
158
- πŸ”‘ Generating cryptographic identity...
159
-
160
- 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
161
- βœ” Created Cloudflare MCP-I template files
162
- - Generated identity keys in .dev.vars
163
- - Configured wrangler.toml with KV namespaces (auto-provisioned)
164
- - Created modular tool structure
165
-
166
- ============================================================
167
- πŸŽ‰ Cloudflare MCP-I project created successfully!
168
- ============================================================
169
-
170
- πŸ“ Important Configuration Notes:
171
-
172
- 1. ADMIN_API_KEY (in .dev.vars):
173
- - Set to same value as AGENTSHIELD_API_KEY for convenience
174
- - You can change it if you need separate admin endpoint security
175
- - Required for admin endpoints like /admin/clear-cache
176
-
177
- 2. KV Namespaces (auto-provisioned by Wrangler v4):
178
- - Required for MCP-I security features
179
- - ✨ Automatically created on first deploy - no setup needed!
180
- - Wrangler updates wrangler.toml with namespace IDs
181
-
182
- πŸš€ Next Steps:
183
- cd test-project-env
184
- wrangler login # Login to Cloudflare first!
185
- npm run dev # Start local development
186
- npm run deploy # Deploy (KV auto-created!)
187
-
188
-
189
- 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
190
- 
191
- πŸ—οΈ Generating Cloudflare MCP-I project: test-project-with-id...
192
-
193
- 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
194
- πŸ”‘ Generating cryptographic identity...
195
-
196
- 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
197
- βœ” Created Cloudflare MCP-I template files
198
- - Generated identity keys in .dev.vars
199
- - Configured wrangler.toml with KV namespaces (auto-provisioned)
200
- - Created modular tool structure
201
-
202
- ============================================================
203
- πŸŽ‰ Cloudflare MCP-I project created successfully!
204
- ============================================================
205
-
206
- πŸ“ Important Configuration Notes:
207
-
208
- 1. ADMIN_API_KEY (in .dev.vars):
209
- - Set to same value as AGENTSHIELD_API_KEY for convenience
210
- - You can change it if you need separate admin endpoint security
211
- - Required for admin endpoints like /admin/clear-cache
212
-
213
- 2. KV Namespaces (auto-provisioned by Wrangler v4):
214
- - Required for MCP-I security features
215
- - ✨ Automatically created on first deploy - no setup needed!
216
- - Wrangler updates wrangler.toml with namespace IDs
217
-
218
- πŸš€ Next Steps:
219
- cd test-project-with-id
220
- wrangler login # Login to Cloudflare first!
221
- npm run dev # Start local development
222
- npm run deploy # Deploy (KV auto-created!)
223
-
224
-
225
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should use correct prefix format (uppercase with underscores)
226
- 
227
- πŸ—οΈ Generating Cloudflare MCP-I project: my-awesome-agent...
228
-
229
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should use correct prefix format (uppercase with underscores)
230
- πŸ”‘ Generating cryptographic identity...
231
-
232
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should use correct prefix format (uppercase with underscores)
233
- βœ” Created Cloudflare MCP-I template files
234
- - Generated identity keys in .dev.vars
235
- - Configured wrangler.toml with KV namespaces (auto-provisioned)
236
- - Created modular tool structure
237
-
238
- ============================================================
239
- πŸŽ‰ Cloudflare MCP-I project created successfully!
240
- ============================================================
241
-
242
- πŸ“ Important Configuration Notes:
243
-
244
- 1. ADMIN_API_KEY (in .dev.vars):
245
- - Set to same value as AGENTSHIELD_API_KEY for convenience
246
- - You can change it if you need separate admin endpoint security
247
- - Required for admin endpoints like /admin/clear-cache
248
-
249
- 2. KV Namespaces (auto-provisioned by Wrangler v4):
250
- - Required for MCP-I security features
251
- - ✨ Automatically created on first deploy - no setup needed!
252
- - Wrangler updates wrangler.toml with namespace IDs
253
-
254
- πŸš€ Next Steps:
255
- cd my-awesome-agent
256
- wrangler login # Login to Cloudflare first!
257
- npm run dev # Start local development
258
- npm run deploy # Deploy (KV auto-created!)
259
-
260
-
261
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include comment explaining envPrefix purpose
262
- 
263
- πŸ—οΈ Generating Cloudflare MCP-I project: test-agent...
264
-
265
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include comment explaining envPrefix purpose
266
- πŸ”‘ Generating cryptographic identity...
267
-
268
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include comment explaining envPrefix purpose
269
- βœ” Created Cloudflare MCP-I template files
270
- - Generated identity keys in .dev.vars
271
- - Configured wrangler.toml with KV namespaces (auto-provisioned)
272
- - Created modular tool structure
273
-
274
- ============================================================
275
- πŸŽ‰ Cloudflare MCP-I project created successfully!
276
- ============================================================
277
-
278
- πŸ“ Important Configuration Notes:
279
-
280
- 1. ADMIN_API_KEY (in .dev.vars):
281
- - Set to same value as AGENTSHIELD_API_KEY for convenience
282
- - You can change it if you need separate admin endpoint security
283
- - Required for admin endpoints like /admin/clear-cache
284
-
285
- 2. KV Namespaces (auto-provisioned by Wrangler v4):
286
- - Required for MCP-I security features
287
- - ✨ Automatically created on first deploy - no setup needed!
288
- - Wrangler updates wrangler.toml with namespace IDs
289
-
290
- πŸš€ Next Steps:
291
- cd test-agent
292
- wrangler login # Login to Cloudflare first!
293
- npm run dev # Start local development
294
- npm run deploy # Deploy (KV auto-created!)
295
-
296
-
297
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should match envPrefix with KV binding names in wrangler.toml
298
- 
299
- πŸ—οΈ Generating Cloudflare MCP-I project: test-agent...
300
-
301
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should match envPrefix with KV binding names in wrangler.toml
302
- πŸ”‘ Generating cryptographic identity...
303
-
304
- βœ“ src/__tests__/helpers/fetch-mcpi-template.test.ts (16 tests) 79ms
305
- 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
306
- 
307
- πŸ—οΈ Generating Cloudflare MCP-I project: test-project-no-id...
308
-
309
- 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
310
- πŸ”‘ Generating cryptographic identity...
311
-
312
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should match envPrefix with KV binding names in wrangler.toml
313
- βœ” Created Cloudflare MCP-I template files
314
- - Generated identity keys in .dev.vars
315
- - Configured wrangler.toml with KV namespaces (auto-provisioned)
316
- - Created modular tool structure
317
-
318
- ============================================================
319
- πŸŽ‰ Cloudflare MCP-I project created successfully!
320
- ============================================================
321
-
322
- πŸ“ Important Configuration Notes:
323
-
324
- 1. ADMIN_API_KEY (in .dev.vars):
325
- - Set to same value as AGENTSHIELD_API_KEY for convenience
326
- - You can change it if you need separate admin endpoint security
327
- - Required for admin endpoints like /admin/clear-cache
328
-
329
- 2. KV Namespaces (auto-provisioned by Wrangler v4):
330
- - Required for MCP-I security features
331
- - ✨ Automatically created on first deploy - no setup needed!
332
- - Wrangler updates wrangler.toml with namespace IDs
333
-
334
- πŸš€ Next Steps:
335
- cd test-agent
336
- wrangler login # Login to Cloudflare first!
337
- npm run dev # Start local development
338
- npm run deploy # Deploy (KV auto-created!)
339
-
340
-
341
- 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
342
- βœ” Created Cloudflare MCP-I template files
343
- - Generated identity keys in .dev.vars
344
- - Configured wrangler.toml with KV namespaces (auto-provisioned)
345
- - Created modular tool structure
346
-
347
- ============================================================
348
- πŸŽ‰ Cloudflare MCP-I project created successfully!
349
- ============================================================
350
-
351
- πŸ“ Important Configuration Notes:
352
-
353
- 1. ADMIN_API_KEY (in .dev.vars):
354
- - Set to same value as AGENTSHIELD_API_KEY for convenience
355
- - You can change it if you need separate admin endpoint security
356
- - Required for admin endpoints like /admin/clear-cache
357
-
358
- 2. KV Namespaces (auto-provisioned by Wrangler v4):
359
- - Required for MCP-I security features
360
- - ✨ Automatically created on first deploy - no setup needed!
361
- - Wrangler updates wrangler.toml with namespace IDs
362
-
363
- πŸš€ Next Steps:
364
- cd test-project-no-id
365
- wrangler login # Login to Cloudflare first!
366
- npm run dev # Start local development
367
- npm run deploy # Deploy (KV auto-created!)
368
-
369
-
370
- βœ“ src/__tests__/scaffolder-envprefix.test.ts (4 tests) 176ms
371
- 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
372
- 
373
- πŸ—οΈ Generating Cloudflare MCP-I project: test-project-runtime...
374
-
375
- 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
376
- πŸ”‘ Generating cryptographic identity...
377
-
378
- stdout | src/__tests__/cli-runner.test.ts > runCLI > passes CLI flags to createProject when using --yes
379
- 
380
- create-mcpi-app@1.8.45
381
-
382
- stdout | src/__tests__/cli-runner.test.ts > runCLI > passes CLI flags to createProject when using --yes
383
- BANNER
384
-
385
- Enhanced with identity features by MCP-I
386
-
387
-
388
- stdout | src/__tests__/cli-runner.test.ts > runCLI > passes CLI flags to createProject when using --yes
389
- 
390
- Next Steps:
391
- 1. Install dependencies:
392
- cd my-agent
393
- npm install
394
-
395
- 2. Start development server:
396
- npm run dev
397
-
398
- 3. Deploy when ready:
399
- npm run start
400
-
401
- stdout | src/__tests__/cli-runner.test.ts > runCLI > exits when project name validation fails
402
- 
403
- create-mcpi-app@1.8.45
404
-
405
- stdout | src/__tests__/cli-runner.test.ts > runCLI > exits when project name validation fails
406
- stderr | src/__tests__/cli-runner.test.ts > runCLI > exits when project name validation fails
407
- BANNER
408
-
409
- Enhanced with identity features by MCP-I
410
-
411
- Invalid project name:
412
-
413
- - bad
414
-
415
- stdout | src/__tests__/cli-runner.test.ts > runCLI > honors package manager and version flags
416
- 
417
- create-mcpi-app@1.8.45
418
-
419
- stdout | src/__tests__/cli-runner.test.ts > runCLI > honors package manager and version flags
420
- BANNER
421
-
422
- Enhanced with identity features by MCP-I
423
-
424
-
425
- stdout | src/__tests__/cli-runner.test.ts > runCLI > honors package manager and version flags
426
- 
427
- Next Steps:
428
- 1. Install dependencies:
429
- cd pnpm-agent
430
- pnpm install
431
-
432
- 2. Initialize identity:
433
- pnpm init
434
-
435
- 3. Start development server:
436
- pnpm dev
437
-
438
- 4. Deploy when ready:
439
- pnpm start
440
-
441
- stdout | src/__tests__/cli-runner.test.ts > runCLI > prompts for package manager and transports when --yes is not set
442
- 
443
- create-mcpi-app@1.8.45
444
-
445
- stdout | src/__tests__/cli-runner.test.ts > runCLI > prompts for package manager and transports when --yes is not set
446
- BANNER
447
-
448
- Enhanced with identity features by MCP-I
449
-
450
-
451
- stdout | src/__tests__/cli-runner.test.ts > runCLI > prompts for package manager and transports when --yes is not set
452
- 
453
- Creating a new xmcp app in /Users/dylanhobbs/Documents/@kya-os/xmcp-i/packages/create-mcpi-app/interactive-app.
454
-
455
-
456
- stdout | src/__tests__/cli-runner.test.ts > runCLI > prompts for package manager and transports when --yes is not set
457
- 
458
- Next Steps:
459
- 1. Install dependencies:
460
- cd interactive-app
461
- pnpm install
462
-
463
- 2. Start development server:
464
- pnpm dev
465
-
466
- 3. Deploy when ready:
467
- pnpm start
468
-
469
- 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
470
- βœ” Created Cloudflare MCP-I template files
471
- - Generated identity keys in .dev.vars
472
- - Configured wrangler.toml with KV namespaces (auto-provisioned)
473
- - Created modular tool structure
474
-
475
- ============================================================
476
- πŸŽ‰ Cloudflare MCP-I project created successfully!
477
- ============================================================
478
-
479
- πŸ“ Important Configuration Notes:
480
-
481
- 1. ADMIN_API_KEY (in .dev.vars):
482
- - Set to same value as AGENTSHIELD_API_KEY for convenience
483
- - You can change it if you need separate admin endpoint security
484
- - Required for admin endpoints like /admin/clear-cache
485
-
486
- 2. KV Namespaces (auto-provisioned by Wrangler v4):
487
- - Required for MCP-I security features
488
- - ✨ Automatically created on first deploy - no setup needed!
489
- - Wrangler updates wrangler.toml with namespace IDs
490
-
491
- πŸš€ Next Steps:
492
- cd test-project-runtime
493
- wrangler login # Login to Cloudflare first!
494
- npm run dev # Start local development
495
- npm run deploy # Deploy (KV auto-created!)
496
-
497
-
498
- βœ“ src/__tests__/cli-runner.test.ts (4 tests) 321ms
499
- βœ“ passes CLI flags to createProject when using --yes  315ms
500
- βœ“ src/__tests__/wrangler-v4-compatibility.test.ts (11 tests) 211ms
501
- βœ“ src/__tests__/helpers/create.test.ts (13 tests) 118ms
502
- 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
503
- 
504
- πŸ—οΈ Generating Cloudflare MCP-I project: test-project-no-workspace...
505
-
506
- 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
507
- πŸ”‘ Generating cryptographic identity...
508
-
509
- βœ“ src/__tests__/utils/check-node.test.ts (7 tests) 16ms
510
- 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
511
- βœ” Created Cloudflare MCP-I template files
512
- - Generated identity keys in .dev.vars
513
- - Configured wrangler.toml with KV namespaces (auto-provisioned)
514
- - Created modular tool structure
515
-
516
- ============================================================
517
- πŸŽ‰ Cloudflare MCP-I project created successfully!
518
- ============================================================
519
-
520
- πŸ“ Important Configuration Notes:
521
-
522
- 1. ADMIN_API_KEY (in .dev.vars):
523
- - Set to same value as AGENTSHIELD_API_KEY for convenience
524
- - You can change it if you need separate admin endpoint security
525
- - Required for admin endpoints like /admin/clear-cache
526
-
527
- 2. KV Namespaces (auto-provisioned by Wrangler v4):
528
- - Required for MCP-I security features
529
- - ✨ Automatically created on first deploy - no setup needed!
530
- - Wrangler updates wrangler.toml with namespace IDs
531
-
532
- πŸš€ Next Steps:
533
- cd test-project-no-workspace
534
- wrangler login # Login to Cloudflare first!
535
- npm run dev # Start local development
536
- npm run deploy # Deploy (KV auto-created!)
537
-
538
-
539
- βœ“ src/__tests__/e2e/scaffolder-dependency-verification.test.ts (7 tests) 285ms
540
- βœ“ src/__tests__/helpers/apply-identity-preset.test.ts (16 tests) 350ms
541
- βœ“ src/__tests__/helpers/rename.test.ts (6 tests) 21ms
542
- βœ“ src/__tests__/helpers/identity-manager.test.ts (16 tests) 297ms
543
- βœ“ src/__tests__/helpers/validate-project-structure.test.ts (23 tests) 380ms
544
- βœ“ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts (21 tests) 924ms
545
- βœ“ should transform KV namespace bindings correctly  349ms
546
- stdout | test-cloudflare/tests/session-management.test.ts > Session Management > Session Security > should not expose session data in logs
547
- [Session] Created session: secure-session
548
-
549
- βœ“ test-cloudflare/tests/session-management.test.ts (17 tests) 19ms
550
- stderr | src/__tests__/helpers/fetch-xmcp-template.test.ts > fetchXMCPTemplate > falls back to default when next channel is unavailable
551
- ⚠️ dist-tag 'next' not available for xmcp, falling back to ^0.3.1
552
-
553
- βœ“ src/__tests__/helpers/get-package-versions.test.ts (6 tests) 38ms
554
- βœ“ src/__tests__/helpers/fetch-xmcp-template.test.ts (3 tests) 18ms
555
- βœ“ src/__tests__/helpers/generate-identity.test.ts (24 tests) 97ms
556
- βœ“ src/__tests__/utils/validate-project-name.test.ts (29 tests) 14ms
557
- βœ“ src/__tests__/utils/is-folder-empty.test.ts (21 tests) 28ms
558
- βœ“ src/__tests__/cloudflare-template.test.ts (30 tests | 2 skipped) 1075ms
559
- βœ“ test-cloudflare/tests/cache-invalidation.test.ts (18 tests) 5ms
560
- βœ“ src/__tests__/helpers/fetch-cloudflare-template.test.ts (4 tests) 166ms
561
- ❯ test-cloudflare/tests/do-routing.test.ts (14 tests | 1 failed) 894ms
562
- βœ“ should route to different instances for different sessions 119ms
563
- βœ“ should route to same instance for same session 0ms
564
- βœ“ should handle both mcp-session-id header casings 0ms
565
- βœ“ should generate random session if header missing 1ms
566
- βœ“ should distribute requests across shards 16ms
567
- βœ“ should consistently route same session to same shard 0ms
568
- βœ“ should respect custom shard count 4ms
569
- βœ“ should fall back to default when strategy unknown 1ms
570
- βœ“ should use session strategy when not configured 0ms
571
-  Γ— session routing should have O(1) complexity 699ms
572
- βœ“ shard routing should have O(n) complexity for hash 48ms
573
- βœ“ should handle empty session ID 0ms
574
- βœ“ should handle non-numeric shard count 0ms
575
- βœ“ should handle special characters in session ID 1ms
576
- βœ“ test-cloudflare/tests/cors-security.test.ts (29 tests) 21ms
577
- βœ“ test-cloudflare/tests/delegation.test.ts (12 tests) 6ms
578
- βœ“ src/__tests__/effects/index.test.ts (5 tests) 6ms
579
- βœ“ src/utils/__tests__/fetch-remote-config.test.ts (9 tests) 4ms
580
- stderr | src/helpers/__tests__/config-builder.spec.ts > buildConfigWithRemote > should fallback to local config when remote fetch fails
581
- [RemoteConfig] Neither projectId nor agentDid provided
582
-
583
- βœ“ src/helpers/__tests__/config-builder.spec.ts (12 tests) 4ms
584
-
585
- ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯
586
-
587
-  FAIL  test-cloudflare/tests/do-routing.test.ts > Durable Object Multi-Instance Routing > Performance Characteristics > session routing should have O(1) complexity
588
- AssertionError: expected 696.602042 to be less than 600
589
-  ❯ test-cloudflare/tests/do-routing.test.ts:229:24
590
- 227| 
591
- 228|  // Should complete 10k operations in < 600ms (relaxed for CI env…
592
- 229|  expect(duration).toBeLessThan(600);
593
-  |  ^
594
- 230|  });
595
- 231| 
596
-
597
- ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/1]⎯
598
-
599
-
600
-  Test Files  1 failed | 30 passed (31)
601
-  Tests  1 failed | 435 passed | 2 skipped (438)
602
-  Start at  16:45:08
603
-  Duration  2.03s (transform 1.69s, setup 0ms, import 5.37s, tests 5.93s, environment 3ms)
604
-
605
-  ELIFECYCLE  Command failed with exit code 1.
1
+
2
+ 
3
+ > @kya-os/create-mcpi-app@1.8.48 test:coverage /Users/dylanhobbs/Documents/@kya-os/xmcp-i/packages/create-mcpi-app
4
+ > vitest run --coverage
5
+
6
+ [?25l
7
+  RUN  v4.0.14 /Users/dylanhobbs/Documents/@kya-os/xmcp-i/packages/create-mcpi-app
8
+ Coverage enabled with v8
9
+
10
+ [?2026h
11
+  ❯ src/__tests__/integration/kta-registration.integration.test.ts [queued]
12
+
13
+  Test Files 0 passed (35)
14
+  Tests 0 passed (0)
15
+  Start at 21:00:39
16
+  Duration 302ms
17
+ [?2026l[?2026h
18
+  ❯ src/__tests__/cli-runner.test.ts [queued]
19
+  ❯ src/__tests__/cloudflare-template.test.ts [queued]
20
+  ❯ src/__tests__/e2e/scaffolder-dependency-verification.test.ts [queued]
21
+  ❯ src/__tests__/helpers/apply-identity-preset.test.ts [queued]
22
+  ❯ src/__tests__/helpers/create.test.ts [queued]
23
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts [queued]
24
+  ❯ src/__tests__/helpers/fetch-mcpi-template.test.ts [queued]
25
+  ❯ src/__tests__/helpers/install.test.ts [queued]
26
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts [queued]
27
+  ❯ src/__tests__/integration/kta-registration.integration.test.ts 0/4
28
+  ❯ src/__tests__/scaffolder-envprefix.test.ts [queued]
29
+  ❯ src/__tests__/utils/check-node.test.ts [queued]
30
+  ❯ test-cloudflare/tests/do-routing.test.ts [queued]
31
+
32
+  Test Files 0 passed (35)
33
+  Tests 0 passed (4)
34
+  Start at 21:00:39
35
+  Duration 404ms
36
+ [?2026l[?2026hstdout | src/__tests__/integration/kta-registration.integration.test.ts > Scaffolder β†’ KTA Registration Integration > CLI Register Endpoint > should successfully register a new agent
37
+ πŸ“€ Testing CLI registration
38
+ Agent Name: TestAgent_1765767640370
39
+ DID: did:key:z6Mk1765767640370CLIuwos2l
40
+ URL: https://knowthat.ai/api/agents/cli-register
41
+
42
+
43
+  ❯ src/__tests__/cli-runner.test.ts 0/4
44
+  ❯ src/__tests__/cloudflare-template.test.ts [queued]
45
+  ❯ src/__tests__/e2e/scaffolder-dependency-verification.test.ts [queued]
46
+  ❯ src/__tests__/helpers/apply-identity-preset.test.ts [queued]
47
+  ❯ src/__tests__/helpers/create.test.ts [queued]
48
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts [queued]
49
+  ❯ src/__tests__/helpers/fetch-mcpi-template.test.ts [queued]
50
+  ❯ src/__tests__/helpers/install.test.ts [queued]
51
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts 0/23
52
+  ❯ src/__tests__/integration/kta-registration.integration.test.ts 0/4
53
+  ❯ src/__tests__/scaffolder-envprefix.test.ts [queued]
54
+  ❯ src/__tests__/utils/check-node.test.ts 0/7
55
+  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
56
+
57
+  Test Files 0 passed (35)
58
+  Tests 0 passed (52)
59
+  Start at 21:00:39
60
+  Duration 505ms
61
+ [?2026l[?2026h βœ“ src/__tests__/utils/check-node.test.ts (7 tests) 62ms
62
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include envPrefix in generated index.ts
63
+ 
64
+ πŸ—οΈ Generating Cloudflare MCP-I project: test-agent...
65
+
66
+ 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
67
+ 
68
+ πŸ—οΈ Generating Cloudflare MCP-I project: test-project...
69
+
70
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include envPrefix in generated index.ts
71
+ πŸ”‘ Generating cryptographic identity...
72
+
73
+ 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
74
+ πŸ”‘ Generating cryptographic identity...
75
+
76
+ stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with npm
77
+ 
78
+ πŸ“¦ Installing dependencies with npm...
79
+ βœ“ Lockfile created (package-lock.json) - remember to commit it
80
+
81
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include envPrefix in generated index.ts
82
+ βœ” Created Cloudflare MCP-I template files
83
+ - Generated identity keys in .dev.vars
84
+ - Configured wrangler.toml with KV namespaces (auto-provisioned)
85
+ - Created modular tool structure
86
+
87
+ ============================================================
88
+ πŸŽ‰ Cloudflare MCP-I project created successfully!
89
+ ============================================================
90
+
91
+ πŸ“ Important Configuration Notes:
92
+
93
+ 1. ADMIN_API_KEY (in .dev.vars):
94
+ - Set to same value as AGENTSHIELD_API_KEY for convenience
95
+ - You can change it if you need separate admin endpoint security
96
+ - Required for admin endpoints like /admin/clear-cache
97
+
98
+ 2. KV Namespaces (auto-provisioned by Wrangler v4):
99
+ - Required for MCP-I security features
100
+ - ✨ Automatically created on first deploy - no setup needed!
101
+ - Wrangler updates wrangler.toml with namespace IDs
102
+
103
+ πŸš€ Next Steps:
104
+ cd test-agent
105
+ wrangler login # Login to Cloudflare first!
106
+ npm run dev # Start local development
107
+ npm run deploy # Deploy (KV auto-created!)
108
+
109
+
110
+ 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
111
+ βœ” Created Cloudflare MCP-I template files
112
+ - Generated identity keys in .dev.vars
113
+ - Configured wrangler.toml with KV namespaces (auto-provisioned)
114
+ - Created modular tool structure
115
+
116
+ ============================================================
117
+ πŸŽ‰ Cloudflare MCP-I project created successfully!
118
+ ============================================================
119
+
120
+ πŸ“ Important Configuration Notes:
121
+
122
+ 1. ADMIN_API_KEY (in .dev.vars):
123
+ - Set to same value as AGENTSHIELD_API_KEY for convenience
124
+ - You can change it if you need separate admin endpoint security
125
+ - Required for admin endpoints like /admin/clear-cache
126
+
127
+ 2. KV Namespaces (auto-provisioned by Wrangler v4):
128
+ - Required for MCP-I security features
129
+ - ✨ Automatically created on first deploy - no setup needed!
130
+ - Wrangler updates wrangler.toml with namespace IDs
131
+
132
+ πŸš€ Next Steps:
133
+ cd test-project
134
+ wrangler login # Login to Cloudflare first!
135
+ npm run dev # Start local development
136
+ npm run deploy # Deploy (KV auto-created!)
137
+
138
+
139
+ stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with yarn
140
+ 
141
+ πŸ“¦ Installing dependencies with yarn...
142
+ βœ“ Lockfile created (yarn.lock) - remember to commit it
143
+
144
+ stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with pnpm
145
+ 
146
+ πŸ“¦ Installing dependencies with pnpm...
147
+ βœ“ Lockfile created (pnpm-lock.yaml) - remember to commit it
148
+
149
+ stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should use correct working directory
150
+ 
151
+ πŸ“¦ Installing dependencies with npm...
152
+ βœ“ Lockfile created (package-lock.json) - remember to commit it
153
+
154
+
155
+  ❯ src/__tests__/cli-runner.test.ts 1/4
156
+  ❯ src/__tests__/cloudflare-template.test.ts 0/30
157
+  ❯ src/__tests__/e2e/scaffolder-dependency-verification.test.ts 0/7
158
+  ❯ src/__tests__/helpers/apply-identity-preset.test.ts 0/16
159
+  ❯ src/__tests__/helpers/create.test.ts 0/13
160
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/25
161
+  ❯ src/__tests__/helpers/fetch-mcpi-template.test.ts 0/16
162
+  ❯ src/__tests__/helpers/install.test.ts 0/21
163
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts 23/23
164
+  ❯ src/__tests__/integration/kta-registration.integration.test.ts 0/4
165
+  ❯ src/__tests__/scaffolder-envprefix.test.ts 0/4
166
+  ❯ src/__tests__/utils/check-node.test.ts 7/7
167
+  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
168
+
169
+  Test Files 2 passed (35)
170
+  Tests 31 passed (184)
171
+  Start at 21:00:39
172
+  Duration 609ms
173
+ [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Install progress reporting > should report correct package manager in log
174
+ ⚠️ Warning: No lockfile generated (pnpm-lock.yaml)
175
+
176
+
177
+  ❯ src/__tests__/cli-runner.test.ts 1/4
178
+  ❯ src/__tests__/cloudflare-template.test.ts 0/30
179
+  ❯ src/__tests__/e2e/scaffolder-dependency-verification.test.ts 0/7
180
+  ❯ src/__tests__/helpers/apply-identity-preset.test.ts 0/16
181
+  ❯ src/__tests__/helpers/create.test.ts 0/13
182
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/25
183
+  ❯ src/__tests__/helpers/fetch-mcpi-template.test.ts 0/16
184
+  ❯ src/__tests__/helpers/install.test.ts 0/21
185
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts 23/23
186
+  ❯ src/__tests__/integration/kta-registration.integration.test.ts 0/4
187
+  ❯ src/__tests__/scaffolder-envprefix.test.ts 0/4
188
+  ❯ src/__tests__/utils/check-node.test.ts 7/7
189
+  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
190
+
191
+  Test Files 2 passed (35)
192
+  Tests 31 passed (184)
193
+  Start at 21:00:39
194
+  Duration 609ms
195
+ [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Install progress reporting > should check for lockfile after installation
196
+ 
197
+ πŸ“¦ Installing dependencies with npm...
198
+ βœ“ Lockfile created (package-lock.json) - remember to commit it
199
+
200
+ stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should throw error when installation fails
201
+ 
202
+ πŸ“¦ Installing dependencies with npm...
203
+
204
+
205
+  ❯ src/__tests__/cli-runner.test.ts 1/4
206
+  ❯ src/__tests__/cloudflare-template.test.ts 0/30
207
+  ❯ src/__tests__/e2e/scaffolder-dependency-verification.test.ts 0/7
208
+  ❯ src/__tests__/helpers/apply-identity-preset.test.ts 0/16
209
+  ❯ src/__tests__/helpers/create.test.ts 0/13
210
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/25
211
+  ❯ src/__tests__/helpers/fetch-mcpi-template.test.ts 0/16
212
+  ❯ src/__tests__/helpers/install.test.ts 0/21
213
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts 23/23
214
+  ❯ src/__tests__/integration/kta-registration.integration.test.ts 0/4
215
+  ❯ src/__tests__/scaffolder-envprefix.test.ts 0/4
216
+  ❯ src/__tests__/utils/check-node.test.ts 7/7
217
+  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
218
+
219
+  Test Files 2 passed (35)
220
+  Tests 31 passed (184)
221
+  Start at 21:00:39
222
+  Duration 609ms
223
+ [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Error handling > should throw error when installation fails
224
+ Failed to install dependencies with npm.
225
+
226
+
227
+  ❯ src/__tests__/cli-runner.test.ts 1/4
228
+  ❯ src/__tests__/cloudflare-template.test.ts 0/30
229
+  ❯ src/__tests__/e2e/scaffolder-dependency-verification.test.ts 0/7
230
+  ❯ src/__tests__/helpers/apply-identity-preset.test.ts 0/16
231
+  ❯ src/__tests__/helpers/create.test.ts 0/13
232
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/25
233
+  ❯ src/__tests__/helpers/fetch-mcpi-template.test.ts 0/16
234
+  ❯ src/__tests__/helpers/install.test.ts 0/21
235
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts 23/23
236
+  ❯ src/__tests__/integration/kta-registration.integration.test.ts 0/4
237
+  ❯ src/__tests__/scaffolder-envprefix.test.ts 0/4
238
+  ❯ src/__tests__/utils/check-node.test.ts 7/7
239
+  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
240
+
241
+  Test Files 2 passed (35)
242
+  Tests 31 passed (184)
243
+  Start at 21:00:39
244
+  Duration 609ms
245
+ [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle network errors during installation
246
+ 
247
+ πŸ“¦ Installing dependencies with npm...
248
+
249
+
250
+  ❯ src/__tests__/cli-runner.test.ts 1/4
251
+  ❯ src/__tests__/cloudflare-template.test.ts 0/30
252
+  ❯ src/__tests__/e2e/scaffolder-dependency-verification.test.ts 0/7
253
+  ❯ src/__tests__/helpers/apply-identity-preset.test.ts 0/16
254
+  ❯ src/__tests__/helpers/create.test.ts 0/13
255
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/25
256
+  ❯ src/__tests__/helpers/fetch-mcpi-template.test.ts 0/16
257
+  ❯ src/__tests__/helpers/install.test.ts 0/21
258
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts 23/23
259
+  ❯ src/__tests__/integration/kta-registration.integration.test.ts 0/4
260
+  ❯ src/__tests__/scaffolder-envprefix.test.ts 0/4
261
+  ❯ src/__tests__/utils/check-node.test.ts 7/7
262
+  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
263
+
264
+  Test Files 2 passed (35)
265
+  Tests 31 passed (184)
266
+  Start at 21:00:39
267
+  Duration 609ms
268
+ [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle network errors during installation
269
+ Failed to install dependencies with npm.
270
+
271
+
272
+  ❯ src/__tests__/cli-runner.test.ts 1/4
273
+  ❯ src/__tests__/cloudflare-template.test.ts 0/30
274
+  ❯ src/__tests__/e2e/scaffolder-dependency-verification.test.ts 0/7
275
+  ❯ src/__tests__/helpers/apply-identity-preset.test.ts 0/16
276
+  ❯ src/__tests__/helpers/create.test.ts 0/13
277
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/25
278
+  ❯ src/__tests__/helpers/fetch-mcpi-template.test.ts 0/16
279
+  ❯ src/__tests__/helpers/install.test.ts 0/21
280
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts 23/23
281
+  ❯ src/__tests__/integration/kta-registration.integration.test.ts 0/4
282
+  ❯ src/__tests__/scaffolder-envprefix.test.ts 0/4
283
+  ❯ src/__tests__/utils/check-node.test.ts 7/7
284
+  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
285
+
286
+  Test Files 2 passed (35)
287
+  Tests 31 passed (184)
288
+  Start at 21:00:39
289
+  Duration 609ms
290
+ [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle permission errors during installation
291
+ 
292
+ πŸ“¦ Installing dependencies with npm...
293
+
294
+
295
+  ❯ src/__tests__/cli-runner.test.ts 1/4
296
+  ❯ src/__tests__/cloudflare-template.test.ts 0/30
297
+  ❯ src/__tests__/e2e/scaffolder-dependency-verification.test.ts 0/7
298
+  ❯ src/__tests__/helpers/apply-identity-preset.test.ts 0/16
299
+  ❯ src/__tests__/helpers/create.test.ts 0/13
300
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/25
301
+  ❯ src/__tests__/helpers/fetch-mcpi-template.test.ts 0/16
302
+  ❯ src/__tests__/helpers/install.test.ts 0/21
303
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts 23/23
304
+  ❯ src/__tests__/integration/kta-registration.integration.test.ts 0/4
305
+  ❯ src/__tests__/scaffolder-envprefix.test.ts 0/4
306
+  ❯ src/__tests__/utils/check-node.test.ts 7/7
307
+  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
308
+
309
+  Test Files 2 passed (35)
310
+  Tests 31 passed (184)
311
+  Start at 21:00:39
312
+  Duration 609ms
313
+ [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle permission errors during installation
314
+ Failed to install dependencies with npm.
315
+
316
+
317
+  ❯ src/__tests__/cli-runner.test.ts 1/4
318
+  ❯ src/__tests__/cloudflare-template.test.ts 0/30
319
+  ❯ src/__tests__/e2e/scaffolder-dependency-verification.test.ts 0/7
320
+  ❯ src/__tests__/helpers/apply-identity-preset.test.ts 0/16
321
+  ❯ src/__tests__/helpers/create.test.ts 0/13
322
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/25
323
+  ❯ src/__tests__/helpers/fetch-mcpi-template.test.ts 0/16
324
+  ❯ src/__tests__/helpers/install.test.ts 0/21
325
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts 23/23
326
+  ❯ src/__tests__/integration/kta-registration.integration.test.ts 0/4
327
+  ❯ src/__tests__/scaffolder-envprefix.test.ts 0/4
328
+  ❯ src/__tests__/utils/check-node.test.ts 7/7
329
+  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
330
+
331
+  Test Files 2 passed (35)
332
+  Tests 31 passed (184)
333
+  Start at 21:00:39
334
+  Duration 609ms
335
+ [?2026l[?2026hstdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should use correct prefix format (uppercase with underscores)
336
+ 
337
+ πŸ—οΈ Generating Cloudflare MCP-I project: my-awesome-agent...
338
+
339
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should use correct prefix format (uppercase with underscores)
340
+ πŸ”‘ Generating cryptographic identity...
341
+
342
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should use correct prefix format (uppercase with underscores)
343
+ βœ” Created Cloudflare MCP-I template files
344
+ - Generated identity keys in .dev.vars
345
+ - Configured wrangler.toml with KV namespaces (auto-provisioned)
346
+ - Created modular tool structure
347
+
348
+ ============================================================
349
+ πŸŽ‰ Cloudflare MCP-I project created successfully!
350
+ ============================================================
351
+
352
+ πŸ“ Important Configuration Notes:
353
+
354
+ 1. ADMIN_API_KEY (in .dev.vars):
355
+ - Set to same value as AGENTSHIELD_API_KEY for convenience
356
+ - You can change it if you need separate admin endpoint security
357
+ - Required for admin endpoints like /admin/clear-cache
358
+
359
+ 2. KV Namespaces (auto-provisioned by Wrangler v4):
360
+ - Required for MCP-I security features
361
+ - ✨ Automatically created on first deploy - no setup needed!
362
+ - Wrangler updates wrangler.toml with namespace IDs
363
+
364
+ πŸš€ Next Steps:
365
+ cd my-awesome-agent
366
+ wrangler login # Login to Cloudflare first!
367
+ npm run dev # Start local development
368
+ npm run deploy # Deploy (KV auto-created!)
369
+
370
+
371
+ 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
372
+ 
373
+ πŸ—οΈ Generating Cloudflare MCP-I project: test-project-env...
374
+
375
+ 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
376
+ πŸ”‘ Generating cryptographic identity...
377
+
378
+ stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should log error message when installation fails
379
+ 
380
+ πŸ“¦ Installing dependencies with npm...
381
+
382
+ stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle invalid package manager gracefully
383
+ 
384
+ πŸ“¦ Installing dependencies with unknown...
385
+
386
+
387
+  ❯ src/__tests__/cli-runner.test.ts 1/4
388
+  ❯ src/__tests__/cloudflare-template.test.ts 0/30
389
+  ❯ src/__tests__/e2e/scaffolder-dependency-verification.test.ts 0/7
390
+  ❯ src/__tests__/helpers/apply-identity-preset.test.ts 0/16
391
+  ❯ src/__tests__/helpers/create.test.ts 0/13
392
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/25
393
+  ❯ src/__tests__/helpers/fetch-mcpi-template.test.ts 0/16
394
+  ❯ src/__tests__/helpers/install.test.ts 0/21
395
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts 23/23
396
+  ❯ src/__tests__/integration/kta-registration.integration.test.ts 0/4
397
+  ❯ src/__tests__/scaffolder-envprefix.test.ts 0/4
398
+  ❯ src/__tests__/utils/check-node.test.ts 7/7
399
+  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
400
+
401
+  Test Files 2 passed (35)
402
+  Tests 31 passed (184)
403
+  Start at 21:00:39
404
+  Duration 609ms
405
+ [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle invalid package manager gracefully
406
+ ⚠️ Warning: Unknown package manager "unknown", cannot check lockfile
407
+
408
+
409
+  ❯ src/__tests__/cli-runner.test.ts 1/4
410
+  ❯ src/__tests__/cloudflare-template.test.ts 0/30
411
+  ❯ src/__tests__/e2e/scaffolder-dependency-verification.test.ts 0/7
412
+  ❯ src/__tests__/helpers/apply-identity-preset.test.ts 0/16
413
+  ❯ src/__tests__/helpers/create.test.ts 0/13
414
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/25
415
+  ❯ src/__tests__/helpers/fetch-mcpi-template.test.ts 0/16
416
+  ❯ src/__tests__/helpers/install.test.ts 0/21
417
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts 23/23
418
+  ❯ src/__tests__/integration/kta-registration.integration.test.ts 0/4
419
+  ❯ src/__tests__/scaffolder-envprefix.test.ts 0/4
420
+  ❯ src/__tests__/utils/check-node.test.ts 7/7
421
+  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
422
+
423
+  Test Files 2 passed (35)
424
+  Tests 31 passed (184)
425
+  Start at 21:00:39
426
+  Duration 609ms
427
+ [?2026l[?2026hstdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include comment explaining envPrefix purpose
428
+ 
429
+ πŸ—οΈ Generating Cloudflare MCP-I project: test-agent...
430
+
431
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include comment explaining envPrefix purpose
432
+ πŸ”‘ Generating cryptographic identity...
433
+
434
+ 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
435
+ βœ” Created Cloudflare MCP-I template files
436
+ - Generated identity keys in .dev.vars
437
+ - Configured wrangler.toml with KV namespaces (auto-provisioned)
438
+ - Created modular tool structure
439
+
440
+ ============================================================
441
+ πŸŽ‰ Cloudflare MCP-I project created successfully!
442
+ ============================================================
443
+
444
+ πŸ“ Important Configuration Notes:
445
+
446
+ 1. ADMIN_API_KEY (in .dev.vars):
447
+ - Set to same value as AGENTSHIELD_API_KEY for convenience
448
+ - You can change it if you need separate admin endpoint security
449
+ - Required for admin endpoints like /admin/clear-cache
450
+
451
+ 2. KV Namespaces (auto-provisioned by Wrangler v4):
452
+ - Required for MCP-I security features
453
+ - ✨ Automatically created on first deploy - no setup needed!
454
+ - Wrangler updates wrangler.toml with namespace IDs
455
+
456
+ πŸš€ Next Steps:
457
+ cd test-project-env
458
+ wrangler login # Login to Cloudflare first!
459
+ npm run dev # Start local development
460
+ npm run deploy # Deploy (KV auto-created!)
461
+
462
+
463
+ stdout | src/__tests__/helpers/install.test.ts > install > Lockfile validation > should warn when lockfile not created
464
+ 
465
+ πŸ“¦ Installing dependencies with npm...
466
+
467
+ stdout | src/__tests__/helpers/install.test.ts > install > Lockfile validation > should warn when package manager lockfile cannot be determined
468
+ 
469
+ πŸ“¦ Installing dependencies with custom...
470
+
471
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include comment explaining envPrefix purpose
472
+ βœ” Created Cloudflare MCP-I template files
473
+ - Generated identity keys in .dev.vars
474
+ - Configured wrangler.toml with KV namespaces (auto-provisioned)
475
+ - Created modular tool structure
476
+
477
+ ============================================================
478
+ πŸŽ‰ Cloudflare MCP-I project created successfully!
479
+ ============================================================
480
+
481
+ πŸ“ Important Configuration Notes:
482
+
483
+ 1. ADMIN_API_KEY (in .dev.vars):
484
+ - Set to same value as AGENTSHIELD_API_KEY for convenience
485
+ - You can change it if you need separate admin endpoint security
486
+ - Required for admin endpoints like /admin/clear-cache
487
+
488
+ 2. KV Namespaces (auto-provisioned by Wrangler v4):
489
+ - Required for MCP-I security features
490
+ - ✨ Automatically created on first deploy - no setup needed!
491
+ - Wrangler updates wrangler.toml with namespace IDs
492
+
493
+ πŸš€ Next Steps:
494
+ cd test-agent
495
+ wrangler login # Login to Cloudflare first!
496
+ npm run dev # Start local development
497
+ npm run deploy # Deploy (KV auto-created!)
498
+
499
+
500
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > passes CLI flags to createProject when using --yes
501
+ 
502
+ create-mcpi-app@1.8.48
503
+
504
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > passes CLI flags to createProject when using --yes
505
+ BANNER
506
+
507
+ Enhanced with identity features by MCP-I
508
+
509
+
510
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > passes CLI flags to createProject when using --yes
511
+ 
512
+ Next Steps:
513
+ 1. Install dependencies:
514
+ cd my-agent
515
+ npm install
516
+
517
+ 2. Start development server:
518
+ npm run dev
519
+
520
+ 3. Deploy when ready:
521
+ npm run start
522
+
523
+ 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
524
+ 
525
+ πŸ—οΈ Generating Cloudflare MCP-I project: test-project-with-id...
526
+
527
+ 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
528
+ πŸ”‘ Generating cryptographic identity...
529
+
530
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > exits when project name validation fails
531
+ 
532
+ create-mcpi-app@1.8.48
533
+
534
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > exits when project name validation fails
535
+ BANNER
536
+
537
+ Enhanced with identity features by MCP-I
538
+
539
+
540
+
541
+  ❯ src/__tests__/cli-runner.test.ts 1/4
542
+  ❯ src/__tests__/cloudflare-template.test.ts 0/30
543
+  ❯ src/__tests__/e2e/scaffolder-dependency-verification.test.ts 0/7
544
+  ❯ src/__tests__/helpers/apply-identity-preset.test.ts 0/16
545
+  ❯ src/__tests__/helpers/create.test.ts 0/13
546
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/25
547
+  ❯ src/__tests__/helpers/fetch-mcpi-template.test.ts 0/16
548
+  ❯ src/__tests__/helpers/install.test.ts 0/21
549
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts 23/23
550
+  ❯ src/__tests__/integration/kta-registration.integration.test.ts 0/4
551
+  ❯ src/__tests__/scaffolder-envprefix.test.ts 0/4
552
+  ❯ src/__tests__/utils/check-node.test.ts 7/7
553
+  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
554
+
555
+  Test Files 2 passed (35)
556
+  Tests 31 passed (184)
557
+  Start at 21:00:39
558
+  Duration 609ms
559
+ [?2026l[?2026hstderr | src/__tests__/cli-runner.test.ts > runCLI > exits when project name validation fails
560
+ Invalid project name:
561
+ - bad
562
+
563
+
564
+  ❯ src/__tests__/cli-runner.test.ts 1/4
565
+  ❯ src/__tests__/cloudflare-template.test.ts 0/30
566
+  ❯ src/__tests__/e2e/scaffolder-dependency-verification.test.ts 0/7
567
+  ❯ src/__tests__/helpers/apply-identity-preset.test.ts 0/16
568
+  ❯ src/__tests__/helpers/create.test.ts 0/13
569
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/25
570
+  ❯ src/__tests__/helpers/fetch-mcpi-template.test.ts 0/16
571
+  ❯ src/__tests__/helpers/install.test.ts 0/21
572
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts 23/23
573
+  ❯ src/__tests__/integration/kta-registration.integration.test.ts 0/4
574
+  ❯ src/__tests__/scaffolder-envprefix.test.ts 0/4
575
+  ❯ src/__tests__/utils/check-node.test.ts 7/7
576
+  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
577
+
578
+  Test Files 2 passed (35)
579
+  Tests 31 passed (184)
580
+  Start at 21:00:39
581
+  Duration 609ms
582
+ [?2026l[?2026hstdout | src/__tests__/cli-runner.test.ts > runCLI > honors package manager and version flags
583
+ 
584
+ create-mcpi-app@1.8.48
585
+
586
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > honors package manager and version flags
587
+ BANNER
588
+
589
+ Enhanced with identity features by MCP-I
590
+
591
+
592
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > honors package manager and version flags
593
+ 
594
+ Next Steps:
595
+ 1. Install dependencies:
596
+ cd pnpm-agent
597
+ pnpm install
598
+
599
+ 2. Initialize identity:
600
+ pnpm init
601
+
602
+ 3. Start development server:
603
+ pnpm dev
604
+
605
+ 4. Deploy when ready:
606
+ pnpm start
607
+
608
+ βœ“ src/__tests__/helpers/validate-project-structure.test.ts (23 tests) 71ms
609
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > prompts for package manager and transports when --yes is not set
610
+ 
611
+ create-mcpi-app@1.8.48
612
+
613
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > prompts for package manager and transports when --yes is not set
614
+ BANNER
615
+
616
+ Enhanced with identity features by MCP-I
617
+
618
+
619
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > prompts for package manager and transports when --yes is not set
620
+ 
621
+ Creating a new xmcp app in /Users/dylanhobbs/Documents/@kya-os/xmcp-i/packages/create-mcpi-app/interactive-app.
622
+
623
+
624
+ stdout | src/__tests__/cli-runner.test.ts > runCLI > prompts for package manager and transports when --yes is not set
625
+ 
626
+ Next Steps:
627
+ 1. Install dependencies:
628
+ cd interactive-app
629
+ pnpm install
630
+
631
+ 2. Start development server:
632
+ pnpm dev
633
+
634
+ 3. Deploy when ready:
635
+ pnpm start
636
+
637
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should match envPrefix with KV binding names in wrangler.toml
638
+ 
639
+ πŸ—οΈ Generating Cloudflare MCP-I project: test-agent...
640
+
641
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should match envPrefix with KV binding names in wrangler.toml
642
+ πŸ”‘ Generating cryptographic identity...
643
+
644
+ 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
645
+ βœ” Created Cloudflare MCP-I template files
646
+ - Generated identity keys in .dev.vars
647
+ - Configured wrangler.toml with KV namespaces (auto-provisioned)
648
+ - Created modular tool structure
649
+
650
+ ============================================================
651
+ πŸŽ‰ Cloudflare MCP-I project created successfully!
652
+ ============================================================
653
+
654
+ πŸ“ Important Configuration Notes:
655
+
656
+ 1. ADMIN_API_KEY (in .dev.vars):
657
+ - Set to same value as AGENTSHIELD_API_KEY for convenience
658
+ - You can change it if you need separate admin endpoint security
659
+ - Required for admin endpoints like /admin/clear-cache
660
+
661
+ 2. KV Namespaces (auto-provisioned by Wrangler v4):
662
+ - Required for MCP-I security features
663
+ - ✨ Automatically created on first deploy - no setup needed!
664
+ - Wrangler updates wrangler.toml with namespace IDs
665
+
666
+ πŸš€ Next Steps:
667
+ cd test-project-with-id
668
+ wrangler login # Login to Cloudflare first!
669
+ npm run dev # Start local development
670
+ npm run deploy # Deploy (KV auto-created!)
671
+
672
+
673
+ 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
674
+ 
675
+ πŸ—οΈ Generating Cloudflare MCP-I project: test-project-no-id...
676
+
677
+ 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
678
+ πŸ”‘ Generating cryptographic identity...
679
+
680
+ 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
681
+ βœ” Created Cloudflare MCP-I template files
682
+ - Generated identity keys in .dev.vars
683
+ - Configured wrangler.toml with KV namespaces (auto-provisioned)
684
+ - Created modular tool structure
685
+
686
+ ============================================================
687
+ πŸŽ‰ Cloudflare MCP-I project created successfully!
688
+ ============================================================
689
+
690
+ πŸ“ Important Configuration Notes:
691
+
692
+ 1. ADMIN_API_KEY (in .dev.vars):
693
+ - Set to same value as AGENTSHIELD_API_KEY for convenience
694
+ - You can change it if you need separate admin endpoint security
695
+ - Required for admin endpoints like /admin/clear-cache
696
+
697
+ 2. KV Namespaces (auto-provisioned by Wrangler v4):
698
+ - Required for MCP-I security features
699
+ - ✨ Automatically created on first deploy - no setup needed!
700
+ - Wrangler updates wrangler.toml with namespace IDs
701
+
702
+ πŸš€ Next Steps:
703
+ cd test-project-no-id
704
+ wrangler login # Login to Cloudflare first!
705
+ npm run dev # Start local development
706
+ npm run deploy # Deploy (KV auto-created!)
707
+
708
+
709
+
710
+  ❯ src/__tests__/cli-runner.test.ts 1/4
711
+  ❯ src/__tests__/cloudflare-template.test.ts 0/30
712
+  ❯ src/__tests__/e2e/scaffolder-dependency-verification.test.ts 0/7
713
+  ❯ src/__tests__/helpers/apply-identity-preset.test.ts 0/16
714
+  ❯ src/__tests__/helpers/create.test.ts 0/13
715
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/25
716
+  ❯ src/__tests__/helpers/fetch-mcpi-template.test.ts 0/16
717
+  ❯ src/__tests__/helpers/install.test.ts 0/21
718
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts 23/23
719
+  ❯ src/__tests__/integration/kta-registration.integration.test.ts 0/4
720
+  ❯ src/__tests__/scaffolder-envprefix.test.ts 0/4
721
+  ❯ src/__tests__/utils/check-node.test.ts 7/7
722
+  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
723
+
724
+  Test Files 2 passed (35)
725
+  Tests 31 passed (184)
726
+  Start at 21:00:39
727
+  Duration 609ms
728
+ [?2026l[?2026h βœ“ src/__tests__/cli-runner.test.ts (4 tests) 192ms
729
+ 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
730
+ 
731
+ πŸ—οΈ Generating Cloudflare MCP-I project: test-project-runtime...
732
+
733
+ 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
734
+ πŸ”‘ Generating cryptographic identity...
735
+
736
+ 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
737
+ βœ” Created Cloudflare MCP-I template files
738
+ - Generated identity keys in .dev.vars
739
+ - Configured wrangler.toml with KV namespaces (auto-provisioned)
740
+ - Created modular tool structure
741
+
742
+ ============================================================
743
+ πŸŽ‰ Cloudflare MCP-I project created successfully!
744
+ ============================================================
745
+
746
+ πŸ“ Important Configuration Notes:
747
+
748
+ 1. ADMIN_API_KEY (in .dev.vars):
749
+ - Set to same value as AGENTSHIELD_API_KEY for convenience
750
+ - You can change it if you need separate admin endpoint security
751
+ - Required for admin endpoints like /admin/clear-cache
752
+
753
+ 2. KV Namespaces (auto-provisioned by Wrangler v4):
754
+ - Required for MCP-I security features
755
+ - ✨ Automatically created on first deploy - no setup needed!
756
+ - Wrangler updates wrangler.toml with namespace IDs
757
+
758
+ πŸš€ Next Steps:
759
+ cd test-project-runtime
760
+ wrangler login # Login to Cloudflare first!
761
+ npm run dev # Start local development
762
+ npm run deploy # Deploy (KV auto-created!)
763
+
764
+
765
+ 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
766
+ 
767
+ πŸ—οΈ Generating Cloudflare MCP-I project: test-project-no-workspace...
768
+
769
+ 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
770
+ πŸ”‘ Generating cryptographic identity...
771
+
772
+ 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
773
+ βœ” Created Cloudflare MCP-I template files
774
+ - Generated identity keys in .dev.vars
775
+ - Configured wrangler.toml with KV namespaces (auto-provisioned)
776
+ - Created modular tool structure
777
+
778
+ ============================================================
779
+ πŸŽ‰ Cloudflare MCP-I project created successfully!
780
+ ============================================================
781
+
782
+ πŸ“ Important Configuration Notes:
783
+
784
+ 1. ADMIN_API_KEY (in .dev.vars):
785
+ - Set to same value as AGENTSHIELD_API_KEY for convenience
786
+ - You can change it if you need separate admin endpoint security
787
+ - Required for admin endpoints like /admin/clear-cache
788
+
789
+ 2. KV Namespaces (auto-provisioned by Wrangler v4):
790
+ - Required for MCP-I security features
791
+ - ✨ Automatically created on first deploy - no setup needed!
792
+ - Wrangler updates wrangler.toml with namespace IDs
793
+
794
+ πŸš€ Next Steps:
795
+ cd test-project-no-workspace
796
+ wrangler login # Login to Cloudflare first!
797
+ npm run dev # Start local development
798
+ npm run deploy # Deploy (KV auto-created!)
799
+
800
+
801
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should match envPrefix with KV binding names in wrangler.toml
802
+ βœ” Created Cloudflare MCP-I template files
803
+ - Generated identity keys in .dev.vars
804
+ - Configured wrangler.toml with KV namespaces (auto-provisioned)
805
+ - Created modular tool structure
806
+
807
+ ============================================================
808
+ πŸŽ‰ Cloudflare MCP-I project created successfully!
809
+ ============================================================
810
+
811
+ πŸ“ Important Configuration Notes:
812
+
813
+ 1. ADMIN_API_KEY (in .dev.vars):
814
+ - Set to same value as AGENTSHIELD_API_KEY for convenience
815
+ - You can change it if you need separate admin endpoint security
816
+ - Required for admin endpoints like /admin/clear-cache
817
+
818
+ 2. KV Namespaces (auto-provisioned by Wrangler v4):
819
+ - Required for MCP-I security features
820
+ - ✨ Automatically created on first deploy - no setup needed!
821
+ - Wrangler updates wrangler.toml with namespace IDs
822
+
823
+ πŸš€ Next Steps:
824
+ cd test-agent
825
+ wrangler login # Login to Cloudflare first!
826
+ npm run dev # Start local development
827
+ npm run deploy # Deploy (KV auto-created!)
828
+
829
+
830
+ βœ“ src/__tests__/helpers/install.test.ts (21 tests) 59ms
831
+ βœ“ src/__tests__/helpers/create.test.ts (13 tests) 96ms
832
+ βœ“ src/__tests__/helpers/fetch-mcpi-template.test.ts (16 tests) 141ms
833
+ βœ“ src/__tests__/e2e/scaffolder-dependency-verification.test.ts (7 tests) 150ms
834
+ βœ“ src/__tests__/scaffolder-envprefix.test.ts (4 tests) 117ms
835
+
836
+  ❯ src/__tests__/cli-runner.test.ts 4/4
837
+  ❯ src/__tests__/cloudflare-template.test.ts 11/30
838
+  ❯ src/__tests__/e2e/scaffolder-dependency-verification.test.ts 7/7
839
+  ❯ src/__tests__/helpers/apply-identity-preset.test.ts 9/16
840
+  ❯ src/__tests__/helpers/create.test.ts 13/13
841
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 4/25
842
+  ❯ src/__tests__/helpers/fetch-mcpi-template.test.ts 16/16
843
+  ❯ src/__tests__/helpers/install.test.ts 21/21
844
+  ❯ src/__tests__/index.test.ts [queued]
845
+  ❯ src/__tests__/integration/kta-registration.integration.test.ts 0/4
846
+  ❯ src/__tests__/scaffolder-envprefix.test.ts 4/4
847
+  ❯ src/__tests__/wrangler-v4-compatibility.test.ts [queued]
848
+  ❯ test-cloudflare/tests/do-routing.test.ts 11/14
849
+
850
+  Test Files 8 passed (35)
851
+  Tests 130 passed (184)
852
+  Start at 21:00:39
853
+  Duration 834ms
854
+ [?2026l[?2026h βœ“ test-cloudflare/tests/do-routing.test.ts (14 tests) 349ms
855
+ βœ“ src/__tests__/helpers/apply-identity-preset.test.ts (16 tests) 323ms
856
+
857
+  ❯ src/__tests__/cloudflare-template.test.ts 12/30
858
+  ❯ src/__tests__/helpers/apply-identity-preset.test.ts 16/16
859
+  ❯ src/__tests__/helpers/copy-template.test.ts 0/11
860
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 11/25
861
+  ❯ src/__tests__/helpers/fetch-xmcp-template.test.ts [queued]
862
+  ❯ src/__tests__/helpers/generate-cloudflare-files.test.ts [queued]
863
+  ❯ src/__tests__/helpers/generate-identity.test.ts [queued]
864
+  ❯ src/__tests__/helpers/rename.test.ts 0/6
865
+  ❯ src/__tests__/index.test.ts 0/4
866
+  ❯ src/__tests__/integration/kta-registration.integration.test.ts 0/4
867
+  ❯ src/__tests__/scaffolder-envprefix.test.ts 4/4
868
+  ❯ src/__tests__/wrangler-v4-compatibility.test.ts 0/11
869
+  ❯ test-cloudflare/tests/do-routing.test.ts 14/14
870
+
871
+  Test Files 10 passed (35)
872
+  Tests 148 passed (216)
873
+  Start at 21:00:39
874
+  Duration 934ms
875
+ [?2026l[?2026h βœ“ src/__tests__/helpers/rename.test.ts (6 tests) 23ms
876
+ βœ“ src/__tests__/index.test.ts (4 tests) 94ms
877
+
878
+  ❯ src/__tests__/cloudflare-template.test.ts 17/30
879
+  ❯ src/__tests__/helpers/apply-identity-preset.test.ts 16/16
880
+  ❯ src/__tests__/helpers/copy-template.test.ts 0/11
881
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 16/25
882
+  ❯ src/__tests__/helpers/fetch-cloudflare-template.test.ts [queued]
883
+  ❯ src/__tests__/helpers/fetch-xmcp-template.test.ts [queued]
884
+  ❯ src/__tests__/helpers/generate-cloudflare-files.test.ts 0/24
885
+  ❯ src/__tests__/helpers/generate-config.test.ts [queued]
886
+  ❯ src/__tests__/helpers/generate-identity.test.ts 0/24
887
+  ❯ src/__tests__/helpers/rename.test.ts 6/6
888
+  ❯ src/__tests__/index.test.ts 4/4
889
+  ❯ src/__tests__/integration/kta-registration.integration.test.ts 0/4
890
+  ❯ src/__tests__/wrangler-v4-compatibility.test.ts 0/11
891
+
892
+  Test Files 12 passed (35)
893
+  Tests 168 passed (264)
894
+  Start at 21:00:39
895
+  Duration 1.03s
896
+ [?2026l[?2026h βœ“ src/__tests__/helpers/generate-cloudflare-files.test.ts (24 tests | 1 skipped) 29ms
897
+ βœ“ src/__tests__/helpers/copy-template.test.ts (11 tests) 45ms
898
+
899
+  ❯ src/__tests__/cloudflare-template.test.ts 27/30
900
+  ❯ src/__tests__/helpers/copy-template.test.ts 11/11
901
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 23/25
902
+  ❯ src/__tests__/helpers/fetch-cloudflare-template.test.ts 0/4
903
+  ❯ src/__tests__/helpers/fetch-xmcp-template.test.ts 0/3
904
+  ❯ src/__tests__/helpers/generate-cloudflare-files.test.ts 24/24
905
+  ❯ src/__tests__/helpers/generate-config.test.ts 0/25
906
+  ❯ src/__tests__/helpers/generate-identity.test.ts 10/24
907
+  ❯ src/__tests__/helpers/identity-manager.test.ts [queued]
908
+  ❯ src/__tests__/index.test.ts 4/4
909
+  ❯ src/__tests__/integration/kta-registration.integration.test.ts 0/4
910
+  ❯ src/__tests__/wrangler-v4-compatibility.test.ts 5/11
911
+  ❯ test-cloudflare/tests/session-management.test.ts [queued]
912
+
913
+  Test Files 14 passed (35)
914
+  Tests 233 passed | 2 skipped (296)
915
+  Start at 21:00:39
916
+  Duration 1.13s
917
+ [?2026l[?2026hstdout | src/__tests__/integration/kta-registration.integration.test.ts > Scaffolder β†’ KTA Registration Integration > CLI Register Endpoint > should successfully register a new agent
918
+  Status: 200
919
+
920
+ stdout | src/__tests__/integration/kta-registration.integration.test.ts > Scaffolder β†’ KTA Registration Integration > CLI Register Endpoint > should successfully register a new agent
921
+  Response: {
922
+ "success": true,
923
+ "did": "did:web:knowthat.ai:agents:testagent-1765767640370",
924
+ "agent": {
925
+ "id": "4765",
926
+ "slug": "testagent-1765767640370",
927
+ "name": "TestAgent_1765767640370",
928
+ "url": "https://knowthat.ai/agents/testagent-1765767640370"
929
+ },
930
+ "claimUrl": "https://knowthat.ai/agents/claim?did=did%3Aweb%3Aknowthat.ai%3Aagents%3Atestagent-1765767640370&token=joBHDJ4BlqDGe36gixiftpJ8nci-Kcp3dM0w0-clPd4",
931
+ "claimToken": "joBHDJ4BlqDGe36gixiftpJ8nci-Kcp3dM0w0-clPd4",
932
+ "keys": {
933
+ "publicKey": "mDXp5VpLmNM1fJpoai0NGVE_C3LuweVzQOzpDIZ-X-Xw",
934
+ "privateKey": "YXxAqxi_fyn_nxiawhHfDrEC-o925DoPrJ5cWoWR8NU",
935
+ "warning": "Store these keys securely. The private key cannot be recovered."
936
+ },
937
+ "responseTime": 183
938
+ }
939
+ Claim URL: https://knowthat.ai/agents/claim?did=did%3Aweb%3Aknowthat.ai%3Aagents%3Atestagent-1765767640370&token=joBHDJ4BlqDGe36gixiftpJ8nci-Kcp3dM0w0-clPd4
940
+
941
+ stdout | src/__tests__/integration/kta-registration.integration.test.ts > Scaffolder β†’ KTA Registration Integration > CLI Register Endpoint > should be idempotent - registering same agent twice returns existing
942
+ πŸ“€ Testing idempotent registration
943
+ DID: did:key:z6Mk1765767641102Idempotent810j04
944
+ First registration...
945
+
946
+ βœ“ src/__tests__/wrangler-v4-compatibility.test.ts (11 tests) 311ms
947
+ βœ“ src/__tests__/helpers/generate-identity.test.ts (24 tests) 131ms
948
+
949
+  ❯ src/__tests__/cloudflare-template.test.ts 28/30
950
+  ❯ src/__tests__/helpers/copy-template.test.ts 11/11
951
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 23/25
952
+  ❯ src/__tests__/helpers/fetch-cloudflare-template.test.ts 4/4
953
+  ❯ src/__tests__/helpers/fetch-xmcp-template.test.ts 3/3
954
+  ❯ src/__tests__/helpers/generate-cloudflare-files.test.ts 24/24
955
+  ❯ src/__tests__/helpers/generate-config.test.ts 15/25
956
+  ❯ src/__tests__/helpers/generate-identity.test.ts 24/24
957
+  ❯ src/__tests__/helpers/get-package-versions.test.ts [queued]
958
+  ❯ src/__tests__/helpers/identity-manager.test.ts 16/16
959
+  ❯ src/__tests__/integration/kta-registration.integration.test.ts 1/4
960
+  ❯ src/__tests__/wrangler-v4-compatibility.test.ts 11/11
961
+  ❯ test-cloudflare/tests/session-management.test.ts 0/17
962
+
963
+  Test Files 19 passed (35)
964
+  Tests 293 passed | 2 skipped (329)
965
+  Start at 21:00:39
966
+  Duration 1.24s
967
+ [?2026l[?2026hstderr | src/__tests__/helpers/fetch-xmcp-template.test.ts > fetchXMCPTemplate > falls back to default when next channel is unavailable
968
+ ⚠️ dist-tag 'next' not available for xmcp, falling back to ^0.3.1
969
+
970
+
971
+  ❯ src/__tests__/cloudflare-template.test.ts 28/30
972
+  ❯ src/__tests__/helpers/copy-template.test.ts 11/11
973
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 23/25
974
+  ❯ src/__tests__/helpers/fetch-cloudflare-template.test.ts 4/4
975
+  ❯ src/__tests__/helpers/fetch-xmcp-template.test.ts 3/3
976
+  ❯ src/__tests__/helpers/generate-cloudflare-files.test.ts 24/24
977
+  ❯ src/__tests__/helpers/generate-config.test.ts 15/25
978
+  ❯ src/__tests__/helpers/generate-identity.test.ts 24/24
979
+  ❯ src/__tests__/helpers/get-package-versions.test.ts [queued]
980
+  ❯ src/__tests__/helpers/identity-manager.test.ts 16/16
981
+  ❯ src/__tests__/integration/kta-registration.integration.test.ts 1/4
982
+  ❯ src/__tests__/wrangler-v4-compatibility.test.ts 11/11
983
+  ❯ test-cloudflare/tests/session-management.test.ts 0/17
984
+
985
+  Test Files 19 passed (35)
986
+  Tests 293 passed | 2 skipped (329)
987
+  Start at 21:00:39
988
+  Duration 1.24s
989
+ [?2026l[?2026h βœ“ src/__tests__/helpers/fetch-cloudflare-template.test.ts (4 tests) 38ms
990
+ βœ“ src/__tests__/helpers/fetch-xmcp-template.test.ts (3 tests) 52ms
991
+ βœ“ src/__tests__/helpers/identity-manager.test.ts (16 tests) 48ms
992
+
993
+  ❯ src/__tests__/cloudflare-template.test.ts 28/30
994
+  ❯ src/__tests__/helpers/copy-template.test.ts 11/11
995
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 23/25
996
+  ❯ src/__tests__/helpers/fetch-cloudflare-template.test.ts 4/4
997
+  ❯ src/__tests__/helpers/fetch-xmcp-template.test.ts 3/3
998
+  ❯ src/__tests__/helpers/generate-cloudflare-files.test.ts 24/24
999
+  ❯ src/__tests__/helpers/generate-config.test.ts 15/25
1000
+  ❯ src/__tests__/helpers/generate-identity.test.ts 24/24
1001
+  ❯ src/__tests__/helpers/get-package-versions.test.ts [queued]
1002
+  ❯ src/__tests__/helpers/identity-manager.test.ts 16/16
1003
+  ❯ src/__tests__/integration/kta-registration.integration.test.ts 1/4
1004
+  ❯ src/__tests__/wrangler-v4-compatibility.test.ts 11/11
1005
+  ❯ test-cloudflare/tests/session-management.test.ts 0/17
1006
+
1007
+  Test Files 19 passed (35)
1008
+  Tests 293 passed | 2 skipped (329)
1009
+  Start at 21:00:39
1010
+  Duration 1.24s
1011
+ [?2026l[?2026hstdout | src/__tests__/integration/kta-registration.integration.test.ts > Scaffolder β†’ KTA Registration Integration > CLI Register Endpoint > should be idempotent - registering same agent twice returns existing
1012
+  First status: 409
1013
+
1014
+ stdout | src/__tests__/integration/kta-registration.integration.test.ts > Scaffolder β†’ KTA Registration Integration > Shadow Register Endpoint > should shadow register a did:key agent
1015
+ πŸ“€ Testing shadow registration
1016
+ DID: did:key:z6Mk1765767641248Shadow1u6j5x
1017
+ URL: https://knowthat.ai/api/agents/shadow-register
1018
+
1019
+ βœ“ src/__tests__/cloudflare-template.test.ts (30 tests | 2 skipped) 673ms
1020
+
1021
+  ❯ src/__tests__/cloudflare-template.test.ts 30/30
1022
+  ❯ src/__tests__/helpers/copy-template.test.ts 11/11
1023
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 25/25
1024
+  ❯ src/__tests__/helpers/fetch-cloudflare-template.test.ts 4/4
1025
+  ❯ src/__tests__/helpers/fetch-xmcp-template.test.ts 3/3
1026
+  ❯ src/__tests__/helpers/generate-cloudflare-files.test.ts 24/24
1027
+  ❯ src/__tests__/helpers/generate-config.test.ts 16/25
1028
+  ❯ src/__tests__/helpers/generate-identity.test.ts 24/24
1029
+  ❯ src/__tests__/helpers/get-package-versions.test.ts [queued]
1030
+  ❯ src/__tests__/helpers/identity-manager.test.ts 16/16
1031
+  ❯ src/__tests__/integration/kta-registration.integration.test.ts 1/4
1032
+  ❯ src/__tests__/wrangler-v4-compatibility.test.ts 11/11
1033
+  ❯ test-cloudflare/tests/session-management.test.ts 0/17
1034
+
1035
+  Test Files 20 passed (35)
1036
+  Tests 297 passed | 3 skipped (329)
1037
+  Start at 21:00:39
1038
+  Duration 1.34s
1039
+ [?2026l[?2026h βœ“ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts (25 tests) 811ms
1040
+ stdout | test-cloudflare/tests/session-management.test.ts > Session Management > Session Security > should not expose session data in logs
1041
+ [Session] Created session: secure-session
1042
+
1043
+ βœ“ test-cloudflare/tests/session-management.test.ts (17 tests) 23ms
1044
+
1045
+  ❯ src/__tests__/cloudflare-template.test.ts 30/30
1046
+  ❯ src/__tests__/helpers/copy-template.test.ts 11/11
1047
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 25/25
1048
+  ❯ src/__tests__/helpers/fetch-cloudflare-template.test.ts 4/4
1049
+  ❯ src/__tests__/helpers/fetch-xmcp-template.test.ts 3/3
1050
+  ❯ src/__tests__/helpers/generate-cloudflare-files.test.ts 24/24
1051
+  ❯ src/__tests__/helpers/generate-config.test.ts 19/25
1052
+  ❯ src/__tests__/helpers/generate-identity.test.ts 24/24
1053
+  ❯ src/__tests__/helpers/get-package-versions.test.ts 0/6
1054
+  ❯ src/__tests__/helpers/identity-manager.test.ts 16/16
1055
+  ❯ src/__tests__/integration/kta-registration.integration.test.ts 2/4
1056
+  ❯ src/__tests__/wrangler-v4-compatibility.test.ts 11/11
1057
+
1058
+  Test Files 22 passed (35)
1059
+  Tests 1 failed | 317 passed | 3 skipped (335)
1060
+  Start at 21:00:39
1061
+  Duration 1.57s
1062
+ [?2026l[?2026h βœ“ src/__tests__/helpers/generate-config.test.ts (25 tests) 431ms
1063
+
1064
+  ❯ src/__tests__/cloudflare-template.test.ts 30/30
1065
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 25/25
1066
+  ❯ src/__tests__/helpers/fetch-cloudflare-template.test.ts 4/4
1067
+  ❯ src/__tests__/helpers/fetch-xmcp-template.test.ts 3/3
1068
+  ❯ src/__tests__/helpers/generate-identity.test.ts 24/24
1069
+  ❯ src/__tests__/helpers/get-package-versions.test.ts 0/6
1070
+  ❯ src/__tests__/helpers/identity-manager.test.ts 16/16
1071
+  ❯ src/__tests__/integration/kta-registration.integration.test.ts 2/4
1072
+  ❯ src/__tests__/wrangler-v4-compatibility.test.ts 11/11
1073
+  ❯ src/helpers/__tests__/generate-cloudflare-files.spec.ts [queued]
1074
+  ❯ test-cloudflare/tests/cache-invalidation.test.ts [queued]
1075
+
1076
+  Test Files 23 passed (35)
1077
+  Tests 1 failed | 323 passed | 3 skipped (335)
1078
+  Start at 21:00:39
1079
+  Duration 1.75s
1080
+ [?2026l[?2026h βœ“ src/__tests__/helpers/get-package-versions.test.ts (6 tests) 201ms
1081
+
1082
+  ❯ src/__tests__/cloudflare-template.test.ts 30/30
1083
+  ❯ src/__tests__/effects/index.test.ts [queued]
1084
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 25/25
1085
+  ❯ src/__tests__/helpers/kta-registration.test.ts [queued]
1086
+  ❯ src/__tests__/integration/kta-registration.integration.test.ts 2/4
1087
+  ❯ src/__tests__/utils/is-folder-empty.test.ts [queued]
1088
+  ❯ src/__tests__/utils/validate-project-name.test.ts [queued]
1089
+  ❯ src/helpers/__tests__/generate-cloudflare-files.spec.ts 0/28
1090
+  ❯ test-cloudflare/tests/cache-invalidation.test.ts 0/18
1091
+  ❯ test-cloudflare/tests/cors-security.test.ts [queued]
1092
+
1093
+  Test Files 24 passed (35)
1094
+  Tests 1 failed | 329 passed | 3 skipped (381)
1095
+  Start at 21:00:39
1096
+  Duration 1.85s
1097
+ [?2026l[?2026h βœ“ test-cloudflare/tests/cache-invalidation.test.ts (18 tests) 11ms
1098
+ βœ“ test-cloudflare/tests/cors-security.test.ts (29 tests) 4ms
1099
+ βœ“ src/helpers/__tests__/generate-cloudflare-files.spec.ts (28 tests) 16ms
1100
+ βœ“ src/__tests__/effects/index.test.ts (5 tests) 9ms
1101
+ βœ“ src/__tests__/helpers/kta-registration.test.ts (8 tests) 27ms
1102
+ βœ“ src/__tests__/utils/validate-project-name.test.ts (29 tests) 32ms
1103
+ βœ“ src/__tests__/utils/is-folder-empty.test.ts (21 tests) 30ms
1104
+
1105
+
1106
+
1107
+
1108
+  ❯ src/__tests__/integration/kta-registration.integration.test.ts 2/4
1109
+  ❯ src/helpers/__tests__/config-builder.spec.ts 0/12
1110
+  ❯ src/utils/__tests__/fetch-remote-config.test.ts [queued]
1111
+  ❯ test-cloudflare/tests/delegation.test.ts [queued]
1112
+
1113
+  Test Files 31 passed (35)
1114
+  Tests 1 failed | 467 passed | 3 skipped (485)
1115
+  Start at 21:00:39
1116
+  Duration 1.95s
1117
+ [?2026l[?2026hstderr | src/helpers/__tests__/config-builder.spec.ts > buildConfigWithRemote > should fallback to local config when remote fetch fails
1118
+ [RemoteConfig] Neither projectId nor agentDid provided
1119
+
1120
+
1121
+
1122
+
1123
+
1124
+
1125
+  ❯ src/__tests__/integration/kta-registration.integration.test.ts 2/4
1126
+
1127
+  Test Files 34 passed (35)
1128
+  Tests 1 failed | 500 passed | 3 skipped (506)
1129
+  Start at 21:00:39
1130
+  Duration 2.96s
1131
+ [?2026l[?2026h βœ“ src/utils/__tests__/fetch-remote-config.test.ts (9 tests) 4ms
1132
+ βœ“ src/helpers/__tests__/config-builder.spec.ts (12 tests) 5ms
1133
+ βœ“ test-cloudflare/tests/delegation.test.ts (12 tests) 9ms
1134
+
1135
+
1136
+
1137
+  ❯ src/__tests__/integration/kta-registration.integration.test.ts 2/4
1138
+
1139
+  Test Files 34 passed (35)
1140
+  Tests 1 failed | 500 passed | 3 skipped (506)
1141
+  Start at 21:00:39
1142
+  Duration 2.96s
1143
+ [?2026l[?2026h
1144
+
1145
+
1146
+  ❯ src/__tests__/integration/kta-registration.integration.test.ts 2/4
1147
+
1148
+  Test Files 34 passed (35)
1149
+  Tests 1 failed | 500 passed | 3 skipped (506)
1150
+  Start at 21:00:39
1151
+  Duration 3.96s
1152
+ [?2026l[?2026hstdout | src/__tests__/integration/kta-registration.integration.test.ts > Scaffolder β†’ KTA Registration Integration > Shadow Register Endpoint > should shadow register a did:key agent
1153
+  Status: 200
1154
+
1155
+ stdout | src/__tests__/integration/kta-registration.integration.test.ts > Scaffolder β†’ KTA Registration Integration > Shadow Register Endpoint > should shadow register a did:key agent
1156
+  Response: {
1157
+ "success": true,
1158
+ "data": {
1159
+ "did": "did:key:z6Mk1765767641248Shadow1u6j5x",
1160
+ "registered": true,
1161
+ "isPublic": false,
1162
+ "alreadyExisted": false,
1163
+ "agentId": 4766
1164
+ }
1165
+ }
1166
+
1167
+
1168
+  ❯ src/__tests__/integration/kta-registration.integration.test.ts 3/4
1169
+
1170
+  Test Files 34 passed (35)
1171
+  Tests 1 failed | 501 passed | 3 skipped (506)
1172
+  Start at 21:00:39
1173
+  Duration 4.47s
1174
+ [?2026l[?2026hstdout | src/__tests__/integration/kta-registration.integration.test.ts > Scaffolder β†’ KTA Registration Integration > Shadow Register Endpoint > should reject non-did:key DIDs for shadow registration
1175
+ πŸ“€ Testing shadow registration rejection for did:web
1176
+
1177
+ stdout | src/__tests__/integration/kta-registration.integration.test.ts > Scaffolder β†’ KTA Registration Integration > Shadow Register Endpoint > should reject non-did:key DIDs for shadow registration
1178
+  Status: 400
1179
+
1180
+ stdout | src/__tests__/integration/kta-registration.integration.test.ts > Scaffolder β†’ KTA Registration Integration > Shadow Register Endpoint > should reject non-did:key DIDs for shadow registration
1181
+  Response: {
1182
+ "success": false,
1183
+ "error": {
1184
+ "code": "validation_error",
1185
+ "message": "Shadow registration is only for did:key agents"
1186
+ }
1187
+ }
1188
+
1189
+
1190
+  ❯ src/__tests__/integration/kta-registration.integration.test.ts 4/4
1191
+
1192
+  Test Files 34 passed (35)
1193
+  Tests 1 failed | 502 passed | 3 skipped (506)
1194
+  Start at 21:00:39
1195
+  Duration 4.67s
1196
+ [?2026l ❯ src/__tests__/integration/kta-registration.integration.test.ts (4 tests | 1 failed) 4276ms
1197
+ βœ“ should successfully register a new agent  732ms
1198
+  Γ— should be idempotent - registering same agent twice returns existing 145ms
1199
+ βœ“ should shadow register a did:key agent  3242ms
1200
+ βœ“ should reject non-did:key DIDs for shadow registration 155ms
1201
+
1202
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
1203
+
1204
+  FAIL  src/__tests__/integration/kta-registration.integration.test.ts > Scaffolder β†’ KTA Registration Integration > CLI Register Endpoint > should be idempotent - registering same agent twice returns existing
1205
+ AssertionError: expected [ 200, 201 ] to include 409
1206
+  ❯ src/__tests__/integration/kta-registration.integration.test.ts:137:28
1207
+ 135| 
1208
+ 136|  console.log(` First status: ${response1.status}`);
1209
+ 137|  expect([200, 201]).toContain(response1.status);
1210
+  |  ^
1211
+ 138| 
1212
+ 139|  const data1 = await response1.json();
1213
+
1214
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/1]⎯
1215
+
1216
+
1217
+  Test Files  1 failed | 34 passed (35)
1218
+  Tests  1 failed | 502 passed | 3 skipped (506)
1219
+  Start at  21:00:39
1220
+  Duration  4.79s (transform 2.35s, setup 0ms, import 5.06s, tests 8.89s, environment 3ms)
1221
+
1222
+ [?25h ELIFECYCLE  Command failed with exit code 1.