MCPcopy Index your code
hub / github.com/TanStack/ai / sandboxFrom

Method sandboxFrom

packages/ai-codex/src/adapters/text.ts:102–112  ·  view source on GitHub ↗
(
    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 (

Callers 1

chatStreamMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected