@openclaw/nostr 2026.9.1-beta.1 → 2026.9.1
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 +7 -5
- package/dist/{channel-BwnvE_wr.js → channel-CLybVB2-.js} +10 -11
- package/dist/channel-plugin-api.js +1 -1
- package/dist/doctor-contract-api.js +2 -1
- package/dist/setup-api.js +1 -1
- package/dist/setup-plugin-api.js +1 -1
- package/dist/{setup-surface-CzjfhV72.js → setup-surface-mA5PMspO.js} +11 -10
- package/node_modules/nostr-tools/lib/cjs/index.js +20 -4
- package/node_modules/nostr-tools/lib/cjs/index.js.map +2 -2
- package/node_modules/nostr-tools/lib/cjs/nip17.js +19 -3
- package/node_modules/nostr-tools/lib/cjs/nip17.js.map +2 -2
- package/node_modules/nostr-tools/lib/cjs/nip46.js +7 -3
- package/node_modules/nostr-tools/lib/cjs/nip46.js.map +2 -2
- package/node_modules/nostr-tools/lib/cjs/nip59.js +19 -3
- package/node_modules/nostr-tools/lib/cjs/nip59.js.map +2 -2
- package/node_modules/nostr-tools/lib/cjs/nip98.js +1 -1
- package/node_modules/nostr-tools/lib/cjs/nip98.js.map +2 -2
- package/node_modules/nostr-tools/lib/cjs/nipad.js +55 -0
- package/node_modules/nostr-tools/lib/cjs/nipad.js.map +7 -0
- package/node_modules/nostr-tools/lib/esm/index.js +20 -4
- package/node_modules/nostr-tools/lib/esm/index.js.map +2 -2
- package/node_modules/nostr-tools/lib/esm/nip17.js +19 -3
- package/node_modules/nostr-tools/lib/esm/nip17.js.map +2 -2
- package/node_modules/nostr-tools/lib/esm/nip46.js +7 -3
- package/node_modules/nostr-tools/lib/esm/nip46.js.map +2 -2
- package/node_modules/nostr-tools/lib/esm/nip59.js +19 -3
- package/node_modules/nostr-tools/lib/esm/nip59.js.map +2 -2
- package/node_modules/nostr-tools/lib/esm/nip98.js +1 -1
- package/node_modules/nostr-tools/lib/esm/nip98.js.map +2 -2
- package/node_modules/nostr-tools/lib/esm/nipad.js +34 -0
- package/node_modules/nostr-tools/lib/esm/nipad.js.map +7 -0
- package/node_modules/nostr-tools/lib/nostr.bundle.js +20 -4
- package/node_modules/nostr-tools/lib/nostr.bundle.js.map +2 -2
- package/node_modules/nostr-tools/lib/types/nip46.test.d.ts +1 -0
- package/node_modules/nostr-tools/lib/types/nip98.d.ts +1 -1
- package/node_modules/nostr-tools/lib/types/nipad.d.ts +16 -0
- package/node_modules/nostr-tools/package.json +7 -1
- package/package.json +5 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -25,7 +25,7 @@ export declare function unpackEventFromToken(token: string): Promise<Event>;
|
|
|
25
25
|
/**
|
|
26
26
|
* Validates the timestamp of an event.
|
|
27
27
|
* @param event - The event object to validate.
|
|
28
|
-
* @returns A boolean indicating whether the event timestamp is within
|
|
28
|
+
* @returns A boolean indicating whether the event timestamp is within 60 seconds of now.
|
|
29
29
|
*/
|
|
30
30
|
export declare function validateEventTimestamp(event: Event): boolean;
|
|
31
31
|
/**
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Filter } from './filter.ts';
|
|
2
|
+
export type WebAddressPointer = {
|
|
3
|
+
filter: Filter;
|
|
4
|
+
relays?: string[];
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* NIP-AD regex. Matches a web URL with a path that may have a Nostr counterpart.
|
|
8
|
+
*
|
|
9
|
+
* - 0: full match
|
|
10
|
+
* - 1: domain
|
|
11
|
+
* - 2: path
|
|
12
|
+
*/
|
|
13
|
+
export declare const AD_REGEX: RegExp;
|
|
14
|
+
export declare const isWebAddress: (value?: string | null) => value is string;
|
|
15
|
+
export declare function useFetchImplementation(fetchImplementation: unknown): void;
|
|
16
|
+
export declare function queryWebAddress(url: string): Promise<WebAddressPointer | null>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "nostr-tools",
|
|
4
|
-
"version": "2.24.
|
|
4
|
+
"version": "2.24.3",
|
|
5
5
|
"description": "Tools for making a Nostr client.",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -258,6 +258,12 @@
|
|
|
258
258
|
"require": "./lib/cjs/nip98.js",
|
|
259
259
|
"types": "./lib/types/nip98.d.ts"
|
|
260
260
|
},
|
|
261
|
+
"./nipad": {
|
|
262
|
+
"source": "./nipad.ts",
|
|
263
|
+
"import": "./lib/esm/nipad.js",
|
|
264
|
+
"require": "./lib/cjs/nipad.js",
|
|
265
|
+
"types": "./lib/types/nipad.d.ts"
|
|
266
|
+
},
|
|
261
267
|
"./nip99": {
|
|
262
268
|
"source": "./nip99.ts",
|
|
263
269
|
"import": "./lib/esm/nip99.js",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/nostr",
|
|
3
|
-
"version": "2026.9.1
|
|
3
|
+
"version": "2026.9.1",
|
|
4
4
|
"description": "OpenClaw Nostr channel plugin for NIP-04 encrypted direct messages.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
},
|
|
9
9
|
"type": "module",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"nostr-tools": "2.24.
|
|
11
|
+
"nostr-tools": "2.24.3",
|
|
12
12
|
"zod": "4.4.3"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"openclaw": ">=2026.9.1
|
|
15
|
+
"openclaw": ">=2026.9.1"
|
|
16
16
|
},
|
|
17
17
|
"peerDependenciesMeta": {
|
|
18
18
|
"openclaw": {
|
|
@@ -79,10 +79,10 @@
|
|
|
79
79
|
"minHostVersion": ">=2026.4.10"
|
|
80
80
|
},
|
|
81
81
|
"compat": {
|
|
82
|
-
"pluginApi": ">=2026.9.1
|
|
82
|
+
"pluginApi": ">=2026.9.1"
|
|
83
83
|
},
|
|
84
84
|
"build": {
|
|
85
|
-
"openclawVersion": "2026.9.1
|
|
85
|
+
"openclawVersion": "2026.9.1"
|
|
86
86
|
},
|
|
87
87
|
"release": {
|
|
88
88
|
"publishToClawHub": true,
|