@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,165 +1,353 @@
1
-
2
- > @kya-os/create-mcpi-app@1.7.39-canary.7 test /Users/dylanhobbs/Documents/@kya-os/xmcp-i/packages/create-mcpi-app
3
- > vitest --run
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/dylanhobbs/Documents/@kya-os/xmcp-i/packages/create-mcpi-app
43
-
44
- ✓ test-cloudflare/tests/cors-security.test.ts (29 tests) 3ms
45
- stderr | src/utils/__tests__/fetch-remote-config.test.ts > fetchRemoteConfig > Error handling > should return null if API request fails
46
- [RemoteConfig] API returned 404: Not Found
47
-
48
- stderr | src/utils/__tests__/fetch-remote-config.test.ts > fetchRemoteConfig > Error handling > should return null if API throws error
49
- [RemoteConfig] Failed to fetch config: Error: Network error
50
- at /Users/dylanhobbs/Documents/@kya-os/xmcp-i/packages/create-mcpi-app/src/utils/__tests__/fetch-remote-config.test.ts:173:35
51
- 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
52
- 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
53
- 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
54
- at new Promise (<anonymous>)
55
- 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)
56
- 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)
57
- at processTicksAndRejections (node:internal/process/task_queues:103:5)
58
- 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)
59
- 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)
60
-
61
- stderr | src/utils/__tests__/fetch-remote-config.test.ts > fetchRemoteConfig > Error handling > should return null if neither projectId nor agentDid provided
62
- [RemoteConfig] Neither projectId nor agentDid provided
63
-
64
- stderr | src/utils/__tests__/fetch-remote-config.test.ts > fetchRemoteConfig > Error handling > should handle cache read errors gracefully
65
- [RemoteConfig] Cache read failed: Error: Cache error
66
- at /Users/dylanhobbs/Documents/@kya-os/xmcp-i/packages/create-mcpi-app/src/utils/__tests__/fetch-remote-config.test.ts:201:50
67
- 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
68
- 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
69
- 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
70
- at new Promise (<anonymous>)
71
- 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)
72
- 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)
73
- at processTicksAndRejections (node:internal/process/task_queues:103:5)
74
- 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)
75
- 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)
76
-
77
- ✓ src/utils/__tests__/fetch-remote-config.test.ts (9 tests) 5ms
78
- ✓ test-cloudflare/tests/do-routing.test.ts (14 tests) 65ms
79
- ✓ test-cloudflare/tests/cache-invalidation.test.ts (18 tests) 7ms
80
- ✓ test-cloudflare/tests/delegation.test.ts (12 tests) 10ms
81
- stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with npm
82
-
83
- 📦 Installing dependencies with npm...
84
- Lockfile created (package-lock.json) - remember to commit it
85
-
86
- stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with yarn
87
-
88
- 📦 Installing dependencies with yarn...
89
- Lockfile created (yarn.lock) - remember to commit it
90
-
91
- stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with pnpm
92
-
93
- 📦 Installing dependencies with pnpm...
94
- Lockfile created (pnpm-lock.yaml) - remember to commit it
95
-
96
- stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should use correct working directory
97
-
98
- 📦 Installing dependencies with npm...
99
- Lockfile created (package-lock.json) - remember to commit it
100
-
101
- stderr | src/__tests__/helpers/install.test.ts > install > Install progress reporting > should report correct package manager in log
102
- stdout | src/__tests__/helpers/install.test.ts > install > Install progress reporting > should check for lockfile after installation
103
-
104
- 📦 Installing dependencies with npm...
105
- ⚠️ Warning: No lockfile generated (pnpm-lock.yaml)
106
-
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
- 📦 Installing dependencies with npm...
126
-
127
- stderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle permission errors during installation
128
- Failed to install dependencies with npm.
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
- stdout | test-cloudflare/tests/session-management.test.ts > Session Management > Session Security > should not expose session data in logs
146
- [Session] Created session: secure-session
147
-
148
- src/__tests__/helpers/install.test.ts (20 tests) 37ms
149
- ✓ test-cloudflare/tests/session-management.test.ts (17 tests) 64ms
150
- stderr | src/helpers/__tests__/config-builder.spec.ts > buildConfigWithRemote > should fallback to local config when remote fetch fails
151
- [RemoteConfig] Neither projectId nor agentDid provided
152
-
153
- src/helpers/__tests__/config-builder.spec.ts (12 tests) 8ms
154
- src/__tests__/helpers/validate-project-structure.test.ts (23 tests) 88ms
155
- ✓ src/__tests__/helpers/generate-identity.test.ts (24 tests) 154ms
156
- src/__tests__/helpers/generate-config.test.ts (25 tests) 86ms
157
- ✓ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts (21 tests) 1613ms
158
- src/__tests__/cloudflare-template.test.ts (24 tests) 1940ms
159
- should create .dev.vars.example template 369ms
160
-
161
- Test Files 13 passed (13)
162
- Tests 248 passed (248)
163
- Start at 15:12:35
164
- Duration 4.05s (transform 3.45s, setup 0ms, collect 6.36s, tests 4.08s, environment 1ms, prepare 129ms)
165
-
1
+
2
+ 
3
+ > @kya-os/create-mcpi-app@1.7.39-canary.25 test /Users/brian/Documents/@kya-os/modelcontextprotocol-identity/xmcp-i/packages/create-mcpi-app
4
+ > vitest --run
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/brian/Documents/@kya-os/modelcontextprotocol-identity/xmcp-i/packages/create-mcpi-app
44
+
45
+ [?2026h
46
+  test-cloudflare/tests/session-management.test.ts [queued]
47
+
48
+  Test Files 0 passed (13)
49
+  Tests 0 passed (0)
50
+  Start at 15:09:05
51
+  Duration 204ms
52
+ [?2026l[?2026hstdout | test-cloudflare/tests/session-management.test.ts > Session Management > Session Security > should not expose session data in logs
53
+ [Session] Created session: secure-session
54
+
55
+ ✓ test-cloudflare/tests/session-management.test.ts (17 tests) 13ms
56
+ ✓ test-cloudflare/tests/cors-security.test.ts (29 tests) 4ms
57
+ ✓ test-cloudflare/tests/cache-invalidation.test.ts (18 tests) 5ms
58
+
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 [queued]
62
+  src/__tests__/helpers/generate-identity.test.ts [queued]
63
+  ❯ src/__tests__/helpers/install.test.ts [queued]
64
+  src/__tests__/helpers/validate-project-structure.test.ts [queued]
65
+  src/helpers/__tests__/config-builder.spec.ts [queued]
66
+  ❯ src/utils/__tests__/fetch-remote-config.test.ts [queued]
67
+  ❯ test-cloudflare/tests/delegation.test.ts 0/12
68
+  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
69
+
70
+  Test Files 3 passed (13)
71
+  Tests 64 passed (90)
72
+  Start at 15:09:05
73
+  Duration 305ms
74
+ [?2026l[?2026h ✓ test-cloudflare/tests/delegation.test.ts (12 tests) 10ms
75
+
76
+
77
+
78
+
79
+
80
+
81
+
82
+
83
+  src/__tests__/cloudflare-template.test.ts 0/24
84
+  src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 1/21
85
+
86
+  Test Files 11 passed (13)
87
+  Tests 204 passed (248)
88
+  Start at 15:09:05
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/brian/Documents/@kya-os/modelcontextprotocol-identity/xmcp-i/packages/create-mcpi-app/src/utils/__tests__/fetch-remote-config.test.ts:173:35
96
+ 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
97
+ 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
98
+ 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
99
+ at new Promise (<anonymous>)
100
+ 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)
101
+ 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)
102
+  at processTicksAndRejections (node:internal/process/task_queues:105:5)
103
+ 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)
104
+ 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)
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/brian/Documents/@kya-os/modelcontextprotocol-identity/xmcp-i/packages/create-mcpi-app/src/utils/__tests__/fetch-remote-config.test.ts:201:50
112
+ 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
113
+ 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
114
+ 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
115
+ at new Promise (<anonymous>)
116
+ 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)
117
+ 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)
118
+  at processTicksAndRejections (node:internal/process/task_queues:105:5)
119
+ 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)
120
+ 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)
121
+
122
+
123
+  src/__tests__/cloudflare-template.test.ts 0/24
124
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 1/21
125
+
126
+  Test Files 11 passed (13)
127
+  Tests 204 passed (248)
128
+  Start at 15:09:05
129
+  Duration 405ms
130
+ [?2026l[?2026h ✓ src/utils/__tests__/fetch-remote-config.test.ts (9 tests) 9ms
131
+
132
+  src/__tests__/cloudflare-template.test.ts 0/24
133
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 1/21
134
+
135
+  Test Files 11 passed (13)
136
+  Tests 204 passed (248)
137
+  Start at 15:09:05
138
+  Duration 405ms
139
+ [?2026l[?2026hstderr | src/helpers/__tests__/config-builder.spec.ts > buildConfigWithRemote > should fallback to local config when remote fetch fails
140
+ [RemoteConfig] Neither projectId nor agentDid provided
141
+
142
+
143
+  src/__tests__/cloudflare-template.test.ts 0/24
144
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 1/21
145
+
146
+  Test Files 11 passed (13)
147
+  Tests 204 passed (248)
148
+  Start at 15:09:05
149
+  Duration 405ms
150
+ [?2026l[?2026h ✓ src/helpers/__tests__/config-builder.spec.ts (12 tests) 6ms
151
+ stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with npm
152
+ 
153
+ 📦 Installing dependencies with npm...
154
+ Lockfile created (package-lock.json) - remember to commit it
155
+
156
+ stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with yarn
157
+ 
158
+ 📦 Installing dependencies with yarn...
159
+ Lockfile created (yarn.lock) - remember to commit it
160
+
161
+ stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with pnpm
162
+ 
163
+ 📦 Installing dependencies with pnpm...
164
+ Lockfile created (pnpm-lock.yaml) - remember to commit it
165
+
166
+ stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should use correct working directory
167
+ 
168
+ 📦 Installing dependencies with npm...
169
+ ✓ Lockfile created (package-lock.json) - remember to commit it
170
+
171
+
172
+  ❯ src/__tests__/cloudflare-template.test.ts 0/24
173
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 1/21
174
+
175
+  Test Files 11 passed (13)
176
+  Tests 204 passed (248)
177
+  Start at 15:09:05
178
+  Duration 405ms
179
+ [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Install progress reporting > should report correct package manager in log
180
+ ⚠️ Warning: No lockfile generated (pnpm-lock.yaml)
181
+
182
+
183
+  ❯ src/__tests__/cloudflare-template.test.ts 0/24
184
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 1/21
185
+
186
+  Test Files 11 passed (13)
187
+  Tests 204 passed (248)
188
+  Start at 15:09:05
189
+  Duration 405ms
190
+ [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Install progress reporting > should check for lockfile after installation
191
+ 
192
+ 📦 Installing dependencies with npm...
193
+ ✓ Lockfile created (package-lock.json) - remember to commit it
194
+
195
+ stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should throw error when installation fails
196
+ 
197
+ 📦 Installing dependencies with npm...
198
+
199
+
200
+  ❯ src/__tests__/cloudflare-template.test.ts 0/24
201
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 1/21
202
+
203
+  Test Files 11 passed (13)
204
+  Tests 204 passed (248)
205
+  Start at 15:09:05
206
+  Duration 405ms
207
+ [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Error handling > should throw error when installation fails
208
+ Failed to install dependencies with npm.
209
+
210
+
211
+  ❯ src/__tests__/cloudflare-template.test.ts 0/24
212
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 1/21
213
+
214
+  Test Files 11 passed (13)
215
+  Tests 204 passed (248)
216
+  Start at 15:09:05
217
+  Duration 405ms
218
+ [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle network errors during installation
219
+ 
220
+ 📦 Installing dependencies with npm...
221
+
222
+
223
+  ❯ src/__tests__/cloudflare-template.test.ts 0/24
224
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 1/21
225
+
226
+  Test Files 11 passed (13)
227
+  Tests 204 passed (248)
228
+  Start at 15:09:05
229
+  Duration 405ms
230
+ [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle network errors during installation
231
+ Failed to install dependencies with npm.
232
+
233
+
234
+  ❯ src/__tests__/cloudflare-template.test.ts 0/24
235
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 1/21
236
+
237
+  Test Files 11 passed (13)
238
+  Tests 204 passed (248)
239
+  Start at 15:09:05
240
+  Duration 405ms
241
+ [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle permission errors during installation
242
+ 
243
+ 📦 Installing dependencies with npm...
244
+
245
+
246
+  ❯ src/__tests__/cloudflare-template.test.ts 0/24
247
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 1/21
248
+
249
+  Test Files 11 passed (13)
250
+  Tests 204 passed (248)
251
+  Start at 15:09:05
252
+  Duration 405ms
253
+ [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle permission errors during installation
254
+ Failed to install dependencies with npm.
255
+
256
+
257
+  ❯ src/__tests__/cloudflare-template.test.ts 0/24
258
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 1/21
259
+
260
+  Test Files 11 passed (13)
261
+  Tests 204 passed (248)
262
+  Start at 15:09:05
263
+  Duration 405ms
264
+ [?2026l[?2026h ✓ src/__tests__/helpers/generate-identity.test.ts (24 tests) 46ms
265
+ stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should log error message when installation fails
266
+ 
267
+ 📦 Installing dependencies with npm...
268
+
269
+ stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle invalid package manager gracefully
270
+ 
271
+ 📦 Installing dependencies with unknown...
272
+
273
+
274
+  ❯ src/__tests__/cloudflare-template.test.ts 0/24
275
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 1/21
276
+
277
+  Test Files 11 passed (13)
278
+  Tests 204 passed (248)
279
+  Start at 15:09:05
280
+  Duration 405ms
281
+ [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle invalid package manager gracefully
282
+ ⚠️ Warning: Unknown package manager "unknown", cannot check lockfile
283
+
284
+
285
+  ❯ src/__tests__/cloudflare-template.test.ts 0/24
286
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 1/21
287
+
288
+  Test Files 11 passed (13)
289
+  Tests 204 passed (248)
290
+  Start at 15:09:05
291
+  Duration 405ms
292
+ [?2026l[?2026h ✓ test-cloudflare/tests/do-routing.test.ts (14 tests) 76ms
293
+ stdout | src/__tests__/helpers/install.test.ts > install > Lockfile validation > should warn when lockfile not created
294
+ 
295
+ 📦 Installing dependencies with npm...
296
+
297
+ ✓ src/__tests__/helpers/install.test.ts (20 tests) 35ms
298
+ ✓ src/__tests__/helpers/validate-project-structure.test.ts (23 tests) 47ms
299
+ ✓ src/__tests__/helpers/generate-config.test.ts (25 tests) 52ms
300
+
301
+  ❯ src/__tests__/cloudflare-template.test.ts 0/24
302
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 1/21
303
+
304
+  Test Files 11 passed (13)
305
+  Tests 204 passed (248)
306
+  Start at 15:09:05
307
+  Duration 405ms
308
+ [?2026l ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts (21 tests | 1 failed) 112ms
309
+ ✓ should fetch and generate template successfully 12ms
310
+ ✓ should use default project name from path when not provided 10ms
311
+ ✓ should handle different package managers 14ms
312
+ ✓ should generate template with correct project structure 5ms
313
+ ✓ should generate consistent template structure on multiple calls 10ms
314
+ ✓ should handle template generation without overwriting existing files incorrectly 6ms
315
+ ✓ should handle missing dependencies gracefully 1ms
316
+ ✓ should handle permission errors gracefully 1ms
317
+ ✓ should handle disk space errors (simulated) 2ms
318
+ ✓ should transform project name to valid class name 5ms
319
+ ✓ should handle special characters in project name 5ms
320
+ ✓ should handle numeric project names 4ms
321
+ ✓ should handle project names with only special characters 4ms
322
+ ✓ should handle project names with only dots 4ms
323
+ ✓ should transform KV namespace bindings correctly 5ms
324
+ ✓ should transform package.json scripts correctly 4ms
325
+ ✓ should transform index.ts class name correctly 6ms
326
+ ✓ should include API key in .dev.vars when provided 4ms
327
+ ✓ should handle missing API key gracefully 4ms
328
+ ✓ should skip identity generation when skipIdentity is true 4ms
329
+  × should generate identity when skipIdentity is false 2ms
330
+ ✓ src/__tests__/cloudflare-template.test.ts (24 tests) 120ms
331
+
332
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
333
+
334
+  FAIL  src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts > fetchCloudflareMcpiTemplate > Skip identity option > should generate identity when skipIdentity is false
335
+ Error: ENOENT: no such file or directory, mkdir '/Users/brian/Documents/@kya-os/modelcontextprotocol-identity/xmcp-i/packages/create-mcpi-app/test-temp/fetch-test-1762891745752-qfxt1v'
336
+  ❯ Object.module.exports.makeDirSync ../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/mkdirs/make-dir.js:23:13
337
+  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts:20:8
338
+  18|  beforeEach(() => {
339
+  19|  tempDir = path.join(process.cwd(), 'test-temp', `fetch-test-${Date.now()}-${Math.random().toString(36).substring(7)}`);
340
+  20|  fs.ensureDirSync(tempDir);
341
+  |  ^
342
+  21|  console.log = vi.fn();
343
+  22|  console.error = vi.fn();
344
+
345
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/1]⎯
346
+
347
+
348
+  Test Files  1 failed | 12 passed (13)
349
+  Tests  1 failed | 247 passed (248)
350
+  Start at  15:09:05
351
+  Duration  526ms (transform 683ms, setup 0ms, collect 1.36s, tests 535ms, environment 1ms, prepare 81ms)
352
+
353
+ [?25h ELIFECYCLE  Test failed. See above for more details.
package/README.md CHANGED
@@ -109,24 +109,27 @@ my-agent/
109
109
  MCP-I automatically batches proofs for efficient submission to AgentShield. Proofs are:
110
110
 
111
111
  1. **Batched within requests**: When multiple tools are called, proofs are collected and submitted together
112
- 2. **Flushed via cron**: A cron job flushes pending proofs every minute (configurable)
112
+ 2. **Auto-flush on batch size**: When 10 proofs accumulate, they're automatically flushed
113
+ 3. **First proof immediate**: The first proof is submitted immediately (not batched) for dashboard setup detection
113
114
 
114
- **Cron Configuration:**
115
+ **Cron Configuration (Currently Disabled):**
115
116
 
116
- The scaffolder automatically adds a cron trigger to `wrangler.toml`:
117
+ ⚠️ **Note**: Cloudflare Workers cron triggers are currently experiencing API parsing issues that prevent deployment. The cron trigger is commented out by default in the generated `wrangler.toml`.
117
118
 
118
- ```toml
119
- [[triggers.crons]]
120
- cron = "* * * * *" # Every minute (default)
121
- ```
119
+ Proofs work correctly without cron because:
120
+ - First proof submits immediately (ensures dashboard setup detection)
121
+ - Proofs auto-flush when batch size is reached (default: 10 proofs)
122
+ - Cron is only needed for flushing small batches that haven't reached the size limit
122
123
 
123
- To adjust the flush frequency, edit `wrangler.toml`:
124
+ If you want to enable cron-based flushing in the future, uncomment the section in `wrangler.toml`:
124
125
 
125
126
  ```toml
126
127
  [[triggers.crons]]
127
- cron = "*/5 * * * *" # Every 5 minutes (recommended for production)
128
+ cron = "*/5 * * * *" # Every 5 minutes (recommended)
128
129
  ```
129
130
 
131
+ **Note**: If deployment fails with "Could not parse request body" when cron is enabled, this indicates a Cloudflare API issue. Keep cron commented out - proofs will still work correctly.
132
+
130
133
  **Verifying Proof Submission:**
131
134
 
132
135
  1. Check Cloudflare Worker logs for `[ProofService]` messages:
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-cloudflare-mcpi-template.d.ts","sourceRoot":"","sources":["../../src/helpers/fetch-cloudflare-mcpi-template.ts"],"names":[],"mappings":"AAKA,UAAU,6BAA6B;IACrC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED;;;GAGG;AACH,wBAAsB,2BAA2B,CAC/C,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE,6BAAkC,GAC1C,OAAO,CAAC,IAAI,CAAC,CAixCf"}
1
+ {"version":3,"file":"fetch-cloudflare-mcpi-template.d.ts","sourceRoot":"","sources":["../../src/helpers/fetch-cloudflare-mcpi-template.ts"],"names":[],"mappings":"AAKA,UAAU,6BAA6B;IACrC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED;;;GAGG;AACH,wBAAsB,2BAA2B,CAC/C,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE,6BAAkC,GAC1C,OAAO,CAAC,IAAI,CAAC,CAyyCf"}