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
- if (normalized.loopSafetyEnabled === false)
116
- persisted.loopSafetyEnabled = false;
117
- if (normalized.loopSafetyProviderScope === "all-models")
118
- persisted.loopSafetyProviderScope = "all-models";
119
- if (normalized.networkRetryEnabled === true)
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-copilot-account-switcher",
3
- "version": "0.13.5",
3
+ "version": "0.13.6",
4
4
  "description": "GitHub Copilot account switcher plugin for OpenCode",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",