ac5ee9c3e0
- Layout: status bar (borderless), horizontal top row (sessions 30% / active 30% / tools 40%), router fill, input bar fixed - Components: rewrote all 5 + added ToolsPanel; all accept TuiState directly - InputBar: 4 modes (ROUTER/NAVIGATE/FILTER/STEER) with context-sensitive keybind hints - RouterPanel: inline approval/event overlays as last-child text panels - StatusBar: borderless row with model, providerType, session count, approval badge - SessionList: manual column/row rendering, no list widget, overflow truncation - tamboui bumped to 0.3.0 - TambouiKeyMapper: ctrl+key required for all keybinds, bare chars always go to input buffer. - KeyResolver: Quit is ROUTER-only (not global); NavUp/NavDown handled in ROUTER as well as NAVIGATE; Filter in ROUTER maps to OpenFilter; CharInput in ROUTER returns null (semantic chars handled upstream by mapper).
70 lines
2.3 KiB
Groovy
70 lines
2.3 KiB
Groovy
plugins {
|
|
id 'org.jetbrains.kotlin.jvm'
|
|
id 'org.jetbrains.kotlin.plugin.serialization'
|
|
id 'application'
|
|
}
|
|
|
|
application {
|
|
mainClass = 'com.correx.apps.tui.TuiAppKt'
|
|
}
|
|
|
|
repositories {
|
|
maven {
|
|
url 'https://central.sonatype.com/repository/maven-snapshots/'
|
|
mavenContent { snapshotsOnly() }
|
|
}
|
|
}
|
|
|
|
configurations.all {
|
|
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
|
|
}
|
|
|
|
dependencies {
|
|
implementation project(':apps:server')
|
|
implementation project(':core:events')
|
|
implementation project(':core:approvals')
|
|
|
|
implementation "io.ktor:ktor-client-core:$ktor_version"
|
|
implementation "io.ktor:ktor-client-cio:$ktor_version"
|
|
implementation "io.ktor:ktor-client-websockets:$ktor_version"
|
|
implementation "io.ktor:ktor-client-logging:$ktor_version"
|
|
|
|
implementation platform('dev.tamboui:tamboui-bom:0.3.0')
|
|
implementation 'dev.tamboui:tamboui-tui'
|
|
implementation 'dev.tamboui:tamboui-widgets'
|
|
implementation 'dev.tamboui:tamboui-core'
|
|
runtimeOnly 'dev.tamboui:tamboui-jline3-backend'
|
|
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlinx_coroutines_version"
|
|
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:$kotlinx_serialization_version"
|
|
|
|
testImplementation "org.jetbrains.kotlin:kotlin-test"
|
|
testImplementation "org.jetbrains.kotlin:kotlin-test-junit5"
|
|
testImplementation "org.junit.jupiter:junit-jupiter:5.10.2"
|
|
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:5.10.2"
|
|
}
|
|
|
|
tasks.named('test') { useJUnitPlatform() }
|
|
|
|
tasks.register('tuiStartScripts', CreateStartScripts) {
|
|
mainClass = 'com.correx.apps.tui.TuiAppKt'
|
|
applicationName = 'tui'
|
|
outputDir = file("$buildDir/scripts-tui")
|
|
classpath = tasks.named('startScripts').get().classpath
|
|
}
|
|
|
|
distributions.named('main').configure {
|
|
contents {
|
|
from(tasks.named('tuiStartScripts')) { into 'bin' }
|
|
}
|
|
}
|
|
|
|
tasks.withType(Tar).configureEach { duplicatesStrategy = DuplicatesStrategy.EXCLUDE }
|
|
tasks.withType(Zip).configureEach { duplicatesStrategy = DuplicatesStrategy.EXCLUDE }
|
|
tasks.named("installDist") { duplicatesStrategy = DuplicatesStrategy.EXCLUDE }
|
|
|
|
configurations.configureEach {
|
|
resolutionStrategy.force(
|
|
"com.github.ajalt.mordant:mordant:2.6.0",
|
|
"com.github.ajalt.mordant:mordant-jvm:2.6.0"
|
|
)
|
|
} |