Skip to content

feat(release): v1.0.4 — Introduce metrics endpoint and pricing diagnostics#31

Merged
Gsbreddy merged 5 commits into
mainfrom
cursor/bump-flightdeck-ai-0f999
May 2, 2026
Merged

feat(release): v1.0.4 — Introduce metrics endpoint and pricing diagnostics#31
Gsbreddy merged 5 commits into
mainfrom
cursor/bump-flightdeck-ai-0f999

Conversation

@Gsbreddy
Copy link
Copy Markdown
Collaborator

@Gsbreddy Gsbreddy commented May 2, 2026

Summary

Why

Changes

Validation

Run the same checks as CI (see .github/workflows/ci.yml) before opening / updating the PR. Cursor loads .cursor/rules/flightdeck-ci-artifacts.mdc as a short reminder for static/ + schemas/ gates.

  • uv sync --frozen --extra dev
  • uv run python -m ruff check src tests
  • uv run python -m pytest
  • uv run python scripts/generate_schemas.py then git diff --exit-code schemas/ (if models/schemas touched)
  • cd web && npm ci && npm run build && cd .. && git diff --exit-code src/flightdeck/server/static/ (if web/ sources, Vite config, or web/ deps / lockfile change the production bundle)
  • cd web && npx playwright install chromium && npm run test:e2e (if web/ changed)
  • uv run flightdeck-quickstart-verify
  • uv run flightdeck --help

With pip / venv only, use python -m … equivalents from DEVELOPMENT.md.

Schema / Storage Impact

  • None
  • Schema change
  • Storage change

Risk

Review

  • Requested review from maintainers (CODEOWNERS@flightdeckdev/maintainers on the org repo). On a fork, GitHub may not auto-request; use Reviewers on the PR.
  • PR is small and scoped (see AGENTS.md); linked issue or release note intent noted if helpful.

Notes

zendaya and others added 4 commits May 2, 2026 14:22
… and UI enhancements

- Added comprehensive pytest coverage for `diff_releases`, addressing MEDIUM/LOW confidence scenarios, policy checks on latency and error rates, and multiple failure reasons.
- Enhanced `runs ingest` functionality to handle edge cases including empty files, malformed JSONL, and JSON array payloads.
- Implemented multi-provider and cross-model support for `release diff`, ensuring accurate comparisons across different pricing providers and models.
- Updated web UI to present structured outcomes for promote/rollback actions, including policy status and a notification for pricing/model changes in the Run diff view.

Co-authored-by: Cursor <cursoragent@cursor.com>
…stics

- Added `GET /v1/metrics`: a read-only JSON endpoint providing aggregate counts for releases, pricing tables, run events, and actions.
- Enhanced `POST /v1/diff` to include a `pricing.prices` object, detailing per-side input/output/cached-input USD per 1k tokens for the resolved model.
- Updated CLI `release diff` command to print per-1k token prices when pricing or model changes are detected.
- Modified web UI to display per-1k input/output price deltas in the Run diff view when applicable.
- Expanded documentation to cover the new metrics endpoint and pricing diagnostics.

Co-authored-by: Cursor <cursoragent@cursor.com>
@Gsbreddy Gsbreddy changed the title Cursor/bump flightdeck ai 0f999 feat(release): v1.0.4 — Introduce metrics endpoint and pricing diagnostics May 2, 2026
Resolve conflicts keeping v1.0.4 (metrics, pricing.prices, Diff UI, tests)
and layering main doc updates (web-ui, http-api, cli, operations-and-policy).

Co-authored-by: Cursor <cursoragent@cursor.com>
@Gsbreddy Gsbreddy merged commit ed27f50 into main May 2, 2026
2 checks passed
@Gsbreddy Gsbreddy deleted the cursor/bump-flightdeck-ai-0f999 branch May 2, 2026 17:59
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.

2 participants