pi-lilac-provider 1.9.2 → 1.9.3

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.
Files changed (2) hide show
  1. package/index.ts +5 -2
  2. package/package.json +3 -3
package/index.ts CHANGED
@@ -417,7 +417,10 @@ function buildModels(
417
417
  ): JsonModel[] {
418
418
  const modelMap = new Map<string, JsonModel>();
419
419
 
420
- for (const model of base) {
420
+ // Seed with the base list plus grace-period deprecated models so patch.json
421
+ // entries apply to deprecated models exactly as while the model was live
422
+ // (withDeprecated keeps live data on id conflicts).
423
+ for (const model of withDeprecated(base)) {
421
424
  modelMap.set(model.id, model);
422
425
  }
423
426
 
@@ -454,7 +457,7 @@ function buildModels(
454
457
  }
455
458
  }
456
459
 
457
- return withDeprecated(Array.from(modelMap.values()));
460
+ return Array.from(modelMap.values());
458
461
  }
459
462
 
460
463
  // ─── Stale-While-Revalidate Model Sync ────────────────────────────────────────
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-lilac-provider",
3
- "version": "1.9.2",
3
+ "version": "1.9.3",
4
4
  "description": "Lilac provider extension for pi - Access Kimi K2.6, GLM 5.1, and Gemma 4 models through Lilac's OpenAI-compatible API on idle GPUs",
5
5
  "type": "module",
6
6
  "main": "index.ts",
@@ -31,9 +31,9 @@
31
31
  },
32
32
  "devDependencies": {
33
33
  "@earendil-works/pi-coding-agent": "0.83.0",
34
- "typescript": "6.0.3",
35
34
  "@types/node": "25.9.1",
36
- "knip": "6.14.1"
35
+ "knip": "6.14.1",
36
+ "typescript": "6.0.3"
37
37
  },
38
38
  "pi": {
39
39
  "extensions": [