feat(openapi): 引入双层 OpenAPI 规范管理 (原始下游 & 包装层工具) 并升级版本至 v0.2.2
🚀 Release / 🚀 Build & Publish Multi-Platform Binaries (push) Has been cancelled

This commit is contained in:
gitea committed 2026-08-27 11:29:32 +08:00
1 parent 2dfcf67b00
commit b13959451a
21 files changed
+1435 -12

No files matched your search

+14 -1
View File
@@ -54,7 +54,16 @@ skillContent = skillContent.replace(/# hose-use \(v[\d.]+\)/g, `# hose-use (v${n
writeFileSync(skillPath, skillContent);
console.log("✓ Updated skills/hose-use/SKILL.md");
// 5. Sync to global ~/.agents/skills/hose-use/ if present
// 5. openapi/openapi.yaml
const openapiPath = join(ROOT, "openapi", "openapi.yaml");
if (existsSync(openapiPath)) {
let openapiContent = readFileSync(openapiPath, "utf-8");
openapiContent = openapiContent.replace(/version: [\d.]+/g, `version: ${nextVersion}`);
writeFileSync(openapiPath, openapiContent);
console.log("✓ Updated openapi/openapi.yaml");
}
// 6. Sync to global ~/.agents/skills/hose-use/ if present
const globalSkillDir = join(process.env.HOME || "", ".agents", "skills", "hose-use");
const { existsSync, cpSync } = await import("node:fs");
if (existsSync(globalSkillDir)) {
@@ -62,6 +71,10 @@ if (existsSync(globalSkillDir)) {
console.log("✓ Synchronized ~/.agents/skills/hose-use/");
}
// 7. Rebuild OpenAPI bundles
console.log("==> Rebuilding OpenAPI bundles...");
execSync("bun run openapi:all", { cwd: ROOT, stdio: "inherit" });
console.log("\n🎉 Successfully bumped version to " + nextVersion + "!");
console.log("\nNext steps to publish:");
console.log(` 1. Update CHANGELOG.md (if exists)`);