@winccoa-tools-pack/npm-winccoa-core 0.1.0
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/LICENSE +21 -0
- package/README.md +234 -0
- package/dist/cjs/index.js +23 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/types/components/WinCCOAComponent.js +290 -0
- package/dist/cjs/types/components/WinCCOAComponent.js.map +1 -0
- package/dist/cjs/types/components/implementations/AlertManagerComponent.js +14 -0
- package/dist/cjs/types/components/implementations/AlertManagerComponent.js.map +1 -0
- package/dist/cjs/types/components/implementations/AndroidComponent.js +17 -0
- package/dist/cjs/types/components/implementations/AndroidComponent.js.map +1 -0
- package/dist/cjs/types/components/implementations/ApiComponent.js +14 -0
- package/dist/cjs/types/components/implementations/ApiComponent.js.map +1 -0
- package/dist/cjs/types/components/implementations/AsciiManagerComponent.js +14 -0
- package/dist/cjs/types/components/implementations/AsciiManagerComponent.js.map +1 -0
- package/dist/cjs/types/components/implementations/ConfComponent.js +17 -0
- package/dist/cjs/types/components/implementations/ConfComponent.js.map +1 -0
- package/dist/cjs/types/components/implementations/CtrlComponent.js +34 -0
- package/dist/cjs/types/components/implementations/CtrlComponent.js.map +1 -0
- package/dist/cjs/types/components/implementations/DNP3Component.js +17 -0
- package/dist/cjs/types/components/implementations/DNP3Component.js.map +1 -0
- package/dist/cjs/types/components/implementations/DataComponent.js +17 -0
- package/dist/cjs/types/components/implementations/DataComponent.js.map +1 -0
- package/dist/cjs/types/components/implementations/DbManagerComponent.js +14 -0
- package/dist/cjs/types/components/implementations/DbManagerComponent.js.map +1 -0
- package/dist/cjs/types/components/implementations/DistComponent.js +14 -0
- package/dist/cjs/types/components/implementations/DistComponent.js.map +1 -0
- package/dist/cjs/types/components/implementations/DriverComponent.js +14 -0
- package/dist/cjs/types/components/implementations/DriverComponent.js.map +1 -0
- package/dist/cjs/types/components/implementations/EventComponent.js +17 -0
- package/dist/cjs/types/components/implementations/EventComponent.js.map +1 -0
- package/dist/cjs/types/components/implementations/HttpComponent.js +14 -0
- package/dist/cjs/types/components/implementations/HttpComponent.js.map +1 -0
- package/dist/cjs/types/components/implementations/IEC60870Component.js +17 -0
- package/dist/cjs/types/components/implementations/IEC60870Component.js.map +1 -0
- package/dist/cjs/types/components/implementations/IEC61850Component.js +17 -0
- package/dist/cjs/types/components/implementations/IEC61850Component.js.map +1 -0
- package/dist/cjs/types/components/implementations/IosComponent.js +17 -0
- package/dist/cjs/types/components/implementations/IosComponent.js.map +1 -0
- package/dist/cjs/types/components/implementations/JavaComponent.js +17 -0
- package/dist/cjs/types/components/implementations/JavaComponent.js.map +1 -0
- package/dist/cjs/types/components/implementations/JavaScriptComponent.js +17 -0
- package/dist/cjs/types/components/implementations/JavaScriptComponent.js.map +1 -0
- package/dist/cjs/types/components/implementations/ModbusComponent.js +17 -0
- package/dist/cjs/types/components/implementations/ModbusComponent.js.map +1 -0
- package/dist/cjs/types/components/implementations/OpcComponent.js +17 -0
- package/dist/cjs/types/components/implementations/OpcComponent.js.map +1 -0
- package/dist/cjs/types/components/implementations/OpcDaComponent.js +17 -0
- package/dist/cjs/types/components/implementations/OpcDaComponent.js.map +1 -0
- package/dist/cjs/types/components/implementations/OpcUaComponent.js +17 -0
- package/dist/cjs/types/components/implementations/OpcUaComponent.js.map +1 -0
- package/dist/cjs/types/components/implementations/PmonComponent.js +486 -0
- package/dist/cjs/types/components/implementations/PmonComponent.js.map +1 -0
- package/dist/cjs/types/components/implementations/RdbComponent.js +14 -0
- package/dist/cjs/types/components/implementations/RdbComponent.js.map +1 -0
- package/dist/cjs/types/components/implementations/ReduComponent.js +14 -0
- package/dist/cjs/types/components/implementations/ReduComponent.js.map +1 -0
- package/dist/cjs/types/components/implementations/ReportManagerComponent.js +14 -0
- package/dist/cjs/types/components/implementations/ReportManagerComponent.js.map +1 -0
- package/dist/cjs/types/components/implementations/S7Component.js +17 -0
- package/dist/cjs/types/components/implementations/S7Component.js.map +1 -0
- package/dist/cjs/types/components/implementations/S7TopSapComponent.js +17 -0
- package/dist/cjs/types/components/implementations/S7TopSapComponent.js.map +1 -0
- package/dist/cjs/types/components/implementations/SimComponent.js +17 -0
- package/dist/cjs/types/components/implementations/SimComponent.js.map +1 -0
- package/dist/cjs/types/components/implementations/SplitComponent.js +14 -0
- package/dist/cjs/types/components/implementations/SplitComponent.js.map +1 -0
- package/dist/cjs/types/components/implementations/UIComponent.js +36 -0
- package/dist/cjs/types/components/implementations/UIComponent.js.map +1 -0
- package/dist/cjs/types/components/implementations/ValueArchManagerComponent.js +14 -0
- package/dist/cjs/types/components/implementations/ValueArchManagerComponent.js.map +1 -0
- package/dist/cjs/types/components/implementations/VideoDriverComponent.js +14 -0
- package/dist/cjs/types/components/implementations/VideoDriverComponent.js.map +1 -0
- package/dist/cjs/types/components/implementations/VisionComponent.js +17 -0
- package/dist/cjs/types/components/implementations/VisionComponent.js.map +1 -0
- package/dist/cjs/types/components/implementations/WebUIComponent.js +17 -0
- package/dist/cjs/types/components/implementations/WebUIComponent.js.map +1 -0
- package/dist/cjs/types/components/implementations/index.js +74 -0
- package/dist/cjs/types/components/implementations/index.js.map +1 -0
- package/dist/cjs/types/index.js +22 -0
- package/dist/cjs/types/index.js.map +1 -0
- package/dist/cjs/types/localization/OaLanguage.js +146 -0
- package/dist/cjs/types/localization/OaLanguage.js.map +1 -0
- package/dist/cjs/types/logs/WinCCOAErrorHandler.js +101 -0
- package/dist/cjs/types/logs/WinCCOAErrorHandler.js.map +1 -0
- package/dist/cjs/types/logs/WinCCOALogEntry.js +3 -0
- package/dist/cjs/types/logs/WinCCOALogEntry.js.map +1 -0
- package/dist/cjs/types/logs/WinCCOALogParser.js +213 -0
- package/dist/cjs/types/logs/WinCCOALogParser.js.map +1 -0
- package/dist/cjs/types/project/CurrentProjectInfo.js +12 -0
- package/dist/cjs/types/project/CurrentProjectInfo.js.map +1 -0
- package/dist/cjs/types/project/ProjEnv.js +109 -0
- package/dist/cjs/types/project/ProjEnv.js.map +1 -0
- package/dist/cjs/types/project/ProjEnvErrorHandler.js +12 -0
- package/dist/cjs/types/project/ProjEnvErrorHandler.js.map +1 -0
- package/dist/cjs/types/project/ProjEnvPmonStatus.js +22 -0
- package/dist/cjs/types/project/ProjEnvPmonStatus.js.map +1 -0
- package/dist/cjs/types/project/ProjEnvProject.js +856 -0
- package/dist/cjs/types/project/ProjEnvProject.js.map +1 -0
- package/dist/cjs/types/project/ProjEnvProjectConfig.js +256 -0
- package/dist/cjs/types/project/ProjEnvProjectConfig.js.map +1 -0
- package/dist/cjs/types/project/ProjEnvProjectRegistry.js +298 -0
- package/dist/cjs/types/project/ProjEnvProjectRegistry.js.map +1 -0
- package/dist/cjs/types/status/WinCCOAManager.js +3 -0
- package/dist/cjs/types/status/WinCCOAManager.js.map +1 -0
- package/dist/cjs/types/version/DetailedVersionInfo.js +6 -0
- package/dist/cjs/types/version/DetailedVersionInfo.js.map +1 -0
- package/dist/cjs/utils/index.js +22 -0
- package/dist/cjs/utils/index.js.map +1 -0
- package/dist/cjs/utils/winccoa-components.js +7 -0
- package/dist/cjs/utils/winccoa-components.js.map +1 -0
- package/dist/cjs/utils/winccoa-localization.js +12 -0
- package/dist/cjs/utils/winccoa-localization.js.map +1 -0
- package/dist/cjs/utils/winccoa-logging.js +3 -0
- package/dist/cjs/utils/winccoa-logging.js.map +1 -0
- package/dist/cjs/utils/winccoa-paths.js +222 -0
- package/dist/cjs/utils/winccoa-paths.js.map +1 -0
- package/dist/cjs/utils/winccoa-project-environment.js +73 -0
- package/dist/cjs/utils/winccoa-project-environment.js.map +1 -0
- package/dist/cjs/utils/winccoa-version-info.js +23 -0
- package/dist/cjs/utils/winccoa-version-info.js.map +1 -0
- package/dist/esm/index.js +7 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/types/components/WinCCOAComponent.js +253 -0
- package/dist/esm/types/components/WinCCOAComponent.js.map +1 -0
- package/dist/esm/types/components/implementations/AlertManagerComponent.js +10 -0
- package/dist/esm/types/components/implementations/AlertManagerComponent.js.map +1 -0
- package/dist/esm/types/components/implementations/AndroidComponent.js +13 -0
- package/dist/esm/types/components/implementations/AndroidComponent.js.map +1 -0
- package/dist/esm/types/components/implementations/ApiComponent.js +10 -0
- package/dist/esm/types/components/implementations/ApiComponent.js.map +1 -0
- package/dist/esm/types/components/implementations/AsciiManagerComponent.js +10 -0
- package/dist/esm/types/components/implementations/AsciiManagerComponent.js.map +1 -0
- package/dist/esm/types/components/implementations/ConfComponent.js +13 -0
- package/dist/esm/types/components/implementations/ConfComponent.js.map +1 -0
- package/dist/esm/types/components/implementations/CtrlComponent.js +30 -0
- package/dist/esm/types/components/implementations/CtrlComponent.js.map +1 -0
- package/dist/esm/types/components/implementations/DNP3Component.js +13 -0
- package/dist/esm/types/components/implementations/DNP3Component.js.map +1 -0
- package/dist/esm/types/components/implementations/DataComponent.js +13 -0
- package/dist/esm/types/components/implementations/DataComponent.js.map +1 -0
- package/dist/esm/types/components/implementations/DbManagerComponent.js +10 -0
- package/dist/esm/types/components/implementations/DbManagerComponent.js.map +1 -0
- package/dist/esm/types/components/implementations/DistComponent.js +10 -0
- package/dist/esm/types/components/implementations/DistComponent.js.map +1 -0
- package/dist/esm/types/components/implementations/DriverComponent.js +10 -0
- package/dist/esm/types/components/implementations/DriverComponent.js.map +1 -0
- package/dist/esm/types/components/implementations/EventComponent.js +13 -0
- package/dist/esm/types/components/implementations/EventComponent.js.map +1 -0
- package/dist/esm/types/components/implementations/HttpComponent.js +10 -0
- package/dist/esm/types/components/implementations/HttpComponent.js.map +1 -0
- package/dist/esm/types/components/implementations/IEC60870Component.js +13 -0
- package/dist/esm/types/components/implementations/IEC60870Component.js.map +1 -0
- package/dist/esm/types/components/implementations/IEC61850Component.js +13 -0
- package/dist/esm/types/components/implementations/IEC61850Component.js.map +1 -0
- package/dist/esm/types/components/implementations/IosComponent.js +13 -0
- package/dist/esm/types/components/implementations/IosComponent.js.map +1 -0
- package/dist/esm/types/components/implementations/JavaComponent.js +13 -0
- package/dist/esm/types/components/implementations/JavaComponent.js.map +1 -0
- package/dist/esm/types/components/implementations/JavaScriptComponent.js +13 -0
- package/dist/esm/types/components/implementations/JavaScriptComponent.js.map +1 -0
- package/dist/esm/types/components/implementations/ModbusComponent.js +13 -0
- package/dist/esm/types/components/implementations/ModbusComponent.js.map +1 -0
- package/dist/esm/types/components/implementations/OpcComponent.js +13 -0
- package/dist/esm/types/components/implementations/OpcComponent.js.map +1 -0
- package/dist/esm/types/components/implementations/OpcDaComponent.js +13 -0
- package/dist/esm/types/components/implementations/OpcDaComponent.js.map +1 -0
- package/dist/esm/types/components/implementations/OpcUaComponent.js +13 -0
- package/dist/esm/types/components/implementations/OpcUaComponent.js.map +1 -0
- package/dist/esm/types/components/implementations/PmonComponent.js +481 -0
- package/dist/esm/types/components/implementations/PmonComponent.js.map +1 -0
- package/dist/esm/types/components/implementations/RdbComponent.js +10 -0
- package/dist/esm/types/components/implementations/RdbComponent.js.map +1 -0
- package/dist/esm/types/components/implementations/ReduComponent.js +10 -0
- package/dist/esm/types/components/implementations/ReduComponent.js.map +1 -0
- package/dist/esm/types/components/implementations/ReportManagerComponent.js +10 -0
- package/dist/esm/types/components/implementations/ReportManagerComponent.js.map +1 -0
- package/dist/esm/types/components/implementations/S7Component.js +13 -0
- package/dist/esm/types/components/implementations/S7Component.js.map +1 -0
- package/dist/esm/types/components/implementations/S7TopSapComponent.js +13 -0
- package/dist/esm/types/components/implementations/S7TopSapComponent.js.map +1 -0
- package/dist/esm/types/components/implementations/SimComponent.js +13 -0
- package/dist/esm/types/components/implementations/SimComponent.js.map +1 -0
- package/dist/esm/types/components/implementations/SplitComponent.js +10 -0
- package/dist/esm/types/components/implementations/SplitComponent.js.map +1 -0
- package/dist/esm/types/components/implementations/UIComponent.js +32 -0
- package/dist/esm/types/components/implementations/UIComponent.js.map +1 -0
- package/dist/esm/types/components/implementations/ValueArchManagerComponent.js +10 -0
- package/dist/esm/types/components/implementations/ValueArchManagerComponent.js.map +1 -0
- package/dist/esm/types/components/implementations/VideoDriverComponent.js +10 -0
- package/dist/esm/types/components/implementations/VideoDriverComponent.js.map +1 -0
- package/dist/esm/types/components/implementations/VisionComponent.js +13 -0
- package/dist/esm/types/components/implementations/VisionComponent.js.map +1 -0
- package/dist/esm/types/components/implementations/WebUIComponent.js +13 -0
- package/dist/esm/types/components/implementations/WebUIComponent.js.map +1 -0
- package/dist/esm/types/components/implementations/index.js +36 -0
- package/dist/esm/types/components/implementations/index.js.map +1 -0
- package/dist/esm/types/index.js +6 -0
- package/dist/esm/types/index.js.map +1 -0
- package/dist/esm/types/localization/OaLanguage.js +143 -0
- package/dist/esm/types/localization/OaLanguage.js.map +1 -0
- package/dist/esm/types/logs/WinCCOAErrorHandler.js +97 -0
- package/dist/esm/types/logs/WinCCOAErrorHandler.js.map +1 -0
- package/dist/esm/types/logs/WinCCOALogEntry.js +2 -0
- package/dist/esm/types/logs/WinCCOALogEntry.js.map +1 -0
- package/dist/esm/types/logs/WinCCOALogParser.js +176 -0
- package/dist/esm/types/logs/WinCCOALogParser.js.map +1 -0
- package/dist/esm/types/project/CurrentProjectInfo.js +11 -0
- package/dist/esm/types/project/CurrentProjectInfo.js.map +1 -0
- package/dist/esm/types/project/ProjEnv.js +103 -0
- package/dist/esm/types/project/ProjEnv.js.map +1 -0
- package/dist/esm/types/project/ProjEnvErrorHandler.js +8 -0
- package/dist/esm/types/project/ProjEnvErrorHandler.js.map +1 -0
- package/dist/esm/types/project/ProjEnvPmonStatus.js +18 -0
- package/dist/esm/types/project/ProjEnvPmonStatus.js.map +1 -0
- package/dist/esm/types/project/ProjEnvProject.js +849 -0
- package/dist/esm/types/project/ProjEnvProject.js.map +1 -0
- package/dist/esm/types/project/ProjEnvProjectConfig.js +216 -0
- package/dist/esm/types/project/ProjEnvProjectConfig.js.map +1 -0
- package/dist/esm/types/project/ProjEnvProjectRegistry.js +254 -0
- package/dist/esm/types/project/ProjEnvProjectRegistry.js.map +1 -0
- package/dist/esm/types/status/WinCCOAManager.js +2 -0
- package/dist/esm/types/status/WinCCOAManager.js.map +1 -0
- package/dist/esm/types/version/DetailedVersionInfo.js +5 -0
- package/dist/esm/types/version/DetailedVersionInfo.js.map +1 -0
- package/dist/esm/utils/index.js +6 -0
- package/dist/esm/utils/index.js.map +1 -0
- package/dist/esm/utils/winccoa-components.js +4 -0
- package/dist/esm/utils/winccoa-components.js.map +1 -0
- package/dist/esm/utils/winccoa-localization.js +9 -0
- package/dist/esm/utils/winccoa-localization.js.map +1 -0
- package/dist/esm/utils/winccoa-logging.js +3 -0
- package/dist/esm/utils/winccoa-logging.js.map +1 -0
- package/dist/esm/utils/winccoa-paths.js +184 -0
- package/dist/esm/utils/winccoa-paths.js.map +1 -0
- package/dist/esm/utils/winccoa-project-environment.js +66 -0
- package/dist/esm/utils/winccoa-project-environment.js.map +1 -0
- package/dist/esm/utils/winccoa-version-info.js +20 -0
- package/dist/esm/utils/winccoa-version-info.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/types/components/WinCCOAComponent.d.ts +127 -0
- package/dist/types/components/WinCCOAComponent.d.ts.map +1 -0
- package/dist/types/components/implementations/AlertManagerComponent.d.ts +6 -0
- package/dist/types/components/implementations/AlertManagerComponent.d.ts.map +1 -0
- package/dist/types/components/implementations/AndroidComponent.d.ts +9 -0
- package/dist/types/components/implementations/AndroidComponent.d.ts.map +1 -0
- package/dist/types/components/implementations/ApiComponent.d.ts +6 -0
- package/dist/types/components/implementations/ApiComponent.d.ts.map +1 -0
- package/dist/types/components/implementations/AsciiManagerComponent.d.ts +6 -0
- package/dist/types/components/implementations/AsciiManagerComponent.d.ts.map +1 -0
- package/dist/types/components/implementations/ConfComponent.d.ts +9 -0
- package/dist/types/components/implementations/ConfComponent.d.ts.map +1 -0
- package/dist/types/components/implementations/CtrlComponent.d.ts +10 -0
- package/dist/types/components/implementations/CtrlComponent.d.ts.map +1 -0
- package/dist/types/components/implementations/DNP3Component.d.ts +9 -0
- package/dist/types/components/implementations/DNP3Component.d.ts.map +1 -0
- package/dist/types/components/implementations/DataComponent.d.ts +9 -0
- package/dist/types/components/implementations/DataComponent.d.ts.map +1 -0
- package/dist/types/components/implementations/DbManagerComponent.d.ts +6 -0
- package/dist/types/components/implementations/DbManagerComponent.d.ts.map +1 -0
- package/dist/types/components/implementations/DistComponent.d.ts +6 -0
- package/dist/types/components/implementations/DistComponent.d.ts.map +1 -0
- package/dist/types/components/implementations/DriverComponent.d.ts +6 -0
- package/dist/types/components/implementations/DriverComponent.d.ts.map +1 -0
- package/dist/types/components/implementations/EventComponent.d.ts +9 -0
- package/dist/types/components/implementations/EventComponent.d.ts.map +1 -0
- package/dist/types/components/implementations/HttpComponent.d.ts +6 -0
- package/dist/types/components/implementations/HttpComponent.d.ts.map +1 -0
- package/dist/types/components/implementations/IEC60870Component.d.ts +9 -0
- package/dist/types/components/implementations/IEC60870Component.d.ts.map +1 -0
- package/dist/types/components/implementations/IEC61850Component.d.ts +9 -0
- package/dist/types/components/implementations/IEC61850Component.d.ts.map +1 -0
- package/dist/types/components/implementations/IosComponent.d.ts +9 -0
- package/dist/types/components/implementations/IosComponent.d.ts.map +1 -0
- package/dist/types/components/implementations/JavaComponent.d.ts +9 -0
- package/dist/types/components/implementations/JavaComponent.d.ts.map +1 -0
- package/dist/types/components/implementations/JavaScriptComponent.d.ts +9 -0
- package/dist/types/components/implementations/JavaScriptComponent.d.ts.map +1 -0
- package/dist/types/components/implementations/ModbusComponent.d.ts +9 -0
- package/dist/types/components/implementations/ModbusComponent.d.ts.map +1 -0
- package/dist/types/components/implementations/OpcComponent.d.ts +9 -0
- package/dist/types/components/implementations/OpcComponent.d.ts.map +1 -0
- package/dist/types/components/implementations/OpcDaComponent.d.ts +9 -0
- package/dist/types/components/implementations/OpcDaComponent.d.ts.map +1 -0
- package/dist/types/components/implementations/OpcUaComponent.d.ts +9 -0
- package/dist/types/components/implementations/OpcUaComponent.d.ts.map +1 -0
- package/dist/types/components/implementations/PmonComponent.d.ts +105 -0
- package/dist/types/components/implementations/PmonComponent.d.ts.map +1 -0
- package/dist/types/components/implementations/RdbComponent.d.ts +6 -0
- package/dist/types/components/implementations/RdbComponent.d.ts.map +1 -0
- package/dist/types/components/implementations/ReduComponent.d.ts +6 -0
- package/dist/types/components/implementations/ReduComponent.d.ts.map +1 -0
- package/dist/types/components/implementations/ReportManagerComponent.d.ts +6 -0
- package/dist/types/components/implementations/ReportManagerComponent.d.ts.map +1 -0
- package/dist/types/components/implementations/S7Component.d.ts +9 -0
- package/dist/types/components/implementations/S7Component.d.ts.map +1 -0
- package/dist/types/components/implementations/S7TopSapComponent.d.ts +9 -0
- package/dist/types/components/implementations/S7TopSapComponent.d.ts.map +1 -0
- package/dist/types/components/implementations/SimComponent.d.ts +9 -0
- package/dist/types/components/implementations/SimComponent.d.ts.map +1 -0
- package/dist/types/components/implementations/SplitComponent.d.ts +6 -0
- package/dist/types/components/implementations/SplitComponent.d.ts.map +1 -0
- package/dist/types/components/implementations/UIComponent.d.ts +13 -0
- package/dist/types/components/implementations/UIComponent.d.ts.map +1 -0
- package/dist/types/components/implementations/ValueArchManagerComponent.d.ts +6 -0
- package/dist/types/components/implementations/ValueArchManagerComponent.d.ts.map +1 -0
- package/dist/types/components/implementations/VideoDriverComponent.d.ts +6 -0
- package/dist/types/components/implementations/VideoDriverComponent.d.ts.map +1 -0
- package/dist/types/components/implementations/VisionComponent.d.ts +9 -0
- package/dist/types/components/implementations/VisionComponent.d.ts.map +1 -0
- package/dist/types/components/implementations/WebUIComponent.d.ts +9 -0
- package/dist/types/components/implementations/WebUIComponent.d.ts.map +1 -0
- package/dist/types/components/implementations/index.d.ts +36 -0
- package/dist/types/components/implementations/index.d.ts.map +1 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/localization/OaLanguage.d.ts +141 -0
- package/dist/types/localization/OaLanguage.d.ts.map +1 -0
- package/dist/types/logs/WinCCOAErrorHandler.d.ts +35 -0
- package/dist/types/logs/WinCCOAErrorHandler.d.ts.map +1 -0
- package/dist/types/logs/WinCCOALogEntry.d.ts +12 -0
- package/dist/types/logs/WinCCOALogEntry.d.ts.map +1 -0
- package/dist/types/logs/WinCCOALogParser.d.ts +53 -0
- package/dist/types/logs/WinCCOALogParser.d.ts.map +1 -0
- package/dist/types/project/CurrentProjectInfo.d.ts +24 -0
- package/dist/types/project/CurrentProjectInfo.d.ts.map +1 -0
- package/dist/types/project/ProjEnv.d.ts +73 -0
- package/dist/types/project/ProjEnv.d.ts.map +1 -0
- package/dist/types/project/ProjEnvErrorHandler.d.ts +6 -0
- package/dist/types/project/ProjEnvErrorHandler.d.ts.map +1 -0
- package/dist/types/project/ProjEnvPmonStatus.d.ts +23 -0
- package/dist/types/project/ProjEnvPmonStatus.d.ts.map +1 -0
- package/dist/types/project/ProjEnvProject.d.ts +438 -0
- package/dist/types/project/ProjEnvProject.d.ts.map +1 -0
- package/dist/types/project/ProjEnvProjectConfig.d.ts +51 -0
- package/dist/types/project/ProjEnvProjectConfig.d.ts.map +1 -0
- package/dist/types/project/ProjEnvProjectRegistry.d.ts +60 -0
- package/dist/types/project/ProjEnvProjectRegistry.d.ts.map +1 -0
- package/dist/types/status/WinCCOAManager.d.ts +15 -0
- package/dist/types/status/WinCCOAManager.d.ts.map +1 -0
- package/dist/types/version/DetailedVersionInfo.d.ts +16 -0
- package/dist/types/version/DetailedVersionInfo.d.ts.map +1 -0
- package/dist/utils/index.d.ts +6 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/winccoa-components.d.ts +3 -0
- package/dist/utils/winccoa-components.d.ts.map +1 -0
- package/dist/utils/winccoa-localization.d.ts +7 -0
- package/dist/utils/winccoa-localization.d.ts.map +1 -0
- package/dist/utils/winccoa-logging.d.ts +1 -0
- package/dist/utils/winccoa-logging.d.ts.map +1 -0
- package/dist/utils/winccoa-paths.d.ts +49 -0
- package/dist/utils/winccoa-paths.d.ts.map +1 -0
- package/dist/utils/winccoa-project-environment.d.ts +34 -0
- package/dist/utils/winccoa-project-environment.d.ts.map +1 -0
- package/dist/utils/winccoa-version-info.d.ts +14 -0
- package/dist/utils/winccoa-version-info.d.ts.map +1 -0
- package/package.json +69 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 winccoa-tools-pack
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
# WinCC OA Core Utils
|
|
2
|
+
|
|
3
|
+
Core utilities and type definitions for WinCC OA development. This library provides essential functionality for managing WinCC OA projects, components, and system interactions.
|
|
4
|
+
|
|
5
|
+
## 📦 Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @winccoa-tools-pack/npm-winccoa-core
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## 🚀 Quick Start
|
|
12
|
+
|
|
13
|
+
### Working with Projects
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import {
|
|
17
|
+
getRegisteredProjects,
|
|
18
|
+
getRunningProjects,
|
|
19
|
+
getRunnableProjects,
|
|
20
|
+
getCurrentProjects,
|
|
21
|
+
findProjectForFile
|
|
22
|
+
} from '@winccoa-tools-pack/npm-winccoa-core';
|
|
23
|
+
|
|
24
|
+
// Get all registered projects from the system
|
|
25
|
+
const allProjects = await getRegisteredProjects();
|
|
26
|
+
console.log(`Found ${allProjects.length} registered projects`);
|
|
27
|
+
|
|
28
|
+
// Filter to only running projects
|
|
29
|
+
const running = await getRunningProjects();
|
|
30
|
+
console.log(`${running.length} projects are currently running`);
|
|
31
|
+
|
|
32
|
+
// Get projects that can be started
|
|
33
|
+
const runnable = await getRunnableProjects();
|
|
34
|
+
|
|
35
|
+
// Get the current active project (if any)
|
|
36
|
+
const current = await getCurrentProjects();
|
|
37
|
+
if (current.length > 0) {
|
|
38
|
+
console.log(`Current project: ${current[0].getName()}`);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// Find which project a file belongs to
|
|
42
|
+
const filePath = '/opt/WinCC_OA_Projects/myProject/config/config';
|
|
43
|
+
const project = await findProjectForFile(filePath);
|
|
44
|
+
if (project) {
|
|
45
|
+
console.log(`File belongs to project: ${project.getName()}`);
|
|
46
|
+
console.log(`Project ID: ${project.getId()}`);
|
|
47
|
+
console.log(`Project is runnable: ${project.isRunnable()}`);
|
|
48
|
+
}
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### Managing Individual Projects
|
|
52
|
+
|
|
53
|
+
```typescript
|
|
54
|
+
import { ProjEnvProject } from '@winccoa-tools-pack/npm-winccoa-core';
|
|
55
|
+
|
|
56
|
+
// Create and register a new project
|
|
57
|
+
const project = new ProjEnvProject();
|
|
58
|
+
project.setId('myProject');
|
|
59
|
+
project.setInstallDir('/opt/WinCC_OA_Projects/');
|
|
60
|
+
project.setVersion('3.21');
|
|
61
|
+
await project.registerProj();
|
|
62
|
+
|
|
63
|
+
// Check project status
|
|
64
|
+
if (project.isRegistered()) {
|
|
65
|
+
console.log('Project successfully registered');
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// Unregister when done
|
|
69
|
+
await project.unregisterProj();
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### Working with WinCC OA Installations
|
|
73
|
+
|
|
74
|
+
```typescript
|
|
75
|
+
import {
|
|
76
|
+
getAvailableWinCCOAVersions,
|
|
77
|
+
getWinCCOAInstallationPathByVersion
|
|
78
|
+
} from '@winccoa-tools-pack/npm-winccoa-core';
|
|
79
|
+
|
|
80
|
+
// Get all installed WinCC OA versions (sorted highest to lowest)
|
|
81
|
+
const versions = getAvailableWinCCOAVersions();
|
|
82
|
+
console.log('Installed versions:', versions);
|
|
83
|
+
// Example output: ['3.20', '3.19', '3.18']
|
|
84
|
+
|
|
85
|
+
// Get installation path for a specific version
|
|
86
|
+
const path = getWinCCOAInstallationPathByVersion('3.20');
|
|
87
|
+
if (path) {
|
|
88
|
+
console.log(`WinCC OA 3.20 installed at: ${path}`);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// Paths are cached for performance - first lookup queries registry/filesystem,
|
|
92
|
+
// subsequent lookups return cached value immediately
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
## ✨ Features
|
|
96
|
+
|
|
97
|
+
### Component Management
|
|
98
|
+
|
|
99
|
+
- **WinCCOAComponent**: Base class for all WinCC OA components
|
|
100
|
+
- Automatic executable discovery across installed versions
|
|
101
|
+
- Process timeout handling for reliable execution
|
|
102
|
+
- Detached process spawning support
|
|
103
|
+
- Version-specific component targeting
|
|
104
|
+
- Stdout/stderr capture with timestamped logging
|
|
105
|
+
|
|
106
|
+
### Project Management
|
|
107
|
+
|
|
108
|
+
- **ProjEnvProject**: Complete project lifecycle management
|
|
109
|
+
- Project registration and unregistration
|
|
110
|
+
- Async operations with automatic retry logic
|
|
111
|
+
- Status polling with proper async/await
|
|
112
|
+
- Configuration file handling
|
|
113
|
+
|
|
114
|
+
### Project Registry
|
|
115
|
+
|
|
116
|
+
- **ProjEnvProjectRegistry**: Automatic project tracking
|
|
117
|
+
- Real-time file system monitoring (pvssInst.conf)
|
|
118
|
+
- Debounced cache refresh (100ms) for performance
|
|
119
|
+
- Automatic invalidation on configuration changes
|
|
120
|
+
|
|
121
|
+
### Utilities
|
|
122
|
+
|
|
123
|
+
- Path resolution for WinCC OA installations
|
|
124
|
+
- Version detection and comparison
|
|
125
|
+
- Localization helpers
|
|
126
|
+
- Log parsing and error handling
|
|
127
|
+
|
|
128
|
+
## 📦 Development
|
|
129
|
+
|
|
130
|
+
```bash
|
|
131
|
+
# Install dependencies
|
|
132
|
+
npm install
|
|
133
|
+
|
|
134
|
+
# Build the library
|
|
135
|
+
npm run build
|
|
136
|
+
|
|
137
|
+
# Run all tests
|
|
138
|
+
npm test
|
|
139
|
+
|
|
140
|
+
# Run only unit tests. Without WinCC OA instalation
|
|
141
|
+
npm run test:unit
|
|
142
|
+
|
|
143
|
+
# Run only integration tests. WinCC OA must be installed.
|
|
144
|
+
npm run test:integration
|
|
145
|
+
|
|
146
|
+
# Lint code
|
|
147
|
+
npm run lint
|
|
148
|
+
|
|
149
|
+
# Format code
|
|
150
|
+
npm run format
|
|
151
|
+
|
|
152
|
+
# Check code style
|
|
153
|
+
npm run style-check
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
## 🌳 Git Flow Workflow
|
|
157
|
+
|
|
158
|
+
This project uses [Git Flow](https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow) for branch management:
|
|
159
|
+
|
|
160
|
+
### Branch Structure
|
|
161
|
+
|
|
162
|
+
- **`main`** - Production-ready code (stable releases)
|
|
163
|
+
- **`develop`** - Integration branch (pre-release features)
|
|
164
|
+
- **`feature/*`** - New features
|
|
165
|
+
- **`release/*`** - Release preparation
|
|
166
|
+
- **`hotfix/*`** - Emergency fixes for production
|
|
167
|
+
|
|
168
|
+
For detailed workflow information, see [docs/GITFLOW_WORKFLOW.md](docs/GITFLOW_WORKFLOW.md).
|
|
169
|
+
|
|
170
|
+
## 📖 Documentation
|
|
171
|
+
|
|
172
|
+
- [Source Code Overview](src/README.md) - Detailed module documentation
|
|
173
|
+
- [Changelog](CHANGELOG.md) - Version history and updates
|
|
174
|
+
- [Contributing Guide](CONTRIBUTING.md) - How to contribute
|
|
175
|
+
- [Development Docs](docs/dev/README.md) - Development guidelines
|
|
176
|
+
|
|
177
|
+
## 🔧 Configuration
|
|
178
|
+
|
|
179
|
+
### Windows EOL (CRLF) Note
|
|
180
|
+
|
|
181
|
+
This repository enforces LF line endings for configuration files via `.gitattributes` to avoid spurious diffs.
|
|
182
|
+
|
|
183
|
+
If you see CRLF→LF warnings on Windows, normalize the files once:
|
|
184
|
+
|
|
185
|
+
```powershell
|
|
186
|
+
cd C:\path\to\repo
|
|
187
|
+
git add --renormalize .
|
|
188
|
+
git commit -m "chore: apply eol normalization per .gitattributes"
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
## 🏆 Recognition
|
|
192
|
+
|
|
193
|
+
Special thanks to all our [contributors](https://github.com/orgs/winccoa-tools-pack/people) who make this project possible!
|
|
194
|
+
|
|
195
|
+
### Key Contributors
|
|
196
|
+
|
|
197
|
+
- **Martin Pokorny** ([@mPokornyETM](https://github.com/mPokornyETM)) - Creator & Lead Developer
|
|
198
|
+
- And many more amazing contributors!
|
|
199
|
+
|
|
200
|
+
---
|
|
201
|
+
|
|
202
|
+
## 📜 License
|
|
203
|
+
|
|
204
|
+
This project is licensed under the **MIT License** - see the [LICENSE](https://github.com/winccoa-tools-pack/.github/blob/main/LICENSE) file for details.
|
|
205
|
+
|
|
206
|
+
Note: Some dependencies may use different license models.
|
|
207
|
+
|
|
208
|
+
---
|
|
209
|
+
|
|
210
|
+
## ⚠️ Disclaimer
|
|
211
|
+
|
|
212
|
+
**WinCC OA** and **Siemens** are trademarks of Siemens AG.
|
|
213
|
+
This project is not affiliated with, endorsed by, or sponsored by Siemens AG.
|
|
214
|
+
This is a community-driven open source project created to enhance the development experience for WinCC OA developers.
|
|
215
|
+
|
|
216
|
+
---
|
|
217
|
+
|
|
218
|
+
## 🎉 Thank You
|
|
219
|
+
|
|
220
|
+
Thank you for using WinCC OA tools package!
|
|
221
|
+
We're excited to be part of your development journey.
|
|
222
|
+
**Happy Coding! 🚀**
|
|
223
|
+
|
|
224
|
+
---
|
|
225
|
+
|
|
226
|
+
## Quick Links
|
|
227
|
+
|
|
228
|
+
• [📦 VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=mPokornyETM.wincc-oa-projects)
|
|
229
|
+
• [📚 Documentation](docs/dev/README.md)
|
|
230
|
+
• [🐛 Report Issues](https://github.com/winccoa-tools-pack/npm-winccoa-core/issues)
|
|
231
|
+
|
|
232
|
+
---
|
|
233
|
+
|
|
234
|
+
<center>Made with ❤️ for and by the WinCC OA community</center>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* WinCC OA Core Utilities
|
|
4
|
+
* Platform-agnostic utilities for WinCC OA automation
|
|
5
|
+
*/
|
|
6
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
+
if (k2 === undefined) k2 = k;
|
|
8
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
11
|
+
}
|
|
12
|
+
Object.defineProperty(o, k2, desc);
|
|
13
|
+
}) : (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
o[k2] = m[k];
|
|
16
|
+
}));
|
|
17
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
18
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
// Export all utilities
|
|
22
|
+
__exportStar(require("./utils/index.js"), exports);
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;AAEH,uBAAuB;AACvB,mDAAiC"}
|
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Platform-agnostic WinCC OA component base class
|
|
4
|
+
* Stripped of VS Code-specific APIs so it can live in the shared library.
|
|
5
|
+
*/
|
|
6
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
+
if (k2 === undefined) k2 = k;
|
|
8
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
11
|
+
}
|
|
12
|
+
Object.defineProperty(o, k2, desc);
|
|
13
|
+
}) : (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
o[k2] = m[k];
|
|
16
|
+
}));
|
|
17
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
18
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
19
|
+
}) : function(o, v) {
|
|
20
|
+
o["default"] = v;
|
|
21
|
+
});
|
|
22
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
23
|
+
var ownKeys = function(o) {
|
|
24
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
25
|
+
var ar = [];
|
|
26
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
27
|
+
return ar;
|
|
28
|
+
};
|
|
29
|
+
return ownKeys(o);
|
|
30
|
+
};
|
|
31
|
+
return function (mod) {
|
|
32
|
+
if (mod && mod.__esModule) return mod;
|
|
33
|
+
var result = {};
|
|
34
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
35
|
+
__setModuleDefault(result, mod);
|
|
36
|
+
return result;
|
|
37
|
+
};
|
|
38
|
+
})();
|
|
39
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
exports.WinCCOAComponent = void 0;
|
|
41
|
+
const path = __importStar(require("path"));
|
|
42
|
+
const fs = __importStar(require("fs"));
|
|
43
|
+
const child_process_1 = require("child_process");
|
|
44
|
+
const winccoa_paths_js_1 = require("../../utils/winccoa-paths.js");
|
|
45
|
+
const crypto_1 = require("crypto");
|
|
46
|
+
/*
|
|
47
|
+
class CommandHistoryEntry {
|
|
48
|
+
private command: string;
|
|
49
|
+
private args: string[];
|
|
50
|
+
private timestamp: Date;
|
|
51
|
+
public stdOut: string = '';
|
|
52
|
+
public stdErr: string = '';
|
|
53
|
+
|
|
54
|
+
constructor(command: string, args: string[]) {
|
|
55
|
+
this.command = command;
|
|
56
|
+
this.args = args;
|
|
57
|
+
this.timestamp = new Date();
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
*/
|
|
61
|
+
class WinCCOAComponent {
|
|
62
|
+
constructor() {
|
|
63
|
+
// public commandHistory: CommandHistoryEntry[] = [];
|
|
64
|
+
/**
|
|
65
|
+
* Accumulated standard output from the last spawned process.
|
|
66
|
+
* Use this to inspect output produced by helper commands invoked
|
|
67
|
+
* by the component (e.g., version queries).
|
|
68
|
+
*/
|
|
69
|
+
this.stdOut = '';
|
|
70
|
+
/**
|
|
71
|
+
* Accumulated standard error output from the last spawned process.
|
|
72
|
+
*/
|
|
73
|
+
this.stdErr = '';
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Returns the executable filename used by the component. Defaults to
|
|
77
|
+
* the value returned by `getName()` but may be overridden by
|
|
78
|
+
* platform-specific implementations.
|
|
79
|
+
*
|
|
80
|
+
* @returns executable filename (without path)
|
|
81
|
+
*/
|
|
82
|
+
getExecutableName() {
|
|
83
|
+
return this.getName();
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Attempts to discover the full filesystem path to the component
|
|
87
|
+
* executable by scanning known WinCC OA installation directories.
|
|
88
|
+
*
|
|
89
|
+
* The search strategy:
|
|
90
|
+
* - If version is specified, search only in that version's installation
|
|
91
|
+
* - Otherwise, query all available WinCC OA versions (cached by utils)
|
|
92
|
+
* - For each version, resolve the installation root and check
|
|
93
|
+
* `bin/<executable>` and `bin/<executable>.exe` for existence.
|
|
94
|
+
*
|
|
95
|
+
* Returns the absolute path to the executable when found or `null`
|
|
96
|
+
* if not present on the host system.
|
|
97
|
+
*
|
|
98
|
+
* @param version - Optional WinCC OA version to search in (e.g., '3.20')
|
|
99
|
+
* @returns absolute path to executable or `null`
|
|
100
|
+
*/
|
|
101
|
+
getPath(version) {
|
|
102
|
+
const exe = this.getExecutableName();
|
|
103
|
+
const versions = version ? [version] : (0, winccoa_paths_js_1.getAvailableWinCCOAVersions)();
|
|
104
|
+
for (const v of versions) {
|
|
105
|
+
const base = (0, winccoa_paths_js_1.getWinCCOAInstallationPathByVersion)(v);
|
|
106
|
+
if (!base)
|
|
107
|
+
continue;
|
|
108
|
+
const candidate = path.join(base, 'bin', exe);
|
|
109
|
+
if (fs.existsSync(candidate)) {
|
|
110
|
+
return candidate;
|
|
111
|
+
}
|
|
112
|
+
// Windows can have .exe suffix
|
|
113
|
+
if (fs.existsSync(candidate + '.exe')) {
|
|
114
|
+
return candidate + '.exe';
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
return null;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Returns `true` when the component's executable exists on disk and is
|
|
121
|
+
* discoverable by `getPath()`.
|
|
122
|
+
*/
|
|
123
|
+
exists() {
|
|
124
|
+
const p = this.getPath();
|
|
125
|
+
return !!p && fs.existsSync(p);
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Executes the component with the `-version` flag and extracts the version string
|
|
129
|
+
* from the output. Uses a 5-second timeout to prevent hanging.
|
|
130
|
+
*
|
|
131
|
+
* @returns parsed version string (e.g., '3.20.1') or `null` when no version could be found
|
|
132
|
+
*/
|
|
133
|
+
async getFullVersion() {
|
|
134
|
+
const lines = await this.execAndCollectLines(this.getPath() || '', ['-version'], 5000);
|
|
135
|
+
const parsed = this.parseVersionOutput(lines.join('\n'));
|
|
136
|
+
return parsed || null;
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Parses a version-like substring from arbitrary command output.
|
|
140
|
+
* Default implementation finds the first occurrence of `N.N` or
|
|
141
|
+
* `N.N.N` using a simple regex. Override in concrete components if
|
|
142
|
+
* they produce more complex version output.
|
|
143
|
+
*
|
|
144
|
+
* @param output - Raw output to inspect
|
|
145
|
+
* @returns matched version string or `null`
|
|
146
|
+
*/
|
|
147
|
+
parseVersionOutput(output) {
|
|
148
|
+
const m = output.match(/(\d+\.\d+(?:\.\d+)?)/);
|
|
149
|
+
return m ? m[1] : null;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Starts the component process with the provided arguments.
|
|
153
|
+
* Captures stdout/stderr into `stdOut`/`stdErr` and resolves with the
|
|
154
|
+
* exit code when the process closes. Rejects on process start errors.
|
|
155
|
+
*
|
|
156
|
+
* **Detached Process Behavior:**
|
|
157
|
+
* When `detached: true`, the process runs independently of the parent:
|
|
158
|
+
* - Sets `stdio: 'ignore'` to prevent blocking on I/O streams
|
|
159
|
+
* - Calls `unref()` to allow parent to exit independently
|
|
160
|
+
* - Resolves immediately with exit code 0
|
|
161
|
+
* - stdout/stderr are NOT captured for detached processes
|
|
162
|
+
*
|
|
163
|
+
* **Timeout Behavior:**
|
|
164
|
+
* When timeout is specified, the process is killed if it doesn't complete
|
|
165
|
+
* within the given time. The promise rejects with a timeout error.
|
|
166
|
+
*
|
|
167
|
+
* **Version Selection:**
|
|
168
|
+
* If a specific version is provided, the component executable from that
|
|
169
|
+
* WinCC OA version will be used.
|
|
170
|
+
*
|
|
171
|
+
* @param args - Array of arguments to pass to the executable
|
|
172
|
+
* @param options.detached - Whether to spawn the process detached (default: false)
|
|
173
|
+
* @param options.timeout - Timeout in milliseconds; kills process if exceeded (optional)
|
|
174
|
+
* @param options.version - Specific WinCC OA version to use (optional)
|
|
175
|
+
* @param options.waitForLog - Wait for specific log output (TODO: not yet implemented)
|
|
176
|
+
* @returns Promise resolving with process exit code (0 for detached processes)
|
|
177
|
+
* @throws Error if executable not found or timeout exceeded
|
|
178
|
+
*/
|
|
179
|
+
async start(args = [], options = {}) {
|
|
180
|
+
const p = this.getPath(options.version);
|
|
181
|
+
// const histEntry = new CommandHistoryEntry(this.getName(), args);
|
|
182
|
+
this.stdOut = '';
|
|
183
|
+
this.stdErr = '';
|
|
184
|
+
const cmdId = (0, crypto_1.randomUUID)();
|
|
185
|
+
console.log(`[${new Date().toISOString()}]`, cmdId, 'Starting component', this.getName(), 'with args', args, 'from', p, 'options', options);
|
|
186
|
+
if (!p)
|
|
187
|
+
throw new Error('Executable ' + this.getName() + ' not found');
|
|
188
|
+
return new Promise((resolve, reject) => {
|
|
189
|
+
const spawnOptions = { shell: false };
|
|
190
|
+
let timeoutHandle = null;
|
|
191
|
+
if (options.detached) {
|
|
192
|
+
// For detached processes, ignore stdio to prevent parent from waiting
|
|
193
|
+
spawnOptions.detached = true;
|
|
194
|
+
spawnOptions.stdio = 'ignore';
|
|
195
|
+
}
|
|
196
|
+
const proc = (0, child_process_1.spawn)(p, args, spawnOptions);
|
|
197
|
+
if (options.detached) {
|
|
198
|
+
// Unref to allow parent to exit independently
|
|
199
|
+
proc.unref();
|
|
200
|
+
// Resolve immediately for detached processes
|
|
201
|
+
resolve(0);
|
|
202
|
+
}
|
|
203
|
+
else {
|
|
204
|
+
// Set up timeout if specified
|
|
205
|
+
if (options.timeout && options.timeout > 0) {
|
|
206
|
+
timeoutHandle = setTimeout(() => {
|
|
207
|
+
proc.kill();
|
|
208
|
+
reject(new Error(`Process timeout after ${options.timeout}ms`));
|
|
209
|
+
}, options.timeout);
|
|
210
|
+
}
|
|
211
|
+
// Only capture output for non-detached processes
|
|
212
|
+
proc.stdout?.on('data', (d) => {
|
|
213
|
+
const str = d.toString();
|
|
214
|
+
this.stdOut += str;
|
|
215
|
+
console.log(`[${new Date().toISOString()}]`, cmdId, 'STDOUT:', str); /* histEntry.stdOut += str; */
|
|
216
|
+
});
|
|
217
|
+
proc.stderr?.on('data', (d) => {
|
|
218
|
+
const str = d.toString();
|
|
219
|
+
this.stdErr += str;
|
|
220
|
+
console.log(`[${new Date().toISOString()}]`, cmdId, 'STDERR:', str); /* histEntry.stdErr += str; */
|
|
221
|
+
});
|
|
222
|
+
proc.on('close', (code) => {
|
|
223
|
+
if (timeoutHandle)
|
|
224
|
+
clearTimeout(timeoutHandle);
|
|
225
|
+
resolve(code ?? 0);
|
|
226
|
+
});
|
|
227
|
+
proc.on('error', (err) => {
|
|
228
|
+
if (timeoutHandle)
|
|
229
|
+
clearTimeout(timeoutHandle);
|
|
230
|
+
reject(err);
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* Execute a command and collect stdout lines as an array of strings.
|
|
237
|
+
* Returns trimmed lines (excluding empty lines and terminating ';').
|
|
238
|
+
*
|
|
239
|
+
* This is a utility method for executing short-lived commands that produce
|
|
240
|
+
* line-based output. Stderr is captured separately but not returned.
|
|
241
|
+
*
|
|
242
|
+
* **Timeout Behavior:**
|
|
243
|
+
* If timeout is specified and exceeded, the process is killed and the
|
|
244
|
+
* promise rejects with a timeout error.
|
|
245
|
+
*
|
|
246
|
+
* @param cmdPath - Absolute path to the executable
|
|
247
|
+
* @param args - Array of command-line arguments to pass
|
|
248
|
+
* @param timeout - Optional timeout in milliseconds; kills process if exceeded
|
|
249
|
+
* @returns Array of trimmed, non-empty output lines
|
|
250
|
+
* @throws Error if process fails to spawn or timeout is exceeded
|
|
251
|
+
*/
|
|
252
|
+
async execAndCollectLines(cmdPath, args, timeout) {
|
|
253
|
+
return new Promise((resolve, reject) => {
|
|
254
|
+
const proc = (0, child_process_1.spawn)(cmdPath, args, { shell: false });
|
|
255
|
+
let stdout = '';
|
|
256
|
+
let timeoutHandle = null;
|
|
257
|
+
if (timeout && timeout > 0) {
|
|
258
|
+
timeoutHandle = setTimeout(() => {
|
|
259
|
+
proc.kill();
|
|
260
|
+
reject(new Error(`execAndCollectLines timeout after ${timeout}ms`));
|
|
261
|
+
}, timeout);
|
|
262
|
+
}
|
|
263
|
+
proc.stdout?.on('data', (d) => {
|
|
264
|
+
const s = d.toString();
|
|
265
|
+
stdout += s;
|
|
266
|
+
this.stdOut += s;
|
|
267
|
+
});
|
|
268
|
+
proc.stderr?.on('data', (d) => {
|
|
269
|
+
const s = d.toString();
|
|
270
|
+
this.stdErr += s;
|
|
271
|
+
});
|
|
272
|
+
proc.on('close', (_code) => {
|
|
273
|
+
if (timeoutHandle)
|
|
274
|
+
clearTimeout(timeoutHandle);
|
|
275
|
+
const lines = stdout
|
|
276
|
+
.split(/\r?\n/)
|
|
277
|
+
.map((l) => l.trim())
|
|
278
|
+
.filter((l) => l.length > 0 && l !== ';');
|
|
279
|
+
resolve(lines);
|
|
280
|
+
});
|
|
281
|
+
proc.on('error', (err) => {
|
|
282
|
+
if (timeoutHandle)
|
|
283
|
+
clearTimeout(timeoutHandle);
|
|
284
|
+
reject(err);
|
|
285
|
+
});
|
|
286
|
+
});
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
exports.WinCCOAComponent = WinCCOAComponent;
|
|
290
|
+
//# sourceMappingURL=WinCCOAComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WinCCOAComponent.js","sourceRoot":"","sources":["../../../../src/types/components/WinCCOAComponent.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,2CAA6B;AAC7B,uCAAyB;AACzB,iDAAsC;AACtC,mEAGsC;AACtC,mCAAoC;AAEpC;;;;;;;;;;;;;;EAcE;AAEF,MAAsB,gBAAgB;IAAtC;QACI,qDAAqD;QACrD;;;;WAIG;QACI,WAAM,GAAW,EAAE,CAAC;QAE3B;;WAEG;QACI,WAAM,GAAW,EAAE,CAAC;IAyR/B,CAAC;IA1QG;;;;;;OAMG;IACI,iBAAiB;QACpB,OAAO,IAAI,CAAC,OAAO,EAAE,CAAC;IAC1B,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACI,OAAO,CAAC,OAAgB;QAC3B,MAAM,GAAG,GAAG,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACrC,MAAM,QAAQ,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAA,8CAA2B,GAAE,CAAC;QAErE,KAAK,MAAM,CAAC,IAAI,QAAQ,EAAE,CAAC;YACvB,MAAM,IAAI,GAAG,IAAA,sDAAmC,EAAC,CAAC,CAAC,CAAC;YACpD,IAAI,CAAC,IAAI;gBAAE,SAAS;YAEpB,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC;YAC9C,IAAI,EAAE,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,CAAC;gBAC3B,OAAO,SAAS,CAAC;YACrB,CAAC;YAED,+BAA+B;YAC/B,IAAI,EAAE,CAAC,UAAU,CAAC,SAAS,GAAG,MAAM,CA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GAAG,CAAC,CAAC;gBAC9C,OAAO,CAAC,KAAK,CAAC,CAAC;YACnB,CAAC,CAAC,CAAC;YAEH,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,GAAG,EAAE,EAAE;gBACrB,IAAI,aAAa;oBAAE,YAAY,CAAC,aAAa,CAAC,CAAC;gBAC/C,MAAM,CAAC,GAAG,CAAC,CAAC;YAChB,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACP,CAAC;CACJ;AArSD,4CAqSC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AlertManagerComponent = void 0;
|
|
4
|
+
const WinCCOAComponent_js_1 = require("../WinCCOAComponent.js");
|
|
5
|
+
class AlertManagerComponent extends WinCCOAComponent_js_1.WinCCOAComponent {
|
|
6
|
+
getName() {
|
|
7
|
+
return 'WCCOAlert';
|
|
8
|
+
}
|
|
9
|
+
getDescription() {
|
|
10
|
+
return 'Alert Manager';
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.AlertManagerComponent = AlertManagerComponent;
|
|
14
|
+
//# sourceMappingURL=AlertManagerComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AlertManagerComponent.js","sourceRoot":"","sources":["../../../../../src/types/components/implementations/AlertManagerComponent.ts"],"names":[],"mappings":";;;AAAA,gEAA0D;AAE1D,MAAa,qBAAsB,SAAQ,sCAAgB;IAChD,OAAO;QACV,OAAO,WAAW,CAAC;IACvB,CAAC;IACM,cAAc;QACjB,OAAO,eAAe,CAAC;IAC3B,CAAC;CACJ;AAPD,sDAOC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Android Mobile Component
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.AndroidComponent = void 0;
|
|
7
|
+
const WinCCOAComponent_js_1 = require("../WinCCOAComponent.js");
|
|
8
|
+
class AndroidComponent extends WinCCOAComponent_js_1.WinCCOAComponent {
|
|
9
|
+
getName() {
|
|
10
|
+
return 'WCCOAandroid';
|
|
11
|
+
}
|
|
12
|
+
getDescription() {
|
|
13
|
+
return 'Android Mobile Component';
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.AndroidComponent = AndroidComponent;
|
|
17
|
+
//# sourceMappingURL=AndroidComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AndroidComponent.js","sourceRoot":"","sources":["../../../../../src/types/components/implementations/AndroidComponent.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,gEAA0D;AAE1D,MAAa,gBAAiB,SAAQ,sCAAgB;IAC3C,OAAO;QACV,OAAO,cAAc,CAAC;IAC1B,CAAC;IAEM,cAAc;QACjB,OAAO,0BAA0B,CAAC;IACtC,CAAC;CAGJ;AAVD,4CAUC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ApiComponent = void 0;
|
|
4
|
+
const WinCCOAComponent_js_1 = require("../WinCCOAComponent.js");
|
|
5
|
+
class ApiComponent extends WinCCOAComponent_js_1.WinCCOAComponent {
|
|
6
|
+
getName() {
|
|
7
|
+
return 'WCCOApi';
|
|
8
|
+
}
|
|
9
|
+
getDescription() {
|
|
10
|
+
return 'API Manager';
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.ApiComponent = ApiComponent;
|
|
14
|
+
//# sourceMappingURL=ApiComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApiComponent.js","sourceRoot":"","sources":["../../../../../src/types/components/implementations/ApiComponent.ts"],"names":[],"mappings":";;;AAAA,gEAA0D;AAE1D,MAAa,YAAa,SAAQ,sCAAgB;IACvC,OAAO;QACV,OAAO,SAAS,CAAC;IACrB,CAAC;IAEM,cAAc;QACjB,OAAO,aAAa,CAAC;IACzB,CAAC;CAGJ;AAVD,oCAUC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AsciiManagerComponent = void 0;
|
|
4
|
+
const WinCCOAComponent_js_1 = require("../WinCCOAComponent.js");
|
|
5
|
+
class AsciiManagerComponent extends WinCCOAComponent_js_1.WinCCOAComponent {
|
|
6
|
+
getName() {
|
|
7
|
+
return 'WCCOAsciiMgr';
|
|
8
|
+
}
|
|
9
|
+
getDescription() {
|
|
10
|
+
return 'ASCII Manager';
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.AsciiManagerComponent = AsciiManagerComponent;
|
|
14
|
+
//# sourceMappingURL=AsciiManagerComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AsciiManagerComponent.js","sourceRoot":"","sources":["../../../../../src/types/components/implementations/AsciiManagerComponent.ts"],"names":[],"mappings":";;;AAAA,gEAA0D;AAE1D,MAAa,qBAAsB,SAAQ,sCAAgB;IAChD,OAAO;QACV,OAAO,cAAc,CAAC;IAC1B,CAAC;IACM,cAAc;QACjB,OAAO,eAAe,CAAC;IAC3B,CAAC;CACJ;AAPD,sDAOC"}
|