Method
sandboxFrom
(
options: TextOptions<ClaudeCodeTextProviderOptions>,
)
Source from the content-addressed store, hash-verified
| 128 | } |
| 129 | |
| 130 | private sandboxFrom( |
| 131 | options: TextOptions<ClaudeCodeTextProviderOptions>, |
| 132 | ): SandboxHandle { |
| 133 | const ctx = options.capabilities |
| 134 | if (!ctx) { |
| 135 | throw new Error( |
| 136 | 'Adapter "claude-code" requires a sandbox. Add withSandbox(defineSandbox({ ... })) ' + |
| 137 | 'to chat() middleware (e.g. with the local-process or docker provider).', |
| 138 | ) |
| 139 | } |
| 140 | return getSandbox(ctx) |
| 141 | } |
| 142 | |
| 143 | private workdir(options: TextOptions<ClaudeCodeTextProviderOptions>): string { |
| 144 | return ( |
Tested by
no test coverage detected