@nopeek/agent-bridge 0.5.3 → 0.5.4

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/bot.d.ts CHANGED
@@ -7,6 +7,8 @@ export interface BotInfo {
7
7
  ownerId?: string;
8
8
  /** Server-mediated backend from runtime/bots or adopt_bot (optional). */
9
9
  backend?: BrainBackend;
10
+ /** runtime/bots serializes via Views.bot, which names the field brainBackend. */
11
+ brainBackend?: BrainBackend | null;
10
12
  }
11
13
  export declare class BotRunner {
12
14
  readonly info: BotInfo;
package/dist/bridge.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { BridgeConfig, BrainSpec } from "./config.js";
2
- export declare const VERSION = "0.5.3";
2
+ export declare const VERSION = "0.5.4";
3
3
  export interface PairRequest {
4
4
  pairingSecret: string;
5
5
  appId: string;
package/dist/bridge.js CHANGED
@@ -14,7 +14,7 @@ import { resolveBrain } from "./brain.js";
14
14
  import { provisionSoul, provisionHermesProfile } from "./backends.js";
15
15
  import { reportCapabilities } from "./capabilities.js";
16
16
  import { isBrainBackend } from "./config.js";
17
- export const VERSION = "0.5.3";
17
+ export const VERSION = "0.5.4";
18
18
  /** How often to re-probe + report brain availability to the server. */
19
19
  const CAPABILITIES_INTERVAL_MS = 5 * 60_000;
20
20
  export class PairError extends Error {
@@ -306,8 +306,9 @@ export class BridgeApp {
306
306
  for (const info of list) {
307
307
  // Record any server-mediated backend BEFORE starting the runner so its
308
308
  // first brain resolution already sees it (local overrides still win).
309
- if (info.backend)
310
- this.applyServerBackend(info.handle, info.backend);
309
+ const serverBackend = info.backend ?? info.brainBackend;
310
+ if (serverBackend)
311
+ this.applyServerBackend(info.handle, serverBackend);
311
312
  this.startBot(info);
312
313
  }
313
314
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nopeek/agent-bridge",
3
- "version": "0.5.3",
3
+ "version": "0.5.4",
4
4
  "description": "Run your own agents as E2EE NoPeek bots. Pairs with a one-time code, runs every bot you own, and pipes messages to any command or webhook.",
5
5
  "type": "module",
6
6
  "license": "MIT",