chore: release v0.99.0

This commit is contained in:
coso
2026-03-30 14:31:05 +08:00
parent 149e63c2f7
commit ae7b3163a9
246 changed files with 26175 additions and 13109 deletions
+7
View File
@@ -9,6 +9,7 @@ const DEFAULTS = {
intervalMs: 1_000,
launchUrl: "about:blank",
openWindow: false,
headless: false,
streamMode: "both",
};
@@ -29,6 +30,7 @@ Lime Browser Runtime Smoke
--interval-ms <ms> 健康检查轮询间隔,默认 1000
--launch-url <url> 启动浏览器会话的 URL,默认 about:blank
--open-window 显式打开浏览器窗口
--headless 以无界面浏览器会话执行 smoke,避免弹出空白 Chrome
--stream-mode <mode> events | frames | both,默认 both
-h, --help 显示帮助
`);
@@ -73,6 +75,10 @@ function parseArgs(argv) {
options.openWindow = true;
continue;
}
if (arg === "--headless") {
options.headless = true;
continue;
}
if (arg === "--help" || arg === "-h") {
printHelp();
process.exit(0);
@@ -179,6 +185,7 @@ async function main() {
profile_key: profileKey,
url: options.launchUrl,
open_window: options.openWindow,
headless: options.headless,
stream_mode: options.streamMode,
},
});
+5 -1
View File
@@ -340,7 +340,11 @@ async function main() {
console.log(`[Smoke] 开始校验 session: ${args.sessionId}`);
await invoke("get_server_status");
const diagnostics = await invoke("get_server_diagnostics");
assert(
diagnostics && typeof diagnostics.running === "boolean",
"get_server_diagnostics 返回格式异常",
);
console.log("[Smoke] Dev Bridge 可用");
const runState = await waitTerminalState(
+6 -1
View File
@@ -18,6 +18,7 @@ const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const rootDir = path.resolve(__dirname, "..");
const npmCommand = process.platform === "win32" ? "npm.cmd" : "npm";
const LIME_SKIP_STARTUP_WINDOW_REVEAL = "LIME_SKIP_STARTUP_WINDOW_REVEAL";
const state = {
child: null,
@@ -155,7 +156,10 @@ function startHeadlessTauri() {
state.child = spawn(npmCommand, ["run", "tauri:dev:headless"], {
cwd: rootDir,
stdio: "inherit",
env: process.env,
env: {
...process.env,
[LIME_SKIP_STARTUP_WINDOW_REVEAL]: "1",
},
detached: process.platform !== "win32",
});
}
@@ -367,6 +371,7 @@ async function main() {
String(options.timeoutMs),
"--interval-ms",
String(options.intervalMs),
"--headless",
],
"smoke:browser-runtime",
);