@blueharford/scrypted-spatial-awareness 0.6.28 → 0.6.30

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/out/plugin.zip CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blueharford/scrypted-spatial-awareness",
3
- "version": "0.6.28",
3
+ "version": "0.6.30",
4
4
  "description": "Cross-camera object tracking for Scrypted NVR with spatial awareness",
5
5
  "author": "Joshua Seidel <blueharford>",
6
6
  "license": "Apache-2.0",
package/src/main.ts CHANGED
@@ -238,12 +238,12 @@ export class SpatialAwarenessPlugin extends ScryptedDeviceBase
238
238
  },
239
239
 
240
240
  // Integrations
241
- llmDevices: {
241
+ llmProviders: {
242
242
  title: 'LLM Providers',
243
243
  type: 'device',
244
244
  multiple: true,
245
245
  deviceFilter: `interfaces.includes('ChatCompletion')`,
246
- description: 'Select one or more LLM providers for smart descriptions. Multiple providers will be load-balanced.',
246
+ description: 'Select which LLM providers to use (e.g., OpenAI, Claude, Ollama). Multiple providers will be load-balanced to avoid rate limits.',
247
247
  group: 'Integrations',
248
248
  },
249
249
  defaultNotifiers: {
@@ -363,7 +363,7 @@ export class SpatialAwarenessPlugin extends ScryptedDeviceBase
363
363
  loiteringThreshold: (this.storageSettings.values.loiteringThreshold as number || 3) * 1000,
364
364
  objectAlertCooldown: (this.storageSettings.values.objectAlertCooldown as number || 30) * 1000,
365
365
  useLlmDescriptions: this.storageSettings.values.useLlmDescriptions as boolean ?? true,
366
- llmDeviceIds: this.parseLlmDevices(),
366
+ llmDeviceIds: this.parseLlmProviders(),
367
367
  llmDebounceInterval: (this.storageSettings.values.llmDebounceInterval as number || 30) * 1000,
368
368
  llmFallbackEnabled: this.storageSettings.values.llmFallbackEnabled as boolean ?? true,
369
369
  llmFallbackTimeout: (this.storageSettings.values.llmFallbackTimeout as number || 3) * 1000,
@@ -418,9 +418,9 @@ export class SpatialAwarenessPlugin extends ScryptedDeviceBase
418
418
  }
419
419
  }
420
420
 
421
- /** Parse LLM devices from settings - handles both array and single value formats */
422
- private parseLlmDevices(): string[] | undefined {
423
- const value = this.storageSettings.values.llmDevices;
421
+ /** Parse LLM providers from settings - handles both array and single value formats */
422
+ private parseLlmProviders(): string[] | undefined {
423
+ const value = this.storageSettings.values.llmProviders;
424
424
  if (!value) return undefined;
425
425
 
426
426
  // Handle array format
@@ -754,7 +754,7 @@ export class SpatialAwarenessPlugin extends ScryptedDeviceBase
754
754
  key === 'llmDebounceInterval' ||
755
755
  key === 'llmFallbackEnabled' ||
756
756
  key === 'llmFallbackTimeout' ||
757
- key === 'llmDevices' ||
757
+ key === 'llmProviders' ||
758
758
  key === 'enableTransitTimeLearning' ||
759
759
  key === 'enableConnectionSuggestions' ||
760
760
  key === 'enableLandmarkLearning' ||