new framework

This commit is contained in:
2026-05-12 22:15:07 +02:00
parent be21826ecc
commit 953498a62d
24 changed files with 2410 additions and 180 deletions

View File

@@ -71,6 +71,7 @@ module BBS
when :body then run_body(step)
when :output then run_output(step)
when :tui then run_tui(step)
when :app then run_app(step)
end
end
@@ -349,6 +350,15 @@ module BBS
:halt
end
def run_app(step)
builder = step[:definition]
app = builder.build(session: @session, session_id: @session_id, context: @ctx)
app.run
nil
rescue IOError, Errno::EPIPE, Errno::ECONNRESET
:halt
end
# ── helpers ────────────────────────────────────────────────────────────────
def strip_md(text)