feat(providers): refresh vendored ChatGPT Web connector to v4.0.7 (#12181)

Refresh the existing MIT-licensed miuuyy/codex-chatgpt-web vendor snapshot and its OmniRoute integration as one reviewable change.

Co-authored-by: backryun <backryun@daonlab.local>
This commit is contained in:
backryun
2026-09-01 12:50:15 +09:00
committed by GitHub
parent debb82bdd7
commit 8d388912a7
82 changed files with 13694 additions and 2215 deletions

View File

@@ -50,18 +50,19 @@ export function resolveMergeBase(baseRef) {
* Files added/copied/modified/renamed between `mergeBase` and HEAD, filtered to the gate's
* scope. Deleted files are irrelevant (nothing to measure on HEAD).
*/
export function listChangedFiles(mergeBase, { dirs, exts }) {
export function listChangedFiles(mergeBase, { dirs, exts, excludePrefixes = [] }) {
const out = git(["diff", "--name-only", "--diff-filter=ACMR", `${mergeBase}...HEAD`]);
return filterScope(out.split("\n"), { dirs, exts });
return filterScope(out.split("\n"), { dirs, exts, excludePrefixes });
}
/** Pure: keep paths under one of `dirs` with one of `exts`. */
export function filterScope(paths, { dirs, exts }) {
export function filterScope(paths, { dirs, exts, excludePrefixes = [] }) {
return paths
.map((p) => p.trim())
.filter(Boolean)
.filter((p) => dirs.some((d) => p === d || p.startsWith(`${d}/`)))
.filter((p) => exts.some((e) => p.endsWith(e)))
.filter((p) => !excludePrefixes.some((prefix) => p.startsWith(prefix)))
.sort();
}