@@ -101,9 +101,9 @@ pinned).
101101 - filtered to drop noisy files — lockfiles, `*.min.js`/`*.min.css`, `*.map`,
102102 ` vendor/` , `third_party/`, `node_modules/`, `__snapshots__/`;
103103 - truncated to `MAX_DIFF_LINES` (120) lines with a truncation marker, and any
104- single line longer than `MAX_DIFF_LINE_CHARS` (500) is clamped (so a bundled
105- or minified dist line can't blow the token budget). Commits whose diff is
106- empty after filtering are omitted.
104+ single line longer than `MAX_DIFF_LINE_CHARS` (500) is clamped (so a
105+ bundled or minified dist line can't blow the token budget). Commits whose
106+ diff is empty after filtering are omitted.
107107
1081084. **Pass 2 — write** (`callLLM`) : send the full commit list plus the attached
109109 diffs to the write model, which returns the article `Summary`. The system
@@ -159,15 +159,15 @@ are quoted and `"`-escaped.
159159
160160# # Tuning constants (`digest/main.ts`)
161161
162- | Constant | Value | Effect |
163- | ------------------------- | ----- | ------------------------------------------------- |
164- | `MAX_COMMITS` | 300 | Max commits read per repo/day. |
165- | `MAX_FILES_PER_COMMIT` | 25 | Max file stats captured per commit. |
166- | `TRIAGE_BYPASS_THRESHOLD` | 10 | At/below this commit count, skip the triage call. |
167- | `MAX_DIFF_COMMITS` | 8 | Max commits that get a diff attached per day. |
168- | `MAX_DIFF_LINES` | 120 | Per-commit diff line cap. |
169- | `MAX_DIFF_LINE_CHARS` | 500 | Per-line char cap (clamps bundled/minified lines).|
170- | `DIFF_EXCLUDE` | — | Path patterns whose diffs are dropped. |
162+ | Constant | Value | Effect |
163+ | ------------------------- | ----- | -------------------------------------------------- |
164+ | `MAX_COMMITS` | 300 | Max commits read per repo/day. |
165+ | `MAX_FILES_PER_COMMIT` | 25 | Max file stats captured per commit. |
166+ | `TRIAGE_BYPASS_THRESHOLD` | 10 | At/below this commit count, skip the triage call. |
167+ | `MAX_DIFF_COMMITS` | 8 | Max commits that get a diff attached per day. |
168+ | `MAX_DIFF_LINES` | 120 | Per-commit diff line cap. |
169+ | `MAX_DIFF_LINE_CHARS` | 500 | Per-line char cap (clamps bundled/minified lines). |
170+ | `DIFF_EXCLUDE` | — | Path patterns whose diffs are dropped. |
171171
172172Diffs dominate token cost, so they are bounded by both count and per-commit
173173size; the triage call itself is comparatively cheap.
0 commit comments