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.
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mindwire",
3
- "version": "0.1.54",
3
+ "version": "0.1.55",
4
4
  "main": "./dist/index.cjs",
5
5
  "module": "./dist/index.js",
6
6
  "bin": {