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

Function emitIntentMarker

cmd/hooks.go:760–766  ·  view source on GitHub ↗

emitIntentMarker outputs a structured JSON comment for machine consumption.

(intent TaskIntent)

Source from the content-addressed store, hash-verified

758
759// emitIntentMarker outputs a structured JSON comment for machine consumption.
760func emitIntentMarker(intent TaskIntent) {
761 data, err := json.Marshal(intent)
762 if err != nil {
763 return
764 }
765 fmt.Printf("<!-- codemap:intent %s -->\n", string(data))
766}
767
768// showMatchedSkills loads the skill index, matches against intent, and emits
769// a compact marker. Skill bodies are pull-based (via `codemap skill show` or

Callers 1

hookPromptSubmitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected