MCPcopy Create free account
hub / github.com/CoderLuii/HolyClaude / patchIndex

Function patchIndex

scripts/patch-cloudcli-web-terminal-rendering.mjs:131–140  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

129}
130
131function patchIndex(path) {
132 let source = readSource(path);
133
134 source = replaceRequired(source, INDEX_PREFS_OLD, INDEX_PREFS_NEW);
135 source = replaceRequired(source, INDEX_FONT_OLD, INDEX_FONT_NEW);
136 source = replaceRequired(source, INDEX_WEBGL_OLD, INDEX_WEBGL_NEW);
137
138 assertIndexPatched(source);
139 writeSource(path, source);
140}
141
142const serverPath = `${PLUGIN_ROOT}/src/server.ts`;
143const indexPath = `${PLUGIN_ROOT}/src/index.ts`;

Calls 4

replaceRequiredFunction · 0.85
assertIndexPatchedFunction · 0.85
readSourceFunction · 0.70
writeSourceFunction · 0.70

Tested by

no test coverage detected