mindwire 0.1.44 → 0.1.46

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
@@ -40,7 +40,7 @@ export type { Conversation, ConversationQuery, ConversationPage, ConversationOpe
40
40
  export { ProjectSyncApi, ProjectSyncError } from "./project-sync.js";
41
41
  export type { ProjectSyncEntry, ProjectSyncCheckpoint, ProjectSyncRequest, ProjectSyncOperation, ProjectSyncConflict, ProjectSyncProgress, ProjectSyncPreview, ProjectSyncPreviewRequest, ProjectSyncIgnoredPath } from "./project-sync.js";
42
42
  export type { ProjectRequest, ProjectAuth, ProjectOperation, ProjectRemoveRequest, GitConnection, GitAccessState, ProjectGitState, GitAction, GitIdentity, GitIdentityScope, GitIdentitySettings, GitIdentityUpdate, GitOperationRequest, GitOperation } from "./workspace.js";
43
- export type { WorkspaceRecord, WorkspaceAgent, WorkspaceProject, WorkspaceChat, WorkspaceKind, WorkspaceInput, WorkspaceImport, WorkspaceSnapshot, ProjectIcon, ProjectFolder, ProjectLibrary, ProjectLibraryEdit } from "./workspace.js";
43
+ export type { WorkspaceRecord, WorkspaceAgent, WorkspaceProject, WorkspaceChat, WorkspaceKind, EnsureAgentRequest, EnsureAgentResult, WorkspaceInput, WorkspaceImport, WorkspaceSnapshot, ProjectIcon, ProjectFolder, ProjectLibrary, ProjectLibraryEdit } from "./workspace.js";
44
44
  export * from "./surfaces.js";
45
45
  export * from "./execution.js";
46
46
  export * from "./computer.js";
package/dist/index.js CHANGED
@@ -720,6 +720,10 @@ var WorkspaceApi = class {
720
720
  snapshot(options = {}) {
721
721
  return this.mw.http.request("GET", "/workspace", { query: options });
722
722
  }
723
+ /** Reuse the workspace's existing harness profile or create one for setup. Atomic across clients. */
724
+ ensureAgent(request) {
725
+ return this.mw.http.request("POST", "/workspace/agents/ensure", { body: request });
726
+ }
723
727
  library() {
724
728
  return this.mw.http.request("GET", "/workspace/project-library");
725
729
  }
@@ -1114,7 +1118,7 @@ function computerPairingURI(invitation) {
1114
1118
  }
1115
1119
 
1116
1120
  // src/version.ts
1117
- var SDK_VERSION = "0.1.44" ;
1121
+ var SDK_VERSION = "0.1.46" ;
1118
1122
  function versionAtLeast(actual, desired) {
1119
1123
  if (actual === desired) return true;
1120
1124
  if (!actual || !/^\d+\.\d+\.\d+$/.test(actual) || !/^\d+\.\d+\.\d+$/.test(desired)) return false;