Repository navigation
[1403] 内置多文件扩展迁移至各 domain 并纳入发现目录 - #34
Merged
Merged
Conversation
- code-review/simplify/web-search 入口改为 <domain>/gfcode/<name>/index.scm, 库名 (gfcode <name> index);tps 单文件保留在 .gf/gfcode/ - discovery:内置层扫描 *load-path* 上所有 domain 的 gfcode/ 目录(去重); PI_BUILTIN_EXTENSIONS_DIR 显式指定时仅用该目录,保证测试隔离 - loader:%extension-entry 对 index.scm 推导 (gfcode <dir> index) 库名与 root - 单元测试随 domain 迁移至 <domain>/tests/gfcode/<name>/index/, plugins CI 增加各 domain 的 gfcode 测试 - gfproject.json:extensions domain 依赖 review/simplify/web-search
扩展入口已迁至各 domain 的 gfcode/ 目录,.gf/ 下仅剩 tps 单文件扩展, extensions domain 保持原有 agent/code 依赖即可。
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.
变更
三个多文件内置扩展从
.gf/gfcode/单文件入口迁移至各自 domain,库名统一为(gfcode <name> index):.gf/gfcode/code-review.scmreview/gfcode/code-review/index.scm.gf/gfcode/simplify.scmsimplify/gfcode/simplify/index.scm.gf/gfcode/web-search.scmweb-search/gfcode/web-search/index.scmtps.scm单文件扩展保留在.gf/gfcode/;(liii pi ...)实现库组织不变。发现与加载
*load-path*上所有含gfcode/子目录的 domain 根(按归一化路径去重),同名扩展仍由层级仲裁(builtin → 用户~/.gf/gfcode→ 项目.gf/gfcode);PI_BUILTIN_EXTENSIONS_DIR显式指定时仅用该目录,保证测试隔离%extension-entry对index.scm路径推导(gfcode <dir> index)库名,root 取 domain 根;单文件行为不变extensionsdomain 增加对review/simplify/web-search的依赖测试
<domain>/tests/gfcode/<name>/index/(满足 gf check unit-test 的目录映射)pi-discover-extensions-test.scm新增 domain 内置发现用例gf test <domain>/tests/gfcode本地验证:agent 120/120、code 597/598(唯一失败
pi-alarm-log-bang-test为 Windows 时区格式问题,main 上同样失败,Linux CI 不受影响)、app 541/541、review 22/22、simplify 17/17、web-search 34/34、.gf/tests/gfcode通过;gf fmt --check与gf check全绿。