nostr-bray 1.29.1 → 1.29.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 +5 -1
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -266,9 +266,13 @@ const nip65 = new Nip65Manager(pool, config.relays);
266
266
  let ctx;
267
267
  if (config.bunkerUri) {
268
268
  const { BunkerContext } = await import('./bunker-context.js');
269
+ const { HeartwoodContext } = await import('./heartwood-context.js');
269
270
  ctx = await BunkerContext.connect(config.bunkerUri);
270
271
  await ctx.resolvePublicKey();
271
- console.error(`Connected to bunker — signing as ${ctx.activeNpub}`);
272
+ const hw = await HeartwoodContext.probe(ctx);
273
+ if (hw)
274
+ ctx = hw;
275
+ console.error(`Connected to ${hw ? 'Heartwood' : 'bunker'} — signing as ${ctx.activeNpub}`);
272
276
  }
273
277
  else {
274
278
  ctx = new IdentityContext(config.secretKey, config.secretFormat);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nostr-bray",
3
- "version": "1.29.1",
3
+ "version": "1.29.2",
4
4
  "mcpName": "dev.forgesworn/bray",
5
5
  "description": "Trust-aware Nostr for AI and humans. Three dimensions of trust -- verification, proximity, and access -- woven into every interaction.",
6
6
  "type": "module",