@parallelworks/code 0.1.0 → 0.3.0

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.
Files changed (118) hide show
  1. package/README.md +171 -24
  2. package/dist/ago.d.ts +8 -0
  3. package/dist/ago.js +26 -0
  4. package/dist/api.d.ts +3547 -0
  5. package/dist/apiClient.d.ts +26 -0
  6. package/dist/apiClient.js +5 -0
  7. package/dist/base64.d.ts +3 -0
  8. package/dist/base64.js +15 -0
  9. package/dist/chatHandoff.d.ts +12 -0
  10. package/dist/chatHandoff.js +27 -0
  11. package/dist/claudeAccounts.d.ts +112 -0
  12. package/dist/claudeAccounts.js +234 -0
  13. package/dist/claudeApi.d.ts +27 -0
  14. package/dist/claudeApi.js +250 -0
  15. package/dist/claudeSignIn.d.ts +62 -0
  16. package/dist/claudeSignIn.js +239 -0
  17. package/dist/command.d.ts +47 -0
  18. package/dist/command.js +64 -0
  19. package/dist/commandsApi.d.ts +64 -0
  20. package/dist/commandsApi.js +267 -0
  21. package/dist/contextRow.d.ts +25 -0
  22. package/dist/contextRow.js +16 -0
  23. package/dist/createPwCodeApi.d.ts +696 -0
  24. package/dist/createPwCodeApi.js +33 -0
  25. package/dist/howSessionsAppear.d.ts +12 -0
  26. package/dist/howSessionsAppear.js +24 -0
  27. package/dist/index.d.ts +39 -3
  28. package/dist/index.js +38 -3
  29. package/dist/locales/en/agentTranscript.js +162 -0
  30. package/dist/locales/en/agents.js +380 -0
  31. package/dist/locales/en.d.ts +523 -0
  32. package/dist/locales/en.js +8 -0
  33. package/dist/locales/es/agentTranscript.js +162 -0
  34. package/dist/locales/es/agents.js +380 -0
  35. package/dist/locales/es.d.ts +3 -0
  36. package/dist/locales/es.js +8 -0
  37. package/dist/locales/ja/agentTranscript.js +162 -0
  38. package/dist/locales/ja/agents.js +380 -0
  39. package/dist/locales/ja.d.ts +3 -0
  40. package/dist/locales/ja.js +8 -0
  41. package/dist/locales/ko/agentTranscript.js +162 -0
  42. package/dist/locales/ko/agents.js +380 -0
  43. package/dist/locales/ko.d.ts +3 -0
  44. package/dist/locales/ko.js +8 -0
  45. package/dist/locales/zh/agentTranscript.js +162 -0
  46. package/dist/locales/zh/agents.js +380 -0
  47. package/dist/locales/zh.d.ts +3 -0
  48. package/dist/locales/zh.js +8 -0
  49. package/dist/machine.d.ts +51 -0
  50. package/dist/machine.js +60 -0
  51. package/dist/messages.d.ts +17 -0
  52. package/dist/messages.js +31 -0
  53. package/dist/models.d.ts +47 -0
  54. package/dist/models.js +49 -0
  55. package/dist/notices.d.ts +12 -0
  56. package/dist/notices.js +120 -0
  57. package/dist/pullRequest.d.ts +8 -0
  58. package/dist/pullRequest.js +29 -0
  59. package/dist/pullRequestList.d.ts +52 -0
  60. package/dist/pullRequestList.js +106 -0
  61. package/dist/query.d.ts +28 -0
  62. package/dist/query.js +25 -0
  63. package/dist/session.d.ts +75 -1
  64. package/dist/session.js +101 -1
  65. package/dist/sessionActions.d.ts +105 -0
  66. package/dist/sessionActions.js +178 -0
  67. package/dist/sessionEvents.d.ts +27 -0
  68. package/dist/sessionEvents.js +212 -0
  69. package/dist/sessionGroups.d.ts +49 -0
  70. package/dist/sessionGroups.js +72 -0
  71. package/dist/sessionHeader.d.ts +14 -0
  72. package/dist/sessionHeader.js +16 -0
  73. package/dist/sessionList.d.ts +134 -0
  74. package/dist/sessionList.js +271 -0
  75. package/dist/sessionsApi.d.ts +105 -0
  76. package/dist/sessionsApi.js +511 -0
  77. package/dist/settingsApi.d.ts +36 -0
  78. package/dist/settingsApi.js +151 -0
  79. package/dist/startSession.d.ts +138 -0
  80. package/dist/startSession.js +234 -0
  81. package/dist/terminalHandoffPanel.d.ts +30 -0
  82. package/dist/terminalHandoffPanel.js +33 -0
  83. package/dist/toolStrings.d.ts +4 -0
  84. package/dist/toolStrings.js +95 -0
  85. package/dist/transcript.d.ts +14 -1
  86. package/dist/transcript.js +55 -14
  87. package/dist/types.d.ts +20 -1
  88. package/dist/usageLimit.d.ts +8 -0
  89. package/dist/usageLimit.js +13 -0
  90. package/dist/useAwayRecap.d.ts +30 -0
  91. package/dist/useAwayRecap.js +75 -0
  92. package/dist/useComposer.d.ts +121 -0
  93. package/dist/useComposer.js +244 -0
  94. package/dist/useComposerImages.d.ts +66 -0
  95. package/dist/useComposerImages.js +195 -0
  96. package/dist/useConversation.d.ts +190 -0
  97. package/dist/useConversation.js +287 -0
  98. package/dist/useSubagent.d.ts +58 -0
  99. package/dist/useSubagent.js +149 -0
  100. package/dist/useTranscript.d.ts +4 -1
  101. package/dist/useTranscript.js +54 -11
  102. package/dist/wording.d.ts +43 -0
  103. package/dist/wording.js +101 -0
  104. package/dist/workingDirectories.d.ts +32 -0
  105. package/dist/workingDirectories.js +71 -0
  106. package/dist/worktreeChoice.d.ts +31 -0
  107. package/dist/worktreeChoice.js +38 -0
  108. package/locales/en/agentTranscript.json +154 -0
  109. package/locales/en/agents.json +366 -0
  110. package/locales/es/agentTranscript.json +154 -0
  111. package/locales/es/agents.json +366 -0
  112. package/locales/ja/agentTranscript.json +154 -0
  113. package/locales/ja/agents.json +366 -0
  114. package/locales/ko/agentTranscript.json +154 -0
  115. package/locales/ko/agents.json +366 -0
  116. package/locales/zh/agentTranscript.json +154 -0
  117. package/locales/zh/agents.json +366 -0
  118. package/package.json +24 -9
package/dist/api.d.ts ADDED
@@ -0,0 +1,3547 @@
1
+ /**
2
+ * Generated by scripts/generate-api.ts from the platform OpenAPI spec,
3
+ * pruned to the routes this package calls. Do not edit.
4
+ */
5
+
6
+ export interface paths {
7
+ "/api/code/sessions": {
8
+ parameters: {
9
+ query?: never;
10
+ header?: never;
11
+ path?: never;
12
+ cookie?: never;
13
+ };
14
+ /**
15
+ * List pw code sessions across your machines
16
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
17
+ *
18
+ * Asks every connected cluster and instance you can log in to for its pw code sessions and returns them together with each machine's reachability. Nothing is stored: the answer is what the machines report right now.
19
+ */
20
+ get: operations["list-agent-sessions"];
21
+ put?: never;
22
+ post?: never;
23
+ delete?: never;
24
+ options?: never;
25
+ head?: never;
26
+ patch?: never;
27
+ trace?: never;
28
+ };
29
+ "/api/code/machines/{machine}/palette": {
30
+ parameters: {
31
+ query?: never;
32
+ header?: never;
33
+ path?: never;
34
+ cookie?: never;
35
+ };
36
+ /**
37
+ * List the slash commands a new pw code session could start with
38
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
39
+ *
40
+ * Lists the skills, custom commands, and prompt commands a session started in the workspace could take as its first prompt, loaded as that session would load them. The machine answers only when its owner lets sessions start remotely.
41
+ */
42
+ get: operations["get-agent-workspace-palette"];
43
+ put?: never;
44
+ post?: never;
45
+ delete?: never;
46
+ options?: never;
47
+ head?: never;
48
+ patch?: never;
49
+ trace?: never;
50
+ };
51
+ "/api/code/machines/{machine}/sessions": {
52
+ parameters: {
53
+ query?: never;
54
+ header?: never;
55
+ path?: never;
56
+ cookie?: never;
57
+ };
58
+ /**
59
+ * List pw code sessions on one machine
60
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
61
+ *
62
+ * Returns the pw code sessions one machine's daemon reports, with the machine's reachability.
63
+ */
64
+ get: operations["list-agent-machine-sessions"];
65
+ put?: never;
66
+ /**
67
+ * Start a pw code session on a machine
68
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
69
+ *
70
+ * Starts a session in the given workspace on the machine. The machine allows this only when its owner turned remoteControl on, and clamps the session to the machine's remoteMaxPermissionMode.
71
+ */
72
+ post: operations["create-agent-session"];
73
+ delete?: never;
74
+ options?: never;
75
+ head?: never;
76
+ patch?: never;
77
+ trace?: never;
78
+ };
79
+ "/api/code/machines/{machine}/claude-code/models": {
80
+ parameters: {
81
+ query?: never;
82
+ header?: never;
83
+ path?: never;
84
+ cookie?: never;
85
+ };
86
+ /**
87
+ * List Claude subscription models on a machine
88
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
89
+ *
90
+ * List Claude subscription models on a machine. Uses the machine's existing Claude Code login. The daemon enforces its remote start or session control policy.
91
+ */
92
+ get: operations["get-agent-machine-claude-models"];
93
+ put?: never;
94
+ post?: never;
95
+ delete?: never;
96
+ options?: never;
97
+ head?: never;
98
+ patch?: never;
99
+ trace?: never;
100
+ };
101
+ "/api/code/machines/{machine}/claude-code/accounts": {
102
+ parameters: {
103
+ query?: never;
104
+ header?: never;
105
+ path?: never;
106
+ cookie?: never;
107
+ };
108
+ /**
109
+ * List Claude Code accounts on a machine
110
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
111
+ *
112
+ * List Claude Code accounts on a machine. Uses the machine's existing Claude Code login. The daemon enforces its remote start or session control policy.
113
+ */
114
+ get: operations["get-agent-machine-claude-accounts"];
115
+ put?: never;
116
+ post?: never;
117
+ delete?: never;
118
+ options?: never;
119
+ head?: never;
120
+ patch?: never;
121
+ trace?: never;
122
+ };
123
+ "/api/code/machines/{machine}/claude-code/accounts/{name}": {
124
+ parameters: {
125
+ query?: never;
126
+ header?: never;
127
+ path?: never;
128
+ cookie?: never;
129
+ };
130
+ get?: never;
131
+ put?: never;
132
+ post?: never;
133
+ /**
134
+ * Remove a Claude Code account from a machine
135
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
136
+ *
137
+ * Remove a Claude Code account from a machine. Signs the account out with the official Claude Code CLI and deletes its profile on the machine. The default account and an account a session uses cannot be removed. The daemon enforces its remote start policy.
138
+ */
139
+ delete: operations["delete-agent-machine-claude-account"];
140
+ options?: never;
141
+ head?: never;
142
+ patch?: never;
143
+ trace?: never;
144
+ };
145
+ "/api/code/machines/{machine}/claude-code/logins": {
146
+ parameters: {
147
+ query?: never;
148
+ header?: never;
149
+ path?: never;
150
+ cookie?: never;
151
+ };
152
+ get?: never;
153
+ put?: never;
154
+ /**
155
+ * Start Claude Code sign-in
156
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
157
+ *
158
+ * Start Claude Code sign-in. Runs the official Claude Code sign-in on the chosen host. Authentication stays with Claude Code and does not change the conversation or selected model.
159
+ */
160
+ post: operations["start-agent-claude-login"];
161
+ delete?: never;
162
+ options?: never;
163
+ head?: never;
164
+ patch?: never;
165
+ trace?: never;
166
+ };
167
+ "/api/code/machines/{machine}/claude-code/logins/{loginId}": {
168
+ parameters: {
169
+ query?: never;
170
+ header?: never;
171
+ path?: never;
172
+ cookie?: never;
173
+ };
174
+ /**
175
+ * Read Claude Code sign-in output
176
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
177
+ *
178
+ * Read Claude Code sign-in output. Runs the official Claude Code sign-in on the chosen host. Authentication stays with Claude Code and does not change the conversation or selected model.
179
+ */
180
+ get: operations["get-agent-claude-login"];
181
+ put?: never;
182
+ post?: never;
183
+ /**
184
+ * Cancel Claude Code sign-in
185
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
186
+ *
187
+ * Cancel Claude Code sign-in. Runs the official Claude Code sign-in on the chosen host. Authentication stays with Claude Code and does not change the conversation or selected model.
188
+ */
189
+ delete: operations["cancel-agent-claude-login"];
190
+ options?: never;
191
+ head?: never;
192
+ patch?: never;
193
+ trace?: never;
194
+ };
195
+ "/api/code/machines/{machine}/claude-code/logins/{loginId}/input": {
196
+ parameters: {
197
+ query?: never;
198
+ header?: never;
199
+ path?: never;
200
+ cookie?: never;
201
+ };
202
+ get?: never;
203
+ put?: never;
204
+ /**
205
+ * Send input to Claude Code sign-in
206
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
207
+ *
208
+ * Send input to Claude Code sign-in. Runs the official Claude Code sign-in on the chosen host. Authentication stays with Claude Code and does not change the conversation or selected model.
209
+ */
210
+ post: operations["write-agent-claude-login"];
211
+ delete?: never;
212
+ options?: never;
213
+ head?: never;
214
+ patch?: never;
215
+ trace?: never;
216
+ };
217
+ "/api/code/machines/{machine}/sessions/{id}": {
218
+ parameters: {
219
+ query?: never;
220
+ header?: never;
221
+ path?: never;
222
+ cookie?: never;
223
+ };
224
+ /**
225
+ * Get a pw code session transcript
226
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
227
+ *
228
+ * Returns one session's transcript and state as its machine's daemon reports them. Live updates stream from /ws/code/machines/{machine}/sessions/{id}/events.
229
+ */
230
+ get: operations["get-agent-session"];
231
+ put?: never;
232
+ post?: never;
233
+ /**
234
+ * Delete a pw code session
235
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
236
+ *
237
+ * Removes the session and its transcripts from the machine. Destroying a session is wider than sending it a turn, so the machine's daemon holds it to the same limit: a session that refuses remote drive can only be deleted from the machine itself. The worktree the session works in stays on disk unless worktree=remove asks to remove it too, which the machine refuses, deleting nothing, when the session no longer works there, another session does, the session is working, or its permission mode can't edit files.
238
+ */
239
+ delete: operations["delete-agent-session"];
240
+ options?: never;
241
+ head?: never;
242
+ patch?: never;
243
+ trace?: never;
244
+ };
245
+ "/api/code/machines/{machine}/sessions/{id}/approvals/{approvalId}": {
246
+ parameters: {
247
+ query?: never;
248
+ header?: never;
249
+ path?: never;
250
+ cookie?: never;
251
+ };
252
+ get?: never;
253
+ put?: never;
254
+ /**
255
+ * Answer a pw code approval request
256
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
257
+ *
258
+ * Answers an approval the agent is waiting on. The machine's daemon decides whether the answer is allowed: a session running above the remote permission ceiling can only be answered from the machine itself, and an answer sent from here never grants standing directory access.
259
+ */
260
+ post: operations["answer-agent-session-approval"];
261
+ delete?: never;
262
+ options?: never;
263
+ head?: never;
264
+ patch?: never;
265
+ trace?: never;
266
+ };
267
+ "/api/code/machines/{machine}/sessions/{id}/archive": {
268
+ parameters: {
269
+ query?: never;
270
+ header?: never;
271
+ path?: never;
272
+ cookie?: never;
273
+ };
274
+ get?: never;
275
+ put?: never;
276
+ /**
277
+ * Archive a pw code session
278
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
279
+ *
280
+ * Shuts the session down and marks it archived, keeping its transcript. Archiving stops its work and its scheduled tasks, and the session refuses messages until it is restored. A running turn is stopped, unless afterTurn asks to archive once it ends. Refused while another host holds it live.
281
+ */
282
+ post: operations["archive-agent-session"];
283
+ /**
284
+ * Restore an archived pw code session
285
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
286
+ *
287
+ * Clears the session's archived mark, so it takes messages again.
288
+ */
289
+ delete: operations["restore-agent-session"];
290
+ options?: never;
291
+ head?: never;
292
+ patch?: never;
293
+ trace?: never;
294
+ };
295
+ "/api/code/machines/{machine}/sessions/{id}/background": {
296
+ parameters: {
297
+ query?: never;
298
+ header?: never;
299
+ path?: never;
300
+ cookie?: never;
301
+ };
302
+ get?: never;
303
+ put?: never;
304
+ /**
305
+ * Move a pw code session's running commands to the background
306
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
307
+ *
308
+ * Moves the Bash commands the agent is waiting on to the background, as ctrl+b does in the terminal: they keep running, the turn goes on without their output, and the agent is told when each exits. Nothing happens when no command is running.
309
+ */
310
+ post: operations["background-agent-session-commands"];
311
+ delete?: never;
312
+ options?: never;
313
+ head?: never;
314
+ patch?: never;
315
+ trace?: never;
316
+ };
317
+ "/api/code/machines/{machine}/sessions/{id}/claude-code/accounts": {
318
+ parameters: {
319
+ query?: never;
320
+ header?: never;
321
+ path?: never;
322
+ cookie?: never;
323
+ };
324
+ /**
325
+ * List Claude Code accounts on a session's machine
326
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
327
+ *
328
+ * List Claude Code accounts on a session's machine. Uses the machine's existing Claude Code login. The daemon enforces its remote start or session control policy.
329
+ */
330
+ get: operations["get-agent-session-claude-accounts"];
331
+ put?: never;
332
+ post?: never;
333
+ delete?: never;
334
+ options?: never;
335
+ head?: never;
336
+ patch?: never;
337
+ trace?: never;
338
+ };
339
+ "/api/code/machines/{machine}/sessions/{id}/clear": {
340
+ parameters: {
341
+ query?: never;
342
+ header?: never;
343
+ path?: never;
344
+ cookie?: never;
345
+ };
346
+ get?: never;
347
+ put?: never;
348
+ /**
349
+ * Start a pw code session over
350
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
351
+ *
352
+ * Runs /clear: the conversation continues as a fresh session, whose id this answers with. Refused while a turn runs.
353
+ */
354
+ post: operations["clear-agent-session"];
355
+ delete?: never;
356
+ options?: never;
357
+ head?: never;
358
+ patch?: never;
359
+ trace?: never;
360
+ };
361
+ "/api/code/machines/{machine}/sessions/{id}/commands": {
362
+ parameters: {
363
+ query?: never;
364
+ header?: never;
365
+ path?: never;
366
+ cookie?: never;
367
+ };
368
+ get?: never;
369
+ put?: never;
370
+ /**
371
+ * Run a built-in slash command in a pw code session
372
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
373
+ *
374
+ * Runs a built-in command such as /status, /model, or /cost and answers with its output. /clear, /compact, /goal, and /plan have routes of their own; skills and custom commands are sent as messages.
375
+ */
376
+ post: operations["run-agent-session-command"];
377
+ delete?: never;
378
+ options?: never;
379
+ head?: never;
380
+ patch?: never;
381
+ trace?: never;
382
+ };
383
+ "/api/code/machines/{machine}/sessions/{id}/compact": {
384
+ parameters: {
385
+ query?: never;
386
+ header?: never;
387
+ path?: never;
388
+ cookie?: never;
389
+ };
390
+ get?: never;
391
+ put?: never;
392
+ /**
393
+ * Summarize a pw code session's context
394
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
395
+ *
396
+ * Runs /compact, optionally focused on what to keep. Refused while a turn runs.
397
+ */
398
+ post: operations["compact-agent-session"];
399
+ delete?: never;
400
+ options?: never;
401
+ head?: never;
402
+ patch?: never;
403
+ trace?: never;
404
+ };
405
+ "/api/code/machines/{machine}/sessions/{id}/direction": {
406
+ parameters: {
407
+ query?: never;
408
+ header?: never;
409
+ path?: never;
410
+ cookie?: never;
411
+ };
412
+ get?: never;
413
+ put?: never;
414
+ /**
415
+ * Steer a pw code session's running turn
416
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
417
+ *
418
+ * Hands text to the turn in flight, which the model reads at its next step rather than after the turn ends, the way typing into a busy pw code terminal does. Not delivered means no turn was running to take it; send it as a message instead.
419
+ */
420
+ post: operations["steer-agent-session"];
421
+ delete?: never;
422
+ options?: never;
423
+ head?: never;
424
+ patch?: never;
425
+ trace?: never;
426
+ };
427
+ "/api/code/machines/{machine}/sessions/{id}/fork": {
428
+ parameters: {
429
+ query?: never;
430
+ header?: never;
431
+ path?: never;
432
+ cookie?: never;
433
+ };
434
+ get?: never;
435
+ put?: never;
436
+ /**
437
+ * Copy a pw code session
438
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
439
+ *
440
+ * Copies the session and its subagent transcripts into a new one on the same machine, leaving the original untouched. Refused while the session is mid-turn, and while another host holds it live.
441
+ */
442
+ post: operations["fork-agent-session"];
443
+ delete?: never;
444
+ options?: never;
445
+ head?: never;
446
+ patch?: never;
447
+ trace?: never;
448
+ };
449
+ "/api/code/machines/{machine}/sessions/{id}/goal": {
450
+ parameters: {
451
+ query?: never;
452
+ header?: never;
453
+ path?: never;
454
+ cookie?: never;
455
+ };
456
+ get?: never;
457
+ put?: never;
458
+ /**
459
+ * Set, show, or clear a pw code session's goal
460
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
461
+ *
462
+ * Runs /goal with the same arguments the terminal takes. Setting or resuming a goal starts a turn on the session.
463
+ */
464
+ post: operations["set-agent-session-goal"];
465
+ delete?: never;
466
+ options?: never;
467
+ head?: never;
468
+ patch?: never;
469
+ trace?: never;
470
+ };
471
+ "/api/code/machines/{machine}/sessions/{id}/group": {
472
+ parameters: {
473
+ query?: never;
474
+ header?: never;
475
+ path?: never;
476
+ cookie?: never;
477
+ };
478
+ get?: never;
479
+ /**
480
+ * Put a pw code session in one of your groups
481
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
482
+ *
483
+ * Records on the session's machine which of your groups the session is in, replacing any other. The groups themselves, with their names, are kept in your preferences. Refused by a machine whose pw predates groups.
484
+ */
485
+ put: operations["group-agent-session"];
486
+ post?: never;
487
+ /**
488
+ * Take a pw code session out of its group
489
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
490
+ *
491
+ * Clears the group recorded on the session.
492
+ */
493
+ delete: operations["ungroup-agent-session"];
494
+ options?: never;
495
+ head?: never;
496
+ patch?: never;
497
+ trace?: never;
498
+ };
499
+ "/api/code/machines/{machine}/sessions/{id}/images": {
500
+ parameters: {
501
+ query?: never;
502
+ header?: never;
503
+ path?: never;
504
+ cookie?: never;
505
+ };
506
+ get?: never;
507
+ put?: never;
508
+ /**
509
+ * Attach an image to a pw code session
510
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
511
+ *
512
+ * Saves an image on the machine for a message to carry, as pasting one into the pw code terminal does. Send the path it answers with in the message's images, and name the image in the text by its [Image #N] placeholder.
513
+ */
514
+ post: operations["upload-agent-session-image"];
515
+ delete?: never;
516
+ options?: never;
517
+ head?: never;
518
+ patch?: never;
519
+ trace?: never;
520
+ };
521
+ "/api/code/machines/{machine}/sessions/{id}/messages": {
522
+ parameters: {
523
+ query?: never;
524
+ header?: never;
525
+ path?: never;
526
+ cookie?: never;
527
+ };
528
+ get?: never;
529
+ put?: never;
530
+ /**
531
+ * Send a message to a pw code session
532
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
533
+ *
534
+ * Sends a message to the session, starting a turn or queueing behind the one in flight. The machine's daemon decides whether it is allowed: a session running above the remote permission ceiling, or one whose lease another host holds, can only be driven from the machine itself.
535
+ */
536
+ post: operations["send-agent-session-message"];
537
+ delete?: never;
538
+ options?: never;
539
+ head?: never;
540
+ patch?: never;
541
+ trace?: never;
542
+ };
543
+ "/api/code/machines/{machine}/sessions/{id}/models": {
544
+ parameters: {
545
+ query?: never;
546
+ header?: never;
547
+ path?: never;
548
+ cookie?: never;
549
+ };
550
+ /**
551
+ * List Claude subscription models for a session
552
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
553
+ *
554
+ * List Claude subscription models for a session. Uses the machine's existing Claude Code login. The daemon enforces its remote start or session control policy.
555
+ */
556
+ get: operations["get-agent-session-claude-models"];
557
+ put?: never;
558
+ post?: never;
559
+ delete?: never;
560
+ options?: never;
561
+ head?: never;
562
+ patch?: never;
563
+ trace?: never;
564
+ };
565
+ "/api/code/machines/{machine}/sessions/{id}/palette": {
566
+ parameters: {
567
+ query?: never;
568
+ header?: never;
569
+ path?: never;
570
+ cookie?: never;
571
+ };
572
+ /**
573
+ * List a pw code session's slash commands
574
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
575
+ *
576
+ * Lists the built-in commands, skills, custom commands, and MCP prompts the session can run, as the terminal's / palette shows them.
577
+ */
578
+ get: operations["get-agent-session-palette"];
579
+ put?: never;
580
+ post?: never;
581
+ delete?: never;
582
+ options?: never;
583
+ head?: never;
584
+ patch?: never;
585
+ trace?: never;
586
+ };
587
+ "/api/code/machines/{machine}/sessions/{id}/pin": {
588
+ parameters: {
589
+ query?: never;
590
+ header?: never;
591
+ path?: never;
592
+ cookie?: never;
593
+ };
594
+ get?: never;
595
+ put?: never;
596
+ /**
597
+ * Pin a pw code session
598
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
599
+ *
600
+ * Marks the session pinned, which lists it ahead of the others in its group here and in pw agents.
601
+ */
602
+ post: operations["pin-agent-session"];
603
+ /**
604
+ * Unpin a pw code session
605
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
606
+ *
607
+ * Clears the session's pinned mark.
608
+ */
609
+ delete: operations["unpin-agent-session"];
610
+ options?: never;
611
+ head?: never;
612
+ patch?: never;
613
+ trace?: never;
614
+ };
615
+ "/api/code/machines/{machine}/sessions/{id}/plan": {
616
+ parameters: {
617
+ query?: never;
618
+ header?: never;
619
+ path?: never;
620
+ cookie?: never;
621
+ };
622
+ get?: never;
623
+ put?: never;
624
+ /**
625
+ * Run /plan in a pw code session
626
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
627
+ *
628
+ * Runs /plan and answers with what the caller owes next: prose to show, the session's plan, a request to send as a turn, a plan file only the terminal can open, or nothing.
629
+ */
630
+ post: operations["run-agent-session-plan"];
631
+ delete?: never;
632
+ options?: never;
633
+ head?: never;
634
+ patch?: never;
635
+ trace?: never;
636
+ };
637
+ "/api/code/machines/{machine}/sessions/{id}/pull-requests": {
638
+ parameters: {
639
+ query?: never;
640
+ header?: never;
641
+ path?: never;
642
+ cookie?: never;
643
+ };
644
+ /**
645
+ * Get the state of a pw code session's pull requests
646
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
647
+ *
648
+ * Returns each GitHub pull request and GitLab merge request the session opened and whether it is open, merged, or closed, as the machine's own GitHub or GitLab login reads it. A state is absent when the machine could not read it.
649
+ */
650
+ get: operations["get-agent-session-pull-requests"];
651
+ put?: never;
652
+ post?: never;
653
+ delete?: never;
654
+ options?: never;
655
+ head?: never;
656
+ patch?: never;
657
+ trace?: never;
658
+ };
659
+ "/api/code/machines/{machine}/sessions/{id}/queued/{turnId}": {
660
+ parameters: {
661
+ query?: never;
662
+ header?: never;
663
+ path?: never;
664
+ cookie?: never;
665
+ };
666
+ get?: never;
667
+ put?: never;
668
+ post?: never;
669
+ /**
670
+ * Take back a queued message
671
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
672
+ *
673
+ * Removes a message waiting behind the running turn before its own turn starts. Refused with 409 once that turn has started.
674
+ */
675
+ delete: operations["withdraw-agent-session-message"];
676
+ options?: never;
677
+ head?: never;
678
+ patch?: never;
679
+ trace?: never;
680
+ };
681
+ "/api/code/machines/{machine}/sessions/{id}/recap": {
682
+ parameters: {
683
+ query?: never;
684
+ header?: never;
685
+ path?: never;
686
+ cookie?: never;
687
+ };
688
+ get?: never;
689
+ put?: never;
690
+ /**
691
+ * Recap where a pw code session stands
692
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
693
+ *
694
+ * Has the session write a short recap of its goal and next step for a reader who stepped away. The recap arrives on the session's event feed as a recap event and stays in its history. The request stays open while the model writes it, up to about a minute, and ending the request stops it. The machine answers without writing one while its recaps are off, a turn or other work is under way, or too little has happened since the last recap.
695
+ */
696
+ post: operations["recap-agent-session"];
697
+ delete?: never;
698
+ options?: never;
699
+ head?: never;
700
+ patch?: never;
701
+ trace?: never;
702
+ };
703
+ "/api/code/machines/{machine}/sessions/{id}/rename": {
704
+ parameters: {
705
+ query?: never;
706
+ header?: never;
707
+ path?: never;
708
+ cookie?: never;
709
+ };
710
+ get?: never;
711
+ put?: never;
712
+ /**
713
+ * Rename a pw code session
714
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
715
+ *
716
+ * Renames the session in the machine's store. Refused while the session is mid-turn, and while another host holds it live.
717
+ */
718
+ post: operations["rename-agent-session"];
719
+ delete?: never;
720
+ options?: never;
721
+ head?: never;
722
+ patch?: never;
723
+ trace?: never;
724
+ };
725
+ "/api/code/machines/{machine}/sessions/{id}/settings": {
726
+ parameters: {
727
+ query?: never;
728
+ header?: never;
729
+ path?: never;
730
+ cookie?: never;
731
+ };
732
+ get?: never;
733
+ put?: never;
734
+ post?: never;
735
+ delete?: never;
736
+ options?: never;
737
+ head?: never;
738
+ /**
739
+ * Change a running pw code session's model, effort, allocation or authority
740
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
741
+ *
742
+ * Changes what a live session runs as, and answers with its new state. The machine's daemon decides whether it is allowed: the session must be live, an org provider model needs an allocation, and a session already running above the remote permission ceiling can only be changed from the machine itself.
743
+ */
744
+ patch: operations["update-agent-session-settings"];
745
+ trace?: never;
746
+ };
747
+ "/api/code/machines/{machine}/sessions/{id}/shell": {
748
+ parameters: {
749
+ query?: never;
750
+ header?: never;
751
+ path?: never;
752
+ cookie?: never;
753
+ };
754
+ get?: never;
755
+ put?: never;
756
+ /**
757
+ * Run a ! shell command in a pw code session
758
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
759
+ *
760
+ * Runs a command in the session's workspace, as typing ! in the terminal does, and answers with its output. The command and output join the conversation, and the session starts the model's reply to them. The machine refuses a command its owner could not approve from a remote origin or that its PreToolUse hooks deny, and stops one that runs longer than about 20 seconds.
761
+ */
762
+ post: operations["run-agent-session-shell"];
763
+ delete?: never;
764
+ options?: never;
765
+ head?: never;
766
+ patch?: never;
767
+ trace?: never;
768
+ };
769
+ "/api/code/machines/{machine}/sessions/{id}/stop": {
770
+ parameters: {
771
+ query?: never;
772
+ header?: never;
773
+ path?: never;
774
+ cookie?: never;
775
+ };
776
+ get?: never;
777
+ put?: never;
778
+ /**
779
+ * Stop a pw code session's work
780
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
781
+ *
782
+ * Stops the running turn and pauses the session's goal, if it has one, so no further turn starts on its own. Background subagents keep running. Like interrupt, it is not held to the remote permission ceiling. A session with nothing running answers as stopped.
783
+ */
784
+ post: operations["stop-agent-session"];
785
+ delete?: never;
786
+ options?: never;
787
+ head?: never;
788
+ patch?: never;
789
+ trace?: never;
790
+ };
791
+ "/api/code/machines/{machine}/sessions/{id}/subagents": {
792
+ parameters: {
793
+ query?: never;
794
+ header?: never;
795
+ path?: never;
796
+ cookie?: never;
797
+ };
798
+ /**
799
+ * List a pw code session's subagents
800
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
801
+ *
802
+ * Lists the subagents the session started, running or finished, in the order they started, with how each one's latest run stands. Only a session its machine is running answers: reading the list never opens a saved session, which answers 404.
803
+ */
804
+ get: operations["list-agent-session-subagents"];
805
+ put?: never;
806
+ post?: never;
807
+ delete?: never;
808
+ options?: never;
809
+ head?: never;
810
+ patch?: never;
811
+ trace?: never;
812
+ };
813
+ "/api/code/machines/{machine}/sessions/{id}/subagents/stop-all": {
814
+ parameters: {
815
+ query?: never;
816
+ header?: never;
817
+ path?: never;
818
+ cookie?: never;
819
+ };
820
+ get?: never;
821
+ put?: never;
822
+ /**
823
+ * Stop every subagent of a pw code session
824
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
825
+ *
826
+ * Stops the work in flight on each of the session's subagents and leaves the session's own turn running. Like interrupt, it is not held to the remote permission ceiling. A session with no subagent running answers as stopped.
827
+ */
828
+ post: operations["stop-agent-session-subagents"];
829
+ delete?: never;
830
+ options?: never;
831
+ head?: never;
832
+ patch?: never;
833
+ trace?: never;
834
+ };
835
+ "/api/code/machines/{machine}/sessions/{id}/subagents/{subId}": {
836
+ parameters: {
837
+ query?: never;
838
+ header?: never;
839
+ path?: never;
840
+ cookie?: never;
841
+ };
842
+ /**
843
+ * Get a pw code subagent's transcript
844
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
845
+ *
846
+ * Returns one subagent's conversation, the approvals it is waiting on, and how its latest run stands. lastSeq is where the session's event feed stood at this read: the events after it, under the subagent's id, carry what the transcript does not hold yet. A turn sent to the subagent as a message streams there in full; a task the session delegated shows only as subagent_action events, so read this again to follow one.
847
+ */
848
+ get: operations["get-agent-session-subagent"];
849
+ put?: never;
850
+ post?: never;
851
+ delete?: never;
852
+ options?: never;
853
+ head?: never;
854
+ patch?: never;
855
+ trace?: never;
856
+ };
857
+ "/api/code/machines/{machine}/sessions/{id}/subagents/{subId}/direction": {
858
+ parameters: {
859
+ query?: never;
860
+ header?: never;
861
+ path?: never;
862
+ cookie?: never;
863
+ };
864
+ get?: never;
865
+ put?: never;
866
+ /**
867
+ * Steer a pw code subagent's running work
868
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
869
+ *
870
+ * Hands text to the subagent's task or turn in flight, which its model reads at its next step. Not delivered means the subagent was not running; send it as a message instead.
871
+ */
872
+ post: operations["steer-agent-session-subagent"];
873
+ delete?: never;
874
+ options?: never;
875
+ head?: never;
876
+ patch?: never;
877
+ trace?: never;
878
+ };
879
+ "/api/code/machines/{machine}/sessions/{id}/subagents/{subId}/messages": {
880
+ parameters: {
881
+ query?: never;
882
+ header?: never;
883
+ path?: never;
884
+ cookie?: never;
885
+ };
886
+ get?: never;
887
+ put?: never;
888
+ /**
889
+ * Send a message to a pw code subagent
890
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
891
+ *
892
+ * Starts a turn on a subagent that is not running one. Its events arrive on the session's event feed under the subagent's id and the turn id this answers with. Refused with 409 while the subagent is mid-turn; steer it instead. The machine's daemon holds it to the rules of a message to the session.
893
+ */
894
+ post: operations["send-agent-session-subagent-message"];
895
+ delete?: never;
896
+ options?: never;
897
+ head?: never;
898
+ patch?: never;
899
+ trace?: never;
900
+ };
901
+ "/api/code/machines/{machine}/sessions/{id}/subagents/{subId}/stop": {
902
+ parameters: {
903
+ query?: never;
904
+ header?: never;
905
+ path?: never;
906
+ cookie?: never;
907
+ };
908
+ get?: never;
909
+ put?: never;
910
+ /**
911
+ * Stop a pw code subagent
912
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
913
+ *
914
+ * Stops the subagent's task or turn in flight and nothing else: the session and its other subagents keep running. Like interrupt, it is not held to the remote permission ceiling. A subagent with nothing running answers as stopped.
915
+ */
916
+ post: operations["stop-agent-session-subagent"];
917
+ delete?: never;
918
+ options?: never;
919
+ head?: never;
920
+ patch?: never;
921
+ trace?: never;
922
+ };
923
+ "/api/code/machines/{machine}/sessions/{id}/texts": {
924
+ parameters: {
925
+ query?: never;
926
+ header?: never;
927
+ path?: never;
928
+ cookie?: never;
929
+ };
930
+ get?: never;
931
+ put?: never;
932
+ /**
933
+ * Save a large paste with a pw code session
934
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
935
+ *
936
+ * Saves pasted text in the session's folder on the machine, so a message can refer to it by placeholder instead of carrying it. The machine holds it to the same checks as a message: remote control must be on, and a session running above the remote permission ceiling takes pastes only from the machine itself. A session keeps at most 256MiB of pastes, and one with tools off refuses a paste too large to send its model inline, since the model could not read it as a file.
937
+ */
938
+ post: operations["upload-agent-session-paste"];
939
+ delete?: never;
940
+ options?: never;
941
+ head?: never;
942
+ patch?: never;
943
+ trace?: never;
944
+ };
945
+ "/api/code/machines/{machine}/sessions/{id}/worktree": {
946
+ parameters: {
947
+ query?: never;
948
+ header?: never;
949
+ path?: never;
950
+ cookie?: never;
951
+ };
952
+ /**
953
+ * Get the worktree a pw code session works in
954
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
955
+ *
956
+ * Returns the git worktree the session moved into with EnterWorktree, what removing it would delete, and whether deleting the session can remove it. Empty while the session works where it launched, or once its worktree is gone. A session the machine isn't running answers from its saved transcript.
957
+ */
958
+ get: operations["get-agent-session-worktree"];
959
+ put?: never;
960
+ post?: never;
961
+ delete?: never;
962
+ options?: never;
963
+ head?: never;
964
+ patch?: never;
965
+ trace?: never;
966
+ };
967
+ "/api/code/machines/{machine}/sessions/{id}/worktree/leave": {
968
+ parameters: {
969
+ query?: never;
970
+ header?: never;
971
+ path?: never;
972
+ cookie?: never;
973
+ };
974
+ get?: never;
975
+ put?: never;
976
+ /**
977
+ * Move a pw code session out of its worktree
978
+ * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
979
+ *
980
+ * Moves the session back to the directory it launched in, keeping its worktree on the machine, or with remove, removing the worktree and its branch too. Opens the session first when the machine isn't running it. Refused, changing nothing, while the session is working, when it no longer works in the worktree named, when another session works there, or, for remove, when the session's permission mode can't edit files.
981
+ */
982
+ post: operations["leave-agent-session-worktree"];
983
+ delete?: never;
984
+ options?: never;
985
+ head?: never;
986
+ patch?: never;
987
+ trace?: never;
988
+ };
989
+ }
990
+ export interface webhooks {
991
+ agentSessionEvents: {
992
+ parameters: {
993
+ query?: never;
994
+ header?: never;
995
+ path?: never;
996
+ cookie?: never;
997
+ };
998
+ /**
999
+ * pw code session event feed
1000
+ * @description One JSON frame per message on the WebSocket at /ws/code/machines/{machine}/sessions/{id}/events?after=N. Pass the last seq seen as after to resume; a replay_truncated frame means the transcript must be refetched.
1001
+ */
1002
+ get: operations["agent-session-events"];
1003
+ put?: never;
1004
+ post?: never;
1005
+ delete?: never;
1006
+ options?: never;
1007
+ head?: never;
1008
+ patch?: never;
1009
+ trace?: never;
1010
+ };
1011
+ }
1012
+ export interface components {
1013
+ schemas: {
1014
+ AddedDirectory: {
1015
+ path: string;
1016
+ scopes?: string[] | null;
1017
+ };
1018
+ AgentArchiveBody: {
1019
+ /** @description Archive once the running turn ends instead of stopping it. A message sent, the turn stopped, or the turn ending in an error cancels the archive. Archives at once when no turn is running. */
1020
+ afterTurn?: boolean;
1021
+ };
1022
+ AgentArchived: {
1023
+ /** @description The session archives once its running turn ends. */
1024
+ deferred?: boolean;
1025
+ };
1026
+ AgentClaudeAccount: {
1027
+ email?: string;
1028
+ error?: string;
1029
+ errorCode?: string;
1030
+ /** Format: date-time */
1031
+ fetchedAt?: string;
1032
+ /** Format: date-time */
1033
+ fiveHourResetsAt?: string;
1034
+ /** Format: double */
1035
+ fiveHourUsedPercent?: number;
1036
+ name: string;
1037
+ plan?: string;
1038
+ refreshing?: boolean;
1039
+ signInRequired?: boolean;
1040
+ usage?: string;
1041
+ /** Format: date-time */
1042
+ weeklyResetsAt?: string;
1043
+ /** Format: double */
1044
+ weeklyUsedPercent?: number;
1045
+ };
1046
+ AgentClaudeLoginEvent: {
1047
+ data?: string;
1048
+ login: components["schemas"]["ClaudeLogin"];
1049
+ /** Format: int64 */
1050
+ next: number;
1051
+ /** Format: int64 */
1052
+ offset: number;
1053
+ };
1054
+ AgentClaudeLoginInput: {
1055
+ /** Format: int32 */
1056
+ columns?: number;
1057
+ data?: string;
1058
+ /** Format: int32 */
1059
+ rows?: number;
1060
+ };
1061
+ AgentClaudeLoginRequest: {
1062
+ account: string;
1063
+ /** Format: int32 */
1064
+ columns: number;
1065
+ /** Format: int32 */
1066
+ rows: number;
1067
+ sessionId?: string;
1068
+ };
1069
+ AgentClaudeModel: {
1070
+ id: string;
1071
+ name?: string;
1072
+ };
1073
+ AgentCommandArgs: {
1074
+ /** @description Everything typed after the command name. */
1075
+ args?: string;
1076
+ };
1077
+ AgentCommandBody: {
1078
+ /** @description Everything typed after the command name. */
1079
+ args?: string;
1080
+ /** @description The command without its slash, e.g. status. */
1081
+ name: string;
1082
+ };
1083
+ AgentCommandOutput: {
1084
+ /** @description A passing condition the command hit, such as subscription limits Claude Code has not reported yet. Running the command again may clear it. */
1085
+ note?: string;
1086
+ /** @description What the command printed. */
1087
+ output: string;
1088
+ };
1089
+ AgentCompactBody: {
1090
+ /** @description What the summary should keep. */
1091
+ focus?: string;
1092
+ };
1093
+ AgentCompacted: {
1094
+ /** @description False when there was nothing to summarize. */
1095
+ compacted: boolean;
1096
+ output: string;
1097
+ };
1098
+ AgentDirectionBody: {
1099
+ /** @description Images uploaded to the session with upload-agent-session-image, each named in the text by its placeholder, as a message's images are. */
1100
+ images?: components["schemas"]["AgentImageRef"][] | null;
1101
+ /** @description Pastes saved with upload-agent-session-paste that the text mentions by placeholder, as a message's pastes are. */
1102
+ pastes?: components["schemas"]["PasteRef"][] | null;
1103
+ /** @description What to tell the running turn. */
1104
+ text: string;
1105
+ };
1106
+ AgentDirectionDelivered: {
1107
+ /** @description False when no turn was running to take the text; send it as a message instead. */
1108
+ delivered: boolean;
1109
+ };
1110
+ AgentImageBody: {
1111
+ /** @description The image, base64. Up to 6MiB. */
1112
+ data: string;
1113
+ /** @enum {string} */
1114
+ mime: "image/png" | "image/jpeg" | "image/gif" | "image/webp";
1115
+ /**
1116
+ * Format: int64
1117
+ * @description The N of the [Image #N] placeholder the message names the image by. It also names the saved file, so reusing one replaces that image.
1118
+ */
1119
+ seq: number;
1120
+ };
1121
+ AgentImageRef: {
1122
+ /** @enum {string} */
1123
+ mime: "image/png" | "image/jpeg" | "image/gif" | "image/webp";
1124
+ /** @description The path the image upload answered with. */
1125
+ path: string;
1126
+ /** @description How the text names the image, such as [Image #1]. */
1127
+ placeholder: string;
1128
+ };
1129
+ AgentImageSaved: {
1130
+ /** @description Where the machine saved the image. Send it in the message's images. */
1131
+ path: string;
1132
+ };
1133
+ AgentLeaveWorktreeBody: {
1134
+ /** @description Also remove the worktree, with its branch and everything in it; it stays on the machine otherwise. */
1135
+ remove?: boolean;
1136
+ /** @description With remove, the worktree's root as the session's worktree last showed it. Nothing changes when the session no longer works there. */
1137
+ worktreeRoot?: string;
1138
+ };
1139
+ AgentMachine: {
1140
+ agentVersion?: string;
1141
+ /** @description The daemon can archive a session once its running turn ends. */
1142
+ archiveAfterTurn?: boolean;
1143
+ /** @description The daemon supports removing Claude Code accounts from the web. */
1144
+ claudeAccountRemove?: boolean;
1145
+ /** @description Organization and host policy allow the Claude Code integration. */
1146
+ claudeCodeAllowed: boolean;
1147
+ /** @description Claude Code is installed on the daemon host and available on its PATH. */
1148
+ claudeInstalled?: boolean;
1149
+ /** @description The daemon supports signing in to Claude Code from the web. */
1150
+ claudeLogin?: boolean;
1151
+ /** @description Machine id the pw code daemon reported, when it answered. A local computer with the same id as a resource is the same host and is listed only as the resource. */
1152
+ daemonId?: string;
1153
+ error?: string;
1154
+ /** @description Hostname the daemon reported, when it answered. */
1155
+ hostname?: string;
1156
+ /** @description Hex ObjectID of the cluster, pool, or instance document; for a local computer, the id its pw code daemon registered. */
1157
+ id: string;
1158
+ /**
1159
+ * @description local is a computer whose pw code daemon connected itself; the others are resources reached through their pw agent.
1160
+ * @enum {string}
1161
+ */
1162
+ kind: "cloud" | "existing" | "instance" | "local";
1163
+ name: string;
1164
+ /** @description Platform username of the resource owner. */
1165
+ owner: string;
1166
+ /** @description Modes the machine's pw code daemon accepts. Absent when the daemon predates the list, in which case it accepts read-only, accept-edits, bypass-permissions and plan. */
1167
+ permissionModes?: ("read-only" | "accept-edits" | "auto" | "bypass-permissions" | "plan")[] | null;
1168
+ /** @enum {string} */
1169
+ remoteMaxPermissionMode?: "" | "read-only" | "accept-edits" | "auto" | "bypass-permissions" | "plan";
1170
+ remoteStart?: boolean;
1171
+ /** @description The daemon stores which of the reader's groups a session is in. */
1172
+ sessionGroups?: boolean;
1173
+ /** @enum {string} */
1174
+ status: "connected" | "no_daemon" | "no_agent" | "unreachable" | "unsupported_agent";
1175
+ /** @description Session store the pw code daemon reported, when it answered. Machines with the same store list the same sessions, which are listed once. */
1176
+ storeId?: string;
1177
+ };
1178
+ AgentMachineSessionsResponse: {
1179
+ machine: components["schemas"]["AgentMachine"];
1180
+ sessions: components["schemas"]["AgentSession"][] | null;
1181
+ };
1182
+ AgentMessageAccepted: {
1183
+ /** @description True when the message is waiting behind the turn already running. */
1184
+ queued: boolean;
1185
+ /** @description Identifies the turn this message runs as; its stream events carry the same id. */
1186
+ turnId: string;
1187
+ };
1188
+ AgentPalette: {
1189
+ /** @description Built-in commands, skills, and custom commands, in palette order. */
1190
+ commands: components["schemas"]["AgentSlashCommand"][] | null;
1191
+ /** @description Prompts the session's MCP servers offer, invoked as /mcp__<server>__<prompt>. */
1192
+ mcpPrompts: components["schemas"]["AgentSlashCommand"][] | null;
1193
+ /** @description Names among the commands that are skills or custom commands, which run as a message rather than a command. */
1194
+ prompts: string[] | null;
1195
+ };
1196
+ AgentPasteSaved: {
1197
+ /** Format: int64 */
1198
+ bytes: number;
1199
+ /**
1200
+ * Format: int64
1201
+ * @description The paste's number in the session. Refer to it in a message's pastes.
1202
+ */
1203
+ id: number;
1204
+ /** Format: int64 */
1205
+ lines: number;
1206
+ /** @description The label the message text mentions the paste by, such as [Pasted text #1 +20 lines]. */
1207
+ placeholder: string;
1208
+ };
1209
+ AgentPasteUpload: {
1210
+ /** @description The pasted text, base64-encoded; at most 16MiB before encoding. */
1211
+ data: string;
1212
+ };
1213
+ AgentPlanResult: {
1214
+ /**
1215
+ * @description What to do with the answer: show output, show the plan, send args as a turn, open the plan file (terminal only), or nothing.
1216
+ * @enum {string}
1217
+ */
1218
+ action: "answer" | "show" | "turn" | "open" | "quiet";
1219
+ output?: string;
1220
+ /** @description The session's plan, for show. */
1221
+ planBody?: string;
1222
+ /** @description The file on the machine holding the plan. */
1223
+ planPath?: string;
1224
+ };
1225
+ AgentPullRequest: {
1226
+ /**
1227
+ * @description Absent when the machine could not read the pull request from GitHub, or the merge request from GitLab.
1228
+ * @enum {string}
1229
+ */
1230
+ state?: "open" | "draft" | "merged" | "closed";
1231
+ url: string;
1232
+ };
1233
+ AgentPullRequests: {
1234
+ /** @description The pull requests the session opened, oldest first. */
1235
+ pullRequests: components["schemas"]["AgentPullRequest"][] | null;
1236
+ };
1237
+ AgentRenameBody: {
1238
+ /** @description What to call the session in the list. */
1239
+ name: string;
1240
+ };
1241
+ AgentSession: {
1242
+ allocation?: string;
1243
+ approvals?: components["schemas"]["ApprovalRequest"][] | null;
1244
+ /** Format: date-time */
1245
+ archivedAt?: string;
1246
+ autoName?: string;
1247
+ branch?: string;
1248
+ /** Format: date-time */
1249
+ createdAt: string;
1250
+ effort?: string;
1251
+ group?: string;
1252
+ id: string;
1253
+ /** Format: int64 */
1254
+ inputTokens?: number;
1255
+ lastError?: string;
1256
+ liveHost?: string;
1257
+ machineId: string;
1258
+ /** Format: int64 */
1259
+ messages: number;
1260
+ model: string;
1261
+ name?: string;
1262
+ /** Format: int64 */
1263
+ outputTokens?: number;
1264
+ permissionMode?: string;
1265
+ /** Format: date-time */
1266
+ pinnedAt?: string;
1267
+ preview: string;
1268
+ pullRequestStates?: {
1269
+ [key: string]: string;
1270
+ };
1271
+ pullRequests?: string[] | null;
1272
+ remoteControl?: boolean;
1273
+ /** @enum {string} */
1274
+ status: "idle" | "running" | "awaiting_approval" | "live_elsewhere";
1275
+ /** Format: date-time */
1276
+ turnStartedAt?: string;
1277
+ /** Format: date-time */
1278
+ updatedAt: string;
1279
+ workspace: string;
1280
+ };
1281
+ AgentSessionCleared: {
1282
+ /** @description The fresh session the conversation continues as. */
1283
+ id: string;
1284
+ };
1285
+ AgentSessionDetail: {
1286
+ addDirs?: components["schemas"]["AddedDirectory"][] | null;
1287
+ allocation?: string;
1288
+ allowedDirs?: components["schemas"]["AllowedDirectory"][] | null;
1289
+ approvals?: components["schemas"]["ApprovalRequest"][] | null;
1290
+ /** Format: date-time */
1291
+ archivedAt?: string;
1292
+ autoName?: string;
1293
+ branch?: string;
1294
+ claudeAccount?: string;
1295
+ /** Format: date-time */
1296
+ createdAt: string;
1297
+ effort?: string;
1298
+ goal?: components["schemas"]["GoalStatus"];
1299
+ group?: string;
1300
+ history: components["schemas"]["HistoryItem"][] | null;
1301
+ id: string;
1302
+ /** Format: int64 */
1303
+ inputTokens?: number;
1304
+ lastError?: string;
1305
+ /** Format: int64 */
1306
+ lastSeq?: number;
1307
+ liveHost?: string;
1308
+ machineId: string;
1309
+ /** Format: int64 */
1310
+ messages: number;
1311
+ model: string;
1312
+ name?: string;
1313
+ /** Format: int64 */
1314
+ outputTokens?: number;
1315
+ permissionMode?: string;
1316
+ /** Format: date-time */
1317
+ pinnedAt?: string;
1318
+ preview: string;
1319
+ pullRequestStates?: {
1320
+ [key: string]: string;
1321
+ };
1322
+ pullRequests?: string[] | null;
1323
+ remoteControl?: boolean;
1324
+ /** @enum {string} */
1325
+ status: "idle" | "running" | "awaiting_approval" | "live_elsewhere";
1326
+ turnId?: string;
1327
+ /** Format: date-time */
1328
+ turnStartedAt?: string;
1329
+ /** Format: date-time */
1330
+ updatedAt: string;
1331
+ /** Format: date-time */
1332
+ usageLimitResumeAt?: string;
1333
+ waitingForUsageLimit?: boolean;
1334
+ workspace: string;
1335
+ workspaceUntrusted?: boolean;
1336
+ };
1337
+ AgentSessionForked: {
1338
+ /** @description Session id of the copy. */
1339
+ id: string;
1340
+ machineId: string;
1341
+ };
1342
+ AgentSessionGroupBody: {
1343
+ /** @description Id of one of the reader's groups, as their preferences name it. */
1344
+ group: string;
1345
+ };
1346
+ AgentSessionSettingsBody: {
1347
+ /** @description Allocation to bill; the daemon requires one for org provider models. */
1348
+ allocation?: string;
1349
+ /** @description An existing Claude Code account on the machine; applies after the current turn. */
1350
+ claudeAccount?: string;
1351
+ /**
1352
+ * @description Reasoning effort from the session's next turn on: low, medium, high, xhigh or max, which a model runs at the nearest level it takes. default, none and minimal are earlier names for high, low and low.
1353
+ * @enum {string}
1354
+ */
1355
+ effort?: "default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
1356
+ /** @description Model id to switch the session to. */
1357
+ model?: string;
1358
+ /**
1359
+ * @description Authority the session runs with; the machine refuses anything above its remoteMaxPermissionMode.
1360
+ * @enum {string}
1361
+ */
1362
+ permissionMode?: "read-only" | "accept-edits" | "auto" | "bypass-permissions";
1363
+ };
1364
+ AgentSessionWorktree: {
1365
+ /** @description The branch git made for the worktree. */
1366
+ branch?: string;
1367
+ /**
1368
+ * Format: int64
1369
+ * @description How many commits on the worktree's branch since it was made removing it would delete.
1370
+ */
1371
+ commitCount?: number;
1372
+ /** @description The first of those commits, as git log --oneline lists them. */
1373
+ commits?: string[] | null;
1374
+ /**
1375
+ * Format: int64
1376
+ * @description How many uncommitted files removing the worktree would delete.
1377
+ */
1378
+ fileCount?: number;
1379
+ /** @description The first of those files, as git status --porcelain lists them. */
1380
+ files?: string[] | null;
1381
+ /** @description Deleting the session can remove the worktree with it. False for a worktree the session didn't create, or one a WorktreeCreate hook made. */
1382
+ removable?: boolean;
1383
+ /** @description The worktree's checkout on the machine. */
1384
+ root?: string;
1385
+ /** @description git could not read what removing the worktree would delete. */
1386
+ unchecked?: boolean;
1387
+ };
1388
+ AgentSessionsResponse: {
1389
+ machines: components["schemas"]["AgentMachine"][] | null;
1390
+ /** @description Every reachable machine's sessions, newest first. A session machines sharing a store all list appears once. */
1391
+ sessions: components["schemas"]["AgentSession"][] | null;
1392
+ };
1393
+ AgentShellBody: {
1394
+ /** @description The command, without the leading !. */
1395
+ command: string;
1396
+ };
1397
+ AgentShellOutput: {
1398
+ /** @description What the command printed, stdout and stderr together. */
1399
+ output: string;
1400
+ /** @description Why the owner's hook asked that the model not react to the run; the session starts no reply when it is set. */
1401
+ stop?: string;
1402
+ };
1403
+ AgentSlashCommand: {
1404
+ description?: string;
1405
+ name: string;
1406
+ usage?: string;
1407
+ };
1408
+ AgentStreamEvent: {
1409
+ agentType?: string;
1410
+ approval?: components["schemas"]["ApprovalRequest"];
1411
+ approvalId?: string;
1412
+ archive?: components["schemas"]["ArchiveChange"];
1413
+ args?: string;
1414
+ background?: boolean;
1415
+ callId?: string;
1416
+ client?: string;
1417
+ color?: string;
1418
+ content?: string;
1419
+ decision?: components["schemas"]["ToolDecision"];
1420
+ goalProgress?: components["schemas"]["GoalProgress"];
1421
+ id?: string;
1422
+ images?: components["schemas"]["ImageContent"][] | null;
1423
+ interrupted?: boolean;
1424
+ isError?: boolean;
1425
+ /** Format: int64 */
1426
+ iters?: number;
1427
+ mcp?: components["schemas"]["MCPStatus"];
1428
+ name?: string;
1429
+ newId?: string;
1430
+ noteId?: string;
1431
+ notice?: string;
1432
+ pastes?: components["schemas"]["PasteView"][] | null;
1433
+ recorded?: boolean;
1434
+ result?: string;
1435
+ /** Format: date-time */
1436
+ resumeAt?: string;
1437
+ /** Format: int64 */
1438
+ seq: number;
1439
+ shellProgress?: components["schemas"]["ShellProgress"];
1440
+ /** Format: int64 */
1441
+ startLine?: number;
1442
+ state?: components["schemas"]["SessionState"];
1443
+ turn?: components["schemas"]["TurnResult"];
1444
+ turnEnd?: components["schemas"]["TurnEnd"];
1445
+ turnId?: string;
1446
+ type: string;
1447
+ };
1448
+ AgentSubagents: {
1449
+ /** @description The session's subagents in the order they started. Their status is empty when the machine's pw code is too old to say how its subagents stand. */
1450
+ subagents: components["schemas"]["Subagent"][] | null;
1451
+ };
1452
+ AgentWorktreeLeft: {
1453
+ /**
1454
+ * @description left keeps the worktree on the machine; remove_failed is a session that left it, but whose worktree could not be removed and stays.
1455
+ * @enum {string}
1456
+ */
1457
+ outcome: "left" | "removed" | "remove_failed";
1458
+ };
1459
+ AllowedDirectory: {
1460
+ edit?: boolean;
1461
+ path: string;
1462
+ subtree?: boolean;
1463
+ };
1464
+ ApprovalAnswer: {
1465
+ allowDir?: boolean;
1466
+ allowRules?: string[] | null;
1467
+ allowed?: boolean;
1468
+ answers?: components["schemas"]["AskQuestionAnswer"][] | null;
1469
+ chat?: boolean;
1470
+ clear?: boolean;
1471
+ denyMessage?: string;
1472
+ feedback?: string;
1473
+ /** @enum {string} */
1474
+ mode?: "" | "read-only" | "accept-edits" | "auto" | "bypass-permissions" | "plan";
1475
+ plan?: string;
1476
+ };
1477
+ ApprovalRequest: {
1478
+ agent?: string;
1479
+ allowDir?: components["schemas"]["AllowedDirectory"];
1480
+ callId?: string;
1481
+ command?: string;
1482
+ /** Format: date-time */
1483
+ createdAt: string;
1484
+ id: string;
1485
+ /** @enum {string} */
1486
+ kind: "confirm" | "ask" | "plan";
1487
+ mode?: string;
1488
+ plan?: string;
1489
+ planPath?: string;
1490
+ questions?: components["schemas"]["AskQuestion"][] | null;
1491
+ reason?: string;
1492
+ subagentId?: string;
1493
+ tool?: string;
1494
+ };
1495
+ ArchiveChange: {
1496
+ agent?: boolean;
1497
+ /** Format: date-time */
1498
+ at: string;
1499
+ remote?: boolean;
1500
+ };
1501
+ AskOption: {
1502
+ description?: string;
1503
+ label: string;
1504
+ preview?: string;
1505
+ };
1506
+ AskQuestion: {
1507
+ header?: string;
1508
+ multiSelect?: boolean;
1509
+ options?: components["schemas"]["AskOption"][] | null;
1510
+ question: string;
1511
+ };
1512
+ AskQuestionAnswer: {
1513
+ notes?: string;
1514
+ picked?: string[] | null;
1515
+ question?: string;
1516
+ text?: string;
1517
+ };
1518
+ ClaudeLogin: {
1519
+ account: string;
1520
+ email?: string;
1521
+ /** Format: int64 */
1522
+ exitCode?: number;
1523
+ /** Format: date-time */
1524
+ expiresAt: string;
1525
+ id: string;
1526
+ /** @enum {string} */
1527
+ status: "running" | "checking" | "signed_in" | "failed" | "canceled" | "expired";
1528
+ };
1529
+ CreateSessionBody: {
1530
+ /** @description Allocation to bill the session to. Required for org provider models. */
1531
+ allocation?: string;
1532
+ /** @description An existing Claude Code account on the machine; used for subscription models. */
1533
+ claudeAccount?: string;
1534
+ /**
1535
+ * @description Reasoning effort: low, medium, high, xhigh or max, which a model runs at the nearest level it takes. The machine's saved level is used when empty. default, none and minimal are earlier names for high, low and low.
1536
+ * @enum {string}
1537
+ */
1538
+ effort?: "" | "default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
1539
+ /** @description Model id; the machine's default is used when empty. */
1540
+ model?: string;
1541
+ /**
1542
+ * @description Authority the session runs with, clamped by the machine to its remoteMaxPermissionMode; the machine's default is used when empty.
1543
+ * @enum {string}
1544
+ */
1545
+ permissionMode?: "" | "read-only" | "accept-edits" | "auto" | "bypass-permissions";
1546
+ /** @description Starts the first turn immediately when set. */
1547
+ prompt?: string;
1548
+ /** @description Absolute path on the machine to run in. Offer the caller workspaces their existing sessions already use. */
1549
+ workspace: string;
1550
+ };
1551
+ Error: {
1552
+ /** @description Stable, machine-readable error code, for clients to show a localized message. Every error carries one. Documented at /problems/. */
1553
+ code?: string;
1554
+ /** @description Will always be true, indicating this is an error response. */
1555
+ error: boolean;
1556
+ /** @description If there are multiple errors, this will contain a list of them. */
1557
+ errors?: string[] | null;
1558
+ /** @description A human-readable message describing the error. */
1559
+ message: string;
1560
+ /** @description Values the code's localized message shows. */
1561
+ params?: {
1562
+ [key: string]: unknown;
1563
+ };
1564
+ };
1565
+ GoalProgress: {
1566
+ condition?: string;
1567
+ /** Format: int64 */
1568
+ elapsedMs?: number;
1569
+ err?: string;
1570
+ /** @enum {string} */
1571
+ outcome?: "" | "achieved" | "stopped";
1572
+ reason?: string;
1573
+ /** Format: date-time */
1574
+ resumeAt?: string;
1575
+ /** Format: int64 */
1576
+ tokens?: number;
1577
+ /** Format: int64 */
1578
+ turns?: number;
1579
+ };
1580
+ GoalStatus: {
1581
+ active?: boolean;
1582
+ checking?: boolean;
1583
+ /** Format: int64 */
1584
+ elapsedMs?: number;
1585
+ paused?: boolean;
1586
+ };
1587
+ HistoryItem: {
1588
+ callId?: string;
1589
+ decision?: components["schemas"]["ToolDecision"];
1590
+ fromMain?: boolean;
1591
+ images?: components["schemas"]["ImageContent"][] | null;
1592
+ /** @enum {string} */
1593
+ kind: "user" | "assistant" | "thinking" | "tool_call" | "tool_result" | "notice" | "warning" | "error" | "plan_view" | "goal_view" | "goal_progress" | "turn_end" | "recap" | "compaction";
1594
+ pastes?: components["schemas"]["PasteView"][] | null;
1595
+ planBody?: string;
1596
+ /** Format: int64 */
1597
+ startLine?: number;
1598
+ text?: string;
1599
+ toolArgs?: string;
1600
+ toolName?: string;
1601
+ turnEnd?: components["schemas"]["TurnEnd"];
1602
+ turnId?: string;
1603
+ };
1604
+ ImageContent: {
1605
+ data: string;
1606
+ mime: string;
1607
+ originalMime?: string;
1608
+ /** Format: int64 */
1609
+ originalSize?: number;
1610
+ ref?: string;
1611
+ };
1612
+ MCPStatus: {
1613
+ err?: string;
1614
+ /** Format: int64 */
1615
+ prompts?: number;
1616
+ server: string;
1617
+ /** Format: int64 */
1618
+ tools?: number;
1619
+ };
1620
+ PasteRef: {
1621
+ /** Format: int64 */
1622
+ id: number;
1623
+ placeholder: string;
1624
+ };
1625
+ PasteView: {
1626
+ /** Format: int64 */
1627
+ bytes: number;
1628
+ /** Format: int64 */
1629
+ id: number;
1630
+ inline?: boolean;
1631
+ /** Format: int64 */
1632
+ lines: number;
1633
+ placeholder: string;
1634
+ text?: string;
1635
+ };
1636
+ RemotePolicy: {
1637
+ maxPermissionMode: string;
1638
+ newSessions: boolean;
1639
+ start: boolean;
1640
+ };
1641
+ RemoteTunnel: {
1642
+ detail?: string;
1643
+ /** @enum {string} */
1644
+ state: "connected" | "connecting" | "off";
1645
+ };
1646
+ SendMessageBody: {
1647
+ /** @description Images uploaded to the session with upload-agent-session-image, each named in the text by its placeholder. */
1648
+ images?: components["schemas"]["AgentImageRef"][] | null;
1649
+ /** @description Pastes saved with upload-agent-session-paste that the text mentions by placeholder. The machine decides when the turn starts whether each goes to the model inline or as its saved file. */
1650
+ pastes?: components["schemas"]["PasteRef"][] | null;
1651
+ /** @description The message to send. Empty continues the turn, which is how the terminal wakes background work. */
1652
+ text: string;
1653
+ };
1654
+ SessionState: {
1655
+ addDirs?: components["schemas"]["AddedDirectory"][] | null;
1656
+ allocation?: string;
1657
+ allowedDirs?: components["schemas"]["AllowedDirectory"][] | null;
1658
+ attribution?: boolean;
1659
+ /** Format: int64 */
1660
+ autoCompactWindow?: number;
1661
+ autoName?: string;
1662
+ /** Format: int64 */
1663
+ backgroundShells?: number;
1664
+ claudeAccount?: string;
1665
+ effectiveAllocation?: string;
1666
+ effectiveEffort?: string;
1667
+ effort?: string;
1668
+ effortActive?: boolean;
1669
+ goal?: components["schemas"]["GoalStatus"];
1670
+ /** Format: int64 */
1671
+ inputTokens?: number;
1672
+ model: string;
1673
+ modelNames?: {
1674
+ [key: string]: string;
1675
+ };
1676
+ name?: string;
1677
+ /** Format: int64 */
1678
+ outputTokens?: number;
1679
+ /** Format: int64 */
1680
+ pasteInlineMaxBytes?: number;
1681
+ pendingSubagentWork?: boolean;
1682
+ permissionMode?: string;
1683
+ remoteControl?: boolean;
1684
+ remotePolicy: components["schemas"]["RemotePolicy"];
1685
+ remoteTunnel?: components["schemas"]["RemoteTunnel"];
1686
+ remoteUrl?: string;
1687
+ /** Format: int64 */
1688
+ sessionRetentionDays?: number;
1689
+ /** Format: int64 */
1690
+ subagentConcurrency?: number;
1691
+ /** Format: int64 */
1692
+ subagentDepth?: number;
1693
+ subagentModel?: string;
1694
+ subagentUsage?: {
1695
+ [key: string]: components["schemas"]["SubagentUsage"];
1696
+ };
1697
+ subagentsDisabled?: boolean;
1698
+ supportedEfforts?: string[] | null;
1699
+ toolCallingMode?: string;
1700
+ toolsDisabled?: boolean;
1701
+ usageStatusLine?: string;
1702
+ worktree?: string;
1703
+ };
1704
+ ShellProgress: {
1705
+ /** Format: int64 */
1706
+ lines: number;
1707
+ tail: string[] | null;
1708
+ };
1709
+ Subagent: {
1710
+ agentType?: string;
1711
+ awaitingApproval?: boolean;
1712
+ background?: boolean;
1713
+ color?: string;
1714
+ current?: boolean;
1715
+ description?: string;
1716
+ /** Format: date-time */
1717
+ endedAt?: string;
1718
+ id: string;
1719
+ model?: string;
1720
+ /** Format: date-time */
1721
+ startedAt?: string;
1722
+ /** @enum {string} */
1723
+ status: "running" | "done" | "failed" | "stopped";
1724
+ usage?: components["schemas"]["SubagentUsage"];
1725
+ };
1726
+ SubagentDetail: {
1727
+ agentType?: string;
1728
+ approvals: components["schemas"]["ApprovalRequest"][] | null;
1729
+ awaitingApproval?: boolean;
1730
+ background?: boolean;
1731
+ color?: string;
1732
+ current?: boolean;
1733
+ description?: string;
1734
+ /** Format: date-time */
1735
+ endedAt?: string;
1736
+ history: components["schemas"]["HistoryItem"][] | null;
1737
+ id: string;
1738
+ /** Format: int64 */
1739
+ lastSeq: number;
1740
+ model?: string;
1741
+ /** Format: date-time */
1742
+ startedAt?: string;
1743
+ /** @enum {string} */
1744
+ status: "running" | "done" | "failed" | "stopped";
1745
+ usage?: components["schemas"]["SubagentUsage"];
1746
+ };
1747
+ SubagentUsage: {
1748
+ /** Format: int64 */
1749
+ inputTokens?: number;
1750
+ /** Format: int64 */
1751
+ latestInputTokens?: number;
1752
+ /** Format: int64 */
1753
+ outputTokens?: number;
1754
+ };
1755
+ ToolDecision: {
1756
+ action?: string;
1757
+ answers?: components["schemas"]["AskQuestionAnswer"][] | null;
1758
+ /** Format: date-time */
1759
+ at: string;
1760
+ /** @enum {string} */
1761
+ by: "user" | "auto-reviewer";
1762
+ callId: string;
1763
+ note?: string;
1764
+ rationale?: string;
1765
+ /** @enum {string} */
1766
+ riskLevel?: "" | "low" | "medium" | "high" | "critical";
1767
+ /** @enum {string} */
1768
+ status: "reviewing" | "approved" | "denied" | "timed_out" | "failed" | "aborted";
1769
+ /** @enum {string} */
1770
+ userAuthorization?: "" | "unknown" | "low" | "medium" | "high";
1771
+ username?: string;
1772
+ };
1773
+ TurnEnd: {
1774
+ /** Format: int64 */
1775
+ durationMs: number;
1776
+ /** Format: date-time */
1777
+ endedAt: string;
1778
+ /** Format: int64 */
1779
+ pendingAgents?: number;
1780
+ };
1781
+ TurnResult: {
1782
+ blockedByHook?: string;
1783
+ /** Format: double */
1784
+ estimatedCost?: number;
1785
+ /** Format: int64 */
1786
+ inputTokens?: number;
1787
+ /** Format: int64 */
1788
+ iters?: number;
1789
+ model?: string;
1790
+ /** Format: int64 */
1791
+ outputTokens?: number;
1792
+ skills?: string[] | null;
1793
+ };
1794
+ };
1795
+ responses: never;
1796
+ parameters: never;
1797
+ requestBodies: never;
1798
+ headers: never;
1799
+ pathItems: never;
1800
+ }
1801
+ export type $defs = Record<string, never>;
1802
+ export interface operations {
1803
+ "list-agent-sessions": {
1804
+ parameters: {
1805
+ query?: never;
1806
+ header?: never;
1807
+ path?: never;
1808
+ cookie?: never;
1809
+ };
1810
+ requestBody?: never;
1811
+ responses: {
1812
+ /** @description OK */
1813
+ 200: {
1814
+ headers: {
1815
+ [name: string]: unknown;
1816
+ };
1817
+ content: {
1818
+ "application/json": components["schemas"]["AgentSessionsResponse"];
1819
+ };
1820
+ };
1821
+ /** @description Error */
1822
+ default: {
1823
+ headers: {
1824
+ [name: string]: unknown;
1825
+ };
1826
+ content: {
1827
+ "application/json": components["schemas"]["Error"];
1828
+ };
1829
+ };
1830
+ };
1831
+ };
1832
+ "get-agent-workspace-palette": {
1833
+ parameters: {
1834
+ query: {
1835
+ /** @description Absolute path of the directory the session would start in. */
1836
+ workspace: string;
1837
+ /** @description Model the session would start with: a Claude model leaves out the commands Claude Code does not support. */
1838
+ model?: string;
1839
+ };
1840
+ header?: never;
1841
+ path: {
1842
+ /** @description Machine id from the machines list. */
1843
+ machine: string;
1844
+ };
1845
+ cookie?: never;
1846
+ };
1847
+ requestBody?: never;
1848
+ responses: {
1849
+ /** @description OK */
1850
+ 200: {
1851
+ headers: {
1852
+ [name: string]: unknown;
1853
+ };
1854
+ content: {
1855
+ "application/json": components["schemas"]["AgentPalette"];
1856
+ };
1857
+ };
1858
+ /** @description Error */
1859
+ default: {
1860
+ headers: {
1861
+ [name: string]: unknown;
1862
+ };
1863
+ content: {
1864
+ "application/json": components["schemas"]["Error"];
1865
+ };
1866
+ };
1867
+ };
1868
+ };
1869
+ "list-agent-machine-sessions": {
1870
+ parameters: {
1871
+ query?: never;
1872
+ header?: never;
1873
+ path: {
1874
+ /** @description Machine id from the machines list. */
1875
+ machine: string;
1876
+ };
1877
+ cookie?: never;
1878
+ };
1879
+ requestBody?: never;
1880
+ responses: {
1881
+ /** @description OK */
1882
+ 200: {
1883
+ headers: {
1884
+ [name: string]: unknown;
1885
+ };
1886
+ content: {
1887
+ "application/json": components["schemas"]["AgentMachineSessionsResponse"];
1888
+ };
1889
+ };
1890
+ /** @description Error */
1891
+ default: {
1892
+ headers: {
1893
+ [name: string]: unknown;
1894
+ };
1895
+ content: {
1896
+ "application/json": components["schemas"]["Error"];
1897
+ };
1898
+ };
1899
+ };
1900
+ };
1901
+ "create-agent-session": {
1902
+ parameters: {
1903
+ query?: never;
1904
+ header?: never;
1905
+ path: {
1906
+ /** @description Machine id from the machines list. */
1907
+ machine: string;
1908
+ };
1909
+ cookie?: never;
1910
+ };
1911
+ requestBody: {
1912
+ content: {
1913
+ "application/json": components["schemas"]["CreateSessionBody"];
1914
+ };
1915
+ };
1916
+ responses: {
1917
+ /** @description Created */
1918
+ 201: {
1919
+ headers: {
1920
+ [name: string]: unknown;
1921
+ };
1922
+ content: {
1923
+ "application/json": components["schemas"]["AgentSessionDetail"];
1924
+ };
1925
+ };
1926
+ /** @description Error */
1927
+ default: {
1928
+ headers: {
1929
+ [name: string]: unknown;
1930
+ };
1931
+ content: {
1932
+ "application/json": components["schemas"]["Error"];
1933
+ };
1934
+ };
1935
+ };
1936
+ };
1937
+ "get-agent-machine-claude-models": {
1938
+ parameters: {
1939
+ query?: {
1940
+ account?: string;
1941
+ refresh?: boolean;
1942
+ namesOnly?: boolean;
1943
+ };
1944
+ header?: never;
1945
+ path: {
1946
+ machine: string;
1947
+ };
1948
+ cookie?: never;
1949
+ };
1950
+ requestBody?: never;
1951
+ responses: {
1952
+ /** @description OK */
1953
+ 200: {
1954
+ headers: {
1955
+ [name: string]: unknown;
1956
+ };
1957
+ content: {
1958
+ "application/json": components["schemas"]["AgentClaudeModel"][] | null;
1959
+ };
1960
+ };
1961
+ /** @description Error */
1962
+ default: {
1963
+ headers: {
1964
+ [name: string]: unknown;
1965
+ };
1966
+ content: {
1967
+ "application/json": components["schemas"]["Error"];
1968
+ };
1969
+ };
1970
+ };
1971
+ };
1972
+ "get-agent-machine-claude-accounts": {
1973
+ parameters: {
1974
+ query?: {
1975
+ account?: string;
1976
+ refresh?: boolean;
1977
+ namesOnly?: boolean;
1978
+ };
1979
+ header?: never;
1980
+ path: {
1981
+ machine: string;
1982
+ };
1983
+ cookie?: never;
1984
+ };
1985
+ requestBody?: never;
1986
+ responses: {
1987
+ /** @description OK */
1988
+ 200: {
1989
+ headers: {
1990
+ [name: string]: unknown;
1991
+ };
1992
+ content: {
1993
+ "application/json": components["schemas"]["AgentClaudeAccount"][] | null;
1994
+ };
1995
+ };
1996
+ /** @description Error */
1997
+ default: {
1998
+ headers: {
1999
+ [name: string]: unknown;
2000
+ };
2001
+ content: {
2002
+ "application/json": components["schemas"]["Error"];
2003
+ };
2004
+ };
2005
+ };
2006
+ };
2007
+ "delete-agent-machine-claude-account": {
2008
+ parameters: {
2009
+ query?: never;
2010
+ header?: never;
2011
+ path: {
2012
+ machine: string;
2013
+ name: string;
2014
+ };
2015
+ cookie?: never;
2016
+ };
2017
+ requestBody?: never;
2018
+ responses: {
2019
+ /** @description No Content */
2020
+ 204: {
2021
+ headers: {
2022
+ [name: string]: unknown;
2023
+ };
2024
+ content?: never;
2025
+ };
2026
+ /** @description Error */
2027
+ default: {
2028
+ headers: {
2029
+ [name: string]: unknown;
2030
+ };
2031
+ content: {
2032
+ "application/json": components["schemas"]["Error"];
2033
+ };
2034
+ };
2035
+ };
2036
+ };
2037
+ "start-agent-claude-login": {
2038
+ parameters: {
2039
+ query?: never;
2040
+ header?: never;
2041
+ path: {
2042
+ machine: string;
2043
+ };
2044
+ cookie?: never;
2045
+ };
2046
+ requestBody: {
2047
+ content: {
2048
+ "application/json": components["schemas"]["AgentClaudeLoginRequest"];
2049
+ };
2050
+ };
2051
+ responses: {
2052
+ /** @description OK */
2053
+ 200: {
2054
+ headers: {
2055
+ "Cache-Control"?: string;
2056
+ [name: string]: unknown;
2057
+ };
2058
+ content: {
2059
+ "application/json": components["schemas"]["AgentClaudeLoginEvent"];
2060
+ };
2061
+ };
2062
+ /** @description Error */
2063
+ default: {
2064
+ headers: {
2065
+ [name: string]: unknown;
2066
+ };
2067
+ content: {
2068
+ "application/json": components["schemas"]["Error"];
2069
+ };
2070
+ };
2071
+ };
2072
+ };
2073
+ "get-agent-claude-login": {
2074
+ parameters: {
2075
+ query?: {
2076
+ after?: number;
2077
+ status?: string;
2078
+ wait?: boolean;
2079
+ };
2080
+ header?: never;
2081
+ path: {
2082
+ machine: string;
2083
+ loginId: string;
2084
+ };
2085
+ cookie?: never;
2086
+ };
2087
+ requestBody?: never;
2088
+ responses: {
2089
+ /** @description OK */
2090
+ 200: {
2091
+ headers: {
2092
+ "Cache-Control"?: string;
2093
+ [name: string]: unknown;
2094
+ };
2095
+ content: {
2096
+ "application/json": components["schemas"]["AgentClaudeLoginEvent"];
2097
+ };
2098
+ };
2099
+ /** @description Error */
2100
+ default: {
2101
+ headers: {
2102
+ [name: string]: unknown;
2103
+ };
2104
+ content: {
2105
+ "application/json": components["schemas"]["Error"];
2106
+ };
2107
+ };
2108
+ };
2109
+ };
2110
+ "cancel-agent-claude-login": {
2111
+ parameters: {
2112
+ query?: never;
2113
+ header?: never;
2114
+ path: {
2115
+ machine: string;
2116
+ loginId: string;
2117
+ };
2118
+ cookie?: never;
2119
+ };
2120
+ requestBody?: never;
2121
+ responses: {
2122
+ /** @description No Content */
2123
+ 204: {
2124
+ headers: {
2125
+ [name: string]: unknown;
2126
+ };
2127
+ content?: never;
2128
+ };
2129
+ /** @description Error */
2130
+ default: {
2131
+ headers: {
2132
+ [name: string]: unknown;
2133
+ };
2134
+ content: {
2135
+ "application/json": components["schemas"]["Error"];
2136
+ };
2137
+ };
2138
+ };
2139
+ };
2140
+ "write-agent-claude-login": {
2141
+ parameters: {
2142
+ query?: never;
2143
+ header?: never;
2144
+ path: {
2145
+ machine: string;
2146
+ loginId: string;
2147
+ };
2148
+ cookie?: never;
2149
+ };
2150
+ requestBody: {
2151
+ content: {
2152
+ "application/json": components["schemas"]["AgentClaudeLoginInput"];
2153
+ };
2154
+ };
2155
+ responses: {
2156
+ /** @description No Content */
2157
+ 204: {
2158
+ headers: {
2159
+ [name: string]: unknown;
2160
+ };
2161
+ content?: never;
2162
+ };
2163
+ /** @description Error */
2164
+ default: {
2165
+ headers: {
2166
+ [name: string]: unknown;
2167
+ };
2168
+ content: {
2169
+ "application/json": components["schemas"]["Error"];
2170
+ };
2171
+ };
2172
+ };
2173
+ };
2174
+ "get-agent-session": {
2175
+ parameters: {
2176
+ query?: never;
2177
+ header?: never;
2178
+ path: {
2179
+ /** @description Machine id from the machines list. */
2180
+ machine: string;
2181
+ /** @description Session id as the daemon reports it. */
2182
+ id: string;
2183
+ };
2184
+ cookie?: never;
2185
+ };
2186
+ requestBody?: never;
2187
+ responses: {
2188
+ /** @description OK */
2189
+ 200: {
2190
+ headers: {
2191
+ [name: string]: unknown;
2192
+ };
2193
+ content: {
2194
+ "application/json": components["schemas"]["AgentSessionDetail"];
2195
+ };
2196
+ };
2197
+ /** @description Error */
2198
+ default: {
2199
+ headers: {
2200
+ [name: string]: unknown;
2201
+ };
2202
+ content: {
2203
+ "application/json": components["schemas"]["Error"];
2204
+ };
2205
+ };
2206
+ };
2207
+ };
2208
+ "delete-agent-session": {
2209
+ parameters: {
2210
+ query?: {
2211
+ /** @description remove also removes the worktree EnterWorktree made for the session, with its branch and everything in it; it stays otherwise. */
2212
+ worktree?: "keep" | "remove";
2213
+ /** @description With worktree=remove, the worktree's root as the session's worktree last showed it. The machine refuses when the session no longer works there. */
2214
+ worktreeRoot?: string;
2215
+ };
2216
+ header?: never;
2217
+ path: {
2218
+ /** @description Machine id from the machines list. */
2219
+ machine: string;
2220
+ /** @description Session id as the daemon reports it. */
2221
+ id: string;
2222
+ };
2223
+ cookie?: never;
2224
+ };
2225
+ requestBody?: never;
2226
+ responses: {
2227
+ /** @description No Content */
2228
+ 204: {
2229
+ headers: {
2230
+ [name: string]: unknown;
2231
+ };
2232
+ content?: never;
2233
+ };
2234
+ /** @description Error */
2235
+ default: {
2236
+ headers: {
2237
+ [name: string]: unknown;
2238
+ };
2239
+ content: {
2240
+ "application/json": components["schemas"]["Error"];
2241
+ };
2242
+ };
2243
+ };
2244
+ };
2245
+ "answer-agent-session-approval": {
2246
+ parameters: {
2247
+ query?: never;
2248
+ header?: never;
2249
+ path: {
2250
+ /** @description Machine id from the machines list. */
2251
+ machine: string;
2252
+ /** @description Session id as the daemon reports it. */
2253
+ id: string;
2254
+ /** @description Approval id from the session detail or an approval_request event. */
2255
+ approvalId: string;
2256
+ };
2257
+ cookie?: never;
2258
+ };
2259
+ requestBody: {
2260
+ content: {
2261
+ "application/json": components["schemas"]["ApprovalAnswer"];
2262
+ };
2263
+ };
2264
+ responses: {
2265
+ /** @description No Content */
2266
+ 204: {
2267
+ headers: {
2268
+ [name: string]: unknown;
2269
+ };
2270
+ content?: never;
2271
+ };
2272
+ /** @description Error */
2273
+ default: {
2274
+ headers: {
2275
+ [name: string]: unknown;
2276
+ };
2277
+ content: {
2278
+ "application/json": components["schemas"]["Error"];
2279
+ };
2280
+ };
2281
+ };
2282
+ };
2283
+ "archive-agent-session": {
2284
+ parameters: {
2285
+ query?: never;
2286
+ header?: never;
2287
+ path: {
2288
+ /** @description Machine id from the machines list. */
2289
+ machine: string;
2290
+ /** @description Session id as the daemon reports it. */
2291
+ id: string;
2292
+ };
2293
+ cookie?: never;
2294
+ };
2295
+ requestBody?: {
2296
+ content: {
2297
+ "application/json": components["schemas"]["AgentArchiveBody"];
2298
+ };
2299
+ };
2300
+ responses: {
2301
+ /** @description OK */
2302
+ 200: {
2303
+ headers: {
2304
+ [name: string]: unknown;
2305
+ };
2306
+ content: {
2307
+ "application/json": components["schemas"]["AgentArchived"];
2308
+ };
2309
+ };
2310
+ /** @description Error */
2311
+ default: {
2312
+ headers: {
2313
+ [name: string]: unknown;
2314
+ };
2315
+ content: {
2316
+ "application/json": components["schemas"]["Error"];
2317
+ };
2318
+ };
2319
+ };
2320
+ };
2321
+ "restore-agent-session": {
2322
+ parameters: {
2323
+ query?: never;
2324
+ header?: never;
2325
+ path: {
2326
+ /** @description Machine id from the machines list. */
2327
+ machine: string;
2328
+ /** @description Session id as the daemon reports it. */
2329
+ id: string;
2330
+ };
2331
+ cookie?: never;
2332
+ };
2333
+ requestBody?: never;
2334
+ responses: {
2335
+ /** @description No Content */
2336
+ 204: {
2337
+ headers: {
2338
+ [name: string]: unknown;
2339
+ };
2340
+ content?: never;
2341
+ };
2342
+ /** @description Error */
2343
+ default: {
2344
+ headers: {
2345
+ [name: string]: unknown;
2346
+ };
2347
+ content: {
2348
+ "application/json": components["schemas"]["Error"];
2349
+ };
2350
+ };
2351
+ };
2352
+ };
2353
+ "background-agent-session-commands": {
2354
+ parameters: {
2355
+ query?: never;
2356
+ header?: never;
2357
+ path: {
2358
+ /** @description Machine id from the machines list. */
2359
+ machine: string;
2360
+ /** @description Session id as the daemon reports it. */
2361
+ id: string;
2362
+ };
2363
+ cookie?: never;
2364
+ };
2365
+ requestBody?: never;
2366
+ responses: {
2367
+ /** @description No Content */
2368
+ 204: {
2369
+ headers: {
2370
+ [name: string]: unknown;
2371
+ };
2372
+ content?: never;
2373
+ };
2374
+ /** @description Error */
2375
+ default: {
2376
+ headers: {
2377
+ [name: string]: unknown;
2378
+ };
2379
+ content: {
2380
+ "application/json": components["schemas"]["Error"];
2381
+ };
2382
+ };
2383
+ };
2384
+ };
2385
+ "get-agent-session-claude-accounts": {
2386
+ parameters: {
2387
+ query?: {
2388
+ account?: string;
2389
+ refresh?: boolean;
2390
+ namesOnly?: boolean;
2391
+ };
2392
+ header?: never;
2393
+ path: {
2394
+ machine: string;
2395
+ id: string;
2396
+ };
2397
+ cookie?: never;
2398
+ };
2399
+ requestBody?: never;
2400
+ responses: {
2401
+ /** @description OK */
2402
+ 200: {
2403
+ headers: {
2404
+ [name: string]: unknown;
2405
+ };
2406
+ content: {
2407
+ "application/json": components["schemas"]["AgentClaudeAccount"][] | null;
2408
+ };
2409
+ };
2410
+ /** @description Error */
2411
+ default: {
2412
+ headers: {
2413
+ [name: string]: unknown;
2414
+ };
2415
+ content: {
2416
+ "application/json": components["schemas"]["Error"];
2417
+ };
2418
+ };
2419
+ };
2420
+ };
2421
+ "clear-agent-session": {
2422
+ parameters: {
2423
+ query?: never;
2424
+ header?: never;
2425
+ path: {
2426
+ /** @description Machine id from the machines list. */
2427
+ machine: string;
2428
+ /** @description Session id as the daemon reports it. */
2429
+ id: string;
2430
+ };
2431
+ cookie?: never;
2432
+ };
2433
+ requestBody?: never;
2434
+ responses: {
2435
+ /** @description OK */
2436
+ 200: {
2437
+ headers: {
2438
+ [name: string]: unknown;
2439
+ };
2440
+ content: {
2441
+ "application/json": components["schemas"]["AgentSessionCleared"];
2442
+ };
2443
+ };
2444
+ /** @description Error */
2445
+ default: {
2446
+ headers: {
2447
+ [name: string]: unknown;
2448
+ };
2449
+ content: {
2450
+ "application/json": components["schemas"]["Error"];
2451
+ };
2452
+ };
2453
+ };
2454
+ };
2455
+ "run-agent-session-command": {
2456
+ parameters: {
2457
+ query?: never;
2458
+ header?: never;
2459
+ path: {
2460
+ /** @description Machine id from the machines list. */
2461
+ machine: string;
2462
+ /** @description Session id as the daemon reports it. */
2463
+ id: string;
2464
+ };
2465
+ cookie?: never;
2466
+ };
2467
+ requestBody: {
2468
+ content: {
2469
+ "application/json": components["schemas"]["AgentCommandBody"];
2470
+ };
2471
+ };
2472
+ responses: {
2473
+ /** @description OK */
2474
+ 200: {
2475
+ headers: {
2476
+ [name: string]: unknown;
2477
+ };
2478
+ content: {
2479
+ "application/json": components["schemas"]["AgentCommandOutput"];
2480
+ };
2481
+ };
2482
+ /** @description Error */
2483
+ default: {
2484
+ headers: {
2485
+ [name: string]: unknown;
2486
+ };
2487
+ content: {
2488
+ "application/json": components["schemas"]["Error"];
2489
+ };
2490
+ };
2491
+ };
2492
+ };
2493
+ "compact-agent-session": {
2494
+ parameters: {
2495
+ query?: never;
2496
+ header?: never;
2497
+ path: {
2498
+ /** @description Machine id from the machines list. */
2499
+ machine: string;
2500
+ /** @description Session id as the daemon reports it. */
2501
+ id: string;
2502
+ };
2503
+ cookie?: never;
2504
+ };
2505
+ requestBody: {
2506
+ content: {
2507
+ "application/json": components["schemas"]["AgentCompactBody"];
2508
+ };
2509
+ };
2510
+ responses: {
2511
+ /** @description OK */
2512
+ 200: {
2513
+ headers: {
2514
+ [name: string]: unknown;
2515
+ };
2516
+ content: {
2517
+ "application/json": components["schemas"]["AgentCompacted"];
2518
+ };
2519
+ };
2520
+ /** @description Error */
2521
+ default: {
2522
+ headers: {
2523
+ [name: string]: unknown;
2524
+ };
2525
+ content: {
2526
+ "application/json": components["schemas"]["Error"];
2527
+ };
2528
+ };
2529
+ };
2530
+ };
2531
+ "steer-agent-session": {
2532
+ parameters: {
2533
+ query?: never;
2534
+ header?: never;
2535
+ path: {
2536
+ /** @description Machine id from the machines list. */
2537
+ machine: string;
2538
+ /** @description Session id as the daemon reports it. */
2539
+ id: string;
2540
+ };
2541
+ cookie?: never;
2542
+ };
2543
+ requestBody: {
2544
+ content: {
2545
+ "application/json": components["schemas"]["AgentDirectionBody"];
2546
+ };
2547
+ };
2548
+ responses: {
2549
+ /** @description OK */
2550
+ 200: {
2551
+ headers: {
2552
+ [name: string]: unknown;
2553
+ };
2554
+ content: {
2555
+ "application/json": components["schemas"]["AgentDirectionDelivered"];
2556
+ };
2557
+ };
2558
+ /** @description Error */
2559
+ default: {
2560
+ headers: {
2561
+ [name: string]: unknown;
2562
+ };
2563
+ content: {
2564
+ "application/json": components["schemas"]["Error"];
2565
+ };
2566
+ };
2567
+ };
2568
+ };
2569
+ "fork-agent-session": {
2570
+ parameters: {
2571
+ query?: never;
2572
+ header?: never;
2573
+ path: {
2574
+ /** @description Machine id from the machines list. */
2575
+ machine: string;
2576
+ /** @description Session id as the daemon reports it. */
2577
+ id: string;
2578
+ };
2579
+ cookie?: never;
2580
+ };
2581
+ requestBody?: never;
2582
+ responses: {
2583
+ /** @description Created */
2584
+ 201: {
2585
+ headers: {
2586
+ [name: string]: unknown;
2587
+ };
2588
+ content: {
2589
+ "application/json": components["schemas"]["AgentSessionForked"];
2590
+ };
2591
+ };
2592
+ /** @description Error */
2593
+ default: {
2594
+ headers: {
2595
+ [name: string]: unknown;
2596
+ };
2597
+ content: {
2598
+ "application/json": components["schemas"]["Error"];
2599
+ };
2600
+ };
2601
+ };
2602
+ };
2603
+ "set-agent-session-goal": {
2604
+ parameters: {
2605
+ query?: never;
2606
+ header?: never;
2607
+ path: {
2608
+ /** @description Machine id from the machines list. */
2609
+ machine: string;
2610
+ /** @description Session id as the daemon reports it. */
2611
+ id: string;
2612
+ };
2613
+ cookie?: never;
2614
+ };
2615
+ requestBody: {
2616
+ content: {
2617
+ "application/json": components["schemas"]["AgentCommandArgs"];
2618
+ };
2619
+ };
2620
+ responses: {
2621
+ /** @description OK */
2622
+ 200: {
2623
+ headers: {
2624
+ [name: string]: unknown;
2625
+ };
2626
+ content: {
2627
+ "application/json": components["schemas"]["AgentCommandOutput"];
2628
+ };
2629
+ };
2630
+ /** @description Error */
2631
+ default: {
2632
+ headers: {
2633
+ [name: string]: unknown;
2634
+ };
2635
+ content: {
2636
+ "application/json": components["schemas"]["Error"];
2637
+ };
2638
+ };
2639
+ };
2640
+ };
2641
+ "group-agent-session": {
2642
+ parameters: {
2643
+ query?: never;
2644
+ header?: never;
2645
+ path: {
2646
+ /** @description Machine id from the machines list. */
2647
+ machine: string;
2648
+ /** @description Session id as the daemon reports it. */
2649
+ id: string;
2650
+ };
2651
+ cookie?: never;
2652
+ };
2653
+ requestBody: {
2654
+ content: {
2655
+ "application/json": components["schemas"]["AgentSessionGroupBody"];
2656
+ };
2657
+ };
2658
+ responses: {
2659
+ /** @description No Content */
2660
+ 204: {
2661
+ headers: {
2662
+ [name: string]: unknown;
2663
+ };
2664
+ content?: never;
2665
+ };
2666
+ /** @description Error */
2667
+ default: {
2668
+ headers: {
2669
+ [name: string]: unknown;
2670
+ };
2671
+ content: {
2672
+ "application/json": components["schemas"]["Error"];
2673
+ };
2674
+ };
2675
+ };
2676
+ };
2677
+ "ungroup-agent-session": {
2678
+ parameters: {
2679
+ query?: never;
2680
+ header?: never;
2681
+ path: {
2682
+ /** @description Machine id from the machines list. */
2683
+ machine: string;
2684
+ /** @description Session id as the daemon reports it. */
2685
+ id: string;
2686
+ };
2687
+ cookie?: never;
2688
+ };
2689
+ requestBody?: never;
2690
+ responses: {
2691
+ /** @description No Content */
2692
+ 204: {
2693
+ headers: {
2694
+ [name: string]: unknown;
2695
+ };
2696
+ content?: never;
2697
+ };
2698
+ /** @description Error */
2699
+ default: {
2700
+ headers: {
2701
+ [name: string]: unknown;
2702
+ };
2703
+ content: {
2704
+ "application/json": components["schemas"]["Error"];
2705
+ };
2706
+ };
2707
+ };
2708
+ };
2709
+ "upload-agent-session-image": {
2710
+ parameters: {
2711
+ query?: never;
2712
+ header?: never;
2713
+ path: {
2714
+ /** @description Machine id from the machines list. */
2715
+ machine: string;
2716
+ /** @description Session id as the daemon reports it. */
2717
+ id: string;
2718
+ };
2719
+ cookie?: never;
2720
+ };
2721
+ requestBody: {
2722
+ content: {
2723
+ "application/json": components["schemas"]["AgentImageBody"];
2724
+ };
2725
+ };
2726
+ responses: {
2727
+ /** @description OK */
2728
+ 200: {
2729
+ headers: {
2730
+ [name: string]: unknown;
2731
+ };
2732
+ content: {
2733
+ "application/json": components["schemas"]["AgentImageSaved"];
2734
+ };
2735
+ };
2736
+ /** @description Error */
2737
+ default: {
2738
+ headers: {
2739
+ [name: string]: unknown;
2740
+ };
2741
+ content: {
2742
+ "application/json": components["schemas"]["Error"];
2743
+ };
2744
+ };
2745
+ };
2746
+ };
2747
+ "send-agent-session-message": {
2748
+ parameters: {
2749
+ query?: never;
2750
+ header?: never;
2751
+ path: {
2752
+ /** @description Machine id from the machines list. */
2753
+ machine: string;
2754
+ /** @description Session id as the daemon reports it. */
2755
+ id: string;
2756
+ };
2757
+ cookie?: never;
2758
+ };
2759
+ requestBody: {
2760
+ content: {
2761
+ "application/json": components["schemas"]["SendMessageBody"];
2762
+ };
2763
+ };
2764
+ responses: {
2765
+ /** @description OK */
2766
+ 200: {
2767
+ headers: {
2768
+ [name: string]: unknown;
2769
+ };
2770
+ content: {
2771
+ "application/json": components["schemas"]["AgentMessageAccepted"];
2772
+ };
2773
+ };
2774
+ /** @description Error */
2775
+ default: {
2776
+ headers: {
2777
+ [name: string]: unknown;
2778
+ };
2779
+ content: {
2780
+ "application/json": components["schemas"]["Error"];
2781
+ };
2782
+ };
2783
+ };
2784
+ };
2785
+ "get-agent-session-claude-models": {
2786
+ parameters: {
2787
+ query?: {
2788
+ account?: string;
2789
+ refresh?: boolean;
2790
+ namesOnly?: boolean;
2791
+ };
2792
+ header?: never;
2793
+ path: {
2794
+ machine: string;
2795
+ id: string;
2796
+ };
2797
+ cookie?: never;
2798
+ };
2799
+ requestBody?: never;
2800
+ responses: {
2801
+ /** @description OK */
2802
+ 200: {
2803
+ headers: {
2804
+ [name: string]: unknown;
2805
+ };
2806
+ content: {
2807
+ "application/json": components["schemas"]["AgentClaudeModel"][] | null;
2808
+ };
2809
+ };
2810
+ /** @description Error */
2811
+ default: {
2812
+ headers: {
2813
+ [name: string]: unknown;
2814
+ };
2815
+ content: {
2816
+ "application/json": components["schemas"]["Error"];
2817
+ };
2818
+ };
2819
+ };
2820
+ };
2821
+ "get-agent-session-palette": {
2822
+ parameters: {
2823
+ query?: never;
2824
+ header?: never;
2825
+ path: {
2826
+ /** @description Machine id from the machines list. */
2827
+ machine: string;
2828
+ /** @description Session id as the daemon reports it. */
2829
+ id: string;
2830
+ };
2831
+ cookie?: never;
2832
+ };
2833
+ requestBody?: never;
2834
+ responses: {
2835
+ /** @description OK */
2836
+ 200: {
2837
+ headers: {
2838
+ [name: string]: unknown;
2839
+ };
2840
+ content: {
2841
+ "application/json": components["schemas"]["AgentPalette"];
2842
+ };
2843
+ };
2844
+ /** @description Error */
2845
+ default: {
2846
+ headers: {
2847
+ [name: string]: unknown;
2848
+ };
2849
+ content: {
2850
+ "application/json": components["schemas"]["Error"];
2851
+ };
2852
+ };
2853
+ };
2854
+ };
2855
+ "pin-agent-session": {
2856
+ parameters: {
2857
+ query?: never;
2858
+ header?: never;
2859
+ path: {
2860
+ /** @description Machine id from the machines list. */
2861
+ machine: string;
2862
+ /** @description Session id as the daemon reports it. */
2863
+ id: string;
2864
+ };
2865
+ cookie?: never;
2866
+ };
2867
+ requestBody?: never;
2868
+ responses: {
2869
+ /** @description No Content */
2870
+ 204: {
2871
+ headers: {
2872
+ [name: string]: unknown;
2873
+ };
2874
+ content?: never;
2875
+ };
2876
+ /** @description Error */
2877
+ default: {
2878
+ headers: {
2879
+ [name: string]: unknown;
2880
+ };
2881
+ content: {
2882
+ "application/json": components["schemas"]["Error"];
2883
+ };
2884
+ };
2885
+ };
2886
+ };
2887
+ "unpin-agent-session": {
2888
+ parameters: {
2889
+ query?: never;
2890
+ header?: never;
2891
+ path: {
2892
+ /** @description Machine id from the machines list. */
2893
+ machine: string;
2894
+ /** @description Session id as the daemon reports it. */
2895
+ id: string;
2896
+ };
2897
+ cookie?: never;
2898
+ };
2899
+ requestBody?: never;
2900
+ responses: {
2901
+ /** @description No Content */
2902
+ 204: {
2903
+ headers: {
2904
+ [name: string]: unknown;
2905
+ };
2906
+ content?: never;
2907
+ };
2908
+ /** @description Error */
2909
+ default: {
2910
+ headers: {
2911
+ [name: string]: unknown;
2912
+ };
2913
+ content: {
2914
+ "application/json": components["schemas"]["Error"];
2915
+ };
2916
+ };
2917
+ };
2918
+ };
2919
+ "run-agent-session-plan": {
2920
+ parameters: {
2921
+ query?: never;
2922
+ header?: never;
2923
+ path: {
2924
+ /** @description Machine id from the machines list. */
2925
+ machine: string;
2926
+ /** @description Session id as the daemon reports it. */
2927
+ id: string;
2928
+ };
2929
+ cookie?: never;
2930
+ };
2931
+ requestBody: {
2932
+ content: {
2933
+ "application/json": components["schemas"]["AgentCommandArgs"];
2934
+ };
2935
+ };
2936
+ responses: {
2937
+ /** @description OK */
2938
+ 200: {
2939
+ headers: {
2940
+ [name: string]: unknown;
2941
+ };
2942
+ content: {
2943
+ "application/json": components["schemas"]["AgentPlanResult"];
2944
+ };
2945
+ };
2946
+ /** @description Error */
2947
+ default: {
2948
+ headers: {
2949
+ [name: string]: unknown;
2950
+ };
2951
+ content: {
2952
+ "application/json": components["schemas"]["Error"];
2953
+ };
2954
+ };
2955
+ };
2956
+ };
2957
+ "get-agent-session-pull-requests": {
2958
+ parameters: {
2959
+ query?: never;
2960
+ header?: never;
2961
+ path: {
2962
+ /** @description Machine id from the machines list. */
2963
+ machine: string;
2964
+ /** @description Session id as the daemon reports it. */
2965
+ id: string;
2966
+ };
2967
+ cookie?: never;
2968
+ };
2969
+ requestBody?: never;
2970
+ responses: {
2971
+ /** @description OK */
2972
+ 200: {
2973
+ headers: {
2974
+ [name: string]: unknown;
2975
+ };
2976
+ content: {
2977
+ "application/json": components["schemas"]["AgentPullRequests"];
2978
+ };
2979
+ };
2980
+ /** @description Error */
2981
+ default: {
2982
+ headers: {
2983
+ [name: string]: unknown;
2984
+ };
2985
+ content: {
2986
+ "application/json": components["schemas"]["Error"];
2987
+ };
2988
+ };
2989
+ };
2990
+ };
2991
+ "withdraw-agent-session-message": {
2992
+ parameters: {
2993
+ query?: never;
2994
+ header?: never;
2995
+ path: {
2996
+ /** @description Machine id from the machines list. */
2997
+ machine: string;
2998
+ /** @description Session id as the daemon reports it. */
2999
+ id: string;
3000
+ /** @description The turn id the message was accepted as. */
3001
+ turnId: string;
3002
+ };
3003
+ cookie?: never;
3004
+ };
3005
+ requestBody?: never;
3006
+ responses: {
3007
+ /** @description No Content */
3008
+ 204: {
3009
+ headers: {
3010
+ [name: string]: unknown;
3011
+ };
3012
+ content?: never;
3013
+ };
3014
+ /** @description Error */
3015
+ default: {
3016
+ headers: {
3017
+ [name: string]: unknown;
3018
+ };
3019
+ content: {
3020
+ "application/json": components["schemas"]["Error"];
3021
+ };
3022
+ };
3023
+ };
3024
+ };
3025
+ "recap-agent-session": {
3026
+ parameters: {
3027
+ query?: never;
3028
+ header?: never;
3029
+ path: {
3030
+ /** @description Machine id from the machines list. */
3031
+ machine: string;
3032
+ /** @description Session id as the daemon reports it. */
3033
+ id: string;
3034
+ };
3035
+ cookie?: never;
3036
+ };
3037
+ requestBody?: never;
3038
+ responses: {
3039
+ /** @description No Content */
3040
+ 204: {
3041
+ headers: {
3042
+ [name: string]: unknown;
3043
+ };
3044
+ content?: never;
3045
+ };
3046
+ /** @description Error */
3047
+ default: {
3048
+ headers: {
3049
+ [name: string]: unknown;
3050
+ };
3051
+ content: {
3052
+ "application/json": components["schemas"]["Error"];
3053
+ };
3054
+ };
3055
+ };
3056
+ };
3057
+ "rename-agent-session": {
3058
+ parameters: {
3059
+ query?: never;
3060
+ header?: never;
3061
+ path: {
3062
+ /** @description Machine id from the machines list. */
3063
+ machine: string;
3064
+ /** @description Session id as the daemon reports it. */
3065
+ id: string;
3066
+ };
3067
+ cookie?: never;
3068
+ };
3069
+ requestBody: {
3070
+ content: {
3071
+ "application/json": components["schemas"]["AgentRenameBody"];
3072
+ };
3073
+ };
3074
+ responses: {
3075
+ /** @description No Content */
3076
+ 204: {
3077
+ headers: {
3078
+ [name: string]: unknown;
3079
+ };
3080
+ content?: never;
3081
+ };
3082
+ /** @description Error */
3083
+ default: {
3084
+ headers: {
3085
+ [name: string]: unknown;
3086
+ };
3087
+ content: {
3088
+ "application/json": components["schemas"]["Error"];
3089
+ };
3090
+ };
3091
+ };
3092
+ };
3093
+ "update-agent-session-settings": {
3094
+ parameters: {
3095
+ query?: never;
3096
+ header?: never;
3097
+ path: {
3098
+ /** @description Machine id from the machines list. */
3099
+ machine: string;
3100
+ /** @description Session id as the daemon reports it. */
3101
+ id: string;
3102
+ };
3103
+ cookie?: never;
3104
+ };
3105
+ requestBody: {
3106
+ content: {
3107
+ "application/json": components["schemas"]["AgentSessionSettingsBody"];
3108
+ };
3109
+ };
3110
+ responses: {
3111
+ /** @description OK */
3112
+ 200: {
3113
+ headers: {
3114
+ [name: string]: unknown;
3115
+ };
3116
+ content: {
3117
+ "application/json": components["schemas"]["SessionState"];
3118
+ };
3119
+ };
3120
+ /** @description Error */
3121
+ default: {
3122
+ headers: {
3123
+ [name: string]: unknown;
3124
+ };
3125
+ content: {
3126
+ "application/json": components["schemas"]["Error"];
3127
+ };
3128
+ };
3129
+ };
3130
+ };
3131
+ "run-agent-session-shell": {
3132
+ parameters: {
3133
+ query?: never;
3134
+ header?: never;
3135
+ path: {
3136
+ /** @description Machine id from the machines list. */
3137
+ machine: string;
3138
+ /** @description Session id as the daemon reports it. */
3139
+ id: string;
3140
+ };
3141
+ cookie?: never;
3142
+ };
3143
+ requestBody: {
3144
+ content: {
3145
+ "application/json": components["schemas"]["AgentShellBody"];
3146
+ };
3147
+ };
3148
+ responses: {
3149
+ /** @description OK */
3150
+ 200: {
3151
+ headers: {
3152
+ [name: string]: unknown;
3153
+ };
3154
+ content: {
3155
+ "application/json": components["schemas"]["AgentShellOutput"];
3156
+ };
3157
+ };
3158
+ /** @description Error */
3159
+ default: {
3160
+ headers: {
3161
+ [name: string]: unknown;
3162
+ };
3163
+ content: {
3164
+ "application/json": components["schemas"]["Error"];
3165
+ };
3166
+ };
3167
+ };
3168
+ };
3169
+ "stop-agent-session": {
3170
+ parameters: {
3171
+ query?: never;
3172
+ header?: never;
3173
+ path: {
3174
+ /** @description Machine id from the machines list. */
3175
+ machine: string;
3176
+ /** @description Session id as the daemon reports it. */
3177
+ id: string;
3178
+ };
3179
+ cookie?: never;
3180
+ };
3181
+ requestBody?: never;
3182
+ responses: {
3183
+ /** @description No Content */
3184
+ 204: {
3185
+ headers: {
3186
+ [name: string]: unknown;
3187
+ };
3188
+ content?: never;
3189
+ };
3190
+ /** @description Error */
3191
+ default: {
3192
+ headers: {
3193
+ [name: string]: unknown;
3194
+ };
3195
+ content: {
3196
+ "application/json": components["schemas"]["Error"];
3197
+ };
3198
+ };
3199
+ };
3200
+ };
3201
+ "list-agent-session-subagents": {
3202
+ parameters: {
3203
+ query?: never;
3204
+ header?: never;
3205
+ path: {
3206
+ /** @description Machine id from the machines list. */
3207
+ machine: string;
3208
+ /** @description Session id as the daemon reports it. */
3209
+ id: string;
3210
+ };
3211
+ cookie?: never;
3212
+ };
3213
+ requestBody?: never;
3214
+ responses: {
3215
+ /** @description OK */
3216
+ 200: {
3217
+ headers: {
3218
+ [name: string]: unknown;
3219
+ };
3220
+ content: {
3221
+ "application/json": components["schemas"]["AgentSubagents"];
3222
+ };
3223
+ };
3224
+ /** @description Error */
3225
+ default: {
3226
+ headers: {
3227
+ [name: string]: unknown;
3228
+ };
3229
+ content: {
3230
+ "application/json": components["schemas"]["Error"];
3231
+ };
3232
+ };
3233
+ };
3234
+ };
3235
+ "stop-agent-session-subagents": {
3236
+ parameters: {
3237
+ query?: never;
3238
+ header?: never;
3239
+ path: {
3240
+ /** @description Machine id from the machines list. */
3241
+ machine: string;
3242
+ /** @description Session id as the daemon reports it. */
3243
+ id: string;
3244
+ };
3245
+ cookie?: never;
3246
+ };
3247
+ requestBody?: never;
3248
+ responses: {
3249
+ /** @description No Content */
3250
+ 204: {
3251
+ headers: {
3252
+ [name: string]: unknown;
3253
+ };
3254
+ content?: never;
3255
+ };
3256
+ /** @description Error */
3257
+ default: {
3258
+ headers: {
3259
+ [name: string]: unknown;
3260
+ };
3261
+ content: {
3262
+ "application/json": components["schemas"]["Error"];
3263
+ };
3264
+ };
3265
+ };
3266
+ };
3267
+ "get-agent-session-subagent": {
3268
+ parameters: {
3269
+ query?: never;
3270
+ header?: never;
3271
+ path: {
3272
+ /** @description Machine id from the machines list. */
3273
+ machine: string;
3274
+ /** @description Session id as the daemon reports it. */
3275
+ id: string;
3276
+ /** @description Subagent id from the session's subagents. */
3277
+ subId: string;
3278
+ };
3279
+ cookie?: never;
3280
+ };
3281
+ requestBody?: never;
3282
+ responses: {
3283
+ /** @description OK */
3284
+ 200: {
3285
+ headers: {
3286
+ [name: string]: unknown;
3287
+ };
3288
+ content: {
3289
+ "application/json": components["schemas"]["SubagentDetail"];
3290
+ };
3291
+ };
3292
+ /** @description Error */
3293
+ default: {
3294
+ headers: {
3295
+ [name: string]: unknown;
3296
+ };
3297
+ content: {
3298
+ "application/json": components["schemas"]["Error"];
3299
+ };
3300
+ };
3301
+ };
3302
+ };
3303
+ "steer-agent-session-subagent": {
3304
+ parameters: {
3305
+ query?: never;
3306
+ header?: never;
3307
+ path: {
3308
+ /** @description Machine id from the machines list. */
3309
+ machine: string;
3310
+ /** @description Session id as the daemon reports it. */
3311
+ id: string;
3312
+ /** @description Subagent id from the session's subagents. */
3313
+ subId: string;
3314
+ };
3315
+ cookie?: never;
3316
+ };
3317
+ requestBody: {
3318
+ content: {
3319
+ "application/json": components["schemas"]["AgentDirectionBody"];
3320
+ };
3321
+ };
3322
+ responses: {
3323
+ /** @description OK */
3324
+ 200: {
3325
+ headers: {
3326
+ [name: string]: unknown;
3327
+ };
3328
+ content: {
3329
+ "application/json": components["schemas"]["AgentDirectionDelivered"];
3330
+ };
3331
+ };
3332
+ /** @description Error */
3333
+ default: {
3334
+ headers: {
3335
+ [name: string]: unknown;
3336
+ };
3337
+ content: {
3338
+ "application/json": components["schemas"]["Error"];
3339
+ };
3340
+ };
3341
+ };
3342
+ };
3343
+ "send-agent-session-subagent-message": {
3344
+ parameters: {
3345
+ query?: never;
3346
+ header?: never;
3347
+ path: {
3348
+ /** @description Machine id from the machines list. */
3349
+ machine: string;
3350
+ /** @description Session id as the daemon reports it. */
3351
+ id: string;
3352
+ /** @description Subagent id from the session's subagents. */
3353
+ subId: string;
3354
+ };
3355
+ cookie?: never;
3356
+ };
3357
+ requestBody: {
3358
+ content: {
3359
+ "application/json": components["schemas"]["SendMessageBody"];
3360
+ };
3361
+ };
3362
+ responses: {
3363
+ /** @description OK */
3364
+ 200: {
3365
+ headers: {
3366
+ [name: string]: unknown;
3367
+ };
3368
+ content: {
3369
+ "application/json": components["schemas"]["AgentMessageAccepted"];
3370
+ };
3371
+ };
3372
+ /** @description Error */
3373
+ default: {
3374
+ headers: {
3375
+ [name: string]: unknown;
3376
+ };
3377
+ content: {
3378
+ "application/json": components["schemas"]["Error"];
3379
+ };
3380
+ };
3381
+ };
3382
+ };
3383
+ "stop-agent-session-subagent": {
3384
+ parameters: {
3385
+ query?: never;
3386
+ header?: never;
3387
+ path: {
3388
+ /** @description Machine id from the machines list. */
3389
+ machine: string;
3390
+ /** @description Session id as the daemon reports it. */
3391
+ id: string;
3392
+ /** @description Subagent id from the session's subagents. */
3393
+ subId: string;
3394
+ };
3395
+ cookie?: never;
3396
+ };
3397
+ requestBody?: never;
3398
+ responses: {
3399
+ /** @description No Content */
3400
+ 204: {
3401
+ headers: {
3402
+ [name: string]: unknown;
3403
+ };
3404
+ content?: never;
3405
+ };
3406
+ /** @description Error */
3407
+ default: {
3408
+ headers: {
3409
+ [name: string]: unknown;
3410
+ };
3411
+ content: {
3412
+ "application/json": components["schemas"]["Error"];
3413
+ };
3414
+ };
3415
+ };
3416
+ };
3417
+ "upload-agent-session-paste": {
3418
+ parameters: {
3419
+ query?: never;
3420
+ header?: never;
3421
+ path: {
3422
+ /** @description Machine id from the machines list. */
3423
+ machine: string;
3424
+ /** @description Session id as the daemon reports it. */
3425
+ id: string;
3426
+ };
3427
+ cookie?: never;
3428
+ };
3429
+ requestBody: {
3430
+ content: {
3431
+ "application/json": components["schemas"]["AgentPasteUpload"];
3432
+ };
3433
+ };
3434
+ responses: {
3435
+ /** @description Created */
3436
+ 201: {
3437
+ headers: {
3438
+ [name: string]: unknown;
3439
+ };
3440
+ content: {
3441
+ "application/json": components["schemas"]["AgentPasteSaved"];
3442
+ };
3443
+ };
3444
+ /** @description Error */
3445
+ default: {
3446
+ headers: {
3447
+ [name: string]: unknown;
3448
+ };
3449
+ content: {
3450
+ "application/json": components["schemas"]["Error"];
3451
+ };
3452
+ };
3453
+ };
3454
+ };
3455
+ "get-agent-session-worktree": {
3456
+ parameters: {
3457
+ query?: never;
3458
+ header?: never;
3459
+ path: {
3460
+ /** @description Machine id from the machines list. */
3461
+ machine: string;
3462
+ /** @description Session id as the daemon reports it. */
3463
+ id: string;
3464
+ };
3465
+ cookie?: never;
3466
+ };
3467
+ requestBody?: never;
3468
+ responses: {
3469
+ /** @description OK */
3470
+ 200: {
3471
+ headers: {
3472
+ [name: string]: unknown;
3473
+ };
3474
+ content: {
3475
+ "application/json": components["schemas"]["AgentSessionWorktree"];
3476
+ };
3477
+ };
3478
+ /** @description Error */
3479
+ default: {
3480
+ headers: {
3481
+ [name: string]: unknown;
3482
+ };
3483
+ content: {
3484
+ "application/json": components["schemas"]["Error"];
3485
+ };
3486
+ };
3487
+ };
3488
+ };
3489
+ "leave-agent-session-worktree": {
3490
+ parameters: {
3491
+ query?: never;
3492
+ header?: never;
3493
+ path: {
3494
+ /** @description Machine id from the machines list. */
3495
+ machine: string;
3496
+ /** @description Session id as the daemon reports it. */
3497
+ id: string;
3498
+ };
3499
+ cookie?: never;
3500
+ };
3501
+ requestBody: {
3502
+ content: {
3503
+ "application/json": components["schemas"]["AgentLeaveWorktreeBody"];
3504
+ };
3505
+ };
3506
+ responses: {
3507
+ /** @description OK */
3508
+ 200: {
3509
+ headers: {
3510
+ [name: string]: unknown;
3511
+ };
3512
+ content: {
3513
+ "application/json": components["schemas"]["AgentWorktreeLeft"];
3514
+ };
3515
+ };
3516
+ /** @description Error */
3517
+ default: {
3518
+ headers: {
3519
+ [name: string]: unknown;
3520
+ };
3521
+ content: {
3522
+ "application/json": components["schemas"]["Error"];
3523
+ };
3524
+ };
3525
+ };
3526
+ };
3527
+ "agent-session-events": {
3528
+ parameters: {
3529
+ query?: never;
3530
+ header?: never;
3531
+ path?: never;
3532
+ cookie?: never;
3533
+ };
3534
+ requestBody?: never;
3535
+ responses: {
3536
+ /** @description A session event frame */
3537
+ 200: {
3538
+ headers: {
3539
+ [name: string]: unknown;
3540
+ };
3541
+ content: {
3542
+ "application/json": components["schemas"]["AgentStreamEvent"];
3543
+ };
3544
+ };
3545
+ };
3546
+ };
3547
+ }