Skip to content

Commit a138a39

Browse files
committed
chore(changeset): name each retired export on its own FROM line (WIP)
Claude-Session: https://claude.ai/code/session_01VBDBR9oS1MNUcjBVXds5D6 Co-authored-by: Claude <noreply@anthropic.com>
1 parent 2a9feba commit a138a39

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎.changeset/25921-retire-plugin-ai.md‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ Metadata-protocol: narrowed
1515

1616
What leaves, and what to do:
1717

18-
- FROM `import { AIFormAssist, AIRecommendations, NLQueryInput } from '@object-ui/plugin-ai'` TO nothing: drop the dependency and the import. A host that still wants the components keeps its own copy and registers it under its own type key.
19-
- FROM a page node `{ "type": "ai-form-assist" }`, `{ "type": "ai-recommendations" }` or `{ "type": "nl-query" }` TO no node: remove it from the page. `safeValidateSchema` and `objectui validate` now refuse each of the three literals by name at `type`, with that remedy; before, the page rendered the "Unknown component type" panel in its place whenever the package was not loaded.
18+
- FROM `AIFormAssist` TO nothing: drop the `@object-ui/plugin-ai` import and dependency. A host that still wants the component keeps its own copy and registers it under its own type key.
19+
- FROM `AIRecommendations` TO nothing: the same fix.
20+
- FROM `NLQueryInput` TO nothing: the same fix.
21+
- Page nodes of type `ai-form-assist`, `ai-recommendations` or `nl-query`: remove them from the page. `safeValidateSchema` and `objectui validate` now refuse each of the three literals by name at `type`, with that remedy; before, the page rendered the "Unknown component type" panel in their place whenever the package was not loaded.
2022
- `@object-ui/types`: `AIFormAssistSchema`, `AIRecommendationsSchema`, `NLQuerySchema`, `AIConfig`, `AIFieldSuggestion`, `AIRecommendationItem`, `NLQueryResult`, `AIProvider` and `AIModelType` are `@deprecated` and now `never`, and `AnySchema` has no member for the three literals. The zod names (`AIFormAssistSchema` and the rest under `@object-ui/types/zod`, `AIComponentSchema` included) are `@deprecated` `z.never()` schemas that accept nothing. Remove every reference. The names stay importable until the tombstone sunset rule decides when they leave the published face.
2123
- `@object-ui/i18n`: the `ai.*` message block (`ai.nlQuery.*`, `ai.formAssist.*`, `ai.recommendations.*`) is gone from all ten packs. A host that registered overrides for those keys can delete them.
2224
- `@object-ui/cli`: `objectui check` no longer lists the three literals as known component types.

0 commit comments

Comments
 (0)