MCPcopy Create free account
hub / github.com/JordanCoin/codemap / hookPostEdit

Function hookPostEdit

cmd/hooks.go:660–667  ·  view source on GitHub ↗

hookPostEdit shows impact after editing (reads JSON from stdin)

(root string)

Source from the content-addressed store, hash-verified

658
659// hookPostEdit shows impact after editing (reads JSON from stdin)
660func hookPostEdit(root string) error {
661 filePath, err := extractFilePathFromStdin()
662 if err != nil || filePath == "" {
663 return nil
664 }
665
666 return checkFileImporters(root, filePath)
667}
668
669// hookPromptSubmit analyzes user prompt with code intelligence and shows context
670func hookPromptSubmit(root string) error {

Callers 1

RunHookFunction · 0.85

Calls 2

extractFilePathFromStdinFunction · 0.85
checkFileImportersFunction · 0.85

Tested by

no test coverage detected