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

Method sandboxFrom

packages/ai-opencode/src/adapters/text.ts:98–108  ·  view source on GitHub ↗
(
    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>,

Callers 1

chatStreamMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected