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/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.53" ;
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