a2ui-project / a2ui-project/a2ui

[FEATURE]: Expose a structured public SurfaceController diagnostics stream

オープン
#2,241 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
P2 status: first-line-handled type: feature/enhancement
主要言語
TypeScript
スター
16.4k
フォーク
1.3k
平均マージ
2日 13時間
マージ済み PR(30日)
134

説明

- [x] I have searched the existing issues to make sure this feature has not already been requested.

## Is your feature request related to a problem? Please describe.

Applications and tooling need to attribute parser, catalog, validation, lifecycle, binding, and client-function failures to the message that caused them. Failures currently arrive through logs, throws, or disparate callbacks rather than one structured public controller contract. String logs are unstable for tests and unsafe to persist blindly.

## Describe the Proposed Solution

Add a structured diagnostics stream/callback on SurfaceController with a stable append-only code, severity, safe summary, optional surface/component/message identity, optional caller correlation, bounded structured context, and cause category without requiring raw exception text. Document terminal versus recoverable diagnostics and their ordering relative to message completion.

## Describe Alternatives Considered

Log scraping is unstable; catching only handleMessage exceptions misses recoverable/asynchronous failures; a test-only hook would not support application error UI or telemetry.

## Additional Context

#1860 requests abnormal-finalization handling and discoverable non-critical issues. This is the narrower controller-level primitive those handlers can consume.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。