chore: 统一对外接口规范目录为 hose-open-api
将 specs/openapi 迁移为 specs/hose-open-api,与内部接口规范目录命名对齐。 同步 README、规范打包、版本更新与版本一致性检查,以及发布验证夹具。 验证:929 项测试通过,类型检查和版本检查通过;打包 JSON 字节内容不变。
This commit is contained in:
1 parent
3d35fca558
commit
b1e9c7eed3
13 files changed
+11
-11
No files matched your search
@@ -22,11 +22,11 @@ function repository() {
|
||||
git("config", "core.hooksPath", "/dev/null");
|
||||
git("config", "commit.gpgsign", "false");
|
||||
git("config", "tag.gpgsign", "false");
|
||||
for (const dir of ["skills/hose-use", "specs/openapi", ".zcode-plugin"]) mkdirSync(join(root, dir), { recursive: true });
|
||||
for (const dir of ["skills/hose-use", "specs/hose-open-api", ".zcode-plugin"]) mkdirSync(join(root, dir), { recursive: true });
|
||||
writeFileSync(join(root, "package.json"), '{"version":"1.0.0"}\n');
|
||||
writeFileSync(join(root, "README.md"), "# hose-use (v1.0.0)\n");
|
||||
writeFileSync(join(root, "skills/hose-use/SKILL.md"), "version: 1.0.0\n# hose-use (v1.0.0)\n");
|
||||
writeFileSync(join(root, "specs/openapi/openapi.yaml"), "info:\n version: 1.0.0\n");
|
||||
writeFileSync(join(root, "specs/hose-open-api/openapi.yaml"), "info:\n version: 1.0.0\n");
|
||||
writeFileSync(join(root, ".zcode-plugin/plugin.json"), '{"version":"1.0.0"}\n');
|
||||
git("add", ".");
|
||||
git("commit", "-m", "fixture");
|
||||
@@ -97,7 +97,7 @@ describe("release preparation and publication guards", () => {
|
||||
expect(rebuilt).toBe(true);
|
||||
expect(f.version()).toBe("1.0.1");
|
||||
expect(readFileSync(join(f.root, "skills/hose-use/SKILL.md"), "utf8")).toContain("version: 1.0.1");
|
||||
expect(parse(readFileSync(join(f.root, "specs/openapi/openapi.yaml"), "utf8")).info.version).toBe("1.0.1");
|
||||
expect(parse(readFileSync(join(f.root, "specs/hose-open-api/openapi.yaml"), "utf8")).info.version).toBe("1.0.1");
|
||||
}, 60_000);
|
||||
|
||||
test("an existing release tag cannot be reused during bump", () => {
|
||||
|
||||
Reference in new issue
Block a user