feat: 添加 Windows 原生支持 - #4
Open
ChenTingToDo wants to merge 1 commit into
Open
Conversation
ChenTingToDo
marked this pull request as ready for review
July 17, 2026 18:30
ChenTingToDo
force-pushed
the
feat/windows-support
branch
from
July 17, 2026 18:43
2822863 to
521eb31
Compare
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.
背景
Agent Memory Vault 目前的安装与自动化流程主要面向 Unix/macOS。在 Windows 上,直接使用时会遇到以下问题:使用
fcntl的模块无法导入、无扩展名的 shebang 脚本不能直接执行,并且缺少原生的 Stop Hook 与定时 Audit 适配。这个 PR 在保留现有 macOS/Linux 工作流和 Memory 数据格式的前提下,补充一套可维护的 Windows 原生支持。
主要改动
fcntl,Windows 使用msvcrt$HOME/USERPROFILE、UTF-8 Git 路径、SQLite 连接释放和 Python 子进程启动实际测试
python -m compileall -q scripts testspython -m unittest discover -s tests -v:Windows 本机 44 项全部通过python scripts/agent_memory_check.py --skip-state-db.ps1文件Windows PowerShell搜索命中NOOP,claimed-only Closeout 成功并生成 Git commit0LastTaskResult=0)和卸载兼容性
没有对 macOS/Linux 引入有意的破坏性改动。Zvec 仍为可选能力,本次本机端到端测试未安装 Zvec。
补充说明
Windows 专项审计和安装说明分别位于:
docs/windows-compatibility-audit.mddocs/windows.md