@rainbow-robotics/muscat-plugin-kit 1.0.3 → 1.0.4
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/cli/src/ports.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// Port contract helpers for plugin back ends.
|
|
2
2
|
import { spawnSync } from "node:child_process";
|
|
3
|
+
import { usesHostNetwork } from "./zenohDev.mjs";
|
|
3
4
|
|
|
4
5
|
export const PLUGIN_PORT_MIN = 28600;
|
|
5
6
|
export const PLUGIN_PORT_MAX = 28999;
|
|
@@ -131,6 +132,10 @@ done | sort -n -u
|
|
|
131
132
|
}
|
|
132
133
|
|
|
133
134
|
export function startPortContractMonitor({ container, ranges, log, intervalMs = 1000 }) {
|
|
135
|
+
// Under --network host the container shares the host's netns, so
|
|
136
|
+
// /proc/net/tcp shows every host/robot service port, not just the plugin's —
|
|
137
|
+
// the contract can't be enforced. Skip it (no isolated ports to police).
|
|
138
|
+
if (usesHostNetwork()) return () => false;
|
|
134
139
|
const declared = ranges ?? [];
|
|
135
140
|
let reported = false;
|
|
136
141
|
const timer = setInterval(() => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"generatedAt":
|
|
1
|
+
{"generatedAt":1784531096562,"userSince":1750932757926,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":false,"hasStorybookEslint":true,"refCount":0,"testPackages":{"@vitest/browser":"3.2.4","@vitest/coverage-v8":"3.2.4","playwright":"1.59.1","vitest":"3.2.4"},"hasRouterPackage":false,"monorepo":"Turborepo","packageManager":{"type":"yarn","version":"berry","agent":"yarn@berry"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/react","portableStoriesFileCount":0,"applicationFileCount":0,"storybookVersion":"8.6.18","storybookVersionSpecifier":"^8.6.4","language":"typescript","storybookPackages":{"@chromatic-com/storybook":{"version":"3.2.7"},"@storybook/addon-essentials":{"version":"8.6.18"},"@storybook/addon-links":{"version":"8.6.18"},"@storybook/addon-onboarding":{"version":"8.6.18"},"@storybook/addon-themes":{"version":"8.6.18"},"@storybook/blocks":{"version":"8.6.18"},"@storybook/experimental-addon-test":{"version":"8.6.18"},"@storybook/react":{"version":"8.6.18"},"@storybook/react-vite":{"version":"8.6.18"},"@storybook/test":{"version":"8.6.18"},"@storybook/theming":{"version":"8.6.18"},"eslint-plugin-storybook":{"version":"0.11.6"},"storybook":{"version":"8.6.18"},"storybook-addon-react-docgen":{"version":"1.2.44"}},"addons":{"$SNIP/node_modules/@storybook/addon-links":{"version":null},"$SNIP/node_modules/@storybook/addon-essentials":{"version":null},"$SNIP/node_modules/@chromatic-com/storybook":{"version":null},"$SNIP/node_modules/@storybook/addon-themes":{"version":null},"$SNIP/node_modules/@storybook/experimental-addon-test":{"version":null}}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rainbow-robotics/muscat-plugin-kit",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=20"
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
56
|
-
"@rainbow-robotics/plugin-ui": "1.0.
|
|
57
|
-
"@rainbow-robotics/preview-host": "1.0.
|
|
56
|
+
"@rainbow-robotics/plugin-ui": "1.0.4",
|
|
57
|
+
"@rainbow-robotics/preview-host": "1.0.4",
|
|
58
58
|
"postcss": "^8.5.8",
|
|
59
59
|
"socket.io": "^4.8.1",
|
|
60
60
|
"typescript": "^5.8.0",
|