Rename fmfuncs -> core (cleaner, semantic)

This commit is contained in:
2026-06-10 18:17:21 +08:00
parent 5e23778d90
commit 2bc00f8207
9 changed files with 14 additions and 14 deletions
+4 -4
View File
@@ -59,7 +59,7 @@ SenSu-Alpha0.2/
│ ├── api_service.py # API端点管理
│ └── shutdown_service.py # 优雅关闭
├── fmfuncs/ # 框架功能集(工具函数)
├── core/ # 框架功能集(工具函数)
│ └── plugin_command_decorator.py # 插件命令装饰器
├── utils/ # 通用工具类
@@ -253,7 +253,7 @@ features:
框架提供了`@plugin_command`装饰器:
```python
from fmfuncs.plugin_command_decorator import plugin_command
from core.plugin_command_decorator import plugin_command
@plugin_command(name="echo", description="回显消息")
async def cmd_echo(self, *args):
@@ -400,12 +400,12 @@ SenSu框架是一个设计精良、功能完整的Python后端框架,具有以
## 九、v0.2.1 新增:插件系统增强
### 9.1 PluginStatus 枚举 (`fmfuncs/plugin_status.py`)
### 9.1 PluginStatus 枚举 (`core/plugin_status.py`)
统一的插件生命周期状态:
- `UNLOADED``LOADING``LOADED``INITIALIZING``RUNNING`
- 异常路径: `ERROR`, `STOPPING`, `STOPPED`, `UNLOADING`
### 9.2 PluginError 异常层级 (`fmfuncs/plugin_error.py`)
### 9.2 PluginError 异常层级 (`core/plugin_error.py`)
```
PluginError (基础)
├── PluginLoadError (加载失败)