@openclaw/nostr 2026.3.7 → 2026.3.10
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/CHANGELOG.md +24 -0
- package/package.json +6 -1
- package/src/config-schema.ts +3 -4
- package/src/runtime.ts +4 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2026.3.10
|
|
4
|
+
|
|
5
|
+
### Changes
|
|
6
|
+
|
|
7
|
+
- Version alignment with core OpenClaw release numbers.
|
|
8
|
+
|
|
9
|
+
## 2026.3.9
|
|
10
|
+
|
|
11
|
+
### Changes
|
|
12
|
+
|
|
13
|
+
- Version alignment with core OpenClaw release numbers.
|
|
14
|
+
|
|
15
|
+
## 2026.3.8-beta.1
|
|
16
|
+
|
|
17
|
+
### Changes
|
|
18
|
+
|
|
19
|
+
- Version alignment with core OpenClaw release numbers.
|
|
20
|
+
|
|
21
|
+
## 2026.3.8
|
|
22
|
+
|
|
23
|
+
### Changes
|
|
24
|
+
|
|
25
|
+
- Version alignment with core OpenClaw release numbers.
|
|
26
|
+
|
|
3
27
|
## 2026.3.7
|
|
4
28
|
|
|
5
29
|
### Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/nostr",
|
|
3
|
-
"version": "2026.3.
|
|
3
|
+
"version": "2026.3.10",
|
|
4
4
|
"description": "OpenClaw Nostr channel plugin for NIP-04 encrypted DMs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"dependencies": {
|
|
@@ -25,6 +25,11 @@
|
|
|
25
25
|
"npmSpec": "@openclaw/nostr",
|
|
26
26
|
"localPath": "extensions/nostr",
|
|
27
27
|
"defaultChoice": "npm"
|
|
28
|
+
},
|
|
29
|
+
"releaseChecks": {
|
|
30
|
+
"rootDependencyMirrorAllowlist": [
|
|
31
|
+
"nostr-tools"
|
|
32
|
+
]
|
|
28
33
|
}
|
|
29
34
|
}
|
|
30
35
|
}
|
package/src/config-schema.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
+
import { AllowFromListSchema, DmPolicySchema } from "openclaw/plugin-sdk/compat";
|
|
1
2
|
import { MarkdownConfigSchema, buildChannelConfigSchema } from "openclaw/plugin-sdk/nostr";
|
|
2
3
|
import { z } from "zod";
|
|
3
4
|
|
|
4
|
-
const allowFromEntry = z.union([z.string(), z.number()]);
|
|
5
|
-
|
|
6
5
|
/**
|
|
7
6
|
* Validates https:// URLs only (no javascript:, data:, file:, etc.)
|
|
8
7
|
*/
|
|
@@ -76,10 +75,10 @@ export const NostrConfigSchema = z.object({
|
|
|
76
75
|
relays: z.array(z.string()).optional(),
|
|
77
76
|
|
|
78
77
|
/** DM access policy: pairing, allowlist, open, or disabled */
|
|
79
|
-
dmPolicy:
|
|
78
|
+
dmPolicy: DmPolicySchema.optional(),
|
|
80
79
|
|
|
81
80
|
/** Allowed sender pubkeys (npub or hex format) */
|
|
82
|
-
allowFrom:
|
|
81
|
+
allowFrom: AllowFromListSchema,
|
|
83
82
|
|
|
84
83
|
/** Profile metadata (NIP-01 kind:0 content) */
|
|
85
84
|
profile: NostrProfileSchema.optional(),
|
package/src/runtime.ts
CHANGED
|
@@ -1,14 +1,6 @@
|
|
|
1
|
+
import { createPluginRuntimeStore } from "openclaw/plugin-sdk/compat";
|
|
1
2
|
import type { PluginRuntime } from "openclaw/plugin-sdk/nostr";
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export
|
|
6
|
-
runtime = next;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export function getNostrRuntime(): PluginRuntime {
|
|
10
|
-
if (!runtime) {
|
|
11
|
-
throw new Error("Nostr runtime not initialized");
|
|
12
|
-
}
|
|
13
|
-
return runtime;
|
|
14
|
-
}
|
|
4
|
+
const { setRuntime: setNostrRuntime, getRuntime: getNostrRuntime } =
|
|
5
|
+
createPluginRuntimeStore<PluginRuntime>("Nostr runtime not initialized");
|
|
6
|
+
export { getNostrRuntime, setNostrRuntime };
|