@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.
- package/dist/api.js +1 -1
- package/dist/{channel-B50upNWy.js → channel-Czma0_CC.js} +20 -9
- package/dist/channel-plugin-api.js +1 -1
- package/node_modules/nostr-tools/lib/cjs/index.js +1 -1
- package/node_modules/nostr-tools/lib/cjs/index.js.map +2 -2
- package/node_modules/nostr-tools/lib/cjs/nipb7.js +1003 -98
- package/node_modules/nostr-tools/lib/cjs/nipb7.js.map +4 -4
- package/node_modules/nostr-tools/lib/cjs/relay.js +1 -1
- package/node_modules/nostr-tools/lib/cjs/relay.js.map +2 -2
- package/node_modules/nostr-tools/lib/esm/index.js +1 -1
- package/node_modules/nostr-tools/lib/esm/index.js.map +2 -2
- package/node_modules/nostr-tools/lib/esm/nipb7.js +1009 -98
- package/node_modules/nostr-tools/lib/esm/nipb7.js.map +4 -4
- package/node_modules/nostr-tools/lib/esm/relay.js +1 -1
- package/node_modules/nostr-tools/lib/esm/relay.js.map +2 -2
- package/node_modules/nostr-tools/lib/nostr.bundle.js +1 -1
- package/node_modules/nostr-tools/lib/nostr.bundle.js.map +2 -2
- package/node_modules/nostr-tools/lib/types/nipb7.d.ts +112 -5
- package/node_modules/nostr-tools/lib/types/relay.d.ts +1 -1
- package/node_modules/nostr-tools/package.json +1 -7
- package/package.json +5 -5
- package/node_modules/nostr-tools/lib/cjs/nipb0.js +0 -1087
- package/node_modules/nostr-tools/lib/cjs/nipb0.js.map +0 -7
- package/node_modules/nostr-tools/lib/esm/nipb0.js +0 -1072
- package/node_modules/nostr-tools/lib/esm/nipb0.js.map +0 -7
- package/node_modules/nostr-tools/lib/types/nipb0.d.ts +0 -128
- 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-
|
|
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")
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
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-
|
|
1
|
+
import { t as buzzPlugin } from "./channel-Czma0_CC.js";
|
|
2
2
|
export { buzzPlugin };
|