Loading...
Loading...
Launch the read-only webnovel management panel to view project status, entity graph, and chapter content.
npx skill4agent add lingfengqaq/webnovel-writer webnovel-dashboard/api/story-runtime/health.webnovel/export WORKSPACE_ROOT="${CLAUDE_PROJECT_DIR:-$PWD}"
if [ -z "${CLAUDE_PLUGIN_ROOT}" ] || [ ! -d "${CLAUDE_PLUGIN_ROOT}/dashboard" ]; then
echo "ERROR: 未找到 dashboard 模块: ${CLAUDE_PLUGIN_ROOT}/dashboard" >&2
exit 1
fi
export DASHBOARD_DIR="${CLAUDE_PLUGIN_ROOT}/dashboard"
export SCRIPTS_DIR="${CLAUDE_PLUGIN_ROOT}/scripts"export PROJECT_ROOT="$(python "${SCRIPTS_DIR}/webnovel.py" --project-root "${WORKSPACE_ROOT}" where)"
echo "项目路径: ${PROJECT_ROOT}"PROJECT_ROOTif [ -n "${PYTHONPATH:-}" ]; then
export PYTHONPATH="${CLAUDE_PLUGIN_ROOT}:${PYTHONPATH}"
else
export PYTHONPATH="${CLAUDE_PLUGIN_ROOT}"
fi
if [ ! -f "${DASHBOARD_DIR}/frontend/dist/index.html" ]; then
echo "ERROR: 缺少前端构建产物 ${DASHBOARD_DIR}/frontend/dist/index.html(dist 应随插件打包,确认插件完整安装)" >&2
exit 1
fipython -m pip install -r "${DASHBOARD_DIR}/requirements.txt"python -m dashboard.server --project-root "${PROJECT_ROOT}"--no-browser--port 9000/api/story-runtime/health/api/preflight| Fault | Recovery Method |
|---|---|
| Missing dependencies reported during startup | Manually run |
Frontend | Confirm the plugin is fully installed; dist should be packaged with the plugin |
| Project root resolution failed | Check if |
| Port occupied | Use |
| Blank page/missing data | Confirm there are data files like state.json, index.db under |
PROJECT_ROOT