MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / isSafeTaskId

Function isSafeTaskId

apps/vis/server/src/lib/task-store.ts:28–30  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

26const VALID_TASK_ID = /^[a-z0-9]+(?:-[a-z0-9]+)*-[0-9a-z]{8}$/;
27
28export function isSafeTaskId(id: string): boolean {
29 return VALID_TASK_ID.test(id);
30}
31
32function tasksDirOf(agentDir: string): string {
33 return join(agentDir, 'tasks');

Callers 2

task-store.test.tsFile · 0.90
tasksRouteFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected