MCPcopy Create free account
hub / github.com/arctic-cli/interface / write

Function write

packages/arctic/src/pty/index.ts:198–203  ·  view source on GitHub ↗
(id: string, data: string)

Source from the content-addressed store, hash-verified

196 }
197
198 export function write(id: string, data: string) {
199 const session = state().get(id)
200 if (session && session.info.status === "running") {
201 session.process.write(data)
202 }
203 }
204
205 export function connect(id: string, ws: WSContext) {
206 const session = state().get(id)

Callers

nothing calls this directly

Calls 2

stateFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected