MCPcopy Index your code
hub / github.com/anomalyco/opencode / shellCommit

Function shellCommit

packages/opencode/src/cli/cmd/run/session-data.ts:673–688  ·  view source on GitHub ↗
(
  input: {
    callID: string
    command: string
  },
  next: Pick<SessionCommit, "text" | "phase" | "toolState">,
)

Source from the content-addressed store, hash-verified

671}
672
673function shellCommit(
674 input: {
675 callID: string
676 command: string
677 },
678 next: Pick<SessionCommit, "text" | "phase" | "toolState">,
679): SessionCommit {
680 return {
681 kind: "tool",
682 source: "tool",
683 partID: shellPartID(input.callID),
684 tool: "bash",
685 shell: input,
686 ...next,
687 }
688}
689
690function startShell(callID: string, command: string): SessionCommit {
691 return shellCommit(

Callers 2

startShellFunction · 0.85
doneShellFunction · 0.85

Calls 1

shellPartIDFunction · 0.85

Tested by

no test coverage detected