@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.
Files changed (2) hide show
  1. package/index.js +2 -1
  2. 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, message, { verbose: false });
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inquiryon/openclaw-amp-governance",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "AMP governance plugin for OpenClaw",
5
5
  "type": "module",
6
6
  "files": [