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.js
CHANGED
|
@@ -508,8 +508,8 @@ var WorkspaceApi = class {
|
|
|
508
508
|
agents;
|
|
509
509
|
projects;
|
|
510
510
|
chats;
|
|
511
|
-
snapshot() {
|
|
512
|
-
return this.mw.http.request("GET", "/workspace");
|
|
511
|
+
snapshot(options = {}) {
|
|
512
|
+
return this.mw.http.request("GET", "/workspace", { query: options });
|
|
513
513
|
}
|
|
514
514
|
/** Start an operation owned by the daemon. The same ID/payload returns the existing operation. */
|
|
515
515
|
createProject(request) {
|
|
@@ -524,8 +524,8 @@ var WorkspaceApi = class {
|
|
|
524
524
|
/** Incremental reconciliation. Pass the previous identity to detect a replaced/restored workspace.
|
|
525
525
|
* A 409 requires fetching snapshot() again; never apply a delta to a different registry.
|
|
526
526
|
*/
|
|
527
|
-
changes(since, workspaceId) {
|
|
528
|
-
return this.mw.http.request("GET", "/workspace/changes", { query: { since, workspaceId } });
|
|
527
|
+
changes(since, workspaceId, options = {}) {
|
|
528
|
+
return this.mw.http.request("GET", "/workspace/changes", { query: { since, workspaceId, ...options } });
|
|
529
529
|
}
|
|
530
530
|
/** Import legacy metadata before replacing a local cache. Safe to repeat after interruption. */
|
|
531
531
|
import(records) {
|
|
@@ -806,8 +806,11 @@ var ComputerApi = class {
|
|
|
806
806
|
return this.client.http.request("DELETE", `/computer/forwards/${encodeURIComponent(id)}`);
|
|
807
807
|
}
|
|
808
808
|
};
|
|
809
|
+
function computerPairingQRData(invitation) {
|
|
810
|
+
return JSON.stringify(invitation);
|
|
811
|
+
}
|
|
809
812
|
function computerPairingURI(invitation) {
|
|
810
|
-
const bytes = new TextEncoder().encode(
|
|
813
|
+
const bytes = new TextEncoder().encode(computerPairingQRData(invitation));
|
|
811
814
|
let binary = "";
|
|
812
815
|
for (const byte of bytes) binary += String.fromCharCode(byte);
|
|
813
816
|
const encoded = btoa(binary).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
@@ -815,7 +818,7 @@ function computerPairingURI(invitation) {
|
|
|
815
818
|
}
|
|
816
819
|
|
|
817
820
|
// src/version.ts
|
|
818
|
-
var SDK_VERSION = "0.1.
|
|
821
|
+
var SDK_VERSION = "0.1.26" ;
|
|
819
822
|
|
|
820
823
|
// src/daemon-binary.ts
|
|
821
824
|
function supported(platform, arch) {
|
|
@@ -1218,9 +1221,12 @@ var Mindwire = class _Mindwire {
|
|
|
1218
1221
|
});
|
|
1219
1222
|
}
|
|
1220
1223
|
// ---- chats & history -----------------------------------------------------
|
|
1221
|
-
/**
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
+
/** Native project conversations and drafts, newest first, shared across agents.
|
|
1225
|
+
* `cwd` matches an exact directory; `projectId` selects saved membership.
|
|
1226
|
+
* `refresh` bypasses the daemon's short native metadata cache.
|
|
1227
|
+
*/
|
|
1228
|
+
chats(options = {}) {
|
|
1229
|
+
return this.http.request("GET", "/chats", { query: options });
|
|
1224
1230
|
}
|
|
1225
1231
|
/**
|
|
1226
1232
|
* `PUT /chats/{id}` — rename a chat. The user title wins over the agent's native auto-title in
|
|
@@ -1288,6 +1294,7 @@ var Mindwire = class _Mindwire {
|
|
|
1288
1294
|
chatId: input.chatId,
|
|
1289
1295
|
message: input.message
|
|
1290
1296
|
};
|
|
1297
|
+
if (input.requestId !== void 0) body.requestId = input.requestId;
|
|
1291
1298
|
if (input.cwd !== void 0) body.cwd = input.cwd;
|
|
1292
1299
|
if (input.options !== void 0) body.options = input.options;
|
|
1293
1300
|
if (input.mode !== void 0) body.mode = input.mode;
|
|
@@ -2786,6 +2793,6 @@ function clearCatalogCache() {
|
|
|
2786
2793
|
inflight = null;
|
|
2787
2794
|
}
|
|
2788
2795
|
|
|
2789
|
-
export { AuthApi, ComputerApi, ContainerHost, ExecutionApi, GitAccessApi, Http, MODELS_DEV_URL, McpApi, Mindwire, NotifyApi, ProjectOperationsApi, PromptsApi, ProvidersApi, Run, SDK_VERSION, ServiceApi, SurfacesApi, TerminalsApi, WorkspaceApi, WorkspaceCollection, catalogModels, catalogProvider, catalogProviders, clearCatalogCache, computerPairingURI, docker, ensureDaemon, ensureDaemonBinary, loadCatalog, local, lookupModel, oblien, provisionContainer, provisionDocker, provisionOblien, provisionSsh, provisionSshContainer, remote, resolveLinuxDaemon, ssh, startEmbedded };
|
|
2796
|
+
export { AuthApi, ComputerApi, ContainerHost, ExecutionApi, GitAccessApi, Http, MODELS_DEV_URL, McpApi, Mindwire, NotifyApi, ProjectOperationsApi, PromptsApi, ProvidersApi, Run, SDK_VERSION, ServiceApi, SurfacesApi, TerminalsApi, WorkspaceApi, WorkspaceCollection, catalogModels, catalogProvider, catalogProviders, clearCatalogCache, computerPairingQRData, computerPairingURI, docker, ensureDaemon, ensureDaemonBinary, loadCatalog, local, lookupModel, oblien, provisionContainer, provisionDocker, provisionOblien, provisionSsh, provisionSshContainer, remote, resolveLinuxDaemon, ssh, startEmbedded };
|
|
2790
2797
|
//# sourceMappingURL=index.js.map
|
|
2791
2798
|
//# sourceMappingURL=index.js.map
|