Skip to content

fix: unify platform detection, resolve dar path, dedup sync output (v1.1) - #6

Merged
weed33834 merged 2 commits into
mainfrom
fix/architecture-cleanup-v1.1
Aug 10, 2026
Merged

fix: unify platform detection, resolve dar path, dedup sync output (v1.1)#6
weed33834 merged 2 commits into
mainfrom
fix/architecture-cleanup-v1.1

Conversation

@weed33834

Copy link
Copy Markdown
Owner

关联 Issue

Closes #5

变更摘要

Fixed

  • dar 能力包路径错误:新增 _resolve_capability_path() 路径解析器,full 模式正确加载 capabilities/research/dar/README.md
  • 平台检测逻辑重复:新增 PLATFORM_DETECT_MARKERS 统一注册表,forge.py 从中派生(9→13 平台覆盖一致)
  • sync --tool all 重复写入 AGENTS.md:sync/apply/main 三个入口添加 seen_outputs 去重
  • forge.py docstring:"13 个平台" → 15
  • detect_tool_from_cwd docstring:移除虚假的"再看 IDE 进程"描述

Removed

  • 从 git 移除生成产物 AGENTS.md.codex/rules.md(已在 .gitignore)
  • 删除空文件 adapters/hooks/agents-md/README.md

Changed

  • 版本号 1.0.0 → 1.1.0(pyproject.toml / init.py / CITATION.cff / CHANGELOG.md)

验证

  • 171 tests passed, 1 skipped(无回归)
  • dar capability 在 full 模式正确加载(DAR README 内容出现)
  • PLATFORM_DETECT_MARKERSforge.PLATFORM_DETECTION 覆盖一致(13 platforms)
  • sync --tool all 跳过 qwenwork(与 agents-md 写同一文件)

…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.
@weed33834
weed33834 merged commit 07e697c into main Aug 10, 2026
4 checks passed
@weed33834
weed33834 deleted the fix/architecture-cleanup-v1.1 branch August 10, 2026 00:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[v1.1] 架构清理:统一平台检测、修复 dar 路径、去重 sync 输出

1 participant