Repository navigation
feat: v2.0 TypeScript 全量移植(ts/,对齐上游 Node 22 + TS 技术栈) - #14
Merged
Merged
Conversation
- ts/ 全量移植:IR 契约 / 三对 adapter / 状态层(node:sqlite)/ 网关 / SSE 流式(转换+透传+501)/ 埋点 / 预热 / mock / 冒烟,功能对齐 Python 版 v1.7 - 测试镜像:56 项离线单测(node:test)+ 25 项端到端冒烟全过,用例与 Python 版逐条对应;strict + erasableSyntaxOnly 类型检查全过 - 运行零第三方依赖(Node 22 类型擦除);开发依赖仅 typescript(含 package-lock) - 差异清单见 ts/README.md(恒直连 / node:sqlite / PRNG 更换);webui、verify_cache、experiments 未移植(后续 PR) - CI 加 unittest-ts job(typecheck + 单测 + 冒烟);README/CHANGELOG/.gitignore 同步
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.
目的
上游 TencentDB-Agent-Memory 是 Node 22 + TypeScript 技术栈——Python 实现无法直接合入。本 PR 在
ts/目录做功能等价的全量移植,为后续向上游 MemoryProxy 提 PR 铺路;Python 版保留为参考实现,docs/ 契约与实验文档对两个实现同样适用。范围(功能对齐 Python v1.7)
测试(与 Python 版用例一一镜像)
unittest-tsjob(npm ci → typecheck → 单测 → 冒烟)差异清单(有意为之,详见 ts/README.md)
验证
Node v22.22.2:
npm test56/56、npm run smoke25/25、npm run typecheck0 error