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

Function ownedByAgent

examples/sandbox-cloudflare/src/server.ts:38–39  ·  view source on GitHub ↗
(pathname: string)

Source from the content-addressed store, hash-verified

36const AGENT_PATHS = ['/runs', '/_bridge', '/tool-exec']
37
38const ownedByAgent = (pathname: string): boolean =>
39 AGENT_PATHS.some((p) => pathname === p || pathname.startsWith(`${p}/`))
40
41export default {
42 async fetch(request, env, ctx) {

Callers 1

fetchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected