MCPcopy
hub / github.com/openclaw/clawsweeper / numberForMarkdownFile

Function numberForMarkdownFile

src/clawsweeper.ts:18119–18123  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

18117}
18118
18119function numberForMarkdownFile(file: string): number {
18120 const parsed = parseReportFileName(file);
18121 if (!parsed) throw new Error(`Invalid report filename: ${file}`);
18122 return parsed.number;
18123}
18124
18125function repoRelativePath(path: string): string {
18126 return relative(ROOT, path).replaceAll("\\", "/");

Callers 10

localRelatedTitleIndexFunction · 0.85
buildExistingReviewIndexFunction · 0.85
reportEntriesForDirFunction · 0.85
applyDecisionsCommandFunction · 0.85
applyArtifactsCommandFunction · 0.85
markdownAuditRecordFunction · 0.85
reconcileFoldersFunction · 0.85
dashboardStatsFunction · 0.85

Calls 1

parseReportFileNameFunction · 0.85

Tested by

no test coverage detected