4runr-os 2.0.35 → 2.0.37

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 (81) hide show
  1. package/dist/collectors/collector_feed.d.ts.map +1 -1
  2. package/dist/collectors/collector_feed.js +6 -1
  3. package/dist/collectors/collector_feed.js.map +1 -1
  4. package/dist/core/commandExecutor.d.ts +56 -0
  5. package/dist/core/commandExecutor.d.ts.map +1 -0
  6. package/dist/core/commandExecutor.js +161 -0
  7. package/dist/core/commandExecutor.js.map +1 -0
  8. package/dist/core/commandRegistry.d.ts +72 -0
  9. package/dist/core/commandRegistry.d.ts.map +1 -0
  10. package/dist/core/commandRegistry.js +53 -0
  11. package/dist/core/commandRegistry.js.map +1 -0
  12. package/dist/core/commands/size.d.ts +23 -0
  13. package/dist/core/commands/size.d.ts.map +1 -0
  14. package/dist/core/commands/size.js +211 -0
  15. package/dist/core/commands/size.js.map +1 -0
  16. package/dist/core/eventBus.d.ts +29 -14
  17. package/dist/core/eventBus.d.ts.map +1 -1
  18. package/dist/core/eventBus.js +56 -23
  19. package/dist/core/eventBus.js.map +1 -1
  20. package/dist/core/opEvent.d.ts +16 -0
  21. package/dist/core/opEvent.d.ts.map +1 -0
  22. package/dist/core/opEvent.js +8 -0
  23. package/dist/core/opEvent.js.map +1 -0
  24. package/dist/index.js +19 -3
  25. package/dist/index.js.map +1 -1
  26. package/dist/ui/v3/commands/commandEngine.js +16 -2
  27. package/dist/ui/v3/commands/commandEngine.js.map +1 -1
  28. package/dist/ui/v3/index.js +32 -11
  29. package/dist/ui/v3/index.js.map +1 -1
  30. package/dist/ui/v3/ui/layout/phase1Layout.d.ts.map +1 -1
  31. package/dist/ui/v3/ui/layout/phase1Layout.js +3 -2
  32. package/dist/ui/v3/ui/layout/phase1Layout.js.map +1 -1
  33. package/dist/ui/v4/engine/renderFrame.d.ts +47 -0
  34. package/dist/ui/v4/engine/renderFrame.d.ts.map +1 -0
  35. package/dist/ui/v4/engine/renderFrame.js +653 -0
  36. package/dist/ui/v4/engine/renderFrame.js.map +1 -0
  37. package/dist/ui/v4/engine/resizeController.d.ts +48 -0
  38. package/dist/ui/v4/engine/resizeController.d.ts.map +1 -0
  39. package/dist/ui/v4/engine/resizeController.js +285 -0
  40. package/dist/ui/v4/engine/resizeController.js.map +1 -0
  41. package/dist/ui/v4/engine/safeViewport.d.ts +47 -0
  42. package/dist/ui/v4/engine/safeViewport.d.ts.map +1 -0
  43. package/dist/ui/v4/engine/safeViewport.js +123 -0
  44. package/dist/ui/v4/engine/safeViewport.js.map +1 -0
  45. package/dist/ui/v4/engine/terminalProfile.d.ts +56 -0
  46. package/dist/ui/v4/engine/terminalProfile.d.ts.map +1 -0
  47. package/dist/ui/v4/engine/terminalProfile.js +115 -0
  48. package/dist/ui/v4/engine/terminalProfile.js.map +1 -0
  49. package/dist/ui/v4/index.d.ts +28 -0
  50. package/dist/ui/v4/index.d.ts.map +1 -0
  51. package/dist/ui/v4/index.js +993 -0
  52. package/dist/ui/v4/index.js.map +1 -0
  53. package/dist/ui/v4/layout/layoutEngine.d.ts +62 -0
  54. package/dist/ui/v4/layout/layoutEngine.d.ts.map +1 -0
  55. package/dist/ui/v4/layout/layoutEngine.js +294 -0
  56. package/dist/ui/v4/layout/layoutEngine.js.map +1 -0
  57. package/dist/ui/v4/runtime/keepAlive.d.ts +21 -0
  58. package/dist/ui/v4/runtime/keepAlive.d.ts.map +1 -0
  59. package/dist/ui/v4/runtime/keepAlive.js +149 -0
  60. package/dist/ui/v4/runtime/keepAlive.js.map +1 -0
  61. package/dist/ui/v4/runtime/logger.d.ts +35 -0
  62. package/dist/ui/v4/runtime/logger.d.ts.map +1 -0
  63. package/dist/ui/v4/runtime/logger.js +109 -0
  64. package/dist/ui/v4/runtime/logger.js.map +1 -0
  65. package/dist/ui/v5/index.d.ts +24 -0
  66. package/dist/ui/v5/index.d.ts.map +1 -0
  67. package/dist/ui/v5/index.js +123 -0
  68. package/dist/ui/v5/index.js.map +1 -0
  69. package/dist/ui/v5/runtime/keepAlive.d.ts +37 -0
  70. package/dist/ui/v5/runtime/keepAlive.d.ts.map +1 -0
  71. package/dist/ui/v5/runtime/keepAlive.js +122 -0
  72. package/dist/ui/v5/runtime/keepAlive.js.map +1 -0
  73. package/dist/ui/v5/runtime/restoreTerminal.d.ts +34 -0
  74. package/dist/ui/v5/runtime/restoreTerminal.d.ts.map +1 -0
  75. package/dist/ui/v5/runtime/restoreTerminal.js +100 -0
  76. package/dist/ui/v5/runtime/restoreTerminal.js.map +1 -0
  77. package/dist/ui/v5/runtime/stdoutGuard.d.ts +42 -0
  78. package/dist/ui/v5/runtime/stdoutGuard.d.ts.map +1 -0
  79. package/dist/ui/v5/runtime/stdoutGuard.js +154 -0
  80. package/dist/ui/v5/runtime/stdoutGuard.js.map +1 -0
  81. package/package.json +1 -1
@@ -0,0 +1,47 @@
1
+ /**
2
+ * V4 Render Engine - Percentage-Based (neo-blessed optimized)
3
+ *
4
+ * ⚠️ FROZEN: This file is part of V4 TUI which is FROZEN.
5
+ * DO NOT MODIFY. Development moved to V5.
6
+ * See FROZEN.md in v4 directory.
7
+ *
8
+ * Single-pass rendering with atomic teardown + rebuild.
9
+ * Uses percentage-based layout specs (no pixel math).
10
+ *
11
+ * Rules:
12
+ * - No partial renders
13
+ * - Always teardown old widgets before creating new ones
14
+ * - Hard clear terminal buffer before render
15
+ * - Single render() call at end
16
+ * - Always restore focus to command input
17
+ * - Use percentage strings for left/width (neo-blessed handles it)
18
+ */
19
+ import type { Widgets } from 'neo-blessed';
20
+ import { LayoutSpec } from '../layout/layoutEngine.js';
21
+ export type UIWidgets = {
22
+ viewport: Widgets.Box | Widgets.Screen;
23
+ posture: Widgets.Box;
24
+ resources: Widgets.Box;
25
+ assets: Widgets.Box;
26
+ operations: Widgets.Box;
27
+ network: Widgets.Box;
28
+ capabilities: Widgets.Box;
29
+ commandLine: Widgets.Box;
30
+ watermark: Widgets.Box;
31
+ };
32
+ /**
33
+ * Render frame (atomic teardown + rebuild)
34
+ *
35
+ * Step 1: Hard viewport container - all widgets inside viewportBox
36
+ * Step 4: Rebuild on resize - destroy old viewport, recreate with new sizes
37
+ *
38
+ * @param screen - Blessed screen
39
+ * @param spec - Layout spec with integer pixel positions
40
+ * @param oldWidgets - Previous widgets (will be destroyed)
41
+ * @param commandInputValue - Preserve command line input across resizes
42
+ * @param isInitialBoot - Only clear terminal on boot, not resize
43
+ * @returns New widgets
44
+ */
45
+ export declare function renderFrame(screen: Widgets.Screen, spec: LayoutSpec, oldWidgets: UIWidgets | null, commandInputValue?: string, isInitialBoot?: boolean, // B) Only clear on boot, not resize
46
+ useAsciiBorders?: boolean): UIWidgets;
47
+ //# sourceMappingURL=renderFrame.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderFrame.d.ts","sourceRoot":"","sources":["../../../../src/ui/v4/engine/renderFrame.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,UAAU,EAA6B,MAAM,2BAA2B,CAAC;AAYlF,MAAM,MAAM,SAAS,GAAG;IACtB,QAAQ,EAAE,OAAO,CAAC,GAAG,GAAG,OAAO,CAAC,MAAM,CAAC;IACvC,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC;IACvB,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC,GAAG,CAAC;IACxB,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC;IACrB,YAAY,EAAE,OAAO,CAAC,GAAG,CAAC;IAC1B,WAAW,EAAE,OAAO,CAAC,GAAG,CAAC;IACzB,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC;CACxB,CAAC;AA0dF;;;;;;;;;;;;GAYG;AACH,wBAAgB,WAAW,CACzB,MAAM,EAAE,OAAO,CAAC,MAAM,EACtB,IAAI,EAAE,UAAU,EAChB,UAAU,EAAE,SAAS,GAAG,IAAI,EAC5B,iBAAiB,GAAE,MAAW,EAC9B,aAAa,GAAE,OAAe,EAAG,oCAAoC;AACrE,eAAe,GAAE,OAAe,GAC/B,SAAS,CAsKX"}