@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
|
@@ -1346,7 +1346,7 @@ var Relay = class extends AbstractRelay {
|
|
|
1346
1346
|
}
|
|
1347
1347
|
static async connect(url, options) {
|
|
1348
1348
|
const relay = new Relay(url, options);
|
|
1349
|
-
await relay.connect();
|
|
1349
|
+
await relay.connect(options);
|
|
1350
1350
|
return relay;
|
|
1351
1351
|
}
|
|
1352
1352
|
};
|
|
@@ -2901,8 +2901,8 @@ function* parse4(content) {
|
|
|
2901
2901
|
if (h === 0 || content[h - 1].match(noCharacter)) {
|
|
2902
2902
|
const m = content.slice(h + 1, h + MAX_HASHTAG_LENGTH).match(noCharacter);
|
|
2903
2903
|
const end = m ? h + 1 + m.index : max;
|
|
2904
|
-
yield { type: "text", text: content.slice(prevIndex, h) };
|
|
2905
|
-
yield { type: "hashtag", value: content.slice(h + 1, end) };
|
|
2904
|
+
yield { type: "text", text: content.slice(prevIndex, h), start: prevIndex, end: h };
|
|
2905
|
+
yield { type: "hashtag", value: content.slice(h + 1, end), start: h, end };
|
|
2906
2906
|
index = end;
|
|
2907
2907
|
prevIndex = index;
|
|
2908
2908
|
continue mainloop;
|
|
@@ -2930,9 +2930,9 @@ function* parse4(content) {
|
|
|
2930
2930
|
pointer = data;
|
|
2931
2931
|
}
|
|
2932
2932
|
if (prevIndex !== u - 5) {
|
|
2933
|
-
yield { type: "text", text: content.slice(prevIndex, u - 5) };
|
|
2933
|
+
yield { type: "text", text: content.slice(prevIndex, u - 5), start: prevIndex, end: u - 5 };
|
|
2934
2934
|
}
|
|
2935
|
-
yield { type: "reference", pointer };
|
|
2935
|
+
yield { type: "reference", pointer, start: u - 5, end };
|
|
2936
2936
|
index = end;
|
|
2937
2937
|
prevIndex = index;
|
|
2938
2938
|
continue mainloop;
|
|
@@ -2950,27 +2950,32 @@ function* parse4(content) {
|
|
|
2950
2950
|
throw new Error("invalid url");
|
|
2951
2951
|
}
|
|
2952
2952
|
if (prevIndex !== u - prefixLen) {
|
|
2953
|
-
yield {
|
|
2953
|
+
yield {
|
|
2954
|
+
type: "text",
|
|
2955
|
+
text: content.slice(prevIndex, u - prefixLen),
|
|
2956
|
+
start: prevIndex,
|
|
2957
|
+
end: u - prefixLen
|
|
2958
|
+
};
|
|
2954
2959
|
}
|
|
2955
2960
|
if (/\.(png|jpe?g|gif|webp|heic|svg)$/i.test(url.pathname)) {
|
|
2956
|
-
yield { type: "image", url: url.toString() };
|
|
2961
|
+
yield { type: "image", url: url.toString(), start: u - prefixLen, end };
|
|
2957
2962
|
index = end;
|
|
2958
2963
|
prevIndex = index;
|
|
2959
2964
|
continue mainloop;
|
|
2960
2965
|
}
|
|
2961
2966
|
if (/\.(mp4|avi|webm|mkv|mov)$/i.test(url.pathname)) {
|
|
2962
|
-
yield { type: "video", url: url.toString() };
|
|
2967
|
+
yield { type: "video", url: url.toString(), start: u - prefixLen, end };
|
|
2963
2968
|
index = end;
|
|
2964
2969
|
prevIndex = index;
|
|
2965
2970
|
continue mainloop;
|
|
2966
2971
|
}
|
|
2967
2972
|
if (/\.(mp3|aac|ogg|opus|wav|flac)$/i.test(url.pathname)) {
|
|
2968
|
-
yield { type: "audio", url: url.toString() };
|
|
2973
|
+
yield { type: "audio", url: url.toString(), start: u - prefixLen, end };
|
|
2969
2974
|
index = end;
|
|
2970
2975
|
prevIndex = index;
|
|
2971
2976
|
continue mainloop;
|
|
2972
2977
|
}
|
|
2973
|
-
yield { type: "url", url: url.toString() };
|
|
2978
|
+
yield { type: "url", url: url.toString(), start: u - prefixLen, end };
|
|
2974
2979
|
index = end;
|
|
2975
2980
|
prevIndex = index;
|
|
2976
2981
|
continue mainloop;
|
|
@@ -2988,9 +2993,14 @@ function* parse4(content) {
|
|
|
2988
2993
|
throw new Error("invalid ws url");
|
|
2989
2994
|
}
|
|
2990
2995
|
if (prevIndex !== u - prefixLen) {
|
|
2991
|
-
yield {
|
|
2996
|
+
yield {
|
|
2997
|
+
type: "text",
|
|
2998
|
+
text: content.slice(prevIndex, u - prefixLen),
|
|
2999
|
+
start: prevIndex,
|
|
3000
|
+
end: u - prefixLen
|
|
3001
|
+
};
|
|
2992
3002
|
}
|
|
2993
|
-
yield { type: "relay", url: url.toString() };
|
|
3003
|
+
yield { type: "relay", url: url.toString(), start: u - prefixLen, end };
|
|
2994
3004
|
index = end;
|
|
2995
3005
|
prevIndex = index;
|
|
2996
3006
|
continue mainloop;
|
|
@@ -3003,9 +3013,9 @@ function* parse4(content) {
|
|
|
3003
3013
|
const emoji = emojis[e];
|
|
3004
3014
|
if (content[u + emoji.shortcode.length + 1] === ":" && content.slice(u + 1, u + emoji.shortcode.length + 1) === emoji.shortcode) {
|
|
3005
3015
|
if (prevIndex !== u) {
|
|
3006
|
-
yield { type: "text", text: content.slice(prevIndex, u) };
|
|
3016
|
+
yield { type: "text", text: content.slice(prevIndex, u), start: prevIndex, end: u };
|
|
3007
3017
|
}
|
|
3008
|
-
yield emoji;
|
|
3018
|
+
yield { ...emoji, start: u, end: u + emoji.shortcode.length + 2 };
|
|
3009
3019
|
index = u + emoji.shortcode.length + 2;
|
|
3010
3020
|
prevIndex = index;
|
|
3011
3021
|
continue mainloop;
|
|
@@ -3016,7 +3026,7 @@ function* parse4(content) {
|
|
|
3016
3026
|
}
|
|
3017
3027
|
}
|
|
3018
3028
|
if (prevIndex !== max) {
|
|
3019
|
-
yield { type: "text", text: content.slice(prevIndex) };
|
|
3029
|
+
yield { type: "text", text: content.slice(prevIndex), start: prevIndex, end: max };
|
|
3020
3030
|
}
|
|
3021
3031
|
}
|
|
3022
3032
|
|