@fastybird/smart-panel-backend 0.11.0-alpha.0 → 1.0.0-beta.2
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/app.constants.js.map +1 -1
- package/dist/app.module.js +44 -17
- package/dist/app.module.js.map +1 -1
- package/dist/common/filters/bad-request-exception.filter.js +0 -6
- package/dist/common/filters/bad-request-exception.filter.js.map +1 -1
- package/dist/common/filters/global-error.filter.js +2 -6
- package/dist/common/filters/global-error.filter.js.map +1 -1
- package/dist/common/filters/internal-server-error-exception.filter.js +0 -5
- package/dist/common/filters/internal-server-error-exception.filter.js.map +1 -1
- package/dist/common/filters/not-found-exception.filter.d.ts +4 -0
- package/dist/common/filters/not-found-exception.filter.js +22 -3
- package/dist/common/filters/not-found-exception.filter.js.map +1 -1
- package/dist/common/filters/query-failed-exception.filter.js +0 -5
- package/dist/common/filters/query-failed-exception.filter.js.map +1 -1
- package/dist/common/filters/unprocessable-entity-exception.filter.js +0 -5
- package/dist/common/filters/unprocessable-entity-exception.filter.js.map +1 -1
- package/dist/common/plugin-relations/relation-loader.interface.d.ts +5 -0
- package/dist/common/plugin-relations/relation-loader.interface.js +3 -0
- package/dist/common/plugin-relations/relation-loader.interface.js.map +1 -0
- package/dist/common/services/app-instance-holder.service.d.ts +1 -2
- package/dist/common/services/app-instance-holder.service.js.map +1 -1
- package/dist/common/utils/config.utils.d.ts +0 -1
- package/dist/common/utils/config.utils.js +1 -11
- package/dist/common/utils/config.utils.js.map +1 -1
- package/dist/main.js +25 -6
- package/dist/main.js.map +1 -1
- package/dist/migrations/1000000000000-InitialSetup.js +8 -0
- package/dist/migrations/1000000000000-InitialSetup.js.map +1 -1
- package/dist/migrations/1000000000002-AddTokenLastUsedAt.d.ts +6 -0
- package/dist/migrations/1000000000002-AddTokenLastUsedAt.js +15 -0
- package/dist/migrations/1000000000002-AddTokenLastUsedAt.js.map +1 -0
- package/dist/migrations/1000000000003-UnifySpaceRoleTables.d.ts +6 -0
- package/dist/migrations/1000000000003-UnifySpaceRoleTables.js +88 -0
- package/dist/migrations/1000000000003-UnifySpaceRoleTables.js.map +1 -0
- package/dist/migrations/1000000000004-DisplaysSpaceOnly.d.ts +6 -0
- package/dist/migrations/1000000000004-DisplaysSpaceOnly.js +165 -0
- package/dist/migrations/1000000000004-DisplaysSpaceOnly.js.map +1 -0
- package/dist/migrations/1000000000005-SpacesSignageInfoPanel.d.ts +6 -0
- package/dist/migrations/1000000000005-SpacesSignageInfoPanel.js +66 -0
- package/dist/migrations/1000000000005-SpacesSignageInfoPanel.js.map +1 -0
- package/dist/migrations/1000000000006-DropLegacyRoleTables.d.ts +6 -0
- package/dist/migrations/1000000000006-DropLegacyRoleTables.js +32 -0
- package/dist/migrations/1000000000006-DropLegacyRoleTables.js.map +1 -0
- package/dist/modules/api/interceptors/open-api-response.interceptor.js +1 -1
- package/dist/modules/api/interceptors/open-api-response.interceptor.js.map +1 -1
- package/dist/modules/auth/auth.module.js +44 -28
- package/dist/modules/auth/auth.module.js.map +1 -1
- package/dist/modules/auth/controllers/auth.controller.js +6 -0
- package/dist/modules/auth/controllers/auth.controller.js.map +1 -1
- package/dist/modules/auth/controllers/tokens.controller.d.ts +10 -3
- package/dist/modules/auth/controllers/tokens.controller.js +96 -7
- package/dist/modules/auth/controllers/tokens.controller.js.map +1 -1
- package/dist/modules/auth/dto/create-personal-token.dto.d.ts +8 -0
- package/dist/modules/auth/dto/create-personal-token.dto.js +75 -0
- package/dist/modules/auth/dto/create-personal-token.dto.js.map +1 -0
- package/dist/modules/auth/dto/register.dto.d.ts +1 -1
- package/dist/modules/auth/dto/register.dto.js +13 -11
- package/dist/modules/auth/dto/register.dto.js.map +1 -1
- package/dist/modules/auth/entities/auth.entity.d.ts +1 -0
- package/dist/modules/auth/entities/auth.entity.js +13 -0
- package/dist/modules/auth/entities/auth.entity.js.map +1 -1
- package/dist/modules/auth/guards/auth.guard.d.ts +0 -1
- package/dist/modules/auth/guards/auth.guard.js +8 -26
- package/dist/modules/auth/guards/auth.guard.js.map +1 -1
- package/dist/modules/auth/guards/display-aware-throttler.guard.d.ts +16 -0
- package/dist/modules/auth/guards/display-aware-throttler.guard.js +133 -0
- package/dist/modules/auth/guards/display-aware-throttler.guard.js.map +1 -0
- package/dist/modules/auth/services/auth.service.js +1 -1
- package/dist/modules/auth/services/auth.service.js.map +1 -1
- package/dist/modules/auth/services/tokens.service.d.ts +10 -0
- package/dist/modules/auth/services/tokens.service.js +35 -0
- package/dist/modules/auth/services/tokens.service.js.map +1 -1
- package/dist/modules/auth/utils/token.utils.d.ts +7 -0
- package/dist/modules/auth/utils/token.utils.js +12 -1
- package/dist/modules/auth/utils/token.utils.js.map +1 -1
- package/dist/modules/buddy/buddy.module.d.ts +5 -1
- package/dist/modules/buddy/buddy.module.js +42 -15
- package/dist/modules/buddy/buddy.module.js.map +1 -1
- package/dist/modules/buddy/buddy.utils.d.ts +8 -0
- package/dist/modules/buddy/buddy.utils.js +49 -0
- package/dist/modules/buddy/buddy.utils.js.map +1 -1
- package/dist/modules/buddy/controllers/buddy-suggestions.controller.js +2 -2
- package/dist/modules/buddy/controllers/buddy-suggestions.controller.js.map +1 -1
- package/dist/modules/buddy/entities/buddy-conversation.entity.js +3 -3
- package/dist/modules/buddy/entities/buddy-conversation.entity.js.map +1 -1
- package/dist/modules/buddy/entities/buddy-message.entity.js +2 -2
- package/dist/modules/buddy/entities/buddy-message.entity.js.map +1 -1
- package/dist/modules/buddy/entities/buddy-suggestion.entity.d.ts +19 -0
- package/dist/modules/buddy/entities/buddy-suggestion.entity.js +93 -0
- package/dist/modules/buddy/entities/buddy-suggestion.entity.js.map +1 -0
- package/dist/modules/buddy/listeners/media-activity-event.listener.js +3 -3
- package/dist/modules/buddy/listeners/media-activity-event.listener.js.map +1 -1
- package/dist/modules/buddy/platforms/llm-provider.platform.d.ts +6 -0
- package/dist/modules/buddy/platforms/openai-sdk.utils.d.ts +2 -1
- package/dist/modules/buddy/platforms/openai-sdk.utils.js +12 -1
- package/dist/modules/buddy/platforms/openai-sdk.utils.js.map +1 -1
- package/dist/modules/buddy/services/buddy-context.service.js +2 -2
- package/dist/modules/buddy/services/buddy-context.service.js.map +1 -1
- package/dist/modules/buddy/services/buddy-conversation.service.js +23 -8
- package/dist/modules/buddy/services/buddy-conversation.service.js.map +1 -1
- package/dist/modules/buddy/services/buddy-personality.service.d.ts +1 -1
- package/dist/modules/buddy/services/buddy-personality.service.js.map +1 -1
- package/dist/modules/buddy/services/heartbeat.service.js +2 -2
- package/dist/modules/buddy/services/heartbeat.service.js.map +1 -1
- package/dist/modules/buddy/services/llm-provider.service.js +2 -10
- package/dist/modules/buddy/services/llm-provider.service.js.map +1 -1
- package/dist/modules/buddy/services/module-reset.service.d.ts +3 -1
- package/dist/modules/buddy/services/module-reset.service.js +6 -1
- package/dist/modules/buddy/services/module-reset.service.js.map +1 -1
- package/dist/modules/buddy/services/pattern-detector.service.d.ts +4 -1
- package/dist/modules/buddy/services/pattern-detector.service.js +10 -3
- package/dist/modules/buddy/services/pattern-detector.service.js.map +1 -1
- package/dist/modules/buddy/services/scene-suggestion-evaluator.service.d.ts +4 -1
- package/dist/modules/buddy/services/scene-suggestion-evaluator.service.js +10 -4
- package/dist/modules/buddy/services/scene-suggestion-evaluator.service.js.map +1 -1
- package/dist/modules/buddy/services/stt-provider.service.js +2 -10
- package/dist/modules/buddy/services/stt-provider.service.js.map +1 -1
- package/dist/modules/buddy/services/suggestion-engine.service.d.ts +19 -13
- package/dist/modules/buddy/services/suggestion-engine.service.js +170 -103
- package/dist/modules/buddy/services/suggestion-engine.service.js.map +1 -1
- package/dist/modules/buddy/services/tts-provider.service.js +2 -10
- package/dist/modules/buddy/services/tts-provider.service.js.map +1 -1
- package/dist/modules/config/config.constants.d.ts +2 -1
- package/dist/modules/config/config.constants.js +1 -0
- package/dist/modules/config/config.constants.js.map +1 -1
- package/dist/modules/config/config.module.d.ts +5 -1
- package/dist/modules/config/config.module.js +78 -14
- package/dist/modules/config/config.module.js.map +1 -1
- package/dist/modules/config/services/config.service.d.ts +1 -0
- package/dist/modules/config/services/config.service.js +11 -1
- package/dist/modules/config/services/config.service.js.map +1 -1
- package/dist/modules/dashboard/dashboard.module.js +21 -18
- package/dist/modules/dashboard/dashboard.module.js.map +1 -1
- package/dist/modules/dashboard/entities/dashboard.relations.d.ts +1 -5
- package/dist/modules/devices/devices.module.js +24 -16
- package/dist/modules/devices/devices.module.js.map +1 -1
- package/dist/modules/devices/services/device-zones.service.js +2 -2
- package/dist/modules/devices/services/device-zones.service.js.map +1 -1
- package/dist/modules/devices/services/devices.service.js.map +1 -1
- package/dist/modules/displays/displays.constants.d.ts +0 -5
- package/dist/modules/displays/displays.constants.js +1 -7
- package/dist/modules/displays/displays.constants.js.map +1 -1
- package/dist/modules/displays/displays.module.js +27 -23
- package/dist/modules/displays/displays.module.js.map +1 -1
- package/dist/modules/displays/dto/update-display.dto.d.ts +2 -3
- package/dist/modules/displays/dto/update-display.dto.js +4 -19
- package/dist/modules/displays/dto/update-display.dto.js.map +1 -1
- package/dist/modules/displays/entities/displays.entity.d.ts +3 -4
- package/dist/modules/displays/entities/displays.entity.js +8 -25
- package/dist/modules/displays/entities/displays.entity.js.map +1 -1
- package/dist/modules/displays/services/displays.service.d.ts +4 -2
- package/dist/modules/displays/services/displays.service.js +19 -24
- package/dist/modules/displays/services/displays.service.js.map +1 -1
- package/dist/modules/displays/services/home-resolution.service.d.ts +7 -2
- package/dist/modules/displays/services/home-resolution.service.js +50 -6
- package/dist/modules/displays/services/home-resolution.service.js.map +1 -1
- package/dist/modules/displays/services/space-home-page-resolver-registry.service.d.ts +9 -0
- package/dist/modules/displays/services/space-home-page-resolver-registry.service.js +26 -0
- package/dist/modules/displays/services/space-home-page-resolver-registry.service.js.map +1 -0
- package/dist/modules/displays/services/space-selection-validator-registry.service.d.ts +9 -0
- package/dist/modules/displays/services/space-selection-validator-registry.service.js +26 -0
- package/dist/modules/displays/services/space-selection-validator-registry.service.js.map +1 -0
- package/dist/modules/energy/energy.module.js +29 -15
- package/dist/modules/energy/energy.module.js.map +1 -1
- package/dist/modules/extensions/controllers/actions.controller.d.ts +9 -4
- package/dist/modules/extensions/controllers/actions.controller.js +63 -10
- package/dist/modules/extensions/controllers/actions.controller.js.map +1 -1
- package/dist/modules/extensions/extensions.module.js +31 -28
- package/dist/modules/extensions/extensions.module.js.map +1 -1
- package/dist/modules/extensions/extensions.openapi.d.ts +3 -3
- package/dist/modules/extensions/extensions.openapi.js +2 -0
- package/dist/modules/extensions/extensions.openapi.js.map +1 -1
- package/dist/modules/extensions/models/action.model.d.ts +13 -0
- package/dist/modules/extensions/models/action.model.js +89 -3
- package/dist/modules/extensions/models/action.model.js.map +1 -1
- package/dist/modules/extensions/models/actions-response.model.d.ts +4 -1
- package/dist/modules/extensions/models/actions-response.model.js +19 -1
- package/dist/modules/extensions/models/actions-response.model.js.map +1 -1
- package/dist/modules/extensions/models/extension.model.js +5 -0
- package/dist/modules/extensions/models/extension.model.js.map +1 -1
- package/dist/modules/extensions/models/service-status.model.js +7 -0
- package/dist/modules/extensions/models/service-status.model.js.map +1 -1
- package/dist/modules/extensions/services/action-audit.service.d.ts +21 -0
- package/dist/modules/extensions/services/action-audit.service.js +49 -0
- package/dist/modules/extensions/services/action-audit.service.js.map +1 -0
- package/dist/modules/extensions/services/base-managed-plugin.service.d.ts +11 -0
- package/dist/modules/extensions/services/base-managed-plugin.service.js +28 -0
- package/dist/modules/extensions/services/base-managed-plugin.service.js.map +1 -0
- package/dist/modules/extensions/services/extension-action-registry.service.d.ts +6 -1
- package/dist/modules/extensions/services/extension-action-registry.service.js +22 -3
- package/dist/modules/extensions/services/extension-action-registry.service.js.map +1 -1
- package/dist/modules/extensions/services/extension-action.interface.d.ts +3 -0
- package/dist/modules/extensions/services/extension-action.interface.js +3 -1
- package/dist/modules/extensions/services/extension-action.interface.js.map +1 -1
- package/dist/modules/intents/intents.module.js +27 -26
- package/dist/modules/intents/intents.module.js.map +1 -1
- package/dist/modules/mdns/mdns.module.js +24 -19
- package/dist/modules/mdns/mdns.module.js.map +1 -1
- package/dist/modules/platform/dto/system-info.dto.d.ts +2 -0
- package/dist/modules/platform/dto/system-info.dto.js +7 -0
- package/dist/modules/platform/dto/system-info.dto.js.map +1 -1
- package/dist/modules/platform/platform.module.js +25 -17
- package/dist/modules/platform/platform.module.js.map +1 -1
- package/dist/modules/platform/platforms/abstract.platform.d.ts +44 -0
- package/dist/modules/platform/platforms/abstract.platform.js +267 -0
- package/dist/modules/platform/platforms/abstract.platform.js.map +1 -1
- package/dist/modules/platform/platforms/docker.platform.d.ts +2 -0
- package/dist/modules/platform/platforms/docker.platform.js +3 -0
- package/dist/modules/platform/platforms/docker.platform.js.map +1 -1
- package/dist/modules/platform/platforms/generic.platform.d.ts +2 -1
- package/dist/modules/platform/platforms/generic.platform.js +17 -15
- package/dist/modules/platform/platforms/generic.platform.js.map +1 -1
- package/dist/modules/platform/platforms/home-assistant.platform.d.ts +4 -0
- package/dist/modules/platform/platforms/home-assistant.platform.js +21 -0
- package/dist/modules/platform/platforms/home-assistant.platform.js.map +1 -1
- package/dist/modules/platform/platforms/raspberry.platform.js +22 -40
- package/dist/modules/platform/platforms/raspberry.platform.js.map +1 -1
- package/dist/modules/platform/services/platform.service.d.ts +2 -0
- package/dist/modules/platform/services/platform.service.js +7 -0
- package/dist/modules/platform/services/platform.service.js.map +1 -1
- package/dist/modules/scenes/scenes.module.js +18 -18
- package/dist/modules/scenes/scenes.module.js.map +1 -1
- package/dist/modules/security/security.module.js +22 -17
- package/dist/modules/security/security.module.js.map +1 -1
- package/dist/modules/spaces/controllers/spaces.controller.d.ts +5 -115
- package/dist/modules/spaces/controllers/spaces.controller.js +22 -1922
- package/dist/modules/spaces/controllers/spaces.controller.js.map +1 -1
- package/dist/modules/spaces/dto/create-space.dto.d.ts +1 -5
- package/dist/modules/spaces/dto/create-space.dto.js +0 -61
- package/dist/modules/spaces/dto/create-space.dto.js.map +1 -1
- package/dist/modules/spaces/dto/update-space.dto.d.ts +1 -5
- package/dist/modules/spaces/dto/update-space.dto.js +0 -61
- package/dist/modules/spaces/dto/update-space.dto.js.map +1 -1
- package/dist/modules/spaces/entities/space-role.entity.d.ts +8 -0
- package/dist/modules/spaces/entities/space-role.entity.js +58 -0
- package/dist/modules/spaces/entities/space-role.entity.js.map +1 -0
- package/dist/modules/spaces/entities/space.entity.d.ts +3 -6
- package/dist/modules/spaces/entities/space.entity.js +11 -74
- package/dist/modules/spaces/entities/space.entity.js.map +1 -1
- package/dist/modules/spaces/entities/space.relations.d.ts +11 -0
- package/dist/modules/spaces/entities/space.relations.js +3 -0
- package/dist/modules/spaces/entities/space.relations.js.map +1 -0
- package/dist/modules/spaces/models/spaces-response.model.d.ts +1 -522
- package/dist/modules/spaces/models/spaces-response.model.js +23 -4150
- package/dist/modules/spaces/models/spaces-response.model.js.map +1 -1
- package/dist/modules/spaces/services/space-create-builder-registry.service.d.ts +6 -0
- package/dist/modules/spaces/services/space-create-builder-registry.service.js +26 -0
- package/dist/modules/spaces/services/space-create-builder-registry.service.js.map +1 -0
- package/dist/modules/spaces/services/space-relations-loader-registry.service.d.ts +6 -0
- package/dist/modules/spaces/services/space-relations-loader-registry.service.js +26 -0
- package/dist/modules/spaces/services/space-relations-loader-registry.service.js.map +1 -0
- package/dist/modules/spaces/services/space-roles-type-mapper.service.d.ts +12 -0
- package/dist/modules/spaces/services/space-roles-type-mapper.service.js +39 -0
- package/dist/modules/spaces/services/space-roles-type-mapper.service.js.map +1 -0
- package/dist/modules/spaces/services/spaces-type-mapper.service.d.ts +17 -0
- package/dist/modules/spaces/services/spaces-type-mapper.service.js +36 -0
- package/dist/modules/spaces/services/spaces-type-mapper.service.js.map +1 -0
- package/dist/modules/spaces/services/spaces.service.d.ts +4 -12
- package/dist/modules/spaces/services/spaces.service.js +120 -160
- package/dist/modules/spaces/services/spaces.service.js.map +1 -1
- package/dist/modules/spaces/spaces.constants.d.ts +13 -292
- package/dist/modules/spaces/spaces.constants.js +13 -1449
- package/dist/modules/spaces/spaces.constants.js.map +1 -1
- package/dist/modules/spaces/spaces.module.d.ts +2 -9
- package/dist/modules/spaces/spaces.module.js +51 -108
- package/dist/modules/spaces/spaces.module.js.map +1 -1
- package/dist/modules/spaces/spaces.openapi.d.ts +3 -16
- package/dist/modules/spaces/spaces.openapi.js +0 -136
- package/dist/modules/spaces/spaces.openapi.js.map +1 -1
- package/dist/modules/stats/controllers/prometheus.controller.js +0 -2
- package/dist/modules/stats/controllers/prometheus.controller.js.map +1 -1
- package/dist/modules/storage/models/config.model.js +2 -4
- package/dist/modules/storage/models/config.model.js.map +1 -1
- package/dist/modules/storage/services/storage.service.d.ts +4 -10
- package/dist/modules/storage/services/storage.service.js +21 -60
- package/dist/modules/storage/services/storage.service.js.map +1 -1
- package/dist/modules/storage/storage.constants.d.ts +2 -0
- package/dist/modules/storage/storage.constants.js +3 -1
- package/dist/modules/storage/storage.constants.js.map +1 -1
- package/dist/modules/storage/storage.module.js +26 -7
- package/dist/modules/storage/storage.module.js.map +1 -1
- package/dist/modules/swagger/commands/serve-swagger.command.d.ts +14 -0
- package/dist/modules/swagger/commands/serve-swagger.command.js +60 -0
- package/dist/modules/swagger/commands/serve-swagger.command.js.map +1 -0
- package/dist/modules/swagger/swagger.module.js +2 -0
- package/dist/modules/swagger/swagger.module.js.map +1 -1
- package/dist/modules/system/backup-contribution.module.d.ts +2 -0
- package/dist/modules/system/backup-contribution.module.js +22 -0
- package/dist/modules/system/backup-contribution.module.js.map +1 -0
- package/dist/modules/system/controllers/backup.controller.d.ts +17 -0
- package/dist/modules/system/controllers/backup.controller.js +308 -0
- package/dist/modules/system/controllers/backup.controller.js.map +1 -0
- package/dist/modules/system/dto/create-backup.dto.d.ts +6 -0
- package/dist/modules/system/dto/create-backup.dto.js +43 -0
- package/dist/modules/system/dto/create-backup.dto.js.map +1 -0
- package/dist/modules/system/models/backup-response.model.d.ts +8 -0
- package/dist/modules/system/models/backup-response.model.js +46 -0
- package/dist/modules/system/models/backup-response.model.js.map +1 -0
- package/dist/modules/system/models/backup.model.d.ts +14 -0
- package/dist/modules/system/models/backup.model.js +103 -0
- package/dist/modules/system/models/backup.model.js.map +1 -0
- package/dist/modules/system/models/system.model.d.ts +3 -1
- package/dist/modules/system/models/system.model.js +26 -0
- package/dist/modules/system/models/system.model.js.map +1 -1
- package/dist/modules/system/scripts/update-worker.sh +304 -0
- package/dist/modules/system/services/backup-contribution-registry.service.d.ts +24 -0
- package/dist/modules/system/services/backup-contribution-registry.service.js +52 -0
- package/dist/modules/system/services/backup-contribution-registry.service.js.map +1 -0
- package/dist/modules/system/services/backup.service.d.ts +52 -0
- package/dist/modules/system/services/backup.service.js +630 -0
- package/dist/modules/system/services/backup.service.js.map +1 -0
- package/dist/modules/system/services/house-mode-actions.service.d.ts +1 -1
- package/dist/modules/system/services/house-mode-actions.service.js +5 -5
- package/dist/modules/system/services/house-mode-actions.service.js.map +1 -1
- package/dist/modules/system/services/system-command.service.d.ts +7 -1
- package/dist/modules/system/services/system-command.service.js +24 -4
- package/dist/modules/system/services/system-command.service.js.map +1 -1
- package/dist/modules/system/services/system.service.js +4 -1
- package/dist/modules/system/services/system.service.js.map +1 -1
- package/dist/modules/system/services/update-executor.service.d.ts +4 -0
- package/dist/modules/system/services/update-executor.service.js +130 -10
- package/dist/modules/system/services/update-executor.service.js.map +1 -1
- package/dist/modules/system/system.constants.d.ts +7 -0
- package/dist/modules/system/system.constants.js +9 -1
- package/dist/modules/system/system.constants.js.map +1 -1
- package/dist/modules/system/system.module.d.ts +5 -1
- package/dist/modules/system/system.module.js +95 -31
- package/dist/modules/system/system.module.js.map +1 -1
- package/dist/modules/system/system.openapi.d.ts +4 -1
- package/dist/modules/system/system.openapi.js +8 -0
- package/dist/modules/system/system.openapi.js.map +1 -1
- package/dist/modules/users/controllers/users.controller.js +9 -0
- package/dist/modules/users/controllers/users.controller.js.map +1 -1
- package/dist/modules/users/dto/create-user.dto.js +1 -0
- package/dist/modules/users/dto/create-user.dto.js.map +1 -1
- package/dist/modules/users/dto/update-user.dto.d.ts +1 -0
- package/dist/modules/users/dto/update-user.dto.js +15 -1
- package/dist/modules/users/dto/update-user.dto.js.map +1 -1
- package/dist/modules/users/services/users.service.d.ts +1 -0
- package/dist/modules/users/services/users.service.js +12 -2
- package/dist/modules/users/services/users.service.js.map +1 -1
- package/dist/modules/users/users.constants.d.ts +3 -0
- package/dist/modules/users/users.constants.js +35 -1
- package/dist/modules/users/users.constants.js.map +1 -1
- package/dist/modules/users/users.module.js +29 -13
- package/dist/modules/users/users.module.js.map +1 -1
- package/dist/modules/weather/weather.module.js +20 -18
- package/dist/modules/weather/weather.module.js.map +1 -1
- package/dist/modules/websocket/dto/client-user.dto.js +25 -0
- package/dist/modules/websocket/dto/client-user.dto.js.map +1 -1
- package/dist/modules/websocket/dto/ws-client.dto.js +26 -0
- package/dist/modules/websocket/dto/ws-client.dto.js.map +1 -1
- package/dist/modules/websocket/gateway/websocket.gateway.d.ts +2 -2
- package/dist/modules/websocket/gateway/websocket.gateway.js +27 -9
- package/dist/modules/websocket/gateway/websocket.gateway.js.map +1 -1
- package/dist/modules/websocket/services/command-event-registry.service.d.ts +3 -1
- package/dist/modules/websocket/services/command-event-registry.service.js +5 -4
- package/dist/modules/websocket/services/command-event-registry.service.js.map +1 -1
- package/dist/plugins/buddy-claude/buddy-claude.plugin.js +24 -11
- package/dist/plugins/buddy-claude/buddy-claude.plugin.js.map +1 -1
- package/dist/plugins/buddy-claude-setup-token/buddy-claude-setup-token.plugin.js +21 -11
- package/dist/plugins/buddy-claude-setup-token/buddy-claude-setup-token.plugin.js.map +1 -1
- package/dist/plugins/buddy-discord/buddy-discord.plugin.js +28 -16
- package/dist/plugins/buddy-discord/buddy-discord.plugin.js.map +1 -1
- package/dist/plugins/buddy-elevenlabs/buddy-elevenlabs.plugin.js +22 -11
- package/dist/plugins/buddy-elevenlabs/buddy-elevenlabs.plugin.js.map +1 -1
- package/dist/plugins/buddy-ollama/buddy-ollama.plugin.js +28 -12
- package/dist/plugins/buddy-ollama/buddy-ollama.plugin.js.map +1 -1
- package/dist/plugins/buddy-openai/buddy-openai.plugin.js +24 -15
- package/dist/plugins/buddy-openai/buddy-openai.plugin.js.map +1 -1
- package/dist/plugins/buddy-openai/platforms/openai.provider.js +1 -0
- package/dist/plugins/buddy-openai/platforms/openai.provider.js.map +1 -1
- package/dist/plugins/buddy-openai-codex/buddy-openai-codex.plugin.js +26 -15
- package/dist/plugins/buddy-openai-codex/buddy-openai-codex.plugin.js.map +1 -1
- package/dist/plugins/buddy-stt-whisper-local/buddy-stt-whisper-local.plugin.js +23 -9
- package/dist/plugins/buddy-stt-whisper-local/buddy-stt-whisper-local.plugin.js.map +1 -1
- package/dist/plugins/buddy-system-tts/buddy-system-tts.plugin.js +21 -10
- package/dist/plugins/buddy-system-tts/buddy-system-tts.plugin.js.map +1 -1
- package/dist/plugins/buddy-telegram/buddy-telegram.plugin.js +22 -11
- package/dist/plugins/buddy-telegram/buddy-telegram.plugin.js.map +1 -1
- package/dist/plugins/buddy-voiceai/buddy-voiceai.plugin.js +22 -12
- package/dist/plugins/buddy-voiceai/buddy-voiceai.plugin.js.map +1 -1
- package/dist/plugins/buddy-whatsapp/buddy-whatsapp.plugin.js +24 -12
- package/dist/plugins/buddy-whatsapp/buddy-whatsapp.plugin.js.map +1 -1
- package/dist/plugins/buddy-whatsapp/controllers/whatsapp-webhook.controller.d.ts +2 -2
- package/dist/plugins/buddy-whatsapp/controllers/whatsapp-webhook.controller.js +3 -3
- package/dist/plugins/buddy-whatsapp/controllers/whatsapp-webhook.controller.js.map +1 -1
- package/dist/plugins/buddy-whatsapp/platforms/whatsapp-bot.provider.d.ts +2 -1
- package/dist/plugins/buddy-whatsapp/platforms/whatsapp-bot.provider.js +31 -12
- package/dist/plugins/buddy-whatsapp/platforms/whatsapp-bot.provider.js.map +1 -1
- package/dist/plugins/data-sources-device-channel/data-sources-device-channel.plugin.js +16 -30
- package/dist/plugins/data-sources-device-channel/data-sources-device-channel.plugin.js.map +1 -1
- package/dist/plugins/data-sources-weather/data-sources-weather.plugin.js +17 -29
- package/dist/plugins/data-sources-weather/data-sources-weather.plugin.js.map +1 -1
- package/dist/plugins/devices-home-assistant/devices-home-assistant.plugin.js +37 -136
- package/dist/plugins/devices-home-assistant/devices-home-assistant.plugin.js.map +1 -1
- package/dist/plugins/devices-home-assistant/dto/home-assistant-discovered-helper.dto.js +22 -2
- package/dist/plugins/devices-home-assistant/dto/home-assistant-discovered-helper.dto.js.map +1 -1
- package/dist/plugins/devices-home-assistant/models/config.model.d.ts +1 -0
- package/dist/plugins/devices-home-assistant/models/config.model.js +12 -0
- package/dist/plugins/devices-home-assistant/models/config.model.js.map +1 -1
- package/dist/plugins/devices-home-assistant/platforms/home-assistant.device.platform.d.ts +3 -1
- package/dist/plugins/devices-home-assistant/platforms/home-assistant.device.platform.js +14 -2
- package/dist/plugins/devices-home-assistant/platforms/home-assistant.device.platform.js.map +1 -1
- package/dist/plugins/devices-home-assistant/services/ha-mdns-discoverer.service.js +0 -6
- package/dist/plugins/devices-home-assistant/services/ha-mdns-discoverer.service.js.map +1 -1
- package/dist/plugins/devices-home-assistant/services/ha-supervisor.service.d.ts +10 -0
- package/dist/plugins/devices-home-assistant/services/ha-supervisor.service.js +47 -0
- package/dist/plugins/devices-home-assistant/services/ha-supervisor.service.js.map +1 -0
- package/dist/plugins/devices-home-assistant/services/home-assistant-config-validator.service.d.ts +3 -1
- package/dist/plugins/devices-home-assistant/services/home-assistant-config-validator.service.js +8 -2
- package/dist/plugins/devices-home-assistant/services/home-assistant-config-validator.service.js.map +1 -1
- package/dist/plugins/devices-home-assistant/services/home-assistant.http.service.d.ts +5 -1
- package/dist/plugins/devices-home-assistant/services/home-assistant.http.service.js +35 -12
- package/dist/plugins/devices-home-assistant/services/home-assistant.http.service.js.map +1 -1
- package/dist/plugins/devices-home-assistant/services/home-assistant.ws.service.d.ts +9 -7
- package/dist/plugins/devices-home-assistant/services/home-assistant.ws.service.js +64 -24
- package/dist/plugins/devices-home-assistant/services/home-assistant.ws.service.js.map +1 -1
- package/dist/plugins/devices-home-assistant/services/state-changed.event.service.js +1 -0
- package/dist/plugins/devices-home-assistant/services/state-changed.event.service.js.map +1 -1
- package/dist/plugins/devices-reterminal/devices-reterminal.plugin.js +20 -17
- package/dist/plugins/devices-reterminal/devices-reterminal.plugin.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/controllers/shelly-ng-devices.controller.d.ts +7 -2
- package/dist/plugins/devices-shelly-ng/controllers/shelly-ng-devices.controller.js +83 -2
- package/dist/plugins/devices-shelly-ng/controllers/shelly-ng-devices.controller.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/delegates/delegates-manager.service.d.ts +4 -0
- package/dist/plugins/devices-shelly-ng/delegates/delegates-manager.service.js +86 -11
- package/dist/plugins/devices-shelly-ng/delegates/delegates-manager.service.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/delegates/shelly-device.delegate.d.ts +8 -0
- package/dist/plugins/devices-shelly-ng/delegates/shelly-device.delegate.js +45 -0
- package/dist/plugins/devices-shelly-ng/delegates/shelly-device.delegate.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/devices-shelly-ng.openapi.d.ts +3 -3
- package/dist/plugins/devices-shelly-ng/devices-shelly-ng.openapi.js +4 -0
- package/dist/plugins/devices-shelly-ng/devices-shelly-ng.openapi.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/devices-shelly-ng.plugin.d.ts +6 -1
- package/dist/plugins/devices-shelly-ng/devices-shelly-ng.plugin.js +72 -21
- package/dist/plugins/devices-shelly-ng/devices-shelly-ng.plugin.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/dto/update-config.dto.d.ts +1 -0
- package/dist/plugins/devices-shelly-ng/dto/update-config.dto.js +24 -6
- package/dist/plugins/devices-shelly-ng/dto/update-config.dto.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/entities/devices-shelly-ng.entity.js +12 -0
- package/dist/plugins/devices-shelly-ng/entities/devices-shelly-ng.entity.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/entities/shelly-ng-device-address.entity.js +2 -0
- package/dist/plugins/devices-shelly-ng/entities/shelly-ng-device-address.entity.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/models/config.model.d.ts +1 -0
- package/dist/plugins/devices-shelly-ng/models/config.model.js +18 -6
- package/dist/plugins/devices-shelly-ng/models/config.model.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/models/shelly-ng-response.model.d.ts +4 -1
- package/dist/plugins/devices-shelly-ng/models/shelly-ng-response.model.js +15 -1
- package/dist/plugins/devices-shelly-ng/models/shelly-ng-response.model.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/models/shelly-ng.model.d.ts +30 -0
- package/dist/plugins/devices-shelly-ng/models/shelly-ng.model.js +269 -1
- package/dist/plugins/devices-shelly-ng/models/shelly-ng.model.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/services/device-manager.service.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/services/shelly-ng-discovery.service.d.ts +64 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-ng-discovery.service.js +301 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-ng-discovery.service.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-ng.service.d.ts +17 -7
- package/dist/plugins/devices-shelly-ng/services/shelly-ng.service.js +110 -15
- package/dist/plugins/devices-shelly-ng/services/shelly-ng.service.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/services/shelly-rpc-client.service.d.ts +5 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-rpc-client.service.js +3 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-rpc-client.service.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/services/shelly-ws-server.service.d.ts +28 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-ws-server.service.js +197 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-ws-server.service.js.map +1 -0
- package/dist/plugins/devices-shelly-v1/controllers/shelly-v1-devices.controller.d.ts +7 -2
- package/dist/plugins/devices-shelly-v1/controllers/shelly-v1-devices.controller.js +83 -2
- package/dist/plugins/devices-shelly-v1/controllers/shelly-v1-devices.controller.js.map +1 -1
- package/dist/plugins/devices-shelly-v1/devices-shelly-v1.openapi.d.ts +3 -3
- package/dist/plugins/devices-shelly-v1/devices-shelly-v1.openapi.js +4 -0
- package/dist/plugins/devices-shelly-v1/devices-shelly-v1.openapi.js.map +1 -1
- package/dist/plugins/devices-shelly-v1/devices-shelly-v1.plugin.js +27 -23
- package/dist/plugins/devices-shelly-v1/devices-shelly-v1.plugin.js.map +1 -1
- package/dist/plugins/devices-shelly-v1/models/shelly-v1-response.model.d.ts +4 -1
- package/dist/plugins/devices-shelly-v1/models/shelly-v1-response.model.js +15 -1
- package/dist/plugins/devices-shelly-v1/models/shelly-v1-response.model.js.map +1 -1
- package/dist/plugins/devices-shelly-v1/models/shelly-v1.model.d.ts +31 -0
- package/dist/plugins/devices-shelly-v1/models/shelly-v1.model.js +279 -1
- package/dist/plugins/devices-shelly-v1/models/shelly-v1.model.js.map +1 -1
- package/dist/plugins/devices-shelly-v1/platforms/shelly-v1.device.platform.d.ts +0 -1
- package/dist/plugins/devices-shelly-v1/platforms/shelly-v1.device.platform.js +2 -9
- package/dist/plugins/devices-shelly-v1/platforms/shelly-v1.device.platform.js.map +1 -1
- package/dist/plugins/devices-shelly-v1/services/device-mapper.service.d.ts +0 -1
- package/dist/plugins/devices-shelly-v1/services/device-mapper.service.js +2 -15
- package/dist/plugins/devices-shelly-v1/services/device-mapper.service.js.map +1 -1
- package/dist/plugins/devices-shelly-v1/services/shellies-adapter.service.d.ts +9 -2
- package/dist/plugins/devices-shelly-v1/services/shellies-adapter.service.js +93 -20
- package/dist/plugins/devices-shelly-v1/services/shellies-adapter.service.js.map +1 -1
- package/dist/plugins/devices-shelly-v1/services/shelly-v1-discovery.service.d.ts +62 -0
- package/dist/plugins/devices-shelly-v1/services/shelly-v1-discovery.service.js +314 -0
- package/dist/plugins/devices-shelly-v1/services/shelly-v1-discovery.service.js.map +1 -0
- package/dist/plugins/devices-shelly-v1/services/shelly-v1.service.d.ts +3 -6
- package/dist/plugins/devices-shelly-v1/services/shelly-v1.service.js +13 -37
- package/dist/plugins/devices-shelly-v1/services/shelly-v1.service.js.map +1 -1
- package/dist/plugins/devices-shelly-v1/utils/descriptor.utils.d.ts +2 -0
- package/dist/plugins/devices-shelly-v1/utils/descriptor.utils.js +23 -0
- package/dist/plugins/devices-shelly-v1/utils/descriptor.utils.js.map +1 -0
- package/dist/plugins/devices-third-party/devices-third-party.plugin.js +19 -23
- package/dist/plugins/devices-third-party/devices-third-party.plugin.js.map +1 -1
- package/dist/plugins/devices-wled/devices-wled.plugin.js +30 -20
- package/dist/plugins/devices-wled/devices-wled.plugin.js.map +1 -1
- package/dist/plugins/devices-wled/services/wled-mdns-discoverer.service.js +0 -6
- package/dist/plugins/devices-wled/services/wled-mdns-discoverer.service.js.map +1 -1
- package/dist/plugins/devices-wled/services/wled.service.d.ts +3 -6
- package/dist/plugins/devices-wled/services/wled.service.js +3 -20
- package/dist/plugins/devices-wled/services/wled.service.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/controllers/zigbee2mqtt-wizard.controller.d.ts +14 -0
- package/dist/plugins/devices-zigbee2mqtt/controllers/zigbee2mqtt-wizard.controller.js +185 -0
- package/dist/plugins/devices-zigbee2mqtt/controllers/zigbee2mqtt-wizard.controller.js.map +1 -0
- package/dist/plugins/devices-zigbee2mqtt/devices-zigbee2mqtt.openapi.d.ts +5 -3
- package/dist/plugins/devices-zigbee2mqtt/devices-zigbee2mqtt.openapi.js +12 -0
- package/dist/plugins/devices-zigbee2mqtt/devices-zigbee2mqtt.openapi.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/devices-zigbee2mqtt.plugin.js +43 -54
- package/dist/plugins/devices-zigbee2mqtt/devices-zigbee2mqtt.plugin.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/dto/wizard-adopt.dto.d.ts +12 -0
- package/dist/plugins/devices-zigbee2mqtt/dto/wizard-adopt.dto.js +73 -0
- package/dist/plugins/devices-zigbee2mqtt/dto/wizard-adopt.dto.js.map +1 -0
- package/dist/plugins/devices-zigbee2mqtt/models/wizard.model.d.ts +38 -0
- package/dist/plugins/devices-zigbee2mqtt/models/wizard.model.js +259 -0
- package/dist/plugins/devices-zigbee2mqtt/models/wizard.model.js.map +1 -0
- package/dist/plugins/devices-zigbee2mqtt/models/zigbee2mqtt-response.model.d.ts +7 -0
- package/dist/plugins/devices-zigbee2mqtt/models/zigbee2mqtt-response.model.js +30 -1
- package/dist/plugins/devices-zigbee2mqtt/models/zigbee2mqtt-response.model.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/services/base-client-adapter.d.ts +1 -0
- package/dist/plugins/devices-zigbee2mqtt/services/base-client-adapter.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/services/mqtt-client-adapter.service.d.ts +1 -0
- package/dist/plugins/devices-zigbee2mqtt/services/mqtt-client-adapter.service.js +22 -0
- package/dist/plugins/devices-zigbee2mqtt/services/mqtt-client-adapter.service.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/services/wizard.service.d.ts +70 -0
- package/dist/plugins/devices-zigbee2mqtt/services/wizard.service.js +361 -0
- package/dist/plugins/devices-zigbee2mqtt/services/wizard.service.js.map +1 -0
- package/dist/plugins/devices-zigbee2mqtt/services/ws-client-adapter.service.d.ts +1 -0
- package/dist/plugins/devices-zigbee2mqtt/services/ws-client-adapter.service.js +23 -0
- package/dist/plugins/devices-zigbee2mqtt/services/ws-client-adapter.service.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/services/zigbee2mqtt.service.d.ts +10 -7
- package/dist/plugins/devices-zigbee2mqtt/services/zigbee2mqtt.service.js +46 -22
- package/dist/plugins/devices-zigbee2mqtt/services/zigbee2mqtt.service.js.map +1 -1
- package/dist/{modules/storage/plugins/influx-v1/influx-v1.update-config.dto.d.ts → plugins/influx-v1/dto/update-config.dto.d.ts} +1 -1
- package/dist/{modules/storage/plugins/influx-v1/influx-v1.update-config.dto.js → plugins/influx-v1/dto/update-config.dto.js} +3 -3
- package/dist/plugins/influx-v1/dto/update-config.dto.js.map +1 -0
- package/dist/plugins/influx-v1/influx-v1.constants.js.map +1 -0
- package/dist/{modules/storage/plugins → plugins}/influx-v1/influx-v1.openapi.d.ts +1 -1
- package/dist/plugins/influx-v1/influx-v1.openapi.js +7 -0
- package/dist/plugins/influx-v1/influx-v1.openapi.js.map +1 -0
- package/dist/plugins/influx-v1/influx-v1.plugin.d.ts +15 -0
- package/dist/plugins/influx-v1/influx-v1.plugin.js +109 -0
- package/dist/plugins/influx-v1/influx-v1.plugin.js.map +1 -0
- package/dist/{modules/storage/plugins/influx-v1/influx-v1.config.model.d.ts → plugins/influx-v1/models/config.model.d.ts} +1 -1
- package/dist/{modules/storage/plugins/influx-v1/influx-v1.config.model.js → plugins/influx-v1/models/config.model.js} +3 -3
- package/dist/plugins/influx-v1/models/config.model.js.map +1 -0
- package/dist/plugins/influx-v1/services/influx-v1-managed.service.d.ts +20 -0
- package/dist/plugins/influx-v1/services/influx-v1-managed.service.js +128 -0
- package/dist/plugins/influx-v1/services/influx-v1-managed.service.js.map +1 -0
- package/dist/{modules/storage/plugins/influx-v1/influx-v1.plugin.d.ts → plugins/influx-v1/services/influx-v1.storage.d.ts} +3 -3
- package/dist/{modules/storage/plugins/influx-v1/influx-v1.plugin.js → plugins/influx-v1/services/influx-v1.storage.js} +9 -9
- package/dist/plugins/influx-v1/services/influx-v1.storage.js.map +1 -0
- package/dist/plugins/influx-v2/dto/update-config.dto.d.ts +8 -0
- package/dist/plugins/influx-v2/dto/update-config.dto.js +82 -0
- package/dist/plugins/influx-v2/dto/update-config.dto.js.map +1 -0
- package/dist/plugins/influx-v2/influx-v2.constants.d.ts +4 -0
- package/dist/plugins/influx-v2/influx-v2.constants.js +8 -0
- package/dist/plugins/influx-v2/influx-v2.constants.js.map +1 -0
- package/dist/plugins/influx-v2/influx-v2.openapi.d.ts +2 -0
- package/dist/plugins/influx-v2/influx-v2.openapi.js +7 -0
- package/dist/plugins/influx-v2/influx-v2.openapi.js.map +1 -0
- package/dist/plugins/influx-v2/influx-v2.plugin.d.ts +15 -0
- package/dist/plugins/influx-v2/influx-v2.plugin.js +109 -0
- package/dist/plugins/influx-v2/influx-v2.plugin.js.map +1 -0
- package/dist/plugins/influx-v2/models/config.model.d.ts +9 -0
- package/dist/plugins/influx-v2/models/config.model.js +93 -0
- package/dist/plugins/influx-v2/models/config.model.js.map +1 -0
- package/dist/plugins/influx-v2/services/influx-v2-managed.service.d.ts +20 -0
- package/dist/plugins/influx-v2/services/influx-v2-managed.service.js +132 -0
- package/dist/plugins/influx-v2/services/influx-v2-managed.service.js.map +1 -0
- package/dist/plugins/influx-v2/services/influx-v2.storage.d.ts +33 -0
- package/dist/plugins/influx-v2/services/influx-v2.storage.js +230 -0
- package/dist/plugins/influx-v2/services/influx-v2.storage.js.map +1 -0
- package/dist/plugins/logger-rotating-file/logger-rotating-file.plugin.js +20 -29
- package/dist/plugins/logger-rotating-file/logger-rotating-file.plugin.js.map +1 -1
- package/dist/{modules/storage/plugins/memory/memory.update-config.dto.d.ts → plugins/memory-storage/dto/update-config.dto.d.ts} +1 -1
- package/dist/{modules/storage/plugins/memory/memory.update-config.dto.js → plugins/memory-storage/dto/update-config.dto.js} +5 -5
- package/dist/plugins/memory-storage/dto/update-config.dto.js.map +1 -0
- package/dist/{modules/storage/plugins/memory/memory.constants.js → plugins/memory-storage/memory-storage.constants.js} +1 -1
- package/dist/plugins/memory-storage/memory-storage.constants.js.map +1 -0
- package/dist/{modules/storage/plugins/memory/memory.openapi.d.ts → plugins/memory-storage/memory-storage.openapi.d.ts} +1 -1
- package/dist/plugins/memory-storage/memory-storage.openapi.js +7 -0
- package/dist/plugins/memory-storage/memory-storage.openapi.js.map +1 -0
- package/dist/plugins/memory-storage/memory-storage.plugin.d.ts +15 -0
- package/dist/plugins/memory-storage/memory-storage.plugin.js +92 -0
- package/dist/plugins/memory-storage/memory-storage.plugin.js.map +1 -0
- package/dist/{modules/storage/plugins/memory/memory.config.model.d.ts → plugins/memory-storage/models/config.model.d.ts} +1 -1
- package/dist/{modules/storage/plugins/memory/memory.config.model.js → plugins/memory-storage/models/config.model.js} +5 -5
- package/dist/plugins/memory-storage/models/config.model.js.map +1 -0
- package/dist/{modules/storage/plugins/memory → plugins/memory-storage/services}/in-memory-timeseries.store.d.ts +1 -1
- package/dist/{modules/storage/plugins/memory → plugins/memory-storage/services}/in-memory-timeseries.store.js +4 -4
- package/dist/plugins/memory-storage/services/in-memory-timeseries.store.js.map +1 -0
- package/dist/plugins/memory-storage/services/influxql-parser.js.map +1 -0
- package/dist/plugins/memory-storage/services/memory-storage-managed.service.d.ts +14 -0
- package/dist/plugins/memory-storage/services/memory-storage-managed.service.js +87 -0
- package/dist/plugins/memory-storage/services/memory-storage-managed.service.js.map +1 -0
- package/dist/{modules/storage/plugins/memory/memory.plugin.d.ts → plugins/memory-storage/services/memory-storage.storage.d.ts} +3 -3
- package/dist/{modules/storage/plugins/memory/memory.plugin.js → plugins/memory-storage/services/memory-storage.storage.js} +8 -8
- package/dist/plugins/memory-storage/services/memory-storage.storage.js.map +1 -0
- package/dist/plugins/pages-cards/pages-cards.plugin.js +15 -26
- package/dist/plugins/pages-cards/pages-cards.plugin.js.map +1 -1
- package/dist/plugins/pages-device-detail/pages-device-detail.plugin.js +16 -25
- package/dist/plugins/pages-device-detail/pages-device-detail.plugin.js.map +1 -1
- package/dist/plugins/pages-tiles/pages-tiles.plugin.js +15 -26
- package/dist/plugins/pages-tiles/pages-tiles.plugin.js.map +1 -1
- package/dist/plugins/scenes-local/scenes-local.plugin.js +21 -22
- package/dist/plugins/scenes-local/scenes-local.plugin.js.map +1 -1
- package/dist/plugins/simulator/services/scenario-executor.service.d.ts +5 -5
- package/dist/plugins/simulator/services/scenario-executor.service.js +7 -6
- package/dist/plugins/simulator/services/scenario-executor.service.js.map +1 -1
- package/dist/plugins/simulator/services/simulator-actions.service.js +3 -0
- package/dist/plugins/simulator/services/simulator-actions.service.js.map +1 -1
- package/dist/plugins/simulator/simulator.plugin.js +49 -58
- package/dist/plugins/simulator/simulator.plugin.js.map +1 -1
- package/dist/plugins/spaces-home-control/controllers/spaces-domain.controller.d.ts +119 -0
- package/dist/plugins/spaces-home-control/controllers/spaces-domain.controller.js +1958 -0
- package/dist/plugins/spaces-home-control/controllers/spaces-domain.controller.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/climate-intent.dto.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/climate-intent.dto.js +24 -24
- package/dist/plugins/spaces-home-control/dto/climate-intent.dto.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/climate-role.dto.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/climate-role.dto.js +4 -4
- package/dist/plugins/spaces-home-control/dto/climate-role.dto.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/covers-intent.dto.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/covers-intent.dto.js +18 -18
- package/dist/plugins/spaces-home-control/dto/covers-intent.dto.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/covers-role.dto.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/covers-role.dto.js +4 -4
- package/dist/plugins/spaces-home-control/dto/covers-role.dto.js.map +1 -0
- package/dist/plugins/spaces-home-control/dto/create-home-control-space.dto.d.ts +8 -0
- package/dist/plugins/spaces-home-control/dto/create-home-control-space.dto.js +85 -0
- package/dist/plugins/spaces-home-control/dto/create-home-control-space.dto.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/lighting-intent.dto.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/lighting-intent.dto.js +34 -34
- package/dist/plugins/spaces-home-control/dto/lighting-intent.dto.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/lighting-role.dto.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/lighting-role.dto.js +4 -4
- package/dist/plugins/spaces-home-control/dto/lighting-role.dto.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/media-activity-binding.dto.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/media-activity-binding.dto.js +4 -4
- package/dist/plugins/spaces-home-control/dto/media-activity-binding.dto.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/sensor-role.dto.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/sensor-role.dto.js +4 -4
- package/dist/plugins/spaces-home-control/dto/sensor-role.dto.js.map +1 -0
- package/dist/plugins/spaces-home-control/dto/status-widget.dto.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/suggestion.dto.d.ts +2 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/suggestion.dto.js +5 -4
- package/dist/plugins/spaces-home-control/dto/suggestion.dto.js.map +1 -0
- package/dist/plugins/spaces-home-control/dto/update-config.dto.d.ts +5 -0
- package/dist/plugins/spaces-home-control/dto/update-config.dto.js +34 -0
- package/dist/plugins/spaces-home-control/dto/update-config.dto.js.map +1 -0
- package/dist/plugins/spaces-home-control/dto/update-home-control-space.dto.d.ts +8 -0
- package/dist/plugins/spaces-home-control/dto/update-home-control-space.dto.js +85 -0
- package/dist/plugins/spaces-home-control/dto/update-home-control-space.dto.js.map +1 -0
- package/dist/plugins/spaces-home-control/entities/room-space.entity.d.ts +8 -0
- package/dist/plugins/spaces-home-control/entities/room-space.entity.js +91 -0
- package/dist/plugins/spaces-home-control/entities/room-space.entity.js.map +1 -0
- package/dist/plugins/spaces-home-control/entities/space-active-media-activity.entity.d.ts +11 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/entities/space-active-media-activity.entity.js +23 -30
- package/dist/plugins/spaces-home-control/entities/space-active-media-activity.entity.js.map +1 -0
- package/dist/plugins/spaces-home-control/entities/space-climate-role.entity.d.ts +13 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/entities/space-climate-role.entity.js +25 -32
- package/dist/plugins/spaces-home-control/entities/space-climate-role.entity.js.map +1 -0
- package/dist/plugins/spaces-home-control/entities/space-covers-role.entity.d.ts +13 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/entities/space-covers-role.entity.js +27 -34
- package/dist/plugins/spaces-home-control/entities/space-covers-role.entity.js.map +1 -0
- package/dist/plugins/spaces-home-control/entities/space-lighting-role.entity.d.ts +13 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/entities/space-lighting-role.entity.js +27 -34
- package/dist/plugins/spaces-home-control/entities/space-lighting-role.entity.js.map +1 -0
- package/dist/plugins/spaces-home-control/entities/space-media-activity-binding.entity.d.ts +15 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/entities/space-media-activity-binding.entity.js +20 -28
- package/dist/plugins/spaces-home-control/entities/space-media-activity-binding.entity.js.map +1 -0
- package/dist/plugins/spaces-home-control/entities/space-sensor-role.entity.d.ts +13 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/entities/space-sensor-role.entity.js +27 -34
- package/dist/plugins/spaces-home-control/entities/space-sensor-role.entity.js.map +1 -0
- package/dist/plugins/spaces-home-control/entities/zone-space.entity.d.ts +8 -0
- package/dist/plugins/spaces-home-control/entities/zone-space.entity.js +91 -0
- package/dist/plugins/spaces-home-control/entities/zone-space.entity.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/listeners/space-activity.listener.d.ts +2 -2
- package/dist/{modules/spaces → plugins/spaces-home-control}/listeners/space-activity.listener.js +4 -4
- package/dist/plugins/spaces-home-control/listeners/space-activity.listener.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/listeners/space-climate-state.listener.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/listeners/space-climate-state.listener.js +6 -5
- package/dist/plugins/spaces-home-control/listeners/space-climate-state.listener.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/listeners/space-lighting-state.listener.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/listeners/space-lighting-state.listener.js +6 -5
- package/dist/plugins/spaces-home-control/listeners/space-lighting-state.listener.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/listeners/space-sensor-state.listener.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/listeners/space-sensor-state.listener.js +9 -8
- package/dist/plugins/spaces-home-control/listeners/space-sensor-state.listener.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/listeners/websocket-exchange.listener.d.ts +2 -2
- package/dist/{modules/spaces → plugins/spaces-home-control}/listeners/websocket-exchange.listener.js +5 -5
- package/dist/plugins/spaces-home-control/listeners/websocket-exchange.listener.js.map +1 -0
- package/dist/plugins/spaces-home-control/models/config.model.d.ts +5 -0
- package/dist/plugins/spaces-home-control/models/config.model.js +49 -0
- package/dist/plugins/spaces-home-control/models/config.model.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/models/derived-media-endpoint.model.d.ts +2 -2
- package/dist/{modules/spaces → plugins/spaces-home-control}/models/derived-media-endpoint.model.js +4 -4
- package/dist/plugins/spaces-home-control/models/derived-media-endpoint.model.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/models/media-activity-binding.model.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/models/media-activity-binding.model.js +1 -1
- package/dist/plugins/spaces-home-control/models/media-activity-binding.model.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/models/media-activity.model.d.ts +2 -2
- package/dist/{modules/spaces → plugins/spaces-home-control}/models/media-activity.model.js +6 -6
- package/dist/plugins/spaces-home-control/models/media-activity.model.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/models/media-routing.model.d.ts +2 -2
- package/dist/{modules/spaces → plugins/spaces-home-control}/models/media-routing.model.js +4 -4
- package/dist/plugins/spaces-home-control/models/media-routing.model.js.map +1 -0
- package/dist/plugins/spaces-home-control/models/spaces-response.model.d.ts +524 -0
- package/dist/plugins/spaces-home-control/models/spaces-response.model.js +4145 -0
- package/dist/plugins/spaces-home-control/models/spaces-response.model.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/__fixtures__/media-scenario-templates.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/__fixtures__/media-scenario-templates.js +3 -3
- package/dist/plugins/spaces-home-control/services/__fixtures__/media-scenario-templates.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/__fixtures__/media-test-harness.d.ts +1 -1
- package/dist/plugins/spaces-home-control/services/__fixtures__/media-test-harness.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/climate-intent.service.d.ts +5 -5
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/climate-intent.service.js +35 -34
- package/dist/plugins/spaces-home-control/services/climate-intent.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/covers-intent.service.d.ts +5 -5
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/covers-intent.service.js +48 -47
- package/dist/plugins/spaces-home-control/services/covers-intent.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/derived-media-endpoint.service.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/derived-media-endpoint.service.js +28 -27
- package/dist/plugins/spaces-home-control/services/derived-media-endpoint.service.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/home-control-home-page.resolver.d.ts +4 -0
- package/dist/plugins/spaces-home-control/services/home-control-home-page.resolver.js +20 -0
- package/dist/plugins/spaces-home-control/services/home-control-home-page.resolver.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/home-control-spaces.service.d.ts +24 -0
- package/dist/plugins/spaces-home-control/services/home-control-spaces.service.js +182 -0
- package/dist/plugins/spaces-home-control/services/home-control-spaces.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/lighting-intent.service.d.ts +6 -6
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/lighting-intent.service.js +68 -67
- package/dist/plugins/spaces-home-control/services/lighting-intent.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/media-capability.service.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/media-capability.service.js +20 -19
- package/dist/plugins/spaces-home-control/services/media-capability.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-climate-role.service.d.ts +4 -4
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-climate-role.service.js +18 -17
- package/dist/plugins/spaces-home-control/services/space-climate-role.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-climate-state.service.d.ts +5 -5
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-climate-state.service.js +32 -31
- package/dist/plugins/spaces-home-control/services/space-climate-state.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-context-snapshot.service.d.ts +2 -2
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-context-snapshot.service.js +7 -6
- package/dist/plugins/spaces-home-control/services/space-context-snapshot.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-covers-role.service.d.ts +3 -3
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-covers-role.service.js +28 -25
- package/dist/plugins/spaces-home-control/services/space-covers-role.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-covers-state.service.d.ts +4 -4
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-covers-state.service.js +9 -8
- package/dist/plugins/spaces-home-control/services/space-covers-state.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-intent-base.service.d.ts +1 -1
- package/dist/plugins/spaces-home-control/services/space-intent-base.service.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/space-intent.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-lighting-role.service.d.ts +3 -3
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-lighting-role.service.js +25 -22
- package/dist/plugins/spaces-home-control/services/space-lighting-role.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-lighting-state.service.d.ts +3 -3
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-lighting-state.service.js +20 -19
- package/dist/plugins/spaces-home-control/services/space-lighting-state.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-lighting-tool.service.d.ts +4 -4
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-lighting-tool.service.js +8 -7
- package/dist/plugins/spaces-home-control/services/space-lighting-tool.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-media-activity-binding.service.d.ts +2 -2
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-media-activity-binding.service.js +31 -30
- package/dist/plugins/spaces-home-control/services/space-media-activity-binding.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-media-activity.service.d.ts +3 -3
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-media-activity.service.js +38 -37
- package/dist/plugins/spaces-home-control/services/space-media-activity.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-sensor-role.service.d.ts +4 -4
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-sensor-role.service.js +24 -23
- package/dist/plugins/spaces-home-control/services/space-sensor-role.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-sensor-state.service.d.ts +3 -3
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-sensor-state.service.js +19 -18
- package/dist/plugins/spaces-home-control/services/space-sensor-state.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-suggestion-heartbeat.service.d.ts +2 -2
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-suggestion-heartbeat.service.js +10 -9
- package/dist/plugins/spaces-home-control/services/space-suggestion-heartbeat.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-suggestion.service.d.ts +4 -3
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-suggestion.service.js +8 -7
- package/dist/plugins/spaces-home-control/services/space-suggestion.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-undo-history.service.d.ts +3 -3
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-undo-history.service.js +5 -5
- package/dist/plugins/spaces-home-control/services/space-undo-history.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/spaces-seeder.service.d.ts +2 -2
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/spaces-seeder.service.js +5 -5
- package/dist/plugins/spaces-home-control/services/spaces-seeder.service.js.map +1 -0
- package/dist/plugins/spaces-home-control/spaces-home-control.constants.d.ts +297 -0
- package/dist/plugins/spaces-home-control/spaces-home-control.constants.js +1460 -0
- package/dist/plugins/spaces-home-control/spaces-home-control.constants.js.map +1 -0
- package/dist/plugins/spaces-home-control/spaces-home-control.openapi.d.ts +2 -0
- package/dist/plugins/spaces-home-control/spaces-home-control.openapi.js +155 -0
- package/dist/plugins/spaces-home-control/spaces-home-control.openapi.js.map +1 -0
- package/dist/plugins/spaces-home-control/spaces-home-control.plugin.d.ts +29 -0
- package/dist/plugins/spaces-home-control/spaces-home-control.plugin.js +334 -0
- package/dist/plugins/spaces-home-control/spaces-home-control.plugin.js.map +1 -0
- package/dist/plugins/spaces-home-control/spec/index.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/spec/intent-spec-loader.service.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/spec/intent-spec-loader.service.js +1 -1
- package/dist/plugins/spaces-home-control/spec/intent-spec-loader.service.js.map +1 -0
- package/dist/plugins/spaces-home-control/spec/intent-spec.types.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/validators/at-least-one-setpoint.validator.js +2 -2
- package/dist/plugins/spaces-home-control/validators/at-least-one-setpoint.validator.js.map +1 -0
- package/dist/plugins/spaces-home-control/validators/setpoint-order-constraint.validator.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/validators/space-category-constraint.validator.js +1 -1
- package/dist/plugins/spaces-home-control/validators/space-category-constraint.validator.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/controllers/signage-announcements.controller.d.ts +18 -0
- package/dist/plugins/spaces-signage-info-panel/controllers/signage-announcements.controller.js +219 -0
- package/dist/plugins/spaces-signage-info-panel/controllers/signage-announcements.controller.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/dto/create-announcement.dto.d.ts +13 -0
- package/dist/plugins/spaces-signage-info-panel/dto/create-announcement.dto.js +143 -0
- package/dist/plugins/spaces-signage-info-panel/dto/create-announcement.dto.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/dto/create-signage-info-panel-space.dto.d.ts +13 -0
- package/dist/plugins/spaces-signage-info-panel/dto/create-signage-info-panel-space.dto.js +130 -0
- package/dist/plugins/spaces-signage-info-panel/dto/create-signage-info-panel-space.dto.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/dto/reorder-announcements.dto.d.ts +10 -0
- package/dist/plugins/spaces-signage-info-panel/dto/reorder-announcements.dto.js +78 -0
- package/dist/plugins/spaces-signage-info-panel/dto/reorder-announcements.dto.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/dto/update-announcement.dto.d.ts +12 -0
- package/dist/plugins/spaces-signage-info-panel/dto/update-announcement.dto.js +134 -0
- package/dist/plugins/spaces-signage-info-panel/dto/update-announcement.dto.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/dto/update-config.dto.d.ts +5 -0
- package/dist/plugins/spaces-signage-info-panel/dto/update-config.dto.js +34 -0
- package/dist/plugins/spaces-signage-info-panel/dto/update-config.dto.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/dto/update-signage-info-panel-space.dto.d.ts +13 -0
- package/dist/plugins/spaces-signage-info-panel/dto/update-signage-info-panel-space.dto.js +130 -0
- package/dist/plugins/spaces-signage-info-panel/dto/update-signage-info-panel-space.dto.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/entities/signage-announcement.entity.d.ts +13 -0
- package/dist/plugins/spaces-signage-info-panel/entities/signage-announcement.entity.js +161 -0
- package/dist/plugins/spaces-signage-info-panel/entities/signage-announcement.entity.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/entities/signage-info-panel-space.entity.d.ts +13 -0
- package/dist/plugins/spaces-signage-info-panel/entities/signage-info-panel-space.entity.js +147 -0
- package/dist/plugins/spaces-signage-info-panel/entities/signage-info-panel-space.entity.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/models/config.model.d.ts +5 -0
- package/dist/plugins/spaces-signage-info-panel/models/config.model.js +49 -0
- package/dist/plugins/spaces-signage-info-panel/models/config.model.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/models/signage-announcement-response.model.d.ts +8 -0
- package/dist/plugins/spaces-signage-info-panel/models/signage-announcement-response.model.js +46 -0
- package/dist/plugins/spaces-signage-info-panel/models/signage-announcement-response.model.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/services/signage-announcements.service.d.ts +28 -0
- package/dist/plugins/spaces-signage-info-panel/services/signage-announcements.service.js +181 -0
- package/dist/plugins/spaces-signage-info-panel/services/signage-announcements.service.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/services/signage-home-page.resolver.d.ts +4 -0
- package/dist/plugins/spaces-signage-info-panel/services/signage-home-page.resolver.js +20 -0
- package/dist/plugins/spaces-signage-info-panel/services/signage-home-page.resolver.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/services/signage-info-panel-reset.service.d.ts +14 -0
- package/dist/plugins/spaces-signage-info-panel/services/signage-info-panel-reset.service.js +59 -0
- package/dist/plugins/spaces-signage-info-panel/services/signage-info-panel-reset.service.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/spaces-signage-info-panel.constants.d.ts +17 -0
- package/dist/plugins/spaces-signage-info-panel/spaces-signage-info-panel.constants.js +23 -0
- package/dist/plugins/spaces-signage-info-panel/spaces-signage-info-panel.constants.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/spaces-signage-info-panel.exceptions.d.ts +9 -0
- package/dist/plugins/spaces-signage-info-panel/spaces-signage-info-panel.exceptions.js +25 -0
- package/dist/plugins/spaces-signage-info-panel/spaces-signage-info-panel.exceptions.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/spaces-signage-info-panel.openapi.d.ts +2 -0
- package/dist/plugins/spaces-signage-info-panel/spaces-signage-info-panel.openapi.js +31 -0
- package/dist/plugins/spaces-signage-info-panel/spaces-signage-info-panel.openapi.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/spaces-signage-info-panel.plugin.d.ts +23 -0
- package/dist/plugins/spaces-signage-info-panel/spaces-signage-info-panel.plugin.js +159 -0
- package/dist/plugins/spaces-signage-info-panel/spaces-signage-info-panel.plugin.js.map +1 -0
- package/dist/plugins/spaces-synthetic-entry/dto/create-entry-space.dto.d.ts +5 -0
- package/dist/plugins/spaces-synthetic-entry/dto/create-entry-space.dto.js +31 -0
- package/dist/plugins/spaces-synthetic-entry/dto/create-entry-space.dto.js.map +1 -0
- package/dist/plugins/spaces-synthetic-entry/dto/update-config.dto.d.ts +5 -0
- package/dist/plugins/spaces-synthetic-entry/dto/update-config.dto.js +34 -0
- package/dist/plugins/spaces-synthetic-entry/dto/update-config.dto.js.map +1 -0
- package/dist/plugins/spaces-synthetic-entry/dto/update-entry-space.dto.d.ts +5 -0
- package/dist/plugins/spaces-synthetic-entry/dto/update-entry-space.dto.js +31 -0
- package/dist/plugins/spaces-synthetic-entry/dto/update-entry-space.dto.js.map +1 -0
- package/dist/plugins/spaces-synthetic-entry/entities/entry-space.entity.d.ts +5 -0
- package/dist/plugins/spaces-synthetic-entry/entities/entry-space.entity.js +39 -0
- package/dist/plugins/spaces-synthetic-entry/entities/entry-space.entity.js.map +1 -0
- package/dist/plugins/spaces-synthetic-entry/models/config.model.d.ts +5 -0
- package/dist/plugins/spaces-synthetic-entry/models/config.model.js +49 -0
- package/dist/plugins/spaces-synthetic-entry/models/config.model.js.map +1 -0
- package/dist/plugins/spaces-synthetic-entry/spaces-synthetic-entry.constants.d.ts +7 -0
- package/dist/plugins/spaces-synthetic-entry/spaces-synthetic-entry.constants.js +11 -0
- package/dist/plugins/spaces-synthetic-entry/spaces-synthetic-entry.constants.js.map +1 -0
- package/dist/plugins/spaces-synthetic-entry/spaces-synthetic-entry.openapi.d.ts +2 -0
- package/dist/plugins/spaces-synthetic-entry/spaces-synthetic-entry.openapi.js +16 -0
- package/dist/plugins/spaces-synthetic-entry/spaces-synthetic-entry.openapi.js.map +1 -0
- package/dist/plugins/spaces-synthetic-entry/spaces-synthetic-entry.plugin.d.ts +15 -0
- package/dist/plugins/spaces-synthetic-entry/spaces-synthetic-entry.plugin.js +124 -0
- package/dist/plugins/spaces-synthetic-entry/spaces-synthetic-entry.plugin.js.map +1 -0
- package/dist/plugins/spaces-synthetic-master/dto/create-master-space.dto.d.ts +5 -0
- package/dist/plugins/spaces-synthetic-master/dto/create-master-space.dto.js +31 -0
- package/dist/plugins/spaces-synthetic-master/dto/create-master-space.dto.js.map +1 -0
- package/dist/plugins/spaces-synthetic-master/dto/update-config.dto.d.ts +5 -0
- package/dist/plugins/spaces-synthetic-master/dto/update-config.dto.js +34 -0
- package/dist/plugins/spaces-synthetic-master/dto/update-config.dto.js.map +1 -0
- package/dist/plugins/spaces-synthetic-master/dto/update-master-space.dto.d.ts +5 -0
- package/dist/plugins/spaces-synthetic-master/dto/update-master-space.dto.js +31 -0
- package/dist/plugins/spaces-synthetic-master/dto/update-master-space.dto.js.map +1 -0
- package/dist/plugins/spaces-synthetic-master/entities/master-space.entity.d.ts +5 -0
- package/dist/plugins/spaces-synthetic-master/entities/master-space.entity.js +39 -0
- package/dist/plugins/spaces-synthetic-master/entities/master-space.entity.js.map +1 -0
- package/dist/plugins/spaces-synthetic-master/models/config.model.d.ts +5 -0
- package/dist/plugins/spaces-synthetic-master/models/config.model.js +49 -0
- package/dist/plugins/spaces-synthetic-master/models/config.model.js.map +1 -0
- package/dist/plugins/spaces-synthetic-master/spaces-synthetic-master.constants.d.ts +7 -0
- package/dist/plugins/spaces-synthetic-master/spaces-synthetic-master.constants.js +11 -0
- package/dist/plugins/spaces-synthetic-master/spaces-synthetic-master.constants.js.map +1 -0
- package/dist/plugins/spaces-synthetic-master/spaces-synthetic-master.openapi.d.ts +2 -0
- package/dist/plugins/spaces-synthetic-master/spaces-synthetic-master.openapi.js +16 -0
- package/dist/plugins/spaces-synthetic-master/spaces-synthetic-master.openapi.js.map +1 -0
- package/dist/plugins/spaces-synthetic-master/spaces-synthetic-master.plugin.d.ts +15 -0
- package/dist/plugins/spaces-synthetic-master/spaces-synthetic-master.plugin.js +124 -0
- package/dist/plugins/spaces-synthetic-master/spaces-synthetic-master.plugin.js.map +1 -0
- package/dist/plugins/tiles-device-preview/tiles-device-preview.plugin.js +16 -22
- package/dist/plugins/tiles-device-preview/tiles-device-preview.plugin.js.map +1 -1
- package/dist/plugins/tiles-scene/tiles-scene.plugin.js +15 -21
- package/dist/plugins/tiles-scene/tiles-scene.plugin.js.map +1 -1
- package/dist/plugins/tiles-time/tiles-time.plugin.js +13 -19
- package/dist/plugins/tiles-time/tiles-time.plugin.js.map +1 -1
- package/dist/plugins/tiles-weather/tiles-weather.plugin.js +16 -19
- package/dist/plugins/tiles-weather/tiles-weather.plugin.js.map +1 -1
- package/dist/plugins/weather-open-meteo/weather-open-meteo.plugin.js +32 -21
- package/dist/plugins/weather-open-meteo/weather-open-meteo.plugin.js.map +1 -1
- package/dist/plugins/weather-openweathermap/weather-openweathermap.plugin.js +22 -23
- package/dist/plugins/weather-openweathermap/weather-openweathermap.plugin.js.map +1 -1
- package/dist/plugins/weather-openweathermap-onecall/weather-openweathermap-onecall.plugin.js +27 -23
- package/dist/plugins/weather-openweathermap-onecall/weather-openweathermap-onecall.plugin.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +10 -6
- package/dist/modules/spaces/dto/climate-intent.dto.js.map +0 -1
- package/dist/modules/spaces/dto/climate-role.dto.js.map +0 -1
- package/dist/modules/spaces/dto/covers-intent.dto.js.map +0 -1
- package/dist/modules/spaces/dto/covers-role.dto.js.map +0 -1
- package/dist/modules/spaces/dto/lighting-intent.dto.js.map +0 -1
- package/dist/modules/spaces/dto/lighting-role.dto.js.map +0 -1
- package/dist/modules/spaces/dto/media-activity-binding.dto.js.map +0 -1
- package/dist/modules/spaces/dto/sensor-role.dto.js.map +0 -1
- package/dist/modules/spaces/dto/status-widget.dto.js.map +0 -1
- package/dist/modules/spaces/dto/suggestion.dto.js.map +0 -1
- package/dist/modules/spaces/entities/space-active-media-activity.entity.d.ts +0 -12
- package/dist/modules/spaces/entities/space-active-media-activity.entity.js.map +0 -1
- package/dist/modules/spaces/entities/space-climate-role.entity.d.ts +0 -14
- package/dist/modules/spaces/entities/space-climate-role.entity.js.map +0 -1
- package/dist/modules/spaces/entities/space-covers-role.entity.d.ts +0 -14
- package/dist/modules/spaces/entities/space-covers-role.entity.js.map +0 -1
- package/dist/modules/spaces/entities/space-lighting-role.entity.d.ts +0 -14
- package/dist/modules/spaces/entities/space-lighting-role.entity.js.map +0 -1
- package/dist/modules/spaces/entities/space-media-activity-binding.entity.d.ts +0 -16
- package/dist/modules/spaces/entities/space-media-activity-binding.entity.js.map +0 -1
- package/dist/modules/spaces/entities/space-sensor-role.entity.d.ts +0 -14
- package/dist/modules/spaces/entities/space-sensor-role.entity.js.map +0 -1
- package/dist/modules/spaces/listeners/space-activity.listener.js.map +0 -1
- package/dist/modules/spaces/listeners/space-climate-state.listener.js.map +0 -1
- package/dist/modules/spaces/listeners/space-lighting-state.listener.js.map +0 -1
- package/dist/modules/spaces/listeners/space-sensor-state.listener.js.map +0 -1
- package/dist/modules/spaces/listeners/websocket-exchange.listener.js.map +0 -1
- package/dist/modules/spaces/models/derived-media-endpoint.model.js.map +0 -1
- package/dist/modules/spaces/models/media-activity-binding.model.js.map +0 -1
- package/dist/modules/spaces/models/media-activity.model.js.map +0 -1
- package/dist/modules/spaces/models/media-routing.model.js.map +0 -1
- package/dist/modules/spaces/services/__fixtures__/media-scenario-templates.js.map +0 -1
- package/dist/modules/spaces/services/__fixtures__/media-test-harness.js.map +0 -1
- package/dist/modules/spaces/services/climate-intent.service.js.map +0 -1
- package/dist/modules/spaces/services/covers-intent.service.js.map +0 -1
- package/dist/modules/spaces/services/derived-media-endpoint.service.js.map +0 -1
- package/dist/modules/spaces/services/lighting-intent.service.js.map +0 -1
- package/dist/modules/spaces/services/media-capability.service.js.map +0 -1
- package/dist/modules/spaces/services/space-climate-role.service.js.map +0 -1
- package/dist/modules/spaces/services/space-climate-state.service.js.map +0 -1
- package/dist/modules/spaces/services/space-context-snapshot.service.js.map +0 -1
- package/dist/modules/spaces/services/space-covers-role.service.js.map +0 -1
- package/dist/modules/spaces/services/space-covers-state.service.js.map +0 -1
- package/dist/modules/spaces/services/space-intent-base.service.js.map +0 -1
- package/dist/modules/spaces/services/space-intent.service.js.map +0 -1
- package/dist/modules/spaces/services/space-lighting-role.service.js.map +0 -1
- package/dist/modules/spaces/services/space-lighting-state.service.js.map +0 -1
- package/dist/modules/spaces/services/space-lighting-tool.service.js.map +0 -1
- package/dist/modules/spaces/services/space-media-activity-binding.service.js.map +0 -1
- package/dist/modules/spaces/services/space-media-activity.service.js.map +0 -1
- package/dist/modules/spaces/services/space-sensor-role.service.js.map +0 -1
- package/dist/modules/spaces/services/space-sensor-state.service.js.map +0 -1
- package/dist/modules/spaces/services/space-suggestion-heartbeat.service.js.map +0 -1
- package/dist/modules/spaces/services/space-suggestion.service.js.map +0 -1
- package/dist/modules/spaces/services/space-undo-history.service.js.map +0 -1
- package/dist/modules/spaces/services/spaces-seeder.service.js.map +0 -1
- package/dist/modules/spaces/spec/definitions/climate-intents.yaml +0 -94
- package/dist/modules/spaces/spec/definitions/covers-modes.yaml +0 -83
- package/dist/modules/spaces/spec/definitions/enums.yaml +0 -119
- package/dist/modules/spaces/spec/definitions/lighting-intents.yaml +0 -181
- package/dist/modules/spaces/spec/definitions/lighting-modes.yaml +0 -119
- package/dist/modules/spaces/spec/definitions/suggestions.yaml +0 -47
- package/dist/modules/spaces/spec/index.js.map +0 -1
- package/dist/modules/spaces/spec/intent-spec-loader.service.js.map +0 -1
- package/dist/modules/spaces/spec/intent-spec.types.js.map +0 -1
- package/dist/modules/spaces/validators/at-least-one-setpoint.validator.js.map +0 -1
- package/dist/modules/spaces/validators/setpoint-order-constraint.validator.js.map +0 -1
- package/dist/modules/spaces/validators/space-category-constraint.validator.js.map +0 -1
- package/dist/modules/storage/plugins/influx-v1/influx-v1.config.model.js.map +0 -1
- package/dist/modules/storage/plugins/influx-v1/influx-v1.constants.js.map +0 -1
- package/dist/modules/storage/plugins/influx-v1/influx-v1.module.d.ts +0 -17
- package/dist/modules/storage/plugins/influx-v1/influx-v1.module.js +0 -94
- package/dist/modules/storage/plugins/influx-v1/influx-v1.module.js.map +0 -1
- package/dist/modules/storage/plugins/influx-v1/influx-v1.openapi.js +0 -7
- package/dist/modules/storage/plugins/influx-v1/influx-v1.openapi.js.map +0 -1
- package/dist/modules/storage/plugins/influx-v1/influx-v1.plugin.js.map +0 -1
- package/dist/modules/storage/plugins/influx-v1/influx-v1.update-config.dto.js.map +0 -1
- package/dist/modules/storage/plugins/memory/in-memory-timeseries.store.js.map +0 -1
- package/dist/modules/storage/plugins/memory/influxql-parser.js.map +0 -1
- package/dist/modules/storage/plugins/memory/memory.config.model.js.map +0 -1
- package/dist/modules/storage/plugins/memory/memory.constants.js.map +0 -1
- package/dist/modules/storage/plugins/memory/memory.module.d.ts +0 -13
- package/dist/modules/storage/plugins/memory/memory.module.js +0 -75
- package/dist/modules/storage/plugins/memory/memory.module.js.map +0 -1
- package/dist/modules/storage/plugins/memory/memory.openapi.js +0 -7
- package/dist/modules/storage/plugins/memory/memory.openapi.js.map +0 -1
- package/dist/modules/storage/plugins/memory/memory.plugin.js.map +0 -1
- package/dist/modules/storage/plugins/memory/memory.update-config.dto.js.map +0 -1
- /package/dist/{modules/storage/plugins → plugins}/influx-v1/influx-v1.constants.d.ts +0 -0
- /package/dist/{modules/storage/plugins → plugins}/influx-v1/influx-v1.constants.js +0 -0
- /package/dist/{modules/storage/plugins/memory/memory.constants.d.ts → plugins/memory-storage/memory-storage.constants.d.ts} +0 -0
- /package/dist/{modules/storage/plugins/memory → plugins/memory-storage/services}/influxql-parser.d.ts +0 -0
- /package/dist/{modules/storage/plugins/memory → plugins/memory-storage/services}/influxql-parser.js +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/dto/status-widget.dto.d.ts +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/dto/status-widget.dto.js +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/services/__fixtures__/media-test-harness.js +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-intent-base.service.js +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-intent.service.d.ts +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-intent.service.js +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/spec/index.d.ts +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/spec/index.js +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/spec/intent-spec.types.d.ts +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/spec/intent-spec.types.js +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/validators/at-least-one-setpoint.validator.d.ts +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/validators/setpoint-order-constraint.validator.d.ts +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/validators/setpoint-order-constraint.validator.js +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/validators/space-category-constraint.validator.d.ts +0 -0
|
@@ -2,8 +2,10 @@ import { OnModuleInit } from '@nestjs/common';
|
|
|
2
2
|
import { ModulesTypeMapperService } from '../config/services/modules-type-mapper.service';
|
|
3
3
|
import { ExtensionsService } from '../extensions/services/extensions.service';
|
|
4
4
|
import { SwaggerModelsRegistryService } from '../swagger/services/swagger-models-registry.service';
|
|
5
|
+
import { BackupContributionRegistry } from '../system/services/backup-contribution-registry.service';
|
|
5
6
|
import { FactoryResetRegistryService } from '../system/services/factory-reset-registry.service';
|
|
6
7
|
import { AnomalyDetectorEvaluator } from './services/anomaly-detector.service';
|
|
8
|
+
import { BuddyPersonalityService } from './services/buddy-personality.service';
|
|
7
9
|
import { ConflictDetectorEvaluator } from './services/conflict-detector-evaluator.service';
|
|
8
10
|
import { EnergyEvaluator } from './services/energy-evaluator.service';
|
|
9
11
|
import { HeartbeatService } from './services/heartbeat.service';
|
|
@@ -15,6 +17,8 @@ export declare class BuddyModule implements OnModuleInit {
|
|
|
15
17
|
private readonly modulesMapperService;
|
|
16
18
|
private readonly extensionsService;
|
|
17
19
|
private readonly moduleReset;
|
|
20
|
+
private readonly personalityService;
|
|
21
|
+
private readonly backupRegistry;
|
|
18
22
|
private readonly factoryResetRegistry;
|
|
19
23
|
private readonly heartbeatService;
|
|
20
24
|
private readonly patternDetector;
|
|
@@ -22,6 +26,6 @@ export declare class BuddyModule implements OnModuleInit {
|
|
|
22
26
|
private readonly energyEvaluator;
|
|
23
27
|
private readonly conflictDetector;
|
|
24
28
|
private readonly sceneSuggestion;
|
|
25
|
-
constructor(swaggerRegistry: SwaggerModelsRegistryService, modulesMapperService: ModulesTypeMapperService, extensionsService: ExtensionsService, moduleReset: BuddyModuleResetService, factoryResetRegistry: FactoryResetRegistryService, heartbeatService: HeartbeatService, patternDetector: PatternDetectorService, anomalyDetector: AnomalyDetectorEvaluator, energyEvaluator: EnergyEvaluator, conflictDetector: ConflictDetectorEvaluator, sceneSuggestion: SceneSuggestionEvaluator);
|
|
29
|
+
constructor(swaggerRegistry: SwaggerModelsRegistryService, modulesMapperService: ModulesTypeMapperService, extensionsService: ExtensionsService, moduleReset: BuddyModuleResetService, personalityService: BuddyPersonalityService, backupRegistry: BackupContributionRegistry, factoryResetRegistry: FactoryResetRegistryService, heartbeatService: HeartbeatService, patternDetector: PatternDetectorService, anomalyDetector: AnomalyDetectorEvaluator, energyEvaluator: EnergyEvaluator, conflictDetector: ConflictDetectorEvaluator, sceneSuggestion: SceneSuggestionEvaluator);
|
|
26
30
|
onModuleInit(): void;
|
|
27
31
|
}
|
|
@@ -22,6 +22,7 @@ const spaces_module_1 = require("../spaces/spaces.module");
|
|
|
22
22
|
const api_tag_decorator_1 = require("../swagger/decorators/api-tag.decorator");
|
|
23
23
|
const swagger_models_registry_service_1 = require("../swagger/services/swagger-models-registry.service");
|
|
24
24
|
const swagger_module_1 = require("../swagger/swagger.module");
|
|
25
|
+
const backup_contribution_registry_service_1 = require("../system/services/backup-contribution-registry.service");
|
|
25
26
|
const factory_reset_registry_service_1 = require("../system/services/factory-reset-registry.service");
|
|
26
27
|
const tools_module_1 = require("../tools/tools.module");
|
|
27
28
|
const weather_module_1 = require("../weather/weather.module");
|
|
@@ -34,6 +35,7 @@ const buddy_suggestions_controller_1 = require("./controllers/buddy-suggestions.
|
|
|
34
35
|
const update_config_dto_1 = require("./dto/update-config.dto");
|
|
35
36
|
const buddy_conversation_entity_1 = require("./entities/buddy-conversation.entity");
|
|
36
37
|
const buddy_message_entity_1 = require("./entities/buddy-message.entity");
|
|
38
|
+
const buddy_suggestion_entity_1 = require("./entities/buddy-suggestion.entity");
|
|
37
39
|
const buddy_context_cache_listener_1 = require("./listeners/buddy-context-cache.listener");
|
|
38
40
|
const intent_event_listener_1 = require("./listeners/intent-event.listener");
|
|
39
41
|
const media_activity_event_listener_1 = require("./listeners/media-activity-event.listener");
|
|
@@ -64,11 +66,13 @@ const tts_provider_status_service_1 = require("./services/tts-provider-status.se
|
|
|
64
66
|
const tts_provider_service_1 = require("./services/tts-provider.service");
|
|
65
67
|
const evaluator_rules_loader_service_1 = require("./spec/evaluator-rules-loader.service");
|
|
66
68
|
let BuddyModule = class BuddyModule {
|
|
67
|
-
constructor(swaggerRegistry, modulesMapperService, extensionsService, moduleReset, factoryResetRegistry, heartbeatService, patternDetector, anomalyDetector, energyEvaluator, conflictDetector, sceneSuggestion) {
|
|
69
|
+
constructor(swaggerRegistry, modulesMapperService, extensionsService, moduleReset, personalityService, backupRegistry, factoryResetRegistry, heartbeatService, patternDetector, anomalyDetector, energyEvaluator, conflictDetector, sceneSuggestion) {
|
|
68
70
|
this.swaggerRegistry = swaggerRegistry;
|
|
69
71
|
this.modulesMapperService = modulesMapperService;
|
|
70
72
|
this.extensionsService = extensionsService;
|
|
71
73
|
this.moduleReset = moduleReset;
|
|
74
|
+
this.personalityService = personalityService;
|
|
75
|
+
this.backupRegistry = backupRegistry;
|
|
72
76
|
this.factoryResetRegistry = factoryResetRegistry;
|
|
73
77
|
this.heartbeatService = heartbeatService;
|
|
74
78
|
this.patternDetector = patternDetector;
|
|
@@ -81,6 +85,13 @@ let BuddyModule = class BuddyModule {
|
|
|
81
85
|
this.factoryResetRegistry.register(buddy_constants_1.BUDDY_MODULE_NAME, async () => {
|
|
82
86
|
return this.moduleReset.reset();
|
|
83
87
|
}, 310);
|
|
88
|
+
this.backupRegistry.register({
|
|
89
|
+
source: buddy_constants_1.BUDDY_MODULE_NAME,
|
|
90
|
+
label: 'AI Personality',
|
|
91
|
+
type: 'file',
|
|
92
|
+
path: () => this.personalityService.resolvePersonalityPath(),
|
|
93
|
+
optional: true,
|
|
94
|
+
});
|
|
84
95
|
this.heartbeatService.registerEvaluator(this.patternDetector);
|
|
85
96
|
this.heartbeatService.registerEvaluator(this.anomalyDetector);
|
|
86
97
|
this.heartbeatService.registerEvaluator(this.energyEvaluator);
|
|
@@ -99,25 +110,39 @@ let BuddyModule = class BuddyModule {
|
|
|
99
110
|
name: 'Buddy',
|
|
100
111
|
description: 'AI assistant for proactive suggestions and text chat',
|
|
101
112
|
author: 'FastyBird',
|
|
102
|
-
readme: `# Buddy
|
|
113
|
+
readme: `# Buddy
|
|
103
114
|
|
|
104
|
-
|
|
115
|
+
> Module · by FastyBird
|
|
105
116
|
|
|
106
|
-
|
|
117
|
+
AI assistant for the Smart Panel. Observes user actions, builds a structured snapshot of the home, surfaces context-aware suggestions and powers a text / voice chat backed by pluggable LLM, TTS, STT and messaging providers. Buddy is the orchestration layer; the actual brains live in companion plugins so you can pick the model and provider that fit your privacy / cost / latency constraints.
|
|
118
|
+
|
|
119
|
+
## What it gives you
|
|
107
120
|
|
|
108
|
-
-
|
|
109
|
-
-
|
|
110
|
-
-
|
|
111
|
-
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
- **Offline-First** - Rule-based suggestions work without any AI provider configured
|
|
121
|
+
- A grounded assistant: every reply is prepared with a fresh, privacy-respecting snapshot of *your* home (spaces, devices, scenes, weather, energy) — not generic web knowledge
|
|
122
|
+
- A unified tool layer: the LLM can run scenes, control devices and set lighting modes through structured tool calls, without you wiring a new endpoint per intent
|
|
123
|
+
- A pluggable spine: swap LLM provider (Claude / OpenAI / Ollama / VoiceAI), voice (system / ElevenLabs / Whisper) or messaging channel (Discord / Telegram / WhatsApp) without touching this module
|
|
124
|
+
- A safety net: when no AI provider is configured, rule-based suggestions and the action observer keep delivering value offline
|
|
125
|
+
|
|
126
|
+
## Features
|
|
115
127
|
|
|
116
|
-
|
|
128
|
+
- **Action observer** — listens to completed intents and builds a rolling, anonymised history of "what happened in the home"; feeds suggestions and chat context
|
|
129
|
+
- **Context aggregator** — produces a structured snapshot of spaces, devices and their roles, recent scenes, current weather, energy stats and security state; the LLM sees this instead of raw rows
|
|
130
|
+
- **Text chat** — conversational REST endpoint backed by an LLM plugin; supports streaming responses, conversation history and per-conversation context overrides
|
|
131
|
+
- **Voice interface** — optional STT (microphone → text) and TTS (text → speaker) so the panel can be operated hands-free; both pluggable
|
|
132
|
+
- **Tool execution** — the LLM can call structured tools (e.g. \`device.control\`, \`scene.run\`, \`lighting.setMode\`); tools come from a registry other modules contribute to
|
|
133
|
+
- **Suggestions engine** — pattern detection, anomaly detection, energy advice and conflict detection running on the action history; results surfaced in the panel "for you" area
|
|
134
|
+
- **Personality file** — a writable markdown file describes how the assistant should behave; users can edit it without touching code
|
|
135
|
+
- **Messaging adapters** — companion plugins can route Buddy chat through Discord, Telegram or WhatsApp so you can talk to your home from anywhere
|
|
136
|
+
- **Offline-first defaults** — without any AI provider configured, the action observer + rule-based suggestions still work
|
|
117
137
|
|
|
118
|
-
|
|
138
|
+
## Configuration
|
|
119
139
|
|
|
120
|
-
|
|
140
|
+
| Option | Description | Default |
|
|
141
|
+
|--------|-------------|---------|
|
|
142
|
+
| \`provider\` | LLM plugin type to use for chat | — |
|
|
143
|
+
| \`tts_plugin\` | TTS plugin for spoken responses | — |
|
|
144
|
+
| \`stt_plugin\` | STT plugin for voice input | — |
|
|
145
|
+
| \`personality_path\` | Path to the personality markdown file (included in backups) | data dir |`,
|
|
121
146
|
links: {
|
|
122
147
|
documentation: 'https://smart-panel.fastybird.com/docs',
|
|
123
148
|
repository: 'https://github.com/FastyBird/smart-panel',
|
|
@@ -134,7 +159,7 @@ exports.BuddyModule = BuddyModule = __decorate([
|
|
|
134
159
|
}),
|
|
135
160
|
(0, common_1.Module)({
|
|
136
161
|
imports: [
|
|
137
|
-
typeorm_1.TypeOrmModule.forFeature([buddy_conversation_entity_1.BuddyConversationEntity, buddy_message_entity_1.BuddyMessageEntity]),
|
|
162
|
+
typeorm_1.TypeOrmModule.forFeature([buddy_conversation_entity_1.BuddyConversationEntity, buddy_message_entity_1.BuddyMessageEntity, buddy_suggestion_entity_1.BuddySuggestionEntity]),
|
|
138
163
|
swagger_module_1.SwaggerModule,
|
|
139
164
|
spaces_module_1.SpacesModule,
|
|
140
165
|
devices_module_1.DevicesModule,
|
|
@@ -204,6 +229,8 @@ exports.BuddyModule = BuddyModule = __decorate([
|
|
|
204
229
|
modules_type_mapper_service_1.ModulesTypeMapperService,
|
|
205
230
|
extensions_service_1.ExtensionsService,
|
|
206
231
|
module_reset_service_1.BuddyModuleResetService,
|
|
232
|
+
buddy_personality_service_1.BuddyPersonalityService,
|
|
233
|
+
backup_contribution_registry_service_1.BackupContributionRegistry,
|
|
207
234
|
factory_reset_registry_service_1.FactoryResetRegistryService,
|
|
208
235
|
heartbeat_service_1.HeartbeatService,
|
|
209
236
|
pattern_detector_service_1.PatternDetectorService,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buddy.module.js","sourceRoot":"","sources":["../../../src/modules/buddy/buddy.module.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAsD;AACtD,6CAAgD;AAEhD,gGAA0F;AAC1F,8DAA0D;AAC1D,2DAAuD;AACvD,kFAA8E;AAC9E,8DAA0D;AAC1D,2DAAuD;AACvD,2DAAuD;AACvD,+EAAiE;AACjE,yGAAmG;AACnG,8DAA0D;AAC1D,sGAAgG;AAChG,wDAAoD;AACpD,8DAA0D;AAE1D,uDAAmH;AACnH,mDAA6D;AAC7D,iGAA4F;AAC5F,6FAAwF;AACxF,yFAAoF;AACpF,6FAAwF;AACxF,+DAA+D;AAC/D,oFAA+E;AAC/E,0EAAqE;AACrE,2FAAqF;AACrF,6EAAwE;AACxE,6FAAuF;AACvF,wDAAyD;AACzD,gFAA2E;AAC3E,kFAA+E;AAC/E,4EAAuE;AACvE,sFAAiF;AACjF,oFAA+E;AAC/E,4FAAsF;AACtF,wGAA2F;AAC3F,kFAAsE;AACtE,oEAAgE;AAChE,4FAAsF;AACtF,0EAAqE;AACrE,oGAA8F;AAC9F,0EAA0E;AAC1E,8EAAyE;AACzE,sEAAiE;AACjE,kFAA6E;AAC7E,sGAAyF;AACzF,4FAAsF;AACtF,wFAAkF;AAClF,0EAAqE;AACrE,oFAA+E;AAC/E,4FAAsF;AACtF,wFAAkF;AAClF,0EAAqE;AACrE,0FAAoF;AA2E7E,IAAM,WAAW,GAAjB,MAAM,WAAW;IACvB,YACkB,eAA6C,EAC7C,oBAA8C,EAC9C,iBAAoC,EACpC,WAAoC,EACpC,oBAAiD,EACjD,gBAAkC,EAClC,eAAuC,EACvC,eAAyC,EACzC,eAAgC,EAChC,gBAA2C,EAC3C,eAAyC;
|
|
1
|
+
{"version":3,"file":"buddy.module.js","sourceRoot":"","sources":["../../../src/modules/buddy/buddy.module.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAsD;AACtD,6CAAgD;AAEhD,gGAA0F;AAC1F,8DAA0D;AAC1D,2DAAuD;AACvD,kFAA8E;AAC9E,8DAA0D;AAC1D,2DAAuD;AACvD,2DAAuD;AACvD,+EAAiE;AACjE,yGAAmG;AACnG,8DAA0D;AAC1D,kHAAqG;AACrG,sGAAgG;AAChG,wDAAoD;AACpD,8DAA0D;AAE1D,uDAAmH;AACnH,mDAA6D;AAC7D,iGAA4F;AAC5F,6FAAwF;AACxF,yFAAoF;AACpF,6FAAwF;AACxF,+DAA+D;AAC/D,oFAA+E;AAC/E,0EAAqE;AACrE,gFAA2E;AAC3E,2FAAqF;AACrF,6EAAwE;AACxE,6FAAuF;AACvF,wDAAyD;AACzD,gFAA2E;AAC3E,kFAA+E;AAC/E,4EAAuE;AACvE,sFAAiF;AACjF,oFAA+E;AAC/E,4FAAsF;AACtF,wGAA2F;AAC3F,kFAAsE;AACtE,oEAAgE;AAChE,4FAAsF;AACtF,0EAAqE;AACrE,oGAA8F;AAC9F,0EAA0E;AAC1E,8EAAyE;AACzE,sEAAiE;AACjE,kFAA6E;AAC7E,sGAAyF;AACzF,4FAAsF;AACtF,wFAAkF;AAClF,0EA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C;YAC9F,8BAAa;YACb,4BAAY;YACZ,8BAAa;YACb,4BAAY;YACZ,8BAAa;YACb,0BAAW;YACX,8BAAa;YACb,4BAAY;SACZ;QACD,WAAW,EAAE;YACZ,6DAA4B;YAC5B,yDAA0B;YAC1B,qDAAwB;YACxB,yDAA0B;SAC1B;QACD,SAAS,EAAE;YACV,4DAA2B;YAC3B,+CAAqB;YACrB,2CAAmB;YACnB,0DAA0B;YAC1B,mDAAuB;YACvB,wDAAyB;YACzB,2CAAmB;YACnB,0DAA0B;YAC1B,0DAA0B;YAC1B,yCAAkB;YAClB,qDAAwB;YACxB,iDAAsB;YACtB,mDAAuB;YACvB,oCAAgB;YAChB,mDAAwB;YACxB,0CAAe;YACf,+DAAyB;YACzB,6DAAwB;YACxB,0DAA0B;YAC1B,sDAAwB;YACxB,yCAAkB;YAClB,0DAA0B;YAC1B,sDAAwB;YACxB,yCAAkB;YAClB,kEAA8B;YAC9B,6CAAoB;YACpB,qCAAgB;YAChB,8CAAuB;SACvB;QACD,OAAO,EAAE;YACR,+CAAqB;YACrB,2CAAmB;YACnB,mDAAuB;YACvB,0DAA0B;YAC1B,yCAAkB;YAClB,qDAAwB;YACxB,iDAAsB;YACtB,mDAAuB;YACvB,oCAAgB;YAChB,mDAAwB;YACxB,0CAAe;YACf,+DAAyB;YACzB,6DAAwB;YACxB,0DAA0B;YAC1B,0DAA0B;YAC1B,6CAAoB;YACpB,qCAAgB;SAChB;KACD,CAAC;qCAGkC,8DAA4B;QACvB,sDAAwB;QAC3B,sCAAiB;QACvB,8CAAuB;QAChB,mDAAuB;QAC3B,iEAA0B;QACpB,4DAA2B;QAC/B,oCAAgB;QACjB,iDAAsB;QACtB,mDAAwB;QACxB,0CAAe;QACd,+DAAyB;QAC1B,6DAAwB;GAd/C,WAAW,CAkGvB"}
|
|
@@ -1,7 +1,15 @@
|
|
|
1
|
+
import { ConfigService } from '../config/services/config.service';
|
|
1
2
|
import { BuddyProviderTimeoutException, BuddySttProviderTimeoutException, BuddyTtsProviderTimeoutException } from './buddy.exceptions';
|
|
2
3
|
export declare function withServiceTimeout<T>(promise: Promise<T>, timeoutMs: number, exception: BuddyProviderTimeoutException | BuddySttProviderTimeoutException | BuddyTtsProviderTimeoutException, controller?: AbortController): Promise<T>;
|
|
4
|
+
export declare function isTimeoutError(error: unknown): boolean;
|
|
3
5
|
export declare function interpolateTemplate(template: string, vars: Record<string, unknown>): string;
|
|
4
6
|
export declare function formatIntentLabel(intentType: string): string;
|
|
7
|
+
export declare function getConfigTimezone(configService: ConfigService): string;
|
|
8
|
+
export declare function getLocalTimeOfDay(date: Date, timezone: string): {
|
|
9
|
+
hour: number;
|
|
10
|
+
minute: number;
|
|
11
|
+
};
|
|
12
|
+
export declare function toMinuteOfDay(date: Date, timezone: string): number;
|
|
5
13
|
export declare function formatTimeLabel(hour: number, minute: number): string;
|
|
6
14
|
export interface TimeClusterResult<T> {
|
|
7
15
|
items: T[];
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.withServiceTimeout = withServiceTimeout;
|
|
4
|
+
exports.isTimeoutError = isTimeoutError;
|
|
4
5
|
exports.interpolateTemplate = interpolateTemplate;
|
|
5
6
|
exports.formatIntentLabel = formatIntentLabel;
|
|
7
|
+
exports.getConfigTimezone = getConfigTimezone;
|
|
8
|
+
exports.getLocalTimeOfDay = getLocalTimeOfDay;
|
|
9
|
+
exports.toMinuteOfDay = toMinuteOfDay;
|
|
6
10
|
exports.formatTimeLabel = formatTimeLabel;
|
|
7
11
|
exports.clusterByTimeOfDay = clusterByTimeOfDay;
|
|
8
12
|
exports.circularMeanTime = circularMeanTime;
|
|
13
|
+
const system_constants_1 = require("../system/system.constants");
|
|
14
|
+
const buddy_exceptions_1 = require("./buddy.exceptions");
|
|
9
15
|
async function withServiceTimeout(promise, timeoutMs, exception, controller) {
|
|
10
16
|
let timer;
|
|
11
17
|
const timeout = new Promise((_, reject) => {
|
|
@@ -21,6 +27,24 @@ async function withServiceTimeout(promise, timeoutMs, exception, controller) {
|
|
|
21
27
|
clearTimeout(timer);
|
|
22
28
|
}
|
|
23
29
|
}
|
|
30
|
+
function isTimeoutError(error) {
|
|
31
|
+
if (error instanceof buddy_exceptions_1.BuddyProviderTimeoutException) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
if (error && typeof error === 'object') {
|
|
35
|
+
const e = error;
|
|
36
|
+
if (e.name === 'APIConnectionTimeoutError')
|
|
37
|
+
return true;
|
|
38
|
+
if (e.name === 'AbortError')
|
|
39
|
+
return true;
|
|
40
|
+
if (typeof e.name === 'string' && e.name.includes('Timeout'))
|
|
41
|
+
return true;
|
|
42
|
+
if (e.code === 'ETIMEDOUT' || e.code === 'ECONNABORTED')
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
const msg = String(error?.message ?? '');
|
|
46
|
+
return /timeout|timed?\s*out|ETIMEDOUT|ECONNABORTED/i.test(msg);
|
|
47
|
+
}
|
|
24
48
|
function interpolateTemplate(template, vars) {
|
|
25
49
|
return template.replace(/\$\{(\w+)\}/g, (match, key) => {
|
|
26
50
|
if (key in vars) {
|
|
@@ -75,6 +99,31 @@ function formatIntentLabel(intentType) {
|
|
|
75
99
|
}
|
|
76
100
|
return labels[intentType];
|
|
77
101
|
}
|
|
102
|
+
function getConfigTimezone(configService) {
|
|
103
|
+
try {
|
|
104
|
+
const config = configService.getModuleConfig(system_constants_1.SYSTEM_MODULE_NAME);
|
|
105
|
+
return config.timezone ?? Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
106
|
+
}
|
|
107
|
+
catch {
|
|
108
|
+
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
function getLocalTimeOfDay(date, timezone) {
|
|
112
|
+
const parts = new Intl.DateTimeFormat('en-US', {
|
|
113
|
+
timeZone: timezone,
|
|
114
|
+
hour: 'numeric',
|
|
115
|
+
minute: 'numeric',
|
|
116
|
+
hourCycle: 'h23',
|
|
117
|
+
}).formatToParts(date);
|
|
118
|
+
return {
|
|
119
|
+
hour: Number(parts.find((p) => p.type === 'hour')?.value ?? 0),
|
|
120
|
+
minute: Number(parts.find((p) => p.type === 'minute')?.value ?? 0),
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
function toMinuteOfDay(date, timezone) {
|
|
124
|
+
const { hour, minute } = getLocalTimeOfDay(date, timezone);
|
|
125
|
+
return hour * 60 + minute;
|
|
126
|
+
}
|
|
78
127
|
function formatTimeLabel(hour, minute) {
|
|
79
128
|
const period = hour >= 12 ? 'PM' : 'AM';
|
|
80
129
|
const displayHour = hour % 12 || 12;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buddy.utils.js","sourceRoot":"","sources":["../../../src/modules/buddy/buddy.utils.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"buddy.utils.js","sourceRoot":"","sources":["../../../src/modules/buddy/buddy.utils.ts"],"names":[],"mappings":";;AAkBA,gDAoBC;AAOD,wCAsBC;AASD,kDAUC;AAKD,8CAsDC;AAMD,8CAQC;AAOD,8CAaC;AAKD,sCAIC;AAKD,0CASC;AAYD,gDA4CC;AAOD,4CAyBC;AAhSD,iEAAgE;AAEhE,yDAI4B;AAUrB,KAAK,UAAU,kBAAkB,CACvC,OAAmB,EACnB,SAAiB,EACjB,SAA8G,EAC9G,UAA4B;IAE5B,IAAI,KAAiC,CAAC;IAEtC,MAAM,OAAO,GAAG,IAAI,OAAO,CAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE;QAChD,KAAK,GAAG,UAAU,CAAC,GAAG,EAAE;YACvB,UAAU,EAAE,KAAK,EAAE,CAAC;YACpB,MAAM,CAAC,SAAS,CAAC,CAAC;QACnB,CAAC,EAAE,SAAS,CAAC,CAAC;IACf,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC;QACJ,OAAO,MAAM,OA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,MAAM,GAAG,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;IAC3B,MAAM,cAAc,GAAG,IAAI,CAAC;IAE5B,IAAI,MAAM,GAAG,CAAC,CAAC;IACf,IAAI,MAAM,GAAG,CAAC,CAAC;IAEf,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QAC1B,MAAM,OAAO,GAAG,aAAa,CAAC,IAAI,CAAC,CAAC;QACpC,MAAM,KAAK,GAAG,CAAC,OAAO,GAAG,cAAc,CAAC,GAAG,MAAM,CAAC;QAClD,MAAM,IAAI,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QAC1B,MAAM,IAAI,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAC3B,CAAC;IAED,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;IAC3E,IAAI,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,GAAG,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC;IAE3G,IAAI,WAAW,IAAI,cAAc,EAAE,CAAC;QACnC,WAAW,GAAG,CAAC,CAAC;IACjB,CAAC;IAED,OAAO;QACN,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,WAAW,GAAG,EAAE,CAAC;QAClC,MAAM,EAAE,WAAW,GAAG,EAAE;KACxB,CAAC;AACH,CAAC"}
|
|
@@ -32,7 +32,7 @@ let BuddySuggestionsController = class BuddySuggestionsController {
|
|
|
32
32
|
async findAll(spaceId) {
|
|
33
33
|
this.logger.debug(`Fetching active suggestions${spaceId ? ` for space=${spaceId}` : ''}`);
|
|
34
34
|
await this.suggestionEngine.generateSuggestions();
|
|
35
|
-
const suggestions = this.suggestionEngine.getActiveSuggestions(spaceId);
|
|
35
|
+
const suggestions = await this.suggestionEngine.getActiveSuggestions(spaceId);
|
|
36
36
|
this.logger.debug(`Retrieved ${suggestions.length} active suggestion(s)`);
|
|
37
37
|
const response = new suggestion_response_model_1.SuggestionsResponseModel();
|
|
38
38
|
response.data = suggestions.map((s) => this.toDataModel(s));
|
|
@@ -40,7 +40,7 @@ let BuddySuggestionsController = class BuddySuggestionsController {
|
|
|
40
40
|
}
|
|
41
41
|
async submitFeedback(id, body) {
|
|
42
42
|
this.logger.debug(`Submitting feedback "${body.data.feedback}" for suggestion id=${id}`);
|
|
43
|
-
const result = this.suggestionEngine.recordFeedback(id, body.data.feedback);
|
|
43
|
+
const result = await this.suggestionEngine.recordFeedback(id, body.data.feedback);
|
|
44
44
|
if (body.data.feedback === spaces_constants_1.SuggestionFeedback.APPLIED &&
|
|
45
45
|
result.suggestion.type === buddy_constants_1.SuggestionType.PATTERN_SCENE_CREATE) {
|
|
46
46
|
const sceneResult = await this.sceneSuggestionEvaluator.createSceneFromSuggestion(result.suggestion.spaceId, result.suggestion.metadata);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buddy-suggestions.controller.js","sourceRoot":"","sources":["../../../../src/modules/buddy/controllers/buddy-suggestions.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA0F;AAC1F,6CAAqF;AAErF,mDAA+D;AAC/D,oEAAmE;AACnE,sGAK8D;AAC9D,wDAAkG;AAClG,4EAA0E;AAC1E,mFAK6C;AAC7C,uGAA0F;AAC1F,qFAAiG;AAI1F,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;IAGtC,YACkB,gBAAyC,EACzC,wBAAkD;QADlD,qBAAgB,GAAhB,gBAAgB,CAAyB;QACzC,6BAAwB,GAAxB,wBAAwB,CAA0B;QAJnD,WAAM,GAAG,IAAA,8BAAqB,EAAC,mCAAiB,EAAE,4BAA4B,CAAC,CAAC;IAK9F,CAAC;IAoBE,AAAN,KAAK,CAAC,OAAO,CAAoB,OAAgB;QAChD,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,8BAA8B,OAAO,CAAC,CAAC,CAAC,cAAc,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAE1F,MAAM,IAAI,CAAC,gBAAgB,CAAC,mBAAmB,EAAE,CAAC;QAElD,MAAM,WAAW,GAAG,IAAI,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"buddy-suggestions.controller.js","sourceRoot":"","sources":["../../../../src/modules/buddy/controllers/buddy-suggestions.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA0F;AAC1F,6CAAqF;AAErF,mDAA+D;AAC/D,oEAAmE;AACnE,sGAK8D;AAC9D,wDAAkG;AAClG,4EAA0E;AAC1E,mFAK6C;AAC7C,uGAA0F;AAC1F,qFAAiG;AAI1F,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;IAGtC,YACkB,gBAAyC,EACzC,wBAAkD;QADlD,qBAAgB,GAAhB,gBAAgB,CAAyB;QACzC,6BAAwB,GAAxB,wBAAwB,CAA0B;QAJnD,WAAM,GAAG,IAAA,8BAAqB,EAAC,mCAAiB,EAAE,4BAA4B,CAAC,CAAC;IAK9F,CAAC;IAoBE,AAAN,KAAK,CAAC,OAAO,CAAoB,OAAgB;QAChD,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,8BAA8B,OAAO,CAAC,CAAC,CAAC,cAAc,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAE1F,MAAM,IAAI,CAAC,gBAAgB,CAAC,mBAAmB,EAAE,CAAC;QAElD,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,OAAO,CAAC,CAAC;QAE9E,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,aAAa,WAAW,CAAC,MAAM,uBAAuB,CAAC,CA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E,4BAA4B;QACrC,WAAW,EACV,iEAAiE;YACjE,4FAA4F;QAC7F,WAAW,EAAE,yCAAyC;KACtD,CAAC;IACD,IAAA,kBAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,eAAe,EAAE,CAAC;IACtF,IAAA,iBAAO,EAAC,EAAE,IAAI,EAAE,kDAAwB,EAAE,WAAW,EAAE,sCAAsC,EAAE,CAAC;IAChG,IAAA,gDAAkB,EAAC,2DAA+B,EAAE,qCAAqC,CAAC;IAC1F,IAAA,mDAAqB,EAAC,uBAAuB,CAAC;IAC9C,IAAA,iDAAmB,EAAC,sBAAsB,CAAC;IAC3C,IAAA,4DAA8B,EAAC,uBAAuB,CAAC;IACvD,IAAA,aAAI,EAAC,cAAc,CAAC;IAEnB,WAAA,IAAA,cAAK,EAAC,IAAI,EAAE,IAAI,sBAAa,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,CAAA;IAChD,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAO,kDAAwB;;gEA4BtC;qCAvFW,0BAA0B;IAFtC,IAAA,iBAAO,EAAC,2CAAyB,CAAC;IAClC,IAAA,mBAAU,EAAC,aAAa,CAAC;qCAKW,mDAAuB;QACf,6DAAwB;GALxD,0BAA0B,CAuGtC"}
|
|
@@ -30,19 +30,19 @@ __decorate([
|
|
|
30
30
|
__metadata("design:type", String)
|
|
31
31
|
], BuddyConversationEntity.prototype, "title", void 0);
|
|
32
32
|
__decorate([
|
|
33
|
-
(0, swagger_1.ApiPropertyOptional)({ description: 'Associated space ID', example: 'space-1' }),
|
|
33
|
+
(0, swagger_1.ApiPropertyOptional)({ name: 'space_id', description: 'Associated space ID', example: 'space-1' }),
|
|
34
34
|
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
35
35
|
(0, class_transformer_1.Expose)({ name: 'space_id' }),
|
|
36
36
|
__metadata("design:type", String)
|
|
37
37
|
], BuddyConversationEntity.prototype, "spaceId", void 0);
|
|
38
38
|
__decorate([
|
|
39
|
-
(0, swagger_1.ApiProperty)({ description: 'Conversation creation timestamp' }),
|
|
39
|
+
(0, swagger_1.ApiProperty)({ name: 'created_at', description: 'Conversation creation timestamp' }),
|
|
40
40
|
(0, typeorm_1.CreateDateColumn)({ type: 'datetime' }),
|
|
41
41
|
(0, class_transformer_1.Expose)({ name: 'created_at' }),
|
|
42
42
|
__metadata("design:type", Date)
|
|
43
43
|
], BuddyConversationEntity.prototype, "createdAt", void 0);
|
|
44
44
|
__decorate([
|
|
45
|
-
(0, swagger_1.ApiProperty)({ description: 'Last update timestamp' }),
|
|
45
|
+
(0, swagger_1.ApiProperty)({ name: 'updated_at', description: 'Last update timestamp' }),
|
|
46
46
|
(0, typeorm_1.UpdateDateColumn)({ type: 'datetime' }),
|
|
47
47
|
(0, class_transformer_1.Expose)({ name: 'updated_at' }),
|
|
48
48
|
__metadata("design:type", Date)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buddy-conversation.entity.js","sourceRoot":"","sources":["../../../../src/modules/buddy/entities/buddy-conversation.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,qCAAuG;AAEvG,6CAAmE;AAEnE,iEAA4D;AAGrD,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;CA4BnC,CAAA;AA5BY,0DAAuB;AAInC;IAHC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,gCAAgC,EAAE,OAAO,EAAE,aAAa,EAAE,CAAC;IACtF,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;IAClC,IAAA,0BAAM,GAAE;;mDACE;AAKX;IAHC,IAAA,6BAAmB,EAAC,EAAE,WAAW,EAAE,6BAA6B,EAAE,OAAO,EAAE,mBAAmB,EAAE,CAAC;IACjG,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAA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I,EAAE,UAAU,EAAE,CAAC;IACtC,IAAA,0BAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BACpB,IAAI;0DAAC;AAKhB;IAHC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,WAAW,EAAE,uBAAuB,EAAE,CAAC;IACzE,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;IACtC,IAAA,0BAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BACpB,IAAI;0DAAC;AAGhB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,yCAAkB,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC;;yDACvC;kCA3BpB,uBAAuB;IADnC,IAAA,gBAAM,EAAC,4BAA4B,CAAC;GACxB,uBAAuB,CA4BnC"}
|
|
@@ -24,7 +24,7 @@ __decorate([
|
|
|
24
24
|
__metadata("design:type", String)
|
|
25
25
|
], BuddyMessageEntity.prototype, "id", void 0);
|
|
26
26
|
__decorate([
|
|
27
|
-
(0, swagger_1.ApiProperty)({ description: 'Parent conversation ID', example: 'conv-abc123' }),
|
|
27
|
+
(0, swagger_1.ApiProperty)({ name: 'conversation_id', description: 'Parent conversation ID', example: 'conv-abc123' }),
|
|
28
28
|
(0, typeorm_1.Column)({ type: 'varchar' }),
|
|
29
29
|
(0, class_transformer_1.Expose)({ name: 'conversation_id' }),
|
|
30
30
|
__metadata("design:type", String)
|
|
@@ -48,7 +48,7 @@ __decorate([
|
|
|
48
48
|
__metadata("design:type", Object)
|
|
49
49
|
], BuddyMessageEntity.prototype, "metadata", void 0);
|
|
50
50
|
__decorate([
|
|
51
|
-
(0, swagger_1.ApiProperty)({ description: 'Message creation timestamp' }),
|
|
51
|
+
(0, swagger_1.ApiProperty)({ name: 'created_at', description: 'Message creation timestamp' }),
|
|
52
52
|
(0, typeorm_1.CreateDateColumn)({ type: 'datetime' }),
|
|
53
53
|
(0, class_transformer_1.Expose)({ name: 'created_at' }),
|
|
54
54
|
__metadata("design:type", Date)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buddy-message.entity.js","sourceRoot":"","sources":["../../../../src/modules/buddy/entities/buddy-message.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,qCAAiG;AAEjG,6CAAmE;AAInE,2EAAsE;AAG/D,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAkC9B,CAAA;AAlCY,gDAAkB;AAI9B;IAHC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,2BAA2B,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC;IAChF,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;IAClC,IAAA,0BAAM,GAAE;;8CACE;AAKX;IAHC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,wBAAwB,EAAE,OAAO,EAAE,aAAa,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"buddy-message.entity.js","sourceRoot":"","sources":["../../../../src/modules/buddy/entities/buddy-message.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,qCAAiG;AAEjG,6CAAmE;AAInE,2EAAsE;AAG/D,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAkC9B,CAAA;AAlCY,gDAAkB;AAI9B;IAHC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,2BAA2B,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC;IAChF,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;IAClC,IAAA,0BAAM,GAAE;;8CACE;AAKX;IAHC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,WAAW,EAAE,wBAAwB,EAAE,OAAO,EAAE,aAAa,EAAE,CAAC;IACvG,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,E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}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SuggestionType } from '../buddy.constants';
|
|
2
|
+
export declare enum SuggestionStatus {
|
|
3
|
+
ACTIVE = "active",
|
|
4
|
+
ACCEPTED = "accepted",
|
|
5
|
+
DISMISSED = "dismissed",
|
|
6
|
+
EXPIRED = "expired"
|
|
7
|
+
}
|
|
8
|
+
export declare class BuddySuggestionEntity {
|
|
9
|
+
id: string;
|
|
10
|
+
type: SuggestionType;
|
|
11
|
+
spaceId: string;
|
|
12
|
+
title: string;
|
|
13
|
+
reason: string;
|
|
14
|
+
metadata: Record<string, unknown> | null;
|
|
15
|
+
status: SuggestionStatus;
|
|
16
|
+
createdAt: Date;
|
|
17
|
+
expiresAt: Date;
|
|
18
|
+
feedbackAt: Date | null;
|
|
19
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.BuddySuggestionEntity = exports.SuggestionStatus = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
16
|
+
const buddy_constants_1 = require("../buddy.constants");
|
|
17
|
+
var SuggestionStatus;
|
|
18
|
+
(function (SuggestionStatus) {
|
|
19
|
+
SuggestionStatus["ACTIVE"] = "active";
|
|
20
|
+
SuggestionStatus["ACCEPTED"] = "accepted";
|
|
21
|
+
SuggestionStatus["DISMISSED"] = "dismissed";
|
|
22
|
+
SuggestionStatus["EXPIRED"] = "expired";
|
|
23
|
+
})(SuggestionStatus || (exports.SuggestionStatus = SuggestionStatus = {}));
|
|
24
|
+
let BuddySuggestionEntity = class BuddySuggestionEntity {
|
|
25
|
+
};
|
|
26
|
+
exports.BuddySuggestionEntity = BuddySuggestionEntity;
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, swagger_1.ApiProperty)({ description: 'Unique suggestion identifier' }),
|
|
29
|
+
(0, typeorm_1.PrimaryColumn)({ type: 'varchar' }),
|
|
30
|
+
(0, class_transformer_1.Expose)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], BuddySuggestionEntity.prototype, "id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, swagger_1.ApiProperty)({ description: 'Suggestion type', enum: buddy_constants_1.SuggestionType }),
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'varchar' }),
|
|
36
|
+
(0, class_transformer_1.Expose)(),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], BuddySuggestionEntity.prototype, "type", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, swagger_1.ApiProperty)({ name: 'space_id', description: 'Associated space ID' }),
|
|
41
|
+
(0, typeorm_1.Column)({ type: 'varchar' }),
|
|
42
|
+
(0, class_transformer_1.Expose)({ name: 'space_id' }),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], BuddySuggestionEntity.prototype, "spaceId", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, swagger_1.ApiProperty)({ description: 'Suggestion title' }),
|
|
47
|
+
(0, typeorm_1.Column)({ type: 'varchar' }),
|
|
48
|
+
(0, class_transformer_1.Expose)(),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], BuddySuggestionEntity.prototype, "title", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, swagger_1.ApiProperty)({ description: 'Suggestion reason/body' }),
|
|
53
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
54
|
+
(0, class_transformer_1.Expose)(),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], BuddySuggestionEntity.prototype, "reason", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Additional metadata (JSON)' }),
|
|
59
|
+
(0, typeorm_1.Column)({ type: 'simple-json', nullable: true }),
|
|
60
|
+
(0, class_transformer_1.Expose)(),
|
|
61
|
+
__metadata("design:type", Object)
|
|
62
|
+
], BuddySuggestionEntity.prototype, "metadata", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, swagger_1.ApiProperty)({ description: 'Suggestion status', enum: SuggestionStatus }),
|
|
65
|
+
(0, typeorm_1.Column)({ type: 'varchar', default: SuggestionStatus.ACTIVE }),
|
|
66
|
+
(0, class_transformer_1.Expose)(),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], BuddySuggestionEntity.prototype, "status", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, swagger_1.ApiProperty)({ name: 'created_at', description: 'Creation timestamp' }),
|
|
71
|
+
(0, typeorm_1.CreateDateColumn)({ type: 'datetime' }),
|
|
72
|
+
(0, class_transformer_1.Expose)({ name: 'created_at' }),
|
|
73
|
+
__metadata("design:type", Date)
|
|
74
|
+
], BuddySuggestionEntity.prototype, "createdAt", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, swagger_1.ApiProperty)({ name: 'expires_at', description: 'Expiry timestamp' }),
|
|
77
|
+
(0, typeorm_1.Column)({ type: 'datetime' }),
|
|
78
|
+
(0, class_transformer_1.Expose)({ name: 'expires_at' }),
|
|
79
|
+
__metadata("design:type", Date)
|
|
80
|
+
], BuddySuggestionEntity.prototype, "expiresAt", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, swagger_1.ApiPropertyOptional)({ name: 'feedback_at', description: 'When user gave feedback' }),
|
|
83
|
+
(0, typeorm_1.Column)({ type: 'datetime', nullable: true }),
|
|
84
|
+
(0, class_transformer_1.Expose)({ name: 'feedback_at' }),
|
|
85
|
+
__metadata("design:type", Date)
|
|
86
|
+
], BuddySuggestionEntity.prototype, "feedbackAt", void 0);
|
|
87
|
+
exports.BuddySuggestionEntity = BuddySuggestionEntity = __decorate([
|
|
88
|
+
(0, typeorm_1.Entity)('buddy_module_suggestions'),
|
|
89
|
+
(0, typeorm_1.Index)('idx_suggestion_status', ['status']),
|
|
90
|
+
(0, typeorm_1.Index)('idx_suggestion_expires', ['expiresAt']),
|
|
91
|
+
(0, typeorm_1.Index)('idx_suggestion_space_type', ['spaceId', 'type'])
|
|
92
|
+
], BuddySuggestionEntity);
|
|
93
|
+
//# sourceMappingURL=buddy-suggestion.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buddy-suggestion.entity.js","sourceRoot":"","sources":["../../../../src/modules/buddy/entities/buddy-suggestion.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,qCAAiF;AAEjF,6CAAmE;AAEnE,wDAAoD;AAEpD,IAAY,gBAKX;AALD,WAAY,gBAAgB;IAC3B,qCAAiB,CAAA;IACjB,yCAAqB,CAAA;IACrB,2CAAuB,CAAA;IACvB,uCAAmB,CAAA;AACpB,CAAC,EALW,gBAAgB,gCAAhB,gBAAgB,QAK3B;AAMM,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;CAkDjC,CAAA;AAlDY,sDAAqB;AAIjC;IAHC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,8BAA8B,EAAE,CAAC;IAC5D,IAAA,uBAAa,EAAC,EAAE,IAAI,EA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IAHC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,WAAW,EAAE,oBAAoB,EAAE,CAAC;IACtE,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;IACtC,IAAA,0BAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BACpB,IAAI;wDAAC;AAKhB;IAHC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,WAAW,EAAE,kBAAkB,EAAE,CAAC;IACpE,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;IAC5B,IAAA,0BAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BACpB,IAAI;wDAAC;AAKhB;IAHC,IAAA,6BAAmB,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,WAAW,EAAE,yBAAyB,EAAE,CAAC;IACpF,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5C,IAAA,0BAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BACpB,IAAI;yDAAQ;gCAjDZ,qBAAqB;IAJjC,IAAA,gBAAM,EAAC,0BAA0B,CAAC;IAClC,IAAA,eAAK,EAAC,uBAAuB,EAAE,CAAC,QAAQ,CAAC,CAAC;IAC1C,IAAA,eAAK,EAAC,wBAAwB,EAAE,CAAC,WAAW,CAAC,CAAC;IAC9C,IAAA,eAAK,EAAC,2BAA2B,EAAE,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;GAC3C,qBAAqB,CAkDjC"}
|
|
@@ -13,8 +13,8 @@ exports.MediaActivityEventListener = void 0;
|
|
|
13
13
|
const common_1 = require("@nestjs/common");
|
|
14
14
|
const event_emitter_1 = require("@nestjs/event-emitter");
|
|
15
15
|
const logger_1 = require("../../../common/logger");
|
|
16
|
+
const spaces_home_control_constants_1 = require("../../../plugins/spaces-home-control/spaces-home-control.constants");
|
|
16
17
|
const intents_constants_1 = require("../../intents/intents.constants");
|
|
17
|
-
const spaces_constants_1 = require("../../spaces/spaces.constants");
|
|
18
18
|
const buddy_constants_1 = require("../buddy.constants");
|
|
19
19
|
const action_observer_service_1 = require("../services/action-observer.service");
|
|
20
20
|
let MediaActivityEventListener = class MediaActivityEventListener {
|
|
@@ -61,13 +61,13 @@ let MediaActivityEventListener = class MediaActivityEventListener {
|
|
|
61
61
|
};
|
|
62
62
|
exports.MediaActivityEventListener = MediaActivityEventListener;
|
|
63
63
|
__decorate([
|
|
64
|
-
(0, event_emitter_1.OnEvent)(
|
|
64
|
+
(0, event_emitter_1.OnEvent)(spaces_home_control_constants_1.EventType.MEDIA_ACTIVITY_ACTIVATED),
|
|
65
65
|
__metadata("design:type", Function),
|
|
66
66
|
__metadata("design:paramtypes", [Object]),
|
|
67
67
|
__metadata("design:returntype", void 0)
|
|
68
68
|
], MediaActivityEventListener.prototype, "handleMediaActivated", null);
|
|
69
69
|
__decorate([
|
|
70
|
-
(0, event_emitter_1.OnEvent)(
|
|
70
|
+
(0, event_emitter_1.OnEvent)(spaces_home_control_constants_1.EventType.MEDIA_ACTIVITY_DEACTIVATED),
|
|
71
71
|
__metadata("design:type", Function),
|
|
72
72
|
__metadata("design:paramtypes", [Object]),
|
|
73
73
|
__metadata("design:returntype", void 0)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"media-activity-event.listener.js","sourceRoot":"","sources":["../../../../src/modules/buddy/listeners/media-activity-event.listener.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,yDAAgD;AAEhD,mDAA+D;AAC/D,uEAA6D;AAC7D,
|
|
1
|
+
{"version":3,"file":"media-activity-event.listener.js","sourceRoot":"","sources":["../../../../src/modules/buddy/listeners/media-activity-event.listener.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,yDAAgD;AAEhD,mDAA+D;AAC/D,sHAA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AAC,MAAM,CAAC,CAAC;QAC1C,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YAChB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,2CAA2C,KAAK,EAAE,CAAC,CAAC;QACtE,CAAC;IACF,CAAC;CACD,CAAA;AAhDY,gEAA0B;AAMtC;IADC,IAAA,uBAAO,EAAC,yCAAS,CAAC,wBAAwB,CAAC;;;;sEAG3C;AAGD;IADC,IAAA,uBAAO,EAAC,yCAAS,CAAC,0BAA0B,CAAC;;;;wEAG7C;qCAbW,0BAA0B;IADtC,IAAA,mBAAU,GAAE;qCAIiC,+CAAqB;GAHtD,0BAA0B,CAgDtC"}
|
|
@@ -22,9 +22,15 @@ export interface LlmResponseMeta {
|
|
|
22
22
|
cacheReadTokens: number | null;
|
|
23
23
|
cacheWriteTokens: number | null;
|
|
24
24
|
}
|
|
25
|
+
export interface LlmToolError {
|
|
26
|
+
toolCallId: string;
|
|
27
|
+
toolName: string;
|
|
28
|
+
error: string;
|
|
29
|
+
}
|
|
25
30
|
export interface LlmResponse {
|
|
26
31
|
content: string;
|
|
27
32
|
toolCalls?: LlmToolCall[];
|
|
33
|
+
toolErrors?: LlmToolError[];
|
|
28
34
|
meta: LlmResponseMeta;
|
|
29
35
|
}
|
|
30
36
|
export interface ILlmProvider {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { LlmToolCall, ToolDefinition } from '../../tools/platforms/tool-provider.platform';
|
|
2
|
-
import type { ChatMessage } from './llm-provider.platform';
|
|
2
|
+
import type { ChatMessage, LlmToolError } from './llm-provider.platform';
|
|
3
3
|
export interface OpenAiSdkResult {
|
|
4
4
|
content: string;
|
|
5
5
|
toolCalls?: LlmToolCall[];
|
|
6
|
+
toolErrors?: LlmToolError[];
|
|
6
7
|
model: string | null;
|
|
7
8
|
inputTokens: number | null;
|
|
8
9
|
outputTokens: number | null;
|
|
@@ -64,8 +64,10 @@ async function sendOpenAiMessage(apiKey, model, systemPrompt, messages, timeout,
|
|
|
64
64
|
const message = response.choices[0]?.message;
|
|
65
65
|
const usage = response.usage;
|
|
66
66
|
let toolCalls;
|
|
67
|
+
let toolErrors;
|
|
67
68
|
if (message?.tool_calls && message.tool_calls.length > 0) {
|
|
68
69
|
toolCalls = [];
|
|
70
|
+
toolErrors = [];
|
|
69
71
|
for (const tc of message.tool_calls) {
|
|
70
72
|
try {
|
|
71
73
|
toolCalls.push({
|
|
@@ -75,16 +77,25 @@ async function sendOpenAiMessage(apiKey, model, systemPrompt, messages, timeout,
|
|
|
75
77
|
});
|
|
76
78
|
}
|
|
77
79
|
catch (parseError) {
|
|
78
|
-
|
|
80
|
+
const errorMsg = parseError instanceof Error ? parseError.message : String(parseError);
|
|
81
|
+
toolErrors.push({
|
|
82
|
+
toolCallId: tc.id,
|
|
83
|
+
toolName: tc.function.name,
|
|
84
|
+
error: `Failed to parse arguments — ${errorMsg}`,
|
|
85
|
+
});
|
|
79
86
|
}
|
|
80
87
|
}
|
|
81
88
|
if (toolCalls.length === 0) {
|
|
82
89
|
toolCalls = undefined;
|
|
83
90
|
}
|
|
91
|
+
if (toolErrors.length === 0) {
|
|
92
|
+
toolErrors = undefined;
|
|
93
|
+
}
|
|
84
94
|
}
|
|
85
95
|
return {
|
|
86
96
|
content: message?.content ?? '',
|
|
87
97
|
toolCalls,
|
|
98
|
+
toolErrors,
|
|
88
99
|
model: response.model ?? null,
|
|
89
100
|
inputTokens: usage?.prompt_tokens ?? null,
|
|
90
101
|
outputTokens: usage?.completion_tokens ?? null,
|