feat(electron-shell): 启动链路修复与执行/配置收口插件侧

- 启动链路 P1-P7 修复:预算对齐、完成事件推送、端口占用提示、前端阶段文案接管
- 静态缓存按 IS_FROZEN 区分开发/打包态,bootPhaseOwned 竞态修复
- 一键执行与参数配置统一收口到插件界面,定时任务引用 config_id
- 环境包迁移到 %LOCALAPPDATA%\37duAutomation\python-env,重装零解压
- shell-updater:缓存包 sha256 校验、静默升级后自动拉起新版、自动清理旧安装包
- after-pack 钩子生成 shell.version 修复打包态版本识别
- 插件 xq0031/xq0045 迁移至 plugins/XQ0001-0100/ 号段分桶中文目录
This commit is contained in:
2026-09-28 14:20:35 +08:00
parent f3311339e5
commit dbb05e6ab3
55 changed files with 1426 additions and 4280 deletions
@@ -15,6 +15,11 @@ export async function fetchMeta() {
return j('/api/meta')
}
// 启动状态(启动页展示当前步骤,无需登录)
export async function getBootStatus() {
return j('/api/boot/status')
}
export async function syncPlugins() {
return j('/api/plugins/sync', { method: 'POST' })
}
@@ -72,6 +77,17 @@ export async function installChrome() {
return j('/api/chrome/install', { method: 'POST' })
}
// ===== 环境包(便携 Python 运行时) =====
export async function getEnvStatus() {
return j('/api/env/status')
}
export async function syncEnv() {
return j('/api/env/sync', { method: 'POST' })
}
export async function rollbackEnv() {
return j('/api/env/rollback', { method: 'POST' })
}
export async function loginPlatform(id) {
return j(`/api/platforms/${id}/login`, { method: 'POST' })
}