feat: unify .agents full architecture and v3 beta migration#2
Closed
feat: unify .agents full architecture and v3 beta migration#2
Conversation
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.
背景
本 PR 实现统一 full 目录体系:项目只维护
.agents(Canonical),并自动生成.agent/.gemini兼容投影;同时完成 legacy 迁移与 beta 预发布配套。规划对齐矩阵(v3 Full)
.agents/manifest.json、托管.codexmanifest、.agent/.ag-kit-projection.json、.gemini/.ag-kit-projection.json、.gemini/agents/ag-kit-*.md。.agent/.gemini与仅存在空.agents不再判定为 installed。init/update/update-all/doctor --fix首轮触发,状态文件~/.ag-kit/migrations/v3.json(支持AG_KIT_MIGRATION_STATE_PATH)。ag-kit update正式支持--non-interactive。ag-kit status补充Auto-Migration(v3): done|pending。.agents/**;发布白名单移除.agent/**。context7+context7_backup,并约定主失败再备;示例配置移除values。README、docs/migration-v3-beta.md、docs/operations.md同步 CLI 真实行为。bun run test、bun run health-check全通过。核心改动
ag-kit init/update默认 full。--target gemini|codex保留兼容,但内部归一为 full。CodexAdapter升级为 full 主适配器:.agents原子更新 + manifest v3。.agent/.gemini投影同步。.codex;非托管.codex保留。context7+context7_backup。.gemini/settings.json采用合并策略,保留用户非托管字段。docs/migration-v3-beta.md。README.md、docs/operations.md、docs/multi-target-adapter.md、docs/mapping-spec.md。3.0.0-beta.0。验证
已执行并通过:
bun run test bun run health-check npm pack --dry-run发布状态
@mison/ag-kit-cn@3.0.0-beta.0v3.0.0-beta.0