Run the eval lab on Node 26

Aperta
#25 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
57/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
node.js, typescript

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.
Lingua principale
TypeScript
Stelle
11
Fork
0
Merge medio
10m
PR unite (30g)
6

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di DojoCodingLabs/hermit

Tutte le issue di DojoCodingLabs/hermit

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.