mindwire 0.1.29 → 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/{chunk-QPZMGVY7.js → chunk-5X5PAFM7.js} +40 -13
- package/dist/chunk-5X5PAFM7.js.map +1 -0
- package/dist/cli.js +59 -18
- package/dist/cli.js.map +1 -1
- package/dist/computer/connection-flow.d.ts +3 -0
- package/dist/computer/connection-progress.d.ts +14 -0
- package/dist/computer/controller-handoff.d.ts +6 -0
- package/dist/computer/lifecycle.d.ts +5 -0
- package/dist/computer/relay-health.d.ts +21 -0
- package/dist/computer/relay-output.d.ts +19 -0
- package/dist/computer/relay.d.ts +4 -1
- package/dist/computer.d.ts +5 -2
- package/dist/{controller-MNMIJHH5.js → controller-CHJ5MMZS.js} +335 -111
- package/dist/controller-CHJ5MMZS.js.map +1 -0
- package/dist/controller-handoff-7S6SKFHX.js +71 -0
- package/dist/controller-handoff-7S6SKFHX.js.map +1 -0
- package/dist/index.cjs +16 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +16 -12
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +2 -0
- package/dist/version.d.ts +1 -0
- package/dist/workspace.d.ts +21 -4
- package/package.json +7 -3
- package/dist/chunk-QPZMGVY7.js.map +0 -1
- package/dist/controller-MNMIJHH5.js.map +0 -1
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
|
|
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:
|
|
584
|
+
{ query: { active: activeOnly, actionsVersion: 5 } }
|
|
581
585
|
);
|
|
582
586
|
return result.operations;
|
|
583
587
|
}
|
|
@@ -831,7 +835,16 @@ function computerPairingURI(invitation) {
|
|
|
831
835
|
}
|
|
832
836
|
|
|
833
837
|
// src/version.ts
|
|
834
|
-
var SDK_VERSION = "0.1.
|
|
838
|
+
var SDK_VERSION = "0.1.32" ;
|
|
839
|
+
function versionAtLeast(actual, desired) {
|
|
840
|
+
if (actual === desired) return true;
|
|
841
|
+
if (!actual || !/^\d+\.\d+\.\d+$/.test(actual) || !/^\d+\.\d+\.\d+$/.test(desired)) return false;
|
|
842
|
+
const a = actual.split(".").map(Number), b = desired.split(".").map(Number);
|
|
843
|
+
for (let i = 0; i < 3; i++) {
|
|
844
|
+
if (a[i] !== b[i]) return a[i] > b[i];
|
|
845
|
+
}
|
|
846
|
+
return true;
|
|
847
|
+
}
|
|
835
848
|
|
|
836
849
|
// src/daemon-binary.ts
|
|
837
850
|
function supported(platform, arch) {
|
|
@@ -1701,15 +1714,6 @@ var NotifyApi = class {
|
|
|
1701
1714
|
};
|
|
1702
1715
|
|
|
1703
1716
|
// src/target/host.ts
|
|
1704
|
-
function versionAtLeast(actual, desired) {
|
|
1705
|
-
if (actual === desired) return true;
|
|
1706
|
-
if (!actual || !/^\d+\.\d+\.\d+$/.test(actual) || !/^\d+\.\d+\.\d+$/.test(desired)) return false;
|
|
1707
|
-
const a = actual.split(".").map(Number), b = desired.split(".").map(Number);
|
|
1708
|
-
for (let i = 0; i < 3; i++) {
|
|
1709
|
-
if (a[i] !== b[i]) return a[i] > b[i];
|
|
1710
|
-
}
|
|
1711
|
-
return true;
|
|
1712
|
-
}
|
|
1713
1717
|
var versionCheckScript = String.raw`version_at_least() {
|
|
1714
1718
|
[ "$1" != "$2" ] || return 0
|
|
1715
1719
|
[[ "$1" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] && [[ "$2" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] || return 1
|