vitest plugin: decide whether the kit models Client drawings

未关闭
#162 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
typescript

调研方向

Start with packages/vitest-plugin-claude-code-mod/src/testing/ui-tree.ts and src/testing/acts.ts, then review the README deviation list and the linked originating PR #161. First determine whether the official types define a Client factory and probe Client drawings with claude plugin test for each act. Done means recording the maintainer’s decision; if Clients are modeled, add matching conformance rows for Vitest and claude plugin test, otherwise close as not planned with the reason.

由索引模型根据 Issue 内容生成。

描述

enhancement help wanted
Problem

The vitest plugin kit cannot draw a Client: $.ui.resolve has no Client constructor (packages/vitest-plugin-claude-code-mod/src/testing/ui-tree.ts), so every kit drawing is a drawing without a Client. PR #161 (issue #119) added the ten missing members to the mounted UI handle (keepsBeneath, redraw and the acts key, pointer, post, advance, setBeneath, resize, setWindowFocused, setMotionReduced) and copies what Claude Code does for a drawing that holds no Client (the acts validate their arguments and then key, pointer, post, setBeneath and resize throw <act>: the drawing holds no Client; the other three resolve undefined). For a drawing that does hold a Client the real engine would run the act against the Client's surface module; the kit cannot, and its README deviation list says so in one sentence.

Proposal

Decide whether the kit should model Clients at all. Recommendation: not now; keep the deviation documented until a mod author reports a test they cannot write. If the answer is yes, the work is: (1) probe the real engine (claude plugin test, versions 2.1.334 and 2.1.335 behave identically so far) for how a Client drawing reacts to each act, (2) add a Client factory to $.ui.resolve only if the official types define one, (3) implement the acts for it in src/testing/acts.ts, (4) add conformance rows that pass under Vitest and claude plugin test. Do not invent API the types and docs do not define.

Design points

No response

Scope

vitest-plugin-claude-code-mod: kit (src/testing/acts.ts, ui-tree.ts), self-tests, conformance tests, README deviation list. Changeset: minor if Clients are added.

Acceptance
  • The maintainer's decision (model Clients or keep the deviation) is recorded in this issue.
  • If Clients are modelled: a conformance row per act on a Client drawing passes under Vitest and under claude plugin test, and the README deviation sentence about Client drawings is removed.
  • If not: this issue is closed as not planned with the reason.
Relations
  • Originating PR: #161
主要语言
TypeScript
星标
0
派生
0
平均合并
29 分钟
30 天内合并 PR
138

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

kwitsch/claude-code-plugin-tooling 的其他 Issue

查看 kwitsch/claude-code-plugin-tooling 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。