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

Method sandboxFrom

packages/ai-claude-code/src/adapters/text.ts:130–141  ·  view source on GitHub ↗
(
    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 (

Callers 1

chatStreamMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected