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

Function writeStatuslineState

cmd/hooks.go:750–757  ·  view source on GitHub ↗

writeStatuslineState writes a tiny file for the statusline to read.

(root string, intent TaskIntent)

Source from the content-addressed store, hash-verified

748
749// writeStatuslineState writes a tiny file for the statusline to read.
750func writeStatuslineState(root string, intent TaskIntent) {
751 codemapDir := filepath.Join(root, ".codemap")
752 status := intent.Category
753 if intent.RiskLevel != "low" {
754 status += " " + intent.RiskLevel
755 }
756 os.WriteFile(filepath.Join(codemapDir, "status"), []byte(status), 0644)
757}
758
759// emitIntentMarker outputs a structured JSON comment for machine consumption.
760func emitIntentMarker(intent TaskIntent) {

Callers 1

hookPromptSubmitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected