(writablePath string)
| 380 | } |
| 381 | |
| 382 | func normalizeSandboxWritablePattern(writablePath string) (string, bool) { |
| 383 | path := strings.TrimSpace(writablePath) |
| 384 | if path == "" || !strings.HasPrefix(path, "/") { |
| 385 | return "", false |
| 386 | } |
| 387 | if strings.ContainsAny(path, "*?[]{}") { |
| 388 | return path, true |
| 389 | } |
| 390 | return strings.TrimRight(path, "/") + "/*", true |
| 391 | } |
| 392 | |
| 393 | func appendSafeOutputsTools(allowedTools []string, safeOutputs *SafeOutputsConfig) []string { |
| 394 | if safeOutputs == nil { |
no outgoing calls