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

Function patchServer

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

Source from the content-addressed store, hash-verified

118}
119
120function patchServer(path) {
121 let source = readSource(path);
122
123 source = replaceRequired(source, SERVER_ONDATA_TYPE_OLD, SERVER_ONDATA_TYPE_NEW);
124 source = replaceRequired(source, SERVER_SPAWN_ENV_OLD, SERVER_SPAWN_ENV_NEW);
125 source = replaceRequired(source, SERVER_ONDATA_OLD, SERVER_ONDATA_NEW);
126
127 assertServerPatched(source);
128 writeSource(path, source);
129}
130
131function patchIndex(path) {
132 let source = readSource(path);

Calls 4

replaceRequiredFunction · 0.85
assertServerPatchedFunction · 0.85
readSourceFunction · 0.70
writeSourceFunction · 0.70

Tested by

no test coverage detected