@openclaw/buzz 2026.9.1-beta.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/{adapter.runtime-DA6guOQ_.js → adapter.runtime-CaDdxQ2C.js} +4 -4
- package/dist/api.js +2 -2
- package/dist/{channel-BulZqShF.js → channel-Czma0_CC.js} +200 -66
- package/dist/channel-plugin-api.js +1 -1
- package/dist/{directory-config-BesCse0q.js → directory-config-B0shiBa4.js} +1 -1
- package/dist/directory-contract-api.js +1 -1
- package/dist/{message-event-CFw7gGLi.js → message-event-X_aBiM1X.js} +5 -8
- package/dist/qa-runner-api.js +1 -1
- package/dist/{room-membership-DSAkyE0a.js → room-membership-a8IHfdgL.js} +7 -5
- package/dist/secret-contract-DNuqbK64.js +50 -0
- package/dist/secret-contract-api.js +1 -1
- package/dist/setup-plugin-api.js +6 -3
- package/dist/{setup-surface-BvQgEJ7O.js → setup-surface-DDUmAluL.js} +197 -170
- package/dist/types-CeupBG0P.js +160 -0
- package/node_modules/nostr-tools/lib/cjs/index.js +21 -5
- 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/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 +21 -5
- 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/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 +21 -5
- package/node_modules/nostr-tools/lib/nostr.bundle.js.map +2 -2
- 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/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 +7 -7
- package/openclaw.plugin.json +346 -0
- package/package.json +8 -5
- package/dist/secret-contract-D19RiJv_.js +0 -12
- package/dist/types-BN_HOsnq.js +0 -101
- 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 → nip46.test.d.ts} +0 -0
|
@@ -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,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { EventTemplate } from './core.ts';
|
|
2
|
+
import type { Signer } from './signer.ts';
|
|
2
3
|
export type BlobDescriptor = {
|
|
3
4
|
url: string;
|
|
4
5
|
sha256: string;
|
|
@@ -6,17 +7,123 @@ export type BlobDescriptor = {
|
|
|
6
7
|
type: string;
|
|
7
8
|
uploaded: number;
|
|
8
9
|
};
|
|
10
|
+
export type UploadType = Blob | File | Buffer;
|
|
11
|
+
export type SignedEvent = EventTemplate & {
|
|
12
|
+
id: string;
|
|
13
|
+
sig: string;
|
|
14
|
+
pubkey: string;
|
|
15
|
+
};
|
|
16
|
+
export type AuthEventOptions = {
|
|
17
|
+
blobs?: string | string[];
|
|
18
|
+
servers?: string | string[];
|
|
19
|
+
message?: string;
|
|
20
|
+
expiration?: number;
|
|
21
|
+
};
|
|
22
|
+
export declare function getBlobSize(blob: UploadType): number;
|
|
23
|
+
export declare function getBlobType(blob: UploadType): string | undefined;
|
|
24
|
+
export declare function computeBlobSha256(blob: UploadType): Promise<string>;
|
|
25
|
+
export declare function encodeAuthorizationHeader(event: SignedEvent): string;
|
|
26
|
+
export declare function now(): number;
|
|
27
|
+
export declare function oneHour(): number;
|
|
28
|
+
export declare function getAuthTagValues(auth: SignedEvent, tagName: string): string[];
|
|
29
|
+
export declare function getAuthExpiration(auth: SignedEvent): number | undefined;
|
|
30
|
+
export declare function isAuthExpired(auth: SignedEvent, timestamp?: number): boolean;
|
|
31
|
+
export declare function normalizeServerTag(server: string | URL): string;
|
|
32
|
+
export declare function areServersEqual(a: string | URL, b: string | URL): boolean;
|
|
33
|
+
export declare function createAuthEvent(signer: (draft: EventTemplate) => Promise<SignedEvent>, type: 'upload' | 'list' | 'delete' | 'get' | 'media', options?: AuthEventOptions): Promise<SignedEvent>;
|
|
34
|
+
export type UploadAuthOptions = Omit<AuthEventOptions, 'blobs'> & {
|
|
35
|
+
type?: 'upload' | 'media';
|
|
36
|
+
};
|
|
37
|
+
export declare function createUploadAuth(signer: (draft: EventTemplate) => Promise<SignedEvent>, blobs: string | string[], options?: UploadAuthOptions): Promise<SignedEvent>;
|
|
38
|
+
export type DownloadAuthOptions = Omit<AuthEventOptions, 'blobs' | 'servers'>;
|
|
39
|
+
export declare function createDownloadAuth(signer: (draft: EventTemplate) => Promise<SignedEvent>, hash: string, options?: DownloadAuthOptions): Promise<SignedEvent>;
|
|
40
|
+
export type MirrorAuthOptions = Omit<AuthEventOptions, 'blobs'>;
|
|
41
|
+
export declare function createMirrorAuth(signer: (draft: EventTemplate) => Promise<SignedEvent>, hash: string, options?: MirrorAuthOptions): Promise<SignedEvent>;
|
|
42
|
+
export type ListAuthOptions = Omit<AuthEventOptions, 'blobs'>;
|
|
43
|
+
export declare function createListAuth(signer: (draft: EventTemplate) => Promise<SignedEvent>, options?: ListAuthOptions): Promise<SignedEvent>;
|
|
44
|
+
export type DeleteAuthOptions = Omit<AuthEventOptions, 'blobs'>;
|
|
45
|
+
export declare function createDeleteAuth(signer: (draft: EventTemplate) => Promise<SignedEvent>, hash: string, options?: DeleteAuthOptions): Promise<SignedEvent>;
|
|
46
|
+
export type BlossomURI = {
|
|
47
|
+
sha256: string;
|
|
48
|
+
ext: string;
|
|
49
|
+
servers: string[];
|
|
50
|
+
authors: string[];
|
|
51
|
+
size?: number;
|
|
52
|
+
};
|
|
53
|
+
export declare function parseBlossomURI(uri: string): BlossomURI;
|
|
54
|
+
export declare function buildBlossomURI(options: BlossomURI): string;
|
|
55
|
+
export declare function blossomURIToURL(uri: string | BlossomURI): URL;
|
|
56
|
+
export declare function blossomURIFromURL(url: URL): BlossomURI;
|
|
57
|
+
export declare function getExtension(mimetype: string): string;
|
|
58
|
+
export declare function getMIMEType(ext: string): string;
|
|
59
|
+
export declare function getServersFromServerListEvent(event: {
|
|
60
|
+
tags: string[][];
|
|
61
|
+
}): URL[];
|
|
62
|
+
export declare function getHashFromURL(url: string | URL): string | null;
|
|
63
|
+
export type UploadOptions = {
|
|
64
|
+
signal?: AbortSignal;
|
|
65
|
+
auth?: SignedEvent | boolean;
|
|
66
|
+
timeout?: number;
|
|
67
|
+
onAuth?: (server: string, sha256: string) => Promise<SignedEvent>;
|
|
68
|
+
};
|
|
69
|
+
export declare function uploadBlob(server: string, blob: Blob | File, opts?: UploadOptions): Promise<BlobDescriptor>;
|
|
70
|
+
export type DownloadOptions = {
|
|
71
|
+
signal?: AbortSignal;
|
|
72
|
+
auth?: SignedEvent | boolean;
|
|
73
|
+
timeout?: number;
|
|
74
|
+
onAuth?: (server: string, sha256: string) => Promise<SignedEvent>;
|
|
75
|
+
};
|
|
76
|
+
export declare function downloadBlob(server: string, hash: string, opts?: DownloadOptions): Promise<Response>;
|
|
77
|
+
export type ListOptions = {
|
|
78
|
+
signal?: AbortSignal;
|
|
79
|
+
auth?: SignedEvent | boolean;
|
|
80
|
+
timeout?: number;
|
|
81
|
+
onAuth?: (server: string) => Promise<SignedEvent>;
|
|
82
|
+
cursor?: string;
|
|
83
|
+
limit?: number;
|
|
84
|
+
since?: number;
|
|
85
|
+
until?: number;
|
|
86
|
+
};
|
|
87
|
+
export declare function listBlobs(server: string, pubkey: string, opts?: ListOptions): Promise<BlobDescriptor[]>;
|
|
88
|
+
export declare function iterateBlobs(server: string, pubkey: string, opts?: ListOptions): AsyncGenerator<BlobDescriptor[], void, void>;
|
|
89
|
+
export type DeleteOptions = {
|
|
90
|
+
signal?: AbortSignal;
|
|
91
|
+
auth?: SignedEvent | boolean;
|
|
92
|
+
timeout?: number;
|
|
93
|
+
onAuth?: (server: string, sha256: string) => Promise<SignedEvent>;
|
|
94
|
+
};
|
|
95
|
+
export declare function deleteBlob(server: string, hash: string, opts?: DeleteOptions): Promise<boolean>;
|
|
96
|
+
export type HasBlobOptions = {
|
|
97
|
+
signal?: AbortSignal;
|
|
98
|
+
timeout?: number;
|
|
99
|
+
};
|
|
100
|
+
export declare function hasBlob(server: string, hash: string, opts?: HasBlobOptions): Promise<boolean>;
|
|
101
|
+
export type MirrorOptions = {
|
|
102
|
+
signal?: AbortSignal;
|
|
103
|
+
auth?: SignedEvent | boolean;
|
|
104
|
+
timeout?: number;
|
|
105
|
+
onAuth?: (server: string, sha256: string) => Promise<SignedEvent>;
|
|
106
|
+
};
|
|
107
|
+
export declare function mirrorBlob(server: string, blob: BlobDescriptor, opts?: MirrorOptions): Promise<BlobDescriptor>;
|
|
108
|
+
export type ReportOptions = {
|
|
109
|
+
signal?: AbortSignal;
|
|
110
|
+
timeout?: number;
|
|
111
|
+
onError?: (server: string, error: Error) => void;
|
|
112
|
+
};
|
|
113
|
+
export declare function reportBlobs(servers: Iterable<string>, report: SignedEvent, opts?: ReportOptions): Promise<Map<string, boolean>>;
|
|
9
114
|
export declare class BlossomClient {
|
|
10
|
-
private mediaserver;
|
|
11
115
|
private signer;
|
|
116
|
+
private mediaserver;
|
|
12
117
|
constructor(mediaserver: string, signer: Signer);
|
|
13
|
-
|
|
118
|
+
getMediaServer(): string;
|
|
14
119
|
private authorizationHeader;
|
|
15
|
-
|
|
16
|
-
uploadBlob(file:
|
|
120
|
+
private httpCall;
|
|
121
|
+
uploadBlob(file: Blob | File, contentType?: string): Promise<BlobDescriptor>;
|
|
17
122
|
uploadFile(file: File): Promise<BlobDescriptor>;
|
|
18
123
|
download(hash: string): Promise<ArrayBuffer>;
|
|
19
124
|
downloadAsBlob(hash: string): Promise<Blob>;
|
|
20
125
|
list(): Promise<BlobDescriptor[]>;
|
|
21
126
|
delete(hash: string): Promise<void>;
|
|
127
|
+
check(hash: string): Promise<void>;
|
|
128
|
+
mirror(remoteBlobURL: string): Promise<BlobDescriptor>;
|
|
22
129
|
}
|
|
@@ -2,7 +2,7 @@ import { AbstractRelay, type AbstractRelayConstructorOptions } from './abstract-
|
|
|
2
2
|
export declare function useWebSocketImplementation(websocketImplementation: any): void;
|
|
3
3
|
export declare class Relay extends AbstractRelay {
|
|
4
4
|
constructor(url: string, options?: Pick<AbstractRelayConstructorOptions, 'enablePing' | 'enableReconnect' | 'idleTimeout'>);
|
|
5
|
-
static connect(url: string, options?: Pick<AbstractRelayConstructorOptions, 'enablePing' | 'enableReconnect' | 'idleTimeout'>): Promise<Relay>;
|
|
5
|
+
static connect(url: string, options?: Pick<AbstractRelayConstructorOptions, 'enablePing' | 'enableReconnect' | 'idleTimeout'> & Parameters<AbstractRelay['connect']>[0]): Promise<Relay>;
|
|
6
6
|
}
|
|
7
7
|
export type RelayRecord = Record<string, {
|
|
8
8
|
read: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "nostr-tools",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.25.0",
|
|
5
5
|
"description": "Tools for making a Nostr client.",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -258,18 +258,18 @@
|
|
|
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",
|
|
264
270
|
"require": "./lib/cjs/nip99.js",
|
|
265
271
|
"types": "./lib/types/nip99.d.ts"
|
|
266
272
|
},
|
|
267
|
-
"./nipb0": {
|
|
268
|
-
"source": "./nipb0.ts",
|
|
269
|
-
"import": "./lib/esm/nipb0.js",
|
|
270
|
-
"require": "./lib/cjs/nipb0.js",
|
|
271
|
-
"types": "./lib/types/nipb0.d.ts"
|
|
272
|
-
},
|
|
273
273
|
"./nipb7": {
|
|
274
274
|
"source": "./nipb7.ts",
|
|
275
275
|
"import": "./lib/esm/nipb7.js",
|
package/openclaw.plugin.json
CHANGED
|
@@ -32,6 +32,13 @@
|
|
|
32
32
|
"responsePrefix": {
|
|
33
33
|
"type": "string"
|
|
34
34
|
},
|
|
35
|
+
"replyToMode": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"enum": [
|
|
38
|
+
"off",
|
|
39
|
+
"all"
|
|
40
|
+
]
|
|
41
|
+
},
|
|
35
42
|
"markdown": {
|
|
36
43
|
"type": "object",
|
|
37
44
|
"properties": {
|
|
@@ -323,8 +330,347 @@
|
|
|
323
330
|
"additionalProperties": false
|
|
324
331
|
}
|
|
325
332
|
},
|
|
333
|
+
"historyLimit": {
|
|
334
|
+
"type": "integer",
|
|
335
|
+
"minimum": 0,
|
|
336
|
+
"maximum": 20
|
|
337
|
+
},
|
|
326
338
|
"defaultTo": {
|
|
327
339
|
"type": "string"
|
|
340
|
+
},
|
|
341
|
+
"accounts": {
|
|
342
|
+
"type": "object",
|
|
343
|
+
"propertyNames": {
|
|
344
|
+
"type": "string",
|
|
345
|
+
"pattern": "^(?!(?:constructor|prototype)$)[a-z0-9][a-z0-9_-]{0,63}$"
|
|
346
|
+
},
|
|
347
|
+
"additionalProperties": {
|
|
348
|
+
"type": "object",
|
|
349
|
+
"properties": {
|
|
350
|
+
"name": {
|
|
351
|
+
"type": "string"
|
|
352
|
+
},
|
|
353
|
+
"enabled": {
|
|
354
|
+
"type": "boolean"
|
|
355
|
+
},
|
|
356
|
+
"configWrites": {
|
|
357
|
+
"type": "boolean"
|
|
358
|
+
},
|
|
359
|
+
"responsePrefix": {
|
|
360
|
+
"type": "string"
|
|
361
|
+
},
|
|
362
|
+
"replyToMode": {
|
|
363
|
+
"type": "string",
|
|
364
|
+
"enum": [
|
|
365
|
+
"off",
|
|
366
|
+
"all"
|
|
367
|
+
]
|
|
368
|
+
},
|
|
369
|
+
"markdown": {
|
|
370
|
+
"type": "object",
|
|
371
|
+
"properties": {
|
|
372
|
+
"tables": {
|
|
373
|
+
"type": "string",
|
|
374
|
+
"enum": [
|
|
375
|
+
"off",
|
|
376
|
+
"bullets",
|
|
377
|
+
"code",
|
|
378
|
+
"block"
|
|
379
|
+
]
|
|
380
|
+
}
|
|
381
|
+
},
|
|
382
|
+
"additionalProperties": false
|
|
383
|
+
},
|
|
384
|
+
"relayUrl": {
|
|
385
|
+
"allOf": [
|
|
386
|
+
{
|
|
387
|
+
"type": "string",
|
|
388
|
+
"format": "uri"
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
"type": "string",
|
|
392
|
+
"pattern": "^[wW][sS][sS]?:\\/\\/"
|
|
393
|
+
}
|
|
394
|
+
]
|
|
395
|
+
},
|
|
396
|
+
"privateKey": {
|
|
397
|
+
"anyOf": [
|
|
398
|
+
{
|
|
399
|
+
"type": "string"
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
"oneOf": [
|
|
403
|
+
{
|
|
404
|
+
"type": "object",
|
|
405
|
+
"properties": {
|
|
406
|
+
"source": {
|
|
407
|
+
"type": "string",
|
|
408
|
+
"const": "env"
|
|
409
|
+
},
|
|
410
|
+
"provider": {
|
|
411
|
+
"type": "string",
|
|
412
|
+
"pattern": "^[a-z][a-z0-9_-]{0,63}$"
|
|
413
|
+
},
|
|
414
|
+
"id": {
|
|
415
|
+
"type": "string",
|
|
416
|
+
"pattern": "^[A-Z][A-Z0-9_]{0,127}$"
|
|
417
|
+
}
|
|
418
|
+
},
|
|
419
|
+
"required": [
|
|
420
|
+
"source",
|
|
421
|
+
"provider",
|
|
422
|
+
"id"
|
|
423
|
+
],
|
|
424
|
+
"additionalProperties": false
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
"type": "object",
|
|
428
|
+
"properties": {
|
|
429
|
+
"source": {
|
|
430
|
+
"type": "string",
|
|
431
|
+
"const": "store"
|
|
432
|
+
},
|
|
433
|
+
"provider": {
|
|
434
|
+
"type": "string",
|
|
435
|
+
"pattern": "^[a-z][a-z0-9_-]{0,63}$"
|
|
436
|
+
},
|
|
437
|
+
"id": {
|
|
438
|
+
"type": "string",
|
|
439
|
+
"pattern": "^[A-Z][A-Z0-9_]{0,127}$"
|
|
440
|
+
}
|
|
441
|
+
},
|
|
442
|
+
"required": [
|
|
443
|
+
"source",
|
|
444
|
+
"provider",
|
|
445
|
+
"id"
|
|
446
|
+
],
|
|
447
|
+
"additionalProperties": false
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
"type": "object",
|
|
451
|
+
"properties": {
|
|
452
|
+
"source": {
|
|
453
|
+
"type": "string",
|
|
454
|
+
"const": "file"
|
|
455
|
+
},
|
|
456
|
+
"provider": {
|
|
457
|
+
"type": "string",
|
|
458
|
+
"pattern": "^[a-z][a-z0-9_-]{0,63}$"
|
|
459
|
+
},
|
|
460
|
+
"id": {
|
|
461
|
+
"type": "string"
|
|
462
|
+
}
|
|
463
|
+
},
|
|
464
|
+
"required": [
|
|
465
|
+
"source",
|
|
466
|
+
"provider",
|
|
467
|
+
"id"
|
|
468
|
+
],
|
|
469
|
+
"additionalProperties": false
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
"type": "object",
|
|
473
|
+
"properties": {
|
|
474
|
+
"source": {
|
|
475
|
+
"type": "string",
|
|
476
|
+
"const": "exec"
|
|
477
|
+
},
|
|
478
|
+
"provider": {
|
|
479
|
+
"type": "string",
|
|
480
|
+
"pattern": "^[a-z][a-z0-9_-]{0,63}$"
|
|
481
|
+
},
|
|
482
|
+
"id": {
|
|
483
|
+
"type": "string"
|
|
484
|
+
}
|
|
485
|
+
},
|
|
486
|
+
"required": [
|
|
487
|
+
"source",
|
|
488
|
+
"provider",
|
|
489
|
+
"id"
|
|
490
|
+
],
|
|
491
|
+
"additionalProperties": false
|
|
492
|
+
}
|
|
493
|
+
]
|
|
494
|
+
}
|
|
495
|
+
]
|
|
496
|
+
},
|
|
497
|
+
"authTag": {
|
|
498
|
+
"anyOf": [
|
|
499
|
+
{
|
|
500
|
+
"type": "string"
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
"oneOf": [
|
|
504
|
+
{
|
|
505
|
+
"type": "object",
|
|
506
|
+
"properties": {
|
|
507
|
+
"source": {
|
|
508
|
+
"type": "string",
|
|
509
|
+
"const": "env"
|
|
510
|
+
},
|
|
511
|
+
"provider": {
|
|
512
|
+
"type": "string",
|
|
513
|
+
"pattern": "^[a-z][a-z0-9_-]{0,63}$"
|
|
514
|
+
},
|
|
515
|
+
"id": {
|
|
516
|
+
"type": "string",
|
|
517
|
+
"pattern": "^[A-Z][A-Z0-9_]{0,127}$"
|
|
518
|
+
}
|
|
519
|
+
},
|
|
520
|
+
"required": [
|
|
521
|
+
"source",
|
|
522
|
+
"provider",
|
|
523
|
+
"id"
|
|
524
|
+
],
|
|
525
|
+
"additionalProperties": false
|
|
526
|
+
},
|
|
527
|
+
{
|
|
528
|
+
"type": "object",
|
|
529
|
+
"properties": {
|
|
530
|
+
"source": {
|
|
531
|
+
"type": "string",
|
|
532
|
+
"const": "store"
|
|
533
|
+
},
|
|
534
|
+
"provider": {
|
|
535
|
+
"type": "string",
|
|
536
|
+
"pattern": "^[a-z][a-z0-9_-]{0,63}$"
|
|
537
|
+
},
|
|
538
|
+
"id": {
|
|
539
|
+
"type": "string",
|
|
540
|
+
"pattern": "^[A-Z][A-Z0-9_]{0,127}$"
|
|
541
|
+
}
|
|
542
|
+
},
|
|
543
|
+
"required": [
|
|
544
|
+
"source",
|
|
545
|
+
"provider",
|
|
546
|
+
"id"
|
|
547
|
+
],
|
|
548
|
+
"additionalProperties": false
|
|
549
|
+
},
|
|
550
|
+
{
|
|
551
|
+
"type": "object",
|
|
552
|
+
"properties": {
|
|
553
|
+
"source": {
|
|
554
|
+
"type": "string",
|
|
555
|
+
"const": "file"
|
|
556
|
+
},
|
|
557
|
+
"provider": {
|
|
558
|
+
"type": "string",
|
|
559
|
+
"pattern": "^[a-z][a-z0-9_-]{0,63}$"
|
|
560
|
+
},
|
|
561
|
+
"id": {
|
|
562
|
+
"type": "string"
|
|
563
|
+
}
|
|
564
|
+
},
|
|
565
|
+
"required": [
|
|
566
|
+
"source",
|
|
567
|
+
"provider",
|
|
568
|
+
"id"
|
|
569
|
+
],
|
|
570
|
+
"additionalProperties": false
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
"type": "object",
|
|
574
|
+
"properties": {
|
|
575
|
+
"source": {
|
|
576
|
+
"type": "string",
|
|
577
|
+
"const": "exec"
|
|
578
|
+
},
|
|
579
|
+
"provider": {
|
|
580
|
+
"type": "string",
|
|
581
|
+
"pattern": "^[a-z][a-z0-9_-]{0,63}$"
|
|
582
|
+
},
|
|
583
|
+
"id": {
|
|
584
|
+
"type": "string"
|
|
585
|
+
}
|
|
586
|
+
},
|
|
587
|
+
"required": [
|
|
588
|
+
"source",
|
|
589
|
+
"provider",
|
|
590
|
+
"id"
|
|
591
|
+
],
|
|
592
|
+
"additionalProperties": false
|
|
593
|
+
}
|
|
594
|
+
]
|
|
595
|
+
}
|
|
596
|
+
]
|
|
597
|
+
},
|
|
598
|
+
"groupPolicy": {
|
|
599
|
+
"type": "string",
|
|
600
|
+
"enum": [
|
|
601
|
+
"open",
|
|
602
|
+
"disabled",
|
|
603
|
+
"allowlist"
|
|
604
|
+
]
|
|
605
|
+
},
|
|
606
|
+
"groupAllowFrom": {
|
|
607
|
+
"type": "array",
|
|
608
|
+
"items": {
|
|
609
|
+
"anyOf": [
|
|
610
|
+
{
|
|
611
|
+
"type": "string"
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
"type": "number"
|
|
615
|
+
}
|
|
616
|
+
]
|
|
617
|
+
}
|
|
618
|
+
},
|
|
619
|
+
"groups": {
|
|
620
|
+
"type": "object",
|
|
621
|
+
"propertyNames": {
|
|
622
|
+
"type": "string",
|
|
623
|
+
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89aAbB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
|
|
624
|
+
},
|
|
625
|
+
"additionalProperties": {
|
|
626
|
+
"type": "object",
|
|
627
|
+
"properties": {
|
|
628
|
+
"enabled": {
|
|
629
|
+
"type": "boolean"
|
|
630
|
+
},
|
|
631
|
+
"requireMention": {
|
|
632
|
+
"type": "boolean"
|
|
633
|
+
},
|
|
634
|
+
"groupPolicy": {
|
|
635
|
+
"type": "string",
|
|
636
|
+
"enum": [
|
|
637
|
+
"open",
|
|
638
|
+
"disabled",
|
|
639
|
+
"allowlist"
|
|
640
|
+
]
|
|
641
|
+
},
|
|
642
|
+
"groupAllowFrom": {
|
|
643
|
+
"type": "array",
|
|
644
|
+
"items": {
|
|
645
|
+
"anyOf": [
|
|
646
|
+
{
|
|
647
|
+
"type": "string"
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
"type": "number"
|
|
651
|
+
}
|
|
652
|
+
]
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
},
|
|
656
|
+
"additionalProperties": false
|
|
657
|
+
}
|
|
658
|
+
},
|
|
659
|
+
"historyLimit": {
|
|
660
|
+
"type": "integer",
|
|
661
|
+
"minimum": 0,
|
|
662
|
+
"maximum": 20
|
|
663
|
+
},
|
|
664
|
+
"defaultTo": {
|
|
665
|
+
"type": "string"
|
|
666
|
+
}
|
|
667
|
+
},
|
|
668
|
+
"additionalProperties": false
|
|
669
|
+
}
|
|
670
|
+
},
|
|
671
|
+
"defaultAccount": {
|
|
672
|
+
"type": "string",
|
|
673
|
+
"pattern": "^(?!(?:constructor|prototype)$)[a-z0-9][a-z0-9_-]{0,63}$"
|
|
328
674
|
}
|
|
329
675
|
},
|
|
330
676
|
"required": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/buzz",
|
|
3
|
-
"version": "2026.9.
|
|
3
|
+
"version": "2026.9.2",
|
|
4
4
|
"description": "Connect OpenClaw agents to Buzz rooms",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
},
|
|
9
9
|
"type": "module",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"nostr-tools": "2.
|
|
11
|
+
"nostr-tools": "2.25.0",
|
|
12
12
|
"zod": "4.4.3"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"openclaw": ">=2026.9.
|
|
15
|
+
"openclaw": ">=2026.9.2"
|
|
16
16
|
},
|
|
17
17
|
"peerDependenciesMeta": {
|
|
18
18
|
"openclaw": {
|
|
@@ -24,6 +24,9 @@
|
|
|
24
24
|
"./index.ts"
|
|
25
25
|
],
|
|
26
26
|
"setupEntry": "./dist/setup-entry.js",
|
|
27
|
+
"setupFeatures": {
|
|
28
|
+
"configPromotion": "preserve-root"
|
|
29
|
+
},
|
|
27
30
|
"channel": {
|
|
28
31
|
"id": "buzz",
|
|
29
32
|
"configuredState": {
|
|
@@ -81,10 +84,10 @@
|
|
|
81
84
|
"minHostVersion": ">=2026.7.2"
|
|
82
85
|
},
|
|
83
86
|
"compat": {
|
|
84
|
-
"pluginApi": ">=2026.9.
|
|
87
|
+
"pluginApi": ">=2026.9.2"
|
|
85
88
|
},
|
|
86
89
|
"build": {
|
|
87
|
-
"openclawVersion": "2026.9.
|
|
90
|
+
"openclawVersion": "2026.9.2"
|
|
88
91
|
},
|
|
89
92
|
"release": {
|
|
90
93
|
"publishToClawHub": true,
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { createSimpleChannelSecretContract } from "openclaw/plugin-sdk/channel-secret-basic-runtime";
|
|
2
|
-
//#region extensions/buzz/src/secret-contract.ts
|
|
3
|
-
const channelSecrets = createSimpleChannelSecretContract({
|
|
4
|
-
channelKey: "buzz",
|
|
5
|
-
label: "Buzz",
|
|
6
|
-
accountFields: [],
|
|
7
|
-
channelFields: ["privateKey", "authTag"],
|
|
8
|
-
mode: "channel-surface"
|
|
9
|
-
});
|
|
10
|
-
const { secretTargetRegistryEntries, collectRuntimeConfigAssignments } = channelSecrets;
|
|
11
|
-
//#endregion
|
|
12
|
-
export { collectRuntimeConfigAssignments as n, secretTargetRegistryEntries as r, channelSecrets as t };
|