MCPcopy Create free account
hub / github.com/HKUDS/AgentSpace / readWorkspaceIdForTaskQueueSync

Function readWorkspaceIdForTaskQueueSync

packages/db/src/token-usage.ts:240–247  ·  view source on GitHub ↗
(taskQueueId: string)

Source from the content-addressed store, hash-verified

238}
239
240function readWorkspaceIdForTaskQueueSync(taskQueueId: string): string | null {
241 const db = getDatabase();
242 const row = db.prepare(
243 "SELECT workspace_id AS workspaceId FROM agent_task_queue WHERE id = ?",
244 ).get(taskQueueId) as { workspaceId?: string } | undefined;
245
246 return typeof row?.workspaceId === "string" ? row.workspaceId : null;
247}

Callers 1

recordTokenUsageSyncFunction · 0.85

Calls 3

getDatabaseFunction · 0.90
getMethod · 0.80
prepareMethod · 0.80

Tested by

no test coverage detected