mirror of
https://git.openapi.site/https://github.com/desirecore/market.git
synced 2026-07-23 04:23:46 +08:00
## 变更说明 / Description 配合客户端 PR [desirecore/desirecore#808](https://github.com/desirecore/desirecore/pull/808):`POST /api/runtime/environment/refresh` 端点现在除清检测缓存外,还会**重新抓取登录 shell / Windows 注册表环境并精确同步到 `process.env`**。本 PR 更新 `dev-environment-setup` skill 文档,让 AI 在「用户改了 `.zshrc` / `setx` 但工具看不到」时能主动调用该端点(无需用户重启 App)。 Companion to client PR desirecore#808: the `/environment/refresh` endpoint now also reloads login-shell / Windows-registry env and precise-syncs into `process.env`. This PR updates the `dev-environment-setup` skill docs so the AI proactively calls it when a user reports a freshly-changed env var that tools can't see. ## 改动 / Changes - `references/desirecore-runtime.md`:第三节端点表更新 + 第七节扩展(重新加载语义 + `envDiff` 返回结构 + 「何时主动调用」触发场景 + 局限) - `SKILL.md` / `SKILL.zh-CN.md`:L1 路由表新增「用户改了 `.zshrc` / 环境变量 / 代理 / `setx` 但工具看不到 → 刷新端点」+ 重要约束第 3 条扩展(中英双语同步) - `version` 2.0.3 → 2.0.4;并修正 #16 起遗留的 `source_hash` stale 值(`7e4baaf` → `748e754b`,已用 `scripts/i18n` 同款算法验证) ## 说明 / Notes - 该 skill 为 `translated_by: human`,中英两份已手动同步 - 文档描述的端点能力随客户端 PR desirecore#808 发布;旧客户端调用该端点仍只清检测缓存(不报错),文档短暂超前可接受