opencode-copilot-account-switcher 0.13.5 → 0.13.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -111,15 +111,12 @@ export function readCommonSettingsStoreSync(options) {
|
|
|
111
111
|
export async function writeCommonSettingsStore(store, options) {
|
|
112
112
|
const file = options?.filePath ?? commonSettingsPath();
|
|
113
113
|
const normalized = normalizeCommonSettingsStore(store);
|
|
114
|
-
const persisted = {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
persisted.networkRetryEnabled = true;
|
|
121
|
-
if (normalized.experimentalSlashCommandsEnabled === false)
|
|
122
|
-
persisted.experimentalSlashCommandsEnabled = false;
|
|
114
|
+
const persisted = {
|
|
115
|
+
loopSafetyEnabled: normalized.loopSafetyEnabled,
|
|
116
|
+
loopSafetyProviderScope: normalized.loopSafetyProviderScope,
|
|
117
|
+
networkRetryEnabled: normalized.networkRetryEnabled,
|
|
118
|
+
experimentalSlashCommandsEnabled: normalized.experimentalSlashCommandsEnabled,
|
|
119
|
+
};
|
|
123
120
|
await fs.mkdir(path.dirname(file), { recursive: true });
|
|
124
121
|
await fs.writeFile(file, JSON.stringify(persisted, null, 2), { mode: 0o600 });
|
|
125
122
|
}
|