Skip to content

Commit ba6380c

Browse files
chore: sync actions from gh-aw@v0.81.6 (#175)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 8b1faef commit ba6380c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

setup/js/parse_token_usage.cjs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ const { parseTokenUsageJsonl, generateTokenUsageSummary } = require("./parse_mcp
1616

1717
const TOKEN_USAGE_AUDIT_PATH = "/tmp/gh-aw/sandbox/firewall-audit-logs/api-proxy-logs/token-usage.jsonl";
1818
const TOKEN_USAGE_PATH = "/tmp/gh-aw/sandbox/firewall/logs/api-proxy-logs/token-usage.jsonl";
19-
const TOKEN_USAGE_PATHS = [TOKEN_USAGE_AUDIT_PATH, TOKEN_USAGE_PATH];
19+
// AWF v0.27.7+ may write token-usage.jsonl under --audit-dir as well as --proxy-logs-dir.
20+
// Include this path so the agent job captures token data regardless of which dir AWF chose.
21+
const TOKEN_USAGE_AWF_AUDIT_PATH = "/tmp/gh-aw/sandbox/firewall/audit/api-proxy-logs/token-usage.jsonl";
22+
const TOKEN_USAGE_PATHS = [TOKEN_USAGE_AUDIT_PATH, TOKEN_USAGE_AWF_AUDIT_PATH, TOKEN_USAGE_PATH];
2023
const AGENT_USAGE_PATH = "/tmp/gh-aw/agent_usage.json";
2124
const DEFAULT_SUMMARY_TITLE = "Token Usage";
2225

@@ -223,6 +226,7 @@ if (typeof module !== "undefined" && module.exports) {
223226
renderTokenTableAsPlainText,
224227
TOKEN_USAGE_AUDIT_PATH,
225228
TOKEN_USAGE_PATH,
229+
TOKEN_USAGE_AWF_AUDIT_PATH,
226230
TOKEN_USAGE_PATHS,
227231
AGENT_USAGE_PATH,
228232
DEFAULT_SUMMARY_TITLE,

0 commit comments

Comments
 (0)