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

Function duplicateRunningToolUpdate

packages/opencode/src/acp/tool.ts:170–184  ·  view source on GitHub ↗
(input: {
  readonly toolCallId: string
  readonly toolName: string
  readonly state: RunningToolState
  readonly cwd?: string
})

Source from the content-addressed store, hash-verified

168}
169
170export function duplicateRunningToolUpdate(input: {
171 readonly toolCallId: string
172 readonly toolName: string
173 readonly state: RunningToolState
174 readonly cwd?: string
175}): ToolCallUpdate {
176 return {
177 toolCallId: input.toolCallId,
178 status: "in_progress",
179 kind: toToolKind(input.toolName),
180 title: toolTitle(input.toolName, input.state.input, input.state.title),
181 locations: toLocations(input.toolName, input.state.input, input.cwd),
182 rawInput: rawInput(input.toolName, input.state.input, input.cwd),
183 }
184}
185
186export function completedToolUpdate(input: {
187 readonly toolCallId: string

Callers 1

runningToolMethod · 0.90

Calls 4

toToolKindFunction · 0.85
toolTitleFunction · 0.85
toLocationsFunction · 0.85
rawInputFunction · 0.85

Tested by

no test coverage detected