1
0

完成一个简易的全局skill、command管理器

This commit is contained in:
2026-02-25 14:33:56 +08:00
parent f4cb809f9d
commit 2d327b5af8
60 changed files with 6053 additions and 1 deletions

43
manager/scripts/sandbox.sh Executable file
View File

@@ -0,0 +1,43 @@
#!/bin/bash
# sandbox.sh - 手动测试沙盒环境
set -e
cd "$(dirname "$0")/.."
# 创建沙盒目录
SANDBOX_DIR="${1:-/tmp/skillmgr-sandbox}"
mkdir -p "$SANDBOX_DIR"
echo "=== 沙盒环境 ==="
echo "目录: $SANDBOX_DIR"
echo ""
# 设置环境变量
export SKILLMGR_TEST_ROOT="$SANDBOX_DIR/config"
export SKILLMGR_TEST_BASE="$SANDBOX_DIR/install"
# 确保 skillmgr 已构建
if [ ! -f "bin/skillmgr" ]; then
echo "构建 skillmgr..."
go build -o bin/skillmgr ./cmd/skillmgr
fi
echo "环境变量已设置:"
echo " SKILLMGR_TEST_ROOT=$SKILLMGR_TEST_ROOT"
echo " SKILLMGR_TEST_BASE=$SKILLMGR_TEST_BASE"
echo ""
echo "可执行文件: $(pwd)/bin/skillmgr"
echo ""
echo "示例命令:"
echo " ./bin/skillmgr --help"
echo " ./bin/skillmgr add https://github.com/example/skills.git --name example"
echo " ./bin/skillmgr repos"
echo ""
echo "清理沙盒:"
echo " rm -rf $SANDBOX_DIR"
echo ""
# 进入子 shell
echo "进入沙盒 shell (exit 退出)..."
$SHELL