indieclaw-agent 2.4.2 → 2.4.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/index.js +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -308,7 +308,7 @@ function connectOcGateway() {
|
|
|
308
308
|
connectReqId = crypto.randomUUID();
|
|
309
309
|
const params = {
|
|
310
310
|
minProtocol: 3, maxProtocol: 3,
|
|
311
|
-
client: { id: '
|
|
311
|
+
client: { id: 'cli', version: VERSION, platform: os.platform(), mode: 'cli' },
|
|
312
312
|
role: 'operator',
|
|
313
313
|
scopes: ['operator.read', 'operator.write'],
|
|
314
314
|
};
|
|
@@ -1204,7 +1204,7 @@ async function handleChatSend(ws, { id, messages }) {
|
|
|
1204
1204
|
// Send chat request to gateway via WebSocket protocol
|
|
1205
1205
|
const result = await ocRequest('chat.send', {
|
|
1206
1206
|
sessionKey,
|
|
1207
|
-
message:
|
|
1207
|
+
message: lastUserMsg.content,
|
|
1208
1208
|
idempotencyKey,
|
|
1209
1209
|
});
|
|
1210
1210
|
|