Files
SenSu/docs/项目文件结构.txt
T
AskaEth e6875f0b4b Initial commit: SenSu Alpha 0.2.0
- 13-service async plugin framework
- Textual TUI with CLI fallback
- Plugin hot-reload + permission system
- Web management panel (aiohttp)
- Bridge-based inter-module communication
- 10 regression tests

Fixes applied:
- PBKDF2-SHA256 auth (was plain SHA256)
- Auth bypass removed (was allow-all on fail)
- Bare excepts replaced with logged errors
- CatFramework/DreamSu -> SenSu naming unified
- ServiceManager: health checks + startup_order
- Env var credentials (SENSU_ADMIN_PASSWORD etc)
2026-06-10 12:28:05 +08:00

45 lines
1.8 KiB
Plaintext

SenSu/
├── main.py # 框架主入口
├── requirements.txt # 依赖包列表
├── README.md # 项目说明
├── config/ # 运行时生成的配置文件
│ ├── framework/ # 框架核心配置
│ ├── plugins/ # 插件配置
│ ├── services/ # 服务配置
│ └── permissions/ # 权限配置
├── logs/ # 日志文件目录
│ ├── debug/ # debug级别日志
│ └── runtime/ # 运行时日志
├── fmfuncs/ # 框架功能集
│ ├── __init__.py
│ ├── tui_renderer.py # TUI渲染器
│ ├── log_handler.py # 日志处理模块
│ ├── init_system.py # 初始化系统
│ ├── command_handler.py # 指令处理模块
│ ├── bridge_core.py # 核心桥模块
│ ├── bridge_plugin.py # 插件桥模块
│ ├── internet_module.py # 互联网模块集
│ ├── auth_system.py # 访问验证系统
│ ├── plugin_manager.py # 插件管理器
│ ├── permission_validator.py # 权限验证器
│ ├── api_manager.py # API管理器
│ └── shutdown_handler.py # 终止处理器
├── plugins/ # 插件目录
│ └── example_plugin/ # 示例插件结构
│ ├── __init__.py
│ ├── permissions.yaml
│ └── config.yaml
├── gui/ # GUI接口目录
│ └── api.py # GUI操作接口
└── utils/ # 工具函数
├── __init__.py
├── file_utils.py # 文件操作工具
├── config_utils.py # 配置工具
└── validation_utils.py # 验证工具