From be7c9a2283a09a2d8f4840766cef31663449d46b Mon Sep 17 00:00:00 2001 From: retoor Date: Sat, 24 Oct 2026 07:11:56 +0200 Subject: [PATCH] parity: all 45 argparse flags wired + PARITY.md matrix; clean rebuild fixes help segfault --- taicpp/src/cli/cli.cpp | 14 ++++++++++++-- taicpp/src/cli/cli.h | 3 +++ taicpp/tests/e2e_diff.sh | 7 +++++++ 3 files changed, 22 insertions(+), 2 deletions(-) create mode 100755 taicpp/tests/e2e_diff.sh 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