mindwire 0.1.53 → 0.1.55

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.53" ;
91
+ var SDK_VERSION = "0.1.55" ;
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;
@@ -1612,6 +1612,27 @@ var AppsApi = class {
1612
1612
  }
1613
1613
  };
1614
1614
 
1615
+ // src/schedules.ts
1616
+ var ChatSchedulesApi = class {
1617
+ constructor(mw) {
1618
+ this.mw = mw;
1619
+ }
1620
+ mw;
1621
+ list(chatId) {
1622
+ return this.mw.http.request("GET", this.path(chatId));
1623
+ }
1624
+ save(chatId, schedule) {
1625
+ return this.mw.http.request("POST", this.path(chatId), { body: schedule });
1626
+ }
1627
+ /** Stops future occurrences; an accepted turn continues through the ordinary run API. */
1628
+ delete(chatId, scheduleId) {
1629
+ return this.mw.http.request("DELETE", `${this.path(chatId)}/${encodeURIComponent(scheduleId)}`);
1630
+ }
1631
+ path(chatId) {
1632
+ return `/chats/${encodeURIComponent(chatId)}/schedules`;
1633
+ }
1634
+ };
1635
+
1615
1636
  // src/integrations.ts
1616
1637
  var IntegrationsApi = class {
1617
1638
  constructor(mw) {
@@ -2247,6 +2268,7 @@ var Mindwire = class _Mindwire {
2247
2268
  workspace;
2248
2269
  bots;
2249
2270
  apps;
2271
+ schedules;
2250
2272
  integrations;
2251
2273
  surfaces;
2252
2274
  service;
@@ -2290,6 +2312,7 @@ var Mindwire = class _Mindwire {
2290
2312
  this.workspace = new WorkspaceApi(this);
2291
2313
  this.bots = new BotsApi(this);
2292
2314
  this.apps = new AppsApi(this);
2315
+ this.schedules = new ChatSchedulesApi(this);
2293
2316
  this.integrations = new IntegrationsApi(this);
2294
2317
  this.surfaces = new SurfacesApi(this);
2295
2318
  this.service = new ServiceApi(this);
@@ -2320,6 +2343,7 @@ var Mindwire = class _Mindwire {
2320
2343
  clone.workspace = new WorkspaceApi(clone);
2321
2344
  clone.bots = new BotsApi(clone);
2322
2345
  clone.apps = new AppsApi(clone);
2346
+ clone.schedules = new ChatSchedulesApi(clone);
2323
2347
  clone.integrations = new IntegrationsApi(clone);
2324
2348
  clone.surfaces = new SurfacesApi(clone);
2325
2349
  clone.service = new ServiceApi(clone);
@@ -2492,6 +2516,20 @@ var Mindwire = class _Mindwire {
2492
2516
  deleteChat(chatId) {
2493
2517
  return this.http.request("DELETE", `/chats/${encodeURIComponent(chatId)}`);
2494
2518
  }
2519
+ /** Read-only portable handoff context; requires crossAgentHandoffVersion >= 2. */
2520
+ previewHandoff(chatId) {
2521
+ return this.http.request("GET", `/chats/${encodeURIComponent(chatId)}/handoff`);
2522
+ }
2523
+ /** Start another agent in a linked conversation in the source project.
2524
+ * Reuse the identical payload after a lost response to recover the same run. */
2525
+ async handoff(chatId, request) {
2526
+ const result = await this.http.request(
2527
+ "POST",
2528
+ `/chats/${encodeURIComponent(chatId)}/handoff`,
2529
+ { body: request }
2530
+ );
2531
+ return { ...result, run: new Run(this.http, result.run) };
2532
+ }
2495
2533
  /**
2496
2534
  * `POST /chats/{id}/fork` — clone a chat into a new id (generated when `newChatId` is omitted).
2497
2535
  * Codex and Claude preserve native context. `beforeMessageId` excludes that prompt and every
@@ -3038,7 +3076,7 @@ async function ensureComputer(directory, cliPath, patch = {}, onProgress, option
3038
3076
  if (!compatible(controller2) || !await processStateAlive(controller2)) {
3039
3077
  await ensureComputer(directory, cliPath, {}, onProgress, { ...options, waitForRoutes: false });
3040
3078
  }
3041
- const { changeComputerConnection } = await import('./connection-change-EGOCFEPP.js');
3079
+ const { changeComputerConnection } = await import('./connection-change-Q46D6YJL.js');
3042
3080
  await changeComputerConnection(directory, Object.fromEntries(changed.map((key) => [key, patch[key]])), { signal: options.signal, onProgress });
3043
3081
  return computerClient(directory);
3044
3082
  }
@@ -3079,7 +3117,7 @@ async function ensureComputer(directory, cliPath, patch = {}, onProgress, option
3079
3117
  let controller = await readJSON(path4.join(directory, "computer-controller.json"));
3080
3118
  if (existing && controller && !compatible(controller) && await processStateAlive(controller)) {
3081
3119
  onProgress?.("Refreshing the background connection service\u2026");
3082
- const { handoffController } = await import('./controller-handoff-SJ3A4NEC.js');
3120
+ const { handoffController } = await import('./controller-handoff-IPCAOMMB.js');
3083
3121
  await handoffController(directory, controller, config, await existing.computer.info());
3084
3122
  controller = void 0;
3085
3123
  }
@@ -3113,7 +3151,7 @@ async function ensureComputer(directory, cliPath, patch = {}, onProgress, option
3113
3151
  }
3114
3152
  }
3115
3153
  async function superviseComputer(directory) {
3116
- const controller = await import('./controller-WUR6XGOM.js');
3154
+ const controller = await import('./controller-UCMTGF5U.js');
3117
3155
  await controller.superviseComputer(directory);
3118
3156
  }
3119
3157
  async function stopComputer(directory, force = false) {
@@ -3138,5 +3176,5 @@ async function stopComputer(directory, force = false) {
3138
3176
  }
3139
3177
 
3140
3178
  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-O5DWL7MH.js.map
3142
- //# sourceMappingURL=chunk-O5DWL7MH.js.map
3179
+ //# sourceMappingURL=chunk-5AEQY4BT.js.map
3180
+ //# sourceMappingURL=chunk-5AEQY4BT.js.map