openwriter 0.5.5 → 0.6.1

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.
package/dist/bin/pad.js CHANGED
@@ -87,6 +87,9 @@ else {
87
87
  }
88
88
  // Resolve API key: CLI flag → env var → saved config
89
89
  const config = readConfig();
90
+ // Restore active profile from config
91
+ const { setActiveProfile } = await import('../server/helpers.js');
92
+ setActiveProfile(config.activeProfile || 'Default');
90
93
  const avApiKey = cliApiKey || process.env.AV_API_KEY || config.avApiKey || '';
91
94
  const avBackendUrl = cliAvUrl || process.env.AV_BACKEND_URL || config.avBackendUrl;
92
95
  // Persist new values to config so future starts don't need them