@kya-os/create-mcpi-app 1.7.42 → 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,155 +1,78 @@
1
1
 
2
2
  
3
- > @kya-os/create-mcpi-app@1.7.39-canary.25 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 14:14:49
52
-  Duration 104ms
53
- [?2026l[?2026h ✓ test-cloudflare/tests/delegation.test.ts (12 tests) 5ms
54
- ✓ test-cloudflare/tests/cache-invalidation.test.ts (18 tests) 6ms
55
-
15
+  Start at 17:53:02
16
+  Duration 103ms
17
+ [?2026l[?2026h
56
18
   ❯ src/__tests__/cloudflare-template.test.ts [queued]
57
19
   ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts [queued]
58
20
   ❯ src/__tests__/helpers/generate-config.test.ts [queued]
59
21
   ❯ src/__tests__/helpers/generate-identity.test.ts [queued]
60
22
   ❯ src/__tests__/helpers/install.test.ts [queued]
61
-  ❯ src/__tests__/helpers/validate-project-structure.test.ts 0/23
23
+  ❯ src/__tests__/helpers/validate-project-structure.test.ts [queued]
24
+  ❯ src/__tests__/scaffolder-envprefix.test.ts [queued]
62
25
   ❯ src/helpers/__tests__/config-builder.spec.ts [queued]
63
-  ❯ src/utils/__tests__/fetch-remote-config.test.ts [queued]
64
-  ❯ test-cloudflare/tests/cors-security.test.ts 1/29
26
+  ❯ test-cloudflare/tests/cache-invalidation.test.ts [queued]
27
+  ❯ test-cloudflare/tests/delegation.test.ts [queued]
65
28
   ❯ test-cloudflare/tests/do-routing.test.ts 0/14
66
-  ❯ test-cloudflare/tests/session-management.test.ts 0/17
29
+  ❯ test-cloudflare/tests/session-management.test.ts [queued]
67
30
 
68
-  Test Files 2 passed (13)
69
-  Tests 31 passed (113)
70
-  Start at 14:14:49
71
-  Duration 203ms
72
- [?2026l[?2026h ✓ test-cloudflare/tests/cors-security.test.ts (29 tests) 4ms
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
73
36
  stdout | test-cloudflare/tests/session-management.test.ts > Session Management > Session Security > should not expose session data in logs
74
37
  [Session] Created session: secure-session
75
38
 
76
- ✓ test-cloudflare/tests/session-management.test.ts (17 tests) 22ms
77
-
78
-
79
-
80
-
81
-
82
-
83
-  ❯ src/__tests__/cloudflare-template.test.ts 1/24
84
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/21
85
-
86
-  Test Files 11 passed (13)
87
-  Tests 204 passed (248)
88
-  Start at 14:14:49
89
-  Duration 405ms
90
- [?2026l[?2026hstderr | src/utils/__tests__/fetch-remote-config.test.ts > fetchRemoteConfig > Error handling > should return null if API request fails
91
- [RemoteConfig] API returned 404: Not Found
92
-
93
- stderr | src/utils/__tests__/fetch-remote-config.test.ts > fetchRemoteConfig > Error handling > should return null if API throws error
94
- [RemoteConfig] Failed to fetch config: Error: Network error
95
- at /Users/dylanhobbs/Documents/@kya-os/xmcp-i/packages/create-mcpi-app/src/utils/__tests__/fetch-remote-config.test.ts:173:35
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:157:11
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:753:26
98
- 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
99
- at new Promise (<anonymous>)
100
- 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)
101
- 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)
102
-  at processTicksAndRejections (node:internal/process/task_queues:103:5)
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)
104
- 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)
105
-
106
- stderr | src/utils/__tests__/fetch-remote-config.test.ts > fetchRemoteConfig > Error handling > should return null if neither projectId nor agentDid provided
107
- [RemoteConfig] Neither projectId nor agentDid provided
108
-
109
- stderr | src/utils/__tests__/fetch-remote-config.test.ts > fetchRemoteConfig > Error handling > should handle cache read errors gracefully
110
- [RemoteConfig] Cache read failed: Error: Cache error
111
- at /Users/dylanhobbs/Documents/@kya-os/xmcp-i/packages/create-mcpi-app/src/utils/__tests__/fetch-remote-config.test.ts:201:50
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
-
123
-  ❯ src/__tests__/cloudflare-template.test.ts 1/24
124
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/21
125
-
126
-  Test Files 11 passed (13)
127
-  Tests 204 passed (248)
128
-  Start at 14:14:49
129
-  Duration 405ms
130
- [?2026l[?2026h ✓ src/utils/__tests__/fetch-remote-config.test.ts (9 tests) 7ms
131
- ✓ src/__tests__/helpers/validate-project-structure.test.ts (23 tests) 34ms
132
39
 
133
-  ❯ src/__tests__/cloudflare-template.test.ts 1/24
134
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/21
40
+  ❯ src/__tests__/cloudflare-template.test.ts [queued]
41
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts [queued]
42
+  ❯ src/__tests__/helpers/generate-config.test.ts 0/25
43
+  ❯ src/__tests__/helpers/generate-identity.test.ts 0/24
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
49
+  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
135
50
 
136
-  Test Files 11 passed (13)
137
-  Tests 204 passed (248)
138
-  Start at 14:14:49
139
-  Duration 405ms
140
- [?2026l[?2026hstderr | src/helpers/__tests__/config-builder.spec.ts > buildConfigWithRemote > should fallback to local config when remote fetch fails
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
141
56
  [RemoteConfig] Neither projectId nor agentDid provided
142
57
 
143
58
 
144
-  ❯ src/__tests__/cloudflare-template.test.ts 1/24
145
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/21
59
+  ❯ src/__tests__/cloudflare-template.test.ts [queued]
60
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts [queued]
61
+  ❯ src/__tests__/helpers/generate-config.test.ts 0/25
62
+  ❯ src/__tests__/helpers/generate-identity.test.ts 0/24
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
68
+  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
146
69
 
147
-  Test Files 11 passed (13)
148
-  Tests 204 passed (248)
149
-  Start at 14:14:49
150
-  Duration 405ms
151
- [?2026l[?2026h ✓ src/helpers/__tests__/config-builder.spec.ts (12 tests) 4ms
152
- ✓ src/__tests__/helpers/generate-config.test.ts (25 tests) 40ms
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
153
76
  stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with npm
154
77
  
155
78
  📦 Installing dependencies with npm...
@@ -160,7 +83,6 @@
160
83
  📦 Installing dependencies with yarn...
161
84
  ✓ Lockfile created (yarn.lock) - remember to commit it
162
85
 
163
- ✓ test-cloudflare/tests/do-routing.test.ts (14 tests) 97ms
164
86
  stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with pnpm
165
87
  
166
88
  📦 Installing dependencies with pnpm...
@@ -171,27 +93,42 @@
171
93
  📦 Installing dependencies with npm...
172
94
  ✓ Lockfile created (package-lock.json) - remember to commit it
173
95
 
174
- ✓ src/__tests__/helpers/generate-identity.test.ts (24 tests) 31ms
175
96
 
176
-  ❯ src/__tests__/cloudflare-template.test.ts 1/24
177
-  ❯ 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
178
107
 
179
-  Test Files 11 passed (13)
180
-  Tests 204 passed (248)
181
-  Start at 14:14:49
182
-  Duration 405ms
183
- [?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
184
113
  ⚠️ Warning: No lockfile generated (pnpm-lock.yaml)
185
114
 
186
115
 
187
-  ❯ src/__tests__/cloudflare-template.test.ts 1/24
188
-  ❯ 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
189
126
 
190
-  Test Files 11 passed (13)
191
-  Tests 204 passed (248)
192
-  Start at 14:14:49
193
-  Duration 405ms
194
- [?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
195
132
  
196
133
  📦 Installing dependencies with npm...
197
134
  ✓ Lockfile created (package-lock.json) - remember to commit it
@@ -201,71 +138,119 @@
201
138
  📦 Installing dependencies with npm...
202
139
 
203
140
 
204
-  ❯ src/__tests__/cloudflare-template.test.ts 1/24
205
-  ❯ 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
206
151
 
207
-  Test Files 11 passed (13)
208
-  Tests 204 passed (248)
209
-  Start at 14:14:49
210
-  Duration 405ms
211
- [?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
212
157
  Failed to install dependencies with npm.
213
158
 
214
159
 
215
-  ❯ src/__tests__/cloudflare-template.test.ts 1/24
216
-  ❯ 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
217
170
 
218
-  Test Files 11 passed (13)
219
-  Tests 204 passed (248)
220
-  Start at 14:14:49
221
-  Duration 405ms
222
- [?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
223
176
  
224
177
  📦 Installing dependencies with npm...
225
178
 
226
179
 
227
-  ❯ src/__tests__/cloudflare-template.test.ts 1/24
228
-  ❯ 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
229
190
 
230
-  Test Files 11 passed (13)
231
-  Tests 204 passed (248)
232
-  Start at 14:14:49
233
-  Duration 405ms
234
- [?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
235
196
  Failed to install dependencies with npm.
236
197
 
237
198
 
238
-  ❯ src/__tests__/cloudflare-template.test.ts 1/24
239
-  ❯ 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
240
209
 
241
-  Test Files 11 passed (13)
242
-  Tests 204 passed (248)
243
-  Start at 14:14:49
244
-  Duration 405ms
245
- [?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
246
215
  
247
216
  📦 Installing dependencies with npm...
248
217
 
249
218
 
250
-  ❯ src/__tests__/cloudflare-template.test.ts 1/24
251
-  ❯ 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
252
229
 
253
-  Test Files 11 passed (13)
254
-  Tests 204 passed (248)
255
-  Start at 14:14:49
256
-  Duration 405ms
257
- [?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
258
235
  Failed to install dependencies with npm.
259
236
 
260
237
 
261
-  ❯ src/__tests__/cloudflare-template.test.ts 1/24
262
-  ❯ 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
263
248
 
264
-  Test Files 11 passed (13)
265
-  Tests 204 passed (248)
266
-  Start at 14:14:49
267
-  Duration 405ms
268
- [?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
269
254
  
270
255
  📦 Installing dependencies with npm...
271
256
 
@@ -274,58 +259,251 @@
274
259
  📦 Installing dependencies with unknown...
275
260
 
276
261
 
277
-  ❯ src/__tests__/cloudflare-template.test.ts 1/24
278
-  ❯ 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
279
272
 
280
-  Test Files 11 passed (13)
281
-  Tests 204 passed (248)
282
-  Start at 14:14:49
283
-  Duration 405ms
284
- [?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
285
278
  ⚠️ Warning: Unknown package manager "unknown", cannot check lockfile
286
279
 
287
280
 
288
-  ❯ src/__tests__/cloudflare-template.test.ts 1/24
289
-  ❯ 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
290
291
 
291
-  Test Files 11 passed (13)
292
-  Tests 204 passed (248)
293
-  Start at 14:14:49
294
-  Duration 405ms
295
- [?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
296
297
  
297
298
  📦 Installing dependencies with npm...
298
299
 
299
- ✓ src/__tests__/helpers/install.test.ts (20 tests) 26ms
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 14:14:49
307
-  Duration 405ms
308
- [?2026l ✓ src/__tests__/cloudflare-template.test.ts (24 tests) 111ms
309
- ✓ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts (21 tests) 102ms
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  14:14:49
314
-  Duration  452ms (transform 537ms, setup 0ms, collect 913ms, tests 489ms, environment 1ms, prepare 299ms)
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  |  96.49 |  94.11 |  100 |  96.49 |  
321
-  helpers  |  97.29 |  95.12 |  100 |  97.29 |  
322
-  config-builder.ts  |  100 |  100 |  100 |  100 |  
323
-  ...cloudflare-mcpi-template.ts |  94.54 |  90.9 |  100 |  94.54 | 823,835,940-948 
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