mindwire 0.1.14 → 0.1.15
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/index.cjs +18 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +18 -7
- package/dist/index.js.map +1 -1
- package/dist/run.d.ts +3 -2
- package/dist/surfaces.d.ts +4 -0
- package/dist/types.d.ts +10 -1
- package/dist/workspace.d.ts +4 -0
- package/package.json +1 -1
package/dist/run.d.ts
CHANGED
|
@@ -53,8 +53,9 @@ export declare class Run {
|
|
|
53
53
|
/** Cancel the in-flight turn (kills the underlying agent process). */
|
|
54
54
|
cancel(): Promise<void>;
|
|
55
55
|
/**
|
|
56
|
-
* Answer a
|
|
57
|
-
*
|
|
56
|
+
* Answer a pending permission, question or plan. Message-mode questions remain answerable
|
|
57
|
+
* after completion; the daemon steers or resumes the conversation. Read the chat's latest
|
|
58
|
+
* run after replying to a completed run. Requires the agent's `respond` capability.
|
|
58
59
|
*/
|
|
59
60
|
respond(input?: RespondInput): Promise<void>;
|
|
60
61
|
/**
|
package/dist/surfaces.d.ts
CHANGED
|
@@ -16,6 +16,8 @@ export interface SurfaceCapabilities {
|
|
|
16
16
|
text: boolean;
|
|
17
17
|
clipboardRead: boolean;
|
|
18
18
|
clipboardWrite: boolean;
|
|
19
|
+
keyboardText?: boolean;
|
|
20
|
+
extendedKeys?: boolean;
|
|
19
21
|
}
|
|
20
22
|
export interface SurfaceController {
|
|
21
23
|
sessionId: string;
|
|
@@ -101,6 +103,8 @@ export interface SurfaceAction {
|
|
|
101
103
|
deltaY?: number;
|
|
102
104
|
keys?: string[];
|
|
103
105
|
text?: string;
|
|
106
|
+
/** Physical US keyboard text (printable ASCII, <=4096 bytes), preserving the clipboard. */
|
|
107
|
+
textMode?: "keyboard";
|
|
104
108
|
}
|
|
105
109
|
export interface SurfaceActionRequest {
|
|
106
110
|
/** Reuse this ID to inspect/recover an uncertain acknowledgement. Do not replay with a new ID. */
|
package/dist/types.d.ts
CHANGED
|
@@ -235,6 +235,12 @@ export interface Interaction {
|
|
|
235
235
|
/** Whether approval feedback is accepted for all actions, or only a rejection. */
|
|
236
236
|
feedback?: "always" | "rejection";
|
|
237
237
|
needsResponse?: boolean;
|
|
238
|
+
/** Async questions use native user messages and remain answerable after turn completion. */
|
|
239
|
+
responseMode?: "message";
|
|
240
|
+
/** Daemon run to address with respond, including when the form is in history. */
|
|
241
|
+
runId?: string;
|
|
242
|
+
/** Accepted answer, saved after acknowledgement. */
|
|
243
|
+
response?: RespondInput;
|
|
238
244
|
meta?: Record<string, unknown>;
|
|
239
245
|
}
|
|
240
246
|
/**
|
|
@@ -242,7 +248,8 @@ export interface Interaction {
|
|
|
242
248
|
* ties the answer to the pending request. `decision` must be an offered action ID. For a form,
|
|
243
249
|
* `answers` maps every required question ID to its selected option IDs and optional feedback.
|
|
244
250
|
* Legacy single-question clients may send `options` and `text` at the top level. Incomplete
|
|
245
|
-
* answers return 400; stale or
|
|
251
|
+
* answers return 400; stale or concurrent submissions return 409. Message-mode forms
|
|
252
|
+
* remain answerable after completion, and retrying the same accepted answer is idempotent.
|
|
246
253
|
*/
|
|
247
254
|
export interface RespondInput {
|
|
248
255
|
interactionId?: string;
|
|
@@ -918,6 +925,8 @@ export interface Health {
|
|
|
918
925
|
workspaceMetadataVersion?: number;
|
|
919
926
|
/** Durable project creation/clone operations; absent on older daemons. */
|
|
920
927
|
projectOperationsVersion?: number;
|
|
928
|
+
/** Persistent profile/chat mutes enforced before every notification delivery. */
|
|
929
|
+
notificationPreferencesVersion?: number;
|
|
921
930
|
ok: boolean;
|
|
922
931
|
agent: string;
|
|
923
932
|
version: string;
|
package/dist/workspace.d.ts
CHANGED
|
@@ -69,6 +69,8 @@ export interface WorkspaceAgent extends WorkspaceRecord {
|
|
|
69
69
|
name: string;
|
|
70
70
|
agentType: string;
|
|
71
71
|
agentTypeName?: string;
|
|
72
|
+
/** Mutes this profile's current and future chats across notification channels. Omit to preserve; false to clear. */
|
|
73
|
+
notificationsMuted?: boolean;
|
|
72
74
|
}
|
|
73
75
|
export interface WorkspaceProject extends WorkspaceRecord {
|
|
74
76
|
name: string;
|
|
@@ -82,6 +84,8 @@ export interface WorkspaceChat extends WorkspaceRecord {
|
|
|
82
84
|
title: string;
|
|
83
85
|
titleIsUserSet?: boolean;
|
|
84
86
|
sessionId?: string;
|
|
87
|
+
/** Mutes this chat. False clears its own mute but never overrides a muted parent profile. Omit to preserve. */
|
|
88
|
+
notificationsMuted?: boolean;
|
|
85
89
|
}
|
|
86
90
|
export type WorkspaceKind = "agents" | "projects" | "chats";
|
|
87
91
|
export type WorkspaceInput<T extends WorkspaceRecord> = Omit<T, "id" | "workspaceId" | "revision" | "createdAt"> & {
|