feat: host lock api so a plugin can load hosts from a config file (#1581)

This commit is contained in:
LukeGus committed 2026-10-19 12:02:05 -05:00
1 parent 1cdbfc674c
commit 2c785fe35b
34 files changed
+1388 -52

No files matched your search

+9
View File
@@ -37,6 +37,13 @@ export interface JumpHost {
hostId: number;
}
/** The plugin that manages a host, from ctx.hosts.locks. */
export interface HostLock {
pluginId: string;
pluginName: string;
note: string | null;
}
export type Host = {
id: number;
name: string;
@@ -116,6 +123,8 @@ export type Host = {
ownerUsername?: string;
/** A read-only copy of a host shared with the linked account. */
sharedCopy?: boolean;
/** Set when a plugin manages this host: read only, pins and order still work. */
lock?: HostLock;
/** Desktop only: kept on this device, never synced to the server. */
localOnly?: boolean;