@@ -12,32 +12,6 @@ export interface AfterIdle {
1212 on_idle : 'shutdown' | 'suspend' ;
1313}
1414
15- export interface AgentMountParameters {
16- /**
17- * The ID of the agent to mount. Either agent_id or name must be set.
18- */
19- agent_id : string | null ;
20-
21- /**
22- * The name of the agent to mount. Returns the most recent agent with a matching
23- * name if no agent id string provided. Either agent id or name must be set
24- */
25- agent_name : string | null ;
26-
27- type : 'agent_mount' ;
28-
29- /**
30- * Path to mount the agent on the Devbox. Required for git and object agents. Use
31- * absolute path (e.g., /home/user/agent)
32- */
33- agent_path ?: string | null ;
34-
35- /**
36- * Optional auth token for private repositories. Only used for git agents.
37- */
38- auth_token ?: string | null ;
39- }
40-
4115/**
4216 * Agent source configuration.
4317 */
@@ -167,8 +141,6 @@ export interface CodeMountParameters {
167141 */
168142 repo_owner : string ;
169143
170- type : 'code_mount' ;
171-
172144 /**
173145 * The authentication token necessary to pull repo.
174146 */
@@ -276,14 +248,76 @@ export namespace LaunchParameters {
276248 }
277249}
278250
279- export type Mount =
280- | ObjectMountParameters
281- | AgentMountParameters
282- | CodeMountParameters
283- | Mount . FileMountParameters ;
251+ export type Mount = Mount . ObjectMount | Mount . AgentMount | Mount . CodeMount | Mount . FileMount ;
284252
285253export namespace Mount {
286- export interface FileMountParameters {
254+ export interface ObjectMount {
255+ /**
256+ * The ID of the object to write.
257+ */
258+ object_id : string ;
259+
260+ /**
261+ * The path to write the object on the Devbox. Use absolute path of object (ie
262+ * /home/user/object.txt, or directory if archive /home/user/archive_dir)
263+ */
264+ object_path : string ;
265+
266+ type : 'object_mount' ;
267+ }
268+
269+ export interface AgentMount {
270+ /**
271+ * The ID of the agent to mount. Either agent_id or name must be set.
272+ */
273+ agent_id : string | null ;
274+
275+ /**
276+ * The name of the agent to mount. Returns the most recent agent with a matching
277+ * name if no agent id string provided. Either agent id or name must be set
278+ */
279+ agent_name : string | null ;
280+
281+ type : 'agent_mount' ;
282+
283+ /**
284+ * Path to mount the agent on the Devbox. Required for git and object agents. Use
285+ * absolute path (e.g., /home/user/agent)
286+ */
287+ agent_path ?: string | null ;
288+
289+ /**
290+ * Optional auth token for private repositories. Only used for git agents.
291+ */
292+ auth_token ?: string | null ;
293+ }
294+
295+ export interface CodeMount {
296+ /**
297+ * The name of the repo to mount. By default, code will be mounted at
298+ * /home/user/{repo_name}s.
299+ */
300+ repo_name : string ;
301+
302+ /**
303+ * The owner of the repo.
304+ */
305+ repo_owner : string ;
306+
307+ type : 'code_mount' ;
308+
309+ /**
310+ * The authentication token necessary to pull repo.
311+ */
312+ token ?: string | null ;
313+
314+ /**
315+ * Installation command to install and setup repository.
316+ */
317+ install_command ?: string | null ;
318+ }
319+
320+ export interface FileMount {
287321 /**
288322 * Content of the file to mount.
289323 */
@@ -298,21 +332,6 @@ export namespace Mount {
298332 }
299333}
300334
301- export interface ObjectMountParameters {
302- /**
303- * The ID of the object to write.
304- */
305- object_id : string ;
306-
307- /**
308- * The path to write the object on the Devbox. Use absolute path of object (ie
309- * /home/user/object.txt, or directory if archive /home/user/archive_dir)
310- */
311- object_path : string ;
312-
313- type : 'object_mount' ;
314- }
315-
316335export interface RunProfile {
317336 /**
318337 * Mapping of Environment Variable to Value. May be shown in devbox logging.
0 commit comments