Skip to content

Switch the protocol trace to JSON lines and add an agent skill - #9

Merged
sukujgrg merged 1 commit into
masterfrom
json-trace-skill-install
Aug 16, 2026
Merged

Switch the protocol trace to JSON lines and add an agent skill#9
sukujgrg merged 1 commit into
masterfrom
json-trace-skill-install

Conversation

@sukujgrg

Copy link
Copy Markdown
Owner

Summary

  • Replace the YAML stderr protocol trace with JSON lines so agents can parse it without a YAML library. Humans who want YAML can install yq and convert.
  • Fail at the CLI when a flag is present but empty (for example --client-id "$UNSET"), and require grant/auth fields such as client-id before any HTTP call.
  • Add skills/oauth2c plus curl/PowerShell installers so people can install a release binary without Go.

Test plan

  • GOEXPERIMENT=jsonv2 go test ./cmd ./internal/oauth2 (unit tests; Auth0 live grants skip without .env.auth0)
  • Run a client-credentials grant and confirm stderr is one JSON object per line, stdout is token JSON
  • oauth2c … --client-id "" exits 1 with --client-id is empty before discovery
  • oauth2c version after scripts/install.sh (or install.ps1 on Windows)

Made with Cursor

YAML on stderr forced every caller to ship a parser; JSON lines are
available by default, empty flags fail before HTTP, and install scripts
cover machines without Go.

Co-authored-by: Cursor <cursoragent@cursor.com>
@sukujgrg
sukujgrg merged commit d0ea2a1 into master Aug 16, 2026
3 checks passed
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.

1 participant