mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-15 17:30:13 +08:00
This commit adds support for workspace-local skills and automatic workspace initialization: 1. New init_workspace() function in util.py: - Creates workspace with EXTRA_PROMPT.md and skills/ subdirectory - Called automatically when using local runtime shell 2. SkillManager enhancements: - Added workspace_skills_root parameter for two-tier skill storage - list_skills() now scans both global and workspace skills - install_skill_from_zip() supports install_to_workspace parameter 3. Local mode system prompt updates: - Added EXTRA_PROMPT.md customization instructions - Added skill installation location preference hint Changes: - astrbot/core/tools/computer_tools/util.py: add init_workspace() - astrbot/core/tools/computer_tools/shell.py: use init_workspace() - astrbot/core/skills/skill_manager.py: workspace skills support - astrbot/core/astr_main_agent.py: update system prompt