胡飞
|
bd7548e53b
|
fix(extension-runtime): 补齐 gpui_shell 版本 fixture 到 0.6.1
abb055843 把宿主 `GPUI_SHELL_VERSION` 从 0.2.0 升到 0.6.1(跟随 gpui-shell
crate 版本),但漏了三处声明,CI 因此在 macOS / Linux / Windows 三个平台上各挂
同样的 3 条测试:
extension::manifest::parser_tests::reference_resource_plugin_manifests_are_parser_valid
global::tests::development_views_are_rebuilt_with_installed_views
global::tests::invalid_development_manifest_does_not_remove_valid_views
manifest 字段 /engines/gpui_shell 非法: requires gpui-shell 0.2.0, host provides 0.6.1
原因是 `0.x` 的兼容判定要求 minor 精确匹配
(crates/extension-runtime/src/extension/manifest/shell_validation.rs):
if required.major == 0 { current.major == 0 && current.minor == required.minor }
补齐的三处:
- crates/extension-runtime/src/global.rs 测试内联 manifest
- docs/extension-resource-plugins/examples/elasticsearch/extension.json
- docs/extension-resource-plugins/development-guide.zh-CN.md 的示例清单
验证:cargo test -p extension-runtime --lib → 214 passed,原先挂的 3 条全绿。
唯一未过的是 db_tree_action_runs_registered_wasm_component,与本次改动无关:它
读 `fixtures/coverage-plugin/wasm/coverage_component.wat`,而 wasmtime 的 `wat`
解析器只在 crates/extension-wasm 的 `[dev-dependencies]` 里打开,CI 跑的是
`cargo test --all`(feature 统一启用)因此通过,本地收窄成 `-p extension-runtime`
就不带该 feature。该测试在本次 CI 运行的上一条日志里是通过的。
|
2026-09-20 17:05:05 +08:00 |
|
胡飞
|
b680b504e5
|
refactor(plugins): retire third-party plugin UI, keep headless IPC runtime layer
- Remove declarative panel chain: declarative_ui_demo crate, universal_plugin_panel,
home_tab hooks, extension_widget/extension_selector, manifest declarativePanels
- Remove WASM ViewSpec/UiNode UI: WIT open-view/handle-view-action/open-result-view,
popup rendering in extension_action_handler
- Remove provider reverse UI RPC: ui/action, ui/dialog, ui/window, host
quick_pick/confirm/open_view, dialog/window activation managers
- Keep headless provider layer: resource/job/event/blob, secrets/storage/log,
host blob upload, runtime monitor, extension_view manager
- Rework ActivationManager::activate_runtime as independent lease refcount;
fix concurrent-start wait, cancellation cleanup, job registry release,
catalog hot-replace; add regression tests
- Add ShellPluginHost global stub as gpui-shell integration point
- Sync docs/examples to headless protocol; drop ui:* permissions from fixtures
|
2026-08-31 09:37:29 +08:00 |
|