linco-connect 1.1.2 → 1.1.3
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/src/agents/openclaw.js +8 -2
- package/src/imConnector.js +3 -1
package/package.json
CHANGED
package/src/agents/openclaw.js
CHANGED
|
@@ -395,7 +395,7 @@ function createOpenClawProcessHandle(session, client) {
|
|
|
395
395
|
}
|
|
396
396
|
|
|
397
397
|
function resolveOpenClawAgentId(input, session, agentConfig) {
|
|
398
|
-
const messageAgentId = readInputMeta(input, 'openclawAgentId')
|
|
398
|
+
const messageAgentId = readInputMeta(input, 'openclawAgentId');
|
|
399
399
|
return String(
|
|
400
400
|
messageAgentId ||
|
|
401
401
|
session.openclawAgentId ||
|
|
@@ -517,7 +517,10 @@ function readInputMeta(input, key) {
|
|
|
517
517
|
}
|
|
518
518
|
return '';
|
|
519
519
|
}
|
|
520
|
-
|
|
520
|
+
if (input && typeof input === 'object') {
|
|
521
|
+
return input[key] || input._lincoMeta?.[key] || '';
|
|
522
|
+
}
|
|
523
|
+
return '';
|
|
521
524
|
}
|
|
522
525
|
|
|
523
526
|
function extractMessageText(message) {
|
|
@@ -609,4 +612,7 @@ module.exports = {
|
|
|
609
612
|
resolvePendingDanger,
|
|
610
613
|
resolvePendingPermission,
|
|
611
614
|
stop,
|
|
615
|
+
_internal: {
|
|
616
|
+
resolveOpenClawAgentId,
|
|
617
|
+
},
|
|
612
618
|
};
|
package/src/imConnector.js
CHANGED
|
@@ -517,7 +517,6 @@ function isDuplicateInbound(msg) {
|
|
|
517
517
|
function resolveOpenClawAgentIdFromMessage(msg, session, agentConfig, config) {
|
|
518
518
|
return String(
|
|
519
519
|
msg.openclawAgentId ||
|
|
520
|
-
msg.agentId ||
|
|
521
520
|
session.openclawAgentId ||
|
|
522
521
|
agentConfig.openclawAgentId ||
|
|
523
522
|
config.agents?.openclaw?.openclawAgentId ||
|
|
@@ -564,4 +563,7 @@ function safeUrlForLog(value) {
|
|
|
564
563
|
module.exports = {
|
|
565
564
|
startImConnector,
|
|
566
565
|
startImConnectors,
|
|
566
|
+
_internal: {
|
|
567
|
+
resolveOpenClawAgentIdFromMessage,
|
|
568
|
+
},
|
|
567
569
|
};
|