Organize Seal modules and add guarded rule recoding

This commit is contained in:
gitea committed 2026-10-13 02:24:41 +00:00
1 parent f788f9c6db
commit 8c7cb219a0
65 files changed
+837 -131

No files matched your search

+8
View File
@@ -61,6 +61,14 @@ describe("extractHelpRequest", () => {
});
describe("renderHelp", () => {
test("explains both recode phases without exposing internal activation timing", () => {
const help = renderHelp(["rules", "recode"]);
expect(help).toContain("一次性凭证");
expect(help).toContain("另一次调用");
expect(help).toContain("不执行重排");
expect(help).not.toContain("500");
expect(help).not.toContain("--confirm-code");
});
test("renders global help when target is empty", () => {
const help = renderHelp([]);
expect(help).toContain("seal-use CLI");