graphIndexEnabled reports whether the per-turn map-of-content card is injected. Default on; any falsey value disables it. The @graph pull tool is unaffected.
()
| 34 | // graphIndexEnabled reports whether the per-turn map-of-content card is injected. |
| 35 | // Default on; any falsey value disables it. The @graph pull tool is unaffected. |
| 36 | func graphIndexEnabled() bool { |
| 37 | switch strings.ToLower(strings.TrimSpace(os.Getenv(config.GraphIndexEnv))) { |
| 38 | case "off", "false", "0", "no", "disabled": |
| 39 | return false |
| 40 | } |
| 41 | return true |
| 42 | } |
| 43 | |
| 44 | // graphIndexBlock renders the prompt block: the deterministic MOC card plus the |
| 45 | // pull hint. Returns "" when disabled or the graph is empty, so quiet setups pay |
no outgoing calls
no test coverage detected