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

Function capabilityContextWith

packages/ai-codex/tests/text-adapter.test.ts:56–63  ·  view source on GitHub ↗
(handle: SandboxHandle)

Source from the content-addressed store, hash-verified

54} as unknown as InternalLogger
55
56function capabilityContextWith(handle: SandboxHandle): CapabilityContext {
57 const [, provideSandbox] = SandboxCapability
58 const ctx = {
59 capabilities: { markProvided: () => {}, has: () => true },
60 } as unknown as CapabilityContext
61 provideSandbox(ctx, handle)
62 return ctx
63}
64
65async function collect(
66 stream: AsyncIterable<StreamChunk>,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected