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

Function DEFAULT_SEMANTIC

src/tools/PowerShellTool/commandSemantics.ts:32–36  ·  view source on GitHub ↗
(exitCode, _stdout, _stderr)

Source from the content-addressed store, hash-verified

30 * Default semantic: treat only 0 as success, everything else as error
31 */
32const DEFAULT_SEMANTIC: CommandSemantic = (exitCode, _stdout, _stderr) => ({
33 isError: exitCode !== 0,
34 message:
35 exitCode !== 0 ? `Command failed with exit code ${exitCode}` : undefined,
36})
37
38/**
39 * grep / ripgrep: 0 = matches found, 1 = no matches, 2+ = error

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected