MCPcopy Create free account
hub / github.com/dwgx/WindsurfAPI / buildWriteToFileBody

Function buildWriteToFileBody

src/cascade-native-bridge.js:739–747  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

737}
738
739function buildWriteToFileBody(args) {
740 const parts = [];
741 if (args.target_file_uri) parts.push(writeStringField(1, args.target_file_uri));
742 if (Array.isArray(args.code_content)) {
743 for (const line of args.code_content) parts.push(writeStringField(2, String(line)));
744 }
745 if (args.file_created) parts.push(writeBoolField(4, true));
746 return Buffer.concat(parts);
747}
748
749// v2.0.70 — propose_code (CortexStepProposeCode = field 32 oneof).
750// Body schema:

Callers

nothing calls this directly

Calls 3

writeStringFieldFunction · 0.90
writeBoolFieldFunction · 0.90
pushMethod · 0.80

Tested by

no test coverage detected