MCPcopy Create free account
hub / github.com/anomalyco/opencode / commit

Function commit

packages/opencode/test/cli/run/entry.body.test.ts:6–8  ·  view source on GitHub ↗
(input: Partial<StreamCommit> & Pick<StreamCommit, "kind" | "text" | "phase" | "source">)

Source from the content-addressed store, hash-verified

4import type { StreamCommit, ToolSnapshot } from "@/cli/cmd/run/types"
5
6function commit(input: Partial<StreamCommit> & Pick<StreamCommit, "kind" | "text" | "phase" | "source">): StreamCommit {
7 return input
8}
9
10function toolPart(tool: string, state: ToolPart["state"], id = `${tool}-1`, messageID = `msg-${tool}`): ToolPart {
11 return {

Callers 4

toolCommitFunction · 0.70
entry.body.test.tsFile · 0.70
RunFooterSubagentBodyFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected