mindwire 0.1.30 → 0.1.32

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
@@ -36,7 +36,7 @@ export { ServiceApi } from "./service.js";
36
36
  export type { ServiceUpdateState, ServiceUpdateLease } from "./service.js";
37
37
  export { WorkspaceApi, WorkspaceCollection, ProjectOperationsApi, GitAccessApi } from "./workspace.js";
38
38
  export type { ProjectRequest, ProjectAuth, ProjectOperation, ProjectRemoveRequest, GitConnection, GitAccessState, ProjectGitState, GitAction, GitIdentity, GitIdentityScope, GitIdentitySettings, GitIdentityUpdate, GitOperationRequest, GitOperation } from "./workspace.js";
39
- export type { WorkspaceRecord, WorkspaceAgent, WorkspaceProject, WorkspaceChat, WorkspaceKind, WorkspaceInput, WorkspaceImport, WorkspaceSnapshot } from "./workspace.js";
39
+ export type { WorkspaceRecord, WorkspaceAgent, WorkspaceProject, WorkspaceChat, WorkspaceKind, WorkspaceInput, WorkspaceImport, WorkspaceSnapshot, ProjectIcon } from "./workspace.js";
40
40
  export * from "./surfaces.js";
41
41
  export * from "./execution.js";
42
42
  export * from "./computer.js";
package/dist/index.js CHANGED
@@ -511,6 +511,10 @@ var WorkspaceApi = class {
511
511
  snapshot(options = {}) {
512
512
  return this.mw.http.request("GET", "/workspace", { query: options });
513
513
  }
514
+ /** Read the saved icon, or preview a candidate relative path within the project. Requires projectIconsVersion >= 1. */
515
+ projectIcon(projectId, path) {
516
+ return this.mw.http.request("GET", `/workspace/projects/${encodeURIComponent(projectId)}/icon`, { query: { path } });
517
+ }
514
518
  /** Start an operation owned by the daemon. The same ID/payload returns the existing operation. */
515
519
  createProject(request) {
516
520
  return this.mw.http.request("POST", "/workspace/projects", { body: request });
@@ -567,7 +571,7 @@ var GitAccessApi = class {
567
571
  run(projectId, operation, auth) {
568
572
  return this.mw.http.request("POST", `/workspace/projects/${encodeURIComponent(projectId)}/git/${operation}`, { body: { auth } });
569
573
  }
570
- /** Requires health.gitOperationsVersion >= 1 (>= 2 for branches, >= 4 for restore_commit). Acceptance persists before Git runs;
574
+ /** Requires health.gitOperationsVersion >= 1 (>= 2 for switch/create, >= 4 for restore_commit, >= 5 for rename/delete). Acceptance persists before Git runs;
571
575
  * disconnecting only detaches the client. The same ID/intent never runs twice.
572
576
  */
573
577
  start(projectId, request) {
@@ -577,7 +581,7 @@ var GitAccessApi = class {
577
581
  const result = await this.mw.http.request(
578
582
  "GET",
579
583
  `/workspace/projects/${encodeURIComponent(projectId)}/git/operations`,
580
- { query: { active: activeOnly, actionsVersion: 4 } }
584
+ { query: { active: activeOnly, actionsVersion: 5 } }
581
585
  );
582
586
  return result.operations;
583
587
  }
@@ -831,7 +835,7 @@ function computerPairingURI(invitation) {
831
835
  }
832
836
 
833
837
  // src/version.ts
834
- var SDK_VERSION = "0.1.30" ;
838
+ var SDK_VERSION = "0.1.32" ;
835
839
  function versionAtLeast(actual, desired) {
836
840
  if (actual === desired) return true;
837
841
  if (!actual || !/^\d+\.\d+\.\d+$/.test(actual) || !/^\d+\.\d+\.\d+$/.test(desired)) return false;