fix: 修复微信插件编译错误并添加缺失依赖

- 添加 zod 和 silk-wasm 依赖
- 修复 clearStaleAccountsForUserId 导入错误(函数不存在)
- 修复 TypeScript cause 属性类型问题
- 修复 channel.ts 中的模块导入问题
- 更新 weixinGateway.ts 添加 .js 扩展名支持 ES 模块
- 更新编译脚本使用 bundler 模式

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
zyh
2026-03-30 07:41:05 +00:00
parent 77019ec050
commit 754f67d433
6 changed files with 429 additions and 20 deletions

View File

@@ -42,7 +42,7 @@ cat > "$WEIXIN_PLUGIN_DIR/tsconfig.json" << 'EOF'
"target": "ES2020",
"module": "ESNext",
"lib": ["ES2020"],
"moduleResolution": "node",
"moduleResolution": "bundler",
"esModuleInterop": true,
"skipLibCheck": true,
"strict": false,