Commit Graph

67 Commits

Author SHA1 Message Date
1736bb5801 docs: 更新项目文档至2026-05-17现状
Some checks failed
CI / test (3.10) (push) Has been cancelled
CI / test (3.11) (push) Has been cancelled
CI / test (3.12) (push) Has been cancelled
CI / test (3.13) (push) Has been cancelled
- 问题报告.md: 重新审查代码,更新路径和问题列表
- RELEASE_v1.2.1.md: 改为路线图,标注实际完成状态
- CODE_VERIFICATION_REPORT.md: 重新验证核心功能
- FATAL_FIXES_REPORT.md: 按当前代码重写
- ai.md: 清理无关内容,更新统计和路线图
- 项目的后续计划.md: 补充详细开发计划
- README.md: 添加功能说明提示
- RELEASE_v1.1.0.md: 添加历史存档标记
2026-05-17 15:17:50 +08:00
starlight-apk
5fbc5cc335 feat: 新增脚手架/开发模式/权限白名单/system-monitor插件
Some checks failed
CI / test (3.10) (push) Has been cancelled
CI / test (3.11) (push) Has been cancelled
CI / test (3.12) (push) Has been cancelled
CI / test (3.13) (push) Has been cancelled
- nebula create mod/key/list-templates 模组脚手架
- nebula dev 开发模式热重载
- manifest permissions.imports 权限白名单机制
- system-monitor 系统监控仪表盘插件
- 默认端口统一为 10086
- 修复 _init_nbpf 误读 Ed25519 私钥为 RSA 的 bug
- 更新 README.md 文档
2026-05-16 20:20:43 +08:00
Falck
bce27db4ac 重大重构:引擎模块拆分 + P0插件实现 + 55个Bug修复
核心变更:
- engine.py(1781行)拆分为8个独立模块: lifecycle/security/deps/
  datastore/pl_injector/watcher/signature/manager
- 新增plugin-bridge: 事件总线 + 服务注册 + RPC通信
- 新增i18n: 国际化/多语言翻译支持
- 新增plugin-storage: 插件键值/文件存储
- 新增ws-api: WebSocket实时通信(pub/sub + 自定义处理器)
- nodejs-adapter统一为Plugin ABC模式

Bug修复:
- 修复load_all()中store_dir未定义崩溃
- 修复DependencyResolver入度计算(拓扑排序)
- 修复PermissionError隐藏内置异常
- 修复CORS中间件头部未附加到响应
- 修复IntegrityChecker跳过__pycache__目录
- 修复版本号不一致(v2.0.0→v1.2.0)
- 修复测试文件的Logger导入/路径/私有方法调用
- 修复context.py缺少typing导入
- 修复config.py STORE_DIR默认路径(./mods→./store)

测试覆盖: 14→91个测试, 全部通过
2026-05-12 11:40:06 +08:00
Falck
3a096f59a9 重构:核心迁移至 oss/core + NBPF 多重签名加密 + NIR 编译器 + README 全面升级
- 核心功能从 store/ 迁移至 oss/core/ 框架层
- 实现 NBPF 包格式:多重签名(Ed25519+RSA-PSS+HMAC)+ 多重加密(AES-256-GCM)
- 实现 NIR 编译器:基于 compile()+marshal 的跨平台中间表示
- 新增 nebula nbpf CLI 命令组(pack/unpack/verify/sign/keygen)
- 新增 19 个 NBPF 测试用例,覆盖全链路
- 彻底重写 README,大型项目标准框架风格,所有图表使用 SVG
- 更新 LICENSE 版权声明
- 清理旧版 store 插件目录(已迁移至 oss/core)
2026-05-05 07:29:43 +08:00
Falck
4441a968db 修复项目主要错误 2026-05-04 21:19:34 +08:00
Falck
ba58b3939a docs: 创建文档目录 + 更新LICENSE + 规范项目文档
- 创建 docs/ 文档目录,包含快速开始、架构说明、插件列表、插件开发、API参考、贡献指南
- 更新 LICENSE 完整 Apache 2.0 模板,添加作者 yongwanxing
- README 许可证引用更新为 Copyright 2026 Falck, yongwanxing
v1.2.0
2026-05-03 09:44:43 +08:00
Falck
6460b28060 📝 更新ai.md + 重写README + 清理远程分支
 本次更新内容:

📋 ai.md 更新
   - 更新最后更新时间和变更记录
   - 更新Phase A/B待办状态为已完成
   - 删除@{Falck}相关引用
   - 新增第21节变更记录

📖 README 重写为专业企业级开源风格
   - 805行 → 283行,去除过度营销化语气
   - 精简架构图、插件列表标注实际状态
   - 保留核心技术内容:快速开始、开发指南、贡献规范

🧹 清理远程分支
   - 删除Gitee/Github上除main外的所有冗余分支
2026-05-03 09:32:11 +08:00
Falck
f5c659b665 🔧 修复P0级问题:40+文件语法错误 + import路径 + 清理废弃代码
 跟项目能跑起来就差这一步!这次狠狠修了一波:

🩺 修复40+损坏Python文件
   - 补全所有缺少的class定义头(plugin-loader-pro、code-reviewer、
     http-api/ws-api/http-tcp、webui/dashboard/log-terminal 等)
   - 修复中文括号、字符串未闭合、缩进错乱等语法问题

🔗 创建符号链接 plugin_bridge -> plugin-bridge
   - 解决Python模块路径不支持连字符的问题
   - 关联修复 plugin-bridge 中错误的 import 路径

🧹 清理废弃代码
   - 删除 oss/tui/ 目录(已废弃)
   - 清理所有 __pycache__ 和 .pyc 缓存文件

 全量语法检查通过,零错误!
📋 ai.md 新增代码审计报告和分阶段修复计划
🗺️ 所有插件 use() 调用现在走统一路径
2026-05-03 09:26:47 +08:00
Falck
7a460dfa95 规划项目后续发展 2026-05-02 23:38:06 +08:00
Falck
70c531860b 修复了一些错误 更新了AI.md(给ai看的) 2026-05-02 19:21:50 +08:00
Falck
0783428f80 初步规划TuUi模式,并预留接口 2026-05-02 13:32:51 +08:00
qwen.ai[bot]
9f7ca46f96 Update TUI to v1.3 with enhanced conversion layer and dual UI architecture
- ai.md: Added comprehensive documentation for TUI v1.3 conversion layer with 64+ supported components, CSS styling, and JavaScript interaction capabilities
- oss/tui/: Created complete TUI module with converter.py implementing HTML/CSS/JS to terminal conversion engine, supporting 40+ component types and advanced styling
- oss/tui/plugin.py: Implemented TUI plugin with dual startup architecture accessing WebUI's /tui interface for HTML conversion and terminal rendering
- store/@{NebulaShell}/webui/tui/: Added TUI package with converter, configuration files, and index.html for terminal interface
- store/@{NebulaShell}/webui/core/server.py: Enhanced WebUI server with TUI interface endpoints (/tui/*) for providing special-marked HTML to conversion layer
- store/@{NebulaShell}/webui/main.py: Updated WebUI plugin to support TUI dual launch with automatic homepage redirection and navigation integration
- .gitignore: Updated ignore patterns for better project cleanliness

The update provides a sophisticated terminal interface that automatically converts WebUI content through a powerful transformation layer, enabling seamless dual-mode operation.
2026-05-02 12:04:27 +08:00
Falck
2c2ec60a2b 更改项目名为NebulaShell 2026-05-02 08:30:31 +08:00
Falck
d16e28ab17 删了future-oss.7z 2026-05-01 20:19:09 +08:00
Falck
1295aaed91 删除了不需要的文件 2026-04-26 16:55:22 +08:00
Falck
f1625df952 彻底完成v1.2.0 2026-04-26 09:45:39 +08:00
Falck
7fa02db70b Merge branch 'main' of github.com:Starlight-apk/FutureOSS 2026-04-26 09:30:11 +08:00
Falck
881aac2161 修复了若干Bug 2026-04-26 09:25:06 +08:00
qwen.ai[bot]
a00fd9ebcf Title: 添加成就系统和隐藏命令功能
Key features implemented:
- 新增oss/core/achievements.py实现配置验证与完整性检查模块,包含验证规则、缓存机制和成就解锁系统
- 新增oss/core/__init__.py作为核心模块入口,提供Context和验证器接口
- 修改oss/cli.py添加隐藏命令前缀支持(!!),实现内部调试命令和随机提示功能
- 修改oss/plugin/manager.py集成插件数量和启动速度成就检查
- 修改oss/config/config.py添加配置修改记录成就跟踪
- 更新.gitignore优化Python项目忽略文件配置

整体实现了完整的成就系统架构,支持隐藏命令交互和多种验证规则,并在系统各组件中集成成就解锁逻辑。
2026-04-26 09:22:49 +08:00
qwen.ai[bot]
902d2782cf Title: 继续修复所有错误
Key features implemented:
- Updated .gitignore to include additional cache and coverage directories (.mypy_cache/, .pytest_cache/, coverage/, htmlcov/)
- Enhanced XSS protection in pkg-manager plugin by adding HTML escaping for all user data in page rendering functions
- Improved PL injection security in plugin-loader with enhanced static source code analysis including base64 decoding checks and string concatenation bypass detection
- Strengthened configuration file loading security using ast.literal_eval for safe parsing and stricter code execution prevention
- Added comprehensive dangerous pattern checks in PL injection static analysis to prevent various bypass techniques

The updates focus on security hardening across the plugin system, particularly addressing input sanitization and code injection vulnerabilities while expanding the project's ignore patterns for better repository cleanliness.
2026-04-25 22:16:05 +08:00
qwen.ai[bot]
64c8713945 update branch 2026-04-25 21:12:20 +08:00
Falck
83c3ccb86b 完成阶段2 2026-04-25 20:29:05 +08:00
qwen.ai[bot]
3ffc10be92 update branch 2026-04-25 12:28:01 +00:00
qwen.ai[bot]
138a8ffb7a Title: Update TCP HTTP server and plugin loader with enhanced security and error handling
Key features implemented:
- Updated .gitignore with cleaner Python and build artifact patterns
- Enhanced TcpHttpServer with improved exception handling for connection errors and better request parsing
- Added detailed error event emission for OSError and other exceptions in TCP server
- Improved plugin loader security with enhanced configuration file validation and error handling
- Added comprehensive logging for plugin loading and dependency injection processes
- Refined PL injection mechanism with stricter function name and route validation

The updates provide more robust error handling in the TCP server and strengthen security measures in the plugin loader while improving overall system stability.
2026-04-25 12:07:50 +00:00
Falck
a0895c2d68 分析项目弱点,并完成大型项目第一阶段 2026-04-25 18:48:54 +08:00
qwen.ai[bot]
97ced1b5e6 Title: Implement minimal core framework with PL injection and update build config
Key features implemented:
- Updated package metadata and dependencies in PKG-INFO, setup files
- Added main.py entry point for backward compatibility with README launch method
- Enhanced CLI with config options, system info command, and proper signal handling
- Implemented minimal PluginManager loading only plugin-loader core plugin
- Refactored PluginLoader to follow minimal core design, removed sandbox/isolation complexity
- Updated auto-dependency plugin with safer PL injection mechanism and disabled pl_injection
- Removed legacy plugin files (firewall, frp_proxy, ftp_server, multi_lang_deploy, ops_toolbox, security_gateway) as functionality moved to core plugin system
- Improved gitignore with comprehensive ignore patterns

The changes implement a minimal core framework design where only the plugin-loader is directly loaded by the core, with all other plugins managed through the PL injection mechanism, significantly simplifying the architecture.
2026-04-25 10:47:26 +00:00
Falck
a9bc12596e 废弃了部分旧代码 2026-04-25 18:00:20 +08:00
qwen.ai[bot]
27a1eb8a3c ### User query:
这次提交的标题

### Changes made to the code/files:

Title: Remove PHP dependencies and refactor UI rendering to pure HTML templates

Key features implemented:
- Refactored dashboard plugin to remove PHP dependency and implement pure HTML/CSS/JS template rendering
- Updated log-terminal plugin to replace PHP-based UI with native Python HTML template generation
- Modified package manager plugin to eliminate PHP view files and use direct HTML string construction
- Removed all PHP view template files across dashboard, log-terminal, and package manager plugins
- Updated .gitignore to include additional build artifacts and environment files
- Enhanced dashboard with real-time metrics, system information, and network statistics without external PHP processing

The overall change migrates the system from requiring PHP for UI rendering to using pure Python-based HTML template generation, simplifying deployment and removing external dependencies.
2026-04-25 09:55:28 +00:00
Falck
26e0fc6b1e 更新了性能优化插件 2026-04-25 17:43:15 +08:00
qwen.ai[bot]
40888ff61a **Add Performance Optimizer Plugin with Extreme Performance Features**
- Added performance-optimizer plugin with FastCache LRU caching, ObjectPool for object reuse, BatchProcessor for bulk operations, MemoryArena for pre-allocated memory, PerfProfiler for low-overhead timing, and StringIntern for deduplication
- Implemented high-performance routing optimizations in router.py using @lru_cache decorators for path matching and parameter extraction functions
- Created comprehensive plugin infrastructure with manifest.json configuration and unified access interface through PerformanceOptimizerPlugin class
- Enhanced system performance through multiple optimization strategies targeting different bottlenecks with measurable performance gains from 2x to 100x improvement ratios
2026-04-25 09:42:06 +00:00
Falck
9d59e97b6a 删除了没有用的website 2026-04-25 16:30:13 +08:00
Falck
323d52818f 修复AI生成README的时候官网地址错误 2026-04-25 16:29:10 +08:00
qwen.ai[bot]
b840c877a4 Update README.md to fix友情链接 and keep only official website link
- Modify README.md footer links to remove problematic 友链 and retain only the official homepage link labeled as futureoss.date
- Update the bottom navigation bar to show single official site link [🏠 官网首页](https://futureoss.date)
- Remove all other external links including documentation, community forum, Twitter, and LinkedIn from the footer

This change streamlines the project's external links, addressing issues with existing 友链 while maintaining clear access to the primary official resource.
2026-04-25 08:28:36 +00:00
Falck
b3a50c9ae5 修复许可证标注错误 2026-04-25 16:22:18 +08:00
qwen.ai[bot]
aef9a2939e Fix project URL in documentation and update gitignore format
- Updated README.md to correct GitHub repository URL from github.com/FutureOSS/futureoss to github.com/Starlight-apk/FutureOSS
- Revised .gitignore file to use standard gitignore format instead of code block wrapper
- Corrected license badge in README from MIT to Apache-2.0 to match actual project license
- Fixed contribution guide URLs to point to correct repository location
2026-04-25 08:21:24 +00:00
Falck
662ecb221f 更新了README 2026-04-25 16:16:02 +08:00
qwen.ai[bot]
d7978349ed Title: Update license confirmation and enhance project documentation
Key features implemented:
- Updated README.md to prominently display MIT license badge and include full license text in expandable section
- Enhanced .gitignore with comprehensive file patterns for Python, dependencies, logs, and build artifacts
- Added detailed plugin manifest example showing license declaration in plugin configuration
- Included license information in plugin development documentation section

The updates provide clear license visibility and improved development workflow configuration.
2026-04-25 08:14:10 +00:00
Falck
e5d578a849 chore: disable delete confirmation in VS Code explorer
Disable the confirmation dialog when deleting files in the VS Code explorer to streamline the development workflow and reduce friction during file management operations.
2026-04-25 15:56:37 +08:00
Falck
c998f8beda Merge remote-tracking branch 'Github/main' 2026-04-25 15:54:58 +08:00
Falck
979d2e2236 完成v1.1.0 2026-04-25 15:48:07 +08:00
Falck
cf1f78b8b1 新增依赖自动安装插件并修复核心模块缺失问题
主要变更:
1. 新增 auto_dependency 插件
   - 实现系统依赖的扫描、检查、安装和信息查询功能
   - 对接插件加载器的 /PL 注入能力接口 (execute 方法)
   - 支持多种包管理器 (apt-get, yum, dnf, pacman, brew, apk)
   - 提供 scan(), check(), install(), info() 四个核心 API

2. 修复模块缺失错误
   - 创建 oss/plugin/base.py (BasePlugin 类)
   - 创建 oss/core/context.py (Context 类)
   - 解决 6 个现有插件无法导入的问题

3. 添加示例配置
   - 为 firewall 和 ftp_server 插件添加 system_dependencies 声明示例

功能说明:
其他插件只需在 manifest.json 中声明 "system_dependencies" 字段,
该插件即可通过插件加载器自动检测并安装缺失的系统级依赖包。
2026-04-25 14:27:28 +08:00
Falck
6307a72fce 新增依赖自动安装插件并修复核心模块缺失问题
主要变更:
1. 新增 auto_dependency 插件
   - 实现系统依赖的扫描、检查、安装和信息查询功能
   - 对接插件加载器的 /PL 注入能力接口 (execute 方法)
   - 支持多种包管理器 (apt-get, yum, dnf, pacman, brew, apk)
   - 提供 scan(), check(), install(), info() 四个核心 API

2. 修复模块缺失错误
   - 创建 oss/plugin/base.py (BasePlugin 类)
   - 创建 oss/core/context.py (Context 类)
   - 解决 6 个现有插件无法导入的问题

3. 添加示例配置
   - 为 firewall 和 ftp_server 插件添加 system_dependencies 声明示例

功能说明:
其他插件只需在 manifest.json 中声明 "system_dependencies" 字段,
该插件即可通过插件加载器自动检测并安装缺失的系统级依赖包。
2026-04-25 14:20:16 +08:00
qwen.ai[bot]
9322dc857f update branch 2026-04-25 06:07:33 +00:00
qwen.ai[bot]
fe71635899 Title: Add auto-dependency plugin for system dependency management
Key features implemented:
- Added new auto-dependency plugin that scans plugin manifests for system dependencies and automatically installs missing ones
- Created SystemDependencyChecker class with support for multiple package managers (apt, yum, dnf, pacman, brew, apk)
- Implemented PL injection interface with functions for scan, check, install, and info operations
- Added context management system in core module for plugin execution environment
- Created example plugin manifest demonstrating system dependency declaration
- Updated .gitignore with comprehensive file exclusion patterns

The plugin provides automatic scanning and installation of system dependencies declared in plugin manifests, integrating seamlessly with the plugin loader through PL injection capabilities.
2026-04-25 05:52:44 +00:00
Falck
0cdc07b3ec 更新了,README 2026-04-25 08:52:55 +08:00
qwen.ai[bot]
7febcdba84 update branch 2026-04-25 00:52:26 +00:00
qwen.ai[bot]
f8853ca45e Title: Upgrade to FutureOSS v1.1.0 with enterprise-grade security and deployment features
Key features implemented:
- New RELEASE_v1.1.0.md with comprehensive release notes for security upgrades and new features
- New firewall.py plugin implementing dynamic IP filtering, port management, and attack detection
- New frp_proxy.py plugin for FRP-based internal network tunneling and proxy services
- New ftp_server.py plugin providing secure file transfer with user management and access control
- New multi_lang_deploy.py orchestrator supporting automated detection and deployment of Python/Node.js/Go/Java/PHP projects
- New ops_toolbox.py with backup/recovery, health checks, and resource quota management
- New security_gateway.py with API rate limiting, JWT authentication, audit logging, and circuit breaker protection
- New HTML5/CSS3/JS-based webui replacing PHP templates with modern responsive design and real-time metrics
- New manifest.json files for all plugins adding configuration schemas and dependency declarations
- Updated .gitignore with refined ignore patterns for development environments
- Modified core plugin manifests to include internationalization dependencies and enhanced configurations
- Removed legacy PHP template files from webui frontend views
- Enhanced plugin bridge, storage, signature verification with multilingual support and security improvements
2026-04-25 00:01:05 +00:00
Falck
236b436993 修复重大安全逃逸漏洞 2026-04-25 07:17:05 +08:00
qwen.ai[bot]
1393dbe3eb update branch 2026-04-24 23:15:25 +00:00
qwen.ai[bot]
17fe827430 Title: Add HTML render config and update gitignore rules
Key features implemented:
- Added html-render-config.json with root directory, index file, and static prefix settings for website rendering
- Updated .gitignore to exclude Python cache files, compiled files, logs, and environment files while removing old project-specific entries

The changes improve project configuration management and clean up version control exclusions for better development workflow.
2026-04-24 23:11:44 +00:00