mindwire 0.1.45 → 0.1.47
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/{chunk-7NLK636R.js → chunk-7QLYFISG.js} +10 -6
- package/dist/chunk-7QLYFISG.js.map +1 -0
- package/dist/{chunk-XGTG3DYE.js → chunk-ZL4EIEF7.js} +3 -3
- package/dist/{chunk-XGTG3DYE.js.map → chunk-ZL4EIEF7.js.map} +1 -1
- package/dist/cli.js +2 -2
- package/dist/{connection-change-DRBAPLGD.js → connection-change-LCT3UM7M.js} +3 -3
- package/dist/{connection-change-DRBAPLGD.js.map → connection-change-LCT3UM7M.js.map} +1 -1
- package/dist/{controller-75KVB27Q.js → controller-I7A3APTF.js} +4 -4
- package/dist/{controller-75KVB27Q.js.map → controller-I7A3APTF.js.map} +1 -1
- package/dist/{controller-handoff-DXG2BW6L.js → controller-handoff-RPZJDZJR.js} +3 -3
- package/dist/{controller-handoff-DXG2BW6L.js.map → controller-handoff-RPZJDZJR.js.map} +1 -1
- package/dist/index.cjs +5 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +2 -0
- package/dist/workspace.d.ts +18 -1
- package/package.json +1 -1
- package/dist/chunk-7NLK636R.js.map +0 -1
|
@@ -88,7 +88,7 @@ function computerPairingURI(invitation) {
|
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
// src/version.ts
|
|
91
|
-
var SDK_VERSION = "0.1.
|
|
91
|
+
var SDK_VERSION = "0.1.47" ;
|
|
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-
|
|
2650
|
+
const { changeComputerConnection } = await import('./connection-change-LCT3UM7M.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-
|
|
2691
|
+
const { handoffController } = await import('./controller-handoff-RPZJDZJR.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-
|
|
2725
|
+
const controller = await import('./controller-I7A3APTF.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-
|
|
2747
|
-
//# sourceMappingURL=chunk-
|
|
2750
|
+
//# sourceMappingURL=chunk-7QLYFISG.js.map
|
|
2751
|
+
//# sourceMappingURL=chunk-7QLYFISG.js.map
|