looksLikePlanFileName reports whether the base name of requestedPath is "plan.md" (case-insensitive), ignoring the directory component.
(requestedPath string)
| 85 | // looksLikePlanFileName reports whether the base name of requestedPath |
| 86 | // is "plan.md" (case-insensitive), ignoring the directory component. |
| 87 | func looksLikePlanFileName(requestedPath string) bool { |
| 88 | cleaned := path.Clean(requestedPath) |
| 89 | return strings.EqualFold(path.Base(cleaned), "plan.md") |
| 90 | } |
| 91 | |
| 92 | // LooksLikeHomePlanFile reports whether requestedPath is a plan.md |
| 93 | // variant (case-insensitive) sitting directly in the workspace home |
no outgoing calls