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
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { Mindwire } from "./client.js";
|
|
2
|
+
import type { AppSchedule, AppScheduleSpec } from "./apps.js";
|
|
3
|
+
/** Work to repeat in an existing conversation, using its native context and permissions. */
|
|
4
|
+
export type ChatScheduleSpec = Omit<AppScheduleSpec, "command" | "title" | "body"> & {
|
|
5
|
+
prompt: string;
|
|
6
|
+
};
|
|
7
|
+
export type ChatSchedule = Omit<AppSchedule, "appId" | "command" | "title" | "body"> & {
|
|
8
|
+
chatId: string;
|
|
9
|
+
prompt: string;
|
|
10
|
+
/** Present while the scheduled turn is attached. */
|
|
11
|
+
runId?: string;
|
|
12
|
+
lastRunId?: string;
|
|
13
|
+
};
|
|
14
|
+
/** Requires chatSchedulesVersion >= 1. Uses the same job engine as Apps. */
|
|
15
|
+
export declare class ChatSchedulesApi {
|
|
16
|
+
private readonly mw;
|
|
17
|
+
constructor(mw: Mindwire);
|
|
18
|
+
list(chatId: string): Promise<ChatSchedule[]>;
|
|
19
|
+
save(chatId: string, schedule: ChatScheduleSpec): Promise<ChatSchedule>;
|
|
20
|
+
/** Stops future occurrences; an accepted turn continues through the ordinary run API. */
|
|
21
|
+
delete(chatId: string, scheduleId: string): Promise<{
|
|
22
|
+
removed: boolean;
|
|
23
|
+
}>;
|
|
24
|
+
private path;
|
|
25
|
+
}
|
package/dist/types.d.ts
CHANGED
|
@@ -1123,6 +1123,7 @@ export interface Health {
|
|
|
1123
1123
|
workspaceMetadataVersion?: number;
|
|
1124
1124
|
botsVersion?: number;
|
|
1125
1125
|
appsVersion?: number;
|
|
1126
|
+
chatSchedulesVersion?: number;
|
|
1126
1127
|
integrationsVersion?: number;
|
|
1127
1128
|
/** Native installed-harness discovery and atomic workspace.ensureAgent(). */
|
|
1128
1129
|
agentDiscoveryVersion?: number;
|