ZIm/crates/component_preview/src
Nate Butler c5d8407df4
component: Component crate cleanup (#29967)
This PR further organizes and documents the component crate. It:

- Simplifies the component registry
- Gives access to `ComponentMetadata` sooner
- Enables lookup by id in preview extension implementations
(`ComponentId` -> `ComponentMetadata`)
- Should slightly improve the performance of ComponentPreview

It also brings component statuses to the Component trait:

![CleanShot 2025-05-05 at 23 27
11@2x](https://github.com/user-attachments/assets/dd95ede6-bc90-4de4-90c6-3e5e064fd676)

![CleanShot 2025-05-05 at 23 27
40@2x](https://github.com/user-attachments/assets/9520aece-04c2-418b-95e1-c11aa60a66ca)

![CleanShot 2025-05-05 at 23 27
57@2x](https://github.com/user-attachments/assets/db1713d5-9831-4d00-9b29-1fd51c25fcba)

Release Notes:

- N/A
2025-05-06 03:41:52 +00:00
..
preview_support Allow attaching text threads as context (#29947) 2025-05-05 13:59:21 -07:00
component_preview.rs component: Component crate cleanup (#29967) 2025-05-06 03:41:52 +00:00
persistence.rs Simplify the SerializableItem::cleanup implementation (#29567) 2025-04-28 22:15:24 +00:00
preview_support.rs Add Agent Preview trait (#29760) 2025-05-01 23:03:06 -04:00