MCPcopy Index your code
hub / github.com/QLHazyCoder/FlowPilot / exportSettingsBundle

Function exportSettingsBundle

background.js:938–951  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

936}
937
938async function exportSettingsBundle() {
939 const settings = await getPersistedSettings();
940 const bundle = {
941 schemaVersion: SETTINGS_EXPORT_SCHEMA_VERSION,
942 exportedAt: new Date().toISOString(),
943 extensionVersion: chrome.runtime.getManifest().version,
944 settings,
945 };
946
947 return {
948 fileName: buildSettingsExportFilename(),
949 fileContent: JSON.stringify(bundle, null, 2),
950 };
951}
952
953async function importSettingsBundle(configBundle) {
954 const state = await ensureManualInteractionAllowed('\u5bfc\u5165\u914d\u7f6e');

Callers 1

handleMessageFunction · 0.85

Calls 2

getPersistedSettingsFunction · 0.85

Tested by

no test coverage detected