@theaileverage/marionette 0.2.1 → 0.2.2
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/CHANGELOG.md +7 -0
- package/DESIGN.md +3 -3
- package/ORCHESTRATION.md +2 -2
- package/README.md +19 -4
- package/THIRD_PARTY_NOTICES.md +208 -0
- package/VERIFICATION.md +8 -0
- package/dist/cli.js +789 -121
- package/dist/herdr-protocol.d.ts +1916 -0
- package/dist/herdr-protocol.js +108 -0
- package/dist/herdr-sdk.d.ts +105 -0
- package/dist/herdr-sdk.js +105 -0
- package/dist/herdr-streams.d.ts +49 -0
- package/dist/herdr-streams.js +156 -0
- package/dist/herdr-transport.d.ts +50 -0
- package/dist/herdr-transport.js +232 -0
- package/dist/mcp.js +1 -1
- package/package.json +22 -5
- package/public/assets/{index-BCi4LMak.js → index-CCfdv-uF.js} +1 -1
- package/public/index.html +1 -1
- package/skills/marionette/SKILL.md +70 -0
- package/skills/marionette/references/coordination.md +63 -0
- package/skills/marionette/references/herdr-sdk.md +147 -0
- package/vendor/herdr-0.9.0/LICENSE +201 -0
- package/vendor/herdr-0.9.0/README.md +5 -0
|
@@ -0,0 +1,1916 @@
|
|
|
1
|
+
export declare const HERDR_PROTOCOL: 22;
|
|
2
|
+
export declare const HERDR_SCHEMA_SHA256: "5fb46b13fdaf39c88cf699b9806685868c7ee6b0142523d84391b1606416dc0a";
|
|
3
|
+
export declare namespace RequestTypes {
|
|
4
|
+
type AgentPromptParams = {
|
|
5
|
+
target: string;
|
|
6
|
+
text: string;
|
|
7
|
+
wait?: RequestTypes.AgentPromptWaitOptions | null;
|
|
8
|
+
};
|
|
9
|
+
type AgentPromptWaitOptions = {
|
|
10
|
+
timeout_ms?: number | null;
|
|
11
|
+
until?: Array<RequestTypes.AgentStatus>;
|
|
12
|
+
};
|
|
13
|
+
type AgentReadParams = {
|
|
14
|
+
format?: RequestTypes.ReadFormat;
|
|
15
|
+
lines?: number | null;
|
|
16
|
+
source: RequestTypes.ReadSource;
|
|
17
|
+
strip_ansi?: boolean;
|
|
18
|
+
target: string;
|
|
19
|
+
};
|
|
20
|
+
type AgentRenameParams = {
|
|
21
|
+
name?: string | null;
|
|
22
|
+
target: string;
|
|
23
|
+
};
|
|
24
|
+
type AgentSendKeysParams = {
|
|
25
|
+
keys: Array<string>;
|
|
26
|
+
target: string;
|
|
27
|
+
};
|
|
28
|
+
type AgentStartParams = {
|
|
29
|
+
args?: Array<string>;
|
|
30
|
+
kind: string;
|
|
31
|
+
name: string;
|
|
32
|
+
pane_id: string;
|
|
33
|
+
/** Startup timeout in milliseconds. Values must be greater than 3000 and at most 300000. */
|
|
34
|
+
timeout_ms?: number | null;
|
|
35
|
+
};
|
|
36
|
+
type AgentStatus = 'idle' | 'working' | 'blocked' | 'done' | 'unknown';
|
|
37
|
+
type AgentTarget = {
|
|
38
|
+
target: string;
|
|
39
|
+
};
|
|
40
|
+
type AgentViewBuiltinField = 'status' | 'workspace_id' | 'tab_id' | 'pane_id' | 'agent' | 'seen' | 'state_change_seq';
|
|
41
|
+
type AgentViewBuiltinSortField = 'workspace_order' | 'tab_order' | 'pane_order' | 'attention' | 'status' | 'agent' | 'seen' | 'state_change_seq';
|
|
42
|
+
type AgentViewClearParams = {
|
|
43
|
+
source?: string | null;
|
|
44
|
+
};
|
|
45
|
+
type AgentViewContext = 'current_workspace_id' | 'current_tab_id';
|
|
46
|
+
type AgentViewField = RequestTypes.AgentViewBuiltinField | {
|
|
47
|
+
token: string;
|
|
48
|
+
};
|
|
49
|
+
type AgentViewFilter = {
|
|
50
|
+
filters: Array<RequestTypes.AgentViewFilter>;
|
|
51
|
+
op: 'all';
|
|
52
|
+
} | {
|
|
53
|
+
filters: Array<RequestTypes.AgentViewFilter>;
|
|
54
|
+
op: 'any';
|
|
55
|
+
} | {
|
|
56
|
+
filter: RequestTypes.AgentViewFilter;
|
|
57
|
+
op: 'not';
|
|
58
|
+
} | {
|
|
59
|
+
field: RequestTypes.AgentViewField;
|
|
60
|
+
op: 'eq';
|
|
61
|
+
value: RequestTypes.AgentViewValue;
|
|
62
|
+
} | {
|
|
63
|
+
field: RequestTypes.AgentViewField;
|
|
64
|
+
op: 'in';
|
|
65
|
+
values: Array<RequestTypes.AgentViewValue>;
|
|
66
|
+
} | {
|
|
67
|
+
field: RequestTypes.AgentViewField;
|
|
68
|
+
op: 'exists';
|
|
69
|
+
};
|
|
70
|
+
type AgentViewSetParams = {
|
|
71
|
+
filter?: RequestTypes.AgentViewFilter | null;
|
|
72
|
+
label?: string | null;
|
|
73
|
+
sort?: Array<RequestTypes.AgentViewSort>;
|
|
74
|
+
source: string;
|
|
75
|
+
};
|
|
76
|
+
type AgentViewSort = {
|
|
77
|
+
field: RequestTypes.AgentViewSortField;
|
|
78
|
+
order?: RequestTypes.AgentViewSortOrder;
|
|
79
|
+
};
|
|
80
|
+
type AgentViewSortField = RequestTypes.AgentViewBuiltinSortField | {
|
|
81
|
+
token: string;
|
|
82
|
+
};
|
|
83
|
+
type AgentViewSortOrder = 'asc' | 'desc';
|
|
84
|
+
type AgentViewValue = string | boolean | number | {
|
|
85
|
+
context: RequestTypes.AgentViewContext;
|
|
86
|
+
};
|
|
87
|
+
type AgentWaitParams = {
|
|
88
|
+
target: string;
|
|
89
|
+
timeout_ms?: number | null;
|
|
90
|
+
until?: Array<RequestTypes.AgentStatus>;
|
|
91
|
+
};
|
|
92
|
+
type ClientShellSurfaceSetParams = {
|
|
93
|
+
active: boolean;
|
|
94
|
+
};
|
|
95
|
+
type ClientWindowTitleSetParams = {
|
|
96
|
+
title: string;
|
|
97
|
+
};
|
|
98
|
+
type CommandInvokeParams = {
|
|
99
|
+
/** Opaque endpoint-issued command identifier from the client-shell projection. */
|
|
100
|
+
command_id: string;
|
|
101
|
+
pane_id?: string | null;
|
|
102
|
+
/** Client-owned selection coordinates, validated against the pane's content revision. */
|
|
103
|
+
selection?: RequestTypes.PaneSelectionReadParams | null;
|
|
104
|
+
tab_id?: string | null;
|
|
105
|
+
workspace_id?: string | null;
|
|
106
|
+
};
|
|
107
|
+
type EmptyParams = Record<string, never>;
|
|
108
|
+
type EventMatch = {
|
|
109
|
+
event: 'workspace_created';
|
|
110
|
+
workspace_id?: string | null;
|
|
111
|
+
} | {
|
|
112
|
+
event: 'workspace_updated';
|
|
113
|
+
workspace_id: string;
|
|
114
|
+
} | {
|
|
115
|
+
event: 'workspace_closed';
|
|
116
|
+
workspace_id: string;
|
|
117
|
+
} | {
|
|
118
|
+
event: 'workspace_renamed';
|
|
119
|
+
label?: string | null;
|
|
120
|
+
workspace_id: string;
|
|
121
|
+
} | {
|
|
122
|
+
event: 'workspace_moved';
|
|
123
|
+
workspace_id: string;
|
|
124
|
+
} | {
|
|
125
|
+
event: 'workspace_focused';
|
|
126
|
+
workspace_id: string;
|
|
127
|
+
} | {
|
|
128
|
+
event: 'tab_created';
|
|
129
|
+
tab_id?: string | null;
|
|
130
|
+
workspace_id?: string | null;
|
|
131
|
+
} | {
|
|
132
|
+
event: 'tab_closed';
|
|
133
|
+
tab_id: string;
|
|
134
|
+
} | {
|
|
135
|
+
event: 'tab_renamed';
|
|
136
|
+
label?: string | null;
|
|
137
|
+
tab_id: string;
|
|
138
|
+
} | {
|
|
139
|
+
event: 'tab_moved';
|
|
140
|
+
tab_id: string;
|
|
141
|
+
} | {
|
|
142
|
+
event: 'tab_focused';
|
|
143
|
+
tab_id: string;
|
|
144
|
+
} | {
|
|
145
|
+
event: 'pane_created';
|
|
146
|
+
pane_id?: string | null;
|
|
147
|
+
workspace_id?: string | null;
|
|
148
|
+
} | {
|
|
149
|
+
event: 'pane_closed';
|
|
150
|
+
pane_id: string;
|
|
151
|
+
} | {
|
|
152
|
+
event: 'pane_focused';
|
|
153
|
+
pane_id: string;
|
|
154
|
+
} | {
|
|
155
|
+
event: 'pane_moved';
|
|
156
|
+
pane_id: string;
|
|
157
|
+
} | {
|
|
158
|
+
event: 'pane_output_changed';
|
|
159
|
+
min_revision?: number | null;
|
|
160
|
+
pane_id: string;
|
|
161
|
+
} | {
|
|
162
|
+
event: 'pane_exited';
|
|
163
|
+
pane_id: string;
|
|
164
|
+
} | {
|
|
165
|
+
agent?: string | null;
|
|
166
|
+
event: 'pane_agent_detected';
|
|
167
|
+
pane_id: string;
|
|
168
|
+
} | {
|
|
169
|
+
agent_status: RequestTypes.AgentStatus;
|
|
170
|
+
event: 'pane_agent_status_changed';
|
|
171
|
+
pane_id: string;
|
|
172
|
+
};
|
|
173
|
+
type EventsSubscribeParams = {
|
|
174
|
+
subscriptions: Array<RequestTypes.Subscription>;
|
|
175
|
+
};
|
|
176
|
+
type EventsWaitParams = {
|
|
177
|
+
match_event: RequestTypes.EventMatch;
|
|
178
|
+
timeout_ms?: number | null;
|
|
179
|
+
};
|
|
180
|
+
type IntegrationInstallParams = {
|
|
181
|
+
target: RequestTypes.IntegrationTarget;
|
|
182
|
+
};
|
|
183
|
+
type IntegrationTarget = 'pi' | 'omp' | 'claude' | 'codex' | 'copilot' | 'devin' | 'droid' | 'kimi' | 'opencode' | 'kilo' | 'hermes' | 'qodercli' | 'qwen' | 'cursor' | 'mastracode' | 'antigravity_cli' | 'grok';
|
|
184
|
+
type IntegrationUninstallParams = {
|
|
185
|
+
target: RequestTypes.IntegrationTarget;
|
|
186
|
+
};
|
|
187
|
+
type LayoutApplyParams = {
|
|
188
|
+
focus?: boolean;
|
|
189
|
+
root: RequestTypes.LayoutNode;
|
|
190
|
+
tab_id?: string | null;
|
|
191
|
+
tab_label?: string | null;
|
|
192
|
+
workspace_id?: string | null;
|
|
193
|
+
};
|
|
194
|
+
type LayoutExportParams = {
|
|
195
|
+
pane_id?: string | null;
|
|
196
|
+
tab_id?: string | null;
|
|
197
|
+
};
|
|
198
|
+
type LayoutNode = {
|
|
199
|
+
command?: Array<string> | null;
|
|
200
|
+
cwd?: string | null;
|
|
201
|
+
env?: {
|
|
202
|
+
[key: string]: string;
|
|
203
|
+
};
|
|
204
|
+
label?: string | null;
|
|
205
|
+
pane_id?: string | null;
|
|
206
|
+
type: 'pane';
|
|
207
|
+
} | {
|
|
208
|
+
direction: RequestTypes.SplitDirection;
|
|
209
|
+
first: RequestTypes.LayoutNode;
|
|
210
|
+
ratio: number;
|
|
211
|
+
second: RequestTypes.LayoutNode;
|
|
212
|
+
type: 'split';
|
|
213
|
+
};
|
|
214
|
+
type LayoutSetSplitRatioParams = {
|
|
215
|
+
pane_id?: string | null;
|
|
216
|
+
path: Array<boolean>;
|
|
217
|
+
ratio: number;
|
|
218
|
+
tab_id?: string | null;
|
|
219
|
+
};
|
|
220
|
+
type NotificationShowParams = {
|
|
221
|
+
body?: string | null;
|
|
222
|
+
position?: RequestTypes.ToastHerdrPosition | null;
|
|
223
|
+
sound?: RequestTypes.NotificationShowSound;
|
|
224
|
+
title: string;
|
|
225
|
+
};
|
|
226
|
+
type NotificationShowSound = 'none' | 'done' | 'request';
|
|
227
|
+
type OutputMatch = {
|
|
228
|
+
type: 'substring';
|
|
229
|
+
value: string;
|
|
230
|
+
} | {
|
|
231
|
+
type: 'regex';
|
|
232
|
+
value: string;
|
|
233
|
+
};
|
|
234
|
+
type PaneAgentState = 'idle' | 'working' | 'blocked' | 'unknown';
|
|
235
|
+
type PaneClearAgentAuthorityParams = {
|
|
236
|
+
pane_id: string;
|
|
237
|
+
seq?: number | null;
|
|
238
|
+
source?: string | null;
|
|
239
|
+
};
|
|
240
|
+
type PaneCopyMotion = 'line_end' | 'first_non_blank' | 'next_word_start' | 'previous_word_start' | 'next_word_end' | 'next_big_word_start' | 'previous_big_word_start' | 'next_big_word_end' | 'previous_paragraph' | 'next_paragraph';
|
|
241
|
+
type PaneCopyMotionParams = {
|
|
242
|
+
content_revision?: number | null;
|
|
243
|
+
cursor: RequestTypes.PaneTextPoint;
|
|
244
|
+
motion: RequestTypes.PaneCopyMotion;
|
|
245
|
+
pane_id: string;
|
|
246
|
+
};
|
|
247
|
+
type PaneCopySearchDirection = 'forward' | 'backward';
|
|
248
|
+
type PaneCopySearchParams = {
|
|
249
|
+
content_revision: number;
|
|
250
|
+
cursor: RequestTypes.PaneTextPoint;
|
|
251
|
+
direction: RequestTypes.PaneCopySearchDirection;
|
|
252
|
+
pane_id: string;
|
|
253
|
+
previous?: RequestTypes.PaneTextRange | null;
|
|
254
|
+
query: string;
|
|
255
|
+
};
|
|
256
|
+
type PaneCurrentParams = {
|
|
257
|
+
caller_pane_id?: string | null;
|
|
258
|
+
};
|
|
259
|
+
type PaneDirection = 'left' | 'right' | 'up' | 'down';
|
|
260
|
+
type PaneEdgesParams = {
|
|
261
|
+
pane_id?: string | null;
|
|
262
|
+
};
|
|
263
|
+
type PaneFocusDirectionParams = {
|
|
264
|
+
direction: RequestTypes.PaneDirection;
|
|
265
|
+
pane_id?: string | null;
|
|
266
|
+
};
|
|
267
|
+
type PaneGraphicsClearParams = {
|
|
268
|
+
layer_id?: string | null;
|
|
269
|
+
pane_id: string;
|
|
270
|
+
};
|
|
271
|
+
type PaneGraphicsFormat = 'png' | 'rgb' | 'rgba' | 'bgra';
|
|
272
|
+
type PaneGraphicsPlacementParams = {
|
|
273
|
+
grid_cols?: number;
|
|
274
|
+
grid_rows?: number;
|
|
275
|
+
viewport_col?: number;
|
|
276
|
+
viewport_row?: number;
|
|
277
|
+
};
|
|
278
|
+
type PaneGraphicsSetParams = {
|
|
279
|
+
data_base64?: string;
|
|
280
|
+
format: RequestTypes.PaneGraphicsFormat;
|
|
281
|
+
image_height: number;
|
|
282
|
+
image_width: number;
|
|
283
|
+
layer_id?: string | null;
|
|
284
|
+
pane_id: string;
|
|
285
|
+
placement?: RequestTypes.PaneGraphicsPlacementParams;
|
|
286
|
+
z_index?: number;
|
|
287
|
+
};
|
|
288
|
+
type PaneInputSetParams = {
|
|
289
|
+
pane_id: string;
|
|
290
|
+
right_click: RequestTypes.PaneRightClickTarget;
|
|
291
|
+
};
|
|
292
|
+
type PaneLayoutParams = {
|
|
293
|
+
pane_id?: string | null;
|
|
294
|
+
};
|
|
295
|
+
type PaneLinkActivateParams = {
|
|
296
|
+
col: number;
|
|
297
|
+
content_revision?: number | null;
|
|
298
|
+
offset_from_bottom?: number | null;
|
|
299
|
+
pane_id: string;
|
|
300
|
+
viewport_row: number;
|
|
301
|
+
};
|
|
302
|
+
type PaneListParams = {
|
|
303
|
+
workspace_id?: string | null;
|
|
304
|
+
};
|
|
305
|
+
type PaneMoveDestination = {
|
|
306
|
+
ratio?: number | null;
|
|
307
|
+
split: RequestTypes.SplitDirection;
|
|
308
|
+
tab_id: string;
|
|
309
|
+
target_pane_id?: string | null;
|
|
310
|
+
type: 'tab';
|
|
311
|
+
} | {
|
|
312
|
+
label?: string | null;
|
|
313
|
+
type: 'new_tab';
|
|
314
|
+
workspace_id?: string | null;
|
|
315
|
+
} | {
|
|
316
|
+
label?: string | null;
|
|
317
|
+
tab_label?: string | null;
|
|
318
|
+
type: 'new_workspace';
|
|
319
|
+
};
|
|
320
|
+
type PaneMoveParams = {
|
|
321
|
+
destination: RequestTypes.PaneMoveDestination;
|
|
322
|
+
focus?: boolean;
|
|
323
|
+
pane_id: string;
|
|
324
|
+
};
|
|
325
|
+
type PaneNeighborParams = {
|
|
326
|
+
direction: RequestTypes.PaneDirection;
|
|
327
|
+
pane_id?: string | null;
|
|
328
|
+
};
|
|
329
|
+
type PaneProcessInfoParams = {
|
|
330
|
+
pane_id?: string | null;
|
|
331
|
+
};
|
|
332
|
+
type PaneReadParams = {
|
|
333
|
+
format?: RequestTypes.ReadFormat;
|
|
334
|
+
lines?: number | null;
|
|
335
|
+
pane_id: string;
|
|
336
|
+
source: RequestTypes.ReadSource;
|
|
337
|
+
strip_ansi?: boolean;
|
|
338
|
+
};
|
|
339
|
+
type PaneReleaseAgentParams = {
|
|
340
|
+
agent: string;
|
|
341
|
+
pane_id: string;
|
|
342
|
+
seq?: number | null;
|
|
343
|
+
source: string;
|
|
344
|
+
};
|
|
345
|
+
type PaneRenameParams = {
|
|
346
|
+
label?: string | null;
|
|
347
|
+
pane_id: string;
|
|
348
|
+
};
|
|
349
|
+
type PaneReportAgentParams = {
|
|
350
|
+
agent: string;
|
|
351
|
+
agent_session_id?: string | null;
|
|
352
|
+
agent_session_path?: string | null;
|
|
353
|
+
message?: string | null;
|
|
354
|
+
pane_id: string;
|
|
355
|
+
seq?: number | null;
|
|
356
|
+
source: string;
|
|
357
|
+
state: RequestTypes.PaneAgentState;
|
|
358
|
+
};
|
|
359
|
+
type PaneReportAgentSessionParams = {
|
|
360
|
+
agent: string;
|
|
361
|
+
agent_session_id?: string | null;
|
|
362
|
+
agent_session_path?: string | null;
|
|
363
|
+
pane_id: string;
|
|
364
|
+
seq?: number | null;
|
|
365
|
+
session_start_source?: string | null;
|
|
366
|
+
source: string;
|
|
367
|
+
};
|
|
368
|
+
type PaneReportMetadataParams = {
|
|
369
|
+
agent?: string | null;
|
|
370
|
+
applies_to_source?: string | null;
|
|
371
|
+
clear_display_agent?: boolean;
|
|
372
|
+
clear_state_labels?: boolean;
|
|
373
|
+
clear_title?: boolean;
|
|
374
|
+
display_agent?: string | null;
|
|
375
|
+
pane_id: string;
|
|
376
|
+
seq?: number | null;
|
|
377
|
+
source: string;
|
|
378
|
+
state_labels?: {
|
|
379
|
+
[key: string]: string;
|
|
380
|
+
};
|
|
381
|
+
title?: string | null;
|
|
382
|
+
tokens?: {
|
|
383
|
+
[key: string]: string | null;
|
|
384
|
+
};
|
|
385
|
+
ttl_ms?: number | null;
|
|
386
|
+
};
|
|
387
|
+
type PaneResizeParams = {
|
|
388
|
+
amount?: number | null;
|
|
389
|
+
direction: RequestTypes.PaneDirection;
|
|
390
|
+
pane_id?: string | null;
|
|
391
|
+
};
|
|
392
|
+
type PaneRightClickTarget = 'herdr' | 'pane';
|
|
393
|
+
type PaneScrollParams = {
|
|
394
|
+
offset_from_bottom: number;
|
|
395
|
+
pane_id: string;
|
|
396
|
+
};
|
|
397
|
+
type PaneSelectionReadParams = {
|
|
398
|
+
anchor: RequestTypes.PaneTextPoint;
|
|
399
|
+
content_revision?: number | null;
|
|
400
|
+
cursor: RequestTypes.PaneTextPoint;
|
|
401
|
+
pane_id: string;
|
|
402
|
+
};
|
|
403
|
+
type PaneSendInputParams = {
|
|
404
|
+
keys?: Array<string>;
|
|
405
|
+
pane_id: string;
|
|
406
|
+
text?: string;
|
|
407
|
+
};
|
|
408
|
+
type PaneSendKeysParams = {
|
|
409
|
+
keys: Array<string>;
|
|
410
|
+
pane_id: string;
|
|
411
|
+
};
|
|
412
|
+
type PaneSendTextParams = {
|
|
413
|
+
pane_id: string;
|
|
414
|
+
text: string;
|
|
415
|
+
};
|
|
416
|
+
type PaneSplitParams = {
|
|
417
|
+
cwd?: string | null;
|
|
418
|
+
direction: RequestTypes.SplitDirection;
|
|
419
|
+
env?: {
|
|
420
|
+
[key: string]: string;
|
|
421
|
+
};
|
|
422
|
+
focus?: boolean;
|
|
423
|
+
ratio?: number | null;
|
|
424
|
+
right_click?: RequestTypes.PaneRightClickTarget;
|
|
425
|
+
target_pane_id?: string | null;
|
|
426
|
+
workspace_id?: string | null;
|
|
427
|
+
};
|
|
428
|
+
type PaneSwapParams = {
|
|
429
|
+
direction?: RequestTypes.PaneDirection | null;
|
|
430
|
+
pane_id?: string | null;
|
|
431
|
+
source_pane_id?: string | null;
|
|
432
|
+
target_pane_id?: string | null;
|
|
433
|
+
};
|
|
434
|
+
type PaneTarget = {
|
|
435
|
+
pane_id: string;
|
|
436
|
+
};
|
|
437
|
+
type PaneTextPoint = {
|
|
438
|
+
col: number;
|
|
439
|
+
row: number;
|
|
440
|
+
};
|
|
441
|
+
type PaneTextRange = {
|
|
442
|
+
end: RequestTypes.PaneTextPoint;
|
|
443
|
+
start: RequestTypes.PaneTextPoint;
|
|
444
|
+
};
|
|
445
|
+
type PaneWaitForOutputParams = {
|
|
446
|
+
lines?: number | null;
|
|
447
|
+
match: RequestTypes.OutputMatch;
|
|
448
|
+
pane_id: string;
|
|
449
|
+
source: RequestTypes.ReadSource;
|
|
450
|
+
strip_ansi?: boolean;
|
|
451
|
+
timeout_ms?: number | null;
|
|
452
|
+
};
|
|
453
|
+
type PaneZoomMode = 'toggle' | 'on' | 'off';
|
|
454
|
+
type PaneZoomParams = {
|
|
455
|
+
mode?: RequestTypes.PaneZoomMode;
|
|
456
|
+
pane_id?: string | null;
|
|
457
|
+
};
|
|
458
|
+
type PingParams = Record<string, never>;
|
|
459
|
+
type PluginActionInvokeParams = {
|
|
460
|
+
action_id: string;
|
|
461
|
+
context?: RequestTypes.PluginInvocationContext | null;
|
|
462
|
+
plugin_id?: string | null;
|
|
463
|
+
};
|
|
464
|
+
type PluginActionListParams = {
|
|
465
|
+
plugin_id?: string | null;
|
|
466
|
+
};
|
|
467
|
+
type PluginInvocationContext = {
|
|
468
|
+
clicked_url?: string | null;
|
|
469
|
+
correlation_id?: string | null;
|
|
470
|
+
focused_pane_agent?: string | null;
|
|
471
|
+
focused_pane_cwd?: string | null;
|
|
472
|
+
focused_pane_id?: string | null;
|
|
473
|
+
focused_pane_status?: RequestTypes.AgentStatus | null;
|
|
474
|
+
invocation_source?: string | null;
|
|
475
|
+
link_handler_id?: string | null;
|
|
476
|
+
selected_text?: string | null;
|
|
477
|
+
tab_id?: string | null;
|
|
478
|
+
tab_label?: string | null;
|
|
479
|
+
workspace_cwd?: string | null;
|
|
480
|
+
workspace_id?: string | null;
|
|
481
|
+
workspace_label?: string | null;
|
|
482
|
+
worktree?: RequestTypes.WorkspaceWorktreeInfo | null;
|
|
483
|
+
};
|
|
484
|
+
type PluginLinkParams = {
|
|
485
|
+
enabled?: boolean;
|
|
486
|
+
path: string;
|
|
487
|
+
source?: RequestTypes.PluginSourceInfo | null;
|
|
488
|
+
};
|
|
489
|
+
type PluginListParams = {
|
|
490
|
+
plugin_id?: string | null;
|
|
491
|
+
};
|
|
492
|
+
type PluginLogListParams = {
|
|
493
|
+
limit?: number | null;
|
|
494
|
+
plugin_id?: string | null;
|
|
495
|
+
};
|
|
496
|
+
type PluginPaneCloseParams = {
|
|
497
|
+
pane_id: string;
|
|
498
|
+
};
|
|
499
|
+
type PluginPaneFocusParams = {
|
|
500
|
+
pane_id: string;
|
|
501
|
+
};
|
|
502
|
+
type PluginPaneOpenParams = {
|
|
503
|
+
cwd?: string | null;
|
|
504
|
+
direction?: RequestTypes.SplitDirection | null;
|
|
505
|
+
entrypoint: string;
|
|
506
|
+
env?: {
|
|
507
|
+
[key: string]: string;
|
|
508
|
+
};
|
|
509
|
+
focus?: boolean;
|
|
510
|
+
height?: RequestTypes.PopupSize | null;
|
|
511
|
+
placement?: RequestTypes.PluginPanePlacement | null;
|
|
512
|
+
plugin_id: string;
|
|
513
|
+
target_pane_id?: string | null;
|
|
514
|
+
width?: RequestTypes.PopupSize | null;
|
|
515
|
+
workspace_id?: string | null;
|
|
516
|
+
};
|
|
517
|
+
type PluginPanePlacement = 'overlay' | 'popup' | 'split' | 'tab' | 'zoomed';
|
|
518
|
+
type PluginSetEnabledParams = {
|
|
519
|
+
plugin_id: string;
|
|
520
|
+
};
|
|
521
|
+
type PluginSourceInfo = {
|
|
522
|
+
installed_unix_ms?: number | null;
|
|
523
|
+
kind?: RequestTypes.PluginSourceKind;
|
|
524
|
+
managed_path?: string | null;
|
|
525
|
+
owner?: string | null;
|
|
526
|
+
repo?: string | null;
|
|
527
|
+
requested_ref?: string | null;
|
|
528
|
+
resolved_commit?: string | null;
|
|
529
|
+
subdir?: string | null;
|
|
530
|
+
};
|
|
531
|
+
type PluginSourceKind = 'local' | 'github';
|
|
532
|
+
type PluginUnlinkParams = {
|
|
533
|
+
plugin_id: string;
|
|
534
|
+
};
|
|
535
|
+
type PopupSize = number | string;
|
|
536
|
+
type ProductAnnouncementDismissParams = {
|
|
537
|
+
id: string;
|
|
538
|
+
version: string;
|
|
539
|
+
};
|
|
540
|
+
type ReadFormat = 'text' | 'ansi';
|
|
541
|
+
type ReadSource = 'visible' | 'recent' | 'recent_unwrapped' | 'detection';
|
|
542
|
+
type ReleaseNotesDismissParams = {
|
|
543
|
+
version: string;
|
|
544
|
+
};
|
|
545
|
+
type ServerLiveHandoffParams = {
|
|
546
|
+
expected_protocol?: number | null;
|
|
547
|
+
expected_version?: string | null;
|
|
548
|
+
import_exe?: string | null;
|
|
549
|
+
};
|
|
550
|
+
type SplitDirection = 'right' | 'down';
|
|
551
|
+
type Subscription = {
|
|
552
|
+
type: 'workspace.created';
|
|
553
|
+
} | {
|
|
554
|
+
type: 'workspace.updated';
|
|
555
|
+
} | {
|
|
556
|
+
type: 'workspace.metadata_updated';
|
|
557
|
+
} | {
|
|
558
|
+
type: 'workspace.renamed';
|
|
559
|
+
} | {
|
|
560
|
+
type: 'workspace.moved';
|
|
561
|
+
} | {
|
|
562
|
+
type: 'workspace.reordered';
|
|
563
|
+
} | {
|
|
564
|
+
type: 'workspace.closed';
|
|
565
|
+
} | {
|
|
566
|
+
type: 'workspace.focused';
|
|
567
|
+
} | {
|
|
568
|
+
type: 'worktree.created';
|
|
569
|
+
} | {
|
|
570
|
+
type: 'worktree.opened';
|
|
571
|
+
} | {
|
|
572
|
+
type: 'worktree.removed';
|
|
573
|
+
} | {
|
|
574
|
+
type: 'tab.created';
|
|
575
|
+
} | {
|
|
576
|
+
type: 'tab.closed';
|
|
577
|
+
} | {
|
|
578
|
+
type: 'tab.focused';
|
|
579
|
+
} | {
|
|
580
|
+
type: 'tab.renamed';
|
|
581
|
+
} | {
|
|
582
|
+
type: 'tab.moved';
|
|
583
|
+
} | {
|
|
584
|
+
type: 'pane.created';
|
|
585
|
+
} | {
|
|
586
|
+
type: 'pane.closed';
|
|
587
|
+
} | {
|
|
588
|
+
type: 'pane.updated';
|
|
589
|
+
} | {
|
|
590
|
+
type: 'pane.focused';
|
|
591
|
+
} | {
|
|
592
|
+
type: 'pane.moved';
|
|
593
|
+
} | {
|
|
594
|
+
type: 'pane.exited';
|
|
595
|
+
} | {
|
|
596
|
+
type: 'pane.agent_detected';
|
|
597
|
+
} | {
|
|
598
|
+
lines?: number | null;
|
|
599
|
+
match: RequestTypes.OutputMatch;
|
|
600
|
+
pane_id: string;
|
|
601
|
+
source: RequestTypes.ReadSource;
|
|
602
|
+
strip_ansi?: boolean;
|
|
603
|
+
type: 'pane.output_matched';
|
|
604
|
+
} | {
|
|
605
|
+
agent_status?: RequestTypes.AgentStatus | null;
|
|
606
|
+
pane_id: string;
|
|
607
|
+
type: 'pane.agent_status_changed';
|
|
608
|
+
} | {
|
|
609
|
+
pane_id: string;
|
|
610
|
+
type: 'pane.scroll_changed';
|
|
611
|
+
} | {
|
|
612
|
+
type: 'layout.updated';
|
|
613
|
+
};
|
|
614
|
+
type TabCreateParams = {
|
|
615
|
+
cwd?: string | null;
|
|
616
|
+
env?: {
|
|
617
|
+
[key: string]: string;
|
|
618
|
+
};
|
|
619
|
+
focus?: boolean;
|
|
620
|
+
label?: string | null;
|
|
621
|
+
workspace_id?: string | null;
|
|
622
|
+
};
|
|
623
|
+
type TabListParams = {
|
|
624
|
+
workspace_id?: string | null;
|
|
625
|
+
};
|
|
626
|
+
type TabMoveParams = {
|
|
627
|
+
insert_index: number;
|
|
628
|
+
tab_id: string;
|
|
629
|
+
};
|
|
630
|
+
type TabRenameParams = {
|
|
631
|
+
label: string;
|
|
632
|
+
tab_id: string;
|
|
633
|
+
};
|
|
634
|
+
type TabTarget = {
|
|
635
|
+
tab_id: string;
|
|
636
|
+
};
|
|
637
|
+
type ToastHerdrPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
638
|
+
type WorkspaceCloseParams = {
|
|
639
|
+
close_group?: boolean;
|
|
640
|
+
workspace_id: string;
|
|
641
|
+
};
|
|
642
|
+
type WorkspaceCreateParams = {
|
|
643
|
+
cwd?: string | null;
|
|
644
|
+
env?: {
|
|
645
|
+
[key: string]: string;
|
|
646
|
+
};
|
|
647
|
+
focus?: boolean;
|
|
648
|
+
label?: string | null;
|
|
649
|
+
/** Workspace whose focused pane supplies the `follow` cwd policy. */
|
|
650
|
+
source_workspace_id?: string | null;
|
|
651
|
+
};
|
|
652
|
+
type WorkspaceMoveBlockParams = {
|
|
653
|
+
before_workspace_id?: string | null;
|
|
654
|
+
workspace_ids: Array<string>;
|
|
655
|
+
};
|
|
656
|
+
type WorkspaceMoveParams = {
|
|
657
|
+
insert_index: number;
|
|
658
|
+
workspace_id: string;
|
|
659
|
+
};
|
|
660
|
+
type WorkspaceRenameParams = {
|
|
661
|
+
label: string;
|
|
662
|
+
workspace_id: string;
|
|
663
|
+
};
|
|
664
|
+
type WorkspaceReportMetadataParams = {
|
|
665
|
+
seq?: number | null;
|
|
666
|
+
source: string;
|
|
667
|
+
tokens: {
|
|
668
|
+
[key: string]: string | null;
|
|
669
|
+
};
|
|
670
|
+
ttl_ms?: number | null;
|
|
671
|
+
workspace_id: string;
|
|
672
|
+
};
|
|
673
|
+
type WorkspaceTarget = {
|
|
674
|
+
workspace_id: string;
|
|
675
|
+
};
|
|
676
|
+
type WorkspaceWorktreeInfo = {
|
|
677
|
+
checkout_path: string;
|
|
678
|
+
is_linked_worktree: boolean;
|
|
679
|
+
repo_key: string;
|
|
680
|
+
repo_name: string;
|
|
681
|
+
repo_root: string;
|
|
682
|
+
};
|
|
683
|
+
type WorktreeCreateParams = {
|
|
684
|
+
base?: string | null;
|
|
685
|
+
branch?: string | null;
|
|
686
|
+
cwd?: string | null;
|
|
687
|
+
focus?: boolean;
|
|
688
|
+
label?: string | null;
|
|
689
|
+
path?: string | null;
|
|
690
|
+
trust_repository?: boolean;
|
|
691
|
+
workspace_id?: string | null;
|
|
692
|
+
};
|
|
693
|
+
type WorktreeListParams = {
|
|
694
|
+
cwd?: string | null;
|
|
695
|
+
trust_repository?: boolean;
|
|
696
|
+
workspace_id?: string | null;
|
|
697
|
+
};
|
|
698
|
+
type WorktreeOpenParams = {
|
|
699
|
+
branch?: string | null;
|
|
700
|
+
cwd?: string | null;
|
|
701
|
+
focus?: boolean;
|
|
702
|
+
label?: string | null;
|
|
703
|
+
path?: string | null;
|
|
704
|
+
trust_repository?: boolean;
|
|
705
|
+
workspace_id?: string | null;
|
|
706
|
+
};
|
|
707
|
+
type WorktreeRemoveParams = {
|
|
708
|
+
force?: boolean;
|
|
709
|
+
trust_repository?: boolean;
|
|
710
|
+
workspace_id: string;
|
|
711
|
+
};
|
|
712
|
+
}
|
|
713
|
+
export declare namespace ResponseTypes {
|
|
714
|
+
type AgentInfo = {
|
|
715
|
+
agent?: string | null;
|
|
716
|
+
agent_session?: ResponseTypes.AgentSessionInfo | null;
|
|
717
|
+
agent_status: ResponseTypes.AgentStatus;
|
|
718
|
+
cwd?: string | null;
|
|
719
|
+
display_agent?: string | null;
|
|
720
|
+
focused: boolean;
|
|
721
|
+
foreground_cwd?: string | null;
|
|
722
|
+
interactive_ready?: boolean;
|
|
723
|
+
launch_pending?: boolean;
|
|
724
|
+
name?: string | null;
|
|
725
|
+
pane_id: string;
|
|
726
|
+
revision: number;
|
|
727
|
+
screen_detection_skipped?: boolean;
|
|
728
|
+
state_change_seq?: number;
|
|
729
|
+
state_labels?: {
|
|
730
|
+
[key: string]: string;
|
|
731
|
+
};
|
|
732
|
+
tab_id: string;
|
|
733
|
+
terminal_id: string;
|
|
734
|
+
terminal_title?: string | null;
|
|
735
|
+
terminal_title_stripped?: string | null;
|
|
736
|
+
title?: string | null;
|
|
737
|
+
tokens?: {
|
|
738
|
+
[key: string]: string;
|
|
739
|
+
};
|
|
740
|
+
workspace_id: string;
|
|
741
|
+
};
|
|
742
|
+
type AgentManifestInfo = {
|
|
743
|
+
active_version?: string | null;
|
|
744
|
+
agent: string;
|
|
745
|
+
cached_remote_version?: string | null;
|
|
746
|
+
local_override_shadowing_remote: boolean;
|
|
747
|
+
remote_last_checked_unix?: number | null;
|
|
748
|
+
remote_update_error?: string | null;
|
|
749
|
+
remote_update_result?: string | null;
|
|
750
|
+
source: string;
|
|
751
|
+
source_kind: string;
|
|
752
|
+
warning?: string | null;
|
|
753
|
+
};
|
|
754
|
+
type AgentSessionInfo = {
|
|
755
|
+
agent: string;
|
|
756
|
+
kind: ResponseTypes.AgentSessionRefKind;
|
|
757
|
+
source: string;
|
|
758
|
+
value: string;
|
|
759
|
+
};
|
|
760
|
+
type AgentSessionRefKind = 'id' | 'path';
|
|
761
|
+
type AgentStatus = 'idle' | 'working' | 'blocked' | 'done' | 'unknown';
|
|
762
|
+
type ClientWindowTitleReason = 'set' | 'cleared' | 'no_foreground_client';
|
|
763
|
+
type ConfigReloadStatus = 'applied' | 'partial' | 'failed';
|
|
764
|
+
type EventData = {
|
|
765
|
+
type: 'workspace_created';
|
|
766
|
+
workspace: ResponseTypes.WorkspaceInfo;
|
|
767
|
+
} | {
|
|
768
|
+
type: 'workspace_updated';
|
|
769
|
+
workspace: ResponseTypes.WorkspaceInfo;
|
|
770
|
+
} | {
|
|
771
|
+
type: 'workspace_metadata_updated';
|
|
772
|
+
workspace: ResponseTypes.WorkspaceInfo;
|
|
773
|
+
} | {
|
|
774
|
+
type: 'workspace_closed';
|
|
775
|
+
workspace?: ResponseTypes.WorkspaceInfo | null;
|
|
776
|
+
workspace_id: string;
|
|
777
|
+
} | {
|
|
778
|
+
label: string;
|
|
779
|
+
type: 'workspace_renamed';
|
|
780
|
+
workspace_id: string;
|
|
781
|
+
} | {
|
|
782
|
+
insert_index: number;
|
|
783
|
+
type: 'workspace_moved';
|
|
784
|
+
workspace_id: string;
|
|
785
|
+
workspaces: Array<ResponseTypes.WorkspaceInfo>;
|
|
786
|
+
} | {
|
|
787
|
+
before_workspace_id?: string | null;
|
|
788
|
+
type: 'workspace_reordered';
|
|
789
|
+
workspace_ids: Array<string>;
|
|
790
|
+
workspaces: Array<ResponseTypes.WorkspaceInfo>;
|
|
791
|
+
} | {
|
|
792
|
+
type: 'workspace_focused';
|
|
793
|
+
workspace_id: string;
|
|
794
|
+
} | {
|
|
795
|
+
type: 'worktree_created';
|
|
796
|
+
workspace: ResponseTypes.WorkspaceInfo;
|
|
797
|
+
worktree: ResponseTypes.WorktreeInfo;
|
|
798
|
+
} | {
|
|
799
|
+
already_open: boolean;
|
|
800
|
+
type: 'worktree_opened';
|
|
801
|
+
workspace: ResponseTypes.WorkspaceInfo;
|
|
802
|
+
worktree: ResponseTypes.WorktreeInfo;
|
|
803
|
+
} | {
|
|
804
|
+
forced: boolean;
|
|
805
|
+
type: 'worktree_removed';
|
|
806
|
+
workspace?: ResponseTypes.WorkspaceInfo | null;
|
|
807
|
+
workspace_id: string;
|
|
808
|
+
worktree: ResponseTypes.WorktreeInfo;
|
|
809
|
+
} | {
|
|
810
|
+
tab: ResponseTypes.TabInfo;
|
|
811
|
+
type: 'tab_created';
|
|
812
|
+
} | {
|
|
813
|
+
tab_id: string;
|
|
814
|
+
type: 'tab_closed';
|
|
815
|
+
workspace_id: string;
|
|
816
|
+
} | {
|
|
817
|
+
label: string;
|
|
818
|
+
tab_id: string;
|
|
819
|
+
type: 'tab_renamed';
|
|
820
|
+
workspace_id: string;
|
|
821
|
+
} | {
|
|
822
|
+
insert_index: number;
|
|
823
|
+
tab_id: string;
|
|
824
|
+
tabs: Array<ResponseTypes.TabInfo>;
|
|
825
|
+
type: 'tab_moved';
|
|
826
|
+
workspace_id: string;
|
|
827
|
+
} | {
|
|
828
|
+
tab_id: string;
|
|
829
|
+
type: 'tab_focused';
|
|
830
|
+
workspace_id: string;
|
|
831
|
+
} | {
|
|
832
|
+
pane: ResponseTypes.PaneInfo;
|
|
833
|
+
type: 'pane_created';
|
|
834
|
+
} | {
|
|
835
|
+
pane_id: string;
|
|
836
|
+
type: 'pane_closed';
|
|
837
|
+
workspace_id: string;
|
|
838
|
+
} | {
|
|
839
|
+
pane: ResponseTypes.PaneInfo;
|
|
840
|
+
type: 'pane_updated';
|
|
841
|
+
} | {
|
|
842
|
+
pane_id: string;
|
|
843
|
+
type: 'pane_focused';
|
|
844
|
+
workspace_id: string;
|
|
845
|
+
} | {
|
|
846
|
+
closed_tab_id?: string | null;
|
|
847
|
+
closed_workspace_id?: string | null;
|
|
848
|
+
created_tab?: ResponseTypes.TabInfo | null;
|
|
849
|
+
created_workspace?: ResponseTypes.WorkspaceInfo | null;
|
|
850
|
+
pane: ResponseTypes.PaneInfo;
|
|
851
|
+
previous_pane_id: string;
|
|
852
|
+
previous_tab_id: string;
|
|
853
|
+
previous_workspace_id: string;
|
|
854
|
+
type: 'pane_moved';
|
|
855
|
+
} | {
|
|
856
|
+
pane_id: string;
|
|
857
|
+
revision: number;
|
|
858
|
+
type: 'pane_output_changed';
|
|
859
|
+
workspace_id: string;
|
|
860
|
+
} | {
|
|
861
|
+
pane_id: string;
|
|
862
|
+
type: 'pane_exited';
|
|
863
|
+
workspace_id: string;
|
|
864
|
+
} | {
|
|
865
|
+
agent?: string | null;
|
|
866
|
+
final_status?: ResponseTypes.AgentStatus | null;
|
|
867
|
+
pane_id: string;
|
|
868
|
+
released?: boolean;
|
|
869
|
+
type: 'pane_agent_detected';
|
|
870
|
+
workspace_id: string;
|
|
871
|
+
} | {
|
|
872
|
+
agent?: string | null;
|
|
873
|
+
agent_status: ResponseTypes.AgentStatus;
|
|
874
|
+
display_agent?: string | null;
|
|
875
|
+
pane_id: string;
|
|
876
|
+
state_labels?: {
|
|
877
|
+
[key: string]: string;
|
|
878
|
+
};
|
|
879
|
+
title?: string | null;
|
|
880
|
+
type: 'pane_agent_status_changed';
|
|
881
|
+
workspace_id: string;
|
|
882
|
+
} | {
|
|
883
|
+
layout: ResponseTypes.PaneLayoutSnapshot;
|
|
884
|
+
type: 'layout_updated';
|
|
885
|
+
};
|
|
886
|
+
type EventEnvelope = {
|
|
887
|
+
data: ResponseTypes.EventData;
|
|
888
|
+
event: ResponseTypes.EventKind;
|
|
889
|
+
};
|
|
890
|
+
type EventKind = 'workspace_created' | 'workspace_updated' | 'workspace_metadata_updated' | 'workspace_closed' | 'workspace_renamed' | 'workspace_moved' | 'workspace_reordered' | 'workspace_focused' | 'worktree_created' | 'worktree_opened' | 'worktree_removed' | 'tab_created' | 'tab_closed' | 'tab_renamed' | 'tab_moved' | 'tab_focused' | 'pane_created' | 'pane_closed' | 'pane_updated' | 'pane_focused' | 'pane_moved' | 'pane_output_changed' | 'pane_exited' | 'pane_agent_detected' | 'pane_agent_status_changed' | 'layout_updated';
|
|
891
|
+
type InstalledPluginInfo = {
|
|
892
|
+
actions?: Array<ResponseTypes.PluginManifestAction>;
|
|
893
|
+
build?: Array<ResponseTypes.PluginManifestBuild>;
|
|
894
|
+
description?: string | null;
|
|
895
|
+
enabled: boolean;
|
|
896
|
+
events?: Array<ResponseTypes.PluginManifestEventHook>;
|
|
897
|
+
link_handlers?: Array<ResponseTypes.PluginManifestLinkHandler>;
|
|
898
|
+
manifest_path: string;
|
|
899
|
+
min_herdr_version?: string;
|
|
900
|
+
name: string;
|
|
901
|
+
panes?: Array<ResponseTypes.PluginManifestPane>;
|
|
902
|
+
platforms?: Array<ResponseTypes.PluginPlatform> | null;
|
|
903
|
+
plugin_id: string;
|
|
904
|
+
plugin_root: string;
|
|
905
|
+
source?: ResponseTypes.PluginSourceInfo;
|
|
906
|
+
startup?: Array<ResponseTypes.PluginManifestStartup>;
|
|
907
|
+
version: string;
|
|
908
|
+
/** Warnings collected at link time or on registry load (e.g. unknown event names,
|
|
909
|
+
missing manifest file). Non-fatal — the entry is kept and surfaced by plugin.list. */
|
|
910
|
+
warnings?: Array<string>;
|
|
911
|
+
};
|
|
912
|
+
type IntegrationInfo = {
|
|
913
|
+
available: boolean;
|
|
914
|
+
command: string;
|
|
915
|
+
label: string;
|
|
916
|
+
state: ResponseTypes.IntegrationState;
|
|
917
|
+
target: ResponseTypes.IntegrationTarget;
|
|
918
|
+
};
|
|
919
|
+
type IntegrationInstallResult = {
|
|
920
|
+
messages: Array<string>;
|
|
921
|
+
};
|
|
922
|
+
type IntegrationState = 'not_installed' | 'current' | 'outdated';
|
|
923
|
+
type IntegrationTarget = 'pi' | 'omp' | 'claude' | 'codex' | 'copilot' | 'devin' | 'droid' | 'kimi' | 'opencode' | 'kilo' | 'hermes' | 'qodercli' | 'qwen' | 'cursor' | 'mastracode' | 'antigravity_cli' | 'grok';
|
|
924
|
+
type IntegrationUninstallResult = {
|
|
925
|
+
messages: Array<string>;
|
|
926
|
+
};
|
|
927
|
+
type LayoutDescription = {
|
|
928
|
+
focused_pane_id: string;
|
|
929
|
+
root: ResponseTypes.LayoutNode;
|
|
930
|
+
tab_id: string;
|
|
931
|
+
workspace_id: string;
|
|
932
|
+
zoomed: boolean;
|
|
933
|
+
};
|
|
934
|
+
type LayoutNode = {
|
|
935
|
+
command?: Array<string> | null;
|
|
936
|
+
cwd?: string | null;
|
|
937
|
+
env?: {
|
|
938
|
+
[key: string]: string;
|
|
939
|
+
};
|
|
940
|
+
label?: string | null;
|
|
941
|
+
pane_id?: string | null;
|
|
942
|
+
type: 'pane';
|
|
943
|
+
} | {
|
|
944
|
+
direction: ResponseTypes.SplitDirection;
|
|
945
|
+
first: ResponseTypes.LayoutNode;
|
|
946
|
+
ratio: number;
|
|
947
|
+
second: ResponseTypes.LayoutNode;
|
|
948
|
+
type: 'split';
|
|
949
|
+
};
|
|
950
|
+
type NotificationShowReason = 'shown' | 'disabled' | 'rate_limited' | 'no_foreground_client' | 'busy';
|
|
951
|
+
type PaneDirection = 'left' | 'right' | 'up' | 'down';
|
|
952
|
+
type PaneEdgesResult = {
|
|
953
|
+
down: boolean;
|
|
954
|
+
layout: ResponseTypes.PaneLayoutSnapshot;
|
|
955
|
+
left: boolean;
|
|
956
|
+
pane_id: string;
|
|
957
|
+
right: boolean;
|
|
958
|
+
up: boolean;
|
|
959
|
+
};
|
|
960
|
+
type PaneFocusDirectionReason = 'no_neighbor';
|
|
961
|
+
type PaneFocusDirectionResult = {
|
|
962
|
+
changed: boolean;
|
|
963
|
+
focused_pane_id?: string | null;
|
|
964
|
+
layout: ResponseTypes.PaneLayoutSnapshot;
|
|
965
|
+
reason?: ResponseTypes.PaneFocusDirectionReason | null;
|
|
966
|
+
source_pane_id: string;
|
|
967
|
+
};
|
|
968
|
+
type PaneInfo = {
|
|
969
|
+
agent?: string | null;
|
|
970
|
+
agent_session?: ResponseTypes.AgentSessionInfo | null;
|
|
971
|
+
agent_status: ResponseTypes.AgentStatus;
|
|
972
|
+
cwd?: string | null;
|
|
973
|
+
display_agent?: string | null;
|
|
974
|
+
focused: boolean;
|
|
975
|
+
foreground_cwd?: string | null;
|
|
976
|
+
label?: string | null;
|
|
977
|
+
pane_id: string;
|
|
978
|
+
revision: number;
|
|
979
|
+
scroll?: ResponseTypes.PaneScrollInfo | null;
|
|
980
|
+
state_labels?: {
|
|
981
|
+
[key: string]: string;
|
|
982
|
+
};
|
|
983
|
+
tab_id: string;
|
|
984
|
+
terminal_id: string;
|
|
985
|
+
terminal_title?: string | null;
|
|
986
|
+
terminal_title_stripped?: string | null;
|
|
987
|
+
title?: string | null;
|
|
988
|
+
tokens?: {
|
|
989
|
+
[key: string]: string;
|
|
990
|
+
};
|
|
991
|
+
workspace_id: string;
|
|
992
|
+
};
|
|
993
|
+
type PaneLayoutPane = {
|
|
994
|
+
focused: boolean;
|
|
995
|
+
pane_id: string;
|
|
996
|
+
rect: ResponseTypes.PaneLayoutRect;
|
|
997
|
+
};
|
|
998
|
+
type PaneLayoutRect = {
|
|
999
|
+
height: number;
|
|
1000
|
+
width: number;
|
|
1001
|
+
x: number;
|
|
1002
|
+
y: number;
|
|
1003
|
+
};
|
|
1004
|
+
type PaneLayoutSnapshot = {
|
|
1005
|
+
area: ResponseTypes.PaneLayoutRect;
|
|
1006
|
+
focused_pane_id: string;
|
|
1007
|
+
panes: Array<ResponseTypes.PaneLayoutPane>;
|
|
1008
|
+
splits: Array<ResponseTypes.PaneLayoutSplit>;
|
|
1009
|
+
tab_id: string;
|
|
1010
|
+
workspace_id: string;
|
|
1011
|
+
zoomed: boolean;
|
|
1012
|
+
};
|
|
1013
|
+
type PaneLayoutSplit = {
|
|
1014
|
+
direction: ResponseTypes.SplitDirection;
|
|
1015
|
+
id: string;
|
|
1016
|
+
ratio: number;
|
|
1017
|
+
rect: ResponseTypes.PaneLayoutRect;
|
|
1018
|
+
};
|
|
1019
|
+
type PaneMoveReason = 'same_tab' | 'zoomed_tab';
|
|
1020
|
+
type PaneMoveResult = {
|
|
1021
|
+
changed: boolean;
|
|
1022
|
+
closed_tab_id?: string | null;
|
|
1023
|
+
closed_workspace_id?: string | null;
|
|
1024
|
+
created_tab?: ResponseTypes.TabInfo | null;
|
|
1025
|
+
created_workspace?: ResponseTypes.WorkspaceInfo | null;
|
|
1026
|
+
focused_pane_id: string;
|
|
1027
|
+
pane: ResponseTypes.PaneInfo;
|
|
1028
|
+
previous_pane_id: string;
|
|
1029
|
+
previous_tab_id: string;
|
|
1030
|
+
previous_workspace_id: string;
|
|
1031
|
+
reason?: ResponseTypes.PaneMoveReason | null;
|
|
1032
|
+
source_layout?: ResponseTypes.PaneLayoutSnapshot | null;
|
|
1033
|
+
target_layout: ResponseTypes.PaneLayoutSnapshot;
|
|
1034
|
+
};
|
|
1035
|
+
type PaneNeighborResult = {
|
|
1036
|
+
direction: ResponseTypes.PaneDirection;
|
|
1037
|
+
layout: ResponseTypes.PaneLayoutSnapshot;
|
|
1038
|
+
neighbor_pane_id?: string | null;
|
|
1039
|
+
pane_id: string;
|
|
1040
|
+
};
|
|
1041
|
+
type PaneProcessInfo = {
|
|
1042
|
+
foreground_process_group_id?: number | null;
|
|
1043
|
+
foreground_processes?: Array<ResponseTypes.PaneProcessInfoProcess>;
|
|
1044
|
+
pane_id: string;
|
|
1045
|
+
shell_pid?: number | null;
|
|
1046
|
+
tty?: string | null;
|
|
1047
|
+
};
|
|
1048
|
+
type PaneProcessInfoProcess = {
|
|
1049
|
+
argv?: Array<string> | null;
|
|
1050
|
+
argv0?: string | null;
|
|
1051
|
+
cmdline?: string | null;
|
|
1052
|
+
cwd?: string | null;
|
|
1053
|
+
name: string;
|
|
1054
|
+
pid: number;
|
|
1055
|
+
};
|
|
1056
|
+
type PaneReadResult = {
|
|
1057
|
+
format: ResponseTypes.ReadFormat;
|
|
1058
|
+
pane_id: string;
|
|
1059
|
+
revision: number;
|
|
1060
|
+
source: ResponseTypes.ReadSource;
|
|
1061
|
+
tab_id: string;
|
|
1062
|
+
text: string;
|
|
1063
|
+
truncated: boolean;
|
|
1064
|
+
workspace_id: string;
|
|
1065
|
+
};
|
|
1066
|
+
type PaneResizeReason = 'unchanged';
|
|
1067
|
+
type PaneResizeResult = {
|
|
1068
|
+
changed: boolean;
|
|
1069
|
+
focused_pane_id: string;
|
|
1070
|
+
layout: ResponseTypes.PaneLayoutSnapshot;
|
|
1071
|
+
pane_id: string;
|
|
1072
|
+
reason?: ResponseTypes.PaneResizeReason | null;
|
|
1073
|
+
};
|
|
1074
|
+
type PaneScrollInfo = {
|
|
1075
|
+
max_offset_from_bottom: number;
|
|
1076
|
+
offset_from_bottom: number;
|
|
1077
|
+
viewport_rows: number;
|
|
1078
|
+
};
|
|
1079
|
+
type PaneSwapReason = 'no_neighbor' | 'same_pane' | 'not_found' | 'cross_tab';
|
|
1080
|
+
type PaneSwapResult = {
|
|
1081
|
+
changed: boolean;
|
|
1082
|
+
focused_pane_id: string;
|
|
1083
|
+
layout: ResponseTypes.PaneLayoutSnapshot;
|
|
1084
|
+
reason?: ResponseTypes.PaneSwapReason | null;
|
|
1085
|
+
source_pane_id: string;
|
|
1086
|
+
target_pane_id?: string | null;
|
|
1087
|
+
};
|
|
1088
|
+
type PaneTextPoint = {
|
|
1089
|
+
col: number;
|
|
1090
|
+
row: number;
|
|
1091
|
+
};
|
|
1092
|
+
type PaneTextRange = {
|
|
1093
|
+
end: ResponseTypes.PaneTextPoint;
|
|
1094
|
+
start: ResponseTypes.PaneTextPoint;
|
|
1095
|
+
};
|
|
1096
|
+
type PaneZoomReason = 'single_pane' | 'already_zoomed' | 'already_unzoomed';
|
|
1097
|
+
type PaneZoomResult = {
|
|
1098
|
+
changed: boolean;
|
|
1099
|
+
focus_changed: boolean;
|
|
1100
|
+
focused_pane_id: string;
|
|
1101
|
+
layout: ResponseTypes.PaneLayoutSnapshot;
|
|
1102
|
+
pane_id: string;
|
|
1103
|
+
reason?: ResponseTypes.PaneZoomReason | null;
|
|
1104
|
+
zoom_changed: boolean;
|
|
1105
|
+
zoomed: boolean;
|
|
1106
|
+
};
|
|
1107
|
+
type PluginActionContext = 'global' | 'workspace' | 'tab' | 'pane' | 'selection';
|
|
1108
|
+
type PluginActionInfo = {
|
|
1109
|
+
action_id: string;
|
|
1110
|
+
command: Array<string>;
|
|
1111
|
+
contexts?: Array<ResponseTypes.PluginActionContext>;
|
|
1112
|
+
description?: string | null;
|
|
1113
|
+
platforms?: Array<ResponseTypes.PluginPlatform> | null;
|
|
1114
|
+
plugin_id: string;
|
|
1115
|
+
title: string;
|
|
1116
|
+
};
|
|
1117
|
+
type PluginCommandLogInfo = {
|
|
1118
|
+
action_id?: string | null;
|
|
1119
|
+
command: Array<string>;
|
|
1120
|
+
error?: string | null;
|
|
1121
|
+
event?: string | null;
|
|
1122
|
+
exit_code?: number | null;
|
|
1123
|
+
finished_unix_ms?: number | null;
|
|
1124
|
+
log_id: string;
|
|
1125
|
+
plugin_id: string;
|
|
1126
|
+
started_unix_ms: number;
|
|
1127
|
+
status: ResponseTypes.PluginCommandStatus;
|
|
1128
|
+
stderr?: string | null;
|
|
1129
|
+
stdout?: string | null;
|
|
1130
|
+
};
|
|
1131
|
+
type PluginCommandStatus = 'running' | 'succeeded' | 'failed';
|
|
1132
|
+
type PluginInvocationContext = {
|
|
1133
|
+
clicked_url?: string | null;
|
|
1134
|
+
correlation_id?: string | null;
|
|
1135
|
+
focused_pane_agent?: string | null;
|
|
1136
|
+
focused_pane_cwd?: string | null;
|
|
1137
|
+
focused_pane_id?: string | null;
|
|
1138
|
+
focused_pane_status?: ResponseTypes.AgentStatus | null;
|
|
1139
|
+
invocation_source?: string | null;
|
|
1140
|
+
link_handler_id?: string | null;
|
|
1141
|
+
selected_text?: string | null;
|
|
1142
|
+
tab_id?: string | null;
|
|
1143
|
+
tab_label?: string | null;
|
|
1144
|
+
workspace_cwd?: string | null;
|
|
1145
|
+
workspace_id?: string | null;
|
|
1146
|
+
workspace_label?: string | null;
|
|
1147
|
+
worktree?: ResponseTypes.WorkspaceWorktreeInfo | null;
|
|
1148
|
+
};
|
|
1149
|
+
type PluginManifestAction = {
|
|
1150
|
+
command: Array<string>;
|
|
1151
|
+
contexts?: Array<ResponseTypes.PluginActionContext>;
|
|
1152
|
+
description?: string | null;
|
|
1153
|
+
id: string;
|
|
1154
|
+
platforms?: Array<ResponseTypes.PluginPlatform> | null;
|
|
1155
|
+
title: string;
|
|
1156
|
+
};
|
|
1157
|
+
type PluginManifestBuild = {
|
|
1158
|
+
command: Array<string>;
|
|
1159
|
+
platforms?: Array<ResponseTypes.PluginPlatform> | null;
|
|
1160
|
+
};
|
|
1161
|
+
type PluginManifestEventHook = {
|
|
1162
|
+
command: Array<string>;
|
|
1163
|
+
on: string;
|
|
1164
|
+
platforms?: Array<ResponseTypes.PluginPlatform> | null;
|
|
1165
|
+
};
|
|
1166
|
+
type PluginManifestLinkHandler = {
|
|
1167
|
+
action: string;
|
|
1168
|
+
id: string;
|
|
1169
|
+
pattern: string;
|
|
1170
|
+
platforms?: Array<ResponseTypes.PluginPlatform> | null;
|
|
1171
|
+
title: string;
|
|
1172
|
+
};
|
|
1173
|
+
type PluginManifestPane = {
|
|
1174
|
+
command: Array<string>;
|
|
1175
|
+
description?: string | null;
|
|
1176
|
+
height?: ResponseTypes.PopupSize | null;
|
|
1177
|
+
id: string;
|
|
1178
|
+
placement?: ResponseTypes.PluginPanePlacement;
|
|
1179
|
+
platforms?: Array<ResponseTypes.PluginPlatform> | null;
|
|
1180
|
+
title: string;
|
|
1181
|
+
width?: ResponseTypes.PopupSize | null;
|
|
1182
|
+
};
|
|
1183
|
+
type PluginManifestStartup = {
|
|
1184
|
+
command: Array<string>;
|
|
1185
|
+
platforms?: Array<ResponseTypes.PluginPlatform> | null;
|
|
1186
|
+
};
|
|
1187
|
+
type PluginPaneInfo = {
|
|
1188
|
+
entrypoint: string;
|
|
1189
|
+
pane: ResponseTypes.PaneInfo;
|
|
1190
|
+
plugin_id: string;
|
|
1191
|
+
};
|
|
1192
|
+
type PluginPanePlacement = 'overlay' | 'popup' | 'split' | 'tab' | 'zoomed';
|
|
1193
|
+
type PluginPlatform = 'linux' | 'macos' | 'windows';
|
|
1194
|
+
type PluginSourceInfo = {
|
|
1195
|
+
installed_unix_ms?: number | null;
|
|
1196
|
+
kind?: ResponseTypes.PluginSourceKind;
|
|
1197
|
+
managed_path?: string | null;
|
|
1198
|
+
owner?: string | null;
|
|
1199
|
+
repo?: string | null;
|
|
1200
|
+
requested_ref?: string | null;
|
|
1201
|
+
resolved_commit?: string | null;
|
|
1202
|
+
subdir?: string | null;
|
|
1203
|
+
};
|
|
1204
|
+
type PluginSourceKind = 'local' | 'github';
|
|
1205
|
+
type PopupSize = number | string;
|
|
1206
|
+
type ReadFormat = 'text' | 'ansi';
|
|
1207
|
+
type ReadSource = 'visible' | 'recent' | 'recent_unwrapped' | 'detection';
|
|
1208
|
+
type ResponseResult = {
|
|
1209
|
+
capabilities?: ResponseTypes.ServerCapabilities | null;
|
|
1210
|
+
protocol: number;
|
|
1211
|
+
type: 'pong';
|
|
1212
|
+
version: string;
|
|
1213
|
+
} | {
|
|
1214
|
+
snapshot: ResponseTypes.SessionSnapshot;
|
|
1215
|
+
type: 'session_snapshot';
|
|
1216
|
+
} | {
|
|
1217
|
+
type: 'workspace_info';
|
|
1218
|
+
workspace: ResponseTypes.WorkspaceInfo;
|
|
1219
|
+
} | {
|
|
1220
|
+
root_pane: ResponseTypes.PaneInfo;
|
|
1221
|
+
tab: ResponseTypes.TabInfo;
|
|
1222
|
+
type: 'workspace_created';
|
|
1223
|
+
workspace: ResponseTypes.WorkspaceInfo;
|
|
1224
|
+
} | {
|
|
1225
|
+
type: 'workspace_list';
|
|
1226
|
+
workspaces: Array<ResponseTypes.WorkspaceInfo>;
|
|
1227
|
+
} | {
|
|
1228
|
+
source: ResponseTypes.WorktreeSourceInfo;
|
|
1229
|
+
type: 'worktree_list';
|
|
1230
|
+
worktrees: Array<ResponseTypes.WorktreeInfo>;
|
|
1231
|
+
} | {
|
|
1232
|
+
root_pane: ResponseTypes.PaneInfo;
|
|
1233
|
+
tab: ResponseTypes.TabInfo;
|
|
1234
|
+
type: 'worktree_created';
|
|
1235
|
+
workspace: ResponseTypes.WorkspaceInfo;
|
|
1236
|
+
worktree: ResponseTypes.WorktreeInfo;
|
|
1237
|
+
} | {
|
|
1238
|
+
already_open: boolean;
|
|
1239
|
+
root_pane: ResponseTypes.PaneInfo;
|
|
1240
|
+
tab: ResponseTypes.TabInfo;
|
|
1241
|
+
type: 'worktree_opened';
|
|
1242
|
+
workspace: ResponseTypes.WorkspaceInfo;
|
|
1243
|
+
worktree: ResponseTypes.WorktreeInfo;
|
|
1244
|
+
} | {
|
|
1245
|
+
forced: boolean;
|
|
1246
|
+
path: string;
|
|
1247
|
+
type: 'worktree_removed';
|
|
1248
|
+
workspace_id: string;
|
|
1249
|
+
} | {
|
|
1250
|
+
tab: ResponseTypes.TabInfo;
|
|
1251
|
+
type: 'tab_info';
|
|
1252
|
+
} | {
|
|
1253
|
+
root_pane: ResponseTypes.PaneInfo;
|
|
1254
|
+
tab: ResponseTypes.TabInfo;
|
|
1255
|
+
type: 'tab_created';
|
|
1256
|
+
} | {
|
|
1257
|
+
tabs: Array<ResponseTypes.TabInfo>;
|
|
1258
|
+
type: 'tab_list';
|
|
1259
|
+
} | {
|
|
1260
|
+
agent: ResponseTypes.AgentInfo;
|
|
1261
|
+
type: 'agent_info';
|
|
1262
|
+
} | {
|
|
1263
|
+
agent: ResponseTypes.AgentInfo;
|
|
1264
|
+
argv: Array<string>;
|
|
1265
|
+
type: 'agent_started';
|
|
1266
|
+
} | {
|
|
1267
|
+
agent: ResponseTypes.AgentInfo;
|
|
1268
|
+
type: 'agent_prompted';
|
|
1269
|
+
} | {
|
|
1270
|
+
agents: Array<ResponseTypes.AgentInfo>;
|
|
1271
|
+
type: 'agent_list';
|
|
1272
|
+
} | {
|
|
1273
|
+
active: boolean;
|
|
1274
|
+
label?: string | null;
|
|
1275
|
+
source?: string | null;
|
|
1276
|
+
type: 'agent_view';
|
|
1277
|
+
} | {
|
|
1278
|
+
pane: ResponseTypes.PaneInfo;
|
|
1279
|
+
type: 'pane_info';
|
|
1280
|
+
} | {
|
|
1281
|
+
panes: Array<ResponseTypes.PaneInfo>;
|
|
1282
|
+
type: 'pane_list';
|
|
1283
|
+
} | {
|
|
1284
|
+
pane: ResponseTypes.PaneInfo;
|
|
1285
|
+
type: 'pane_current';
|
|
1286
|
+
} | {
|
|
1287
|
+
swap: ResponseTypes.PaneSwapResult;
|
|
1288
|
+
type: 'pane_swap';
|
|
1289
|
+
} | {
|
|
1290
|
+
move_result: ResponseTypes.PaneMoveResult;
|
|
1291
|
+
type: 'pane_move';
|
|
1292
|
+
} | {
|
|
1293
|
+
type: 'pane_zoom';
|
|
1294
|
+
zoom: ResponseTypes.PaneZoomResult;
|
|
1295
|
+
} | {
|
|
1296
|
+
layout: ResponseTypes.PaneLayoutSnapshot;
|
|
1297
|
+
type: 'pane_layout';
|
|
1298
|
+
} | {
|
|
1299
|
+
process_info: ResponseTypes.PaneProcessInfo;
|
|
1300
|
+
type: 'pane_process_info';
|
|
1301
|
+
} | {
|
|
1302
|
+
layout: ResponseTypes.LayoutDescription;
|
|
1303
|
+
type: 'layout_export';
|
|
1304
|
+
} | {
|
|
1305
|
+
layout: ResponseTypes.LayoutDescription;
|
|
1306
|
+
type: 'layout_apply';
|
|
1307
|
+
} | {
|
|
1308
|
+
layout: ResponseTypes.LayoutDescription;
|
|
1309
|
+
type: 'layout_split_ratio_set';
|
|
1310
|
+
} | {
|
|
1311
|
+
neighbor: ResponseTypes.PaneNeighborResult;
|
|
1312
|
+
type: 'pane_neighbor';
|
|
1313
|
+
} | {
|
|
1314
|
+
edges: ResponseTypes.PaneEdgesResult;
|
|
1315
|
+
type: 'pane_edges';
|
|
1316
|
+
} | {
|
|
1317
|
+
focus: ResponseTypes.PaneFocusDirectionResult;
|
|
1318
|
+
type: 'pane_focus_direction';
|
|
1319
|
+
} | {
|
|
1320
|
+
resize: ResponseTypes.PaneResizeResult;
|
|
1321
|
+
type: 'pane_resize';
|
|
1322
|
+
} | {
|
|
1323
|
+
read: ResponseTypes.PaneReadResult;
|
|
1324
|
+
type: 'pane_read';
|
|
1325
|
+
} | {
|
|
1326
|
+
pane_id: string;
|
|
1327
|
+
text: string;
|
|
1328
|
+
type: 'pane_selection';
|
|
1329
|
+
} | {
|
|
1330
|
+
content_revision: number;
|
|
1331
|
+
cursor: ResponseTypes.PaneTextPoint;
|
|
1332
|
+
pane_id: string;
|
|
1333
|
+
type: 'pane_copy_motion';
|
|
1334
|
+
} | {
|
|
1335
|
+
content_revision: number;
|
|
1336
|
+
current?: number | null;
|
|
1337
|
+
current_global?: number | null;
|
|
1338
|
+
matches: Array<ResponseTypes.PaneTextRange>;
|
|
1339
|
+
pane_id: string;
|
|
1340
|
+
total: number;
|
|
1341
|
+
type: 'pane_copy_search';
|
|
1342
|
+
} | {
|
|
1343
|
+
revision: number;
|
|
1344
|
+
sequence: number;
|
|
1345
|
+
type: 'pane_graphics_frame_ack';
|
|
1346
|
+
} | {
|
|
1347
|
+
cell_height_px: number;
|
|
1348
|
+
cell_width_px: number;
|
|
1349
|
+
/** Accepts damage metadata while still consuming a complete canonical file. */
|
|
1350
|
+
file_frame_damage?: boolean;
|
|
1351
|
+
file_frame_direct_max_bytes?: number | null;
|
|
1352
|
+
file_frame_directory?: string | null;
|
|
1353
|
+
file_frame_formats?: Array<string>;
|
|
1354
|
+
file_frame_max_bytes?: number | null;
|
|
1355
|
+
file_frame_transport?: string | null;
|
|
1356
|
+
max_layers_per_pane?: number;
|
|
1357
|
+
/** True only when this pane is on the currently rendered terminal surface. */
|
|
1358
|
+
pane_visible: boolean;
|
|
1359
|
+
pixel_mouse?: boolean;
|
|
1360
|
+
type: 'pane_graphics_info';
|
|
1361
|
+
} | {
|
|
1362
|
+
explain: unknown;
|
|
1363
|
+
type: 'agent_explain';
|
|
1364
|
+
} | {
|
|
1365
|
+
type: 'subscription_started';
|
|
1366
|
+
} | {
|
|
1367
|
+
event: ResponseTypes.EventEnvelope;
|
|
1368
|
+
type: 'wait_matched';
|
|
1369
|
+
} | {
|
|
1370
|
+
matched_line?: string | null;
|
|
1371
|
+
pane_id: string;
|
|
1372
|
+
read: ResponseTypes.PaneReadResult;
|
|
1373
|
+
revision: number;
|
|
1374
|
+
type: 'output_matched';
|
|
1375
|
+
} | {
|
|
1376
|
+
reason: ResponseTypes.NotificationShowReason;
|
|
1377
|
+
shown: boolean;
|
|
1378
|
+
type: 'notification_show';
|
|
1379
|
+
} | {
|
|
1380
|
+
changed: boolean;
|
|
1381
|
+
reason: ResponseTypes.ClientWindowTitleReason;
|
|
1382
|
+
type: 'client_window_title';
|
|
1383
|
+
} | {
|
|
1384
|
+
integrations: Array<ResponseTypes.IntegrationInfo>;
|
|
1385
|
+
type: 'integration_list';
|
|
1386
|
+
} | {
|
|
1387
|
+
details: ResponseTypes.IntegrationInstallResult;
|
|
1388
|
+
target: ResponseTypes.IntegrationTarget;
|
|
1389
|
+
type: 'integration_install';
|
|
1390
|
+
} | {
|
|
1391
|
+
details: ResponseTypes.IntegrationUninstallResult;
|
|
1392
|
+
target: ResponseTypes.IntegrationTarget;
|
|
1393
|
+
type: 'integration_uninstall';
|
|
1394
|
+
} | {
|
|
1395
|
+
manifests: Array<ResponseTypes.AgentManifestInfo>;
|
|
1396
|
+
type: 'agent_manifest_reload';
|
|
1397
|
+
} | {
|
|
1398
|
+
last_check_unix?: number | null;
|
|
1399
|
+
last_result?: string | null;
|
|
1400
|
+
manifests: Array<ResponseTypes.AgentManifestInfo>;
|
|
1401
|
+
type: 'agent_manifest_status';
|
|
1402
|
+
} | {
|
|
1403
|
+
plugin: ResponseTypes.InstalledPluginInfo;
|
|
1404
|
+
type: 'plugin_linked';
|
|
1405
|
+
} | {
|
|
1406
|
+
plugins: Array<ResponseTypes.InstalledPluginInfo>;
|
|
1407
|
+
type: 'plugin_list';
|
|
1408
|
+
} | {
|
|
1409
|
+
plugin_id: string;
|
|
1410
|
+
removed: boolean;
|
|
1411
|
+
type: 'plugin_unlinked';
|
|
1412
|
+
} | {
|
|
1413
|
+
plugin: ResponseTypes.InstalledPluginInfo;
|
|
1414
|
+
type: 'plugin_enabled';
|
|
1415
|
+
} | {
|
|
1416
|
+
plugin: ResponseTypes.InstalledPluginInfo;
|
|
1417
|
+
type: 'plugin_disabled';
|
|
1418
|
+
} | {
|
|
1419
|
+
actions: Array<ResponseTypes.PluginActionInfo>;
|
|
1420
|
+
type: 'plugin_action_list';
|
|
1421
|
+
} | {
|
|
1422
|
+
action: ResponseTypes.PluginActionInfo;
|
|
1423
|
+
context: ResponseTypes.PluginInvocationContext;
|
|
1424
|
+
log: ResponseTypes.PluginCommandLogInfo;
|
|
1425
|
+
type: 'plugin_action_invoked';
|
|
1426
|
+
} | {
|
|
1427
|
+
handled: boolean;
|
|
1428
|
+
type: 'pane_link_activated';
|
|
1429
|
+
url?: string | null;
|
|
1430
|
+
} | {
|
|
1431
|
+
logs: Array<ResponseTypes.PluginCommandLogInfo>;
|
|
1432
|
+
type: 'plugin_log_list';
|
|
1433
|
+
} | {
|
|
1434
|
+
plugin_pane: ResponseTypes.PluginPaneInfo;
|
|
1435
|
+
type: 'plugin_pane_opened';
|
|
1436
|
+
} | {
|
|
1437
|
+
plugin_pane: ResponseTypes.PluginPaneInfo;
|
|
1438
|
+
type: 'plugin_pane_focused';
|
|
1439
|
+
} | {
|
|
1440
|
+
pane_id: string;
|
|
1441
|
+
type: 'plugin_pane_closed';
|
|
1442
|
+
} | {
|
|
1443
|
+
diagnostics: Array<string>;
|
|
1444
|
+
status: ResponseTypes.ConfigReloadStatus;
|
|
1445
|
+
type: 'config_reload';
|
|
1446
|
+
} | {
|
|
1447
|
+
active: boolean;
|
|
1448
|
+
projection_revision: number;
|
|
1449
|
+
type: 'client_shell_surface_set';
|
|
1450
|
+
} | {
|
|
1451
|
+
type: 'ok';
|
|
1452
|
+
};
|
|
1453
|
+
type ServerCapabilities = {
|
|
1454
|
+
detached_server_daemon?: boolean;
|
|
1455
|
+
/** Stable client-owned endpoint generation supported by this server. */
|
|
1456
|
+
endpoint_protocol_generation?: number | null;
|
|
1457
|
+
/** Whether this server supports endpoint health probes. */
|
|
1458
|
+
health_check?: boolean;
|
|
1459
|
+
live_handoff: boolean;
|
|
1460
|
+
/** Whether this server supports explicit client-shell surface interest. */
|
|
1461
|
+
surface_interest?: boolean;
|
|
1462
|
+
};
|
|
1463
|
+
type SessionSnapshot = {
|
|
1464
|
+
agents: Array<ResponseTypes.AgentInfo>;
|
|
1465
|
+
focused_pane_id?: string | null;
|
|
1466
|
+
focused_tab_id?: string | null;
|
|
1467
|
+
focused_workspace_id?: string | null;
|
|
1468
|
+
layouts: Array<ResponseTypes.PaneLayoutSnapshot>;
|
|
1469
|
+
panes: Array<ResponseTypes.PaneInfo>;
|
|
1470
|
+
protocol: number;
|
|
1471
|
+
tabs: Array<ResponseTypes.TabInfo>;
|
|
1472
|
+
version: string;
|
|
1473
|
+
workspaces: Array<ResponseTypes.WorkspaceInfo>;
|
|
1474
|
+
};
|
|
1475
|
+
type SplitDirection = 'right' | 'down';
|
|
1476
|
+
type TabInfo = {
|
|
1477
|
+
agent_status: ResponseTypes.AgentStatus;
|
|
1478
|
+
focused: boolean;
|
|
1479
|
+
label: string;
|
|
1480
|
+
number: number;
|
|
1481
|
+
pane_count: number;
|
|
1482
|
+
tab_id: string;
|
|
1483
|
+
workspace_id: string;
|
|
1484
|
+
};
|
|
1485
|
+
type WorkspaceInfo = {
|
|
1486
|
+
active_tab_id: string;
|
|
1487
|
+
agent_status: ResponseTypes.AgentStatus;
|
|
1488
|
+
focused: boolean;
|
|
1489
|
+
label: string;
|
|
1490
|
+
number: number;
|
|
1491
|
+
pane_count: number;
|
|
1492
|
+
tab_count: number;
|
|
1493
|
+
tokens?: {
|
|
1494
|
+
[key: string]: string;
|
|
1495
|
+
};
|
|
1496
|
+
workspace_id: string;
|
|
1497
|
+
worktree?: ResponseTypes.WorkspaceWorktreeInfo | null;
|
|
1498
|
+
};
|
|
1499
|
+
type WorkspaceWorktreeInfo = {
|
|
1500
|
+
checkout_path: string;
|
|
1501
|
+
is_linked_worktree: boolean;
|
|
1502
|
+
repo_key: string;
|
|
1503
|
+
repo_name: string;
|
|
1504
|
+
repo_root: string;
|
|
1505
|
+
};
|
|
1506
|
+
type WorktreeInfo = {
|
|
1507
|
+
branch?: string | null;
|
|
1508
|
+
is_bare: boolean;
|
|
1509
|
+
is_detached: boolean;
|
|
1510
|
+
is_linked_worktree: boolean;
|
|
1511
|
+
is_prunable: boolean;
|
|
1512
|
+
label: string;
|
|
1513
|
+
open_workspace_id?: string | null;
|
|
1514
|
+
path: string;
|
|
1515
|
+
};
|
|
1516
|
+
type WorktreeSourceInfo = {
|
|
1517
|
+
repo_key: string;
|
|
1518
|
+
repo_name: string;
|
|
1519
|
+
repo_root: string;
|
|
1520
|
+
source_checkout_path: string;
|
|
1521
|
+
source_workspace_id?: string | null;
|
|
1522
|
+
};
|
|
1523
|
+
}
|
|
1524
|
+
export declare namespace ErrorTypes {
|
|
1525
|
+
type ErrorBody = {
|
|
1526
|
+
code: string;
|
|
1527
|
+
message: string;
|
|
1528
|
+
};
|
|
1529
|
+
}
|
|
1530
|
+
export declare namespace EventTypes {
|
|
1531
|
+
type AgentSessionInfo = {
|
|
1532
|
+
agent: string;
|
|
1533
|
+
kind: EventTypes.AgentSessionRefKind;
|
|
1534
|
+
source: string;
|
|
1535
|
+
value: string;
|
|
1536
|
+
};
|
|
1537
|
+
type AgentSessionRefKind = 'id' | 'path';
|
|
1538
|
+
type AgentStatus = 'idle' | 'working' | 'blocked' | 'done' | 'unknown';
|
|
1539
|
+
type EventData = {
|
|
1540
|
+
type: 'workspace_created';
|
|
1541
|
+
workspace: EventTypes.WorkspaceInfo;
|
|
1542
|
+
} | {
|
|
1543
|
+
type: 'workspace_updated';
|
|
1544
|
+
workspace: EventTypes.WorkspaceInfo;
|
|
1545
|
+
} | {
|
|
1546
|
+
type: 'workspace_metadata_updated';
|
|
1547
|
+
workspace: EventTypes.WorkspaceInfo;
|
|
1548
|
+
} | {
|
|
1549
|
+
type: 'workspace_closed';
|
|
1550
|
+
workspace?: EventTypes.WorkspaceInfo | null;
|
|
1551
|
+
workspace_id: string;
|
|
1552
|
+
} | {
|
|
1553
|
+
label: string;
|
|
1554
|
+
type: 'workspace_renamed';
|
|
1555
|
+
workspace_id: string;
|
|
1556
|
+
} | {
|
|
1557
|
+
insert_index: number;
|
|
1558
|
+
type: 'workspace_moved';
|
|
1559
|
+
workspace_id: string;
|
|
1560
|
+
workspaces: Array<EventTypes.WorkspaceInfo>;
|
|
1561
|
+
} | {
|
|
1562
|
+
before_workspace_id?: string | null;
|
|
1563
|
+
type: 'workspace_reordered';
|
|
1564
|
+
workspace_ids: Array<string>;
|
|
1565
|
+
workspaces: Array<EventTypes.WorkspaceInfo>;
|
|
1566
|
+
} | {
|
|
1567
|
+
type: 'workspace_focused';
|
|
1568
|
+
workspace_id: string;
|
|
1569
|
+
} | {
|
|
1570
|
+
type: 'worktree_created';
|
|
1571
|
+
workspace: EventTypes.WorkspaceInfo;
|
|
1572
|
+
worktree: EventTypes.WorktreeInfo;
|
|
1573
|
+
} | {
|
|
1574
|
+
already_open: boolean;
|
|
1575
|
+
type: 'worktree_opened';
|
|
1576
|
+
workspace: EventTypes.WorkspaceInfo;
|
|
1577
|
+
worktree: EventTypes.WorktreeInfo;
|
|
1578
|
+
} | {
|
|
1579
|
+
forced: boolean;
|
|
1580
|
+
type: 'worktree_removed';
|
|
1581
|
+
workspace?: EventTypes.WorkspaceInfo | null;
|
|
1582
|
+
workspace_id: string;
|
|
1583
|
+
worktree: EventTypes.WorktreeInfo;
|
|
1584
|
+
} | {
|
|
1585
|
+
tab: EventTypes.TabInfo;
|
|
1586
|
+
type: 'tab_created';
|
|
1587
|
+
} | {
|
|
1588
|
+
tab_id: string;
|
|
1589
|
+
type: 'tab_closed';
|
|
1590
|
+
workspace_id: string;
|
|
1591
|
+
} | {
|
|
1592
|
+
label: string;
|
|
1593
|
+
tab_id: string;
|
|
1594
|
+
type: 'tab_renamed';
|
|
1595
|
+
workspace_id: string;
|
|
1596
|
+
} | {
|
|
1597
|
+
insert_index: number;
|
|
1598
|
+
tab_id: string;
|
|
1599
|
+
tabs: Array<EventTypes.TabInfo>;
|
|
1600
|
+
type: 'tab_moved';
|
|
1601
|
+
workspace_id: string;
|
|
1602
|
+
} | {
|
|
1603
|
+
tab_id: string;
|
|
1604
|
+
type: 'tab_focused';
|
|
1605
|
+
workspace_id: string;
|
|
1606
|
+
} | {
|
|
1607
|
+
pane: EventTypes.PaneInfo;
|
|
1608
|
+
type: 'pane_created';
|
|
1609
|
+
} | {
|
|
1610
|
+
pane_id: string;
|
|
1611
|
+
type: 'pane_closed';
|
|
1612
|
+
workspace_id: string;
|
|
1613
|
+
} | {
|
|
1614
|
+
pane: EventTypes.PaneInfo;
|
|
1615
|
+
type: 'pane_updated';
|
|
1616
|
+
} | {
|
|
1617
|
+
pane_id: string;
|
|
1618
|
+
type: 'pane_focused';
|
|
1619
|
+
workspace_id: string;
|
|
1620
|
+
} | {
|
|
1621
|
+
closed_tab_id?: string | null;
|
|
1622
|
+
closed_workspace_id?: string | null;
|
|
1623
|
+
created_tab?: EventTypes.TabInfo | null;
|
|
1624
|
+
created_workspace?: EventTypes.WorkspaceInfo | null;
|
|
1625
|
+
pane: EventTypes.PaneInfo;
|
|
1626
|
+
previous_pane_id: string;
|
|
1627
|
+
previous_tab_id: string;
|
|
1628
|
+
previous_workspace_id: string;
|
|
1629
|
+
type: 'pane_moved';
|
|
1630
|
+
} | {
|
|
1631
|
+
pane_id: string;
|
|
1632
|
+
revision: number;
|
|
1633
|
+
type: 'pane_output_changed';
|
|
1634
|
+
workspace_id: string;
|
|
1635
|
+
} | {
|
|
1636
|
+
pane_id: string;
|
|
1637
|
+
type: 'pane_exited';
|
|
1638
|
+
workspace_id: string;
|
|
1639
|
+
} | {
|
|
1640
|
+
agent?: string | null;
|
|
1641
|
+
final_status?: EventTypes.AgentStatus | null;
|
|
1642
|
+
pane_id: string;
|
|
1643
|
+
released?: boolean;
|
|
1644
|
+
type: 'pane_agent_detected';
|
|
1645
|
+
workspace_id: string;
|
|
1646
|
+
} | {
|
|
1647
|
+
agent?: string | null;
|
|
1648
|
+
agent_status: EventTypes.AgentStatus;
|
|
1649
|
+
display_agent?: string | null;
|
|
1650
|
+
pane_id: string;
|
|
1651
|
+
state_labels?: {
|
|
1652
|
+
[key: string]: string;
|
|
1653
|
+
};
|
|
1654
|
+
title?: string | null;
|
|
1655
|
+
type: 'pane_agent_status_changed';
|
|
1656
|
+
workspace_id: string;
|
|
1657
|
+
} | {
|
|
1658
|
+
layout: EventTypes.PaneLayoutSnapshot;
|
|
1659
|
+
type: 'layout_updated';
|
|
1660
|
+
};
|
|
1661
|
+
type EventKind = 'workspace_created' | 'workspace_updated' | 'workspace_metadata_updated' | 'workspace_closed' | 'workspace_renamed' | 'workspace_moved' | 'workspace_reordered' | 'workspace_focused' | 'worktree_created' | 'worktree_opened' | 'worktree_removed' | 'tab_created' | 'tab_closed' | 'tab_renamed' | 'tab_moved' | 'tab_focused' | 'pane_created' | 'pane_closed' | 'pane_updated' | 'pane_focused' | 'pane_moved' | 'pane_output_changed' | 'pane_exited' | 'pane_agent_detected' | 'pane_agent_status_changed' | 'layout_updated';
|
|
1662
|
+
type PaneInfo = {
|
|
1663
|
+
agent?: string | null;
|
|
1664
|
+
agent_session?: EventTypes.AgentSessionInfo | null;
|
|
1665
|
+
agent_status: EventTypes.AgentStatus;
|
|
1666
|
+
cwd?: string | null;
|
|
1667
|
+
display_agent?: string | null;
|
|
1668
|
+
focused: boolean;
|
|
1669
|
+
foreground_cwd?: string | null;
|
|
1670
|
+
label?: string | null;
|
|
1671
|
+
pane_id: string;
|
|
1672
|
+
revision: number;
|
|
1673
|
+
scroll?: EventTypes.PaneScrollInfo | null;
|
|
1674
|
+
state_labels?: {
|
|
1675
|
+
[key: string]: string;
|
|
1676
|
+
};
|
|
1677
|
+
tab_id: string;
|
|
1678
|
+
terminal_id: string;
|
|
1679
|
+
terminal_title?: string | null;
|
|
1680
|
+
terminal_title_stripped?: string | null;
|
|
1681
|
+
title?: string | null;
|
|
1682
|
+
tokens?: {
|
|
1683
|
+
[key: string]: string;
|
|
1684
|
+
};
|
|
1685
|
+
workspace_id: string;
|
|
1686
|
+
};
|
|
1687
|
+
type PaneLayoutPane = {
|
|
1688
|
+
focused: boolean;
|
|
1689
|
+
pane_id: string;
|
|
1690
|
+
rect: EventTypes.PaneLayoutRect;
|
|
1691
|
+
};
|
|
1692
|
+
type PaneLayoutRect = {
|
|
1693
|
+
height: number;
|
|
1694
|
+
width: number;
|
|
1695
|
+
x: number;
|
|
1696
|
+
y: number;
|
|
1697
|
+
};
|
|
1698
|
+
type PaneLayoutSnapshot = {
|
|
1699
|
+
area: EventTypes.PaneLayoutRect;
|
|
1700
|
+
focused_pane_id: string;
|
|
1701
|
+
panes: Array<EventTypes.PaneLayoutPane>;
|
|
1702
|
+
splits: Array<EventTypes.PaneLayoutSplit>;
|
|
1703
|
+
tab_id: string;
|
|
1704
|
+
workspace_id: string;
|
|
1705
|
+
zoomed: boolean;
|
|
1706
|
+
};
|
|
1707
|
+
type PaneLayoutSplit = {
|
|
1708
|
+
direction: EventTypes.SplitDirection;
|
|
1709
|
+
id: string;
|
|
1710
|
+
ratio: number;
|
|
1711
|
+
rect: EventTypes.PaneLayoutRect;
|
|
1712
|
+
};
|
|
1713
|
+
type PaneScrollInfo = {
|
|
1714
|
+
max_offset_from_bottom: number;
|
|
1715
|
+
offset_from_bottom: number;
|
|
1716
|
+
viewport_rows: number;
|
|
1717
|
+
};
|
|
1718
|
+
type SplitDirection = 'right' | 'down';
|
|
1719
|
+
type TabInfo = {
|
|
1720
|
+
agent_status: EventTypes.AgentStatus;
|
|
1721
|
+
focused: boolean;
|
|
1722
|
+
label: string;
|
|
1723
|
+
number: number;
|
|
1724
|
+
pane_count: number;
|
|
1725
|
+
tab_id: string;
|
|
1726
|
+
workspace_id: string;
|
|
1727
|
+
};
|
|
1728
|
+
type WorkspaceInfo = {
|
|
1729
|
+
active_tab_id: string;
|
|
1730
|
+
agent_status: EventTypes.AgentStatus;
|
|
1731
|
+
focused: boolean;
|
|
1732
|
+
label: string;
|
|
1733
|
+
number: number;
|
|
1734
|
+
pane_count: number;
|
|
1735
|
+
tab_count: number;
|
|
1736
|
+
tokens?: {
|
|
1737
|
+
[key: string]: string;
|
|
1738
|
+
};
|
|
1739
|
+
workspace_id: string;
|
|
1740
|
+
worktree?: EventTypes.WorkspaceWorktreeInfo | null;
|
|
1741
|
+
};
|
|
1742
|
+
type WorkspaceWorktreeInfo = {
|
|
1743
|
+
checkout_path: string;
|
|
1744
|
+
is_linked_worktree: boolean;
|
|
1745
|
+
repo_key: string;
|
|
1746
|
+
repo_name: string;
|
|
1747
|
+
repo_root: string;
|
|
1748
|
+
};
|
|
1749
|
+
type WorktreeInfo = {
|
|
1750
|
+
branch?: string | null;
|
|
1751
|
+
is_bare: boolean;
|
|
1752
|
+
is_detached: boolean;
|
|
1753
|
+
is_linked_worktree: boolean;
|
|
1754
|
+
is_prunable: boolean;
|
|
1755
|
+
label: string;
|
|
1756
|
+
open_workspace_id?: string | null;
|
|
1757
|
+
path: string;
|
|
1758
|
+
};
|
|
1759
|
+
}
|
|
1760
|
+
export declare namespace SubscriptionTypes {
|
|
1761
|
+
type AgentStatus = 'idle' | 'working' | 'blocked' | 'done' | 'unknown';
|
|
1762
|
+
type PaneAgentStatusChangedEvent = {
|
|
1763
|
+
agent?: string | null;
|
|
1764
|
+
agent_status: SubscriptionTypes.AgentStatus;
|
|
1765
|
+
display_agent?: string | null;
|
|
1766
|
+
pane_id: string;
|
|
1767
|
+
state_labels?: {
|
|
1768
|
+
[key: string]: string;
|
|
1769
|
+
};
|
|
1770
|
+
title?: string | null;
|
|
1771
|
+
workspace_id: string;
|
|
1772
|
+
};
|
|
1773
|
+
type PaneOutputMatchedEvent = {
|
|
1774
|
+
matched_line: string;
|
|
1775
|
+
pane_id: string;
|
|
1776
|
+
read: SubscriptionTypes.PaneReadResult;
|
|
1777
|
+
};
|
|
1778
|
+
type PaneReadResult = {
|
|
1779
|
+
format: SubscriptionTypes.ReadFormat;
|
|
1780
|
+
pane_id: string;
|
|
1781
|
+
revision: number;
|
|
1782
|
+
source: SubscriptionTypes.ReadSource;
|
|
1783
|
+
tab_id: string;
|
|
1784
|
+
text: string;
|
|
1785
|
+
truncated: boolean;
|
|
1786
|
+
workspace_id: string;
|
|
1787
|
+
};
|
|
1788
|
+
type PaneScrollChangedEvent = {
|
|
1789
|
+
pane_id: string;
|
|
1790
|
+
scroll: SubscriptionTypes.PaneScrollInfo;
|
|
1791
|
+
workspace_id: string;
|
|
1792
|
+
};
|
|
1793
|
+
type PaneScrollInfo = {
|
|
1794
|
+
max_offset_from_bottom: number;
|
|
1795
|
+
offset_from_bottom: number;
|
|
1796
|
+
viewport_rows: number;
|
|
1797
|
+
};
|
|
1798
|
+
type ReadFormat = 'text' | 'ansi';
|
|
1799
|
+
type ReadSource = 'visible' | 'recent' | 'recent_unwrapped' | 'detection';
|
|
1800
|
+
type SubscriptionEventData = SubscriptionTypes.PaneOutputMatchedEvent | SubscriptionTypes.PaneAgentStatusChangedEvent | SubscriptionTypes.PaneScrollChangedEvent;
|
|
1801
|
+
type SubscriptionEventKind = 'pane.output_matched' | 'pane.agent_status_changed' | 'pane.scroll_changed';
|
|
1802
|
+
}
|
|
1803
|
+
export interface HerdrParams {
|
|
1804
|
+
ping: RequestTypes.PingParams;
|
|
1805
|
+
'server.stop': RequestTypes.EmptyParams;
|
|
1806
|
+
'server.live_handoff': RequestTypes.ServerLiveHandoffParams;
|
|
1807
|
+
'server.reload_config': RequestTypes.EmptyParams;
|
|
1808
|
+
'server.agent_manifests': RequestTypes.EmptyParams;
|
|
1809
|
+
'server.reload_agent_manifests': RequestTypes.EmptyParams;
|
|
1810
|
+
'notification.show': RequestTypes.NotificationShowParams;
|
|
1811
|
+
'product_announcement.dismiss': RequestTypes.ProductAnnouncementDismissParams;
|
|
1812
|
+
'release_notes.dismiss': RequestTypes.ReleaseNotesDismissParams;
|
|
1813
|
+
'command.invoke': RequestTypes.CommandInvokeParams;
|
|
1814
|
+
'client.window_title.set': RequestTypes.ClientWindowTitleSetParams;
|
|
1815
|
+
'client.window_title.clear': RequestTypes.EmptyParams;
|
|
1816
|
+
'client_shell.surface.set': RequestTypes.ClientShellSurfaceSetParams;
|
|
1817
|
+
'session.snapshot': RequestTypes.EmptyParams;
|
|
1818
|
+
'workspace.create': RequestTypes.WorkspaceCreateParams;
|
|
1819
|
+
'workspace.list': RequestTypes.EmptyParams;
|
|
1820
|
+
'workspace.get': RequestTypes.WorkspaceTarget;
|
|
1821
|
+
'workspace.focus': RequestTypes.WorkspaceTarget;
|
|
1822
|
+
'workspace.rename': RequestTypes.WorkspaceRenameParams;
|
|
1823
|
+
'workspace.move': RequestTypes.WorkspaceMoveParams;
|
|
1824
|
+
'workspace.move_block': RequestTypes.WorkspaceMoveBlockParams;
|
|
1825
|
+
'workspace.report_metadata': RequestTypes.WorkspaceReportMetadataParams;
|
|
1826
|
+
'workspace.close': RequestTypes.WorkspaceCloseParams;
|
|
1827
|
+
'worktree.list': RequestTypes.WorktreeListParams;
|
|
1828
|
+
'worktree.create': RequestTypes.WorktreeCreateParams;
|
|
1829
|
+
'worktree.open': RequestTypes.WorktreeOpenParams;
|
|
1830
|
+
'worktree.remove': RequestTypes.WorktreeRemoveParams;
|
|
1831
|
+
'tab.create': RequestTypes.TabCreateParams;
|
|
1832
|
+
'tab.list': RequestTypes.TabListParams;
|
|
1833
|
+
'tab.get': RequestTypes.TabTarget;
|
|
1834
|
+
'tab.focus': RequestTypes.TabTarget;
|
|
1835
|
+
'tab.rename': RequestTypes.TabRenameParams;
|
|
1836
|
+
'tab.move': RequestTypes.TabMoveParams;
|
|
1837
|
+
'tab.close': RequestTypes.TabTarget;
|
|
1838
|
+
'agent.list': RequestTypes.EmptyParams;
|
|
1839
|
+
'agent.get': RequestTypes.AgentTarget;
|
|
1840
|
+
'agent.read': RequestTypes.AgentReadParams;
|
|
1841
|
+
'agent.explain': RequestTypes.AgentTarget;
|
|
1842
|
+
'agent.send_keys': RequestTypes.AgentSendKeysParams;
|
|
1843
|
+
'agent.rename': RequestTypes.AgentRenameParams;
|
|
1844
|
+
'agent.view.set': RequestTypes.AgentViewSetParams;
|
|
1845
|
+
'agent.view.clear': RequestTypes.AgentViewClearParams;
|
|
1846
|
+
'agent.focus': RequestTypes.AgentTarget;
|
|
1847
|
+
'agent.start': RequestTypes.AgentStartParams;
|
|
1848
|
+
'agent.prompt': RequestTypes.AgentPromptParams;
|
|
1849
|
+
'agent.wait': RequestTypes.AgentWaitParams;
|
|
1850
|
+
'pane.split': RequestTypes.PaneSplitParams;
|
|
1851
|
+
'pane.swap': RequestTypes.PaneSwapParams;
|
|
1852
|
+
'pane.move': RequestTypes.PaneMoveParams;
|
|
1853
|
+
'pane.zoom': RequestTypes.PaneZoomParams;
|
|
1854
|
+
'pane.layout': RequestTypes.PaneLayoutParams;
|
|
1855
|
+
'pane.process_info': RequestTypes.PaneProcessInfoParams;
|
|
1856
|
+
'layout.export': RequestTypes.LayoutExportParams;
|
|
1857
|
+
'layout.apply': RequestTypes.LayoutApplyParams;
|
|
1858
|
+
'layout.set_split_ratio': RequestTypes.LayoutSetSplitRatioParams;
|
|
1859
|
+
'pane.neighbor': RequestTypes.PaneNeighborParams;
|
|
1860
|
+
'pane.edges': RequestTypes.PaneEdgesParams;
|
|
1861
|
+
'pane.focus_direction': RequestTypes.PaneFocusDirectionParams;
|
|
1862
|
+
'pane.resize': RequestTypes.PaneResizeParams;
|
|
1863
|
+
'pane.scroll': RequestTypes.PaneScrollParams;
|
|
1864
|
+
'pane.edit_scrollback': RequestTypes.PaneTarget;
|
|
1865
|
+
'pane.selection.read': RequestTypes.PaneSelectionReadParams;
|
|
1866
|
+
'pane.copy_motion': RequestTypes.PaneCopyMotionParams;
|
|
1867
|
+
'pane.copy_search': RequestTypes.PaneCopySearchParams;
|
|
1868
|
+
'pane.list': RequestTypes.PaneListParams;
|
|
1869
|
+
'pane.current': RequestTypes.PaneCurrentParams;
|
|
1870
|
+
'pane.get': RequestTypes.PaneTarget;
|
|
1871
|
+
'pane.focus': RequestTypes.PaneTarget;
|
|
1872
|
+
'pane.input.set': RequestTypes.PaneInputSetParams;
|
|
1873
|
+
'pane.link.activate': RequestTypes.PaneLinkActivateParams;
|
|
1874
|
+
'pane.rename': RequestTypes.PaneRenameParams;
|
|
1875
|
+
'pane.send_text': RequestTypes.PaneSendTextParams;
|
|
1876
|
+
'pane.send_keys': RequestTypes.PaneSendKeysParams;
|
|
1877
|
+
'pane.send_input': RequestTypes.PaneSendInputParams;
|
|
1878
|
+
'pane.read': RequestTypes.PaneReadParams;
|
|
1879
|
+
'pane.graphics.set': RequestTypes.PaneGraphicsSetParams;
|
|
1880
|
+
'pane.graphics.clear': RequestTypes.PaneGraphicsClearParams;
|
|
1881
|
+
'pane.graphics.info': RequestTypes.PaneTarget;
|
|
1882
|
+
'pane.report_agent': RequestTypes.PaneReportAgentParams;
|
|
1883
|
+
'pane.report_agent_session': RequestTypes.PaneReportAgentSessionParams;
|
|
1884
|
+
'pane.report_metadata': RequestTypes.PaneReportMetadataParams;
|
|
1885
|
+
'pane.clear_agent_authority': RequestTypes.PaneClearAgentAuthorityParams;
|
|
1886
|
+
'pane.release_agent': RequestTypes.PaneReleaseAgentParams;
|
|
1887
|
+
'pane.close': RequestTypes.PaneTarget;
|
|
1888
|
+
'popup.close': RequestTypes.EmptyParams;
|
|
1889
|
+
'events.subscribe': RequestTypes.EventsSubscribeParams;
|
|
1890
|
+
'events.wait': RequestTypes.EventsWaitParams;
|
|
1891
|
+
'pane.wait_for_output': RequestTypes.PaneWaitForOutputParams;
|
|
1892
|
+
'integration.list': RequestTypes.EmptyParams;
|
|
1893
|
+
'integration.install': RequestTypes.IntegrationInstallParams;
|
|
1894
|
+
'integration.uninstall': RequestTypes.IntegrationUninstallParams;
|
|
1895
|
+
'plugin.link': RequestTypes.PluginLinkParams;
|
|
1896
|
+
'plugin.list': RequestTypes.PluginListParams;
|
|
1897
|
+
'plugin.unlink': RequestTypes.PluginUnlinkParams;
|
|
1898
|
+
'plugin.enable': RequestTypes.PluginSetEnabledParams;
|
|
1899
|
+
'plugin.disable': RequestTypes.PluginSetEnabledParams;
|
|
1900
|
+
'plugin.action.list': RequestTypes.PluginActionListParams;
|
|
1901
|
+
'plugin.action.invoke': RequestTypes.PluginActionInvokeParams;
|
|
1902
|
+
'plugin.log.list': RequestTypes.PluginLogListParams;
|
|
1903
|
+
'plugin.pane.open': RequestTypes.PluginPaneOpenParams;
|
|
1904
|
+
'plugin.pane.focus': RequestTypes.PluginPaneFocusParams;
|
|
1905
|
+
'plugin.pane.close': RequestTypes.PluginPaneCloseParams;
|
|
1906
|
+
}
|
|
1907
|
+
export declare const HERDR_METHODS: readonly ["ping", "server.stop", "server.live_handoff", "server.reload_config", "server.agent_manifests", "server.reload_agent_manifests", "notification.show", "product_announcement.dismiss", "release_notes.dismiss", "command.invoke", "client.window_title.set", "client.window_title.clear", "client_shell.surface.set", "session.snapshot", "workspace.create", "workspace.list", "workspace.get", "workspace.focus", "workspace.rename", "workspace.move", "workspace.move_block", "workspace.report_metadata", "workspace.close", "worktree.list", "worktree.create", "worktree.open", "worktree.remove", "tab.create", "tab.list", "tab.get", "tab.focus", "tab.rename", "tab.move", "tab.close", "agent.list", "agent.get", "agent.read", "agent.explain", "agent.send_keys", "agent.rename", "agent.view.set", "agent.view.clear", "agent.focus", "agent.start", "agent.prompt", "agent.wait", "pane.split", "pane.swap", "pane.move", "pane.zoom", "pane.layout", "pane.process_info", "layout.export", "layout.apply", "layout.set_split_ratio", "pane.neighbor", "pane.edges", "pane.focus_direction", "pane.resize", "pane.scroll", "pane.edit_scrollback", "pane.selection.read", "pane.copy_motion", "pane.copy_search", "pane.list", "pane.current", "pane.get", "pane.focus", "pane.input.set", "pane.link.activate", "pane.rename", "pane.send_text", "pane.send_keys", "pane.send_input", "pane.read", "pane.graphics.set", "pane.graphics.clear", "pane.graphics.info", "pane.report_agent", "pane.report_agent_session", "pane.report_metadata", "pane.clear_agent_authority", "pane.release_agent", "pane.close", "popup.close", "events.subscribe", "events.wait", "pane.wait_for_output", "integration.list", "integration.install", "integration.uninstall", "plugin.link", "plugin.list", "plugin.unlink", "plugin.enable", "plugin.disable", "plugin.action.list", "plugin.action.invoke", "plugin.log.list", "plugin.pane.open", "plugin.pane.focus", "plugin.pane.close"];
|
|
1908
|
+
export type HerdrMethod = keyof HerdrParams;
|
|
1909
|
+
export type HerdrResult = ResponseTypes.ResponseResult;
|
|
1910
|
+
export type HerdrEvent = {
|
|
1911
|
+
data: EventTypes.EventData;
|
|
1912
|
+
event: EventTypes.EventKind;
|
|
1913
|
+
} | {
|
|
1914
|
+
data: SubscriptionTypes.SubscriptionEventData;
|
|
1915
|
+
event: SubscriptionTypes.SubscriptionEventKind;
|
|
1916
|
+
};
|