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.
- package/dist/collectors/collector_feed.d.ts.map +1 -1
- package/dist/collectors/collector_feed.js +6 -1
- package/dist/collectors/collector_feed.js.map +1 -1
- package/dist/core/commandExecutor.d.ts +56 -0
- package/dist/core/commandExecutor.d.ts.map +1 -0
- package/dist/core/commandExecutor.js +161 -0
- package/dist/core/commandExecutor.js.map +1 -0
- package/dist/core/commandRegistry.d.ts +72 -0
- package/dist/core/commandRegistry.d.ts.map +1 -0
- package/dist/core/commandRegistry.js +53 -0
- package/dist/core/commandRegistry.js.map +1 -0
- package/dist/core/commands/size.d.ts +23 -0
- package/dist/core/commands/size.d.ts.map +1 -0
- package/dist/core/commands/size.js +211 -0
- package/dist/core/commands/size.js.map +1 -0
- package/dist/core/eventBus.d.ts +29 -14
- package/dist/core/eventBus.d.ts.map +1 -1
- package/dist/core/eventBus.js +56 -23
- package/dist/core/eventBus.js.map +1 -1
- package/dist/core/opEvent.d.ts +16 -0
- package/dist/core/opEvent.d.ts.map +1 -0
- package/dist/core/opEvent.js +8 -0
- package/dist/core/opEvent.js.map +1 -0
- package/dist/index.js +19 -3
- package/dist/index.js.map +1 -1
- package/dist/ui/v3/commands/commandEngine.js +16 -2
- package/dist/ui/v3/commands/commandEngine.js.map +1 -1
- package/dist/ui/v3/index.js +32 -11
- package/dist/ui/v3/index.js.map +1 -1
- package/dist/ui/v3/ui/layout/phase1Layout.d.ts.map +1 -1
- package/dist/ui/v3/ui/layout/phase1Layout.js +3 -2
- package/dist/ui/v3/ui/layout/phase1Layout.js.map +1 -1
- package/dist/ui/v4/engine/renderFrame.d.ts +47 -0
- package/dist/ui/v4/engine/renderFrame.d.ts.map +1 -0
- package/dist/ui/v4/engine/renderFrame.js +653 -0
- package/dist/ui/v4/engine/renderFrame.js.map +1 -0
- package/dist/ui/v4/engine/resizeController.d.ts +48 -0
- package/dist/ui/v4/engine/resizeController.d.ts.map +1 -0
- package/dist/ui/v4/engine/resizeController.js +285 -0
- package/dist/ui/v4/engine/resizeController.js.map +1 -0
- package/dist/ui/v4/engine/safeViewport.d.ts +47 -0
- package/dist/ui/v4/engine/safeViewport.d.ts.map +1 -0
- package/dist/ui/v4/engine/safeViewport.js +123 -0
- package/dist/ui/v4/engine/safeViewport.js.map +1 -0
- package/dist/ui/v4/engine/terminalProfile.d.ts +56 -0
- package/dist/ui/v4/engine/terminalProfile.d.ts.map +1 -0
- package/dist/ui/v4/engine/terminalProfile.js +115 -0
- package/dist/ui/v4/engine/terminalProfile.js.map +1 -0
- package/dist/ui/v4/index.d.ts +28 -0
- package/dist/ui/v4/index.d.ts.map +1 -0
- package/dist/ui/v4/index.js +993 -0
- package/dist/ui/v4/index.js.map +1 -0
- package/dist/ui/v4/layout/layoutEngine.d.ts +62 -0
- package/dist/ui/v4/layout/layoutEngine.d.ts.map +1 -0
- package/dist/ui/v4/layout/layoutEngine.js +294 -0
- package/dist/ui/v4/layout/layoutEngine.js.map +1 -0
- package/dist/ui/v4/runtime/keepAlive.d.ts +21 -0
- package/dist/ui/v4/runtime/keepAlive.d.ts.map +1 -0
- package/dist/ui/v4/runtime/keepAlive.js +149 -0
- package/dist/ui/v4/runtime/keepAlive.js.map +1 -0
- package/dist/ui/v4/runtime/logger.d.ts +35 -0
- package/dist/ui/v4/runtime/logger.d.ts.map +1 -0
- package/dist/ui/v4/runtime/logger.js +109 -0
- package/dist/ui/v4/runtime/logger.js.map +1 -0
- package/dist/ui/v5/index.d.ts +24 -0
- package/dist/ui/v5/index.d.ts.map +1 -0
- package/dist/ui/v5/index.js +123 -0
- package/dist/ui/v5/index.js.map +1 -0
- package/dist/ui/v5/runtime/keepAlive.d.ts +37 -0
- package/dist/ui/v5/runtime/keepAlive.d.ts.map +1 -0
- package/dist/ui/v5/runtime/keepAlive.js +122 -0
- package/dist/ui/v5/runtime/keepAlive.js.map +1 -0
- package/dist/ui/v5/runtime/restoreTerminal.d.ts +34 -0
- package/dist/ui/v5/runtime/restoreTerminal.d.ts.map +1 -0
- package/dist/ui/v5/runtime/restoreTerminal.js +100 -0
- package/dist/ui/v5/runtime/restoreTerminal.js.map +1 -0
- package/dist/ui/v5/runtime/stdoutGuard.d.ts +42 -0
- package/dist/ui/v5/runtime/stdoutGuard.d.ts.map +1 -0
- package/dist/ui/v5/runtime/stdoutGuard.js +154 -0
- package/dist/ui/v5/runtime/stdoutGuard.js.map +1 -0
- 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"}
|