@blueharford/scrypted-spatial-awareness 0.6.28 → 0.6.29

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/dist/plugin.zip CHANGED
Binary file
@@ -39465,12 +39465,19 @@ class SpatialAwarenessPlugin extends sdk_1.ScryptedDeviceBase {
39465
39465
  group: 'MQTT Integration',
39466
39466
  },
39467
39467
  // Integrations
39468
- llmDevices: {
39468
+ llmPlugin: {
39469
+ title: 'LLM Plugin',
39470
+ type: 'device',
39471
+ deviceFilter: `interfaces.includes('DeviceProvider') && interfaces.includes('Settings')`,
39472
+ description: 'Select the LLM plugin to use (e.g., OpenAI, Anthropic, Ollama from @scrypted/llm)',
39473
+ group: 'Integrations',
39474
+ },
39475
+ llmProviders: {
39469
39476
  title: 'LLM Providers',
39470
39477
  type: 'device',
39471
39478
  multiple: true,
39472
39479
  deviceFilter: `interfaces.includes('ChatCompletion')`,
39473
- description: 'Select one or more LLM providers for smart descriptions. Multiple providers will be load-balanced.',
39480
+ description: 'Select which providers to use from your LLM plugin. Multiple providers will be load-balanced.',
39474
39481
  group: 'Integrations',
39475
39482
  },
39476
39483
  defaultNotifiers: {
@@ -39576,7 +39583,7 @@ class SpatialAwarenessPlugin extends sdk_1.ScryptedDeviceBase {
39576
39583
  loiteringThreshold: (this.storageSettings.values.loiteringThreshold || 3) * 1000,
39577
39584
  objectAlertCooldown: (this.storageSettings.values.objectAlertCooldown || 30) * 1000,
39578
39585
  useLlmDescriptions: this.storageSettings.values.useLlmDescriptions ?? true,
39579
- llmDeviceIds: this.parseLlmDevices(),
39586
+ llmDeviceIds: this.parseLlmProviders(),
39580
39587
  llmDebounceInterval: (this.storageSettings.values.llmDebounceInterval || 30) * 1000,
39581
39588
  llmFallbackEnabled: this.storageSettings.values.llmFallbackEnabled ?? true,
39582
39589
  llmFallbackTimeout: (this.storageSettings.values.llmFallbackTimeout || 3) * 1000,
@@ -39618,9 +39625,9 @@ class SpatialAwarenessPlugin extends sdk_1.ScryptedDeviceBase {
39618
39625
  }
39619
39626
  }
39620
39627
  }
39621
- /** Parse LLM devices from settings - handles both array and single value formats */
39622
- parseLlmDevices() {
39623
- const value = this.storageSettings.values.llmDevices;
39628
+ /** Parse LLM providers from settings - handles both array and single value formats */
39629
+ parseLlmProviders() {
39630
+ const value = this.storageSettings.values.llmProviders;
39624
39631
  if (!value)
39625
39632
  return undefined;
39626
39633
  // Handle array format
@@ -39922,7 +39929,8 @@ class SpatialAwarenessPlugin extends sdk_1.ScryptedDeviceBase {
39922
39929
  key === 'llmDebounceInterval' ||
39923
39930
  key === 'llmFallbackEnabled' ||
39924
39931
  key === 'llmFallbackTimeout' ||
39925
- key === 'llmDevices' ||
39932
+ key === 'llmPlugin' ||
39933
+ key === 'llmProviders' ||
39926
39934
  key === 'enableTransitTimeLearning' ||
39927
39935
  key === 'enableConnectionSuggestions' ||
39928
39936
  key === 'enableLandmarkLearning' ||