MCPcopy Create free account
hub / github.com/freecodexyz/free-code / onProgress

Function onProgress

src/tools/PowerShellTool/PowerShellTool.tsx:733–738  ·  view source on GitHub ↗
(lastLines, allLines, totalLines, totalBytes, isIncomplete)

Source from the content-addressed store, hash-verified

731 shellCommand = await exec(command, abortController.signal, 'powershell', {
732 timeout: timeoutMs,
733 onProgress(lastLines, allLines, totalLines, totalBytes, isIncomplete) {
734 lastProgressOutput = lastLines;
735 fullOutput = allLines;
736 lastTotalLines = totalLines;
737 lastTotalBytes = isIncomplete ? totalBytes : 0;
738 },
739 preventCwdChanges,
740 // Sandbox works on Linux/macOS/WSL2 — pwsh there is a native binary and
741 // SandboxManager.wrapWithSandbox wraps it same as bash (Shell.ts uses

Callers 1

callFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected