@agentvault/muse-bridge 0.1.15 → 0.1.17
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/bridge.d.ts +17 -0
- package/dist/index.js +1007 -404
- package/package.json +1 -1
package/dist/bridge.d.ts
CHANGED
|
@@ -76,6 +76,23 @@ export declare function attachLifecycle(channel: LifecycleChannel, opts?: {
|
|
|
76
76
|
}) => void;
|
|
77
77
|
}): void;
|
|
78
78
|
export declare function roomTurnPrefix(roomId: string, senderName: string, roomName?: string): string;
|
|
79
|
+
/**
|
|
80
|
+
* Does this agent owe a reply to this room message? (#1107)
|
|
81
|
+
*
|
|
82
|
+
* This bridge used to answer with `e.senderIsAgent === false` — "reply to any
|
|
83
|
+
* human". That was a THIRD implementation of the room reply rule, alongside the
|
|
84
|
+
* OpenClaw plugin and hermes, and #1107 shipped to the other two only. Under the
|
|
85
|
+
* old rule this agent would still have answered every un-mentioned message while
|
|
86
|
+
* wren, cortina, smartcode and smartcoder2 stayed quiet: the cascade, half-fixed,
|
|
87
|
+
* in the half most likely to be read as "the protocol doesn't work".
|
|
88
|
+
*
|
|
89
|
+
* Now it defers to the ONE shared implementation exported by
|
|
90
|
+
* `@agentvault/agentvault`. The message is still pushed into the session either
|
|
91
|
+
* way — the agent reads the whole room and only the reply obligation changes.
|
|
92
|
+
*/
|
|
93
|
+
export declare function _makeOwesReply(agentName: string | undefined, channel: {
|
|
94
|
+
ownDisplayName?: string;
|
|
95
|
+
}, log: (msg: string) => void): (e: RoomMessage) => boolean;
|
|
79
96
|
export declare function wireBridge(channel: RoomChannel, session: RoomSession, target: ActiveTarget, opts?: {
|
|
80
97
|
/**
|
|
81
98
|
* #1107: this agent's own name, used to recognise its own @mention. Threaded
|