mindwire 0.1.24 → 0.1.26
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/binary-cache-VM7VHCEU.js +4 -0
- package/dist/{binary-cache-CG52TXCZ.js.map → binary-cache-VM7VHCEU.js.map} +1 -1
- package/dist/{chunk-PFYKJ6LX.js → chunk-3FR7BFAW.js} +4 -56
- package/dist/chunk-3FR7BFAW.js.map +1 -0
- package/dist/chunk-L3USUTZZ.js +2021 -0
- package/dist/chunk-L3USUTZZ.js.map +1 -0
- package/dist/cli.js +447 -2167
- package/dist/cli.js.map +1 -1
- package/dist/client.d.ts +12 -2
- package/dist/computer/controller.d.ts +3 -0
- package/dist/computer/lifecycle.d.ts +13 -3
- package/dist/computer/lock.d.ts +11 -0
- package/dist/computer/pairing-display.d.ts +23 -0
- package/dist/computer/process.d.ts +26 -0
- package/dist/computer/relay.d.ts +5 -1
- package/dist/computer/startup.d.ts +38 -0
- package/dist/computer.d.ts +20 -0
- package/dist/controller-CGSJZZZD.js +496 -0
- package/dist/controller-CGSJZZZD.js.map +1 -0
- package/dist/index.cjs +28 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +28 -10
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +1 -0
- package/dist/workspace.d.ts +16 -2
- package/package.json +1 -1
- package/dist/binary-cache-CG52TXCZ.js +0 -3
- package/dist/chunk-PFYKJ6LX.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -638,8 +638,8 @@ var WorkspaceApi = class {
|
|
|
638
638
|
agents;
|
|
639
639
|
projects;
|
|
640
640
|
chats;
|
|
641
|
-
snapshot() {
|
|
642
|
-
return this.mw.http.request("GET", "/workspace");
|
|
641
|
+
snapshot(options = {}) {
|
|
642
|
+
return this.mw.http.request("GET", "/workspace", { query: options });
|
|
643
643
|
}
|
|
644
644
|
/** Start an operation owned by the daemon. The same ID/payload returns the existing operation. */
|
|
645
645
|
createProject(request) {
|
|
@@ -654,8 +654,8 @@ var WorkspaceApi = class {
|
|
|
654
654
|
/** Incremental reconciliation. Pass the previous identity to detect a replaced/restored workspace.
|
|
655
655
|
* A 409 requires fetching snapshot() again; never apply a delta to a different registry.
|
|
656
656
|
*/
|
|
657
|
-
changes(since, workspaceId) {
|
|
658
|
-
return this.mw.http.request("GET", "/workspace/changes", { query: { since, workspaceId } });
|
|
657
|
+
changes(since, workspaceId, options = {}) {
|
|
658
|
+
return this.mw.http.request("GET", "/workspace/changes", { query: { since, workspaceId, ...options } });
|
|
659
659
|
}
|
|
660
660
|
/** Import legacy metadata before replacing a local cache. Safe to repeat after interruption. */
|
|
661
661
|
import(records) {
|
|
@@ -924,9 +924,23 @@ var ComputerApi = class {
|
|
|
924
924
|
revoke(id) {
|
|
925
925
|
return this.client.http.request("DELETE", `/computer/devices/${encodeURIComponent(id)}`);
|
|
926
926
|
}
|
|
927
|
+
forwards() {
|
|
928
|
+
return this.client.http.request("GET", "/computer/forwards");
|
|
929
|
+
}
|
|
930
|
+
/** Authorize a loopback port for this paired device. Renew the same ID every 30s;
|
|
931
|
+
* grants expire after two minutes. Carry traffic using SSH direct-tcpip. */
|
|
932
|
+
forward(request) {
|
|
933
|
+
return this.client.http.request("POST", "/computer/forwards", { body: request });
|
|
934
|
+
}
|
|
935
|
+
closeForward(id) {
|
|
936
|
+
return this.client.http.request("DELETE", `/computer/forwards/${encodeURIComponent(id)}`);
|
|
937
|
+
}
|
|
927
938
|
};
|
|
939
|
+
function computerPairingQRData(invitation) {
|
|
940
|
+
return JSON.stringify(invitation);
|
|
941
|
+
}
|
|
928
942
|
function computerPairingURI(invitation) {
|
|
929
|
-
const bytes = new TextEncoder().encode(
|
|
943
|
+
const bytes = new TextEncoder().encode(computerPairingQRData(invitation));
|
|
930
944
|
let binary = "";
|
|
931
945
|
for (const byte of bytes) binary += String.fromCharCode(byte);
|
|
932
946
|
const encoded = btoa(binary).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
@@ -940,7 +954,7 @@ init_errors();
|
|
|
940
954
|
init_errors();
|
|
941
955
|
|
|
942
956
|
// src/version.ts
|
|
943
|
-
var SDK_VERSION = "0.1.
|
|
957
|
+
var SDK_VERSION = "0.1.26" ;
|
|
944
958
|
|
|
945
959
|
// src/daemon-binary.ts
|
|
946
960
|
function supported(platform, arch) {
|
|
@@ -1343,9 +1357,12 @@ var Mindwire = class _Mindwire {
|
|
|
1343
1357
|
});
|
|
1344
1358
|
}
|
|
1345
1359
|
// ---- chats & history -----------------------------------------------------
|
|
1346
|
-
/**
|
|
1347
|
-
|
|
1348
|
-
|
|
1360
|
+
/** Native project conversations and drafts, newest first, shared across agents.
|
|
1361
|
+
* `cwd` matches an exact directory; `projectId` selects saved membership.
|
|
1362
|
+
* `refresh` bypasses the daemon's short native metadata cache.
|
|
1363
|
+
*/
|
|
1364
|
+
chats(options = {}) {
|
|
1365
|
+
return this.http.request("GET", "/chats", { query: options });
|
|
1349
1366
|
}
|
|
1350
1367
|
/**
|
|
1351
1368
|
* `PUT /chats/{id}` — rename a chat. The user title wins over the agent's native auto-title in
|
|
@@ -1413,6 +1430,7 @@ var Mindwire = class _Mindwire {
|
|
|
1413
1430
|
chatId: input.chatId,
|
|
1414
1431
|
message: input.message
|
|
1415
1432
|
};
|
|
1433
|
+
if (input.requestId !== void 0) body.requestId = input.requestId;
|
|
1416
1434
|
if (input.cwd !== void 0) body.cwd = input.cwd;
|
|
1417
1435
|
if (input.options !== void 0) body.options = input.options;
|
|
1418
1436
|
if (input.mode !== void 0) body.mode = input.mode;
|
|
@@ -2945,6 +2963,7 @@ exports.catalogModels = catalogModels;
|
|
|
2945
2963
|
exports.catalogProvider = catalogProvider;
|
|
2946
2964
|
exports.catalogProviders = catalogProviders;
|
|
2947
2965
|
exports.clearCatalogCache = clearCatalogCache;
|
|
2966
|
+
exports.computerPairingQRData = computerPairingQRData;
|
|
2948
2967
|
exports.computerPairingURI = computerPairingURI;
|
|
2949
2968
|
exports.docker = docker;
|
|
2950
2969
|
exports.ensureDaemon = ensureDaemon;
|