MCPcopy
hub / github.com/claude-code-best/claude-code / constructor

Method constructor

src/utils/ShellCommand.ts:413–426  ·  view source on GitHub ↗
(opts?: {
    backgroundTaskId?: string
    stderr?: string
    code?: number
  })

Source from the content-addressed store, hash-verified

411 readonly taskOutput: TaskOutput
412
413 constructor(opts?: {
414 backgroundTaskId?: string
415 stderr?: string
416 code?: number
417 }) {
418 this.taskOutput = new TaskOutput(generateTaskId('local_bash'), null)
419 this.result = Promise.resolve({
420 code: opts?.code ?? 145,
421 stdout: '',
422 stderr: opts?.stderr ?? 'Command aborted before execution',
423 interrupted: true,
424 backgroundTaskId: opts?.backgroundTaskId,
425 })
426 }
427
428 background(): boolean {
429 return false

Callers

nothing calls this directly

Calls 2

generateTaskIdFunction · 0.85
resolveMethod · 0.45

Tested by

no test coverage detected