module NoirAIContext

Extended Modules

Defined in:

ai_context/augmentor.cr

Instance Method Summary

Instance Method Detail

def apply(endpoints : Array(Endpoint)) : Array(Endpoint) #

[View source]
def apply_feature_filter(endpoints : Array(Endpoint), features : Set(String)) #

Clears AIContext buckets the user didn't request. Mirrors the plain-text builder's feature filter so JSON/YAML/SARIF/Postman/ OAS — which serialize the struct directly — show the same subset the user asked for via --ai-context=guards,sinks. features follows the canonical bucket names: "guards", "callee", "sinks", "validators", "signals". An empty set or one containing every name is a no-op.


[View source]
def parse_feature_set(raw : String) : Set(String) #

Parses the comma-separated --ai-context=… value into the set of bucket names that should survive the filter. Empty value or "all" means every bucket (the no-op set).


[View source]