chore(brand): scrub LibreChat brand mentions → Hanzo

Removes the upstream LibreChat brand from user-visible + internal surfaces (pt-PT
locale string, MCP trust-warning template, code comments, the libreChatProxy var,
the LIBRE_CHAT_DOCKER_TAG build-script env, README prose). App UI was already
Hanzo-branded; this cleans the residue.

KEPT deliberately:
- LICENSE / packages/data-schemas/LICENSE 'Copyright (c) … LibreChat' — the MIT
  license REQUIRES the attribution; stripping it would violate the license.
- All LibreOffice references (packages/api/src/files/documents/libreoffice.ts) —
  that is the office-suite doc-preview dependency, NOT LibreChat; removing it
  breaks document preview.
This commit is contained in:
hanzo-dev
2026-07-22 19:09:55 -07:00
parent 256595062b
commit 79e884dd44
14 changed files with 16 additions and 16 deletions
+1 -1
View File
@@ -82,4 +82,4 @@ packages/ data-provider · data-schemas · api · client · agents · mcp
## License
MIT. Forked from LibreChat (MIT). See [LICENSE](./LICENSE).
MIT. MIT licensed. See [LICENSE](./LICENSE) for the full attribution.
+1 -1
View File
@@ -82,4 +82,4 @@ packages/ data-provider · data-schemas · api · client · agents · mcp
## 许可证
MIT 许可证。基于 LibreChatMIT)分支开发。见 [LICENSE](./LICENSE)。
MIT 许可证。MIT 许可证。见 [LICENSE](./LICENSE) 获取完整署名
+1 -1
View File
@@ -11,7 +11,7 @@ const { resolveTenantBearer } = require('@hanzochat/api');
* validates it and scopes to the caller's OWN org (same trust model as CloudAgentsClient
* / RoutingDefaults). The token never reaches the browser.
*
* This is a SEPARATE concern from the Mongo `/v1/chat/usage` tab (LibreChat's own token-
* This is a SEPARATE concern from the Mongo `/v1/chat/usage` tab (the legacy token-
* credit accounting): the client renders this beside it with the shared @hanzo/usage
* shape — nothing is re-derived here.
*
+1 -1
View File
@@ -161,7 +161,7 @@ interface:
# de-DE: 'Ich verstehe und möchte fortfahren' # You can narrow translation to regions like (de-DE or de-CH)
# subLabel:
# en: |
# Librechat hasn't reviewed this MCP server. Attackers may attempt to steal your data or trick the model into taking unintended actions, including destroying data. <a href="https://google.de" target="_blank"><strong>Learn more.</strong></a>
# Hanzo hasn't reviewed this MCP server. Attackers may attempt to steal your data or trick the model into taking unintended actions, including destroying data. <a href="https://google.de" target="_blank"><strong>Learn more.</strong></a>
# de: |
# Chat hat diesen MCP-Server nicht überprüft. Angreifer könnten versuchen, Ihre Daten zu stehlen oder das Modell zu unbeabsichtigten Aktionen zu verleiten, einschließlich der Zerstörung von Daten. <a href="https://google.de" target="_blank"><strong>Mehr erfahren.</strong></a>
@@ -12,7 +12,7 @@ import { useAuthContext } from '~/hooks';
/**
* Cloud usage — the canonical, org-scoped AI usage from `GET /v1/get-cloud-usages`
* (proxied on-behalf-of by the chat backend). Rendered as a native, LibreChat-styled
* (proxied on-behalf-of by the chat backend). Rendered as a native, Hanzo Chat-styled
* view over the SHARED `@hanzo/usage` `CloudUsageOverview` shape: nothing is re-derived,
* the numbers come straight from the ledger, and `normalizeCloudUsage` is the ONE
* boundary guard (a partial/absent field degrades to honest zeros, never fabricated).
@@ -147,7 +147,7 @@ function Usage() {
<SmartRoutingToggle />
{/* Canonical cloud usage (api.hanzo.ai) — renders nothing when unavailable.
A separate concern from the LibreChat token-credit view below. */}
A separate concern from the legacy token-credit view below. */}
<CloudUsage />
{/* Spend header card */}
+1 -1
View File
@@ -906,7 +906,7 @@
"com_ui_latest_footer": "Toda IA para Todos.",
"com_ui_latest_production_version": "Última versão produtiva",
"com_ui_latest_version": "Última versão",
"com_ui_chat_code_api_key": "Obtem a tua chave da API do Interpretador de código Librechat",
"com_ui_chat_code_api_key": "Obtem a tua chave da API do Interpretador de código Hanzo",
"com_ui_chat_code_api_subtitle": "Seguro. Multilíngua. Entrada/Saída de Ficheiros.",
"com_ui_chat_code_api_title": "Correr código AI",
"com_ui_loading": "A Carregar....",
+1 -1
View File
@@ -23,7 +23,7 @@
# services:
# # USE LIBRECHAT CONFIG FILE
# # USE HANZO CHAT CONFIG FILE
# api:
# volumes:
# - type: bind
@@ -798,7 +798,7 @@ export function emitError(
}
/* =============================================================================
* LIBRECHAT EXTENSION EVENTS
* HANZO CHAT EXTENSION EVENTS
* Custom events prefixed with 'chat:' per Open Responses spec
* @see https://openresponses.org/specification#extending-streaming-events
* ============================================================================= */
+1 -1
View File
@@ -689,7 +689,7 @@ export interface ErrorEvent extends BaseEvent {
}
/* =============================================================================
* LIBRECHAT EXTENSION TYPES
* HANZO CHAT EXTENSION TYPES
* Per Open Responses spec, custom types MUST be prefixed with implementor slug
* @see https://openresponses.org/specification#extending-streaming-events
* ============================================================================= */
+3 -3
View File
@@ -578,9 +578,9 @@ function getMCPProxyConfig(options: t.MCPOptions): MCPProxyConfig | undefined {
return { type: 'explicit', proxyUrl: configuredProxy };
}
const libreChatProxy = process.env.PROXY?.trim() ?? '';
if (libreChatProxy) {
return { type: 'explicit', proxyUrl: libreChatProxy };
const chatProxy = process.env.PROXY?.trim() ?? '';
if (chatProxy) {
return { type: 'explicit', proxyUrl: chatProxy };
}
const httpProxy = getTrimmedEnv('http_proxy', 'HTTP_PROXY');
@@ -67,7 +67,7 @@ interface PoolStats {
available: number;
}
// ─── ALL 29 LIBRECHAT SCHEMAS ───────────────────────────────────────────────
// ─── ALL 29 HANZO CHAT SCHEMAS ───────────────────────────────────────────────
const MODEL_SCHEMAS: Record<string, Schema> = {
User: userSchema,
+1 -1
View File
@@ -7,7 +7,7 @@ cd ${DIR}/../..
TAG=$1
if [[ -z "${TAG}" ]]; then
TAG=${LIBRE_CHAT_DOCKER_TAG}
TAG=${CHAT_DOCKER_TAG}
fi
if [[ -z "${TAG}" ]]; then
+1 -1
View File
@@ -7,7 +7,7 @@ cd ${DIR}/../..
TAG=$1
if [[ -z "${TAG}" ]]; then
TAG=${LIBRE_CHAT_DOCKER_TAG}
TAG=${CHAT_DOCKER_TAG}
fi
if [[ -z "${TAG}" ]]; then