@layoutdesign/context 0.6.0 → 0.11.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/README.md +71 -0
- package/dist/bin/cli.js +13 -5
- package/dist/bin/cli.js.map +1 -1
- package/dist/src/cli/fetch-kit.d.ts +16 -0
- package/dist/src/cli/fetch-kit.d.ts.map +1 -0
- package/dist/src/cli/fetch-kit.js +52 -0
- package/dist/src/cli/fetch-kit.js.map +1 -0
- package/dist/src/cli/import-zip.d.ts +13 -0
- package/dist/src/cli/import-zip.d.ts.map +1 -1
- package/dist/src/cli/import-zip.js +75 -56
- package/dist/src/cli/import-zip.js.map +1 -1
- package/dist/src/cli/install.d.ts +2 -1
- package/dist/src/cli/install.d.ts.map +1 -1
- package/dist/src/cli/install.js +46 -1
- package/dist/src/cli/install.js.map +1 -1
- package/dist/src/cli/live-notify.d.ts +2 -0
- package/dist/src/cli/live-notify.d.ts.map +1 -0
- package/dist/src/cli/live-notify.js +29 -0
- package/dist/src/cli/live-notify.js.map +1 -0
- package/dist/src/cli/use.d.ts.map +1 -1
- package/dist/src/cli/use.js +37 -18
- package/dist/src/cli/use.js.map +1 -1
- package/dist/src/install/live.d.ts +5 -0
- package/dist/src/install/live.d.ts.map +1 -0
- package/dist/src/install/live.js +285 -0
- package/dist/src/install/live.js.map +1 -0
- package/dist/src/kit/registry.d.ts.map +1 -1
- package/dist/src/kit/registry.js +4 -2
- package/dist/src/kit/registry.js.map +1 -1
- package/dist/src/mcp/live-lock-store.d.ts +40 -0
- package/dist/src/mcp/live-lock-store.d.ts.map +1 -0
- package/dist/src/mcp/live-lock-store.js +134 -0
- package/dist/src/mcp/live-lock-store.js.map +1 -0
- package/dist/src/mcp/server.d.ts.map +1 -1
- package/dist/src/mcp/server.js +11 -0
- package/dist/src/mcp/server.js.map +1 -1
- package/dist/src/mcp/tools/_live-socket.d.ts +23 -0
- package/dist/src/mcp/tools/_live-socket.d.ts.map +1 -0
- package/dist/src/mcp/tools/_live-socket.js +135 -0
- package/dist/src/mcp/tools/_live-socket.js.map +1 -0
- package/dist/src/mcp/tools/check-setup.d.ts +14 -1
- package/dist/src/mcp/tools/check-setup.d.ts.map +1 -1
- package/dist/src/mcp/tools/check-setup.js +75 -1
- package/dist/src/mcp/tools/check-setup.js.map +1 -1
- package/dist/src/mcp/tools/get-recent-visual-edits.d.ts +40 -0
- package/dist/src/mcp/tools/get-recent-visual-edits.d.ts.map +1 -0
- package/dist/src/mcp/tools/get-recent-visual-edits.js +106 -0
- package/dist/src/mcp/tools/get-recent-visual-edits.js.map +1 -0
- package/dist/src/mcp/tools/get-selected-element.d.ts +10 -0
- package/dist/src/mcp/tools/get-selected-element.d.ts.map +1 -0
- package/dist/src/mcp/tools/get-selected-element.js +46 -0
- package/dist/src/mcp/tools/get-selected-element.js.map +1 -0
- package/dist/src/mcp/tools/lock-file.d.ts +28 -0
- package/dist/src/mcp/tools/lock-file.d.ts.map +1 -0
- package/dist/src/mcp/tools/lock-file.js +42 -0
- package/dist/src/mcp/tools/lock-file.js.map +1 -0
- package/dist/src/mcp/tools/unlock-file.d.ts +23 -0
- package/dist/src/mcp/tools/unlock-file.d.ts.map +1 -0
- package/dist/src/mcp/tools/unlock-file.js +23 -0
- package/dist/src/mcp/tools/unlock-file.js.map +1 -0
- package/dist/src/plugins/next/babel-loader.d.ts +8 -0
- package/dist/src/plugins/next/babel-loader.d.ts.map +1 -0
- package/dist/src/plugins/next/babel-loader.js +26 -0
- package/dist/src/plugins/next/babel-loader.js.map +1 -0
- package/dist/src/plugins/next/index.d.ts +23 -0
- package/dist/src/plugins/next/index.d.ts.map +1 -0
- package/dist/src/plugins/next/index.js +58 -0
- package/dist/src/plugins/next/index.js.map +1 -0
- package/dist/src/plugins/transform.d.ts +19 -0
- package/dist/src/plugins/transform.d.ts.map +1 -0
- package/dist/src/plugins/transform.js +177 -0
- package/dist/src/plugins/transform.js.map +1 -0
- package/dist/src/plugins/vite/index.d.ts +24 -0
- package/dist/src/plugins/vite/index.d.ts.map +1 -0
- package/dist/src/plugins/vite/index.js +56 -0
- package/dist/src/plugins/vite/index.js.map +1 -0
- package/package.json +31 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@layoutdesign/context",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "Design system context for AI coding agents — MCP server + CLI + live preview",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -8,12 +8,20 @@
|
|
|
8
8
|
"layout-context": "./dist/bin/cli.js",
|
|
9
9
|
"layoutdesign-context": "./dist/bin/cli.js"
|
|
10
10
|
},
|
|
11
|
-
"main": "./dist/index.js",
|
|
12
|
-
"types": "./dist/index.d.ts",
|
|
11
|
+
"main": "./dist/src/index.js",
|
|
12
|
+
"types": "./dist/src/index.d.ts",
|
|
13
13
|
"exports": {
|
|
14
14
|
".": {
|
|
15
|
-
"import": "./dist/index.js",
|
|
16
|
-
"types": "./dist/index.d.ts"
|
|
15
|
+
"import": "./dist/src/index.js",
|
|
16
|
+
"types": "./dist/src/index.d.ts"
|
|
17
|
+
},
|
|
18
|
+
"./vite-plugin": {
|
|
19
|
+
"import": "./dist/src/plugins/vite/index.js",
|
|
20
|
+
"types": "./dist/src/plugins/vite/index.d.ts"
|
|
21
|
+
},
|
|
22
|
+
"./next-plugin": {
|
|
23
|
+
"import": "./dist/src/plugins/next/index.js",
|
|
24
|
+
"types": "./dist/src/plugins/next/index.d.ts"
|
|
17
25
|
}
|
|
18
26
|
},
|
|
19
27
|
"files": [
|
|
@@ -23,10 +31,14 @@
|
|
|
23
31
|
"README.md",
|
|
24
32
|
"LICENSE"
|
|
25
33
|
],
|
|
34
|
+
"publishConfig": {
|
|
35
|
+
"access": "public"
|
|
36
|
+
},
|
|
26
37
|
"scripts": {
|
|
27
38
|
"build": "tsc && mkdir -p dist/src/preview/static && cp src/preview/static/index.html dist/src/preview/static/index.html",
|
|
28
39
|
"dev": "tsc --watch",
|
|
29
40
|
"typecheck": "tsc --noEmit",
|
|
41
|
+
"test": "node --import tsx --test test/*.test.ts",
|
|
30
42
|
"serve": "node dist/bin/cli.js serve",
|
|
31
43
|
"preview": "node dist/bin/cli.js serve"
|
|
32
44
|
},
|
|
@@ -48,16 +60,26 @@
|
|
|
48
60
|
},
|
|
49
61
|
"homepage": "https://layout.design",
|
|
50
62
|
"dependencies": {
|
|
63
|
+
"@babel/generator": "^7.29.1",
|
|
64
|
+
"@babel/parser": "^7.29.3",
|
|
65
|
+
"@babel/traverse": "^7.29.0",
|
|
66
|
+
"@babel/types": "^7.29.0",
|
|
51
67
|
"@modelcontextprotocol/sdk": "^1.12.1",
|
|
52
|
-
"commander": "^13.1.0",
|
|
53
68
|
"chalk": "^5.4.1",
|
|
54
|
-
"
|
|
69
|
+
"commander": "^13.1.0",
|
|
55
70
|
"open": "^10.1.0",
|
|
56
|
-
"
|
|
71
|
+
"proper-lockfile": "^4.1.2",
|
|
72
|
+
"recast": "^0.23.11",
|
|
73
|
+
"typescript": "^5.7.3",
|
|
74
|
+
"ws": "^8.18.0"
|
|
57
75
|
},
|
|
58
76
|
"devDependencies": {
|
|
77
|
+
"@types/babel__generator": "^7.27.0",
|
|
78
|
+
"@types/babel__traverse": "^7.28.0",
|
|
59
79
|
"@types/node": "^22.13.10",
|
|
60
|
-
"@types/
|
|
80
|
+
"@types/proper-lockfile": "^4.1.4",
|
|
81
|
+
"@types/ws": "^8.5.14",
|
|
82
|
+
"tsx": "^4.22.0"
|
|
61
83
|
},
|
|
62
84
|
"engines": {
|
|
63
85
|
"node": ">=18"
|