@winccoa-tools-pack/npm-winccoa-core 0.1.0-9ec3b86
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 +24 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/types/components/WinCCOAComponent.js +327 -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 +728 -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 +23 -0
- package/dist/cjs/types/index.js.map +1 -0
- package/dist/cjs/types/localization/OaLanguage.js +136 -0
- package/dist/cjs/types/localization/OaLanguage.js.map +1 -0
- package/dist/cjs/types/logs/WinCCOAErrorHandler.js +94 -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 +1015 -0
- package/dist/cjs/types/project/ProjEnvProject.js.map +1 -0
- package/dist/cjs/types/project/ProjEnvProjectConfig.js +327 -0
- package/dist/cjs/types/project/ProjEnvProjectConfig.js.map +1 -0
- package/dist/cjs/types/project/ProjEnvProjectRegistry.js +301 -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 +25 -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 +8 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/types/components/WinCCOAComponent.js +290 -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 +723 -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 +7 -0
- package/dist/esm/types/index.js.map +1 -0
- package/dist/esm/types/localization/OaLanguage.js +132 -0
- package/dist/esm/types/localization/OaLanguage.js.map +1 -0
- package/dist/esm/types/logs/WinCCOAErrorHandler.js +90 -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 +1008 -0
- package/dist/esm/types/project/ProjEnvProject.js.map +1 -0
- package/dist/esm/types/project/ProjEnvProjectConfig.js +287 -0
- package/dist/esm/types/project/ProjEnvProjectConfig.js.map +1 -0
- package/dist/esm/types/project/ProjEnvProjectRegistry.js +257 -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 +9 -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 +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/types/components/WinCCOAComponent.d.ts +138 -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 +168 -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 +7 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/localization/OaLanguage.d.ts +101 -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 +475 -0
- package/dist/types/project/ProjEnvProject.d.ts.map +1 -0
- package/dist/types/project/ProjEnvProjectConfig.d.ts +54 -0
- package/dist/types/project/ProjEnvProjectConfig.d.ts.map +1 -0
- package/dist/types/project/ProjEnvProjectRegistry.d.ts +61 -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 +9 -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 +73 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getProjectByProjectPath = getProjectByProjectPath;
|
|
4
|
+
exports.getRegisteredProjects = getRegisteredProjects;
|
|
5
|
+
exports.getRunningProjects = getRunningProjects;
|
|
6
|
+
exports.getRunnableProjects = getRunnableProjects;
|
|
7
|
+
exports.getCurrentProjects = getCurrentProjects;
|
|
8
|
+
const ProjEnvProject_1 = require("../types/project/ProjEnvProject");
|
|
9
|
+
const ProjEnvProjectRegistry_1 = require("../types/project/ProjEnvProjectRegistry");
|
|
10
|
+
/**
|
|
11
|
+
* Finds and returns the ProjEnvProject instance for a given file or folder path
|
|
12
|
+
* by checking all registered projects.
|
|
13
|
+
* @param selectedPath - The file or folder path to check
|
|
14
|
+
* @returns ProjEnvProject instance if found, undefined otherwise
|
|
15
|
+
*/
|
|
16
|
+
async function getProjectByProjectPath(selectedPath) {
|
|
17
|
+
return (await getRegisteredProjects()).find((project) => {
|
|
18
|
+
return project.isProjectFile(selectedPath);
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Return a list of all registered projects.
|
|
23
|
+
* Creates ProjEnvProject instances from the Windows registry entries.
|
|
24
|
+
*/
|
|
25
|
+
async function getRegisteredProjects() {
|
|
26
|
+
const registries = (0, ProjEnvProjectRegistry_1.getRegisteredProjects)();
|
|
27
|
+
const projects = [];
|
|
28
|
+
console.log(`Found ${registries.length} registered projects in the registry.`);
|
|
29
|
+
for (const registry of registries) {
|
|
30
|
+
// console.log(`Processing registry entry for project ID: ${registry.id}`);
|
|
31
|
+
// Skip registry entries with empty or invalid IDs
|
|
32
|
+
if (!registry.id || registry.id.trim().length === 0) {
|
|
33
|
+
console.warn(`Skipping registry entry with empty ID`);
|
|
34
|
+
continue;
|
|
35
|
+
}
|
|
36
|
+
try {
|
|
37
|
+
const project = new ProjEnvProject_1.ProjEnvProject();
|
|
38
|
+
project.initFromRegister(registry);
|
|
39
|
+
projects.push(project);
|
|
40
|
+
}
|
|
41
|
+
catch (error) {
|
|
42
|
+
// Skip projects that fail to initialize
|
|
43
|
+
console.warn(`Failed to initialize project ${registry.id}:`, error);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return projects;
|
|
47
|
+
}
|
|
48
|
+
/**Returns all running projects locate on the locale host
|
|
49
|
+
*/
|
|
50
|
+
async function getRunningProjects() {
|
|
51
|
+
return (await getRunnableProjects()).filter((project) => project.isRunning());
|
|
52
|
+
}
|
|
53
|
+
/**Returns all runnable projects locate on the locale host*/
|
|
54
|
+
async function getRunnableProjects() {
|
|
55
|
+
return (await getRegisteredProjects()).filter((project) => project.isRunnable());
|
|
56
|
+
}
|
|
57
|
+
/**Returns all current projects locate on the locale host.
|
|
58
|
+
* A current project is the one that is currently active in WinCC OA.
|
|
59
|
+
* Note: per WinCC OA, there can be only one current project at a time.
|
|
60
|
+
* However, this function returns an array because you can have multiple WinCC OA installations
|
|
61
|
+
*/
|
|
62
|
+
async function getCurrentProjects() {
|
|
63
|
+
return (await getRegisteredProjects()).filter((project) => project.isCurrentProject());
|
|
64
|
+
}
|
|
65
|
+
/** Export default object with all functions */
|
|
66
|
+
exports.default = {
|
|
67
|
+
getRegisteredProjects,
|
|
68
|
+
getRunningProjects,
|
|
69
|
+
getRunnableProjects,
|
|
70
|
+
getCurrentProjects,
|
|
71
|
+
getProjectByProjectPath,
|
|
72
|
+
};
|
|
73
|
+
//# sourceMappingURL=winccoa-project-environment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"winccoa-project-environment.js","sourceRoot":"","sources":["../../../src/utils/winccoa-project-environment.ts"],"names":[],"m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AAM,mBAAmB,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,SAAS,EAAE,CAAC,CAAC;AAClF,CAAC;AAED,4DAA4D;AACrD,KAAK,UAAU,mBAAmB;IACrC,OAAO,CAAC,MAAM,qBAAqB,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC;AACrF,CAAC;AAED;;;;GAIG;AACI,KAAK,UAAU,kBAAkB;IACpC,OAAO,CAAC,MAAM,qBAAqB,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAAC;AAC3F,CAAC;AAED,+CAA+C;AAC/C,kBAAe;IACX,qBAAqB;IACrB,kBAAkB;IAClB,mBAAmB;IACnB,kBAAkB;IAClB,uBAAuB;CAC1B,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* WinCC OA Version Information Utilities
|
|
4
|
+
* Handles version string parsing and comparison
|
|
5
|
+
*
|
|
6
|
+
* @author mPokornyETM
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.parseVersionString = parseVersionString;
|
|
10
|
+
/**
|
|
11
|
+
* Parses a version string to a comparable number
|
|
12
|
+
* Format: major.minor.patch (patch is optional)
|
|
13
|
+
* @param version - Version string like "3.19" or "3.19.1"
|
|
14
|
+
* @returns Numeric representation for comparison (e.g., "3.19" -> 30190, "3.19.1" -> 319001)
|
|
15
|
+
*/
|
|
16
|
+
function parseVersionString(version) {
|
|
17
|
+
const parts = version.split('.').map((part) => parseInt(part, 10) || 0);
|
|
18
|
+
const major = parts[0] || 0;
|
|
19
|
+
const minor = parts[1] || 0;
|
|
20
|
+
const patch = parts[2] || 0;
|
|
21
|
+
return major * 100000 + minor * 1000 + patch;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=winccoa-version-info.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"winccoa-version-info.js","sourceRoot":"","sources":["../../../src/utils/winccoa-version-info.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAQH,gDAMC;AAZD;;;;;GAKG;AACH,SAAgB,kBAAkB,CAAC,OAAe;IAC9C,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;IACxE,MAAM,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC5B,MAAM,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC5B,MAAM,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC5B,OAAO,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,IAAI,GAAG,KAAK,CAAC;AACjD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,uBAAuB;AACvB,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Platform-agnostic WinCC OA component base class
|
|
3
|
+
* Stripped of VS Code-specific APIs so it can live in the shared library.
|
|
4
|
+
*/
|
|
5
|
+
import * as path from 'path';
|
|
6
|
+
import * as fs from 'fs';
|
|
7
|
+
import { spawn } from 'child_process';
|
|
8
|
+
import { getWinCCOAInstallationPathByVersion } from '../../utils/winccoa-paths.js';
|
|
9
|
+
import { randomUUID } from 'crypto';
|
|
10
|
+
/*
|
|
11
|
+
class CommandHistoryEntry {
|
|
12
|
+
private command: string;
|
|
13
|
+
private args: string[];
|
|
14
|
+
private timestamp: Date;
|
|
15
|
+
public stdOut: string = '';
|
|
16
|
+
public stdErr: string = '';
|
|
17
|
+
|
|
18
|
+
constructor(command: string, args: string[]) {
|
|
19
|
+
this.command = command;
|
|
20
|
+
this.args = args;
|
|
21
|
+
this.timestamp = new Date();
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
*/
|
|
25
|
+
export class WinCCOAComponent {
|
|
26
|
+
constructor() {
|
|
27
|
+
// public commandHistory: CommandHistoryEntry[] = [];
|
|
28
|
+
/**
|
|
29
|
+
* Accumulated standard output from the last spawned process.
|
|
30
|
+
* Use this to inspect output produced by helper commands invoked
|
|
31
|
+
* by the component (e.g., version queries).
|
|
32
|
+
*/
|
|
33
|
+
this.stdOut = '';
|
|
34
|
+
/**
|
|
35
|
+
* Accumulated standard error output from the last spawned process.
|
|
36
|
+
*/
|
|
37
|
+
this.stdErr = '';
|
|
38
|
+
/** WinCC OA Version */
|
|
39
|
+
this._version = '';
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Returns the executable filename used by the component. Defaults to
|
|
43
|
+
* the value returned by `getName()` but may be overridden by
|
|
44
|
+
* platform-specific implementations.
|
|
45
|
+
*
|
|
46
|
+
* @returns executable filename (without path)
|
|
47
|
+
*/
|
|
48
|
+
getExecutableName() {
|
|
49
|
+
return this.getName();
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Sets the WinCC OA version to use for locating the component executable.
|
|
53
|
+
* This may affect the path returned by `getPath()`.
|
|
54
|
+
*
|
|
55
|
+
* @param version - WinCC OA version string (e.g., '3.20')
|
|
56
|
+
* @throws Error when version is empty
|
|
57
|
+
*/
|
|
58
|
+
setVersion(version) {
|
|
59
|
+
console.log(`[${new Date().toISOString()}] Setting WinCC OA version to ${version} for component ${this.getName()}`);
|
|
60
|
+
if (version === undefined || version === '') {
|
|
61
|
+
throw new Error('WinCC OA version must not be empty: ' + this.getName());
|
|
62
|
+
}
|
|
63
|
+
this._version = version;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Attempts to discover the full filesystem path to the component
|
|
67
|
+
* executable by scanning known WinCC OA installation directories.
|
|
68
|
+
*
|
|
69
|
+
* The search strategy:
|
|
70
|
+
* - If version is specified, search only in that version's installation
|
|
71
|
+
* - Otherwise, query all available WinCC OA versions (cached by utils)
|
|
72
|
+
* - For each version, resolve the installation root and check
|
|
73
|
+
* `bin/<executable>` and `bin/<executable>.exe` for existence.
|
|
74
|
+
*
|
|
75
|
+
* Returns the absolute path to the executable when found or `null`
|
|
76
|
+
* if not present on the host system.
|
|
77
|
+
*
|
|
78
|
+
* @param version - Optional WinCC OA version to search in (e.g., '3.20')
|
|
79
|
+
* @returns absolute path to executable or `null`
|
|
80
|
+
* @throws Error when specified version is not found on system
|
|
81
|
+
*/
|
|
82
|
+
getPath(version) {
|
|
83
|
+
const exe = this.getExecutableName();
|
|
84
|
+
const versionToUse = version ? version : this._version;
|
|
85
|
+
if (!versionToUse) {
|
|
86
|
+
throw new Error('WinCC OA version must be specified to locate component ' + this.getName());
|
|
87
|
+
}
|
|
88
|
+
const base = getWinCCOAInstallationPathByVersion(versionToUse);
|
|
89
|
+
if (!base) {
|
|
90
|
+
throw new Error('WinCC OA version ' +
|
|
91
|
+
versionToUse +
|
|
92
|
+
' not found on system to locate component ' +
|
|
93
|
+
this.getName());
|
|
94
|
+
}
|
|
95
|
+
const candidate = path.join(base, 'bin', exe);
|
|
96
|
+
if (fs.existsSync(candidate)) {
|
|
97
|
+
return candidate;
|
|
98
|
+
}
|
|
99
|
+
// Windows can have .exe suffix
|
|
100
|
+
if (fs.existsSync(candidate + '.exe')) {
|
|
101
|
+
return candidate + '.exe';
|
|
102
|
+
}
|
|
103
|
+
return null;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Returns `true` when the component's executable exists on disk and is
|
|
107
|
+
* discoverable by `getPath()`.
|
|
108
|
+
*/
|
|
109
|
+
exists() {
|
|
110
|
+
const p = this.getPath();
|
|
111
|
+
return !!p && fs.existsSync(p);
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Executes the component with the `-version` flag and extracts the version string
|
|
115
|
+
* from the output. Uses a 5-second timeout to prevent hanging.
|
|
116
|
+
*
|
|
117
|
+
* @returns parsed version string (e.g., '3.20.1') or `null` when no version could be found
|
|
118
|
+
*/
|
|
119
|
+
async getFullVersion() {
|
|
120
|
+
const lines = await this.execAndCollectLines(this.getPath() || '', ['-version'], 5000);
|
|
121
|
+
const parsed = this.parseVersionOutput(lines.join('\n'));
|
|
122
|
+
return parsed || null;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Parses a version-like substring from arbitrary command output.
|
|
126
|
+
* Default implementation finds the first occurrence of `N.N` or
|
|
127
|
+
* `N.N.N` using a simple regex. Override in concrete components if
|
|
128
|
+
* they produce more complex version output.
|
|
129
|
+
*
|
|
130
|
+
* @param output - Raw output to inspect
|
|
131
|
+
* @returns matched version string or `null`
|
|
132
|
+
*/
|
|
133
|
+
parseVersionOutput(output) {
|
|
134
|
+
const m = output.match(/(\d+\.\d+(?:\.\d+)?)/);
|
|
135
|
+
return m ? m[1] : null;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Starts the component process with the provided arguments.
|
|
139
|
+
* Captures stdout/stderr into `stdOut`/`stdErr` and resolves with the
|
|
140
|
+
* exit code when the process closes. Rejects on process start errors.
|
|
141
|
+
*
|
|
142
|
+
* **Detached Process Behavior:**
|
|
143
|
+
* When `detached: true`, the process runs independently of the parent:
|
|
144
|
+
* - Sets `stdio: 'ignore'` to prevent blocking on I/O streams
|
|
145
|
+
* - Calls `unref()` to allow parent to exit independently
|
|
146
|
+
* - Resolves immediately with exit code 0
|
|
147
|
+
* - stdout/stderr are NOT captured for detached processes
|
|
148
|
+
*
|
|
149
|
+
* **Timeout Behavior:**
|
|
150
|
+
* When timeout is specified, the process is killed if it doesn't complete
|
|
151
|
+
* within the given time. The promise rejects with a timeout error.
|
|
152
|
+
*
|
|
153
|
+
* **Version Selection:**
|
|
154
|
+
* If a specific version is provided, the component executable from that
|
|
155
|
+
* WinCC OA version will be used.
|
|
156
|
+
*
|
|
157
|
+
* @param args - Array of arguments to pass to the executable
|
|
158
|
+
* @param options.detached - Whether to spawn the process detached (default: false)
|
|
159
|
+
* @param options.timeout - Timeout in milliseconds; kills process if exceeded (optional)
|
|
160
|
+
* @param options.version - Specific WinCC OA version to use (optional)
|
|
161
|
+
* @param options.waitForLog - Wait for specific log output (TODO: not yet implemented)
|
|
162
|
+
* @returns Promise resolving with process exit code (0 for detached processes)
|
|
163
|
+
* @throws Error if executable not found or timeout exceeded
|
|
164
|
+
*/
|
|
165
|
+
async start(args = [], options = {}) {
|
|
166
|
+
const p = this.getPath();
|
|
167
|
+
// const histEntry = new CommandHistoryEntry(this.getName(), args);
|
|
168
|
+
this.stdOut = '';
|
|
169
|
+
this.stdErr = '';
|
|
170
|
+
const cmdId = randomUUID();
|
|
171
|
+
console.log(`[${new Date().toISOString()}]`, cmdId, 'Starting component', this.getName(), 'with args', args, 'from', p, 'options', options);
|
|
172
|
+
if (!p)
|
|
173
|
+
throw new Error('Executable ' + this.getName() + ' not found');
|
|
174
|
+
return new Promise((resolve, reject) => {
|
|
175
|
+
const spawnOptions = { shell: false };
|
|
176
|
+
let timeoutHandle = null;
|
|
177
|
+
if (options.detached) {
|
|
178
|
+
// For detached processes, ignore stdio to prevent parent from waiting
|
|
179
|
+
spawnOptions.detached = true;
|
|
180
|
+
spawnOptions.stdio = 'ignore';
|
|
181
|
+
}
|
|
182
|
+
const proc = spawn(p, args, spawnOptions);
|
|
183
|
+
if (options.detached) {
|
|
184
|
+
// Unref to allow parent to exit independently
|
|
185
|
+
proc.unref();
|
|
186
|
+
// Resolve immediately for detached processes
|
|
187
|
+
resolve(0);
|
|
188
|
+
}
|
|
189
|
+
else {
|
|
190
|
+
// Set up timeout if specified
|
|
191
|
+
if (options.timeout && options.timeout > 0) {
|
|
192
|
+
timeoutHandle = setTimeout(() => {
|
|
193
|
+
proc.kill();
|
|
194
|
+
reject(new Error(`Process timeout after ${options.timeout}ms`));
|
|
195
|
+
}, options.timeout);
|
|
196
|
+
}
|
|
197
|
+
// Only capture output for non-detached processes
|
|
198
|
+
proc.stdout?.on('data', (d) => {
|
|
199
|
+
const str = d.toString();
|
|
200
|
+
this.stdOut += str;
|
|
201
|
+
// console.log(
|
|
202
|
+
// `[${new Date().toISOString()}]`,
|
|
203
|
+
// cmdId,
|
|
204
|
+
// 'STDOUT:',
|
|
205
|
+
// str,
|
|
206
|
+
// ); /* histEntry.stdOut += str; */
|
|
207
|
+
});
|
|
208
|
+
proc.stderr?.on('data', (d) => {
|
|
209
|
+
const str = d.toString();
|
|
210
|
+
this.stdErr += str;
|
|
211
|
+
// console.log(
|
|
212
|
+
// `[${new Date().toISOString()}]`,
|
|
213
|
+
// cmdId,
|
|
214
|
+
// 'STDERR:',
|
|
215
|
+
// str,
|
|
216
|
+
// ); /* histEntry.stdErr += str; */
|
|
217
|
+
});
|
|
218
|
+
proc.on('close', (code) => {
|
|
219
|
+
if (timeoutHandle)
|
|
220
|
+
clearTimeout(timeoutHandle);
|
|
221
|
+
if (options.checkStdout) {
|
|
222
|
+
options.checkStdout(this.stdOut);
|
|
223
|
+
console.log(`[${new Date().toISOString()}]`, cmdId, 'stderr: ' + this.stdErr);
|
|
224
|
+
}
|
|
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
|
+
console.log(`[${new Date().toISOString()}] Executing command for component ${this.getName()}:`, cmdPath, args, timeout ? `(timeout: ${timeout}ms)` : '');
|
|
254
|
+
return new Promise((resolve, reject) => {
|
|
255
|
+
const proc = spawn(cmdPath, args, { shell: false });
|
|
256
|
+
let stdout = '';
|
|
257
|
+
let timeoutHandle = null;
|
|
258
|
+
if (timeout && timeout > 0) {
|
|
259
|
+
timeoutHandle = setTimeout(() => {
|
|
260
|
+
proc.kill();
|
|
261
|
+
reject(new Error(`execAndCollectLines timeout after ${timeout}ms`));
|
|
262
|
+
}, timeout);
|
|
263
|
+
}
|
|
264
|
+
proc.stdout?.on('data', (d) => {
|
|
265
|
+
const s = d.toString();
|
|
266
|
+
stdout += s;
|
|
267
|
+
this.stdOut += s;
|
|
268
|
+
});
|
|
269
|
+
proc.stderr?.on('data', (d) => {
|
|
270
|
+
const s = d.toString();
|
|
271
|
+
this.stdErr += s;
|
|
272
|
+
});
|
|
273
|
+
proc.on('close', (_code) => {
|
|
274
|
+
if (timeoutHandle)
|
|
275
|
+
clearTimeout(timeoutHandle);
|
|
276
|
+
const lines = stdout
|
|
277
|
+
.split(/\r?\n/)
|
|
278
|
+
.map((l) => l.trim())
|
|
279
|
+
.filter((l) => l.length > 0 && l !== ';');
|
|
280
|
+
resolve(lines);
|
|
281
|
+
});
|
|
282
|
+
proc.on('error', (err) => {
|
|
283
|
+
if (timeoutHandle)
|
|
284
|
+
clearTimeout(timeoutHandle);
|
|
285
|
+
reject(err);
|
|
286
|
+
});
|
|
287
|
+
});
|
|
288
|
+
}
|
|
289
|
+
}
|
|
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,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,mCAAmC,EAAE,MAAM,8BAA8B,CAAC;AACnF,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAEpC;;;;;;;;;;;;;;EAcE;AAEF,MAAM,OAAgB,gBAAgB;IAAtC;QACI,qDAAqD;QACrD;;;;WAIG;QACI,WAAM,GAAW,EAAE,CAAC;QAE3B;;WAEG;QACI,WAAM,GAAW,EAAE,CAAC;QAE3B,uBAAuB;QACf,aAAQ,GAAW,EAAE,CAAC;IAuUlC,CAAC;IAxTG;;;;;;OAMG;IACI,iBAAiB;QACpB,OAAO,IAAI,CAAC,OAAO,EAAE,CAAC;IAC1B,CAAC;IAED;;;;;;OAMG;IACI,UAAU,CAAC,OAAe;QAC7B,OAAO,CAAC,GAAG,CACP,IAAI,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,iCAAiC,OAAO,kBAAkB,IAAI,CAAC,OAAO,EAAE,EAAE,CACzG,CAAC;QAEF,IAAI,OAAO,KAAK,SAAS,IAAI,OAAO,KAAK,EAAE,EAAE,CAAC;YAC1C,MAAM,IAAI,KAAK,CAAC,sCAAsC,GAAG,IAA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BAC9C,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"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { WinCCOAComponent } from '../WinCCOAComponent.js';
|
|
2
|
+
export class AlertManagerComponent extends WinCCOAComponent {
|
|
3
|
+
getName() {
|
|
4
|
+
return 'WCCOAlert';
|
|
5
|
+
}
|
|
6
|
+
getDescription() {
|
|
7
|
+
return 'Alert Manager';
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=AlertManagerComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AlertManagerComponent.js","sourceRoot":"","sources":["../../../../../src/types/components/implementations/AlertManagerComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,MAAM,OAAO,qBAAsB,SAAQ,gBAAgB;IAChD,OAAO;QACV,OAAO,WAAW,CAAC;IACvB,CAAC;IACM,cAAc;QACjB,OAAO,eAAe,CAAC;IAC3B,CAAC;CACJ"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Android Mobile Component
|
|
3
|
+
*/
|
|
4
|
+
import { WinCCOAComponent } from '../WinCCOAComponent.js';
|
|
5
|
+
export class AndroidComponent extends WinCCOAComponent {
|
|
6
|
+
getName() {
|
|
7
|
+
return 'WCCOAandroid';
|
|
8
|
+
}
|
|
9
|
+
getDescription() {
|
|
10
|
+
return 'Android Mobile Component';
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
//# 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,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,MAAM,OAAO,gBAAiB,SAAQ,gBAAgB;IAC3C,OAAO;QACV,OAAO,cAAc,CAAC;IAC1B,CAAC;IAEM,cAAc;QACjB,OAAO,0BAA0B,CAAC;IACtC,CAAC;CAGJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApiComponent.js","sourceRoot":"","sources":["../../../../../src/types/components/implementations/ApiComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,MAAM,OAAO,YAAa,SAAQ,gBAAgB;IACvC,OAAO;QACV,OAAO,SAAS,CAAC;IACrB,CAAC;IAEM,cAAc;QACjB,OAAO,aAAa,CAAC;IACzB,CAAC;CAGJ"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { WinCCOAComponent } from '../WinCCOAComponent.js';
|
|
2
|
+
export class AsciiManagerComponent extends WinCCOAComponent {
|
|
3
|
+
getName() {
|
|
4
|
+
return 'WCCOAsciiMgr';
|
|
5
|
+
}
|
|
6
|
+
getDescription() {
|
|
7
|
+
return 'ASCII Manager';
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=AsciiManagerComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AsciiManagerComponent.js","sourceRoot":"","sources":["../../../../../src/types/components/implementations/AsciiManagerComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,MAAM,OAAO,qBAAsB,SAAQ,gBAAgB;IAChD,OAAO;QACV,OAAO,cAAc,CAAC;IAC1B,CAAC;IACM,cAAc;QACjB,OAAO,eAAe,CAAC;IAC3B,CAAC;CACJ"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration Component
|
|
3
|
+
*/
|
|
4
|
+
import { WinCCOAComponent } from '../WinCCOAComponent.js';
|
|
5
|
+
export class ConfComponent extends WinCCOAComponent {
|
|
6
|
+
getName() {
|
|
7
|
+
return 'WCCOAconf';
|
|
8
|
+
}
|
|
9
|
+
getDescription() {
|
|
10
|
+
return 'Configuration Component';
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=ConfComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConfComponent.js","sourceRoot":"","sources":["../../../../../src/types/components/implementations/ConfComponent.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,MAAM,OAAO,aAAc,SAAQ,gBAAgB;IACxC,OAAO;QACV,OAAO,WAAW,CAAC;IACvB,CAAC;IAEM,cAAc;QACjB,OAAO,yBAAyB,CAAC;IACrC,CAAC;CAGJ"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { WinCCOAComponent } from '../WinCCOAComponent.js';
|
|
2
|
+
export class CtrlComponent extends WinCCOAComponent {
|
|
3
|
+
getName() {
|
|
4
|
+
return 'WCCOActrl';
|
|
5
|
+
}
|
|
6
|
+
getDescription() {
|
|
7
|
+
return 'Control Manager';
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Starts the Control Manager with a specific script
|
|
11
|
+
*/
|
|
12
|
+
async startWithScript(scriptName, additionalArgs = [], outputCallback) {
|
|
13
|
+
const args = ['-f', scriptName, ...additionalArgs];
|
|
14
|
+
// Allow tests to stub execAndCollectLines on the instance to simulate execution
|
|
15
|
+
const hasExecStub = Object.prototype.hasOwnProperty.call(this, 'execAndCollectLines') &&
|
|
16
|
+
typeof this.execAndCollectLines === 'function';
|
|
17
|
+
const exePath = this.getPath();
|
|
18
|
+
if (!exePath && hasExecStub) {
|
|
19
|
+
try {
|
|
20
|
+
await this.execAndCollectLines('', args, outputCallback);
|
|
21
|
+
}
|
|
22
|
+
catch {
|
|
23
|
+
// ignore stub errors in this simulation path
|
|
24
|
+
}
|
|
25
|
+
return 0;
|
|
26
|
+
}
|
|
27
|
+
return this.start(args);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=CtrlComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CtrlComponent.js","sourceRoot":"","sources":["../../../../../src/types/components/implementations/CtrlComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,MAAM,OAAO,aAAc,SAAQ,gBAAgB;IACxC,OAAO;QACV,OAAO,WAAW,CAAC;IACvB,CAAC;IAEM,cAAc;QACjB,OAAO,iBAAiB,CAAC;IAC7B,CAAC;IAED;;OAEG;IACI,KAAK,CAAC,eAAe,CACxB,UAAkB,EAClB,iBAA2B,EAAE,EAC7B,cAAsC;QAEtC,MAAM,IAAI,GAAG,CAAC,IAAI,EAAE,UAAU,EAAE,GAAG,cAAc,CAAC,CAAC;QAEnD,gFAAgF;QAChF,MAAM,WAAW,GACb,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,EAAE,qBAAqB,CAAC;YACjE,OAAQ,IAAY,CAAC,mBAAmB,KAAK,UAAU,CAAC;QAC5D,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;QAC/B,IAAI,CAAC,OAAO,IAAI,WAAW,EAAE,CAAC;YAC1B,IAAI,CAAC;gBACD,MAAO,IAAY,CAAC,mBAAmB,CAAC,EAAE,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC;YACtE,CAAC;YAAC,MAAM,CAAC;gBACL,6CAA6C;YACjD,CAAC;YACD,OAAO,CAAC,CAAC;QACb,CAAC;QAED,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC5B,CAAC;CACJ"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DNP3 Driver Component
|
|
3
|
+
*/
|
|
4
|
+
import { WinCCOAComponent } from '../WinCCOAComponent.js';
|
|
5
|
+
export class DNP3Component extends WinCCOAComponent {
|
|
6
|
+
getName() {
|
|
7
|
+
return 'WCCOAdnp3';
|
|
8
|
+
}
|
|
9
|
+
getDescription() {
|
|
10
|
+
return 'DNP3 Driver';
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=DNP3Component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DNP3Component.js","sourceRoot":"","sources":["../../../../../src/types/components/implementations/DNP3Component.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,MAAM,OAAO,aAAc,SAAQ,gBAAgB;IACxC,OAAO;QACV,OAAO,WAAW,CAAC;IACvB,CAAC;IAEM,cAAc;QACjB,OAAO,aAAa,CAAC;IACzB,CAAC;CAGJ"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Database Manager Component
|
|
3
|
+
*/
|
|
4
|
+
import { WinCCOAComponent } from '../WinCCOAComponent.js';
|
|
5
|
+
export class DataComponent extends WinCCOAComponent {
|
|
6
|
+
getName() {
|
|
7
|
+
return 'WCCILdata';
|
|
8
|
+
}
|
|
9
|
+
getDescription() {
|
|
10
|
+
return 'Database Manager';
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=DataComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataComponent.js","sourceRoot":"","sources":["../../../../../src/types/components/implementations/DataComponent.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,MAAM,OAAO,aAAc,SAAQ,gBAAgB;IACxC,OAAO;QACV,OAAO,WAAW,CAAC;IACvB,CAAC;IAEM,cAAc;QACjB,OAAO,kBAAkB,CAAC;IAC9B,CAAC;CAGJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DbManagerComponent.js","sourceRoot":"","sources":["../../../../../src/types/components/implementations/DbManagerComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,MAAM,OAAO,kBAAmB,SAAQ,gBAAgB;IAC7C,OAAO;QACV,OAAO,SAAS,CAAC;IACrB,CAAC;IACM,cAAc;QACjB,OAAO,YAAY,CAAC;IACxB,CAAC;CACJ"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { WinCCOAComponent } from '../WinCCOAComponent.js';
|
|
2
|
+
export class DistComponent extends WinCCOAComponent {
|
|
3
|
+
getName() {
|
|
4
|
+
return 'WCCOADist';
|
|
5
|
+
}
|
|
6
|
+
getDescription() {
|
|
7
|
+
return 'Distribution Manager';
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=DistComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DistComponent.js","sourceRoot":"","sources":["../../../../../src/types/components/implementations/DistComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,MAAM,OAAO,aAAc,SAAQ,gBAAgB;IACxC,OAAO;QACV,OAAO,WAAW,CAAC;IACvB,CAAC;IACM,cAAc;QACjB,OAAO,sBAAsB,CAAC;IAClC,CAAC;CACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DriverComponent.js","sourceRoot":"","sources":["../../../../../src/types/components/implementations/DriverComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,MAAM,OAAO,eAAgB,SAAQ,gBAAgB;IAC1C,OAAO;QACV,OAAO,UAAU,CAAC;IACtB,CAAC;IACM,cAAc;QACjB,OAAO,kBAAkB,CAAC;IAC9B,CAAC;CACJ"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Event Manager Component
|
|
3
|
+
*/
|
|
4
|
+
import { WinCCOAComponent } from '../WinCCOAComponent.js';
|
|
5
|
+
export class EventComponent extends WinCCOAComponent {
|
|
6
|
+
getName() {
|
|
7
|
+
return 'WCCILevent';
|
|
8
|
+
}
|
|
9
|
+
getDescription() {
|
|
10
|
+
return 'Event Manager';
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=EventComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EventComponent.js","sourceRoot":"","sources":["../../../../../src/types/components/implementations/EventComponent.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,MAAM,OAAO,cAAe,SAAQ,gBAAgB;IACzC,OAAO;QACV,OAAO,YAAY,CAAC;IACxB,CAAC;IAEM,cAAc;QACjB,OAAO,eAAe,CAAC;IAC3B,CAAC;CAGJ"}
|