MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / toolDTOWith

Function toolDTOWith

internal/desktop/tool_service.go:137–142  ·  view source on GitHub ↗

toolDTOWith assembles a ToolDTO from an already-known detection result so the cached and freshly-probed paths produce identical output.

(tool tools.Tool, installed bool, version string)

Source from the content-addressed store, hash-verified

135// toolDTOWith assembles a ToolDTO from an already-known detection result so
136// the cached and freshly-probed paths produce identical output.
137func toolDTOWith(tool tools.Tool, installed bool, version string) ToolDTO {
138 return ToolDTO{
139 Name: tool.Name, Command: tool.LaunchCommand(), Description: tool.Description,
140 Enabled: tool.IsEnabled(), Installed: installed, Version: version,
141 }
142}

Callers 2

ListMethod · 0.85
toolDTOFunction · 0.85

Calls 2

LaunchCommandMethod · 0.80
IsEnabledMethod · 0.45

Tested by

no test coverage detected