• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / cli / 27192356801
65%

Build:
DEFAULT BRANCH: develop
Ran 09 Jun 2026 08:02AM UTC
Jobs 1
Files 223
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

09 Jun 2026 08:00AM UTC coverage: 64.306% (-0.008%) from 64.314%
27192356801

push

github

web-flow
chore(cli): track output_format and fix is_agent CI parity (#5513)

## Summary

Adds an `output_format` property to the `cli_command_executed` telemetry
event and fixes a Go/TS divergence in how `is_agent` is computed.
Together these make the JSON-vs-human output choice measurable and
ensure both CLI shells agree on what counts as an agent. This is the
measurement-and-parity groundwork for auto-switching agents to JSON
output (next subissue under GROWTH-806).

## Changes

- **Record the resolved output format on every `cli_command_executed`.**
Added `output_format` to the Go catalog (`events.go`) and its TS mirror
(`event-catalog.ts`), and emit it from the Go capture and both TS
instrumentation paths. `db query` resolves its format into a
command-local flag, so it now mirrors the resolved value onto the global
that telemetry reads, keeping the value accurate for the highest-volume
agent command. The property does not exist today, so current JSON usage
is unmeasurable without it.
- **Fix `is_agent` Go/TS parity.** The TS legacy analytics layer folded
CI into `is_agent` (`is_agent = aiTool || isCi`), tagging CI
environments as agents while the Go binary does not. `is_agent` now
reflects coding-agent detection only, matching Go on both shells.
`is_ci` continues to be reported as its own separate property.

## Notes for reviewers

- `output_format` values are shell-native (Go:
`pretty|json|yaml|toml|env`; TS: `text|json|stream-json`), disambiguated
by `$lib`; normalize in analysis.
- Deliberately out of scope: aligning the CI env-var lists across the
two shells. `runtime.isCi` gates behavior in
`legacy-platform-api.layer.ts`, so changing those lists would alter
non-interactive behavior for some CI environments. That belongs in a
separate change, not this telemetry-parity fix.
- The three instrumentation/platform-api unit tests now provide a mock
`Output` because the instrumentation reads `output.format`.

## Linear

- fixes GROWTH-912
- parent GROWTH-806
... (continued)

10386 of 16151 relevant lines covered (64.31%)

7.06 hits per line

Coverage Regressions

Lines Coverage ∆ File
17
7.63
-0.03% cmd/root.go
8
52.17
-0.19% cmd/db.go
1
28.57
0.0% internal/telemetry/events.go
Jobs
ID Job ID Ran Files Coverage
1 27192356801.1 09 Jun 2026 08:02AM UTC 223
64.31
GitHub Action Run
Source Files on build 27192356801
  • Tree
  • List 223
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #27192356801
  • 9eebd546 on github
  • Prev Build on develop (#27149724318)
  • Next Build on develop (#27197280116)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc