Commit cee109f
committed
feat: expose input_tokens, output_tokens, cached_input_tokens as step outputs
Adds three new step outputs to codex-action: input-tokens, output-tokens,
and cached-input-tokens. After codex exec completes, a new
extract-token-outputs step reads the rollout JSONL written by the Codex CLI
to $CODEX_HOME/sessions/, finds the last token_count event (cumulative
totals), and surfaces the values as step outputs. Outputs are empty strings
when token data is unavailable — non-breaking, existing workflows unaffected.
Closes #65
Made-with: Cursor1 parent 48c4212 commit cee109f
4 files changed
Lines changed: 647 additions & 359 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
104 | 113 | | |
105 | 114 | | |
106 | 115 | | |
| |||
349 | 358 | | |
350 | 359 | | |
351 | 360 | | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
0 commit comments