refactor(beaver): 移除Hermes相关引用和迁移代码,完善Beaver后端主线实现

移除了所有Hermes相关的命名引用,包括:
- 从.gitignore中清理相关构建缓存文件
- 将README中的beaver-home路径配置更新
- 完善backend/README.md文档说明Beaver后端主线实现
- 移除Hermes风格的相关注释和兼容性代码
- 清理nanobot环境变量兼容性处理
- 删除技能迁移和服务迁移相关功能代码
- 更新测试用例中相关命名和函数名

BREAKING CHANGE: 移除了Hermes迁移相关API和CLI命令,不再支持nanobot环境变量兼容性
This commit is contained in:
2026-05-14 17:20:32 +08:00
parent b59968167e
commit 3b0af173cc
57 changed files with 245 additions and 4109 deletions

View File

@ -20,7 +20,7 @@ function errorDetail(error: unknown): string {
export async function POST(request: NextRequest) {
const locale = normalizePortalLocale(
request.cookies.get('nanobot_locale')?.value ||
request.cookies.get('beaver_locale')?.value ||
request.headers.get('accept-language')
);

View File

@ -20,7 +20,7 @@ function errorDetail(error: unknown): string {
export async function POST(request: NextRequest) {
const locale = normalizePortalLocale(
request.cookies.get('nanobot_locale')?.value ||
request.cookies.get('beaver_locale')?.value ||
request.headers.get('accept-language')
);

View File

@ -1,5 +1,5 @@
export const PORTAL_LOCALE_COOKIE = 'nanobot_locale';
export const PORTAL_LOCALE_STORAGE_KEY = 'nanobot_locale';
export const PORTAL_LOCALE_COOKIE = 'beaver_locale';
export const PORTAL_LOCALE_STORAGE_KEY = 'beaver_locale';
export const PORTAL_LOCALES = ['zh-CN', 'en-US'] as const;

View File

@ -1,11 +1,11 @@
{
"name": "nanobot-auth-portal",
"name": "beaver-auth-portal",
"version": "0.1.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "nanobot-auth-portal",
"name": "beaver-auth-portal",
"version": "0.1.0",
"dependencies": {
"next": "13.5.1",

View File

@ -1,5 +1,5 @@
{
"name": "nanobot-auth-portal",
"name": "beaver-auth-portal",
"version": "0.1.0",
"private": true,
"scripts": {
@ -20,4 +20,3 @@
"typescript": "5.2.2"
}
}