@bitovi/vybit 0.4.7 → 0.4.9
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 +29 -0
- package/overlay/dist/overlay.js +6 -0
- package/package.json +1 -1
- package/panel/dist/assets/{index-knh34eHL.js → index-2r5Abawu.js} +60 -60
- package/panel/dist/assets/index-CLQ2EbNt.css +1 -0
- package/panel/dist/index.html +2 -2
- package/server/app.ts +4 -2
- package/server/index.ts +77 -1
- package/server/mcp-tools.ts +29 -2
- package/server/queue.ts +21 -0
- package/server/tailwind-v3.ts +0 -1
- package/server/tailwind.ts +15 -0
- package/server/tests/server.integration.test.ts +2 -0
- package/panel/dist/assets/index-CsMFiOfM.css +0 -1
package/README.md
CHANGED
|
@@ -52,6 +52,35 @@ __Claude Code__ in `.mcp.json`
|
|
|
52
52
|
}
|
|
53
53
|
```
|
|
54
54
|
|
|
55
|
+
#### Running inside Docker
|
|
56
|
+
|
|
57
|
+
If your app runs in a Docker container, run VyBit **inside the container** instead of on the host. This is necessary because VyBit needs access to your project's `node_modules` to resolve Tailwind — which only exist inside the container, not on the host.
|
|
58
|
+
|
|
59
|
+
Replace the `npx` command with `docker exec`. For example, Claude Code in `.mcp.json`:
|
|
60
|
+
|
|
61
|
+
```json
|
|
62
|
+
{
|
|
63
|
+
"mcpServers": {
|
|
64
|
+
"vybit": {
|
|
65
|
+
"command": "docker",
|
|
66
|
+
"args": ["exec", "-i", "<your-container-name>", "npx", "@bitovi/vybit"]
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
You can find your container name by running `docker ps`.
|
|
73
|
+
|
|
74
|
+
You also need to expose port `3333` so the browser can load the editor overlay script. Add it to your `docker-compose.yml` (or override file):
|
|
75
|
+
|
|
76
|
+
```yaml
|
|
77
|
+
ports:
|
|
78
|
+
- "3000:3000"
|
|
79
|
+
- "3333:3333"
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
Then restart your containers for the port mapping to take effect.
|
|
83
|
+
|
|
55
84
|
### Start the MCP connection
|
|
56
85
|
|
|
57
86
|
Different agents connect to an MCP service in different ways:
|
package/overlay/dist/overlay.js
CHANGED
|
@@ -2989,6 +2989,12 @@ ${pad}</${tag}>`;
|
|
|
2989
2989
|
currentEquivalentNodes.forEach((n) => highlightElement(n));
|
|
2990
2990
|
}
|
|
2991
2991
|
});
|
|
2992
|
+
window.addEventListener("scroll", () => {
|
|
2993
|
+
if (currentEquivalentNodes.length > 0) {
|
|
2994
|
+
shadowRoot.querySelectorAll(".highlight-overlay").forEach((el) => el.remove());
|
|
2995
|
+
currentEquivalentNodes.forEach((n) => highlightElement(n));
|
|
2996
|
+
}
|
|
2997
|
+
}, { capture: true, passive: true });
|
|
2992
2998
|
window.addEventListener("overlay-ws-connected", () => {
|
|
2993
2999
|
if (wasConnected) {
|
|
2994
3000
|
showToast("Reconnected");
|