MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / applySceneToFile

Function applySceneToFile

scripts/hsr/record-runner.mjs:92–102  ·  view source on GitHub ↗
(mode, filePath, sceneValue)

Source from the content-addressed store, hash-verified

90}
91
92function applySceneToFile(mode, filePath, sceneValue) {
93 if (mode === "widget") {
94 return rewriteWidgetViewBanner(filePath, sceneValue);
95 }
96 const source = readFileSync(filePath, "utf8");
97 const result = applyRouterHeroPrefix(source, sceneValue);
98 if (result.changed) {
99 writeFileSync(filePath, result.nextSource, "utf8");
100 }
101 return result;
102}
103
104export async function runRecordSequence({
105 mode,

Callers 1

runRecordSequenceFunction · 0.85

Calls 2

rewriteWidgetViewBannerFunction · 0.90
applyRouterHeroPrefixFunction · 0.85

Tested by

no test coverage detected