4runr-os 2.1.4 → 2.1.6
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/index.js +16 -1
- package/dist/index.js.map +1 -1
- package/dist/tui_mk1/kernel.d.ts.map +1 -1
- package/dist/tui_mk1/kernel.js +107 -4
- package/dist/tui_mk1/kernel.js.map +1 -1
- package/dist/tui_mk1/layout/layoutEngine.d.ts +38 -19
- package/dist/tui_mk1/layout/layoutEngine.d.ts.map +1 -1
- package/dist/tui_mk1/layout/layoutEngine.js +521 -228
- package/dist/tui_mk1/layout/layoutEngine.js.map +1 -1
- package/dist/tui_mk1/log.d.ts +23 -0
- package/dist/tui_mk1/log.d.ts.map +1 -0
- package/dist/tui_mk1/log.js +125 -0
- package/dist/tui_mk1/log.js.map +1 -0
- package/dist/tui_mk1/logger.d.ts.map +1 -1
- package/dist/tui_mk1/logger.js +20 -10
- package/dist/tui_mk1/logger.js.map +1 -1
- package/dist/tui_mk1/mk1App.d.ts +13 -18
- package/dist/tui_mk1/mk1App.d.ts.map +1 -1
- package/dist/tui_mk1/mk1App.js +334 -157
- package/dist/tui_mk1/mk1App.js.map +1 -1
- package/dist/tui_mk1/resizeController.d.ts.map +1 -1
- package/dist/tui_mk1/resizeController.js +15 -1
- package/dist/tui_mk1/resizeController.js.map +1 -1
- package/dist/tui_mk1/stdoutGuard.d.ts.map +1 -1
- package/dist/tui_mk1/stdoutGuard.js +7 -0
- package/dist/tui_mk1/stdoutGuard.js.map +1 -1
- package/dist/tui_mk1/terminalRestore.d.ts.map +1 -1
- package/dist/tui_mk1/terminalRestore.js +19 -1
- package/dist/tui_mk1/terminalRestore.js.map +1 -1
- package/dist/tui_mk1/ui/offenderScanner.d.ts +31 -0
- package/dist/tui_mk1/ui/offenderScanner.d.ts.map +1 -0
- package/dist/tui_mk1/ui/offenderScanner.js +80 -0
- package/dist/tui_mk1/ui/offenderScanner.js.map +1 -0
- package/dist/tui_mk1/ui/safe.d.ts +9 -0
- package/dist/tui_mk1/ui/safe.d.ts.map +1 -0
- package/dist/tui_mk1/ui/safe.js +29 -0
- package/dist/tui_mk1/ui/safe.js.map +1 -0
- package/dist/tui_mk1/ui/safeText.d.ts +22 -0
- package/dist/tui_mk1/ui/safeText.d.ts.map +1 -0
- package/dist/tui_mk1/ui/safeText.js +50 -0
- package/dist/tui_mk1/ui/safeText.js.map +1 -0
- package/dist/tui_mk1/ui/uiBuilder.d.ts +44 -0
- package/dist/tui_mk1/ui/uiBuilder.d.ts.map +1 -0
- package/dist/tui_mk1/ui/uiBuilder.js +467 -0
- package/dist/tui_mk1/ui/uiBuilder.js.map +1 -0
- package/dist/tui_mk1/viewport/safeViewport.d.ts +10 -1
- package/dist/tui_mk1/viewport/safeViewport.d.ts.map +1 -1
- package/dist/tui_mk1/viewport/safeViewport.js +47 -15
- package/dist/tui_mk1/viewport/safeViewport.js.map +1 -1
- package/dist/tui_mk2/kernel.d.ts +28 -0
- package/dist/tui_mk2/kernel.d.ts.map +1 -0
- package/dist/tui_mk2/kernel.js +138 -0
- package/dist/tui_mk2/kernel.js.map +1 -0
- package/dist/tui_mk2/mk2App.d.ts +33 -0
- package/dist/tui_mk2/mk2App.d.ts.map +1 -0
- package/dist/tui_mk2/mk2App.js +135 -0
- package/dist/tui_mk2/mk2App.js.map +1 -0
- package/package.json +8 -7
- package/dist/tui_mk1/ui/panels/createSection.d.ts +0 -18
- package/dist/tui_mk1/ui/panels/createSection.d.ts.map +0 -1
- package/dist/tui_mk1/ui/panels/createSection.js +0 -42
- package/dist/tui_mk1/ui/panels/createSection.js.map +0 -1
- package/dist/tui_mk1/ui/panels.d.ts +0 -23
- package/dist/tui_mk1/ui/panels.d.ts.map +0 -1
- package/dist/tui_mk1/ui/panels.js +0 -108
- package/dist/tui_mk1/ui/panels.js.map +0 -1
- package/dist/tui_mk1/ui/render/sectionRenderer.d.ts +0 -21
- package/dist/tui_mk1/ui/render/sectionRenderer.d.ts.map +0 -1
- package/dist/tui_mk1/ui/render/sectionRenderer.js +0 -32
- package/dist/tui_mk1/ui/render/sectionRenderer.js.map +0 -1
- package/dist/tui_mk1/ui/widgetManager.d.ts +0 -58
- package/dist/tui_mk1/ui/widgetManager.d.ts.map +0 -1
- package/dist/tui_mk1/ui/widgetManager.js +0 -197
- package/dist/tui_mk1/ui/widgetManager.js.map +0 -1
- package/dist/ui/boot/sequence.d.ts +0 -10
- package/dist/ui/boot/sequence.d.ts.map +0 -1
- package/dist/ui/boot/sequence.js +0 -171
- package/dist/ui/boot/sequence.js.map +0 -1
- package/dist/ui/constraints/layoutSpec.d.ts +0 -47
- package/dist/ui/constraints/layoutSpec.d.ts.map +0 -1
- package/dist/ui/constraints/layoutSpec.js +0 -60
- package/dist/ui/constraints/layoutSpec.js.map +0 -1
- package/dist/ui/constraints/unknownHandling.d.ts +0 -29
- package/dist/ui/constraints/unknownHandling.d.ts.map +0 -1
- package/dist/ui/constraints/unknownHandling.js +0 -60
- package/dist/ui/constraints/unknownHandling.js.map +0 -1
- package/dist/ui/drilldowns/feed.d.ts +0 -11
- package/dist/ui/drilldowns/feed.d.ts.map +0 -1
- package/dist/ui/drilldowns/feed.js +0 -68
- package/dist/ui/drilldowns/feed.js.map +0 -1
- package/dist/ui/drilldowns/index.d.ts +0 -7
- package/dist/ui/drilldowns/index.d.ts.map +0 -1
- package/dist/ui/drilldowns/index.js +0 -8
- package/dist/ui/drilldowns/index.js.map +0 -1
- package/dist/ui/drilldowns/posture.d.ts +0 -11
- package/dist/ui/drilldowns/posture.d.ts.map +0 -1
- package/dist/ui/drilldowns/posture.js +0 -74
- package/dist/ui/drilldowns/posture.js.map +0 -1
- package/dist/ui/intelligence-posture-view.d.ts +0 -22
- package/dist/ui/intelligence-posture-view.d.ts.map +0 -1
- package/dist/ui/intelligence-posture-view.js +0 -169
- package/dist/ui/intelligence-posture-view.js.map +0 -1
- package/dist/ui/navigation/keymaps.d.ts +0 -26
- package/dist/ui/navigation/keymaps.d.ts.map +0 -1
- package/dist/ui/navigation/keymaps.js +0 -135
- package/dist/ui/navigation/keymaps.js.map +0 -1
- package/dist/ui/navigation/palette.d.ts +0 -10
- package/dist/ui/navigation/palette.d.ts.map +0 -1
- package/dist/ui/navigation/palette.js +0 -133
- package/dist/ui/navigation/palette.js.map +0 -1
- package/dist/ui/navigation/state.d.ts +0 -47
- package/dist/ui/navigation/state.d.ts.map +0 -1
- package/dist/ui/navigation/state.js +0 -84
- package/dist/ui/navigation/state.js.map +0 -1
- package/dist/ui/navigation/types.d.ts +0 -38
- package/dist/ui/navigation/types.d.ts.map +0 -1
- package/dist/ui/navigation/types.js +0 -36
- package/dist/ui/navigation/types.js.map +0 -1
- package/dist/ui/panels/active-assets.d.ts +0 -12
- package/dist/ui/panels/active-assets.d.ts.map +0 -1
- package/dist/ui/panels/active-assets.js +0 -83
- package/dist/ui/panels/active-assets.js.map +0 -1
- package/dist/ui/panels/capability-flags.d.ts +0 -12
- package/dist/ui/panels/capability-flags.d.ts.map +0 -1
- package/dist/ui/panels/capability-flags.js +0 -59
- package/dist/ui/panels/capability-flags.js.map +0 -1
- package/dist/ui/panels/command-surface.d.ts +0 -12
- package/dist/ui/panels/command-surface.d.ts.map +0 -1
- package/dist/ui/panels/command-surface.js +0 -55
- package/dist/ui/panels/command-surface.js.map +0 -1
- package/dist/ui/panels/network-origin.d.ts +0 -12
- package/dist/ui/panels/network-origin.d.ts.map +0 -1
- package/dist/ui/panels/network-origin.js +0 -79
- package/dist/ui/panels/network-origin.js.map +0 -1
- package/dist/ui/panels/operations-feed.d.ts +0 -12
- package/dist/ui/panels/operations-feed.d.ts.map +0 -1
- package/dist/ui/panels/operations-feed.js +0 -90
- package/dist/ui/panels/operations-feed.js.map +0 -1
- package/dist/ui/panels/posture.d.ts +0 -12
- package/dist/ui/panels/posture.d.ts.map +0 -1
- package/dist/ui/panels/posture.js +0 -84
- package/dist/ui/panels/posture.js.map +0 -1
- package/dist/ui/panels/resources.d.ts +0 -11
- package/dist/ui/panels/resources.d.ts.map +0 -1
- package/dist/ui/panels/resources.js +0 -88
- package/dist/ui/panels/resources.js.map +0 -1
- package/dist/ui/primitives/Panel.d.ts +0 -25
- package/dist/ui/primitives/Panel.d.ts.map +0 -1
- package/dist/ui/primitives/Panel.js +0 -59
- package/dist/ui/primitives/Panel.js.map +0 -1
- package/dist/ui/rendering/metricRenderer.d.ts +0 -24
- package/dist/ui/rendering/metricRenderer.d.ts.map +0 -1
- package/dist/ui/rendering/metricRenderer.js +0 -86
- package/dist/ui/rendering/metricRenderer.js.map +0 -1
- package/dist/ui/runtime/hub.d.ts +0 -12
- package/dist/ui/runtime/hub.d.ts.map +0 -1
- package/dist/ui/runtime/hub.js +0 -486
- package/dist/ui/runtime/hub.js.map +0 -1
- package/dist/ui/runtime/hubValidation.d.ts +0 -23
- package/dist/ui/runtime/hubValidation.d.ts.map +0 -1
- package/dist/ui/runtime/hubValidation.js +0 -90
- package/dist/ui/runtime/hubValidation.js.map +0 -1
- package/dist/ui/runtime/index.d.ts +0 -29
- package/dist/ui/runtime/index.d.ts.map +0 -1
- package/dist/ui/runtime/index.js +0 -297
- package/dist/ui/runtime/index.js.map +0 -1
- package/dist/ui/runtime/no-tui.d.ts +0 -12
- package/dist/ui/runtime/no-tui.d.ts.map +0 -1
- package/dist/ui/runtime/no-tui.js +0 -77
- package/dist/ui/runtime/no-tui.js.map +0 -1
- package/dist/ui/runtime/state-builder.d.ts +0 -13
- package/dist/ui/runtime/state-builder.d.ts.map +0 -1
- package/dist/ui/runtime/state-builder.js +0 -114
- package/dist/ui/runtime/state-builder.js.map +0 -1
- package/dist/ui/runtime/terminalSizeCheck.d.ts +0 -10
- package/dist/ui/runtime/terminalSizeCheck.d.ts.map +0 -1
- package/dist/ui/runtime/terminalSizeCheck.js +0 -51
- package/dist/ui/runtime/terminalSizeCheck.js.map +0 -1
- package/dist/ui/runtime/tuiLogGate.d.ts +0 -22
- package/dist/ui/runtime/tuiLogGate.d.ts.map +0 -1
- package/dist/ui/runtime/tuiLogGate.js +0 -68
- package/dist/ui/runtime/tuiLogGate.js.map +0 -1
- package/dist/ui/state/types.d.ts +0 -72
- package/dist/ui/state/types.d.ts.map +0 -1
- package/dist/ui/state/types.js +0 -6
- package/dist/ui/state/types.js.map +0 -1
- package/dist/ui/theme/borders.d.ts +0 -20
- package/dist/ui/theme/borders.d.ts.map +0 -1
- package/dist/ui/theme/borders.js +0 -55
- package/dist/ui/theme/borders.js.map +0 -1
- package/dist/ui/theme/tokens.d.ts +0 -28
- package/dist/ui/theme/tokens.d.ts.map +0 -1
- package/dist/ui/theme/tokens.js +0 -50
- package/dist/ui/theme/tokens.js.map +0 -1
- package/dist/ui/theme/typography.d.ts +0 -14
- package/dist/ui/theme/typography.d.ts.map +0 -1
- package/dist/ui/theme/typography.js +0 -30
- package/dist/ui/theme/typography.js.map +0 -1
- package/dist/ui/v3/collectors/assets.collector.d.ts +0 -20
- package/dist/ui/v3/collectors/assets.collector.d.ts.map +0 -1
- package/dist/ui/v3/collectors/assets.collector.js +0 -80
- package/dist/ui/v3/collectors/assets.collector.js.map +0 -1
- package/dist/ui/v3/collectors/capabilities.collector.d.ts +0 -18
- package/dist/ui/v3/collectors/capabilities.collector.d.ts.map +0 -1
- package/dist/ui/v3/collectors/capabilities.collector.js +0 -113
- package/dist/ui/v3/collectors/capabilities.collector.js.map +0 -1
- package/dist/ui/v3/collectors/network.collector.d.ts +0 -18
- package/dist/ui/v3/collectors/network.collector.d.ts.map +0 -1
- package/dist/ui/v3/collectors/network.collector.js +0 -37
- package/dist/ui/v3/collectors/network.collector.js.map +0 -1
- package/dist/ui/v3/collectors/posture.derive.d.ts +0 -24
- package/dist/ui/v3/collectors/posture.derive.d.ts.map +0 -1
- package/dist/ui/v3/collectors/posture.derive.js +0 -57
- package/dist/ui/v3/collectors/posture.derive.js.map +0 -1
- package/dist/ui/v3/collectors/resources.d.ts +0 -23
- package/dist/ui/v3/collectors/resources.d.ts.map +0 -1
- package/dist/ui/v3/collectors/resources.js +0 -136
- package/dist/ui/v3/collectors/resources.js.map +0 -1
- package/dist/ui/v3/commands/commandEngine.d.ts +0 -77
- package/dist/ui/v3/commands/commandEngine.d.ts.map +0 -1
- package/dist/ui/v3/commands/commandEngine.js +0 -3289
- package/dist/ui/v3/commands/commandEngine.js.map +0 -1
- package/dist/ui/v3/commands/commandResult.d.ts +0 -25
- package/dist/ui/v3/commands/commandResult.d.ts.map +0 -1
- package/dist/ui/v3/commands/commandResult.js +0 -19
- package/dist/ui/v3/commands/commandResult.js.map +0 -1
- package/dist/ui/v3/commands/diagnose.d.ts +0 -17
- package/dist/ui/v3/commands/diagnose.d.ts.map +0 -1
- package/dist/ui/v3/commands/diagnose.js +0 -62
- package/dist/ui/v3/commands/diagnose.js.map +0 -1
- package/dist/ui/v3/commands/errorClassifier.d.ts +0 -23
- package/dist/ui/v3/commands/errorClassifier.d.ts.map +0 -1
- package/dist/ui/v3/commands/errorClassifier.js +0 -63
- package/dist/ui/v3/commands/errorClassifier.js.map +0 -1
- package/dist/ui/v3/commands/parser.d.ts +0 -14
- package/dist/ui/v3/commands/parser.d.ts.map +0 -1
- package/dist/ui/v3/commands/parser.js +0 -29
- package/dist/ui/v3/commands/parser.js.map +0 -1
- package/dist/ui/v3/commands/router.d.ts +0 -13
- package/dist/ui/v3/commands/router.d.ts.map +0 -1
- package/dist/ui/v3/commands/router.js +0 -150
- package/dist/ui/v3/commands/router.js.map +0 -1
- package/dist/ui/v3/config/gateway.d.ts +0 -40
- package/dist/ui/v3/config/gateway.d.ts.map +0 -1
- package/dist/ui/v3/config/gateway.js +0 -113
- package/dist/ui/v3/config/gateway.js.map +0 -1
- package/dist/ui/v3/core/event.d.ts +0 -19
- package/dist/ui/v3/core/event.d.ts.map +0 -1
- package/dist/ui/v3/core/event.js +0 -7
- package/dist/ui/v3/core/event.js.map +0 -1
- package/dist/ui/v3/core/eventBus.d.ts +0 -39
- package/dist/ui/v3/core/eventBus.d.ts.map +0 -1
- package/dist/ui/v3/core/eventBus.js +0 -79
- package/dist/ui/v3/core/eventBus.js.map +0 -1
- package/dist/ui/v3/core/feedStore.d.ts +0 -34
- package/dist/ui/v3/core/feedStore.d.ts.map +0 -1
- package/dist/ui/v3/core/feedStore.js +0 -46
- package/dist/ui/v3/core/feedStore.js.map +0 -1
- package/dist/ui/v3/core/logger.d.ts +0 -40
- package/dist/ui/v3/core/logger.d.ts.map +0 -1
- package/dist/ui/v3/core/logger.js +0 -191
- package/dist/ui/v3/core/logger.js.map +0 -1
- package/dist/ui/v3/core/opEvent.d.ts +0 -15
- package/dist/ui/v3/core/opEvent.d.ts.map +0 -1
- package/dist/ui/v3/core/opEvent.js +0 -7
- package/dist/ui/v3/core/opEvent.js.map +0 -1
- package/dist/ui/v3/index.d.ts +0 -8
- package/dist/ui/v3/index.d.ts.map +0 -1
- package/dist/ui/v3/index.js +0 -51
- package/dist/ui/v3/index.js.map +0 -1
- package/dist/ui/v3/runtime/moduleConfig.d.ts +0 -21
- package/dist/ui/v3/runtime/moduleConfig.d.ts.map +0 -1
- package/dist/ui/v3/runtime/moduleConfig.js +0 -41
- package/dist/ui/v3/runtime/moduleConfig.js.map +0 -1
- package/dist/ui/v3/section0/index.d.ts +0 -22
- package/dist/ui/v3/section0/index.d.ts.map +0 -1
- package/dist/ui/v3/section0/index.js +0 -88
- package/dist/ui/v3/section0/index.js.map +0 -1
- package/dist/ui/v3/section0/runtime/createScreen.d.ts +0 -27
- package/dist/ui/v3/section0/runtime/createScreen.d.ts.map +0 -1
- package/dist/ui/v3/section0/runtime/createScreen.js +0 -55
- package/dist/ui/v3/section0/runtime/createScreen.js.map +0 -1
- package/dist/ui/v3/section0/runtime/lifecycle.d.ts +0 -53
- package/dist/ui/v3/section0/runtime/lifecycle.d.ts.map +0 -1
- package/dist/ui/v3/section0/runtime/lifecycle.js +0 -172
- package/dist/ui/v3/section0/runtime/lifecycle.js.map +0 -1
- package/dist/ui/v3/section1/index.d.ts +0 -19
- package/dist/ui/v3/section1/index.d.ts.map +0 -1
- package/dist/ui/v3/section1/index.js +0 -413
- package/dist/ui/v3/section1/index.js.map +0 -1
- package/dist/ui/v3/section1/runtime/commandLine.d.ts +0 -49
- package/dist/ui/v3/section1/runtime/commandLine.d.ts.map +0 -1
- package/dist/ui/v3/section1/runtime/commandLine.js +0 -183
- package/dist/ui/v3/section1/runtime/commandLine.js.map +0 -1
- package/dist/ui/v3/section1/runtime/focusLock.d.ts +0 -24
- package/dist/ui/v3/section1/runtime/focusLock.d.ts.map +0 -1
- package/dist/ui/v3/section1/runtime/focusLock.js +0 -44
- package/dist/ui/v3/section1/runtime/focusLock.js.map +0 -1
- package/dist/ui/v3/state/assertUiState.d.ts +0 -27
- package/dist/ui/v3/state/assertUiState.d.ts.map +0 -1
- package/dist/ui/v3/state/assertUiState.js +0 -89
- package/dist/ui/v3/state/assertUiState.js.map +0 -1
- package/dist/ui/v3/state/capabilitiesStore.d.ts +0 -54
- package/dist/ui/v3/state/capabilitiesStore.d.ts.map +0 -1
- package/dist/ui/v3/state/capabilitiesStore.js +0 -76
- package/dist/ui/v3/state/capabilitiesStore.js.map +0 -1
- package/dist/ui/v3/state/defaultState.d.ts +0 -19
- package/dist/ui/v3/state/defaultState.d.ts.map +0 -1
- package/dist/ui/v3/state/defaultState.js +0 -28
- package/dist/ui/v3/state/defaultState.js.map +0 -1
- package/dist/ui/v3/state/gatewayConnectionStore.d.ts +0 -72
- package/dist/ui/v3/state/gatewayConnectionStore.d.ts.map +0 -1
- package/dist/ui/v3/state/gatewayConnectionStore.js +0 -108
- package/dist/ui/v3/state/gatewayConnectionStore.js.map +0 -1
- package/dist/ui/v3/state/initializePostureState.d.ts +0 -23
- package/dist/ui/v3/state/initializePostureState.d.ts.map +0 -1
- package/dist/ui/v3/state/initializePostureState.js +0 -41
- package/dist/ui/v3/state/initializePostureState.js.map +0 -1
- package/dist/ui/v3/state/panelStore.d.ts +0 -80
- package/dist/ui/v3/state/panelStore.d.ts.map +0 -1
- package/dist/ui/v3/state/panelStore.js +0 -131
- package/dist/ui/v3/state/panelStore.js.map +0 -1
- package/dist/ui/v3/state/resourcesData.d.ts +0 -15
- package/dist/ui/v3/state/resourcesData.d.ts.map +0 -1
- package/dist/ui/v3/state/resourcesData.js +0 -7
- package/dist/ui/v3/state/resourcesData.js.map +0 -1
- package/dist/ui/v3/state/uiState.d.ts +0 -22
- package/dist/ui/v3/state/uiState.d.ts.map +0 -1
- package/dist/ui/v3/state/uiState.js +0 -13
- package/dist/ui/v3/state/uiState.js.map +0 -1
- package/dist/ui/v3/state/uiStateBuilder.d.ts +0 -32
- package/dist/ui/v3/state/uiStateBuilder.d.ts.map +0 -1
- package/dist/ui/v3/state/uiStateBuilder.js +0 -73
- package/dist/ui/v3/state/uiStateBuilder.js.map +0 -1
- package/dist/ui/v3/state/uiStateTypes.d.ts +0 -59
- package/dist/ui/v3/state/uiStateTypes.d.ts.map +0 -1
- package/dist/ui/v3/state/uiStateTypes.js +0 -8
- package/dist/ui/v3/state/uiStateTypes.js.map +0 -1
- package/dist/ui/v3/state/value.d.ts +0 -80
- package/dist/ui/v3/state/value.d.ts.map +0 -1
- package/dist/ui/v3/state/value.js +0 -96
- package/dist/ui/v3/state/value.js.map +0 -1
- package/dist/ui/v3/tui/geometry.d.ts +0 -83
- package/dist/ui/v3/tui/geometry.d.ts.map +0 -1
- package/dist/ui/v3/tui/geometry.js +0 -201
- package/dist/ui/v3/tui/geometry.js.map +0 -1
- package/dist/ui/v3/tui/startTui.d.ts +0 -37
- package/dist/ui/v3/tui/startTui.d.ts.map +0 -1
- package/dist/ui/v3/tui/startTui.js +0 -61
- package/dist/ui/v3/tui/startTui.js.map +0 -1
- package/dist/ui/v3/tui/terminalMode.d.ts +0 -31
- package/dist/ui/v3/tui/terminalMode.d.ts.map +0 -1
- package/dist/ui/v3/tui/terminalMode.js +0 -76
- package/dist/ui/v3/tui/terminalMode.js.map +0 -1
- package/dist/ui/v3/ui/debugUtils.d.ts +0 -67
- package/dist/ui/v3/ui/debugUtils.d.ts.map +0 -1
- package/dist/ui/v3/ui/debugUtils.js +0 -238
- package/dist/ui/v3/ui/debugUtils.js.map +0 -1
- package/dist/ui/v3/ui/focus.d.ts +0 -28
- package/dist/ui/v3/ui/focus.d.ts.map +0 -1
- package/dist/ui/v3/ui/focus.js +0 -38
- package/dist/ui/v3/ui/focus.js.map +0 -1
- package/dist/ui/v3/ui/layout/hubLayout.d.ts +0 -43
- package/dist/ui/v3/ui/layout/hubLayout.d.ts.map +0 -1
- package/dist/ui/v3/ui/layout/hubLayout.js +0 -170
- package/dist/ui/v3/ui/layout/hubLayout.js.map +0 -1
- package/dist/ui/v3/ui/layout/phase1Layout.d.ts +0 -63
- package/dist/ui/v3/ui/layout/phase1Layout.d.ts.map +0 -1
- package/dist/ui/v3/ui/layout/phase1Layout.js +0 -274
- package/dist/ui/v3/ui/layout/phase1Layout.js.map +0 -1
- package/dist/ui/v3/ui/layout/phase1Layout.test.d.ts +0 -5
- package/dist/ui/v3/ui/layout/phase1Layout.test.d.ts.map +0 -1
- package/dist/ui/v3/ui/layout/phase1Layout.test.js +0 -120
- package/dist/ui/v3/ui/layout/phase1Layout.test.js.map +0 -1
- package/dist/ui/v3/ui/minimalRuntime.d.ts +0 -14
- package/dist/ui/v3/ui/minimalRuntime.d.ts.map +0 -1
- package/dist/ui/v3/ui/minimalRuntime.js +0 -111
- package/dist/ui/v3/ui/minimalRuntime.js.map +0 -1
- package/dist/ui/v3/ui/panels/AssetsPanel.d.ts +0 -17
- package/dist/ui/v3/ui/panels/AssetsPanel.d.ts.map +0 -1
- package/dist/ui/v3/ui/panels/AssetsPanel.js +0 -53
- package/dist/ui/v3/ui/panels/AssetsPanel.js.map +0 -1
- package/dist/ui/v3/ui/panels/CapabilitiesPanel.d.ts +0 -20
- package/dist/ui/v3/ui/panels/CapabilitiesPanel.d.ts.map +0 -1
- package/dist/ui/v3/ui/panels/CapabilitiesPanel.js +0 -67
- package/dist/ui/v3/ui/panels/CapabilitiesPanel.js.map +0 -1
- package/dist/ui/v3/ui/panels/NetworkPanel.d.ts +0 -31
- package/dist/ui/v3/ui/panels/NetworkPanel.d.ts.map +0 -1
- package/dist/ui/v3/ui/panels/NetworkPanel.js +0 -153
- package/dist/ui/v3/ui/panels/NetworkPanel.js.map +0 -1
- package/dist/ui/v3/ui/panels/PosturePanel.d.ts +0 -16
- package/dist/ui/v3/ui/panels/PosturePanel.d.ts.map +0 -1
- package/dist/ui/v3/ui/panels/PosturePanel.js +0 -60
- package/dist/ui/v3/ui/panels/PosturePanel.js.map +0 -1
- package/dist/ui/v3/ui/panels/ResourcesPanel.d.ts +0 -20
- package/dist/ui/v3/ui/panels/ResourcesPanel.d.ts.map +0 -1
- package/dist/ui/v3/ui/panels/ResourcesPanel.js +0 -66
- package/dist/ui/v3/ui/panels/ResourcesPanel.js.map +0 -1
- package/dist/ui/v3/ui/phase1Runtime.d.ts +0 -29
- package/dist/ui/v3/ui/phase1Runtime.d.ts.map +0 -1
- package/dist/ui/v3/ui/phase1Runtime.js +0 -1648
- package/dist/ui/v3/ui/phase1Runtime.js.map +0 -1
- package/dist/ui/v3/ui/phase1RuntimeClean.d.ts +0 -34
- package/dist/ui/v3/ui/phase1RuntimeClean.d.ts.map +0 -1
- package/dist/ui/v3/ui/phase1RuntimeClean.js +0 -1841
- package/dist/ui/v3/ui/phase1RuntimeClean.js.map +0 -1
- package/dist/ui/v3/ui/primitives/Panel.d.ts +0 -39
- package/dist/ui/v3/ui/primitives/Panel.d.ts.map +0 -1
- package/dist/ui/v3/ui/primitives/Panel.js +0 -105
- package/dist/ui/v3/ui/primitives/Panel.js.map +0 -1
- package/dist/ui/v3/ui/theme.d.ts +0 -37
- package/dist/ui/v3/ui/theme.d.ts.map +0 -1
- package/dist/ui/v3/ui/theme.js +0 -40
- package/dist/ui/v3/ui/theme.js.map +0 -1
- package/dist/ui/v3/ui/uiRuntime.d.ts +0 -40
- package/dist/ui/v3/ui/uiRuntime.d.ts.map +0 -1
- package/dist/ui/v3/ui/uiRuntime.js +0 -60
- package/dist/ui/v3/ui/uiRuntime.js.map +0 -1
- package/dist/ui/v3/ui/widgets/CommandLine.d.ts +0 -26
- package/dist/ui/v3/ui/widgets/CommandLine.d.ts.map +0 -1
- package/dist/ui/v3/ui/widgets/CommandLine.js +0 -67
- package/dist/ui/v3/ui/widgets/CommandLine.js.map +0 -1
- package/dist/ui/v3/v1Adapters/agents.d.ts +0 -72
- package/dist/ui/v3/v1Adapters/agents.d.ts.map +0 -1
- package/dist/ui/v3/v1Adapters/agents.js +0 -182
- package/dist/ui/v3/v1Adapters/agents.js.map +0 -1
- package/dist/ui/v3/v1Adapters/config.d.ts +0 -67
- package/dist/ui/v3/v1Adapters/config.d.ts.map +0 -1
- package/dist/ui/v3/v1Adapters/config.js +0 -78
- package/dist/ui/v3/v1Adapters/config.js.map +0 -1
- package/dist/ui/v3/v1Adapters/connect.d.ts +0 -77
- package/dist/ui/v3/v1Adapters/connect.d.ts.map +0 -1
- package/dist/ui/v3/v1Adapters/connect.js +0 -576
- package/dist/ui/v3/v1Adapters/connect.js.map +0 -1
- package/dist/ui/v3/v1Adapters/httpDebug.d.ts +0 -19
- package/dist/ui/v3/v1Adapters/httpDebug.d.ts.map +0 -1
- package/dist/ui/v3/v1Adapters/httpDebug.js +0 -60
- package/dist/ui/v3/v1Adapters/httpDebug.js.map +0 -1
- package/dist/ui/v3/v1Adapters/runs.d.ts +0 -77
- package/dist/ui/v3/v1Adapters/runs.d.ts.map +0 -1
- package/dist/ui/v3/v1Adapters/runs.js +0 -339
- package/dist/ui/v3/v1Adapters/runs.js.map +0 -1
- package/dist/ui/v4/engine/renderFrame.d.ts +0 -47
- package/dist/ui/v4/engine/renderFrame.d.ts.map +0 -1
- package/dist/ui/v4/engine/renderFrame.js +0 -653
- package/dist/ui/v4/engine/renderFrame.js.map +0 -1
- package/dist/ui/v4/engine/resizeController.d.ts +0 -48
- package/dist/ui/v4/engine/resizeController.d.ts.map +0 -1
- package/dist/ui/v4/engine/resizeController.js +0 -285
- package/dist/ui/v4/engine/resizeController.js.map +0 -1
- package/dist/ui/v4/engine/safeViewport.d.ts +0 -47
- package/dist/ui/v4/engine/safeViewport.d.ts.map +0 -1
- package/dist/ui/v4/engine/safeViewport.js +0 -123
- package/dist/ui/v4/engine/safeViewport.js.map +0 -1
- package/dist/ui/v4/engine/terminalProfile.d.ts +0 -56
- package/dist/ui/v4/engine/terminalProfile.d.ts.map +0 -1
- package/dist/ui/v4/engine/terminalProfile.js +0 -115
- package/dist/ui/v4/engine/terminalProfile.js.map +0 -1
- package/dist/ui/v4/index.d.ts +0 -28
- package/dist/ui/v4/index.d.ts.map +0 -1
- package/dist/ui/v4/index.js +0 -993
- package/dist/ui/v4/index.js.map +0 -1
- package/dist/ui/v4/layout/layoutEngine.d.ts +0 -62
- package/dist/ui/v4/layout/layoutEngine.d.ts.map +0 -1
- package/dist/ui/v4/layout/layoutEngine.js +0 -294
- package/dist/ui/v4/layout/layoutEngine.js.map +0 -1
- package/dist/ui/v4/runtime/keepAlive.d.ts +0 -21
- package/dist/ui/v4/runtime/keepAlive.d.ts.map +0 -1
- package/dist/ui/v4/runtime/keepAlive.js +0 -149
- package/dist/ui/v4/runtime/keepAlive.js.map +0 -1
- package/dist/ui/v4/runtime/logger.d.ts +0 -35
- package/dist/ui/v4/runtime/logger.d.ts.map +0 -1
- package/dist/ui/v4/runtime/logger.js +0 -109
- package/dist/ui/v4/runtime/logger.js.map +0 -1
- package/dist/ui/v5/debug/assertNoOverflow.d.ts +0 -28
- package/dist/ui/v5/debug/assertNoOverflow.d.ts.map +0 -1
- package/dist/ui/v5/debug/assertNoOverflow.js +0 -63
- package/dist/ui/v5/debug/assertNoOverflow.js.map +0 -1
- package/dist/ui/v5/debug/debugCommands.d.ts +0 -20
- package/dist/ui/v5/debug/debugCommands.d.ts.map +0 -1
- package/dist/ui/v5/debug/debugCommands.js +0 -461
- package/dist/ui/v5/debug/debugCommands.js.map +0 -1
- package/dist/ui/v5/debugCommands.d.ts +0 -20
- package/dist/ui/v5/debugCommands.d.ts.map +0 -1
- package/dist/ui/v5/debugCommands.js +0 -81
- package/dist/ui/v5/debugCommands.js.map +0 -1
- package/dist/ui/v5/guardrails/stdoutGuard.d.ts +0 -23
- package/dist/ui/v5/guardrails/stdoutGuard.d.ts.map +0 -1
- package/dist/ui/v5/guardrails/stdoutGuard.js +0 -94
- package/dist/ui/v5/guardrails/stdoutGuard.js.map +0 -1
- package/dist/ui/v5/guardrails/terminalRestore.d.ts +0 -17
- package/dist/ui/v5/guardrails/terminalRestore.d.ts.map +0 -1
- package/dist/ui/v5/guardrails/terminalRestore.js +0 -47
- package/dist/ui/v5/guardrails/terminalRestore.js.map +0 -1
- package/dist/ui/v5/index.d.ts +0 -30
- package/dist/ui/v5/index.d.ts.map +0 -1
- package/dist/ui/v5/index.js +0 -243
- package/dist/ui/v5/index.js.map +0 -1
- package/dist/ui/v5/kernel/kernel.d.ts +0 -81
- package/dist/ui/v5/kernel/kernel.d.ts.map +0 -1
- package/dist/ui/v5/kernel/kernel.js +0 -339
- package/dist/ui/v5/kernel/kernel.js.map +0 -1
- package/dist/ui/v5/kernel.d.ts +0 -75
- package/dist/ui/v5/kernel.d.ts.map +0 -1
- package/dist/ui/v5/kernel.js +0 -289
- package/dist/ui/v5/kernel.js.map +0 -1
- package/dist/ui/v5/layout/clampRect.d.ts +0 -28
- package/dist/ui/v5/layout/clampRect.d.ts.map +0 -1
- package/dist/ui/v5/layout/clampRect.js +0 -45
- package/dist/ui/v5/layout/clampRect.js.map +0 -1
- package/dist/ui/v5/layout/layoutEngine.d.ts +0 -16
- package/dist/ui/v5/layout/layoutEngine.d.ts.map +0 -1
- package/dist/ui/v5/layout/layoutEngine.js +0 -99
- package/dist/ui/v5/layout/layoutEngine.js.map +0 -1
- package/dist/ui/v5/renderGate.d.ts +0 -19
- package/dist/ui/v5/renderGate.d.ts.map +0 -1
- package/dist/ui/v5/renderGate.js +0 -36
- package/dist/ui/v5/renderGate.js.map +0 -1
- package/dist/ui/v5/resize/resizeController.d.ts +0 -62
- package/dist/ui/v5/resize/resizeController.d.ts.map +0 -1
- package/dist/ui/v5/resize/resizeController.js +0 -141
- package/dist/ui/v5/resize/resizeController.js.map +0 -1
- package/dist/ui/v5/resizeController.d.ts +0 -55
- package/dist/ui/v5/resizeController.d.ts.map +0 -1
- package/dist/ui/v5/resizeController.js +0 -124
- package/dist/ui/v5/resizeController.js.map +0 -1
- package/dist/ui/v5/runtime/keepAlive.d.ts +0 -37
- package/dist/ui/v5/runtime/keepAlive.d.ts.map +0 -1
- package/dist/ui/v5/runtime/keepAlive.js +0 -122
- package/dist/ui/v5/runtime/keepAlive.js.map +0 -1
- package/dist/ui/v5/runtime/restoreTerminal.d.ts +0 -34
- package/dist/ui/v5/runtime/restoreTerminal.d.ts.map +0 -1
- package/dist/ui/v5/runtime/restoreTerminal.js +0 -100
- package/dist/ui/v5/runtime/restoreTerminal.js.map +0 -1
- package/dist/ui/v5/runtime/stdoutGuard.d.ts +0 -42
- package/dist/ui/v5/runtime/stdoutGuard.d.ts.map +0 -1
- package/dist/ui/v5/runtime/stdoutGuard.js +0 -156
- package/dist/ui/v5/runtime/stdoutGuard.js.map +0 -1
- package/dist/ui/v5/viewport/getViewport.d.ts +0 -23
- package/dist/ui/v5/viewport/getViewport.d.ts.map +0 -1
- package/dist/ui/v5/viewport/getViewport.js +0 -117
- package/dist/ui/v5/viewport/getViewport.js.map +0 -1
- package/dist/ui/v5/viewport.d.ts +0 -41
- package/dist/ui/v5/viewport.d.ts.map +0 -1
- package/dist/ui/v5/viewport.js +0 -90
- package/dist/ui/v5/viewport.js.map +0 -1
- package/dist/ui/widgets/flagRow.d.ts +0 -25
- package/dist/ui/widgets/flagRow.d.ts.map +0 -1
- package/dist/ui/widgets/flagRow.js +0 -57
- package/dist/ui/widgets/flagRow.js.map +0 -1
- package/dist/ui/widgets/index.d.ts +0 -9
- package/dist/ui/widgets/index.d.ts.map +0 -1
- package/dist/ui/widgets/index.js +0 -9
- package/dist/ui/widgets/index.js.map +0 -1
- package/dist/ui/widgets/meter.d.ts +0 -18
- package/dist/ui/widgets/meter.d.ts.map +0 -1
- package/dist/ui/widgets/meter.js +0 -38
- package/dist/ui/widgets/meter.js.map +0 -1
- package/dist/ui/widgets/miniMap.d.ts +0 -26
- package/dist/ui/widgets/miniMap.d.ts.map +0 -1
- package/dist/ui/widgets/miniMap.js +0 -94
- package/dist/ui/widgets/miniMap.js.map +0 -1
- package/dist/ui/widgets/sparkline.d.ts +0 -17
- package/dist/ui/widgets/sparkline.d.ts.map +0 -1
- package/dist/ui/widgets/sparkline.js +0 -65
- package/dist/ui/widgets/sparkline.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hubLayout.d.ts","sourceRoot":"","sources":["../../../../../src/ui/v3/ui/layout/hubLayout.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,WAAW,OAAO;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,OAAO,CAAC;IACtB,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,OAAO,CAAC;IACZ,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAMD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,YAAY,CAsH5E"}
|
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Hub Layout Calculator
|
|
3
|
-
*
|
|
4
|
-
* Pure function to compute panel positions and sizes.
|
|
5
|
-
* NO blessed logic here - just math.
|
|
6
|
-
*/
|
|
7
|
-
const MIN_WIDTH = 120;
|
|
8
|
-
const MIN_HEIGHT = 35;
|
|
9
|
-
const BOTTOM_BAR_HEIGHT = 3;
|
|
10
|
-
/**
|
|
11
|
-
* Compute hub layout for given terminal dimensions
|
|
12
|
-
*
|
|
13
|
-
* Layout structure:
|
|
14
|
-
* - Left column (3 panels): POSTURE, RESOURCES, ACTIVE ASSETS (~30% width)
|
|
15
|
-
* - Center main (1 panel): OPERATIONS FEED (remaining width)
|
|
16
|
-
* - Right column (2 panels): NETWORK/ORIGIN, CAPABILITY FLAGS (~25% width)
|
|
17
|
-
* - Bottom bar (1 panel): COMMAND SURFACE + STATUS STRIP (fixed 3 lines)
|
|
18
|
-
*
|
|
19
|
-
* Rules:
|
|
20
|
-
* - Minimum size: 120x35
|
|
21
|
-
* - No overlaps
|
|
22
|
-
* - No negative dimensions
|
|
23
|
-
* - No zero-height panels
|
|
24
|
-
*/
|
|
25
|
-
export function computeHubLayout(width, height) {
|
|
26
|
-
// Check minimum size
|
|
27
|
-
if (width < MIN_WIDTH || height < MIN_HEIGHT) {
|
|
28
|
-
return {
|
|
29
|
-
ok: false,
|
|
30
|
-
errorMessage: `Terminal too small (need ${MIN_WIDTH}x${MIN_HEIGHT})`,
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
// Allocate bottom bar (fixed height)
|
|
34
|
-
const bottomBarHeight = BOTTOM_BAR_HEIGHT;
|
|
35
|
-
const availableHeight = height - bottomBarHeight - 1; // -1 for divider
|
|
36
|
-
// Allocate column widths
|
|
37
|
-
// Account for dividers: 1 between left-center, 1 between center-right
|
|
38
|
-
const leftColWidth = Math.floor(width * 0.30); // 30%
|
|
39
|
-
const rightColWidth = Math.floor(width * 0.25); // 25%
|
|
40
|
-
const centerWidth = width - leftColWidth - rightColWidth - 2; // -2 for dividers between columns
|
|
41
|
-
// Validate no negative dimensions
|
|
42
|
-
if (leftColWidth <= 0 || rightColWidth <= 0 || centerWidth <= 0 || availableHeight <= 0) {
|
|
43
|
-
return {
|
|
44
|
-
ok: false,
|
|
45
|
-
errorMessage: `Terminal too small (need ${MIN_WIDTH}x${MIN_HEIGHT})`,
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
// Left column: 3 panels stacked evenly with spacing
|
|
49
|
-
const leftPanelSpacing = 1; // 1 line spacing between panels
|
|
50
|
-
// Total: 3 panels + 2 spacers = availableHeight
|
|
51
|
-
// So: leftPanelHeight = (availableHeight - 2 * spacing) / 3
|
|
52
|
-
const leftPanelHeight = Math.floor((availableHeight - 2 * leftPanelSpacing) / 3);
|
|
53
|
-
// Right column: 2 panels (top larger, bottom smaller)
|
|
54
|
-
const rightTopHeight = Math.floor(availableHeight * 0.6); // 60% for top
|
|
55
|
-
const rightBottomHeight = availableHeight - rightTopHeight - leftPanelSpacing; // remaining for bottom
|
|
56
|
-
// Calculate positions
|
|
57
|
-
let currentTop = 0;
|
|
58
|
-
// Left column panels
|
|
59
|
-
const posture = {
|
|
60
|
-
top: currentTop,
|
|
61
|
-
left: 0,
|
|
62
|
-
width: leftColWidth,
|
|
63
|
-
height: leftPanelHeight,
|
|
64
|
-
};
|
|
65
|
-
currentTop += leftPanelHeight + leftPanelSpacing;
|
|
66
|
-
const resources = {
|
|
67
|
-
top: currentTop,
|
|
68
|
-
left: 0,
|
|
69
|
-
width: leftColWidth,
|
|
70
|
-
height: leftPanelHeight,
|
|
71
|
-
};
|
|
72
|
-
currentTop += leftPanelHeight + leftPanelSpacing;
|
|
73
|
-
const assets = {
|
|
74
|
-
top: currentTop,
|
|
75
|
-
left: 0,
|
|
76
|
-
width: leftColWidth,
|
|
77
|
-
height: leftPanelHeight,
|
|
78
|
-
};
|
|
79
|
-
// Center panel (full available height)
|
|
80
|
-
const feed = {
|
|
81
|
-
top: 0,
|
|
82
|
-
left: leftColWidth + 1, // +1 for divider
|
|
83
|
-
width: centerWidth,
|
|
84
|
-
height: availableHeight,
|
|
85
|
-
};
|
|
86
|
-
// Right column panels
|
|
87
|
-
const network = {
|
|
88
|
-
top: 0,
|
|
89
|
-
left: leftColWidth + centerWidth + 2, // +1 for left divider, +1 for center divider
|
|
90
|
-
width: rightColWidth,
|
|
91
|
-
height: rightTopHeight,
|
|
92
|
-
};
|
|
93
|
-
const capabilities = {
|
|
94
|
-
top: rightTopHeight + leftPanelSpacing,
|
|
95
|
-
left: leftColWidth + centerWidth + 2,
|
|
96
|
-
width: rightColWidth,
|
|
97
|
-
height: rightBottomHeight,
|
|
98
|
-
};
|
|
99
|
-
// Bottom bar (full width)
|
|
100
|
-
const bottom = {
|
|
101
|
-
top: availableHeight + 1, // +1 for divider
|
|
102
|
-
left: 0,
|
|
103
|
-
width: width,
|
|
104
|
-
height: bottomBarHeight,
|
|
105
|
-
};
|
|
106
|
-
// Validate no overlaps or negative dimensions
|
|
107
|
-
const layout = {
|
|
108
|
-
posture,
|
|
109
|
-
resources,
|
|
110
|
-
assets,
|
|
111
|
-
feed,
|
|
112
|
-
network,
|
|
113
|
-
capabilities,
|
|
114
|
-
bottom,
|
|
115
|
-
};
|
|
116
|
-
// Final validation
|
|
117
|
-
if (!validateLayout(layout, width, height)) {
|
|
118
|
-
return {
|
|
119
|
-
ok: false,
|
|
120
|
-
errorMessage: `Terminal too small (need ${MIN_WIDTH}x${MIN_HEIGHT})`,
|
|
121
|
-
};
|
|
122
|
-
}
|
|
123
|
-
return {
|
|
124
|
-
ok: true,
|
|
125
|
-
layout,
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
/**
|
|
129
|
-
* Validate layout has no overlaps or invalid dimensions
|
|
130
|
-
*/
|
|
131
|
-
function validateLayout(layout, terminalWidth, terminalHeight) {
|
|
132
|
-
const panels = [
|
|
133
|
-
layout.posture,
|
|
134
|
-
layout.resources,
|
|
135
|
-
layout.assets,
|
|
136
|
-
layout.feed,
|
|
137
|
-
layout.network,
|
|
138
|
-
layout.capabilities,
|
|
139
|
-
layout.bottom,
|
|
140
|
-
];
|
|
141
|
-
// Check for negative or zero dimensions
|
|
142
|
-
for (const panel of panels) {
|
|
143
|
-
if (panel.width <= 0 || panel.height <= 0 || panel.top < 0 || panel.left < 0) {
|
|
144
|
-
return false;
|
|
145
|
-
}
|
|
146
|
-
// Check bounds
|
|
147
|
-
if (panel.left + panel.width > terminalWidth || panel.top + panel.height > terminalHeight) {
|
|
148
|
-
return false;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
// Check for overlaps (simple check - panels should not intersect)
|
|
152
|
-
for (let i = 0; i < panels.length; i++) {
|
|
153
|
-
for (let j = i + 1; j < panels.length; j++) {
|
|
154
|
-
if (panelsIntersect(panels[i], panels[j])) {
|
|
155
|
-
return false;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
return true;
|
|
160
|
-
}
|
|
161
|
-
/**
|
|
162
|
-
* Check if two rectangles intersect
|
|
163
|
-
*/
|
|
164
|
-
function panelsIntersect(a, b) {
|
|
165
|
-
return !(a.left + a.width <= b.left ||
|
|
166
|
-
b.left + b.width <= a.left ||
|
|
167
|
-
a.top + a.height <= b.top ||
|
|
168
|
-
b.top + b.height <= a.top);
|
|
169
|
-
}
|
|
170
|
-
//# sourceMappingURL=hubLayout.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hubLayout.js","sourceRoot":"","sources":["../../../../../src/ui/v3/ui/layout/hubLayout.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAyBH,MAAM,SAAS,GAAG,GAAG,CAAC;AACtB,MAAM,UAAU,GAAG,EAAE,CAAC;AACtB,MAAM,iBAAiB,GAAG,CAAC,CAAC;AAE5B;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,gBAAgB,CAAC,KAAa,EAAE,MAAc;IAC5D,qBAAqB;IACrB,IAAI,KAAK,GAAG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AE,CAAC;QACvC,KAAK,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YAC3C,IAAI,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;gBAC1C,OAAO,KAAK,CAAC;YACf,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;GAEG;AACH,SAAS,eAAe,CAAC,CAAU,EAAE,CAAU;IAC7C,OAAO,CAAC,CACN,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,IAAI;QAC1B,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,IAAI;QAC1B,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,GAAG;QACzB,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,GAAG,CAC1B,CAAC;AACJ,CAAC"}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Phase 1 Layout Calculator - FINAL BULLETPROOF EDITION
|
|
3
|
-
*
|
|
4
|
-
* Fixed hub layout with 7 boxes:
|
|
5
|
-
* - Left column (3 stacked): POSTURE, RESOURCES, ASSETS
|
|
6
|
-
* - Center (1): OPERATIONS
|
|
7
|
-
* - Right column (2 stacked): NETWORK, CAPABILITIES
|
|
8
|
-
* - Bottom bar (1): COMMAND LINE
|
|
9
|
-
*
|
|
10
|
-
* CRITICAL RULES (NEVER VIOLATE):
|
|
11
|
-
* 1. Use geometry.ts for all dimension queries
|
|
12
|
-
* 2. Total width MUST NOT exceed safeCols
|
|
13
|
-
* 3. Total height MUST NOT exceed safeRows
|
|
14
|
-
* 4. No floating point math - only integers
|
|
15
|
-
* 5. Right column width calculated as REMAINDER (prevents rounding errors)
|
|
16
|
-
* 6. All positions validated before return
|
|
17
|
-
* 7. All text must use fitText() to prevent overflow
|
|
18
|
-
*/
|
|
19
|
-
import type { Widgets } from 'neo-blessed';
|
|
20
|
-
export interface BoxRect {
|
|
21
|
-
top: number;
|
|
22
|
-
left: number;
|
|
23
|
-
width: number;
|
|
24
|
-
height: number;
|
|
25
|
-
}
|
|
26
|
-
export interface Phase1Layout {
|
|
27
|
-
posture: BoxRect;
|
|
28
|
-
resources: BoxRect;
|
|
29
|
-
assets: BoxRect;
|
|
30
|
-
operations: BoxRect;
|
|
31
|
-
network: BoxRect;
|
|
32
|
-
capabilities: BoxRect;
|
|
33
|
-
commandLine: BoxRect;
|
|
34
|
-
}
|
|
35
|
-
export interface LayoutMetadata {
|
|
36
|
-
colsUsed: number;
|
|
37
|
-
rowsUsed: number;
|
|
38
|
-
availableWidth: number;
|
|
39
|
-
availableHeight: number;
|
|
40
|
-
gutters: number;
|
|
41
|
-
margins: number;
|
|
42
|
-
minCols: number;
|
|
43
|
-
maxCols: number | null;
|
|
44
|
-
}
|
|
45
|
-
export interface LayoutResult {
|
|
46
|
-
ok: boolean;
|
|
47
|
-
errorMessage?: string;
|
|
48
|
-
layout?: Phase1Layout;
|
|
49
|
-
metadata?: LayoutMetadata;
|
|
50
|
-
}
|
|
51
|
-
export declare const MIN_WIDTH = 80;
|
|
52
|
-
export declare const MIN_HEIGHT = 24;
|
|
53
|
-
/**
|
|
54
|
-
* Compute Phase 1 layout - FINAL BULLETPROOF IMPLEMENTATION
|
|
55
|
-
*
|
|
56
|
-
* This function GUARANTEES:
|
|
57
|
-
* - Never exceeds terminal dimensions
|
|
58
|
-
* - Works on ANY terminal size >= MIN_WIDTH x MIN_HEIGHT
|
|
59
|
-
* - Integer math only (no rounding errors)
|
|
60
|
-
* - Uses geometry.ts as single source of truth
|
|
61
|
-
*/
|
|
62
|
-
export declare function computePhase1Layout(width: number, height: number, screen?: Widgets.Screen): LayoutResult;
|
|
63
|
-
//# sourceMappingURL=phase1Layout.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"phase1Layout.d.ts","sourceRoot":"","sources":["../../../../../src/ui/v3/ui/layout/phase1Layout.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAG3C,MAAM,WAAW,OAAO;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,OAAO,CAAC;IACtB,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAED,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,OAAO,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,QAAQ,CAAC,EAAE,cAAc,CAAC;CAC3B;AAGD,eAAO,MAAM,SAAS,KAAK,CAAC;AAC5B,eAAO,MAAM,UAAU,KAAK,CAAC;AAM7B;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,MAAM,GAAG,YAAY,CAgSxG"}
|
|
@@ -1,274 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Phase 1 Layout Calculator - FINAL BULLETPROOF EDITION
|
|
3
|
-
*
|
|
4
|
-
* Fixed hub layout with 7 boxes:
|
|
5
|
-
* - Left column (3 stacked): POSTURE, RESOURCES, ASSETS
|
|
6
|
-
* - Center (1): OPERATIONS
|
|
7
|
-
* - Right column (2 stacked): NETWORK, CAPABILITIES
|
|
8
|
-
* - Bottom bar (1): COMMAND LINE
|
|
9
|
-
*
|
|
10
|
-
* CRITICAL RULES (NEVER VIOLATE):
|
|
11
|
-
* 1. Use geometry.ts for all dimension queries
|
|
12
|
-
* 2. Total width MUST NOT exceed safeCols
|
|
13
|
-
* 3. Total height MUST NOT exceed safeRows
|
|
14
|
-
* 4. No floating point math - only integers
|
|
15
|
-
* 5. Right column width calculated as REMAINDER (prevents rounding errors)
|
|
16
|
-
* 6. All positions validated before return
|
|
17
|
-
* 7. All text must use fitText() to prevent overflow
|
|
18
|
-
*/
|
|
19
|
-
import { getTerminalGeometry } from '../../tui/geometry.js';
|
|
20
|
-
// Minimum terminal size (tested on small terminals)
|
|
21
|
-
export const MIN_WIDTH = 80;
|
|
22
|
-
export const MIN_HEIGHT = 24;
|
|
23
|
-
// Layout constants (NEVER change these without testing on multiple terminal sizes)
|
|
24
|
-
const COMMAND_LINE_HEIGHT = 3; // Fixed height for command line
|
|
25
|
-
const GUTTER = 1; // Space between columns (MUST be 1 for blessed compatibility)
|
|
26
|
-
/**
|
|
27
|
-
* Compute Phase 1 layout - FINAL BULLETPROOF IMPLEMENTATION
|
|
28
|
-
*
|
|
29
|
-
* This function GUARANTEES:
|
|
30
|
-
* - Never exceeds terminal dimensions
|
|
31
|
-
* - Works on ANY terminal size >= MIN_WIDTH x MIN_HEIGHT
|
|
32
|
-
* - Integer math only (no rounding errors)
|
|
33
|
-
* - Uses geometry.ts as single source of truth
|
|
34
|
-
*/
|
|
35
|
-
export function computePhase1Layout(width, height, screen) {
|
|
36
|
-
// Step 2: Get geometry from authoritative source (screen values take priority)
|
|
37
|
-
const geo = getTerminalGeometry(screen);
|
|
38
|
-
// Step 4: Use geometry values directly (geometry is authoritative, ignore passed width/height)
|
|
39
|
-
// The passed width/height are only hints - we always use fresh geometry values
|
|
40
|
-
const safeWidth = geo.safeCols;
|
|
41
|
-
const safeHeight = geo.safeRows;
|
|
42
|
-
// Enforce minimum terminal size
|
|
43
|
-
if (safeWidth < MIN_WIDTH || safeHeight < MIN_HEIGHT) {
|
|
44
|
-
return {
|
|
45
|
-
ok: false,
|
|
46
|
-
errorMessage: `Terminal too small: ${safeWidth}x${safeHeight} (need ${MIN_WIDTH}x${MIN_HEIGHT})`,
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
// ============================================================================
|
|
50
|
-
// STEP 1: Calculate available space (subtract command line)
|
|
51
|
-
// ============================================================================
|
|
52
|
-
const contentHeight = safeHeight - COMMAND_LINE_HEIGHT - GUTTER;
|
|
53
|
-
// ============================================================================
|
|
54
|
-
// STEP 2: Calculate column widths (3 columns: left, center, right)
|
|
55
|
-
// CRITICAL: Use integer division and calculate right as REMAINDER
|
|
56
|
-
// geometry.ts already handles browser terminal margins in safeCols, so we
|
|
57
|
-
// can trust safeWidth and only subtract gutters for local terminals
|
|
58
|
-
// ============================================================================
|
|
59
|
-
const totalGutters = GUTTER * 2; // 2 gutters between 3 columns
|
|
60
|
-
// Detect if this is a browser terminal (use mode from geometry - authoritative)
|
|
61
|
-
const isBrowserTerminal = geo.mode === 'browser';
|
|
62
|
-
// For local terminals: use FULL width (safeWidth = cols for local terminals)
|
|
63
|
-
// For browser terminals: geometry.ts already subtracted browser margin, so use safeWidth as-is
|
|
64
|
-
// Use full safeWidth minus only the gutters needed for column spacing
|
|
65
|
-
// This ensures we fill the entire terminal width
|
|
66
|
-
const availableWidth = safeWidth - totalGutters;
|
|
67
|
-
// Ensure minimum width but don't artificially limit large terminals
|
|
68
|
-
if (availableWidth < MIN_WIDTH) {
|
|
69
|
-
return {
|
|
70
|
-
ok: false,
|
|
71
|
-
errorMessage: `Terminal too narrow: ${safeWidth} (need ${MIN_WIDTH + totalGutters})`,
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
// Step 4: Responsive widths with ratio + clamps (NO MAX WIDTH)
|
|
75
|
-
// Left column: 20% with clamp(34, ..., 52)
|
|
76
|
-
const leftColWidth = Math.max(34, Math.min(Math.floor(availableWidth * 0.20), 52));
|
|
77
|
-
// Right column: 26% with clamp(34, ..., 62)
|
|
78
|
-
const rightColWidth = Math.max(34, Math.min(Math.floor(availableWidth * 0.26), 62));
|
|
79
|
-
// Center column: REMAINDER (guarantees no overflow, scales with terminal)
|
|
80
|
-
// This ensures left + center + right = availableWidth
|
|
81
|
-
let centerWidth = availableWidth - leftColWidth - rightColWidth;
|
|
82
|
-
// Validate widths (ensure center is usable)
|
|
83
|
-
// Reduced minimum from 60 to 40 to support narrower terminals
|
|
84
|
-
if (centerWidth < 40) {
|
|
85
|
-
// Center too small - could implement stack mode here in future
|
|
86
|
-
// For now, just fail gracefully
|
|
87
|
-
return {
|
|
88
|
-
ok: false,
|
|
89
|
-
errorMessage: `Terminal too narrow for 3-column layout: center=${centerWidth} (need >= 40)`,
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
if (leftColWidth < 10 || centerWidth < 20 || rightColWidth < 10) {
|
|
93
|
-
return {
|
|
94
|
-
ok: false,
|
|
95
|
-
errorMessage: `Terminal too narrow: ${safeWidth} (need ${MIN_WIDTH})`,
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
// ============================================================================
|
|
99
|
-
// STEP 3: Calculate panel heights
|
|
100
|
-
// ============================================================================
|
|
101
|
-
// Left column: 3 panels (divide evenly with 2 gutters)
|
|
102
|
-
const leftAvailableHeight = contentHeight - (GUTTER * 2);
|
|
103
|
-
const leftPanelHeight = Math.floor(leftAvailableHeight / 3);
|
|
104
|
-
// Right column: 2 panels (60/40 split with 1 gutter)
|
|
105
|
-
const rightAvailableHeight = contentHeight - GUTTER;
|
|
106
|
-
const networkHeight = Math.floor(rightAvailableHeight * 0.60);
|
|
107
|
-
const capabilitiesHeight = rightAvailableHeight - networkHeight;
|
|
108
|
-
// Validate heights (Step 4: use minimums, not maximums - allow fullscreen)
|
|
109
|
-
if (leftPanelHeight < 3 || networkHeight < 3 || capabilitiesHeight < 3) {
|
|
110
|
-
return {
|
|
111
|
-
ok: false,
|
|
112
|
-
errorMessage: `Terminal too short: ${safeHeight} (need ${MIN_HEIGHT})`,
|
|
113
|
-
};
|
|
114
|
-
}
|
|
115
|
-
// ============================================================================
|
|
116
|
-
// STEP 4: Calculate positions (deterministic, no rounding errors)
|
|
117
|
-
// ============================================================================
|
|
118
|
-
// Calculate total content width (columns + gutters) for command line alignment
|
|
119
|
-
const totalContentWidth = leftColWidth + centerWidth + rightColWidth + totalGutters;
|
|
120
|
-
// Command line safety margin (no extra margin for local terminals)
|
|
121
|
-
const commandLineSafetyMargin = isBrowserTerminal ? 1 : 0;
|
|
122
|
-
const layout = {
|
|
123
|
-
// Left column (x=0)
|
|
124
|
-
posture: {
|
|
125
|
-
top: 0,
|
|
126
|
-
left: 0,
|
|
127
|
-
width: leftColWidth,
|
|
128
|
-
height: leftPanelHeight,
|
|
129
|
-
},
|
|
130
|
-
resources: {
|
|
131
|
-
top: leftPanelHeight + GUTTER,
|
|
132
|
-
left: 0,
|
|
133
|
-
width: leftColWidth,
|
|
134
|
-
height: leftPanelHeight,
|
|
135
|
-
},
|
|
136
|
-
assets: {
|
|
137
|
-
top: (leftPanelHeight + GUTTER) * 2,
|
|
138
|
-
left: 0,
|
|
139
|
-
width: leftColWidth,
|
|
140
|
-
height: leftPanelHeight,
|
|
141
|
-
},
|
|
142
|
-
// Center column (x = leftColWidth + GUTTER)
|
|
143
|
-
operations: {
|
|
144
|
-
top: 0,
|
|
145
|
-
left: leftColWidth + GUTTER,
|
|
146
|
-
width: centerWidth,
|
|
147
|
-
height: contentHeight,
|
|
148
|
-
},
|
|
149
|
-
// Right column (x = leftColWidth + GUTTER + centerWidth + GUTTER)
|
|
150
|
-
network: {
|
|
151
|
-
top: 0,
|
|
152
|
-
left: leftColWidth + GUTTER + centerWidth + GUTTER,
|
|
153
|
-
width: rightColWidth,
|
|
154
|
-
height: networkHeight,
|
|
155
|
-
},
|
|
156
|
-
capabilities: {
|
|
157
|
-
top: networkHeight + GUTTER,
|
|
158
|
-
left: leftColWidth + GUTTER + centerWidth + GUTTER,
|
|
159
|
-
width: rightColWidth,
|
|
160
|
-
height: capabilitiesHeight,
|
|
161
|
-
},
|
|
162
|
-
// Command line (bottom, use FULL terminal width for local terminals)
|
|
163
|
-
// For local terminals: extend to full safeWidth (no extra margin)
|
|
164
|
-
// For browser terminals: geometry.ts already applied margin, use safeWidth as-is
|
|
165
|
-
commandLine: {
|
|
166
|
-
top: contentHeight + GUTTER,
|
|
167
|
-
left: 0,
|
|
168
|
-
// Use full width - extend command line to match terminal width
|
|
169
|
-
width: Math.max(MIN_WIDTH, safeWidth - commandLineSafetyMargin),
|
|
170
|
-
height: COMMAND_LINE_HEIGHT,
|
|
171
|
-
},
|
|
172
|
-
};
|
|
173
|
-
// ============================================================================
|
|
174
|
-
// STEP 5: Calculate layout metadata (for debug commands)
|
|
175
|
-
// ============================================================================
|
|
176
|
-
// Calculate total width/height used by layout
|
|
177
|
-
const rightEdge = Math.max(layout.commandLine.left + layout.commandLine.width, layout.posture.left + layout.posture.width, layout.operations.left + layout.operations.width, layout.network.left + layout.network.width);
|
|
178
|
-
const bottomEdge = Math.max(layout.commandLine.top + layout.commandLine.height, layout.assets.top + layout.assets.height, layout.operations.top + layout.operations.height, layout.capabilities.top + layout.capabilities.height);
|
|
179
|
-
const metadata = {
|
|
180
|
-
colsUsed: rightEdge,
|
|
181
|
-
rowsUsed: bottomEdge,
|
|
182
|
-
availableWidth: availableWidth,
|
|
183
|
-
availableHeight: contentHeight,
|
|
184
|
-
gutters: totalGutters,
|
|
185
|
-
margins: commandLineSafetyMargin + (isBrowserTerminal ? 12 : 0), // browser margin + command line margin
|
|
186
|
-
minCols: MIN_WIDTH,
|
|
187
|
-
maxCols: null, // No hard max - layout scales with terminal size
|
|
188
|
-
};
|
|
189
|
-
// ============================================================================
|
|
190
|
-
// STEP 6: VALIDATION (catch any bugs before they cause visual issues)
|
|
191
|
-
// ============================================================================
|
|
192
|
-
const errors = [];
|
|
193
|
-
// Step 4: Validate total width (columns + gutters <= screen width)
|
|
194
|
-
const totalWidth = leftColWidth + centerWidth + rightColWidth;
|
|
195
|
-
if (totalWidth > availableWidth) {
|
|
196
|
-
errors.push(`Width overflow: ${totalWidth} > ${availableWidth}`);
|
|
197
|
-
}
|
|
198
|
-
// Validate no overlaps (account for safety margin)
|
|
199
|
-
const rightColLeft = leftColWidth + GUTTER + centerWidth + GUTTER;
|
|
200
|
-
const validationSafetyMargin = isBrowserTerminal ? 1 : 0; // No extra margin for local terminals
|
|
201
|
-
const maxAllowedWidth = safeWidth - validationSafetyMargin;
|
|
202
|
-
if (rightColLeft + rightColWidth > maxAllowedWidth) {
|
|
203
|
-
errors.push(`Right column overflow: ${rightColLeft + rightColWidth} > ${maxAllowedWidth} (safeWidth=${safeWidth}, browser=${isBrowserTerminal})`);
|
|
204
|
-
}
|
|
205
|
-
// Validate command line width doesn't exceed safe width
|
|
206
|
-
if (layout.commandLine.width > maxAllowedWidth) {
|
|
207
|
-
errors.push(`Command line overflow: ${layout.commandLine.width} > ${maxAllowedWidth} (safeWidth=${safeWidth}, browser=${isBrowserTerminal})`);
|
|
208
|
-
}
|
|
209
|
-
// CRITICAL: Hard clamp - ensure total rendered width never exceeds terminal width
|
|
210
|
-
// For local terminals: allow full width (safeWidth = cols)
|
|
211
|
-
// For browser terminals: geometry.ts already applied margin
|
|
212
|
-
const totalRenderedWidth = rightColLeft + rightColWidth;
|
|
213
|
-
if (totalRenderedWidth > safeWidth - validationSafetyMargin) {
|
|
214
|
-
errors.push(`Total width overflow: ${totalRenderedWidth} > ${safeWidth - validationSafetyMargin} (browser=${isBrowserTerminal})`);
|
|
215
|
-
}
|
|
216
|
-
// Validate command line position
|
|
217
|
-
if (layout.commandLine.top + layout.commandLine.height > safeHeight) {
|
|
218
|
-
errors.push(`Command line overflow: ${layout.commandLine.top + layout.commandLine.height} > ${safeHeight}`);
|
|
219
|
-
}
|
|
220
|
-
// CRITICAL: Hard clamp ALL panels to safeWidth - 1 (ALWAYS, not just debug mode)
|
|
221
|
-
// This prevents horizontal scrollbar in ALL environments (local, SSH, browser terminals)
|
|
222
|
-
const panels = [
|
|
223
|
-
{ name: 'POSTURE', rect: layout.posture },
|
|
224
|
-
{ name: 'RESOURCES', rect: layout.resources },
|
|
225
|
-
{ name: 'ASSETS', rect: layout.assets },
|
|
226
|
-
{ name: 'OPERATIONS', rect: layout.operations },
|
|
227
|
-
{ name: 'NETWORK', rect: layout.network },
|
|
228
|
-
{ name: 'CAPABILITIES', rect: layout.capabilities },
|
|
229
|
-
{ name: 'COMMAND_LINE', rect: layout.commandLine },
|
|
230
|
-
];
|
|
231
|
-
const maxRightEdge = safeWidth - 1; // Hard boundary: never exceed this
|
|
232
|
-
for (const { name, rect } of panels) {
|
|
233
|
-
const rightEdge = rect.left + rect.width;
|
|
234
|
-
// CRITICAL: Hard clamp if overflow detected (prevents horizontal scrollbar)
|
|
235
|
-
if (rightEdge > maxRightEdge) {
|
|
236
|
-
const overflow = rightEdge - maxRightEdge;
|
|
237
|
-
// Clamp width to fit within boundary
|
|
238
|
-
rect.width = Math.max(1, rect.width - overflow);
|
|
239
|
-
// Log the clamp (in debug mode only to prevent spam)
|
|
240
|
-
if (process.env.TUI_DEBUG === '1') {
|
|
241
|
-
errors.push(`⚠ HARD CLAMP: ${name} width reduced by ${overflow} to prevent overflow (rightEdge was ${rightEdge}, clamped to ${rect.left + rect.width})`);
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
// Validate Y bounds (top + height <= safeHeight)
|
|
245
|
-
const bottomEdge = rect.top + rect.height;
|
|
246
|
-
const maxBottomEdge = safeHeight - 1;
|
|
247
|
-
if (bottomEdge > maxBottomEdge) {
|
|
248
|
-
const overflow = bottomEdge - maxBottomEdge;
|
|
249
|
-
rect.height = Math.max(1, rect.height - overflow);
|
|
250
|
-
if (process.env.TUI_DEBUG === '1') {
|
|
251
|
-
errors.push(`⚠ HARD CLAMP: ${name} height reduced by ${overflow} to prevent overflow (bottomEdge was ${bottomEdge}, clamped to ${rect.top + rect.height})`);
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
// Re-validate after clamping
|
|
256
|
-
for (const { name, rect } of panels) {
|
|
257
|
-
const rightEdge = rect.left + rect.width;
|
|
258
|
-
if (rightEdge > maxRightEdge) {
|
|
259
|
-
errors.push(`FATAL: ${name} still overflows after clamp: ${rightEdge} > ${maxRightEdge}`);
|
|
260
|
-
}
|
|
261
|
-
const bottomEdge = rect.top + rect.height;
|
|
262
|
-
if (bottomEdge > safeHeight) {
|
|
263
|
-
errors.push(`FATAL: ${name} bottom still overflows after clamp: ${bottomEdge} > ${safeHeight}`);
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
if (errors.length > 0) {
|
|
267
|
-
return {
|
|
268
|
-
ok: false,
|
|
269
|
-
errorMessage: `Layout validation failed: ${errors.join(', ')}`,
|
|
270
|
-
};
|
|
271
|
-
}
|
|
272
|
-
return { ok: true, layout, metadata };
|
|
273
|
-
}
|
|
274
|
-
//# sourceMappingURL=phase1Layout.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"phase1Layout.js","sourceRoot":"","sources":["../../../../../src/ui/v3/ui/layout/phase1Layout.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAE,mBAAmB,EAAqC,MAAM,uBAAuB,CAAC;AAuC/F,oDAA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