MCPcopy
hub / github.com/lightningpixel/modly / emitTqdmLog

Method emitTqdmLog

electron/main/python-bridge.ts:135–145  ·  view source on GitHub ↗
(raw: string)

Source from the content-addressed store, hash-verified

133 }
134
135 private emitTqdmLog(raw: string): void {
136 if (/INFO/.test(raw)) return
137 if (!raw.trim()) return
138 const getWindow = this.getWindow
139 if (!getWindow) return
140 const win = getWindow()
141 const contents = win?.webContents
142 if (contents && !contents.isDestroyed()) {
143 contents.send('python:log', raw.trim())
144 }
145 }
146
147 isReady(): boolean { return this.ready }
148 getPort(): number { return API_PORT }

Callers 1

_startMethod · 0.95

Calls 1

sendMethod · 0.80

Tested by

no test coverage detected