Method
sandboxFrom
(
options: TextOptions<OpencodeTextProviderOptions>,
)
Source from the content-addressed store, hash-verified
| 96 | } |
| 97 | |
| 98 | private sandboxFrom( |
| 99 | options: TextOptions<OpencodeTextProviderOptions>, |
| 100 | ): SandboxHandle { |
| 101 | const ctx = options.capabilities |
| 102 | if (!ctx) { |
| 103 | throw new Error( |
| 104 | 'Adapter "opencode" requires a sandbox. Add withSandbox(defineSandbox({ ... })) to chat() middleware.', |
| 105 | ) |
| 106 | } |
| 107 | return getSandbox(ctx) |
| 108 | } |
| 109 | |
| 110 | private applySystemPrompts( |
| 111 | options: TextOptions<OpencodeTextProviderOptions>, |
Tested by
no test coverage detected