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