mindwire 0.1.50 → 0.1.51
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-MUDCOEC5.js → chunk-TBAZGPSH.js} +3 -3
- package/dist/{chunk-MUDCOEC5.js.map → chunk-TBAZGPSH.js.map} +1 -1
- package/dist/{chunk-3LN2KXJK.js → chunk-Y4I2YV4K.js} +47 -7
- package/dist/chunk-Y4I2YV4K.js.map +1 -0
- package/dist/cli.js +2 -2
- package/dist/client.d.ts +2 -0
- package/dist/{connection-change-ZYFBOPEE.js → connection-change-S6AMKQ7M.js} +3 -3
- package/dist/{connection-change-ZYFBOPEE.js.map → connection-change-S6AMKQ7M.js.map} +1 -1
- package/dist/{controller-63NGJNKK.js → controller-4LMRYXEB.js} +4 -4
- package/dist/{controller-63NGJNKK.js.map → controller-4LMRYXEB.js.map} +1 -1
- package/dist/{controller-handoff-YB6DMOUW.js → controller-handoff-N6EFQJZU.js} +3 -3
- package/dist/{controller-handoff-YB6DMOUW.js.map → controller-handoff-N6EFQJZU.js.map} +1 -1
- package/dist/index.cjs +43 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +43 -3
- package/dist/index.js.map +1 -1
- package/dist/native-sessions.d.ts +96 -0
- package/dist/types.d.ts +6 -0
- package/dist/workspace.d.ts +6 -4
- package/package.json +1 -1
- package/dist/chunk-3LN2KXJK.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export { Mindwire, AuthApi, PromptsApi, McpApi, ProvidersApi, NotifyApi } from "
|
|
|
9
9
|
export type { MindwireOptions, AgentScoped } from "./client.js";
|
|
10
10
|
export { Run } from "./run.js";
|
|
11
11
|
export { VoiceApi, VoiceSession } from "./voice.js";
|
|
12
|
+
export * from "./native-sessions.js";
|
|
12
13
|
export type { StreamOptions, WaitResult } from "./run.js";
|
|
13
14
|
export { Http } from "./http.js";
|
|
14
15
|
export type { HttpOptions, FetchLike, RequestInitLike, BaseResolver, TokenGetter } from "./http.js";
|
package/dist/index.js
CHANGED
|
@@ -790,7 +790,7 @@ var GitAccessApi = class {
|
|
|
790
790
|
run(projectId, operation, auth) {
|
|
791
791
|
return this.mw.http.request("POST", `/workspace/projects/${encodeURIComponent(projectId)}/git/${operation}`, { body: { auth } });
|
|
792
792
|
}
|
|
793
|
-
/** Requires health.gitOperationsVersion >= 1 (>= 2 for switch/create, >= 4 for restore_commit, >= 5 for rename/delete). Acceptance persists before Git runs;
|
|
793
|
+
/** Requires health.gitOperationsVersion >= 1 (>= 2 for switch/create, >= 4 for restore_commit, >= 5 for rename/delete, >= 6 for commit auth). Acceptance persists before Git runs;
|
|
794
794
|
* disconnecting only detaches the client. The same ID/intent never runs twice.
|
|
795
795
|
*/
|
|
796
796
|
start(projectId, request) {
|
|
@@ -1224,8 +1224,45 @@ var VoiceSession = class {
|
|
|
1224
1224
|
}
|
|
1225
1225
|
};
|
|
1226
1226
|
|
|
1227
|
+
// src/native-sessions.ts
|
|
1228
|
+
var NativeSessionsApi = class {
|
|
1229
|
+
constructor(client) {
|
|
1230
|
+
this.client = client;
|
|
1231
|
+
}
|
|
1232
|
+
client;
|
|
1233
|
+
path(chatId) {
|
|
1234
|
+
return `/chats/${encodeURIComponent(chatId)}/native`;
|
|
1235
|
+
}
|
|
1236
|
+
/** A cheap, coalesced status lookup. Does not resume or launch a conversation. */
|
|
1237
|
+
activity(chatId, options = {}) {
|
|
1238
|
+
return this.client.http.request("GET", this.path(chatId), {
|
|
1239
|
+
query: { agent: options.agent ?? this.client.defaultAgent },
|
|
1240
|
+
signal: options.signal
|
|
1241
|
+
});
|
|
1242
|
+
}
|
|
1243
|
+
/** Breaking the loop detaches only this viewer. No automatic command resends.
|
|
1244
|
+
* On a replacement snapshot, replace the live projection; on resume, retain it.
|
|
1245
|
+
* Persist the cursor after applying each frame, then reuse it on reconnection. */
|
|
1246
|
+
async *events(chatId, options = {}) {
|
|
1247
|
+
const response = await this.client.http.open("GET", `${this.path(chatId)}/events`, {
|
|
1248
|
+
query: { agent: options.agent ?? this.client.defaultAgent, cursor: options.cursor },
|
|
1249
|
+
signal: options.signal
|
|
1250
|
+
});
|
|
1251
|
+
yield* readSSE(response.body, options.signal);
|
|
1252
|
+
}
|
|
1253
|
+
/** Send, stop the exact turn, or answer a pending question. An unknown outcome
|
|
1254
|
+
* requires checking the conversation; do not retry with a fresh requestId. */
|
|
1255
|
+
action(chatId, action, options = {}) {
|
|
1256
|
+
return this.client.http.request("POST", `${this.path(chatId)}/actions`, {
|
|
1257
|
+
query: { agent: options.agent ?? this.client.defaultAgent },
|
|
1258
|
+
body: action,
|
|
1259
|
+
signal: options.signal
|
|
1260
|
+
});
|
|
1261
|
+
}
|
|
1262
|
+
};
|
|
1263
|
+
|
|
1227
1264
|
// src/version.ts
|
|
1228
|
-
var SDK_VERSION = "0.1.
|
|
1265
|
+
var SDK_VERSION = "0.1.51" ;
|
|
1229
1266
|
function versionAtLeast(actual, desired) {
|
|
1230
1267
|
if (actual === desired) return true;
|
|
1231
1268
|
if (!actual || !/^\d+\.\d+\.\d+$/.test(actual) || !/^\d+\.\d+\.\d+$/.test(desired)) return false;
|
|
@@ -1546,6 +1583,7 @@ var Mindwire = class _Mindwire {
|
|
|
1546
1583
|
execution;
|
|
1547
1584
|
computer;
|
|
1548
1585
|
voice;
|
|
1586
|
+
nativeSessions;
|
|
1549
1587
|
http;
|
|
1550
1588
|
/** The default agent type applied to agent-scoped calls, if set. */
|
|
1551
1589
|
defaultAgent;
|
|
@@ -1585,6 +1623,7 @@ var Mindwire = class _Mindwire {
|
|
|
1585
1623
|
this.execution = new ExecutionApi(this);
|
|
1586
1624
|
this.computer = new ComputerApi(this);
|
|
1587
1625
|
this.voice = new VoiceApi(this);
|
|
1626
|
+
this.nativeSessions = new NativeSessionsApi(this);
|
|
1588
1627
|
this.auth = new AuthApi(this);
|
|
1589
1628
|
this.prompts = new PromptsApi(this);
|
|
1590
1629
|
this.mcp = new McpApi(this);
|
|
@@ -1611,6 +1650,7 @@ var Mindwire = class _Mindwire {
|
|
|
1611
1650
|
clone.execution = new ExecutionApi(clone);
|
|
1612
1651
|
clone.computer = new ComputerApi(clone);
|
|
1613
1652
|
clone.voice = new VoiceApi(clone);
|
|
1653
|
+
clone.nativeSessions = new NativeSessionsApi(clone);
|
|
1614
1654
|
clone.auth = new AuthApi(clone);
|
|
1615
1655
|
clone.prompts = new PromptsApi(clone);
|
|
1616
1656
|
clone.mcp = new McpApi(clone);
|
|
@@ -3339,6 +3379,6 @@ function clearCatalogCache() {
|
|
|
3339
3379
|
inflight = null;
|
|
3340
3380
|
}
|
|
3341
3381
|
|
|
3342
|
-
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, VoiceApi, VoiceSession, WorkspaceApi, WorkspaceCollection, catalogModels, catalogProvider, catalogProviders, clearCatalogCache, computerPairingQRData, computerPairingURI, docker, ensureDaemon, ensureDaemonBinary, loadCatalog, local, lookupModel, oblien, provisionContainer, provisionDocker, provisionOblien, provisionSsh, provisionSshContainer, remote, resolveLinuxDaemon, ssh, startEmbedded };
|
|
3382
|
+
export { AuthApi, ComputerApi, ContainerHost, ConversationsApi, ExecutionApi, GitAccessApi, Http, MODELS_DEV_URL, McpApi, Mindwire, NativeSessionsApi, NotifyApi, ProjectOperationsApi, ProjectSyncApi, ProjectSyncError, PromptsApi, ProvidersApi, Run, SDK_VERSION, ServiceApi, SurfacesApi, TerminalsApi, VoiceApi, VoiceSession, WorkspaceApi, WorkspaceCollection, catalogModels, catalogProvider, catalogProviders, clearCatalogCache, computerPairingQRData, computerPairingURI, docker, ensureDaemon, ensureDaemonBinary, loadCatalog, local, lookupModel, oblien, provisionContainer, provisionDocker, provisionOblien, provisionSsh, provisionSshContainer, remote, resolveLinuxDaemon, ssh, startEmbedded };
|
|
3343
3383
|
//# sourceMappingURL=index.js.map
|
|
3344
3384
|
//# sourceMappingURL=index.js.map
|