mindwire 0.1.44 → 0.1.46

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.
@@ -88,7 +88,7 @@ function computerPairingURI(invitation) {
88
88
  }
89
89
 
90
90
  // src/version.ts
91
- var SDK_VERSION = "0.1.44" ;
91
+ var SDK_VERSION = "0.1.46" ;
92
92
  function versionAtLeast(actual, desired) {
93
93
  if (actual === desired) return true;
94
94
  if (!actual || !/^\d+\.\d+\.\d+$/.test(actual) || !/^\d+\.\d+\.\d+$/.test(desired)) return false;
@@ -1376,6 +1376,10 @@ var WorkspaceApi = class {
1376
1376
  snapshot(options = {}) {
1377
1377
  return this.mw.http.request("GET", "/workspace", { query: options });
1378
1378
  }
1379
+ /** Reuse the workspace's existing harness profile or create one for setup. Atomic across clients. */
1380
+ ensureAgent(request) {
1381
+ return this.mw.http.request("POST", "/workspace/agents/ensure", { body: request });
1382
+ }
1379
1383
  library() {
1380
1384
  return this.mw.http.request("GET", "/workspace/project-library");
1381
1385
  }
@@ -2643,7 +2647,7 @@ async function ensureComputer(directory, cliPath, patch = {}, onProgress, option
2643
2647
  if (!compatible(controller2) || !await processStateAlive(controller2)) {
2644
2648
  await ensureComputer(directory, cliPath, {}, onProgress, { ...options, waitForRoutes: false });
2645
2649
  }
2646
- const { changeComputerConnection } = await import('./connection-change-KVOVAVF4.js');
2650
+ const { changeComputerConnection } = await import('./connection-change-SCRLUU6Q.js');
2647
2651
  await changeComputerConnection(directory, Object.fromEntries(changed.map((key) => [key, patch[key]])), { signal: options.signal, onProgress });
2648
2652
  return computerClient(directory);
2649
2653
  }
@@ -2684,7 +2688,7 @@ async function ensureComputer(directory, cliPath, patch = {}, onProgress, option
2684
2688
  let controller = await readJSON(path4.join(directory, "computer-controller.json"));
2685
2689
  if (existing && controller && !compatible(controller) && await processStateAlive(controller)) {
2686
2690
  onProgress?.("Refreshing the background connection service\u2026");
2687
- const { handoffController } = await import('./controller-handoff-OWJJEC2H.js');
2691
+ const { handoffController } = await import('./controller-handoff-TRI2D6LB.js');
2688
2692
  await handoffController(directory, controller, config, await existing.computer.info());
2689
2693
  controller = void 0;
2690
2694
  }
@@ -2718,7 +2722,7 @@ async function ensureComputer(directory, cliPath, patch = {}, onProgress, option
2718
2722
  }
2719
2723
  }
2720
2724
  async function superviseComputer(directory) {
2721
- const controller = await import('./controller-3KH6CUOC.js');
2725
+ const controller = await import('./controller-IY3EWUJX.js');
2722
2726
  await controller.superviseComputer(directory);
2723
2727
  }
2724
2728
  async function stopComputer(directory, force = false) {
@@ -2743,5 +2747,5 @@ async function stopComputer(directory, force = false) {
2743
2747
  }
2744
2748
 
2745
2749
  export { CONTROLLER_PROTOCOL, ProviderConnectionError, RelayOutput, SDK_VERSION, acquireProcessLock, adoptProcess, adoptRelay, cloudflareCommand, computerClient, computerPairingQRData, computerPairingURI, currentProcessIdentity, defaultComputerConfig, defaultStateDirectory, directRoutes, ensureComputer, ensureDaemonBinary, hasCertificateError, ownChild, processIdentity, processStateAlive, providerFailure, providerNeedsAction, readJSON, startRelay, stopComputer, superviseComputer, versionAtLeast, websocketURL, writeJSON };
2746
- //# sourceMappingURL=chunk-CSX2ZLIV.js.map
2747
- //# sourceMappingURL=chunk-CSX2ZLIV.js.map
2750
+ //# sourceMappingURL=chunk-KPTSQJVM.js.map
2751
+ //# sourceMappingURL=chunk-KPTSQJVM.js.map