Skip to content

chore(ai): deprecate @superdoc-dev/ai - #2939

Merged
caio-pizzol merged 2 commits into
mainfrom
caio-pizzol/deprecate-ai-package
Apr 24, 2026
Merged

chore(ai): deprecate @superdoc-dev/ai#2939
caio-pizzol merged 2 commits into
mainfrom
caio-pizzol/deprecate-ai-package

Conversation

@caio-pizzol

Copy link
Copy Markdown
Contributor

Formally deprecate @superdoc-dev/ai. Prior PR (#2938) already stripped it from CI and release triggers; this one stops it from being published again and removes it from the docs surface so users stop being pointed at a package that will warn on install.

  • packages/ai/package.json"private": true, publish/release scripts removed.
  • packages/ai/README.md → deprecation banner pointing at @superdoc-dev/mcp and @superdoc-dev/sdk with the Document API.
  • apps/docs/ai/ai-actions/ → deleted (already hidden from Mintlify nav in docs.json, so no user-visible routing change).
  • apps/docs/scripts/validate-code-imports.ts and apps/docs/__tests__/lib/extract.ts → drop @superdoc-dev/ai from the allowlist and /ai\/ai-actions\// from the skip-file patterns.

Registry state at the time of writing: latest: 0.1.6, next: 0.1.8-next.6. Neither is flagged deprecated. Run this command alongside merging:

```bash
npm deprecate '@superdoc-dev/ai@*' 'Deprecated: @superdoc-dev/ai is no longer maintained. Use @superdoc-dev/mcp or @superdoc-dev/sdk with the SuperDoc Document API.'
```

Full source removal (rm -rf packages/ai, pnpm-workspace.yaml entry, eval references, scripts/type-check-all.mjs, scripts/test-cov.mjs, vitest.config.mjs) is a separate cleanup PR once this has soaked.

Verified: pnpm install --frozen-lockfile succeeds. Package still builds in-repo (scripts retain build, dev, test, lint) for any consumer of the workspace dep locally.

Mark packages/ai/package.json as private and strip publish/release
scripts so the package can never be accidentally republished.

Add a deprecation banner to packages/ai/README.md pointing users at
@superdoc-dev/mcp and @superdoc-dev/sdk with the Document API.

Delete the already-hidden apps/docs/ai/ai-actions/ pages and remove
@superdoc-dev/ai entries from apps/docs/scripts/validate-code-imports.ts
and apps/docs/__tests__/lib/extract.ts so the docs stop advertising
(and stop lint-allowing) a deprecated package.

Run npm deprecate '@superdoc-dev/ai@*' '<message>' alongside merging
this PR to emit install-time warnings for existing consumers. Full
source removal (rm -rf packages/ai, pnpm-workspace.yaml entry, eval
references, scripts/type-check-all and scripts/test-cov entries) is
tracked as a separate cleanup PR.
@mintlify

mintlify Bot commented Apr 24, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
SuperDoc 🟢 Ready View Preview Apr 24, 2026, 7:03 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5fd6abd585

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread apps/docs/ai/ai-actions/overview.mdx
ai-builder/overview.mdx only existed to link to the now-deleted
ai-actions docs and was already hidden from navigation. Remove the
page and drop the corresponding skip pattern from the docs test
extract helper so no broken internal links remain.
@caio-pizzol
caio-pizzol merged commit 10c89ad into main Apr 24, 2026
4 checks passed
@caio-pizzol
caio-pizzol deleted the caio-pizzol/deprecate-ai-package branch April 24, 2026 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant