Skip to content

Commit 88863c6

Browse files
feat: add BrokerMount to OpenAPI spec (#8282)
1 parent 1681eb3 commit 88863c6

4 files changed

Lines changed: 30 additions & 4 deletions

File tree

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 122
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-32e4b2dfb75745be076697d252bd80aff21c08464750928ffe2b7dd997d0b443.yml
3-
openapi_spec_hash: eb0ccabfcda0fb8c56b53939b56f6d80
4-
config_hash: c422b761c745873bce8fa5ccf03b7b98
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-efb88e3669a1c631b1537bb0872c94d29586dfc6e9f403418cdc53a21efdb0bc.yml
3+
openapi_spec_hash: 55189696e264bf48a712acf4df21a807
4+
config_hash: 2dbb07d90e3e2d37fa6645af119965d5

api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Types:
55
- <code><a href="./src/resources/shared.ts">AfterIdle</a></code>
66
- <code><a href="./src/resources/shared.ts">AgentMount</a></code>
77
- <code><a href="./src/resources/shared.ts">AgentSource</a></code>
8+
- <code><a href="./src/resources/shared.ts">BrokerMount</a></code>
89
- <code><a href="./src/resources/shared.ts">CodeMountParameters</a></code>
910
- <code><a href="./src/resources/shared.ts">LaunchParameters</a></code>
1011
- <code><a href="./src/resources/shared.ts">Mount</a></code>

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -766,6 +766,7 @@ export declare namespace Runloop {
766766
export type AfterIdle = API.AfterIdle;
767767
export type AgentMount = API.AgentMount;
768768
export type AgentSource = API.AgentSource;
769+
export type BrokerMount = API.BrokerMount;
769770
export type CodeMountParameters = API.CodeMountParameters;
770771
export type LaunchParameters = API.LaunchParameters;
771772
export type Mount = API.Mount;

src/resources/shared.ts

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,30 @@ export namespace AgentSource {
152152
}
153153
}
154154

155+
export interface BrokerMount {
156+
/**
157+
* The ID of the axon event stream to mount onto the Devbox.
158+
*/
159+
axon_id: string;
160+
161+
type: 'broker_mount';
162+
163+
/**
164+
* Binary to launch the agent (e.g., 'opencode'). Used by ACP broker.
165+
*/
166+
agent_binary?: string | null;
167+
168+
/**
169+
* Arguments to pass to the agent command (e.g., ['acp']). Used by ACP broker.
170+
*/
171+
launch_args?: Array<string> | null;
172+
173+
/**
174+
* The protocol used by the broker to deliver events to the agent.
175+
*/
176+
protocol?: 'acp' | 'claude' | 'codex' | null;
177+
}
178+
155179
/**
156180
* Parameters for mounting code from a Git repository.
157181
*
@@ -287,7 +311,7 @@ export namespace LaunchParameters {
287311
*
288312
* @category Shared Types
289313
*/
290-
export type Mount = ObjectMount | AgentMount | Mount.CodeMount | Mount.FileMount;
314+
export type Mount = ObjectMount | AgentMount | Mount.CodeMount | Mount.FileMount | BrokerMount;
291315

292316
export namespace Mount {
293317
export interface CodeMount {

0 commit comments

Comments
 (0)