MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / collectDashboardSourceInputs

Function collectDashboardSourceInputs

dashboard/build.shared.mjs:444–462  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

442}
443
444async function collectDashboardSourceInputs() {
445 const inputs = [];
446 for (const file of DASHBOARD_SOURCE_FILES) {
447 try {
448 const stat = await fs.stat(path.join(dashboardRoot, file));
449 if (stat.isFile()) inputs.push(file);
450 } catch {
451 // Missing source inputs are normal in packaged crates.
452 }
453 }
454 for (const dir of DASHBOARD_SOURCE_DIRS) {
455 await collectSourceDir(dir, inputs);
456 }
457 return inputs.sort((a, b) => {
458 const left = normalizedSourcePath(a);
459 const right = normalizedSourcePath(b);
460 return left < right ? -1 : left > right ? 1 : 0;
461 });
462}
463
464export async function dashboardSourceStamp() {
465 const inputs = await collectDashboardSourceInputs();

Callers 1

dashboardSourceStampFunction · 0.85

Calls 3

collectSourceDirFunction · 0.85
normalizedSourcePathFunction · 0.85
pushMethod · 0.80

Tested by

no test coverage detected