(raw map[string]any)
| 763 | |
| 764 | func (t *BashTool) SandboxStatus() (available bool, platform string, backend string) { |
| 765 | if t == nil || t.sandboxManager == nil { |
| 766 | return false, runtime.GOOS, "" |
| 767 | } |
| 768 | return t.sandboxManager.IsSandboxingEnabled(), t.sandboxManager.Platform(), t.sandboxManager.BackendName() |
| 769 | } |
| 770 | |
| 771 | func (t *BashTool) DecodeInput(raw map[string]any) (any, error) { |
| 772 | normalized := copyAnyMap(raw) |
| 773 | if value, ok := normalized["timeout"]; ok { |
| 774 | if text, isString := value.(string); isString { |
| 775 | seconds, errMsg := parseBashTimeoutString(text, true) |
| 776 | if errMsg != "" { |
| 777 | return nil, fmt.Errorf("%s", errMsg) |
| 778 | } |
| 779 | millis := int(seconds * 1000) |
| 780 | normalized["timeout"] = millis |
| 781 | } |
nothing calls this directly
no test coverage detected