diff --git a/CHANGELOG.md b/CHANGELOG.md index 447f0c2..6fbf6e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ ## Unreleased +## v0.26.1 + +- Use public absolute URLs for the packaged overview's coverage and design links. +- Check English package README links for PyPI-compatible public destinations. + Analysis and CI contracts are unchanged. + ## v0.26.0 - Complete optional Cursor coverage CI setup with `init --coverage-under`, job diff --git a/CITATION.cff b/CITATION.cff index eaa58aa..14c7e8a 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -2,7 +2,7 @@ cff-version: 1.2.0 message: "If you use AgentConfigScore in research, please cite this software." title: "AgentConfigScore: deterministic lint and regression checks for AI coding-agent instructions" type: software -version: 0.26.0 +version: 0.26.1 date-released: 2026-11-11 authors: - family-names: Lin diff --git a/README.md b/README.md index 994b356..6777fb7 100644 --- a/README.md +++ b/README.md @@ -81,10 +81,10 @@ covers setup, exits and troubleshooting. ## Release status -v0.26.0 Beta includes local lint, baseline-governed regression checks, auditable +v0.26.1 Beta includes local lint, baseline-governed regression checks, auditable exceptions, reports, safeguard review and opt-in Cursor attachment/coverage analysis. The Cursor profile is a bounded static prediction with explicit -unknowns. See the [release and upgrade notes](https://github.com/LE0-Lin/AgentConfigScore/blob/main/docs/releases/v0.26.0.md). +unknowns. See the [release and upgrade notes](https://github.com/LE0-Lin/AgentConfigScore/blob/main/docs/releases/v0.26.1.md). ## Cursor attachment changes @@ -102,7 +102,7 @@ For a declared API-only task: From a repository checkout, install the package and run the synthetic example: ```bash -python -m pip install --upgrade "agent-config-score==0.26.0" +python -m pip install --upgrade "agent-config-score==0.26.1" agent-config-score scope compare \ examples/cursor-scope-impact/base examples/cursor-scope-impact/narrowed \ --target src/api/service.py --fail-on-lost-directives --fail-on-unknown @@ -138,8 +138,8 @@ agent-config-score init --coverage-under src Review and commit the generated files. The opt-in read-only workflow combines the normal gate with strict per-file coverage, a readable job summary and seven-day report artifacts. Existing setups can use `--workflow-only` and an -explicit reviewed `--force`. See the [complete adoption path](docs/cursor-coverage.md#ci-setup-and-review-artifacts) -and [design and shipped boundary](docs/architecture.md). +explicit reviewed `--force`. See the [complete adoption path](https://github.com/LE0-Lin/AgentConfigScore/blob/main/docs/cursor-coverage.md#ci-setup-and-review-artifacts) +and [design and shipped boundary](https://github.com/LE0-Lin/AgentConfigScore/blob/main/docs/architecture.md). ## Repository policy + editor validation @@ -225,7 +225,7 @@ for the localized overview, guide and limitations; advanced references remain En ## Development ```bash -python -m pip install --upgrade "agent-config-score==0.26.0" +python -m pip install -e . python -m unittest discover -s tests -v agent-config-score . --fail-under 90 ``` diff --git a/README.simplified.md b/README.simplified.md index 3bc6abd..35b3edd 100644 --- a/README.simplified.md +++ b/README.simplified.md @@ -50,7 +50,7 @@ agent-config-score diff ## 发布版本 -v0.26.0 Beta 包含本地检查、基线回归门禁、可审计豁免、报告、删除保护审核,以及可选的 Cursor 加载与逐文件覆盖分析。Cursor 功能是有明确未知状态的静态预测。[发布与升级说明(英文)](docs/releases/v0.26.0.md)。 +v0.26.1 Beta 包含本地检查、基线回归门禁、可审计豁免、报告、删除保护审核,以及可选的 Cursor 加载与逐文件覆盖分析。Cursor 功能是有明确未知状态的静态预测。[发布与升级说明(英文)](docs/releases/v0.26.1.md)。 ## Cursor 加载变化审核 @@ -61,7 +61,7 @@ v0.26.0 Beta 包含本地检查、基线回归门禁、可审计豁免、报告 在源码仓库目录中运行合成示例: ```bash -python -m pip install --upgrade "agent-config-score==0.26.0" +python -m pip install --upgrade "agent-config-score==0.26.1" agent-config-score scope compare \ examples/cursor-scope-impact/base examples/cursor-scope-impact/narrowed \ --target src/api/service.py --fail-on-lost-directives --fail-on-unknown @@ -140,10 +140,10 @@ jobs: - uses: actions/checkout@v7 with: fetch-depth: 0 - - uses: LE0-Lin/AgentConfigScore@v0.26.0 + - uses: LE0-Lin/AgentConfigScore@v0.26.1 ``` -固定 `@v0.26.0` 有利于复现;`@v0` 是会随后续版本更新的滚动引用。PR 评论属于[可选集成(英文)](docs/pr-comments.md),扫描器默认不替你发评论。 +固定 `@v0.26.1` 有利于复现;`@v0` 是会随后续版本更新的滚动引用。PR 评论属于[可选集成(英文)](docs/pr-comments.md),扫描器默认不替你发评论。 ## 支持的指令文件 @@ -167,4 +167,4 @@ jobs: 图中的三次评分由 `agent-config-score history` 读取。[历史工作流(英文)](docs/score-history.md) -项目采用 [MIT 协议](LICENSE)。[发布与升级说明](docs/releases/v0.26.0.md)目前为英文。 +项目采用 [MIT 协议](LICENSE)。[发布与升级说明](docs/releases/v0.26.1.md)目前为英文。 diff --git a/README.traditional.md b/README.traditional.md index 0ff9133..6243983 100644 --- a/README.traditional.md +++ b/README.traditional.md @@ -50,7 +50,7 @@ agent-config-score diff ## 發布版本 -v0.26.0 Beta 包含本機檢查、基準回歸檢查、可稽核例外、報告、刪除保護審閱,以及選用的 Cursor 載入與逐檔覆蓋分析。Cursor 功能是具有明確未知狀態的靜態預測。[發布與升級說明(英文)](docs/releases/v0.26.0.md)。 +v0.26.1 Beta 包含本機檢查、基準回歸檢查、可稽核例外、報告、刪除保護審閱,以及選用的 Cursor 載入與逐檔覆蓋分析。Cursor 功能是具有明確未知狀態的靜態預測。[發布與升級說明(英文)](docs/releases/v0.26.1.md)。 ## Cursor 載入變化審閱 @@ -61,7 +61,7 @@ v0.26.0 Beta 包含本機檢查、基準回歸檢查、可稽核例外、報告 在原始碼儲存庫目錄中執行合成範例: ```bash -python -m pip install --upgrade "agent-config-score==0.26.0" +python -m pip install --upgrade "agent-config-score==0.26.1" agent-config-score scope compare \ examples/cursor-scope-impact/base examples/cursor-scope-impact/narrowed \ --target src/api/service.py --fail-on-lost-directives --fail-on-unknown @@ -140,10 +140,10 @@ jobs: - uses: actions/checkout@v7 with: fetch-depth: 0 - - uses: LE0-Lin/AgentConfigScore@v0.26.0 + - uses: LE0-Lin/AgentConfigScore@v0.26.1 ``` -固定使用 `@v0.26.0` 較容易重現;`@v0` 是會隨後續版本更新的滾動參照。PR 留言是[選用整合(英文)](docs/pr-comments.md),檢查工具預設不會替你留言。 +固定使用 `@v0.26.1` 較容易重現;`@v0` 是會隨後續版本更新的滾動參照。PR 留言是[選用整合(英文)](docs/pr-comments.md),檢查工具預設不會替你留言。 ## 支援的指令檔 @@ -167,4 +167,4 @@ jobs: 圖中的三次評分由 `agent-config-score history` 讀取。[歷史工作流程(英文)](docs/score-history.md) -專案採用 [MIT 授權](LICENSE)。[發布與升級說明](docs/releases/v0.26.0.md)目前為英文。 +專案採用 [MIT 授權](LICENSE)。[發布與升級說明](docs/releases/v0.26.1.md)目前為英文。 diff --git a/docs/releases/v0.26.1.md b/docs/releases/v0.26.1.md new file mode 100644 index 0000000..6752dcd --- /dev/null +++ b/docs/releases/v0.26.1.md @@ -0,0 +1,14 @@ +# AgentConfigScore v0.26.1 + +This **Beta** patch makes the packaged overview's coverage and design links +work on PyPI by using public absolute destinations. A regression check prevents +relative document links from entering the English package README. + +```bash +python -m pip install --upgrade agent-config-score==0.26.1 +agent-config-score --version +``` + +Expected version is `AgentConfigScore 0.26.1`. Analysis, policy, coverage and +CI behavior follow [v0.26.0](https://github.com/LE0-Lin/AgentConfigScore/blob/v0.26.1/docs/releases/v0.26.0.md). +Native Cursor fidelity remains outside the verified static contract. diff --git a/pyproject.toml b/pyproject.toml index af8dea4..11a1da4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "agent-config-score" -version = "0.26.0" +version = "0.26.1" description = "Deterministic lint and regression gate for AGENTS.md, Claude, Cursor, Copilot, and Gemini instructions." readme = "README.md" requires-python = ">=3.10" diff --git a/src/agent_config_score/__init__.py b/src/agent_config_score/__init__.py index 7c4a959..025f4c5 100644 --- a/src/agent_config_score/__init__.py +++ b/src/agent_config_score/__init__.py @@ -1 +1 @@ -__version__ = "0.26.0" +__version__ = "0.26.1" diff --git a/tests/test_documentation_languages.py b/tests/test_documentation_languages.py index 658c7bc..822217d 100644 --- a/tests/test_documentation_languages.py +++ b/tests/test_documentation_languages.py @@ -17,6 +17,14 @@ def blocks(text, language): class DocumentationLanguageTests(unittest.TestCase): + def test_package_readme_document_links_are_public_on_pypi(self): + readme = (ROOT / "README.md").read_text(encoding="utf-8") + for destination in re.findall(r"!?\[[^\]\n]+\]\(([^)\n]+)\)", readme): + parts = urlsplit(destination) + with self.subTest(destination=destination): + self.assertTrue(parts.scheme in {"https", "http"} or (not parts.path and parts.fragment), + "PyPI cannot resolve repository-relative document links") + def test_english_stays_the_default_package_readme(self): project = (ROOT / "pyproject.toml").read_text(encoding="utf-8") self.assertIn('readme = "README.md"', project)