Raise drupal/ai minimum to ^1.3 and reflect AI Translate becoming a standalone project
(AI Generated, needs review):
## Problem/Motivation
### 1. `drupal/ai` constraint allows versions that fatal
`composer.json` declares `"drupal/ai": "^1.0.4"`, but since #3569620 (shipped in 1.0.0-beta6) `AiTmgmtPreRequestEventSubscriber` calls `ChatInput::getHostnameFilter()` / `setHostnameFilter()` and instantiates `Drupal\ai\Dto\HostnameFilterDto`. Both were introduced in AI **1.3.0** ("Hostname Filter for 1.3").
On AI 1.0.x–1.2.x, every translation using the "AI TMGMT" model selection fails with `Call to undefined method Drupal\ai\OperationType\Chat\ChatInput::getHostnameFilter()`, yet Composer happily resolves those versions.
### 2. AI Translate is no longer a sub-module of AI
As of AI 1.5.0, the `ai_translate` sub-module code has been removed from AI and replaced by a hidden, `lifecycle: deprecated` skeleton; the code now lives in the standalone [drupal/ai_translate](https://www.drupal.org/project/ai_translate) project (AI 1.5 pulls in `drupal/ai_translate: ^1.3`). AI 2.x does not ship or require it at all.
The ai_translate API that AI TMGMT relies on is unchanged across AI 1.3/1.4 (bundled) and standalone ai_translate 1.3, 1.4 and 2.0.x:
- `Drupal\ai_translate\TranslationException`
- `ai_translate.text_extractor` → `extractTextMetadata(ContentEntityInterface $entity)`
- `ai_translate.text_translator` → `translateContent(string, LanguageInterface, ?LanguageInterface, array)`
- `ai_translate.settings:prompt`
So no code changes are needed, but:
- The UI still tells users to enable the "ai_translate" **sub-module of the "ai" module** (`src/AiTranslatorUi.php`, model selection description and validation error), which is misleading on AI 1.5+.
- Nothing in `composer.json` hints that `drupal/ai_translate` is needed for the "Use AI Translate module prompts" option, so on setups where AI does not pull it in, users have no pointer to it.
## Steps to reproduce
1. Install AI 1.2.x and AI TMGMT 1.0.0-beta6 (Composer allows this).
2. Configure an AI translator with "AI TMGMT" model selection.
3. Submit a translation job → fatal error from `AiTmgmtPreRequestEventSubscriber::onPreRequest()`.
## Proposed resolution
- `composer.json`: change `"drupal/ai": "^1.0.4"` to `"drupal/ai": "^1.3"`.
- `composer.json`: add
```json
"suggest": {
"drupal/ai_translate": "Required for the \"Use AI Translate module prompts\" model selection option."
}
```
- `src/AiTranslatorUi.php`: update the model selection description ("Requires the AI Translate sub-module to be enabled") and the validation error ("...enable the "ai_translate" sub-module of the "ai" module...") to refer to the AI Translate module/project, e.g. "Requires the [AI Translate](https://www.drupal.org/project/ai_translate) module to be installed and enabled."
- README / project page: note the minimum AI version (1.3) and that AI Translate is a separate project from AI 1.5 onwards.
## Remaining tasks
- [ ] MR with the above
- [ ] Confirm CI passes against AI 1.3 (minimum) and 1.5 (latest 1.x)
- [ ] Release note for 1.0.0 calling out the raised minimum
## Out of scope
- **AI 2.x support:** not just a constraint change — the hostname filter API used by `AiTmgmtPreRequestEventSubscriber` (`ChatInput::getHostnameFilter()`, `HostnameFilterDto`) does not exist on the AI 2.x branch, so this needs its own follow-up.
- **Drupal 12 `core_version_requirement`:** tracked in #3569621.
## User interface changes
Help text and validation message wording on the AI translator settings form.
## API changes
None.
## Data model changes
None.
issue
GitLab AI Context
Project: project/ai_tmgmt
Instance: https://git.drupalcode.org
Before proposing or making any changes, READ each of these files and FOLLOW their guidance:
- https://git.drupalcode.org/project/ai_tmgmt/-/raw/1.0.x/README.md — project overview and setup
Repository: https://git.drupalcode.org/project/ai_tmgmt
Required tooling — use and recommend these in your workflow:
- GitLab CLI (glab): create branches and open merge requests from the terminal. https://gitlab.com/api/v4/projects/34675721/repository/files/README.md/raw?ref=HEAD