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
package/dist/index.d.ts
CHANGED
|
@@ -49,3 +49,4 @@ export type { WorkspaceRecord, WorkspaceAgent, WorkspaceProject, WorkspaceChat,
|
|
|
49
49
|
export * from "./surfaces.js";
|
|
50
50
|
export * from "./execution.js";
|
|
51
51
|
export * from "./computer.js";
|
|
52
|
+
export type { HandoffOrigin, HandoffPreview, HandoffRequest, HandoffResult, HandoffContext, HandoffLoss, HandoffTool, HandoffArtifact } from "./handoffs.js";
|
package/dist/index.js
CHANGED
|
@@ -1422,7 +1422,7 @@ var NativeSessionsApi = class {
|
|
|
1422
1422
|
};
|
|
1423
1423
|
|
|
1424
1424
|
// src/version.ts
|
|
1425
|
-
var SDK_VERSION = "0.1.
|
|
1425
|
+
var SDK_VERSION = "0.1.54" ;
|
|
1426
1426
|
function versionAtLeast(actual, desired) {
|
|
1427
1427
|
if (actual === desired) return true;
|
|
1428
1428
|
if (!actual || !/^\d+\.\d+\.\d+$/.test(actual) || !/^\d+\.\d+\.\d+$/.test(desired)) return false;
|
|
@@ -1985,6 +1985,20 @@ var Mindwire = class _Mindwire {
|
|
|
1985
1985
|
deleteChat(chatId) {
|
|
1986
1986
|
return this.http.request("DELETE", `/chats/${encodeURIComponent(chatId)}`);
|
|
1987
1987
|
}
|
|
1988
|
+
/** Read-only portable handoff context; requires crossAgentHandoffVersion >= 2. */
|
|
1989
|
+
previewHandoff(chatId) {
|
|
1990
|
+
return this.http.request("GET", `/chats/${encodeURIComponent(chatId)}/handoff`);
|
|
1991
|
+
}
|
|
1992
|
+
/** Start another agent in a linked conversation in the source project.
|
|
1993
|
+
* Reuse the identical payload after a lost response to recover the same run. */
|
|
1994
|
+
async handoff(chatId, request) {
|
|
1995
|
+
const result = await this.http.request(
|
|
1996
|
+
"POST",
|
|
1997
|
+
`/chats/${encodeURIComponent(chatId)}/handoff`,
|
|
1998
|
+
{ body: request }
|
|
1999
|
+
);
|
|
2000
|
+
return { ...result, run: new Run(this.http, result.run) };
|
|
2001
|
+
}
|
|
1988
2002
|
/**
|
|
1989
2003
|
* `POST /chats/{id}/fork` — clone a chat into a new id (generated when `newChatId` is omitted).
|
|
1990
2004
|
* Codex and Claude preserve native context. `beforeMessageId` excludes that prompt and every
|