Files
worldmonitor/docs/api
Nicolas Gomes Ferreira Dos Santos ee27b91c8f refactor(proto): consolidate SummarizeArticleResponse status fields (#813)
* refactor(proto): consolidate SummarizeArticleResponse status fields

Replace redundant boolean/string status fields (cached, skipped, error,
error_type, reason) with a SummarizeStatus enum and a single
status_detail string. This addresses L-8 lint issue by reducing field
count and making the response status unambiguous.

- Add SummarizeStatus enum (UNSPECIFIED, SUCCESS, CACHED, SKIPPED, ERROR)
- Replace cached/skipped booleans with status enum field
- Merge error/error_type/reason into statusDetail string
- Reserve old field numbers (4, 7, 8, 9, 10) for wire compatibility
- Update server handlers and client code to use new fields
- Regenerate TypeScript types and OpenAPI docs

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(proto): restore error and errorType fields for programmatic error handling

Keep the new SummarizeStatus enum and statusDetail for consolidated
status tracking, but restore the separate error and errorType fields
(proto field numbers 9, 10) to preserve structured error information
for downstream consumers that need to programmatically handle errors.

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Elie Habib <elie.habib@gmail.com>
2026-03-03 01:15:44 +04:00
..