Import AITURK IDE 1.0.0-beta.1 from Hermes 63279301; preserve MIT license

This commit is contained in:
2026-09-05 13:26:46 +03:00
commit 03634b1ca3
11340 changed files with 3442369 additions and 0 deletions
@@ -0,0 +1,23 @@
"""The slash worker feeds desktop chat bubbles, which render plain text — so
any ANSI a worker-routed command emits (e.g. /journey's own Rich Console) must
be stripped from the worker's return value."""
from __future__ import annotations
class _FakeCLI:
console = None
def process_command(self, cmd: str) -> None:
import sys
sys.stdout.write("\x1b[38;2;1;2;3mcolored\x1b[0m plain")
def test_run_strips_ansi_from_output():
from tui_gateway import slash_worker
out = slash_worker._run(_FakeCLI(), "/anything")
assert "\x1b[" not in out
assert out == "colored plain"