@openclaw/buzz 2026.9.1 → 2026.9.3
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-C6rro-f7.js} +30 -13
- package/dist/channel-plugin-api.js +1 -1
- package/node_modules/nostr-tools/README.md +23 -0
- package/node_modules/nostr-tools/lib/cjs/index.js +25 -15
- package/node_modules/nostr-tools/lib/cjs/index.js.map +2 -2
- package/node_modules/nostr-tools/lib/cjs/nip27.js +24 -14
- package/node_modules/nostr-tools/lib/cjs/nip27.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 +25 -15
- package/node_modules/nostr-tools/lib/esm/index.js.map +2 -2
- package/node_modules/nostr-tools/lib/esm/nip27.js +24 -14
- package/node_modules/nostr-tools/lib/esm/nip27.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 +25 -15
- package/node_modules/nostr-tools/lib/nostr.bundle.js.map +2 -2
- package/node_modules/nostr-tools/lib/types/nip27.d.ts +18 -0
- 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
|
@@ -3565,7 +3565,7 @@ var NostrTools = (() => {
|
|
|
3565
3565
|
}
|
|
3566
3566
|
static async connect(url, options) {
|
|
3567
3567
|
const relay = new Relay(url, options);
|
|
3568
|
-
await relay.connect();
|
|
3568
|
+
await relay.connect(options);
|
|
3569
3569
|
return relay;
|
|
3570
3570
|
}
|
|
3571
3571
|
};
|
|
@@ -6637,8 +6637,8 @@ var NostrTools = (() => {
|
|
|
6637
6637
|
if (h === 0 || content[h - 1].match(noCharacter)) {
|
|
6638
6638
|
const m = content.slice(h + 1, h + MAX_HASHTAG_LENGTH).match(noCharacter);
|
|
6639
6639
|
const end = m ? h + 1 + m.index : max;
|
|
6640
|
-
yield { type: "text", text: content.slice(prevIndex, h) };
|
|
6641
|
-
yield { type: "hashtag", value: content.slice(h + 1, end) };
|
|
6640
|
+
yield { type: "text", text: content.slice(prevIndex, h), start: prevIndex, end: h };
|
|
6641
|
+
yield { type: "hashtag", value: content.slice(h + 1, end), start: h, end };
|
|
6642
6642
|
index = end;
|
|
6643
6643
|
prevIndex = index;
|
|
6644
6644
|
continue mainloop;
|
|
@@ -6666,9 +6666,9 @@ var NostrTools = (() => {
|
|
|
6666
6666
|
pointer = data;
|
|
6667
6667
|
}
|
|
6668
6668
|
if (prevIndex !== u - 5) {
|
|
6669
|
-
yield { type: "text", text: content.slice(prevIndex, u - 5) };
|
|
6669
|
+
yield { type: "text", text: content.slice(prevIndex, u - 5), start: prevIndex, end: u - 5 };
|
|
6670
6670
|
}
|
|
6671
|
-
yield { type: "reference", pointer };
|
|
6671
|
+
yield { type: "reference", pointer, start: u - 5, end };
|
|
6672
6672
|
index = end;
|
|
6673
6673
|
prevIndex = index;
|
|
6674
6674
|
continue mainloop;
|
|
@@ -6686,27 +6686,32 @@ var NostrTools = (() => {
|
|
|
6686
6686
|
throw new Error("invalid url");
|
|
6687
6687
|
}
|
|
6688
6688
|
if (prevIndex !== u - prefixLen) {
|
|
6689
|
-
yield {
|
|
6689
|
+
yield {
|
|
6690
|
+
type: "text",
|
|
6691
|
+
text: content.slice(prevIndex, u - prefixLen),
|
|
6692
|
+
start: prevIndex,
|
|
6693
|
+
end: u - prefixLen
|
|
6694
|
+
};
|
|
6690
6695
|
}
|
|
6691
6696
|
if (/\.(png|jpe?g|gif|webp|heic|svg)$/i.test(url.pathname)) {
|
|
6692
|
-
yield { type: "image", url: url.toString() };
|
|
6697
|
+
yield { type: "image", url: url.toString(), start: u - prefixLen, end };
|
|
6693
6698
|
index = end;
|
|
6694
6699
|
prevIndex = index;
|
|
6695
6700
|
continue mainloop;
|
|
6696
6701
|
}
|
|
6697
6702
|
if (/\.(mp4|avi|webm|mkv|mov)$/i.test(url.pathname)) {
|
|
6698
|
-
yield { type: "video", url: url.toString() };
|
|
6703
|
+
yield { type: "video", url: url.toString(), start: u - prefixLen, end };
|
|
6699
6704
|
index = end;
|
|
6700
6705
|
prevIndex = index;
|
|
6701
6706
|
continue mainloop;
|
|
6702
6707
|
}
|
|
6703
6708
|
if (/\.(mp3|aac|ogg|opus|wav|flac)$/i.test(url.pathname)) {
|
|
6704
|
-
yield { type: "audio", url: url.toString() };
|
|
6709
|
+
yield { type: "audio", url: url.toString(), start: u - prefixLen, end };
|
|
6705
6710
|
index = end;
|
|
6706
6711
|
prevIndex = index;
|
|
6707
6712
|
continue mainloop;
|
|
6708
6713
|
}
|
|
6709
|
-
yield { type: "url", url: url.toString() };
|
|
6714
|
+
yield { type: "url", url: url.toString(), start: u - prefixLen, end };
|
|
6710
6715
|
index = end;
|
|
6711
6716
|
prevIndex = index;
|
|
6712
6717
|
continue mainloop;
|
|
@@ -6724,9 +6729,14 @@ var NostrTools = (() => {
|
|
|
6724
6729
|
throw new Error("invalid ws url");
|
|
6725
6730
|
}
|
|
6726
6731
|
if (prevIndex !== u - prefixLen) {
|
|
6727
|
-
yield {
|
|
6732
|
+
yield {
|
|
6733
|
+
type: "text",
|
|
6734
|
+
text: content.slice(prevIndex, u - prefixLen),
|
|
6735
|
+
start: prevIndex,
|
|
6736
|
+
end: u - prefixLen
|
|
6737
|
+
};
|
|
6728
6738
|
}
|
|
6729
|
-
yield { type: "relay", url: url.toString() };
|
|
6739
|
+
yield { type: "relay", url: url.toString(), start: u - prefixLen, end };
|
|
6730
6740
|
index = end;
|
|
6731
6741
|
prevIndex = index;
|
|
6732
6742
|
continue mainloop;
|
|
@@ -6739,9 +6749,9 @@ var NostrTools = (() => {
|
|
|
6739
6749
|
const emoji = emojis[e];
|
|
6740
6750
|
if (content[u + emoji.shortcode.length + 1] === ":" && content.slice(u + 1, u + emoji.shortcode.length + 1) === emoji.shortcode) {
|
|
6741
6751
|
if (prevIndex !== u) {
|
|
6742
|
-
yield { type: "text", text: content.slice(prevIndex, u) };
|
|
6752
|
+
yield { type: "text", text: content.slice(prevIndex, u), start: prevIndex, end: u };
|
|
6743
6753
|
}
|
|
6744
|
-
yield emoji;
|
|
6754
|
+
yield { ...emoji, start: u, end: u + emoji.shortcode.length + 2 };
|
|
6745
6755
|
index = u + emoji.shortcode.length + 2;
|
|
6746
6756
|
prevIndex = index;
|
|
6747
6757
|
continue mainloop;
|
|
@@ -6752,7 +6762,7 @@ var NostrTools = (() => {
|
|
|
6752
6762
|
}
|
|
6753
6763
|
}
|
|
6754
6764
|
if (prevIndex !== max) {
|
|
6755
|
-
yield { type: "text", text: content.slice(prevIndex) };
|
|
6765
|
+
yield { type: "text", text: content.slice(prevIndex), start: prevIndex, end: max };
|
|
6756
6766
|
}
|
|
6757
6767
|
}
|
|
6758
6768
|
|