mindwire 0.1.34 → 0.1.38
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-CG52TXCZ.js +3 -0
- package/dist/{binary-cache-VM7VHCEU.js.map → binary-cache-CG52TXCZ.js.map} +1 -1
- package/dist/{chunk-3QFDSYKC.js → chunk-CKTVMUS4.js} +547 -177
- package/dist/chunk-CKTVMUS4.js.map +1 -0
- package/dist/{chunk-3FR7BFAW.js → chunk-PFYKJ6LX.js} +56 -4
- package/dist/chunk-PFYKJ6LX.js.map +1 -0
- package/dist/chunk-QODJKRFK.js +20 -0
- package/dist/chunk-QODJKRFK.js.map +1 -0
- package/dist/cli.js +763 -32
- package/dist/cli.js.map +1 -1
- package/dist/client.d.ts +6 -8
- package/dist/computer/connection-change.d.ts +13 -0
- package/dist/computer/connection-flow.d.ts +3 -3
- package/dist/computer/directory-http.d.ts +8 -0
- package/dist/computer/discovery.d.ts +13 -0
- package/dist/computer/lifecycle.d.ts +2 -1
- package/dist/computer/managed-relay.d.ts +27 -0
- package/dist/computer/oblien-auth.d.ts +25 -0
- package/dist/computer/provider-errors.d.ts +9 -0
- package/dist/computer/provider-info.d.ts +7 -0
- package/dist/computer/provider-setup.d.ts +20 -0
- package/dist/computer/relay-health.d.ts +2 -2
- package/dist/computer/relay.d.ts +11 -3
- package/dist/computer/setup-prompt.d.ts +9 -0
- package/dist/computer.d.ts +27 -1
- package/dist/connection-change-5F4WNCYV.js +41 -0
- package/dist/connection-change-5F4WNCYV.js.map +1 -0
- package/dist/{controller-AGT6MCJG.js → controller-3SZI7TBW.js} +199 -279
- package/dist/controller-3SZI7TBW.js.map +1 -0
- package/dist/{controller-handoff-3LAYBJUL.js → controller-handoff-KV7WRDAI.js} +4 -4
- package/dist/{controller-handoff-3LAYBJUL.js.map → controller-handoff-KV7WRDAI.js.map} +1 -1
- package/dist/conversations.d.ts +57 -0
- package/dist/index.cjs +37 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +37 -9
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +16 -0
- package/dist/workspace.d.ts +2 -0
- package/package.json +5 -5
- package/dist/binary-cache-VM7VHCEU.js +0 -4
- package/dist/chunk-3FR7BFAW.js.map +0 -1
- package/dist/chunk-3QFDSYKC.js.map +0 -1
- package/dist/controller-AGT6MCJG.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -35,6 +35,8 @@ export * from "./types.js";
|
|
|
35
35
|
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
|
+
export { ConversationsApi } from "./conversations.js";
|
|
39
|
+
export type { Conversation, ConversationQuery, ConversationPage, ConversationOpenRequest, ConversationOpenResult } from "./conversations.js";
|
|
38
40
|
export { ProjectSyncApi, ProjectSyncError } from "./project-sync.js";
|
|
39
41
|
export type { ProjectSyncEntry, ProjectSyncCheckpoint, ProjectSyncRequest, ProjectSyncOperation, ProjectSyncConflict, ProjectSyncProgress } from "./project-sync.js";
|
|
40
42
|
export type { ProjectRequest, ProjectAuth, ProjectOperation, ProjectRemoveRequest, GitConnection, GitAccessState, ProjectGitState, GitAction, GitIdentity, GitIdentityScope, GitIdentitySettings, GitIdentityUpdate, GitOperationRequest, GitOperation } from "./workspace.js";
|
package/dist/index.js
CHANGED
|
@@ -590,6 +590,23 @@ var ProjectSyncApi = class {
|
|
|
590
590
|
}
|
|
591
591
|
};
|
|
592
592
|
|
|
593
|
+
// src/conversations.ts
|
|
594
|
+
var ConversationsApi = class {
|
|
595
|
+
constructor(mw) {
|
|
596
|
+
this.mw = mw;
|
|
597
|
+
}
|
|
598
|
+
mw;
|
|
599
|
+
/** Read-only; includes folders not registered as Mindwire projects. */
|
|
600
|
+
list(query = {}) {
|
|
601
|
+
return this.mw.http.request("GET", "/workspace/conversations", { query: { ...query } });
|
|
602
|
+
}
|
|
603
|
+
/** Idempotently associates the selected native session with its original folder.
|
|
604
|
+
* Use chatId with messages()/turn() and the ordinary chat APIs afterward. */
|
|
605
|
+
open(request) {
|
|
606
|
+
return this.mw.http.request("POST", "/workspace/conversations/open", { body: request });
|
|
607
|
+
}
|
|
608
|
+
};
|
|
609
|
+
|
|
593
610
|
// src/workspace.ts
|
|
594
611
|
var ProjectOperationsApi = class {
|
|
595
612
|
constructor(mw) {
|
|
@@ -661,6 +678,7 @@ var WorkspaceCollection = class {
|
|
|
661
678
|
var WorkspaceApi = class {
|
|
662
679
|
constructor(mw) {
|
|
663
680
|
this.mw = mw;
|
|
681
|
+
this.conversations = new ConversationsApi(mw);
|
|
664
682
|
this.sync = new ProjectSyncApi(mw);
|
|
665
683
|
this.git = new GitAccessApi(mw);
|
|
666
684
|
this.operations = new ProjectOperationsApi(mw);
|
|
@@ -669,6 +687,7 @@ var WorkspaceApi = class {
|
|
|
669
687
|
this.chats = new WorkspaceCollection(mw, "chats");
|
|
670
688
|
}
|
|
671
689
|
mw;
|
|
690
|
+
conversations;
|
|
672
691
|
sync;
|
|
673
692
|
git;
|
|
674
693
|
operations;
|
|
@@ -940,8 +959,17 @@ var ComputerApi = class {
|
|
|
940
959
|
info() {
|
|
941
960
|
return this.client.http.request("GET", "/computer");
|
|
942
961
|
}
|
|
943
|
-
|
|
944
|
-
return this.client.http.request("
|
|
962
|
+
discovery() {
|
|
963
|
+
return this.client.http.request("GET", "/computer/discovery");
|
|
964
|
+
}
|
|
965
|
+
configureDiscovery(enabled, url) {
|
|
966
|
+
return this.client.http.request("PUT", "/computer/discovery", { body: { enabled, url } });
|
|
967
|
+
}
|
|
968
|
+
directoryEnrollment(url, challenge) {
|
|
969
|
+
return this.client.http.request("POST", "/computer/discovery/enrollment", { body: { url, challenge } });
|
|
970
|
+
}
|
|
971
|
+
setRoutes(routes, connection) {
|
|
972
|
+
return this.client.http.request("PUT", "/computer/routes", { body: { routes, connection } });
|
|
945
973
|
}
|
|
946
974
|
updateStatus() {
|
|
947
975
|
return this.client.http.request("GET", "/computer/update");
|
|
@@ -1002,7 +1030,7 @@ function computerPairingURI(invitation) {
|
|
|
1002
1030
|
}
|
|
1003
1031
|
|
|
1004
1032
|
// src/version.ts
|
|
1005
|
-
var SDK_VERSION = "0.1.
|
|
1033
|
+
var SDK_VERSION = "0.1.38" ;
|
|
1006
1034
|
function versionAtLeast(actual, desired) {
|
|
1007
1035
|
if (actual === desired) return true;
|
|
1008
1036
|
if (!actual || !/^\d+\.\d+\.\d+$/.test(actual) || !/^\d+\.\d+\.\d+$/.test(desired)) return false;
|
|
@@ -1442,14 +1470,14 @@ var Mindwire = class _Mindwire {
|
|
|
1442
1470
|
}
|
|
1443
1471
|
/**
|
|
1444
1472
|
* `POST /chats/{id}/fork` — clone a chat into a new id (generated when `newChatId` is omitted).
|
|
1445
|
-
*
|
|
1446
|
-
*
|
|
1447
|
-
*
|
|
1448
|
-
*
|
|
1473
|
+
* Codex and Claude preserve native context. `beforeMessageId` excludes that prompt and every
|
|
1474
|
+
* later message; send the edited prompt to the returned chat with `turn`. Reuse `newChatId`
|
|
1475
|
+
* and the turn's `requestId` on retries. The source chat and filesystem are unchanged.
|
|
1476
|
+
* A source with a live turn returns 409; an unknown source returns 404.
|
|
1449
1477
|
*/
|
|
1450
1478
|
forkChat(chatId, opts = {}) {
|
|
1451
1479
|
return this.http.request("POST", `/chats/${encodeURIComponent(chatId)}/fork`, {
|
|
1452
|
-
body: opts
|
|
1480
|
+
body: opts
|
|
1453
1481
|
});
|
|
1454
1482
|
}
|
|
1455
1483
|
/**
|
|
@@ -3001,6 +3029,6 @@ function clearCatalogCache() {
|
|
|
3001
3029
|
inflight = null;
|
|
3002
3030
|
}
|
|
3003
3031
|
|
|
3004
|
-
export { AuthApi, ComputerApi, ContainerHost, ExecutionApi, GitAccessApi, Http, MODELS_DEV_URL, McpApi, Mindwire, NotifyApi, ProjectOperationsApi, ProjectSyncApi, ProjectSyncError, 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 };
|
|
3032
|
+
export { AuthApi, ComputerApi, ContainerHost, ConversationsApi, ExecutionApi, GitAccessApi, Http, MODELS_DEV_URL, McpApi, Mindwire, NotifyApi, ProjectOperationsApi, ProjectSyncApi, ProjectSyncError, 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 };
|
|
3005
3033
|
//# sourceMappingURL=index.js.map
|
|
3006
3034
|
//# sourceMappingURL=index.js.map
|