diff --git a/taicpp/src/cli/cli.cpp b/taicpp/src/cli/cli.cpp index 86ddb36..7a58930 100644 --- a/taicpp/src/cli/cli.cpp +++ b/taicpp/src/cli/cli.cpp @@ -12,7 +12,7 @@ std::string Parser::helpText() { " --serve-mcp KEY --mcp-port PORT --mcp-bind HOST\n" " --telegram --scheduler --install --install-telegram --uninstall-telegram\n" " --plexer-wrap --mplex COMMAND... --demo --demo-shot --tui --tui-local --theme NAME\n" - " --help (-h)\n version ") + std::string(kVersion.data()) + "\n"; + " --help (-h)\n version ") + std::string(kVersion) + "\n"; } Options Parser::parseOpts(int argc, char** argv) { Options o; @@ -51,6 +51,16 @@ Options Parser::parseOpts(int argc, char** argv) { else if (a=="--mplex") { o.mplex = std::vector{}; while (++ipush_back(argv[i]); break; } else if (a=="--demo") o.demo = true; else if (a=="--demo-shot") o.demo_shot = true; + else if (a=="--model") { if(i+1> mplex; // REMAINDER bool demo = false, demo_shot = false, tui = false, tui_local = false; std::optional theme; + std::string model, driver, task, cwd, argv, binary; + std::string max_risk = "low", auto_answer; + std::vector allow_tool, deny_tool; bool help = false; std::vector prompt; }; diff --git a/taicpp/tests/e2e_diff.sh b/taicpp/tests/e2e_diff.sh new file mode 100755 index 0000000..998daf1 --- /dev/null +++ b/taicpp/tests/e2e_diff.sh @@ -0,0 +1,7 @@ +#!/bin/bash +# e2e: same prompt via tai.py stubs vs detz; diff behavior +P="$1" +PY=$(cd .. && timeout 20 python3 tai.py --help 2>&1 | head -3) +DZ=$(timeout 20 ./build/detz --help 2>&1 | head -3) +echo "--- tai.py:"; echo "$PY" | head -2 +echo "--- detz:"; echo "$DZ" | head -2