feat(plugins): add AI tools and consent-gated data access

This commit is contained in:
t8y2 committed 2026-09-25 01:56:26 +08:00
1 parent 1bc6f70cd8
commit 26a015cd86
71 files changed
+4613 -129

No files matched your search

+5
View File
@@ -55,6 +55,8 @@ const BLOCKED_EXACT: &[&str] = &[
"app-settings/config/decrypt",
// 读取服务器本地 ~/.ssh/config
"ssh/config-hosts",
// 插件数据访问授权写入(插件读取已存连接数据的许可)
"plugin/data/grant",
];
/// 非 GET 请求整族拦截的前缀:插件/JDBC/驱动安装与运行时控制、云同步外发通道。
@@ -76,6 +78,9 @@ const BLOCKED_AI_EXACT: &[&str] = &[
"ai/test-connection",
"ai/models",
"ai/model-effort",
// 允许内置 AI 调用插件工具的开关;预览会拉起插件 sidecar
"ai/plugin-tools/plugins",
"ai/plugin-tools/preview",
];
pub(crate) fn is_demo_blocked(method: &Method, suffix: &str) -> bool {