@kya-os/create-mcpi-app 1.7.39-canary.9 β†’ 1.7.40-canary.27

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,359 +1,216 @@
1
-
2
- 
3
- > @kya-os/create-mcpi-app@1.7.39-canary.7 test:coverage /Users/dylanhobbs/Documents/@kya-os/xmcp-i/packages/create-mcpi-app
4
- > vitest --run --coverage
5
-
6
- [?25lβ–² [WARNING] The condition "types" here will never be used as it comes after both "import" and "require" [package.json]
7
-
8
- package.json:15:6:
9
-  15 β”‚ "types": "./dist/index.d.ts"
10
- β•΅ ~~~~~~~
11
-
12
- The "import" condition comes earlier and will be used for all "import" statements:
13
-
14
- package.json:13:6:
15
-  13 β”‚ "import": "./dist/index.js",
16
- β•΅ ~~~~~~~~
17
-
18
- The "require" condition comes earlier and will be used for all "require" calls:
19
-
20
- package.json:14:6:
21
-  14 β”‚ "require": "./dist/index.js",
22
- β•΅ ~~~~~~~~~
23
-
24
- β–² [WARNING] The condition "types" here will never be used as it comes after both "import" and "require" [package.json]
25
-
26
- package.json:20:6:
27
-  20 β”‚ "types": "./dist/helpers/config-builder.d.ts"
28
- β•΅ ~~~~~~~
29
-
30
- The "import" condition comes earlier and will be used for all "import" statements:
31
-
32
- package.json:18:6:
33
-  18 β”‚ "import": "./dist/helpers/config-builder.js",
34
- β•΅ ~~~~~~~~
35
-
36
- The "require" condition comes earlier and will be used for all "require" calls:
37
-
38
- package.json:19:6:
39
-  19 β”‚ "require": "./dist/helpers/config-builder.js",
40
- β•΅ ~~~~~~~~~
41
-
42
-
43
-  RUN  v4.0.5 /Users/dylanhobbs/Documents/@kya-os/xmcp-i/packages/create-mcpi-app
44
- Coverage enabled with v8
45
-
46
- [?2026h
47
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts [queued]
48
-
49
-  Test Files 0 passed (13)
50
-  Tests 0 passed (0)
51
-  Start at 15:12:15
52
-  Duration 203ms
53
- [?2026l[?2026h
54
-  ❯ src/__tests__/cloudflare-template.test.ts [queued]
55
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts [queued]
56
-  ❯ src/__tests__/helpers/generate-identity.test.ts [queued]
57
-  ❯ src/__tests__/helpers/validate-project-structure.test.ts [queued]
58
-  ❯ test-cloudflare/tests/cache-invalidation.test.ts 0/18
59
-  ❯ test-cloudflare/tests/session-management.test.ts [queued]
60
-
61
-  Test Files 0 passed (13)
62
-  Tests 0 passed (18)
63
-  Start at 15:12:15
64
-  Duration 303ms
65
- [?2026l[?2026h βœ“ test-cloudflare/tests/cache-invalidation.test.ts (18 tests) 27ms
66
- stdout | test-cloudflare/tests/session-management.test.ts > Session Management > Session Security > should not expose session data in logs
67
- [Session] Created session: secure-session
68
-
69
-
70
-  ❯ src/__tests__/cloudflare-template.test.ts [queued]
71
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts [queued]
72
-  ❯ src/__tests__/helpers/generate-config.test.ts [queued]
73
-  ❯ src/__tests__/helpers/generate-identity.test.ts 0/24
74
-  ❯ src/__tests__/helpers/install.test.ts [queued]
75
-  ❯ src/__tests__/helpers/validate-project-structure.test.ts 0/23
76
-  ❯ src/helpers/__tests__/config-builder.spec.ts [queued]
77
-  ❯ src/utils/__tests__/fetch-remote-config.test.ts [queued]
78
-  ❯ test-cloudflare/tests/delegation.test.ts [queued]
79
-  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
80
-  ❯ test-cloudflare/tests/session-management.test.ts 0/17
81
-
82
-  Test Files 1 passed (13)
83
-  Tests 18 passed (96)
84
-  Start at 15:12:15
85
-  Duration 406ms
86
- [?2026l[?2026h βœ“ test-cloudflare/tests/session-management.test.ts (17 tests) 15ms
87
- βœ“ src/__tests__/helpers/validate-project-structure.test.ts (23 tests) 61ms
88
- βœ“ test-cloudflare/tests/delegation.test.ts (12 tests) 4ms
89
-
90
-  ❯ src/__tests__/cloudflare-template.test.ts 0/24
91
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/21
92
-  ❯ src/__tests__/helpers/generate-config.test.ts [queued]
93
-  ❯ src/__tests__/helpers/install.test.ts [queued]
94
-  ❯ src/helpers/__tests__/config-builder.spec.ts 0/12
95
-  ❯ src/utils/__tests__/fetch-remote-config.test.ts 0/9
96
-  ❯ test-cloudflare/tests/cors-security.test.ts 1/29
97
-  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
98
-
99
-  Test Files 5 passed (13)
100
-  Tests 95 passed (203)
101
-  Start at 15:12:15
102
-  Duration 510ms
103
- [?2026l[?2026hstderr | src/helpers/__tests__/config-builder.spec.ts > buildConfigWithRemote > should fallback to local config when remote fetch fails
104
- [RemoteConfig] Neither projectId nor agentDid provided
105
-
106
- stderr | src/utils/__tests__/fetch-remote-config.test.ts > fetchRemoteConfig > Error handling > should return null if API request fails
107
- [RemoteConfig] API returned 404: Not Found
108
-
109
- stderr | src/utils/__tests__/fetch-remote-config.test.ts > fetchRemoteConfig > Error handling > should return null if API throws error
110
- [RemoteConfig] Failed to fetch config: Error: Network error
111
- at /Users/dylanhobbs/Documents/@kya-os/xmcp-i/packages/create-mcpi-app/src/utils/__tests__/fetch-remote-config.test.ts:173:35
112
- 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
113
- at file:///Users/dylanhobbs/Documents/@kya-os/xmcp-i/node_modules/.pnpm/@vitest+runner@4.0.5/node_modules/@vitest/runner/dist/index.js:753:26
114
- at file:///Users/dylanhobbs/Documents/@kya-os/xmcp-i/node_modules/.pnpm/@vitest+runner@4.0.5/node_modules/@vitest/runner/dist/index.js:1636:20
115
- at new Promise (<anonymous>)
116
- at runWithTimeout (file:///Users/dylanhobbs/Documents/@kya-os/xmcp-i/node_modules/.pnpm/@vitest+runner@4.0.5/node_modules/@vitest/runner/dist/index.js:1602:10)
117
- at runTest (file:///Users/dylanhobbs/Documents/@kya-os/xmcp-i/node_modules/.pnpm/@vitest+runner@4.0.5/node_modules/@vitest/runner/dist/index.js:1309:12)
118
-  at processTicksAndRejections (node:internal/process/task_queues:103:5)
119
- 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)
120
- 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)
121
-
122
- stderr | src/utils/__tests__/fetch-remote-config.test.ts > fetchRemoteConfig > Error handling > should return null if neither projectId nor agentDid provided
123
- [RemoteConfig] Neither projectId nor agentDid provided
124
-
125
- stderr | src/utils/__tests__/fetch-remote-config.test.ts > fetchRemoteConfig > Error handling > should handle cache read errors gracefully
126
- [RemoteConfig] Cache read failed: Error: Cache error
127
- at /Users/dylanhobbs/Documents/@kya-os/xmcp-i/packages/create-mcpi-app/src/utils/__tests__/fetch-remote-config.test.ts:201:50
128
- 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
129
- at file:///Users/dylanhobbs/Documents/@kya-os/xmcp-i/node_modules/.pnpm/@vitest+runner@4.0.5/node_modules/@vitest/runner/dist/index.js:753:26
130
- at file:///Users/dylanhobbs/Documents/@kya-os/xmcp-i/node_modules/.pnpm/@vitest+runner@4.0.5/node_modules/@vitest/runner/dist/index.js:1636:20
131
- at new Promise (<anonymous>)
132
- at runWithTimeout (file:///Users/dylanhobbs/Documents/@kya-os/xmcp-i/node_modules/.pnpm/@vitest+runner@4.0.5/node_modules/@vitest/runner/dist/index.js:1602:10)
133
- at runTest (file:///Users/dylanhobbs/Documents/@kya-os/xmcp-i/node_modules/.pnpm/@vitest+runner@4.0.5/node_modules/@vitest/runner/dist/index.js:1309:12)
134
-  at processTicksAndRejections (node:internal/process/task_queues:103:5)
135
- 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)
136
- 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
-
138
-
139
-  ❯ src/__tests__/cloudflare-template.test.ts 0/24
140
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/21
141
-  ❯ src/__tests__/helpers/generate-config.test.ts [queued]
142
-  ❯ src/__tests__/helpers/install.test.ts [queued]
143
-  ❯ src/helpers/__tests__/config-builder.spec.ts 0/12
144
-  ❯ src/utils/__tests__/fetch-remote-config.test.ts 0/9
145
-  ❯ test-cloudflare/tests/cors-security.test.ts 1/29
146
-  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
147
-
148
-  Test Files 5 passed (13)
149
-  Tests 95 passed (203)
150
-  Start at 15:12:15
151
-  Duration 510ms
152
- [?2026l[?2026h βœ“ src/__tests__/helpers/generate-identity.test.ts (24 tests) 137ms
153
-
154
-  ❯ src/__tests__/cloudflare-template.test.ts 0/24
155
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/21
156
-  ❯ src/__tests__/helpers/generate-config.test.ts [queued]
157
-  ❯ src/__tests__/helpers/install.test.ts [queued]
158
-  ❯ src/helpers/__tests__/config-builder.spec.ts 0/12
159
-  ❯ src/utils/__tests__/fetch-remote-config.test.ts 0/9
160
-  ❯ test-cloudflare/tests/cors-security.test.ts 1/29
161
-  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
162
-
163
-  Test Files 5 passed (13)
164
-  Tests 95 passed (203)
165
-  Start at 15:12:15
166
-  Duration 510ms
167
- [?2026l[?2026h βœ“ test-cloudflare/tests/cors-security.test.ts (29 tests) 6ms
168
- βœ“ src/helpers/__tests__/config-builder.spec.ts (12 tests) 4ms
169
- βœ“ src/utils/__tests__/fetch-remote-config.test.ts (9 tests) 9ms
170
- stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with npm
171
- 
172
- πŸ“¦ Installing dependencies with npm...
173
- βœ“ Lockfile created (package-lock.json) - remember to commit it
174
-
175
- stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with yarn
176
- 
177
- πŸ“¦ Installing dependencies with yarn...
178
- βœ“ Lockfile created (yarn.lock) - remember to commit it
179
-
180
- stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with pnpm
181
- 
182
- πŸ“¦ Installing dependencies with pnpm...
183
- βœ“ Lockfile created (pnpm-lock.yaml) - remember to commit it
184
-
185
- stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should use correct working directory
186
- 
187
- πŸ“¦ Installing dependencies with npm...
188
- βœ“ Lockfile created (package-lock.json) - remember to commit it
189
-
190
-
191
-  ❯ src/__tests__/cloudflare-template.test.ts 11/24
192
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 5/21
193
-  ❯ test-cloudflare/tests/do-routing.test.ts 11/14
194
-
195
-  Test Files 10 passed (13)
196
-  Tests 216 passed (248)
197
-  Start at 15:12:15
198
-  Duration 610ms
199
- [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Install progress reporting > should report correct package manager in log
200
- ⚠️ Warning: No lockfile generated (pnpm-lock.yaml)
201
-
202
-
203
-  ❯ src/__tests__/cloudflare-template.test.ts 11/24
204
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 5/21
205
-  ❯ test-cloudflare/tests/do-routing.test.ts 11/14
206
-
207
-  Test Files 10 passed (13)
208
-  Tests 216 passed (248)
209
-  Start at 15:12:15
210
-  Duration 610ms
211
- [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Install progress reporting > should check for lockfile after installation
212
- 
213
- πŸ“¦ Installing dependencies with npm...
214
- βœ“ Lockfile created (package-lock.json) - remember to commit it
215
-
216
- stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should throw error when installation fails
217
- 
218
- πŸ“¦ Installing dependencies with npm...
219
-
220
-
221
-  ❯ src/__tests__/cloudflare-template.test.ts 11/24
222
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 5/21
223
-  ❯ test-cloudflare/tests/do-routing.test.ts 11/14
224
-
225
-  Test Files 10 passed (13)
226
-  Tests 216 passed (248)
227
-  Start at 15:12:15
228
-  Duration 610ms
229
- [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Error handling > should throw error when installation fails
230
- Failed to install dependencies with npm.
231
-
232
-
233
-  ❯ src/__tests__/cloudflare-template.test.ts 11/24
234
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 5/21
235
-  ❯ test-cloudflare/tests/do-routing.test.ts 11/14
236
-
237
-  Test Files 10 passed (13)
238
-  Tests 216 passed (248)
239
-  Start at 15:12:15
240
-  Duration 610ms
241
- [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle network errors during installation
242
- 
243
- πŸ“¦ Installing dependencies with npm...
244
-
245
-
246
-  ❯ src/__tests__/cloudflare-template.test.ts 11/24
247
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 5/21
248
-  ❯ test-cloudflare/tests/do-routing.test.ts 11/14
249
-
250
-  Test Files 10 passed (13)
251
-  Tests 216 passed (248)
252
-  Start at 15:12:15
253
-  Duration 610ms
254
- [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle network errors during installation
255
- Failed to install dependencies with npm.
256
-
257
-
258
-  ❯ src/__tests__/cloudflare-template.test.ts 11/24
259
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 5/21
260
-  ❯ test-cloudflare/tests/do-routing.test.ts 11/14
261
-
262
-  Test Files 10 passed (13)
263
-  Tests 216 passed (248)
264
-  Start at 15:12:15
265
-  Duration 610ms
266
- [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle permission errors during installation
267
- 
268
- πŸ“¦ Installing dependencies with npm...
269
-
270
-
271
-  ❯ src/__tests__/cloudflare-template.test.ts 11/24
272
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 5/21
273
-  ❯ test-cloudflare/tests/do-routing.test.ts 11/14
274
-
275
-  Test Files 10 passed (13)
276
-  Tests 216 passed (248)
277
-  Start at 15:12:15
278
-  Duration 610ms
279
- [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle permission errors during installation
280
- Failed to install dependencies with npm.
281
-
282
-
283
-  ❯ src/__tests__/cloudflare-template.test.ts 11/24
284
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 5/21
285
-  ❯ test-cloudflare/tests/do-routing.test.ts 11/14
286
-
287
-  Test Files 10 passed (13)
288
-  Tests 216 passed (248)
289
-  Start at 15:12:15
290
-  Duration 610ms
291
- [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Error handling > should log error message when installation fails
292
- 
293
- πŸ“¦ Installing dependencies with npm...
294
-
295
- stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle invalid package manager gracefully
296
- 
297
- πŸ“¦ Installing dependencies with unknown...
298
-
299
-
300
-  ❯ src/__tests__/cloudflare-template.test.ts 11/24
301
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 5/21
302
-  ❯ test-cloudflare/tests/do-routing.test.ts 11/14
303
-
304
-  Test Files 10 passed (13)
305
-  Tests 216 passed (248)
306
-  Start at 15:12:15
307
-  Duration 610ms
308
- [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle invalid package manager gracefully
309
- ⚠️ Warning: Unknown package manager "unknown", cannot check lockfile
310
-
311
-
312
-  ❯ src/__tests__/cloudflare-template.test.ts 11/24
313
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 5/21
314
-  ❯ test-cloudflare/tests/do-routing.test.ts 11/14
315
-
316
-  Test Files 10 passed (13)
317
-  Tests 216 passed (248)
318
-  Start at 15:12:15
319
-  Duration 610ms
320
- [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Lockfile validation > should warn when lockfile not created
321
- 
322
- πŸ“¦ Installing dependencies with npm...
323
-
324
- βœ“ src/__tests__/helpers/generate-config.test.ts (25 tests) 50ms
325
- βœ“ src/__tests__/helpers/install.test.ts (20 tests) 42ms
326
-
327
-  ❯ src/__tests__/cloudflare-template.test.ts 11/24
328
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 5/21
329
-  ❯ test-cloudflare/tests/do-routing.test.ts 11/14
330
-
331
-  Test Files 10 passed (13)
332
-  Tests 216 passed (248)
333
-  Start at 15:12:15
334
-  Duration 610ms
335
- [?2026l βœ“ test-cloudflare/tests/do-routing.test.ts (14 tests) 202ms
336
- βœ“ src/__tests__/cloudflare-template.test.ts (24 tests) 166ms
337
- βœ“ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts (21 tests) 165ms
338
-
339
-  Test Files  13 passed (13)
340
-  Tests  248 passed (248)
341
-  Start at  15:12:15
342
-  Duration  782ms (transform 988ms, setup 0ms, collect 1.77s, tests 889ms, environment 2ms, prepare 502ms)
343
-
344
-  % Coverage report from v8
345
- -------------------------------|---------|----------|---------|---------|-------------------
346
- File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
347
- -------------------------------|---------|----------|---------|---------|-------------------
348
- All files  |  96.48 |  94.11 |  100 |  96.48 |  
349
-  helpers  |  97.28 |  95.12 |  100 |  97.28 |  
350
-  config-builder.ts  |  100 |  100 |  100 |  100 |  
351
-  ...oudflare-mcpi-template.ts |  94.49 |  90.9 |  100 |  94.49 | 793,805,910-918 
352
-  generate-config.ts  |  100 |  100 |  100 |  100 |  
353
-  generate-identity.ts  |  100 |  100 |  100 |  100 |  
354
-  install.ts  |  100 |  100 |  100 |  100 |  
355
-  ...date-project-structure.ts |  100 |  100 |  100 |  100 |  
356
-  utils  |  91.42 |  90 |  100 |  91.42 |  
357
-  fetch-remote-config.ts  |  91.42 |  90 |  100 |  91.42 | 152-153,169 
358
- -------------------------------|---------|----------|---------|---------|-------------------
359
- [?25h
1
+
2
+ > @kya-os/create-mcpi-app@1.7.39-canary.24 test:coverage /Users/brian/Documents/@kya-os/modelcontextprotocol-identity/xmcp-i/packages/create-mcpi-app
3
+ > vitest --run --coverage
4
+
5
+ β–² [WARNING] The condition "types" here will never be used as it comes after both "import" and "require" [package.json]
6
+
7
+ package.json:15:6:
8
+ 15 β”‚ "types": "./dist/index.d.ts"
9
+ β•΅ ~~~~~~~
10
+
11
+ The "import" condition comes earlier and will be used for all "import" statements:
12
+
13
+ package.json:13:6:
14
+ 13 β”‚ "import": "./dist/index.js",
15
+ β•΅ ~~~~~~~~
16
+
17
+ The "require" condition comes earlier and will be used for all "require" calls:
18
+
19
+ package.json:14:6:
20
+ 14 β”‚ "require": "./dist/index.js",
21
+ β•΅ ~~~~~~~~~
22
+
23
+ β–² [WARNING] The condition "types" here will never be used as it comes after both "import" and "require" [package.json]
24
+
25
+ package.json:20:6:
26
+ 20 β”‚ "types": "./dist/helpers/config-builder.d.ts"
27
+ β•΅ ~~~~~~~
28
+
29
+ The "import" condition comes earlier and will be used for all "import" statements:
30
+
31
+ package.json:18:6:
32
+ 18 β”‚ "import": "./dist/helpers/config-builder.js",
33
+ β•΅ ~~~~~~~~
34
+
35
+ The "require" condition comes earlier and will be used for all "require" calls:
36
+
37
+ package.json:19:6:
38
+ 19 β”‚ "require": "./dist/helpers/config-builder.js",
39
+ β•΅ ~~~~~~~~~
40
+
41
+
42
+ RUN v4.0.5 /Users/brian/Documents/@kya-os/modelcontextprotocol-identity/xmcp-i/packages/create-mcpi-app
43
+ Coverage enabled with v8
44
+
45
+ stderr | src/utils/__tests__/fetch-remote-config.test.ts > fetchRemoteConfig > Error handling > should return null if API request fails
46
+ βœ“ test-cloudflare/tests/cors-security.test.ts (29 tests) 4ms
47
+ [RemoteConfig] API returned 404: Not Found
48
+
49
+ stderr | src/utils/__tests__/fetch-remote-config.test.ts > fetchRemoteConfig > Error handling > should return null if API throws error
50
+ [RemoteConfig] Failed to fetch config: Error: Network error
51
+ at /Users/brian/Documents/@kya-os/modelcontextprotocol-identity/xmcp-i/packages/create-mcpi-app/src/utils/__tests__/fetch-remote-config.test.ts:173:35
52
+ at file:///Users/brian/Documents/@kya-os/modelcontextprotocol-identity/xmcp-i/node_modules/.pnpm/@vitest+runner@4.0.5/node_modules/@vitest/runner/dist/index.js:157:11
53
+ at file:///Users/brian/Documents/@kya-os/modelcontextprotocol-identity/xmcp-i/node_modules/.pnpm/@vitest+runner@4.0.5/node_modules/@vitest/runner/dist/index.js:753:26
54
+ at file:///Users/brian/Documents/@kya-os/modelcontextprotocol-identity/xmcp-i/node_modules/.pnpm/@vitest+runner@4.0.5/node_modules/@vitest/runner/dist/index.js:1636:20
55
+ at new Promise (<anonymous>)
56
+ at runWithTimeout (file:///Users/brian/Documents/@kya-os/modelcontextprotocol-identity/xmcp-i/node_modules/.pnpm/@vitest+runner@4.0.5/node_modules/@vitest/runner/dist/index.js:1602:10)
57
+ at runTest (file:///Users/brian/Documents/@kya-os/modelcontextprotocol-identity/xmcp-i/node_modules/.pnpm/@vitest+runner@4.0.5/node_modules/@vitest/runner/dist/index.js:1309:12)
58
+ at processTicksAndRejections (node:internal/process/task_queues:105:5)
59
+ at runSuite (file:///Users/brian/Documents/@kya-os/modelcontextprotocol-identity/xmcp-i/node_modules/.pnpm/@vitest+runner@4.0.5/node_modules/@vitest/runner/dist/index.js:1468:8)
60
+ at runSuite (file:///Users/brian/Documents/@kya-os/modelcontextprotocol-identity/xmcp-i/node_modules/.pnpm/@vitest+runner@4.0.5/node_modules/@vitest/runner/dist/index.js:1468:8)
61
+
62
+ βœ“ test-cloudflare/tests/delegation.test.ts (12 tests) 4ms
63
+ stdout | test-cloudflare/tests/session-management.test.ts > Session Management > Session Security > should not expose session data in logs
64
+ stderr | src/utils/__tests__/fetch-remote-config.test.ts > fetchRemoteConfig > Error handling > should return null if neither projectId nor agentDid provided
65
+ [RemoteConfig] Neither projectId nor agentDid provided
66
+ [Session] Created session: secure-session
67
+
68
+
69
+ stderr | src/utils/__tests__/fetch-remote-config.test.ts > fetchRemoteConfig > Error handling > should handle cache read errors gracefully
70
+ [RemoteConfig] Cache read failed: Error: Cache error
71
+ at /Users/brian/Documents/@kya-os/modelcontextprotocol-identity/xmcp-i/packages/create-mcpi-app/src/utils/__tests__/fetch-remote-config.test.ts:201:50
72
+ at file:///Users/brian/Documents/@kya-os/modelcontextprotocol-identity/xmcp-i/node_modules/.pnpm/@vitest+runner@4.0.5/node_modules/@vitest/runner/dist/index.js:157:11
73
+ at file:///Users/brian/Documents/@kya-os/modelcontextprotocol-identity/xmcp-i/node_modules/.pnpm/@vitest+runner@4.0.5/node_modules/@vitest/runner/dist/index.js:753:26
74
+ at file:///Users/brian/Documents/@kya-os/modelcontextprotocol-identity/xmcp-i/node_modules/.pnpm/@vitest+runner@4.0.5/node_modules/@vitest/runner/dist/index.js:1636:20
75
+ at new Promise (<anonymous>)
76
+ at runWithTimeout (file:///Users/brian/Documents/@kya-os/modelcontextprotocol-identity/xmcp-i/node_modules/.pnpm/@vitest+runner@4.0.5/node_modules/@vitest/runner/dist/index.js:1602:10)
77
+ at runTest (file:///Users/brian/Documents/@kya-os/modelcontextprotocol-identity/xmcp-i/node_modules/.pnpm/@vitest+runner@4.0.5/node_modules/@vitest/runner/dist/index.js:1309:12)
78
+ at processTicksAndRejections (node:internal/process/task_queues:105:5)
79
+ at runSuite (file:///Users/brian/Documents/@kya-os/modelcontextprotocol-identity/xmcp-i/node_modules/.pnpm/@vitest+runner@4.0.5/node_modules/@vitest/runner/dist/index.js:1468:8)
80
+ at runSuite (file:///Users/brian/Documents/@kya-os/modelcontextprotocol-identity/xmcp-i/node_modules/.pnpm/@vitest+runner@4.0.5/node_modules/@vitest/runner/dist/index.js:1468:8)
81
+
82
+ βœ“ test-cloudflare/tests/cache-invalidation.test.ts (18 tests) 5ms
83
+ βœ“ src/utils/__tests__/fetch-remote-config.test.ts (9 tests) 8ms
84
+ βœ“ test-cloudflare/tests/session-management.test.ts (17 tests) 15ms
85
+ stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with yarn
86
+
87
+ πŸ“¦ Installing dependencies with yarn...
88
+ βœ“ Lockfile created (yarn.lock) - remember to commit it
89
+
90
+ stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with pnpm
91
+
92
+ πŸ“¦ Installing dependencies with pnpm...
93
+ βœ“ Lockfile created (pnpm-lock.yaml) - remember to commit it
94
+
95
+ stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should use correct working directory
96
+
97
+ πŸ“¦ Installing dependencies with npm...
98
+ βœ“ Lockfile created (package-lock.json) - remember to commit it
99
+
100
+ stderr | src/__tests__/helpers/install.test.ts > install > Install progress reporting > should report correct package manager in log
101
+ ⚠️ Warning: No lockfile generated (pnpm-lock.yaml)
102
+
103
+ βœ“ test-cloudflare/tests/do-routing.test.ts (14 tests) 107ms
104
+ stdout | src/__tests__/helpers/install.test.ts > install > Install progress reporting > should check for lockfile after installation
105
+
106
+ πŸ“¦ Installing dependencies with npm...
107
+ βœ“ Lockfile created (package-lock.json) - remember to commit it
108
+
109
+ stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should throw error when installation fails
110
+
111
+ πŸ“¦ Installing dependencies with npm...
112
+
113
+ stderr | src/__tests__/helpers/install.test.ts > install > Error handling > should throw error when installation fails
114
+ Failed to install dependencies with npm.
115
+
116
+ stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle network errors during installation
117
+
118
+ πŸ“¦ Installing dependencies with npm...
119
+
120
+ stderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle network errors during installation
121
+ Failed to install dependencies with npm.
122
+
123
+ stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle permission errors during installation
124
+
125
+ stderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle permission errors during installation
126
+ πŸ“¦ Installing dependencies with npm...
127
+ Failed to install dependencies with npm.
128
+
129
+
130
+ stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should log error message when installation fails
131
+
132
+ πŸ“¦ Installing dependencies with npm...
133
+
134
+ stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle invalid package manager gracefully
135
+
136
+ πŸ“¦ Installing dependencies with unknown...
137
+
138
+ stderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle invalid package manager gracefully
139
+ ⚠️ Warning: Unknown package manager "unknown", cannot check lockfile
140
+
141
+ stdout | src/__tests__/helpers/install.test.ts > install > Lockfile validation > should warn when lockfile not created
142
+
143
+ πŸ“¦ Installing dependencies with npm...
144
+
145
+ ❯ src/__tests__/helpers/install.test.ts (20 tests | 1 failed) 54ms
146
+ βœ“ should detect npm from package-lock.json 2ms
147
+ βœ“ should detect yarn from yarn.lock 1ms
148
+ βœ“ should detect pnpm from pnpm-lock.yaml 1ms
149
+ βœ“ should return null when no lockfile exists 0ms
150
+ βœ“ should prioritize pnpm over npm 5ms
151
+ βœ“ should prioritize yarn over npm 8ms
152
+ Γ— should install dependencies with npm 6ms
153
+ βœ“ should install dependencies with yarn 3ms
154
+ βœ“ should install dependencies with pnpm 2ms
155
+ βœ“ should use correct working directory 4ms
156
+ βœ“ should log installation start message 1ms
157
+ βœ“ should report correct package manager in log 9ms
158
+ βœ“ should check for lockfile after installation 1ms
159
+ βœ“ should throw error when installation fails 1ms
160
+ βœ“ should handle network errors during installation 2ms
161
+ βœ“ should handle permission errors during installation 1ms
162
+ βœ“ should log error message when installation fails 1ms
163
+ βœ“ should handle invalid package manager gracefully 1ms
164
+ βœ“ should validate npm lockfile after installation 2ms
165
+ βœ“ should warn when lockfile not created 1ms
166
+ βœ“ src/__tests__/helpers/generate-identity.test.ts (24 tests) 113ms
167
+ βœ“ src/__tests__/helpers/validate-project-structure.test.ts (23 tests) 82ms
168
+ βœ“ src/__tests__/helpers/generate-config.test.ts (25 tests) 120ms
169
+ βœ“ src/__tests__/cloudflare-template.test.ts (24 tests) 347ms
170
+ βœ“ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts (21 tests) 269ms
171
+
172
+ ⎯⎯⎯⎯⎯⎯ Failed Suites 1 ⎯⎯⎯⎯⎯⎯⎯
173
+
174
+ FAIL src/helpers/__tests__/config-builder.spec.ts [ src/helpers/__tests__/config-builder.spec.ts ]
175
+ Error: Missing "./config" specifier in "@kya-os/contracts" package
176
+ Plugin: vite:import-analysis
177
+ File: /Users/brian/Documents/@kya-os/modelcontextprotocol-identity/xmcp-i/packages/create-mcpi-app/src/helpers/config-builder.ts:14:32
178
+ 1 | import { buildBaseConfig } from "@kya-os/contracts/config";
179
+ | ^
180
+ 2 | export { buildBaseConfig };
181
+ 3 | import {
182
+ ❯ e ../../node_modules/.pnpm/vite@7.1.12_@types+node@20.19.19_jiti@2.4.2_lightningcss@1.30.1_terser@5.43.1_tsx@4.20.4_yaml@2.8.0/node_modules/vite/dist/node/chunks/config.js:8823:8
183
+ ❯ n ../../node_modules/.pnpm/vite@7.1.12_@types+node@20.19.19_jiti@2.4.2_lightningcss@1.30.1_terser@5.43.1_tsx@4.20.4_yaml@2.8.0/node_modules/vite/dist/node/chunks/config.js:8835:14
184
+ ❯ o ../../node_modules/.pnpm/vite@7.1.12_@types+node@20.19.19_jiti@2.4.2_lightningcss@1.30.1_terser@5.43.1_tsx@4.20.4_yaml@2.8.0/node_modules/vite/dist/node/chunks/config.js:8863:10
185
+ ❯ resolveExportsOrImports ../../node_modules/.pnpm/vite@7.1.12_@types+node@20.19.19_jiti@2.4.2_lightningcss@1.30.1_terser@5.43.1_tsx@4.20.4_yaml@2.8.0/node_modules/vite/dist/node/chunks/config.js:11869:45
186
+ ❯ resolveDeepImport ../../node_modules/.pnpm/vite@7.1.12_@types+node@20.19.19_jiti@2.4.2_lightningcss@1.30.1_terser@5.43.1_tsx@4.20.4_yaml@2.8.0/node_modules/vite/dist/node/chunks/config.js:11883:22
187
+ ❯ tryNodeResolve ../../node_modules/.pnpm/vite@7.1.12_@types+node@20.19.19_jiti@2.4.2_lightningcss@1.30.1_terser@5.43.1_tsx@4.20.4_yaml@2.8.0/node_modules/vite/dist/node/chunks/config.js:11758:70
188
+ ❯ ResolveIdContext.handler ../../node_modules/.pnpm/vite@7.1.12_@types+node@20.19.19_jiti@2.4.2_lightningcss@1.30.1_terser@5.43.1_tsx@4.20.4_yaml@2.8.0/node_modules/vite/dist/node/chunks/config.js:11597:16
189
+ ❯ EnvironmentPluginContainer.resolveId ../../node_modules/.pnpm/vite@7.1.12_@types+node@20.19.19_jiti@2.4.2_lightningcss@1.30.1_terser@5.43.1_tsx@4.20.4_yaml@2.8.0/node_modules/vite/dist/node/chunks/config.js:30825:56
190
+ ❯ TransformPluginContext.resolve ../../node_modules/.pnpm/vite@7.1.12_@types+node@20.19.19_jiti@2.4.2_lightningcss@1.30.1_terser@5.43.1_tsx@4.20.4_yaml@2.8.0/node_modules/vite/dist/node/chunks/config.js:31036:13
191
+
192
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/2]⎯
193
+
194
+
195
+ ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯
196
+
197
+ FAIL src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with npm
198
+ Error: ENOENT: no such file or directory, mkdir '/Users/brian/Documents/@kya-os/modelcontextprotocol-identity/xmcp-i/packages/create-mcpi-app/test-temp/install-test-1762827503184-7jlm3'
199
+ ❯ Object.module.exports.makeDirSync ../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/mkdirs/make-dir.js:23:13
200
+ ❯ src/__tests__/helpers/install.test.ts:105:8
201
+ 103| beforeEach(() => {
202
+ 104| tempDir = path.join(process.cwd(), 'test-temp', `install-test-${Da…
203
+ 105| fs.ensureDirSync(tempDir);
204
+ | ^
205
+ 106|
206
+ 107| // Create minimal package.json for installation
207
+
208
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/2]⎯
209
+
210
+
211
+ Test Files 2 failed | 11 passed (13)
212
+ Tests 1 failed | 235 passed (236)
213
+ Start at 21:18:22
214
+ Duration 923ms (transform 775ms, setup 0ms, collect 1.42s, tests 1.13s, environment 1ms, prepare 677ms)
215
+
216
+  ELIFECYCLE  Command failed with exit code 1.