Skip to content

Releases

v1.3.1

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.

v1.3.0

Choose a tag to compare

@Scrates1 Scrates1 released this 02 Dec 04:10

What's New in v1.3.0

Architecture & Security

  • Modular C# engine (Tri/Engine/*.cs, namespace TriV2): Split monolithic Engine.cs into 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-TriDirectoryRelocation in PowerShell core and hardened MoveDirectorySafe / CopyDirectoryNoReparse.

CLI & TUI Improvements

  • Unambiguous slug/fuzzy CLI resolution: tri delete/rm, tri rename/mv, and tri graduate/grad now resolve full names, unique date-stripped slugs, or unique fuzzy matches without typing YYYY-MM-DD-.
  • Native PowerShell Tab completion: Added Register-ArgumentCompleter for tri subcommands and experiment directories (excluding dot-prefixed folders and quoting special characters).
  • Safe CLI deletion confirmation: tri delete/rm prompts [y/N] interactively, requires -Force in non-interactive scripts, and prints Deleted <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-R slug 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.js module: Extracted UMD/CommonJS DP ranker powering the interactive browser playground with automated golden-vector parity against TriV2.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

Choose a tag to compare

@Scrates1 Scrates1 released this 01 Dec 09:38

Highlights

  • Native Windows & PowerShell (tri): Works on both Windows PowerShell 5.1 and PowerShell 7+ with zero Ruby, WSL, $PROFILE, or eval changes.
  • Fast Precompiled C# Engine: Runtime-tagged (netcore<major> / netfx<major>) SHA-256 cached DLLs (~117–184 ms cold start, ~0 ms warm, 13–17 ms for 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-Git tri . fallback, auto git worktree prune on delete, and link preservation across rename/graduate/migrate.
  • Windows Safety: Reparse-point-safe DeleteDirectorySafe & cross-volume MoveDirectorySafe, atomic .tri.json locking, 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.