@openclaw/nostr 2026.5.12 → 2026.5.14-beta.2

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.
Files changed (2) hide show
  1. package/dist/index.js +8 -11
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -40,22 +40,19 @@ var nostr_default = defineBundledChannelEntry({
40
40
  }).profile;
41
41
  },
42
42
  updateConfigProfile: async (_accountId, profile) => {
43
- const runtime = getNostrRuntime();
44
- const cfg = runtime.config.current();
45
- const channels = cfg.channels ?? {};
46
- const nostrConfig = channels.nostr ?? {};
47
- await runtime.config.replaceConfigFile({
48
- nextConfig: {
49
- ...cfg,
50
- channels: {
43
+ await getNostrRuntime().config.mutateConfigFile({
44
+ afterWrite: { mode: "auto" },
45
+ mutate: (draft) => {
46
+ const channels = draft.channels ?? {};
47
+ const nostrConfig = channels.nostr ?? {};
48
+ draft.channels = {
51
49
  ...channels,
52
50
  nostr: {
53
51
  ...nostrConfig,
54
52
  profile
55
53
  }
56
- }
57
- },
58
- afterWrite: { mode: "auto" }
54
+ };
55
+ }
59
56
  });
60
57
  },
61
58
  getAccountInfo: (accountId) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/nostr",
3
- "version": "2026.5.12",
3
+ "version": "2026.5.14-beta.2",
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.12"
19
+ "openclaw": ">=2026.5.14-beta.2"
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.12"
57
+ "pluginApi": ">=2026.5.14-beta.2"
58
58
  },
59
59
  "build": {
60
- "openclawVersion": "2026.5.12"
60
+ "openclawVersion": "2026.5.14-beta.2"
61
61
  },
62
62
  "release": {
63
63
  "publishToClawHub": true,