(args)
| 737 | } |
| 738 | |
| 739 | function 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: |
nothing calls this directly
no test coverage detected