nostr-bray 1.16.1 → 1.16.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/cli.js +9 -1
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -216,7 +216,15 @@ const pool = new RelayPool({
216
216
  defaultRelays: config.relays,
217
217
  });
218
218
  const nip65 = new Nip65Manager(pool, config.relays);
219
- const ctx = new IdentityContext(config.secretKey, config.secretFormat);
219
+ let ctx;
220
+ if (config.bunkerUri) {
221
+ const { BunkerContext } = await import('./bunker-context.js');
222
+ ctx = await BunkerContext.connect(config.bunkerUri);
223
+ console.error(`Connected to bunker — signing as ${ctx.activeNpub}`);
224
+ }
225
+ else {
226
+ ctx = new IdentityContext(config.secretKey, config.secretFormat);
227
+ }
220
228
  const nwcUri = config.nwcUri;
221
229
  config.secretKey = '';
222
230
  config.nwcUri = undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nostr-bray",
3
- "version": "1.16.1",
3
+ "version": "1.16.2",
4
4
  "description": "MCP server giving AI agents sovereign Nostr identities — key derivation, personas, attestations, duress detection, zaps",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",