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

Function makeCtx

packages/ai/tests/middleware-capabilities.test.ts:21–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19// A capability accessor only needs `ctx.capabilities`, so test contexts are
20// typed against the minimal CapabilityContext — no casts.
21function makeCtx(): CapabilityContext {
22 return { capabilities: new CapabilityRegistry() }
23}
24
25describe('createCapability + CapabilityRegistry', () => {
26 it('provides and gets a value by handle reference', () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected