@omnixal/openclaw-nats-plugin 0.1.9 → 0.1.10

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.
Files changed (2) hide show
  1. package/cli/bun-setup.ts +2 -0
  2. package/package.json +1 -1
package/cli/bun-setup.ts CHANGED
@@ -58,11 +58,13 @@ export async function bunSetup(): Promise<void> {
58
58
  writeEnvVariables(envVars);
59
59
 
60
60
  // Write .env into sidecar dir so loadDotEnv picks it up
61
+ // Explicit localhost values override any container-level env (e.g. OPENCLAW_WS_URL=ws://openclaw:...)
61
62
  const sidecarEnv = [
62
63
  `PORT=3104`,
63
64
  `DB_PATH=${join(DATA_DIR, 'nats-sidecar.db')}`,
64
65
  `NATS_SERVERS=nats://127.0.0.1:4222`,
65
66
  `NATS_PLUGIN_API_KEY=${apiKey}`,
67
+ `OPENCLAW_WS_URL=ws://127.0.0.1:18789`,
66
68
  ].join('\n');
67
69
  writeFileSync(join(SIDECAR_DIR, '.env'), sidecarEnv, 'utf-8');
68
70
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omnixal/openclaw-nats-plugin",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "NATS JetStream event-driven plugin for OpenClaw",
5
5
  "license": "MIT",
6
6
  "type": "module",