d93b07f0a9
- Electron + React + TypeScript 桌面应用 - SSH 连接管理(ssh2) - AI Agent ReAct 循环(OpenAI 兼容 API) - 5 个内置工具(命令执行、文件读写、目录列表、系统信息) - 6 个模型预设(GPT-4o、DeepSeek、通义千问、豆包、Ollama、LM Studio) - 自定义模型支持 - 高风险工具审批流 - 无边框窗口 + 自定义标题栏 - AI 对话区右侧布局 - xterm.js 终端仿真 - 配置持久化(electron-store)
2.3 KiB
2.3 KiB
> ssh-ai-agent@0.1.0 dist
> npm run build && electron-builder --win --x64 --config.npmRebuild=false
> ssh-ai-agent@0.1.0 build
> npm run build:main && npm run build:renderer
> ssh-ai-agent@0.1.0 build:main
> tsc -p tsconfig.main.json
> ssh-ai-agent@0.1.0 build:renderer
> vite build
npm.cmd : The CJS build of Vite's Node API is deprecated. See https://vite
.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
[39m
所在位置 行:1 字符: 163
+ ... = "false"; & 'C:\Program Files\nodejs\npm.cmd' run dist -- --win --x ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (The CJS bu...e details.
:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
vite v5.4.21 building for production...
transforming...
(node:27320) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///D:/
test_project/src/renderer/postcss.config.js is not specified and it doesn't par
se as CommonJS.
Reparsing as ES module because module syntax was detected. This incurs a perfor
mance overhead.
To eliminate this warning, add "type": "module" to \\?\D:\test_project\package.
json.
(Use `node --trace-warnings ...` to show where the warning was created)
鉁?[39m 1528 modules transformed.
rendering chunks...
computing gzip size...
../../renderer/index.html 0.44 kB 鈹?gzip: 0.33 kB
../../renderer/assets/index-qN8e0yep.css 18.94 kB 鈹?gzip: 5.26 kB
../../renderer/assets/index-2IgjmCyK.js 487.67 kB 鈹?gzip: 133.95 kB
鉁?built in 8.70s
鈥?electron-builder version=24.13.3 os=10.0.19045
鈥?loaded configuration file=package.json ("build" field)
鈥?skipped dependencies rebuild reason=npmRebuild is set to false
鈥?packaging platform=win32 arch=x64 electron=30.5.1 appOutDir=release\win-unpacked
鈥?rcedit skipped (sandbox mode) file=鏅鸿兘SSH缁堢.exe
鈥?building target=nsis file=release\鏅鸿兘SSH缁堢-0.1.0-x64.exe archs=x64 oneClick=false perMachine=false
鈥?building block map blockMapFile=release\鏅鸿兘SSH缁堢-0.1.0-x64.exe.blockmap