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

Function DEFAULT_SEMANTIC

src/tools/BashTool/commandSemantics.ts:22–26  ·  view source on GitHub ↗
(exitCode, _stdout, _stderr)

Source from the content-addressed store, hash-verified

20 * Default semantic: treat only 0 as success, everything else as error
21 */
22const DEFAULT_SEMANTIC: CommandSemantic = (exitCode, _stdout, _stderr) => ({
23 isError: exitCode !== 0,
24 message:
25 exitCode !== 0 ? `Command failed with exit code ${exitCode}` : undefined,
26})
27
28/**
29 * Command-specific semantics

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected