Files
gemini-cli/tools/gemini-cli-bot/metrics/scripts
gemini-cli[bot] a16f1067bb fix(bot): transition metrics to stable 7-day windows and stabilize build
This PR implements surgical fixes for identified issues in the repository metrics and build stability:

1. **Stable Metrics Windows**: Transitioned `throughput.ts`, `latency.ts`, and `user_touches.ts` from an unstable `last: 100` items window to a fixed 7-day search window. This resolves the "mathematically impossible" deltas identified in the bot's memory caused by bursty activity.
2. **Build Stabilization**:
    - Upgraded `packages/test-utils/tsconfig.json` to `ES2023` to match the rest of the workspace and support modern features like `Object.hasOwn` and `Intl.Segmenter`.
    - Added local `ErrorOptions` definitions in `a2a-errors.ts` and `fetch.ts` to support the `cause` property in `Error` constructors.
    - Fixed an `err: unknown` type check issue in `packages/cli/index.ts`.

These changes ensure that the repository metrics are reliable and that the project build is stable for contributors.

cc @gundermanc

Labels: bot-fix
2026-05-13 04:53:58 +00:00
..
2026-05-01 19:20:02 +00:00