MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / RenderGroupedBashToolUse

Function RenderGroupedBashToolUse

tools/basic_ui.go:143–158  ·  view source on GitHub ↗
(inputs []BashInput)

Source from the content-addressed store, hash-verified

141}
142
143func RenderGroupedBashToolUse(inputs []BashInput) string {
144 if len(inputs) == 0 {
145 return ""
146 }
147 if len(inputs) == 1 {
148 return RenderBashToolUse(inputs[0])
149 }
150 commands := make([]string, 0, min(len(inputs), 3))
151 for i, input := range inputs {
152 if i >= 3 {
153 break
154 }
155 commands = append(commands, truncateString(input.Command, 60))
156 }
157 return "Bash (" + strconv.Itoa(len(inputs)) + " commands): " + strings.Join(commands, "; ")
158}
159
160func BackfillBashInput(input BashInput) BashInput {
161 description := input.Description

Callers

nothing calls this directly

Calls 2

RenderBashToolUseFunction · 0.85
truncateStringFunction · 0.70

Tested by

no test coverage detected