[全量] 初始化项目代码、配置、文档及Agent协同harness

This commit is contained in:
2026-04-02 11:36:05 +08:00
parent 0553309cdf
commit 87e571d9ec
1133 changed files with 221948 additions and 0 deletions

13
scripts/common-restart.sh Executable file
View File

@@ -0,0 +1,13 @@
# 被各 *-restart.sh source勿单独执行
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
GANGYAN_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
LOG_DIR="$GANGYAN_ROOT/logs"
mkdir -p "$LOG_DIR"
log_line() {
echo "[$(date '+%Y-%m-%d %H:%M:%S')] $*"
}
log_tee() {
log_line "$@" | tee -a "$LOG_FILE"
}