MCPcopy Index your code
hub / github.com/coder/mux / writeMeta

Method writeMeta

src/node/services/backgroundProcessExecutor.ts:279–289  ·  view source on GitHub ↗

* Write meta.json to the output directory.

(metaJson: string)

Source from the content-addressed store, hash-verified

277 * Write meta.json to the output directory.
278 */
279 async writeMeta(metaJson: string): Promise<void> {
280 try {
281 const metaPath = this.quotePath(`${this.outputDir}/meta.json`);
282 await execBuffered(this.runtime, `cat > ${metaPath} << 'METAEOF'\n${metaJson}\nMETAEOF`, {
283 cwd: FALLBACK_CWD,
284 timeout: 10,
285 });
286 } catch (error) {
287 log.debug(`RuntimeBackgroundHandle.writeMeta: Error: ${errorMsg(error)}`);
288 }
289 }
290
291 async getOutputFileSize(): Promise<number> {
292 try {

Callers

nothing calls this directly

Calls 3

execBufferedFunction · 0.90
errorMsgFunction · 0.85
debugMethod · 0.80

Tested by

no test coverage detected