vitest plugin: check turn.complete, session.start and session.end $ answers against claude plugin test
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
- 54/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ệ
- typescript
- Lĩnh vực
- developer-experience, testing
Hướng nghiên cứu
Start by reading call() in packages/vitest-plugin-claude-code-mod/src/testing/engine.ts and the existing conformance tests or pnpm test:e2e setup. For each of turn.complete, session.start, and session.end, compare the same stub under the Vitest plugin and claude plugin test, skipping when claude is unavailable. Done when all three tests confirm matching answers and a changeset is added for any behavior change.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
#147 fixed tool.call and #211 fixes prompt.submit: the vitest plugin answered a mod's own $.<event> call with { value } / { deny } where claude plugin test takes the event's own result shape. The same check has not been done for the other events with an own result shape that a mod can call on $: turn.complete, session.start, session.end. No test runs the same stub under both runners, so the two can drift again.
Proposal
For each of turn.complete, session.start, session.end: write a minimal mod that calls $.<event>(...), run it under claude plugin test with a stub answering the event's own result shape and with { value }, and record which one passes and what the mod receives. Where the vitest plugin differs, change call() in packages/vitest-plugin-claude-code-mod/src/testing/engine.ts to follow the engine (recommendation: follow the engine strictly, with a BREAKING minor changeset, as #211 did). Add one conformance test per event that uses the same stub under both runners.
Design points
Where a conformance test lives: recommendation is a test in the vitest plugin package that spawns claude plugin test and skips when claude is not on PATH, like pnpm test:e2e.
Package
@kwitsch/vitest-plugin-claude-code-mod
Scope
Only the three events listed; related: #33 (shape validator).
Acceptance
- For each of
turn.complete,session.start,session.end, a mod's own$.<event>call takes the same stub answer under the vitest plugin and underclaude plugin test. - A test per event exists and passes under both runners.
- A changeset is added for any behavior change.
Relations
- Originating PR: #211
- Ngôn ngữ chính
- TypeScript
- Star
- 0
- Fork
- 0
- Merge trung bình
- 29 phút
- Pull request đã merge (30 ngày)
- 138
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của kwitsch/claude-code-plugin-tooling
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
kwitsch/claude-code-plugin-tooling#219 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 69/100
kwitsch/claude-code-plugin-tooling#210 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
kwitsch/claude-code-plugin-tooling#209 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
kwitsch/claude-code-plugin-tooling#208 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 52/100
kwitsch/claude-code-plugin-tooling#207 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của kwitsch/claude-code-plugin-tooling
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
makecindy/cindy#15342 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
no-repo-link tool-submission
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 74/100
BraveOPotato/NoSignups#2618 ·
-
enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
-
bug needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Priyanshu-byte-coder/devtrack#4067 ·
Maintainer thường phản hồi trong vòng 1 ngày