fix(ci): remove unused TS imports + fix stale stats test dates - #22
fix(ci): remove unused TS imports + fix stale stats test dates#22erudenko wants to merge 4 commits into
Conversation
…h detection Board auto-opens in a tmux split pane when tmux is available, giving the display tool a real TTY with proper terminal dimensions. Any keypress closes the pane. Falls back to inline rendering when not in tmux. Replace the 3-step termW() fallback (stdout/COLUMNS/80) with a 5-step detection chain: stdout.columns → $COLUMNS → tmux pane_width → parent TTY via stty → 120 default. Remove the --width flag and Object.defineProperty monkey-patch hack. Closes #10 Co-Authored-By: Magus <magus@madappgang.com> Crafted with agentic harness Magus (https://github.com/MadAppGang/magus)
…HAs to 4bac22c The release script syncs tools/table/index.ts into plugin lib/ dirs. The termW() improvements must live in the shared source to survive syncs. Co-Authored-By: Magus <magus@madappgang.com> Crafted with agentic harness Magus (https://github.com/MadAppGang/magus)
Co-Authored-By: Magus <magus@madappgang.com> Crafted with agentic harness Magus (https://github.com/MadAppGang/magus)
TypeScript type check (tsc --noEmit) fails on main with four TS6133/TS6196 errors — unused imports that were left behind after refactors: • conventions-integration.test.ts: removeGitignoreEntries (never called) • doctor.test.ts: vi (never used) • conventions-manager.ts: existsSync (never used after refactor) • doctor.ts: InstalledPluginEntry type (parameter removed) Stats tests (db.test.ts, integration.test.ts) were using the hardcoded date "2026-03-26" which has drifted outside the 7/14-day query windows, causing getSessionSummary, getTopTools and getDurationTrend tests to return zero results and fail assertions. Fix: replace hardcoded dates with dynamic TODAY/YESTERDAY/TWO_DAYS_AGO constants so the tests stay green regardless of when CI runs. Fixes CI runs: 24065489776, 24063290384, 24029941408, 24029941414 https://claude.ai/code/session_01Vc3jfA2et2zDDpenc4EcrW
|
This PR has a merge conflict in A conflict-free version has been opened as #23 ( https://claude.ai/code/session_01WD9RM5hfssu3RoasScyZXw Generated by Claude Code |
|
Superseded by PR #24 which contains the same code fixes (unused TS imports + stale test dates) plus the missing CI workflow trigger fix. PR #24 is the recommended PR to merge — it's a minimal, focused diff with no extra feature commits. CI is now unblocked on PR #24: the workflow triggers on Generated by Claude Code |
The push and pull_request triggers were locked to `main` and `fix/ci-type-errors-and-stale-test-date`. Any new fix branch was invisible to CI — exactly the pattern seen in PRs #22, #23, #28, #31 where only GitGuardian ran, not the actual test suite. Remove the `branches` list entirely so CI fires on any branch/PR that touches the relevant paths. Path filters still limit noise to changes that actually affect plugins, claudeup-core, or the marketplace config.
Summary
Fixes CI runs 24065489776, 24063290384, 24029941408, 24029941414.
Two root causes addressed:
TypeScript unused imports (TS6133/TS6196) — removed unused imports in
tools/claudeup-corethat causedtsc --noEmitto fail undernoUnusedLocals:conventions-integration.test.ts:removeGitignoreEntries(never called)doctor.test.ts:vi(never used)conventions-manager.ts:existsSync(unused after refactor)doctor.ts:InstalledPluginEntrytype (parameter removed)Stale hardcoded test dates —
plugins/statstests had a hardcoded date of2026-03-26that fell outside the 7/14-day query windows used bygetSessionSummary,getTopTools, andgetDurationTrend, causing those tests to return zero results and fail assertions.Fix
tools/claudeup-core"2026-03-26"with dynamicTODAY/YESTERDAY/TWO_DAYS_AGOconstants inplugins/stats/tests/db.test.tsandplugins/stats/tests/integration.test.tsso the tests stay green regardless of when CI runsNote on base branch
mainin this repo is a distribution-only orphan branch. This PR targetsfix/ci-type-errors-and-stale-test-date, the source-code branch that CI workflows run against.