Repository navigation
fix: make tsc pass and restore the daily update-check limit - #7
Open
rohit-pathak wants to merge 2 commits into
Open
rohit-pathak wants to merge 2 commits into
rohit-pathak wants to merge 2 commits into
Conversation
- Add typescript@5.9.3 and @types/node@24.19.2 as pinned devDependencies (tsc was only present transitively). - version.ts: accept both the sync v1 TuiKV and the async v2 facade KV. With the sync KV, the "checked today" branch was never taken, so every launch hit the GitHub API. Narrow the toast variant to TuiToast's union. - Add test/version.test.ts covering sync/async KV and stale checks. - `just check` now runs `tsc --noEmit` so CI catches type errors. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
typescript@5.9.3and@types/node@24.19.2as pinned devDependencies.tscwas only installed transitively (viabun-ffi-structs's peer dep), andsrc/clipboard.tshad no Node types.version.tsassumed an async KV. Opencode v1'sTuiKVis synchronous, socheckForUpdatenever saw a Promise and fetched from the GitHub API on every launch, which defeated the once-a-day limit. It now accepts both the sync v1 KV and the async v2 facade KV throughPromise.resolve. The toastvariantis narrowed toTuiToast's union.test/version.test.ts, covering sync KV, async KV, stale checks and the no-KV case. Against the old code the sync-KV test fails; with this change all 4 pass.just checknow runstsc --noEmit, so type errors fail the build. These errors had gone unnoticed since v0.20.0 typedapiasTuiPluginApi.mise.tomlpinning bun 1.3, and updated the outdatedapi: anynote in AGENTS.md and thejust checkdescriptions in CONTRIBUTING.md.Checks
just check: lint clean,tsc --noEmitclean, 576 tests pass.🤖 Generated with Claude Code