feat: add auth extension points and one ssh connect pipeline

This commit is contained in:
LukeGus committed 2026-09-23 00:44:33 -05:00
1 parent d3c209af13
commit d774df8b41
159 files changed
+43243 -7451

No files matched your search

@@ -1,5 +1,5 @@
import type { Client } from "ssh2";
import { describe, it, expect, vi } from "vitest";
import { afterAll, beforeAll, describe, it, expect, vi } from "vitest";
import {
supportsMetrics,
isTcpPingEnabled,
@@ -7,8 +7,17 @@ import {
tcpPingThroughJumpHost,
} from "../../src/backend/helpers.js";
import { createConnectionLog } from "../../../../src/backend/hosts/connection-log.js";
import { createFakeContext } from "@termix/plugin-sdk/testing";
import { setPluginSsh } from "../../src/backend/ssh.js";
describe("supportsMetrics", () => {
beforeAll(() => {
setPluginSsh(createFakeContext().ctx.ssh);
});
afterAll(() => {
setPluginSsh(null);
});
it("supports plain ssh hosts", () => {
expect(
supportsMetrics({ connectionType: "ssh", authType: "password" }),