дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-27 21:12:34 +02:00
A manifest can now declare net:setting:<key> / net.http:setting:<key> (plugin API 1.18): the plugin may connect to the host the user typed into its own string setting <key> (a bare host or a URL), so plugins for self-hosted servers (GitLab, Jira Server, Gitea) can reach an intranet instance. - The key must name a string setting of the plugin's own schema, checked at install and start; value hosts follow the manifest host rules, '*' refused. - Applying the value in Settings asks once, naming plugin, setting and host (Deny by default; the net.http variant says the connection is unencrypted). A value that changes any other way shows as pending with an Approve action in the plugin's permissions, next to the net:ask hosts, and is revocable. - The approval is recorded per plugin and grant in the ledger and materializes as net:<host> / net.http:<host> only while the setting still holds it, so the request path (net_capability, redirects) is unchanged. Remote hosts keep it for the session only, like net:ask. net:ask prompts never fire for a setting-derived host. - Approving takes the host the user was shown and is refused when the setting no longer holds it, so a value the plugin writes after the dialog opens is never approved in its place. Fixes #3809 Co-authored-by: Inf1mum <[email protected]>