From 1209164cc811973ce14dd1746d2bc4ed9495f830 Mon Sep 17 00:00:00 2001 From: yunyingk Date: Fri, 16 Oct 2026 15:53:06 +0800 Subject: [PATCH] Release v0.11.10: Automated release bump --- .zcode-plugin/plugin.json | 2 +- CHANGELOG.md | 10 ++++++++ package.json | 2 +- scripts/release.ts | 53 +++++++++++++++++++++++++++++++-------- skills/seal-use/SKILL.md | 6 ++--- 5 files changed, 57 insertions(+), 16 deletions(-) diff --git a/.zcode-plugin/plugin.json b/.zcode-plugin/plugin.json index 5dbd062..0eba5f7 100644 --- a/.zcode-plugin/plugin.json +++ b/.zcode-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "seal-use", - "version": "0.11.9", + "version": "0.11.10", "description": "Seal Use tenant operations: approval-run diagnosis, minimal rule remediation, delegation links, Hose/合思 authorization, users, rules, billing, and search.", "author": { "name": "yingqing" diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ce05e6..7d3de2d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.11.10] - 2026-10-16 + +### Added +- Merge pull request #245 from yunyingk/mac15/report-date-range-and-record-id-review +- Add report ledger workflow, refine terminology and codify skill discipline +- Refine report pipeline to support date ranges and recordId reviews +- Merge pull request #244 from yunyingk/mac15/refine-hose-auth-doc +- Refine hose auth guidelines and remove hardcoded personnel names + + ## [0.11.9] - 2026-10-16 ### Added diff --git a/package.json b/package.json index 221b5a2..ac4a0a0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "seal-use", - "version": "0.11.9", + "version": "0.11.10", "private": true, "description": "Seal tenant operations toolkit: approval-run diagnosis, rule remediation, Hose/合思 auth, plus a CLI and an optional MCP server.", "license": "MIT", diff --git a/scripts/release.ts b/scripts/release.ts index 80c4609..97f5591 100644 --- a/scripts/release.ts +++ b/scripts/release.ts @@ -48,19 +48,49 @@ console.log(`🚀 Seal Use 自动化发布向导: v${currentVersion} -> v${nextV if (isDryRun) console.log("🔍 [DRY RUN 预检演练模式 - 不会执行真实推送或合并]"); console.log("========================================================\n"); -function run(cmd: string, options: { cwd?: string; stdio?: "inherit" | "pipe" | "ignore" } = {}) { +function run(cmd: string, options: { cwd?: string; stdio?: "inherit" | "pipe" | "ignore"; env?: NodeJS.ProcessEnv; retries?: number } = {}) { const stdio = options.stdio ?? "inherit"; - try { - const out = execSync(cmd, { cwd: options.cwd ?? ROOT, encoding: "utf-8", stdio }); - return out ? out.toString().trim() : ""; - } catch (err) { - const errorMsg = err instanceof Error ? err.message : String(err); - throw new Error(`执行命令失败: ${cmd}\n${errorMsg}`); + const maxRetries = options.retries ?? (cmd.includes("push") || cmd.includes("gh ") || cmd.includes("fetch") ? 3 : 0); + for (let attempt = 0; attempt <= maxRetries; attempt++) { + try { + const out = execSync(cmd, { cwd: options.cwd ?? ROOT, encoding: "utf-8", stdio, env: options.env }); + return out ? out.toString().trim() : ""; + } catch (err) { + if (attempt < maxRetries) { + console.warn(`⚠️ 网络命令遭遇瞬时抖动,2 秒后重试 (${attempt + 1}/${maxRetries}): ${cmd}`); + spawnSync("sleep", ["2"], { stdio: "ignore" }); + continue; + } + const errorMsg = err instanceof Error ? err.message : String(err); + throw new Error(`执行命令失败: ${cmd}\n${errorMsg}`); + } } + return ""; } -function runCapture(cmd: string) { - return execSync(cmd, { cwd: ROOT, encoding: "utf-8" }).trim(); +const CLEAN_TEST_ENV: NodeJS.ProcessEnv = { + ...process.env, + http_proxy: "", + https_proxy: "", + all_proxy: "", + HTTP_PROXY: "", + HTTPS_PROXY: "", + ALL_PROXY: "" +}; + +function runCapture(cmd: string, retries = (cmd.includes("gh ") || cmd.includes("git ") ? 3 : 0)) { + for (let attempt = 0; attempt <= retries; attempt++) { + try { + return execSync(cmd, { cwd: ROOT, encoding: "utf-8" }).trim(); + } catch (err) { + if (attempt < retries) { + spawnSync("sleep", ["2"], { stdio: "ignore" }); + continue; + } + throw err; + } + } + return ""; } /** @@ -127,7 +157,7 @@ console.log("✓ 前置检查通过!\n"); if (isDryRun) { console.log("🧪 正在模拟运行测试与编译检查..."); run("bun run check"); - run("bun test"); + run("bun test", { env: CLEAN_TEST_ENV }); console.log("\n✅ [DRY RUN] 预检演练全部通过!真实发布将执行:"); console.log(` 1. git switch -c ${releaseBranch}`); console.log(` 2. bun run bump ${nextVersion}`); @@ -141,6 +171,7 @@ if (isDryRun) { // 3. Create release branch console.log(`🌿 步骤 2/8: 创建并切换至发布分支: ${releaseBranch}...`); +try { execSync(`git branch -D ${releaseBranch}`, { cwd: ROOT, stdio: "ignore" }); } catch {} run(`git switch -c ${releaseBranch}`); let success = false; @@ -170,7 +201,7 @@ try { // 5. Test and build validation console.log("\n🧪 步骤 4/8: 执行全量测试与类型安全校验..."); run("bun run check"); - run("bun test"); + run("bun test", { env: CLEAN_TEST_ENV }); console.log("✓ 本地测试与类型验证通过!\n"); // 6. Commit and Push diff --git a/skills/seal-use/SKILL.md b/skills/seal-use/SKILL.md index f99fc89..55ef0c3 100644 --- a/skills/seal-use/SKILL.md +++ b/skills/seal-use/SKILL.md @@ -1,9 +1,9 @@ --- name: seal-use -description: "v0.11.9: Use for Seal Use enterprise onboarding, Hose/合思 or Seal-native authentication, approval operations, diagnosis, simulation, rules, users, configuration, and search." +description: "v0.11.10: Use for Seal Use enterprise onboarding, Hose/合思 or Seal-native authentication, approval operations, diagnosis, simulation, rules, users, configuration, and search." metadata: - version: 0.11.9 - short-description: Seal tenant and Hose approval automation (v0.11.9) + version: 0.11.10 + short-description: Seal tenant and Hose approval automation (v0.11.10) --- # Seal Use