Split docs/softbox-catalog-design.md into the numbered harness doc set (00-06, api.md, current-state, agent-context, tasks) following the harness_coding_docs template and soft_quay conventions. Register the nine open decision items from the design spec into the 06-tasks roadmap as W- tasks and backlog entries. Keep the original design spec as an archived design input with a header note. Recreated after the repository's previous git history was lost to an external reset; content matches the original initial commit. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
38 lines
1.3 KiB
Bash
38 lines
1.3 KiB
Bash
#!/usr/bin/env bash
|
|
|
|
# 标准启动与验证入口(Unix shell 版),与 init.ps1 等价,二选一:
|
|
# - WSL / Git Bash / macOS / Linux:用 ./init.sh
|
|
# - Windows 原生 PowerShell:用 ./init.ps1
|
|
# 一条命令完成:依赖安装 -> 基础验证 -> 打印启动命令。
|
|
# 三个命令是仓库统一入口;W-001 工程骨架任务负责替换为真实命令,并同步
|
|
# docs/03-tech-stack.md、docs/00-ai-start-here.md 与 docs/current-state.md。
|
|
|
|
set -euo pipefail
|
|
|
|
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
cd "$ROOT_DIR"
|
|
|
|
INSTALL_CMD="echo '[init] INSTALL_CMD 未替换:W-001 完成工程骨架后填入真实依赖同步命令' && exit 1"
|
|
VERIFY_CMD="echo '[init] VERIFY_CMD 未替换:W-001 完成后填入 corpus + Schema 回归等验证命令' && exit 1"
|
|
START_CMD="echo '[init] START_CMD 未替换:W-001 完成后填入构建/启动命令' && exit 1"
|
|
|
|
echo "==> 当前目录: $PWD"
|
|
|
|
echo "==> 同步依赖"
|
|
eval "$INSTALL_CMD"
|
|
|
|
echo "==> 运行基础验证"
|
|
eval "$VERIFY_CMD"
|
|
|
|
echo "==> 启动命令"
|
|
printf ' %s\n' "$START_CMD"
|
|
|
|
if [ "${RUN_START_COMMAND:-0}" = "1" ]; then
|
|
echo "==> 启动应用"
|
|
eval "$START_CMD"
|
|
exit $?
|
|
fi
|
|
|
|
echo "如果希望 init.sh 直接启动应用,请设置 RUN_START_COMMAND=1。"
|
|
echo "如果基础验证失败,先修复基线状态,不要在坏的起点上继续叠新功能。"
|