Repository navigation
Add serverless SDK plugin catalog and WebUI plugin market - #305
Open
BernardXiong wants to merge 2 commits into
Open
BernardXiong wants to merge 2 commits into
BernardXiong wants to merge 2 commits into
Conversation
The page icon was an inline base64 1x1 transparent PNG placeholder, so the browser tab and the installed WebUI showed no icon at all. Replace it with a dedicated SVG/ICO icon set and an apple touch icon. The icons live in frontend/public so vite copies them into the built static directory, and MANIFEST.in now packages *.ico, *.svg and frontend/public. Impact: only the WebUI page icon and the packaged resources change, no runtime logic is involved.
Plugin views embedded in an iframe were sandboxed with allow-scripts only, so window.open() and target="_blank" links were silently blocked and plugin pages could not reach external documentation or tools. Extend the sandbox flags with allow-popups and allow-popups-to-escape-sandbox so a plugin can launch a new window that is not trapped in the frame sandbox. The built static bundle is rebuilt accordingly. Impact: applies to every plugin rendered in the WebUI plugin view.
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
Add a serverless SDK plugin catalog so Env can discover, download and install plugin releases published as plain JSON indexes, and expose the catalog in the WebUI plugin market.
Changes
SDK plugin catalog
plugins/sdk_index.pyto read SDK JSON indexes, resolve a release compatible with the local plugin ABI, and verify the release asset over HTTPS with checksum validation.plugins/market.pyso SDK catalogs take precedence over the legacy market list when both are configured.cmds/cmd_plugin.pysoenv pluginsearch/install/upgrade see SDK-published plugins.WebUI
plugins/webui/server.pyand the frontend).allow-popups/allow-popups-to-escape-sandbox), so plugin pages can reach external documentation and tools.MANIFEST.in.Tests and documentation
plugins/tests/test_sdk_index.py,plugins/tests/test_sdk_index_webui.pyand an e2e spec covering catalog validation, release redirects, checksums, ABI resolution, install/upgrade behavior and desktop/mobile catalog workflows..github/workflows/plugin-tests.ymlrunning Python regression tests on Linux and Windows, plus frontend type-check, unit and Chromium e2e tests.plugins/README.mdandplugins/README.zh-CN.md.Test plan
python -m pytest tests plugins/tests -qpython -m plugins.epack.build_epackfollowed by the packaging assertions in CI.npm run typecheck,npm test,npm run build,npm run test:e2e -- sdk-market.spec.ts webui.spec.ts..github/workflows/plugin-tests.yml.Impact