chatd consumes agent-normalized POSIX paths. Workspace agents are expected to convert separators to forward slashes before these helpers run. isAbsolutePath reports whether p is an absolute POSIX path.
(p string)
| 79 | |
| 80 | // isAbsolutePath reports whether p is an absolute POSIX path. |
| 81 | func isAbsolutePath(p string) bool { |
| 82 | return path.IsAbs(p) |
| 83 | } |
| 84 | |
| 85 | // looksLikePlanFileName reports whether the base name of requestedPath |
| 86 | // is "plan.md" (case-insensitive), ignoring the directory component. |
no outgoing calls