@inquiryon/openclaw-amp-governance 1.0.7 → 1.0.8
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 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -126,9 +126,10 @@ async function ampLog(instanceId, message, level = 'INFO') {
|
|
|
126
126
|
*/
|
|
127
127
|
async function notifyUser(sender, message) {
|
|
128
128
|
if (!sender?.from || !_runtime) return;
|
|
129
|
+
const prefixed = `[AMP]\n${message}`;
|
|
129
130
|
console.log(`[AMP Governance] Sending notification to ${sender.from}: ${message}`);
|
|
130
131
|
try {
|
|
131
|
-
await _runtime.channel.whatsapp.sendMessageWhatsApp(sender.from,
|
|
132
|
+
await _runtime.channel.whatsapp.sendMessageWhatsApp(sender.from, prefixed, { verbose: false });
|
|
132
133
|
} catch (err) {
|
|
133
134
|
console.warn('[AMP Governance] notifyUser failed:', err.message);
|
|
134
135
|
}
|