@openclaw/nostr 2026.5.24-beta.2 → 2026.5.25-beta.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 CHANGED
@@ -1,10 +1,10 @@
1
- import { o as resolveNostrAccount } from "./setup-surface-DasBv0H6.js";
1
+ import { o as resolveNostrAccount } from "./setup-surface-CVEYWXAG.js";
2
2
  import { getPluginRuntimeGatewayRequestScope } from "./runtime-api.js";
3
3
  import { n as NostrProfileSchema } from "./config-schema-DIiXiBKr.js";
4
- import { a as setNostrRuntime, i as getNostrRuntime, n as nostrPlugin, o as contentToProfile, r as publishNostrProfile, t as getNostrProfileState } from "./channel-CLtuqldV.js";
4
+ import { a as setNostrRuntime, i as getNostrRuntime, n as nostrPlugin, o as contentToProfile, r as publishNostrProfile, t as getNostrProfileState } from "./channel-qOW3h_i7.js";
5
+ import { normalizeLowercaseStringOrEmpty, normalizeOptionalLowercaseString, readStringValue } from "openclaw/plugin-sdk/string-coerce-runtime";
5
6
  import { z } from "zod";
6
7
  import { SimplePool, verifyEvent } from "nostr-tools";
7
- import { normalizeLowercaseStringOrEmpty, normalizeOptionalLowercaseString, readStringValue } from "openclaw/plugin-sdk/string-coerce-runtime";
8
8
  import { readJsonBodyWithLimit, requestBodyErrorToText } from "openclaw/plugin-sdk/webhook-request-guards";
9
9
  import { createFixedWindowRateLimiter } from "openclaw/plugin-sdk/webhook-ingress";
10
10
  import { isBlockedHostnameOrIp } from "openclaw/plugin-sdk/ssrf-runtime";
@@ -1,2 +1,2 @@
1
- import { n as nostrPlugin } from "./channel-CLtuqldV.js";
1
+ import { n as nostrPlugin } from "./channel-qOW3h_i7.js";
2
2
  export { nostrPlugin };
@@ -1,12 +1,13 @@
1
- import { a as resolveDefaultNostrAccountId, c as validatePrivateKey, i as listNostrAccountIds, n as nostrSetupWizard, o as resolveNostrAccount, s as normalizePubkey, t as nostrSetupAdapter } from "./setup-surface-DasBv0H6.js";
1
+ import { a as resolveDefaultNostrAccountId, c as validatePrivateKey, i as listNostrAccountIds, n as nostrSetupWizard, o as resolveNostrAccount, s as normalizePubkey, t as nostrSetupAdapter } from "./setup-surface-CVEYWXAG.js";
2
2
  import { a as collectStatusIssuesFromLastError, i as buildChannelConfigSchema, n as NostrProfileSchema, o as createDefaultChannelRuntimeState, r as DEFAULT_ACCOUNT_ID, s as formatPairingApproveHint, t as NostrConfigSchema } from "./config-schema-DIiXiBKr.js";
3
- import { i as DEFAULT_RELAYS } from "./setup-adapter-DHjtTdO5.js";
3
+ import { i as DEFAULT_RELAYS } from "./setup-adapter-DEU3o8MF.js";
4
4
  import { describeAccountSnapshot } from "openclaw/plugin-sdk/account-helpers";
5
5
  import { createScopedDmSecurityResolver, createTopLevelChannelConfigAdapter } from "openclaw/plugin-sdk/channel-config-helpers";
6
6
  import { createChatChannelPlugin } from "openclaw/plugin-sdk/channel-core";
7
7
  import { createChannelMessageAdapterFromOutbound } from "openclaw/plugin-sdk/channel-message";
8
8
  import { buildPassiveChannelStatusSummary, buildTrafficStatusSummary, safeParseJsonWithSchema } from "openclaw/plugin-sdk/extension-shared";
9
9
  import { createComputedAccountStatusAdapter } from "openclaw/plugin-sdk/status-helpers";
10
+ import { normalizeStringEntries } from "openclaw/plugin-sdk/string-coerce-runtime";
10
11
  import { z } from "zod";
11
12
  import { resolveStableChannelMessageIngress } from "openclaw/plugin-sdk/channel-ingress-runtime";
12
13
  import { createChannelPairingController } from "openclaw/plugin-sdk/channel-pairing";
@@ -1356,7 +1357,7 @@ const nostrConfigAdapter = createTopLevelChannelConfigAdapter({
1356
1357
  "profile"
1357
1358
  ],
1358
1359
  resolveAllowFrom: (account) => account.config.allowFrom,
1359
- formatAllowFrom: (allowFrom) => allowFrom.map((entry) => String(entry).trim()).filter(Boolean).map((entry) => {
1360
+ formatAllowFrom: (allowFrom) => normalizeStringEntries(allowFrom).map((entry) => {
1360
1361
  if (entry === "*") return "*";
1361
1362
  try {
1362
1363
  return normalizePubkey(entry);
@@ -1,3 +1,4 @@
1
+ import { uniqueStrings } from "openclaw/plugin-sdk/string-coerce-runtime";
1
2
  import { DEFAULT_ACCOUNT_ID } from "openclaw/plugin-sdk/routing";
2
3
  import { patchTopLevelChannelConfigSection, splitSetupEntries } from "openclaw/plugin-sdk/setup";
3
4
  //#region extensions/nostr/src/default-relays.ts
@@ -28,7 +29,7 @@ function parseRelayUrls(raw) {
28
29
  }
29
30
  relays.push(entry);
30
31
  }
31
- return { relays: [...new Set(relays)] };
32
+ return { relays: uniqueStrings(relays) };
32
33
  }
33
34
  function createNostrSetupAdapter(params) {
34
35
  return {
package/dist/setup-api.js CHANGED
@@ -1,2 +1,2 @@
1
- import { n as nostrSetupWizard, t as nostrSetupAdapter } from "./setup-surface-DasBv0H6.js";
1
+ import { n as nostrSetupWizard, t as nostrSetupAdapter } from "./setup-surface-CVEYWXAG.js";
2
2
  export { nostrSetupAdapter, nostrSetupWizard };
@@ -1,5 +1,5 @@
1
1
  import { i as buildChannelConfigSchema, t as NostrConfigSchema } from "./config-schema-DIiXiBKr.js";
2
- import { i as DEFAULT_RELAYS, n as createNostrSetupAdapter } from "./setup-adapter-DHjtTdO5.js";
2
+ import { i as DEFAULT_RELAYS, n as createNostrSetupAdapter } from "./setup-adapter-DEU3o8MF.js";
3
3
  import { describeAccountSnapshot } from "openclaw/plugin-sdk/account-helpers";
4
4
  import { DEFAULT_ACCOUNT_ID, createDelegatedSetupWizardProxy, createSetupTranslator, createStandardChannelSetupStatus } from "openclaw/plugin-sdk/setup-runtime";
5
5
  //#region extensions/nostr/src/channel.setup.ts
@@ -51,7 +51,7 @@ const nostrSetupAdapter = createNostrSetupAdapter({
51
51
  });
52
52
  const nostrSetupWizard = createDelegatedSetupWizardProxy({
53
53
  channel,
54
- loadWizard: async () => (await import("./setup-surface-DasBv0H6.js").then((n) => n.r)).nostrSetupWizard,
54
+ loadWizard: async () => (await import("./setup-surface-CVEYWXAG.js").then((n) => n.r)).nostrSetupWizard,
55
55
  status: { ...createStandardChannelSetupStatus({
56
56
  channelLabel: "Nostr",
57
57
  configuredLabel: t("wizard.channels.statusConfigured"),
@@ -1,9 +1,9 @@
1
- import { i as DEFAULT_RELAYS, n as createNostrSetupAdapter, r as parseRelayUrls, t as buildNostrSetupPatch } from "./setup-adapter-DHjtTdO5.js";
1
+ import { i as DEFAULT_RELAYS, n as createNostrSetupAdapter, r as parseRelayUrls, t as buildNostrSetupPatch } from "./setup-adapter-DEU3o8MF.js";
2
+ import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
2
3
  import { hasConfiguredSecretInput, normalizeSecretInputString } from "openclaw/plugin-sdk/secret-input";
3
4
  import { getPublicKey, nip19 } from "nostr-tools";
4
5
  import { DEFAULT_ACCOUNT_ID, normalizeAccountId, normalizeOptionalAccountId } from "openclaw/plugin-sdk/account-id";
5
6
  import { listCombinedAccountIds, resolveListedDefaultAccountId } from "openclaw/plugin-sdk/account-resolution";
6
- import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
7
7
  import { DEFAULT_ACCOUNT_ID as DEFAULT_ACCOUNT_ID$1 } from "openclaw/plugin-sdk/routing";
8
8
  import { createSetupTranslator, createStandardChannelSetupStatus, createTopLevelChannelDmPolicy, createTopLevelChannelParsedAllowFromPrompt, formatDocsLink, mergeAllowFromEntries, parseSetupEntriesWithParser, patchTopLevelChannelConfigSection } from "openclaw/plugin-sdk/setup";
9
9
  //#region \0rolldown/runtime.js
package/dist/test-api.js CHANGED
@@ -1,2 +1,2 @@
1
- import { n as nostrPlugin } from "./channel-CLtuqldV.js";
1
+ import { n as nostrPlugin } from "./channel-qOW3h_i7.js";
2
2
  export { nostrPlugin };
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@openclaw/nostr",
3
- "version": "2026.5.24-beta.2",
3
+ "version": "2026.5.25-beta.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@openclaw/nostr",
9
- "version": "2026.5.24-beta.2",
9
+ "version": "2026.5.25-beta.1",
10
10
  "dependencies": {
11
11
  "nostr-tools": "2.23.5",
12
12
  "zod": "4.4.3"
13
13
  },
14
14
  "peerDependencies": {
15
- "openclaw": ">=2026.5.24-beta.2"
15
+ "openclaw": ">=2026.5.25-beta.1"
16
16
  },
17
17
  "peerDependenciesMeta": {
18
18
  "openclaw": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/nostr",
3
- "version": "2026.5.24-beta.2",
3
+ "version": "2026.5.25-beta.1",
4
4
  "description": "OpenClaw Nostr channel plugin for NIP-04 encrypted DMs",
5
5
  "repository": {
6
6
  "type": "git",
@@ -12,7 +12,7 @@
12
12
  "zod": "4.4.3"
13
13
  },
14
14
  "peerDependencies": {
15
- "openclaw": ">=2026.5.24-beta.2"
15
+ "openclaw": ">=2026.5.25-beta.1"
16
16
  },
17
17
  "peerDependenciesMeta": {
18
18
  "openclaw": {
@@ -50,10 +50,10 @@
50
50
  "minHostVersion": ">=2026.4.10"
51
51
  },
52
52
  "compat": {
53
- "pluginApi": ">=2026.5.24-beta.2"
53
+ "pluginApi": ">=2026.5.25-beta.1"
54
54
  },
55
55
  "build": {
56
- "openclawVersion": "2026.5.24-beta.2"
56
+ "openclawVersion": "2026.5.25-beta.1"
57
57
  },
58
58
  "release": {
59
59
  "publishToClawHub": true,