@kya-os/create-mcpi-app 1.7.38-canary.1 → 1.7.38

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.
Files changed (67) hide show
  1. package/.turbo/turbo-build.log +4 -0
  2. package/.turbo/turbo-test$colon$coverage.log +755 -0
  3. package/.turbo/turbo-test.log +200 -0
  4. package/dist/helpers/fetch-cloudflare-mcpi-template.d.ts.map +1 -1
  5. package/dist/helpers/fetch-cloudflare-mcpi-template.js +43 -912
  6. package/dist/helpers/fetch-cloudflare-mcpi-template.js.map +1 -1
  7. package/dist/utils/fetch-remote-config.d.ts.map +1 -1
  8. package/dist/utils/fetch-remote-config.js +2 -2
  9. package/dist/utils/fetch-remote-config.js.map +1 -1
  10. package/package/package.json +77 -0
  11. package/package.json +1 -1
  12. package/ARCHITECTURE_ANALYSIS.md +0 -392
  13. package/CHANGELOG.md +0 -372
  14. package/DEPRECATION_WARNINGS_ANALYSIS.md +0 -192
  15. package/IMPLEMENTATION_SUMMARY.md +0 -108
  16. package/REMEDIATION_PLAN.md +0 -99
  17. package/dist/.tsbuildinfo +0 -1
  18. package/scripts/prepare-pack.js +0 -47
  19. package/scripts/validate-no-workspace.js +0 -79
  20. package/src/__tests__/cloudflare-template.test.ts +0 -490
  21. package/src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts +0 -337
  22. package/src/__tests__/helpers/generate-config.test.ts +0 -312
  23. package/src/__tests__/helpers/generate-identity.test.ts +0 -271
  24. package/src/__tests__/helpers/install.test.ts +0 -370
  25. package/src/__tests__/helpers/validate-project-structure.test.ts +0 -467
  26. package/src/__tests__.bak/regression.test.ts +0 -434
  27. package/src/effects/index.ts +0 -80
  28. package/src/helpers/__tests__/config-builder.spec.ts +0 -231
  29. package/src/helpers/apply-identity-preset.ts +0 -209
  30. package/src/helpers/config-builder.ts +0 -165
  31. package/src/helpers/copy-template.ts +0 -11
  32. package/src/helpers/create.ts +0 -239
  33. package/src/helpers/fetch-cloudflare-mcpi-template.ts +0 -2393
  34. package/src/helpers/fetch-cloudflare-template.ts +0 -361
  35. package/src/helpers/fetch-mcpi-template.ts +0 -236
  36. package/src/helpers/fetch-xmcp-template.ts +0 -153
  37. package/src/helpers/generate-config.ts +0 -118
  38. package/src/helpers/generate-identity.ts +0 -163
  39. package/src/helpers/identity-manager.ts +0 -186
  40. package/src/helpers/install.ts +0 -79
  41. package/src/helpers/rename.ts +0 -17
  42. package/src/helpers/validate-project-structure.ts +0 -127
  43. package/src/index.ts +0 -520
  44. package/src/utils/__tests__/fetch-remote-config.test.ts +0 -271
  45. package/src/utils/check-node.ts +0 -17
  46. package/src/utils/fetch-remote-config.ts +0 -179
  47. package/src/utils/is-folder-empty.ts +0 -60
  48. package/src/utils/validate-project-name.ts +0 -132
  49. package/test-cloudflare/README.md +0 -164
  50. package/test-cloudflare/package.json +0 -28
  51. package/test-cloudflare/src/index.ts +0 -341
  52. package/test-cloudflare/src/tools/greet.ts +0 -19
  53. package/test-cloudflare/tests/cache-invalidation.test.ts +0 -410
  54. package/test-cloudflare/tests/cors-security.test.ts +0 -349
  55. package/test-cloudflare/tests/delegation.test.ts +0 -335
  56. package/test-cloudflare/tests/do-routing.test.ts +0 -314
  57. package/test-cloudflare/tests/integration.test.ts +0 -205
  58. package/test-cloudflare/tests/session-management.test.ts +0 -359
  59. package/test-cloudflare/tsconfig.json +0 -16
  60. package/test-cloudflare/vitest.config.ts +0 -9
  61. package/test-cloudflare/wrangler.toml +0 -37
  62. package/test-node/README.md +0 -44
  63. package/test-node/package.json +0 -23
  64. package/test-node/src/tools/greet.ts +0 -25
  65. package/test-node/xmcp.config.ts +0 -20
  66. package/tsconfig.json +0 -26
  67. package/vitest.config.ts +0 -14
@@ -0,0 +1,200 @@
1
+
2
+ > @kya-os/create-mcpi-app@1.7.38 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
+ stdout | test-cloudflare/tests/session-management.test.ts > Session Management > Session Security > should not expose session data in logs
45
+ [Session] Created session: secure-session
46
+
47
+ ✓ test-cloudflare/tests/session-management.test.ts (17 tests) 41ms
48
+ ✓ test-cloudflare/tests/cors-security.test.ts (29 tests) 4ms
49
+ ✓ test-cloudflare/tests/delegation.test.ts (12 tests) 5ms
50
+ ✓ test-cloudflare/tests/cache-invalidation.test.ts (18 tests) 7ms
51
+ stderr | src/utils/__tests__/fetch-remote-config.test.ts > fetchRemoteConfig > Error handling > should return null if API request fails
52
+ [RemoteConfig] API returned 404: Not Found
53
+
54
+ stderr | src/utils/__tests__/fetch-remote-config.test.ts > fetchRemoteConfig > Error handling > should return null if API throws error
55
+ [RemoteConfig] Failed to fetch config: Error: Network error
56
+ at /Users/dylanhobbs/Documents/@kya-os/xmcp-i/packages/create-mcpi-app/src/utils/__tests__/fetch-remote-config.test.ts:173:35
57
+ 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
58
+ 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
59
+ 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
60
+ at new Promise (<anonymous>)
61
+ 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)
62
+ 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)
63
+  at processTicksAndRejections (node:internal/process/task_queues:103:5)
64
+ 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)
65
+ 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)
66
+
67
+ stderr | src/utils/__tests__/fetch-remote-config.test.ts > fetchRemoteConfig > Error handling > should return null if neither projectId nor agentDid provided
68
+ [RemoteConfig] Neither projectId nor agentDid provided
69
+
70
+ stderr | src/utils/__tests__/fetch-remote-config.test.ts > fetchRemoteConfig > Error handling > should handle cache read errors gracefully
71
+ [RemoteConfig] Cache read failed: Error: Cache error
72
+ at /Users/dylanhobbs/Documents/@kya-os/xmcp-i/packages/create-mcpi-app/src/utils/__tests__/fetch-remote-config.test.ts:201:50
73
+ 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
74
+ 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
75
+ 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
76
+ at new Promise (<anonymous>)
77
+ 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)
78
+ 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)
79
+  at processTicksAndRejections (node:internal/process/task_queues:103:5)
80
+ 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)
81
+ 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)
82
+
83
+ ✓ src/utils/__tests__/fetch-remote-config.test.ts (9 tests) 5ms
84
+ stderr | src/helpers/__tests__/config-builder.spec.ts > buildConfigWithRemote > should fallback to local config when remote fetch fails
85
+ [RemoteConfig] Neither projectId nor agentDid provided
86
+
87
+ ✓ src/helpers/__tests__/config-builder.spec.ts (12 tests) 3ms
88
+ ✓ src/__tests__/helpers/generate-config.test.ts (25 tests) 35ms
89
+ ✓ src/__tests__/helpers/generate-identity.test.ts (24 tests) 38ms
90
+ stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with npm
91
+ 
92
+ 📦 Installing dependencies with npm...
93
+ ✓ Lockfile created (package-lock.json) - remember to commit it
94
+
95
+ stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with yarn
96
+ 
97
+ 📦 Installing dependencies with yarn...
98
+ ✓ Lockfile created (yarn.lock) - remember to commit it
99
+
100
+ stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should install dependencies with pnpm
101
+ stderr | src/__tests__/helpers/install.test.ts > install > Install progress reporting > should report correct package manager in log
102
+ ⚠️ Warning: No lockfile generated (pnpm-lock.yaml)
103
+ 
104
+ 📦 Installing dependencies with pnpm...
105
+ ✓ Lockfile created (pnpm-lock.yaml) - remember to commit it
106
+
107
+
108
+ stdout | src/__tests__/helpers/install.test.ts > install > Dependency installation > should use correct working directory
109
+ 
110
+ 📦 Installing dependencies with npm...
111
+ ✓ Lockfile created (package-lock.json) - remember to commit it
112
+
113
+ stdout | src/__tests__/helpers/install.test.ts > install > Install progress reporting > should check for lockfile after installation
114
+ 
115
+ 📦 Installing dependencies with npm...
116
+ stderr | src/__tests__/helpers/install.test.ts > install > Error handling > should throw error when installation fails
117
+ ✓ Lockfile created (package-lock.json) - remember to commit it
118
+
119
+ stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should throw error when installation fails
120
+ Failed to install dependencies with npm.
121
+ 
122
+ 📦 Installing dependencies with npm...
123
+
124
+ stderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle network errors during installation
125
+
126
+ stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle network errors during installation
127
+ 
128
+ 📦 Installing dependencies with npm...
129
+
130
+ stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle permission errors during installation
131
+ 
132
+ Failed to install dependencies with npm.
133
+ 📦 Installing dependencies with npm...
134
+
135
+
136
+ stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should log error message when installation fails
137
+ 
138
+ 📦 Installing dependencies with npm...
139
+
140
+ stdout | src/__tests__/helpers/install.test.ts > install > Error handling > should handle invalid package manager gracefully
141
+ 
142
+ stderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle permission errors during installation
143
+ 📦 Installing dependencies with unknown...
144
+ Failed to install dependencies with npm.
145
+
146
+ stdout | src/__tests__/helpers/install.test.ts > install > Lockfile validation > should warn when lockfile not created
147
+ 
148
+ 📦 Installing dependencies with npm...
149
+
150
+ stderr | src/__tests__/helpers/install.test.ts > install > Error handling > should handle invalid package manager gracefully
151
+ ⚠️ Warning: Unknown package manager "unknown", cannot check lockfile
152
+
153
+
154
+ ❯ src/__tests__/helpers/install.test.ts (20 tests | 1 failed) 33ms
155
+  × should detect npm from package-lock.json 4ms
156
+ ✓ should detect yarn from yarn.lock 1ms
157
+ ✓ should detect pnpm from pnpm-lock.yaml 1ms
158
+ ✓ should return null when no lockfile exists 0ms
159
+ ✓ should prioritize pnpm over npm 3ms
160
+ ✓ should prioritize yarn over npm 1ms
161
+ ✓ should install dependencies with npm 3ms
162
+ ✓ should install dependencies with yarn 1ms
163
+ ✓ should install dependencies with pnpm 1ms
164
+ ✓ should use correct working directory 2ms
165
+ ✓ should log installation start message 1ms
166
+ ✓ should report correct package manager in log 1ms
167
+ ✓ should check for lockfile after installation 5ms
168
+ ✓ should throw error when installation fails 1ms
169
+ ✓ should handle network errors during installation 1ms
170
+ ✓ should handle permission errors during installation 1ms
171
+ ✓ should log error message when installation fails 1ms
172
+ ✓ should handle invalid package manager gracefully 1ms
173
+ ✓ should validate npm lockfile after installation 2ms
174
+ ✓ should warn when lockfile not created 1ms
175
+ ✓ src/__tests__/helpers/validate-project-structure.test.ts (23 tests) 37ms
176
+ ✓ test-cloudflare/tests/do-routing.test.ts (14 tests) 160ms
177
+ ✓ src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts (19 tests) 218ms
178
+ ✓ src/__tests__/cloudflare-template.test.ts (24 tests) 210ms
179
+
180
+ ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯
181
+
182
+  FAIL  src/__tests__/helpers/install.test.ts > detectPackageManager > Package manager detection > should detect npm from package-lock.json
183
+ Error: ENOENT: no such file or directory, scandir '/Users/dylanhobbs/Documents/@kya-os/xmcp-i/packages/create-mcpi-app/test-temp'
184
+  ❯ src/__tests__/helpers/install.test.ts:40:35
185
+  38|  }
186
+  39|  if (fs.existsSync(path.join(process.cwd(), 'test-temp'))) {
187
+  40|  const testTempContents = fs.readdirSync(path.join(process.cwd(),…
188
+  |  ^
189
+  41|  if (testTempContents.length === 0) {
190
+  42|  fs.removeSync(path.join(process.cwd(), 'test-temp'));
191
+
192
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/1]⎯
193
+
194
+
195
+  Test Files  1 failed | 12 passed (13)
196
+  Tests  1 failed | 245 passed (246)
197
+  Start at  03:37:49
198
+  Duration  1.74s (transform 2.33s, setup 0ms, collect 3.78s, tests 797ms, environment 1ms, prepare 328ms)
199
+
200
+  ELIFECYCLE  Test failed. See above for more details.
@@ -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,CAm0Ef"}
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,CA09Cf"}