Fix architecture review findings and align CLI metadata

This commit is contained in:
gitea committed 2026-10-17 20:17:06 +08:00
1 parent 780a4ba9c0
commit 50e4e492b4
83 files changed
+966 -792

No files matched your search

+5 -1
View File
@@ -1,5 +1,5 @@
import { describe, expect, test } from "bun:test";
import { existsSync, mkdtempSync, rmSync } from "node:fs";
import { existsSync, mkdtempSync, readFileSync, rmSync } from "node:fs";
import { tmpdir } from "node:os";
import { join } from "node:path";
import packageJson from "../../package.json" with { type: "json" };
@@ -37,6 +37,10 @@ describe("embedded-skill", () => {
expect(existsSync(join(tmp, "references", "enterprise-onboarding.md"))).toBe(true);
expect(existsSync(join(tmp, "references", "first-time-user.md"))).toBe(true);
expect(existsSync(join(tmp, "assets", "hose-curl-copy-as-curl.png"))).toBe(true);
expect([...res.files].sort()).toEqual([...EMBEDDED_SKILL_ALL_PATHS].sort());
for (const path of EMBEDDED_SKILL_ALL_PATHS) {
expect(readFileSync(join(tmp, path))).toEqual(readFileSync(join(import.meta.dir, "../../skills/seal-use", path)));
}
} finally {
rmSync(tmp, { recursive: true, force: true });
}