Loading...
Loading...
Compare original and translation side by side
Purpose: Sync system files from the upstream Nexus repository while protecting user dataTrigger: "update nexus", "sync nexus", "get updates", "check for updates"Duration: 1-2 minutes
用途:从上游Nexus仓库同步系统文件,同时保护用户数据触发指令:"update nexus"、"sync nexus"、"get updates"、"check for updates"耗时:1-2分钟
00-system/CLAUDE.mdREADME.md01-memory/02-projects/03-skills/04-workspace/.env.claude/00-system/CLAUDE.mdREADME.md01-memory/02-projects/03-skills/04-workspace/.env.claude/python 00-system/core/nexus-loader.py --check-updatechecked: falseupdate_available: falseupdate_available: truepython 00-system/core/nexus-loader.py --check-updatechecked: falseupdate_available: falseupdate_available: trueUPDATE AVAILABLE
Current version: {local_version}
New version: {upstream_version}
Files to update ({changes_count}):
{list changed_files, max 20}
PROTECTED (will NOT be touched):
- 01-memory/ (your goals & config)
- 02-projects/ (your projects)
- 03-skills/ (your custom skills)
- 04-workspace/ (your files)发现可用更新
当前版本:{local_version}
新版本: {upstream_version}
待更新文件(共{changes_count}个):
{列出变更文件,最多显示20个}
受保护内容(不会被改动):
- 01-memory/ (您的目标与配置)
- 02-projects/ (您的项目)
- 03-skills/ (您的自定义技能)
- 04-workspace/ (您的文件)python 00-system/core/nexus-loader.py --sync --forcesuccess: falsesuccess: truepython 00-system/core/nexus-loader.py --sync --forcesuccess: falsesuccess: trueUPDATE COMPLETE!
{local_version} → {upstream_version}
Updated paths:
{list files_updated}
Backup saved to: {backup_path}
To commit this update:
git add . && git commit -m "Update Nexus to v{upstream_version}"更新完成!
版本从 {local_version} 升级至 {upstream_version}
已更新路径:
{列出已更新文件}
备份已保存至:{backup_path}
如需提交本次更新,请执行:
git add . && git commit -m "Update Nexus to v{upstream_version}"| Error | User Message |
|---|---|
| "Not a git repository" | "This folder isn't a git repo. Initialize with: git init" |
| "Could not reach upstream" | "Can't connect to GitHub. Check your internet connection." |
| "Uncommitted changes detected" | "You have uncommitted changes. Commit them first:\n git add . && git commit -m 'Save changes'" |
| "Could not read upstream version" | "The upstream repo might not be set up correctly. Check the URL in user-config.yaml" |
| 错误信息 | 向用户展示的提示 |
|---|---|
| "Not a git repository" | "当前文件夹不是Git仓库,请先执行初始化:git init" |
| "Could not reach upstream" | "无法连接到GitHub,请检查您的网络连接。" |
| "Uncommitted changes detected" | "您存在未提交的变更,请先提交:\n git add . && git commit -m '保存变更'" |
| "Could not read upstream version" | "上游仓库可能配置不正确,请检查user-config.yaml中的URL。" |
python 00-system/core/nexus-loader.py --sync --dry-runpython 00-system/core/nexus-loader.py --sync --dry-run.sync-backup/{timestamp}/.sync-backup/{timestamp}/