MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / validChangeRef

Function validChangeRef

graph-ui/src/impact/change-set.ts:22–25  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

20 ? value as Record<string, unknown> : {};
21
22export function validChangeRef(value: string): boolean {
23 // A local revision, never shell syntax or a Git option. The daemon also validates it.
24 return value.length > 0 && value.length <= 200 && /^[A-Za-z0-9_][A-Za-z0-9_./~^@{}+-]*$/.test(value);
25}
26
27/** Read file pages separately from graph impact so one cannot consume the other's budget. */
28export async function loadChangeSet(project: string, base: string, signal?: AbortSignal,

Callers 4

ChangeAnalysisWorkspaceFunction · 0.90
change-set.test.tsFile · 0.90
loadChangeSetFunction · 0.85
localDiffCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected