mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-28 14:15:24 +00:00
feat: type the plugin host record, move plugin strings out of core and add lint checks
This commit is contained in:
1 parent
bba06f7ff6
commit
b8bbcd2196
626 files changed
+23884
-4590
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import type { Client } from "ssh2";
|
||||
import type { PluginHostUpdateInput } from "@termix/plugin-sdk/backend";
|
||||
import { execCommand } from "@termix/plugin-sdk/host-commands";
|
||||
import { getTool } from "./catalog.js";
|
||||
import type { ToolDeps } from "./types.js";
|
||||
@@ -93,7 +94,7 @@ export async function applyProposal(
|
||||
const hostId = requireNumber(payload.hostId, "hostId");
|
||||
const changes = (payload.changes ?? {}) as Record<string, unknown>;
|
||||
|
||||
const updates: Record<string, unknown> = {};
|
||||
const updates: PluginHostUpdateInput = {};
|
||||
if (changes.name !== undefined)
|
||||
updates.name = requireString(changes.name, "name");
|
||||
if (changes.ip !== undefined)
|
||||
|
||||
Reference in new issue
Block a user