You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* test(service): fix stale provider-override boot tests + harden release (INT-2271)
The 2 failing service.test.ts tests were stale, not a regression: the provider-
override reapply lives inside the `if (config.autonomous?.enabled)` block (it
calls runnerInstance.switchProvider, which needs a runner), but the tests drove
it with a non-autonomous config — one spread `mockConfig.autonomous` (undefined
→ {}), the other asserted readProviderOverride on a plain boot.
- 'reapplies override on boot' now uses mockAutonomousConfig (+ adapter override).
- 'initialize all required modules' drops the autonomous-only readProviderOverride
assertion (the reapply is covered by the two override-specific tests).
- service.test.ts: 37/37 green.
Also harden the release pipeline now that the suite is green:
- package.json: postbuild `chmod +x dist/cli.js` — a clean `rm -rf dist && build`
otherwise drops the exec bit and the global CLI hits "permission denied".
- ci.yml: promote the test job to a hard gate (drop continue-on-error).
* refactor: clean all lint warnings + finish ANSI unification (INT-2260, INT-2270)
Now that the suite is green, make lint meaningful and finish the status-color
consistency work so the hard CI/release gates hold.
Lint (36 warnings → 0):
- Remove unused imports / variables across 11 files (issues bridges, discordCore,
chatMemory, scanner's recursion-only param, cli.ts self-registering command
binding, several test files).
- Prefix intentionally-unused mock params with `_`; disable no-control-regex on
the ANSI-stripping regex; two endsWith() swaps in bsDetector.
ANSI unification (checkHandler.ts):
- Replace the file's hand-rolled always-on ANSI `c` map (~108 call sites) with the
shared NO_COLOR/TTY-safe helper from src/support/colors — `c.green('x')` +
`status.ok/err/warn/glyph` where a status glyph fits. Non-status badges keep
their glyph. Output is byte-identical under non-TTY, so substring tests hold.
Full suite now green: typecheck / build / lint (0 warnings) / test (1306 passed).
0 commit comments