feat: enhance after-pack script to copy OpenClaw runtime dependencies

- Added a new script `bundle-openclaw.mjs` to bundle OpenClaw runtime dependencies.
- Updated `after-pack.cjs` to copy bundled OpenClaw runtime and its node_modules.
- Improved cleanup of unnecessary development files in node_modules.
- Adjusted paths for resources in the packaging process.

style: update loading indicator styles in ChatHistoryPanel

- Changed the border radius and padding for the loading indicator in ChatHistoryPanel.

fix: improve ProvidersSection to handle provider account syncing

- Added logic to sync model configuration to provider accounts.
- Introduced error handling and loading states during the sync process.
- Enhanced vendor resolution and account management logic.

fix: fallback session handling in chat store

- Implemented fallback session logic in loadSessions to ensure a valid session is always available on error.
This commit is contained in:
duanshuwen
2026-04-22 21:56:37 +08:00
parent 2f675afe47
commit ea1fd18e6f
22 changed files with 8947 additions and 94 deletions

View File

@@ -10,12 +10,13 @@
"prestart": "zx scripts/prepare-preinstalled-skills-dev.mjs",
"dev": "vite",
"start": "vite",
"build": "vite build && zx scripts/bundle-preinstalled-skills.mjs && electron-builder",
"build": "vite build && node scripts/bundle-openclaw.mjs && zx scripts/bundle-preinstalled-skills.mjs && electron-builder",
"build:vite": "vite build",
"test": "vitest run",
"smoke:agents": "node scripts/agents-runtime-smoke.mjs",
"bundle:openclaw": "node scripts/bundle-openclaw.mjs",
"bundle:preinstalled-skills": "zx scripts/bundle-preinstalled-skills.mjs",
"package": "vite build && zx scripts/bundle-preinstalled-skills.mjs",
"package": "vite build && node scripts/bundle-openclaw.mjs && zx scripts/bundle-preinstalled-skills.mjs",
"icons": "zx scripts/generate-icons.mjs",
"uv:download": "zx scripts/download-bundled-uv.mjs",
"uv:download:mac": "zx scripts/download-bundled-uv.mjs --platform=mac",
@@ -69,6 +70,7 @@
"fs-extra": "^11.2.0",
"jsdom": "^29.0.2",
"openapi-ts-request": "^1.10.1",
"openclaw": "2026.4.15",
"png2icons": "^2.0.1",
"postcss": "^8.5.10",
"sharp": "^0.33.0",
@@ -142,10 +144,14 @@
"packageManager": "pnpm@10.22.0+sha512.bf049efe995b28f527fd2b41ae0474ce29186f7edcb3bf545087bd61fbbebb2bf75362d1307fda09c2d288e1e499787ac12d4fcb617a974718a6051f2eee741c",
"pnpm": {
"onlyBuiltDependencies": [
"@discordjs/opus",
"electron",
"electron-winstaller",
"es5-ext",
"esbuild",
"koffi",
"node-llama-cpp",
"protobufjs",
"sharp"
]
}