@openclaw/nostr 2026.7.2-beta.4 → 2026.7.2-beta.5

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,7 +1,7 @@
1
- import { s as resolveNostrAccount } from "./setup-surface-ChtM-WSY.js";
1
+ import { s as resolveNostrAccount } from "./setup-surface-BJCFpe02.js";
2
2
  import { getPluginRuntimeGatewayRequestScope } from "./runtime-api.js";
3
3
  import { n as NostrProfileSchema } from "./config-schema-CelPzg1N.js";
4
- import { a as getNostrRuntime, i as contentToProfile, n as nostrPlugin, o as setNostrRuntime, r as publishNostrProfile, t as getNostrProfileState } from "./channel-DqbdMXMg.js";
4
+ import { a as getNostrRuntime, i as contentToProfile, n as nostrPlugin, o as setNostrRuntime, r as publishNostrProfile, t as getNostrProfileState } from "./channel-DNeI-LB-.js";
5
5
  import { normalizeLowercaseStringOrEmpty, normalizeOptionalLowercaseString, readStringValue } from "openclaw/plugin-sdk/string-coerce-runtime";
6
6
  import { z } from "zod";
7
7
  import { SimplePool } from "nostr-tools";
@@ -1,4 +1,4 @@
1
- import { a as listNostrAccountIds, c as normalizePubkey, l as validatePrivateKey, n as nostrSetupContract, o as resolveDefaultNostrAccountId, r as nostrSetupWizard, s as resolveNostrAccount, t as nostrSetupAdapter } from "./setup-surface-ChtM-WSY.js";
1
+ import { a as listNostrAccountIds, c as normalizePubkey, l as validatePrivateKey, n as nostrSetupContract, o as resolveDefaultNostrAccountId, r as nostrSetupWizard, s as resolveNostrAccount, t as nostrSetupAdapter } from "./setup-surface-BJCFpe02.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-CelPzg1N.js";
3
3
  import { a as DEFAULT_RELAYS } from "./setup-adapter-BjKmSwdW.js";
4
4
  import { t as normalizeNostrStateAccountId } from "./state-account-id-CvBZ9s6P.js";
@@ -1,2 +1,2 @@
1
- import { n as nostrPlugin } from "./channel-DqbdMXMg.js";
1
+ import { n as nostrPlugin } from "./channel-DNeI-LB-.js";
2
2
  export { nostrPlugin };
package/dist/setup-api.js CHANGED
@@ -1,2 +1,2 @@
1
- import { r as nostrSetupWizard, t as nostrSetupAdapter } from "./setup-surface-ChtM-WSY.js";
1
+ import { r as nostrSetupWizard, t as nostrSetupAdapter } from "./setup-surface-BJCFpe02.js";
2
2
  export { nostrSetupAdapter, nostrSetupWizard };
@@ -52,7 +52,7 @@ const nostrSetupAdapter = createNostrSetupAdapter({
52
52
  const nostrSetupContract = createNostrSetupContract(nostrSetupAdapter);
53
53
  const nostrSetupWizard = createDelegatedSetupWizardProxy({
54
54
  channel,
55
- loadWizard: async () => (await import("./setup-surface-ChtM-WSY.js").then((n) => n.i)).nostrSetupWizard,
55
+ loadWizard: async () => (await import("./setup-surface-BJCFpe02.js").then((n) => n.i)).nostrSetupWizard,
56
56
  status: { ...createStandardChannelSetupStatus({
57
57
  channelLabel: "Nostr",
58
58
  configuredLabel: t("wizard.channels.statusConfigured"),
@@ -1,9 +1,9 @@
1
1
  import { a as DEFAULT_RELAYS, i as parseRelayUrls, n as createNostrSetupAdapter, r as createNostrSetupContract, t as buildNostrSetupPatch } from "./setup-adapter-BjKmSwdW.js";
2
+ import { createAccountListHelpers } from "openclaw/plugin-sdk/account-helpers";
2
3
  import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
3
4
  import { hasConfiguredSecretInput, normalizeSecretInputString } from "openclaw/plugin-sdk/secret-input";
4
5
  import { getPublicKey, nip19 } from "nostr-tools";
5
6
  import { DEFAULT_ACCOUNT_ID, normalizeAccountId, normalizeOptionalAccountId } from "openclaw/plugin-sdk/account-id";
6
- import { listCombinedAccountIds, resolveListedDefaultAccountId } from "openclaw/plugin-sdk/account-resolution";
7
7
  import { DEFAULT_ACCOUNT_ID as DEFAULT_ACCOUNT_ID$1 } from "openclaw/plugin-sdk/routing";
8
8
  import { createSetupTranslator, createStandardChannelSetupStatus, createTopLevelChannelDmPolicy, createTopLevelChannelParsedAllowFromPrompt, defineTokenCredential, formatDocsLink, mergeAllowFromEntries, parseSetupEntriesWithParser, patchTopLevelChannelConfigSection, setSetupChannelEnabled } from "openclaw/plugin-sdk/setup";
9
9
  //#region \0rolldown/runtime.js
@@ -55,29 +55,13 @@ function normalizePubkey(input) {
55
55
  }
56
56
  //#endregion
57
57
  //#region extensions/nostr/src/types.ts
58
- function resolveConfiguredDefaultNostrAccountId(cfg) {
59
- const nostrCfg = cfg.channels?.nostr;
60
- return normalizeOptionalAccountId(nostrCfg?.defaultAccount);
61
- }
62
- /**
63
- * List all configured Nostr account IDs
64
- */
65
- function listNostrAccountIds(cfg) {
66
- const nostrCfg = cfg.channels?.nostr;
67
- return listCombinedAccountIds({
68
- configuredAccountIds: [],
69
- implicitAccountId: normalizeSecretInputString(nostrCfg?.privateKey) ? resolveConfiguredDefaultNostrAccountId(cfg) ?? DEFAULT_ACCOUNT_ID : void 0
70
- });
71
- }
72
- /**
73
- * Get the default account ID
74
- */
75
- function resolveDefaultNostrAccountId(cfg) {
76
- return resolveListedDefaultAccountId({
77
- accountIds: listNostrAccountIds(cfg),
78
- configuredDefaultAccountId: resolveConfiguredDefaultNostrAccountId(cfg)
79
- });
80
- }
58
+ const { listAccountIds: listNostrAccountIds, resolveDefaultAccountId: resolveDefaultNostrAccountId } = createAccountListHelpers("nostr", {
59
+ fallbackAccountIdWhenEmpty: false,
60
+ resolveImplicitAccountId: (cfg) => {
61
+ const account = cfg.channels?.nostr;
62
+ return normalizeSecretInputString(account?.privateKey) ? normalizeOptionalAccountId(account?.defaultAccount) ?? DEFAULT_ACCOUNT_ID : void 0;
63
+ }
64
+ });
81
65
  /**
82
66
  * Resolve a Nostr account from config
83
67
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/nostr",
3
- "version": "2026.7.2-beta.4",
3
+ "version": "2026.7.2-beta.5",
4
4
  "description": "OpenClaw Nostr channel plugin for NIP-04 encrypted direct messages.",
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.7.2-beta.4"
15
+ "openclaw": ">=2026.7.2-beta.5"
16
16
  },
17
17
  "peerDependenciesMeta": {
18
18
  "openclaw": {
@@ -76,10 +76,10 @@
76
76
  "minHostVersion": ">=2026.4.10"
77
77
  },
78
78
  "compat": {
79
- "pluginApi": ">=2026.7.2-beta.4"
79
+ "pluginApi": ">=2026.7.2-beta.5"
80
80
  },
81
81
  "build": {
82
- "openclawVersion": "2026.7.2-beta.4"
82
+ "openclawVersion": "2026.7.2-beta.5"
83
83
  },
84
84
  "release": {
85
85
  "publishToClawHub": true,
@@ -93,7 +93,6 @@
93
93
  "files": [
94
94
  "dist/**",
95
95
  "openclaw.plugin.json",
96
- "npm-shrinkwrap.json",
97
96
  "README.md"
98
97
  ],
99
98
  "bundledDependencies": [
@@ -1,137 +0,0 @@
1
- {
2
- "name": "@openclaw/nostr",
3
- "version": "2026.7.2-beta.4",
4
- "lockfileVersion": 3,
5
- "requires": true,
6
- "packages": {
7
- "": {
8
- "name": "@openclaw/nostr",
9
- "version": "2026.7.2-beta.4",
10
- "dependencies": {
11
- "nostr-tools": "2.23.12",
12
- "zod": "4.4.3"
13
- },
14
- "peerDependencies": {
15
- "openclaw": ">=2026.7.2-beta.4"
16
- },
17
- "peerDependenciesMeta": {
18
- "openclaw": {
19
- "optional": true
20
- }
21
- }
22
- },
23
- "node_modules/@noble/ciphers": {
24
- "version": "2.1.1",
25
- "resolved": "https://registry.npmjs.org/@noble/ciphers/-/ciphers-2.1.1.tgz",
26
- "integrity": "sha512-bysYuiVfhxNJuldNXlFEitTVdNnYUc+XNJZd7Qm2a5j1vZHgY+fazadNFWFaMK/2vye0JVlxV3gHmC0WDfAOQw==",
27
- "license": "MIT",
28
- "engines": {
29
- "node": ">= 20.19.0"
30
- },
31
- "funding": {
32
- "url": "https://paulmillr.com/funding/"
33
- }
34
- },
35
- "node_modules/@noble/curves": {
36
- "version": "2.0.1",
37
- "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-2.0.1.tgz",
38
- "integrity": "sha512-vs1Az2OOTBiP4q0pwjW5aF0xp9n4MxVrmkFBxc6EKZc6ddYx5gaZiAsZoq0uRRXWbi3AT/sBqn05eRPtn1JCPw==",
39
- "license": "MIT",
40
- "dependencies": {
41
- "@noble/hashes": "2.0.1"
42
- },
43
- "engines": {
44
- "node": ">= 20.19.0"
45
- },
46
- "funding": {
47
- "url": "https://paulmillr.com/funding/"
48
- }
49
- },
50
- "node_modules/@noble/hashes": {
51
- "version": "2.0.1",
52
- "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-2.0.1.tgz",
53
- "integrity": "sha512-XlOlEbQcE9fmuXxrVTXCTlG2nlRXa9Rj3rr5Ue/+tX+nmkgbX720YHh0VR3hBF9xDvwnb8D2shVGOwNx+ulArw==",
54
- "license": "MIT",
55
- "engines": {
56
- "node": ">= 20.19.0"
57
- },
58
- "funding": {
59
- "url": "https://paulmillr.com/funding/"
60
- }
61
- },
62
- "node_modules/@scure/base": {
63
- "version": "2.0.0",
64
- "resolved": "https://registry.npmjs.org/@scure/base/-/base-2.0.0.tgz",
65
- "integrity": "sha512-3E1kpuZginKkek01ovG8krQ0Z44E3DHPjc5S2rjJw9lZn3KSQOs8S7wqikF/AH7iRanHypj85uGyxk0XAyC37w==",
66
- "license": "MIT",
67
- "funding": {
68
- "url": "https://paulmillr.com/funding/"
69
- }
70
- },
71
- "node_modules/@scure/bip32": {
72
- "version": "2.0.1",
73
- "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-2.0.1.tgz",
74
- "integrity": "sha512-4Md1NI5BzoVP+bhyJaY3K6yMesEFzNS1sE/cP+9nuvE7p/b0kx9XbpDHHFl8dHtufcbdHRUUQdRqLIPHN/s7yA==",
75
- "license": "MIT",
76
- "dependencies": {
77
- "@noble/curves": "2.0.1",
78
- "@noble/hashes": "2.0.1",
79
- "@scure/base": "2.0.0"
80
- },
81
- "funding": {
82
- "url": "https://paulmillr.com/funding/"
83
- }
84
- },
85
- "node_modules/@scure/bip39": {
86
- "version": "2.0.1",
87
- "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-2.0.1.tgz",
88
- "integrity": "sha512-PsxdFj/d2AcJcZDX1FXN3dDgitDDTmwf78rKZq1a6c1P1Nan1X/Sxc7667zU3U+AN60g7SxxP0YCVw2H/hBycg==",
89
- "license": "MIT",
90
- "dependencies": {
91
- "@noble/hashes": "2.0.1",
92
- "@scure/base": "2.0.0"
93
- },
94
- "funding": {
95
- "url": "https://paulmillr.com/funding/"
96
- }
97
- },
98
- "node_modules/nostr-tools": {
99
- "version": "2.23.12",
100
- "resolved": "https://registry.npmjs.org/nostr-tools/-/nostr-tools-2.23.12.tgz",
101
- "integrity": "sha512-dLE9r0b4pCmrOKLUPD0KhUj9IXeh6RwiYoonEWeBh2AaDmlczUjJqJC8pQfggXzKUZ7+uZvhcrKkfwuZk0/e1g==",
102
- "license": "Unlicense",
103
- "dependencies": {
104
- "@noble/ciphers": "2.1.1",
105
- "@noble/curves": "2.0.1",
106
- "@noble/hashes": "2.0.1",
107
- "@scure/base": "2.0.0",
108
- "@scure/bip32": "2.0.1",
109
- "@scure/bip39": "2.0.1",
110
- "nostr-wasm": "0.1.0"
111
- },
112
- "peerDependencies": {
113
- "typescript": ">=5.0.0"
114
- },
115
- "peerDependenciesMeta": {
116
- "typescript": {
117
- "optional": true
118
- }
119
- }
120
- },
121
- "node_modules/nostr-wasm": {
122
- "version": "0.1.0",
123
- "resolved": "https://registry.npmjs.org/nostr-wasm/-/nostr-wasm-0.1.0.tgz",
124
- "integrity": "sha512-78BTryCLcLYv96ONU8Ws3Q1JzjlAt+43pWQhIl86xZmWeegYCNLPml7yQ+gG3vR6V5h4XGj+TxO+SS5dsThQIA==",
125
- "license": "MIT"
126
- },
127
- "node_modules/zod": {
128
- "version": "4.4.3",
129
- "resolved": "https://registry.npmjs.org/zod/-/zod-4.4.3.tgz",
130
- "integrity": "sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ==",
131
- "license": "MIT",
132
- "funding": {
133
- "url": "https://github.com/sponsors/colinhacks"
134
- }
135
- }
136
- }
137
- }