更改项目名为NebulaShell

This commit is contained in:
Falck
2026-05-02 08:30:31 +08:00
parent d16e28ab17
commit 2c2ec60a2b
233 changed files with 298 additions and 276 deletions

View File

@@ -1,7 +1,7 @@
"""插件加载器 - 专门用于加载核心插件
遵循「最小化核心框架」设计哲学:
- 只负责加载可信的核心插件(来自 store/@{FutureOSS}/
- 只负责加载可信的核心插件(来自 store/@{NebulaShell}/
- 所有插件都使用统一的加载机制
- 不再区分沙箱模式和非沙箱模式
"""
@@ -17,7 +17,7 @@ class PluginLoader:
"""插件加载器 - 专门用于加载核心插件
遵循「最小化核心框架」设计哲学:
- 只负责加载可信的核心插件(来自 store/@{FutureOSS}/
- 只负责加载可信的核心插件(来自 store/@{NebulaShell}/
- 所有插件都使用统一的加载机制
- 不再区分沙箱模式和非沙箱模式
"""
@@ -27,7 +27,7 @@ class PluginLoader:
self._config = get_config()
def load_core_plugin(self, plugin_name: str, store_dir: Optional[str] = None) -> Optional[dict[str, Any]]:
"""加载核心插件(来自 store/@{FutureOSS}/
"""加载核心插件(来自 store/@{NebulaShell}/
Args:
plugin_name: 插件名称(如 "plugin-loader"
@@ -38,7 +38,7 @@ class PluginLoader:
"""
if store_dir is None:
store_dir = str(self._config.store_dir)
plugin_dir = Path(store_dir) / "@{FutureOSS}" / plugin_name
plugin_dir = Path(store_dir) / "@{NebulaShell}" / plugin_name
return self._load_plugin(plugin_name, plugin_dir)
def _load_plugin(self, plugin_name: str, plugin_dir: Path) -> Optional[dict[str, Any]]:

View File

@@ -17,7 +17,7 @@ class PluginManager:
遵循「最小化核心框架」设计哲学:
- 核心框架只负责加载 plugin-loader 插件
- 所有其他插件HTTP、WebSocket、Dashboard 等)都由 plugin-loader 插件扫描和加载
- store/@{FutureOSS}/ 是唯一的插件来源
- store/@{NebulaShell}/ 是唯一的插件来源
"""
def __init__(self):
@@ -28,7 +28,7 @@ class PluginManager:
"""仅加载 plugin-loader 核心插件
plugin-loader 插件会负责:
1. 扫描 store/@{FutureOSS}/ 目录
1. 扫描 store/@{NebulaShell}/ 目录
2. 加载所有启用的插件
3. 处理依赖关系
4. 执行 PL 注入机制