• src/syncterm/scripts/auto/connected/connected.wren console.wren runtes

    From Deucе@VERT to Git commit to main/sbbs/master on Tue Apr 28 04:20:01 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/54756ede4f29cb760ab5cbfb
    Added Files:
    src/syncterm/scripts/auto/connected/connected.wren console.wren runtests.wren src/syncterm/scripts/wrentest.wren
    Modified Files:
    src/syncterm/CMakeLists.txt GNUmakefile Wren.adoc wren_embed_gen.c wren_host.c wren_host_internal.h
    Log Message:
    SyncTERM: split Wren scripts into lazy lib vs auto-loaded entry trees

    Files at scripts/*.wren are pure library modules (loaded only when
    imported). Files at scripts/auto/<event>/*.wren auto-run when the
    framework fires <event> — currently only "connected" exists, but the
    layout reserves room for "startup", "ssh", "ui", etc.

    wren_embed_gen now infers the event from the path and emits it as a
    new field on struct embedded_script; entries with event=NULL are
    libraries. The host filters the auto-load loop by event match.

    Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net