Delete the dead pkg/vmcp/server/adapter package

未关闭 适合新手
#6,191 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@suantea 已经在做这个了。

开始于 2026年10月10日。

  • #6791 来自 @suantea —— 已关闭,未合并

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
84/100
Issue 类型
重构
描述清晰度
描述清楚
活跃度
冷清
技术栈
go
领域
backend

调研方向

从 pkg/vmcp/server/adapter/capability_adapter.go 和 handler_factory.go 开始,包括它们的测试。执行一次全仓库引用检查,并确认 cmd/ 和 operator 不会导入该包。完成的标准是删除该包及其测试、不再存在任何引用,并且仓库检查通过。

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

描述

needs-triage

Surfaced in jhrozek's review of #6180.

Problem

pkg/vmcp/server/adapter/ (capability_adapter.go, handler_factory.go) has no non-test callers — NewCapabilityAdapter/NewDefaultHandlerFactory are dead code. Its CreateResourceHandler (handler_factory.go:164) still drops result.Meta while its sibling CreateToolHandler preserves it — it's now the only surviving copy of the resource-_meta drop that #6180 removed from the live paths, which invites re-divergence if anyone ever wires it back in.

Work

Delete the package and its tests. Verify with a repo-wide reference check first (the review found no non-test callers; confirm nothing in cmd/ or the operator imports it).

主要语言
Go
星标
2.3k
派生
326
平均合并
1 天 53 分钟
30 天内合并 PR
155

环境准备

从这里开始

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

stacklok/toolhive 的其他 Issue

查看 stacklok/toolhive 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

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