Skip to content

Commit ae61439

Browse files
committed
test,docs: follow the plugin-ai retirement in census pins, docs and the new retirement pin (WIP)
Claude-Session: https://claude.ai/code/session_01VBDBR9oS1MNUcjBVXds5D6 Co-authored-by: Claude <noreply@anthropic.com>
1 parent 22dc89f commit ae61439

18 files changed

Lines changed: 215 additions & 125 deletions

‎ui/README.md‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,6 @@ Grouped by dependency weight — atoms and fields stay light, heavy widgets live
415415
| **[@object-ui/plugin-editor](./packages/plugin-editor)** | Rich text editor powered by Monaco |
416416
| **[@object-ui/plugin-markdown](./packages/plugin-markdown)** | Markdown rendering |
417417
| **[@object-ui/plugin-chatbot](./packages/plugin-chatbot)** | Chatbot interface |
418-
| **[@object-ui/plugin-ai](./packages/plugin-ai)** | Schema generation and conversational assistants (Vercel AI SDK) |
419418

420419
### Tooling
421420

‎ui/content/docs/plugins/meta.json‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"title": "Plugins",
33
"pages": [
4-
"plugin-ai",
54
"plugin-calendar",
65
"plugin-calendar-view",
76
"plugin-charts",

‎ui/content/docs/plugins/plugin-ai.mdx‎

Lines changed: 0 additions & 26 deletions
This file was deleted.

‎ui/packages/components/src/__tests__/clickableNonControlCensus-13461.test.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,6 @@ const NOT_CONTROLS: Array<[file: string, key: string, reason: string]> = [
262262
const BACKLOG: Array<[file: string, key: string]> = [
263263
// The data form preview selects a field by a click delegated from its frame.
264264
['packages/app-shell/src/views/studio-design/StudioDesignSurface.tsx', 'div · closest,getAttribute,some,readFields,setFieldSel'],
265-
['packages/plugin-ai/src/AIRecommendations.tsx', 'div · handleSelect'],
266265
['packages/plugin-designer/src/DashboardEditor.tsx', 'div · onSelect'],
267266
['packages/plugin-designer/src/DataModelDesigner.tsx', 'span · stopPropagation,handleStartFieldEdit'],
268267
['packages/plugin-designer/src/PageDesigner.tsx', 'div · stopPropagation,toggle'],

‎ui/packages/components/src/__tests__/iconOnlyButtonCensus-12143.test.ts‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,6 @@ const unnamed: Judged[] = iconOnly.filter((j) => !j.named);
228228
* that card's fix.
229229
*/
230230
const BACKLOG: Array<[file: string, icons: string[]]> = [
231-
['packages/plugin-ai/src/AIFormAssist.tsx', ['RefreshCw', 'X', 'Check', 'X']],
232-
['packages/plugin-ai/src/AIRecommendations.tsx', ['ExternalLink', 'X', 'ThumbsUp', 'ThumbsDown']],
233231
['packages/plugin-detail/src/DetailView.tsx', ['ArrowLeft', 'ChevronLeft', 'ChevronRight']],
234232
['packages/plugin-detail/src/RecordComments.tsx', ['Send']],
235233
['packages/plugin-list/src/ListView.tsx', ['X']],

‎ui/packages/types/src/__tests__/any-component-emit-headroom-11573.test.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ import { fileURLToPath } from 'node:url';
8282
import ts from 'typescript';
8383
import type { z } from 'zod';
8484
import { AnyComponentSchema } from '../zod/index.zod.js';
85-
import type { AIComponentZodType } from '../zod/ai.zod.js';
8685
import type { ComplexZodType } from '../zod/complex.zod.js';
8786
import type { CRUDComponentZodType } from '../zod/crud.zod.js';
8887
import type { DataDisplayZodType } from '../zod/data-display.zod.js';
@@ -310,7 +309,9 @@ describe('`AnyComponentSchema` declaration emit headroom (objectui#11573)', () =
310309
{ member: 'CRUDComponentSchema', kind: 'category union', printsAs: 'CRUDComponentZodType' },
311310
{ member: 'ReportUnionSchema', kind: 'category union', printsAs: 'ReportUnionZodType' },
312311
{ member: 'ViewComponentSchema', kind: 'category union', printsAs: 'ViewComponentZodType' },
313-
{ member: 'AIComponentSchema', kind: 'category union', printsAs: 'AIComponentZodType' },
312+
{ member: 'RetiredAIFormAssistNodeSchema', kind: 'arm', printsAs: 'inline' },
313+
{ member: 'RetiredAIRecommendationsNodeSchema', kind: 'arm', printsAs: 'inline' },
314+
{ member: 'RetiredNLQueryNodeSchema', kind: 'arm', printsAs: 'inline' },
314315
{ member: 'DesignerUnionSchema', kind: 'category union', printsAs: 'DesignerUnionZodType' },
315316
{ member: 'PublicBlockComponentSchema', kind: 'category union', printsAs: 'PublicBlockComponentZodType' },
316317
{ member: 'RetiredCloudPlanStatusNodeSchema', kind: 'arm', printsAs: 'inline' },
@@ -369,7 +370,6 @@ type _ObjectQLPublicBlockComponent = Assert<NamesItsUnion<ObjectQLPublicBlockCom
369370
type _CRUDComponent = Assert<NamesItsUnion<CRUDComponentZodType>>;
370371
type _ReportUnion = Assert<NamesItsUnion<ReportUnionZodType>>;
371372
type _ViewComponent = Assert<NamesItsUnion<ViewComponentZodType>>;
372-
type _AIComponent = Assert<NamesItsUnion<AIComponentZodType>>;
373373
type _DesignerUnion = Assert<NamesItsUnion<DesignerUnionZodType>>;
374374
type _PublicBlockComponent = Assert<NamesItsUnion<PublicBlockComponentZodType>>;
375375

‎ui/packages/types/src/__tests__/arm-named-export-8784.test.ts‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,24 @@ const ABSENT_BY_DECISION: Readonly<Record<string, string>> = {
190190
+ 'retired raw-HTML `html` literal (objectui#13449), in the shape of the `kanban` row above. '
191191
+ 'The decision is written on the barrel beside the `data-display.zod.js` block: "it is '
192192
+ 'deliberately NOT exported — nothing outside this package parses against a refusal arm".',
193+
'ai-form-assist':
194+
'ai.zod.ts#RetiredAIFormAssistNodeSchema — the same ADR-0049 refusal arm, for a literal `@object-ui/plugin-ai` '
195+
+ 'registered until it retired (objectstack#25921), in the shape of the `kanban` row above. The '
196+
+ 'barrel\'s `AIFormAssistSchema`-family names are `z.never()` tombstones, not this arm; the decision '
197+
+ 'is written beside the `ai.zod.js` block: "deliberately NOT exported — nothing outside this '
198+
+ 'package parses against a refusal arm".',
199+
'ai-recommendations':
200+
'ai.zod.ts#RetiredAIRecommendationsNodeSchema — the same ADR-0049 refusal arm, for a literal `@object-ui/plugin-ai` '
201+
+ 'registered until it retired (objectstack#25921), in the shape of the `kanban` row above. The '
202+
+ 'barrel\'s `AIFormAssistSchema`-family names are `z.never()` tombstones, not this arm; the decision '
203+
+ 'is written beside the `ai.zod.js` block: "deliberately NOT exported — nothing outside this '
204+
+ 'package parses against a refusal arm".',
205+
'nl-query':
206+
'ai.zod.ts#RetiredNLQueryNodeSchema — the same ADR-0049 refusal arm, for a literal `@object-ui/plugin-ai` '
207+
+ 'registered until it retired (objectstack#25921), in the shape of the `kanban` row above. The '
208+
+ 'barrel\'s `AIFormAssistSchema`-family names are `z.never()` tombstones, not this arm; the decision '
209+
+ 'is written beside the `ai.zod.js` block: "deliberately NOT exported — nothing outside this '
210+
+ 'package parses against a refusal arm".',
193211

194212
// ⭐ The two rows objectui#9067 moved here out of ABSENT_PENDING_DECISION. They
195213
// quote `.changeset/8499-node-slot-registered-arms.md` rather than cite it,

‎ui/packages/types/src/__tests__/component-docs-retired-handler-keys-7340.test.ts‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -339,12 +339,16 @@ describe('the retired population is measured off the shipped tree (objectui#7340
339339
// new key, which `DataModelDesigner` draws — but the old spelling is now the
340340
// same `on*?: never` shape this census reads, refused by name with the
341341
// migration, so it is counted here like `onUpdate` above.
342+
//
343+
// ⭐ 31 → 29, and `ai.ts` leaves this census: `@object-ui/plugin-ai` RETIRED
344+
// (objectstack#25921) and its three declarations are `never` tombstones, so
345+
// `onApplySuggestion` / `onRejectSuggestion` left the shipped tree whole —
346+
// the #8802 kind of shrink. The three runtime slots left LIVE with them.
342347
const split: Record<string, number> = {};
343348
for (const m of RETIRED) split[m.file] = (split[m.file] ?? 0) + 1;
344349
expect({ total: RETIRED.length, split }).toEqual({
345-
total: 31,
350+
total: 29,
346351
split: {
347-
'ai.ts': 2,
348352
'complex.ts': 2,
349353
'crud.ts': 3,
350354
'data-display.ts': 4,
@@ -374,8 +378,6 @@ describe('the retired population is measured off the shipped tree (objectui#7340
374378
// to classify. They are not "live again": the document that could have
375379
// carried them is refused at its `type`.
376380
expect(UNAMBIGUOUSLY_RETIRED_NAMES).toEqual([
377-
// objectui#10874 — declared on `AIFormAssistSchema` alone, read by nothing.
378-
'onApplySuggestion',
379381
// objectui#9342 — no shipped interface declares an `onCardMove` callable
380382
// any more. `KanbanRendererProps.onCardMove` is a React prop on
381383
// `@object-ui/plugin-kanban`, not a member of a `@object-ui/types`
@@ -400,8 +402,6 @@ describe('the retired population is measured off the shipped tree (objectui#7340
400402
// `@object-ui/types` document interface, so it is not in this census's
401403
// population — the same reading as `onCardMove` above.
402404
'onQuickAdd',
403-
// objectui#10874 — declared on `AIFormAssistSchema` alone, read by nothing.
404-
'onRejectSuggestion',
405405
'onSave',
406406
'onSelectChange',
407407
'onSendMessage',

‎ui/packages/types/src/__tests__/content-channel-family-d-9256.test.ts‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,6 @@ import type { ObjectGallerySchema } from '../objectql';
236236
import type { CarouselSchema, ChatbotSchema, ChatbotEnhancedSchema } from '../complex';
237237
import type { ReportViewerSchema } from '../reports';
238238
import type { ViewSwitcherSchema } from '../views';
239-
import type { NLQuerySchema } from '../ai';
240239
import type { TextSchema, ImageSchema, IconSchema, TabsSchema } from '../layout';
241240
import type { AccordionSchema } from '../disclosure';
242241
import type { CalendarSchema } from '../form';
@@ -555,8 +554,8 @@ describe('objectui#9256 — the TypeScript face refuses both channels at the AUT
555554
const viewSwitcherChildren: ViewSwitcherSchema = { type: 'view-switcher', views: [], children: CONTENT };
556555
// @ts-expect-error objectui#9256 — `report-viewer` reads neither channel
557556
const reportBody: ReportViewerSchema = { type: 'report-viewer', body: CONTENT };
558-
// @ts-expect-error objectui#9256 — `nl-query` reads neither channel (no zod mirror exists; this face is the only gate)
559-
const nlQueryChildren: NLQuerySchema = { type: 'nl-query', children: CONTENT };
557+
// (`nl-query` stood here until its node type retired with `@object-ui/plugin-ai`,
558+
// objectstack#25921: `NLQuerySchema` is a `never` tombstone now.)
560559
// @ts-expect-error objectui#9256 — `pivot` reads neither channel (no zod mirror exists; this face is the only gate)
561560
const pivotBody: PivotTableSchema = { type: 'pivot', body: CONTENT };
562561
// @ts-expect-error objectui#9256 — `chatbot` reads neither channel; `children` is narrowed, `body` is held out
@@ -604,11 +603,11 @@ describe('objectui#9256 — the TypeScript face refuses both channels at the AUT
604603
expect([
605604
separatorBody, separatorChildren, kbdBody, skeletonChildren, checkboxBody, paginationChildren,
606605
dialogChildren, collapsibleChildren, carouselBody, galleryBody, viewSwitcherChildren, reportBody,
607-
nlQueryChildren, pivotBody, chatbotChildren,
606+
pivotBody, chatbotChildren,
608607
textBody, textChildren, imageBody, imageChildren, iconBody, iconChildren,
609608
tabsBody, tabsChildren, accordionBody, accordionChildren, calendarBody, calendarChildren,
610609
listBody, listChildren, timelineBody, timelineChildren,
611-
]).toHaveLength(31);
610+
]).toHaveLength(30);
612611
});
613612

614613
it('CONTROL — the same nodes WITHOUT a content channel compile (no `@ts-expect-error` here, and `tsc` is the reader)', () => {

‎ui/packages/types/src/__tests__/content-channel-parser-tier-clause-10928.test.ts‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,9 @@
4848
* ## What is pinned, and what is deliberately not
4949
*
5050
* The clause as a substring, on the shared builder and on one arm from each of
51-
* the three sources that compose these messages (a literal, the shared
52-
* `neitherContentChannelGuidance`, and `ai.zod.ts`'s local builder), each read
51+
* the sources that compose these messages (a literal and the shared
52+
* `neitherContentChannelGuidance`; the third, `ai.zod.ts`'s local builder, left
53+
* with `@object-ui/plugin-ai`, objectstack#25921), each read
5354
* through the arm's refusal with its code and path. Then the population: every
5455
* exported member whose refusal is the family-D sentence carries it, so a later
5556
* slice that copies an older literal goes red here. The rest of each message is
@@ -62,7 +63,6 @@ import * as Z from '../zod/index.zod';
6263
import { neitherContentChannelGuidance } from '../zod/tombstone.zod';
6364
import { AccordionSchema } from '../zod/disclosure.zod';
6465
import { ObjectGridSchema } from '../zod/objectql.zod';
65-
import { AIFormAssistSchema } from '../zod/ai.zod';
6666

6767
/** The corrected clause, as every family-D / E3 refusal now carries it. */
6868
const CLAUSE =
@@ -99,7 +99,6 @@ describe('objectui#10928 — one arm per message source, read through its refusa
9999
const ARMS = [
100100
['a literal (`accordion`)', AccordionSchema, 'accordion'],
101101
['the shared builder (`object-grid`)', ObjectGridSchema, 'object-grid'],
102-
['ai.zod.ts\'s local builder (`ai-form-assist`)', AIFormAssistSchema, 'ai-form-assist'],
103102
] as const;
104103

105104
for (const [source, schema, type] of ARMS) {
@@ -123,9 +122,9 @@ describe('objectui#10928 — the population: every family-D refusal carries the
123122
}
124123
}
125124

126-
it('the walk reaches all three message sources (non-vacuity, by name rather than by count)', () => {
125+
it('the walk reaches both message sources (non-vacuity, by name rather than by count)', () => {
127126
const found = new Set(members.map((m) => `${m.name}.${m.key}`));
128-
for (const name of ['AccordionSchema', 'ObjectGridSchema', 'AIFormAssistSchema']) {
127+
for (const name of ['AccordionSchema', 'ObjectGridSchema']) {
129128
for (const key of CHANNELS) expect(found, `${name}.${key}`).toContain(`${name}.${key}`);
130129
}
131130
});

0 commit comments

Comments
 (0)