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