@openclaw/nostr 2026.5.19-beta.2 → 2026.5.20-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 +3 -3
- package/dist/{channel-DhEeY6pk.js → channel-kxjS7m4j.js} +6 -6
- package/dist/channel-plugin-api.js +1 -1
- package/dist/setup-api.js +1 -1
- package/dist/setup-plugin-api.js +3 -3
- package/dist/{setup-surface-BEpiebD3.js → setup-surface-vMnYmvEC.js} +1 -1
- package/dist/test-api.js +1 -1
- package/package.json +4 -4
- /package/dist/{config-schema-TI8Kr8Vn.js → config-schema-DIiXiBKr.js} +0 -0
- /package/dist/{default-relays-DLwdWOTu.js → default-relays-CSfmlk7O.js} +0 -0
- /package/dist/{inbound-direct-dm-runtime-22bZWcIW.js → inbound-direct-dm-runtime-2PX1JuIA.js} +0 -0
package/dist/api.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { o as resolveNostrAccount } from "./setup-surface-
|
|
1
|
+
import { o as resolveNostrAccount } from "./setup-surface-vMnYmvEC.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-
|
|
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-kxjS7m4j.js";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
import { SimplePool, verifyEvent } from "nostr-tools";
|
|
7
7
|
import { normalizeLowercaseStringOrEmpty, normalizeOptionalLowercaseString, readStringValue } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
@@ -1,6 +1,6 @@
|
|
|
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-
|
|
3
|
-
import { t as DEFAULT_RELAYS } from "./default-relays-
|
|
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-vMnYmvEC.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-DIiXiBKr.js";
|
|
3
|
+
import { t as DEFAULT_RELAYS } from "./default-relays-CSfmlk7O.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";
|
|
@@ -845,11 +845,11 @@ async function startNostrBus(options) {
|
|
|
845
845
|
});
|
|
846
846
|
let pendingWrite;
|
|
847
847
|
let lastProcessedAt = state?.lastProcessedAt ?? gatewayStartedAt;
|
|
848
|
-
let recentEventIds = (state?.recentEventIds ?? []).slice(-
|
|
848
|
+
let recentEventIds = (state?.recentEventIds ?? []).slice(-5e3);
|
|
849
849
|
function scheduleStatePersist(eventCreatedAt, eventId) {
|
|
850
850
|
lastProcessedAt = Math.max(lastProcessedAt, eventCreatedAt);
|
|
851
851
|
recentEventIds.push(eventId);
|
|
852
|
-
if (recentEventIds.length > MAX_PERSISTED_EVENT_IDS) recentEventIds = recentEventIds.slice(-
|
|
852
|
+
if (recentEventIds.length > MAX_PERSISTED_EVENT_IDS) recentEventIds = recentEventIds.slice(-5e3);
|
|
853
853
|
if (pendingWrite) clearTimeout(pendingWrite);
|
|
854
854
|
pendingWrite = setTimeout(() => {
|
|
855
855
|
writeNostrBusState({
|
|
@@ -1193,7 +1193,7 @@ const startNostrGatewayAccount = async (ctx) => {
|
|
|
1193
1193
|
ctx.log?.warn?.(`[${account.accountId}] dropping Nostr DM after preflight drift (${senderPubkey}, ${resolvedAccess.senderAccess.reasonCode})`);
|
|
1194
1194
|
return;
|
|
1195
1195
|
}
|
|
1196
|
-
const { dispatchInboundDirectDmWithRuntime } = await import("./inbound-direct-dm-runtime-
|
|
1196
|
+
const { dispatchInboundDirectDmWithRuntime } = await import("./inbound-direct-dm-runtime-2PX1JuIA.js");
|
|
1197
1197
|
await dispatchInboundDirectDmWithRuntime({
|
|
1198
1198
|
cfg: ctx.cfg,
|
|
1199
1199
|
runtime,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as nostrPlugin } from "./channel-
|
|
1
|
+
import { n as nostrPlugin } from "./channel-kxjS7m4j.js";
|
|
2
2
|
export { nostrPlugin };
|
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-vMnYmvEC.js";
|
|
2
2
|
export { nostrSetupAdapter, nostrSetupWizard };
|
package/dist/setup-plugin-api.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as buildChannelConfigSchema, t as NostrConfigSchema } from "./config-schema-
|
|
2
|
-
import { t as DEFAULT_RELAYS } from "./default-relays-
|
|
1
|
+
import { i as buildChannelConfigSchema, t as NostrConfigSchema } from "./config-schema-DIiXiBKr.js";
|
|
2
|
+
import { t as DEFAULT_RELAYS } from "./default-relays-CSfmlk7O.js";
|
|
3
3
|
import { describeAccountSnapshot } from "openclaw/plugin-sdk/account-helpers";
|
|
4
4
|
import { patchTopLevelChannelConfigSection } from "openclaw/plugin-sdk/setup";
|
|
5
5
|
import { DEFAULT_ACCOUNT_ID, createDelegatedSetupWizardProxy, createSetupTranslator as createSetupTranslator$1, createStandardChannelSetupStatus as createStandardChannelSetupStatus$1 } from "openclaw/plugin-sdk/setup-runtime";
|
|
@@ -106,7 +106,7 @@ const nostrSetupAdapter = {
|
|
|
106
106
|
};
|
|
107
107
|
const nostrSetupWizard = createDelegatedSetupWizardProxy({
|
|
108
108
|
channel,
|
|
109
|
-
loadWizard: async () => (await import("./setup-surface-
|
|
109
|
+
loadWizard: async () => (await import("./setup-surface-vMnYmvEC.js").then((n) => n.r)).nostrSetupWizard,
|
|
110
110
|
status: { ...createStandardChannelSetupStatus$1({
|
|
111
111
|
channelLabel: "Nostr",
|
|
112
112
|
configuredLabel: t("wizard.channels.statusConfigured"),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as DEFAULT_RELAYS } from "./default-relays-
|
|
1
|
+
import { t as DEFAULT_RELAYS } from "./default-relays-CSfmlk7O.js";
|
|
2
2
|
import { hasConfiguredSecretInput, normalizeSecretInputString } from "openclaw/plugin-sdk/secret-input";
|
|
3
3
|
import { getPublicKey, nip19 } from "nostr-tools";
|
|
4
4
|
import { DEFAULT_ACCOUNT_ID, normalizeAccountId, normalizeOptionalAccountId } from "openclaw/plugin-sdk/account-id";
|
package/dist/test-api.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as nostrPlugin } from "./channel-
|
|
1
|
+
import { n as nostrPlugin } from "./channel-kxjS7m4j.js";
|
|
2
2
|
export { nostrPlugin };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/nostr",
|
|
3
|
-
"version": "2026.5.
|
|
3
|
+
"version": "2026.5.20-beta.1",
|
|
4
4
|
"description": "OpenClaw Nostr channel plugin for NIP-04 encrypted DMs",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"openclaw": "workspace:*"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"openclaw": ">=2026.5.
|
|
19
|
+
"openclaw": ">=2026.5.20-beta.1"
|
|
20
20
|
},
|
|
21
21
|
"peerDependenciesMeta": {
|
|
22
22
|
"openclaw": {
|
|
@@ -54,10 +54,10 @@
|
|
|
54
54
|
"minHostVersion": ">=2026.4.10"
|
|
55
55
|
},
|
|
56
56
|
"compat": {
|
|
57
|
-
"pluginApi": ">=2026.5.
|
|
57
|
+
"pluginApi": ">=2026.5.20-beta.1"
|
|
58
58
|
},
|
|
59
59
|
"build": {
|
|
60
|
-
"openclawVersion": "2026.5.
|
|
60
|
+
"openclawVersion": "2026.5.20-beta.1"
|
|
61
61
|
},
|
|
62
62
|
"release": {
|
|
63
63
|
"publishToClawHub": true,
|
|
File without changes
|
|
File without changes
|
/package/dist/{inbound-direct-dm-runtime-22bZWcIW.js → inbound-direct-dm-runtime-2PX1JuIA.js}
RENAMED
|
File without changes
|