Run the eval lab on Node 26

Đang mở
#25 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
57/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
node.js, typescript
Lĩnh vực
build-system, devtools

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
TypeScript
Star
11
Fork
0
Merge trung bình
10 phút
Pull request đã merge (30 ngày)
6

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của DojoCodingLabs/hermit

Tất cả issue của DojoCodingLabs/hermit

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.