fix: unify platform detection, resolve dar path, dedup sync output (v1.1) - #6
Merged
Conversation
…c output - Add PLATFORM_DETECT_MARKERS as single source of truth for platform detection; forge.py derives its PLATFORM_DETECTION from it instead of maintaining a separate, divergent copy (9 platforms → 13) - Add _resolve_capability_path() to handle non-standard capability layouts; dar (under capabilities/research/dar/) now loads README.md in full mode instead of emitting '> [missing capability] dar' - Add seen_outputs dedup in sync/apply/main: agents-md and qwenwork both write AGENTS.md; skip qwenwork with a message instead of writing the same file twice - Remove committed generated artifacts (AGENTS.md, .codex/rules.md) from git tracking — both are already in .gitignore - Remove empty adapters/hooks/agents-md/README.md - Fix forge.py docstring: '13 个平台入口文件' → 15 - Fix detect_tool_from_cwd docstring: remove false 'IDE 进程' claim - Bump version 1.0.0 → 1.1.0 (pyproject.toml, __init__.py, CITATION.cff)
Two test functions call pytest.skip() when AGENTS.md is absent (which is the correct behavior after removing generated artifacts from git), but the file did not import pytest. This caused NameError in CI.
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.
关联 Issue
Closes #5
变更摘要
Fixed
_resolve_capability_path()路径解析器,full 模式正确加载capabilities/research/dar/README.mdPLATFORM_DETECT_MARKERS统一注册表,forge.py从中派生(9→13 平台覆盖一致)seen_outputs去重Removed
AGENTS.md和.codex/rules.md(已在 .gitignore)adapters/hooks/agents-md/README.mdChanged
验证
PLATFORM_DETECT_MARKERS和forge.PLATFORM_DETECTION覆盖一致(13 platforms)