mindwire 0.1.54 → 0.1.55
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-P3JTWITC.js → chunk-5AEQY4BT.js} +30 -6
- package/dist/chunk-5AEQY4BT.js.map +1 -0
- package/dist/{chunk-ZNEFE6KD.js → chunk-OOUU5LO7.js} +3 -3
- package/dist/{chunk-ZNEFE6KD.js.map → chunk-OOUU5LO7.js.map} +1 -1
- package/dist/cli.js +2 -2
- package/dist/client.d.ts +2 -0
- package/dist/{connection-change-RVS6XWTC.js → connection-change-Q46D6YJL.js} +3 -3
- package/dist/{connection-change-RVS6XWTC.js.map → connection-change-Q46D6YJL.js.map} +1 -1
- package/dist/{controller-2WCEJ3F2.js → controller-UCMTGF5U.js} +4 -4
- package/dist/{controller-2WCEJ3F2.js.map → controller-UCMTGF5U.js.map} +1 -1
- package/dist/{controller-handoff-7EOSPHSD.js → controller-handoff-IPCAOMMB.js} +3 -3
- package/dist/{controller-handoff-7EOSPHSD.js.map → controller-handoff-IPCAOMMB.js.map} +1 -1
- package/dist/index.cjs +26 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +26 -2
- package/dist/index.js.map +1 -1
- package/dist/schedules.d.ts +25 -0
- package/dist/types.d.ts +1 -0
- package/package.json +1 -1
- package/dist/chunk-P3JTWITC.js.map +0 -1
|
@@ -88,7 +88,7 @@ function computerPairingURI(invitation) {
|
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
// src/version.ts
|
|
91
|
-
var SDK_VERSION = "0.1.
|
|
91
|
+
var SDK_VERSION = "0.1.55" ;
|
|
92
92
|
function versionAtLeast(actual, desired) {
|
|
93
93
|
if (actual === desired) return true;
|
|
94
94
|
if (!actual || !/^\d+\.\d+\.\d+$/.test(actual) || !/^\d+\.\d+\.\d+$/.test(desired)) return false;
|
|
@@ -1612,6 +1612,27 @@ var AppsApi = class {
|
|
|
1612
1612
|
}
|
|
1613
1613
|
};
|
|
1614
1614
|
|
|
1615
|
+
// src/schedules.ts
|
|
1616
|
+
var ChatSchedulesApi = class {
|
|
1617
|
+
constructor(mw) {
|
|
1618
|
+
this.mw = mw;
|
|
1619
|
+
}
|
|
1620
|
+
mw;
|
|
1621
|
+
list(chatId) {
|
|
1622
|
+
return this.mw.http.request("GET", this.path(chatId));
|
|
1623
|
+
}
|
|
1624
|
+
save(chatId, schedule) {
|
|
1625
|
+
return this.mw.http.request("POST", this.path(chatId), { body: schedule });
|
|
1626
|
+
}
|
|
1627
|
+
/** Stops future occurrences; an accepted turn continues through the ordinary run API. */
|
|
1628
|
+
delete(chatId, scheduleId) {
|
|
1629
|
+
return this.mw.http.request("DELETE", `${this.path(chatId)}/${encodeURIComponent(scheduleId)}`);
|
|
1630
|
+
}
|
|
1631
|
+
path(chatId) {
|
|
1632
|
+
return `/chats/${encodeURIComponent(chatId)}/schedules`;
|
|
1633
|
+
}
|
|
1634
|
+
};
|
|
1635
|
+
|
|
1615
1636
|
// src/integrations.ts
|
|
1616
1637
|
var IntegrationsApi = class {
|
|
1617
1638
|
constructor(mw) {
|
|
@@ -2247,6 +2268,7 @@ var Mindwire = class _Mindwire {
|
|
|
2247
2268
|
workspace;
|
|
2248
2269
|
bots;
|
|
2249
2270
|
apps;
|
|
2271
|
+
schedules;
|
|
2250
2272
|
integrations;
|
|
2251
2273
|
surfaces;
|
|
2252
2274
|
service;
|
|
@@ -2290,6 +2312,7 @@ var Mindwire = class _Mindwire {
|
|
|
2290
2312
|
this.workspace = new WorkspaceApi(this);
|
|
2291
2313
|
this.bots = new BotsApi(this);
|
|
2292
2314
|
this.apps = new AppsApi(this);
|
|
2315
|
+
this.schedules = new ChatSchedulesApi(this);
|
|
2293
2316
|
this.integrations = new IntegrationsApi(this);
|
|
2294
2317
|
this.surfaces = new SurfacesApi(this);
|
|
2295
2318
|
this.service = new ServiceApi(this);
|
|
@@ -2320,6 +2343,7 @@ var Mindwire = class _Mindwire {
|
|
|
2320
2343
|
clone.workspace = new WorkspaceApi(clone);
|
|
2321
2344
|
clone.bots = new BotsApi(clone);
|
|
2322
2345
|
clone.apps = new AppsApi(clone);
|
|
2346
|
+
clone.schedules = new ChatSchedulesApi(clone);
|
|
2323
2347
|
clone.integrations = new IntegrationsApi(clone);
|
|
2324
2348
|
clone.surfaces = new SurfacesApi(clone);
|
|
2325
2349
|
clone.service = new ServiceApi(clone);
|
|
@@ -3052,7 +3076,7 @@ async function ensureComputer(directory, cliPath, patch = {}, onProgress, option
|
|
|
3052
3076
|
if (!compatible(controller2) || !await processStateAlive(controller2)) {
|
|
3053
3077
|
await ensureComputer(directory, cliPath, {}, onProgress, { ...options, waitForRoutes: false });
|
|
3054
3078
|
}
|
|
3055
|
-
const { changeComputerConnection } = await import('./connection-change-
|
|
3079
|
+
const { changeComputerConnection } = await import('./connection-change-Q46D6YJL.js');
|
|
3056
3080
|
await changeComputerConnection(directory, Object.fromEntries(changed.map((key) => [key, patch[key]])), { signal: options.signal, onProgress });
|
|
3057
3081
|
return computerClient(directory);
|
|
3058
3082
|
}
|
|
@@ -3093,7 +3117,7 @@ async function ensureComputer(directory, cliPath, patch = {}, onProgress, option
|
|
|
3093
3117
|
let controller = await readJSON(path4.join(directory, "computer-controller.json"));
|
|
3094
3118
|
if (existing && controller && !compatible(controller) && await processStateAlive(controller)) {
|
|
3095
3119
|
onProgress?.("Refreshing the background connection service\u2026");
|
|
3096
|
-
const { handoffController } = await import('./controller-handoff-
|
|
3120
|
+
const { handoffController } = await import('./controller-handoff-IPCAOMMB.js');
|
|
3097
3121
|
await handoffController(directory, controller, config, await existing.computer.info());
|
|
3098
3122
|
controller = void 0;
|
|
3099
3123
|
}
|
|
@@ -3127,7 +3151,7 @@ async function ensureComputer(directory, cliPath, patch = {}, onProgress, option
|
|
|
3127
3151
|
}
|
|
3128
3152
|
}
|
|
3129
3153
|
async function superviseComputer(directory) {
|
|
3130
|
-
const controller = await import('./controller-
|
|
3154
|
+
const controller = await import('./controller-UCMTGF5U.js');
|
|
3131
3155
|
await controller.superviseComputer(directory);
|
|
3132
3156
|
}
|
|
3133
3157
|
async function stopComputer(directory, force = false) {
|
|
@@ -3152,5 +3176,5 @@ async function stopComputer(directory, force = false) {
|
|
|
3152
3176
|
}
|
|
3153
3177
|
|
|
3154
3178
|
export { CONTROLLER_PROTOCOL, ProviderConnectionError, RelayOutput, SDK_VERSION, acquireProcessLock, adoptProcess, adoptRelay, cloudflareCommand, computerClient, computerPairingQRData, computerPairingURI, currentProcessIdentity, defaultComputerConfig, defaultStateDirectory, directRoutes, ensureComputer, ensureDaemonBinary, hasCertificateError, ownChild, processIdentity, processStateAlive, providerFailure, providerNeedsAction, readJSON, startRelay, stopComputer, superviseComputer, versionAtLeast, websocketURL, writeJSON };
|
|
3155
|
-
//# sourceMappingURL=chunk-
|
|
3156
|
-
//# sourceMappingURL=chunk-
|
|
3179
|
+
//# sourceMappingURL=chunk-5AEQY4BT.js.map
|
|
3180
|
+
//# sourceMappingURL=chunk-5AEQY4BT.js.map
|