@kya-os/create-mcpi-app 1.7.39-canary.2 → 1.7.39-canary.20

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,6 +1,6 @@
1
1
 
2
2
  
3
- > @kya-os/create-mcpi-app@1.7.38 test:coverage /Users/dylanhobbs/Documents/@kya-os/xmcp-i/packages/create-mcpi-app
3
+ > @kya-os/create-mcpi-app@1.7.39-canary.16 test:coverage /Users/dylanhobbs/Documents/@kya-os/xmcp-i/packages/create-mcpi-app
4
4
  > vitest --run --coverage
5
5
 
6
6
  [?25l▲ [WARNING] The condition "types" here will never be used as it comes after both "import" and "require" [package.json]
@@ -44,70 +44,142 @@
44
44
  Coverage enabled with v8
45
45
 
46
46
  [?2026h
47
-  ❯ test-cloudflare/tests/session-management.test.ts [queued]
47
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts [queued]
48
48
 
49
49
   Test Files 0 passed (13)
50
50
   Tests 0 passed (0)
51
-  Start at 05:49:13
52
-  Duration 314ms
53
- [?2026l[?2026hstdout | test-cloudflare/tests/session-management.test.ts > Session Management > Session Security > should not expose session data in logs
54
- [Session] Created session: secure-session
55
-
51
+  Start at 03:43:43
52
+  Duration 225ms
53
+ [?2026l[?2026h ✓ test-cloudflare/tests/cors-security.test.ts (29 tests) 6ms
56
54
 
57
-  ❯ src/__tests__/cloudflare-template.test.ts [queued]
58
55
   ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts [queued]
59
-  ❯ src/__tests__/helpers/generate-config.test.ts [queued]
60
56
   ❯ src/__tests__/helpers/generate-identity.test.ts [queued]
61
57
   ❯ src/__tests__/helpers/install.test.ts [queued]
58
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts [queued]
59
+  ❯ src/helpers/__tests__/config-builder.spec.ts [queued]
62
60
   ❯ src/utils/__tests__/fetch-remote-config.test.ts [queued]
63
61
   ❯ test-cloudflare/tests/cache-invalidation.test.ts [queued]
64
-  ❯ test-cloudflare/tests/cors-security.test.ts 0/29
65
-  ❯ test-cloudflare/tests/delegation.test.ts 0/12
62
+  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
66
63
   ❯ test-cloudflare/tests/session-management.test.ts 0/17
67
64
 
68
-  Test Files 0 passed (13)
69
-  Tests 0 passed (58)
70
-  Start at 05:49:13
71
-  Duration 422ms
72
- [?2026l[?2026h ✓ test-cloudflare/tests/delegation.test.ts (12 tests) 7ms
73
- ✓ test-cloudflare/tests/cors-security.test.ts (29 tests) 6ms
74
- ✓ test-cloudflare/tests/session-management.test.ts (17 tests) 29ms
65
+  Test Files 1 passed (13)
66
+  Tests 29 passed (60)
67
+  Start at 03:43:43
68
+  Duration 333ms
69
+ [?2026l[?2026hstdout | test-cloudflare/tests/session-management.test.ts > Session Management > Session Security > should not expose session data in logs
70
+ [Session] Created session: secure-session
71
+
75
72
 
76
73
   ❯ src/__tests__/cloudflare-template.test.ts [queued]
77
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts [queued]
78
-  ❯ src/__tests__/helpers/generate-config.test.ts [queued]
79
-  ❯ src/__tests__/helpers/generate-identity.test.ts [queued]
80
-  ❯ src/__tests__/helpers/install.test.ts [queued]
74
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/21
75
+  ❯ src/__tests__/helpers/generate-config.test.ts 0/25
76
+  ❯ src/__tests__/helpers/generate-identity.test.ts 0/24
77
+  ❯ src/__tests__/helpers/install.test.ts 0/20
81
78
   ❯ src/__tests__/helpers/validate-project-structure.test.ts [queued]
82
-  ❯ src/helpers/__tests__/config-builder.spec.ts [queued]
83
-  ❯ src/utils/__tests__/fetch-remote-config.test.ts [queued]
84
-  ❯ test-cloudflare/tests/cache-invalidation.test.ts 0/18
79
+  ❯ src/helpers/__tests__/config-builder.spec.ts 12/12
80
+  ❯ src/utils/__tests__/fetch-remote-config.test.ts 0/9
81
+  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
82
+  ❯ test-cloudflare/tests/session-management.test.ts 17/17
83
+
84
+  Test Files 5 passed (13)
85
+  Tests 88 passed (201)
86
+  Start at 03:43:43
87
+  Duration 437ms
88
+ [?2026l[?2026hstderr | src/helpers/__tests__/config-builder.spec.ts > buildConfigWithRemote > should fallback to local config when remote fetch fails
89
+ [RemoteConfig] Neither projectId nor agentDid provided
90
+
91
+
92
+  ❯ src/__tests__/cloudflare-template.test.ts [queued]
93
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/21
94
+  ❯ src/__tests__/helpers/generate-config.test.ts 0/25
95
+  ❯ src/__tests__/helpers/generate-identity.test.ts 0/24
96
+  ❯ src/__tests__/helpers/install.test.ts 0/20
97
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts [queued]
98
+  ❯ src/helpers/__tests__/config-builder.spec.ts 12/12
99
+  ❯ src/utils/__tests__/fetch-remote-config.test.ts 0/9
85
100
   ❯ test-cloudflare/tests/do-routing.test.ts 0/14
101
+  ❯ test-cloudflare/tests/session-management.test.ts 17/17
86
102
 
87
-  Test Files 3 passed (13)
88
-  Tests 58 passed (90)
89
-  Start at 05:49:13
90
-  Duration 529ms
91
- [?2026l[?2026h ✓ test-cloudflare/tests/cache-invalidation.test.ts (18 tests) 49ms
103
+  Test Files 5 passed (13)
104
+  Tests 88 passed (201)
105
+  Start at 03:43:43
106
+  Duration 437ms
107
+ [?2026l[?2026h ✓ test-cloudflare/tests/session-management.test.ts (17 tests) 57ms
108
+ ✓ src/helpers/__tests__/config-builder.spec.ts (12 tests) 4ms
109
+ ✓ test-cloudflare/tests/cache-invalidation.test.ts (18 tests) 5ms
110
+ stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with npm
111
+ 
112
+ 📦 Installing dependencies with npm...
113
+ ✓ Lockfile created (package-lock.json) - remember to commit it
92
114
 
115
+ stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with yarn
116
+ 
117
+ 📦 Installing dependencies with yarn...
118
+ ✓ Lockfile created (yarn.lock) - remember to commit it
93
119
 
94
-  src/__tests__/cloudflare-template.test.ts 0/24
95
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/19
120
+ stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with pnpm
121
+ 
122
+ 📦 Installing dependencies with pnpm...
123
+ ✓ Lockfile created (pnpm-lock.yaml) - remember to commit it
124
+
125
+ stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should use correct working directory
126
+ 
127
+ 📦 Installing dependencies with npm...
128
+ ✓ Lockfile created (package-lock.json) - remember to commit it
129
+
130
+
131
+  ❯ src/__tests__/cloudflare-template.test.ts [queued]
132
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/21
96
133
   ❯ src/__tests__/helpers/generate-config.test.ts 0/25
97
134
   ❯ src/__tests__/helpers/generate-identity.test.ts 0/24
98
135
   ❯ src/__tests__/helpers/install.test.ts 0/20
99
136
   ❯ src/__tests__/helpers/validate-project-structure.test.ts [queued]
100
-  ❯ src/helpers/__tests__/config-builder.spec.ts 1/12
137
+  ❯ src/helpers/__tests__/config-builder.spec.ts 12/12
138
+  ❯ src/utils/__tests__/fetch-remote-config.test.ts 0/9
101
139
   ❯ test-cloudflare/tests/do-routing.test.ts 0/14
140
+  ❯ test-cloudflare/tests/session-management.test.ts 17/17
102
141
 
103
142
   Test Files 5 passed (13)
104
-  Tests 86 passed (223)
105
-  Start at 05:49:13
106
-  Duration 729ms
107
- [?2026l[?2026hstderr | src/utils/__tests__/fetch-remote-config.test.ts > fetchRemoteConfig > Error handling > should return null if API request fails
143
+  Tests 88 passed (201)
144
+  Start at 03:43:43
145
+  Duration 437ms
146
+ [?2026l[?2026hstderr | src/utils/__tests__/fetch-remote-config.test.ts > fetchRemoteConfig > Error handling > should return null if API request fails
108
147
  [RemoteConfig] API returned 404: Not Found
109
148
 
110
- stderr | src/utils/__tests__/fetch-remote-config.test.ts > fetchRemoteConfig > Error handling > should return null if API throws error
149
+
150
+  ❯ src/__tests__/cloudflare-template.test.ts [queued]
151
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/21
152
+  ❯ src/__tests__/helpers/generate-config.test.ts 0/25
153
+  ❯ src/__tests__/helpers/generate-identity.test.ts 0/24
154
+  ❯ src/__tests__/helpers/install.test.ts 0/20
155
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts [queued]
156
+  ❯ src/helpers/__tests__/config-builder.spec.ts 12/12
157
+  ❯ src/utils/__tests__/fetch-remote-config.test.ts 0/9
158
+  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
159
+  ❯ test-cloudflare/tests/session-management.test.ts 17/17
160
+
161
+  Test Files 5 passed (13)
162
+  Tests 88 passed (201)
163
+  Start at 03:43:43
164
+  Duration 437ms
165
+ [?2026l[?2026h ✓ test-cloudflare/tests/delegation.test.ts (12 tests) 6ms
166
+
167
+  ❯ src/__tests__/cloudflare-template.test.ts [queued]
168
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/21
169
+  ❯ src/__tests__/helpers/generate-config.test.ts 0/25
170
+  ❯ src/__tests__/helpers/generate-identity.test.ts 0/24
171
+  ❯ src/__tests__/helpers/install.test.ts 0/20
172
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts [queued]
173
+  ❯ src/helpers/__tests__/config-builder.spec.ts 12/12
174
+  ❯ src/utils/__tests__/fetch-remote-config.test.ts 0/9
175
+  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
176
+  ❯ test-cloudflare/tests/session-management.test.ts 17/17
177
+
178
+  Test Files 5 passed (13)
179
+  Tests 88 passed (201)
180
+  Start at 03:43:43
181
+  Duration 437ms
182
+ [?2026l[?2026hstderr | src/utils/__tests__/fetch-remote-config.test.ts > fetchRemoteConfig > Error handling > should return null if API throws error
111
183
  [RemoteConfig] Failed to fetch config: Error: Network error
112
184
  at /Users/dylanhobbs/Documents/@kya-os/xmcp-i/packages/create-mcpi-app/src/utils/__tests__/fetch-remote-config.test.ts:173:35
113
185
  at file:///Users/dylanhobbs/Documents/@kya-os/xmcp-i/node_modules/.pnpm/@vitest+runner@4.0.5/node_modules/@vitest/runner/dist/index.js:157:11
@@ -136,243 +208,289 @@
136
208
  at runSuite (file:///Users/dylanhobbs/Documents/@kya-os/xmcp-i/node_modules/.pnpm/@vitest+runner@4.0.5/node_modules/@vitest/runner/dist/index.js:1468:8)
137
209
  at runSuite (file:///Users/dylanhobbs/Documents/@kya-os/xmcp-i/node_modules/.pnpm/@vitest+runner@4.0.5/node_modules/@vitest/runner/dist/index.js:1468:8)
138
210
 
211
+ stderr | src/__tests__/helpers/install.test.ts > install > Install progress reporting > should report correct package manager in log
212
+ ⚠️ Warning: No lockfile generated (pnpm-lock.yaml)
139
213
 
140
-  ❯ src/__tests__/cloudflare-template.test.ts 0/24
141
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/19
214
+
215
+  ❯ src/__tests__/cloudflare-template.test.ts [queued]
216
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/21
142
217
   ❯ src/__tests__/helpers/generate-config.test.ts 0/25
143
218
   ❯ src/__tests__/helpers/generate-identity.test.ts 0/24
144
219
   ❯ src/__tests__/helpers/install.test.ts 0/20
145
220
   ❯ src/__tests__/helpers/validate-project-structure.test.ts [queued]
146
-  ❯ src/helpers/__tests__/config-builder.spec.ts 1/12
221
+  ❯ src/helpers/__tests__/config-builder.spec.ts 12/12
222
+  ❯ src/utils/__tests__/fetch-remote-config.test.ts 0/9
147
223
   ❯ test-cloudflare/tests/do-routing.test.ts 0/14
224
+  ❯ test-cloudflare/tests/session-management.test.ts 17/17
148
225
 
149
226
   Test Files 5 passed (13)
150
-  Tests 86 passed (223)
151
-  Start at 05:49:13
152
-  Duration 729ms
153
- [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with npm
227
+  Tests 88 passed (201)
228
+  Start at 03:43:43
229
+  Duration 437ms
230
+ [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Install progress reporting > should check for lockfile after installation
154
231
  
155
232
  📦 Installing dependencies with npm...
156
233
  ✓ Lockfile created (package-lock.json) - remember to commit it
157
234
 
158
- ✓ src/utils/__tests__/fetch-remote-config.test.ts (9 tests) 37ms
235
+ stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should throw error when installation fails
236
+ 
237
+ 📦 Installing dependencies with npm...
159
238
 
160
-  ❯ src/__tests__/cloudflare-template.test.ts 0/24
161
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/19
239
+
240
+  ❯ src/__tests__/cloudflare-template.test.ts [queued]
241
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/21
162
242
   ❯ src/__tests__/helpers/generate-config.test.ts 0/25
163
243
   ❯ src/__tests__/helpers/generate-identity.test.ts 0/24
164
244
   ❯ src/__tests__/helpers/install.test.ts 0/20
165
245
   ❯ src/__tests__/helpers/validate-project-structure.test.ts [queued]
166
-  ❯ src/helpers/__tests__/config-builder.spec.ts 1/12
246
+  ❯ src/helpers/__tests__/config-builder.spec.ts 12/12
247
+  ❯ src/utils/__tests__/fetch-remote-config.test.ts 0/9
167
248
   ❯ test-cloudflare/tests/do-routing.test.ts 0/14
249
+  ❯ test-cloudflare/tests/session-management.test.ts 17/17
168
250
 
169
251
   Test Files 5 passed (13)
170
-  Tests 86 passed (223)
171
-  Start at 05:49:13
172
-  Duration 729ms
173
- [?2026l[?2026hstderr | src/helpers/__tests__/config-builder.spec.ts > buildConfigWithRemote > should fallback to local config when remote fetch fails
174
- [RemoteConfig] Neither projectId nor agentDid provided
252
+  Tests 88 passed (201)
253
+  Start at 03:43:43
254
+  Duration 437ms
255
+ [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Error handling > should throw error when installation fails
256
+ Failed to install dependencies with npm.
175
257
 
176
258
 
177
-  ❯ src/__tests__/cloudflare-template.test.ts 0/24
178
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/19
259
+  ❯ src/__tests__/cloudflare-template.test.ts [queued]
260
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/21
179
261
   ❯ src/__tests__/helpers/generate-config.test.ts 0/25
180
262
   ❯ src/__tests__/helpers/generate-identity.test.ts 0/24
181
263
   ❯ src/__tests__/helpers/install.test.ts 0/20
182
264
   ❯ src/__tests__/helpers/validate-project-structure.test.ts [queued]
183
-  ❯ src/helpers/__tests__/config-builder.spec.ts 1/12
265
+  ❯ src/helpers/__tests__/config-builder.spec.ts 12/12
266
+  ❯ src/utils/__tests__/fetch-remote-config.test.ts 0/9
184
267
   ❯ test-cloudflare/tests/do-routing.test.ts 0/14
268
+  ❯ test-cloudflare/tests/session-management.test.ts 17/17
185
269
 
186
270
   Test Files 5 passed (13)
187
-  Tests 86 passed (223)
188
-  Start at 05:49:13
189
-  Duration 729ms
190
- [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with yarn
191
- 
192
- 📦 Installing dependencies with yarn...
193
- ✓ Lockfile created (yarn.lock) - remember to commit it
194
-
195
- stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with pnpm
196
- 
197
- 📦 Installing dependencies with pnpm...
198
- ✓ Lockfile created (pnpm-lock.yaml) - remember to commit it
199
-
200
- stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should use correct working directory
271
+  Tests 88 passed (201)
272
+  Start at 03:43:43
273
+  Duration 437ms
274
+ [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle network errors during installation
201
275
  
202
276
  📦 Installing dependencies with npm...
203
- ✓ Lockfile created (package-lock.json) - remember to commit it
204
277
 
205
278
 
206
-  ❯ src/__tests__/cloudflare-template.test.ts 0/24
207
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/19
279
+  ❯ src/__tests__/cloudflare-template.test.ts [queued]
280
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/21
208
281
   ❯ src/__tests__/helpers/generate-config.test.ts 0/25
209
282
   ❯ src/__tests__/helpers/generate-identity.test.ts 0/24
210
283
   ❯ src/__tests__/helpers/install.test.ts 0/20
211
284
   ❯ src/__tests__/helpers/validate-project-structure.test.ts [queued]
212
-  ❯ src/helpers/__tests__/config-builder.spec.ts 1/12
285
+  ❯ src/helpers/__tests__/config-builder.spec.ts 12/12
286
+  ❯ src/utils/__tests__/fetch-remote-config.test.ts 0/9
213
287
   ❯ test-cloudflare/tests/do-routing.test.ts 0/14
288
+  ❯ test-cloudflare/tests/session-management.test.ts 17/17
214
289
 
215
290
   Test Files 5 passed (13)
216
-  Tests 86 passed (223)
217
-  Start at 05:49:13
218
-  Duration 729ms
219
- [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Install progress reporting > should report correct package manager in log
220
- ⚠️ Warning: No lockfile generated (pnpm-lock.yaml)
291
+  Tests 88 passed (201)
292
+  Start at 03:43:43
293
+  Duration 437ms
294
+ [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle network errors during installation
295
+ Failed to install dependencies with npm.
221
296
 
222
297
 
223
-  ❯ src/__tests__/cloudflare-template.test.ts 0/24
224
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/19
298
+  ❯ src/__tests__/cloudflare-template.test.ts [queued]
299
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/21
225
300
   ❯ src/__tests__/helpers/generate-config.test.ts 0/25
226
301
   ❯ src/__tests__/helpers/generate-identity.test.ts 0/24
227
302
   ❯ src/__tests__/helpers/install.test.ts 0/20
228
303
   ❯ src/__tests__/helpers/validate-project-structure.test.ts [queued]
229
-  ❯ src/helpers/__tests__/config-builder.spec.ts 1/12
304
+  ❯ src/helpers/__tests__/config-builder.spec.ts 12/12
305
+  ❯ src/utils/__tests__/fetch-remote-config.test.ts 0/9
230
306
   ❯ test-cloudflare/tests/do-routing.test.ts 0/14
307
+  ❯ test-cloudflare/tests/session-management.test.ts 17/17
231
308
 
232
309
   Test Files 5 passed (13)
233
-  Tests 86 passed (223)
234
-  Start at 05:49:13
235
-  Duration 729ms
236
- [?2026l[?2026h ✓ src/helpers/__tests__/config-builder.spec.ts (12 tests) 22ms
237
- stdout | src/__tests__/helpers/install.test.ts > install > Install progress reporting > should check for lockfile after installation
238
- 
239
- 📦 Installing dependencies with npm...
240
- ✓ Lockfile created (package-lock.json) - remember to commit it
241
-
242
- stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should throw error when installation fails
310
+  Tests 88 passed (201)
311
+  Start at 03:43:43
312
+  Duration 437ms
313
+ [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle permission errors during installation
243
314
  
244
315
  📦 Installing dependencies with npm...
245
316
 
246
317
 
247
-  ❯ src/__tests__/cloudflare-template.test.ts 5/24
248
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 2/19
318
+  ❯ src/__tests__/cloudflare-template.test.ts [queued]
319
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/21
320
+  ❯ src/__tests__/helpers/generate-config.test.ts 0/25
321
+  ❯ src/__tests__/helpers/generate-identity.test.ts 0/24
322
+  ❯ src/__tests__/helpers/install.test.ts 0/20
323
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts [queued]
324
+  ❯ src/helpers/__tests__/config-builder.spec.ts 12/12
325
+  ❯ src/utils/__tests__/fetch-remote-config.test.ts 0/9
326
+  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
327
+  ❯ test-cloudflare/tests/session-management.test.ts 17/17
249
328
 
250
-  Test Files 11 passed (13)
251
-  Tests 210 passed (246)
252
-  Start at 05:49:13
253
-  Duration 831ms
254
- [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Error handling > should throw error when installation fails
329
+  Test Files 5 passed (13)
330
+  Tests 88 passed (201)
331
+  Start at 03:43:43
332
+  Duration 437ms
333
+ [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle permission errors during installation
255
334
  Failed to install dependencies with npm.
256
335
 
257
336
 
258
-  ❯ src/__tests__/cloudflare-template.test.ts 5/24
259
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 2/19
337
+  ❯ src/__tests__/cloudflare-template.test.ts [queued]
338
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/21
339
+  ❯ src/__tests__/helpers/generate-config.test.ts 0/25
340
+  ❯ src/__tests__/helpers/generate-identity.test.ts 0/24
341
+  ❯ src/__tests__/helpers/install.test.ts 0/20
342
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts [queued]
343
+  ❯ src/helpers/__tests__/config-builder.spec.ts 12/12
344
+  ❯ src/utils/__tests__/fetch-remote-config.test.ts 0/9
345
+  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
346
+  ❯ test-cloudflare/tests/session-management.test.ts 17/17
260
347
 
261
-  Test Files 11 passed (13)
262
-  Tests 210 passed (246)
263
-  Start at 05:49:13
264
-  Duration 831ms
265
- [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle network errors during installation
348
+  Test Files 5 passed (13)
349
+  Tests 88 passed (201)
350
+  Start at 03:43:43
351
+  Duration 437ms
352
+ [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Error handling > should log error message when installation fails
266
353
  
267
354
  📦 Installing dependencies with npm...
268
355
 
269
-
270
-  ❯ src/__tests__/cloudflare-template.test.ts 5/24
271
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 2/19
272
-
273
-  Test Files 11 passed (13)
274
-  Tests 210 passed (246)
275
-  Start at 05:49:13
276
-  Duration 831ms
277
- [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle network errors during installation
278
- Failed to install dependencies with npm.
279
-
280
-
281
-  ❯ src/__tests__/cloudflare-template.test.ts 5/24
282
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 2/19
283
-
284
-  Test Files 11 passed (13)
285
-  Tests 210 passed (246)
286
-  Start at 05:49:13
287
-  Duration 831ms
288
- [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle permission errors during installation
356
+ stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle invalid package manager gracefully
289
357
  
290
- 📦 Installing dependencies with npm...
358
+ 📦 Installing dependencies with unknown...
291
359
 
292
360
 
293
-  ❯ src/__tests__/cloudflare-template.test.ts 5/24
294
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 2/19
361
+  ❯ src/__tests__/cloudflare-template.test.ts [queued]
362
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/21
363
+  ❯ src/__tests__/helpers/generate-config.test.ts 0/25
364
+  ❯ src/__tests__/helpers/generate-identity.test.ts 0/24
365
+  ❯ src/__tests__/helpers/install.test.ts 0/20
366
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts [queued]
367
+  ❯ src/helpers/__tests__/config-builder.spec.ts 12/12
368
+  ❯ src/utils/__tests__/fetch-remote-config.test.ts 0/9
369
+  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
370
+  ❯ test-cloudflare/tests/session-management.test.ts 17/17
295
371
 
296
-  Test Files 11 passed (13)
297
-  Tests 210 passed (246)
298
-  Start at 05:49:13
299
-  Duration 831ms
300
- [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle permission errors during installation
301
- Failed to install dependencies with npm.
372
+  Test Files 5 passed (13)
373
+  Tests 88 passed (201)
374
+  Start at 03:43:43
375
+  Duration 437ms
376
+ [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle invalid package manager gracefully
377
+ ⚠️ Warning: Unknown package manager "unknown", cannot check lockfile
302
378
 
303
379
 
304
-  ❯ src/__tests__/cloudflare-template.test.ts 5/24
305
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 2/19
380
+  ❯ src/__tests__/cloudflare-template.test.ts [queued]
381
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/21
382
+  ❯ src/__tests__/helpers/generate-config.test.ts 0/25
383
+  ❯ src/__tests__/helpers/generate-identity.test.ts 0/24
384
+  ❯ src/__tests__/helpers/install.test.ts 0/20
385
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts [queued]
386
+  ❯ src/helpers/__tests__/config-builder.spec.ts 12/12
387
+  ❯ src/utils/__tests__/fetch-remote-config.test.ts 0/9
388
+  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
389
+  ❯ test-cloudflare/tests/session-management.test.ts 17/17
306
390
 
307
-  Test Files 11 passed (13)
308
-  Tests 210 passed (246)
309
-  Start at 05:49:13
310
-  Duration 831ms
311
- [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Error handling > should log error message when installation fails
391
+  Test Files 5 passed (13)
392
+  Tests 88 passed (201)
393
+  Start at 03:43:43
394
+  Duration 437ms
395
+ [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Lockfile validation > should warn when lockfile not created
312
396
  
313
397
  📦 Installing dependencies with npm...
314
398
 
315
- stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle invalid package manager gracefully
316
- 
317
- 📦 Installing dependencies with unknown...
318
399
 
400
+  ❯ src/__tests__/cloudflare-template.test.ts [queued]
401
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/21
402
+  ❯ src/__tests__/helpers/generate-config.test.ts 0/25
403
+  ❯ src/__tests__/helpers/generate-identity.test.ts 0/24
404
+  ❯ src/__tests__/helpers/install.test.ts 0/20
405
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts [queued]
406
+  ❯ src/helpers/__tests__/config-builder.spec.ts 12/12
407
+  ❯ src/utils/__tests__/fetch-remote-config.test.ts 0/9
408
+  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
409
+  ❯ test-cloudflare/tests/session-management.test.ts 17/17
410
+
411
+  Test Files 5 passed (13)
412
+  Tests 88 passed (201)
413
+  Start at 03:43:43
414
+  Duration 437ms
415
+ [?2026l[?2026h ✓ src/__tests__/helpers/install.test.ts (20 tests) 35ms
416
+ ✓ src/utils/__tests__/fetch-remote-config.test.ts (9 tests) 13ms
319
417
 
320
-  ❯ src/__tests__/cloudflare-template.test.ts 5/24
321
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 2/19
322
418
 
323
-  Test Files 11 passed (13)
324
-  Tests 210 passed (246)
325
-  Start at 05:49:13
326
-  Duration 831ms
327
- [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle invalid package manager gracefully
328
- ⚠️ Warning: Unknown package manager "unknown", cannot check lockfile
419
+  src/__tests__/cloudflare-template.test.ts [queued]
420
+  src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/21
421
+  src/__tests__/helpers/generate-config.test.ts 0/25
422
+  ❯ src/__tests__/helpers/generate-identity.test.ts 0/24
423
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts 1/23
424
+  src/helpers/__tests__/config-builder.spec.ts 12/12
425
+  ❯ test-cloudflare/tests/do-routing.test.ts 10/14
426
+  ❯ test-cloudflare/tests/session-management.test.ts 17/17
329
427
 
428
+  Test Files 7 passed (13)
429
+  Tests 128 passed (224)
430
+  Start at 03:43:43
431
+  Duration 663ms
432
+ [?2026l[?2026h ✓ src/__tests__/helpers/generate-identity.test.ts (24 tests) 41ms
433
+ ✓ src/__tests__/helpers/validate-project-structure.test.ts (23 tests) 150ms
434
+ ✓ src/__tests__/helpers/generate-config.test.ts (25 tests) 172ms
330
435
 
331
-  ❯ src/__tests__/cloudflare-template.test.ts 5/24
332
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 2/19
333
436
 
334
-  Test Files 11 passed (13)
335
-  Tests 210 passed (246)
336
-  Start at 05:49:13
337
-  Duration 831ms
338
- [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Lockfile validation > should warn when lockfile not created
339
- 
340
- 📦 Installing dependencies with npm...
341
437
 
342
- ✓ src/__tests__/helpers/generate-config.test.ts (25 tests) 148ms
343
- ✓ src/__tests__/helpers/generate-identity.test.ts (24 tests) 131ms
344
- ✓ src/__tests__/helpers/install.test.ts (20 tests) 159ms
345
- ✓ test-cloudflare/tests/do-routing.test.ts (14 tests) 198ms
346
- ✓ src/__tests__/helpers/validate-project-structure.test.ts (23 tests) 61ms
347
-
348
-  src/__tests__/cloudflare-template.test.ts 5/24
349
-  src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 2/19
350
-
351
-  Test Files 11 passed (13)
352
-  Tests 210 passed (246)
353
-  Start at 05:49:13
354
-  Duration 831ms
355
- [?2026l ✓ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts (19 tests) 278ms
356
- ✓ src/__tests__/cloudflare-template.test.ts (24 tests) 321ms
357
-
358
-  Test Files  13 passed (13)
359
-  Tests  246 passed (246)
360
-  Start at  05:49:13
361
-  Duration  994ms (transform 1.04s, setup 0ms, collect 1.87s, tests 1.45s, environment 3ms, prepare 763ms)
362
-
363
-  % Coverage report from v8
364
- -------------------------------|---------|----------|---------|---------|-------------------
365
- File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
366
- -------------------------------|---------|----------|---------|---------|-------------------
367
- All files  |  96.52 |  93.79 |  100 |  96.52 |  
368
-  helpers  |  97.32 |  94.78 |  100 |  97.32 |  
369
-  config-builder.ts  |  100 |  100 |  100 |  100 |  
370
-  ...oudflare-mcpi-template.ts |  94.64 |  89.65 |  100 |  94.64 | ...1013,1118-1126
371
-  generate-config.ts  |  100 |  100 |  100 |  100 |  
372
-  generate-identity.ts  |  100 |  100 |  100 |  100 |  
373
-  install.ts  |  100 |  100 |  100 |  100 |  
374
-  ...date-project-structure.ts |  100 |  100 |  100 |  100 |  
375
-  utils  |  91.42 |  90 |  100 |  91.42 |  
376
-  fetch-remote-config.ts  |  91.42 |  90 |  100 |  91.42 | 152-153,169 
377
- -------------------------------|---------|----------|---------|---------|-------------------
378
- [?25h
438
+  src/__tests__/cloudflare-template.test.ts 0/24
439
+  src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 8/21
440
+  src/helpers/__tests__/config-builder.spec.ts 12/12
441
+  test-cloudflare/tests/do-routing.test.ts 11/14
442
+  test-cloudflare/tests/session-management.test.ts 17/17
443
+
444
+  Test Files 10 passed (13)
445
+  Tests 1 failed | 207 passed (248)
446
+  Start at 03:43:43
447
+  Duration 764ms
448
+ [?2026l[?2026h ❯ test-cloudflare/tests/do-routing.test.ts (14 tests | 1 failed) 442ms
449
+ ✓ should route to different instances for different sessions 14ms
450
+ ✓ should route to same instance for same session 0ms
451
+ ✓ should handle both mcp-session-id header casings 0ms
452
+ ✓ should generate random session if header missing 0ms
453
+ ✓ should distribute requests across shards 50ms
454
+ ✓ should consistently route same session to same shard 0ms
455
+ ✓ should respect custom shard count 2ms
456
+ ✓ should fall back to default when strategy unknown 0ms
457
+ ✓ should use session strategy when not configured 0ms
458
+ ✓ session routing should have O(1) complexity 119ms
459
+  × shard routing should have O(n) complexity for hash 241ms
460
+ ✓ should handle empty session ID 13ms
461
+ ✓ should handle non-numeric shard count 0ms
462
+ ✓ should handle special characters in session ID 1ms
463
+
464
+  src/__tests__/cloudflare-template.test.ts 9/24
465
+  src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 16/21
466
+  src/helpers/__tests__/config-builder.spec.ts 12/12
467
+  test-cloudflare/tests/session-management.test.ts 17/17
468
+
469
+  Test Files 1 failed | 10 passed (13)
470
+  Tests 1 failed | 227 passed (248)
471
+  Start at 03:43:43
472
+  Duration 866ms
473
+ [?2026l ✓ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts (21 tests) 454ms
474
+ ✓ src/__tests__/cloudflare-template.test.ts (24 tests) 283ms
475
+
476
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
477
+
478
+  FAIL  test-cloudflare/tests/do-routing.test.ts > Durable Object Multi-Instance Routing > Performance Characteristics > shard routing should have O(n) complexity for hash
479
+ AssertionError: expected 181.10916599999996 to be less than 100
480
+  ❯ test-cloudflare/tests/do-routing.test.ts:263:44
481
+ 261|  expect(shortDuration).toBeGreaterThan(0);
482
+ 262|  // Both operations should complete in reasonable time (< 100ms total for 1000 iterations)
483
+ 263|  expect(longDuration + shortDuration).toBeLessThan(100);
484
+  |  ^
485
+ 264|  });
486
+ 265|  });
487
+
488
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/1]⎯
489
+
490
+
491
+  Test Files  1 failed | 12 passed (13)
492
+  Tests  1 failed | 247 passed (248)
493
+  Start at  03:43:43
494
+  Duration  1.09s (transform 669ms, setup 0ms, collect 1.49s, tests 1.67s, environment 1ms, prepare 1.18s)
495
+
496
+ [?25h ELIFECYCLE  Command failed with exit code 1.