Gateway middleware node runtime v1.0.4 that embeds Express health endpoints and routes remote WebSocket commands to a local command-registry. Supports Node modules, Python/ESM subprocesses, and CLI-scripted execution. Manifest-driven command loading from built-in JSON, environment variables, or runtime API injection. Requires Node.js ≥18. Built with esbuild to produce dist/ entry points. Key differentiator: dynamic command injection without modifying the core package, via external manifest files, env vars, or programmatic applyManifestLayer. Includes a CLI binary for debugging/scripting. Uses cross-env for Windows compatibility. Release cadence: unknown, single published version.
npm install soclaw-middleware-anythingVerified import paths — ran on the pinned version, not inferred.
Initialize GatewayClient to connect to a WebSocket gateway, listen for messages, and handle commands.
Use correct paths like require('soclaw-middleware-anything/dist/command')Run npm run build after cloning repository
Replace openMacApp with modules array in manifest JSON
Use cross-platform scripts (Python or Node) instead of .bat/.cmd
Keep src/command/index.js as external in build script
Place manifest files carefully or use absolute paths
Run npm run build in the package directory
Ensure esbuild external: ['./command/index'] or equivalent
Replace openMacApp with modules array
Upgrade Node.js to >=18