fix(desktop): wails3 绑定 .js→.ts + 实机验证通过

wails3 build 重新生成绑定为 TypeScript(比 standalone generate 的 .js 更规范,
tsconfig allowJs 保留以兼容两种)。整体迁移实机验证:
- wails3 build 全过(前端 build → 绑定生成 → go build -tags production 原生编译 → 打包)
- 原生二进制 bin/sundynix_desktop 启动,窗口开、进程稳、日志无 error/panic
- app 前端加载后自动登录(持久态)并打通后端:gateway 收到 /spaces/current、
  /me/spaces、/me/tenants、/stats/overview、/runs、/health 一整串鉴权请求全 200
- runtime 版本号不一致(npm alpha.97 vs CLI alpha2.117)未导致问题

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Blizzard
2026-07-14 10:55:21 +08:00
parent 1f487c3163
commit 11bf7d2756
3 changed files with 6 additions and 20 deletions
@@ -1,4 +1,3 @@
// @ts-check
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
@@ -11,52 +10,40 @@
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore: Unused imports
import { Call as $Call, CancellablePromise as $CancellablePromise, Create as $Create } from "@wailsio/runtime";
import { Call as $Call, CancellablePromise as $CancellablePromise } from "@wailsio/runtime";
/**
* Notify best-effortmacOS osascript
* @param {string} title
* @param {string} body
* @returns {$CancellablePromise<void>}
*/
export function Notify(title, body) {
export function Notify(title: string, body: string): $CancellablePromise<void> {
return $Call.ByID(2739682372, title, body);
}
/**
* OpenReport Word/Pages/WPS
* @param {string} url
* @param {string} filename
* @returns {$CancellablePromise<void>}
*/
export function OpenReport(url, filename) {
export function OpenReport(url: string, filename: string): $CancellablePromise<void> {
return $Call.ByID(802670751, url, filename);
}
/**
* Ping Go
* @returns {$CancellablePromise<string>}
*/
export function Ping() {
export function Ping(): $CancellablePromise<string> {
return $Call.ByID(1003072145);
}
/**
* ReadLocalFile I/O
* @param {string} path
* @returns {$CancellablePromise<string>}
*/
export function ReadLocalFile(path) {
export function ReadLocalFile(path: string): $CancellablePromise<string> {
return $Call.ByID(4016121990, path);
}
/**
* SaveReportAs "另存为" url .docx
*
* @param {string} url
* @param {string} filename
* @returns {$CancellablePromise<string>}
*/
export function SaveReportAs(url, filename) {
export function SaveReportAs(url: string, filename: string): $CancellablePromise<string> {
return $Call.ByID(1437856486, url, filename);
}
@@ -1,4 +1,3 @@
// @ts-check
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT