module NoirAIContext
Extended Modules
Defined in:
ai_context/augmentor.crInstance Method Summary
- #apply(endpoints : Array(Endpoint)) : Array(Endpoint)
-
#apply_feature_filter(endpoints : Array(Endpoint), features : Set(String))
Clears AIContext buckets the user didn't request.
-
#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.
Instance Method Detail
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.
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).