MCPcopy Create free account
hub / github.com/bearlyai/OpenADE / write

Function write

projects/runtime-node/src/localPty.ts:115–120  ·  view source on GitHub ↗
(params: RuntimeNodePtyWriteParams)

Source from the content-addressed store, hash-verified

113 return { ok: true }
114 },
115 async write(params: RuntimeNodePtyWriteParams) {
116 const state = local.active.get(params.ptyId)
117 if (!state || !state.process.stdin || state.completed) return { ok: false }
118 state.process.stdin.write(params.data)
119 return { ok: true }
120 },
121 async resize(_params: RuntimeNodePtyResizeParams) {
122 return { ok: true }
123 },

Callers

nothing calls this directly

Calls 2

getMethod · 0.65
writeMethod · 0.65

Tested by

no test coverage detected