@metacells/mcellui-mcp-server 0.1.1 → 0.1.3

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 (49) hide show
  1. package/dist/index.js +14 -3
  2. package/package.json +5 -3
  3. package/registry/registry.json +717 -0
  4. package/registry/ui/accordion.tsx +416 -0
  5. package/registry/ui/action-sheet.tsx +396 -0
  6. package/registry/ui/alert-dialog.tsx +355 -0
  7. package/registry/ui/avatar-stack.tsx +278 -0
  8. package/registry/ui/avatar.tsx +116 -0
  9. package/registry/ui/badge.tsx +125 -0
  10. package/registry/ui/button.tsx +240 -0
  11. package/registry/ui/card.tsx +675 -0
  12. package/registry/ui/carousel.tsx +431 -0
  13. package/registry/ui/checkbox.tsx +252 -0
  14. package/registry/ui/chip.tsx +271 -0
  15. package/registry/ui/column.tsx +133 -0
  16. package/registry/ui/datetime-picker.tsx +578 -0
  17. package/registry/ui/dialog.tsx +292 -0
  18. package/registry/ui/fab.tsx +225 -0
  19. package/registry/ui/form.tsx +323 -0
  20. package/registry/ui/horizontal-list.tsx +200 -0
  21. package/registry/ui/icon-button.tsx +244 -0
  22. package/registry/ui/image-gallery.tsx +455 -0
  23. package/registry/ui/image.tsx +283 -0
  24. package/registry/ui/input.tsx +242 -0
  25. package/registry/ui/label.tsx +99 -0
  26. package/registry/ui/list.tsx +519 -0
  27. package/registry/ui/progress.tsx +168 -0
  28. package/registry/ui/pull-to-refresh.tsx +231 -0
  29. package/registry/ui/radio-group.tsx +294 -0
  30. package/registry/ui/rating.tsx +311 -0
  31. package/registry/ui/row.tsx +136 -0
  32. package/registry/ui/screen.tsx +153 -0
  33. package/registry/ui/search-input.tsx +281 -0
  34. package/registry/ui/section-header.tsx +258 -0
  35. package/registry/ui/segmented-control.tsx +229 -0
  36. package/registry/ui/select.tsx +311 -0
  37. package/registry/ui/separator.tsx +74 -0
  38. package/registry/ui/sheet.tsx +362 -0
  39. package/registry/ui/skeleton.tsx +156 -0
  40. package/registry/ui/slider.tsx +307 -0
  41. package/registry/ui/spinner.tsx +100 -0
  42. package/registry/ui/stepper.tsx +314 -0
  43. package/registry/ui/stories.tsx +463 -0
  44. package/registry/ui/swipeable-row.tsx +362 -0
  45. package/registry/ui/switch.tsx +246 -0
  46. package/registry/ui/tabs.tsx +348 -0
  47. package/registry/ui/textarea.tsx +265 -0
  48. package/registry/ui/toast.tsx +316 -0
  49. package/registry/ui/tooltip.tsx +369 -0
package/dist/index.js CHANGED
@@ -21,7 +21,12 @@ var REGISTRY_URL = process.env.MCELLUI_REGISTRY_URL || process.env.NATIVEUI_REGI
21
21
  var registryCache = null;
22
22
  var componentCodeCache = /* @__PURE__ */ new Map();
23
23
  function getRegistryPath() {
24
- return path.resolve(__dirname, "..", "..", "registry");
24
+ const bundledPath = path.resolve(__dirname, "..", "registry");
25
+ const monorepoPath = path.resolve(__dirname, "..", "..", "registry");
26
+ if (fs.existsSync(path.join(bundledPath, "registry.json"))) {
27
+ return bundledPath;
28
+ }
29
+ return monorepoPath;
25
30
  }
26
31
  function isLocalMode() {
27
32
  const localPath = getRegistryPath();
@@ -909,10 +914,16 @@ import { fileURLToPath as fileURLToPath2 } from "url";
909
914
  var __filename2 = fileURLToPath2(import.meta.url);
910
915
  var __dirname2 = path2.dirname(__filename2);
911
916
  function getRegistryPath2() {
912
- return path2.resolve(__dirname2, "..", "..", "registry");
917
+ const bundledPath = path2.resolve(__dirname2, "..", "registry");
918
+ const monorepoPath = path2.resolve(__dirname2, "..", "..", "registry");
919
+ if (fs2.existsSync(path2.join(bundledPath, "registry.json"))) {
920
+ return bundledPath;
921
+ }
922
+ return monorepoPath;
913
923
  }
914
924
  function getCorePath() {
915
- return path2.resolve(__dirname2, "..", "..", "core", "src");
925
+ const monorepoPath = path2.resolve(__dirname2, "..", "..", "core", "src");
926
+ return monorepoPath;
916
927
  }
917
928
  var resources = [
918
929
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metacells/mcellui-mcp-server",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "MCP server for mcellui - AI assistant integration for React Native development",
5
5
  "author": "metacells",
6
6
  "license": "MIT",
@@ -29,10 +29,12 @@
29
29
  "mcellui-mcp": "./dist/index.js"
30
30
  },
31
31
  "files": [
32
- "dist"
32
+ "dist",
33
+ "registry"
33
34
  ],
34
35
  "scripts": {
35
- "build": "tsup",
36
+ "build": "tsup && npm run copy-registry",
37
+ "copy-registry": "cp -r ../registry/registry.json ../registry/ui ./registry/ 2>/dev/null || mkdir -p registry && cp ../registry/registry.json registry/ && cp -r ../registry/ui registry/",
36
38
  "dev": "tsup --watch",
37
39
  "type-check": "tsc --noEmit",
38
40
  "lint": "eslint src/"