Feat/add claude adapter#457
Conversation
Signed-off-by: Ziyang Guo <121015044+RerankerGuo@users.noreply.github.com>
Signed-off-by: Ziyang Guo <121015044+RerankerGuo@users.noreply.github.com>
Signed-off-by: Ziyang Guo <121015044+RerankerGuo@users.noreply.github.com>
Signed-off-by: Ke Wang <1002245584@qq.com>
f0279ad to
ac75751
Compare
|
Duplicate/scope cleanup triage for #235: Thanks for marking this as a preview rather than requesting merge. As it stands, this PR still carries the #316 shared Gateway client files plus Claude Code-specific plugin/hook files, while the PR body says it depends on #316 and should be rebased after #316 lands. Recommendation: keep this out of active merge review until #316 and #372 are resolved. After that, rebase onto main and remove any duplicated #316 Gateway client / adapter-kit changes so the diff contains only the Claude Code-specific integration layer: lifecycle hook mapping, prompt/transcript fallback, plugin metadata, docs, and focused Claude Code tests. Search tools should continue to rely on the approved MCP bridge from #372 rather than adding another search path here. This is a scope/dependency note rather than a rejection of the Claude Code adapter work. |
|
感谢说明和范围建议。 当前分支是基于 #316 的feat/cross-platform-adapter-235 分支开发的。经直接比较确认当前差异仅包含 Claude Code 平台专属内容,包括生命周期 Hook 映射、prompt cache、transcript fallback、插件元数据、文档和 Claude Code 专用测试;不包含 src/adapters/gateway-client 或 adapter-kit 的重复改动。 我会按建议将该 PR 保持为 Draft,暂不进入正式合并评审流程。待 #316 和 #372 的处理结果明确后,我会将分支 rebase 到最新 main,仅保留 Claude Code 平台专属集成层。 |
Description | 描述
本 PR 依赖 #316,当前仅用于提前展示 Claude Code 适配方案和代码,暂不请求合并。
待 #316 合并到
main后,我会重新变基当前分支、更新 PR 差异并补充 CI 验证,再申请正式 Review。基于 #316 提供的统一 Gateway Adapter,为 Claude Code 增加 TencentDB Agent Memory 适配能力。
主要内容:
UserPromptSubmitHook,自动调用/recall召回记忆。StopHook,自动调用/capture保存本轮对话。SessionStart阶段调用health()检查 Gateway 状态。SessionEnd阶段调用endSession()刷新会话记忆。hooks/memory.ts分发四类 Claude Code 生命周期事件。searchMemories()
和searchConversations()` 应基于 #372 提供的统一 MCP Server 实现,本 PR 不重复实现 MCP Server。Related Issue | 关联 Issue
Related to #235
Dependency | 依赖关系
本 PR 依赖 #316 提供的统一 Gateway Adapter,当前基于 feat/cross-platform-adapter-235 开发
Change Type | 修改类型
Self-test Checklist | 自测清单
Verification | 验证
$ npm test
Test Files 5 passed
Tests 70 passed
$ npm run build
结果:构建成功
$ npx vitest run --config claudecode-plugin/vitest.config.ts
Test Files 2 passed
Tests 11 passed
$ git diff --check
Passed