Refactor sync logic and enhance API management across platforms - #18
Merged
Conversation
- Updated paths in various scripts to reflect the new directory structure, ensuring compatibility and clarity. - Modified `.gitignore` to include `__init__.py` files for better package management. - Enhanced documentation in `README.md` and `model_routing.md` to reflect changes in script locations and usage. - Removed deprecated `sync_config.py` and related files, streamlining the sync process.
…pt paths - Added support for backup configuration through `env/backup.json`, allowing users to specify a custom backup directory. - Updated script paths in various locations to reflect the new directory structure, ensuring consistency across the project. - Removed deprecated scripts from the `sync` directory, streamlining the codebase. - Enhanced documentation in `README.md` and related files to reflect changes in backup functionality and script usage.
- Deleted the `model_routing.md` file, which contained design specifications for a unified provider layer for multi-platform model routing. This change reflects a shift in project direction and the need to streamline documentation.
- Introduced new default model configurations for Claude, including `ANTHROPIC_DEFAULT_OPUS_MODEL`, `ANTHROPIC_DEFAULT_SONNET_MODEL`, and `ANTHROPIC_DEFAULT_HAIKU_MODEL`, enhancing the platform's capabilities.
- Introduced `api.enabled` toggle for CodeBuddy, allowing users to control API model field synchronization. - Updated documentation to clarify API sync ownership rules and added references to the [Platform Sync Contract]. - Adjusted CodeBuddy's sync behavior to preserve user-added model definitions when API sync is disabled. - Enhanced tests to validate the new API sync functionality and its impact on available models.
- Added support for Qwen Code platform, including model definitions and available models synchronization. - Introduced `api.enabled` toggle to control synchronization of API fields and model configurations. - Updated documentation to reflect new Qwen platform integration and its configuration requirements. - Enhanced sync logic to preserve user-added models and manage environment variables based on API sync status. - Added tests to validate the new synchronization features and their behavior when toggling API sync.
Qwen Code 对自定义 OpenAI 兼容提供商拒绝 DASHSCOPE_API_KEY(会导致 401), 改为根据 baseUrl 派生 QWEN_CUSTOM_API_KEY_* 并在同步时移除遗留的 DASHSCOPE_API_KEY,同时更新文档与测试以匹配此行为。
…orms - Added `api.enabled` configuration to control synchronization of models and secrets for Continue and Cline platforms. - Updated documentation to clarify the behavior of the `api.enabled` toggle and its impact on managed fields. - Enhanced sync logic to ensure proper cleanup of managed keys when API sync is disabled. - Introduced tests to validate the new synchronization features and their behavior under different API sync states.
- Introduced `api.enabled` configuration for Codex platform to control synchronization of API fields and environment variables. - Updated documentation to clarify the behavior of the `api.enabled` toggle and its implications for managed fields. - Enhanced sync logic to ensure proper deletion of API-related keys when API sync is disabled, adhering to the cleanup policy. - Added tests to validate the functionality of the new API sync features and their behavior under various states of the `api.enabled` toggle.
- Updated `api.enabled` setting to false, disabling API synchronization by default. - Adjusted comments in the configuration file to reflect the change in API sync behavior.
- Updated the OUT-OF-SCOPE documentation to specify that certain scenarios are not processed by the skill and do not trigger automatic review. - Enhanced the auto-code-review documentation with detailed triggering logic, outlining explicit user actions required to initiate a review.
- Updated the test configuration to explicitly set `api.enabled` to True, preventing tests from inheriting the value from the codex.json file. - Added comments to clarify the purpose of this change and guide future test configurations regarding the `api.enabled` toggle.
- sync/platforms/codebuddy.py: preamble.mode=full 时不再双写独立 historical-recall 块,改由 sync-agent-preamble.sh 渲染内嵌 recall 的完整 preamble;recall 仍写独立块,none 跳过 - tests/test_registry.py: codebuddy 由 recall 列表移入 full 列表 - tests/test_codebuddy_sync.py: 默认配置对齐真实 mode=full,新增 full/none 三态断言,保留 recall 路径覆盖 - docs: 同步 platform-sync-contract.md 与 sync/README.md 的 CodeBuddy 描述 - skills-engineering/ios-engineer/SKILL.md: 扩写 description,覆盖多 Apple 平台 (iPadOS/macOS/watchOS/tvOS)、Objective-C(++)/Combine/async-await/ WidgetKit/App Extensions 与中文诊断术语;附带 evolution proposal + approval (20260723-152751-expand-description-platforms)
将 managed-block 标记从 `ios-engineer` 重命名为更具通用性的 `agent-preamble`,并兼容迁移旧标记;同时重构模板以消除历史召回段落的重复。
- D1: CAM 激活时抑制 preamble 轻量校准段,Tier0/Tier2 互斥扩展到 preamble 层 - D2: GR-002 前置确认被 PG-000 盘问吸收、GR-006 中断与 GR-002 同 anchor 合并 - D3: 新增多 SKILL 叠加总纲与分级读取/预算上限,补行为测试防回归 - D4: GR-004 与 CAM 详规对齐——不重复语义但保留 CAM 机械格式(ios-engineer 提案 20260723-173058-cam-fields-preserve-format) - D5: 跨块置信度归一到本轮唯一保留的字段 - 同步 engineering-discipline/plan-grill/ios-engineer/cognitive-expansion 的 en-US 镜像
- 新增 tests/test_en_us_mirror_sync.py:锁定 engineering-discipline/plan-grill/ios-engineer/cognitive-expansion 的 zh 源与 en-US 镜像双向协同条款锚点,防 en-US 再次静默滞后\n- CHANGELOG 3.0.0 段补 Changed(D1-D5 多 skill 协调) 与 Fixed(en-US 分发闭环) 记录
- 新增 skills-engineering/scripts/validate-global-skills.sh:只读验收入口,串起结构/行为/preamble dry-run/同步验证/integrity --check-only/全局协调回归测试\n- tests/test_codebuddy_sync.py 补 GlobalSkillValidationScriptTests 校验该入口只读且覆盖闭环步骤\n- README 说明本地一键跑完整验收闭环
- 移除 20260608-add-engineering-quality-gates 的 proposal/approval/validation 三份记录(超出设计保留的最近 10 份窗口)
- 变更记录补 3.0.3:多技能叠加协调、en-US 镜像闭环、回归护栏、演进记录 10 份保留策略\n- 校验与观测新增「全局协调与 i18n 回归测试」小节,说明 test_en_us_mirror_sync.py 与 validate-global-skills.sh\n- 开发建议补 en-US 同步纪律:改 zh 源须同步镜像否则回归测试红
- 顶层沉淀 D1-D5 多技能叠加协调契约(GR-002↔PG-000 吸收、GR-006 同 anchor 合并、GR-004↔CAM 格式保留、跨块置信度归一、分级读取预算)\n- i18n 治理:zh 源 + en-US 镜像纪律与覆盖校验
- 该文档对应的同步架构优化已收尾,留痕于 CHANGELOG 与 skill references,故移除临时优化文档
- 协调契约引导句补全 CAM 括号称谓并交叉引用 .agents/composition.md(块发射顺序与冲突裁决)\n- i18n 治理统一「分发镜像」术语,与全文 en-US 镜像表述一致
…on local-only
- 目录重命名 env/optional-mcps/ -> env/optional_mcps/,与 optional_mcps.sh 及 env 下其它子目录(无连字符)命名一致
- 修正 optional_mcps README 用法示例 playwright -> puppeteer(puppeteer 为默认 env/mcp/playwright.json 的可选替代)
- enabled.json 不再提交:加入 .gitignore 并从索引移除(磁盘保留,脚本缺失时自动重建为 {})
- 同步更新脚本、schema 校验、env/README、sync/README、CHANGELOG 的引用
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.
No description provided.