(
tempDir: string,
options?: {
workspaceId?: string;
sessionsDir?: string;
runtime?: Runtime;
muxScope?: MuxToolScope;
}
)
| 389 | } |
| 390 | |
| 391 | export function createTestToolConfig( |
| 392 | tempDir: string, |
| 393 | options?: { |
| 394 | workspaceId?: string; |
| 395 | sessionsDir?: string; |
| 396 | runtime?: Runtime; |
| 397 | muxScope?: MuxToolScope; |
| 398 | } |
| 399 | ): ToolConfiguration { |
| 400 | return { |
| 401 | cwd: tempDir, |
| 402 | workspaceSessionDir: options?.sessionsDir ?? tempDir, |
| 403 | runtime: options?.runtime ?? new LocalRuntime(tempDir), |
| 404 | runtimeTempDir: tempDir, |
| 405 | workspaceId: options?.workspaceId ?? "test-workspace", |
| 406 | muxScope: options?.muxScope ?? { |
| 407 | type: "global", |
| 408 | muxHome: tempDir, |
| 409 | }, |
| 410 | }; |
| 411 | } |
| 412 | |
| 413 | export function getTestDeps() { |
| 414 | return { |
no outgoing calls