MCPcopy Create free account
hub / github.com/HELPMEEADICE/doge-code / type

Function type

src/utils/computerUse/executor.ts:626–638  ·  view source on GitHub ↗
(text: string, opts: { viaClipboard: boolean })

Source from the content-addressed store, hash-verified

624 },
625
626 async type(text: string, opts: { viaClipboard: boolean }): Promise<void> {
627 // Windows/Linux: route through platform which handles HWND binding
628 if (!isDarwin && platform) {
629 await platform.input.typeText(text)
630 return
631 }
632 const input = getInput()
633 if (opts.viaClipboard) {
634 await drainRunLoop(() => typeViaClipboard(input, text))
635 return
636 }
637 await input.typeText(text)
638 },
639
640 readClipboard: readClipboardViaPbpaste,
641

Callers

nothing calls this directly

Calls 4

getInputFunction · 0.85
drainRunLoopFunction · 0.85
typeViaClipboardFunction · 0.85
typeTextMethod · 0.65

Tested by

no test coverage detected