File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 77import { compareVersions } from 'compare-versions'
88import { NotFoundError , TemplateError } from '../errors'
99import { timeoutToSeconds } from '../utils'
10+ import type { Volume } from '../volume'
1011import type { McpServer as BaseMcpServer } from './mcp'
1112
1213/**
@@ -133,12 +134,11 @@ export interface SandboxOpts extends ConnectionOpts {
133134 * Volume mounts for the sandbox.
134135 *
135136 * The keys are mount paths inside the sandbox and the values are either
136- * a Volume instance (or any object with `volumeId` and `name`) or a string
137- * representing the volume name.
137+ * a `Volume` instance or a string representing the volume name.
138138 *
139139 * @default undefined
140140 */
141- volumeMounts ?: Record < string , { name : string } | string >
141+ volumeMounts ?: Record < string , Volume | string >
142142
143143 /**
144144 * Sandbox URL. Used for local development
Original file line number Diff line number Diff line change @@ -438,6 +438,7 @@ async def read_file(
438438 timeout = config .get_request_timeout (opts .get ("request_timeout" ))
439439
440440 if format == "stream" :
441+
441442 async def stream_file () -> AsyncIterator [bytes ]:
442443 async with api_client .get_async_httpx_client ().stream (
443444 method = "GET" ,
Original file line number Diff line number Diff line change @@ -436,6 +436,7 @@ def read_file(
436436 timeout = config .get_request_timeout (opts .get ("request_timeout" ))
437437
438438 if format == "stream" :
439+
439440 def stream_file () -> Iterator [bytes ]:
440441 with api_client .get_httpx_client ().stream (
441442 method = "GET" ,
You can’t perform that action at this time.
0 commit comments