Repository navigation
feat(cli): move --output, --view-format and -o to the output concept - #1414
Conversation
--output becomes --out on every leaf that wrote one file (-o stays as its short form), and skill novelty analyze --view-format becomes --format. Old spellings print the moved argv and exit 2 through FLAG_MOVES; a move that lands on another move applies in one pass (repo run --output -> --out -> --out-dir). Kept, with reasons in the allowlist: --out-md (Markdown beside --out), --items-out (second file beside --out), --no-json (dashboard.json beside DASHBOARD.md), --results-dir (dashboard input directory). Part of intel#94 (F1b, output concept). Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
CLI interface change detectedThis PR changes dokimi's user-facing CLI surface (commands and/or options): ~ `dokimi answers generate` parameters changed:
- removed option `--output`
+ added option `--out`
~ `dokimi eval import` parameters changed:
- removed option `--output/-o`
+ added option `--out/-o`
~ `dokimi eval judge agreement` parameters changed:
- removed option `--output`
+ added option `--out`
~ `dokimi eval judge validate` parameters changed:
- removed option `--output`
+ added option `--out`
~ `dokimi eval judge wording` parameters changed:
- removed option `--output`
+ added option `--out`
~ `dokimi eval personas discover` parameters changed:
- removed option `--output`
+ added option `--out`
~ `dokimi eval questions analyze` parameters changed:
- removed option `--output`
+ added option `--out`
~ `dokimi eval questions generate` parameters changed:
- removed option `--output`
+ added option `--out`
~ `dokimi eval questions refine` parameters changed:
- removed option `--output`
+ added option `--out`
~ `dokimi eval questions review` parameters changed:
- removed option `--output`
+ added option `--out`
~ `dokimi eval score checklist` parameters changed:
- removed option `--output`
+ added option `--out`
~ `dokimi eval score grounding` parameters changed:
- removed option `--output`
+ added option `--out`
~ `dokimi eval score pairwise` parameters changed:
- removed option `--output`
+ added option `--out`
~ `dokimi eval score panel` parameters changed:
- removed option `--output`
+ added option `--out`
~ `dokimi eval score pointwise` parameters changed:
- removed option `--output`
+ added option `--out`
~ `dokimi eval score reference` parameters changed:
- removed option `--output/-o`
+ added option `--out/-o`
~ `dokimi report generate` parameters changed:
- removed option `--output`
+ added option `--out`
~ `dokimi skill novelty analyze` parameters changed:
- removed option `--view-format`
+ added option `--format`Updated on every push; the |
|
✅ OpenCodeReview: Review complete: 0 finding(s) across 2 selected item(s). CI at Review details
|
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1414 +/- ##
==========================================
- Coverage 96.28% 96.27% -0.01%
==========================================
Files 513 513
Lines 68470 68482 +12
Branches 11884 11886 +2
==========================================
+ Hits 65924 65931 +7
- Misses 1566 1567 +1
- Partials 980 984 +4
🚀 New features to boost your workflow:
|
…the move chain --output -> --out is scoped to the 17 leaves that write one file, so a tombstone always prints an argv that parses. On other leaves it keeps its argparse error. The rewrite loop runs at most once per move, so a cycle in FLAG_MOVES stops instead of recursing. Tests: the --output leaf set is exact, every move's printed argv parses on each leaf it applies to, a cycle stops, and repo run --output is not moved. Part of intel#94 (F1b, output concept). Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
…tput Signed-off-by: Vladislav Perevezentsev <vladislav.perevezentsev@intel.com>
Signed-off-by: Vladislav Perevezentsev <vladislav.perevezentsev@intel.com>
vlad-perevezentsev
left a comment
There was a problem hiding this comment.
🟢 LGTM · re-checked e1d3a66 · nothing required from @napetrov
🔀 Merge: safe now · merges cleanly into current main, 0 commits behind · after it, #1197 needs a rebase (26 files: docs, cli_routes.py, commands/*.py, tests), and so do #1420 (judge_reliability.py, questions.py, skill.py) and #1190 / #1416 (answer_formats.py, test_saved_self_judge_warning.py)
✅ make ci-local --offline: 0 failed, 27 passed, 22 skipped (31,433 tests, changed lines 100% covered, mutations of changed lines caught) · ✅ each old spelling (--output, --output=, --view-format, the novelty alias) prints a command that parses
The 17 leaves and skill novelty analyze move cleanly, and --output stays an error where --out would mean something else.
Fixed in this branch, up to e1d3a66:
Summary
F1b output remainder.
--outputbecomes--outon every leaf that wrote one file,skill novelty analyze --view-formatbecomes--format, and-ostays as the short form of--out. The four other banned spellings keep their rows, each with a reason in the allowlist. Old spellings printmoved: dokimi ...and exit 2 throughFLAG_MOVES. The--outputmove is scoped to the 17 leaves that wrote one file and so had--output; on every other leaf--outputkeeps its argparse error.Part of #94 (F1b, output concept).
Moved (leaf -> old -> new)
--output--out--output/-o--out/-o--output--out--output--out--output--out--output--out--output--out--output--out--output--out--output--out--output--out--output--out--output--out--output--out--output--out--output/-o--out/-o--output--out--view-format--formatrepo run --output DIRis not moved:repo runhas no--outfile flag, so--outputkeeps its argparse error. Its directory is--out-dir.Kept (reasons in
tests/data/cli_flags_allowlist.txt)--out-md--outon every leaf that has both--items-out--out--no-jsondashboard.jsonbesideDASHBOARD.md--results-dirEvidence
make ci-local CI_LOCAL_ARGS="--offline --jobs static,typecheck"(pre-push set): 0 failed, 17 passed, 3 skipped.pytest -n 8 testson this head: 31521 passed, 28 skipped, 0 failed.tests/test_cli_flag_moves.pynow checks that the--outputmove covers exactly those 17 leaves, each of which accepts--out, that each move's printed argv parses on each leaf it applies to, that a cycle of moves stops, and thatrepo run --outputis not moved. The rewrite loop is bounded by the number of moves.docs/reference/cli-interface.jsonregenerated withmake cli-snapshot..agent-evaltask check renamed to--outwhere they taught dokimi usage.Merge Danger
--outputor--view-formatto the leaves above now exit 2 with the new argv printed. Nothing runs silently.-okeeps its meaning, soeval import x.jsonl -o q.jsonis unchanged.--outputflags are untouched (ci/build.py,.github/workflows/intel-ci.yml, the bazel doc, the external l0 typecheck runner).Not in this PR
--out-dir.🤖 Generated with Claude Code