Repository navigation
kane-cli 0.4.1
Highlights
Project and folder are now required on every run — kane-cli will gate, prompt, or auto-default instead of silently proceeding without context. Variable handling in recorded tests is more faithful, preserving bare references and quoted literals exactly as typed. A wave of reliability fixes closes auth gaps, TTY-asymmetry edge cases, and stale-cache bugs across interactive and non-interactive paths.
[0.4.1] - 2026-06-08
Breaking & behavior changes
- Bare-objective shortcut removed.
kane-cli "<objective>"no longer routes torun. Usekane-cli run "<objective>".
Unknown first tokens now exit2with a "did you mean" suggestion instead of silently running. - Exit code
1 → 2for TMS credential-exchange failures. Aligns with the other auth/setup failure codes. CI scripts that
branch on exit1vs2should be updated. config showand the newlistcommands emit JSON when stdout is piped or redirected (> file,| jq) instead of the human table. Useful for scripts; anyone scraping the human format will need to update.- Mid-run interactive project/folder picker removed. When the startup gate finds nothing configured (or a stale/invalid cached value), it auto-defaults headlessly and announces the choice rather than prompting. The explicit
kane-cli config project/config folderpickers still work in a TTY.
Project & folder selection
-
Zero-config first run — every run path (
kane-cli run,kane-cli testmd run,kane-cli generate) validates a
project/folder before launching. If nothing is configured, kane-cli auto-resolves (find-or-create) and announces the choice in the TUI scrollback and as aproject_folder_auto_defaultedevent under--agent. -
New
projectsandfolderssubcommands for scripted setup:kane-cli projects list [--search] [--limit] [--offset]kane-cli projects create <name> [--description]kane-cli folders list [--search] [--limit] [--offset]kane-cli folders create <name> [--description]
Human table in a TTY, NDJSON when piped or under
--agent, with_meta-paginated output for agents. -
Self-healing for stale, invalid, or typo'd IDs — a cached project/folder that's been deleted, renamed, revoked, or set to a malformed value is detected at run start and replaced via auto-default, instead of silently breaking the upload at the end of the run.
-
OAuth users can use the interactive
config project/config folderpicker again — a regression that required basic-auth credentials to reach the picker is fixed. -
OAuth tokens refreshed in the projects/folders auth path — expired tokens no longer cause silent failures when listing or selecting projects.
More faithful recorded tests
- Bare variable references are preserved in recorded
test.md— variable refs are written as-is, not coerced or mangled during recording. --authoris honored in non-TTY and agent runs — passing--authorin CI or agent mode now takes effect as expected.
Variable handling in recorded tests
--variables-fileand auto-store values resolve as expected (LambdaTest/kane-cli#69, #75) — the runtime{{VAR}}resolver now tries the local resolver first and falls back to the ATMS lookup, instead of silently dropping values the file had set.- Recorded
*_test.mdno longer double-prefixes variable namespaces #76 — replays previously produced{{secrets.user.secrets.user.X}}which never resolved; recorded objectives + frontmatter now persist bare{{name}}refs.
Non-TTY & agent runs
--authoris honored in non-TTY and--agentruns (LambdaTest/kane-cli#72) — forcing re-authoring no longer falls back to the stale cached plan in headless mode.- Typo'd subcommands fail loudly instead of silently running your input as an objective (see Breaking).
Auth
login/whoamiverify credentials server-side (LambdaTest/kane-cli#58) — previously both could report success while the backend rejected every API call; invalid tokens now fail immediately instead of after the first real command.
Cleaner output and display
- Project-list count shown as a lower bound while streaming — the projects denominator is now marked as approximate during streaming, so the display is not misleading.
Install
# npm
npm install -g @testmuai/kane-cli@0.4.1
# Homebrew
brew install lambdatest/kane/kane-cli
# Shell installer (latest release)
curl -fsSL https://raw.githubusercontent.com/LambdaTest/kane-cli/main/install.sh | bashCompare: 0.4.0...0.4.1