Skip to content

Add JSON output for optimize and yield#492

Open
barry166 wants to merge 1 commit into
getagentseal:mainfrom
barry166:feat/json-optimize-yield
Open

Add JSON output for optimize and yield#492
barry166 wants to merge 1 commit into
getagentseal:mainfrom
barry166:feat/json-optimize-yield

Conversation

@barry166

Copy link
Copy Markdown

Summary

  • add --format json to optimize with setup health, savings summary, and serialized findings/fixes
  • add --format json to yield with productive/reverted/abandoned buckets and ratio
  • document the new JSON modes and add focused serializer tests

Closes #419.

Testing

  • npm test -- tests/optimize.test.ts tests/yield.test.ts
  • npm test
  • npm run build
  • git diff --check
  • npm run dev -- optimize -p today --format json
  • npm run dev -- yield -p today --format json

Dashboard integrations need machine-readable optimize findings and yield ratios without parsing terminal output. This threads the existing analysis results into conservative JSON serializers while preserving text output as the default.

Constraint: Issue getagentseal#419 asks for dashboard-friendly JSON for optimize and yield

Rejected: Build a separate analysis path | would risk drift from terminal output

Confidence: high

Scope-risk: narrow

Tested: npm test

Tested: npm run build

Tested: npm run dev -- optimize -p today --format json

Tested: npm run dev -- yield -p today --format json

Not-tested: Real downstream dashboard integration
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.

Add --format json support to optimize and yield subcommands

1 participant