chore(brand): rename the product to ReplyPier

The upstream project name is gone from code, assets, docs and build
output: brand strings, domains (replypier.site and its app/api/docs/help
subdomains), env prefixes, image and network names, the widget's public
JS API (window.ReplyPier, replypierId/BaseUrl/Config/Token), CSS tokens
(--rp-*), file and directory names, and the WordPress plugin package.

- widget loader is now webclient/replypier.min.js; both bundles rebuilt
  from source (backend/assets/widget.{js,css}, frontend/public/webclient)
- NOTICE, llms.txt, CONTRIBUTING, HELP_CENTER_INFRA and config.dev.js
  rewritten rather than string-swapped; the demo config no longer ships
  the previous vendor's Firebase/Razorpay/Google keys
- new migration replypier_ai_model_001 adds REPLYPIER to the managed
  AIModelType and rewrites pre-rename rows
- local compose project, database, role and volume renamed; LOCAL_DEPLOY
  documents carrying the old local data over
This commit is contained in:
WangShen007 committed 2026-10-26 00:51:03 +08:00
1 parent ff0a09f0e5
commit 54b949b392
1156 files changed
+7292 -7147

No files matched your search

+1 -1
View File
@@ -1,5 +1,5 @@
"""
Copyright 2024-2026 ChatterMate
Copyright 2024-2026 ReplyPier
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
+7 -7
View File
@@ -1,5 +1,5 @@
"""
Copyright 2024-2026 ChatterMate
Copyright 2024-2026 ReplyPier
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -723,23 +723,23 @@ async def generate_instructions(
except ImportError:
HAS_ENTERPRISE = False
# Get API key and model - first check for ChatterMate config if enterprise is available
# Get API key and model - first check for ReplyPier config if enterprise is available
api_key = ""
model_name = ""
model_type = ""
base_url = None
if HAS_ENTERPRISE:
# Use Groq/OpenAI with keys from env for ChatterMate model
# Use Groq/OpenAI with keys from env for ReplyPier model
model_type = 'OPENAI'
model_name = os.getenv('CHATTERMATE_MODEL_NAME', 'gpt-4o-mini')
api_key = os.getenv('CHATTERMATE_API_KEY', '')
model_name = os.getenv('REPLYPIER_MODEL_NAME', 'gpt-4o-mini')
api_key = os.getenv('REPLYPIER_API_KEY', '')
if not api_key:
logger.error("ChatterMate API key not found in environment")
logger.error("ReplyPier API key not found in environment")
raise HTTPException(
status_code=500,
detail="ChatterMate API configuration missing"
detail="ReplyPier API configuration missing"
)
else:
# Get from organization's AI config
+23 -23
View File
@@ -1,5 +1,5 @@
"""
Copyright 2024-2026 ChatterMate
Copyright 2024-2026 ReplyPier
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -102,25 +102,25 @@ async def setup_ai(
# Validate model selection based on provider
validate_model_selection(config_data.model_type, config_data.model_name)
# Check if this is a custom model setup (not ChatterMate)
is_custom_model = not (config_data.model_type.lower() == 'chattermate' and config_data.model_name.lower() == 'chattermate')
# Check if this is a custom model setup (not ReplyPier)
is_custom_model = not (config_data.model_type.lower() == 'replypier' and config_data.model_name.lower() == 'replypier')
# Check feature access for custom models
if is_custom_model:
check_custom_models_feature_access(current_user, db)
# Check if using ChatterMate model
if HAS_ENTERPRISE and config_data.model_type.lower() == 'chattermate' and config_data.model_name.lower() == 'chattermate':
# Check if using ReplyPier model
if HAS_ENTERPRISE and config_data.model_type.lower() == 'replypier' and config_data.model_name.lower() == 'replypier':
# Use Groq as provider with keys from env
model_type = AIModelType.CHATTERMATE
model_name = os.getenv('CHATTERMATE_MODEL_NAME', 'gpt-4o-mini')
api_key = os.getenv('CHATTERMATE_API_KEY', '')
model_type = AIModelType.REPLYPIER
model_name = os.getenv('REPLYPIER_MODEL_NAME', 'gpt-4o-mini')
api_key = os.getenv('REPLYPIER_API_KEY', '')
if not api_key:
logger.error("ChatterMate API key not found in environment")
logger.error("ReplyPier API key not found in environment")
raise HTTPException(
status_code=500,
detail="ChatterMate API configuration missing"
detail="ReplyPier API configuration missing"
)
# Create AI configuration
@@ -146,7 +146,7 @@ async def setup_ai(
)
logger.debug(
f"ChatterMate AI setup completed for org {current_user.organization_id}")
f"ReplyPier AI setup completed for org {current_user.organization_id}")
return response
# Regular custom model setup
@@ -281,8 +281,8 @@ async def update_ai_config(
# Validate model selection based on provider
validate_model_selection(config_data.model_type, config_data.model_name)
# Check if this is a custom model setup (not ChatterMate)
is_custom_model = not (config_data.model_type.lower() == 'chattermate' and config_data.model_name.lower() == 'chattermate')
# Check if this is a custom model setup (not ReplyPier)
is_custom_model = not (config_data.model_type.lower() == 'replypier' and config_data.model_name.lower() == 'replypier')
# Check feature access for custom models
if is_custom_model:
@@ -298,18 +298,18 @@ async def update_ai_config(
detail="No active AI configuration found to update"
)
# Check if using ChatterMate model
if HAS_ENTERPRISE and config_data.model_type.lower() == 'chattermate' and config_data.model_name.lower() == 'chattermate':
# Check if using ReplyPier model
if HAS_ENTERPRISE and config_data.model_type.lower() == 'replypier' and config_data.model_name.lower() == 'replypier':
# Use Groq as provider with keys from env
model_type = AIModelType.CHATTERMATE
model_name = os.getenv('CHATTERMATE_MODEL_NAME', 'gpt-4o-mini')
api_key = os.getenv('CHATTERMATE_API_KEY', '')
model_type = AIModelType.REPLYPIER
model_name = os.getenv('REPLYPIER_MODEL_NAME', 'gpt-4o-mini')
api_key = os.getenv('REPLYPIER_API_KEY', '')
if not api_key:
logger.error("ChatterMate API key not found in environment")
logger.error("ReplyPier API key not found in environment")
raise HTTPException(
status_code=500,
detail="ChatterMate API configuration missing"
detail="ReplyPier API configuration missing"
)
# Update AI configuration
@@ -320,7 +320,7 @@ async def update_ai_config(
api_key=api_key
)
logger.info(f"ChatterMate AI config updated for org {current_user.organization_id}")
logger.info(f"ReplyPier AI config updated for org {current_user.organization_id}")
else:
# For custom model, validate API key and/or base_url first if either is
# changing in this request.
@@ -429,8 +429,8 @@ def validate_model_selection(model_type: str, model_name: str):
is what actually rejects a bad model ID.
"""
# ChatterMate is a special case handled separately
if model_type.upper() == "CHATTERMATE" and model_name.lower() == "chattermate":
# ReplyPier is a special case handled separately
if model_type.upper() == "REPLYPIER" and model_name.lower() == "replypier":
return True
if not is_known_provider(model_type):
+1 -1
View File
@@ -1,5 +1,5 @@
"""
Copyright 2024-2026 ChatterMate
Copyright 2024-2026 ReplyPier
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
+1 -1
View File
@@ -1,5 +1,5 @@
"""
Copyright 2024-2026 ChatterMate
Copyright 2024-2026 ReplyPier
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
+1 -1
View File
@@ -1,5 +1,5 @@
"""
Copyright 2024-2026 ChatterMate
Copyright 2024-2026 ReplyPier
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
+1 -1
View File
@@ -1,5 +1,5 @@
"""
Copyright 2024-2026 ChatterMate
Copyright 2024-2026 ReplyPier
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
+1 -1
View File
@@ -1,5 +1,5 @@
"""
Copyright 2024-2026 ChatterMate
Copyright 2024-2026 ReplyPier
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
+1 -1
View File
@@ -1,5 +1,5 @@
"""
Copyright 2024-2026 ChatterMate
Copyright 2024-2026 ReplyPier
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
+3 -3
View File
@@ -1,5 +1,5 @@
"""
Copyright 2024-2026 ChatterMate
Copyright 2024-2026 ReplyPier
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -302,7 +302,7 @@ def _upsert_account(db: Session, organization: Organization, channel_type: str,
forget: tuple = ()):
"""Create the account or refresh credentials on reconnect (same org only).
`forget` names stored credentials that no longer apply (an app secret,
once the account is connected through ChatterMate's own app)."""
once the account is connected through ReplyPier's own app)."""
repo = ChannelAccountRepository(db)
existing = repo.get_by_external_id(channel_type, external_account_id)
if existing is not None:
@@ -542,7 +542,7 @@ async def list_messenger_signup_pages(
pages = await _list_manageable_pages(user_token, "id,name,access_token")
if not pages:
raise HTTPException(status_code=400, detail=(
"No Facebook Pages were shared with ChatterMate. Run the connect "
"No Facebook Pages were shared with ReplyPier. Run the connect "
"again and tick the Page you want to use."))
return MessengerSignupPagesOut(
+1 -1
View File
@@ -1,5 +1,5 @@
"""
Copyright 2024-2026 ChatterMate
Copyright 2024-2026 ReplyPier
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
+1 -1
View File
@@ -1,5 +1,5 @@
"""
Copyright 2024-2026 ChatterMate
Copyright 2024-2026 ReplyPier
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
+1 -1
View File
@@ -1,5 +1,5 @@
"""
Copyright 2024-2026 ChatterMate
Copyright 2024-2026 ReplyPier
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
"""
Copyright 2024-2026 ChatterMate
Copyright 2024-2026 ReplyPier
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
+1 -1
View File
@@ -1,5 +1,5 @@
"""
Copyright 2024-2026 ChatterMate
Copyright 2024-2026 ReplyPier
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
+1 -1
View File
@@ -1,5 +1,5 @@
"""
Copyright 2024-2026 ChatterMate
Copyright 2024-2026 ReplyPier
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
+1 -1
View File
@@ -1,5 +1,5 @@
"""
Copyright 2024-2026 ChatterMate
Copyright 2024-2026 ReplyPier
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
+1 -1
View File
@@ -1,5 +1,5 @@
"""
Copyright 2024-2026 ChatterMate
Copyright 2024-2026 ReplyPier
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
+4 -4
View File
@@ -1,5 +1,5 @@
"""
Copyright 2024-2026 ChatterMate
Copyright 2024-2026 ReplyPier
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -75,8 +75,8 @@ def domain_status_response(row: HelpCenterSettings) -> DomainStatusResponse:
),
DnsRecord(
type="TXT",
host=f"_chattermate.{row.custom_domain}",
value=f"cm-verify={row.domain_verification_token}",
host=f"_replypier.{row.custom_domain}",
value=f"rp-verify={row.domain_verification_token}",
verified=row.txt_record_verified,
),
]
@@ -100,7 +100,7 @@ async def settings_response(
.all()
)
response = HelpCenterSettingsResponse.model_validate(row)
# Absolute (api-origin) URL: the admin runs on app.chattermate.chat, whose
# Absolute (api-origin) URL: the admin runs on app.replypier.site, whose
# nginx serves any *.png path as a static asset — a host-relative
# /api/v1/uploads/*.png would 404 there. Anchor to the backend origin.
response.logo_url = (
+1 -1
View File
@@ -1,5 +1,5 @@
"""
Copyright 2024-2026 ChatterMate
Copyright 2024-2026 ReplyPier
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
+1 -1
View File
@@ -1,5 +1,5 @@
"""
Copyright 2024-2026 ChatterMate
Copyright 2024-2026 ReplyPier
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
+1 -1
View File
@@ -1,5 +1,5 @@
"""
Copyright 2024-2026 ChatterMate
Copyright 2024-2026 ReplyPier
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
+1 -1
View File
@@ -1,5 +1,5 @@
"""
Copyright 2024-2026 ChatterMate
Copyright 2024-2026 ReplyPier
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
+5 -5
View File
@@ -1,5 +1,5 @@
"""
Copyright 2024-2026 ChatterMate
Copyright 2024-2026 ReplyPier
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -74,7 +74,7 @@ from app.services.help_center_seo import (
)
from app.services.public_rate_limit import allow_request
public_app = FastAPI(title="ChatterMate Help Center", docs_url=None, redoc_url=None, openapi_url=None)
public_app = FastAPI(title="ReplyPier Help Center", docs_url=None, redoc_url=None, openapi_url=None)
install_error_handlers(public_app)
# Serve ONLY help-center images on this app, so relative logo/article-image paths
# resolve on a subdomain/custom-domain origin (host dispatch). Scoped to the
@@ -154,11 +154,11 @@ async def _chrome_context(row: HelpCenterSettings, base_path: str = "") -> dict:
"favicon_url": await resolve_public_url(row.favicon_url) if row.favicon_url else None,
"header_links": row.header_links or [],
"widget_id": widget_id_for(row),
# The widget LOADER (chattermate.min.js) is served by the frontend, while
# The widget LOADER (replypier.min.js) is served by the frontend, while
# the widget APP it pulls in (/assets/widget.js) is served from
# VITE_WIDGET_URL by the backend. In prod both resolve to the app domain.
"widget_script_url": f"{settings.FRONTEND_URL}/webclient/chattermate.min.js",
# This install's API root, handed to the loader as window.chattermateBaseUrl
"widget_script_url": f"{settings.FRONTEND_URL}/webclient/replypier.min.js",
# This install's API root, handed to the loader as window.replypierBaseUrl
# (same contract as the dashboard's embed snippet). Without it the loader
# uses its build-time default — the vendor cloud — which no self-hosted
# deployment can talk to.
+1 -1
View File
@@ -1,5 +1,5 @@
"""
Copyright 2024-2026 ChatterMate
Copyright 2024-2026 ReplyPier
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
+1 -1
View File
@@ -1,5 +1,5 @@
"""
Copyright 2024-2026 ChatterMate
Copyright 2024-2026 ReplyPier
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
+1 -1
View File
@@ -1,5 +1,5 @@
"""
Copyright 2024-2026 ChatterMate
Copyright 2024-2026 ReplyPier
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
+1 -1
View File
@@ -1,5 +1,5 @@
"""
Copyright 2024-2026 ChatterMate
Copyright 2024-2026 ReplyPier
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
+2 -2
View File
@@ -1,5 +1,5 @@
"""
Copyright 2024-2026 ChatterMate
Copyright 2024-2026 ReplyPier
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -262,7 +262,7 @@ async def send_test_notification(
user_id=current_user.id,
type="CHAT",
title="Test Notification",
message="This is a test notification from ChatterMate",
message="This is a test notification from ReplyPier",
notification_metadata={"test": True}
)
db.add(notification)
+1 -1
View File
@@ -1,5 +1,5 @@
"""
Copyright 2024-2026 ChatterMate
Copyright 2024-2026 ReplyPier
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
+1 -1
View File
@@ -1,5 +1,5 @@
"""
Copyright 2024-2026 ChatterMate
Copyright 2024-2026 ReplyPier
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
+1 -1
View File
@@ -1,5 +1,5 @@
"""
Copyright 2024-2026 ChatterMate
Copyright 2024-2026 ReplyPier
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
+1 -1
View File
@@ -1,5 +1,5 @@
"""
Copyright 2024-2026 ChatterMate
Copyright 2024-2026 ReplyPier
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
+1 -1
View File
@@ -1,5 +1,5 @@
"""
Copyright 2024-2026 ChatterMate
Copyright 2024-2026 ReplyPier
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
+1 -1
View File
@@ -1,5 +1,5 @@
"""
Copyright 2024-2026 ChatterMate
Copyright 2024-2026 ReplyPier
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
+1 -1
View File
@@ -1,5 +1,5 @@
"""
Copyright 2024-2026 ChatterMate
Copyright 2024-2026 ReplyPier
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
+2 -2
View File
@@ -1,5 +1,5 @@
"""
Copyright 2024-2026 ChatterMate
Copyright 2024-2026 ReplyPier
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -131,7 +131,7 @@ def _activity_out(activity) -> TicketActivityOut:
if activity.actor_user is not None:
out.actor_name = activity.actor_user.full_name
elif str(activity.actor_type) == TicketActorType.AI.value:
out.actor_name = "ChatterMate AI"
out.actor_name = "ReplyPier AI"
return out
+1 -1
View File
@@ -1,5 +1,5 @@
"""
Copyright 2024-2026 ChatterMate
Copyright 2024-2026 ReplyPier
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
+1 -1
View File
@@ -1,5 +1,5 @@
"""
Copyright 2024-2026 ChatterMate
Copyright 2024-2026 ReplyPier
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
+1 -1
View File
@@ -1,5 +1,5 @@
"""
Copyright 2024-2026 ChatterMate
Copyright 2024-2026 ReplyPier
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
+1 -1
View File
@@ -1,5 +1,5 @@
"""
Copyright 2024-2026 ChatterMate
Copyright 2024-2026 ReplyPier
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
+1 -1
View File
@@ -1,5 +1,5 @@
"""
Copyright 2024-2026 ChatterMate
Copyright 2024-2026 ReplyPier
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
+1 -1
View File
@@ -1,5 +1,5 @@
"""
Copyright 2024-2026 ChatterMate
Copyright 2024-2026 ReplyPier
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
+1 -1
View File
@@ -1,5 +1,5 @@
"""
Copyright 2024-2026 ChatterMate
Copyright 2024-2026 ReplyPier
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
+1 -1
View File
@@ -1,5 +1,5 @@
"""
Copyright 2024-2026 ChatterMate
Copyright 2024-2026 ReplyPier
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
+1 -1
View File
@@ -1,5 +1,5 @@
"""
Copyright 2024-2026 ChatterMate
Copyright 2024-2026 ReplyPier
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
+1 -1
View File
@@ -1,5 +1,5 @@
"""
Copyright 2024-2026 ChatterMate
Copyright 2024-2026 ReplyPier
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
+1 -1
View File
@@ -1,5 +1,5 @@
"""
Copyright 2024-2026 ChatterMate
Copyright 2024-2026 ReplyPier
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
+2 -2
View File
@@ -1,5 +1,5 @@
"""
Copyright 2024-2026 ChatterMate
Copyright 2024-2026 ReplyPier
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -154,7 +154,7 @@ def _widget_runtime_config(request: Optional[Request] = None) -> dict:
Derived from ``BACKEND_URL`` so a self-hosted widget talks to the configured
backend instead of the vendor cloud. On the hosted deployment BACKEND_URL is
``https://api.chattermate.chat``, which yields exactly the widget's baked-in
``https://api.replypier.site``, which yields exactly the widget's baked-in
defaults, so injecting this is a no-op there.
"""
global _warned_about_loopback_backend_url
+1 -1
View File
@@ -1,5 +1,5 @@
"""
Copyright 2024-2026 ChatterMate
Copyright 2024-2026 ReplyPier
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
+2 -2
View File
@@ -1,5 +1,5 @@
"""
Copyright 2024-2026 ChatterMate
Copyright 2024-2026 ReplyPier
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -262,7 +262,7 @@ async def widget_connect(sid, environ, auth):
message_limit_reached = False
# Check message limits if enterprise module is available
if HAS_ENTERPRISE and ai_config.model_type == AIModelType.CHATTERMATE:
if HAS_ENTERPRISE and ai_config.model_type == AIModelType.REPLYPIER:
if not await check_message_limit(db, org_id, sid, sio):
message_limit_reached = True
+1 -1
View File
@@ -1,5 +1,5 @@
"""
Copyright 2024-2026 ChatterMate
Copyright 2024-2026 ReplyPier
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
+1 -1
View File
@@ -1,5 +1,5 @@
"""
Copyright 2024-2026 ChatterMate
Copyright 2024-2026 ReplyPier
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.