Skip to content

7.4 billion tokens per month. 34 free LLM providers. 635 free model endpoints. All behind one /v1 endpoint, plus any custom OpenAI-compatible endpoint. Smart routing, automatic failover, encrypted keys. Personal experimentation only.

TypeScript

feat(chains): rename a custom fallback chain in place (#1179) (#1284)

tashdroid37f07fdc3a2c
diff --git a/README.md b/README.md
index 95c63083..47ae469b 100644
--- a/README.md
+++ b/README.md
@@ -161,7 +161,7 @@ Based on public documentation, July 2026 — corrections welcome.
- **Image, video & speech generation** — `/v1/images/generations`, `/v1/videos/generations`, and `/v1/audio/speech` route across the providers that serve media models; images and speech also accept custom OpenAI-compatible media endpoints. Video jobs are normalized across synchronous and queued providers and return a completed MP4.
- **Tool calling & structured outputs** — OpenAI-style `tools` round-trip across providers (plain-text tool calls are rescued into real `tool_calls`), plus `response_format`, `seed`, `logprobs`, penalties, and the rest of the sampling params passed through per provider.
- **Smart routing, six strategies** — live per-model speed/capability/reliability scores rank your chain; automatic fallover retries the next model on 429/5xx with cooldowns and key rotation. [Routing in detail →](docs/en/architecture/00-high-level-index.md#how-it-works)
-- **Unified models & profiles** — the same model on several providers collapses into one entry with strict in-group failover; named fallback-chain profiles (a coding chain, a vision chain) switch from the dashboard or per request via `auto:<profile>`.
+- **Unified models & profiles** — the same model on several providers collapses into one entry with strict in-group failover; named fallback-chain profiles (a coding chain, a vision chain) switch from the dashboard or per request via `auto:<profile>`, and custom chains can be renamed in place from the chain manager.
- **Per-key rate tracking** — RPM/RPD/TPM/TPD counters per `(platform, model, key)` that learn providers' reported ceilings, so routing always stays under every cap.
- **Self-updating model catalog** — the router syncs a signed catalog from freellmapi.co twice a day: new models, quota changes, and provider quirk fixes land automatically. Free installs track the monthly snapshot, which each model joins 30 days after it lands in the live feed; premium routers get it same-day. [Premium →](#premium-live-catalog)
- **Sticky sessions & context handoff** — conversations stay on one model for 30 minutes; an optional compact handoff note keeps the thread coherent when a mid-chat switch does happen. [Details →](docs/en/clients/01-agent-clients.md#context-handoff)
diff --git a/client/src/components/chain-manager.test.ts b/client/src/components/chain-manager.test.ts
index 5d2708eb..0e6d750f 100644
--- a/client/src/components/chain-manager.test.ts
+++ b/client/src/components/chain-manager.test.ts
@@ -74,6 +74,19 @@ describe('chain manager', () => {
expect(source).toContain('onError')
expect(source).toContain('setCreateError')
})
+
+ it('renames a chain through the profile update endpoint, with a confirm (#1179)', () => {
+ // A chain's name is the address clients route with (auto:<name>), so the
+ // rename goes through PUT /api/profiles/:id — where the creation rules
+ // are enforced and protected chains get a real 403 — and must warn about
+ // in-flight auto:<old-name> callers before committing.
+ expect(source).toMatch(/api\/profiles\/\$\{profileId\}`, \{ method: 'PUT'/)
+ expect(source).not.toContain('/rename')
+ expect(source).toContain('chains.renameConfirm')
+ expect(source).toContain('chains.renameFailed')
+ // Only custom chains get the pencil, matching the delete affordance.
+ expect(source).toMatch(/!isProtected[\s\S]*?chains\.renameHint/)
+ })
})
// Switching the active chain has to change what the rest of the dashboard is
diff --git a/client/src/components/chain-manager.tsx b/client/src/components/chain-manager.tsx
index 00d68d18..9fbf4379 100644
--- a/client/src/components/chain-manager.tsx
+++ b/client/src/components/chain-manager.tsx
@@ -1,6 +1,6 @@
import { useState } from 'react'
import { useQuery, useMutation, useQueryClient } from '@tanstack/react-query'
-import { Check, ChevronDown, Layers, Plus, Trash2 } from 'lucide-react'
+import { Check, ChevronDown, Layers, Pencil, Plus, Trash2 } from 'lucide-react'
import { useI18n } from '@/i18n'
import { apiFetch, type ApiError } from '@/lib/api'
import { Button } from '@/components/ui/button'
@@ -52,6 +52,13 @@ export function ChainManager() {
const [startEmpty, setStartEmpty] = useState(true)
const [createError, setCreateError] = useState('')
const [collapsed, setCollapsed] = useState<boolean>(readCollapsed)
+ // Inline rename (#1179): one row is editable at a time, like the Playground
+ // conversation list. Renaming is safe mid-flight — routing resolves the name
+ // at request time — but in-flight auto:<old-name> requests fail, so the
+ // confirm step says so.
+ const [renamingId, setRenamingId] = useState<number | null>(null)
+ const [renameDraft, setRenameDraft] = useState('')
+ const [renameError, setRenameError] = useState('')
const { data: chains = [] } = useQuery<Chain[]>({
queryKey: ['profiles'],
@@ -97,6 +104,18 @@ export function ChainManager() {
apiFetch(`/api/profiles/${profileId}`, { method: 'DELETE' }),
onSuccess: invalidate,
})
+ const renameChain = useMutation({
+ mutationFn: ({ profileId, name }: { profileId: number; name: string }) =>
+ apiFetch(`/api/profiles/${profileId}`, { method: 'PUT', body: JSON.stringify({ name }) }),
+ onSuccess: () => {
+ invalidate()
+ setRenamingId(null)
+ setRenameError('')
+ },
+ // Same server rules as create (charset, length, reserved, taken); show
+ // which one fired instead of leaving the row stuck in edit mode.
+ onError: (error: ApiError) => setRenameError(error.message || t('chains.renameFailed')),
+ })
if (chains.length === 0) return null
@@ -140,6 +159,43 @@ export function ChainManager() {
{chains.map(chain => {
const isActive = chain.id === activeId
const isProtected = chain.type === 'default' || chain.type === 'builtin'
+ const isRenaming = renamingId === chain.id
+ if (isRenaming) {
+ return (
+ <form
+ key={chain.id}
+ className="flex items-center gap-2 rounded-xl border border-foreground/25 bg-muted/50 px-3 py-2"
+ onSubmit={e => {
+ e.preventDefault()
+ const name = renameDraft.trim()
+ if (!name || renameChain.isPending) return
+ if (name !== chain.name
+ && !window.confirm(t('chains.renameConfirm', { oldName: chain.name, name }))) return
+ renameChain.mutate({ profileId: chain.id, name })
+ }}
+ >
+ <Input
+ autoFocus
+ value={renameDraft}
+ onChange={e => {
+ setRenameDraft(e.target.value)
+ setRenameError('')
+ }}
+ onKeyDown={e => { if (e.key === 'Escape') { e.preventDefault(); setRenamingId(null); setRenameError('') } }}
+ aria-label={t('chains.renamePlaceholder')}
+ placeholder={t('chains.renamePlaceholder')}
+ className="h-7 max-w-48 text-sm"
+ />
+ <Button type="submit" size="sm" variant="secondary" className="h-7 px-2 text-xs" disabled={!renameDraft.trim() || renameChain.isPending}>
+ {t('common.save')}
+ </Button>
+ <Button type="button" size="sm" variant="ghost" className="h-7 px-2 text-xs" onClick={() => { setRenamingId(null); setRenameError('') }}>
+ {t('common.cancel')}
+ </Button>
+ {renameError && <span className="text-xs text-rose-600 dark:text-rose-400">{renameError}</span>}
+ </form>
+ )
+ }
return (
<div
key={chain.id}
@@ -185,6 +241,24 @@ export function ChainManager() {
</Button>
</Tooltip>
)}
+ {!isProtected && (
+ <Tooltip text={t('chains.renameHint')}>
+ <Button
+ variant="ghost"
+ size="sm"
+ className="h-7 px-2 text-xs text-muted-foreground"
+ aria-label={t('chains.renameHint')}
+ disabled={renameChain.isPending}
+ onClick={() => {
+ setRenamingId(chain.id)
+ setRenameDraft(chain.name)
+ setRenameError('')
+ }}
+ >
+ <Pencil className="size-3.5" />
+ </Button>
+ </Tooltip>
+ )}
{!isProtected && (
<Tooltip text={t('chains.deleteHint')}>
<Button
diff --git a/client/src/i18n/locales/am.json b/client/src/i18n/locales/am.json
index a150aade..a21d0dcd 100644
--- a/client/src/i18n/locales/am.json
+++ b/client/src/i18n/locales/am.json
@@ -1191,6 +1191,10 @@
"startEmpty": "Start empty",
"startEmptyHint": "Create the chain with no models in it, and keep new catalog models out of it. Unchecked, it starts as a copy of the default chain.",
"curated": "Curated",
- "curatedHint": "New catalog models are not added to this chain automatically."
+ "curatedHint": "New catalog models are not added to this chain automatically.",
+ "renameHint": "የዚህ ሰንሰለት ስም ቀይር",
+ "renameConfirm": "ሰንሰለት \"{oldName}\" ስሙን ወደ \"{name}\" ቀይር? auto:{oldName} የሚጠሩ ደንበኞች ወደ auto:{name} ማለፍ አለባቸው።",
+ "renamePlaceholder": "አዲስ የሰንሰለት ስም",
+ "renameFailed": "የሰንሰለቱን ስም መቀየር አልተቻለም።"
}
}
diff --git a/client/src/i18n/locales/ar.json b/client/src/i18n/locales/ar.json
index fbd1a6ca..d4b35e3c 100644
--- a/client/src/i18n/locales/ar.json
+++ b/client/src/i18n/locales/ar.json
@@ -1191,6 +1191,10 @@
"startEmpty": "ابدأ فارغة",
"startEmptyHint": "ينشئ السلسلة بلا أي نماذج، ولا يضيف إليها نماذج الفهرس الجديدة. عند إلغاء التحديد تبدأ كنسخة من السلسلة الافتراضية.",
"curated": "مُنسّقة يدويًا",
- "curatedHint": "لا تُضاف نماذج الفهرس الجديدة إلى هذه السلسلة تلقائيًا."
+ "curatedHint": "لا تُضاف نماذج الفهرس الجديدة إلى هذه السلسلة تلقائيًا.",
+ "renameHint": "إعادة تسمية هذه السلسلة",
+ "renameConfirm": "إعادة تسمية السلسلة \"{oldName}\" إلى \"{name}\"؟ يجب على العملاء الذين يستدعون auto:{oldName} التحول إلى auto:{name}.",
+ "renamePlaceholder": "الاسم الجديد للسلسلة",
+ "renameFailed": "تعذّرت إعادة تسمية السلسلة."
}
}
diff --git a/client/src/i18n/locales/az.json b/client/src/i18n/locales/az.json
index b1ab82d7..25222ae7 100644
--- a/client/src/i18n/locales/az.json
+++ b/client/src/i18n/locales/az.json
@@ -1191,6 +1191,10 @@
"startEmpty": "Start empty",
"startEmptyHint": "Create the chain with no models in it, and keep new catalog models out of it. Unchecked, it starts as a copy of the default chain.",
"curated": "Curated",
- "curatedHint": "New catalog models are not added to this chain automatically."
+ "curatedHint": "New catalog models are not added to this chain automatically.",
+ "renameHint": "Bu zəncirin adını dəyiş",
+ "renameConfirm": "\"{oldName}\" zəncirinin adı \"{name}\" ilə dəyişilsin? auto:{oldName} səsləyən müştərilər auto:{name} keçməlidir.",
+ "renamePlaceholder": "Yeni zəncir adı",
+ "renameFailed": "Zəncirin adını dəyişmək alınmadı."
}
}
diff --git a/client/src/i18n/locales/bg.json b/client/src/i18n/locales/bg.json
index d778b117..db34be57 100644
--- a/client/src/i18n/locales/bg.json
+++ b/client/src/i18n/locales/bg.json
@@ -1191,6 +1191,10 @@
"startEmpty": "Start empty",
"startEmptyHint": "Create the chain with no models in it, and keep new catalog models out of it. Unchecked, it starts as a copy of the default chain.",
"curated": "Curated",
- "curatedHint": "New catalog models are not added to this chain automatically."
+ "curatedHint": "New catalog models are not added to this chain automatically.",
+ "renameHint": "Преименувай тази верига",
+ "renameConfirm": "Преименуване на верига \"{oldName}\" на \"{name}\"? Клиенти, извикващи auto:{oldName}, трябва да преминат към auto:{name}.",
+ "renamePlaceholder": "Ново име на веригата",
+ "renameFailed": "Веригата не можа да бъде преименувана."
}
}
diff --git a/client/src/i18n/locales/bn.json b/client/src/i18n/locales/bn.json
index 19c708e8..1e918919 100644
--- a/client/src/i18n/locales/bn.json
+++ b/client/src/i18n/locales/bn.json
@@ -1191,6 +1191,10 @@
"startEmpty": "Start empty",
"startEmptyHint": "Create the chain with no models in it, and keep new catalog models out of it. Unchecked, it starts as a copy of the default chain.",
"curated": "Curated",
- "curatedHint": "New catalog models are not added to this chain automatically."
+ "curatedHint": "New catalog models are not added to this chain automatically.",
+ "renameHint": "এই চেইনের নাম পরিবর্তন করুন",
+ "renameConfirm": "চেইন \"{oldName}\" এর নাম \"{name}\" করবেন? auto:{oldName} কল করা ক্লায়েন্টদের auto:{name} এ যেতে হবে।",
+ "renamePlaceholder": "নতুন চেইন নাম",
+ "renameFailed": "চেইনের নাম পরিবর্তন করা যায়নি।"
}
}
diff --git a/client/src/i18n/locales/cs.json b/client/src/i18n/locales/cs.json
index f8d44628..2de65ab7 100644
--- a/client/src/i18n/locales/cs.json
+++ b/client/src/i18n/locales/cs.json
@@ -1191,6 +1191,10 @@
"startEmpty": "Start empty",
"startEmptyHint": "Create the chain with no models in it, and keep new catalog models out of it. Unchecked, it starts as a copy of the default chain.",
"curated": "Curated",
- "curatedHint": "New catalog models are not added to this chain automatically."
+ "curatedHint": "New catalog models are not added to this chain automatically.",
+ "renameHint": "Přejmenovat tento řetězec",
+ "renameConfirm": "Přejmenovat řetězec \"{oldName}\" na \"{name}\"? Klienti volající auto:{oldName} musí přejít na auto:{name}.",
+ "renamePlaceholder": "Nový název řetězce",
+ "renameFailed": "Řetězec se nepodařilo přejmenovat."
}
}
diff --git a/client/src/i18n/locales/da.json b/client/src/i18n/locales/da.json
index 9f933e15..1bbc8280 100644
--- a/client/src/i18n/locales/da.json
+++ b/client/src/i18n/locales/da.json
@@ -1191,6 +1191,10 @@
"startEmpty": "Start empty",
"startEmptyHint": "Create the chain with no models in it, and keep new catalog models out of it. Unchecked, it starts as a copy of the default chain.",
"curated": "Curated",
- "curatedHint": "New catalog models are not added to this chain automatically."
+ "curatedHint": "New catalog models are not added to this chain automatically.",
+ "renameHint": "Omdøb denne kæde",
+ "renameConfirm": "Omdøb kæden \"{oldName}\" til \"{name}\"? Klients, der kalder auto:{oldName}, skal skifte til auto:{name}.",
+ "renamePlaceholder": "Nyt kædenavn",
+ "renameFailed": "Kæden kunne ikke omdøbes."
}
}
diff --git a/client/src/i18n/locales/de.json b/client/src/i18n/locales/de.json
index 4a4a2b14..62d7d493 100644
--- a/client/src/i18n/locales/de.json
+++ b/client/src/i18n/locales/de.json
@@ -1191,6 +1191,10 @@
"startEmpty": "Leer beginnen",
"startEmptyHint": "Legt die Kette ohne Modelle an und hält neue Katalogmodelle heraus. Ohne Haken startet sie als Kopie der Standardkette.",
"curated": "Kuratiert",
- "curatedHint": "Neue Katalogmodelle werden dieser Kette nicht automatisch hinzugefügt."
+ "curatedHint": "Neue Katalogmodelle werden dieser Kette nicht automatisch hinzugefügt.",
+ "renameHint": "Diese Kette umbenennen",
+ "renameConfirm": "Kette \"{oldName}\" in \"{name}\" umbenennen? Clients, die auto:{oldName} aufrufen, müssen auf auto:{name} wechseln.",
+ "renamePlaceholder": "Neuer Kettenname",
+ "renameFailed": "Die Kette konnte nicht umbenannt werden."
}
}
diff --git a/client/src/i18n/locales/el.json b/client/src/i18n/locales/el.json
index 250709c9..fb3776b7 100644
--- a/client/src/i18n/locales/el.json
+++ b/client/src/i18n/locales/el.json
@@ -1191,6 +1191,10 @@
"startEmpty": "Start empty",
"startEmptyHint": "Create the chain with no models in it, and keep new catalog models out of it. Unchecked, it starts as a copy of the default chain.",
"curated": "Curated",
- "curatedHint": "New catalog models are not added to this chain automatically."
+ "curatedHint": "New catalog models are not added to this chain automatically.",
+ "renameHint": "Μετονομασία αυτής της αλυσίδας",
+ "renameConfirm": "Μετονομασία της αλυσίδας \"{oldName}\" σε \"{name}\"; Οι πελάτες που καλούν auto:{oldName} πρέπει να μεταβούν σε auto:{name}.",
+ "renamePlaceholder": "Νέο όνομα αλυσίδας",
+ "renameFailed": "Δεν ήταν δυνατή η μετονομασία της αλυσίδας."
}
}
diff --git a/client/src/i18n/locales/en.json b/client/src/i18n/locales/en.json
index 6f0e8623..9e8914ba 100644
--- a/client/src/i18n/locales/en.json
+++ b/client/src/i18n/locales/en.json
@@ -1191,6 +1191,10 @@
"startEmpty": "Start empty",
"startEmptyHint": "Create the chain with no models in it, and keep new catalog models out of it. Unchecked, it starts as a copy of the default chain.",
"curated": "Curated",
- "curatedHint": "New catalog models are not added to this chain automatically."
+ "curatedHint": "New catalog models are not added to this chain automatically.",
+ "renameHint": "Rename this chain",
+ "renameConfirm": "Rename chain \"{oldName}\" to \"{name}\"? Clients calling auto:{oldName} must switch to auto:{name}.",
+ "renamePlaceholder": "New chain name",
+ "renameFailed": "Couldn't rename the chain."
}
}
diff --git a/client/src/i18n/locales/es.json b/client/src/i18n/locales/es.json
index 25c18338..80096d71 100644
--- a/client/src/i18n/locales/es.json
+++ b/client/src/i18n/locales/es.json
@@ -1191,6 +1191,10 @@
"startEmpty": "Empezar vacía",
"startEmptyHint": "Crea la cadena sin modelos y mantén fuera los modelos nuevos del catálogo. Sin marcar, empieza como una copia de la cadena predeterminada.",
"curated": "Curada",
- "curatedHint": "Los modelos nuevos del catálogo no se añaden a esta cadena automáticamente."
+ "curatedHint": "Los modelos nuevos del catálogo no se añaden a esta cadena automáticamente.",
+ "renameHint": "Cambiar el nombre de esta cadena",
+ "renameConfirm": "¿Cambiar el nombre de la cadena \"{oldName}\" a \"{name}\"? Los clientes que llamen a auto:{oldName} deben pasar a auto:{name}.",
+ "renamePlaceholder": "Nuevo nombre de la cadena",
+ "renameFailed": "No se pudo cambiar el nombre de la cadena."
}
}
diff --git a/client/src/i18n/locales/fa.json b/client/src/i18n/locales/fa.json
index 3a3571e2..506e918e 100644
--- a/client/src/i18n/locales/fa.json
+++ b/client/src/i18n/locales/fa.json
@@ -1191,6 +1191,10 @@
"startEmpty": "Start empty",
"startEmptyHint": "Create the chain with no models in it, and keep new catalog models out of it. Unchecked, it starts as a copy of the default chain.",
"curated": "Curated",
- "curatedHint": "New catalog models are not added to this chain automatically."
+ "curatedHint": "New catalog models are not added to this chain automatically.",
+ "renameHint": "تغییر نام این زنجیره",
+ "renameConfirm": "نام زنجیره \"{oldName}\" به \"{name}\" تغییر کند؟ کلاینت‌هایی که auto:{oldName} را صدا می‌زنند باید به auto:{name} بروند.",
+ "renamePlaceholder": "نام جدید زنجیره",
+ "renameFailed": "تغییر نام زنجیره انجام نشد."
}
}
diff --git a/client/src/i18n/locales/fi.json b/client/src/i18n/locales/fi.json
index b4590524..bb2f1f66 100644
--- a/client/src/i18n/locales/fi.json
+++ b/client/src/i18n/locales/fi.json
@@ -1191,6 +1191,10 @@
"startEmpty": "Start empty",
"startEmptyHint": "Create the chain with no models in it, and keep new catalog models out of it. Unchecked, it starts as a copy of the default chain.",
"curated": "Curated",
- "curatedHint": "New catalog models are not added to this chain automatically."
+ "curatedHint": "New catalog models are not added to this chain automatically.",
+ "renameHint": "Nimeä tämä ketju uudelleen",
+ "renameConfirm": "Nimetäänkö ketju \"{oldName}\" nimelle \"{name}\"? Kutsua auto:{oldName} käyttävien asiakkaiden on vaihdettava kutsuun auto:{name}.",
+ "renamePlaceholder": "Uusi ketjun nimi",
+ "renameFailed": "Ketjua ei voitu nimetä uudelleen."
}
}
diff --git a/client/src/i18n/locales/fr.json b/client/src/i18n/locales/fr.json
index f2a65c63..a37455c0 100644
--- a/client/src/i18n/locales/fr.json
+++ b/client/src/i18n/locales/fr.json
@@ -1191,6 +1191,10 @@
"startEmpty": "Démarrer vide",
"startEmptyHint": "Crée la chaîne sans aucun modèle et en tient les nouveaux modèles du catalogue à l'écart. Décoché, elle démarre comme une copie de la chaîne par défaut.",
"curated": "Curatée",
- "curatedHint": "Les nouveaux modèles du catalogue ne sont pas ajoutés automatiquement à cette chaîne."
+ "curatedHint": "Les nouveaux modèles du catalogue ne sont pas ajoutés automatiquement à cette chaîne.",
+ "renameHint": "Renommer cette chaîne",
+ "renameConfirm": "Renommer la chaîne « {oldName} » en « {name} » ? Les clients appelant auto:{oldName} doivent passer à auto:{name}.",
+ "renamePlaceholder": "Nouveau nom de la chaîne",
+ "renameFailed": "Impossible de renommer cette chaîne."
}
}
diff --git a/client/src/i18n/locales/gu.json b/client/src/i18n/locales/gu.json
index f6700526..6dfd0060 100644
--- a/client/src/i18n/locales/gu.json
+++ b/client/src/i18n/locales/gu.json
@@ -1191,6 +1191,10 @@
"startEmpty": "Start empty",
"startEmptyHint": "Create the chain with no models in it, and keep new catalog models out of it. Unchecked, it starts as a copy of the default chain.",
"curated": "Curated",
- "curatedHint": "New catalog models are not added to this chain automatically."
+ "curatedHint": "New catalog models are not added to this chain automatically.",
+ "renameHint": "આ ચેનનું નામ બદલો",
+ "renameConfirm": "ચેન \"{oldName}\" નું નામ \"{name}\" કરવું? auto:{oldName} કૉલ કરતા ક્લાયન્ટ્સે auto:{name} પર જવું પડશે.",
+ "renamePlaceholder": "નવું ચેન નામ",
+ "renameFailed": "ચેનનું નામ બદલી શકાયું નહીં."
}
}
diff --git a/client/src/i18n/locales/ha.json b/client/src/i18n/locales/ha.json
index c6ea646b..afc12d49 100644
--- a/client/src/i18n/locales/ha.json
+++ b/client/src/i18n/locales/ha.json
@@ -1191,6 +1191,10 @@
"startEmpty": "Start empty",
"startEmptyHint": "Create the chain with no models in it, and keep new catalog models out of it. Unchecked, it starts as a copy of the default chain.",
"curated": "Curated",
- "curatedHint": "New catalog models are not added to this chain automatically."
+ "curatedHint": "New catalog models are not added to this chain automatically.",
+ "renameHint": "Sauya sunan wannan sarƙa",
+ "renameConfirm": "Sauya sunan sarƙa \"{oldName}\" zuwa \"{name}\"? Abokan cinikin da ke kira auto:{oldName} dole su koma auto:{name}.",
+ "renamePlaceholder": "Sabon sunan sarƙa",
+ "renameFailed": "Ba a iya sauya sunan sarƙar ba."
}
}
diff --git a/client/src/i18n/locales/he.json b/client/src/i18n/locales/he.json
index ca44fe01..10ef49f7 100644
--- a/client/src/i18n/locales/he.json
+++ b/client/src/i18n/locales/he.json
@@ -1191,6 +1191,10 @@
"startEmpty": "Start empty",
"startEmptyHint": "Create the chain with no models in it, and keep new catalog models out of it. Unchecked, it starts as a copy of the default chain.",
"curated": "Curated",
- "curatedHint": "New catalog models are not added to this chain automatically."
+ "curatedHint": "New catalog models are not added to this chain automatically.",
+ "renameHint": "שנה שם של שרשרת זו",
+ "renameConfirm": "לשנות שם השרשרת \"{oldName}\" ל‑\"{name}\"? לקוחות שקוראים ל‑auto:{oldName} יצטרכו לעבור ל‑auto:{name}.",
+ "renamePlaceholder": "שם שרשרת חדש",
+ "renameFailed": "לא ניתן לשנות את שם השרשרת."
}
}
diff --git a/client/src/i18n/locales/hi.json b/client/src/i18n/locales/hi.json
index 0227dbc9..d1820e93 100644
--- a/client/src/i18n/locales/hi.json
+++ b/client/src/i18n/locales/hi.json
@@ -1191,6 +1191,10 @@
"startEmpty": "खाली शुरू करें",
"startEmptyHint": "चेन को बिना किसी मॉडल के बनाएँ और नए कैटलॉग मॉडल भी इसमें न जोड़ें। अनचेक करने पर यह डिफ़ॉल्ट चेन की नकल से शुरू होती है।",
"curated": "हस्तचयनित",
- "curatedHint": "नए कैटलॉग मॉडल इस चेन में अपने आप नहीं जुड़ते।"
+ "curatedHint": "नए कैटलॉग मॉडल इस चेन में अपने आप नहीं जुड़ते।",
+ "renameHint": "इस चेन का नाम बदलें",
+ "renameConfirm": "चेन \"{oldName}\" का नाम \"{name}\" करें? auto:{oldName} कॉल करने वाले क्लाइंट्स को auto:{name} पर जाना होगा।",
+ "renamePlaceholder": "नया चेन नाम",
+ "renameFailed": "चेन का नाम नहीं बदला जा सका।"
}
}
diff --git a/client/src/i18n/locales/hr.json b/client/src/i18n/locales/hr.json
index b1f0b60e..b6e75bab 100644
--- a/client/src/i18n/locales/hr.json
+++ b/client/src/i18n/locales/hr.json
@@ -1191,6 +1191,10 @@
"startEmpty": "Start empty",
"startEmptyHint": "Create the chain with no models in it, and keep new catalog models out of it. Unchecked, it starts as a copy of the default chain.",
"curated": "Curated",
- "curatedHint": "New catalog models are not added to this chain automatically."
+ "curatedHint": "New catalog models are not added to this chain automatically.",
+ "renameHint": "Preimenuj ovaj lanac",
+ "renameConfirm": "Preimenovati lanac \"{oldName}\" u \"{name}\"? Klijenti koji zovu auto:{oldName} moraju prijeći na auto:{name}.",
+ "renamePlaceholder": "Novi naziv lanca",
+ "renameFailed": "Nije moguće preimenovati lanac."
}
}
diff --git a/client/src/i18n/locales/hu.json b/client/src/i18n/locales/hu.json
index c56ae9a2..859dd7c6 100644
--- a/client/src/i18n/locales/hu.json
+++ b/client/src/i18n/locales/hu.json
@@ -1191,6 +1191,10 @@
"startEmpty": "Start empty",
"startEmptyHint": "Create the chain with no models in it, and keep new catalog models out of it. Unchecked, it starts as a copy of the default chain.",
"curated": "Curated",
- "curatedHint": "New catalog models are not added to this chain automatically."
+ "curatedHint": "New catalog models are not added to this chain automatically.",
+ "renameHint": "Lánc átnevezése",
+ "renameConfirm": "Lánc \"{oldName}\" átnevezése \"{name}\"-re? A(z) auto:{oldName}-t hívó ügyfeleknek át kell térniük auto:{name}-re.",
+ "renamePlaceholder": "Új láncnév",
+ "renameFailed": "Nem sikerült átnevezni a láncot."
}
}
diff --git a/client/src/i18n/locales/id.json b/client/src/i18n/locales/id.json
index c397ec8c..83a59230 100644
--- a/client/src/i18n/locales/id.json
+++ b/client/src/i18n/locales/id.json
@@ -1191,6 +1191,10 @@
"startEmpty": "Mulai kosong",
"startEmptyHint": "Membuat rantai tanpa model dan menjauhkan model katalog baru darinya. Jika tidak dicentang, rantai dimulai sebagai salinan rantai bawaan.",
"curated": "Dikurasi",
- "curatedHint": "Model katalog baru tidak ditambahkan ke rantai ini secara otomatis."
+ "curatedHint": "Model katalog baru tidak ditambahkan ke rantai ini secara otomatis.",
+ "renameHint": "Ganti nama rantai ini",
+ "renameConfirm": "Ganti nama rantai \"{oldName}\" menjadi \"{name}\"? Klien yang memanggil auto:{oldName} harus beralih ke auto:{name}.",
+ "renamePlaceholder": "Nama rantai baru",
+ "renameFailed": "Tidak dapat mengganti nama rantai."
}
}
diff --git a/client/src/i18n/locales/ig.json b/client/src/i18n/locales/ig.json
index ef556b1e..97cddb97 100644
--- a/client/src/i18n/locales/ig.json
+++ b/client/src/i18n/locales/ig.json
@@ -1191,6 +1191,10 @@
"startEmpty": "Start empty",
"startEmptyHint": "Create the chain with no models in it, and keep new catalog models out of it. Unchecked, it starts as a copy of the default chain.",
"curated": "Curated",
- "curatedHint": "New catalog models are not added to this chain automatically."
+ "curatedHint": "New catalog models are not added to this chain automatically.",
+ "renameHint": "Gbanwee aha chain a",
+ "renameConfirm": "Gbanwee aha chain \"{oldName}\" ka ọ bụrụ \"{name}\"? Ndị ahịa na-akpọ auto:{oldName} ga-agbanwe gaa auto:{name}.",
+ "renamePlaceholder": "Aha chain ọhụrụ",
+ "renameFailed": "Enweghị ike ịgbanwe aha chain ahụ."
}
}
diff --git a/client/src/i18n/locales/it.json b/client/src/i18n/locales/it.json
index 9e6fd9b7..37e11f8d 100644
--- a/client/src/i18n/locales/it.json
+++ b/client/src/i18n/locales/it.json
@@ -1191,6 +1191,10 @@
"startEmpty": "Inizia vuota",
"startEmptyHint": "Crea la catena senza modelli e tiene fuori i nuovi modelli del catalogo. Se non selezionato, parte come copia della catena predefinita.",
"curated": "Curata",
- "curatedHint": "I nuovi modelli del catalogo non vengono aggiunti automaticamente a questa catena."
+ "curatedHint": "I nuovi modelli del catalogo non vengono aggiunti automaticamente a questa catena.",
+ "renameHint": "Rinomina questa catena",
+ "renameConfirm": "Rinominare la catena \"{oldName}\" in \"{name}\"? I client che chiamano auto:{oldName} devono passare a auto:{name}.",
+ "renamePlaceholder": "Nuovo nome della catena",
+ "renameFailed": "Impossibile rinominare la catena."
}
}
diff --git a/client/src/i18n/locales/ja.json b/client/src/i18n/locales/ja.json
index 63215f74..2e1e989f 100644
--- a/client/src/i18n/locales/ja.json
+++ b/client/src/i18n/locales/ja.json
@@ -1191,6 +1191,10 @@
"startEmpty": "空の状態で作成",
"startEmptyHint": "モデルを入れずにチェーンを作り、新しいカタログモデルも自動では追加しません。チェックを外すと既定のチェーンの複製になります。",
"curated": "手動管理",
- "curatedHint": "新しいカタログモデルはこのチェーンに自動追加されません。"
+ "curatedHint": "新しいカタログモデルはこのチェーンに自動追加されません。",
+ "renameHint": "このチェーンの名前を変更",
+ "renameConfirm": "チェーン「{oldName}」を「{name}」に名前を変更しますか? auto:{oldName} を呼び出しているクライアントは auto:{name} に切り替える必要があります。",
+ "renamePlaceholder": "新しいチェーン名",
+ "renameFailed": "チェーンの名前を変更できませんでした。"
}
}
diff --git a/client/src/i18n/locales/ka.json b/client/src/i18n/locales/ka.json
index 06073900..8d7d1a3d 100644
--- a/client/src/i18n/locales/ka.json
+++ b/client/src/i18n/locales/ka.json
@@ -1191,6 +1191,10 @@
"startEmpty": "Start empty",
"startEmptyHint": "Create the chain with no models in it, and keep new catalog models out of it. Unchecked, it starts as a copy of the default chain.",
"curated": "Curated",
- "curatedHint": "New catalog models are not added to this chain automatically."
+ "curatedHint": "New catalog models are not added to this chain automatically.",
+ "renameHint": "ამ ჯაჭვის გადარქმევა",
+ "renameConfirm": "გადარქვათ ჯაჭვს \"{oldName}\" სახელი \"{name}\"? კლიენტებმა, რომლებიც იძახიან auto:{oldName}, უნდა გადავიდნენ auto:{name}-ზე.",
+ "renamePlaceholder": "ახალი ჯაჭვის სახელი",
+ "renameFailed": "ამ ჯაჭვის გადარქმევა ვერ მოხერხდა."
}
}
diff --git a/client/src/i18n/locales/km.json b/client/src/i18n/locales/km.json
index 19dcfe10..a1a76ea8 100644
--- a/client/src/i18n/locales/km.json
+++ b/client/src/i18n/locales/km.json
@@ -1191,6 +1191,10 @@
"startEmpty": "Start empty",
"startEmptyHint": "Create the chain with no models in it, and keep new catalog models out of it. Unchecked, it starts as a copy of the default chain.",
"curated": "Curated",
- "curatedHint": "New catalog models are not added to this chain automatically."
+ "curatedHint": "New catalog models are not added to this chain automatically.",
+ "renameHint": "ប្តូរឈ្មោះខ្សែសង្វាក់នេះ",
+ "renameConfirm": "ប្តូរឈ្មោះខ្សែសង្វាក់ \"{oldName}\" ទៅ \"{name}\"? កម្មវិធីដែលហៅ auto:{oldName} ត្រូវផ្លាស់ប្តូរទៅ auto:{name} ។",
+ "renamePlaceholder": "ឈ្មោះខ្សែសង្វាក់ថ្មី",
+ "renameFailed": "មិនអាចប្តូរឈ្មោះខ្សែសង្វាក់បានទេ។"
}
}
diff --git a/client/src/i18n/locales/kn.json b/client/src/i18n/locales/kn.json
index 6730983a..84fe6463 100644
--- a/client/src/i18n/locales/kn.json
+++ b/client/src/i18n/locales/kn.json
@@ -1191,6 +1191,10 @@
"startEmpty": "Start empty",
"startEmptyHint": "Create the chain with no models in it, and keep new catalog models out of it. Unchecked, it starts as a copy of the default chain.",
"curated": "Curated",
- "curatedHint": "New catalog models are not added to this chain automatically."
+ "curatedHint": "New catalog models are not added to this chain automatically.",
+ "renameHint": "ಈ ಚೈನ್ ಹೆಸರನ್ನು ಮಾರ್ಪಡಿಸಿ",
+ "renameConfirm": "ಚೈನ್ \"{oldName}\" ಹೆಸರನ್ನು \"{name}\" ಗೆ ಬದಲಾಯಿಸುವುದೇ? auto:{oldName} ಕರೆ ಮಾಡುವ ಕ್ಲೈಂಟ್‌ಗಳು auto:{name} ಗೆ ಬದಲಾಗಬೇಕು.",
+ "renamePlaceholder": "ಹೊಸ ಚೈನ್ ಹೆಸರು",
+ "renameFailed": "ಚೈನ್ ಹೆಸರನ್ನು ಮರುಹೆಸರಿಸಲಾಗಲಿಲ್ಲ."
}
}
diff --git a/client/src/i18n/locales/ko.json b/client/src/i18n/locales/ko.json
index 1c9a4bbc..d3e1a408 100644
--- a/client/src/i18n/locales/ko.json
+++ b/client/src/i18n/locales/ko.json
@@ -1191,6 +1191,10 @@
"startEmpty": "비어 있는 상태로 만들기",
"startEmptyHint": "모델 없이 체인을 만들고, 새로 추가되는 카탈로그 모델도 넣지 않습니다. 해제하면 기본 체인의 복사본으로 시작합니다.",
"curated": "직접 관리",
- "curatedHint": "새 카탈로그 모델이 이 체인에 자동으로 추가되지 않습니다."
+ "curatedHint": "새 카탈로그 모델이 이 체인에 자동으로 추가되지 않습니다.",
+ "renameHint": "이 체인의 이름 변경",
+ "renameConfirm": "체인 \"{oldName}\"의 이름을 \"{name}\"(으)로 변경하시겠습니까? auto:{oldName}을(를) 호출하는 클라이언트는 auto:{name}(으)로 전환해야 합니다.",
+ "renamePlaceholder": "새 체인 이름",
+ "renameFailed": "체인 이름을 변경하지 못했습니다."
}
}
diff --git a/client/src/i18n/locales/lt.json b/client/src/i18n/locales/lt.json
index 3481af69..cd066f8d 100644
--- a/client/src/i18n/locales/lt.json
+++ b/client/src/i18n/locales/lt.json
@@ -1191,6 +1191,10 @@
"startEmpty": "Start empty",
"startEmptyHint": "Create the chain with no models in it, and keep new catalog models out of it. Unchecked, it starts as a copy of the default chain.",
"curated": "Curated",
- "curatedHint": "New catalog models are not added to this chain automatically."
+ "curatedHint": "New catalog models are not added to this chain automatically.",
+ "renameHint": "Pervadinti šią grandinę",
+ "renameConfirm": "Pervadinti grandinę „{oldName}“ į „{name}“? Klientai, kviečianti auto:{oldName}, turi pereiti prie auto:{name}.",
+ "renamePlaceholder": "Naujas grandinės pavadinimas",
+ "renameFailed": "Nepavyko pervadinti šios grandinės."
}
}
diff --git a/client/src/i18n/locales/ml.json b/client/src/i18n/locales/ml.json
index 637d4b80..26a53349 100644
--- a/client/src/i18n/locales/ml.json
+++ b/client/src/i18n/locales/ml.json
@@ -1191,6 +1191,10 @@
"startEmpty": "Start empty",
"startEmptyHint": "Create the chain with no models in it, and keep new catalog models out of it. Unchecked, it starts as a copy of the default chain.",
"curated": "Curated",
- "curatedHint": "New catalog models are not added to this chain automatically."
+ "curatedHint": "New catalog models are not added to this chain automatically.",
+ "renameHint": "ഈ ചെയിനിന്റെ പേരു മാറ്റുക",
+ "renameConfirm": "ചെയിൻ \"{oldName}\" എന്നതിന്റെ പേരു \"{name}\" ആക്കണോ? auto:{oldName} വിളിക്കുന്ന ക്ലയന്റുകൾ auto:{name} ലേക്ക് മാറണം.",
+ "renamePlaceholder": "പുതിയ ചെയിൻ പേര്",
+ "renameFailed": "ചെയിനിന്റെ പേരു മാറ്റാനായില്ല."
}
}
diff --git a/client/src/i18n/locales/mr.json b/client/src/i18n/locales/mr.json
index c09753d9..7769a24f 100644
--- a/client/src/i18n/locales/mr.json
+++ b/client/src/i18n/locales/mr.json
@@ -1191,6 +1191,10 @@
"startEmpty": "Start empty",
"startEmptyHint": "Create the chain with no models in it, and keep new catalog models out of it. Unchecked, it starts as a copy of the default chain.",
"curated": "Curated",
- "curatedHint": "New catalog models are not added to this chain automatically."
+ "curatedHint": "New catalog models are not added to this chain automatically.",
+ "renameHint": "या साखळीचे नाव बदला",
+ "renameConfirm": "साखळी \"{oldName}\" चे नाव \"{name}\" करावे? auto:{oldName} हा कॉल करणारे क्लायंट्स auto:{name} वर जावे लागेल.",
+ "renamePlaceholder": "नवीन साखळी नाव",
+ "renameFailed": "साखळीचे नाव बदलता आले नाही."
}
}
diff --git a/client/src/i18n/locales/ms.json b/client/src/i18n/locales/ms.json
index 8a671dcb..1e1dc01a 100644
--- a/client/src/i18n/locales/ms.json
+++ b/client/src/i18n/locales/ms.json
@@ -1191,6 +1191,10 @@
"startEmpty": "Start empty",
"startEmptyHint": "Create the chain with no models in it, and keep new catalog models out of it. Unchecked, it starts as a copy of the default chain.",
"curated": "Curated",
- "curatedHint": "New catalog models are not added to this chain automatically."
+ "curatedHint": "New catalog models are not added to this chain automatically.",
+ "renameHint": "Tukar nama rantaian ini",
+ "renameConfirm": "Tukar nama rantaian \"{oldName}\" kepada \"{name}\"? Klien yang memanggil auto:{oldName} perlu bertukar ke auto:{name}.",
+ "renamePlaceholder": "Nama rantaian baharu",
+ "renameFailed": "Tidak dapat menukar nama rantaian."
}
}
diff --git a/client/src/i18n/locales/my.json b/client/src/i18n/locales/my.json
index 337b2826..cdb3dcd1 100644
--- a/client/src/i18n/locales/my.json
+++ b/client/src/i18n/locales/my.json
@@ -1191,6 +1191,10 @@
"startEmpty": "Start empty",
"startEmptyHint": "Create the chain with no models in it, and keep new catalog models out of it. Unchecked, it starts as a copy of the default chain.",
"curated": "Curated",
- "curatedHint": "New catalog models are not added to this chain automatically."
+ "curatedHint": "New catalog models are not added to this chain automatically.",
+ "renameHint": "ဤချိန်း၏ အမည်ကို ပြောင်းရန်",
+ "renameConfirm": "ချိန်း \"{oldName}\" ကို \"{name}\" အမည်ပြောင်းမလား? auto:{oldName} ကိုခေါ်ဆိုသော client များသည် auto:{name} သို့ ပြောင်းရမည်။",
+ "renamePlaceholder": "ချိန်းအမည်အသစ်",
+ "renameFailed": "ချိန်းအမည်ကို မပြောင်းနိုင်ပါ။"
}
}
diff --git a/client/src/i18n/locales/ne.json b/client/src/i18n/locales/ne.json
index 2b0caef3..75a01737 100644
--- a/client/src/i18n/locales/ne.json
+++ b/client/src/i18n/locales/ne.json
@@ -1191,6 +1191,10 @@
"startEmpty": "Start empty",
"startEmptyHint": "Create the chain with no models in it, and keep new catalog models out of it. Unchecked, it starts as a copy of the default chain.",
"curated": "Curated",
- "curatedHint": "New catalog models are not added to this chain automatically."
+ "curatedHint": "New catalog models are not added to this chain automatically.",
+ "renameHint": "यो चेनको नाम बदल्नुहोस्",
+ "renameConfirm": "चेन \"{oldName}\" को नाम \"{name}\" मा बदल्ने? auto:{oldName} बोलाउने क्लाइन्टहरूले auto:{name} मा जानुपर्छ।",
+ "renamePlaceholder": "नयाँ चेन नाम",
+ "renameFailed": "चेनको नाम बदल्न सकिएन।"
}
}
diff --git a/client/src/i18n/locales/nl.json b/client/src/i18n/locales/nl.json
index 2b930ff4..c225d93e 100644
--- a/client/src/i18n/locales/nl.json
+++ b/client/src/i18n/locales/nl.json
@@ -1191,6 +1191,10 @@
"startEmpty": "Leeg beginnen",
"startEmptyHint": "Maakt de keten zonder modellen aan en houdt nieuwe catalogusmodellen erbuiten. Niet aangevinkt begint hij als kopie van de standaardketen.",
"curated": "Handmatig",
- "curatedHint": "Nieuwe catalogusmodellen worden niet automatisch aan deze keten toegevoegd."
+ "curatedHint": "Nieuwe catalogusmodellen worden niet automatisch aan deze keten toegevoegd.",
+ "renameHint": "Deze keten hernoemen",
+ "renameConfirm": "Keten \"{oldName}\" hernoemen naar \"{name}\"? Clients die auto:{oldName} aanroepen moeten overstappen op auto:{name}.",
+ "renamePlaceholder": "Nieuwe ketennaam",
+ "renameFailed": "Kan de naam van die keten niet wijzigen."
}
}
diff --git a/client/src/i18n/locales/no.json b/client/src/i18n/locales/no.json
index ba04fcc3..f80f41f9 100644
--- a/client/src/i18n/locales/no.json
+++ b/client/src/i18n/locales/no.json
@@ -1191,6 +1191,10 @@
"startEmpty": "Start empty",
"startEmptyHint": "Create the chain with no models in it, and keep new catalog models out of it. Unchecked, it starts as a copy of the default chain.",
"curated": "Curated",
- "curatedHint": "New catalog models are not added to this chain automatically."
+ "curatedHint": "New catalog models are not added to this chain automatically.",
+ "renameHint": "Gi denne kjeden nytt navn",
+ "renameConfirm": "Gi kjeden \"{oldName}\" navnet \"{name}\"? Klienter som kaller auto:{oldName} må bytte til auto:{name}.",
+ "renamePlaceholder": "Nytt kjedenavn",
+ "renameFailed": "Kunne ikke gi den kjeden nytt navn."
}
}
diff --git a/client/src/i18n/locales/or.json b/client/src/i18n/locales/or.json
index 50f38ab1..d53e9cc0 100644
--- a/client/src/i18n/locales/or.json
+++ b/client/src/i18n/locales/or.json
@@ -1191,6 +1191,10 @@
"startEmpty": "Start empty",
"startEmptyHint": "Create the chain with no models in it, and keep new catalog models out of it. Unchecked, it starts as a copy of the default chain.",
"curated": "Curated",
- "curatedHint": "New catalog models are not added to this chain automatically."
+ "curatedHint": "New catalog models are not added to this chain automatically.",
+ "renameHint": "ଏହି ଚେନ୍‌ର ନାମ ବଦଳାନ୍ତୁ",
+ "renameConfirm": "ଚେନ୍ \"{oldName}\" ର ନାମ \"{name}\" କରନ୍ତୁ? auto:{oldName} କଲ୍ କରୁଥିବା କ୍ଲାଏଣ୍ଟମାନେ auto:{name} କୁ ଯିବା ଉଚିତ୍‌।",
+ "renamePlaceholder": "ନୂଆ ଚେନ୍ ନାମ",
+ "renameFailed": "ଚେନ୍‌ର ନାମ ବଦଳାଯାଇପାରିଲା ନାହିଁ।"
}
}
diff --git a/client/src/i18n/locales/pa.json b/client/src/i18n/locales/pa.json
index 65836bcf..b6946cbb 100644
--- a/client/src/i18n/locales/pa.json
+++ b/client/src/i18n/locales/pa.json
@@ -1191,6 +1191,10 @@
"startEmpty": "Start empty",
"startEmptyHint": "Create the chain with no models in it, and keep new catalog models out of it. Unchecked, it starts as a copy of the default chain.",
"curated": "Curated",
- "curatedHint": "New catalog models are not added to this chain automatically."
+ "curatedHint": "New catalog models are not added to this chain automatically.",
+ "renameHint": "ਇਸ ਚੇਨ ਦਾ ਨਾਂ ਬਦਲੋ",
+ "renameConfirm": "ਚੇਨ \"{oldName}\" ਦਾ ਨਾਂ \"{name}\" ਕਰਨਾ? auto:{oldName} ਕਾਲ ਕਰਦੇ ਕਲਾਇੰਟਾਂ ਨੂੰ auto:{name} 'ਤੇ ਜਾਣਾ ਪਵੇਗਾ।",
+ "renamePlaceholder": "ਨਵਾਂ ਚੇਨ ਨਾਂ",
+ "renameFailed": "ਚੇਨ ਦਾ ਨਾਂ ਨਹੀਂ ਬਦਲਿਆ ਜਾ ਸਕਿਆ।"
}
}
diff --git a/client/src/i18n/locales/pl.json b/client/src/i18n/locales/pl.json
index 1bf2f8b9..38b0a613 100644
--- a/client/src/i18n/locales/pl.json
+++ b/client/src/i18n/locales/pl.json
@@ -1191,6 +1191,10 @@
"startEmpty": "Zacznij pusty",
"startEmptyHint": "Tworzy łańcuch bez modeli i nie dodaje do niego nowych modeli z katalogu. Bez zaznaczenia zaczyna jako kopia łańcucha domyślnego.",
"curated": "Ręczny",
- "curatedHint": "Nowe modele z katalogu nie są automatycznie dodawane do tego łańcucha."
+ "curatedHint": "Nowe modele z katalogu nie są automatycznie dodawane do tego łańcucha.",
+ "renameHint": "Zmień nazwę tego łańcucha",
+ "renameConfirm": "Zmienić nazwę łańcucha \"{oldName}\" na \"{name}\"? Klienci wywołujący auto:{oldName} muszą przejść na auto:{name}.",
+ "renamePlaceholder": "Nowa nazwa łańcucha",
+ "renameFailed": "Nie udało się zmienić nazwy łańcucha."
}
}
diff --git a/client/src/i18n/locales/pt-BR.json b/client/src/i18n/locales/pt-BR.json
index 6b0563c9..97bb543f 100644
--- a/client/src/i18n/locales/pt-BR.json
+++ b/client/src/i18n/locales/pt-BR.json
@@ -1191,6 +1191,10 @@
"startEmpty": "Começar vazia",
"startEmptyHint": "Cria a cadeia sem modelos e mantém de fora os novos modelos do catálogo. Sem marcar, ela começa como cópia da cadeia padrão.",
"curated": "Curada",
- "curatedHint": "Novos modelos do catálogo não são adicionados a esta cadeia automaticamente."
+ "curatedHint": "Novos modelos do catálogo não são adicionados a esta cadeia automaticamente.",
+ "renameHint": "Renomear esta cadeia",
+ "renameConfirm": "Renomear a cadeia \"{oldName}\" para \"{name}\"? Clientes que chamam auto:{oldName} devem mudar para auto:{name}.",
+ "renamePlaceholder": "Novo nome da cadeia",
+ "renameFailed": "Não foi possível renomear a cadeia."
}
}
diff --git a/client/src/i18n/locales/pt-PT.json b/client/src/i18n/locales/pt-PT.json
index 8260835d..78afbfa7 100644
--- a/client/src/i18n/locales/pt-PT.json
+++ b/client/src/i18n/locales/pt-PT.json
@@ -1191,6 +1191,10 @@
"startEmpty": "Começar vazia",
"startEmptyHint": "Cria a cadeia sem modelos e mantém de fora os novos modelos do catálogo. Sem marcar, começa como cópia da cadeia predefinida.",
"curated": "Curada",
- "curatedHint": "Os novos modelos do catálogo não são adicionados automaticamente a esta cadeia."
+ "curatedHint": "Os novos modelos do catálogo não são adicionados automaticamente a esta cadeia.",
+ "renameHint": "Mudar o nome desta cadeia",
+ "renameConfirm": "Mudar o nome da cadeia \"{oldName}\" para \"{name}\"? Os clientes que chamam auto:{oldName} devem passar para auto:{name}.",
+ "renamePlaceholder": "Novo nome da cadeia",
+ "renameFailed": "Não foi possível mudar o nome da cadeia."
}
}
diff --git a/client/src/i18n/locales/ro.json b/client/src/i18n/locales/ro.json
index 9315fde4..833974d1 100644
--- a/client/src/i18n/locales/ro.json
+++ b/client/src/i18n/locales/ro.json
@@ -1191,6 +1191,10 @@
"startEmpty": "Start empty",
"startEmptyHint": "Create the chain with no models in it, and keep new catalog models out of it. Unchecked, it starts as a copy of the default chain.",
"curated": "Curated",
- "curatedHint": "New catalog models are not added to this chain automatically."
+ "curatedHint": "New catalog models are not added to this chain automatically.",
+ "renameHint": "Redenumește acest lanț",
+ "renameConfirm": "Redenumiți lanțul \"{oldName}\" în \"{name}\"? Clienții care apelau auto:{oldName} trebuie să treacă la auto:{name}.",
+ "renamePlaceholder": "Numele nou al lanțului",
+ "renameFailed": "Nu s-a putut redenumi lanțul."
}
}
diff --git a/client/src/i18n/locales/ru.json b/client/src/i18n/locales/ru.json
index b6da3422..3988e65f 100644
--- a/client/src/i18n/locales/ru.json
+++ b/client/src/i18n/locales/ru.json
@@ -1191,6 +1191,10 @@
"startEmpty": "Создать пустой",
"startEmptyHint": "Создаёт цепочку без моделей и не добавляет в неё новые модели каталога. Без флажка она начинается как копия цепочки по умолчанию.",
"curated": "Ручная",
- "curatedHint": "Новые модели каталога не добавляются в эту цепочку автоматически."
+ "curatedHint": "Новые модели каталога не добавляются в эту цепочку автоматически.",
+ "renameHint": "Переименовать эту цепочку",
+ "renameConfirm": "Переименовать цепочку \"{oldName}\" в \"{name}\"? Клиенты, обращающиеся к auto:{oldName}, должны перейти на auto:{name}.",
+ "renamePlaceholder": "Новое имя цепочки",
+ "renameFailed": "Не удалось переименовать цепочку."
}
}
diff --git a/client/src/i18n/locales/si.json b/client/src/i18n/locales/si.json
index 933c3c47..681a83c6 100644
--- a/client/src/i18n/locales/si.json
+++ b/client/src/i18n/locales/si.json
@@ -1191,6 +1191,10 @@
"startEmpty": "Start empty",
"startEmptyHint": "Create the chain with no models in it, and keep new catalog models out of it. Unchecked, it starts as a copy of the default chain.",
"curated": "Curated",
- "curatedHint": "New catalog models are not added to this chain automatically."
+ "curatedHint": "New catalog models are not added to this chain automatically.",
+ "renameHint": "මෙම දාමයේ නම වෙනස් කරන්න",
+ "renameConfirm": "දාමය \"{oldName}\" හි නම \"{name}\" ලෙස වෙනස් කරන්නද? auto:{oldName} අමතන සේවාදායකයින් auto:{name} වෙත යා යුතුය.",
+ "renamePlaceholder": "නව දාම නම",
+ "renameFailed": "එම දාමයේ නම වෙනස් කළ නොහැකි විය."
}
}
diff --git a/client/src/i18n/locales/sk.json b/client/src/i18n/locales/sk.json
index 5d0b1d57..34a3c8be 100644
--- a/client/src/i18n/locales/sk.json
+++ b/client/src/i18n/locales/sk.json
@@ -1191,6 +1191,10 @@
"startEmpty": "Start empty",
"startEmptyHint": "Create the chain with no models in it, and keep new catalog models out of it. Unchecked, it starts as a copy of the default chain.",
"curated": "Curated",
- "curatedHint": "New catalog models are not added to this chain automatically."
+ "curatedHint": "New catalog models are not added to this chain automatically.",
+ "renameHint": "Premenovať tento reťazec",
+ "renameConfirm": "Premenovať reťazec \"{oldName}\" na \"{name}\"? Klienti volajúci auto:{oldName} musia prejsť na auto:{name}.",
+ "renamePlaceholder": "Nový názov reťazca",
+ "renameFailed": "Reťazec sa nepodarilo premenovať."
}
}
diff --git a/client/src/i18n/locales/sr.json b/client/src/i18n/locales/sr.json
index 4695e93c..60b28176 100644
--- a/client/src/i18n/locales/sr.json
+++ b/client/src/i18n/locales/sr.json
@@ -1191,6 +1191,10 @@
"startEmpty": "Start empty",
"startEmptyHint": "Create the chain with no models in it, and keep new catalog models out of it. Unchecked, it starts as a copy of the default chain.",
"curated": "Curated",
- "curatedHint": "New catalog models are not added to this chain automatically."
+ "curatedHint": "New catalog models are not added to this chain automatically.",
+ "renameHint": "Преименуј овај ланац",
+ "renameConfirm": "Преименовати ланац „{oldName}“ у „{name}“? Клијенти који зову auto:{oldName} морају прећи на auto:{name}.",
+ "renamePlaceholder": "Нови назив ланца",
+ "renameFailed": "Није могуће преименовати тај ланац."
}
}
diff --git a/client/src/i18n/locales/sv.json b/client/src/i18n/locales/sv.json
index bba8a348..68a0fea9 100644
--- a/client/src/i18n/locales/sv.json
+++ b/client/src/i18n/locales/sv.json
@@ -1191,6 +1191,10 @@
"startEmpty": "Start empty",
"startEmptyHint": "Create the chain with no models in it, and keep new catalog models out of it. Unchecked, it starts as a copy of the default chain.",
"curated": "Curated",
- "curatedHint": "New catalog models are not added to this chain automatically."
+ "curatedHint": "New catalog models are not added to this chain automatically.",
+ "renameHint": "Byt namn på denna kedja",
+ "renameConfirm": "Byt namn på kedjan \"{oldName}\" till \"{name}\"? Klients som anropar auto:{oldName} måste byta till auto:{name}.",
+ "renamePlaceholder": "Nytt kedjenamn",
+ "renameFailed": "Det gick inte att byta namn på kedjan."
}
}
diff --git a/client/src/i18n/locales/sw.json b/client/src/i18n/locales/sw.json
index cf41b122..cef06efb 100644
--- a/client/src/i18n/locales/sw.json
+++ b/client/src/i18n/locales/sw.json
@@ -1191,6 +1191,10 @@
"startEmpty": "Start empty",
"startEmptyHint": "Create the chain with no models in it, and keep new catalog models out of it. Unchecked, it starts as a copy of the default chain.",
"curated": "Curated",
- "curatedHint": "New catalog models are not added to this chain automatically."
+ "curatedHint": "New catalog models are not added to this chain automatically.",
+ "renameHint": "Badilisha jina la mnyororo huu",
+ "renameConfirm": "Badilisha jina la mnyororo \"{oldName}\" kuwa \"{name}\"? Wateja wanaoitia auto:{oldName} lazima wabadilike kwa auto:{name}.",
+ "renamePlaceholder": "Jina jipya la mnyororo",
+ "renameFailed": "Imeshindwa kubadilisha jina la mnyororo."
}
}
diff --git a/client/src/i18n/locales/ta.json b/client/src/i18n/locales/ta.json
index a7bb7633..4ece8302 100644
--- a/client/src/i18n/locales/ta.json
+++ b/client/src/i18n/locales/ta.json
@@ -1191,6 +1191,10 @@
"startEmpty": "Start empty",
"startEmptyHint": "Create the chain with no models in it, and keep new catalog models out of it. Unchecked, it starts as a copy of the default chain.",
"curated": "Curated",
- "curatedHint": "New catalog models are not added to this chain automatically."
+ "curatedHint": "New catalog models are not added to this chain automatically.",
+ "renameHint": "இந்த சங்கிலியின் பெயரிடவும்",
+ "renameConfirm": "\"{oldName}\" சங்கிலியை \"{name}\" என மறுபெயரிடவா? auto:{oldName} அழைக்கும் கிளையண்டுகள் auto:{name} க்கு மாற வேண்டும்.",
+ "renamePlaceholder": "புதிய சங்கிலி பெயர்",
+ "renameFailed": "சங்கிலிக்கு மறுபெயரிட முடியவில்லை."
}
}
diff --git a/client/src/i18n/locales/te.json b/client/src/i18n/locales/te.json
index 2f37ed9d..78ade245 100644
--- a/client/src/i18n/locales/te.json
+++ b/client/src/i18n/locales/te.json
@@ -1191,6 +1191,10 @@
"startEmpty": "Start empty",
"startEmptyHint": "Create the chain with no models in it, and keep new catalog models out of it. Unchecked, it starts as a copy of the default chain.",
"curated": "Curated",
- "curatedHint": "New catalog models are not added to this chain automatically."
+ "curatedHint": "New catalog models are not added to this chain automatically.",
+ "renameHint": "ఈ చైన్ పేరును మార్చండి",
+ "renameConfirm": "చైన్ \"{oldName}\" పేరును \"{name}\" గా మార్చాలా? auto:{oldName} ని కాల్ చేసే క్లయింట్లు auto:{name} కి మారాలి.",
+ "renamePlaceholder": "కొత్త చైన్ పేరు",
+ "renameFailed": "చైన్ పేరును మార్చడం సాధ్యం కాలేదు."
}
}
diff --git a/client/src/i18n/locales/th.json b/client/src/i18n/locales/th.json
index eb3eee28..06be32e1 100644
--- a/client/src/i18n/locales/th.json
+++ b/client/src/i18n/locales/th.json
@@ -1191,6 +1191,10 @@
"startEmpty": "Start empty",
"startEmptyHint": "Create the chain with no models in it, and keep new catalog models out of it. Unchecked, it starts as a copy of the default chain.",
"curated": "Curated",
- "curatedHint": "New catalog models are not added to this chain automatically."
+ "curatedHint": "New catalog models are not added to this chain automatically.",
+ "renameHint": "เปลี่ยนชื่อเชนนี้",
+ "renameConfirm": "เปลี่ยนชื่อเชน \"{oldName}\" เป็น \"{name}\"? ไคลเอนต์ที่เรียก auto:{oldName} ต้องเปลี่ยนไปใช้ auto:{name} แทน",
+ "renamePlaceholder": "ชื่อเชนใหม่",
+ "renameFailed": "ไม่สามารถเปลี่ยนชื่อเชนได้"
}
}
diff --git a/client/src/i18n/locales/tl.json b/client/src/i18n/locales/tl.json
index 9d6a5d5f..cb7692bd 100644
--- a/client/src/i18n/locales/tl.json
+++ b/client/src/i18n/locales/tl.json
@@ -1191,6 +1191,10 @@
"startEmpty": "Start empty",
"startEmptyHint": "Create the chain with no models in it, and keep new catalog models out of it. Unchecked, it starts as a copy of the default chain.",
"curated": "Curated",
- "curatedHint": "New catalog models are not added to this chain automatically."
+ "curatedHint": "New catalog models are not added to this chain automatically.",
+ "renameHint": "Palitan ang pangalan ng chain na ito",
+ "renameConfirm": "Palitan ang pangalan ng chain \"{oldName}\" sa \"{name}\"? Ang mga client na tumatawag ng auto:{oldName} ay dapat lumipat sa auto:{name}.",
+ "renamePlaceholder": "Bagong pangalan ng chain",
+ "renameFailed": "Hindi mapalitan ang pangalan ng chain."
}
}
diff --git a/client/src/i18n/locales/tr.json b/client/src/i18n/locales/tr.json
index 2d100fc2..ef6c81a0 100644
--- a/client/src/i18n/locales/tr.json
+++ b/client/src/i18n/locales/tr.json
@@ -1191,6 +1191,10 @@
"startEmpty": "Boş başlat",
"startEmptyHint": "Zinciri hiç model olmadan oluşturur ve yeni katalog modellerini dışarıda tutar. İşaretlenmezse varsayılan zincirin kopyası olarak başlar.",
"curated": "Elle düzenli",
- "curatedHint": "Yeni katalog modelleri bu zincire otomatik eklenmez."
+ "curatedHint": "Yeni katalog modelleri bu zincire otomatik eklenmez.",
+ "renameHint": "Bu zinciri yeniden adlandır",
+ "renameConfirm": "\"{oldName}\" zincirinin adı \"{name}\" olarak değiştirilsin mi? auto:{oldName} çağıran istemciler auto:{name} kullanmalı.",
+ "renamePlaceholder": "Yeni zincir adı",
+ "renameFailed": "Zincir yeniden adlandırılamadı."
}
}
diff --git a/client/src/i18n/locales/uk.json b/client/src/i18n/locales/uk.json
index c25f73b0..8778214a 100644
--- a/client/src/i18n/locales/uk.json
+++ b/client/src/i18n/locales/uk.json
@@ -1191,6 +1191,10 @@
"startEmpty": "Почати з порожнього",
"startEmptyHint": "Створює ланцюжок без моделей і не додає до нього нові моделі каталогу. Без позначки він починається як копія типового ланцюжка.",
"curated": "Ручний",
- "curatedHint": "Нові моделі каталогу не додаються до цього ланцюжка автоматично."
+ "curatedHint": "Нові моделі каталогу не додаються до цього ланцюжка автоматично.",
+ "renameHint": "Перейменувати цей ланцюг",
+ "renameConfirm": "Перейменувати ланцюг \"{oldName}\" на \"{name}\"? Клієнти, що викликають auto:{oldName}, мають перейти на auto:{name}.",
+ "renamePlaceholder": "Нова назва ланцюга",
+ "renameFailed": "Не вдалося перейменувати ланцюг."
}
}
diff --git a/client/src/i18n/locales/ur.json b/client/src/i18n/locales/ur.json
index eab551b2..ca0ec871 100644
--- a/client/src/i18n/locales/ur.json
+++ b/client/src/i18n/locales/ur.json
@@ -1191,6 +1191,10 @@
"startEmpty": "Start empty",
"startEmptyHint": "Create the chain with no models in it, and keep new catalog models out of it. Unchecked, it starts as a copy of the default chain.",
"curated": "Curated",
- "curatedHint": "New catalog models are not added to this chain automatically."
+ "curatedHint": "New catalog models are not added to this chain automatically.",
+ "renameHint": "اس چین کا نام تبدیل کریں",
+ "renameConfirm": "چین \"{oldName}\" کا نام \"{name}\" کریں؟ auto:{oldName} کال کرنے والے کلائنٹس کو auto:{name} پر جانا ہوگا۔",
+ "renamePlaceholder": "نیا چین نام",
+ "renameFailed": "چین کا نام تبدیل نہیں ہو سکا۔"
}
}
diff --git a/client/src/i18n/locales/uz.json b/client/src/i18n/locales/uz.json
index 7582fcf7..5ecd0363 100644
--- a/client/src/i18n/locales/uz.json
+++ b/client/src/i18n/locales/uz.json
@@ -1191,6 +1191,10 @@
"startEmpty": "Start empty",
"startEmptyHint": "Create the chain with no models in it, and keep new catalog models out of it. Unchecked, it starts as a copy of the default chain.",
"curated": "Curated",
- "curatedHint": "New catalog models are not added to this chain automatically."
+ "curatedHint": "New catalog models are not added to this chain automatically.",
+ "renameHint": "Ushbu zanjir nomini o'zgartirish",
+ "renameConfirm": "\"{oldName}\" zanjir nomini \"{name}\" ga o'zgartirilsinmi? auto:{oldName} ga murojaat qiladigan mijozlar auto:{name} ga o'tishi kerak.",
+ "renamePlaceholder": "Yangi zanjir nomi",
+ "renameFailed": "Zanjir nomini o'zgartirib bo'lmadi."
}
}
diff --git a/client/src/i18n/locales/vi.json b/client/src/i18n/locales/vi.json
index cf441856..89c05611 100644
--- a/client/src/i18n/locales/vi.json
+++ b/client/src/i18n/locales/vi.json
@@ -1191,6 +1191,10 @@
"startEmpty": "Bắt đầu rỗng",
"startEmptyHint": "Tạo chuỗi không có mô hình nào và không tự thêm mô hình mới từ danh mục. Bỏ chọn thì chuỗi bắt đầu như bản sao của chuỗi mặc định.",
"curated": "Tự chọn",
- "curatedHint": "Mô hình mới trong danh mục không được thêm tự động vào chuỗi này."
+ "curatedHint": "Mô hình mới trong danh mục không được thêm tự động vào chuỗi này.",
+ "renameHint": "Đổi tên chuỗi này",
+ "renameConfirm": "Đổi tên chuỗi \"{oldName}\" thành \"{name}\"? Các client gọi auto:{oldName} phải chuyển sang auto:{name}.",
+ "renamePlaceholder": "Tên chuỗi mới",
+ "renameFailed": "Không thể đổi tên chuỗi."
}
}
diff --git a/client/src/i18n/locales/yo.json b/client/src/i18n/locales/yo.json
index c50acc91..572877e5 100644
--- a/client/src/i18n/locales/yo.json
+++ b/client/src/i18n/locales/yo.json
@@ -1191,6 +1191,10 @@
"startEmpty": "Start empty",
"startEmptyHint": "Create the chain with no models in it, and keep new catalog models out of it. Unchecked, it starts as a copy of the default chain.",
"curated": "Curated",
- "curatedHint": "New catalog models are not added to this chain automatically."
+ "curatedHint": "New catalog models are not added to this chain automatically.",
+ "renameHint": "Tún orúkọ ẹwẹ̀ yìí sí i",
+ "renameConfirm": "Tún orúkọ ẹwẹ̀ \"{oldName}\" sí \"{name}\"? Àwọn oníbàárà̀ tó ̀ pè auto:{oldName} gbọ́dọ̀ yí padà sí auto:{name}.",
+ "renamePlaceholder": "Orúkọ ẹwẹ̀ tuntun",
+ "renameFailed": "A kò lè tún orúkọ ẹwẹ̀ yẹn sọ."
}
}
diff --git a/client/src/i18n/locales/zh-CN.json b/client/src/i18n/locales/zh-CN.json
index 3fe6b1c2..4ba3349c 100644
--- a/client/src/i18n/locales/zh-CN.json
+++ b/client/src/i18n/locales/zh-CN.json
@@ -1191,6 +1191,10 @@
"startEmpty": "从空链开始",
"startEmptyHint": "创建时不放入任何模型,之后新增的目录模型也不会自动加入。不勾选则复制默认链。",
"curated": "手动维护",
- "curatedHint": "新的目录模型不会自动加入这条链。"
+ "curatedHint": "新的目录模型不会自动加入这条链。",
+ "renameHint": "重命名此链",
+ "renameConfirm": "将链“{oldName}”重命名为“{name}”?调用 auto:{oldName} 的客户端必须改用 auto:{name}。",
+ "renamePlaceholder": "新链名称",
+ "renameFailed": "无法重命名该链。"
}
}
diff --git a/client/src/i18n/locales/zh-TW.json b/client/src/i18n/locales/zh-TW.json
index 325f1cb5..ae71a620 100644
--- a/client/src/i18n/locales/zh-TW.json
+++ b/client/src/i18n/locales/zh-TW.json
@@ -1191,6 +1191,10 @@
"startEmpty": "從空鏈開始",
"startEmptyHint": "建立時不放入任何模型,之後新增的目錄模型也不會自動加入。不勾選則複製預設鏈。",
"curated": "手動維護",
- "curatedHint": "新的目錄模型不會自動加入這條鏈。"
+ "curatedHint": "新的目錄模型不會自動加入這條鏈。",
+ "renameHint": "重新命名此鏈",
+ "renameConfirm": "將鏈「{oldName}」重新命名為「{name}」?呼叫 auto:{oldName} 的客戶端必須改用 auto:{name}。",
+ "renamePlaceholder": "新鏈名稱",
+ "renameFailed": "無法重新命名該鏈。"
}
}
diff --git a/server/src/__tests__/routes/profiles-chains.test.ts b/server/src/__tests__/routes/profiles-chains.test.ts
index 87888c36..03f877e2 100644
--- a/server/src/__tests__/routes/profiles-chains.test.ts
+++ b/server/src/__tests__/routes/profiles-chains.test.ts
@@ -4,6 +4,7 @@ import { createApp } from '../../app.js';
import { initDb, getDb } from '../../db/index.js';
import { mintDashboardToken, isGatedApiPath } from '../helpers/auth.js';
import { ensureAllModelsInProfiles, ensureModelInProfiles } from '../../services/profile-models.js';
+import { resolveRoutingChain } from '../../services/router.js';
// Named fallback chains you build by hand (#895). Two things have to hold for
// a curated chain to survive: creating one must not dump the whole catalog
@@ -239,4 +240,59 @@ describe('named fallback chains', () => {
const fallbackDefault = body.find((p: { type: string }) => p.type === 'default');
expect(fallbackDefault.auto_include_new_models).toBe(1);
});
+
+ // Renaming a chain (#1179). The name IS the client-facing address — a
+ // request picks the chain with model="auto:<name>" — so rename has to
+ // enforce exactly the creation rules and never silently no-op.
+ it('renames a custom chain and moves the auto:<name> address with it', async () => {
+ // Non-empty: an empty chain has nothing to route, and resolve would
+ // correctly throw "no enabled models" rather than prove the name moved.
+ const chain = (await request('POST', '/api/profiles', { name: 'old-name' })).body;
+
+ const renamed = await request('PUT', `/api/profiles/${chain.id}`, { name: 'new-name' });
+ expect(renamed.status).toBe(200);
+ expect(renamed.body.name).toBe('new-name');
+
+ // The routing side resolves the new name and not the old one.
+ expect(() => resolveRoutingChain('auto:new-name')).not.toThrow();
+ expect(() => resolveRoutingChain('auto:old-name')).toThrow(/not found/i);
+ });
+
+ it('rejects a rename that collides with another chain, case-insensitively', async () => {
+ await request('POST', '/api/profiles', { name: 'taken', empty: true });
+ const mine = (await request('POST', '/api/profiles', { name: 'mine', empty: true })).body;
+
+ const clash = await request('PUT', `/api/profiles/${mine.id}`, { name: 'TAKEN' });
+ expect(clash.status).toBe(409);
+ });
+
+ it('lets a rename change only the case of the same name', async () => {
+ const chain = (await request('POST', '/api/profiles', { name: 'casey', empty: true })).body;
+ const renamed = await request('PUT', `/api/profiles/${chain.id}`, { name: 'Casey' });
+ expect(renamed.status).toBe(200);
+ expect(renamed.body.name).toBe('Casey');
+ });
+
+ it('refuses reserved and invalid names on rename, same as on create', async () => {
+ const chain = (await request('POST', '/api/profiles', { name: 'resizable', empty: true })).body;
+
+ const reserved = await request('PUT', `/api/profiles/${chain.id}`, { name: 'auto' });
+ expect(reserved.status).toBe(400);
+ expect(reserved.body.error.message).toMatch(/reserved/i);
+
+ const invalid = await request('PUT', `/api/profiles/${chain.id}`, { name: 'has spaces!' });
+ expect(invalid.status).toBe(400);
+
+ const long = await request('PUT', `/api/profiles/${chain.id}`, { name: 'x'.repeat(21) });
+ expect(long.status).toBe(400);
+ });
+
+ it('refuses to rename built-in chains with a clear 403', async () => {
+ const db = getDb();
+ const builtin = db.prepare("SELECT id FROM profiles WHERE type != 'custom'").get() as { id: number };
+
+ const denied = await request('PUT', `/api/profiles/${builtin.id}`, { name: 'clever' });
+ expect(denied.status).toBe(403);
+ expect(denied.body.error.message).toMatch(/built-in/i);
+ });
});
diff --git a/server/src/routes/profiles.ts b/server/src/routes/profiles.ts
index 82aa9311..12cd3622 100644
--- a/server/src/routes/profiles.ts
+++ b/server/src/routes/profiles.ts
@@ -206,7 +206,7 @@ function copyFromDefault(db: any, profileId: number) {
profilesRouter.put('/:id', (req: Request, res: Response) => {
const db = getDb();
const profileId = getId(req);
- const profile = db.prepare('SELECT id, type FROM profiles WHERE id = ?').get(profileId) as any;
+ const profile = db.prepare('SELECT id, name, type FROM profiles WHERE id = ?').get(profileId) as any;
if (!profile) {
res.status(404).json({ error: { message: 'Profile not found' } });
return;
@@ -218,6 +218,17 @@ profilesRouter.put('/:id', (req: Request, res: Response) => {
return;
}
+ const isProtected = profile.type === 'default' || profile.type === 'builtin';
+
+ // A chain's name is the address clients route with (auto:<name>), and the
+ // built-in names are fixed in docs and client configs. Say so with a 403
+ // rather than silently dropping the rename (#1179); an unchanged name sent
+ // along with other fields still passes.
+ if (isProtected && parsed.data.name !== undefined && parsed.data.name !== profile.name) {
+ res.status(403).json({ error: { message: 'Built-in chains cannot be renamed' } });
+ return;
+ }
+
// Check for case-insensitive duplicate profile names when editing name
if (parsed.data.name !== undefined) {
const duplicate = db.prepare('SELECT id FROM profiles WHERE LOWER(name) = LOWER(?) AND id != ?').get(parsed.data.name, profileId) as any;
@@ -227,7 +238,6 @@ profilesRouter.put('/:id', (req: Request, res: Response) => {
}
}
- const isProtected = profile.type === 'default' || profile.type === 'builtin';
const updates: string[] = [];
const values: any[] = [];
for (const [key, value] of Object.entries(parsed.data)) {