Skip to content

v1.3.1

Latest

Choose a tag to compare

@Scrates1 Scrates1 released this 03 Dec 05:59

What's New in v1.3.1

CLI & Tab Completion Polish

  • Smarter native Tab completion: Added filesystem path fallback for tri migrate, tri worktree, tri graduate/grad destinations, and path-like first arguments; fixed mid-line cursor editing (tri mv al<Tab> newname); sorted project completions by .tri.json recency first.
  • Subcommand -h / --help interception: tri new --help and tri rm -h now display help safely instead of creating/deleting projects (tri new -- --help remains supported as an escaped literal name).
  • Unified target resolution & clearer ambiguity errors: Fixed double-space directory slug matching, listed up to 5 candidate directory names on ambiguous matches, and made empty -NonInteractive queries fail explicitly.
  • Relative subdirectory graduation: tri grad api-v2 work/api-v2 now validates and creates safe multi-segment relative subdirectories under TRI_GRADUATE_PATH.
  • Git & CWD hygiene: Added ~ expansion to tri worktree, tri clone local paths, and tri ~/... shorthand; automatically cleans up partial directories when GitHub PR fetch/checkout fails; synced Win32 [Environment]::CurrentDirectory after graduate/migrate; added comment-based help to all 7 exported *-TriProject cmdlets.

TUI & Engine Improvements

  • Windows native editing: Added Ctrl-Backspace word deletion and Ctrl-Left/Ctrl-Right word navigation in LineBuffer and Picker.
  • TUI UX polish: Fixed empty-match guidance (Ctrl-U to clear, or Esc to exit), displayed exact validation reasons when + Create is unavailable, added 80-column responsive footer legend, [cd] mode header badge, WARN: toast when pressing Ctrl-R/Ctrl-G with active delete marks, renamed-item cursor tracking (initialSelectedName), and unified yellow status styling for deletes across TUI, docs, and web playground.
  • Architecture & Parity: Extracted shared Tri/Private/EngineCache.ps1 with deterministic Ordinal sorting and atomic DLL replacement retries; delegated Rename-TriProject directly to ProjectValidator.ValidateRenameTarget; preserved directory Hidden/ReadOnly/LastWriteTimeUtc on cross-volume copies; added optional detectWorktrees toggle to LoadItems; aligned C# FuzzyRanker and docs/ranker.js to 1e-12 exact golden-vector parity (including UTC and .NET OrdinalIgnoreCase tie-breaking).

Docs, Playground & QA

  • Fixed docs/index.html Ctrl-G absolute/~/ preview, confirmDelete safety (Enter cancels, only y confirms), tri new/tri cd validation & parity, and single-click auto-demo takeover.
  • Updated README.md and README.zh-CN.md so both Your First Session and exported cmdlet examples run cleanly top-to-bottom.
  • Expanded dual-shell automated test suite to 59 checks (100% passing on PowerShell 7 and Windows PowerShell 5.1) plus CI version consistency and Pages inline-script checks.