Skip to content

[translation-bench] Part 1/n: scaffold + generate price snapshots + catalogs - #2771

Merged
datduyng merged 20 commits into
mainfrom
domnguyen/translation-bench-part1
Jul 31, 2026
Merged

[translation-bench] Part 1/n: scaffold + generate price snapshots + catalogs#2771
datduyng merged 20 commits into
mainfrom
domnguyen/translation-bench-part1

Conversation

@datduyng

@datduyng datduyng commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Part 1 of the translation-bench series: package scaffold and pinned generators only (no runner/matrix yet).

datduyng added 8 commits July 30, 2026 19:11
Add @typeagent/benchmarks package layout with core/paths, minimal types,
catalog loader, and scripts to regenerate catalog.generated.json and
OpenAI-only model-prices.generated.json from models.dev.
Match package root by package name, remove BENCH_RESULTS_DIR override,
and exclude gpt-5.4-pro from the OpenAI model price snapshot.
Resolve package root via two fixed parent candidates and the package
name check instead of walking the filesystem or a self-require that
pnpm does not link.
Use getPackageFilePath like cache/defaultAgentProvider, emit under
dist/ via rootDir src, move asset copy/clean into scripts/, and drop
unused gpt-5.6 / gpt-5.4-pro price entries.
Also remove tsconfig.tsbuildinfo; otherwise incremental build skips emit.
@datduyng datduyng changed the title Part 1/n: scaffold + generate price snapshots + catalogs [translation-bench] Part 1/n: scaffold + generate price snapshots + catalogs Jul 31, 2026
datduyng and others added 6 commits July 30, 2026 19:48
Local install had rewritten lockfile resolutions with ms-feed tarball
URLs and sha1 digests, which fail supply-chain verification on CI.
Restore main lockfile style and only add the benchmarks importer.
Repo root MIT license covers the package; no per-package copy needed.
Drop prefix/include/exclude matching; pin the exact model ids we price.
Comment thread ts/packages/benchmarks/src/core/paths.ts
@datduyng
datduyng requested a review from robgruen July 31, 2026 06:20
@datduyng
datduyng enabled auto-merge July 31, 2026 17:14
Copilot stopped work on behalf of datduyng due to an error July 31, 2026 19:36
@datduyng
datduyng added this pull request to the merge queue Jul 31, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jul 31, 2026
@datduyng
datduyng added this pull request to the merge queue Jul 31, 2026
Merged via the queue into main with commit e56a136 Jul 31, 2026
27 checks passed
const packageRoot = path.join("..", "..");

/** Resolve a path relative to the package root (works from compiled dist/). */
export function getPackageFilePath(packageRootRelativePath: string): string {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have this function in several places. We should consolidate them into the common or utils packages at some point.

Comment thread ts/packages/benchmarks/src/core/model-prices.generated.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants