@openclaw/nostr 2026.3.8-beta.1 → 2026.3.11

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 CHANGED
@@ -1,5 +1,22 @@
1
1
  # Changelog
2
2
 
3
+ ## 2026.3.11
4
+
5
+ ### Changes
6
+ - Version alignment with core OpenClaw release numbers.
7
+
8
+ ## 2026.3.10
9
+
10
+ ### Changes
11
+
12
+ - Version alignment with core OpenClaw release numbers.
13
+
14
+ ## 2026.3.9
15
+
16
+ ### Changes
17
+
18
+ - Version alignment with core OpenClaw release numbers.
19
+
3
20
  ## 2026.3.8-beta.1
4
21
 
5
22
  ### Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/nostr",
3
- "version": "2026.3.8-beta.1",
3
+ "version": "2026.3.11",
4
4
  "description": "OpenClaw Nostr channel plugin for NIP-04 encrypted DMs",
5
5
  "type": "module",
6
6
  "dependencies": {
@@ -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: z.enum(["pairing", "allowlist", "open", "disabled"]).optional(),
78
+ dmPolicy: DmPolicySchema.optional(),
80
79
 
81
80
  /** Allowed sender pubkeys (npub or hex format) */
82
- allowFrom: z.array(allowFromEntry).optional(),
81
+ allowFrom: AllowFromListSchema,
83
82
 
84
83
  /** Profile metadata (NIP-01 kind:0 content) */
85
84
  profile: NostrProfileSchema.optional(),