pixel-office-openclaw 0.1.3 → 0.1.5
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/package.json +1 -1
- package/server.js +3 -2
package/package.json
CHANGED
package/server.js
CHANGED
|
@@ -241,8 +241,9 @@ app.post('/api/send', async (req, res) => {
|
|
|
241
241
|
// Send via OpenClaw CLI (gateway is WebSocket-only, no REST endpoint)
|
|
242
242
|
try {
|
|
243
243
|
console.log(`[bridge] Sending to ${safeAgentId} via CLI: ${safeMessage.slice(0, 50)}...`)
|
|
244
|
-
|
|
245
|
-
|
|
244
|
+
// Use absolute openclaw path, clean env, home cwd
|
|
245
|
+
const cliResult = execFileSync('/usr/bin/openclaw', ['agent', '--agent', safeAgentId, '--message', safeMessage, '--json'],
|
|
246
|
+
{ timeout: 120000, encoding: 'utf-8', cwd: homedir() }
|
|
246
247
|
)
|
|
247
248
|
console.log(`[bridge] Sent to ${safeAgentId} (CLI OK)`)
|
|
248
249
|
try {
|