@agentvault/agentvault 0.19.49 → 0.19.50
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/dist/openclaw-entry.d.ts
CHANGED
|
@@ -12,8 +12,13 @@ import type { OpenClawPluginApi } from "./openclaw-types.js";
|
|
|
12
12
|
export declare let isUsingManagedRoutes: boolean;
|
|
13
13
|
/** Extract @mention names from plaintext. Returns lowercased names. */
|
|
14
14
|
declare function _parseMentions(text: string): string[];
|
|
15
|
-
/** Determine whether this agent should process a room message based on @mentions and sender type.
|
|
16
|
-
|
|
15
|
+
/** Determine whether this agent should process a room message based on @mentions and sender type.
|
|
16
|
+
*
|
|
17
|
+
* Loop prevention is handled by the rate limiter (_roomCanReply: 4 replies/60s
|
|
18
|
+
* with 2min cooldown), so we no longer gate on senderIsAgent. All messages
|
|
19
|
+
* are processed unless they @mention a *different* agent specifically.
|
|
20
|
+
*/
|
|
21
|
+
declare function _shouldProcessRoomMessage(plaintext: string, agentName: string, accountId: string, _senderIsAgent?: boolean): boolean;
|
|
17
22
|
/** Strip the matching @mention prefix from plaintext so the agent sees clean text. */
|
|
18
23
|
declare function _stripMentions(text: string, agentName: string, accountId: string): string;
|
|
19
24
|
export { _parseMentions, _shouldProcessRoomMessage, _stripMentions };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openclaw-entry.d.ts","sourceRoot":"","sources":["../src/openclaw-entry.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAYH,OAAO,KAAK,EACV,iBAAiB,EASlB,MAAM,qBAAqB,CAAC;AA4D7B,gFAAgF;AAChF,eAAO,IAAI,oBAAoB,SAAQ,CAAC;AA+CxC,uEAAuE;AACvE,iBAAS,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAS9C;AAED
|
|
1
|
+
{"version":3,"file":"openclaw-entry.d.ts","sourceRoot":"","sources":["../src/openclaw-entry.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAYH,OAAO,KAAK,EACV,iBAAiB,EASlB,MAAM,qBAAqB,CAAC;AA4D7B,gFAAgF;AAChF,eAAO,IAAI,oBAAoB,SAAQ,CAAC;AA+CxC,uEAAuE;AACvE,iBAAS,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAS9C;AAED;;;;;GAKG;AACH,iBAAS,yBAAyB,CAChC,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,cAAc,CAAC,EAAE,OAAO,GACvB,OAAO,CAgBT;AAED,sFAAsF;AACtF,iBAAS,cAAc,CACrB,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,GAChB,MAAM,CAiBR;AAkkCD,OAAO,EAAE,cAAc,EAAE,yBAAyB,EAAE,cAAc,EAAE,CAAC;;;;;kBAQrD,iBAAiB;;AAJjC,wBA+WE"}
|
package/dist/openclaw-entry.js
CHANGED
|
@@ -49255,8 +49255,9 @@ function _parseMentions(text) {
|
|
|
49255
49255
|
}
|
|
49256
49256
|
return mentions;
|
|
49257
49257
|
}
|
|
49258
|
-
function _shouldProcessRoomMessage(plaintext, agentName, accountId,
|
|
49258
|
+
function _shouldProcessRoomMessage(plaintext, agentName, accountId, _senderIsAgent) {
|
|
49259
49259
|
const mentions = _parseMentions(plaintext);
|
|
49260
|
+
if (mentions.length === 0) return true;
|
|
49260
49261
|
if (mentions.includes("all") || mentions.includes("everyone")) return true;
|
|
49261
49262
|
const nameLower = agentName.toLowerCase();
|
|
49262
49263
|
const idLower = accountId.toLowerCase();
|
|
@@ -49265,8 +49266,7 @@ function _shouldProcessRoomMessage(plaintext, agentName, accountId, senderIsAgen
|
|
|
49265
49266
|
(m2) => m2 === nameLower || m2 === firstWord || m2 === idLower
|
|
49266
49267
|
);
|
|
49267
49268
|
if (isMentioned) return true;
|
|
49268
|
-
|
|
49269
|
-
return mentions.length === 0;
|
|
49269
|
+
return false;
|
|
49270
49270
|
}
|
|
49271
49271
|
function _stripMentions(text, agentName, accountId) {
|
|
49272
49272
|
const nameLower = agentName.toLowerCase();
|