polyv-live-cli 1.1.4 → 1.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (329) hide show
  1. package/dist/commands/account.commands.d.ts +3 -0
  2. package/dist/commands/account.commands.d.ts.map +1 -0
  3. package/dist/commands/account.commands.js +386 -0
  4. package/dist/commands/account.commands.js.map +1 -0
  5. package/dist/commands/channel.commands.d.ts.map +1 -1
  6. package/dist/commands/channel.commands.js +84 -60
  7. package/dist/commands/channel.commands.js.map +1 -1
  8. package/dist/commands/index.d.ts +3 -0
  9. package/dist/commands/index.d.ts.map +1 -1
  10. package/dist/commands/index.js +7 -1
  11. package/dist/commands/index.js.map +1 -1
  12. package/dist/commands/monitor.commands.d.ts +12 -0
  13. package/dist/commands/monitor.commands.d.ts.map +1 -0
  14. package/dist/commands/monitor.commands.js +75 -0
  15. package/dist/commands/monitor.commands.js.map +1 -0
  16. package/dist/commands/stream.commands.d.ts.map +1 -1
  17. package/dist/commands/stream.commands.js +141 -63
  18. package/dist/commands/stream.commands.js.map +1 -1
  19. package/dist/commands/use.commands.d.ts +9 -0
  20. package/dist/commands/use.commands.d.ts.map +1 -0
  21. package/dist/commands/use.commands.js +66 -0
  22. package/dist/commands/use.commands.js.map +1 -0
  23. package/dist/components/alert.panel.d.ts +98 -0
  24. package/dist/components/alert.panel.d.ts.map +1 -0
  25. package/dist/components/alert.panel.js +1001 -0
  26. package/dist/components/alert.panel.js.map +1 -0
  27. package/dist/components/base.component.d.ts +61 -0
  28. package/dist/components/base.component.d.ts.map +1 -0
  29. package/dist/components/base.component.js +346 -0
  30. package/dist/components/base.component.js.map +1 -0
  31. package/dist/components/batch-operations.dialog.d.ts +58 -0
  32. package/dist/components/batch-operations.dialog.d.ts.map +1 -0
  33. package/dist/components/batch-operations.dialog.js +340 -0
  34. package/dist/components/batch-operations.dialog.js.map +1 -0
  35. package/dist/components/channel-details.popup.d.ts +55 -0
  36. package/dist/components/channel-details.popup.d.ts.map +1 -0
  37. package/dist/components/channel-details.popup.js +416 -0
  38. package/dist/components/channel-details.popup.js.map +1 -0
  39. package/dist/components/channel-status.panel.d.ts +129 -0
  40. package/dist/components/channel-status.panel.d.ts.map +1 -0
  41. package/dist/components/channel-status.panel.js +858 -0
  42. package/dist/components/channel-status.panel.js.map +1 -0
  43. package/dist/components/component-registry.d.ts +36 -0
  44. package/dist/components/component-registry.d.ts.map +1 -0
  45. package/dist/components/component-registry.js +119 -0
  46. package/dist/components/component-registry.js.map +1 -0
  47. package/dist/components/context-menu-factory.d.ts +13 -0
  48. package/dist/components/context-menu-factory.d.ts.map +1 -0
  49. package/dist/components/context-menu-factory.js +341 -0
  50. package/dist/components/context-menu-factory.js.map +1 -0
  51. package/dist/components/context-menu.d.ts +54 -0
  52. package/dist/components/context-menu.d.ts.map +1 -0
  53. package/dist/components/context-menu.js +235 -0
  54. package/dist/components/context-menu.js.map +1 -0
  55. package/dist/components/grid-manager.d.ts +52 -0
  56. package/dist/components/grid-manager.d.ts.map +1 -0
  57. package/dist/components/grid-manager.js +404 -0
  58. package/dist/components/grid-manager.js.map +1 -0
  59. package/dist/components/help-panel.d.ts +34 -0
  60. package/dist/components/help-panel.d.ts.map +1 -0
  61. package/dist/components/help-panel.js +249 -0
  62. package/dist/components/help-panel.js.map +1 -0
  63. package/dist/components/index.d.ts +21 -0
  64. package/dist/components/index.d.ts.map +1 -0
  65. package/dist/components/index.js +43 -0
  66. package/dist/components/index.js.map +1 -0
  67. package/dist/components/interaction-manager.d.ts +47 -0
  68. package/dist/components/interaction-manager.d.ts.map +1 -0
  69. package/dist/components/interaction-manager.js +597 -0
  70. package/dist/components/interaction-manager.js.map +1 -0
  71. package/dist/components/layout-manager.d.ts +76 -0
  72. package/dist/components/layout-manager.d.ts.map +1 -0
  73. package/dist/components/layout-manager.js +538 -0
  74. package/dist/components/layout-manager.js.map +1 -0
  75. package/dist/components/monitoring-dashboard.d.ts +85 -0
  76. package/dist/components/monitoring-dashboard.d.ts.map +1 -0
  77. package/dist/components/monitoring-dashboard.js +908 -0
  78. package/dist/components/monitoring-dashboard.js.map +1 -0
  79. package/dist/components/search-panel.d.ts +80 -0
  80. package/dist/components/search-panel.d.ts.map +1 -0
  81. package/dist/components/search-panel.js +585 -0
  82. package/dist/components/search-panel.js.map +1 -0
  83. package/dist/components/status-bar.d.ts +77 -0
  84. package/dist/components/status-bar.d.ts.map +1 -0
  85. package/dist/components/status-bar.js +482 -0
  86. package/dist/components/status-bar.js.map +1 -0
  87. package/dist/components/status.component.d.ts +16 -0
  88. package/dist/components/status.component.d.ts.map +1 -0
  89. package/dist/components/status.component.js +79 -0
  90. package/dist/components/status.component.js.map +1 -0
  91. package/dist/components/stream-metrics.panel.d.ts +86 -0
  92. package/dist/components/stream-metrics.panel.d.ts.map +1 -0
  93. package/dist/components/stream-metrics.panel.js +395 -0
  94. package/dist/components/stream-metrics.panel.js.map +1 -0
  95. package/dist/components/system-resource.panel.d.ts +78 -0
  96. package/dist/components/system-resource.panel.d.ts.map +1 -0
  97. package/dist/components/system-resource.panel.js +642 -0
  98. package/dist/components/system-resource.panel.js.map +1 -0
  99. package/dist/components/tooltip.d.ts +35 -0
  100. package/dist/components/tooltip.d.ts.map +1 -0
  101. package/dist/components/tooltip.js +156 -0
  102. package/dist/components/tooltip.js.map +1 -0
  103. package/dist/config/account-config.d.ts +27 -0
  104. package/dist/config/account-config.d.ts.map +1 -0
  105. package/dist/config/account-config.js +358 -0
  106. package/dist/config/account-config.js.map +1 -0
  107. package/dist/config/account-crypto.d.ts +17 -0
  108. package/dist/config/account-crypto.d.ts.map +1 -0
  109. package/dist/config/account-crypto.js +129 -0
  110. package/dist/config/account-crypto.js.map +1 -0
  111. package/dist/config/account-encryption.d.ts +35 -0
  112. package/dist/config/account-encryption.d.ts.map +1 -0
  113. package/dist/config/account-encryption.js +207 -0
  114. package/dist/config/account-encryption.js.map +1 -0
  115. package/dist/config/auth-adapter.d.ts +23 -0
  116. package/dist/config/auth-adapter.d.ts.map +1 -0
  117. package/dist/config/auth-adapter.js +49 -0
  118. package/dist/config/auth-adapter.js.map +1 -0
  119. package/dist/config/auth-provider.d.ts +27 -0
  120. package/dist/config/auth-provider.d.ts.map +1 -0
  121. package/dist/config/auth-provider.js +54 -0
  122. package/dist/config/auth-provider.js.map +1 -0
  123. package/dist/config/auth-source-manager.d.ts +61 -0
  124. package/dist/config/auth-source-manager.d.ts.map +1 -0
  125. package/dist/config/auth-source-manager.js +402 -0
  126. package/dist/config/auth-source-manager.js.map +1 -0
  127. package/dist/config/config-io.d.ts +63 -0
  128. package/dist/config/config-io.d.ts.map +1 -0
  129. package/dist/config/config-io.js +352 -0
  130. package/dist/config/config-io.js.map +1 -0
  131. package/dist/config/config-manager.d.ts +51 -0
  132. package/dist/config/config-manager.d.ts.map +1 -0
  133. package/dist/config/config-manager.js +404 -0
  134. package/dist/config/config-manager.js.map +1 -0
  135. package/dist/config/config-recovery-manager.d.ts +67 -0
  136. package/dist/config/config-recovery-manager.d.ts.map +1 -0
  137. package/dist/config/config-recovery-manager.js +593 -0
  138. package/dist/config/config-recovery-manager.js.map +1 -0
  139. package/dist/config/config-validator.d.ts +27 -0
  140. package/dist/config/config-validator.d.ts.map +1 -0
  141. package/dist/config/config-validator.js +421 -0
  142. package/dist/config/config-validator.js.map +1 -0
  143. package/dist/config/config-version-manager.d.ts +44 -0
  144. package/dist/config/config-version-manager.d.ts.map +1 -0
  145. package/dist/config/config-version-manager.js +319 -0
  146. package/dist/config/config-version-manager.js.map +1 -0
  147. package/dist/config/custom-theme-builder.d.ts +88 -0
  148. package/dist/config/custom-theme-builder.d.ts.map +1 -0
  149. package/dist/config/custom-theme-builder.js +458 -0
  150. package/dist/config/custom-theme-builder.js.map +1 -0
  151. package/dist/config/file-permission-manager.d.ts +41 -0
  152. package/dist/config/file-permission-manager.d.ts.map +1 -0
  153. package/dist/config/file-permission-manager.js +290 -0
  154. package/dist/config/file-permission-manager.js.map +1 -0
  155. package/dist/config/layout-manager.d.ts +60 -0
  156. package/dist/config/layout-manager.d.ts.map +1 -0
  157. package/dist/config/layout-manager.js +596 -0
  158. package/dist/config/layout-manager.js.map +1 -0
  159. package/dist/config/monitoring.d.ts +27 -0
  160. package/dist/config/monitoring.d.ts.map +1 -0
  161. package/dist/config/monitoring.js +276 -0
  162. package/dist/config/monitoring.js.map +1 -0
  163. package/dist/config/secure-account-manager.d.ts +54 -0
  164. package/dist/config/secure-account-manager.d.ts.map +1 -0
  165. package/dist/config/secure-account-manager.js +438 -0
  166. package/dist/config/secure-account-manager.js.map +1 -0
  167. package/dist/config/session-state.d.ts +37 -0
  168. package/dist/config/session-state.d.ts.map +1 -0
  169. package/dist/config/session-state.js +207 -0
  170. package/dist/config/session-state.js.map +1 -0
  171. package/dist/config/session-storage.d.ts +21 -0
  172. package/dist/config/session-storage.d.ts.map +1 -0
  173. package/dist/config/session-storage.js +235 -0
  174. package/dist/config/session-storage.js.map +1 -0
  175. package/dist/config/theme-manager.d.ts +53 -0
  176. package/dist/config/theme-manager.d.ts.map +1 -0
  177. package/dist/config/theme-manager.js +491 -0
  178. package/dist/config/theme-manager.js.map +1 -0
  179. package/dist/handlers/monitor.handler.d.ts +28 -0
  180. package/dist/handlers/monitor.handler.d.ts.map +1 -0
  181. package/dist/handlers/monitor.handler.js +457 -0
  182. package/dist/handlers/monitor.handler.js.map +1 -0
  183. package/dist/handlers/stream.handler.d.ts.map +1 -1
  184. package/dist/handlers/stream.handler.js +6 -0
  185. package/dist/handlers/stream.handler.js.map +1 -1
  186. package/dist/handlers/use.handler.d.ts +13 -0
  187. package/dist/handlers/use.handler.d.ts.map +1 -0
  188. package/dist/handlers/use.handler.js +118 -0
  189. package/dist/handlers/use.handler.js.map +1 -0
  190. package/dist/index.d.ts +2 -1
  191. package/dist/index.d.ts.map +1 -1
  192. package/dist/index.js +24 -12
  193. package/dist/index.js.map +1 -1
  194. package/dist/performance/adaptive-polling.d.ts +69 -0
  195. package/dist/performance/adaptive-polling.d.ts.map +1 -0
  196. package/dist/performance/adaptive-polling.js +313 -0
  197. package/dist/performance/adaptive-polling.js.map +1 -0
  198. package/dist/performance/api-analytics.d.ts +137 -0
  199. package/dist/performance/api-analytics.d.ts.map +1 -0
  200. package/dist/performance/api-analytics.js +351 -0
  201. package/dist/performance/api-analytics.js.map +1 -0
  202. package/dist/performance/api-optimizer.d.ts +66 -0
  203. package/dist/performance/api-optimizer.d.ts.map +1 -0
  204. package/dist/performance/api-optimizer.js +368 -0
  205. package/dist/performance/api-optimizer.js.map +1 -0
  206. package/dist/performance/batch-request-manager.d.ts +90 -0
  207. package/dist/performance/batch-request-manager.d.ts.map +1 -0
  208. package/dist/performance/batch-request-manager.js +355 -0
  209. package/dist/performance/batch-request-manager.js.map +1 -0
  210. package/dist/performance/change-detector.d.ts +75 -0
  211. package/dist/performance/change-detector.d.ts.map +1 -0
  212. package/dist/performance/change-detector.js +421 -0
  213. package/dist/performance/change-detector.js.map +1 -0
  214. package/dist/performance/connection-pool-manager.d.ts +99 -0
  215. package/dist/performance/connection-pool-manager.d.ts.map +1 -0
  216. package/dist/performance/connection-pool-manager.js +474 -0
  217. package/dist/performance/connection-pool-manager.js.map +1 -0
  218. package/dist/performance/error-recovery-manager.d.ts +134 -0
  219. package/dist/performance/error-recovery-manager.d.ts.map +1 -0
  220. package/dist/performance/error-recovery-manager.js +673 -0
  221. package/dist/performance/error-recovery-manager.js.map +1 -0
  222. package/dist/performance/fallback-manager.d.ts +123 -0
  223. package/dist/performance/fallback-manager.d.ts.map +1 -0
  224. package/dist/performance/fallback-manager.js +524 -0
  225. package/dist/performance/fallback-manager.js.map +1 -0
  226. package/dist/performance/index.d.ts +25 -0
  227. package/dist/performance/index.d.ts.map +1 -0
  228. package/dist/performance/index.js +28 -0
  229. package/dist/performance/index.js.map +1 -0
  230. package/dist/performance/memory-manager.d.ts +97 -0
  231. package/dist/performance/memory-manager.d.ts.map +1 -0
  232. package/dist/performance/memory-manager.js +417 -0
  233. package/dist/performance/memory-manager.js.map +1 -0
  234. package/dist/performance/performance-monitor.d.ts +149 -0
  235. package/dist/performance/performance-monitor.d.ts.map +1 -0
  236. package/dist/performance/performance-monitor.js +513 -0
  237. package/dist/performance/performance-monitor.js.map +1 -0
  238. package/dist/performance/performance-optimizer.d.ts +110 -0
  239. package/dist/performance/performance-optimizer.d.ts.map +1 -0
  240. package/dist/performance/performance-optimizer.js +476 -0
  241. package/dist/performance/performance-optimizer.js.map +1 -0
  242. package/dist/performance/render-optimizer.d.ts +95 -0
  243. package/dist/performance/render-optimizer.d.ts.map +1 -0
  244. package/dist/performance/render-optimizer.js +408 -0
  245. package/dist/performance/render-optimizer.js.map +1 -0
  246. package/dist/services/index.d.ts +4 -1
  247. package/dist/services/index.d.ts.map +1 -1
  248. package/dist/services/index.js +3 -1
  249. package/dist/services/index.js.map +1 -1
  250. package/dist/services/system-resource.service.d.ts +168 -0
  251. package/dist/services/system-resource.service.d.ts.map +1 -0
  252. package/dist/services/system-resource.service.js +544 -0
  253. package/dist/services/system-resource.service.js.map +1 -0
  254. package/dist/types/account.types.d.ts +79 -0
  255. package/dist/types/account.types.d.ts.map +1 -0
  256. package/dist/types/account.types.js +23 -0
  257. package/dist/types/account.types.js.map +1 -0
  258. package/dist/types/alert.d.ts +147 -0
  259. package/dist/types/alert.d.ts.map +1 -0
  260. package/dist/types/alert.js +3 -0
  261. package/dist/types/alert.js.map +1 -0
  262. package/dist/types/auth-source.types.d.ts +62 -0
  263. package/dist/types/auth-source.types.d.ts.map +1 -0
  264. package/dist/types/auth-source.types.js +25 -0
  265. package/dist/types/auth-source.types.js.map +1 -0
  266. package/dist/types/index.d.ts +3 -0
  267. package/dist/types/index.d.ts.map +1 -1
  268. package/dist/types/index.js +2 -0
  269. package/dist/types/index.js.map +1 -1
  270. package/dist/types/interaction.d.ts +147 -0
  271. package/dist/types/interaction.d.ts.map +1 -0
  272. package/dist/types/interaction.js +3 -0
  273. package/dist/types/interaction.js.map +1 -0
  274. package/dist/types/monitoring.d.ts +233 -0
  275. package/dist/types/monitoring.d.ts.map +1 -0
  276. package/dist/types/monitoring.js +35 -0
  277. package/dist/types/monitoring.js.map +1 -0
  278. package/dist/types/session.types.d.ts +43 -0
  279. package/dist/types/session.types.d.ts.map +1 -0
  280. package/dist/types/session.types.js +27 -0
  281. package/dist/types/session.types.js.map +1 -0
  282. package/dist/utils/alert-history-manager.d.ts +72 -0
  283. package/dist/utils/alert-history-manager.d.ts.map +1 -0
  284. package/dist/utils/alert-history-manager.js +492 -0
  285. package/dist/utils/alert-history-manager.js.map +1 -0
  286. package/dist/utils/alert-manager.d.ts +75 -0
  287. package/dist/utils/alert-manager.d.ts.map +1 -0
  288. package/dist/utils/alert-manager.js +348 -0
  289. package/dist/utils/alert-manager.js.map +1 -0
  290. package/dist/utils/alert-rule-manager.d.ts +51 -0
  291. package/dist/utils/alert-rule-manager.d.ts.map +1 -0
  292. package/dist/utils/alert-rule-manager.js +515 -0
  293. package/dist/utils/alert-rule-manager.js.map +1 -0
  294. package/dist/utils/auth-diagnostics.d.ts +47 -0
  295. package/dist/utils/auth-diagnostics.d.ts.map +1 -0
  296. package/dist/utils/auth-diagnostics.js +245 -0
  297. package/dist/utils/auth-diagnostics.js.map +1 -0
  298. package/dist/utils/data-manager.d.ts +53 -0
  299. package/dist/utils/data-manager.d.ts.map +1 -0
  300. package/dist/utils/data-manager.js +228 -0
  301. package/dist/utils/data-manager.js.map +1 -0
  302. package/dist/utils/formatter.d.ts +5 -0
  303. package/dist/utils/formatter.d.ts.map +1 -1
  304. package/dist/utils/formatter.js +19 -0
  305. package/dist/utils/formatter.js.map +1 -1
  306. package/dist/utils/index.d.ts +6 -0
  307. package/dist/utils/index.d.ts.map +1 -1
  308. package/dist/utils/index.js +6 -0
  309. package/dist/utils/index.js.map +1 -1
  310. package/dist/utils/keyboard-handler.d.ts +32 -0
  311. package/dist/utils/keyboard-handler.d.ts.map +1 -0
  312. package/dist/utils/keyboard-handler.js +193 -0
  313. package/dist/utils/keyboard-handler.js.map +1 -0
  314. package/dist/utils/mouse-handler.d.ts +61 -0
  315. package/dist/utils/mouse-handler.d.ts.map +1 -0
  316. package/dist/utils/mouse-handler.js +192 -0
  317. package/dist/utils/mouse-handler.js.map +1 -0
  318. package/dist/utils/stream-verification.d.ts.map +1 -1
  319. package/dist/utils/stream-verification.js +2 -13
  320. package/dist/utils/stream-verification.js.map +1 -1
  321. package/dist/utils/terminal.d.ts +24 -0
  322. package/dist/utils/terminal.d.ts.map +1 -0
  323. package/dist/utils/terminal.js +148 -0
  324. package/dist/utils/terminal.js.map +1 -0
  325. package/dist/utils/time-series.processor.d.ts +65 -0
  326. package/dist/utils/time-series.processor.d.ts.map +1 -0
  327. package/dist/utils/time-series.processor.js +263 -0
  328. package/dist/utils/time-series.processor.js.map +1 -0
  329. package/package.json +40 -4
@@ -0,0 +1,421 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ConfigValidator = void 0;
4
+ class ConfigValidator {
5
+ static validateMonitoringConfig(config) {
6
+ const result = {
7
+ valid: true,
8
+ errors: [],
9
+ warnings: [],
10
+ critical: []
11
+ };
12
+ if (!config.version || typeof config.version !== 'string') {
13
+ result.errors.push('Configuration version is required and must be a string');
14
+ }
15
+ else if (!this.isValidVersion(config.version)) {
16
+ result.warnings.push(`Configuration version '${config.version}' format is not standard (expected x.y.z)`);
17
+ }
18
+ if (!config.theme || typeof config.theme !== 'string') {
19
+ result.errors.push('Theme is required and must be a string');
20
+ }
21
+ if (!config.layout || typeof config.layout !== 'string') {
22
+ result.errors.push('Layout is required and must be a string');
23
+ }
24
+ if (typeof config.refreshInterval !== 'number') {
25
+ result.errors.push('Refresh interval must be a number');
26
+ }
27
+ else if (config.refreshInterval < 1000) {
28
+ result.errors.push('Refresh interval must be at least 1000ms');
29
+ }
30
+ else if (config.refreshInterval < 2000) {
31
+ result.warnings.push('Refresh interval below 2000ms may impact performance');
32
+ }
33
+ if (!Array.isArray(config.components)) {
34
+ result.critical.push('Components must be an array');
35
+ }
36
+ else {
37
+ config.components.forEach((component, index) => {
38
+ const componentResult = this.validateComponentConfig(component, index);
39
+ result.errors.push(...componentResult.errors);
40
+ result.warnings.push(...componentResult.warnings);
41
+ result.critical.push(...componentResult.critical);
42
+ });
43
+ if (config.components.length === 0) {
44
+ result.warnings.push('No components configured - interface will be empty');
45
+ }
46
+ else if (config.components.length > 10) {
47
+ result.warnings.push('More than 10 components may impact performance');
48
+ }
49
+ }
50
+ if (config.customThemes && !Array.isArray(config.customThemes)) {
51
+ result.errors.push('Custom themes must be an array');
52
+ }
53
+ else if (config.customThemes) {
54
+ config.customThemes.forEach((theme, index) => {
55
+ const themeResult = this.validateThemeConfig(theme, `customThemes[${index}]`);
56
+ result.errors.push(...themeResult.errors);
57
+ result.warnings.push(...themeResult.warnings);
58
+ result.critical.push(...themeResult.critical);
59
+ });
60
+ }
61
+ if (config.customLayouts && !Array.isArray(config.customLayouts)) {
62
+ result.errors.push('Custom layouts must be an array');
63
+ }
64
+ else if (config.customLayouts) {
65
+ config.customLayouts.forEach((layout, index) => {
66
+ const layoutResult = this.validateLayoutConfig(layout, `customLayouts[${index}]`);
67
+ result.errors.push(...layoutResult.errors);
68
+ result.warnings.push(...layoutResult.warnings);
69
+ result.critical.push(...layoutResult.critical);
70
+ });
71
+ }
72
+ if (!config.preferences) {
73
+ result.errors.push('User preferences are required');
74
+ }
75
+ else {
76
+ const preferencesResult = this.validateUserPreferences(config.preferences);
77
+ result.errors.push(...preferencesResult.errors);
78
+ result.warnings.push(...preferencesResult.warnings);
79
+ result.critical.push(...preferencesResult.critical);
80
+ }
81
+ result.valid = result.errors.length === 0 && result.critical.length === 0;
82
+ return result;
83
+ }
84
+ static validateComponentConfig(component, index) {
85
+ const result = {
86
+ valid: true,
87
+ errors: [],
88
+ warnings: [],
89
+ critical: []
90
+ };
91
+ const prefix = index !== undefined ? `Component[${index}]` : 'Component';
92
+ if (!component.type || typeof component.type !== 'string') {
93
+ result.errors.push(`${prefix}: type is required and must be a string`);
94
+ }
95
+ else if (!this.VALID_COMPONENT_TYPES.includes(component.type)) {
96
+ result.warnings.push(`${prefix}: type '${component.type}' is not a recognized component type`);
97
+ }
98
+ if (!component.position || typeof component.position !== 'object') {
99
+ result.errors.push(`${prefix}: position is required and must be an object`);
100
+ }
101
+ else {
102
+ const { x, y, width, height } = component.position;
103
+ if (typeof x !== 'number' || x < 0) {
104
+ result.errors.push(`${prefix}: position.x must be a non-negative number`);
105
+ }
106
+ if (typeof y !== 'number' || y < 0) {
107
+ result.errors.push(`${prefix}: position.y must be a non-negative number`);
108
+ }
109
+ if (typeof width !== 'number' || width <= 0) {
110
+ result.errors.push(`${prefix}: position.width must be a positive number`);
111
+ }
112
+ if (typeof height !== 'number' || height <= 0) {
113
+ result.errors.push(`${prefix}: position.height must be a positive number`);
114
+ }
115
+ }
116
+ if (!component.size || typeof component.size !== 'object') {
117
+ result.errors.push(`${prefix}: size is required and must be an object`);
118
+ }
119
+ else {
120
+ const { minWidth, minHeight, maxWidth, maxHeight } = component.size;
121
+ if (typeof minWidth !== 'number' || minWidth <= 0) {
122
+ result.errors.push(`${prefix}: size.minWidth must be a positive number`);
123
+ }
124
+ if (typeof minHeight !== 'number' || minHeight <= 0) {
125
+ result.errors.push(`${prefix}: size.minHeight must be a positive number`);
126
+ }
127
+ if (maxWidth !== undefined && (typeof maxWidth !== 'number' || maxWidth < minWidth)) {
128
+ result.errors.push(`${prefix}: size.maxWidth must be a number >= minWidth`);
129
+ }
130
+ if (maxHeight !== undefined && (typeof maxHeight !== 'number' || maxHeight < minHeight)) {
131
+ result.errors.push(`${prefix}: size.maxHeight must be a number >= minHeight`);
132
+ }
133
+ }
134
+ if (typeof component.visible !== 'boolean') {
135
+ result.errors.push(`${prefix}: visible must be a boolean`);
136
+ }
137
+ if (typeof component.priority !== 'number') {
138
+ result.errors.push(`${prefix}: priority must be a number`);
139
+ }
140
+ else if (component.priority < 1 || component.priority > 10) {
141
+ result.errors.push(`${prefix}: priority must be between 1 and 10`);
142
+ }
143
+ if (!component.config || typeof component.config !== 'object') {
144
+ result.errors.push(`${prefix}: config is required and must be an object`);
145
+ }
146
+ result.valid = result.errors.length === 0 && result.critical.length === 0;
147
+ return result;
148
+ }
149
+ static validateComponentLayout(component, index) {
150
+ const result = {
151
+ valid: true,
152
+ errors: [],
153
+ warnings: [],
154
+ critical: []
155
+ };
156
+ const prefix = index !== undefined ? `components[${index}]` : 'component';
157
+ if (!component.type || typeof component.type !== 'string') {
158
+ result.errors.push(`${prefix}: type is required and must be a string`);
159
+ }
160
+ if (!component.position || typeof component.position !== 'object') {
161
+ result.errors.push(`${prefix}: position is required and must be an object`);
162
+ }
163
+ else {
164
+ const { x, y } = component.position;
165
+ if (typeof x !== 'number' || x < 0) {
166
+ result.errors.push(`${prefix}: position.x must be a non-negative number`);
167
+ }
168
+ if (typeof y !== 'number' || y < 0) {
169
+ result.errors.push(`${prefix}: position.y must be a non-negative number`);
170
+ }
171
+ }
172
+ if (!component.size || typeof component.size !== 'object') {
173
+ result.errors.push(`${prefix}: size is required and must be an object`);
174
+ }
175
+ else {
176
+ const { minWidth, minHeight } = component.size;
177
+ if (typeof minWidth !== 'number' || minWidth <= 0) {
178
+ result.errors.push(`${prefix}: size.minWidth must be a positive number`);
179
+ }
180
+ if (typeof minHeight !== 'number' || minHeight <= 0) {
181
+ result.errors.push(`${prefix}: size.minHeight must be a positive number`);
182
+ }
183
+ }
184
+ if (!component.config || typeof component.config !== 'object') {
185
+ result.errors.push(`${prefix}: config is required and must be an object`);
186
+ }
187
+ result.valid = result.errors.length === 0 && result.critical.length === 0;
188
+ return result;
189
+ }
190
+ static validateThemeConfig(theme, context = 'Theme') {
191
+ const result = {
192
+ valid: true,
193
+ errors: [],
194
+ warnings: [],
195
+ critical: []
196
+ };
197
+ if (!theme.id || typeof theme.id !== 'string') {
198
+ result.errors.push(`${context}: id is required and must be a string`);
199
+ }
200
+ else if (!/^[a-zA-Z0-9_-]+$/.test(theme.id)) {
201
+ result.errors.push(`${context}: id must contain only alphanumeric characters, underscore, and dash`);
202
+ }
203
+ if (!theme.name || typeof theme.name !== 'string') {
204
+ result.errors.push(`${context}: name is required and must be a string`);
205
+ }
206
+ if (typeof theme.isBuiltIn !== 'boolean') {
207
+ result.errors.push(`${context}: isBuiltIn must be a boolean`);
208
+ }
209
+ if (!theme.colors || typeof theme.colors !== 'object') {
210
+ result.critical.push(`${context}: colors is required and must be an object`);
211
+ }
212
+ else {
213
+ for (const colorName of this.REQUIRED_THEME_COLORS) {
214
+ if (!theme.colors[colorName]) {
215
+ result.errors.push(`${context}: colors.${colorName} is required`);
216
+ }
217
+ else if (!this.isValidColor(theme.colors[colorName])) {
218
+ result.warnings.push(`${context}: colors.${colorName} does not appear to be a valid color`);
219
+ }
220
+ }
221
+ }
222
+ if (!theme.fonts || typeof theme.fonts !== 'object') {
223
+ result.errors.push(`${context}: fonts is required and must be an object`);
224
+ }
225
+ else {
226
+ if (!theme.fonts.family || typeof theme.fonts.family !== 'string') {
227
+ result.errors.push(`${context}: fonts.family is required and must be a string`);
228
+ }
229
+ if (typeof theme.fonts.size !== 'number' || theme.fonts.size <= 0) {
230
+ result.errors.push(`${context}: fonts.size must be a positive number`);
231
+ }
232
+ if (!['normal', 'bold'].includes(theme.fonts.weight)) {
233
+ result.errors.push(`${context}: fonts.weight must be 'normal' or 'bold'`);
234
+ }
235
+ if (!['normal', 'italic'].includes(theme.fonts.style)) {
236
+ result.errors.push(`${context}: fonts.style must be 'normal' or 'italic'`);
237
+ }
238
+ }
239
+ if (!theme.borders || typeof theme.borders !== 'object') {
240
+ result.errors.push(`${context}: borders is required and must be an object`);
241
+ }
242
+ else {
243
+ if (!['line', 'bg', 'none'].includes(theme.borders.type)) {
244
+ result.errors.push(`${context}: borders.type must be 'line', 'bg', or 'none'`);
245
+ }
246
+ if (!['solid', 'dashed', 'dotted'].includes(theme.borders.style)) {
247
+ result.errors.push(`${context}: borders.style must be 'solid', 'dashed', or 'dotted'`);
248
+ }
249
+ }
250
+ if (!theme.components || typeof theme.components !== 'object') {
251
+ result.errors.push(`${context}: components is required and must be an object`);
252
+ }
253
+ else {
254
+ for (const styleName of this.REQUIRED_COMPONENT_STYLES) {
255
+ if (!theme.components[styleName]) {
256
+ result.errors.push(`${context}: components.${styleName} is required`);
257
+ }
258
+ }
259
+ }
260
+ result.valid = result.errors.length === 0 && result.critical.length === 0;
261
+ return result;
262
+ }
263
+ static validateLayoutConfig(layout, context = 'Layout') {
264
+ const result = {
265
+ valid: true,
266
+ errors: [],
267
+ warnings: [],
268
+ critical: []
269
+ };
270
+ if (!layout.id || typeof layout.id !== 'string') {
271
+ result.errors.push(`${context}: id is required and must be a string`);
272
+ }
273
+ else if (!/^[a-zA-Z0-9_-]+$/.test(layout.id)) {
274
+ result.errors.push(`${context}: id must contain only alphanumeric characters, underscore, and dash`);
275
+ }
276
+ if (!layout.name || typeof layout.name !== 'string') {
277
+ result.errors.push(`${context}: name is required and must be a string`);
278
+ }
279
+ if (typeof layout.isBuiltIn !== 'boolean') {
280
+ result.errors.push(`${context}: isBuiltIn must be a boolean`);
281
+ }
282
+ if (typeof layout.responsive !== 'boolean') {
283
+ result.errors.push(`${context}: responsive must be a boolean`);
284
+ }
285
+ if (!layout.grid || typeof layout.grid !== 'object') {
286
+ result.errors.push(`${context}: grid is required and must be an object`);
287
+ }
288
+ else {
289
+ const { rows, cols, cellWidth, cellHeight, padding } = layout.grid;
290
+ if (typeof rows !== 'number' || rows <= 0) {
291
+ result.errors.push(`${context}: grid.rows must be a positive number`);
292
+ }
293
+ if (typeof cols !== 'number' || cols <= 0) {
294
+ result.errors.push(`${context}: grid.cols must be a positive number`);
295
+ }
296
+ if (typeof cellWidth !== 'number' || cellWidth <= 0) {
297
+ result.errors.push(`${context}: grid.cellWidth must be a positive number`);
298
+ }
299
+ if (typeof cellHeight !== 'number' || cellHeight <= 0) {
300
+ result.errors.push(`${context}: grid.cellHeight must be a positive number`);
301
+ }
302
+ if (typeof padding !== 'number' || padding < 0) {
303
+ result.errors.push(`${context}: grid.padding must be a non-negative number`);
304
+ }
305
+ }
306
+ if (!Array.isArray(layout.components)) {
307
+ result.errors.push(`${context}: components must be an array`);
308
+ }
309
+ else {
310
+ layout.components.forEach((component, index) => {
311
+ const componentResult = this.validateComponentLayout(component, index);
312
+ result.errors.push(...componentResult.errors.map(e => `${context}.${e}`));
313
+ result.warnings.push(...componentResult.warnings.map(w => `${context}.${w}`));
314
+ result.critical.push(...componentResult.critical.map(c => `${context}.${c}`));
315
+ });
316
+ }
317
+ if (!layout.minTerminalSize || typeof layout.minTerminalSize !== 'object') {
318
+ result.errors.push(`${context}: minTerminalSize is required and must be an object`);
319
+ }
320
+ else {
321
+ if (typeof layout.minTerminalSize.width !== 'number' || layout.minTerminalSize.width < 60) {
322
+ result.errors.push(`${context}: minTerminalSize.width must be at least 60`);
323
+ }
324
+ if (typeof layout.minTerminalSize.height !== 'number' || layout.minTerminalSize.height < 20) {
325
+ result.errors.push(`${context}: minTerminalSize.height must be at least 20`);
326
+ }
327
+ }
328
+ result.valid = result.errors.length === 0 && result.critical.length === 0;
329
+ return result;
330
+ }
331
+ static validateUserPreferences(preferences) {
332
+ const result = {
333
+ valid: true,
334
+ errors: [],
335
+ warnings: [],
336
+ critical: []
337
+ };
338
+ const booleanFields = [
339
+ 'autoSave', 'confirmActions', 'showHelp', 'keyboardShortcuts',
340
+ 'soundEnabled', 'compactMode', 'showTimestamps'
341
+ ];
342
+ for (const field of booleanFields) {
343
+ if (typeof preferences[field] !== 'boolean') {
344
+ result.errors.push(`preferences.${field} must be a boolean`);
345
+ }
346
+ }
347
+ if (!['slow', 'normal', 'fast'].includes(preferences.animationSpeed)) {
348
+ result.errors.push('preferences.animationSpeed must be "slow", "normal", or "fast"');
349
+ }
350
+ if (typeof preferences.maxHistoryItems !== 'number' || preferences.maxHistoryItems < 10) {
351
+ result.errors.push('preferences.maxHistoryItems must be a number >= 10');
352
+ }
353
+ else if (preferences.maxHistoryItems > 10000) {
354
+ result.warnings.push('preferences.maxHistoryItems > 10000 may impact memory usage');
355
+ }
356
+ result.valid = result.errors.length === 0 && result.critical.length === 0;
357
+ return result;
358
+ }
359
+ static isValidVersion(version) {
360
+ const versionRegex = /^\d+\.\d+\.\d+(-[a-zA-Z0-9-.]+)?(\+[a-zA-Z0-9-.]+)?$/;
361
+ return versionRegex.test(version);
362
+ }
363
+ static isValidColor(color) {
364
+ if (/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(color)) {
365
+ return true;
366
+ }
367
+ const namedColors = [
368
+ 'black', 'red', 'green', 'yellow', 'blue', 'magenta', 'cyan', 'white',
369
+ 'gray', 'grey', 'transparent', 'inherit', 'initial', 'unset'
370
+ ];
371
+ if (namedColors.includes(color.toLowerCase())) {
372
+ return true;
373
+ }
374
+ const rgbMatch = color.match(/^rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/);
375
+ if (rgbMatch && rgbMatch[1] && rgbMatch[2] && rgbMatch[3]) {
376
+ const r = parseInt(rgbMatch[1]);
377
+ const g = parseInt(rgbMatch[2]);
378
+ const b = parseInt(rgbMatch[3]);
379
+ return r <= 255 && g <= 255 && b <= 255;
380
+ }
381
+ const rgbaMatch = color.match(/^rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([01]?(?:\.\d+)?)\s*\)$/);
382
+ if (rgbaMatch && rgbaMatch[1] && rgbaMatch[2] && rgbaMatch[3] && rgbaMatch[4] !== undefined) {
383
+ const r = parseInt(rgbaMatch[1]);
384
+ const g = parseInt(rgbaMatch[2]);
385
+ const b = parseInt(rgbaMatch[3]);
386
+ const a = parseFloat(rgbaMatch[4]);
387
+ return r <= 255 && g <= 255 && b <= 255 && a >= 0 && a <= 1;
388
+ }
389
+ return false;
390
+ }
391
+ static createErrorMessage(result) {
392
+ const messages = [];
393
+ if (result.critical.length > 0) {
394
+ messages.push('Critical errors:');
395
+ messages.push(...result.critical.map(e => ` • ${e}`));
396
+ }
397
+ if (result.errors.length > 0) {
398
+ messages.push('Errors:');
399
+ messages.push(...result.errors.map(e => ` • ${e}`));
400
+ }
401
+ if (result.warnings.length > 0) {
402
+ messages.push('Warnings:');
403
+ messages.push(...result.warnings.map(w => ` • ${w}`));
404
+ }
405
+ return messages.join('\n');
406
+ }
407
+ }
408
+ exports.ConfigValidator = ConfigValidator;
409
+ ConfigValidator.REQUIRED_THEME_COLORS = [
410
+ 'primary', 'secondary', 'background', 'foreground', 'accent',
411
+ 'error', 'warning', 'success', 'info', 'muted', 'highlight',
412
+ 'border', 'selection'
413
+ ];
414
+ ConfigValidator.REQUIRED_COMPONENT_STYLES = [
415
+ 'header', 'content', 'status', 'border', 'scrollbar', 'selection'
416
+ ];
417
+ ConfigValidator.VALID_COMPONENT_TYPES = [
418
+ 'stream-metrics', 'channel-status', 'system-resources', 'alert-panel',
419
+ 'help-panel', 'status-bar', 'search-panel'
420
+ ];
421
+ //# sourceMappingURL=config-validator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config-validator.js","sourceRoot":"","sources":["../../src/config/config-validator.ts"],"names":[],"mappings":";;;AAuBA,MAAa,eAAe;IAqB1B,MAAM,CAAC,wBAAwB,CAAC,MAAwB;QACtD,MAAM,MAAM,GAAqB;YAC/B,KAAK,EAAE,IAAI;YACX,MAAM,EAAE,EAAE;YACV,QAAQ,EAAE,EAAE;YACZ,QAAQ,EAAE,EAAE;SACb,CAAC;QAGF,IAAI,CAAC,MAAM,CAAC,OAAO,IAAI,OAAO,MAAM,CAAC,OAAO,KAAK,QAAQ,EAAE,CAAC;YAC1D,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,wDAAwD,CAAC,CAAC;QAC/E,CAAC;aAAM,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC;YAChD,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,0BAA0B,MAAM,CAAC,OAAO,2CAA2C,CAA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AE,WAAW;CAClE,CAAC;AAEsB,qCAAqB,GAAG;IAC9C,gBAAgB,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,aAAa;IACrE,YAAY,EAAE,YAAY,EAAE,cAAc;CAC3C,CAAC"}
@@ -0,0 +1,44 @@
1
+ import { AccountsStore } from '../types/account.types';
2
+ export interface VersionInfo {
3
+ version: string;
4
+ description: string;
5
+ features: string[];
6
+ breakingChanges: string[];
7
+ }
8
+ export interface MigrationResult {
9
+ success: boolean;
10
+ message: string;
11
+ fromVersion: string;
12
+ toVersion: string;
13
+ steps: string[];
14
+ warnings: string[];
15
+ migratedConfig?: AccountsStore;
16
+ }
17
+ export interface VersionValidationResult {
18
+ isValid: boolean;
19
+ message: string;
20
+ detectedVersion?: string;
21
+ compatibility: 'compatible' | 'upgradeable' | 'incompatible';
22
+ requiredActions: string[];
23
+ }
24
+ export declare const CURRENT_VERSION = "1.0";
25
+ export declare const MINIMUM_SUPPORTED_VERSION = "0.8";
26
+ export declare class ConfigVersionManager {
27
+ getCurrentVersion(): string;
28
+ getSupportedVersions(): VersionInfo[];
29
+ isVersionSupported(version: string): boolean;
30
+ getVersionInfo(version: string): VersionInfo | null;
31
+ compareVersions(version1: string, version2: string): number;
32
+ detectVersion(config: unknown): string;
33
+ validateVersion(config: unknown): VersionValidationResult;
34
+ migrateConfiguration(config: unknown, fromVersion: string, toVersion: string): MigrationResult;
35
+ private migrateFrom08To09;
36
+ private migrateFrom09To10;
37
+ getMigrationPath(fromVersion: string, toVersion: string): string[];
38
+ createNewConfiguration(): AccountsStore;
39
+ private deepClone;
40
+ isMigrationRequired(config: unknown): boolean;
41
+ getBreakingChanges(fromVersion: string, toVersion: string): string[];
42
+ }
43
+ export declare const defaultConfigVersionManager: ConfigVersionManager;
44
+ //# sourceMappingURL=config-version-manager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config-version-manager.d.ts","sourceRoot":"","sources":["../../src/config/config-version-manager.ts"],"names":[],"mappings":"AAeA,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