@buoy-gg/mcp 7.0.43 → 7.0.45

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/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{SyncClient as i,createMcpServer as p,runInit as a}from"./chunk-FLZAEJH4.mjs";import{StdioServerTransport as l}from"@modelcontextprotocol/sdk/server/stdio.js";console.log=(...e)=>console.error(...e);console.info=(...e)=>console.error(...e);console.debug=(...e)=>console.error(...e);async function d(){const e=process.env.BUOY_BROKER_PORT;const s=new i({url:process.env.BUOY_BROKER_URL,port:e?Number(e):void 0,autoSpawnBroker:process.env.BUOY_NO_SPAWN!=="1"});const o=p(s);const c=new l;let n=false;const r=t=>{if(n)return;n=true;process.stderr.write(`[buoy-mcp] shutting down (${t})
2
+ import{SyncClient as i,createMcpServer as p,runInit as a}from"./chunk-GFFMF22U.mjs";import{StdioServerTransport as l}from"@modelcontextprotocol/sdk/server/stdio.js";console.log=(...e)=>console.error(...e);console.info=(...e)=>console.error(...e);console.debug=(...e)=>console.error(...e);async function d(){const e=process.env.BUOY_BROKER_PORT;const s=new i({url:process.env.BUOY_BROKER_URL,port:e?Number(e):void 0,autoSpawnBroker:process.env.BUOY_NO_SPAWN!=="1"});const o=p(s);const c=new l;let n=false;const r=t=>{if(n)return;n=true;process.stderr.write(`[buoy-mcp] shutting down (${t})
3
3
  `);setTimeout(()=>process.exit(0),2e3).unref();void(async()=>{await s.stop().catch(()=>{});await o.close().catch(()=>{});process.exit(0)})()};process.stdin.once("end",()=>r("stdin closed"));process.stdin.once("close",()=>r("stdin closed"));o.server.onclose=()=>r("transport closed");process.on("SIGINT",()=>r("SIGINT"));process.on("SIGTERM",()=>r("SIGTERM"));process.on("SIGHUP",()=>r("SIGHUP"));await o.connect(c);process.stderr.write(`[buoy-mcp] serving MCP over stdio; connecting to broker\u2026
4
4
  `);s.start().then(t=>process.stderr.write(`[buoy-mcp] broker ${t}
5
5
  `)).catch(t=>process.stderr.write(`[buoy-mcp] broker connection failed: ${t?.message??t} \u2014 tools will report no devices until it recovers
package/dist/index.d.mts CHANGED
@@ -219,6 +219,18 @@ declare class SyncClient {
219
219
  * failure this whole capture-mode change exists to remove.
220
220
  */
221
221
  private rearmWatches;
222
+ /** Each device's current connection (socket id + nonce), to spot a reload. */
223
+ private deviceConnections;
224
+ /**
225
+ * Re-arm the watches for a device that came back on a NEW connection.
226
+ *
227
+ * A relaunch or JS reload gives the app a fresh socket and fresh adapters,
228
+ * whose capture starts switched off. Our watches still say "held", so
229
+ * `ensureWatching` short-circuited and the device never recorded again: after
230
+ * one restart, the storage timeline stayed empty for the rest of the session
231
+ * (found by the BK storage suite — every case after a relaunch read nothing).
232
+ */
233
+ private rearmReconnectedDevices;
222
234
  /** Stop streaming a tool (releases the device-side backpressure). */
223
235
  unwatch(toolId: string, targetDeviceId: string): void;
224
236
  /** Last snapshot received for a tool/device, if any. */
package/dist/index.d.ts CHANGED
@@ -219,6 +219,18 @@ declare class SyncClient {
219
219
  * failure this whole capture-mode change exists to remove.
220
220
  */
221
221
  private rearmWatches;
222
+ /** Each device's current connection (socket id + nonce), to spot a reload. */
223
+ private deviceConnections;
224
+ /**
225
+ * Re-arm the watches for a device that came back on a NEW connection.
226
+ *
227
+ * A relaunch or JS reload gives the app a fresh socket and fresh adapters,
228
+ * whose capture starts switched off. Our watches still say "held", so
229
+ * `ensureWatching` short-circuited and the device never recorded again: after
230
+ * one restart, the storage timeline stayed empty for the rest of the session
231
+ * (found by the BK storage suite — every case after a relaunch read nothing).
232
+ */
233
+ private rearmReconnectedDevices;
222
234
  /** Stop streaming a tool (releases the device-side backpressure). */
223
235
  unwatch(toolId: string, targetDeviceId: string): void;
224
236
  /** Last snapshot received for a tool/device, if any. */