mindwire 0.1.53 → 0.1.54
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-O5DWL7MH.js → chunk-P3JTWITC.js} +20 -6
- package/dist/chunk-P3JTWITC.js.map +1 -0
- package/dist/{chunk-MZ4OTZFH.js → chunk-ZNEFE6KD.js} +3 -3
- package/dist/{chunk-MZ4OTZFH.js.map → chunk-ZNEFE6KD.js.map} +1 -1
- package/dist/cli.js +2 -2
- package/dist/client.d.ts +6 -0
- package/dist/{connection-change-EGOCFEPP.js → connection-change-RVS6XWTC.js} +3 -3
- package/dist/{connection-change-EGOCFEPP.js.map → connection-change-RVS6XWTC.js.map} +1 -1
- package/dist/{controller-WUR6XGOM.js → controller-2WCEJ3F2.js} +4 -4
- package/dist/{controller-WUR6XGOM.js.map → controller-2WCEJ3F2.js.map} +1 -1
- package/dist/{controller-handoff-SJ3A4NEC.js → controller-handoff-7EOSPHSD.js} +3 -3
- package/dist/{controller-handoff-SJ3A4NEC.js.map → controller-handoff-7EOSPHSD.js.map} +1 -1
- package/dist/handoffs.d.ts +91 -0
- package/dist/index.cjs +15 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +15 -1
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +4 -0
- package/dist/workspace.d.ts +1 -0
- package/package.json +1 -1
- package/dist/chunk-O5DWL7MH.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.54" ;
|
|
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;
|
|
@@ -2492,6 +2492,20 @@ var Mindwire = class _Mindwire {
|
|
|
2492
2492
|
deleteChat(chatId) {
|
|
2493
2493
|
return this.http.request("DELETE", `/chats/${encodeURIComponent(chatId)}`);
|
|
2494
2494
|
}
|
|
2495
|
+
/** Read-only portable handoff context; requires crossAgentHandoffVersion >= 2. */
|
|
2496
|
+
previewHandoff(chatId) {
|
|
2497
|
+
return this.http.request("GET", `/chats/${encodeURIComponent(chatId)}/handoff`);
|
|
2498
|
+
}
|
|
2499
|
+
/** Start another agent in a linked conversation in the source project.
|
|
2500
|
+
* Reuse the identical payload after a lost response to recover the same run. */
|
|
2501
|
+
async handoff(chatId, request) {
|
|
2502
|
+
const result = await this.http.request(
|
|
2503
|
+
"POST",
|
|
2504
|
+
`/chats/${encodeURIComponent(chatId)}/handoff`,
|
|
2505
|
+
{ body: request }
|
|
2506
|
+
);
|
|
2507
|
+
return { ...result, run: new Run(this.http, result.run) };
|
|
2508
|
+
}
|
|
2495
2509
|
/**
|
|
2496
2510
|
* `POST /chats/{id}/fork` — clone a chat into a new id (generated when `newChatId` is omitted).
|
|
2497
2511
|
* Codex and Claude preserve native context. `beforeMessageId` excludes that prompt and every
|
|
@@ -3038,7 +3052,7 @@ async function ensureComputer(directory, cliPath, patch = {}, onProgress, option
|
|
|
3038
3052
|
if (!compatible(controller2) || !await processStateAlive(controller2)) {
|
|
3039
3053
|
await ensureComputer(directory, cliPath, {}, onProgress, { ...options, waitForRoutes: false });
|
|
3040
3054
|
}
|
|
3041
|
-
const { changeComputerConnection } = await import('./connection-change-
|
|
3055
|
+
const { changeComputerConnection } = await import('./connection-change-RVS6XWTC.js');
|
|
3042
3056
|
await changeComputerConnection(directory, Object.fromEntries(changed.map((key) => [key, patch[key]])), { signal: options.signal, onProgress });
|
|
3043
3057
|
return computerClient(directory);
|
|
3044
3058
|
}
|
|
@@ -3079,7 +3093,7 @@ async function ensureComputer(directory, cliPath, patch = {}, onProgress, option
|
|
|
3079
3093
|
let controller = await readJSON(path4.join(directory, "computer-controller.json"));
|
|
3080
3094
|
if (existing && controller && !compatible(controller) && await processStateAlive(controller)) {
|
|
3081
3095
|
onProgress?.("Refreshing the background connection service\u2026");
|
|
3082
|
-
const { handoffController } = await import('./controller-handoff-
|
|
3096
|
+
const { handoffController } = await import('./controller-handoff-7EOSPHSD.js');
|
|
3083
3097
|
await handoffController(directory, controller, config, await existing.computer.info());
|
|
3084
3098
|
controller = void 0;
|
|
3085
3099
|
}
|
|
@@ -3113,7 +3127,7 @@ async function ensureComputer(directory, cliPath, patch = {}, onProgress, option
|
|
|
3113
3127
|
}
|
|
3114
3128
|
}
|
|
3115
3129
|
async function superviseComputer(directory) {
|
|
3116
|
-
const controller = await import('./controller-
|
|
3130
|
+
const controller = await import('./controller-2WCEJ3F2.js');
|
|
3117
3131
|
await controller.superviseComputer(directory);
|
|
3118
3132
|
}
|
|
3119
3133
|
async function stopComputer(directory, force = false) {
|
|
@@ -3138,5 +3152,5 @@ async function stopComputer(directory, force = false) {
|
|
|
3138
3152
|
}
|
|
3139
3153
|
|
|
3140
3154
|
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 };
|
|
3141
|
-
//# sourceMappingURL=chunk-
|
|
3142
|
-
//# sourceMappingURL=chunk-
|
|
3155
|
+
//# sourceMappingURL=chunk-P3JTWITC.js.map
|
|
3156
|
+
//# sourceMappingURL=chunk-P3JTWITC.js.map
|