feat(snippets): bring back sharing, target hosts and drag reorder

This commit is contained in:
LukeGus committed 2026-09-28 20:34:51 -05:00
1 parent 796db8f0a8
commit 1fd89acd90
16 files changed
+1376 -53

No files matched your search

+5
View File
@@ -1293,6 +1293,9 @@ export interface MockContextOptions {
permissions?: string[];
/** Hosts ctx.hosts.list/get/checkAccess serve. See FakeContextOptions. */
hosts?: PluginHostSummary[];
/** Users and roles ctx.hosts.listUsers/listRoles serve. See FakeContextOptions. */
shareableUsers?: PluginShareableUser[];
shareableRoles?: PluginShareableRole[];
/** Other plugins' services. See FakeContextOptions. */
services?: Record<string, object>;
/** Hosts ctx.ssh.resolveHost serves. See FakeContextOptions. */
@@ -1361,6 +1364,8 @@ export function createMockCtx(
router: options.router,
permissions: options.permissions,
hosts: options.hosts,
shareableUsers: options.shareableUsers,
shareableRoles: options.shareableRoles,
sshHosts: options.sshHosts,
services: options.services,
protocolTargets: options.protocolTargets,