@layer-ai/core 0.8.5 → 0.8.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.
@@ -249,7 +249,7 @@ export const db = {
249
249
  gate.name,
250
250
  gate.description,
251
251
  gate.model,
252
- JSON.stringify(gate.fallbackModels || []),
252
+ typeof gate.fallbackModels === 'string' ? gate.fallbackModels : JSON.stringify(gate.fallbackModels || []),
253
253
  gate.routingStrategy,
254
254
  gate.temperature,
255
255
  gate.maxTokens,
@@ -259,7 +259,7 @@ export const db = {
259
259
  gate.qualityWeight ?? 0.34,
260
260
  gate.analysisMethod ?? 'balanced',
261
261
  gate.taskType,
262
- gate.taskAnalysis ? JSON.stringify(gate.taskAnalysis) : null,
262
+ typeof gate.taskAnalysis === 'string' ? gate.taskAnalysis : (gate.taskAnalysis ? JSON.stringify(gate.taskAnalysis) : null),
263
263
  gate.systemPrompt,
264
264
  gate.reanalysisPeriod ?? 'never',
265
265
  gate.autoApplyRecommendations ?? false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@layer-ai/core",
3
- "version": "0.8.5",
3
+ "version": "0.8.6",
4
4
  "description": "Core API routes and services for Layer AI",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",