4runr-os 2.1.4 → 2.1.5
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 +86 -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 +93 -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,339 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* V5 UI Kernel
|
|
3
|
-
*
|
|
4
|
-
* Owns the screen and all widgets. Provides atomic rebuild capability.
|
|
5
|
-
*
|
|
6
|
-
* HARD RULE: Never resize/move existing widgets.
|
|
7
|
-
* On every committed resize: destroy all widgets and recreate them.
|
|
8
|
-
*/
|
|
9
|
-
import blessed from 'neo-blessed';
|
|
10
|
-
import { getViewport } from '../viewport/getViewport.js';
|
|
11
|
-
import { computeLayout } from '../layout/layoutEngine.js';
|
|
12
|
-
import { setLayoutVersion } from '../renderGate.js';
|
|
13
|
-
import { assertNoOverflow } from '../debug/assertNoOverflow.js';
|
|
14
|
-
export class UIKernel {
|
|
15
|
-
screen;
|
|
16
|
-
widgets = null;
|
|
17
|
-
layout = null;
|
|
18
|
-
layoutVersion = 0;
|
|
19
|
-
isRebuilding = false;
|
|
20
|
-
pendingRebuild = null;
|
|
21
|
-
debugOverlayVisible = false;
|
|
22
|
-
debugOverlay = null;
|
|
23
|
-
constructor(screen) {
|
|
24
|
-
this.screen = screen;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Get current layout version (for render gating)
|
|
28
|
-
*/
|
|
29
|
-
getLayoutVersion() {
|
|
30
|
-
return this.layoutVersion;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Get current layout
|
|
34
|
-
*/
|
|
35
|
-
getLayout() {
|
|
36
|
-
if (!this.layout) {
|
|
37
|
-
throw new Error('Layout not computed yet');
|
|
38
|
-
}
|
|
39
|
-
return this.layout;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Get operations panel (for debug commands)
|
|
43
|
-
*/
|
|
44
|
-
getOperationsPanel() {
|
|
45
|
-
return this.widgets?.operations;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Get current widgets (for external access)
|
|
49
|
-
*/
|
|
50
|
-
getWidgets() {
|
|
51
|
-
return this.widgets;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Boot the kernel - initial mount
|
|
55
|
-
*/
|
|
56
|
-
boot() {
|
|
57
|
-
if (this.widgets) {
|
|
58
|
-
throw new Error('Kernel already booted');
|
|
59
|
-
}
|
|
60
|
-
const vp = getViewport(this.screen);
|
|
61
|
-
this.layout = computeLayout(vp.safeCols, vp.safeRows);
|
|
62
|
-
this.widgets = this.createWidgets(this.layout);
|
|
63
|
-
this.layoutVersion = 1;
|
|
64
|
-
setLayoutVersion(this.layoutVersion);
|
|
65
|
-
// Force a render after a small delay to ensure screen is ready
|
|
66
|
-
setImmediate(() => {
|
|
67
|
-
this.screen.render();
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* Rebuild the UI - atomic destroy and recreate
|
|
72
|
-
*/
|
|
73
|
-
rebuild(options) {
|
|
74
|
-
// A) Block re-entrant rebuild
|
|
75
|
-
if (this.isRebuilding) {
|
|
76
|
-
this.pendingRebuild = options;
|
|
77
|
-
return;
|
|
78
|
-
}
|
|
79
|
-
this.isRebuilding = true;
|
|
80
|
-
try {
|
|
81
|
-
// B) If hardReset requested, log it
|
|
82
|
-
if (options.hardReset) {
|
|
83
|
-
process.stderr.write(`[V5] Hard reset triggered (large resize or burst)\n`);
|
|
84
|
-
}
|
|
85
|
-
// C) Clear the terminal buffer
|
|
86
|
-
const program = this.screen.program;
|
|
87
|
-
if (program) {
|
|
88
|
-
if (typeof program.clear === 'function') {
|
|
89
|
-
program.clear();
|
|
90
|
-
}
|
|
91
|
-
if (typeof program.flush === 'function') {
|
|
92
|
-
program.flush();
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
// D) Destroy everything currently mounted (hard)
|
|
96
|
-
this.destroyAllChildren();
|
|
97
|
-
// E) Compute viewport and layout
|
|
98
|
-
const vp = getViewport(this.screen);
|
|
99
|
-
this.layout = computeLayout(vp.safeCols, vp.safeRows);
|
|
100
|
-
// F) Recreate widgets fresh
|
|
101
|
-
this.widgets = this.createWidgets(this.layout);
|
|
102
|
-
this.layoutVersion = options.version;
|
|
103
|
-
setLayoutVersion(this.layoutVersion);
|
|
104
|
-
// G) Check for overflow violations (assert no widget exceeds safe bounds)
|
|
105
|
-
try {
|
|
106
|
-
const violations = assertNoOverflow(this.screen, vp);
|
|
107
|
-
if (violations.length > 0) {
|
|
108
|
-
process.stderr.write(`[V5 WARNING] ${violations.length} overflow violation(s) detected!\n`);
|
|
109
|
-
for (const v of violations) {
|
|
110
|
-
process.stderr.write(` Widget ${v.widgetIndex}: rightEdge=${v.rightEdge} (safe=${vp.safeCols}), bottomEdge=${v.bottomEdge} (safe=${vp.safeRows})\n`);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
catch (error) {
|
|
115
|
-
// Ignore overflow check errors during rebuild (don't crash)
|
|
116
|
-
process.stderr.write(`[V5] Overflow check error: ${error instanceof Error ? error.message : String(error)}\n`);
|
|
117
|
-
}
|
|
118
|
-
// H) Render once
|
|
119
|
-
this.screen.render();
|
|
120
|
-
// Update debug overlay if visible
|
|
121
|
-
if (this.debugOverlayVisible && this.debugOverlay) {
|
|
122
|
-
this.updateDebugOverlay();
|
|
123
|
-
}
|
|
124
|
-
// G) Restore input focus
|
|
125
|
-
if (this.widgets.command) {
|
|
126
|
-
this.widgets.command.focus?.();
|
|
127
|
-
this.screen.render();
|
|
128
|
-
}
|
|
129
|
-
process.stderr.write(`[V5] Rebuilt layout v${options.version} (raw: ${vp.rawCols}x${vp.rawRows}, safe: ${vp.safeCols}x${vp.safeRows}, mode: ${this.layout.mode}) from ${options.source} (burst: ${options.burstCount})\n`);
|
|
130
|
-
}
|
|
131
|
-
finally {
|
|
132
|
-
this.isRebuilding = false;
|
|
133
|
-
// Process pending rebuild if one was queued
|
|
134
|
-
if (this.pendingRebuild) {
|
|
135
|
-
const pending = this.pendingRebuild;
|
|
136
|
-
this.pendingRebuild = null;
|
|
137
|
-
// Use setImmediate to avoid re-entrancy issues
|
|
138
|
-
setImmediate(() => this.rebuild(pending));
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
/**
|
|
143
|
-
* Destroy the kernel and all widgets
|
|
144
|
-
*/
|
|
145
|
-
destroy() {
|
|
146
|
-
this.destroyAllChildren();
|
|
147
|
-
this.widgets = null;
|
|
148
|
-
this.layout = null;
|
|
149
|
-
}
|
|
150
|
-
/**
|
|
151
|
-
* Toggle debug overlay
|
|
152
|
-
*/
|
|
153
|
-
toggleDebugOverlay(content) {
|
|
154
|
-
this.debugOverlayVisible = !this.debugOverlayVisible;
|
|
155
|
-
if (this.debugOverlayVisible) {
|
|
156
|
-
// Create or update debug overlay
|
|
157
|
-
if (this.debugOverlay) {
|
|
158
|
-
if (typeof this.debugOverlay.detach === 'function') {
|
|
159
|
-
this.debugOverlay.detach();
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
const vp = getViewport(this.screen);
|
|
163
|
-
const overlayContent = content || this.buildDebugOverlayContent();
|
|
164
|
-
this.debugOverlay = blessed.box({
|
|
165
|
-
top: 0,
|
|
166
|
-
left: 0,
|
|
167
|
-
width: vp.safeCols,
|
|
168
|
-
height: Math.min(10, vp.safeRows),
|
|
169
|
-
content: overlayContent,
|
|
170
|
-
scrollable: true,
|
|
171
|
-
alwaysScroll: true,
|
|
172
|
-
style: {
|
|
173
|
-
fg: 'yellow',
|
|
174
|
-
bg: 'black',
|
|
175
|
-
},
|
|
176
|
-
});
|
|
177
|
-
this.screen.append(this.debugOverlay);
|
|
178
|
-
}
|
|
179
|
-
else {
|
|
180
|
-
// Remove debug overlay
|
|
181
|
-
if (this.debugOverlay) {
|
|
182
|
-
if (typeof this.debugOverlay.detach === 'function') {
|
|
183
|
-
this.debugOverlay.detach();
|
|
184
|
-
}
|
|
185
|
-
if (typeof this.debugOverlay.destroy === 'function') {
|
|
186
|
-
this.debugOverlay.destroy();
|
|
187
|
-
}
|
|
188
|
-
this.debugOverlay = null;
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
this.screen.render();
|
|
192
|
-
}
|
|
193
|
-
/**
|
|
194
|
-
* Update debug overlay with new info
|
|
195
|
-
*/
|
|
196
|
-
updateDebugOverlay() {
|
|
197
|
-
if (this.debugOverlayVisible && this.debugOverlay && this.layout) {
|
|
198
|
-
const content = this.buildDebugOverlayContent();
|
|
199
|
-
this.debugOverlay.setContent(content);
|
|
200
|
-
this.screen.render();
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
/**
|
|
204
|
-
* Build debug overlay content
|
|
205
|
-
*/
|
|
206
|
-
buildDebugOverlayContent() {
|
|
207
|
-
if (!this.layout) {
|
|
208
|
-
return 'Layout not computed';
|
|
209
|
-
}
|
|
210
|
-
const lines = [
|
|
211
|
-
`mode: ${this.layout.mode} | v${this.layoutVersion}`,
|
|
212
|
-
];
|
|
213
|
-
for (const [id, rect] of Object.entries(this.layout.rects)) {
|
|
214
|
-
const rightEdge = rect.x + rect.w;
|
|
215
|
-
const bottomEdge = rect.y + rect.h;
|
|
216
|
-
lines.push(`${id}: x=${rect.x} y=${rect.y} w=${rect.w} h=${rect.h} rightEdge=${rightEdge} bottomEdge=${bottomEdge}`);
|
|
217
|
-
}
|
|
218
|
-
return lines.join('\n');
|
|
219
|
-
}
|
|
220
|
-
/**
|
|
221
|
-
* Destroy all children widgets (hard destroy)
|
|
222
|
-
*/
|
|
223
|
-
destroyAllChildren() {
|
|
224
|
-
// Copy list first because detach mutates
|
|
225
|
-
const kids = [...this.screen.children];
|
|
226
|
-
for (const k of kids) {
|
|
227
|
-
try {
|
|
228
|
-
if (typeof k.detach === 'function') {
|
|
229
|
-
k.detach();
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
catch (e) {
|
|
233
|
-
// Ignore detach errors
|
|
234
|
-
}
|
|
235
|
-
try {
|
|
236
|
-
if (typeof k.destroy === 'function') {
|
|
237
|
-
k.destroy();
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
catch (e) {
|
|
241
|
-
// Ignore destroy errors
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
// Remove from screen.children manually (blessed sometimes doesn't clean up)
|
|
245
|
-
const screenChildren = this.screen.children || [];
|
|
246
|
-
while (screenChildren.length > 0) {
|
|
247
|
-
screenChildren.pop();
|
|
248
|
-
}
|
|
249
|
-
// Clear debug overlay reference
|
|
250
|
-
this.debugOverlay = null;
|
|
251
|
-
}
|
|
252
|
-
/**
|
|
253
|
-
* Create all widgets fresh from layout
|
|
254
|
-
*/
|
|
255
|
-
createWidgets(layout) {
|
|
256
|
-
const widgets = {};
|
|
257
|
-
// Create panel widgets
|
|
258
|
-
for (const [id, rect] of Object.entries(layout.rects)) {
|
|
259
|
-
const panelId = id;
|
|
260
|
-
const title = panelId.charAt(0).toUpperCase() + panelId.slice(1);
|
|
261
|
-
// Command panel needs input capability
|
|
262
|
-
if (panelId === 'command') {
|
|
263
|
-
// Command panel: NO RIGHT BORDER to prevent overflow
|
|
264
|
-
const commandBox = blessed.box({
|
|
265
|
-
top: rect.y,
|
|
266
|
-
left: rect.x,
|
|
267
|
-
width: rect.w,
|
|
268
|
-
height: rect.h,
|
|
269
|
-
border: {
|
|
270
|
-
type: 'line',
|
|
271
|
-
right: false, // NO RIGHT BORDER - prevents overflow
|
|
272
|
-
},
|
|
273
|
-
content: '4runr> ',
|
|
274
|
-
style: {
|
|
275
|
-
border: {
|
|
276
|
-
fg: 'cyan',
|
|
277
|
-
},
|
|
278
|
-
fg: 'white',
|
|
279
|
-
},
|
|
280
|
-
keys: true,
|
|
281
|
-
input: true,
|
|
282
|
-
focusable: true,
|
|
283
|
-
tags: true,
|
|
284
|
-
});
|
|
285
|
-
commandBox.setLabel(` {cyan-fg}${title.toUpperCase()}{/}`);
|
|
286
|
-
this.screen.append(commandBox);
|
|
287
|
-
widgets[panelId] = commandBox;
|
|
288
|
-
}
|
|
289
|
-
else {
|
|
290
|
-
// Regular panel boxes
|
|
291
|
-
// Right-edge panels (network, capabilities) get NO RIGHT BORDER to prevent overflow
|
|
292
|
-
const isRightEdgePanel = panelId === 'network' || panelId === 'capabilities';
|
|
293
|
-
const box = blessed.box({
|
|
294
|
-
top: rect.y,
|
|
295
|
-
left: rect.x,
|
|
296
|
-
width: rect.w,
|
|
297
|
-
height: rect.h,
|
|
298
|
-
border: {
|
|
299
|
-
type: 'line',
|
|
300
|
-
right: !isRightEdgePanel, // NO RIGHT BORDER for right-edge panels
|
|
301
|
-
},
|
|
302
|
-
content: `${title} Panel\n\nMode: ${layout.mode}`,
|
|
303
|
-
style: {
|
|
304
|
-
border: {
|
|
305
|
-
fg: 'cyan',
|
|
306
|
-
},
|
|
307
|
-
},
|
|
308
|
-
tags: true,
|
|
309
|
-
});
|
|
310
|
-
box.setLabel(` {cyan-fg}${title.toUpperCase()}{/}`);
|
|
311
|
-
this.screen.append(box);
|
|
312
|
-
widgets[panelId] = box;
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
// V5 Watermark - top right corner (always visible)
|
|
316
|
-
// CRITICAL: Must respect safeCols-3 to prevent overflow (aggressive buffer)
|
|
317
|
-
const vp = getViewport(this.screen);
|
|
318
|
-
const watermarkText = '{cyan-fg}V5{/cyan-fg}';
|
|
319
|
-
const watermarkWidth = 10;
|
|
320
|
-
// Ensure watermark doesn't exceed safeCols-3 (aggressive border buffer)
|
|
321
|
-
const watermarkLeft = Math.max(0, vp.safeCols - 3 - watermarkWidth);
|
|
322
|
-
const watermark = blessed.box({
|
|
323
|
-
top: 0,
|
|
324
|
-
left: watermarkLeft,
|
|
325
|
-
width: watermarkWidth,
|
|
326
|
-
height: 1,
|
|
327
|
-
content: watermarkText,
|
|
328
|
-
style: {
|
|
329
|
-
fg: 'cyan',
|
|
330
|
-
bold: true,
|
|
331
|
-
},
|
|
332
|
-
tags: true,
|
|
333
|
-
});
|
|
334
|
-
this.screen.append(watermark);
|
|
335
|
-
widgets.watermark = watermark;
|
|
336
|
-
return widgets;
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
//# sourceMappingURL=kernel.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"kernel.js","sourceRoot":"","sources":["../../../../src/ui/v5/kernel/kernel.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,OAAO,MAAM,aAAa,CAAC;AAElC,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,aAAa,EAA6B,MAAM,2BAA2B,CAAC;AACrF,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAgBhE,MAAM,OAAO,QAAQ;IACX,MAAM,CAAiB;IACvB,OAAO,GAAqB,IAAI,CAAC;IACjC,MAAM,GAAkB,IAAI,CAAC;IAC7B,aAAa,GAAW,CAAC,CAAC;IAC1B,YAAY,GAAY,KAAK,CAAC;IAC9B,cAAc,GAA0B,IAAI,CAAC;IAC7C,mBAAmB,GAAY,KAAK,CAAC;IACrC,YAAY,GAAuB,IAAI,CAAC;IAEhD,YAAY,MAAsB;QAChC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;OAEG;IACH,gBAAgB;QACd,OAAO,IAAI,CAAC,aAA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BACV,IAAI,EAAE,IAAI;aACJ;YACR,IAAI,EAAE,IAAI;SACX,CAAgB,CAAC;QAElB,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QAC9B,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC;QAE9B,OAAO,OAAO,CAAC;IACjB,CAAC;CACF"}
|
package/dist/ui/v5/kernel.d.ts
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* V5 UI Kernel
|
|
3
|
-
*
|
|
4
|
-
* Owns the screen and all widgets. Provides atomic rebuild capability.
|
|
5
|
-
*
|
|
6
|
-
* HARD RULE: Never resize/move existing widgets.
|
|
7
|
-
* On every committed resize: destroy all widgets and recreate them.
|
|
8
|
-
*/
|
|
9
|
-
import type { Widgets } from 'neo-blessed';
|
|
10
|
-
export interface RebuildOptions {
|
|
11
|
-
cols: number;
|
|
12
|
-
rows: number;
|
|
13
|
-
version: number;
|
|
14
|
-
source: string;
|
|
15
|
-
burstCount: number;
|
|
16
|
-
}
|
|
17
|
-
export interface UIWidgets {
|
|
18
|
-
testBox: Widgets.Box;
|
|
19
|
-
watermark: Widgets.Box;
|
|
20
|
-
commandInput?: Widgets.Box;
|
|
21
|
-
debugOverlay?: Widgets.Box;
|
|
22
|
-
operationsPanel?: Widgets.Box;
|
|
23
|
-
}
|
|
24
|
-
export declare class UIKernel {
|
|
25
|
-
private screen;
|
|
26
|
-
private widgets;
|
|
27
|
-
private layoutVersion;
|
|
28
|
-
private isRebuilding;
|
|
29
|
-
private pendingRebuild;
|
|
30
|
-
private debugOverlayVisible;
|
|
31
|
-
constructor(screen: Widgets.Screen);
|
|
32
|
-
/**
|
|
33
|
-
* Get current layout version (for render gating)
|
|
34
|
-
*/
|
|
35
|
-
getLayoutVersion(): number;
|
|
36
|
-
/**
|
|
37
|
-
* Boot the kernel - initial mount
|
|
38
|
-
*/
|
|
39
|
-
boot(): void;
|
|
40
|
-
/**
|
|
41
|
-
* Rebuild the UI - atomic destroy and recreate
|
|
42
|
-
*/
|
|
43
|
-
rebuild(options: RebuildOptions): void;
|
|
44
|
-
/**
|
|
45
|
-
* Destroy the kernel and all widgets
|
|
46
|
-
*/
|
|
47
|
-
destroy(): void;
|
|
48
|
-
/**
|
|
49
|
-
* Get current widgets (for external access)
|
|
50
|
-
*/
|
|
51
|
-
getWidgets(): UIWidgets | null;
|
|
52
|
-
/**
|
|
53
|
-
* Get operations panel (for debug commands)
|
|
54
|
-
*/
|
|
55
|
-
getOperationsPanel(): Widgets.Box | undefined;
|
|
56
|
-
/**
|
|
57
|
-
* Toggle debug overlay
|
|
58
|
-
*/
|
|
59
|
-
toggleDebugOverlay(options: RebuildOptions): void;
|
|
60
|
-
/**
|
|
61
|
-
* Update debug overlay with new info
|
|
62
|
-
*/
|
|
63
|
-
updateDebugOverlay(options: RebuildOptions): void;
|
|
64
|
-
/**
|
|
65
|
-
* Destroy all children widgets (hard destroy)
|
|
66
|
-
*/
|
|
67
|
-
private destroyAllChildren;
|
|
68
|
-
/**
|
|
69
|
-
* Create all widgets fresh
|
|
70
|
-
*
|
|
71
|
-
* CRITICAL: Uses safeCols/safeRows to prevent overflow
|
|
72
|
-
*/
|
|
73
|
-
private createWidgets;
|
|
74
|
-
}
|
|
75
|
-
//# sourceMappingURL=kernel.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"kernel.d.ts","sourceRoot":"","sources":["../../../src/ui/v5/kernel.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAK3C,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,OAA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