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: zhangzherui <jerry_@whut.edu.cn>
Collaborator
|
Thank you for submitting this PR and participating in Tencent Rhino-bird Open-source Training Program! |
* Update README.md * Update README_CN.md
March-77
marked this pull request as ready for review
July 14, 2026 16:16
7 tasks
…tCloud#151) * feat(hermes): support Windows native setup Closes TencentCloud#113 Signed-off-by: misaka <09982.misaka@gmail.com> * test(postinstall): cover cross-platform behavior * Delete __tests__/postinstall.test.ts * Delete hermes-plugin/memory/memory_tencentdb/tests/test_memory_tencentdb_recovery.py --------- Signed-off-by: misaka <09982.misaka@gmail.com> Co-authored-by: 十五便士 <95488710+Maxwell-Code07@users.noreply.github.com>
Add unit tests for memory-tencentdb provider self-healing functionality, including watchdog behavior and request path recovery.
* Update README.md * Update README_CN.md
* docs: add Star History chart to README * docs: replace Star History chart with GitHub badges * docs: use real Star History chart image in README
…solves TencentCloud#160) (TencentCloud#529) * fix(store): sanitize FTS5 query tokens to prevent MATCH injection#160 问题 buildFtsQuery() 把用户输入拼成 FTS5 MATCH 表达式,含 FTS5 操作符(`" ' * ( ) AND OR NOT NEAR : ^`)的输入会篡改查询语义或触发语法错误(注入)。 方案 - `sanitizeFtsToken()`:双引号包字面 phrase,内部 `"` 转义为 `""`(修正旧实现"删除双引号"导致的 recall 损伤) - `sanitizeFtsWhitelist()`:字符级白名单(defence-in-depth) - `buildFtsQuery` 复用 `sanitizeFtsToken` - 与项目已有的 `MATCH ?` 参数化(SQL 防注入)组成三层防御 测试 新增 38 个:单元(21)+ 真实 FTS5 召回对比(4)+ 白名单(13)。本地全量 **105 passed**,零回归。 验收对照 issue 四档全覆盖:基础 / 进阶 / 深入(真实 FTS5 recall 实证)/ 拓展(白名单 + 参数化三层防御)。 * Delete src/core/store/buildFtsQuery.recall.test.ts * Delete src/core/store/buildFtsQuery.test.ts * Delete src/core/store/buildFtsQuery.whitelist.test.ts --------- Co-authored-by: 十五便士 <95488710+Maxwell-Code07@users.noreply.github.com>
…ounters after cleanup (TencentCloud#337) * fix(data): add CheckpointManager.recalculate() to reconcile drifted counters after cleanup After cleanup operations (memory-cleaner, manual JSONL pruning, or pipeline state deletion), checkpoint counters (l0_conversations_count, total_memories_extracted) can drift from actual data — they only increment, never decrease. Add recalculate() to CheckpointManager that accepts actual counts and overwrites drifted counters under the file lock. Call it once at startup in wirePipelineRunners() after vector store is initialized. Closes TencentCloud#157 Signed-off-by: xiyue1753 <xiyuekl@qq.com> * Delete src/utils/checkpoint.test.ts --------- Signed-off-by: xiyue1753 <xiyuekl@qq.com> Co-authored-by: 十五便士 <95488710+Maxwell-Code07@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description | 描述
Adds a focused LangChain v1 / LangGraph middleware adapter on top of the shared Gateway adapter kit from #316.
beforeAgentto Gateway/recallafterAgentto Gateway/captureBaseMessagevalues to JSON-safe{ role, content }messagescreateMiddlewareRelated Issue | 关联 Issue
Related to #235
Depends on #316
Change Type | 修改类型
Self-test Checklist | 自测清单
Verification:
npm.cmd exec vitest run src/adapters/langchain/langchain.test.ts src/adapters/gateway-client/gateway-client.test.ts: 8 passednpm.cmd test: 75 passednpm.cmd run build:plugin: passedgit diff --check: passedAdditional Notes | 其他说明
This is intentionally a small platform-specific follow-up. It reuses #316 instead of introducing another Gateway client or adapter SDK. The PR is opened as draft while #316 is pending; once #316 lands, this branch can be rebased so the review diff contains only the LangChain middleware commit.