Repository navigation
refactor: organize repository root, modules and plugin sources - #212
Open
3316891527 wants to merge 7 commits into
Open
3316891527 wants to merge 7 commits into
3316891527 wants to merge 7 commits into
Conversation
5 tasks done
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.
变更说明 / Description
背景与动机 / Context and motivation
仓库根目录原有 14 个非隐藏目录,插件开发材料、支持模块和 Web Chat 分散在根目录。此次按职责归组后,根目录减少为 8 个非隐藏目录;普通架构文档与配置模板归入 docs,根跟踪文件从 18 个减少为 16 个,保留项目入口及工具按根目录发现的配置。
改动范围 / Changes
examples/→plugins/examples/,tools/example_packages/→plugins/tooling/example_packages/,完整 ToolPkg 开发文档 →plugins/docs/toolpkg_developer_documentation/。更新资源输入、同步工具、类型声明下载地址与文档引用。a2ui-compat、llm、material-icons-subset、quickjs、showerclient、terminal归入modules/。更新 Gradle projectDir、gitmodules、三个 CMake 公共脚本引用及相关工具。web-chat/→app/web-chat/,更新 npm/CI 命令及 Android assets 同步脚本。Repo_Arch_Basic.md→docs/Repo_Arch_Basic.md;local.properties.example→docs/doc-src/dev-core/local.properties.example。更新相对链接和开发指南,说明剩余根配置的用途。.gitmodules读取真实 gitlink 路径,覆盖两分支布局不同的阶段。最终非隐藏根目录:
app/、ci/、cmake/、docs/、gradle/、modules/、plugins/、tools/。兼容性与风险 / Compatibility and risks
Gradle 项目 ID、应用包 ID、插件标识及归档内部路径保持原值;Web Chat 产物仍同步到
app/src/main/assets/web-chat。terminal gitlink 始终固定为62dbf46a0c1af5255eb22f0c48ca215974ab1a10。已发布的
offline-pack-sources.json、offline-packs.json和builtin-extensions.json的 Git blob 未变。快照 schema v1 保留examples/...与tools/example_packages/...的稳定逻辑名称,并映射到新物理路径;历史 revision 仍可读取。纯移动保持路径身份,源码及同步工具内容变更仍参与未来资源指纹。外部脚本若使用旧物理路径,需要切换到新路径。
local.properties仍由开发者或 CI 在根目录创建。Gradle、npm/pnpm 和 Git 根配置保留原位置。关联 Issue / Related issue
N/A:维护者授权的仓库根目录整理。
验证方式 / Verification
fd7337f83cbe36155c6e328459baf7764fdffb4f;Gradle assembleDebug、终端命令打包、外部资源打包校验及产物上传全部通过。产物为operit-android-200。此后的提交仅调整文档和配置模板。证据 / Evidence
docs/TODO/chore/plugin-source-layout/index.mddocs/TODO/chore/module-source-layout/index.mddocs/TODO/chore/root-file-layout/index.mddocs/Repo_Arch_Basic.md检查清单 / Checklist