clawhq-bridge 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/bin/clawhq-bridge.js +1 -1
- package/package.json +1 -1
package/bin/clawhq-bridge.js
CHANGED
|
@@ -224,7 +224,7 @@ async function startBridge() {
|
|
|
224
224
|
const AGENT_ID = process.env.AGENT_ID || '';
|
|
225
225
|
const OPENCLAW_PORT = parseInt(process.env.OPENCLAW_PORT || '18789', 10);
|
|
226
226
|
const OPENCLAW_TOKEN = process.env.OPENCLAW_TOKEN || '';
|
|
227
|
-
const SESSION_KEY = process.env.OPENCLAW_SESSION_KEY || 'clawhq:app';
|
|
227
|
+
const SESSION_KEY = flags.shared ? 'main' : (flags.session || process.env.OPENCLAW_SESSION_KEY || 'clawhq:app');
|
|
228
228
|
|
|
229
229
|
if (!ACCESS_TOKEN || !AGENT_ID) {
|
|
230
230
|
throw new Error('Missing credentials. Re-run setup: npx clawhq-bridge --setup <CODE>');
|