@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 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:
@@ -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");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitovi/vybit",
3
- "version": "0.4.7",
3
+ "version": "0.4.9",
4
4
  "description": "Browser overlay + inspector panel + MCP server for visually editing Tailwind CSS classes on a running React app",
5
5
  "keywords": [
6
6
  "tailwind",