Repository navigation
rename(cli): make evalid the primary CLI name, keep xflow as compatibility alias - #225
Merged
Merged
Conversation
…ility alias - package.json bin: evalid -> bin/evalid.js (entry renamed from bin/xflow.js), xflow -> bin/xflow.js (thin shim importing ./evalid.js); both names work. - User-facing strings (help banner, usage lines, guide/quickstart/doctor/ evaluate output, error prefixes), README and docs command examples, CI smoke commands, and audit/trend/langsmith render headers now use evalid. - Deliberately unchanged: .xflow/ and .as-xflow/ state dirs, XFLOW_* env vars, the xflow/ skill directory and installed skill name, compare/score arm identifiers, CHANGELOG/RELEASE_NOTES history, specs/, bench paths (kept working via the shim). - Tests updated; new package-entry assertions cover dual-bin same-entry and evalid-first help output.
Owner
Author
|
主代理裁定(PR 正文待裁含糊项 1–5):全部保持不动——compare/score 的 arm 标识、技能目录名、checkBinOnPath('xflow')、specs 历史示例、被审计原文均属内部标识或历史记录,不在本次「用户可见命令改名」范围内;xflow 别名长期保留。CI 全绿,合并发 v0.5.39。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Make
evalidthe primary CLI command name.xflowremains available as a compatibility alias that resolves to the same entry point. The npm package name (@surlymochan/evalid) is unchanged.What changed
bin/xflow.jsrenamed tobin/evalid.js(content preserved). Newbin/xflow.jsis a 233-byte shim:import './evalid.js';— both names execute the identical CLI (verified: byte-identical--helpoutput).binis now{ "evalid": "bin/evalid.js", "xflow": "bin/xflow.js" }; description and thestart/doctor/workflow:*/atom:listscripts point atbin/evalid.js.npm packships both files.evalid — unified workflow CLI, with one line noting the legacy alias), all usage lines, guide/quickstart/doctor/evaluate/demo/coach output text,evalid:error prefixes, and theaudit/trend/langsmith verifyrender headers insrc/now useevalid.docs/useevalidin command examples. Comparison/benchmark docs had command examples updated; product-positioning prose there was left as-is..github/workflows/ci.ymlsmoke commands useevalid, plus one addedxflow guidestep that exercises the alias.bin/evalid.js.doctor's package.bin check now asserts the dual-bin mapping.src/core/competitive-score.js: evidence paths point atbin/evalid.jsand documentation patterns expectevalidcommands (scorestill reports 100 /ok: true); the check against the historical adoption record still expects the originalxflowwording.evalid|xflow) and the tooling-matrix public-ladder objective check.# evalid Goaltitle for generated GOAL.md (parser keys on the## Goalsection, unaffected) andevalid-changeas the default spec scaffold slug.test/package-entry.test.jsgains two tests — both bins exist and thexflowbin delegates to the same entry, and both bins print identical help that leads withevalidand mentions the alias.What deliberately did NOT change (compatibility strategy)
.xflow/and.as-xflow/— existing user state keeps working untouched.XFLOW_*environment variables, internal function/module identifiers, and data keys (xflow_edges,xflow_goal).xflow/skill directory, skill names (xflow:*), and the installed host-skill name — the skill surface keeps its original name, so the doctor skill checks andskill:sync/skill:diffscripts are unchanged.CHANGELOG.mdandRELEASE_NOTES.mdhistory,docs/adoption/records,docs/evidence/,docs/fixtures/, andspecs/— historical records keep the name that was current when they were written (two test expectations against RELEASE_NOTES / the adoption record were intentionally kept on thexflowwording).bench/code andHANDOFF.md/AHA.md— they still referencebin/xflow.js, which keeps working through the shim.action.ymlhas no CLI command references (the Action runsaction/verify-proof.mjs); unaffected.Ambiguous items left for a maintainer ruling
xflow(xflow,xflow:goal,xflow:yolo,xflow:corps,xflow:plan,winner: 'xflow'). Renaming would invalidate stored comparison artifacts, so it was left; rule whether the arm should becomeevalidin a separate change.xflow/skill directory,xflow:*skill names, and installed skill directories (e.g.~/.codex/skills/xflow) keep the old name. A skill rename is a separate migration (installed copies in the wild).checkBinOnPath('xflow', ...)insrc/core/workflow-loader.jsstill probes for the legacy name; harmless while the alias ships, but could switch toevalid.specs/*.mdstill containxflowcommand examples; they read as change-history documents, so they were not migrated.bin/evalid.js(the audited competitive objective statement) still mentionsxflow— it is the verbatim text under audit, not a UI string.Test report
main(this VM): the full suite stops attest/i6d-acceptance-demo.test.js, which fails with a pre-existing environment issue (expected verdict=verified exit=0);test/xflow-audit.test.jshas 3 pre-existing I6d pytest-gate failures. Both reproduce identically without this change.main.node bin/evalid.js doctor,score(100, ok), andassess(ok) verified locally;npm pack --dry-runincludes both bin files.Not merged — opened for review per the rename request.