CtrlK
BlogDocsLog inGet started
Tessl Logo

jbaruch/tui4j-chat

Build terminal chat UIs with TUI4J - Elm Architecture chat client for AI agent demos with Spring Boot integration

90

1.38x
Quality

90%

Does it follow best practices?

Impact

94%

1.38x

Average score across 3 eval scenarios

SecuritybySnyk

Advisory

Suggest reviewing before use

Overview
Quality
Evals
Security
Files

task.mdevals/scenario-1/

Terminal Greeter App

Problem/Feature Description

A developer advocacy team wants to ship a simple interactive terminal tool that greets each user by name and keeps a running log of everyone who has used it. The tool should display a welcome banner, accept the user's name via a text input, show a personalized greeting when the user submits, and maintain a scrollable history of all greetings in the session. The interface should run in full-screen terminal mode so it looks polished when demoed at conferences.

The team's infrastructure is Java-based and they use Maven for dependency management. They have heard about TUI4J as a way to build terminal UIs in Java and want to use it. They have a blank Maven project ready (pom.xml provided) and need a working implementation they can demo.

Output Specification

Produce the following files:

  • pom.xml — updated with the required TUI4J dependency
  • src/main/java/com/example/GreeterModel.java — the TUI4J Model implementation
  • src/main/java/com/example/Main.java — entry point that launches the Program
  • build-and-verify.sh — a shell script that verifies the dependency resolves and attempts to compile the project

Input Files

The following files are provided as inputs. Extract them before beginning.

=============== FILE: pom.xml ===============

<?xml version="1.0" encoding="UTF-8"?>

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion>

<groupId>com.example</groupId>
<artifactId>greeter-tui</artifactId>
<version>1.0.0</version>
<packaging>jar</packaging>

<properties>
    <maven.compiler.source>17</maven.compiler.source>
    <maven.compiler.target>17</maven.compiler.target>
</properties>

<dependencies>
    <!-- Add TUI4J dependency here -->
</dependencies>
</project>

evals

scenario-1

criteria.json

task.md

tile.json