isSteeringEvent matches AWF proxy steering events using both event name and message format from the firewall specification.
(eventName, message string)
| 870 | // isSteeringEvent matches AWF proxy steering events using both event name and |
| 871 | // message format from the firewall specification. |
| 872 | func isSteeringEvent(eventName, message string) bool { |
| 873 | switch eventName { |
| 874 | case tokenSteeringEventName: |
| 875 | return strings.HasPrefix(message, awfTokenWarningPrefix) |
| 876 | case timeoutSteeringEventName: |
| 877 | return strings.HasPrefix(message, awfTimeWarningPrefix) |
| 878 | default: |
| 879 | return false |
| 880 | } |
| 881 | } |
| 882 | |
| 883 | func augmentSubagentModelAttribution(runDir string, summary *TokenUsageSummary) { |
| 884 | if summary == nil { |
no outgoing calls
no test coverage detected