Run the eval lab on Node 26

Offen
#25 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
57/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
node.js, typescript

Rechercherichtung

Start with the four named constructors in packages/model/src/reply-cut.ts, packages/core/src/memory.ts, packages/core/src/repair.ts, and packages/core/src/wallet-history.ts, then search for other parameter properties. Update the commands in packages/eval/package.json, docs/evals.md, README.md, CONTRIBUTING.md, and AGENTS.md. Follow docs/evals.md to compare core 40 scores before and after with the same model file and profile; done means the scores match and no --experimental-transform-types remains.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

help wanted model-path

Why

Node 26 removed --experimental-transform-types, and every eval lab command uses it (docs/evals.md and the scripts in packages/eval/package.json). So the lab needs Node 24 today, and README.md says so. Plain type stripping works on Node 24 and on Node 26, except for TypeScript parameter properties, which it refuses.

What to do

  1. Replace the parameter properties with plain fields set in the constructor, keeping each field's name, visibility and readonly:
    • packages/model/src/reply-cut.ts, the constructor at line 142;
    • packages/core/src/memory.ts, line 11;
    • packages/core/src/repair.ts, line 7;
    • packages/core/src/wallet-history.ts, line 204.
      Search for any others: constructors whose parameters start with private, public, protected or readonly.
  2. In packages/eval/package.json, docs/evals.md and README.md, run the scripts with node --no-warnings, without --experimental-transform-types.
  3. Run the core 40 before and after, as docs/evals.md says, with the same model file and profile. Behavior doesn't change, so the scores must match.
  4. Then drop "Node 26 can't run the eval lab yet" from README.md, CONTRIBUTING.md and AGENTS.md.

Done when

  • node --no-warnings src/mac-eval.ts botpsy-q4-native-think256 runs from packages/eval on Node 24 and on Node 26.
  • The core 40 scores the same before and after. The pull request gives the model's SHA-256 and the profile id.
  • No --experimental-transform-types is left in the repository.

How to check

pnpm typecheck && pnpm test
cd packages/eval && node --no-warnings src/mac-eval.ts botpsy-q4-native-think256

Keep in mind

  • packages/model is on the model path, so the pull request shows numbers from before and after, even though nothing should change (AGENTS.md).
  • Corepack is a separate matter: Node 25 and later don't ship it. Leave the engines range in the root package.json alone unless the docs also say how to install Corepack.
Vorherrschende Sprache
TypeScript
Sterne
11
Forks
0
Ø Merge
10 Min.
Gemergte PRs (30 T.)
6

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus DojoCodingLabs/hermit

Alle Issues in DojoCodingLabs/hermit

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.