emitIntentMarker outputs a structured JSON comment for machine consumption.
(intent TaskIntent)
| 758 | |
| 759 | // emitIntentMarker outputs a structured JSON comment for machine consumption. |
| 760 | func 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 |