Clarify the processActivity and summary JSDoc, correct the running label in the title table, export RunningProcessActivity, and add the upgrade guide for the ProcessActivity union change. Co-authored-by: Kaige-Gao <[email protected]>
1.0 KiB
1.0 KiB
kind, description
| kind | description |
|---|---|
| upgrade-guide | Chat ProcessActivity gains a context category, and the running activity uses RunningProcessActivity. |
Chat ProcessActivity adds context
English | 中文
Change
ProcessActivity, exported from @deepseek-ai/dsh-client-ui-chat/client, gains the member context. A closed process group whose members are all Context injections reports it as its only category. ProcessActivitySummary.running is now typed as the new exported RunningProcessActivity, which excludes context. This affects extensions that switch exhaustively over ProcessActivity or map every member to a label or icon.
Migration
- Add a
contextbranch wherever code handles everyProcessActivitymember, for example in aRecord<ProcessActivity, …>or aswitchending inassertNever. - Type values read from
summary.runningasRunningProcessActivitywhen they need not covercontext. - Run the extension's typecheck and confirm it compiles without a missing-member error.