MCPcopy
hub / github.com/binaricat/Netcatty / SyncPayloadImporters

Interface SyncPayloadImporters

application/syncPayload.ts:184–191  ·  view source on GitHub ↗

Callbacks used by `applySyncPayload` to import data into local state.

Source from the content-addressed store, hash-verified

182
183/** Callbacks used by `applySyncPayload` to import data into local state. */
184interface SyncPayloadImporters {
185 /** Import vault data. Cloud sync excludes local-only known hosts by default. */
186 importVaultData: (jsonString: string) => void | Promise<void>;
187 /** Import port-forwarding rules (lives outside the vault hook). */
188 importPortForwardingRules?: (rules: PortForwardingRule[]) => void;
189 /** Called after synced settings have been written to localStorage. */
190 onSettingsApplied?: () => void;
191}
192
193// ---------------------------------------------------------------------------
194// Settings sync helpers

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected