Repository navigation
Commit d797244
authored
feat(plugins)!: 插件 API 单一基线(版本归 0),插件契约、文档与 SDK 并入 Core (#17)
* feat(plugins)!: 插件 API 收敛为单一基线,所有版本从 0 起步
插件契约 shared/contracts/plugins/v1 原地重写为只保留每个 API 最完整的形态:
- pluginAPIVersion、清单 schemaVersion、全部能力版本、协议版本和文档版本都归 0;
版本字段和协商保留,以后从 0 往上迭代。requires 必填,宿主只提供 0。
- serverProcess 和 executableResolution 并入基础契约,声明它们会被拒绝为
plugin.api.unsupported。
- 删除宿主内置运行时(checkRuntimeVersion)和生成器 runtime 字段;工具一律经
requiresTools 声明,未声明时报 plugin.runtime.undeclared。tool 字段暴露
.version、.major、.executable。
- 语言服务器启动计划始终带 sessionPolicy;runtimeRequirements 统一为 kind tool。
- 构建文档(litheBuildModel、litheDependencies、litheTestResults、
litheTestDiscovery、litheBuildConfiguration、litheConfigurationEdit、
diagnostics、modelInputs)、索引、native-ui、bridge、VCS、editorActions、
后端计划版本都为 0。
- 删除旧格式插件清单测试和 fixture(tests/plugins.rs、official-v1、
language-support-v1、runtime-versions),fixture 去掉 -v2 后缀。
- invalid-manifests 的 expectedField 由测试校验。
* refactor: shared/ 只保留插件,Core 自己的契约、fixture 和日志目录移到 rust/
- shared/fixtures → rust/fixtures,shared/logging → rust/logging,
shared/contracts 下的非插件契约 → rust/contracts;四个 crate 的
include_str!、测试路径和文档引用一起改。
- 插件契约 shared/contracts/plugins/v1 → shared/plugins/contract/v1。
- macos/Tests/LitheTests/Fixtures/GitGraph 的 issue410 对照数据移到
rust/fixtures/git/graph-issue410,删除 macos/ 目录。
- 拆仓时没跟过来的 Lithe-IDEA 文件(根 README、i18n README、Agent Note、
native-ui-lab)改为指向 Lithe-IDEA preview 的绝对链接。
* feat(plugins): 并入 lithe-plugin-docs,插件契约、开发资料与 SDK 只在 shared/plugins
- shared/plugins/README.md 为插件开发入口;guides/、reference/(API 总表、能力与版本、协议更新记录、domains/ 领域参考)按基线 0 重写,去掉版本对照和宿主平台现状说法
- sdk/{node,java,rust} 三个官方后端 SDK 与示例并入;5 个用 Node/Java 启动的示例补上 requiresTools
- sdk/e2e 经 lithe-core 的 plugin-sdk-e2e feature 编译;新增 runtime-tools.plugin.json 代替运行时插件,host_launch_arguments 按宿主流程调 toolchains.instantiateLaunch 与 toolchains.checkVersion,替换已删除的 checkRuntimeVersion
- scripts/verify-docs.mjs(schema $id、相对链接、拒绝指向 lithe-plugin-docs 的文件链接)及测试,scripts/sdk-e2e.mjs
- .github/workflows:plugins-verify 与按 sdk-*-v* 标签发布三个 SDK
- 契约 README 删除 Windows 映射与宿主现状小节,修复失效锚点和死链,去掉不存在的 build-host-integration fixture;SDK README 的宿主服务缺口改为链接能力页的唯一清单
- 根目录 README 说明目录分工;.gitignore 忽略 SDK 构建产物;cargo fmt 处理路径缩短后的格式差异1 parent 6522b8d commit d797244
757 files changed
Lines changed: 38075 additions & 7207 deletions
File tree
- .github/workflows
- rust
- contracts
- ide-api
- fixtures
- agent
- ai
- build-project-options
- build-provider
- build
- community
- core
- debug
- diagnostics
- diff
- documents
- editor-themes
- editor
- execution
- github
- git
- graph-idea
- elementGenerator
- layoutBuilder
- graph-issue410
- history
- i18n
- ide-api
- java
- keymap
- lsp
- maven
- mcp
- modules
- mybatis
- network
- phpunit-project
- src
- tests
- plugins
- process-lifecycle
- projects/lithe-spring-boot-git-graph
- .settings
- history
- src/main
- java/com/example/demo
- user
- resources
- run-configuration
- search
- settings
- spring
- terminal
- toolchains
- updates
- vcs
- workspace
- lithe-agent-host/src
- codex_history
- edit_review
- hooks
- model_proxy/websocket
- skills
- lithe-core-rules
- src
- tests
- lithe-core
- src
- action_search
- ai
- build
- debug
- diagnostics
- diff
- editor
- execution
- github
- git
- console
- workspace_commit
- lsp
- host_policy
- interface
- mcp
- network
- plugins
- process
- project_generators
- project
- protocol
- remote
- runtime
- tests
- fixtures/community_build_plugins
- gradle
- maven
- toolchain
- vcs
- lithe-ide-host/src
- logging
- events
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
0 commit comments