MCPcopy Create free account
hub / github.com/coder/coder / looksLikePlanFileName

Function looksLikePlanFileName

coderd/x/chatd/chattool/planpath.go:87–90  ·  view source on GitHub ↗

looksLikePlanFileName reports whether the base name of requestedPath is "plan.md" (case-insensitive), ignoring the directory component.

(requestedPath string)

Source from the content-addressed store, hash-verified

85// looksLikePlanFileName reports whether the base name of requestedPath
86// is "plan.md" (case-insensitive), ignoring the directory component.
87func 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

Callers 5

executeEditFilesToolFunction · 0.85
LooksLikeHomePlanFileFunction · 0.85
executeWriteFileToolFunction · 0.85
executeProposePlanToolFunction · 0.85

Calls

no outgoing calls

Tested by 1