Repository navigation
v0.5.0
The first release since 0.3.0; it carries every change made since then.
Minor Changes
-
fa87aae:
sweep uiopens on a calm projects view: one row per project (git work tree or
manifest folder), grouped into "Idle 30+ days" and "Worked on recently", with a
single line that says how much you can reclaim and how much is idle. No boxes
or column headers; detail opens with Enter.iqueues idle projects,b
switches to the full folder view. Plans now carry an optionalprojectRootper
candidate, and idle time is measured for the whole project. -
67ab1ec: Sweep now respects git: a folder holding any tracked or staged file is blocked,
since build output is never committed. Git is asked once per repository with
the repository'score.fsmonitordisabled, and again just before removal.
Unattended runs (--yes) refuse dangerous items unless--allow-dangerousis
passed, and every dangerous path is printed before it is removed. -
08a73d6: Sweep now knows when each project was last worked on (git index and reflog,
plus the project's own files; never its build output) and uses it:--idle 30d(also2w,3m,1y) selects only artifacts in projects
nobody has touched for that long.- The scan report shows each project's idle time, warns when the selection
includes projects worked on today, suggests clearing idle projects first,
and shows free disk space before and after. - Plans carry an optional
projectActiveMsper candidate.
-
cd9b8da:
sweep initnow looks before it writes: a read-only scan shows the built-in
artifacts it found and the opt-in names worth a decision, asks about each in a
terminal, and writes only those answers. It no longer writes placeholder
patterns.--dry-runprints the file instead of writing it. -
8adbbd5: Scan and dry-run output leads with what would be reclaimed, then lists groups
largest first with paths relative to the folder you scanned. Long groups fold
into one counted line (--verboselists everything), and items left behind are
explained: left for you to decide, or blocked. While scanning, a live line shows
folders walked and items found instead of going quiet after the first match. -
12da012:
sweep uisits on your terminal instead of covering it: in auto theme it asks
the terminal for its background, takes dark or light from it, keeps the
terminal's own colour and opacity as the canvas, and mixes every tint from it.
Project rows show their size as a bar, so where the space is reads before a
number does. In terminals with kitty graphics (kitty, Ghostty, WezTerm) the bars
and the meter under the answer line are drawn in pixels; elsewhere they are
glyphs. An opened project lists its six largest items and folds the rest, and
the risk column keeps kinds and folders lined up.Every key hint in the footer can be clicked. On a wide terminal the projects
view shows the cursor's project beside the list: where it lives, its branch,
when it was last worked on, and per kind of artifact what it weighs and what
brings it back (a cache refills itself,bun install,cargo build). The
confirm shows the disk before and after removal, and a clean removal is
answered with what came back. The full view trades its boxes for quiet rules.cnow reviews the queue in both views, since many terminals and tmux send
Ctrl+Enter as a plain Enter; it still always opens the confirm first. With an
open dialog, the calm view's footer names that dialog's keys. -
c1c2604: Filter by picking, not just typing: press
for click Filter to toggle risk,
kind, size, last-touched and queue facets, each with its own count and size.
The filter bar now shows the query with how many artifacts and bytes it
matches, folders with a single artifact take one row, and colour is reserved
for meaning (orange only for caution, chartreuse only for what is queued). -
30f1fce: The terminal UI can switch folders without restarting: Ctrl+O fuzzy-finds the
folder above, folders you cleaned before, and projects inside and beside the
current one, or takes a typed path. Each switch runs the same guardrails and
.sweeprclookup assweep ui <path>, and refusals are shown in place.
Backspace steps the folder tree up one level, ncdu-style. -
73b0bfb: The terminal UI reads project activity: the Age column is now Idle (when
the owning project was last worked on, not when the artifact was rebuilt), the
filter's age facets become "Project idle", and the action menu offers "Queue
safe items in projects idle 30+ days" with its count and size. The folder
switcher fits narrow terminals and no longer offers protected folders such as
home. Counts are digit-grouped everywhere. -
2fe439d: The terminal UI shows last scan's sizes as soon as each folder is found
(marked~), then replaces them with fresh measurements. Sizes come from
size-cache.jsonin the configuration directory, are only reused for the same
folder identity, and are never used by the CLI or by any removal. -
b39b06b: Triage by age, in the TUI and in the plan format.
- Scan results now carry
modifiedMs, the artifact's own last-modified time (optional in the plan schema, produced by both the JS and Rust engines). The list shows an Age column and a size bar,ocycles size, name and age (stalest first), and the cursor row says how long ago it changed. Anything touched in the last week is tinted as probably in use. - The scope sidebar gains a risk breakdown and an "untouched 30d+" total, and its meter now reads "queued of found".
- Filter operators in
/:kind:target,risk:caution,path:crate,>100MB,<1GB,older:30d,newer:7d,is:queued,is:symlink, and!to negate. Bare words still match as substrings, and every term must match. - New keys:
vqueues a range of rows (never dangerous or blocked ones),ycopies the row's path (OSC 52),Ssaves the queue as a plan file forsweep apply --plan, andtin the confirm dialog switches between deleting and moving to trash. - Partly queued groups read "1 of 3 queued". Caution is now amber instead of an olive that was hard to tell from safe, dim text meets 4.5:1 contrast in both themes, the help screen wraps instead of clipping, and the panes no longer waste a row or a column.
- Scan results now carry
-
c90dddc: Live engine switching, scan timing, and streaming progress:
Einsidesweep uiswaps the scan engine (js ↔ rust) and rescans the same
tree. The completion notice compares timings once both engines have run
(rust 273ms vs js 311ms (1.1× faster)); the header chip keeps the active
engine's last duration.Eis global but never fires while a text field owns
the keyboard, and switching to Rust fails cleanly when no binary resolves.- Scan duration is surfaced end to end: the scanning strip shows a live 4Hz
elapsed readout,scan_completedcarrieselapsedMs, and non-interactive
scan headers print the time alongside the engine. scan_progressevents now carrycurrentDir- the TUI shows the folder
being walked instead of only counts, in both the empty-state panel and the
scanning strip.- Rust scan fast path: with no
onEntry/onEntrySized/onProgresshooks the
engine writes one plan JSON instead of streaming per-candidate NDJSON, and
dusize batches now run with bounded parallelism (matching the JS
DU_MAX_INFLIGHT) instead of serially - ~860ms → ~270ms on a 13k-dir tree. - New
bun run benchengine A/B harness: interleaved warm runs, median/min/
max, and a candidate-path-set hash for parity. - Scrollbar drag now follows OpenTUI's SliderRenderable semantics: thumb grabs
preserve the grab offset, thumb travel maps overheight - thumbHeight
(previously the last rows were unreachable by drag), track presses seek then
continue as drags, and presspreventDefaultstops a scrub from starting a
text selection.
-
bfdcd96: Make deletion byte ceilings opt-in: the default is now
null, existing numeric
caps remain enforced, zero remains a zero-byte cap, and--max-size-gbaccepts a
per-run GiB ceiling ornone. Dry-run previews no longer require destructive
permission flags. Path, identity, mount and resource guards remain enforced.Fix final JSON delivery on slow consumers and late broken-pipe failure reporting,
route deletion progress to stderr, and add retry guidance to JSON errors. Reject
unknown native plan/options fields, unsafe protocol integers and untrusted config
shapes. Freeze native deduplication keys and preserve valid deletion receipt owners.Use binary size units, clarify cancellation feedback, improve reader diagnostics
and allow installed-engine fallback after extraction errors. Update fast-uri,
crossbeam-epoch and anyhow within their compatible ranges for security advisories. -
d69f485: Rework the pattern catalog around a strict trust boundary and add a real pattern editor to the TUI:
- Defaults now ship only machine-created, ecosystem-canonical names (
node_modules,.next,.nuxt,.svelte-kit,.turbo,.vite,.parcel-cache,.nyc_output,target,*.tsbuildinfo). Generic names that can hold authored files —dist,build,out,coverage,.venv,__pycache__,Pods,.gradle,.dart_tool,cmake-build-*, and more — are still curated in the catalog but ship opt-in. The same catalog is mirrored in the Rust engine'sdefault_patterns(). - Opt-in and custom matches now land in the
dangerousrisk tier on both engines: enabling a pattern consents to scanning for it, never to selecting it — they are never pre-selected and never enter bulk selection. Candidatereasonsdistinguishdefault-pattern,opt-in-pattern, andcustom-pattern. - The
ppane is a grouped, searchable, windowed pattern editor:/filters the catalog,aadds a custom pattern (validated by the same rules config files use),dremoves customs (catalog entries can only toggle off),space/entertoggles, and keystrokes are fully isolated from artifact-list actions. wwrites the current toggle set to the project.sweeprcas a minimal delta (patterns+disabledPatternsonly); an existing file is never clobbered silently —Wis the deliberate overwrite. The write refuses symlinked paths and uses exclusive temp-file creation + rename.- The
?help overlay is regrouped into move / queue / filter & view / patterns / app sections, and the statusline marksrescan*while edited patterns await a rescan. - macOS blocked-root checks now fold case on both sides (a
/USERS/namespelling can no longer walk past the home-directory guard on case-insensitive APFS), and the Rust engine resolves..in target paths the same way the JS engine does instead of diverging on it.
- Defaults now ship only machine-created, ecosystem-canonical names (
-
ea8da98: Interactive list polish and engine default:
--enginenow defaults toauto: the Rust engine runs whenever its binary
resolves (env override, workspace build, optional platform package, PATH);
JS remains the fallback.--trashstill drops to JS with a warning, and
isRustEngineAvailableis memoised so the probe runs once per process.- Fixed an end-of-list flicker: the sticky group-header slot mounted only
when pinned, which shrank the viewport, pulled the owning header back into
view, unpinned the slot, and looped forever. The slot is now reserved
whenever the list can scroll. - The scrollbar is interactive: click or drag the track to seek the cursor to
the corresponding row. - Rows now clear hover correctly (
onMouseOut, not the nonexistent
onMouseLeave), and hover-set is suppressed briefly after wheel input so
repaints sliding under a static pointer do not chase a tint down the list. - Wheel moves three items per notch with an aggregated-delta cap, and
keyboard paging keeps two rows of context around the cursor instead of
hugging the viewport edge.
-
66cbb29: feat(ui): delete the row under the cursor without leaving the session
x(ord) on a candidate opens the confirmation dialog scoped to that one
artifact and, ony, applies it through the same pipeline as a queued apply -
plan validation, containment, revalidation, type-flip detection, outcome
reporting, and history. Deleted and covered rows leave the list in place;
failed and unattempted rows stay put so they can be retried.ctrl-cduring an
apply stops scheduling new work while in-flight deletions finish, and the
report still lands. Rows that a parent delete covered come along honestly via
coveredoutcomes. -
d89cd74: Overhaul the interactive TUI and harden scanning:
- The artifact list is windowed, so navigation and rendering stay fast on
repositories with thousands of candidates; the mouse wheel moves the cursor
instead of a detached viewport, and scrollbars are passive indicators. - Every apply now opens a confirmation step — safe queues get a standard
dialog, dangerous selections get the red confirmation. - Streaming scans seed
selectedByDefaultcandidates immediately and preserve
manual toggles; the final enriched plan is reconciled on completion. scan --jsonandscan_completedevents now reportskippedDirswhen
directories could not be read; human output surfaces the same count in scan
summaries, grouped plans, anddoctor.- Traversal is safer: device/inode cycle detection defeats bind-mount loops,
unreadable roots fail loudly while nested unreadable directories are counted
and reported, and.GIT-style VCS dirs are blocked case-insensitively. - Group headers always render so rows can't drift under the wrong scope,
narrow terminals shed chrome instead of truncating mid-word, modals clamp
to the viewport instead of crashing, and dead keys explain why they no-oped.
- The artifact list is windowed, so navigation and rendering stay fast on
-
8960f0d: Add
--trash(reversible cleanup: candidates move to.sweep-trash-<ts>/inside the target instead of being deleted — atomic renames, original paths preserved, trash dirs auto-ignored by future scans),sweep stats(cleanup history + lifetime reclaimed total, JSONL at~/.config/sweep/history.jsonl,SWEEP_CONFIG_DIRto override),sweep inspect --plan(read-only plan provenance: counts, kinds, risk tiers, selected bytes),sweep completionsfor bash/zsh/fish, and acurl | shinstaller script for standalone binaries (now including linux-arm64). Also:clean --jsonno longer mixes scan display text into stdout. -
ed9f37a: Traversal engine hardening and honesty:
bytesKnownis new on scan candidates:falsemeans the subtree could not
be fully read, soestimatedBytesis a partial lower bound rather than the
real figure. TUI rows show a~marker and the detail pane calls it out;
summary.exactdemotes whenever any candidate's size is unknown, so totals
are never presented as byte-accurate when they are not.- Glob matching is now a linear two-pointer
*/?matcher with an exact-set
fast path on both engines - hostile patterns can no longer trigger regex
backtracking, and pattern length is capped at 128 chars on every trust
boundary (JS config load, Rust engine stdin, library entry). - Rust discovery runs on a bounded depth-first work queue (stealing, cap 8)
instead of apar_iterper directory, and the JS walker uses a single
shared 16-worker queue with an indexed cursor instead of nested pools per
directory level - directory concurrency is now actually bounded at scale. - Rust apply resolves selected candidate ids through a
HashSetinstead of
Vec::contains. - Hardlinked files count once in apparent mode (GNU
dusemantics); exact
mode still counts every link, matching the JSexactSizecontract.
-
80d5acb: The terminal UI opens with a ledger: how much space can be reclaimed, split
by risk tier, how much is queued, and a rule that fills as you queue. Click a
tier to filter the list to it. After a cleanup the ledger shows what was freed.
Sizes now read by magnitude, project folders lead their paths, queue marks are
rings that fill when queued, folders show their share of space, and buttons are
filled controls with their shortcut beside them.
Patch Changes
-
f721671: The projects view reads as one compact list on any terminal width: lines stop
at 104 columns, each section shows its eight largest projects with the rest
folded into one row, location and kinds sit in aligned quiet columns, and the
mouse wheel moves the cursor. -
4b1055d: The git-tracked check is about ten times faster on trees with many
repositories: the native engine reads each repository's index directly and in
parallel instead of runninggitonce per repository. On a 4,000-candidate
tree the check drops from about 240 ms to 22 ms. Split and sparse indexes, and
installs without the engine, still use the hardenedgit ls-filespath. -
4890a36: Pointing sweep at your home folder now says so and suggests a projects folder
(sweep ~/Projects) instead of calling it a system root. -
3e16eb8: Fix
--jsonoutput being cut short when piped under Bun. Large results (over
roughly 64 KiB) could be truncated with a successful exit code because the
final flush trusted an empty write's callback, which Bun completes before
earlier bytes reach a slow reader. The flush now waits for the data itself. -
46feb6c: The terminal UI's scan meter no longer runs backwards. It showed sized items
over found items, and found keeps growing while discovery continues, so the bar
could reach 100% and drop back to 80%. It now holds its high point within a
scan; the exact "N of M sized" count beside it is unchanged. -
ba47d86: Project rows name the items that need a look: "! 3 caution" or "✗ 1 dangerous",
so a risky project is visible before you open it. -
63760ec: Project files can no longer be cleaned, whatever pattern or flag is used:
src, manifests and lockfiles (package.json,Cargo.toml,go.mod, ...),
.envfiles and.sweeprcclassify as blocked, andapplyre-checks them in
saved plans. A repository's own.sweeprccould previously add patterns for
them. When nothing is pre-selected, sweep now says what it found and points to
sweep uifor review instead of suggesting blanket flags. -
47aab94: Folder checkboxes in the terminal UI show three distinct states: an open ring
(nothing queued), a half disc (some queued) and a full disc (all queued).
Before, a folder with a single queued item looked fully queued. -
13765c2: Fix
sweep uiin the standalone binaries (Homebrew and the install script):
it refused to start with "requires @opentui/core" although the terminal UI is
embedded in the binary. -
e2dd306: Anchor native Linux deletion to directory descriptors, refuse nested mount and
bind-mount crossings, bound retained directory handles, and check cancellation
within artifacts. JS checks Linux mount boundaries before recursive operations.
Interrupted directory removal reports possible partial contents removal.Keep folder focus stable as streamed sizes reorder scopes, navigate to folder
parents with Left, clear the whole queue withufrom either pane, and unqueue
only visible artifacts withU. Release UI caches at session/rescan boundaries,
pace native decoding, and keep startup errors recoverable in the UI.Omit already-bundled Commander from published dependencies and qualify local
installed CLI/native packages without source workspace dependencies. -
7d1a67a: Keep queued and single-artifact deletion in the terminal UI with preparation
progress, current-path feedback and cooperative cancellation. Preserve the scan
and queue for known size-limit and lock refusals; retain the rescan gate when an
apply outcome is uncertain.Strengthen protected-root alias and direct-engine plan checks, share bounded
scan/sizing admission, and expose a low-memory resource profile. Record private
apply intent/outcome journals and actual trash destinations, with read-only
recovery, lock diagnostics and versioned schema export for automation. Fix
transitive build caching, native test coverage gates and terminal-control errors. -
2f0a069: - Shell completions are now generated from the live Commander program instead
of hand-maintained lists -planno longer offers--json-stream,
inspectno longer offers apply-only flags, andinitgains--force.- The TUI header and
--verbosescan output now name the scan engine
(engine:rust/engine:js) so--engine autois no longer invisible. - Rust engine now lossy-decodes non-UTF8 filenames like the JS engine; both
engines count undescendable dirs as skipped instead of diverging. history.jsonlrotates at 16 MiB (tail half kept, atomic rewrite).
- The TUI header and
-
ed9f37a: Return explicit cleanup outcomes, drain cooperative Rust cancellation, refresh
size ceilings before deletion, and show progress at each native removal.
Cache UI grouping and sidebar structure across selections. Bound history reads,
rotate whole private logs, label retained estimates honestly, and bound native
availability probes. Align Unicode globs and per-artifact hard-link accounting
across engines, and qualify packaged ARM64/Windows engines in release CI. -
f5c2270: Remove Linux's 32-directory deletion depth failure while keeping descriptor use
bounded. Older traversal frames reopen through the pinned candidate root with
fresh ancestor identities, symlink restrictions and mount boundaries. Frame
metadata stays logically bounded, and cancellation remains cooperative.Qualify deep owned trees under a 32-descriptor process limit and preserve
unselected sentinels; add replacement-directory and symlink-swap regressions. -
e2dd306: Pause JS traversal and the native scan pipe for slow JSON consumers. Bound output
buffers and drain waits, release stream listeners, and fix Bun stdout handling
that could truncate NDJSON while reporting success. Flush JSON dry-run and empty
selection responses before exiting.Share broken-pipe handling between npm and standalone entrypoints. A broken
output sink during apply cancels new work while outcomes and history finish;
closed structured-output consumers receive a failure exit status. -
762fc15: Clarify queue versus single-item deletion, item counts versus byte coverage,
and confirmation feedback. Show native Linux removal activity inside large
artifacts while keeping cancellation and final outcome accounting intact.
Wait for live scan UI commits and reuse folder topology during sizing updates. -
5da2149: Explain link-only deletion and manual trash restoration in confirmations, name
the reviewed path in single-item receipts, wrap inspected paths, and preserve
size columns beside wide filenames in narrow terminals. Closing a terminal
preserves completed session results and requests cancellation of active removal.Apply streamed reason limits to saved plans and native decoding, and stop plan
validation at its first error to bound malformed-input diagnostics. Validate native
package format and architecture, guard direct publication with exact-source CI,
and preserve manifest backups during interrupted packing. Make CLI cleaning work
across supported shells and operating systems. -
09838eb: feat(cli):
--cold/SWEEP_COLD=1for honest cold-start dev runsCold-start timing is the number real users feel and the one dev runs never
see - every measurement after the first rides a warm page cache and a
memoized engine probe.--cold(alsoSWEEP_COLD=1) does what cold can
honestly do in-process: the engine-availability probe respawns per
resolution instead of answering from the memo, and/proc/sys/vm/drop_caches
is written when the process is root so dentry/inode/page caches drop before
the scan.When the drop is not permitted the run says so - a
note:on stderr - so
warm numbers never pose as cold.bun run bench -- --colddrops before every
timed run and reportsdrops:N/runsper row. TUI rescans (r) honor the env
too, so a session started with--coldstays cold.What it does not fake: JIT/module warmth needs a fresh process (spawn a new
CLI per iteration for that), and page-cache drops need root - anything less
is reported, not relabeled. -
e2dd306: Add checksummed, streaming gzip standalone archives alongside raw release assets and a 4 MiB JavaScript bundle budget. Document runtime requirements, progressive review, resource limits and measured distribution sizes.
-
3142081: Require a committed confirmation and retain the exact single-item scope across
input bursts. Report completed TUI sessions and unknown native apply outcomes
accurately, preserve explicit trash choices, and keep JSON error envelopes on
unexpected crashes. Refuse oversized plans before journals or trash creation;
show incomplete journal records as uncommitted recovery evidence. -
bfeae8b: Stop presuming a default artifact name is safe on its name alone. A match is now
marked dangerous, and never pre-selected, when it is the wrong entry type (such
as a regular file namedtarget), sits inside a toolchain, package-manager,
editor or system install tree (such as~/.bun,~/.localor/usr), or is a
targetfolder with neither aCargo.tomlbeside it nor aCACHEDIR.TAG
inside. The reason is shown with the item. Both scan engines agree.Fast typing and unbracketed pastes into the filter no longer trigger global
shortcuts: keys such aso,dandqthat arrive in the same burst as/
land as filter text instead of sorting, opening a removal review or quitting.On macOS, refuse system trees such as
/System/Libraryand/private/etcas
scan targets, including case variants. -
a943256: Scale scan concurrency to the available CPU allowance on small machines while
retaining bounded pools on larger machines. Discovery and native sizing share
one worker allowance; JavaScript reduces simultaneous metadata operations. -
d521ef7: fix(ui): meter shows real sizing progress instead of a pinned 100% bar
The sidebar bar measured queue coverage (selectedBytes / totalBytes), which
sits near 100% under default selection - even mid-scan or after a failed scan.
While scanning it now reports sized candidates against found candidates,
clamped under 100% so a full bar only ever means a finished scan. A failed or
partial scan replaces the bar with an explicit "scan incomplete" state and a
rescan hint instead of holding a stale full bar.scan_progressevents on both engines now carrysizedCount(protocol
field, optional for older producers). The Rust engine also re-emits progress
as sizing completes after the walk ends, so the meter keeps moving during a
sparse sizing tail instead of freezing until the terminal flush. -
200e1ff: Reuse artifact groups and folder observations across live scan frames, reducing
allocation churn while preserving immutable earlier frames, selection and cursor
behavior. Keep literal POSIX backslashes distinct from directory separators in
scopes and confirmation previews. Avoid redundant hover updates during scans. -
e2dd306: Preserve replacements and cancelled candidates before destructive operations,
keep native covered outcomes stable after parent deletion, and allow
cancellation during native size preflight. Prevent invalid filename bytes from
aliasing real Unicode paths and enforce native final-output limits in UTF-8
bytes. Replace nightly-only Windows identity APIs with stable owned handles.
Direct native apply now handles Unix SIGINT/SIGTERM cooperatively and flushes
an interrupted outcome report before exiting.
Trash moves also reject a trash root replaced by a new directory at the same
path before the move. -
1ed21a6: Update the React devtools shell-quote dependency to its patched release.
-
529a7b2: Fix Windows trash moves using an exclusive destination slot with a
payload
entry, preserving existing trash contents. Qualify installed and standalone
packages on all five supported OS/architecture combinations. -
12c52b1: Rust engine now sizes candidates progressively during the walk instead of in a
post-walk phase, so TUI size columns fill in live like the JS engine. A bounded
channel feeds a fixed pool of in-process sizing workers (du -sb-equivalent
apparent size, or exact file sizes) with the same per-candidate fallback
coverage as before - no subprocesses are spawned. Stream output is buffered and
batched (candidates_found/candidates_updated) on a 16 ms heartbeat, and the
JS bridge validates stream events structurally so first paint no longer pays a
schema-compile delay. -
e2dd306: Record exact root and candidate filesystem identities at scan time and preserve
them through streams, saved plans and TUI rescans. Both engines refuse replaced
roots and preserve same-type candidate replacements. Plans without identity
snapshots require a fresh scan before applying; older native engines without
identity enforcement are refused. Keep JS covered receipts stable when parent
removal makes an internal symlink alias stop resolving. -
89da7e8: Harden the destructive and config paths: trash moves now verify the real destination stays inside the real trash dir (a preexisting symlink in the layout can no longer redirect a rename outside),
.sweeprcmust be a bounded regular file (a FIFO no longer hangs the scan, oversized configs are rejected), pattern strings and merged lists are length-bounded so a hostile repo config cannot burn scan CPU,duinvocation uses--so dash-leading paths cannot be parsed as options on either engine, and the Rust engine subprocess output is byte-capped. Release binaries now ship.sha256sidecars andinstall.shverifies the checksum before running.Apply now treats plan files as untrusted input on both engines: the plan target itself, dot-segment/case-variant spellings of it, and paths inside VCS metadata (
.git,.svn,.hg,.bzr) are refused per entry asprotected_pathfailures instead of being trusted to the plan'sriskTier, while legitimate entries still apply and--jsonalways emits a report. Confirmation prompts and declines moved to stderr so--jsonstdout stays machine-readable,sweep init --forcerefuses to write through a symlinked.sweeprc, symlink candidates report link size rather than target size,?is a single-character glob on both engines, and the engine subprocess reads a bounded stdin. Dev runs now resolve the workspacetarget/build before the installed optional engine package, so local Rust changes are what tests actually exercise. -
e2dd306: Bound aggregate transient sizing memory across concurrent artifacts and return
reservations on completion, failure and cancellation without starving discovery.
Allow x/d in inspect to open the same single-artifact confirmation as the list.Describe single-artifact cleanup receipts as estimated bytes moved or removed; trash no longer claims space was freed.
-
fa43e72: fix(scan): stop killing large scans on cumulative sizing budget charges
Sizing re-walked each candidate's subtree while charging the scan-wide
admission budgets, so a real project tree with many hardlink-heavy artifacts
(pnpm stores, shared git object dirs) could exceedmaxIdentitiesor
maxDirectoriesmid-scan and fail outright. Sizing jobs now bound only their
own transient state: dedup sets cap atmaxIdentitiesentries per job and the
job queue atmaxQueuedDirs. Reaching a cap degrades honestly - hardlinks
count again (upper bound) or unsized directories flagbytesKnown: false
(shown as~) - instead of aborting the scan. Walk-level cycle protection
keeps the fatal budget and cannot be starved by sizing. -
4d5971c: Second-pass trust, parity, and scale hardening:
sweep apply --dry-runnow previews deletions instead of silently deleting,
and every command warns when a flag it does not honor was passed
(stats --dry-run,doctor --trash,ui --json,init --yes,
apply with scan-shaping flags).--jsonand--json-streamare mutually
exclusive, a missing--configfile is an error instead of silent defaults,
and--depthno longer shadows config-file values with a sentinel.- Clearing the queue mid-scan (
u) now stays cleared for the whole scan
generation — later discoveries no longer refill a queue the user emptied —
and apply is refused while a scan is still running..sweeprcwrites from
the pattern pane preservemaxSizeGB/depth/ignoreinstead of reverting
them to defaults. - Plan targets are canonicalized before root-guardrail checks on both engines
(a symlinked target can no longer walk past the/or$HOMEblocks), VCS
metadata detection runs on the canonical path and covers.jj/.sl, nested
child entries dedupe on normalized absolute paths, each delete re-verifies
the parent chain, missing paths reportmissing, and interruption is
counted against the true deduplicated work set. - The artifact list now memoizes by input tuple instead of state identity, so
cursor movement and notices no longer trigger a full O(n log n) rebuild of
filtered/visible rows at large candidate counts. - Windows engine correctness: reparse points are detected via the
FILE_ATTRIBUTE_REPARSE_POINTattribute instead of a verbatim-path compare
that classified every directory as a symlink, ignore patterns normalize\
separators like the JS engine, size walks no longer follow junctions,
mark_dirdedupes onfile_index, and junction removal falls back to
remove_dir. Rust tests now run on the Windows and macOS CI legs, and engine
failures carry the documented exit-code taxonomy (2/3/4) through the JS
wrapper instead of flattening to 1. - The published package's
exportsmap now resolves —dist/sweep-lib.js
ships the programmaticmakeProgram/VERSIONsurface and preflight
verifies every exports/bin target plus a side-effect-free import. - TUI polish:
ion a group header no longer opens an empty inspect modal,
qinside the confirm dialog cancels instead of quitting, the patterns pane
blocks artifact-scoped keys (o,S), the pattern cursor clamps after
removing the last custom entry, and a sidebar focus orphaned by a resize
reconciles back to the list. The help overlay renders a two-column keycap
layout that degrades cleanly on narrow terminals, and the statusline tally
reports the queue's risk composition instead of repeating header bytes.
-
daa0a2a: The terminal UI now uses the sweep palette from the website: olive-black
surfaces with a chartreuse focus, mode chip and queue accent in dark mode, and
paper surfaces with an olive accent in light mode. Every text colour keeps
WCAG AA contrast on every surface, andNO_COLORstill removes all hue.Status-line notices now say what kind of message they are. Completed scans,
queued items, saved plans and patterns, and clean applies read as success;
amber is kept for refusals, incomplete scans and anything worth a second look. -
0987a8e: The terminal UI's "Review queue" button now stands out as the next step once
something is queued, and stays muted while the queue is empty. The folder
pane's footer hint drops words to fit narrow panes instead of being cut
mid-word. -
c82f831: Terminal UI polish: keys in the footer and help card are drawn as keycaps, the
help card fits its content, group headers use the same size format as their
rows and drop the count for a single artifact, and the scanning strip no longer
draws one part over another on narrow panes. -
9e7169c: Render only the scope sidebar rows that fit the terminal and keep keyboard,
wheel and scrollbar navigation tied to the visible cursor. Avoid repeated
subtree searches when drawing tree guides. Restore partial-size markers in
plain-text progressive scans and clarify the feedback for an incomplete review.Keep single-item confirmation compact and show separate preparation/removal
percentages with cooperative stop controls. Preserve queued selections during
Ctrl+U navigation and count only enabled patterns. Pin consent/stop controls
outside scrollable details and support paging long modal contents. Account for retained candidate
metadata consistently before scan publication and apply, including enrichment
reasons and Unicode fields. Retry late directory writes a bounded number of
times during secure native removal, preserving identity and cancellation checks.
Allow preview release versions through preflight and complete zsh option values. -
3adabd3: Fix an uninstallable package. 0.3.0 shipped with Bun's
workspace:and
catalog:dependency protocols left unresolved in the published manifest, so
everynpm install @kitsunekode/sweepfailed withEUNSUPPORTEDPROTOCOLand
bun installfailed to resolve the workspace dependencies.bun publishrewrites those protocols while packing, butnpm publish— which
changeset publishshells out to — ships the literal strings. The pack step now
resolvescatalog:entries against the root catalog and drops the internal
workspace:packages, which are private, never published, and already inside
the bundle. A guard fails the pack if any unresolvable specifier survives, and
the original manifest is restored afterwards.