Run the eval lab on Node 26

Ouverte
#25 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
57/100
Type d'issue
Bug
Clarté
Clairement spécifiée
Activité
Active
Stack technique
node.js, typescript

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.
Langage dominant
TypeScript
Étoiles
11
Forks
0
Merge moyen
10 min
PR mergées (30 j)
6

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de DojoCodingLabs/hermit

Toutes les issues de DojoCodingLabs/hermit

Issues similaires

Plus d'issues TypeScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.