powr-sdk-api 4.3.5 → 4.3.7

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.
@@ -28,5 +28,9 @@ module.exports = {
28
28
  initializeFunctions,
29
29
  initializeTools,
30
30
  executeTasks,
31
- executeTool
31
+ executeTool,
32
+ // Export manager instances
33
+ functionsManager,
34
+ toolsManager,
35
+ scheduledTasksManager
32
36
  };
@@ -398,8 +398,8 @@ class ToolsManager {
398
398
 
399
399
  // Check if condition matches
400
400
  const currentWeather = weatherData.weather[0].main.toLowerCase();
401
- const targetCondition = params.condition.toLowerCase();
402
- const operator = params.operator || 'is';
401
+ const targetCondition = ((params === null || params === void 0 ? void 0 : params.condition) || 'rain').toLowerCase();
402
+ const operator = (params === null || params === void 0 ? void 0 : params.operator) || 'is';
403
403
  let conditionMet = false;
404
404
  switch (operator) {
405
405
  case 'is':
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "powr-sdk-api",
3
- "version": "4.3.5",
3
+ "version": "4.3.7",
4
4
  "description": "Shared API core library for PowrStack projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",