feat: integrate Git-backed Skill repository#6
Open
dydpop wants to merge 2 commits into
Open
Conversation
Collaborator
Author
|
补充一个本地预览小修,已推送到本 PR。 这次只处理两个已确认问题,没有扩大范围:
验证结果:
说明:当前 |
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.
Summary
repo-dev为 base,干净承接现有 repo/search/graph 能力;没有从 runtime 分支夹带 C 任务历史。memoryfallback,同时默认新增gitrepository backend,并通过SkillWikiManager作为唯一正式适配层。贡献主体
SkillWikiManager形成平行仓库路线。借鉴来源
https://github.com/Huangdingcheng/skillos/tree/feat/lbs-repo_version/skillos/skillos/storage/skill_repo
skills/{skill_name}/{version}.json、versions.json、metadata/skills_index.json、events.jsonl、Git diff/history/status、版本创建、软/硬删除、状态流转、merge/sync/CLI 等方向。Key Changes
skillos.storage.skill_repo.GitSkillStore:本地 Git-backed SkillStorage,支持 init/create/update/new-version/delete/transition/diff/history/events/status/rebuild-index/merge/sync。layers/skill_repository/repository.py:SkillWikiManager统一适配 Git-backed 后端,保留上层调用所需的get/list/create/update/delete/create_new_version/transition_state/record_execution/get_overview_stats等接口。/api/v1/repository/status、/api/v1/repository/events、/api/v1/repository/rebuild-index。/api/v1/lifecycle/{skill_id}/diff优先走 Git/file diff,同时兼容旧的VersionController格式。create_app新增repository_backend、skill_storage_dir、seed_demo参数,默认走git,保留memoryfallback。/skills使用公开wiki.update/delete,SkillProvenance使用created_by_agent,MemoryWikiManager.update支持 dict 转模型,SkillLibrarianAgent使用公开 wiki/graph 方法。ExecutionStepResult.step_index/result/outputs兼容字段,避免影响 C/E 前端和执行接口。Verification
python -m compileall -q skillospython -m pytest tests\test_skill_repo_git_backend.py -q --no-cov:8 passedpython -m pytest tests -q --no-cov:149 passedgit diff --checkNotes
skillos/skillos/storage/skill_repo/SkillStorage/,已加入.gitignore,避免运行时仓库内容污染代码仓库。