(frontmatter map[string]any)
| 57 | } |
| 58 | |
| 59 | func hasToolsGitHubMode(frontmatter map[string]any) bool { |
| 60 | toolsAny, hasTools := frontmatter["tools"] |
| 61 | if !hasTools { |
| 62 | return false |
| 63 | } |
| 64 | toolsMap, ok := toolsAny.(map[string]any) |
| 65 | if !ok { |
| 66 | return false |
| 67 | } |
| 68 | githubAny, hasGitHub := toolsMap["github"] |
| 69 | if !hasGitHub { |
| 70 | return false |
| 71 | } |
| 72 | githubMap, ok := githubAny.(map[string]any) |
| 73 | if !ok { |
| 74 | return false |
| 75 | } |
| 76 | _, hasMode := githubMap["mode"] |
| 77 | return hasMode |
| 78 | } |
| 79 | |
| 80 | func addGitHubModeGhProxyToTools(lines []string) []string { |
| 81 | toolsLine := -1 |
no outgoing calls
no test coverage detected