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.
package/dist/index.d.ts CHANGED
@@ -8,6 +8,7 @@
8
8
  export { Mindwire, AuthApi, PromptsApi, McpApi, ProvidersApi, NotifyApi } from "./client.js";
9
9
  export * from "./bots.js";
10
10
  export * from "./apps.js";
11
+ export * from "./schedules.js";
11
12
  export * from "./integrations.js";
12
13
  export type { MindwireOptions, AgentScoped } from "./client.js";
13
14
  export { Run } from "./run.js";
@@ -49,3 +50,4 @@ export type { WorkspaceRecord, WorkspaceAgent, WorkspaceProject, WorkspaceChat,
49
50
  export * from "./surfaces.js";
50
51
  export * from "./execution.js";
51
52
  export * from "./computer.js";
53
+ export type { HandoffOrigin, HandoffPreview, HandoffRequest, HandoffResult, HandoffContext, HandoffLoss, HandoffTool, HandoffArtifact } from "./handoffs.js";
package/dist/index.js CHANGED
@@ -956,6 +956,27 @@ var AppsApi = class {
956
956
  }
957
957
  };
958
958
 
959
+ // src/schedules.ts
960
+ var ChatSchedulesApi = class {
961
+ constructor(mw) {
962
+ this.mw = mw;
963
+ }
964
+ mw;
965
+ list(chatId) {
966
+ return this.mw.http.request("GET", this.path(chatId));
967
+ }
968
+ save(chatId, schedule) {
969
+ return this.mw.http.request("POST", this.path(chatId), { body: schedule });
970
+ }
971
+ /** Stops future occurrences; an accepted turn continues through the ordinary run API. */
972
+ delete(chatId, scheduleId) {
973
+ return this.mw.http.request("DELETE", `${this.path(chatId)}/${encodeURIComponent(scheduleId)}`);
974
+ }
975
+ path(chatId) {
976
+ return `/chats/${encodeURIComponent(chatId)}/schedules`;
977
+ }
978
+ };
979
+
959
980
  // src/integrations.ts
960
981
  var IntegrationsApi = class {
961
982
  constructor(mw) {
@@ -1422,7 +1443,7 @@ var NativeSessionsApi = class {
1422
1443
  };
1423
1444
 
1424
1445
  // src/version.ts
1425
- var SDK_VERSION = "0.1.53" ;
1446
+ var SDK_VERSION = "0.1.55" ;
1426
1447
  function versionAtLeast(actual, desired) {
1427
1448
  if (actual === desired) return true;
1428
1449
  if (!actual || !/^\d+\.\d+\.\d+$/.test(actual) || !/^\d+\.\d+\.\d+$/.test(desired)) return false;
@@ -1740,6 +1761,7 @@ var Mindwire = class _Mindwire {
1740
1761
  workspace;
1741
1762
  bots;
1742
1763
  apps;
1764
+ schedules;
1743
1765
  integrations;
1744
1766
  surfaces;
1745
1767
  service;
@@ -1783,6 +1805,7 @@ var Mindwire = class _Mindwire {
1783
1805
  this.workspace = new WorkspaceApi(this);
1784
1806
  this.bots = new BotsApi(this);
1785
1807
  this.apps = new AppsApi(this);
1808
+ this.schedules = new ChatSchedulesApi(this);
1786
1809
  this.integrations = new IntegrationsApi(this);
1787
1810
  this.surfaces = new SurfacesApi(this);
1788
1811
  this.service = new ServiceApi(this);
@@ -1813,6 +1836,7 @@ var Mindwire = class _Mindwire {
1813
1836
  clone.workspace = new WorkspaceApi(clone);
1814
1837
  clone.bots = new BotsApi(clone);
1815
1838
  clone.apps = new AppsApi(clone);
1839
+ clone.schedules = new ChatSchedulesApi(clone);
1816
1840
  clone.integrations = new IntegrationsApi(clone);
1817
1841
  clone.surfaces = new SurfacesApi(clone);
1818
1842
  clone.service = new ServiceApi(clone);
@@ -1985,6 +2009,20 @@ var Mindwire = class _Mindwire {
1985
2009
  deleteChat(chatId) {
1986
2010
  return this.http.request("DELETE", `/chats/${encodeURIComponent(chatId)}`);
1987
2011
  }
2012
+ /** Read-only portable handoff context; requires crossAgentHandoffVersion >= 2. */
2013
+ previewHandoff(chatId) {
2014
+ return this.http.request("GET", `/chats/${encodeURIComponent(chatId)}/handoff`);
2015
+ }
2016
+ /** Start another agent in a linked conversation in the source project.
2017
+ * Reuse the identical payload after a lost response to recover the same run. */
2018
+ async handoff(chatId, request) {
2019
+ const result = await this.http.request(
2020
+ "POST",
2021
+ `/chats/${encodeURIComponent(chatId)}/handoff`,
2022
+ { body: request }
2023
+ );
2024
+ return { ...result, run: new Run(this.http, result.run) };
2025
+ }
1988
2026
  /**
1989
2027
  * `POST /chats/{id}/fork` — clone a chat into a new id (generated when `newChatId` is omitted).
1990
2028
  * Codex and Claude preserve native context. `beforeMessageId` excludes that prompt and every
@@ -3555,6 +3593,6 @@ function clearCatalogCache() {
3555
3593
  inflight = null;
3556
3594
  }
3557
3595
 
3558
- export { AppsApi, AuthApi, BotsApi, ComputerApi, ContainerHost, ConversationsApi, ExecutionApi, GitAccessApi, Http, IntegrationsApi, MODELS_DEV_URL, McpApi, Mindwire, NativeSessionsApi, NotifyApi, ProjectOperationsApi, ProjectSyncApi, ProjectSyncError, PromptsApi, ProvidersApi, Run, SDK_VERSION, ServiceApi, SurfacesApi, TerminalsApi, VoiceApi, VoiceSession, WorkspaceApi, WorkspaceCollection, catalogModels, catalogProvider, catalogProviders, clearCatalogCache, computerPairingQRData, computerPairingURI, docker, ensureDaemon, ensureDaemonBinary, loadCatalog, local, lookupModel, oblien, provisionContainer, provisionDocker, provisionOblien, provisionSsh, provisionSshContainer, remote, resolveLinuxDaemon, ssh, startEmbedded };
3596
+ export { AppsApi, AuthApi, BotsApi, ChatSchedulesApi, ComputerApi, ContainerHost, ConversationsApi, ExecutionApi, GitAccessApi, Http, IntegrationsApi, MODELS_DEV_URL, McpApi, Mindwire, NativeSessionsApi, NotifyApi, ProjectOperationsApi, ProjectSyncApi, ProjectSyncError, PromptsApi, ProvidersApi, Run, SDK_VERSION, ServiceApi, SurfacesApi, TerminalsApi, VoiceApi, VoiceSession, WorkspaceApi, WorkspaceCollection, catalogModels, catalogProvider, catalogProviders, clearCatalogCache, computerPairingQRData, computerPairingURI, docker, ensureDaemon, ensureDaemonBinary, loadCatalog, local, lookupModel, oblien, provisionContainer, provisionDocker, provisionOblien, provisionSsh, provisionSshContainer, remote, resolveLinuxDaemon, ssh, startEmbedded };
3559
3597
  //# sourceMappingURL=index.js.map
3560
3598
  //# sourceMappingURL=index.js.map