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

Function isWorkspaceDefinition

packages/ai-sandbox-cloudflare/src/protocol.ts:76–84  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

74}
75
76function isWorkspaceDefinition(value: unknown): value is WorkspaceDefinition {
77 return (
78 value !== null &&
79 typeof value === 'object' &&
80 'source' in value &&
81 value.source !== null &&
82 typeof value.source === 'object'
83 )
84}
85
86/**
87 * Assert enough of a message to fail fast on garbage (a non-empty `role` and a

Callers 1

parseContainerRunRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected