@kya-os/create-mcpi-app 1.7.42-canary.20 β†’ 1.7.42-canary.22

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.42-canary.15 test:coverage /Users/dylanhobbs/Documents/@kya-os/xmcp-i/packages/create-mcpi-app
3
+ > @kya-os/create-mcpi-app@1.7.42-canary.20 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,56 +44,104 @@
44
44
  Coverage enabled with v8
45
45
 
46
46
  [?2026h
47
-  ❯ src/__tests__/helpers/install.test.ts [queued]
47
+  ❯ test-cloudflare/tests/delegation.test.ts [queued]
48
48
 
49
49
   Test Files 0 passed (13)
50
50
   Tests 0 passed (0)
51
-  Start at 17:45:11
52
-  Duration 418ms
51
+  Start at 18:05:09
52
+  Duration 101ms
53
53
  [?2026l[?2026h
54
-  ❯ src/__tests__/helpers/install.test.ts [queued]
55
-  ❯ src/helpers/__tests__/config-builder.spec.ts [queued]
56
-
57
-  Test Files 0 passed (13)
58
-  Tests 0 passed (0)
59
-  Start at 17:45:11
60
-  Duration 524ms
61
- [?2026l[?2026h
54
+  ❯ src/__tests__/cloudflare-template.test.ts [queued]
55
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts [queued]
62
56
   ❯ src/__tests__/helpers/generate-config.test.ts [queued]
63
57
   ❯ src/__tests__/helpers/generate-identity.test.ts [queued]
64
58
   ❯ src/__tests__/helpers/install.test.ts [queued]
59
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts [queued]
65
60
   ❯ src/helpers/__tests__/config-builder.spec.ts [queued]
61
+  ❯ src/utils/__tests__/fetch-remote-config.test.ts [queued]
62
+  ❯ test-cloudflare/tests/cors-security.test.ts 0/29
63
+  ❯ test-cloudflare/tests/delegation.test.ts [queued]
66
64
   ❯ test-cloudflare/tests/do-routing.test.ts [queued]
67
65
   ❯ test-cloudflare/tests/session-management.test.ts [queued]
68
66
 
69
67
   Test Files 0 passed (13)
70
-  Tests 0 passed (0)
71
-  Start at 17:45:11
72
-  Duration 658ms
73
- [?2026l[?2026hstdout | test-cloudflare/tests/session-management.test.ts > Session Management > Session Security > should not expose session data in logs
68
+  Tests 0 passed (29)
69
+  Start at 18:05:09
70
+  Duration 304ms
71
+ [?2026l[?2026h βœ“ test-cloudflare/tests/cors-security.test.ts (29 tests) 7ms
72
+ stdout | test-cloudflare/tests/session-management.test.ts > Session Management > Session Security > should not expose session data in logs
74
73
  [Session] Created session: secure-session
75
74
 
75
+ βœ“ test-cloudflare/tests/session-management.test.ts (17 tests) 17ms
76
+ βœ“ test-cloudflare/tests/delegation.test.ts (12 tests) 10ms
76
77
 
77
78
   ❯ src/__tests__/cloudflare-template.test.ts [queued]
78
79
   ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts [queued]
79
-  ❯ src/__tests__/helpers/generate-config.test.ts [queued]
80
-  ❯ src/__tests__/helpers/generate-identity.test.ts [queued]
81
-  ❯ src/__tests__/helpers/install.test.ts 0/20
82
-  ❯ src/__tests__/helpers/validate-project-structure.test.ts [queued]
83
-  ❯ src/helpers/__tests__/config-builder.spec.ts [queued]
84
-  ❯ src/utils/__tests__/fetch-remote-config.test.ts [queued]
85
-  ❯ test-cloudflare/tests/cache-invalidation.test.ts [queued]
86
-  ❯ test-cloudflare/tests/cors-security.test.ts 0/29
87
-  ❯ test-cloudflare/tests/delegation.test.ts [queued]
80
+  ❯ src/__tests__/helpers/generate-config.test.ts 0/25
81
+  ❯ src/__tests__/helpers/generate-identity.test.ts 0/24
82
+  ❯ src/__tests__/helpers/install.test.ts [queued]
83
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts 0/23
84
+  ❯ src/utils/__tests__/fetch-remote-config.test.ts 0/9
85
+  ❯ test-cloudflare/tests/cache-invalidation.test.ts 0/18
88
86
   ❯ test-cloudflare/tests/do-routing.test.ts 0/14
89
-  ❯ test-cloudflare/tests/session-management.test.ts 0/17
90
87
 
91
-  Test Files 0 passed (13)
92
-  Tests 0 passed (80)
93
-  Start at 17:45:11
94
-  Duration 760ms
95
- [?2026l[?2026h βœ“ test-cloudflare/tests/cors-security.test.ts (29 tests) 6ms
96
- stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with npm
88
+  Test Files 4 passed (13)
89
+  Tests 70 passed (183)
90
+  Start at 18:05:09
91
+  Duration 409ms
92
+ [?2026l[?2026hstderr | src/helpers/__tests__/config-builder.spec.ts > buildConfigWithRemote > should fallback to local config when remote fetch fails
93
+ [RemoteConfig] Neither projectId nor agentDid provided
94
+
95
+
96
+  ❯ src/__tests__/cloudflare-template.test.ts [queued]
97
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts [queued]
98
+  ❯ src/__tests__/helpers/generate-config.test.ts 0/25
99
+  ❯ src/__tests__/helpers/generate-identity.test.ts 0/24
100
+  ❯ src/__tests__/helpers/install.test.ts [queued]
101
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts 0/23
102
+  ❯ src/utils/__tests__/fetch-remote-config.test.ts 0/9
103
+  ❯ test-cloudflare/tests/cache-invalidation.test.ts 0/18
104
+  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
105
+
106
+  Test Files 4 passed (13)
107
+  Tests 70 passed (183)
108
+  Start at 18:05:09
109
+  Duration 409ms
110
+ [?2026l[?2026h βœ“ src/helpers/__tests__/config-builder.spec.ts (12 tests) 4ms
111
+
112
+  ❯ src/__tests__/cloudflare-template.test.ts [queued]
113
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts [queued]
114
+  ❯ src/__tests__/helpers/generate-config.test.ts 0/25
115
+  ❯ src/__tests__/helpers/generate-identity.test.ts 0/24
116
+  ❯ src/__tests__/helpers/install.test.ts [queued]
117
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts 0/23
118
+  ❯ src/utils/__tests__/fetch-remote-config.test.ts 0/9
119
+  ❯ test-cloudflare/tests/cache-invalidation.test.ts 0/18
120
+  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
121
+
122
+  Test Files 4 passed (13)
123
+  Tests 70 passed (183)
124
+  Start at 18:05:09
125
+  Duration 409ms
126
+ [?2026l[?2026h βœ“ src/__tests__/helpers/generate-identity.test.ts (24 tests) 56ms
127
+ βœ“ src/utils/__tests__/fetch-remote-config.test.ts (9 tests) 5ms
128
+ βœ“ test-cloudflare/tests/cache-invalidation.test.ts (18 tests) 5ms
129
+ βœ“ src/__tests__/helpers/validate-project-structure.test.ts (23 tests) 58ms
130
+ βœ“ src/__tests__/helpers/generate-config.test.ts (25 tests) 67ms
131
+
132
+
133
+
134
+
135
+  ❯ src/__tests__/cloudflare-template.test.ts 0/24
136
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/21
137
+  ❯ src/__tests__/helpers/install.test.ts [queued]
138
+  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
139
+
140
+  Test Files 9 passed (13)
141
+  Tests 169 passed (228)
142
+  Start at 18:05:09
143
+  Duration 510ms
144
+ [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with npm
97
145
  
98
146
  πŸ“¦ Installing dependencies with npm...
99
147
  βœ“ Lockfile created (package-lock.json) - remember to commit it
@@ -114,39 +162,29 @@
114
162
  βœ“ Lockfile created (package-lock.json) - remember to commit it
115
163
 
116
164
 
117
-  ❯ src/__tests__/cloudflare-template.test.ts [queued]
118
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts [queued]
119
-  ❯ src/__tests__/helpers/generate-config.test.ts [queued]
120
-  ❯ src/__tests__/helpers/generate-identity.test.ts 0/24
121
-  ❯ src/__tests__/helpers/validate-project-structure.test.ts [queued]
122
-  ❯ src/helpers/__tests__/config-builder.spec.ts 0/12
123
-  ❯ src/utils/__tests__/fetch-remote-config.test.ts [queued]
124
-  ❯ test-cloudflare/tests/delegation.test.ts 0/12
125
-  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
165
+  ❯ src/__tests__/cloudflare-template.test.ts 0/24
166
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 1/21
167
+  ❯ src/__tests__/helpers/install.test.ts 0/20
168
+  ❯ test-cloudflare/tests/do-routing.test.ts 10/14
126
169
 
127
-  Test Files 4 passed (13)
128
-  Tests 84 passed (146)
129
-  Start at 17:45:11
130
-  Duration 877ms
131
- [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Install progress reporting > should report correct package manager in log
170
+  Test Files 9 passed (13)
171
+  Tests 180 passed (248)
172
+  Start at 18:05:09
173
+  Duration 625ms
174
+ [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Install progress reporting > should report correct package manager in log
132
175
  ⚠️ Warning: No lockfile generated (pnpm-lock.yaml)
133
176
 
134
177
 
135
-  ❯ src/__tests__/cloudflare-template.test.ts [queued]
136
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts [queued]
137
-  ❯ src/__tests__/helpers/generate-config.test.ts [queued]
138
-  ❯ src/__tests__/helpers/generate-identity.test.ts 0/24
139
-  ❯ src/__tests__/helpers/validate-project-structure.test.ts [queued]
140
-  ❯ src/helpers/__tests__/config-builder.spec.ts 0/12
141
-  ❯ src/utils/__tests__/fetch-remote-config.test.ts [queued]
142
-  ❯ test-cloudflare/tests/delegation.test.ts 0/12
143
-  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
178
+  ❯ src/__tests__/cloudflare-template.test.ts 0/24
179
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 1/21
180
+  ❯ src/__tests__/helpers/install.test.ts 0/20
181
+  ❯ test-cloudflare/tests/do-routing.test.ts 10/14
144
182
 
145
-  Test Files 4 passed (13)
146
-  Tests 84 passed (146)
147
-  Start at 17:45:11
148
-  Duration 877ms
149
- [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Install progress reporting > should check for lockfile after installation
183
+  Test Files 9 passed (13)
184
+  Tests 180 passed (248)
185
+  Start at 18:05:09
186
+  Duration 625ms
187
+ [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Install progress reporting > should check for lockfile after installation
150
188
  
151
189
  πŸ“¦ Installing dependencies with npm...
152
190
  βœ“ Lockfile created (package-lock.json) - remember to commit it
@@ -156,113 +194,83 @@
156
194
  πŸ“¦ Installing dependencies with npm...
157
195
 
158
196
 
159
-  ❯ src/__tests__/cloudflare-template.test.ts [queued]
160
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts [queued]
161
-  ❯ src/__tests__/helpers/generate-config.test.ts [queued]
162
-  ❯ src/__tests__/helpers/generate-identity.test.ts 0/24
163
-  ❯ src/__tests__/helpers/validate-project-structure.test.ts [queued]
164
-  ❯ src/helpers/__tests__/config-builder.spec.ts 0/12
165
-  ❯ src/utils/__tests__/fetch-remote-config.test.ts [queued]
166
-  ❯ test-cloudflare/tests/delegation.test.ts 0/12
167
-  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
197
+  ❯ src/__tests__/cloudflare-template.test.ts 0/24
198
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 1/21
199
+  ❯ src/__tests__/helpers/install.test.ts 0/20
200
+  ❯ test-cloudflare/tests/do-routing.test.ts 10/14
168
201
 
169
-  Test Files 4 passed (13)
170
-  Tests 84 passed (146)
171
-  Start at 17:45:11
172
-  Duration 877ms
173
- [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Error handling > should throw error when installation fails
202
+  Test Files 9 passed (13)
203
+  Tests 180 passed (248)
204
+  Start at 18:05:09
205
+  Duration 625ms
206
+ [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Error handling > should throw error when installation fails
174
207
  Failed to install dependencies with npm.
175
208
 
176
209
 
177
-  ❯ src/__tests__/cloudflare-template.test.ts [queued]
178
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts [queued]
179
-  ❯ src/__tests__/helpers/generate-config.test.ts [queued]
180
-  ❯ src/__tests__/helpers/generate-identity.test.ts 0/24
181
-  ❯ src/__tests__/helpers/validate-project-structure.test.ts [queued]
182
-  ❯ src/helpers/__tests__/config-builder.spec.ts 0/12
183
-  ❯ src/utils/__tests__/fetch-remote-config.test.ts [queued]
184
-  ❯ test-cloudflare/tests/delegation.test.ts 0/12
185
-  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
210
+  ❯ src/__tests__/cloudflare-template.test.ts 0/24
211
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 1/21
212
+  ❯ src/__tests__/helpers/install.test.ts 0/20
213
+  ❯ test-cloudflare/tests/do-routing.test.ts 10/14
186
214
 
187
-  Test Files 4 passed (13)
188
-  Tests 84 passed (146)
189
-  Start at 17:45:11
190
-  Duration 877ms
191
- [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle network errors during installation
215
+  Test Files 9 passed (13)
216
+  Tests 180 passed (248)
217
+  Start at 18:05:09
218
+  Duration 625ms
219
+ [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle network errors during installation
192
220
  
193
221
  πŸ“¦ Installing dependencies with npm...
194
222
 
195
223
 
196
-  ❯ src/__tests__/cloudflare-template.test.ts [queued]
197
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts [queued]
198
-  ❯ src/__tests__/helpers/generate-config.test.ts [queued]
199
-  ❯ src/__tests__/helpers/generate-identity.test.ts 0/24
200
-  ❯ src/__tests__/helpers/validate-project-structure.test.ts [queued]
201
-  ❯ src/helpers/__tests__/config-builder.spec.ts 0/12
202
-  ❯ src/utils/__tests__/fetch-remote-config.test.ts [queued]
203
-  ❯ test-cloudflare/tests/delegation.test.ts 0/12
204
-  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
224
+  ❯ src/__tests__/cloudflare-template.test.ts 0/24
225
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 1/21
226
+  ❯ src/__tests__/helpers/install.test.ts 0/20
227
+  ❯ test-cloudflare/tests/do-routing.test.ts 10/14
205
228
 
206
-  Test Files 4 passed (13)
207
-  Tests 84 passed (146)
208
-  Start at 17:45:11
209
-  Duration 877ms
210
- [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle network errors during installation
229
+  Test Files 9 passed (13)
230
+  Tests 180 passed (248)
231
+  Start at 18:05:09
232
+  Duration 625ms
233
+ [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle network errors during installation
211
234
  Failed to install dependencies with npm.
212
235
 
213
236
 
214
-  ❯ src/__tests__/cloudflare-template.test.ts [queued]
215
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts [queued]
216
-  ❯ src/__tests__/helpers/generate-config.test.ts [queued]
217
-  ❯ src/__tests__/helpers/generate-identity.test.ts 0/24
218
-  ❯ src/__tests__/helpers/validate-project-structure.test.ts [queued]
219
-  ❯ src/helpers/__tests__/config-builder.spec.ts 0/12
220
-  ❯ src/utils/__tests__/fetch-remote-config.test.ts [queued]
221
-  ❯ test-cloudflare/tests/delegation.test.ts 0/12
222
-  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
237
+  ❯ src/__tests__/cloudflare-template.test.ts 0/24
238
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 1/21
239
+  ❯ src/__tests__/helpers/install.test.ts 0/20
240
+  ❯ test-cloudflare/tests/do-routing.test.ts 10/14
223
241
 
224
-  Test Files 4 passed (13)
225
-  Tests 84 passed (146)
226
-  Start at 17:45:11
227
-  Duration 877ms
228
- [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle permission errors during installation
242
+  Test Files 9 passed (13)
243
+  Tests 180 passed (248)
244
+  Start at 18:05:09
245
+  Duration 625ms
246
+ [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle permission errors during installation
229
247
  
230
248
  πŸ“¦ Installing dependencies with npm...
231
249
 
232
250
 
233
-  ❯ src/__tests__/cloudflare-template.test.ts [queued]
234
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts [queued]
235
-  ❯ src/__tests__/helpers/generate-config.test.ts [queued]
236
-  ❯ src/__tests__/helpers/generate-identity.test.ts 0/24
237
-  ❯ src/__tests__/helpers/validate-project-structure.test.ts [queued]
238
-  ❯ src/helpers/__tests__/config-builder.spec.ts 0/12
239
-  ❯ src/utils/__tests__/fetch-remote-config.test.ts [queued]
240
-  ❯ test-cloudflare/tests/delegation.test.ts 0/12
241
-  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
251
+  ❯ src/__tests__/cloudflare-template.test.ts 0/24
252
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 1/21
253
+  ❯ src/__tests__/helpers/install.test.ts 0/20
254
+  ❯ test-cloudflare/tests/do-routing.test.ts 10/14
242
255
 
243
-  Test Files 4 passed (13)
244
-  Tests 84 passed (146)
245
-  Start at 17:45:11
246
-  Duration 877ms
247
- [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle permission errors during installation
256
+  Test Files 9 passed (13)
257
+  Tests 180 passed (248)
258
+  Start at 18:05:09
259
+  Duration 625ms
260
+ [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle permission errors during installation
248
261
  Failed to install dependencies with npm.
249
262
 
250
263
 
251
-  ❯ src/__tests__/cloudflare-template.test.ts [queued]
252
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts [queued]
253
-  ❯ src/__tests__/helpers/generate-config.test.ts [queued]
254
-  ❯ src/__tests__/helpers/generate-identity.test.ts 0/24
255
-  ❯ src/__tests__/helpers/validate-project-structure.test.ts [queued]
256
-  ❯ src/helpers/__tests__/config-builder.spec.ts 0/12
257
-  ❯ src/utils/__tests__/fetch-remote-config.test.ts [queued]
258
-  ❯ test-cloudflare/tests/delegation.test.ts 0/12
259
-  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
264
+  ❯ src/__tests__/cloudflare-template.test.ts 0/24
265
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 1/21
266
+  ❯ src/__tests__/helpers/install.test.ts 0/20
267
+  ❯ test-cloudflare/tests/do-routing.test.ts 10/14
260
268
 
261
-  Test Files 4 passed (13)
262
-  Tests 84 passed (146)
263
-  Start at 17:45:11
264
-  Duration 877ms
265
- [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Error handling > should log error message when installation fails
269
+  Test Files 9 passed (13)
270
+  Tests 180 passed (248)
271
+  Start at 18:05:09
272
+  Duration 625ms
273
+ [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Error handling > should log error message when installation fails
266
274
  
267
275
  πŸ“¦ Installing dependencies with npm...
268
276
 
@@ -271,143 +279,87 @@
271
279
  πŸ“¦ Installing dependencies with unknown...
272
280
 
273
281
 
274
-  ❯ src/__tests__/cloudflare-template.test.ts [queued]
275
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts [queued]
276
-  ❯ src/__tests__/helpers/generate-config.test.ts [queued]
277
-  ❯ src/__tests__/helpers/generate-identity.test.ts 0/24
278
-  ❯ src/__tests__/helpers/validate-project-structure.test.ts [queued]
279
-  ❯ src/helpers/__tests__/config-builder.spec.ts 0/12
280
-  ❯ src/utils/__tests__/fetch-remote-config.test.ts [queued]
281
-  ❯ test-cloudflare/tests/delegation.test.ts 0/12
282
-  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
282
+  ❯ src/__tests__/cloudflare-template.test.ts 0/24
283
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 1/21
284
+  ❯ src/__tests__/helpers/install.test.ts 0/20
285
+  ❯ test-cloudflare/tests/do-routing.test.ts 10/14
283
286
 
284
-  Test Files 4 passed (13)
285
-  Tests 84 passed (146)
286
-  Start at 17:45:11
287
-  Duration 877ms
288
- [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle invalid package manager gracefully
287
+  Test Files 9 passed (13)
288
+  Tests 180 passed (248)
289
+  Start at 18:05:09
290
+  Duration 625ms
291
+ [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle invalid package manager gracefully
289
292
  ⚠️ Warning: Unknown package manager "unknown", cannot check lockfile
290
293
 
291
294
 
292
-  ❯ src/__tests__/cloudflare-template.test.ts [queued]
293
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts [queued]
294
-  ❯ src/__tests__/helpers/generate-config.test.ts [queued]
295
-  ❯ src/__tests__/helpers/generate-identity.test.ts 0/24
296
-  ❯ src/__tests__/helpers/validate-project-structure.test.ts [queued]
297
-  ❯ src/helpers/__tests__/config-builder.spec.ts 0/12
298
-  ❯ src/utils/__tests__/fetch-remote-config.test.ts [queued]
299
-  ❯ test-cloudflare/tests/delegation.test.ts 0/12
300
-  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
295
+  ❯ src/__tests__/cloudflare-template.test.ts 0/24
296
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 1/21
297
+  ❯ src/__tests__/helpers/install.test.ts 0/20
298
+  ❯ test-cloudflare/tests/do-routing.test.ts 10/14
301
299
 
302
-  Test Files 4 passed (13)
303
-  Tests 84 passed (146)
304
-  Start at 17:45:11
305
-  Duration 877ms
306
- [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Lockfile validation > should warn when lockfile not created
300
+  Test Files 9 passed (13)
301
+  Tests 180 passed (248)
302
+  Start at 18:05:09
303
+  Duration 625ms
304
+ [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Lockfile validation > should warn when lockfile not created
307
305
  
308
306
  πŸ“¦ Installing dependencies with npm...
309
307
 
310
- βœ“ src/__tests__/helpers/install.test.ts (20 tests) 50ms
311
- βœ“ test-cloudflare/tests/cache-invalidation.test.ts (18 tests) 10ms
312
- βœ“ test-cloudflare/tests/session-management.test.ts (17 tests) 21ms
313
-
314
-  ❯ src/__tests__/cloudflare-template.test.ts [queued]
315
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts [queued]
316
-  ❯ src/__tests__/helpers/generate-config.test.ts [queued]
317
-  ❯ src/__tests__/helpers/generate-identity.test.ts 0/24
318
-  ❯ src/__tests__/helpers/validate-project-structure.test.ts [queued]
319
-  ❯ src/helpers/__tests__/config-builder.spec.ts 0/12
320
-  ❯ src/utils/__tests__/fetch-remote-config.test.ts [queued]
321
-  ❯ test-cloudflare/tests/delegation.test.ts 0/12
322
-  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
323
-
324
-  Test Files 4 passed (13)
325
-  Tests 84 passed (146)
326
-  Start at 17:45:11
327
-  Duration 877ms
328
- [?2026l[?2026h βœ“ test-cloudflare/tests/delegation.test.ts (12 tests) 10ms
329
-
330
-
331
-
332
-
333
-  ❯ src/__tests__/cloudflare-template.test.ts 0/24
334
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts [queued]
335
-  ❯ src/__tests__/helpers/generate-config.test.ts 1/25
336
-  ❯ src/__tests__/helpers/validate-project-structure.test.ts 0/23
337
-  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
338
-
339
-  Test Files 8 passed (13)
340
-  Tests 142 passed (227)
341
-  Start at 17:45:11
342
-  Duration 977ms
343
- [?2026l[?2026hstderr | src/helpers/__tests__/config-builder.spec.ts > buildConfigWithRemote > should fallback to local config when remote fetch fails
344
- [RemoteConfig] Neither projectId nor agentDid provided
345
-
346
308
 
347
309
   ❯ src/__tests__/cloudflare-template.test.ts 0/24
348
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts [queued]
349
-  ❯ src/__tests__/helpers/generate-config.test.ts 1/25
350
-  ❯ src/__tests__/helpers/validate-project-structure.test.ts 0/23
351
-  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
352
-
353
-  Test Files 8 passed (13)
354
-  Tests 142 passed (227)
355
-  Start at 17:45:11
356
-  Duration 977ms
357
- [?2026l[?2026h βœ“ src/__tests__/helpers/generate-identity.test.ts (24 tests) 58ms
358
- βœ“ src/helpers/__tests__/config-builder.spec.ts (12 tests) 6ms
359
- βœ“ src/utils/__tests__/fetch-remote-config.test.ts (9 tests) 6ms
360
-
361
-  ❯ src/__tests__/cloudflare-template.test.ts 0/24
362
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts [queued]
363
-  ❯ src/__tests__/helpers/generate-config.test.ts 1/25
364
-  ❯ src/__tests__/helpers/validate-project-structure.test.ts 0/23
365
-  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
366
-
367
-  Test Files 8 passed (13)
368
-  Tests 142 passed (227)
369
-  Start at 17:45:11
370
-  Duration 977ms
371
- [?2026l[?2026h βœ“ src/__tests__/helpers/generate-config.test.ts (25 tests) 86ms
372
- βœ“ src/__tests__/helpers/validate-project-structure.test.ts (23 tests) 80ms
373
- βœ“ test-cloudflare/tests/do-routing.test.ts (14 tests) 395ms
374
- βœ“ session routing should have O(1) complexity  332ms
375
-
376
-  ❯ src/__tests__/cloudflare-template.test.ts 4/24
377
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/21
378
-
379
-  Test Files 11 passed (13)
380
-  Tests 207 passed (248)
381
-  Start at 17:45:11
382
-  Duration 1.08s
383
- [?2026l[?2026h βœ“ src/__tests__/cloudflare-template.test.ts (24 tests) 297ms
384
-
385
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 10/21
386
-
387
-  Test Files 12 passed (13)
388
-  Tests 237 passed (248)
389
-  Start at 17:45:11
390
-  Duration 1.28s
391
- [?2026l βœ“ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts (21 tests) 193ms
392
-
393
-  Test Files  13 passed (13)
394
-  Tests  248 passed (248)
395
-  Start at  17:45:10
396
-  Duration  1.37s (transform 1.55s, setup 0ms, collect 2.79s, tests 1.22s, environment 60ms, prepare 712ms)
397
-
398
-  % Coverage report from v8
399
- -------------------------|---------|----------|---------|---------|-------------------
400
- File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
401
- -------------------------|---------|----------|---------|---------|-------------------
402
- All files  |  96.49 |  94.11 |  100 |  96.49 |  
403
-  helpers  |  97.29 |  95.12 |  100 |  97.29 |  
404
-  config-builder.ts  |  100 |  100 |  100 |  100 |  
405
-  ...re-mcpi-template.ts |  94.54 |  90.9 |  100 |  94.54 | 825,837,942-950 
406
-  generate-config.ts  |  100 |  100 |  100 |  100 |  
407
-  generate-identity.ts  |  100 |  100 |  100 |  100 |  
408
-  install.ts  |  100 |  100 |  100 |  100 |  
409
-  ...roject-structure.ts |  100 |  100 |  100 |  100 |  
410
-  utils  |  91.42 |  90 |  100 |  91.42 |  
411
-  fetch-remote-config.ts |  91.42 |  90 |  100 |  91.42 | 152-153,169 
412
- -------------------------|---------|----------|---------|---------|-------------------
413
- [?25h
310
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 1/21
311
+  ❯ src/__tests__/helpers/install.test.ts 0/20
312
+  ❯ test-cloudflare/tests/do-routing.test.ts 10/14
313
+
314
+  Test Files 9 passed (13)
315
+  Tests 180 passed (248)
316
+  Start at 18:05:09
317
+  Duration 625ms
318
+ [?2026l[?2026h βœ“ src/__tests__/helpers/install.test.ts (20 tests) 31ms
319
+ ❯ test-cloudflare/tests/do-routing.test.ts (14 tests | 1 failed) 326ms
320
+ βœ“ should route to different instances for different sessions 12ms
321
+ βœ“ should route to same instance for same session 0ms
322
+ βœ“ should handle both mcp-session-id header casings 0ms
323
+ βœ“ should generate random session if header missing 0ms
324
+ βœ“ should distribute requests across shards 8ms
325
+ βœ“ should consistently route same session to same shard 0ms
326
+ βœ“ should respect custom shard count 2ms
327
+ βœ“ should fall back to default when strategy unknown 0ms
328
+ βœ“ should use session strategy when not configured 0ms
329
+ βœ“ session routing should have O(1) complexity 192ms
330
+  Γ— shard routing should have O(n) complexity for hash 109ms
331
+ βœ“ should handle empty session ID 0ms
332
+ βœ“ should handle non-numeric shard count 0ms
333
+ βœ“ should handle special characters in session ID 0ms
334
+
335
+  ❯ src/__tests__/cloudflare-template.test.ts 13/24
336
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 14/21
337
+
338
+  Test Files 1 failed | 10 passed (13)
339
+  Tests 1 failed | 229 passed (248)
340
+  Start at 18:05:09
341
+  Duration 842ms
342
+ [?2026l βœ“ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts (21 tests) 330ms
343
+ βœ“ src/__tests__/cloudflare-template.test.ts (24 tests) 350ms
344
+
345
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
346
+
347
+  FAIL  test-cloudflare/tests/do-routing.test.ts > Durable Object Multi-Instance Routing > Performance Characteristics > shard routing should have O(n) complexity for hash
348
+ AssertionError: expected 106.63591699999995 to be less than 100
349
+  ❯ test-cloudflare/tests/do-routing.test.ts:263:44
350
+ 261|  expect(shortDuration).toBeGreaterThan(0);
351
+ 262|  // Both operations should complete in reasonable time (< 100ms total for 1000 iterations)
352
+ 263|  expect(longDuration + shortDuration).toBeLessThan(100);
353
+  |  ^
354
+ 264|  });
355
+ 265|  });
356
+
357
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/1]⎯
358
+
359
+
360
+  Test Files  1 failed | 12 passed (13)
361
+  Tests  1 failed | 247 passed (248)
362
+  Start at  18:05:09
363
+  Duration  990ms (transform 1.08s, setup 0ms, collect 2.55s, tests 1.27s, environment 1ms, prepare 374ms)
364
+
365
+ [?25h ELIFECYCLE  Command failed with exit code 1.
@@ -1,5 +1,5 @@
1
1
 
2
- > @kya-os/create-mcpi-app@1.7.42-canary.15 test /Users/dylanhobbs/Documents/@kya-os/xmcp-i/packages/create-mcpi-app
2
+ > @kya-os/create-mcpi-app@1.7.42-canary.20 test /Users/dylanhobbs/Documents/@kya-os/xmcp-i/packages/create-mcpi-app
3
3
  > vitest --run
4
4
 
5
5
  β–² [WARNING] The condition "types" here will never be used as it comes after both "import" and "require" [package.json]
@@ -41,19 +41,19 @@
41
41
 
42
42
  RUN v4.0.5 /Users/dylanhobbs/Documents/@kya-os/xmcp-i/packages/create-mcpi-app
43
43
 
44
+ βœ“ test-cloudflare/tests/cors-security.test.ts (29 tests) 4ms
45
+ βœ“ test-cloudflare/tests/delegation.test.ts (12 tests) 4ms
46
+ βœ“ test-cloudflare/tests/cache-invalidation.test.ts (18 tests) 5ms
47
+ βœ“ src/utils/__tests__/fetch-remote-config.test.ts (9 tests) 6ms
44
48
  stdout | test-cloudflare/tests/session-management.test.ts > Session Management > Session Security > should not expose session data in logs
45
49
  [Session] Created session: secure-session
46
50
 
47
51
  βœ“ test-cloudflare/tests/session-management.test.ts (17 tests) 14ms
48
- βœ“ test-cloudflare/tests/cors-security.test.ts (29 tests) 4ms
49
- βœ“ test-cloudflare/tests/cache-invalidation.test.ts (18 tests) 4ms
50
- βœ“ test-cloudflare/tests/delegation.test.ts (12 tests) 4ms
51
- βœ“ test-cloudflare/tests/do-routing.test.ts (14 tests) 41ms
52
- βœ“ src/utils/__tests__/fetch-remote-config.test.ts (9 tests) 3ms
53
52
  stderr | src/helpers/__tests__/config-builder.spec.ts > buildConfigWithRemote > should fallback to local config when remote fetch fails
54
53
  [RemoteConfig] Neither projectId nor agentDid provided
55
54
 
56
- βœ“ src/helpers/__tests__/config-builder.spec.ts (12 tests) 4ms
55
+ βœ“ src/helpers/__tests__/config-builder.spec.ts (12 tests) 3ms
56
+ βœ“ test-cloudflare/tests/do-routing.test.ts (14 tests) 38ms
57
57
  stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with npm
58
58
 
59
59
  πŸ“¦ Installing dependencies with npm...
@@ -64,7 +64,7 @@ stdout | src/__tests__/helpers/install.test.ts > install > Dependency installati
64
64
  πŸ“¦ Installing dependencies with yarn...
65
65
  βœ“ Lockfile created (yarn.lock) - remember to commit it
66
66
 
67
- βœ“ src/__tests__/helpers/generate-identity.test.ts (24 tests) 22ms
67
+ βœ“ src/__tests__/helpers/generate-identity.test.ts (24 tests) 26ms
68
68
  stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with pnpm
69
69
 
70
70
  πŸ“¦ Installing dependencies with pnpm...
@@ -119,14 +119,14 @@ stdout | src/__tests__/helpers/install.test.ts > install > Lockfile validation >
119
119
 
120
120
  πŸ“¦ Installing dependencies with npm...
121
121
 
122
- βœ“ src/__tests__/helpers/install.test.ts (20 tests) 31ms
123
- βœ“ src/__tests__/helpers/validate-project-structure.test.ts (23 tests) 41ms
124
- βœ“ src/__tests__/helpers/generate-config.test.ts (25 tests) 41ms
125
- βœ“ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts (21 tests) 108ms
126
- βœ“ src/__tests__/cloudflare-template.test.ts (24 tests) 120ms
122
+ βœ“ src/__tests__/helpers/install.test.ts (20 tests) 30ms
123
+ βœ“ src/__tests__/helpers/generate-config.test.ts (25 tests) 39ms
124
+ βœ“ src/__tests__/helpers/validate-project-structure.test.ts (23 tests) 40ms
125
+ βœ“ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts (21 tests) 103ms
126
+ βœ“ src/__tests__/cloudflare-template.test.ts (24 tests) 107ms
127
127
 
128
128
  Test Files 13 passed (13)
129
129
  Tests 248 passed (248)
130
- Start at 17:35:42
131
- Duration 399ms (transform 715ms, setup 0ms, collect 1.05s, tests 437ms, environment 1ms, prepare 52ms)
130
+ Start at 18:03:33
131
+ Duration 340ms (transform 752ms, setup 0ms, collect 1.08s, tests 420ms, environment 1ms, prepare 39ms)
132
132
 
@@ -68,9 +68,9 @@ export async function fetchCloudflareMcpiTemplate(projectPath, options = {}) {
68
68
  },
69
69
  dependencies: {
70
70
  "@kya-os/contracts": "^1.5.3-canary.9",
71
- "@kya-os/mcp-i-cloudflare": "^1.5.8-canary.24",
72
- "@kya-os/mcp-i-core": "^1.2.2-canary.10",
73
- "@kya-os/mcp-i": "^1.5.9-canary.12",
71
+ "@kya-os/mcp-i-cloudflare": "^1.5.8-canary.25",
72
+ "@kya-os/mcp-i-core": "^1.2.2-canary.13",
73
+ "@kya-os/mcp-i": "^1.5.9-canary.14",
74
74
  "@modelcontextprotocol/sdk": "^1.19.1",
75
75
  agents: "^0.2.21", // Use latest version - constructor now only accepts 2 parameters
76
76
  hono: "^4.9.10",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kya-os/create-mcpi-app",
3
- "version": "1.7.42-canary.20",
3
+ "version": "1.7.42-canary.22",
4
4
  "description": "Bootstrap MCP applications with identity features",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -30,7 +30,7 @@
30
30
  "dependencies": {
31
31
  "@kya-os/cli": "^1.3.5-canary.8",
32
32
  "@kya-os/cli-effects": "^1.0.19",
33
- "@kya-os/mcp-i": "^1.5.9-canary.11",
33
+ "@kya-os/mcp-i": "^1.5.9-canary.14",
34
34
  "@kya-os/mcp-i-cloudflare": "^1.5.8-canary.24",
35
35
  "base-x": "^5.0.0",
36
36
  "chalk": "^5.3.0",