@kya-os/create-mcpi-app 1.7.42-canary.9 → 1.8.0

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,154 +1,78 @@
1
1
 
2
2
  
3
- > @kya-os/create-mcpi-app@1.7.42-canary.2 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
-
3
+ > @kya-os/create-mcpi-app@1.7.42-canary.81 test:coverage /Users/dylanhobbs/Documents/@kya-os/xmcp-i/packages/create-mcpi-app
4
+ > vitest run --coverage
42
5
 
6
+ [?25l
43
7
   RUN  v4.0.5 /Users/dylanhobbs/Documents/@kya-os/xmcp-i/packages/create-mcpi-app
44
8
  Coverage enabled with v8
45
9
 
46
10
  [?2026h
47
-  ❯ src/__tests__/helpers/generate-config.test.ts [queued]
11
+  ❯ src/__tests__/helpers/install.test.ts [queued]
48
12
 
49
-  Test Files 0 passed (13)
13
+  Test Files 0 passed (14)
50
14
   Tests 0 passed (0)
51
-  Start at 13:14:16
52
-  Duration 101ms
53
- [?2026l[?2026h ✓ test-cloudflare/tests/cors-security.test.ts (29 tests) 4ms
54
- ✓ test-cloudflare/tests/cache-invalidation.test.ts (18 tests) 5ms
55
- ✓ test-cloudflare/tests/delegation.test.ts (12 tests) 5ms
56
- stdout | test-cloudflare/tests/session-management.test.ts > Session Management > Session Security > should not expose session data in logs
57
- [Session] Created session: secure-session
58
-
59
-
15
+  Start at 17:53:02
16
+  Duration 103ms
17
+ [?2026l[?2026h
60
18
   ❯ src/__tests__/cloudflare-template.test.ts [queued]
61
19
   ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts [queued]
62
-  ❯ src/__tests__/helpers/generate-config.test.ts 0/25
63
-  ❯ src/__tests__/helpers/generate-identity.test.ts 0/24
20
+  ❯ src/__tests__/helpers/generate-config.test.ts [queued]
21
+  ❯ src/__tests__/helpers/generate-identity.test.ts [queued]
64
22
   ❯ src/__tests__/helpers/install.test.ts [queued]
65
23
   ❯ src/__tests__/helpers/validate-project-structure.test.ts [queued]
66
-  ❯ src/helpers/__tests__/config-builder.spec.ts 0/12
24
+  ❯ src/__tests__/scaffolder-envprefix.test.ts [queued]
25
+  ❯ src/helpers/__tests__/config-builder.spec.ts [queued]
26
+  ❯ test-cloudflare/tests/cache-invalidation.test.ts [queued]
27
+  ❯ test-cloudflare/tests/delegation.test.ts [queued]
67
28
   ❯ test-cloudflare/tests/do-routing.test.ts 0/14
29
+  ❯ test-cloudflare/tests/session-management.test.ts [queued]
68
30
 
69
-  Test Files 5 passed (13)
70
-  Tests 85 passed (160)
71
-  Start at 13:14:16
72
-  Duration 204ms
73
- [?2026l[?2026hstderr | src/utils/__tests__/fetch-remote-config.test.ts > fetchRemoteConfig > Error handling > should return null if API request fails
74
- [RemoteConfig] API returned 404: Not Found
75
-
76
- stderr | src/utils/__tests__/fetch-remote-config.test.ts > fetchRemoteConfig > Error handling > should return null if API throws error
77
- [RemoteConfig] Failed to fetch config: Error: Network error
78
- at /Users/dylanhobbs/Documents/@kya-os/xmcp-i/packages/create-mcpi-app/src/utils/__tests__/fetch-remote-config.test.ts:173:35
79
- 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
80
- 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
81
- 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
82
- at new Promise (<anonymous>)
83
- 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)
84
- 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)
85
-  at processTicksAndRejections (node:internal/process/task_queues:103:5)
86
- 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)
87
- 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)
88
-
89
- stderr | src/utils/__tests__/fetch-remote-config.test.ts > fetchRemoteConfig > Error handling > should return null if neither projectId nor agentDid provided
90
- [RemoteConfig] Neither projectId nor agentDid provided
91
-
92
- stderr | src/utils/__tests__/fetch-remote-config.test.ts > fetchRemoteConfig > Error handling > should handle cache read errors gracefully
93
- [RemoteConfig] Cache read failed: Error: Cache error
94
- at /Users/dylanhobbs/Documents/@kya-os/xmcp-i/packages/create-mcpi-app/src/utils/__tests__/fetch-remote-config.test.ts:201:50
95
- 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
96
- 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
97
- 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
98
- at new Promise (<anonymous>)
99
- 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)
100
- 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)
101
-  at processTicksAndRejections (node:internal/process/task_queues:103:5)
102
- 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)
103
- 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)
31
+  Test Files 0 passed (14)
32
+  Tests 0 passed (14)
33
+  Start at 17:53:02
34
+  Duration 205ms
35
+ [?2026l[?2026h ✓ test-cloudflare/tests/cache-invalidation.test.ts (18 tests) 7ms
36
+ stdout | test-cloudflare/tests/session-management.test.ts > Session Management > Session Security > should not expose session data in logs
37
+ [Session] Created session: secure-session
104
38
 
105
39
 
106
40
   ❯ src/__tests__/cloudflare-template.test.ts [queued]
107
41
   ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts [queued]
108
42
   ❯ src/__tests__/helpers/generate-config.test.ts 0/25
109
43
   ❯ src/__tests__/helpers/generate-identity.test.ts 0/24
110
-  ❯ src/__tests__/helpers/install.test.ts [queued]
111
-  ❯ src/__tests__/helpers/validate-project-structure.test.ts [queued]
112
-  ❯ src/helpers/__tests__/config-builder.spec.ts 0/12
44
+  ❯ src/__tests__/helpers/install.test.ts 0/20
45
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts 0/23
46
+  ❯ src/__tests__/scaffolder-envprefix.test.ts [queued]
47
+  ❯ src/utils/__tests__/fetch-remote-config.test.ts 0/9
48
+  ❯ test-cloudflare/tests/delegation.test.ts 0/12
113
49
   ❯ test-cloudflare/tests/do-routing.test.ts 0/14
114
50
 
115
-  Test Files 5 passed (13)
116
-  Tests 85 passed (160)
117
-  Start at 13:14:16
118
-  Duration 204ms
119
- [?2026l[?2026h ✓ src/utils/__tests__/fetch-remote-config.test.ts (9 tests) 8ms
120
- ✓ test-cloudflare/tests/session-management.test.ts (17 tests) 15ms
51
+  Test Files 3 passed (14)
52
+  Tests 47 passed (174)
53
+  Start at 17:53:02
54
+  Duration 408ms
55
+ [?2026l[?2026hstderr | src/helpers/__tests__/config-builder.spec.ts > buildConfigWithRemote > should fallback to local config when remote fetch fails
56
+ [RemoteConfig] Neither projectId nor agentDid provided
57
+
121
58
 
122
59
   ❯ src/__tests__/cloudflare-template.test.ts [queued]
123
60
   ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts [queued]
124
61
   ❯ src/__tests__/helpers/generate-config.test.ts 0/25
125
62
   ❯ src/__tests__/helpers/generate-identity.test.ts 0/24
126
-  ❯ src/__tests__/helpers/install.test.ts [queued]
127
-  ❯ src/__tests__/helpers/validate-project-structure.test.ts [queued]
128
-  ❯ src/helpers/__tests__/config-builder.spec.ts 0/12
63
+  ❯ src/__tests__/helpers/install.test.ts 0/20
64
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts 0/23
65
+  ❯ src/__tests__/scaffolder-envprefix.test.ts [queued]
66
+  ❯ src/utils/__tests__/fetch-remote-config.test.ts 0/9
67
+  ❯ test-cloudflare/tests/delegation.test.ts 0/12
129
68
   ❯ test-cloudflare/tests/do-routing.test.ts 0/14
130
69
 
131
-  Test Files 5 passed (13)
132
-  Tests 85 passed (160)
133
-  Start at 13:14:16
134
-  Duration 204ms
135
- [?2026l[?2026hstderr | src/helpers/__tests__/config-builder.spec.ts > buildConfigWithRemote > should fallback to local config when remote fetch fails
136
- [RemoteConfig] Neither projectId nor agentDid provided
137
-
138
-
139
-
140
-
141
-
142
-
143
-  ❯ src/__tests__/cloudflare-template.test.ts 1/24
144
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/21
145
-
146
-  Test Files 11 passed (13)
147
-  Tests 204 passed (248)
148
-  Start at 13:14:16
149
-  Duration 404ms
150
- [?2026l[?2026h ✓ src/__tests__/helpers/generate-identity.test.ts (24 tests) 22ms
151
- ✓ src/helpers/__tests__/config-builder.spec.ts (12 tests) 4ms
70
+  Test Files 3 passed (14)
71
+  Tests 47 passed (174)
72
+  Start at 17:53:02
73
+  Duration 408ms
74
+ [?2026l[?2026h ✓ src/helpers/__tests__/config-builder.spec.ts (12 tests) 4ms
75
+ ✓ test-cloudflare/tests/session-management.test.ts (17 tests) 22ms
152
76
  stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with npm
153
77
  
154
78
  📦 Installing dependencies with npm...
@@ -169,27 +93,42 @@
169
93
  📦 Installing dependencies with npm...
170
94
  ✓ Lockfile created (package-lock.json) - remember to commit it
171
95
 
172
- ✓ src/__tests__/helpers/generate-config.test.ts (25 tests) 27ms
173
96
 
174
-  ❯ src/__tests__/cloudflare-template.test.ts 1/24
175
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/21
97
+  ❯ src/__tests__/cloudflare-template.test.ts [queued]
98
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts [queued]
99
+  ❯ src/__tests__/helpers/generate-config.test.ts 0/25
100
+  ❯ src/__tests__/helpers/generate-identity.test.ts 0/24
101
+  ❯ src/__tests__/helpers/install.test.ts 0/20
102
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts 0/23
103
+  ❯ src/__tests__/scaffolder-envprefix.test.ts [queued]
104
+  ❯ src/utils/__tests__/fetch-remote-config.test.ts 0/9
105
+  ❯ test-cloudflare/tests/delegation.test.ts 0/12
106
+  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
176
107
 
177
-  Test Files 11 passed (13)
178
-  Tests 204 passed (248)
179
-  Start at 13:14:16
180
-  Duration 404ms
181
- [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Install progress reporting > should report correct package manager in log
108
+  Test Files 3 passed (14)
109
+  Tests 47 passed (174)
110
+  Start at 17:53:02
111
+  Duration 408ms
112
+ [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Install progress reporting > should report correct package manager in log
182
113
  ⚠️ Warning: No lockfile generated (pnpm-lock.yaml)
183
114
 
184
115
 
185
-  ❯ src/__tests__/cloudflare-template.test.ts 1/24
186
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/21
116
+  ❯ src/__tests__/cloudflare-template.test.ts [queued]
117
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts [queued]
118
+  ❯ src/__tests__/helpers/generate-config.test.ts 0/25
119
+  ❯ src/__tests__/helpers/generate-identity.test.ts 0/24
120
+  ❯ src/__tests__/helpers/install.test.ts 0/20
121
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts 0/23
122
+  ❯ src/__tests__/scaffolder-envprefix.test.ts [queued]
123
+  ❯ src/utils/__tests__/fetch-remote-config.test.ts 0/9
124
+  ❯ test-cloudflare/tests/delegation.test.ts 0/12
125
+  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
187
126
 
188
-  Test Files 11 passed (13)
189
-  Tests 204 passed (248)
190
-  Start at 13:14:16
191
-  Duration 404ms
192
- [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Install progress reporting > should check for lockfile after installation
127
+  Test Files 3 passed (14)
128
+  Tests 47 passed (174)
129
+  Start at 17:53:02
130
+  Duration 408ms
131
+ [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Install progress reporting > should check for lockfile after installation
193
132
  
194
133
  📦 Installing dependencies with npm...
195
134
  ✓ Lockfile created (package-lock.json) - remember to commit it
@@ -199,71 +138,119 @@
199
138
  📦 Installing dependencies with npm...
200
139
 
201
140
 
202
-  ❯ src/__tests__/cloudflare-template.test.ts 1/24
203
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/21
141
+  ❯ src/__tests__/cloudflare-template.test.ts [queued]
142
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts [queued]
143
+  ❯ src/__tests__/helpers/generate-config.test.ts 0/25
144
+  ❯ src/__tests__/helpers/generate-identity.test.ts 0/24
145
+  ❯ src/__tests__/helpers/install.test.ts 0/20
146
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts 0/23
147
+  ❯ src/__tests__/scaffolder-envprefix.test.ts [queued]
148
+  ❯ src/utils/__tests__/fetch-remote-config.test.ts 0/9
149
+  ❯ test-cloudflare/tests/delegation.test.ts 0/12
150
+  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
204
151
 
205
-  Test Files 11 passed (13)
206
-  Tests 204 passed (248)
207
-  Start at 13:14:16
208
-  Duration 404ms
209
- [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Error handling > should throw error when installation fails
152
+  Test Files 3 passed (14)
153
+  Tests 47 passed (174)
154
+  Start at 17:53:02
155
+  Duration 408ms
156
+ [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Error handling > should throw error when installation fails
210
157
  Failed to install dependencies with npm.
211
158
 
212
159
 
213
-  ❯ src/__tests__/cloudflare-template.test.ts 1/24
214
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/21
160
+  ❯ src/__tests__/cloudflare-template.test.ts [queued]
161
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts [queued]
162
+  ❯ src/__tests__/helpers/generate-config.test.ts 0/25
163
+  ❯ src/__tests__/helpers/generate-identity.test.ts 0/24
164
+  ❯ src/__tests__/helpers/install.test.ts 0/20
165
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts 0/23
166
+  ❯ src/__tests__/scaffolder-envprefix.test.ts [queued]
167
+  ❯ src/utils/__tests__/fetch-remote-config.test.ts 0/9
168
+  ❯ test-cloudflare/tests/delegation.test.ts 0/12
169
+  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
215
170
 
216
-  Test Files 11 passed (13)
217
-  Tests 204 passed (248)
218
-  Start at 13:14:16
219
-  Duration 404ms
220
- [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle network errors during installation
171
+  Test Files 3 passed (14)
172
+  Tests 47 passed (174)
173
+  Start at 17:53:02
174
+  Duration 408ms
175
+ [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle network errors during installation
221
176
  
222
177
  📦 Installing dependencies with npm...
223
178
 
224
179
 
225
-  ❯ src/__tests__/cloudflare-template.test.ts 1/24
226
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/21
180
+  ❯ src/__tests__/cloudflare-template.test.ts [queued]
181
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts [queued]
182
+  ❯ src/__tests__/helpers/generate-config.test.ts 0/25
183
+  ❯ src/__tests__/helpers/generate-identity.test.ts 0/24
184
+  ❯ src/__tests__/helpers/install.test.ts 0/20
185
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts 0/23
186
+  ❯ src/__tests__/scaffolder-envprefix.test.ts [queued]
187
+  ❯ src/utils/__tests__/fetch-remote-config.test.ts 0/9
188
+  ❯ test-cloudflare/tests/delegation.test.ts 0/12
189
+  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
227
190
 
228
-  Test Files 11 passed (13)
229
-  Tests 204 passed (248)
230
-  Start at 13:14:16
231
-  Duration 404ms
232
- [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle network errors during installation
191
+  Test Files 3 passed (14)
192
+  Tests 47 passed (174)
193
+  Start at 17:53:02
194
+  Duration 408ms
195
+ [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle network errors during installation
233
196
  Failed to install dependencies with npm.
234
197
 
235
198
 
236
-  ❯ src/__tests__/cloudflare-template.test.ts 1/24
237
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/21
199
+  ❯ src/__tests__/cloudflare-template.test.ts [queued]
200
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts [queued]
201
+  ❯ src/__tests__/helpers/generate-config.test.ts 0/25
202
+  ❯ src/__tests__/helpers/generate-identity.test.ts 0/24
203
+  ❯ src/__tests__/helpers/install.test.ts 0/20
204
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts 0/23
205
+  ❯ src/__tests__/scaffolder-envprefix.test.ts [queued]
206
+  ❯ src/utils/__tests__/fetch-remote-config.test.ts 0/9
207
+  ❯ test-cloudflare/tests/delegation.test.ts 0/12
208
+  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
238
209
 
239
-  Test Files 11 passed (13)
240
-  Tests 204 passed (248)
241
-  Start at 13:14:16
242
-  Duration 404ms
243
- [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle permission errors during installation
210
+  Test Files 3 passed (14)
211
+  Tests 47 passed (174)
212
+  Start at 17:53:02
213
+  Duration 408ms
214
+ [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle permission errors during installation
244
215
  
245
216
  📦 Installing dependencies with npm...
246
217
 
247
218
 
248
-  ❯ src/__tests__/cloudflare-template.test.ts 1/24
249
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/21
219
+  ❯ src/__tests__/cloudflare-template.test.ts [queued]
220
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts [queued]
221
+  ❯ src/__tests__/helpers/generate-config.test.ts 0/25
222
+  ❯ src/__tests__/helpers/generate-identity.test.ts 0/24
223
+  ❯ src/__tests__/helpers/install.test.ts 0/20
224
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts 0/23
225
+  ❯ src/__tests__/scaffolder-envprefix.test.ts [queued]
226
+  ❯ src/utils/__tests__/fetch-remote-config.test.ts 0/9
227
+  ❯ test-cloudflare/tests/delegation.test.ts 0/12
228
+  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
250
229
 
251
-  Test Files 11 passed (13)
252
-  Tests 204 passed (248)
253
-  Start at 13:14:16
254
-  Duration 404ms
255
- [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle permission errors during installation
230
+  Test Files 3 passed (14)
231
+  Tests 47 passed (174)
232
+  Start at 17:53:02
233
+  Duration 408ms
234
+ [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle permission errors during installation
256
235
  Failed to install dependencies with npm.
257
236
 
258
237
 
259
-  ❯ src/__tests__/cloudflare-template.test.ts 1/24
260
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/21
238
+  ❯ src/__tests__/cloudflare-template.test.ts [queued]
239
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts [queued]
240
+  ❯ src/__tests__/helpers/generate-config.test.ts 0/25
241
+  ❯ src/__tests__/helpers/generate-identity.test.ts 0/24
242
+  ❯ src/__tests__/helpers/install.test.ts 0/20
243
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts 0/23
244
+  ❯ src/__tests__/scaffolder-envprefix.test.ts [queued]
245
+  ❯ src/utils/__tests__/fetch-remote-config.test.ts 0/9
246
+  ❯ test-cloudflare/tests/delegation.test.ts 0/12
247
+  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
261
248
 
262
-  Test Files 11 passed (13)
263
-  Tests 204 passed (248)
264
-  Start at 13:14:16
265
-  Duration 404ms
266
- [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Error handling > should log error message when installation fails
249
+  Test Files 3 passed (14)
250
+  Tests 47 passed (174)
251
+  Start at 17:53:02
252
+  Duration 408ms
253
+ [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Error handling > should log error message when installation fails
267
254
  
268
255
  📦 Installing dependencies with npm...
269
256
 
@@ -272,60 +259,251 @@
272
259
  📦 Installing dependencies with unknown...
273
260
 
274
261
 
275
-  ❯ src/__tests__/cloudflare-template.test.ts 1/24
276
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/21
262
+  ❯ src/__tests__/cloudflare-template.test.ts [queued]
263
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts [queued]
264
+  ❯ src/__tests__/helpers/generate-config.test.ts 0/25
265
+  ❯ src/__tests__/helpers/generate-identity.test.ts 0/24
266
+  ❯ src/__tests__/helpers/install.test.ts 0/20
267
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts 0/23
268
+  ❯ src/__tests__/scaffolder-envprefix.test.ts [queued]
269
+  ❯ src/utils/__tests__/fetch-remote-config.test.ts 0/9
270
+  ❯ test-cloudflare/tests/delegation.test.ts 0/12
271
+  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
277
272
 
278
-  Test Files 11 passed (13)
279
-  Tests 204 passed (248)
280
-  Start at 13:14:16
281
-  Duration 404ms
282
- [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle invalid package manager gracefully
273
+  Test Files 3 passed (14)
274
+  Tests 47 passed (174)
275
+  Start at 17:53:02
276
+  Duration 408ms
277
+ [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle invalid package manager gracefully
283
278
  ⚠️ Warning: Unknown package manager "unknown", cannot check lockfile
284
279
 
285
280
 
286
-  ❯ src/__tests__/cloudflare-template.test.ts 1/24
287
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/21
281
+  ❯ src/__tests__/cloudflare-template.test.ts [queued]
282
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts [queued]
283
+  ❯ src/__tests__/helpers/generate-config.test.ts 0/25
284
+  ❯ src/__tests__/helpers/generate-identity.test.ts 0/24
285
+  ❯ src/__tests__/helpers/install.test.ts 0/20
286
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts 0/23
287
+  ❯ src/__tests__/scaffolder-envprefix.test.ts [queued]
288
+  ❯ src/utils/__tests__/fetch-remote-config.test.ts 0/9
289
+  ❯ test-cloudflare/tests/delegation.test.ts 0/12
290
+  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
288
291
 
289
-  Test Files 11 passed (13)
290
-  Tests 204 passed (248)
291
-  Start at 13:14:16
292
-  Duration 404ms
293
- [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Lockfile validation > should warn when lockfile not created
292
+  Test Files 3 passed (14)
293
+  Tests 47 passed (174)
294
+  Start at 17:53:02
295
+  Duration 408ms
296
+ [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Lockfile validation > should warn when lockfile not created
294
297
  
295
298
  📦 Installing dependencies with npm...
296
299
 
297
- ✓ src/__tests__/helpers/install.test.ts (20 tests) 28ms
298
- ✓ test-cloudflare/tests/do-routing.test.ts (14 tests) 85ms
299
- ✓ src/__tests__/helpers/validate-project-structure.test.ts (23 tests) 43ms
300
300
 
301
-  ❯ src/__tests__/cloudflare-template.test.ts 1/24
301
+  ❯ src/__tests__/cloudflare-template.test.ts [queued]
302
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts [queued]
303
+  ❯ src/__tests__/helpers/generate-config.test.ts 0/25
304
+  ❯ src/__tests__/helpers/generate-identity.test.ts 0/24
305
+  ❯ src/__tests__/helpers/install.test.ts 0/20
306
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts 0/23
307
+  ❯ src/__tests__/scaffolder-envprefix.test.ts [queued]
308
+  ❯ src/utils/__tests__/fetch-remote-config.test.ts 0/9
309
+  ❯ test-cloudflare/tests/delegation.test.ts 0/12
310
+  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
311
+
312
+  Test Files 3 passed (14)
313
+  Tests 47 passed (174)
314
+  Start at 17:53:02
315
+  Duration 408ms
316
+ [?2026l[?2026h ✓ src/utils/__tests__/fetch-remote-config.test.ts (9 tests) 7ms
317
+ ✓ src/__tests__/helpers/install.test.ts (20 tests) 53ms
318
+ ✓ test-cloudflare/tests/delegation.test.ts (12 tests) 34ms
319
+ ✓ src/__tests__/helpers/generate-config.test.ts (25 tests) 56ms
320
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include envPrefix in generated index.ts
321
+ 
322
+ 🏗️ Generating Cloudflare MCP-I project: test-agent...
323
+
324
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include envPrefix in generated index.ts
325
+ 🔑 Generating cryptographic identity...
326
+
327
+ ✓ src/__tests__/helpers/generate-identity.test.ts (24 tests) 88ms
328
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include envPrefix in generated index.ts
329
+ ✔ Created Cloudflare MCP-I template files
330
+ - Generated identity keys in .dev.vars
331
+ - Configured wrangler.toml with KV namespaces
332
+ - Created modular tool structure
333
+ - Created setup script for KV namespace creation
334
+
335
+ ============================================================
336
+ 🎉 Cloudflare MCP-I project created successfully!
337
+ ============================================================
338
+
339
+ 📝 Important Configuration Notes:
340
+
341
+ 1. ADMIN_API_KEY (in .dev.vars):
342
+ - Set to same value as AGENTSHIELD_API_KEY for convenience
343
+ - You can change it if you need separate admin endpoint security
344
+ - Required for admin endpoints like /admin/clear-cache
345
+
346
+ 2. KV Namespaces (in wrangler.toml):
347
+ - Required for MCP-I security features
348
+ - Auto-created by 'npm run setup' script
349
+ - Check wrangler.toml for 'TODO_REPLACE_WITH_ID' if setup failed
350
+
351
+ 🚀 Next Steps:
352
+ cd test-agent
353
+
354
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include envPrefix in generated index.ts
355
+  wrangler login # Login to Cloudflare first!
356
+ npm run setup # Create KV namespaces
357
+ npm run dev # Start local development
358
+ npm run deploy # Deploy to Cloudflare
359
+
360
+
361
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should use correct prefix format (uppercase with underscores)
362
+ 
363
+ 🏗️ Generating Cloudflare MCP-I project: my-awesome-agent...
364
+
365
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should use correct prefix format (uppercase with underscores)
366
+ 🔑 Generating cryptographic identity...
367
+
368
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should use correct prefix format (uppercase with underscores)
369
+ ✔ Created Cloudflare MCP-I template files
370
+ - Generated identity keys in .dev.vars
371
+ - Configured wrangler.toml with KV namespaces
372
+ - Created modular tool structure
373
+ - Created setup script for KV namespace creation
374
+
375
+ ============================================================
376
+ 🎉 Cloudflare MCP-I project created successfully!
377
+ ============================================================
378
+
379
+ 📝 Important Configuration Notes:
380
+
381
+ 1. ADMIN_API_KEY (in .dev.vars):
382
+ - Set to same value as AGENTSHIELD_API_KEY for convenience
383
+ - You can change it if you need separate admin endpoint security
384
+ - Required for admin endpoints like /admin/clear-cache
385
+
386
+ 2. KV Namespaces (in wrangler.toml):
387
+ - Required for MCP-I security features
388
+ - Auto-created by 'npm run setup' script
389
+ - Check wrangler.toml for 'TODO_REPLACE_WITH_ID' if setup failed
390
+
391
+ 🚀 Next Steps:
392
+ cd my-awesome-agent
393
+
394
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should use correct prefix format (uppercase with underscores)
395
+  wrangler login # Login to Cloudflare first!
396
+ npm run setup # Create KV namespaces
397
+ npm run dev # Start local development
398
+ npm run deploy # Deploy to Cloudflare
399
+
400
+
401
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include comment explaining envPrefix purpose
402
+ 
403
+ 🏗️ Generating Cloudflare MCP-I project: test-agent...
404
+
405
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include comment explaining envPrefix purpose
406
+ 🔑 Generating cryptographic identity...
407
+
408
+ ✓ src/__tests__/helpers/validate-project-structure.test.ts (23 tests) 53ms
409
+ ✓ test-cloudflare/tests/cors-security.test.ts (29 tests) 4ms
410
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include comment explaining envPrefix purpose
411
+ ✔ Created Cloudflare MCP-I template files
412
+ - Generated identity keys in .dev.vars
413
+ - Configured wrangler.toml with KV namespaces
414
+ - Created modular tool structure
415
+ - Created setup script for KV namespace creation
416
+
417
+ ============================================================
418
+ 🎉 Cloudflare MCP-I project created successfully!
419
+ ============================================================
420
+
421
+ 📝 Important Configuration Notes:
422
+
423
+ 1. ADMIN_API_KEY (in .dev.vars):
424
+ - Set to same value as AGENTSHIELD_API_KEY for convenience
425
+ - You can change it if you need separate admin endpoint security
426
+ - Required for admin endpoints like /admin/clear-cache
427
+
428
+ 2. KV Namespaces (in wrangler.toml):
429
+ - Required for MCP-I security features
430
+ - Auto-created by 'npm run setup' script
431
+ - Check wrangler.toml for 'TODO_REPLACE_WITH_ID' if setup failed
432
+
433
+ 🚀 Next Steps:
434
+ cd test-agent
435
+
436
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include comment explaining envPrefix purpose
437
+  wrangler login # Login to Cloudflare first!
438
+ npm run setup # Create KV namespaces
439
+ npm run dev # Start local development
440
+ npm run deploy # Deploy to Cloudflare
441
+
442
+
443
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should match envPrefix with KV binding names in wrangler.toml
444
+ 
445
+ 🏗️ Generating Cloudflare MCP-I project: test-agent...
446
+
447
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should match envPrefix with KV binding names in wrangler.toml
448
+ 🔑 Generating cryptographic identity...
449
+
450
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should match envPrefix with KV binding names in wrangler.toml
451
+ ✔ Created Cloudflare MCP-I template files
452
+ - Generated identity keys in .dev.vars
453
+ - Configured wrangler.toml with KV namespaces
454
+ - Created modular tool structure
455
+ - Created setup script for KV namespace creation
456
+
457
+ ============================================================
458
+ 🎉 Cloudflare MCP-I project created successfully!
459
+ ============================================================
460
+
461
+ 📝 Important Configuration Notes:
462
+
463
+ 1. ADMIN_API_KEY (in .dev.vars):
464
+ - Set to same value as AGENTSHIELD_API_KEY for convenience
465
+ - You can change it if you need separate admin endpoint security
466
+ - Required for admin endpoints like /admin/clear-cache
467
+
468
+ 2. KV Namespaces (in wrangler.toml):
469
+ - Required for MCP-I security features
470
+ - Auto-created by 'npm run setup' script
471
+ - Check wrangler.toml for 'TODO_REPLACE_WITH_ID' if setup failed
472
+
473
+ 🚀 Next Steps:
474
+ cd test-agent
475
+
476
+ stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should match envPrefix with KV binding names in wrangler.toml
477
+  wrangler login # Login to Cloudflare first!
478
+ npm run setup # Create KV namespaces
479
+ npm run dev # Start local development
480
+ npm run deploy # Deploy to Cloudflare
481
+
482
+
483
+ ✓ src/__tests__/scaffolder-envprefix.test.ts (4 tests) 68ms
484
+ ✓ test-cloudflare/tests/do-routing.test.ts (14 tests) 202ms
485
+
486
+  ❯ src/__tests__/cloudflare-template.test.ts 1/30
302
487
   ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/21
303
488
 
304
-  Test Files 11 passed (13)
305
-  Tests 204 passed (248)
306
-  Start at 13:14:16
307
-  Duration 404ms
308
- [?2026l ✓ src/__tests__/cloudflare-template.test.ts (24 tests) 108ms
309
- ✓ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts (21 tests) 95ms
489
+  Test Files 12 passed (14)
490
+  Tests 208 passed (258)
491
+  Start at 17:53:02
492
+  Duration 508ms
493
+ [?2026l ✓ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts (21 tests) 147ms
494
+ ✓ src/__tests__/cloudflare-template.test.ts (30 tests | 2 skipped) 175ms
310
495
 
311
-  Test Files  13 passed (13)
312
-  Tests  248 passed (248)
313
-  Start at  13:14:16
314
-  Duration  446ms (transform 721ms, setup 0ms, collect 1.03s, tests 448ms, environment 1ms, prepare 168ms)
496
+  Test Files  14 passed (14)
497
+  Tests  256 passed | 2 skipped (258)
498
+  Start at  17:53:02
499
+  Duration  682ms (transform 1.12s, setup 0ms, collect 1.79s, tests 922ms, environment 1ms, prepare 317ms)
315
500
 
316
501
   % Coverage report from v8
317
- ------------------------------------|---------|----------|---------|---------|-------------------
318
- File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
319
- ------------------------------------|---------|----------|---------|---------|-------------------
320
- All files  |  97.67 |  94.03 |  100 |  97.67 |  
321
-  helpers  |  98.88 |  95.04 |  100 |  98.88 |  
322
-  config-builder.ts  |  100 |  100 |  100 |  100 |  
323
-  fetch-cloudflare-mcpi-template.ts |  97.05 |  90.62 |  100 |  97.05 | 822,834 
324
-  generate-config.ts  |  100 |  100 |  100 |  100 |  
325
-  generate-identity.ts  |  100 |  100 |  100 |  100 |  
326
-  install.ts  |  100 |  100 |  100 |  100 |  
327
-  validate-project-structure.ts  |  100 |  100 |  100 |  100 |  
328
-  utils  |  91.42 |  90 |  100 |  91.42 |  
329
-  fetch-remote-config.ts  |  91.42 |  90 |  100 |  91.42 | 152-153,169 
330
- ------------------------------------|---------|----------|---------|---------|-------------------
502
+
503
+ =============================== Coverage summary ===============================
504
+ Statements : 26.5% ( 216/815 )
505
+ Branches : 24.63% ( 102/414 )
506
+ Functions : 32.14% ( 18/56 )
507
+ Lines : 26.69% ( 216/809 )
508
+ ================================================================================
331
509
  [?25h