@openclaw/buzz 2026.9.1 → 2026.9.2

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 (27) hide show
  1. package/dist/api.js +1 -1
  2. package/dist/{channel-B50upNWy.js → channel-Czma0_CC.js} +20 -9
  3. package/dist/channel-plugin-api.js +1 -1
  4. package/node_modules/nostr-tools/lib/cjs/index.js +1 -1
  5. package/node_modules/nostr-tools/lib/cjs/index.js.map +2 -2
  6. package/node_modules/nostr-tools/lib/cjs/nipb7.js +1003 -98
  7. package/node_modules/nostr-tools/lib/cjs/nipb7.js.map +4 -4
  8. package/node_modules/nostr-tools/lib/cjs/relay.js +1 -1
  9. package/node_modules/nostr-tools/lib/cjs/relay.js.map +2 -2
  10. package/node_modules/nostr-tools/lib/esm/index.js +1 -1
  11. package/node_modules/nostr-tools/lib/esm/index.js.map +2 -2
  12. package/node_modules/nostr-tools/lib/esm/nipb7.js +1009 -98
  13. package/node_modules/nostr-tools/lib/esm/nipb7.js.map +4 -4
  14. package/node_modules/nostr-tools/lib/esm/relay.js +1 -1
  15. package/node_modules/nostr-tools/lib/esm/relay.js.map +2 -2
  16. package/node_modules/nostr-tools/lib/nostr.bundle.js +1 -1
  17. package/node_modules/nostr-tools/lib/nostr.bundle.js.map +2 -2
  18. package/node_modules/nostr-tools/lib/types/nipb7.d.ts +112 -5
  19. package/node_modules/nostr-tools/lib/types/relay.d.ts +1 -1
  20. package/node_modules/nostr-tools/package.json +1 -7
  21. package/package.json +5 -5
  22. package/node_modules/nostr-tools/lib/cjs/nipb0.js +0 -1087
  23. package/node_modules/nostr-tools/lib/cjs/nipb0.js.map +0 -7
  24. package/node_modules/nostr-tools/lib/esm/nipb0.js +0 -1072
  25. package/node_modules/nostr-tools/lib/esm/nipb0.js.map +0 -7
  26. package/node_modules/nostr-tools/lib/types/nipb0.d.ts +0 -128
  27. package/node_modules/nostr-tools/lib/types/nipb0.test.d.ts +0 -1
package/dist/api.js CHANGED
@@ -1,3 +1,3 @@
1
1
  import { i as resolveBuzzAccount, r as listBuzzAccountIds, s as resolveDefaultBuzzAccountId } from "./types-CeupBG0P.js";
2
- import { n as getBuzzRuntime, r as setBuzzRuntime, t as buzzPlugin } from "./channel-B50upNWy.js";
2
+ import { n as getBuzzRuntime, r as setBuzzRuntime, t as buzzPlugin } from "./channel-Czma0_CC.js";
3
3
  export { buzzPlugin, getBuzzRuntime, listBuzzAccountIds, resolveBuzzAccount, resolveDefaultBuzzAccountId, setBuzzRuntime };
@@ -18,7 +18,7 @@ import { channelReadyPatch } from "openclaw/plugin-sdk/gateway-runtime";
18
18
  import { computeBackoff, sleepWithAbort } from "openclaw/plugin-sdk/runtime-env";
19
19
  import { createChannelReplayGuard } from "openclaw/plugin-sdk/persistent-dedupe";
20
20
  import { normalizeURL } from "nostr-tools/utils";
21
- import { buildChannelInboundEventContext, recordDroppedChannelInboundHistory, resolveChannelInboundRouteEnvelope } from "openclaw/plugin-sdk/channel-inbound";
21
+ import { buildChannelInboundEventContext, logInboundDrop, recordDroppedChannelInboundHistory, resolveChannelInboundRouteEnvelope } from "openclaw/plugin-sdk/channel-inbound";
22
22
  import { resolveStableChannelMessageIngress } from "openclaw/plugin-sdk/channel-ingress-runtime";
23
23
  import { createSubsystemLogger } from "openclaw/plugin-sdk/logging-core";
24
24
  import { buildHistoryContext, createChannelHistoryWindow } from "openclaw/plugin-sdk/reply-history";
@@ -1580,14 +1580,25 @@ async function handleBuzzInbound(params) {
1580
1580
  const historyKey = JSON.stringify([channelId, message.threadId ?? null]);
1581
1581
  const historyLimit = account.config.historyLimit ?? 0;
1582
1582
  if (access.ingress.admission !== "dispatch") {
1583
- if (access.ingress.reasonCode === "activation_skipped") await recordBuzzPendingHistory({
1584
- historyMap: params.historyMap,
1585
- key: historyKey,
1586
- limit: historyLimit,
1587
- message,
1588
- text: textForAgent,
1589
- shouldRecord: () => !signal.aborted && bus.directory.isMember(channelId, message.senderPubkey)
1590
- });
1583
+ if (access.ingress.reasonCode === "activation_skipped") {
1584
+ const groupsPath = (cfg.channels?.buzz)?.accounts?.[account.accountId] ? `channels.buzz.accounts[${JSON.stringify(account.accountId)}].groups` : "channels.buzz.groups";
1585
+ logInboundDrop({
1586
+ log: log.info,
1587
+ channel: "buzz",
1588
+ reason: "no mention",
1589
+ target: channelId,
1590
+ onceKey: JSON.stringify([account.accountId, channelId]),
1591
+ hint: `Mention patterns can be derived from the agent identity name. Set ${groupsPath}[${JSON.stringify(channelId)}].requireMention=false to process messages without a mention.`
1592
+ });
1593
+ await recordBuzzPendingHistory({
1594
+ historyMap: params.historyMap,
1595
+ key: historyKey,
1596
+ limit: historyLimit,
1597
+ message,
1598
+ text: textForAgent,
1599
+ shouldRecord: () => !signal.aborted && bus.directory.isMember(channelId, message.senderPubkey)
1600
+ });
1601
+ }
1591
1602
  return;
1592
1603
  }
1593
1604
  const history = snapshotBuzzPendingHistory({
@@ -1,2 +1,2 @@
1
- import { t as buzzPlugin } from "./channel-B50upNWy.js";
1
+ import { t as buzzPlugin } from "./channel-Czma0_CC.js";
2
2
  export { buzzPlugin };
@@ -1408,7 +1408,7 @@ var Relay = class extends AbstractRelay {
1408
1408
  }
1409
1409
  static async connect(url, options) {
1410
1410
  const relay = new Relay(url, options);
1411
- await relay.connect();
1411
+ await relay.connect(options);
1412
1412
  return relay;
1413
1413
  }
1414
1414
  };