@layer-ai/core 0.8.16 → 0.8.18

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,7 +111,7 @@ export const db = {
111
111
  data.maxTokens,
112
112
  data.topP,
113
113
  JSON.stringify(data.tags || []),
114
- data.routingStrategy || 'single',
114
+ data.routingStrategy || 'fallback',
115
115
  JSON.stringify(data.fallbackModels || []),
116
116
  data.costWeight ?? 0.33,
117
117
  data.latencyWeight ?? 0.33,
@@ -327,7 +327,7 @@ router.patch('/:id', async (req, res) => {
327
327
  });
328
328
  }
329
329
  await cache.invalidateGate(req.userId, existing.name);
330
- res.json(updated);
330
+ res.json({ gate: updated, hasChanges: changedFields.length > 0, changedFields });
331
331
  }
332
332
  catch (error) {
333
333
  console.error('Update gate error:', error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@layer-ai/core",
3
- "version": "0.8.16",
3
+ "version": "0.8.18",
4
4
  "description": "Core API routes and services for Layer AI",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",