mindwire 0.1.25 → 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 -2178
- 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 +4 -0
- package/dist/controller-CGSJZZZD.js +496 -0
- package/dist/controller-CGSJZZZD.js.map +1 -0
- package/dist/index.cjs +17 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +17 -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) {
|
|
@@ -936,8 +936,11 @@ var ComputerApi = class {
|
|
|
936
936
|
return this.client.http.request("DELETE", `/computer/forwards/${encodeURIComponent(id)}`);
|
|
937
937
|
}
|
|
938
938
|
};
|
|
939
|
+
function computerPairingQRData(invitation) {
|
|
940
|
+
return JSON.stringify(invitation);
|
|
941
|
+
}
|
|
939
942
|
function computerPairingURI(invitation) {
|
|
940
|
-
const bytes = new TextEncoder().encode(
|
|
943
|
+
const bytes = new TextEncoder().encode(computerPairingQRData(invitation));
|
|
941
944
|
let binary = "";
|
|
942
945
|
for (const byte of bytes) binary += String.fromCharCode(byte);
|
|
943
946
|
const encoded = btoa(binary).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
@@ -951,7 +954,7 @@ init_errors();
|
|
|
951
954
|
init_errors();
|
|
952
955
|
|
|
953
956
|
// src/version.ts
|
|
954
|
-
var SDK_VERSION = "0.1.
|
|
957
|
+
var SDK_VERSION = "0.1.26" ;
|
|
955
958
|
|
|
956
959
|
// src/daemon-binary.ts
|
|
957
960
|
function supported(platform, arch) {
|
|
@@ -1354,9 +1357,12 @@ var Mindwire = class _Mindwire {
|
|
|
1354
1357
|
});
|
|
1355
1358
|
}
|
|
1356
1359
|
// ---- chats & history -----------------------------------------------------
|
|
1357
|
-
/**
|
|
1358
|
-
|
|
1359
|
-
|
|
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 });
|
|
1360
1366
|
}
|
|
1361
1367
|
/**
|
|
1362
1368
|
* `PUT /chats/{id}` — rename a chat. The user title wins over the agent's native auto-title in
|
|
@@ -1424,6 +1430,7 @@ var Mindwire = class _Mindwire {
|
|
|
1424
1430
|
chatId: input.chatId,
|
|
1425
1431
|
message: input.message
|
|
1426
1432
|
};
|
|
1433
|
+
if (input.requestId !== void 0) body.requestId = input.requestId;
|
|
1427
1434
|
if (input.cwd !== void 0) body.cwd = input.cwd;
|
|
1428
1435
|
if (input.options !== void 0) body.options = input.options;
|
|
1429
1436
|
if (input.mode !== void 0) body.mode = input.mode;
|
|
@@ -2956,6 +2963,7 @@ exports.catalogModels = catalogModels;
|
|
|
2956
2963
|
exports.catalogProvider = catalogProvider;
|
|
2957
2964
|
exports.catalogProviders = catalogProviders;
|
|
2958
2965
|
exports.clearCatalogCache = clearCatalogCache;
|
|
2966
|
+
exports.computerPairingQRData = computerPairingQRData;
|
|
2959
2967
|
exports.computerPairingURI = computerPairingURI;
|
|
2960
2968
|
exports.docker = docker;
|
|
2961
2969
|
exports.ensureDaemon = ensureDaemon;
|