Skip to content

fix(windows): pre-release audit hardening and cross-CLI parity - #2243

Merged
tw93 merged 1 commit into
windowsfrom
fix/windows-pre-release-audit
Dec 5, 2026
Merged

tw93 merged 1 commit into
windowsfrom
fix/windows-pre-release-audit

Conversation

@tw93

@tw93 tw93 commented Dec 5, 2026

Copy link
Copy Markdown
Owner

Pre-release audit hardening and cross-CLI parity pass for Mole CLI (Windows):

  • Deduplicate Feishu/Lark global profile leaves in Clear-AppCaches (already covered by Clear-FeishuProfileCaches).
  • Check deep descendant whitelist rules and re-query uv cache dir at the delete boundary in Clear-UvCache.
  • Pin GOTOOLCHAIN=local in Clear-GoCaches and run bun pm from a temp package.json directory for Bun 1.4.
  • Normalize / and ~ in Get-UncoveredDefaultSearchPaths.
  • List installers and exit cleanly when mo installer runs without an interactive console.
  • Analyze: ANSI faint gray, invalidate Old Downloads overview cache/history on r refresh, and reserve hint width on 90-121 col terminals.
  • Update SYNC.md (CLI-SYNC-36).

Close pre-release audit gaps in Mole CLI (Windows):
- Deduplicate Feishu/Lark aha\users\global\profile_global cache leaves between $electron and Clear-FeishuProfileCaches so dry-run does not double-count them.
- Check deep descendant whitelist entries (literal and wildcard), re-query the cache root at the mutation boundary, and accept ExternalScript uv shims in Clear-UvCache.
- Pin GOTOOLCHAIN=local alongside GOFLAGS=-modcacherw in Clear-GoCaches.
- Run bun pm cache / bun pm cache rm from a Mole temp directory holding {} package.json for Bun 1.4 compatibility.
- Normalize forward slashes and leading tilde in Get-UncoveredDefaultSearchPaths.
- List discovered installers and return cleanly when mo installer runs without an interactive console.
- In mo analyze: switch colorGray to ANSI faint (\033[0;2m), invalidate ancestor overviewSizeCache and overview history rows on Downloads refresh, and reserve trailing hint space on 90-121 column terminals.
- Record CLI-SYNC-36 in SYNC.md.

Verified locally with gofmt, GOOS=windows go build ./cmd/..., GOOS=windows go test -c ./cmd/analyze, check_guidance_budget.py, check_source_bans.py --self-test, check_incidents.py, and tests/review_gates_test.py; native PowerShell 5.1, pwsh 7, and Windows Go tests verified by Windows CI on this PR.
@tw93
tw93 force-pushed the fix/windows-pre-release-audit branch from ee48e93 to 03fa8df Compare December 5, 2026 02:59
@tw93
tw93 merged commit d8d5638 into windows Dec 5, 2026
5 checks passed
@tw93
tw93 deleted the fix/windows-pre-release-audit branch December 5, 2026 03:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant