@wrongstack/webui 0.9.1 → 0.9.4

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.
@@ -1354,6 +1354,29 @@ async function startWebUI(opts = {}) {
1354
1354
  });
1355
1355
  break;
1356
1356
  }
1357
+ case "providers.saved": {
1358
+ const saved = await loadSavedProviders();
1359
+ send(ws, {
1360
+ type: "providers.saved",
1361
+ payload: {
1362
+ providers: Object.entries(saved).map(([id, cfg]) => {
1363
+ const keys = normalizeKeys(cfg);
1364
+ return {
1365
+ id,
1366
+ family: cfg.family ?? id,
1367
+ baseUrl: cfg.baseUrl,
1368
+ apiKeys: keys.map((k) => ({
1369
+ label: k.label,
1370
+ maskedKey: maskedKey(k.apiKey),
1371
+ isActive: k.label === cfg.activeKey,
1372
+ createdAt: k.createdAt
1373
+ }))
1374
+ };
1375
+ })
1376
+ }
1377
+ });
1378
+ break;
1379
+ }
1357
1380
  case "provider.models": {
1358
1381
  const providerId = msg.payload.providerId;
1359
1382
  const provider2 = await modelsRegistry.getProvider(providerId);