Repository navigation
Releases
Releases · Scrates1/tri
v1.3.1
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/graddestinations, and path-like first arguments; fixed mid-line cursor editing (tri mv al<Tab> newname); sorted project completions by.tri.jsonrecency first. - Subcommand
-h/--helpinterception:tri new --helpandtri rm -hnow display help safely instead of creating/deleting projects (tri new -- --helpremains 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
-NonInteractivequeries fail explicitly. - Relative subdirectory graduation:
tri grad api-v2 work/api-v2now validates and creates safe multi-segment relative subdirectories underTRI_GRADUATE_PATH. - Git & CWD hygiene: Added
~expansion totri worktree,tri clonelocal paths, andtri ~/...shorthand; automatically cleans up partial directories when GitHub PRfetch/checkoutfails; synced Win32[Environment]::CurrentDirectoryaftergraduate/migrate; added comment-based help to all 7 exported*-TriProjectcmdlets.
TUI & Engine Improvements
- Windows native editing: Added
Ctrl-Backspaceword deletion andCtrl-Left/Ctrl-Rightword navigation inLineBufferandPicker. - TUI UX polish: Fixed empty-match guidance (
Ctrl-U to clear, or Esc to exit), displayed exact validation reasons when+ Createis unavailable, added 80-column responsive footer legend,[cd]mode header badge,WARN:toast when pressingCtrl-R/Ctrl-Gwith 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.ps1with deterministicOrdinalsorting and atomic DLL replacement retries; delegatedRename-TriProjectdirectly toProjectValidator.ValidateRenameTarget; preserved directoryHidden/ReadOnly/LastWriteTimeUtcon cross-volume copies; added optionaldetectWorktreestoggle toLoadItems; aligned C#FuzzyRankeranddocs/ranker.jsto1e-12exact golden-vector parity (including UTC and.NET OrdinalIgnoreCasetie-breaking).
Docs, Playground & QA
- Fixed
docs/index.htmlCtrl-Gabsolute/~/preview,confirmDeletesafety (Entercancels, onlyyconfirms),tri new/tri cdvalidation & parity, and single-click auto-demo takeover. - Updated
README.mdandREADME.zh-CN.mdso bothYour First Sessionand 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.
v1.3.0
What's New in v1.3.0
Architecture & Security
- Modular C# engine (
Tri/Engine/*.cs, namespaceTriV2): Split monolithicEngine.csinto six focused source files (Models.cs,FileSystem.cs,FuzzyRanker.cs,ProjectValidator.cs,AnsiRenderer.cs,Picker.cs) with single-source validation (ProjectValidator), fast single-scan stale visit pruning (FindStaleVisitKeys), and Win32 extended/device path (\\?\/\\.\) + rooted tilde suffix protection. - Deduplicated relocation & safe cross-volume moves: Extracted shared
Invoke-TriDirectoryRelocationin PowerShell core and hardenedMoveDirectorySafe/CopyDirectoryNoReparse.
CLI & TUI Improvements
- Unambiguous slug/fuzzy CLI resolution:
tri delete/rm,tri rename/mv, andtri graduate/gradnow resolve full names, unique date-stripped slugs, or unique fuzzy matches without typingYYYY-MM-DD-. - Native PowerShell Tab completion: Added
Register-ArgumentCompleterfortrisubcommands and experiment directories (excluding dot-prefixed folders and quoting special characters). - Safe CLI deletion confirmation:
tri delete/rmprompts[y/N]interactively, requires-Forcein non-interactive scripts, and printsDeleted <path>. - Unquoted multi-word arguments across
rename,graduate,clone,worktree, and.. - Collision-safe GitHub PR naming: GitHub PR URLs now default to
YYYY-MM-DD-<owner>-<repo>-pr-<id>. - TUI polish: Separator-aware
Ctrl-W,Ctrl-Rslug pre-fill with live-> YYYY-MM-DD-<slug>preview, preserved selection/scroll position across inline actions, friendly empty-state guidance,[wt]Git worktree badge, and semantic green/red/yellow status bar.
Docs, Playground & QA
- Shared
docs/ranker.jsmodule: Extracted UMD/CommonJS DP ranker powering the interactive browser playground with automated golden-vector parity againstTriV2.Engine.Rank. - Expanded dual-shell test suite (54 checks) passing 100% on both PowerShell 7 and Windows PowerShell 5.1, plus CI JS syntax/parity validation.
v1.2.0
Highlights
- Native Windows & PowerShell (
tri): Works on both Windows PowerShell 5.1 and PowerShell 7+ with zero Ruby, WSL,$PROFILE, orevalchanges. - Fast Precompiled C# Engine: Runtime-tagged (
netcore<major>/netfx<major>) SHA-256 cached DLLs (~117–184 mscold start,~0 mswarm,13–17 msfor 5,000 directories). - Rich TUI: Optimal non-greedy DP fuzzy matching with character highlighting, grapheme-aware inline cursor editing (
LineBuffer), Vim navigation (Ctrl-J/Ctrl-K), multi-mark batch delete (Ctrl-D), inline rename (Ctrl-R), and inline graduate (Ctrl-G). - Full Git Worktree Lifecycle:
tri clone(with GitHub PR/pull/<id>support),tri worktree, non-Gittri .fallback, autogit worktree pruneon delete, and link preservation across rename/graduate/migrate. - Windows Safety: Reparse-point-safe
DeleteDirectorySafe& cross-volumeMoveDirectorySafe, atomic.tri.jsonlocking, CJK/AltGr/bracket-path support, verified by 43 automated tests on both PowerShell 7 and Windows PowerShell 5.1.
See CHANGELOG.md for full details.