feat: enhance logging capabilities, implement runtime diagnostics, and update preinstalled skills metadata

This commit is contained in:
DEV_DSW
2026-04-27 17:00:51 +08:00
parent 90e02636c7
commit 2081f583e3
9 changed files with 354 additions and 24 deletions

View File

@@ -16,6 +16,12 @@ const projectAliases = {
function isMainProcessExternal(id: string): boolean {
if (!id || id.startsWith('\0')) return false;
if (id.startsWith('.') || id.startsWith('/') || /^[A-Za-z]:[\\/]/.test(id)) return false;
// Keep ws bundled into the Electron main chunk.
// The packaged app imports it directly from gateway runtime code,
// and relying on transitive/peer installation causes "Cannot find module 'ws'"
// in production builds.
if (id === 'ws' || id.startsWith('ws/')) return false;
// Project-specific aliases that should be bundled (not external)
const internalAliases = [