@openclaw/nostr 2026.5.10-beta.2 → 2026.5.10-beta.3
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 +5 -5
- package/dist/{channel-BSOktL3g.js → channel-D-oSsY_Z.js} +3 -3
- package/dist/channel-plugin-api.js +1 -1
- package/dist/{config-schema-Clq-vlF1.js → config-schema-TI8Kr8Vn.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/setup-api.js +1 -1
- package/dist/setup-plugin-api.js +2 -2
- package/dist/{setup-surface-DxAaUTyC.js → setup-surface-B5s49fq2.js} +1 -1
- package/dist/test-api.js +1 -1
- package/package.json +6 -5
package/dist/api.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { o as resolveNostrAccount } from "./setup-surface-
|
|
1
|
+
import { o as resolveNostrAccount } from "./setup-surface-B5s49fq2.js";
|
|
2
2
|
import { getPluginRuntimeGatewayRequestScope } from "./runtime-api.js";
|
|
3
|
-
import { n as NostrProfileSchema } from "./config-schema-
|
|
4
|
-
import { a as setNostrRuntime, i as getNostrRuntime, n as nostrPlugin, o as contentToProfile, r as publishNostrProfile, t as getNostrProfileState } from "./channel-
|
|
5
|
-
import { z } from "
|
|
3
|
+
import { n as NostrProfileSchema } from "./config-schema-TI8Kr8Vn.js";
|
|
4
|
+
import { a as setNostrRuntime, i as getNostrRuntime, n as nostrPlugin, o as contentToProfile, r as publishNostrProfile, t as getNostrProfileState } from "./channel-D-oSsY_Z.js";
|
|
5
|
+
import { z } from "zod";
|
|
6
6
|
import { SimplePool, verifyEvent } from "nostr-tools";
|
|
7
|
-
import { normalizeLowercaseStringOrEmpty, normalizeOptionalLowercaseString, readStringValue } from "openclaw/plugin-sdk/
|
|
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,5 +1,5 @@
|
|
|
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-
|
|
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-
|
|
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-B5s49fq2.js";
|
|
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-TI8Kr8Vn.js";
|
|
3
3
|
import { t as DEFAULT_RELAYS } from "./default-relays-DLwdWOTu.js";
|
|
4
4
|
import { describeAccountSnapshot } from "openclaw/plugin-sdk/account-helpers";
|
|
5
5
|
import { createScopedDmSecurityResolver, createTopLevelChannelConfigAdapter } from "openclaw/plugin-sdk/channel-config-helpers";
|
|
@@ -7,7 +7,7 @@ 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 { z } from "
|
|
10
|
+
import { z } from "zod";
|
|
11
11
|
import { resolveStableChannelMessageIngress } from "openclaw/plugin-sdk/channel-ingress-runtime";
|
|
12
12
|
import { createChannelPairingController } from "openclaw/plugin-sdk/channel-pairing";
|
|
13
13
|
import { attachChannelToResult } from "openclaw/plugin-sdk/channel-send-result";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as nostrPlugin } from "./channel-
|
|
1
|
+
import { n as nostrPlugin } from "./channel-D-oSsY_Z.js";
|
|
2
2
|
export { nostrPlugin };
|
|
@@ -2,7 +2,7 @@ import { collectStatusIssuesFromLastError, createDefaultChannelRuntimeState } fr
|
|
|
2
2
|
import { DEFAULT_ACCOUNT_ID, buildChannelConfigSchema, formatPairingApproveHint } from "openclaw/plugin-sdk/channel-plugin-common";
|
|
3
3
|
import { AllowFromListSchema, DmPolicySchema, MarkdownConfigSchema } from "openclaw/plugin-sdk/channel-config-primitives";
|
|
4
4
|
import { buildSecretInputSchema } from "openclaw/plugin-sdk/secret-input";
|
|
5
|
-
import { z } from "
|
|
5
|
+
import { z } from "zod";
|
|
6
6
|
//#region extensions/nostr/src/config-schema.ts
|
|
7
7
|
/**
|
|
8
8
|
* Validates https:// URLs only (no javascript:, data:, file:, etc.)
|
package/dist/index.js
CHANGED
|
@@ -39,7 +39,7 @@ var nostr_default = defineBundledChannelEntry({
|
|
|
39
39
|
accountId
|
|
40
40
|
}).profile;
|
|
41
41
|
},
|
|
42
|
-
updateConfigProfile: async (
|
|
42
|
+
updateConfigProfile: async (_accountId, profile) => {
|
|
43
43
|
const runtime = getNostrRuntime();
|
|
44
44
|
const cfg = runtime.config.current();
|
|
45
45
|
const channels = cfg.channels ?? {};
|
package/dist/setup-api.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as nostrSetupWizard, t as nostrSetupAdapter } from "./setup-surface-
|
|
1
|
+
import { n as nostrSetupWizard, t as nostrSetupAdapter } from "./setup-surface-B5s49fq2.js";
|
|
2
2
|
export { nostrSetupAdapter, nostrSetupWizard };
|
package/dist/setup-plugin-api.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as buildChannelConfigSchema, t as NostrConfigSchema } from "./config-schema-
|
|
1
|
+
import { i as buildChannelConfigSchema, t as NostrConfigSchema } from "./config-schema-TI8Kr8Vn.js";
|
|
2
2
|
import { t as DEFAULT_RELAYS } from "./default-relays-DLwdWOTu.js";
|
|
3
3
|
import { describeAccountSnapshot } from "openclaw/plugin-sdk/account-helpers";
|
|
4
4
|
import { patchTopLevelChannelConfigSection } from "openclaw/plugin-sdk/setup";
|
|
@@ -105,7 +105,7 @@ const nostrSetupAdapter = {
|
|
|
105
105
|
};
|
|
106
106
|
const nostrSetupWizard = createDelegatedSetupWizardProxy({
|
|
107
107
|
channel,
|
|
108
|
-
loadWizard: async () => (await import("./setup-surface-
|
|
108
|
+
loadWizard: async () => (await import("./setup-surface-B5s49fq2.js").then((n) => n.r)).nostrSetupWizard,
|
|
109
109
|
status: { ...createStandardChannelSetupStatus$1({
|
|
110
110
|
channelLabel: "Nostr",
|
|
111
111
|
configuredLabel: "configured",
|
|
@@ -3,7 +3,7 @@ import { hasConfiguredSecretInput, normalizeSecretInputString } from "openclaw/p
|
|
|
3
3
|
import { getPublicKey, nip19 } from "nostr-tools";
|
|
4
4
|
import { DEFAULT_ACCOUNT_ID, normalizeAccountId, normalizeOptionalAccountId } from "openclaw/plugin-sdk/account-id";
|
|
5
5
|
import { listCombinedAccountIds, resolveListedDefaultAccountId } from "openclaw/plugin-sdk/account-resolution";
|
|
6
|
-
import { normalizeOptionalString } from "openclaw/plugin-sdk/
|
|
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 { createStandardChannelSetupStatus, createTopLevelChannelDmPolicy, createTopLevelChannelParsedAllowFromPrompt, formatDocsLink, mergeAllowFromEntries, parseSetupEntriesWithParser, patchTopLevelChannelConfigSection, splitSetupEntries } 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-
|
|
1
|
+
import { n as nostrPlugin } from "./channel-D-oSsY_Z.js";
|
|
2
2
|
export { nostrPlugin };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/nostr",
|
|
3
|
-
"version": "2026.5.10-beta.
|
|
3
|
+
"version": "2026.5.10-beta.3",
|
|
4
4
|
"description": "OpenClaw Nostr channel plugin for NIP-04 encrypted DMs",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -8,14 +8,15 @@
|
|
|
8
8
|
},
|
|
9
9
|
"type": "module",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"nostr-tools": "^2.23.3"
|
|
11
|
+
"nostr-tools": "^2.23.3",
|
|
12
|
+
"zod": "^4.4.3"
|
|
12
13
|
},
|
|
13
14
|
"devDependencies": {
|
|
14
15
|
"@openclaw/plugin-sdk": "workspace:*",
|
|
15
16
|
"openclaw": "workspace:*"
|
|
16
17
|
},
|
|
17
18
|
"peerDependencies": {
|
|
18
|
-
"openclaw": ">=2026.5.10-beta.
|
|
19
|
+
"openclaw": ">=2026.5.10-beta.3"
|
|
19
20
|
},
|
|
20
21
|
"peerDependenciesMeta": {
|
|
21
22
|
"openclaw": {
|
|
@@ -53,10 +54,10 @@
|
|
|
53
54
|
"minHostVersion": ">=2026.4.10"
|
|
54
55
|
},
|
|
55
56
|
"compat": {
|
|
56
|
-
"pluginApi": ">=2026.5.10-beta.
|
|
57
|
+
"pluginApi": ">=2026.5.10-beta.3"
|
|
57
58
|
},
|
|
58
59
|
"build": {
|
|
59
|
-
"openclawVersion": "2026.5.10-beta.
|
|
60
|
+
"openclawVersion": "2026.5.10-beta.3"
|
|
60
61
|
},
|
|
61
62
|
"release": {
|
|
62
63
|
"publishToClawHub": true,
|