feat: move terminal settings, look and ssh tools into ssh-terminal plugin

This commit is contained in:
LukeGus committed 2026-09-29 02:38:37 -05:00
1 parent ffa872ebd3
commit d9bba10612
242 files changed
+25071 -7207

No files matched your search

@@ -70,18 +70,10 @@ describe("sudoPasswordOf", () => {
...extra,
}) as MetricsHost;
it("prefers the host's sudo password", () => {
expect(
sudoPasswordOf(
host({ sudoPassword: "a", terminalConfig: { sudoPassword: "b" } }),
),
).toBe("a");
});
it("falls back to the terminal config", () => {
expect(
sudoPasswordOf(host({ terminalConfig: { sudoPassword: "b" } })),
).toBe("b");
it("reads the sudo password core resolved for the host", () => {
// Core's resolver already folds a 2.8 terminal_config copy into it.
expect(sudoPasswordOf(host({ sudoPassword: "a" }))).toBe("a");
expect(sudoPasswordOf(host({ sudoPassword: "" }))).toBeUndefined();
expect(sudoPasswordOf(host({}))).toBeUndefined();
});
});