MCPcopy Index your code
hub / github.com/coder/mux / isWorkspaceTurnMetadata

Function isWorkspaceTurnMetadata

src/node/services/messageQueue.ts:44–53  ·  view source on GitHub ↗
(meta: unknown)

Source from the content-addressed store, hash-verified

42}
43
44function isWorkspaceTurnMetadata(meta: unknown): meta is WorkspaceTurnMetadata {
45 if (typeof meta !== "object" || meta === null) return false;
46 const obj = meta as Record<string, unknown>;
47 return (
48 obj.type === "workspace-turn-task" &&
49 typeof obj.taskHandleId === "string" &&
50 typeof obj.ownerWorkspaceId === "string" &&
51 typeof obj.turnId === "string"
52 );
53}
54
55// Type guard for metadata with reviews
56interface MetadataWithReviews {

Callers 2

hasWorkspaceTurnMethod · 0.85
addInternalMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected