@kya-os/create-mcpi-app 1.7.42-canary.19 → 1.7.42-canary.20

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