Files
writing-agent/start-app.bat
moranzhi ec474cb946 完善创作节点循环与等待态交互,并大幅打磨 Web 壳与会话运行时。
- 节点循环:配方开局直坐 DAG 第一步;验收后先问下一步意向,再确认开干并可钉编排参数;「按意见修改」只重跑当前节点。
- 询问分流:能力 opening 走说话面引导,可跳过追问按题干去重;追问与产物同轮挂载,避免拆成两段历史。
- 运行时:补强 revision 重跑、创作流程合并/进度指针、工具循环与 worker 执行;新增运行日志与 web:watch。
- 前端:统一等待态文案与底栏主按钮,完善询问卡/产物验收/呈现壳样式与交互。
- 同步世界模拟器模块提示、编排文档与相关测试。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-17 01:28:12 +08:00

58 lines
1.4 KiB
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
@echo off
if "%~1"=="" (
start "" wscript.exe "%~dp0start-app-hidden.vbs"
exit /b 0
)
chcp 65001 >nul
title Writing Agent - 桌面版
set PORT=23337
cd /d "%~dp0"
echo.
echo Writing Agent - 桌面版 (Electron)
echo --------------------------------
echo.
where node >nul 2>&1
if errorlevel 1 (
echo [错误] 未找到 Node.js请先安装: https://nodejs.org/
if not "%~1"=="_hidden" pause
exit /b 1
)
if not exist "node_modules\electron\" (
echo [提示] 首次运行,正在安装依赖(含 Electron可能较慢...
call npm install
if errorlevel 1 (
echo [错误] npm install 失败
if not "%~1"=="_hidden" pause
exit /b 1
)
echo.
)
echo [信息] 检查端口 %PORT% ...
for /f "tokens=5" %%a in ('netstat -ano ^| findstr ":%PORT% " ^| findstr "LISTENING"') do (
echo [信息] 结束占用端口的旧进程 PID=%%a
taskkill /F /PID %%a >nul 2>&1
)
if exist ".env" (
echo [信息] 将加载 .env由服务端读取
) else if exist ".env.example" (
echo [提示] 未找到 .env可复制 .env.example 并填入 API Key
)
echo [信息] 启动桌面窗口 http://localhost:%PORT%
echo [信息] 后端日志在 %USERPROFILE%\.writing-agent\logs\runtime.log
echo [信息] 显示控制台请用 start-app.bat console
echo [信息] F12 或 Ctrl+Shift+I 打开开发者工具,只有前端
echo [信息] 关闭窗口即停止服务
echo.
call npm run electron
if not "%~1"=="_hidden" pause