@kya-os/create-mcpi-app 1.8.13 → 1.8.15-canary.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.
package/package.json CHANGED
@@ -1,51 +1,84 @@
1
1
  {
2
2
  "name": "@kya-os/create-mcpi-app",
3
- "version": "1.8.13",
4
- "description": "Scaffold a new MCP-I application",
3
+ "version": "1.8.15-canary.0",
4
+ "description": "Bootstrap MCP applications with identity features",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
5
8
  "bin": {
6
- "create-mcpi-app": "./dist/index.js"
9
+ "create-mcpi-app": "index.js"
10
+ },
11
+ "exports": {
12
+ ".": {
13
+ "import": "./dist/index.js",
14
+ "require": "./dist/index.js",
15
+ "types": "./dist/index.d.ts"
16
+ },
17
+ "./config-builder": {
18
+ "import": "./dist/helpers/config-builder.js",
19
+ "require": "./dist/helpers/config-builder.js",
20
+ "types": "./dist/helpers/config-builder.d.ts"
21
+ }
7
22
  },
8
23
  "scripts": {
9
24
  "build": "tsc && chmod +x dist/index.js",
10
- "test": "vitest run",
11
- "test:coverage": "vitest run --coverage",
12
- "lint": "eslint .",
13
- "clean": "rm -rf dist .turbo node_modules",
14
- "prepublishOnly": "npm run build && node scripts/validate-dependencies.js && node scripts/validate-template-versions.js"
25
+ "dev": "tsc --watch",
26
+ "test": "vitest --run",
27
+ "test:coverage": "vitest --run --coverage",
28
+ "prepublishOnly": "npm run build && node scripts/validate-dependencies.js"
15
29
  },
16
30
  "dependencies": {
17
- "@kya-os/cli": "^1.4.1",
31
+ "@kya-os/cli": "^1.4.2-canary.0",
18
32
  "@kya-os/cli-effects": "^1.0.19",
19
- "@kya-os/contracts": "^1.6.1",
20
- "@kya-os/mcp-i": "^1.6.1",
21
- "@kya-os/mcp-i-cloudflare": "^1.6.13",
33
+ "@kya-os/mcp-i": "^1.6.2-canary.0",
34
+ "@kya-os/mcp-i-cloudflare": "^1.5.8-canary.10",
22
35
  "base-x": "^5.0.0",
23
- "chalk": "^4.1.2",
24
- "commander": "^12.1.0",
25
- "cross-spawn": "^7.0.3",
26
- "dotenv": "^16.0.0",
36
+ "chalk": "^5.3.0",
37
+ "commander": "^11.1.0",
38
+ "dotenv": "^17.2.3",
27
39
  "fs-extra": "^11.2.0",
28
- "inquirer": "^8.2.5",
29
- "node-fetch": "^2.7.0",
30
- "ora": "^5.4.1",
31
- "prompts": "^2.4.2",
32
- "semver": "^7.6.2",
33
- "validate-npm-package-name": "^5.0.0"
40
+ "inquirer": "^12.9.4",
41
+ "node-fetch": "^3.3.2",
42
+ "ora": "^8.0.1",
43
+ "zod": "^3.25.76"
44
+ },
45
+ "_comment": {
46
+ "node-fetch": "Required by @kya-os/cli-effects (transitive dependency). cli-effects imports node-fetch but doesn't declare it. TODO: Update cli-effects to declare node-fetch or use native fetch (Node 20+)."
34
47
  },
35
48
  "devDependencies": {
36
- "@types/cross-spawn": "^6.0.6",
49
+ "@kya-os/contracts": "^1.6.2-canary.0",
37
50
  "@types/fs-extra": "^11.0.4",
38
- "@types/inquirer": "^8.2.5",
39
- "@types/node": "^20.14.9",
40
- "@types/prompts": "^2.4.9",
41
- "@types/semver": "^7.5.8",
42
- "@types/validate-npm-package-name": "^3.0.0",
51
+ "@types/inquirer": "^9.0.7",
52
+ "@types/node": "^20.19.19",
43
53
  "@vitest/coverage-v8": "^4.0.5",
44
- "eslint": "^8.57.0",
45
- "typescript": "^5.5.3",
54
+ "execa": "^9.6.0",
55
+ "typescript": "^5.3.0",
46
56
  "vitest": "^4.0.5"
47
57
  },
48
- "publishConfig": {
49
- "access": "public"
50
- }
58
+ "peerDependencies": {
59
+ "@kya-os/mcp-i": ">=1.5.0"
60
+ },
61
+ "keywords": [
62
+ "mcp",
63
+ "mcp-i",
64
+ "create-app",
65
+ "cli",
66
+ "bootstrap",
67
+ "identity",
68
+ "mcpi"
69
+ ],
70
+ "engines": {
71
+ "node": ">=20.0.0"
72
+ },
73
+ "author": "MCP-I Team",
74
+ "license": "MIT",
75
+ "repository": {
76
+ "type": "git",
77
+ "url": "https://github.com/modelcontextprotocol-identity/mcp-i.git",
78
+ "directory": "packages/create-mcpi-app"
79
+ },
80
+ "bugs": {
81
+ "url": "https://github.com/modelcontextprotocol-identity/mcp-i/issues"
82
+ },
83
+ "homepage": "https://github.com/modelcontextprotocol-identity/mcp-i#readme"
51
84
  }
@@ -1,427 +0,0 @@
1
-
2
- 
3
- > @kya-os/create-mcpi-app@1.8.8 test:coverage /Users/dylanhobbs/Documents/@kya-os/xmcp-i/packages/create-mcpi-app
4
- > vitest run --coverage
5
-
6
- [?25l
7
-  RUN  v4.0.5 /Users/dylanhobbs/Documents/@kya-os/xmcp-i/packages/create-mcpi-app
8
- Coverage enabled with v8
9
-
10
- [?2026h
11
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts [queued]
12
-
13
-  Test Files 0 passed (14)
14
-  Tests 0 passed (0)
15
-  Start at 02:33:59
16
-  Duration 104ms
17
- [?2026l[?2026h ✓ test-cloudflare/tests/cors-security.test.ts (29 tests) 4ms
18
-
19
-  ❯ src/__tests__/cloudflare-template.test.ts [queued]
20
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts [queued]
21
-  ❯ src/__tests__/helpers/generate-config.test.ts [queued]
22
-  ❯ src/__tests__/helpers/generate-identity.test.ts [queued]
23
-  ❯ src/__tests__/helpers/install.test.ts [queued]
24
-  ❯ src/__tests__/helpers/validate-project-structure.test.ts [queued]
25
-  ❯ src/__tests__/scaffolder-envprefix.test.ts [queued]
26
-  ❯ src/utils/__tests__/fetch-remote-config.test.ts [queued]
27
-  ❯ test-cloudflare/tests/cache-invalidation.test.ts 0/18
28
-  ❯ test-cloudflare/tests/delegation.test.ts 1/12
29
-  ❯ test-cloudflare/tests/do-routing.test.ts 0/14
30
-  ❯ test-cloudflare/tests/session-management.test.ts [queued]
31
-
32
-  Test Files 1 passed (14)
33
-  Tests 30 passed (73)
34
-  Start at 02:33:59
35
-  Duration 223ms
36
- [?2026l[?2026h ✓ test-cloudflare/tests/delegation.test.ts (12 tests) 4ms
37
- ✓ test-cloudflare/tests/cache-invalidation.test.ts (18 tests) 9ms
38
- stdout | test-cloudflare/tests/session-management.test.ts > Session Management > Session Security > should not expose session data in logs
39
- [Session] Created session: secure-session
40
-
41
- ✓ src/utils/__tests__/fetch-remote-config.test.ts (9 tests) 12ms
42
- ✓ test-cloudflare/tests/session-management.test.ts (17 tests) 19ms
43
- stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with npm
44
- 
45
- 📦 Installing dependencies with npm...
46
- ✓ Lockfile created (package-lock.json) - remember to commit it
47
-
48
- stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with yarn
49
- 
50
- 📦 Installing dependencies with yarn...
51
- ✓ Lockfile created (yarn.lock) - remember to commit it
52
-
53
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include envPrefix in generated index.ts
54
- 
55
- 🏗️ Generating Cloudflare MCP-I project: test-agent...
56
-
57
- stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with pnpm
58
- 
59
- 📦 Installing dependencies with pnpm...
60
- ✓ Lockfile created (pnpm-lock.yaml) - remember to commit it
61
-
62
- stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should use correct working directory
63
- 
64
- 📦 Installing dependencies with npm...
65
- ✓ Lockfile created (package-lock.json) - remember to commit it
66
-
67
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include envPrefix in generated index.ts
68
- 🔑 Generating cryptographic identity...
69
-
70
-
71
-  ❯ src/__tests__/cloudflare-template.test.ts 0/30
72
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/21
73
-  ❯ src/__tests__/helpers/generate-config.test.ts 1/25
74
-  ❯ src/__tests__/scaffolder-envprefix.test.ts 0/4
75
-
76
-  Test Files 9 passed (14)
77
-  Tests 167 passed (246)
78
-  Start at 02:33:59
79
-  Duration 324ms
80
- [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Install progress reporting > should report correct package manager in log
81
- ⚠️ Warning: No lockfile generated (pnpm-lock.yaml)
82
-
83
-
84
-  ❯ src/__tests__/cloudflare-template.test.ts 0/30
85
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/21
86
-  ❯ src/__tests__/helpers/generate-config.test.ts 1/25
87
-  ❯ src/__tests__/scaffolder-envprefix.test.ts 0/4
88
-
89
-  Test Files 9 passed (14)
90
-  Tests 167 passed (246)
91
-  Start at 02:33:59
92
-  Duration 324ms
93
- [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Install progress reporting > should check for lockfile after installation
94
- 
95
- 📦 Installing dependencies with npm...
96
- ✓ Lockfile created (package-lock.json) - remember to commit it
97
-
98
- stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should throw error when installation fails
99
- 
100
- 📦 Installing dependencies with npm...
101
-
102
-
103
-  ❯ src/__tests__/cloudflare-template.test.ts 0/30
104
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/21
105
-  ❯ src/__tests__/helpers/generate-config.test.ts 1/25
106
-  ❯ src/__tests__/scaffolder-envprefix.test.ts 0/4
107
-
108
-  Test Files 9 passed (14)
109
-  Tests 167 passed (246)
110
-  Start at 02:33:59
111
-  Duration 324ms
112
- [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Error handling > should throw error when installation fails
113
- Failed to install dependencies with npm.
114
-
115
-
116
-  ❯ src/__tests__/cloudflare-template.test.ts 0/30
117
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/21
118
-  ❯ src/__tests__/helpers/generate-config.test.ts 1/25
119
-  ❯ src/__tests__/scaffolder-envprefix.test.ts 0/4
120
-
121
-  Test Files 9 passed (14)
122
-  Tests 167 passed (246)
123
-  Start at 02:33:59
124
-  Duration 324ms
125
- [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle network errors during installation
126
- 
127
- 📦 Installing dependencies with npm...
128
-
129
-
130
-  ❯ src/__tests__/cloudflare-template.test.ts 0/30
131
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/21
132
-  ❯ src/__tests__/helpers/generate-config.test.ts 1/25
133
-  ❯ src/__tests__/scaffolder-envprefix.test.ts 0/4
134
-
135
-  Test Files 9 passed (14)
136
-  Tests 167 passed (246)
137
-  Start at 02:33:59
138
-  Duration 324ms
139
- [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle network errors during installation
140
- Failed to install dependencies with npm.
141
-
142
-
143
-  ❯ src/__tests__/cloudflare-template.test.ts 0/30
144
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/21
145
-  ❯ src/__tests__/helpers/generate-config.test.ts 1/25
146
-  ❯ src/__tests__/scaffolder-envprefix.test.ts 0/4
147
-
148
-  Test Files 9 passed (14)
149
-  Tests 167 passed (246)
150
-  Start at 02:33:59
151
-  Duration 324ms
152
- [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle permission errors during installation
153
- 
154
- 📦 Installing dependencies with npm...
155
-
156
-
157
-  ❯ src/__tests__/cloudflare-template.test.ts 0/30
158
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/21
159
-  ❯ src/__tests__/helpers/generate-config.test.ts 1/25
160
-  ❯ src/__tests__/scaffolder-envprefix.test.ts 0/4
161
-
162
-  Test Files 9 passed (14)
163
-  Tests 167 passed (246)
164
-  Start at 02:33:59
165
-  Duration 324ms
166
- [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle permission errors during installation
167
- Failed to install dependencies with npm.
168
-
169
-
170
-  ❯ src/__tests__/cloudflare-template.test.ts 0/30
171
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/21
172
-  ❯ src/__tests__/helpers/generate-config.test.ts 1/25
173
-  ❯ src/__tests__/scaffolder-envprefix.test.ts 0/4
174
-
175
-  Test Files 9 passed (14)
176
-  Tests 167 passed (246)
177
-  Start at 02:33:59
178
-  Duration 324ms
179
- [?2026l[?2026hstdout | src/__tests__/helpers/install.test.ts > install > Error handling > should log error message when installation fails
180
- 
181
- 📦 Installing dependencies with npm...
182
-
183
- stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle invalid package manager gracefully
184
- 
185
- 📦 Installing dependencies with unknown...
186
-
187
-
188
-  ❯ src/__tests__/cloudflare-template.test.ts 0/30
189
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/21
190
-  ❯ src/__tests__/helpers/generate-config.test.ts 1/25
191
-  ❯ src/__tests__/scaffolder-envprefix.test.ts 0/4
192
-
193
-  Test Files 9 passed (14)
194
-  Tests 167 passed (246)
195
-  Start at 02:33:59
196
-  Duration 324ms
197
- [?2026l[?2026hstderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle invalid package manager gracefully
198
- ⚠️ Warning: Unknown package manager "unknown", cannot check lockfile
199
-
200
-
201
-  ❯ src/__tests__/cloudflare-template.test.ts 0/30
202
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/21
203
-  ❯ src/__tests__/helpers/generate-config.test.ts 1/25
204
-  ❯ src/__tests__/scaffolder-envprefix.test.ts 0/4
205
-
206
-  Test Files 9 passed (14)
207
-  Tests 167 passed (246)
208
-  Start at 02:33:59
209
-  Duration 324ms
210
- [?2026l[?2026hstdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include envPrefix in generated index.ts
211
- ✔ Created Cloudflare MCP-I template files
212
- - Generated identity keys in .dev.vars
213
- - Configured wrangler.toml with KV namespaces
214
- - Created modular tool structure
215
- - Created setup script for KV namespace creation
216
-
217
- ============================================================
218
- 🎉 Cloudflare MCP-I project created successfully!
219
- ============================================================
220
-
221
- 📝 Important Configuration Notes:
222
-
223
- 1. ADMIN_API_KEY (in .dev.vars):
224
- - Set to same value as AGENTSHIELD_API_KEY for convenience
225
- - You can change it if you need separate admin endpoint security
226
- - Required for admin endpoints like /admin/clear-cache
227
-
228
- 2. KV Namespaces (in wrangler.toml):
229
- - Required for MCP-I security features
230
- - Auto-created by 'npm run setup' script
231
- - Check wrangler.toml for 'TODO_REPLACE_WITH_ID' if setup failed
232
-
233
- 🚀 Next Steps:
234
- cd test-agent
235
-
236
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include envPrefix in generated index.ts
237
-  wrangler login # Login to Cloudflare first!
238
- npm run setup # Create KV namespaces
239
- npm run dev # Start local development
240
- npm run deploy # Deploy to Cloudflare
241
-
242
-
243
- stdout | src/__tests__/helpers/install.test.ts > install > Lockfile validation > should warn when lockfile not created
244
- 
245
- 📦 Installing dependencies with npm...
246
-
247
- ✓ test-cloudflare/tests/do-routing.test.ts (14 tests) 97ms
248
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should use correct prefix format (uppercase with underscores)
249
- 
250
- 🏗️ Generating Cloudflare MCP-I project: my-awesome-agent...
251
-
252
- ✓ src/__tests__/helpers/install.test.ts (20 tests) 48ms
253
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should use correct prefix format (uppercase with underscores)
254
- 🔑 Generating cryptographic identity...
255
-
256
- ✓ src/__tests__/helpers/validate-project-structure.test.ts (23 tests) 50ms
257
- ✓ src/__tests__/helpers/generate-identity.test.ts (24 tests) 60ms
258
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should use correct prefix format (uppercase with underscores)
259
- ✔ Created Cloudflare MCP-I template files
260
- - Generated identity keys in .dev.vars
261
- - Configured wrangler.toml with KV namespaces
262
- - Created modular tool structure
263
- - Created setup script for KV namespace creation
264
-
265
- ============================================================
266
- 🎉 Cloudflare MCP-I project created successfully!
267
- ============================================================
268
-
269
- 📝 Important Configuration Notes:
270
-
271
- 1. ADMIN_API_KEY (in .dev.vars):
272
- - Set to same value as AGENTSHIELD_API_KEY for convenience
273
- - You can change it if you need separate admin endpoint security
274
- - Required for admin endpoints like /admin/clear-cache
275
-
276
- 2. KV Namespaces (in wrangler.toml):
277
- - Required for MCP-I security features
278
- - Auto-created by 'npm run setup' script
279
- - Check wrangler.toml for 'TODO_REPLACE_WITH_ID' if setup failed
280
-
281
- 🚀 Next Steps:
282
- cd my-awesome-agent
283
-
284
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should use correct prefix format (uppercase with underscores)
285
-  wrangler login # Login to Cloudflare first!
286
- npm run setup # Create KV namespaces
287
- npm run dev # Start local development
288
- npm run deploy # Deploy to Cloudflare
289
-
290
-
291
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include comment explaining envPrefix purpose
292
- 
293
- 🏗️ Generating Cloudflare MCP-I project: test-agent...
294
-
295
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include comment explaining envPrefix purpose
296
- 🔑 Generating cryptographic identity...
297
-
298
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include comment explaining envPrefix purpose
299
- ✔ Created Cloudflare MCP-I template files
300
- - Generated identity keys in .dev.vars
301
- - Configured wrangler.toml with KV namespaces
302
- - Created modular tool structure
303
- - Created setup script for KV namespace creation
304
-
305
- ============================================================
306
- 🎉 Cloudflare MCP-I project created successfully!
307
- ============================================================
308
-
309
- 📝 Important Configuration Notes:
310
-
311
- 1. ADMIN_API_KEY (in .dev.vars):
312
- - Set to same value as AGENTSHIELD_API_KEY for convenience
313
- - You can change it if you need separate admin endpoint security
314
- - Required for admin endpoints like /admin/clear-cache
315
-
316
- 2. KV Namespaces (in wrangler.toml):
317
- - Required for MCP-I security features
318
- - Auto-created by 'npm run setup' script
319
- - Check wrangler.toml for 'TODO_REPLACE_WITH_ID' if setup failed
320
-
321
- 🚀 Next Steps:
322
- cd test-agent
323
-
324
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should include comment explaining envPrefix purpose
325
-  wrangler login # Login to Cloudflare first!
326
- npm run setup # Create KV namespaces
327
- npm run dev # Start local development
328
- npm run deploy # Deploy to Cloudflare
329
-
330
-
331
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should match envPrefix with KV binding names in wrangler.toml
332
- 
333
- 🏗️ Generating Cloudflare MCP-I project: test-agent...
334
-
335
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should match envPrefix with KV binding names in wrangler.toml
336
- 🔑 Generating cryptographic identity...
337
-
338
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should match envPrefix with KV binding names in wrangler.toml
339
- ✔ Created Cloudflare MCP-I template files
340
- - Generated identity keys in .dev.vars
341
- - Configured wrangler.toml with KV namespaces
342
- - Created modular tool structure
343
- - Created setup script for KV namespace creation
344
-
345
- ============================================================
346
- 🎉 Cloudflare MCP-I project created successfully!
347
- ============================================================
348
-
349
- 📝 Important Configuration Notes:
350
-
351
- 1. ADMIN_API_KEY (in .dev.vars):
352
- - Set to same value as AGENTSHIELD_API_KEY for convenience
353
- - You can change it if you need separate admin endpoint security
354
- - Required for admin endpoints like /admin/clear-cache
355
-
356
- 2. KV Namespaces (in wrangler.toml):
357
- - Required for MCP-I security features
358
- - Auto-created by 'npm run setup' script
359
- - Check wrangler.toml for 'TODO_REPLACE_WITH_ID' if setup failed
360
-
361
- 🚀 Next Steps:
362
- cd test-agent
363
-
364
- stdout | src/__tests__/scaffolder-envprefix.test.ts > Scaffolder envPrefix Configuration > should match envPrefix with KV binding names in wrangler.toml
365
-  wrangler login # Login to Cloudflare first!
366
- npm run setup # Create KV namespaces
367
- npm run dev # Start local development
368
- npm run deploy # Deploy to Cloudflare
369
-
370
-
371
-
372
-  ❯ src/__tests__/cloudflare-template.test.ts 0/30
373
-  ❯ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts 0/21
374
-  ❯ src/__tests__/helpers/generate-config.test.ts 1/25
375
-  ❯ src/__tests__/scaffolder-envprefix.test.ts 0/4
376
-
377
-  Test Files 9 passed (14)
378
-  Tests 167 passed (246)
379
-  Start at 02:33:59
380
-  Duration 324ms
381
- [?2026l[?2026h ✓ src/__tests__/helpers/generate-config.test.ts (25 tests) 58ms
382
- ✓ src/__tests__/scaffolder-envprefix.test.ts (4 tests) 65ms
383
-
384
-
385
-
386
-  ❯ src/__tests__/cloudflare-template.test.ts 10/30
387
-
388
-  Test Files 13 passed (14)
389
-  Tests 238 passed (258)
390
-  Start at 02:33:59
391
-  Duration 424ms
392
- [?2026l[?2026hstderr | src/helpers/__tests__/config-builder.spec.ts > buildConfigWithRemote > should fallback to local config when remote fetch fails
393
- [RemoteConfig] Neither projectId nor agentDid provided
394
-
395
-
396
-
397
-  ❯ src/__tests__/cloudflare-template.test.ts 10/30
398
-
399
-  Test Files 13 passed (14)
400
-  Tests 238 passed (258)
401
-  Start at 02:33:59
402
-  Duration 424ms
403
- [?2026l[?2026h ✓ src/helpers/__tests__/config-builder.spec.ts (12 tests) 4ms
404
- ✓ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts (21 tests) 139ms
405
-
406
-  ❯ src/__tests__/cloudflare-template.test.ts 10/30
407
-
408
-  Test Files 13 passed (14)
409
-  Tests 238 passed (258)
410
-  Start at 02:33:59
411
-  Duration 424ms
412
- [?2026l ✓ src/__tests__/cloudflare-template.test.ts (30 tests | 2 skipped) 174ms
413
-
414
-  Test Files  14 passed (14)
415
-  Tests  256 passed | 2 skipped (258)
416
-  Start at  02:33:59
417
-  Duration  574ms (transform 692ms, setup 0ms, collect 1.27s, tests 745ms, environment 1ms, prepare 210ms)
418
-
419
-  % Coverage report from v8
420
-
421
- =============================== Coverage summary ===============================
422
- Statements : 25.83% ( 216/836 )
423
- Branches : 23.77% ( 102/429 )
424
- Functions : 30.5% ( 18/59 )
425
- Lines : 26.02% ( 216/830 )
426
- ================================================================================
427
- [?25h
@@ -1,37 +0,0 @@
1
- /**
2
- * Package Version Helper
3
- *
4
- * Reads dependency versions from the scaffolder's own package.json
5
- * to ensure scaffolded projects use consistent, tested versions.
6
- *
7
- * This is the SINGLE SOURCE OF TRUTH for @kya-os/* package versions
8
- * used in scaffolded templates.
9
- *
10
- * Benefits:
11
- * - No more hardcoded canary versions in template files
12
- * - Scaffolder's package.json already validated before publish
13
- * - Consistent versions across all template types (Node.js, Cloudflare, etc.)
14
- */
15
- interface PackageVersions {
16
- "@kya-os/mcp-i": string;
17
- "@kya-os/cli": string;
18
- "@kya-os/mcp-i-cloudflare": string;
19
- "@kya-os/contracts": string;
20
- }
21
- /**
22
- * Get package versions from the scaffolder's package.json
23
- *
24
- * This function reads the create-mcpi-app package.json and extracts
25
- * the @kya-os/* dependency versions, normalizing them for safe use
26
- * in scaffolded templates.
27
- *
28
- * @returns Object with normalized package versions
29
- * @throws Error if package.json cannot be read
30
- */
31
- export declare function getPackageVersions(): Promise<PackageVersions>;
32
- /**
33
- * Clear the cached versions (useful for testing)
34
- */
35
- export declare function clearVersionCache(): void;
36
- export {};
37
- //# sourceMappingURL=get-package-versions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-package-versions.d.ts","sourceRoot":"","sources":["../../src/helpers/get-package-versions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAUH,UAAU,eAAe;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,0BAA0B,EAAE,MAAM,CAAC;IACnC,mBAAmB,EAAE,MAAM,CAAC;CAC7B;AA8BD;;;;;;;;;GASG;AACH,wBAAsB,kBAAkB,IAAI,OAAO,CAAC,eAAe,CAAC,CAuCnE;AAED;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,IAAI,CAExC"}