fix(setup): recognize Omarchy as an Arch-based host (#1662)

This commit is contained in:
Luis
2026-10-11 09:23:39 +08:00
committed by GitHub
parent 69a8b3a954
commit ad41afa2b5
7 changed files with 18 additions and 11 deletions
+1 -1
View File
@@ -463,7 +463,7 @@ vendor-defined limits, and a paid license is optional. REA reuses any detected
installation and preserves Hopper during uninstall. installation and preserves Hopper during uninstall.
The supported native host baseline is macOS 12+, Ubuntu 24.04+, Fedora 41+, The supported native host baseline is macOS 12+, Ubuntu 24.04+, Fedora 41+,
Nobara 44+, 64-bit Arch Linux, or CachyOS. Ghidra and IDA have their own provider-specific Nobara 44+, 64-bit Arch Linux, CachyOS, or Omarchy. Ghidra and IDA have their own provider-specific
host requirements; Windows Ghidra uses the [experimental P0 boundary](windows-ghidra-p0.md). host requirements; Windows Ghidra uses the [experimental P0 boundary](windows-ghidra-p0.md).
On macOS, approved setup downloads the official DMG, checks its published size On macOS, approved setup downloads the official DMG, checks its published size
+1 -1
View File
@@ -22,7 +22,7 @@ describe("doctor", () => {
), ),
).toEqual({ ).toEqual({
node: `Install ${SUPPORTED_NODE_VERSION_PROSE}.`, node: `Install ${SUPPORTED_NODE_VERSION_PROSE}.`,
host: "REA supports macOS 12+, Ubuntu 24.04+, Fedora 41+, Nobara 44+, 64-bit Arch Linux, CachyOS, and the experimental Windows x64 Ghidra P0 boundary.", host: "REA supports macOS 12+, Ubuntu 24.04+, Fedora 41+, Nobara 44+, 64-bit Arch Linux, CachyOS, Omarchy, and the experimental Windows x64 Ghidra P0 boundary.",
hopper: "Run rea setup to install Hopper, or set HOPPER_LAUNCHER_PATH.", hopper: "Run rea setup to install Hopper, or set HOPPER_LAUNCHER_PATH.",
target: "Supply a readable local app or program path.", target: "Supply a readable local app or program path.",
}); });
+1 -1
View File
@@ -113,7 +113,7 @@ const hostCheck = async (host: DoctorHost): Promise<DoctorCheck> => {
: `${linuxDistribution.id} ${linuxDistribution.versionId ?? "unknown"}`); : `${linuxDistribution.id} ${linuxDistribution.versionId ?? "unknown"}`);
return check("host", supported, detail, { return check("host", supported, detail, {
remediation: remediation:
"REA supports macOS 12+, Ubuntu 24.04+, Fedora 41+, Nobara 44+, 64-bit Arch Linux, CachyOS, and the experimental Windows x64 Ghidra P0 boundary.", "REA supports macOS 12+, Ubuntu 24.04+, Fedora 41+, Nobara 44+, 64-bit Arch Linux, CachyOS, Omarchy, and the experimental Windows x64 Ghidra P0 boundary.",
classification: "unsupported_host", classification: "unsupported_host",
}); });
}; };
+12 -6
View File
@@ -60,12 +60,16 @@ describe("Linux Hopper host classification", () => {
['ID=nobara\nVERSION_ID="44"\nID_LIKE="rhel centos fedora"\n', "rpm"], ['ID=nobara\nVERSION_ID="44"\nID_LIKE="rhel centos fedora"\n', "rpm"],
["ID=arch\n", "arch"], ["ID=arch\n", "arch"],
["ID=cachyos\nID_LIKE=arch\n", "arch"], ["ID=cachyos\nID_LIKE=arch\n", "arch"],
] as const)("accepts an official Hopper distribution", (document, family) => { ['ID=omarchy\nID_LIKE=arch\nVERSION_ID="4.0.4"\n', "arch"],
expect(parseLinuxDistribution(document)).toMatchObject({ ] as const)(
packageFamily: family, "accepts an explicitly supported distribution",
supported: true, (document, family) => {
}); expect(parseLinuxDistribution(document)).toMatchObject({
}); packageFamily: family,
supported: true,
});
},
);
it("detects unresolved or loader-reported shared libraries", () => { it("detects unresolved or loader-reported shared libraries", () => {
expect( expect(
@@ -93,6 +97,8 @@ describe("Linux Hopper host classification", () => {
'ID=debian\nVERSION_ID="13"\nID_LIKE=debian\n', 'ID=debian\nVERSION_ID="13"\nID_LIKE=debian\n',
"ID=manjaro\nID_LIKE=arch\n", "ID=manjaro\nID_LIKE=arch\n",
"ID=garuda\nID_LIKE=arch\n", "ID=garuda\nID_LIKE=arch\n",
"ID=omarchy\n",
"ID=omarchy\nID_LIKE=debian\n",
])("rejects unsupported vendor/version combinations", (document) => { ])("rejects unsupported vendor/version combinations", (document) => {
expect(parseLinuxDistribution(document).supported).toBe(false); expect(parseLinuxDistribution(document).supported).toBe(false);
}); });
+1
View File
@@ -154,6 +154,7 @@ export const parseLinuxDistribution = (text: string): LinuxDistribution => {
packageFamily !== undefined && packageFamily !== undefined &&
(id === "arch" || (id === "arch" ||
id === "cachyos" || id === "cachyos" ||
(id === "omarchy" && packageFamily === "arch") ||
(id === "ubuntu" && versionAtLeast(versionId, 24)) || (id === "ubuntu" && versionAtLeast(versionId, 24)) ||
(id === "fedora" && versionAtLeast(versionId, 41)) || (id === "fedora" && versionAtLeast(versionId, 41)) ||
(id === "nobara" && versionAtLeast(versionId, 44))); (id === "nobara" && versionAtLeast(versionId, 44)));
+1 -1
View File
@@ -267,7 +267,7 @@ describe("setup scoped readiness", () => {
expect(result.status).toBe("needs_human"); expect(result.status).toBe("needs_human");
expect(host.hopperInstalls).toBe(0); expect(host.hopperInstalls).toBe(0);
expect(result.remediation).toBe( expect(result.remediation).toBe(
"Automated Hopper setup supports Ubuntu 24.04+, Fedora 41+, Nobara 44+, 64-bit Arch Linux, and CachyOS; configure an existing supported provider instead.", "Automated Hopper setup supports Ubuntu 24.04+, Fedora 41+, Nobara 44+, 64-bit Arch Linux, CachyOS, and Omarchy; configure an existing supported provider instead.",
); );
}); });
+1 -1
View File
@@ -90,7 +90,7 @@ export const hostRemediation = async (
: undefined; : undefined;
} }
if ((await host.linuxDistribution())?.supported === true) return undefined; if ((await host.linuxDistribution())?.supported === true) return undefined;
return "Automated Hopper setup supports Ubuntu 24.04+, Fedora 41+, Nobara 44+, 64-bit Arch Linux, and CachyOS; configure an existing supported provider instead."; return "Automated Hopper setup supports Ubuntu 24.04+, Fedora 41+, Nobara 44+, 64-bit Arch Linux, CachyOS, and Omarchy; configure an existing supported provider instead.";
}; };
/** Production setup effects for Hopper, agent configuration, and the canonical skill directory. */ /** Production setup effects for Hopper, agent configuration, and the canonical skill directory. */