Skip to content
This repository was archived by the owner on Nov 4, 2026. It is now read-only.

refactor(types): deprecate PluginComponentInput in favour of ComponentInput (stage 1 of 2) - #5897

Merged
os-zhuang merged 1 commit into
mainfrom
claude/issue-5674-plugin-component-input-retire
Aug 23, 2026
Merged

os-zhuang merged 1 commit into
mainfrom
claude/issue-5674-plugin-component-input-retire

Conversation

@claude

@claude claude Bot commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

Part of #5674

⚠️ Deliberately Part of, not the closing keyword — the dispatch asked for the closer, and this PR does not earn it. The maintainer's ruling (2026-08-22, item 13 = A) made this a two-stage retirement: deprecate for a release, then remove. This PR is stage 1. #5674 now has an open sub-issue (#5892) carrying stage 2, so auto-closing the parent on merge would close a card with unfinished tracked work. One-word edit if the PM disagrees.

Marks PluginComponentInput @deprecated in favour of ComponentInput. Nothing is removed — the export still exists and still names the same type.

Premise, verified before implementing

The card's rationale depends on #5671 having landed; before it, the alias pointed at a genuinely different nine-key declaration. Verified against real source, not the issue tracker alone: PR #5671 merged 2026-08-22, and packages/types/src/plugin-scope.ts:188 on origin/main now reads export type { ComponentInput } from './base.js';. The alias is a pure alias today. Premise holds.

The zero-consumer claim, measured with its scope and a control

The card is explicit that "no importer in this repo" and "no importer" are different claims, and only the second licenses deleting an export from a published package. This PR does not rely on the second — see Why deprecate rather than delete. The first was measured anyway, because it bounds the risk:

Roots searched (excluding node_modules/, dist/, .turbo/, .git/): packages/ apps/ content/ docs/ skills/ examples/ e2e/ scripts/ eslint-rules/ public/ .changeset/, and the root *.md files (README AGENTS ROADMAP CONTRIBUTING QUICK_REFERENCE CHANGELOG). Plus the sibling objectstack framework checkout, and both repos' installed node_modules.

Result — PluginComponentInput has three occurrences repo-wide, none of them a consumer:

location what it is
packages/types/src/index.ts:922 the alias itself
packages/types/src/plugin-scope.ts:177 prose about the alias
.changeset/componentinput-reexport-4972.md:10 prose about the alias

Framework checkout: 0. Installed packages in either repo: 0.

Control, searched identically, so a broken search could not read as a clean one: AppMetadataPlugin — a neighbour in the same export type { … } block — returns 12 hits including a real cross-package import at packages/core/src/registry/PluginSystem.ts:10. For the framework leg, where AppMetadataPlugin is legitimately absent and therefore proves nothing, the controls are SchemaRenderer (30 files) and @object-ui/types (23 files). The apparatus finds names that are there.

The widening past code mattered. A name with no code importers but a docs page teaching it is not a zero-consumer name. The published skills corpus and content/docs/** do teach this area — skills/objectui/guides/plugin-development.md documents ComponentInput[] and a ComponentInput type block, and content/docs/guide/plugin-development.md tells authors to declare ComponentInput entries. Those are precisely the pages that would teach the plugin-scoped alias if anything did. They teach ComponentInput. Nothing anywhere teaches PluginComponentInput.

Why deprecate rather than delete

What no search from inside this repository can see is an importer on npm. That is the unmeasurable half, and it is the half that licenses deletion. The deprecation window converts a silent break into a warned one. Deprecating is undoable; deleting a published export is not — where the evidence is one-sided, the reversible step goes first. Stage 2 is tracked in #5892 and is explicitly gated on a release actually shipping this deprecation.

Precedent followed

Not invented. This package already retires published type exports by deprecating in place with a JSDoc tag naming the replacement:

One deviation from crud.ts, deliberate: it says "removed in a future major version", which is wrong for this repo — objectui's own breaking changes ship as minor and never set major (they track @objectstack's). The note here says minor.

For stage 2 the precedent set is also non-empty and is recorded on #5892: @object-ui/data-objectstack removed published exports twice, both as a minor with a FROM → TO breaking block and an explicit "no compile-compat stub was left" justification.

ADR-0087 does not apply. Its tombstones are for authorable metadata keys in @objectstack/spec, mirrored here by spec-parity tests. PluginComponentInput is a TypeScript type export in @object-ui/types — not an authorable key, not a spec symbol. check-spec-symbol-derivation.mjs passes and does not match it.

Published surface, before → after

Shown from the emitted .d.ts, not inferred from source.

Before — packages/types/dist/index.d.ts:140:

export type { PluginScope, PluginScopeConfig, AppPluginContext, AppMetadataPlugin, ComponentMeta as PluginComponentMeta, ComponentInput as PluginComponentInput, PluginEventHandler, } from './plugin-scope.js';

After — the same export, now carrying the tag:

export type { PluginScope, PluginScopeConfig, AppPluginContext, AppMetadataPlugin, ComponentMeta as PluginComponentMeta,
/**
 * @deprecated Use `ComponentInput` instead. Since objectui#4972 converged the
 * plugin-scoped declaration onto `base.ts`, this alias names the SAME type
 * ...
 */
ComponentInput as PluginComponentInput, PluginEventHandler, } from './plugin-scope.js';

That a JSDoc block on an export specifier survives declaration emit and lands attached to that specifier was measured, not assumed — a probe tag was injected, built, and located in the emitted file. It is the reason this works at all: had the tag been dropped by tsc, the deprecation would have existed only in source and warned nobody, and the whole window would have been cosmetic.

With comments stripped and whitespace normalised, the emitted entry point is byte-identical before and after (f191480edfbb1d39 both legs) — the published type surface does not move, it only gains the notice. That gauge is reported with its control: renaming the alias perturbs the same hash, so it is not a gauge that cannot fail.

Reverse verification

The diff is not a bare deletion — it adds a pin, packages/types/src/__tests__/plugin-component-input-deprecation.test.ts, which asserts both halves of "deprecated, not removed". Ablated in both directions, from a committed state:

ablation mutation confirmed on disk result
remove only the @deprecated tag, keep the prose deleted-text count 0, injected-text count 1, git diff --stat 1 insertion 1 deletion vitest exit 1 — exactly tags that block @deprecated red, 1 failed / 5 passed
delete the alias specifier outright (stage 2 arriving early) specifier count 0, git diff --stat 1 deletion vitest exit 1 (5 failed / 1 passed); type-check exit 2 — error TS2724: '"../index.js"' has no exported member named 'PluginComponentInput'

Both legs restored via an EXIT INT TERM trap, restoration confirmed by content grep and clean git status.

Worth stating because it is the interesting half: under the second ablation the type-level case passed in vitest (types erase at runtime) and was caught only by type-check. That is why the pin has both a text leg and a type leg, and why tsconfig.test.json being chained from this package's type-check script is load-bearing rather than decorative.

The pin reads source text, not dist/ — same constraint package-exports-manifest.test.ts records: the per-PR test job runs with no build of the package under test ahead of it (turbo's test task dependsOn: ["^build"], the dependency closure only), so a dist/-reading test would be vacuously absent-or-red on a cold cache.

Verification

All exit codes captured before any pipe; verdicts quoted from what each gate printed. Union re-run against the final commit 2f7d66c2b with a clean working tree.

gate exit printed verdict
check-changeset-presence.mjs 0 ✅ 3 source file(s) of 1 released package(s) changed, and this change declares 1 changeset(s)
check-changeset-no-major.mjs 0 ✅ No changeset declares a major bump.
check-changeset-fixed.mjs 0 ✅ All workspace packages are in the changeset fixed group.
check-control-bytes.mjs 0 ✅ OK (scanned 4902 tracked text file(s); skipped 85 binary)
check-spec-symbol-derivation.mjs 0 ✅ 1300 files scanned against 4959 spec export names
check-package-self-import.mjs 0 ✅ No package names itself inside its own src/.
check-published-dist-tooling.mjs 0 ✅ No published package's build output carries tooling material (39 packages, 5807 tarball files)
pnpm --filter @object-ui/types type-check 0 tsc --noEmit && tsc -p tsconfig.examples.json && tsc -p tsconfig.test.json, script name echoed, no error TS
pnpm vitest run --project unit packages/types/ 0 Test Files 49 passed (49) · Tests 547 passed (547)

Lint narrowing, declared. Repo-wide eslint . was not run locally; CI runs the farm regardless. Narrowed to the three changed files, with the three pieces of evidence a narrowing needs: (1) the population came from eslint's own resolved config (--print-config), not a guess about which files count; (2) the file count came from --format json — 3 files, 0 errors, 8 warnings; (3) type-aware linting is not enabled (parserOptions resolves to {}, no project/projectService), so this diff cannot move the verdict on any file it does not touch. Baseline control: the same files at origin/main produce the same 8 no-explicit-any warnings in plugin-scope.ts, at line numbers offset by exactly this diff's insertions (184→193, 247→256). Zero findings introduced.

Also self-scanned for control bytes beyond the gate: grep -naP '[\x00-\x08\x0b\x0c\x0e-\x1f\x7f]' over all four changed files, no matches.

Bump

patch on @object-ui/types — additive doc only, no type change, no removal. Stage 2's removal is the minor.

Scope

Fenced to the alias line and what the precedent requires alongside it. ComponentInput itself is untouched; #5671's work is not folded in. One adjacent edit is included and is not drive-by: plugin-scope.ts's doc block justified the re-export because index.ts' alias "keeps naming a real export" — left as-is it would tell the next reader the alias is load-bearing on the day it became deprecated. It now records the deprecation, and flags that the re-export is a separate binding from the file's import type (the import types ComponentMeta.inputs and stays; the re-export goes dead with the alias). The whole diff is 19 insertions, 0 deletions across the two source files.

An adjacent zero-consumer export noticed during the search was filed as a separate card and deliberately left alone here — see #5893, where ComponentMeta is shown to have two published declarations already diverged by tags/description. It is not the same shape as this one: still a structural copy, not an alias, so it needs convergence before any retirement question applies.


Generated by Claude Code

…ntInput

Stage 1 of the two-stage retirement ruled by the maintainer on 2026-08-22
(objectui#5674, item 13 = A): deprecate for a release, then remove.

Since objectui#4972 converged the plugin-scoped declaration onto base.ts,
`PluginComponentInput` is a second published name for the same type. Nothing
is removed here -- the export still exists and still names the same type; it
gains a `@deprecated` tag naming the replacement.

The window is the answer to the half that cannot be measured from inside this
repository. In-repo the name has zero importers, searched across every root
plus the sibling framework checkout with a control; an importer on npm is not
observable from here, and that is the claim that licenses deleting an export
from a published package. Where the evidence is one-sided the retirement takes
the reversible step first.

Follows the deprecate-in-place shape already used in this package for
`MenuItem`, `ActionSchema` and `MenuItemSchema`. Stage 2 is tracked as a
sub-issue.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EuPCi56cnGyykygi3z9w4m
@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 52 chunks) 3230.0 KB 3990.2 KB
Main entry chunk (gzip) 153.6 KB 350 KB
Entry file index-DilS4ij-.js —
Status PASS —

The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it.


📦 Bundle Size Report

Package Size Gzipped
app-shell (consoleActionDispatch.js) 0.20KB 0.19KB
app-shell (index.js) 10.13KB 3.77KB
app-shell (runtime-config.js) 13.57KB 4.78KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.06KB 3.86KB
auth (ActiveOrganizationStorage.js) 25.05KB 9.16KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.18KB 10.59KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.15KB 5.39KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.65KB 2.22KB
auth (SocialSignInButtons.js) 9.61KB 3.89KB
auth (UserMenu.js) 3.41KB 1.23KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 40.21KB 10.80KB
auth (createAuthenticatedFetch.js) 8.46KB 3.43KB
auth (index.js) 3.19KB 1.44KB
auth (invitation-status.js) 1.22KB 0.70KB
auth (org-roles.js) 6.66KB 2.78KB
auth (phone-identifier.js) 1.11KB 0.66KB
auth (types.js) 0.59KB 0.35KB
auth (useAuth.js) 5.30KB 1.02KB
auth (useWorkspaceAdminStatus.js) 5.13KB 2.35KB
collaboration (CommentThread.js) 26.08KB 7.56KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.49KB 2.64KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (index.js) 1.68KB 0.73KB
collaboration (useCollaborationTranslation.js) 6.05KB 2.52KB
collaboration (useCommentSearch.js) 1.98KB 0.88KB
collaboration (useConflictResolution.js) 7.75KB 1.86KB
collaboration (useMentionNotifications.js) 1.81KB 0.68KB
collaboration (usePresence.js) 6.33KB 1.84KB
collaboration (useRealtimeSubscription.js) 7.91KB 2.01KB
components (index.js) 504.16KB 114.08KB
core (index.js) 4.92KB 1.97KB
create-plugin (index.js) 10.08KB 3.26KB
data-objectstack (index.js) 164.55KB 45.67KB
fields (index.js) 238.40KB 59.89KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (currency.js) 1.22KB 0.64KB
i18n (i18n.js) 4.28KB 1.75KB
i18n (index.js) 3.44KB 1.39KB
i18n (pickLocalized.js) 7.62KB 3.26KB
i18n (provider.js) 23.13KB 7.63KB
i18n (useDisplayLocale.js) 2.85KB 1.45KB
i18n (useObjectLabel.js) 33.40KB 8.71KB
i18n (useSafeTranslation.js) 7.77KB 3.13KB
layout (index.js) 38.95KB 10.97KB
mobile (MobileProvider.js) 0.92KB 0.49KB
mobile (ResponsiveContainer.js) 0.94KB 0.38KB
mobile (breakpoints.js) 1.51KB 0.70KB
mobile (createOfflineDataSource.js) 5.61KB 1.75KB
mobile (index.js) 1.55KB 0.62KB
mobile (offlineQueue.js) 3.91KB 1.35KB
mobile (pwa.js) 0.97KB 0.49KB
mobile (serviceWorker.js) 1.48KB 0.62KB
mobile (serviceWorkerSource.js) 3.41KB 1.48KB
mobile (useBreakpoint.js) 1.54KB 0.65KB
mobile (useGesture.js) 6.96KB 1.98KB
mobile (useOfflineSync.js) 1.99KB 0.72KB
mobile (usePullToRefresh.js) 2.53KB 0.85KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useResponsiveConfig.js) 1.37KB 0.63KB
mobile (useSpecGesture.js) 4.32KB 1.64KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 9.53KB 3.38KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 4.64KB 1.50KB
permissions (evaluator.js) 5.12KB 1.74KB
permissions (index.js) 0.93KB 0.41KB
permissions (store.js) 0.91KB 0.42KB
permissions (useFieldPermissions.js) 1.28KB 0.53KB
permissions (usePermissions.js) 1.93KB 0.88KB
plugin-ai (index.js) 15.75KB 3.80KB
plugin-calendar (index.js) 46.62KB 12.83KB
plugin-charts (index.js) 64.66KB 18.32KB
plugin-chatbot (index.js) 187.32KB 44.31KB
plugin-dashboard (index.js) 133.32KB 34.42KB
plugin-designer (index.js) 212.30KB 42.80KB
plugin-detail (index.js) 242.94KB 61.30KB
plugin-editor (index.js) 2.46KB 1.10KB
plugin-form (index.js) 125.63KB 30.64KB
plugin-gantt (index.js) 164.15KB 39.88KB
plugin-grid (index.js) 200.79KB 54.26KB
plugin-kanban (index.js) 52.93KB 14.60KB
plugin-list (index.js) 111.80KB 27.20KB
plugin-map (index.js) 20.06KB 6.62KB
plugin-markdown (index.js) 13.72KB 4.69KB
plugin-report (index.js) 43.49KB 11.93KB
plugin-timeline (index.js) 26.49KB 7.59KB
plugin-tree (index.js) 8.50KB 2.88KB
plugin-view (index.js) 84.57KB 20.74KB
providers (DataSourceProvider.js) 0.75KB 0.39KB
providers (MetadataProvider.js) 1.37KB 0.59KB
providers (ThemeProvider.js) 1.90KB 0.85KB
providers (UploadProvider.js) 11.66KB 3.50KB
providers (index.js) 0.45KB 0.23KB
providers (types.js) 0.01KB 0.04KB
react-runtime (index.js) 5.62KB 2.34KB
react (LazyPluginLoader.js) 3.77KB 1.33KB
react (SchemaRenderer.js) 52.40KB 17.45KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 1.33KB 0.69KB
react (schema-input.js) 2.32KB 1.24KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (codegen.js) 5.41KB 2.34KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 4.93KB 2.24KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (parse.js) 12.13KB 3.65KB
sdui-parser (provenance.js) 3.66KB 1.82KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 7.54KB 2.63KB
types (ai.js) 0.20KB 0.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 2.87KB 0.99KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (complex.js) 0.20KB 0.18KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
types (data-display.js) 0.20KB 0.18KB
types (data-protocol.js) 0.20KB 0.19KB
types (data.js) 0.20KB 0.18KB
types (designer.js) 1.87KB 0.85KB
types (disclosure.js) 0.20KB 0.18KB
types (error-code.js) 1.54KB 0.88KB
types (feedback.js) 0.20KB 0.18KB
types (field-types.js) 0.20KB 0.18KB
types (form.js) 0.20KB 0.18KB
types (http-inflight.js) 8.87KB 3.73KB
types (http-retry.js) 4.32KB 2.02KB
types (index.js) 3.88KB 1.85KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 2.59KB 1.31KB
types (navigation.js) 0.20KB 0.18KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 0.20KB 0.18KB
types (plugin-scope.js) 0.20KB 0.18KB
types (record-components.js) 0.20KB 0.19KB
types (record-semantics.js) 1.28KB 0.67KB
types (registry.js) 0.20KB 0.18KB
types (reports.js) 0.20KB 0.18KB
types (spec-report.js) 5.05KB 1.93KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 3.40KB 1.71KB
types (views.js) 0.20KB 0.18KB
types (widget.js) 0.20KB 0.18KB

Size Limits

  • ✅ Core packages should be < 50KB gzipped
  • ✅ Component packages should be < 100KB gzipped
  • ⚠️ Plugin packages should be < 150KB gzipped

@os-zhuang
os-zhuang marked this pull request as ready for review August 23, 2026 18:43
@os-zhuang
os-zhuang added this pull request to the merge queue Aug 23, 2026
Merged via the queue into main with commit 515f171 Aug 23, 2026
22 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-5674-plugin-component-input-retire branch August 23, 2026 18:43
os-steve pushed a commit that referenced this pull request Sep 27, 2026
Stage 2 (final) of the maintainer-ruled two-stage retirement (2026-08-22,
item 13 = A). Stage 1 (PR #5897) marked `ComponentInput as
PluginComponentInput` `@deprecated`; this deletes it. `plugin-scope.ts`'s
now-dead feeder re-export (`export type { ComponentInput } from
'./base.js'`) goes with it, per its own docblock's instruction. The
stage-1 pin test is flipped in place into a stage-2 absence pin: a
source-text check (comments stripped) that the name is gone from the
published entry, and a `@ts-expect-error`-enforced compile-error check
that importing it fails `type-check`.

Re-counted consumers on origin/main (a14fb23) first, per the triage
ruling's execution note 1: zero importers, only the alias itself, its
own pin, and prose. `@object-ui/types` ships `minor` (objectui#5674;
this repo never declares `major`).

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DuWo5bdP9SdVebamn99GGk
os-steve pushed a commit that referenced this pull request Sep 27, 2026
Changeset: stop calling stage 1 "a prior patch release" -- no CHANGELOG
entry records the deprecation, and its changeset
(plugin-component-input-deprecate-5674.md) is still pending and releases
alongside this one. The deprecation code did merge and reach users, but
only because it rode along in the published 17.6.0 tarball, not through
a release of its own.

Pin header: "then named plugin-component-input-deprecation.test.ts"
implied a rename that never happened -- the file was created under that
name in stage 1 (PR #5897) and has never been renamed. Reworded.

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DuWo5bdP9SdVebamn99GGk
akarma-synetal pushed a commit to akarma-synetal/objectui that referenced this pull request Sep 28, 2026
…jectstack-ai#10826)

Fixes objectstack-ai#5674

Clause-②: no

## What

Executes the triage ruling (comment
[5857459542](objectstack-ai#5674 (comment)),
carrying the maintainer's 「同意」): deletes the deprecated, zero-consumer
published alias `PluginComponentInput` from `@object-ui/types`. This is
stage 2 (final) of the two-stage retirement the maintainer ruled on
2026-08-22 (item 13 = A). Stage 1 (PR objectstack-ai#5897) marked the alias
`@deprecated`, pointing at `ComponentInput`, without removing it.

## Why now, not after a further wait

Stage 2 was originally filed as objectstack-ai#5892, deliberately unlabelled/unqueued
and gated on "a release actually shipping the deprecation." objectstack-ai#5892 was
later closed as a duplicate into a release-batch tracking card
(objectui#10060) that now answers 404 — the gate had no carrier left to
clear, and the on-hold card carried no `Restart-when:`. The 2026-09-27
triage ruling deletes now rather than wait on a dead gate, citing the
sibling `objectstack` repository's `docs/NORTH-STAR.md` 〈阶段姿态〉:
immediate retirement (no alias, no window) is the default disposition
once a name has zero consumers.

## Re-measured before touching anything (execution note 1)

Re-counted the consumers of `PluginComponentInput` on `origin/main`
(`a14fb23b3`), excluding `dist/` and `node_modules/`, with a lit
control:

```
$ git grep -n "PluginComponentInput" origin/main -- . ':!*/dist/*' ':!*/node_modules/*'
```

18 hits, none an importer: the alias specifier itself (`index.ts:1081`),
its own stage-1 pin test (import + 7 more references), docblock prose in
`index.ts` (:1061), `base.ts` (:941) and `plugin-scope.ts` (:188), and
three changesets (one historical, `componentinput-reexport-4972.md`; the
stage-1 changeset; and `5905-componentinput-retire-constraint-keys.md`,
which only cites the card number). Control (`ComponentInput`, minus the
alias's own occurrences): 386 hits, including real imports — confirming
the search instrument is not blind. No importer appeared, so the
deletion proceeds per execution note 1's own instruction ("if any
appears, stop and report here").

## What changed

- **`packages/types/src/index.ts`** — deleted the `ComponentInput as
PluginComponentInput,` re-export and its attached `@deprecated` JSDoc
block from the `plugin-scope.js` export group. The published entry no
longer exports the name at all. The neighbouring `ComponentMeta as
PluginComponentMeta` alias (a separate,
still-`@deprecated`-not-yet-retired card) and `PluginEventHandler` are
untouched.
- **`packages/types/src/plugin-scope.ts`** — deleted `export type {
ComponentInput } from './base.js'` and its docblock. This re-export
existed for exactly one reason — feeding `index.ts`'s now-deleted alias
— and its own docblock said so explicitly ("this line is the ONLY
mention left... it goes dead the moment that alias is deleted and should
be removed with it"). Verified dead first: `plugin-scope.js` had exactly
one importer in the package (`index.ts`), and that importer no longer
references `ComponentInput` from it.
-
**`packages/types/src/__tests__/plugin-component-input-deprecation.test.ts`**
— flipped in place (not deleted) from a stage-1 "deprecated, still
present" pin into a stage-2 "retired, no longer present" pin. It now
asserts: (a) the exact stage-1 specifier and the bare name are both
absent from `index.ts` source text; (b) the dead re-export is also gone
from `plugin-scope.ts`; (c) importing `PluginComponentInput` from the
entry point is a compile error, via a `@ts-expect-error` directive
enforced by this package's `type-check` script (same pattern as
`app-actions-retired-7469.test.ts`'s full-name retirement); (d) a
control that `ComponentInput` and the still-deprecated
`PluginComponentMeta`/`PluginEventHandler` neighbours are untouched.
- **`.changeset/5674-retire-plugin-component-input.md`** — new,
`@object-ui/types: minor` (this repo forbids `major`; see `AGENTS.md`'s
version-alignment policy). Names `ComponentInput` as the replacement and
the migration diff.

Docblock sentences that would have turned false after the deletion
(`plugin-scope.ts`'s "keeps naming a real export") went away with the
block they were attached to, rather than being rewritten in place.
`base.ts:941`'s sentence citing objectui#5674 as the precedent for an
unmeasurable-external-consumer limit is historical scaffolding, not an
existence claim about the alias — it stays as written. The stage-1
changeset (`plugin-component-input-deprecate-5674.md`) is left untouched
as history, per this lane's rule that a pending changeset already
describing a landed stage is not rewritten.

## Tests

See the `os-dev-report` comment for full gate output. Summary:
`@object-ui/types` build, `type-check` (both the package and its 41
dependents via `...@object-ui/types`), `pnpm test` for the package, plus
the repo's changeset/control-byte/self-import/spec-symbol gates — all
green. Reverse verification (re-adding the deleted alias, then the
deleted re-export) turns the flipped pin's text-leg assertions red as
predicted, confirming the pin actually detects the retirement it claims
to.

---
_Generated by [Claude
Code](https://claude.ai/code/session_01DuWo5bdP9SdVebamn99GGk)_

---------

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants