@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.
- package/dist/index.js +14 -3
- package/package.json +5 -3
- package/registry/registry.json +717 -0
- package/registry/ui/accordion.tsx +416 -0
- package/registry/ui/action-sheet.tsx +396 -0
- package/registry/ui/alert-dialog.tsx +355 -0
- package/registry/ui/avatar-stack.tsx +278 -0
- package/registry/ui/avatar.tsx +116 -0
- package/registry/ui/badge.tsx +125 -0
- package/registry/ui/button.tsx +240 -0
- package/registry/ui/card.tsx +675 -0
- package/registry/ui/carousel.tsx +431 -0
- package/registry/ui/checkbox.tsx +252 -0
- package/registry/ui/chip.tsx +271 -0
- package/registry/ui/column.tsx +133 -0
- package/registry/ui/datetime-picker.tsx +578 -0
- package/registry/ui/dialog.tsx +292 -0
- package/registry/ui/fab.tsx +225 -0
- package/registry/ui/form.tsx +323 -0
- package/registry/ui/horizontal-list.tsx +200 -0
- package/registry/ui/icon-button.tsx +244 -0
- package/registry/ui/image-gallery.tsx +455 -0
- package/registry/ui/image.tsx +283 -0
- package/registry/ui/input.tsx +242 -0
- package/registry/ui/label.tsx +99 -0
- package/registry/ui/list.tsx +519 -0
- package/registry/ui/progress.tsx +168 -0
- package/registry/ui/pull-to-refresh.tsx +231 -0
- package/registry/ui/radio-group.tsx +294 -0
- package/registry/ui/rating.tsx +311 -0
- package/registry/ui/row.tsx +136 -0
- package/registry/ui/screen.tsx +153 -0
- package/registry/ui/search-input.tsx +281 -0
- package/registry/ui/section-header.tsx +258 -0
- package/registry/ui/segmented-control.tsx +229 -0
- package/registry/ui/select.tsx +311 -0
- package/registry/ui/separator.tsx +74 -0
- package/registry/ui/sheet.tsx +362 -0
- package/registry/ui/skeleton.tsx +156 -0
- package/registry/ui/slider.tsx +307 -0
- package/registry/ui/spinner.tsx +100 -0
- package/registry/ui/stepper.tsx +314 -0
- package/registry/ui/stories.tsx +463 -0
- package/registry/ui/swipeable-row.tsx +362 -0
- package/registry/ui/switch.tsx +246 -0
- package/registry/ui/tabs.tsx +348 -0
- package/registry/ui/textarea.tsx +265 -0
- package/registry/ui/toast.tsx +316 -0
- 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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
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/"
|