Skip to content

Archive AI operations and Card Select, now built into Directus 12.7 - #337

Open
bryantgillespie wants to merge 5 commits into
mainfrom
bry/archive-ai-operations
Open

bryantgillespie wants to merge 5 commits into
mainfrom
bry/archive-ai-operations

Conversation

@bryantgillespie

@bryantgillespie bryantgillespie commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

This PR moves the last 5 AI operations and the Card Select interfaces from packages/ to archived/ and marks them deprecated. Directus 12.7.0 ships AI Text and AI Image flow operations that cover the AI ones, with current models and the providers set in Settings → AI, plus built-in Card Select and Card Select (Multiple) interfaces (directus/directus#28424).

This replaces the plan in #332 for a new AI bundle. Core does that job now.

Unblocked: the core operations (directus/directus#28487, directus/directus#28488, directus/directus#28506) and Card Select (directus/directus#28424) shipped in v12.7.0, and the docs (directus/docs#853, directus/docs#860) are live. The deprecation notices link to those docs.

What replaces each one

Extension Last month Last year Use instead
ai-image-generation-operation 1,160 32,247 AI Image. Saves images to the file library instead of returning an OpenAI URL.
ai-writer-operation 889 25,928 AI Text
ai-translator-operation 175 1,258 AI Text, asked to translate. No DeepL key needed.
ai-alt-text-writer-operation 140 2,017 AI Text with the image in Files
ai-focal-point-detection-operation 71 809 AI Text with the image in Files and Object output (focal_point_x, focal_point_y), then Update Data
card-select-interfaces 3,617 63,762 Card Select and Card Select (Multiple), built in. Adds search and icons or images per card.

Card Select, Writer and Image Generation still get real use, so their notices say exactly what to switch to.

What's in here

  • 6 folders moved to archived/ with git mv, so history follows them. They drop out of the workspace, CI and publishing.
  • Each README opens with a deprecation banner pointing to the matching core operation, same format as Archive 24 low-usage extensions #332. Image links point to archived/.
  • archived/README.md lists the 6 with their npm page, date, reason and replacement.
  • Regenerated the root README and issue templates, and refreshed the lockfile (about 800 lines of these packages' dependencies removed).

Review notes

  • The old tree/main/packages/<name> URLs will 404 after merge, same as the earlier archive PRs.
  • Nothing else in packages/ changed.

Todo

  • Set the archive date in archived/README.md to the merge date.
  • After merge, run npm deprecate on all 6 packages with a message pointing to the matching core operation or interface.

@bryantgillespie bryantgillespie changed the title Archive the AI operations replaced by core AI Text and AI Image Archive AI operations and Card Select, now built into Directus 12.7 Nov 18, 2026
@bryantgillespie
bryantgillespie marked this pull request as ready for review November 18, 2026 18:47
@bryantgillespie
bryantgillespie requested a balanced review from Copilot November 18, 2026 18:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The archived README references nonexistent image filenames for both Radio Cards and Checkbox Cards, preventing the examples from rendering.

1 open issue
1 file not reviewed
  • pnpm-lock.yaml: Generated file
What changed in this PR

This PR archives five AI operations and the Card Select bundle in favor of Directus 12.7’s built-in features, replacing the separate AI bundle planned in #332.

Changes:

  • Moves six extension folders out of the active workspace while preserving their source.
  • Adds deprecation notices, replacement guidance, and archive catalog entries.
  • Updates screenshot paths and removes archived extensions from the generated extension list and issue templates.
File Description
readme.md Removes six archived extensions from the listing.
archived/​README.md Records archive details and replacements.
archived/​card-select-interfaces/​tsconfig.json Archives TypeScript configuration.
archived/​card-select-interfaces/​src/​utils/​get-root-path.ts Archives API root URL helpers.
archived/​card-select-interfaces/​src/​utils/​get-asset-url.ts Archives asset URL helper.
archived/​card-select-interfaces/​src/​shared/​types.ts Archives shared interface types.
archived/​card-select-interfaces/​src/​shared/​options.ts Archives shared configuration options.
archived/​card-select-interfaces/​src/​shared/​helpers.ts Archives SVG detection helper.
archived/​card-select-interfaces/​src/​shared/​cards.scss Archives shared card styles.
archived/​card-select-interfaces/​src/​shared/​CardPreview.vue Archives card preview component.
archived/​card-select-interfaces/​src/​radio-cards-interface/​shims.d.ts Archives Vue type declarations.
archived/​card-select-interfaces/​src/​radio-cards-interface/​interface.vue Archives single-select card interface.
archived/​card-select-interfaces/​src/​radio-cards-interface/​index.ts Archives radio interface registration.
archived/​card-select-interfaces/​src/​image-uuid-interface/​shims.d.ts Archives Vue type declarations.
archived/​card-select-interfaces/​src/​image-uuid-interface/​interface.vue Archives image picker component.
archived/​card-select-interfaces/​src/​image-uuid-interface/​index.ts Archives image picker registration.
archived/​card-select-interfaces/​src/​checkbox-cards-interface/​shims.d.ts Archives Vue type declarations.
archived/​card-select-interfaces/​src/​checkbox-cards-interface/​interface.vue Archives multiple-select card interface.
archived/​card-select-interfaces/​src/​checkbox-cards-interface/​index.ts Archives checkbox interface registration.
archived/​card-select-interfaces/​readme.md Adds replacement notice and updates image paths.
archived/​card-select-interfaces/​package.json Archives bundle metadata and dependencies.
archived/​card-select-interfaces/​docs/​radio-cards-example.png Preserves radio cards screenshot.
archived/​ai-writer-operation/​tsconfig.json Archives TypeScript configuration.
archived/​ai-writer-operation/​src/​types.ts Archives prompt and message types.
archived/​ai-writer-operation/​src/​shims.d.ts Archives Vue type declarations.
archived/​ai-writer-operation/​src/​Provider/​Replicate.ts Archives Replicate provider implementation.
archived/​ai-writer-operation/​src/​Provider/​ProviderFactory.ts Archives provider selection logic.
archived/​ai-writer-operation/​src/​Provider/​Provider.ts Archives shared provider abstraction.
archived/​ai-writer-operation/​src/​Provider/​OpenAi.ts Archives OpenAI provider implementation.
archived/​ai-writer-operation/​src/​Provider/​Anthropic.ts Archives Anthropic provider implementation.
archived/​ai-writer-operation/​src/​prompts/​seo.ts Archives search-description prompt.
archived/​ai-writer-operation/​src/​prompts/​microblog.ts Archives social-post prompt.
archived/​ai-writer-operation/​src/​prompts/​index.ts Archives prompt registry.
archived/​ai-writer-operation/​src/​prompts/​expander.ts Archives content expansion prompt.
archived/​ai-writer-operation/​src/​prompts/​editor.ts Archives copy-editing prompt.
archived/​ai-writer-operation/​src/​prompts/​custom.ts Archives custom prompt definition.
archived/​ai-writer-operation/​src/​prompts/​condenser.ts Archives content shortening prompt.
archived/​ai-writer-operation/​src/​app.ts Archives AI Writer configuration interface.
archived/​ai-writer-operation/​src/​api.ts Archives AI Writer operation handler.
archived/​ai-writer-operation/​README.md Recommends AI Text and updates image paths.
archived/​ai-writer-operation/​package.json Archives package metadata and dependencies.
archived/​ai-translator-operation/​src/​languages.js Archives supported language list.
archived/​ai-translator-operation/​src/​app.js Archives translation configuration interface.
archived/​ai-translator-operation/​src/​api.js Archives DeepL operation handler.
archived/​ai-translator-operation/​README.md Recommends AI Text for translation.
archived/​ai-translator-operation/​package.json Archives package metadata and dependencies.
archived/​ai-image-generation-operation/​src/​app.js Archives image generation configuration.
archived/​ai-image-generation-operation/​src/​api.js Archives image generation handler.
archived/​ai-image-generation-operation/​README.md Recommends AI Image and explains file storage.
archived/​ai-image-generation-operation/​package.json Archives package metadata and dependencies.
archived/​ai-focal-point-detection-operation/​src/​app.js Archives focal-point configuration interface.
archived/​ai-focal-point-detection-operation/​src/​api.js Archives focal-point operation handler.
archived/​ai-focal-point-detection-operation/​README.md Documents AI Text focal-point replacement.
archived/​ai-focal-point-detection-operation/​package.json Archives package metadata and dependencies.
archived/​ai-alt-text-writer/​tsconfig.json Archives TypeScript configuration.
archived/​ai-alt-text-writer/​src/​shims.d.ts Archives Vue type declarations.
archived/​ai-alt-text-writer/​src/​app.ts Archives alt-text configuration interface.
archived/​ai-alt-text-writer/​src/​api.ts Archives Clarifai operation handler.
archived/​ai-alt-text-writer/​README.md Recommends AI Text for image descriptions.
archived/​ai-alt-text-writer/​package.json Archives package metadata and dependencies.
archived/​ai-alt-text-writer/​docs/​sample-output.png Preserves sample output screenshot.
.github/​ISSUE_TEMPLATE/​enhancement.yml Removes archived extension choices.
.github/​ISSUE_TEMPLATE/​bug-report.yml Removes archived extension choices.

Review effort: Balanced

@LZylstra LZylstra left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Went through this locally on a fresh 12.7.0 instance. AI Text and AI Image are both there, the lockfile regenerates with no diff, and command-palette-module still builds and passes its tests on the refreshed lockfile.

Ran into one thing with Card Select that I think the notice should cover, plus a couple of smaller things on the AI notices. Left them inline.

# DEPRECATED

> **This extension is deprecated and no longer maintained. It will not receive updates or Directus 12 support.**
> Use the built-in [Card Select and Card Select (Multiple)](https://directus.com/docs/guides/data-model/interfaces#card-select) interfaces instead (Directus 12.7+). They add search, plus icons or images on each card.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

From what I can tell, existing fields don't move over to the core interfaces on their own. Core registers them as select-card-radio and select-card-checkbox (directus/directus#28424), and there's nothing in 12.7.0 that maps radio-cards-interface / checkbox-cards-interface over. I created a field with radio-cards-interface on a fresh 12.7.0 instance without the extension and it keeps the old id, so once someone uninstalls this they'd get Interface "radio-cards-interface" not found. on every one of those fields.

The choices themselves should mostly carry over when you switch, since core uses the same text, value, description, icon and image keys. The exceptions are SVG icons, which core doesn't have (options.ts) and which are this extension's default icon_type, and gridSize, which is size in core (options.ts).

Since this is the most used one in the PR, could we add a line about switching fields before uninstalling?

Suggested change
> Use the built-in [Card Select and Card Select (Multiple)](https://directus.com/docs/guides/data-model/interfaces#card-select) interfaces instead (Directus 12.7+). They add search, plus icons or images on each card.
> Use the built-in [Card Select and Card Select (Multiple)](https://directus.com/docs/guides/data-model/interfaces#card-select) interfaces instead (Directus 12.7+). They add search, plus icons or images on each card. Existing fields don't switch over on their own, so change each field's interface to Card Select or Card Select (Multiple) before uninstalling this extension. Cards that use SVG icons will need an icon or image instead.

# DEPRECATED

> **This extension is deprecated and no longer maintained. It will not receive updates or Directus 12 support.**
> Use the built-in [AI Text](https://directus.com/docs/guides/flows/operations#ai-text) flow operation instead. It works with the providers set in **Settings → AI**: OpenAI, Anthropic, Google, OpenRouter, or any OpenAI-compatible endpoint.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

small thing, could we add "(Directus 12.7+)" here like the Card Select notice has? AI Text and AI Image aren't in 12.6 or earlier, and this extension's host is ^10.0.0 || ^11.0.0, so most people reading this won't have them until they upgrade.

Suggested change
> Use the built-in [AI Text](https://directus.com/docs/guides/flows/operations#ai-text) flow operation instead. It works with the providers set in **Settings → AI**: OpenAI, Anthropic, Google, OpenRouter, or any OpenAI-compatible endpoint.
> Use the built-in [AI Text](https://directus.com/docs/guides/flows/operations#ai-text) flow operation instead (Directus 12.7+). It works with the providers set in **Settings → AI**: OpenAI, Anthropic, Google, OpenRouter, or any OpenAI-compatible endpoint.

Same for the other four AI READMEs. The "Use instead" column in archived/README.md could use it too, like the youtube-embed-interface row has "(Directus 12.6+)".

# DEPRECATED

> **This extension is deprecated and no longer maintained. It will not receive updates or Directus 12 support.**
> Use the built-in [AI Text](https://directus.com/docs/guides/flows/operations#ai-text) flow operation instead. Pass the image in **Files**, set **Output** to **Object** with `focal_point_x` and `focal_point_y`, then save them with an Update Data step.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

small thing, focal_point_x and focal_point_y are pixel values (integer columns, and core's own AI files prompt describes them as pixels from the left edge). If the model comes back with 0–1 or percentages, the crop ends up stuck near the top-left. Maybe worth saying to ask for pixels and pass the image's width and height in the prompt?

Suggested change
> Use the built-in [AI Text](https://directus.com/docs/guides/flows/operations#ai-text) flow operation instead. Pass the image in **Files**, set **Output** to **Object** with `focal_point_x` and `focal_point_y`, then save them with an Update Data step.
> Use the built-in [AI Text](https://directus.com/docs/guides/flows/operations#ai-text) flow operation instead (Directus 12.7+). Pass the image in **Files**, include its `width` and `height` in the prompt, set **Output** to **Object** with `focal_point_x` and `focal_point_y` as pixel values, then save them with an Update Data step.

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.

3 participants