From 1f21309597294340c34379a7208cf1f0c9da7f1e Mon Sep 17 00:00:00 2001 From: gongzhiyong Date: Fri, 1 May 2026 01:47:23 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20rename=20manager=20codebase=20dir?= =?UTF-8?q?=20new-api=20=E2=86=92=20heicode,=20module=20github.com/heicode?= =?UTF-8?q?/manager?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove user-facing new-api naming; Docker/network/container names use heicode. Go imports updated; Dockerfiles and workflows ldflags fixed. Made-with: Cursor --- CLAUDE.md | 22 +++-- README.md | 8 +- cc-haha/README.md | 6 +- .../components/login/ProviderLoginCard.tsx | 4 +- cc-haha/docker-compose.yml | 18 ++-- cc-haha/docs/HEICODE-PLAN.md | 16 ++-- .../src/server/__tests__/providers.test.ts | 8 +- cc-haha/src/server/config/providerPresets.ts | 2 +- .../src/server/services/providerService.ts | 2 +- docs/README.md | 2 +- docs/architecture.md | 6 +- docs/glossary.md | 2 +- docs/integration/heicode-oauth-flow.md | 8 +- docs/milestones/STATUS.md | 12 +-- docs/onboarding/README.md | 8 +- docs/onboarding/env-variables.md | 2 +- docs/onboarding/local-dev.md | 16 ++-- .../skills/classic-to-default-sync/SKILL.md | 0 .../.agents/skills/i18n-translate/SKILL.md | 0 .../vercel-react-best-practices/AGENTS.md | 0 {new-api => heicode}/.check_pg.sh | 0 {new-api => heicode}/.dockerignore | 0 {new-api => heicode}/.env.example | 2 +- {new-api => heicode}/.gitattributes | 0 .../.github/CODE_OF_CONDUCT.md | 0 .../.github/ISSUE_TEMPLATE/bug_report.md | 2 +- .../.github/ISSUE_TEMPLATE/bug_report_en.md | 2 +- .../.github/ISSUE_TEMPLATE/config.yml | 2 +- .../.github/ISSUE_TEMPLATE/feature_request.md | 2 +- .../ISSUE_TEMPLATE/feature_request_en.md | 2 +- .../.github/PULL_REQUEST_TEMPLATE.md | 2 +- {new-api => heicode}/.github/SECURITY.md | 2 +- .../.github/workflows/docker-build.yml | 24 ++--- .../.github/workflows/docker-image-alpha.yml | 24 ++--- .../workflows/docker-image-nightly.yml | 18 ++-- .../.github/workflows/electron-build.yml | 4 +- .../.github/workflows/pr-check.yml | 0 .../.github/workflows/release.yml | 20 ++-- .../.github/workflows/sync-to-gitee.yml | 4 +- {new-api => heicode}/.gitignore | 2 +- {new-api => heicode}/.retry_pg.sh | 0 {new-api => heicode}/AGENTS.md | 2 +- {new-api => heicode}/CLAUDE.md | 2 +- {new-api => heicode}/Dockerfile | 6 +- {new-api => heicode}/Dockerfile.dev | 6 +- {new-api => heicode}/LICENSE | 0 {new-api => heicode}/README.en.md | 64 ++++++------- {new-api => heicode}/README.fr.md | 66 ++++++------- {new-api => heicode}/README.ja.md | 66 ++++++------- {new-api => heicode}/README.md | 66 ++++++------- ...E.sync-conflict-20260430-014104-GVADS2N.md | 10 +- {new-api => heicode}/README.zh_CN.md | 66 ++++++------- {new-api => heicode}/README.zh_TW.md | 66 ++++++------- {new-api => heicode}/VERSION | 0 .../bin/acceptance_agnet_local.sh | 2 +- {new-api => heicode}/bin/azure_vm_deploy.sh | 10 +- .../bin/migration_v0.2-v0.3.sql | 0 .../bin/migration_v0.3-v0.4.sql | 0 {new-api => heicode}/bin/time_test.sh | 0 {new-api => heicode}/common/api_type.go | 2 +- {new-api => heicode}/common/audio.go | 0 {new-api => heicode}/common/body_storage.go | 0 {new-api => heicode}/common/constants.go | 0 {new-api => heicode}/common/copy.go | 0 {new-api => heicode}/common/crypto.go | 0 {new-api => heicode}/common/custom-event.go | 0 {new-api => heicode}/common/database.go | 0 {new-api => heicode}/common/disk_cache.go | 2 +- .../common/disk_cache_config.go | 0 .../common/email-outlook-auth.go | 0 {new-api => heicode}/common/email.go | 0 .../common/embed-file-system.go | 0 .../common/endpoint_defaults.go | 2 +- {new-api => heicode}/common/endpoint_type.go | 2 +- {new-api => heicode}/common/env.go | 0 {new-api => heicode}/common/gin.go | 2 +- {new-api => heicode}/common/go-channel.go | 0 {new-api => heicode}/common/gopool.go | 0 {new-api => heicode}/common/hash.go | 0 {new-api => heicode}/common/init.go | 10 +- {new-api => heicode}/common/ip.go | 0 {new-api => heicode}/common/json.go | 0 {new-api => heicode}/common/json_test.go | 0 .../common/limiter/limiter.go | 2 +- .../common/limiter/lua/rate_limit.lua | 0 {new-api => heicode}/common/model.go | 0 {new-api => heicode}/common/page_info.go | 0 .../common/performance_config.go | 0 {new-api => heicode}/common/pprof.go | 0 {new-api => heicode}/common/pyro.go | 4 +- {new-api => heicode}/common/quota.go | 0 {new-api => heicode}/common/rate-limit.go | 0 {new-api => heicode}/common/redis.go | 0 .../common/ssrf_protection.go | 0 {new-api => heicode}/common/str.go | 0 {new-api => heicode}/common/sys_log.go | 0 {new-api => heicode}/common/system_monitor.go | 0 .../common/system_monitor_unix.go | 0 .../common/system_monitor_windows.go | 0 {new-api => heicode}/common/topup-ratio.go | 0 {new-api => heicode}/common/totp.go | 0 {new-api => heicode}/common/url_validator.go | 2 +- .../common/url_validator_test.go | 2 +- {new-api => heicode}/common/utils.go | 0 {new-api => heicode}/common/validate.go | 0 {new-api => heicode}/common/verification.go | 0 {new-api => heicode}/constant/README.md | 0 {new-api => heicode}/constant/api_type.go | 0 {new-api => heicode}/constant/azure.go | 0 {new-api => heicode}/constant/cache_key.go | 0 {new-api => heicode}/constant/channel.go | 0 {new-api => heicode}/constant/context_key.go | 0 .../constant/endpoint_type.go | 0 {new-api => heicode}/constant/env.go | 0 .../constant/finish_reason.go | 0 {new-api => heicode}/constant/midjourney.go | 0 .../constant/multi_key_mode.go | 0 {new-api => heicode}/constant/setup.go | 0 {new-api => heicode}/constant/task.go | 0 .../constant/waffo_pay_method.go | 0 .../controller/agnet_control_plane.go | 2 +- {new-api => heicode}/controller/billing.go | 8 +- .../controller/channel-billing.go | 12 +-- .../controller/channel-test.go | 28 +++--- {new-api => heicode}/controller/channel.go | 16 ++-- .../controller/channel_affinity_cache.go | 2 +- .../controller/channel_test_internal_test.go | 10 +- .../controller/channel_upstream_update.go | 14 +-- .../channel_upstream_update_test.go | 4 +- {new-api => heicode}/controller/checkin.go | 8 +- .../controller/codex_oauth.go | 10 +- .../controller/codex_usage.go | 10 +- .../controller/console_migrate.go | 4 +- .../controller/custom_oauth.go | 6 +- {new-api => heicode}/controller/deployment.go | 4 +- {new-api => heicode}/controller/discord.go | 6 +- {new-api => heicode}/controller/github.go | 4 +- {new-api => heicode}/controller/group.go | 8 +- .../controller/heicode_oauth.go | 6 +- {new-api => heicode}/controller/image.go | 0 {new-api => heicode}/controller/linuxdo.go | 4 +- {new-api => heicode}/controller/log.go | 4 +- {new-api => heicode}/controller/midjourney.go | 14 +-- {new-api => heicode}/controller/misc.go | 20 ++-- .../controller/missing_models.go | 2 +- {new-api => heicode}/controller/model.go | 28 +++--- .../controller/model_list_test.go | 12 +-- {new-api => heicode}/controller/model_meta.go | 6 +- {new-api => heicode}/controller/model_sync.go | 4 +- {new-api => heicode}/controller/oauth.go | 8 +- {new-api => heicode}/controller/oidc.go | 6 +- {new-api => heicode}/controller/option.go | 14 +-- {new-api => heicode}/controller/passkey.go | 8 +- .../payment_webhook_availability.go | 4 +- .../payment_webhook_availability_test.go | 4 +- .../controller/performance.go | 4 +- {new-api => heicode}/controller/playground.go | 8 +- .../controller/prefill_group.go | 4 +- {new-api => heicode}/controller/pricing.go | 8 +- .../controller/ratio_config.go | 2 +- {new-api => heicode}/controller/ratio_sync.go | 12 +-- {new-api => heicode}/controller/redemption.go | 6 +- {new-api => heicode}/controller/relay.go | 28 +++--- .../controller/secure_verification.go | 4 +- {new-api => heicode}/controller/setup.go | 8 +- .../controller/subscription.go | 6 +- .../controller/subscription_payment_creem.go | 10 +- .../controller/subscription_payment_epay.go | 10 +- .../controller/subscription_payment_stripe.go | 10 +- {new-api => heicode}/controller/swag_video.go | 0 {new-api => heicode}/controller/task.go | 14 +-- {new-api => heicode}/controller/task_video.go | 18 ++-- {new-api => heicode}/controller/telegram.go | 4 +- {new-api => heicode}/controller/token.go | 8 +- {new-api => heicode}/controller/token_test.go | 4 +- {new-api => heicode}/controller/topup.go | 14 +-- .../controller/topup_creem.go | 8 +- .../controller/topup_stripe.go | 14 +-- .../controller/topup_waffo.go | 14 +-- .../controller/topup_waffo_pancake.go | 16 ++-- .../controller/topup_waffo_pancake_test.go | 6 +- {new-api => heicode}/controller/twofa.go | 4 +- .../controller/uptime_kuma.go | 2 +- {new-api => heicode}/controller/usedata.go | 4 +- {new-api => heicode}/controller/user.go | 16 ++-- .../controller/vendor_meta.go | 4 +- .../controller/video_proxy.go | 12 +-- .../controller/video_proxy_gemini.go | 8 +- {new-api => heicode}/controller/wechat.go | 4 +- heicode/docker-compose.azure-vm.yml | 55 +++++++++++ {new-api => heicode}/docker-compose.dev.yml | 18 ++-- {new-api => heicode}/docker-compose.local.yml | 2 +- .../docker-compose.override.yml | 10 +- {new-api => heicode}/docker-compose.yml | 37 ++++---- .../docs/channel/other_setting.md | 0 {new-api => heicode}/docs/images/aionui.png | Bin {new-api => heicode}/docs/images/aliyun.png | Bin .../docs/images/cherry-studio.png | Bin {new-api => heicode}/docs/images/io-net.png | Bin {new-api => heicode}/docs/images/pku.png | Bin {new-api => heicode}/docs/images/ucloud.png | Bin {new-api => heicode}/docs/installation/BT.md | 16 ++-- {new-api => heicode}/docs/ionet-client.md | 0 {new-api => heicode}/docs/openapi/api.json | 0 {new-api => heicode}/docs/openapi/relay.json | 0 .../docs/translation-glossary.fr.md | 0 .../docs/translation-glossary.md | 0 .../docs/translation-glossary.ru.md | 0 {new-api => heicode}/dto/audio.go | 2 +- {new-api => heicode}/dto/channel_settings.go | 0 {new-api => heicode}/dto/claude.go | 4 +- {new-api => heicode}/dto/embedding.go | 2 +- {new-api => heicode}/dto/error.go | 4 +- {new-api => heicode}/dto/gemini.go | 6 +- .../dto/gemini_generation_config_test.go | 2 +- .../dto/gemini_isstream_test.go | 0 {new-api => heicode}/dto/midjourney.go | 0 {new-api => heicode}/dto/notify.go | 0 {new-api => heicode}/dto/openai_compaction.go | 2 +- {new-api => heicode}/dto/openai_image.go | 4 +- {new-api => heicode}/dto/openai_request.go | 4 +- .../dto/openai_request_zero_value_test.go | 2 +- {new-api => heicode}/dto/openai_response.go | 4 +- .../openai_responses_compaction_request.go | 2 +- {new-api => heicode}/dto/openai_video.go | 0 {new-api => heicode}/dto/playground.go | 0 {new-api => heicode}/dto/pricing.go | 2 +- {new-api => heicode}/dto/ratio_sync.go | 0 {new-api => heicode}/dto/realtime.go | 2 +- {new-api => heicode}/dto/request_common.go | 2 +- {new-api => heicode}/dto/rerank.go | 2 +- {new-api => heicode}/dto/sensitive.go | 0 {new-api => heicode}/dto/suno.go | 0 {new-api => heicode}/dto/task.go | 0 {new-api => heicode}/dto/user_settings.go | 0 {new-api => heicode}/dto/values.go | 0 {new-api => heicode}/dto/video.go | 0 {new-api => heicode}/electron/README.md | 10 +- {new-api => heicode}/electron/build.sh | 8 +- .../electron/create-tray-icon.js | 0 .../electron/entitlements.mac.plist | 0 {new-api => heicode}/electron/icon.png | Bin {new-api => heicode}/electron/main.js | 14 +-- .../electron/package-lock.json | 4 +- {new-api => heicode}/electron/package.json | 16 ++-- {new-api => heicode}/electron/preload.js | 0 .../electron/tray-icon-windows.png | Bin .../electron/tray-iconTemplate.png | Bin .../electron/tray-iconTemplate@2x.png | Bin {new-api => heicode}/go.mod | 2 +- {new-api => heicode}/go.sum | 0 heicode/heicode.service | 18 ++++ {new-api => heicode}/i18n/i18n.go | 6 +- {new-api => heicode}/i18n/keys.go | 0 {new-api => heicode}/i18n/locales/en.yaml | 0 {new-api => heicode}/i18n/locales/zh-CN.yaml | 0 {new-api => heicode}/i18n/locales/zh-TW.yaml | 0 {new-api => heicode}/logger/logger.go | 4 +- {new-api => heicode}/main.go | 28 +++--- {new-api => heicode}/makefile | 0 {new-api => heicode}/middleware/auth.go | 16 ++-- .../middleware/body_cleanup.go | 4 +- {new-api => heicode}/middleware/cache.go | 0 {new-api => heicode}/middleware/cors.go | 2 +- .../middleware/disable-cache.go | 0 .../middleware/distributor.go | 18 ++-- .../email-verification-rate-limit.go | 2 +- {new-api => heicode}/middleware/gzip.go | 2 +- {new-api => heicode}/middleware/i18n.go | 8 +- .../middleware/jimeng_adapter.go | 6 +- .../middleware/kling_adapter.go | 4 +- {new-api => heicode}/middleware/logger.go | 2 +- .../middleware/model-rate-limit.go | 8 +- .../middleware/performance.go | 4 +- {new-api => heicode}/middleware/rate-limit.go | 2 +- {new-api => heicode}/middleware/recover.go | 4 +- {new-api => heicode}/middleware/request-id.go | 2 +- .../middleware/secure_verification.go | 0 {new-api => heicode}/middleware/stats.go | 0 .../middleware/turnstile-check.go | 2 +- {new-api => heicode}/middleware/utils.go | 6 +- {new-api => heicode}/model/ability.go | 2 +- {new-api => heicode}/model/channel.go | 8 +- {new-api => heicode}/model/channel_cache.go | 6 +- {new-api => heicode}/model/channel_satisfy.go | 4 +- {new-api => heicode}/model/checkin.go | 4 +- .../model/custom_oauth_provider.go | 2 +- {new-api => heicode}/model/db_time.go | 2 +- {new-api => heicode}/model/errors.go | 0 {new-api => heicode}/model/log.go | 6 +- {new-api => heicode}/model/main.go | 4 +- {new-api => heicode}/model/midjourney.go | 0 {new-api => heicode}/model/missing_models.go | 0 {new-api => heicode}/model/model_extra.go | 0 {new-api => heicode}/model/model_meta.go | 2 +- {new-api => heicode}/model/option.go | 14 +-- {new-api => heicode}/model/passkey.go | 2 +- .../model/payment_method_guard_test.go | 2 +- {new-api => heicode}/model/prefill_group.go | 2 +- {new-api => heicode}/model/pricing.go | 10 +- {new-api => heicode}/model/pricing_default.go | 0 {new-api => heicode}/model/pricing_refresh.go | 0 {new-api => heicode}/model/redemption.go | 4 +- {new-api => heicode}/model/setup.go | 0 {new-api => heicode}/model/subscription.go | 8 +- {new-api => heicode}/model/task.go | 8 +- {new-api => heicode}/model/task_cas_test.go | 2 +- {new-api => heicode}/model/token.go | 4 +- {new-api => heicode}/model/token_cache.go | 4 +- {new-api => heicode}/model/topup.go | 4 +- {new-api => heicode}/model/twofa.go | 2 +- {new-api => heicode}/model/usedata.go | 2 +- {new-api => heicode}/model/user.go | 6 +- {new-api => heicode}/model/user_cache.go | 6 +- .../model/user_oauth_binding.go | 0 {new-api => heicode}/model/utils.go | 2 +- {new-api => heicode}/model/vendor_meta.go | 2 +- {new-api => heicode}/oauth/discord.go | 8 +- {new-api => heicode}/oauth/generic.go | 10 +- {new-api => heicode}/oauth/github.go | 8 +- {new-api => heicode}/oauth/linuxdo.go | 8 +- {new-api => heicode}/oauth/oidc.go | 8 +- {new-api => heicode}/oauth/provider.go | 2 +- {new-api => heicode}/oauth/registry.go | 4 +- {new-api => heicode}/oauth/types.go | 0 .../pkg/billingexpr/billingexpr_test.go | 2 +- .../pkg/billingexpr/compile.go | 0 {new-api => heicode}/pkg/billingexpr/expr.md | 0 {new-api => heicode}/pkg/billingexpr/round.go | 0 {new-api => heicode}/pkg/billingexpr/run.go | 0 .../pkg/billingexpr/settle.go | 0 {new-api => heicode}/pkg/billingexpr/types.go | 0 {new-api => heicode}/pkg/cachex/codec.go | 0 .../pkg/cachex/hybrid_cache.go | 0 {new-api => heicode}/pkg/cachex/namespace.go | 0 {new-api => heicode}/pkg/ionet/client.go | 0 {new-api => heicode}/pkg/ionet/container.go | 0 {new-api => heicode}/pkg/ionet/deployment.go | 0 {new-api => heicode}/pkg/ionet/hardware.go | 0 {new-api => heicode}/pkg/ionet/jsonutil.go | 0 {new-api => heicode}/pkg/ionet/types.go | 0 {new-api => heicode}/relay/audio_handler.go | 12 +-- {new-api => heicode}/relay/channel/adapter.go | 8 +- .../relay/channel/ai360/constants.go | 0 .../relay/channel/ali/adaptor.go | 20 ++-- .../relay/channel/ali/constants.go | 0 {new-api => heicode}/relay/channel/ali/dto.go | 6 +- .../relay/channel/ali/image.go | 12 +-- .../relay/channel/ali/image_wan.go | 6 +- .../relay/channel/ali/rerank.go | 8 +- .../relay/channel/ali/text.go | 2 +- .../relay/channel/api_request.go | 16 ++-- .../relay/channel/api_request_test.go | 2 +- .../relay/channel/aws/adaptor.go | 12 +-- .../relay/channel/aws/constants.go | 0 {new-api => heicode}/relay/channel/aws/dto.go | 6 +- .../relay/channel/aws/relay-aws.go | 18 ++-- .../relay/channel/aws/relay_aws_test.go | 4 +- .../relay/channel/baidu/adaptor.go | 10 +- .../relay/channel/baidu/constants.go | 0 .../relay/channel/baidu/dto.go | 2 +- .../relay/channel/baidu/relay-baidu.go | 14 +-- .../relay/channel/baidu_v2/adaptor.go | 12 +-- .../relay/channel/baidu_v2/constants.go | 0 .../relay/channel/claude/adaptor.go | 10 +- .../relay/channel/claude/constants.go | 0 .../relay/channel/claude/dto.go | 0 .../claude/message_delta_usage_patch_test.go | 6 +- .../relay/channel/claude/relay-claude.go | 24 ++--- .../relay/channel/claude/relay_claude_test.go | 2 +- .../relay/channel/cloudflare/adaptor.go | 12 +-- .../relay/channel/cloudflare/constant.go | 0 .../relay/channel/cloudflare/dto.go | 2 +- .../channel/cloudflare/relay_cloudflare.go | 12 +-- .../relay/channel/codex/adaptor.go | 14 +-- .../relay/channel/codex/constants.go | 2 +- .../relay/channel/codex/oauth_key.go | 2 +- .../relay/channel/cohere/adaptor.go | 10 +- .../relay/channel/cohere/constant.go | 0 .../relay/channel/cohere/dto.go | 2 +- .../relay/channel/cohere/relay-cohere.go | 12 +-- .../relay/channel/coze/adaptor.go | 8 +- .../relay/channel/coze/constants.go | 0 .../relay/channel/coze/dto.go | 0 .../relay/channel/coze/relay-coze.go | 12 +-- .../relay/channel/deepseek/adaptor.go | 18 ++-- .../relay/channel/deepseek/constants.go | 0 .../relay/channel/dify/adaptor.go | 8 +- .../relay/channel/dify/constants.go | 0 .../relay/channel/dify/dto.go | 2 +- .../relay/channel/dify/relay-dify.go | 14 +-- .../relay/channel/gemini/adaptor.go | 16 ++-- .../relay/channel/gemini/constant.go | 0 .../channel/gemini/relay-gemini-native.go | 16 ++-- .../relay/channel/gemini/relay-gemini.go | 22 ++--- .../channel/gemini/relay_gemini_usage_test.go | 10 +- .../relay/channel/jimeng/adaptor.go | 12 +-- .../relay/channel/jimeng/constants.go | 0 .../relay/channel/jimeng/image.go | 8 +- .../relay/channel/jimeng/sign.go | 2 +- .../relay/channel/jina/adaptor.go | 14 +-- .../relay/channel/jina/constant.go | 0 .../relay/channel/jina/relay-jina.go | 0 .../relay/channel/lingyiwanwu/constrants.go | 0 .../relay/channel/minimax/adaptor.go | 14 +-- .../relay/channel/minimax/adaptor_test.go | 6 +- .../relay/channel/minimax/constants.go | 0 .../relay/channel/minimax/image.go | 10 +- .../relay/channel/minimax/relay-minimax.go | 8 +- .../relay/channel/minimax/tts.go | 6 +- .../relay/channel/mistral/adaptor.go | 10 +- .../relay/channel/mistral/constants.go | 0 .../relay/channel/mistral/text.go | 4 +- .../relay/channel/mokaai/adaptor.go | 10 +- .../relay/channel/mokaai/constants.go | 0 .../relay/channel/mokaai/relay-mokaai.go | 10 +- .../relay/channel/moonshot/adaptor.go | 16 ++-- .../relay/channel/moonshot/constants.go | 0 .../relay/channel/ollama/adaptor.go | 12 +-- .../relay/channel/ollama/constants.go | 0 .../relay/channel/ollama/dto.go | 0 .../relay/channel/ollama/relay-ollama.go | 10 +- .../relay/channel/ollama/stream.go | 14 +-- .../relay/channel/openai/adaptor.go | 34 +++---- .../relay/channel/openai/audio.go | 16 ++-- .../channel/openai/chat_via_responses.go | 14 +-- .../relay/channel/openai/constant.go | 0 .../relay/channel/openai/helper.go | 16 ++-- .../relay/channel/openai/relay-openai.go | 18 ++-- .../relay/channel/openai/relay_responses.go | 14 +-- .../channel/openai/relay_responses_compact.go | 8 +- .../relay/channel/openrouter/constant.go | 0 .../relay/channel/openrouter/dto.go | 0 .../relay/channel/palm/adaptor.go | 10 +- .../relay/channel/palm/constants.go | 0 .../relay/channel/palm/dto.go | 2 +- .../relay/channel/palm/relay-palm.go | 14 +-- .../relay/channel/perplexity/adaptor.go | 12 +-- .../relay/channel/perplexity/constants.go | 0 .../channel/perplexity/relay-perplexity.go | 2 +- .../relay/channel/replicate/adaptor.go | 16 ++-- .../relay/channel/replicate/constants.go | 0 .../relay/channel/replicate/dto.go | 0 .../relay/channel/siliconflow/adaptor.go | 14 +-- .../relay/channel/siliconflow/constant.go | 0 .../relay/channel/siliconflow/dto.go | 2 +- .../channel/siliconflow/relay-siliconflow.go | 8 +- .../relay/channel/submodel/adaptor.go | 10 +- .../relay/channel/submodel/constants.go | 0 .../relay/channel/task/ali/adaptor.go | 16 ++-- .../relay/channel/task/ali/constants.go | 0 .../relay/channel/task/doubao/adaptor.go | 16 ++-- .../relay/channel/task/doubao/constants.go | 0 .../relay/channel/task/gemini/adaptor.go | 18 ++-- .../relay/channel/task/gemini/billing.go | 0 .../relay/channel/task/gemini/dto.go | 0 .../relay/channel/task/gemini/image.go | 4 +- .../relay/channel/task/hailuo/adaptor.go | 16 ++-- .../relay/channel/task/hailuo/constants.go | 0 .../relay/channel/task/hailuo/models.go | 0 .../relay/channel/task/jimeng/adaptor.go | 16 ++-- .../relay/channel/task/kling/adaptor.go | 16 ++-- .../relay/channel/task/sora/adaptor.go | 16 ++-- .../relay/channel/task/sora/constants.go | 0 .../relay/channel/task/suno/adaptor.go | 14 +-- .../relay/channel/task/suno/models.go | 0 .../relay/channel/task/taskcommon/helpers.go | 8 +- .../relay/channel/task/vertex/adaptor.go | 20 ++-- .../relay/channel/task/vidu/adaptor.go | 16 ++-- .../relay/channel/tencent/adaptor.go | 12 +-- .../relay/channel/tencent/constants.go | 0 .../relay/channel/tencent/dto.go | 0 .../relay/channel/tencent/relay-tencent.go | 14 +-- .../relay/channel/vertex/adaptor.go | 22 ++--- .../relay/channel/vertex/constants.go | 0 .../relay/channel/vertex/dto.go | 2 +- .../relay/channel/vertex/relay-vertex.go | 2 +- .../relay/channel/vertex/service_account.go | 4 +- .../relay/channel/volcengine/adaptor.go | 18 ++-- .../relay/channel/volcengine/constants.go | 0 .../relay/channel/volcengine/protocols.go | 0 .../relay/channel/volcengine/tts.go | 6 +- .../relay/channel/xai/adaptor.go | 12 +-- .../relay/channel/xai/constants.go | 0 {new-api => heicode}/relay/channel/xai/dto.go | 2 +- .../relay/channel/xai/text.go | 14 +-- .../relay/channel/xinference/constant.go | 0 .../relay/channel/xinference/dto.go | 0 .../relay/channel/xunfei/adaptor.go | 8 +- .../relay/channel/xunfei/constants.go | 0 .../relay/channel/xunfei/dto.go | 2 +- .../relay/channel/xunfei/relay-xunfei.go | 10 +- .../relay/channel/zhipu/adaptor.go | 8 +- .../relay/channel/zhipu/constants.go | 0 .../relay/channel/zhipu/dto.go | 2 +- .../relay/channel/zhipu/relay-zhipu.go | 14 +-- .../relay/channel/zhipu_4v/adaptor.go | 16 ++-- .../relay/channel/zhipu_4v/constants.go | 0 .../relay/channel/zhipu_4v/dto.go | 4 +- .../relay/channel/zhipu_4v/image.go | 12 +-- .../relay/channel/zhipu_4v/relay-zhipu_v4.go | 2 +- .../relay/chat_completions_via_responses.go | 18 ++-- {new-api => heicode}/relay/claude_handler.go | 18 ++-- {new-api => heicode}/relay/common/billing.go | 0 {new-api => heicode}/relay/common/override.go | 4 +- .../relay/common/override_test.go | 8 +- .../relay/common/relay_info.go | 14 +-- .../relay/common/relay_info_test.go | 2 +- .../relay/common/relay_utils.go | 6 +- .../relay/common/request_conversion.go | 4 +- .../relay/common/stream_status.go | 0 .../relay/common/stream_status_test.go | 0 .../relay/common_handler/rerank.go | 14 +-- .../relay/compatible_handler.go | 22 ++--- .../relay/constant/relay_mode.go | 0 .../relay/embedding_handler.go | 14 +-- {new-api => heicode}/relay/gemini_handler.go | 20 ++-- .../relay/helper/billing_expr_request.go | 8 +- .../relay/helper/billing_expr_request_test.go | 6 +- {new-api => heicode}/relay/helper/common.go | 8 +- .../relay/helper/model_mapped.go | 8 +- {new-api => heicode}/relay/helper/price.go | 18 ++-- .../relay/helper/price_test.go | 12 +-- .../relay/helper/stream_result.go | 2 +- .../relay/helper/stream_scanner.go | 10 +- .../relay/helper/stream_scanner_test.go | 6 +- .../relay/helper/valid_request.go | 10 +- {new-api => heicode}/relay/image_handler.go | 18 ++-- {new-api => heicode}/relay/mjproxy_handler.go | 20 ++-- .../relay/param_override_error.go | 4 +- .../relay/reasonmap/reasonmap.go | 2 +- {new-api => heicode}/relay/relay_adaptor.go | 88 +++++++++--------- {new-api => heicode}/relay/relay_task.go | 20 ++-- {new-api => heicode}/relay/rerank_handler.go | 14 +-- .../relay/responses_handler.go | 18 ++-- {new-api => heicode}/relay/websocket.go | 8 +- {new-api => heicode}/router/api-router.go | 6 +- {new-api => heicode}/router/dashboard.go | 4 +- {new-api => heicode}/router/heicode-router.go | 4 +- {new-api => heicode}/router/main.go | 4 +- {new-api => heicode}/router/relay-router.go | 10 +- {new-api => heicode}/router/video-router.go | 4 +- {new-api => heicode}/router/web-router.go | 6 +- {new-api => heicode}/service/audio.go | 0 {new-api => heicode}/service/billing.go | 6 +- .../service/billing_session.go | 10 +- {new-api => heicode}/service/channel.go | 10 +- .../service/channel_affinity.go | 14 +-- .../service/channel_affinity_template_test.go | 4 +- .../channel_affinity_usage_cache_test.go | 4 +- .../service/channel_select.go | 10 +- .../service/codex_credential_refresh.go | 6 +- .../service/codex_credential_refresh_task.go | 8 +- {new-api => heicode}/service/codex_oauth.go | 2 +- .../service/codex_wham_usage.go | 0 {new-api => heicode}/service/convert.go | 12 +-- {new-api => heicode}/service/download.go | 4 +- {new-api => heicode}/service/epay.go | 4 +- {new-api => heicode}/service/error.go | 8 +- {new-api => heicode}/service/error_test.go | 2 +- {new-api => heicode}/service/file_decoder.go | 6 +- {new-api => heicode}/service/file_service.go | 8 +- .../service/funding_source.go | 2 +- {new-api => heicode}/service/group.go | 4 +- {new-api => heicode}/service/http.go | 4 +- {new-api => heicode}/service/http_client.go | 4 +- {new-api => heicode}/service/image.go | 4 +- .../service/log_info_generate.go | 12 +-- {new-api => heicode}/service/midjourney.go | 10 +- {new-api => heicode}/service/notify-limit.go | 4 +- .../service/openai_chat_responses_compat.go | 4 +- .../service/openai_chat_responses_mode.go | 4 +- .../service/openaicompat/chat_to_responses.go | 4 +- .../service/openaicompat/policy.go | 2 +- .../service/openaicompat/regex.go | 0 .../service/openaicompat/responses_to_chat.go | 2 +- .../service/passkey/service.go | 4 +- .../service/passkey/session.go | 0 {new-api => heicode}/service/passkey/user.go | 2 +- .../service/pre_consume_quota.go | 10 +- {new-api => heicode}/service/quota.go | 20 ++-- {new-api => heicode}/service/sensitive.go | 4 +- {new-api => heicode}/service/str.go | 0 .../service/subscription_reset_task.go | 6 +- {new-api => heicode}/service/task.go | 2 +- {new-api => heicode}/service/task_billing.go | 12 +-- .../service/task_billing_test.go | 6 +- {new-api => heicode}/service/task_polling.go | 14 +-- {new-api => heicode}/service/text_quota.go | 18 ++-- .../service/text_quota_test.go | 10 +- {new-api => heicode}/service/tiered_settle.go | 6 +- .../service/tiered_settle_test.go | 6 +- {new-api => heicode}/service/token_counter.go | 12 +-- .../service/token_estimator.go | 0 {new-api => heicode}/service/tokenizer.go | 2 +- {new-api => heicode}/service/tool_billing.go | 4 +- {new-api => heicode}/service/usage_helpr.go | 6 +- {new-api => heicode}/service/user_notify.go | 8 +- {new-api => heicode}/service/violation_fee.go | 12 +-- {new-api => heicode}/service/waffo_pancake.go | 8 +- .../service/waffo_pancake_test.go | 6 +- {new-api => heicode}/service/webhook.go | 6 +- {new-api => heicode}/setting/auto_group.go | 2 +- .../setting/billing_setting/tiered_billing.go | 4 +- {new-api => heicode}/setting/chat.go | 2 +- {new-api => heicode}/setting/config/config.go | 2 +- .../setting/config/config_test.go | 0 .../setting/console_setting/config.go | 2 +- .../setting/console_setting/validation.go | 0 {new-api => heicode}/setting/midjourney.go | 0 .../setting/model_setting/claude.go | 2 +- .../setting/model_setting/claude_test.go | 0 .../setting/model_setting/gemini.go | 2 +- .../setting/model_setting/global.go | 2 +- .../setting/model_setting/grok.go | 2 +- .../setting/model_setting/qwen.go | 2 +- .../channel_affinity_setting.go | 2 +- .../operation_setting/checkin_setting.go | 2 +- .../operation_setting/general_setting.go | 2 +- .../operation_setting/monitor_setting.go | 2 +- .../operation_setting/operation_setting.go | 0 .../operation_setting/payment_setting.go | 2 +- .../operation_setting/payment_setting_old.go | 2 +- .../operation_setting/quota_setting.go | 2 +- .../operation_setting/status_code_ranges.go | 2 +- .../status_code_ranges_test.go | 0 .../operation_setting/token_setting.go | 2 +- .../setting/operation_setting/tools.go | 2 +- {new-api => heicode}/setting/payment_creem.go | 0 .../setting/payment_stripe.go | 0 {new-api => heicode}/setting/payment_waffo.go | 4 +- .../setting/payment_waffo_pancake.go | 0 .../setting/performance_setting/config.go | 4 +- {new-api => heicode}/setting/rate_limit.go | 2 +- .../setting/ratio_setting/cache_ratio.go | 2 +- .../setting/ratio_setting/compact_suffix.go | 0 .../setting/ratio_setting/expose_ratio.go | 0 .../setting/ratio_setting/exposed_cache.go | 0 .../setting/ratio_setting/group_ratio.go | 6 +- .../setting/ratio_setting/model_ratio.go | 6 +- .../setting/reasoning/suffix.go | 0 {new-api => heicode}/setting/sensitive.go | 0 .../setting/system_setting/discord.go | 2 +- .../setting/system_setting/fetch_setting.go | 2 +- .../setting/system_setting/legal.go | 2 +- .../setting/system_setting/oidc.go | 2 +- .../setting/system_setting/passkey.go | 4 +- .../system_setting/system_setting_old.go | 0 .../setting/system_setting/theme.go | 4 +- .../setting/user_usable_group.go | 2 +- {new-api => heicode}/types/channel_error.go | 0 {new-api => heicode}/types/error.go | 2 +- {new-api => heicode}/types/file_data.go | 0 {new-api => heicode}/types/file_source.go | 0 {new-api => heicode}/types/price_data.go | 0 {new-api => heicode}/types/relay_format.go | 0 {new-api => heicode}/types/request_meta.go | 0 {new-api => heicode}/types/rw_map.go | 2 +- {new-api => heicode}/types/set.go | 0 .../web/classic/.eslintrc.cjs | 0 {new-api => heicode}/web/classic/.gitignore | 0 .../web/classic/.prettierrc.mjs | 0 {new-api => heicode}/web/classic/bun.lock | 0 .../web/classic/i18next.config.js | 0 {new-api => heicode}/web/classic/index.html | 2 +- .../web/classic/jsconfig.json | 0 {new-api => heicode}/web/classic/package.json | 0 .../web/classic/postcss.config.js | 0 .../web/classic/public/azure_model_name.png | Bin .../web/classic/public/cover-4.webp | Bin .../web/classic/public/favicon.ico | Bin .../web/classic/public/logo.png | Bin .../web/classic/public/pay-apple.png | Bin .../web/classic/public/pay-card.png | Bin .../web/classic/public/pay-google.png | Bin .../web/classic/public/ratio.png | Bin .../web/classic/public/robots.txt | 0 {new-api => heicode}/web/classic/src/App.jsx | 0 .../classic/src/components/auth/LoginForm.jsx | 0 .../src/components/auth/OAuth2Callback.jsx | 0 .../components/auth/PasswordResetConfirm.jsx | 0 .../src/components/auth/PasswordResetForm.jsx | 0 .../src/components/auth/RegisterForm.jsx | 0 .../src/components/auth/TwoFAVerification.jsx | 0 .../common/DocumentRenderer/index.jsx | 0 .../src/components/common/ErrorBoundary.jsx | 0 .../common/examples/ChannelKeyViewExample.jsx | 0 .../components/common/logo/LinuxDoIcon.jsx | 0 .../src/components/common/logo/OIDCIcon.jsx | 0 .../src/components/common/logo/WeChatIcon.jsx | 0 .../common/markdown/MarkdownRenderer.jsx | 0 .../components/common/markdown/markdown.css | 0 .../modals/RiskAcknowledgementModal.jsx | 0 .../common/modals/SecureVerificationModal.jsx | 0 .../common/modals/TwoFactorAuthModal.jsx | 0 .../src/components/common/ui/CardPro.jsx | 0 .../src/components/common/ui/CardTable.jsx | 0 .../common/ui/ChannelKeyDisplay.jsx | 0 .../common/ui/CompactModeToggle.jsx | 0 .../src/components/common/ui/JSONEditor.jsx | 0 .../src/components/common/ui/Loading.jsx | 0 .../src/components/common/ui/RenderUtils.jsx | 0 .../common/ui/ScrollableContainer.jsx | 0 .../common/ui/SelectableButtonGroup.jsx | 0 .../dashboard/AnnouncementsPanel.jsx | 0 .../src/components/dashboard/ApiInfoPanel.jsx | 0 .../src/components/dashboard/ChartsPanel.jsx | 0 .../components/dashboard/DashboardHeader.jsx | 0 .../src/components/dashboard/FaqPanel.jsx | 0 .../src/components/dashboard/StatsCards.jsx | 0 .../src/components/dashboard/UptimePanel.jsx | 0 .../src/components/dashboard/index.jsx | 0 .../dashboard/modals/SearchModal.jsx | 0 .../classic/src/components/layout/Footer.jsx | 8 +- .../src/components/layout/NoticeModal.jsx | 0 .../src/components/layout/PageLayout.jsx | 0 .../src/components/layout/SetupCheck.js | 0 .../src/components/layout/SiderBar.jsx | 0 .../layout/components/SkeletonWrapper.jsx | 0 .../layout/headerbar/ActionButtons.jsx | 0 .../layout/headerbar/HeaderLogo.jsx | 0 .../layout/headerbar/LanguageSelector.jsx | 0 .../layout/headerbar/MobileMenuButton.jsx | 0 .../layout/headerbar/Navigation.jsx | 0 .../layout/headerbar/NewYearButton.jsx | 0 .../layout/headerbar/NotificationButton.jsx | 0 .../layout/headerbar/ThemeToggle.jsx | 0 .../components/layout/headerbar/UserArea.jsx | 0 .../src/components/layout/headerbar/index.jsx | 0 .../DeploymentAccessGuard.jsx | 0 .../src/components/playground/ChatArea.jsx | 0 .../src/components/playground/CodeViewer.jsx | 0 .../components/playground/ConfigManager.jsx | 0 .../playground/CustomInputRender.jsx | 0 .../playground/CustomRequestEditor.jsx | 0 .../src/components/playground/DebugPanel.jsx | 0 .../components/playground/FloatingButtons.jsx | 0 .../components/playground/ImageUrlInput.jsx | 0 .../components/playground/MessageActions.jsx | 0 .../components/playground/MessageContent.jsx | 0 .../playground/OptimizedComponents.js | 0 .../playground/ParameterControl.jsx | 0 .../src/components/playground/SSEViewer.jsx | 0 .../components/playground/SettingsPanel.jsx | 0 .../components/playground/ThinkingContent.jsx | 0 .../components/playground/configStorage.js | 0 .../src/components/playground/index.js | 0 .../settings/ChannelSelectorModal.jsx | 0 .../src/components/settings/ChatsSetting.jsx | 0 .../settings/CustomOAuthSetting.jsx | 0 .../components/settings/DashboardSetting.jsx | 0 .../components/settings/DrawingSetting.jsx | 0 .../settings/HttpStatusCodeRulesInput.jsx | 0 .../settings/ModelDeploymentSetting.jsx | 0 .../src/components/settings/ModelSetting.jsx | 0 .../components/settings/OperationSetting.jsx | 0 .../src/components/settings/OtherSetting.jsx | 8 +- .../components/settings/PaymentSetting.jsx | 0 .../settings/PerformanceSetting.jsx | 0 .../components/settings/PersonalSetting.jsx | 0 .../components/settings/RateLimitSetting.jsx | 0 .../src/components/settings/RatioSetting.jsx | 0 .../src/components/settings/SystemSetting.jsx | 6 +- .../personal/cards/AccountManagement.jsx | 0 .../personal/cards/CheckinCalendar.jsx | 0 .../settings/personal/cards/ModelsList.jsx | 0 .../personal/cards/NotificationSettings.jsx | 0 .../personal/cards/PreferencesSettings.jsx | 0 .../personal/components/TwoFASetting.jsx | 0 .../personal/components/UserInfoHeader.jsx | 0 .../personal/modals/AccountDeleteModal.jsx | 0 .../personal/modals/ChangePasswordModal.jsx | 0 .../personal/modals/EmailBindModal.jsx | 0 .../personal/modals/WeChatBindModal.jsx | 0 .../src/components/setup/SetupWizard.jsx | 0 .../setup/components/StepNavigation.jsx | 0 .../setup/components/steps/AdminStep.jsx | 0 .../setup/components/steps/CompleteStep.jsx | 0 .../setup/components/steps/DatabaseStep.jsx | 0 .../setup/components/steps/UsageModeStep.jsx | 0 .../classic/src/components/setup/index.jsx | 0 .../table/channels/ChannelsActions.jsx | 0 .../table/channels/ChannelsColumnDefs.jsx | 0 .../table/channels/ChannelsFilters.jsx | 0 .../table/channels/ChannelsTable.jsx | 0 .../table/channels/ChannelsTabs.jsx | 0 .../src/components/table/channels/index.jsx | 0 .../table/channels/modals/BatchTagModal.jsx | 0 .../modals/ChannelUpstreamUpdateModal.jsx | 0 .../table/channels/modals/CodexOAuthModal.jsx | 0 .../table/channels/modals/CodexUsageModal.jsx | 0 .../channels/modals/ColumnSelectorModal.jsx | 0 .../channels/modals/EditChannelModal.jsx | 2 +- .../table/channels/modals/EditTagModal.jsx | 0 .../channels/modals/ModelSelectModal.jsx | 0 .../table/channels/modals/ModelTestModal.jsx | 0 .../channels/modals/MultiKeyManageModal.jsx | 0 .../channels/modals/OllamaModelModal.jsx | 0 .../modals/ParamOverrideEditorModal.jsx | 0 .../modals/SingleModelSelectModal.jsx | 0 .../modals/StatusCodeRiskGuardModal.jsx | 0 .../channels/modals/statusCodeRiskGuard.js | 0 .../table/mj-logs/MjLogsActions.jsx | 0 .../table/mj-logs/MjLogsColumnDefs.jsx | 0 .../table/mj-logs/MjLogsFilters.jsx | 0 .../components/table/mj-logs/MjLogsTable.jsx | 0 .../src/components/table/mj-logs/index.jsx | 0 .../mj-logs/modals/ColumnSelectorModal.jsx | 0 .../table/mj-logs/modals/ContentModal.jsx | 0 .../model-deployments/DeploymentsActions.jsx | 0 .../DeploymentsColumnDefs.jsx | 0 .../model-deployments/DeploymentsFilters.jsx | 0 .../model-deployments/DeploymentsTable.jsx | 0 .../table/model-deployments/index.jsx | 0 .../modals/ColumnSelectorModal.jsx | 0 .../modals/ConfirmationDialog.jsx | 0 .../modals/CreateDeploymentModal.jsx | 0 .../modals/EditDeploymentModal.jsx | 0 .../modals/ExtendDurationModal.jsx | 0 .../modals/UpdateConfigModal.jsx | 0 .../modals/ViewDetailsModal.jsx | 0 .../modals/ViewLogsModal.jsx | 0 .../filter/PricingDisplaySettings.jsx | 0 .../filter/PricingEndpointTypes.jsx | 0 .../model-pricing/filter/PricingGroups.jsx | 0 .../filter/PricingQuotaTypes.jsx | 0 .../model-pricing/filter/PricingTags.jsx | 0 .../model-pricing/filter/PricingVendors.jsx | 0 .../model-pricing/layout/PricingPage.jsx | 0 .../model-pricing/layout/PricingSidebar.jsx | 0 .../layout/content/PricingContent.jsx | 0 .../layout/content/PricingView.jsx | 0 .../layout/header/PricingTopSection.jsx | 0 .../layout/header/PricingVendorIntro.jsx | 0 .../header/PricingVendorIntroSkeleton.jsx | 0 .../header/PricingVendorIntroWithSkeleton.jsx | 0 .../layout/header/SearchActions.jsx | 0 .../modal/ModelDetailSideSheet.jsx | 0 .../modal/PricingFilterModal.jsx | 0 .../components/DynamicPricingBreakdown.jsx | 0 .../modal/components/FilterModalContent.jsx | 0 .../modal/components/FilterModalFooter.jsx | 0 .../modal/components/ModelBasicInfo.jsx | 0 .../modal/components/ModelEndpoints.jsx | 0 .../modal/components/ModelHeader.jsx | 0 .../modal/components/ModelPricingTable.jsx | 0 .../view/card/PricingCardSkeleton.jsx | 0 .../view/card/PricingCardView.jsx | 0 .../model-pricing/view/table/PricingTable.jsx | 0 .../view/table/PricingTableColumns.jsx | 0 .../components/table/models/ModelsActions.jsx | 0 .../table/models/ModelsColumnDefs.jsx | 0 .../table/models/ModelsDescription.jsx | 0 .../components/table/models/ModelsFilters.jsx | 0 .../components/table/models/ModelsTable.jsx | 0 .../components/table/models/ModelsTabs.jsx | 0 .../components/SelectionNotification.jsx | 0 .../src/components/table/models/index.jsx | 0 .../table/models/modals/EditModelModal.jsx | 0 .../models/modals/EditPrefillGroupModal.jsx | 0 .../table/models/modals/EditVendorModal.jsx | 0 .../models/modals/MissingModelsModal.jsx | 0 .../models/modals/PrefillGroupManagement.jsx | 0 .../table/models/modals/SyncWizardModal.jsx | 0 .../models/modals/UpstreamConflictModal.jsx | 0 .../table/redemptions/RedemptionsActions.jsx | 0 .../redemptions/RedemptionsColumnDefs.jsx | 0 .../redemptions/RedemptionsDescription.jsx | 0 .../table/redemptions/RedemptionsFilters.jsx | 0 .../table/redemptions/RedemptionsTable.jsx | 0 .../components/table/redemptions/index.jsx | 0 .../modals/DeleteRedemptionModal.jsx | 0 .../modals/EditRedemptionModal.jsx | 0 .../subscriptions/SubscriptionsActions.jsx | 0 .../subscriptions/SubscriptionsColumnDefs.jsx | 0 .../SubscriptionsDescription.jsx | 0 .../subscriptions/SubscriptionsTable.jsx | 0 .../components/table/subscriptions/index.jsx | 0 .../modals/AddEditSubscriptionModal.jsx | 0 .../table/task-logs/TaskLogsActions.jsx | 0 .../table/task-logs/TaskLogsColumnDefs.jsx | 0 .../table/task-logs/TaskLogsFilters.jsx | 0 .../table/task-logs/TaskLogsTable.jsx | 0 .../src/components/table/task-logs/index.jsx | 0 .../task-logs/modals/AudioPreviewModal.jsx | 0 .../task-logs/modals/ColumnSelectorModal.jsx | 0 .../table/task-logs/modals/ContentModal.jsx | 0 .../components/table/tokens/TokensActions.jsx | 0 .../table/tokens/TokensColumnDefs.jsx | 0 .../table/tokens/TokensDescription.jsx | 0 .../components/table/tokens/TokensFilters.jsx | 0 .../components/table/tokens/TokensTable.jsx | 0 .../src/components/table/tokens/index.jsx | 10 +- .../table/tokens/modals/CCSwitchModal.jsx | 0 .../table/tokens/modals/CopyTokensModal.jsx | 0 .../table/tokens/modals/DeleteTokensModal.jsx | 0 .../table/tokens/modals/EditTokenModal.jsx | 0 .../table/usage-logs/UsageLogsActions.jsx | 0 .../table/usage-logs/UsageLogsColumnDefs.jsx | 0 .../table/usage-logs/UsageLogsFilters.jsx | 0 .../table/usage-logs/UsageLogsTable.jsx | 0 .../components/ParamOverrideEntry.jsx | 0 .../src/components/table/usage-logs/index.jsx | 0 .../modals/ChannelAffinityUsageCacheModal.jsx | 0 .../usage-logs/modals/ColumnSelectorModal.jsx | 0 .../usage-logs/modals/ParamOverrideModal.jsx | 0 .../table/usage-logs/modals/UserInfoModal.jsx | 0 .../components/table/users/UsersActions.jsx | 0 .../table/users/UsersColumnDefs.jsx | 0 .../table/users/UsersDescription.jsx | 0 .../components/table/users/UsersFilters.jsx | 0 .../src/components/table/users/UsersTable.jsx | 0 .../src/components/table/users/index.jsx | 0 .../table/users/modals/AddUserModal.jsx | 0 .../table/users/modals/DeleteUserModal.jsx | 0 .../table/users/modals/DemoteUserModal.jsx | 0 .../table/users/modals/EditUserModal.jsx | 0 .../users/modals/EnableDisableUserModal.jsx | 0 .../table/users/modals/PromoteUserModal.jsx | 0 .../table/users/modals/ResetPasskeyModal.jsx | 0 .../table/users/modals/ResetTwoFAModal.jsx | 0 .../modals/UserBindingManagementModal.jsx | 0 .../users/modals/UserSubscriptionsModal.jsx | 0 .../src/components/topup/InvitationCard.jsx | 0 .../src/components/topup/RechargeCard.jsx | 0 .../topup/SubscriptionPlansCard.jsx | 0 .../classic/src/components/topup/index.jsx | 0 .../topup/modals/PaymentConfirmModal.jsx | 0 .../modals/SubscriptionPurchaseModal.jsx | 0 .../topup/modals/TopupHistoryModal.jsx | 0 .../components/topup/modals/TransferModal.jsx | 0 .../src/constants/billing.constants.js | 0 .../channel-affinity-template.constants.js | 0 .../src/constants/channel.constants.js | 0 .../classic/src/constants/common.constant.js | 0 .../src/constants/console.constants.js | 0 .../src/constants/dashboard.constants.js | 0 .../web/classic/src/constants/index.js | 0 .../src/constants/playground.constants.js | 0 .../src/constants/redemption.constants.js | 0 .../classic/src/constants/toast.constants.js | 0 .../classic/src/constants/user.constants.js | 0 .../web/classic/src/context/Status/index.jsx | 0 .../web/classic/src/context/Status/reducer.js | 0 .../web/classic/src/context/Theme/index.jsx | 0 .../web/classic/src/context/User/index.jsx | 0 .../web/classic/src/context/User/reducer.js | 0 .../src/contexts/PlaygroundContext.jsx | 0 .../web/classic/src/helpers/api.js | 0 .../web/classic/src/helpers/auth.jsx | 0 .../web/classic/src/helpers/base64.js | 0 .../web/classic/src/helpers/boolean.js | 0 .../web/classic/src/helpers/dashboard.jsx | 0 .../web/classic/src/helpers/data.js | 0 .../web/classic/src/helpers/history.js | 0 .../web/classic/src/helpers/index.js | 0 .../web/classic/src/helpers/log.js | 0 .../web/classic/src/helpers/passkey.js | 0 .../web/classic/src/helpers/quota.js | 0 .../web/classic/src/helpers/render.jsx | 0 .../web/classic/src/helpers/secureApiCall.js | 0 .../classic/src/helpers/statusCodeRules.js | 0 .../classic/src/helpers/subscriptionFormat.js | 0 .../web/classic/src/helpers/token.js | 0 .../web/classic/src/helpers/utils.jsx | 0 .../src/hooks/channels/upstreamUpdateUtils.js | 0 .../channels/useChannelUpstreamUpdates.jsx | 0 .../src/hooks/channels/useChannelsData.jsx | 0 .../classic/src/hooks/chat/useTokenKeys.js | 0 .../src/hooks/common/useContainerWidth.js | 0 .../classic/src/hooks/common/useHeaderBar.js | 0 .../classic/src/hooks/common/useIsMobile.js | 0 .../src/hooks/common/useMinimumLoadingTime.js | 0 .../classic/src/hooks/common/useNavigation.js | 0 .../src/hooks/common/useNotifications.js | 0 .../hooks/common/useSecureVerification.jsx | 0 .../classic/src/hooks/common/useSidebar.js | 0 .../src/hooks/common/useSidebarCollapsed.js | 0 .../src/hooks/common/useTableCompactMode.js | 0 .../src/hooks/common/useUserPermissions.js | 0 .../hooks/dashboard/useDashboardCharts.jsx | 0 .../src/hooks/dashboard/useDashboardData.js | 0 .../src/hooks/dashboard/useDashboardStats.jsx | 0 .../src/hooks/mj-logs/useMjLogsData.js | 0 .../useDeploymentResources.js | 0 .../model-deployments/useDeploymentsData.jsx | 0 .../useEnhancedDeploymentActions.jsx | 0 .../useModelDeploymentSettings.js | 0 .../model-pricing/useModelPricingData.jsx | 0 .../model-pricing/usePricingFilterCounts.js | 0 .../src/hooks/models/useModelsData.jsx | 0 .../src/hooks/playground/useApiRequest.jsx | 0 .../src/hooks/playground/useDataLoader.js | 0 .../hooks/playground/useMessageActions.jsx | 0 .../src/hooks/playground/useMessageEdit.jsx | 0 .../hooks/playground/usePlaygroundState.js | 0 .../playground/useSyncMessageAndCustomBody.js | 0 .../hooks/redemptions/useRedemptionsData.jsx | 0 .../subscriptions/useSubscriptionsData.jsx | 0 .../src/hooks/task-logs/useTaskLogsData.js | 0 .../src/hooks/tokens/useTokensData.jsx | 4 +- .../src/hooks/usage-logs/useUsageLogsData.jsx | 0 .../classic/src/hooks/users/useUsersData.jsx | 0 .../web/classic/src/i18n/i18n.js | 0 .../web/classic/src/i18n/language.js | 0 .../web/classic/src/i18n/locales/en.json | 8 +- .../web/classic/src/i18n/locales/fr.json | 10 +- .../web/classic/src/i18n/locales/ja.json | 8 +- .../web/classic/src/i18n/locales/ru.json | 10 +- .../web/classic/src/i18n/locales/vi.json | 8 +- .../web/classic/src/i18n/locales/zh-CN.json | 10 +- .../web/classic/src/i18n/locales/zh-TW.json | 10 +- .../web/classic/src/i18n/locales/zh.json | 8 +- .../web/classic/src/index.css | 0 .../web/classic/src/index.jsx | 2 +- .../web/classic/src/pages/About/index.jsx | 6 +- .../web/classic/src/pages/Channel/index.jsx | 0 .../web/classic/src/pages/Chat/index.jsx | 0 .../web/classic/src/pages/Chat2Link/index.jsx | 0 .../web/classic/src/pages/Dashboard/index.jsx | 0 .../web/classic/src/pages/Forbidden/index.jsx | 0 .../web/classic/src/pages/Home/index.jsx | 2 +- .../web/classic/src/pages/Log/index.jsx | 0 .../classic/src/pages/Midjourney/index.jsx | 0 .../web/classic/src/pages/Model/index.jsx | 0 .../src/pages/ModelDeployment/index.jsx | 0 .../web/classic/src/pages/NotFound/index.jsx | 0 .../classic/src/pages/Playground/index.jsx | 0 .../web/classic/src/pages/Pricing/index.jsx | 0 .../classic/src/pages/PrivacyPolicy/index.jsx | 0 .../classic/src/pages/Redemption/index.jsx | 0 .../src/pages/Setting/Chat/SettingsChats.jsx | 0 .../Setting/Dashboard/SettingsAPIInfo.jsx | 0 .../Dashboard/SettingsAnnouncements.jsx | 0 .../Dashboard/SettingsDataDashboard.jsx | 0 .../pages/Setting/Dashboard/SettingsFAQ.jsx | 0 .../Setting/Dashboard/SettingsUptimeKuma.jsx | 0 .../pages/Setting/Drawing/SettingsDrawing.jsx | 0 .../Setting/Model/SettingClaudeModel.jsx | 0 .../Setting/Model/SettingGeminiModel.jsx | 0 .../Setting/Model/SettingGlobalModel.jsx | 0 .../pages/Setting/Model/SettingGrokModel.jsx | 0 .../Setting/Model/SettingModelDeployment.jsx | 0 .../Operation/SettingsChannelAffinity.jsx | 0 .../Setting/Operation/SettingsCheckin.jsx | 0 .../Setting/Operation/SettingsCreditLimit.jsx | 0 .../Setting/Operation/SettingsGeneral.jsx | 0 .../Operation/SettingsHeaderNavModules.jsx | 0 .../pages/Setting/Operation/SettingsLog.jsx | 0 .../Setting/Operation/SettingsMonitoring.jsx | 0 .../Operation/SettingsSensitiveWords.jsx | 0 .../Operation/SettingsSidebarModulesAdmin.jsx | 0 .../Payment/SettingsGeneralPayment.jsx | 0 .../Payment/SettingsPaymentGateway.jsx | 0 .../Payment/SettingsPaymentGatewayCreem.jsx | 2 +- .../Payment/SettingsPaymentGatewayStripe.jsx | 0 .../Payment/SettingsPaymentGatewayWaffo.jsx | 0 .../SettingsPaymentGatewayWaffoPancake.jsx | 0 .../Performance/SettingsPerformance.jsx | 2 +- .../Personal/SettingsSidebarModulesUser.jsx | 0 .../RateLimit/SettingsRequestRateLimit.jsx | 0 .../Setting/Ratio/GroupRatioSettings.jsx | 0 .../Setting/Ratio/ModelPricingCombined.jsx | 0 .../Setting/Ratio/ModelRatioSettings.jsx | 0 .../Setting/Ratio/ModelRationNotSetEditor.jsx | 0 .../Ratio/ModelSettingsVisualEditor.jsx | 0 .../pages/Setting/Ratio/ToolPriceSettings.jsx | 0 .../pages/Setting/Ratio/UpstreamRatioSync.jsx | 0 .../Ratio/components/AutoGroupList.jsx | 0 .../Ratio/components/GroupGroupRatioRules.jsx | 0 .../components/GroupSpecialUsableRules.jsx | 0 .../Setting/Ratio/components/GroupTable.jsx | 0 .../Ratio/components/ModelPricingEditor.jsx | 0 .../Ratio/components/TieredPricingEditor.jsx | 0 .../Ratio/components/requestRuleExpr.js | 0 .../Ratio/hooks/useModelPricingEditorState.js | 0 .../web/classic/src/pages/Setting/index.jsx | 0 .../web/classic/src/pages/Setup/index.jsx | 0 .../classic/src/pages/Subscription/index.jsx | 0 .../web/classic/src/pages/Task/index.jsx | 0 .../web/classic/src/pages/Token/index.jsx | 0 .../web/classic/src/pages/TopUp/index.js | 0 .../web/classic/src/pages/User/index.jsx | 0 .../classic/src/pages/UserAgreement/index.jsx | 0 .../src/services/secureVerification.js | 0 .../web/classic/tailwind.config.js | 0 {new-api => heicode}/web/classic/vercel.json | 0 .../web/classic/vite.config.js | 0 {new-api => heicode}/web/default/.gitignore | 0 .../web/default/.node-version | 0 {new-api => heicode}/web/default/.npmrc | 0 .../web/default/.prettierignore | 0 {new-api => heicode}/web/default/.prettierrc | 0 {new-api => heicode}/web/default/AGENTS.md | 0 {new-api => heicode}/web/default/bun.lock | 0 .../web/default/components.json | 0 {new-api => heicode}/web/default/cz.yaml | 0 .../web/default/eslint.config.js | 0 {new-api => heicode}/web/default/index.html | 0 .../web/default/knip.config.ts | 0 {new-api => heicode}/web/default/netlify.toml | 0 {new-api => heicode}/web/default/package.json | 0 .../web/default/postcss.config.mjs | 0 .../web/default/public/favicon.ico | Bin .../web/default/public/heicode-logo.svg | 0 .../web/default/public/logo.png | Bin .../web/default/public/pay-apple.png | Bin .../web/default/public/pay-card.png | Bin .../web/default/public/pay-google.png | Bin .../web/default/rsbuild.config.ts | 0 .../web/default/scripts/sync-i18n.mjs | 0 .../src/assets/brand-icons/icon-discord.tsx | 0 .../src/assets/brand-icons/icon-docker.tsx | 0 .../src/assets/brand-icons/icon-facebook.tsx | 0 .../src/assets/brand-icons/icon-figma.tsx | 0 .../src/assets/brand-icons/icon-gitlab.tsx | 0 .../src/assets/brand-icons/icon-gmail.tsx | 0 .../src/assets/brand-icons/icon-linuxdo.tsx | 0 .../src/assets/brand-icons/icon-medium.tsx | 0 .../src/assets/brand-icons/icon-notion.tsx | 0 .../src/assets/brand-icons/icon-skype.tsx | 0 .../src/assets/brand-icons/icon-slack.tsx | 0 .../src/assets/brand-icons/icon-stripe.tsx | 0 .../src/assets/brand-icons/icon-telegram.tsx | 0 .../src/assets/brand-icons/icon-trello.tsx | 0 .../src/assets/brand-icons/icon-wechat.tsx | 0 .../src/assets/brand-icons/icon-whatsapp.tsx | 0 .../src/assets/brand-icons/icon-zoom.tsx | 0 .../default/src/assets/brand-icons/index.ts | 0 .../default/src/assets/clerk-full-logo.tsx | 0 .../web/default/src/assets/clerk-logo.tsx | 0 .../default/src/assets/custom/icon-dir.tsx | 0 .../src/assets/custom/icon-layout-compact.tsx | 0 .../src/assets/custom/icon-layout-default.tsx | 0 .../src/assets/custom/icon-layout-full.tsx | 0 .../assets/custom/icon-sidebar-floating.tsx | 0 .../src/assets/custom/icon-sidebar-inset.tsx | 0 .../assets/custom/icon-sidebar-sidebar.tsx | 0 .../src/assets/custom/icon-theme-dark.tsx | 0 .../src/assets/custom/icon-theme-light.tsx | 0 .../src/assets/custom/icon-theme-system.tsx | 0 .../web/default/src/assets/logo.tsx | 0 .../src/components/ai-elements/actions.tsx | 0 .../src/components/ai-elements/artifact.tsx | 0 .../src/components/ai-elements/branch.tsx | 0 .../src/components/ai-elements/canvas.tsx | 0 .../ai-elements/chain-of-thought.tsx | 0 .../src/components/ai-elements/code-block.tsx | 0 .../components/ai-elements/confirmation.tsx | 0 .../src/components/ai-elements/connection.tsx | 0 .../src/components/ai-elements/context.tsx | 0 .../src/components/ai-elements/controls.tsx | 0 .../components/ai-elements/conversation.tsx | 0 .../src/components/ai-elements/edge.tsx | 0 .../src/components/ai-elements/image.tsx | 0 .../ai-elements/inline-citation.tsx | 0 .../src/components/ai-elements/loader.tsx | 0 .../src/components/ai-elements/message.tsx | 0 .../src/components/ai-elements/node.tsx | 0 .../components/ai-elements/open-in-chat.tsx | 0 .../src/components/ai-elements/panel.tsx | 0 .../src/components/ai-elements/plan.tsx | 0 .../components/ai-elements/prompt-input.tsx | 0 .../src/components/ai-elements/queue.tsx | 0 .../src/components/ai-elements/reasoning.tsx | 0 .../src/components/ai-elements/response.tsx | 0 .../src/components/ai-elements/shimmer.tsx | 0 .../src/components/ai-elements/sources.tsx | 0 .../src/components/ai-elements/suggestion.tsx | 0 .../src/components/ai-elements/task.tsx | 0 .../src/components/ai-elements/tool.tsx | 0 .../src/components/ai-elements/toolbar.tsx | 0 .../components/ai-elements/web-preview.tsx | 0 .../src/components/animate-in-view.tsx | 0 .../default/src/components/auto-skeleton.tsx | 0 .../default/src/components/coming-soon.tsx | 0 .../default/src/components/command-menu.tsx | 0 .../default/src/components/config-drawer.tsx | 0 .../default/src/components/confirm-dialog.tsx | 0 .../default/src/components/copy-button.tsx | 0 .../components/data-table/bulk-actions.tsx | 0 .../components/data-table/column-header.tsx | 0 .../components/data-table/faceted-filter.tsx | 0 .../src/components/data-table/index.ts | 0 .../data-table/mobile-card-list.tsx | 0 .../src/components/data-table/pagination.tsx | 0 .../src/components/data-table/table-empty.tsx | 0 .../components/data-table/table-skeleton.tsx | 0 .../src/components/data-table/toolbar.tsx | 0 .../components/data-table/view-options.tsx | 0 .../default/src/components/date-picker.tsx | 0 .../src/components/datetime-picker.tsx | 0 .../default/src/components/empty-state.tsx | 0 .../default/src/components/error-state.tsx | 0 .../default/src/components/json-editor.tsx | 0 .../src/components/language-switcher.tsx | 0 .../layout/components/app-header.tsx | 0 .../layout/components/app-sidebar.tsx | 0 .../components/authenticated-layout.tsx | 0 .../layout/components/chat-presets-item.tsx | 0 .../components/layout/components/footer.tsx | 0 .../src/components/layout/components/glow.tsx | 0 .../layout/components/header-logo.tsx | 0 .../components/layout/components/header.tsx | 0 .../src/components/layout/components/logo.tsx | 0 .../src/components/layout/components/main.tsx | 0 .../layout/components/mobile-drawer.tsx | 0 .../components/layout/components/mockup.tsx | 0 .../layout/components/nav-group.tsx | 0 .../layout/components/nav-link-item.tsx | 0 .../components/layout/components/navbar.tsx | 0 .../layout/components/page-footer.tsx | 0 .../layout/components/public-header.tsx | 0 .../layout/components/public-layout.tsx | 0 .../layout/components/public-navigation.tsx | 0 .../layout/components/section-page-layout.tsx | 0 .../components/layout/components/section.tsx | 0 .../layout/components/tenant-bar.tsx | 0 .../components/layout/components/top-nav.tsx | 0 .../layout/components/workspace-switcher.tsx | 0 .../layout/config/system-settings.config.ts | 0 .../layout/config/top-nav.config.ts | 0 .../src/components/layout/constants.ts | 0 .../layout/context/workspace-context.tsx | 0 .../default/src/components/layout/index.ts | 0 .../src/components/layout/lib/url-utils.ts | 0 .../layout/lib/workspace-registry.example.ts | 0 .../layout/lib/workspace-registry.ts | 0 .../default/src/components/layout/types.ts | 0 .../web/default/src/components/learn-more.tsx | 0 .../default/src/components/loading-state.tsx | 0 .../web/default/src/components/long-text.tsx | 0 .../src/components/masked-value-display.tsx | 0 .../src/components/model-group-selector.tsx | 0 .../default/src/components/multi-select.tsx | 0 .../src/components/navigation-progress.tsx | 0 .../src/components/notification-button.tsx | 0 .../src/components/notification-dialog.tsx | 0 .../src/components/page-transition.tsx | 0 .../default/src/components/password-input.tsx | 0 .../src/components/profile-dropdown.tsx | 0 .../web/default/src/components/search.tsx | 0 .../src/components/select-dropdown.tsx | 0 .../src/components/sign-out-dialog.tsx | 0 .../default/src/components/skip-to-main.tsx | 0 .../default/src/components/state-shell.tsx | 0 .../default/src/components/status-badge.tsx | 0 .../web/default/src/components/tag-input.tsx | 0 .../src/components/theme-quick-switcher.tsx | 0 .../default/src/components/theme-switch.tsx | 0 .../web/default/src/components/turnstile.tsx | 0 .../default/src/components/ui/accordion.tsx | 0 .../src/components/ui/alert-dialog.tsx | 0 .../web/default/src/components/ui/alert.tsx | 0 .../web/default/src/components/ui/avatar.tsx | 0 .../web/default/src/components/ui/badge.tsx | 0 .../web/default/src/components/ui/button.tsx | 0 .../default/src/components/ui/calendar.tsx | 0 .../web/default/src/components/ui/card.tsx | 0 .../default/src/components/ui/carousel.tsx | 0 .../default/src/components/ui/checkbox.tsx | 0 .../default/src/components/ui/collapsible.tsx | 0 .../src/components/ui/combobox-input.tsx | 0 .../default/src/components/ui/combobox.tsx | 0 .../web/default/src/components/ui/command.tsx | 0 .../web/default/src/components/ui/dialog.tsx | 0 .../web/default/src/components/ui/drawer.tsx | 0 .../src/components/ui/dropdown-menu.tsx | 0 .../web/default/src/components/ui/empty.tsx | 0 .../web/default/src/components/ui/form.tsx | 0 .../default/src/components/ui/hover-card.tsx | 0 .../default/src/components/ui/input-group.tsx | 0 .../default/src/components/ui/input-otp.tsx | 0 .../web/default/src/components/ui/input.tsx | 0 .../web/default/src/components/ui/label.tsx | 0 .../default/src/components/ui/markdown.tsx | 0 .../web/default/src/components/ui/popover.tsx | 0 .../default/src/components/ui/progress.tsx | 0 .../default/src/components/ui/radio-group.tsx | 0 .../default/src/components/ui/scroll-area.tsx | 0 .../web/default/src/components/ui/select.tsx | 0 .../default/src/components/ui/separator.tsx | 0 .../web/default/src/components/ui/sheet.tsx | 0 .../web/default/src/components/ui/sidebar.tsx | 0 .../default/src/components/ui/skeleton.tsx | 0 .../web/default/src/components/ui/sonner.tsx | 0 .../web/default/src/components/ui/switch.tsx | 0 .../web/default/src/components/ui/table.tsx | 0 .../web/default/src/components/ui/tabs.tsx | 0 .../default/src/components/ui/textarea.tsx | 0 .../web/default/src/components/ui/tooltip.tsx | 0 .../web/default/src/config/fonts.ts | 0 .../src/context/direction-provider.tsx | 0 .../web/default/src/context/font-provider.tsx | 0 .../default/src/context/layout-provider.tsx | 0 .../default/src/context/search-provider.tsx | 0 .../default/src/context/theme-provider.tsx | 0 {new-api => heicode}/web/default/src/env.d.ts | 0 .../web/default/src/features/about/api.ts | 0 .../web/default/src/features/about/index.tsx | 0 .../web/default/src/features/about/types.ts | 0 .../default/src/features/agnet-console/api.ts | 0 .../src/features/agnet-console/pages.tsx | 0 .../default/src/features/agnet-hub/index.tsx | 0 .../web/default/src/features/auth/api.ts | 7 ++ .../default/src/features/auth/auth-layout.tsx | 0 .../auth/components/legal-consent.tsx | 0 .../auth/components/oauth-callback-screen.tsx | 0 .../auth/components/oauth-providers.tsx | 0 .../features/auth/components/terms-footer.tsx | 0 .../default/src/features/auth/constants.ts | 0 .../components/forgot-password-form.tsx | 0 .../features/auth/forgot-password/index.tsx | 0 .../auth/heicode-authenticated-session.ts | 17 ++++ .../features/auth/hooks/use-auth-redirect.ts | 4 + .../auth/hooks/use-email-verification.ts | 0 .../features/auth/hooks/use-oauth-login.ts | 0 .../src/features/auth/hooks/use-turnstile.ts | 0 .../web/default/src/features/auth/index.ts | 0 .../default/src/features/auth/lib/oauth.ts | 0 .../default/src/features/auth/lib/storage.ts | 0 .../src/features/auth/lib/validation.ts | 0 .../features/auth/otp/components/otp-form.tsx | 0 .../default/src/features/auth/otp/index.tsx | 0 .../default/src/features/auth/passkey/api.ts | 0 .../passkey/hooks/use-passkey-management.ts | 0 .../src/features/auth/passkey/index.ts | 0 .../src/features/auth/passkey/types.ts | 0 .../auth/reset-password-confirm/index.tsx | 0 .../features/auth/secure-verification/api.ts | 0 .../components/secure-verification-dialog.tsx | 0 .../hooks/use-secure-verification.ts | 0 .../auth/secure-verification/index.ts | 0 .../auth/secure-verification/types.ts | 0 .../sign-in/components/user-auth-form.tsx | 0 .../src/features/auth/sign-in/index.tsx | 0 .../auth/sign-up/components/sign-up-form.tsx | 0 .../src/features/auth/sign-up/index.tsx | 0 .../web/default/src/features/auth/types.ts | 0 .../web/default/src/features/channels/api.ts | 0 .../channels/components/channels-columns.tsx | 0 .../channels/components/channels-dialogs.tsx | 0 .../components/channels-primary-buttons.tsx | 0 .../channels/components/channels-provider.tsx | 0 .../channels/components/channels-table.tsx | 0 .../components/data-table-bulk-actions.tsx | 0 .../components/data-table-row-actions.tsx | 0 .../components/data-table-tag-row-actions.tsx | 0 .../dialogs/balance-query-dialog.tsx | 0 .../dialogs/channel-test-dialog.tsx | 0 .../components/dialogs/codex-oauth-dialog.tsx | 0 .../components/dialogs/codex-usage-dialog.tsx | 0 .../dialogs/copy-channel-dialog.tsx | 0 .../components/dialogs/edit-tag-dialog.tsx | 0 .../dialogs/fetch-models-dialog.tsx | 0 .../missing-models-confirmation-dialog.tsx | 0 .../dialogs/multi-key-manage-dialog.tsx | 0 .../dialogs/multi-key-statistics-card.tsx | 0 .../dialogs/multi-key-table-row-actions.tsx | 0 .../dialogs/ollama-models-dialog.tsx | 0 .../dialogs/status-code-risk-dialog.tsx | 0 .../dialogs/tag-batch-edit-dialog.tsx | 0 .../dialogs/upstream-update-dialog.tsx | 0 .../drawers/channel-mutate-drawer.tsx | 0 .../components/model-mapping-editor.tsx | 0 .../components/numeric-spinner-input.tsx | 0 .../src/features/channels/constants.ts | 0 .../hooks/use-channel-upstream-updates.ts | 0 .../default/src/features/channels/index.tsx | 0 .../features/channels/lib/channel-actions.ts | 0 .../src/features/channels/lib/channel-form.ts | 0 .../channels/lib/channel-type-config.ts | 0 .../features/channels/lib/channel-utils.ts | 0 .../src/features/channels/lib/index.ts | 0 .../channels/lib/model-mapping-validation.ts | 0 .../features/channels/lib/multi-key-utils.ts | 0 .../src/features/channels/lib/ollama-utils.ts | 0 .../channels/lib/status-code-risk-guard.ts | 0 .../channels/lib/upstream-update-utils.ts | 0 .../default/src/features/channels/types.ts | 0 .../chat/hooks/use-active-chat-key.ts | 0 .../features/chat/hooks/use-chat-presets.ts | 0 .../src/features/chat/lib/chat-links.ts | 4 +- .../src/features/chat/lib/send-to-fluent.ts | 4 +- .../web/default/src/features/dashboard/api.ts | 0 .../dashboard/components/cockpit/index.tsx | 0 .../models/consumption-distribution-chart.tsx | 0 .../components/models/log-stat-cards.tsx | 0 .../components/models/model-charts.tsx | 0 .../models/models-filter-dialog.tsx | 0 .../overview/announcement-detail-dialog.tsx | 0 .../overview/announcements-panel.tsx | 0 .../components/overview/api-info-item.tsx | 0 .../components/overview/api-info-panel.tsx | 0 .../components/overview/faq-panel.tsx | 0 .../components/overview/summary-cards.tsx | 0 .../components/overview/uptime-panel.tsx | 0 .../dashboard/components/ui/panel-wrapper.tsx | 0 .../dashboard/components/ui/stat-card.tsx | 0 .../components/users/user-charts.tsx | 0 .../src/features/dashboard/constants.ts | 0 .../dashboard/hooks/use-dashboard-config.tsx | 0 .../dashboard/hooks/use-status-data.ts | 0 .../default/src/features/dashboard/index.tsx | 0 .../src/features/dashboard/lib/api-info.ts | 0 .../src/features/dashboard/lib/charts.ts | 0 .../src/features/dashboard/lib/filters.ts | 0 .../src/features/dashboard/lib/index.ts | 0 .../src/features/dashboard/lib/stats.ts | 0 .../src/features/dashboard/lib/text.ts | 0 .../features/dashboard/section-registry.tsx | 0 .../default/src/features/dashboard/types.ts | 0 .../default/src/features/errors/forbidden.tsx | 0 .../src/features/errors/general-error.tsx | 0 .../src/features/errors/maintenance-error.tsx | 0 .../src/features/errors/not-found-error.tsx | 0 .../features/errors/unauthorized-error.tsx | 0 .../web/default/src/features/home/api.ts | 0 .../home/components/connection-line.tsx | 0 .../features/home/components/feature-item.tsx | 0 .../features/home/components/gateway-card.tsx | 0 .../features/home/components/hero-buttons.tsx | 0 .../home/components/hero-terminal-demo.tsx | 0 .../features/home/components/icon-card.tsx | 0 .../src/features/home/components/index.ts | 0 .../home/components/scrolling-icons.tsx | 0 .../features/home/components/sections/cta.tsx | 0 .../home/components/sections/features.tsx | 0 .../home/components/sections/hero.tsx | 0 .../home/components/sections/how-it-works.tsx | 0 .../home/components/sections/stats.tsx | 0 .../features/home/components/stat-item.tsx | 0 .../default/src/features/home/constants.ts | 0 .../default/src/features/home/hooks/index.ts | 0 .../home/hooks/use-home-page-content.ts | 0 .../web/default/src/features/home/index.tsx | 0 .../src/features/home/lib/icon-mapper.tsx | 0 .../web/default/src/features/home/types.ts | 0 .../web/default/src/features/keys/api.ts | 0 .../components/api-key-group-combobox.tsx | 0 .../keys/components/api-keys-cells.tsx | 0 .../keys/components/api-keys-columns.tsx | 0 .../components/api-keys-delete-dialog.tsx | 0 .../keys/components/api-keys-dialogs.tsx | 0 .../api-keys-multi-delete-dialog.tsx | 0 .../components/api-keys-mutate-drawer.tsx | 0 .../components/api-keys-primary-buttons.tsx | 0 .../keys/components/api-keys-provider.tsx | 0 .../keys/components/api-keys-table.tsx | 0 .../components/data-table-bulk-actions.tsx | 0 .../components/data-table-row-actions.tsx | 0 .../components/dialogs/cc-switch-dialog.tsx | 0 .../default/src/features/keys/constants.ts | 0 .../web/default/src/features/keys/index.tsx | 0 .../src/features/keys/lib/api-key-form.ts | 0 .../default/src/features/keys/lib/index.ts | 0 .../web/default/src/features/keys/types.ts | 0 .../web/default/src/features/legal/api.ts | 0 .../web/default/src/features/legal/index.ts | 0 .../src/features/legal/legal-document.tsx | 0 .../src/features/legal/privacy-policy.tsx | 0 .../web/default/src/features/legal/types.ts | 0 .../src/features/legal/user-agreement.tsx | 0 .../web/default/src/features/models/api.ts | 0 .../components/data-table-bulk-actions.tsx | 0 .../components/data-table-row-actions.tsx | 0 .../components/deployment-access-guard.tsx | 0 .../models/components/deployments-columns.tsx | 0 .../models/components/deployments-table.tsx | 0 .../models/components/description-cell.tsx | 0 .../dialogs/create-deployment-drawer.tsx | 0 .../components/dialogs/description-dialog.tsx | 0 .../dialogs/extend-deployment-dialog.tsx | 0 .../dialogs/missing-models-dialog.tsx | 0 .../prefill-group-management-dialog.tsx | 0 .../dialogs/prefill-group-management.tsx | 0 .../dialogs/rename-deployment-dialog.tsx | 0 .../components/dialogs/sync-wizard-dialog.tsx | 0 .../dialogs/update-config-dialog.tsx | 0 .../dialogs/upstream-conflict-dialog.tsx | 0 .../dialogs/vendor-mutate-dialog.tsx | 0 .../dialogs/view-details-dialog.tsx | 0 .../components/dialogs/view-logs-dialog.tsx | 0 .../drawers/model-mutate-drawer.tsx | 0 .../drawers/prefill-group-form-drawer.tsx | 0 .../models/components/models-columns.tsx | 0 .../models/components/models-dialogs.tsx | 0 .../components/models-primary-buttons.tsx | 0 .../models/components/models-provider.tsx | 0 .../models/components/models-table.tsx | 0 .../models/components/prefill-group-shared.ts | 0 .../default/src/features/models/constants.ts | 0 .../hooks/use-model-deployment-settings.ts | 0 .../web/default/src/features/models/index.tsx | 0 .../features/models/lib/deployments-utils.ts | 0 .../default/src/features/models/lib/index.ts | 0 .../src/features/models/lib/model-actions.ts | 0 .../src/features/models/lib/model-form.ts | 0 .../src/features/models/lib/model-utils.ts | 0 .../src/features/models/lib/query-keys.ts | 0 .../src/features/models/lib/vendor-actions.ts | 0 .../src/features/models/section-registry.tsx | 0 .../web/default/src/features/models/types.ts | 0 .../default/src/features/playground/api.ts | 0 .../components/message-action-button.tsx | 0 .../playground/components/message-actions.tsx | 0 .../playground/components/message-error.tsx | 0 .../playground/components/playground-chat.tsx | 0 .../components/playground-input.tsx | 0 .../src/features/playground/constants.ts | 0 .../src/features/playground/hooks/index.ts | 0 .../playground/hooks/use-chat-handler.ts | 0 .../hooks/use-message-action-guard.ts | 0 .../playground/hooks/use-playground-state.ts | 0 .../playground/hooks/use-stream-request.ts | 0 .../default/src/features/playground/index.tsx | 0 .../src/features/playground/lib/index.ts | 0 .../features/playground/lib/message-styles.ts | 0 .../features/playground/lib/message-utils.ts | 0 .../playground/lib/payload-builder.ts | 0 .../src/features/playground/lib/storage.ts | 0 .../default/src/features/playground/types.ts | 0 .../web/default/src/features/pricing/api.ts | 0 .../components/dynamic-pricing-breakdown.tsx | 0 .../pricing/components/empty-state.tsx | 0 .../pricing/components/filter-bar.tsx | 0 .../src/features/pricing/components/index.ts | 0 .../pricing/components/loading-skeleton.tsx | 0 .../pricing/components/model-details.tsx | 0 .../features/pricing/components/model-row.tsx | 0 .../pricing/components/pricing-columns.tsx | 0 .../pricing/components/pricing-table.tsx | 0 .../pricing/components/search-bar.tsx | 0 .../pricing/components/virtual-model-list.tsx | 0 .../default/src/features/pricing/constants.ts | 0 .../src/features/pricing/hooks/index.ts | 0 .../src/features/pricing/hooks/use-filters.ts | 0 .../pricing/hooks/use-pricing-data.ts | 0 .../default/src/features/pricing/index.tsx | 0 .../src/features/pricing/lib/billing-expr.ts | 0 .../src/features/pricing/lib/filters.ts | 0 .../default/src/features/pricing/lib/index.ts | 0 .../src/features/pricing/lib/model-helpers.ts | 0 .../default/src/features/pricing/lib/price.ts | 0 .../src/features/pricing/lib/tier-expr.ts | 0 .../web/default/src/features/pricing/types.ts | 0 .../web/default/src/features/profile/api.ts | 0 .../components/checkin-calendar-card.tsx | 0 .../dialogs/access-token-dialog.tsx | 0 .../dialogs/change-password-dialog.tsx | 0 .../dialogs/delete-account-dialog.tsx | 0 .../components/dialogs/email-bind-dialog.tsx | 0 .../dialogs/telegram-bind-dialog.tsx | 0 .../dialogs/two-fa-backup-dialog.tsx | 0 .../dialogs/two-fa-disable-dialog.tsx | 0 .../dialogs/two-fa-setup-dialog.tsx | 0 .../components/dialogs/wechat-bind-dialog.tsx | 0 .../profile/components/passkey-card.tsx | 0 .../profile/components/profile-header.tsx | 0 .../components/profile-security-card.tsx | 0 .../components/profile-settings-card.tsx | 0 .../components/sidebar-modules-card.tsx | 0 .../components/tabs/account-bindings-tab.tsx | 0 .../components/tabs/notification-tab.tsx | 0 .../profile/components/two-fa-card.tsx | 0 .../default/src/features/profile/constants.ts | 0 .../src/features/profile/hooks/index.ts | 0 .../profile/hooks/use-access-token.ts | 0 .../src/features/profile/hooks/use-profile.ts | 0 .../src/features/profile/hooks/use-two-fa.ts | 0 .../default/src/features/profile/index.tsx | 0 .../src/features/profile/lib/format.ts | 0 .../default/src/features/profile/lib/index.ts | 0 .../web/default/src/features/profile/types.ts | 0 .../src/features/redemption-codes/api.ts | 0 .../components/data-table-bulk-actions.tsx | 0 .../components/data-table-row-actions.tsx | 0 .../components/redemptions-columns.tsx | 0 .../components/redemptions-delete-dialog.tsx | 0 .../components/redemptions-dialogs.tsx | 0 .../components/redemptions-mutate-drawer.tsx | 0 .../redemptions-primary-buttons.tsx | 0 .../components/redemptions-provider.tsx | 0 .../components/redemptions-table.tsx | 0 .../features/redemption-codes/constants.ts | 0 .../src/features/redemption-codes/index.tsx | 0 .../features/redemption-codes/lib/index.ts | 0 .../redemption-codes/lib/redemption-form.ts | 0 .../features/redemption-codes/lib/utils.ts | 0 .../src/features/redemption-codes/types.ts | 0 .../web/default/src/features/setup/api.ts | 0 .../features/setup/components/admin-step.tsx | 0 .../setup/components/complete-step.tsx | 0 .../setup/components/database-step.tsx | 0 .../setup/components/step-navigation.tsx | 0 .../setup/components/usage-mode-step.tsx | 0 .../web/default/src/features/setup/index.ts | 0 .../src/features/setup/setup-wizard.tsx | 0 .../web/default/src/features/setup/types.ts | 0 .../default/src/features/subscriptions/api.ts | 0 .../components/data-table-row-actions.tsx | 0 .../dialogs/subscription-purchase-dialog.tsx | 0 .../dialogs/toggle-status-dialog.tsx | 0 .../dialogs/user-subscriptions-dialog.tsx | 0 .../components/subscriptions-columns.tsx | 0 .../components/subscriptions-dialogs.tsx | 0 .../subscriptions-mutate-drawer.tsx | 0 .../subscriptions-primary-buttons.tsx | 0 .../components/subscriptions-provider.tsx | 0 .../components/subscriptions-table.tsx | 0 .../src/features/subscriptions/constants.ts | 0 .../src/features/subscriptions/index.tsx | 0 .../src/features/subscriptions/lib/format.ts | 0 .../src/features/subscriptions/lib/index.ts | 0 .../features/subscriptions/lib/plan-form.ts | 0 .../src/features/subscriptions/types.ts | 0 .../src/features/system-settings/api.ts | 0 .../auth/basic-auth-section.tsx | 0 .../auth/bot-protection-section.tsx | 0 .../system-settings/auth/custom-oauth/api.ts | 0 .../components/discovery-button.tsx | 0 .../components/preset-selector.tsx | 0 .../components/provider-form-dialog.tsx | 0 .../components/provider-table.tsx | 0 .../custom-oauth/custom-oauth-section.tsx | 0 .../hooks/use-custom-oauth-mutations.ts | 0 .../hooks/use-custom-oauth-providers.ts | 0 .../auth/custom-oauth/types.ts | 0 .../features/system-settings/auth/index.tsx | 0 .../system-settings/auth/oauth-section.tsx | 0 .../system-settings/auth/passkey-section.tsx | 0 .../system-settings/auth/section-registry.tsx | 0 .../components/form-dirty-indicator.tsx | 0 .../components/form-navigation-guard.tsx | 0 .../components/settings-accordion.tsx | 0 .../components/settings-card.tsx | 0 .../components/settings-page.tsx | 0 .../components/settings-section.tsx | 0 .../content/announcements-section.tsx | 0 .../content/api-info-section.tsx | 0 .../system-settings/content/chat-dialog.tsx | 0 .../content/chat-settings-section.tsx | 0 .../content/chat-settings-visual-editor.tsx | 0 .../content/dashboard-section.tsx | 0 .../content/drawing-settings-section.tsx | 0 .../system-settings/content/faq-section.tsx | 0 .../system-settings/content/index.tsx | 0 .../content/json-toggle-section.tsx | 0 .../content/section-registry.tsx | 0 .../content/uptime-kuma-section.tsx | 0 .../features/system-settings/content/utils.ts | 0 .../general/channel-affinity/api.ts | 0 .../channel-affinity/cache-stats-dialog.tsx | 0 .../general/channel-affinity/constants.ts | 0 .../general/channel-affinity/index.tsx | 0 .../channel-affinity/rule-editor-dialog.tsx | 0 .../general/channel-affinity/types.ts | 0 .../general/checkin-settings-section.tsx | 0 .../system-settings/general/index.tsx | 0 .../general/pricing-section.tsx | 0 .../general/quota-settings-section.tsx | 0 .../general/section-registry.tsx | 0 .../general/system-behavior-section.tsx | 0 .../general/system-info-section.tsx | 0 .../hooks/use-accordion-state.ts | 0 .../hooks/use-form-dirty-guard.ts | 0 .../system-settings/hooks/use-reset-form.ts | 0 .../hooks/use-safe-json-state.ts | 0 .../hooks/use-settings-form.ts | 0 .../hooks/use-system-options.ts | 0 .../hooks/use-update-option.ts | 0 .../src/features/system-settings/index.tsx | 0 .../integrations/amount-discount-dialog.tsx | 0 .../amount-discount-visual-editor.tsx | 0 .../amount-options-visual-editor.tsx | 0 .../integrations/creem-product-dialog.tsx | 0 .../creem-products-visual-editor.tsx | 0 .../integrations/email-settings-section.tsx | 0 .../system-settings/integrations/index.tsx | 0 .../ionet-deployment-settings-section.tsx | 0 .../monitoring-settings-section.tsx | 0 .../integrations/payment-method-dialog.tsx | 0 .../payment-methods-visual-editor.tsx | 0 .../integrations/payment-settings-section.tsx | 0 .../integrations/section-registry.tsx | 0 .../system-settings/integrations/utils.ts | 0 .../waffo-pancake-settings-section.tsx | 0 .../integrations/waffo-settings-section.tsx | 0 .../integrations/worker-settings-section.tsx | 0 .../system-settings/maintenance/config.ts | 0 .../maintenance/header-navigation-section.tsx | 0 .../system-settings/maintenance/index.tsx | 0 .../maintenance/log-settings-section.tsx | 0 .../maintenance/notice-section.tsx | 0 .../maintenance/performance-section.tsx | 0 .../maintenance/section-registry.tsx | 0 .../maintenance/sidebar-modules-section.tsx | 0 .../maintenance/update-checker-section.tsx | 4 +- .../models/channel-selector-dialog.tsx | 0 .../models/claude-settings-card.tsx | 0 .../models/conflict-confirm-dialog.tsx | 0 .../system-settings/models/constants.ts | 0 .../models/gemini-settings-card.tsx | 0 .../models/global-settings-card.tsx | 0 .../models/grok-settings-card.tsx | 0 .../models/group-ratio-form.tsx | 0 .../models/group-ratio-visual-editor.tsx | 0 .../models/group-special-usable-editor.tsx | 0 .../features/system-settings/models/index.tsx | 0 .../models/model-ratio-dialog.tsx | 0 .../models/model-ratio-form.tsx | 0 .../models/model-ratio-visual-editor.tsx | 0 .../models/ratio-settings-card.tsx | 0 .../models/section-registry.tsx | 0 .../models/tiered-pricing-editor.tsx | 0 .../models/tool-price-settings.tsx | 0 .../models/upstream-ratio-sync-columns.tsx | 0 .../models/upstream-ratio-sync-helpers.ts | 0 .../models/upstream-ratio-sync-table.tsx | 0 .../models/upstream-ratio-sync.tsx | 0 .../features/system-settings/models/utils.ts | 0 .../system-settings/request-limits/index.tsx | 0 .../request-limits/rate-limit-dialog.tsx | 0 .../request-limits/rate-limit-section.tsx | 0 .../rate-limit-visual-editor.tsx | 0 .../request-limits/section-registry.tsx | 0 .../sensitive-words-section.tsx | 0 .../request-limits/ssrf-section.tsx | 0 .../src/features/system-settings/types.ts | 0 .../system-settings/utils/json-parser.ts | 0 .../system-settings/utils/json-validators.ts | 0 .../system-settings/utils/route-config.ts | 0 .../system-settings/utils/section-registry.ts | 0 .../default/src/features/usage-logs/api.ts | 0 .../components/columns/column-helpers.tsx | 0 .../columns/common-logs-columns.tsx | 0 .../columns/drawing-logs-columns.tsx | 0 .../components/columns/task-logs-columns.tsx | 0 .../components/common-logs-filter-bar.tsx | 0 .../components/common-logs-stats.tsx | 0 .../compact-date-time-range-picker.tsx | 0 .../dialogs/audio-preview-dialog.tsx | 0 .../components/dialogs/details-dialog.tsx | 0 .../components/dialogs/fail-reason-dialog.tsx | 0 .../components/dialogs/filter-components.tsx | 0 .../components/dialogs/image-dialog.tsx | 0 .../components/dialogs/prompt-dialog.tsx | 0 .../dialogs/usage-logs-filter-dialog.tsx | 0 .../components/dialogs/user-info-dialog.tsx | 0 .../usage-logs/components/model-badge.tsx | 0 .../components/usage-logs-primary-buttons.tsx | 0 .../components/usage-logs-provider.tsx | 0 .../components/usage-logs-table.tsx | 0 .../src/features/usage-logs/constants.ts | 0 .../default/src/features/usage-logs/index.tsx | 0 .../features/usage-logs/lib/avatar-color.ts | 0 .../src/features/usage-logs/lib/columns.ts | 0 .../src/features/usage-logs/lib/filter.ts | 0 .../src/features/usage-logs/lib/format.ts | 0 .../src/features/usage-logs/lib/index.ts | 0 .../src/features/usage-logs/lib/mappers.ts | 0 .../src/features/usage-logs/lib/status.ts | 0 .../src/features/usage-logs/lib/utils.ts | 0 .../features/usage-logs/section-registry.tsx | 0 .../default/src/features/usage-logs/types.ts | 0 .../web/default/src/features/users/api.ts | 0 .../components/data-table-bulk-actions.tsx | 0 .../components/data-table-row-actions.tsx | 0 .../dialogs/user-binding-dialog.tsx | 0 .../users/components/user-quota-dialog.tsx | 0 .../users/components/users-columns.tsx | 0 .../users/components/users-delete-dialog.tsx | 0 .../users/components/users-mutate-drawer.tsx | 0 .../components/users-primary-buttons.tsx | 0 .../users/components/users-provider.tsx | 0 .../features/users/components/users-table.tsx | 0 .../default/src/features/users/constants.ts | 0 .../web/default/src/features/users/index.tsx | 0 .../default/src/features/users/lib/index.ts | 0 .../src/features/users/lib/user-actions.ts | 0 .../src/features/users/lib/user-form.ts | 0 .../web/default/src/features/users/types.ts | 0 .../web/default/src/features/wallet/api.ts | 0 .../components/affiliate-rewards-card.tsx | 0 .../components/creem-products-section.tsx | 0 .../dialogs/billing-history-dialog.tsx | 0 .../dialogs/creem-confirm-dialog.tsx | 0 .../dialogs/payment-confirm-dialog.tsx | 0 .../components/dialogs/transfer-dialog.tsx | 0 .../wallet/components/recharge-form-card.tsx | 0 .../components/subscription-plans-card.tsx | 0 .../wallet/components/wallet-stats-card.tsx | 0 .../default/src/features/wallet/constants.ts | 0 .../src/features/wallet/hooks/index.ts | 0 .../features/wallet/hooks/use-affiliate.ts | 0 .../wallet/hooks/use-billing-history.ts | 0 .../wallet/hooks/use-creem-payment.ts | 0 .../src/features/wallet/hooks/use-payment.ts | 0 .../features/wallet/hooks/use-redemption.ts | 0 .../features/wallet/hooks/use-topup-info.ts | 0 .../wallet/hooks/use-waffo-pancake-payment.ts | 0 .../wallet/hooks/use-waffo-payment.ts | 0 .../web/default/src/features/wallet/index.tsx | 0 .../src/features/wallet/lib/affiliate.ts | 0 .../src/features/wallet/lib/billing.ts | 0 .../default/src/features/wallet/lib/format.ts | 0 .../default/src/features/wallet/lib/index.ts | 0 .../src/features/wallet/lib/payment.ts | 0 .../default/src/features/wallet/lib/ui.tsx | 0 .../web/default/src/features/wallet/types.ts | 0 .../web/default/src/hooks/index.ts | 0 .../web/default/src/hooks/use-admin.ts | 0 .../src/hooks/use-copy-to-clipboard.ts | 0 .../web/default/src/hooks/use-countdown.ts | 0 .../web/default/src/hooks/use-debounce.ts | 0 .../web/default/src/hooks/use-dialog.ts | 0 .../src/hooks/use-hidden-click-unlock.ts | 0 .../web/default/src/hooks/use-media-query.ts | 0 .../src/hooks/use-minimum-loading-time.ts | 0 .../web/default/src/hooks/use-mobile.tsx | 0 .../default/src/hooks/use-notifications.ts | 0 .../default/src/hooks/use-sidebar-config.ts | 0 .../web/default/src/hooks/use-sidebar-data.ts | 0 .../web/default/src/hooks/use-status.ts | 0 .../default/src/hooks/use-system-config.ts | 0 .../src/hooks/use-table-compact-mode.ts | 0 .../default/src/hooks/use-table-url-state.ts | 0 .../default/src/hooks/use-top-nav-links.ts | 0 .../web/default/src/hooks/use-user-display.ts | 0 .../web/default/src/i18n/config.ts | 0 .../i18n/locales/_reports/_sync-report.json | 0 .../locales/_reports/fr.untranslated.json | 0 .../locales/_reports/ja.untranslated.json | 2 +- .../locales/_reports/ru.untranslated.json | 2 +- .../locales/_reports/vi.untranslated.json | 0 .../locales/_reports/zh.untranslated.json | 2 +- .../web/default/src/i18n/locales/en.json | 2 +- .../web/default/src/i18n/locales/fr.json | 2 +- .../web/default/src/i18n/locales/ja.json | 2 +- .../web/default/src/i18n/locales/ru.json | 2 +- .../web/default/src/i18n/locales/vi.json | 2 +- .../web/default/src/i18n/locales/zh.json | 2 +- .../web/default/src/i18n/static-keys.ts | 0 .../web/default/src/lib/api.ts | 0 .../web/default/src/lib/brand.ts | 0 .../web/default/src/lib/colors.ts | 0 .../web/default/src/lib/constants.ts | 0 .../web/default/src/lib/cookies.ts | 0 .../web/default/src/lib/copy-to-clipboard.ts | 0 .../web/default/src/lib/currency.ts | 0 .../web/default/src/lib/dayjs.ts | 0 .../web/default/src/lib/dom-utils.ts | 0 .../web/default/src/lib/format.ts | 0 .../default/src/lib/handle-server-error.ts | 0 .../default/src/lib/http-status-code-rules.ts | 0 .../web/default/src/lib/lobe-icon.tsx | 0 .../web/default/src/lib/motion.ts | 0 .../web/default/src/lib/oauth.ts | 0 .../web/default/src/lib/passkey.ts | 0 .../web/default/src/lib/roles.ts | 0 .../default/src/lib/secure-verification.ts | 0 .../default/src/lib/show-submitted-data.tsx | 0 .../web/default/src/lib/time.ts | 0 .../web/default/src/lib/utils.ts | 0 .../web/default/src/lib/vchart.ts | 0 {new-api => heicode}/web/default/src/main.tsx | 2 + .../web/default/src/routeTree.gen.ts | 0 .../src/routes/(auth)/forgot-password.tsx | 0 .../web/default/src/routes/(auth)/oauth.tsx | 0 .../web/default/src/routes/(auth)/otp.tsx | 0 .../web/default/src/routes/(auth)/reset.tsx | 0 .../web/default/src/routes/(auth)/route.tsx | 0 .../web/default/src/routes/(auth)/sign-in.tsx | 0 .../web/default/src/routes/(auth)/sign-up.tsx | 0 .../default/src/routes/(auth)/user/reset.tsx | 0 .../web/default/src/routes/(errors)/401.tsx | 0 .../web/default/src/routes/(errors)/403.tsx | 0 .../web/default/src/routes/(errors)/404.tsx | 0 .../web/default/src/routes/(errors)/500.tsx | 0 .../web/default/src/routes/(errors)/503.tsx | 0 .../web/default/src/routes/__root.tsx | 0 .../routes/_authenticated/agents/index.tsx | 0 .../src/routes/_authenticated/audit/index.tsx | 0 .../routes/_authenticated/channels/index.tsx | 0 .../routes/_authenticated/chat/$chatId.tsx | 0 .../src/routes/_authenticated/chat2link.tsx | 0 .../_authenticated/dashboard/$section.tsx | 0 .../routes/_authenticated/dashboard/index.tsx | 0 .../_authenticated/deployments/index.tsx | 0 .../routes/_authenticated/errors/$error.tsx | 0 .../routes/_authenticated/events/index.tsx | 0 .../src/routes/_authenticated/keys/index.tsx | 0 .../routes/_authenticated/models/$section.tsx | 0 .../routes/_authenticated/models/index.tsx | 0 .../_authenticated/playground/index.tsx | 0 .../routes/_authenticated/profile/index.tsx | 0 .../_authenticated/redemption-codes/index.tsx | 0 .../src/routes/_authenticated/route.tsx | 58 ++++++++++++ .../_authenticated/sk-sources/index.tsx | 0 .../_authenticated/subscriptions/index.tsx | 0 .../system-settings/auth/$section.tsx | 0 .../system-settings/auth/index.tsx | 0 .../system-settings/content/$section.tsx | 0 .../system-settings/content/index.tsx | 0 .../system-settings/general/$section.tsx | 0 .../system-settings/general/index.tsx | 0 .../_authenticated/system-settings/index.tsx | 0 .../system-settings/integrations/$section.tsx | 0 .../system-settings/integrations/index.tsx | 0 .../system-settings/maintenance/$section.tsx | 0 .../system-settings/maintenance/index.tsx | 0 .../system-settings/models/$section.tsx | 0 .../system-settings/models/index.tsx | 0 .../request-limits/$section.tsx | 0 .../system-settings/request-limits/index.tsx | 0 .../_authenticated/system-settings/route.tsx | 0 .../routes/_authenticated/templates/index.tsx | 0 .../_authenticated/usage-logs/$section.tsx | 0 .../_authenticated/usage-logs/index.tsx | 0 .../src/routes/_authenticated/users/index.tsx | 0 .../routes/_authenticated/wallet/index.tsx | 0 .../web/default/src/routes/about/index.tsx | 0 .../web/default/src/routes/index.tsx | 0 .../default/src/routes/oauth/$provider.tsx | 0 .../src/routes/pricing/$modelId/index.tsx | 0 .../web/default/src/routes/pricing/index.tsx | 0 .../web/default/src/routes/privacy-policy.tsx | 0 .../web/default/src/routes/setup/index.tsx | 0 .../web/default/src/routes/user-agreement.tsx | 0 .../web/default/src/stores/auth-store.ts | 0 .../default/src/stores/notification-store.ts | 0 .../default/src/stores/system-config-store.ts | 0 .../web/default/src/styles/index.css | 0 .../web/default/src/styles/theme.css | 0 .../web/default/src/styles/tokens.css | 0 .../web/default/src/tanstack-table.d.ts | 0 .../web/default/tsconfig.app.json | 0 .../web/default/tsconfig.json | 0 .../web/default/tsconfig.node.json | 0 new-api/new-api.service | 18 ---- .../src/routes/_authenticated/route.tsx | 38 -------- 1941 files changed, 2170 insertions(+), 2056 deletions(-) rename {new-api => heicode}/.agents/skills/classic-to-default-sync/SKILL.md (100%) rename {new-api => heicode}/.agents/skills/i18n-translate/SKILL.md (100%) rename {new-api => heicode}/.agents/skills/vercel-react-best-practices/AGENTS.md (100%) rename {new-api => heicode}/.check_pg.sh (100%) rename {new-api => heicode}/.dockerignore (100%) rename {new-api => heicode}/.env.example (98%) rename {new-api => heicode}/.gitattributes (100%) rename {new-api => heicode}/.github/CODE_OF_CONDUCT.md (100%) rename {new-api => heicode}/.github/ISSUE_TEMPLATE/bug_report.md (99%) rename {new-api => heicode}/.github/ISSUE_TEMPLATE/bug_report_en.md (94%) rename {new-api => heicode}/.github/ISSUE_TEMPLATE/config.yml (87%) rename {new-api => heicode}/.github/ISSUE_TEMPLATE/feature_request.md (99%) rename {new-api => heicode}/.github/ISSUE_TEMPLATE/feature_request_en.md (94%) rename {new-api => heicode}/.github/PULL_REQUEST_TEMPLATE.md (92%) rename {new-api => heicode}/.github/SECURITY.md (98%) rename {new-api => heicode}/.github/workflows/docker-build.yml (85%) rename {new-api => heicode}/.github/workflows/docker-image-alpha.yml (90%) rename {new-api => heicode}/.github/workflows/docker-image-nightly.yml (86%) rename {new-api => heicode}/.github/workflows/electron-build.yml (93%) rename {new-api => heicode}/.github/workflows/pr-check.yml (100%) rename {new-api => heicode}/.github/workflows/release.yml (86%) rename {new-api => heicode}/.github/workflows/sync-to-gitee.yml (95%) rename {new-api => heicode}/.gitignore (97%) rename {new-api => heicode}/.retry_pg.sh (100%) rename {new-api => heicode}/AGENTS.md (99%) rename {new-api => heicode}/CLAUDE.md (99%) rename {new-api => heicode}/Dockerfile (88%) rename {new-api => heicode}/Dockerfile.dev (84%) rename {new-api => heicode}/LICENSE (100%) rename {new-api => heicode}/README.en.md (89%) rename {new-api => heicode}/README.fr.md (90%) rename {new-api => heicode}/README.ja.md (90%) rename {new-api => heicode}/README.md (89%) rename {new-api => heicode}/README.sync-conflict-20260430-014104-GVADS2N.md (84%) rename {new-api => heicode}/README.zh_CN.md (89%) rename {new-api => heicode}/README.zh_TW.md (89%) rename {new-api => heicode}/VERSION (100%) rename {new-api => heicode}/bin/acceptance_agnet_local.sh (98%) rename {new-api => heicode}/bin/azure_vm_deploy.sh (82%) rename {new-api => heicode}/bin/migration_v0.2-v0.3.sql (100%) rename {new-api => heicode}/bin/migration_v0.3-v0.4.sql (100%) rename {new-api => heicode}/bin/time_test.sh (100%) rename {new-api => heicode}/common/api_type.go (98%) rename {new-api => heicode}/common/audio.go (100%) rename {new-api => heicode}/common/body_storage.go (100%) rename {new-api => heicode}/common/constants.go (100%) rename {new-api => heicode}/common/copy.go (100%) rename {new-api => heicode}/common/crypto.go (100%) rename {new-api => heicode}/common/custom-event.go (100%) rename {new-api => heicode}/common/database.go (100%) rename {new-api => heicode}/common/disk_cache.go (99%) rename {new-api => heicode}/common/disk_cache_config.go (100%) rename {new-api => heicode}/common/email-outlook-auth.go (100%) rename {new-api => heicode}/common/email.go (100%) rename {new-api => heicode}/common/embed-file-system.go (100%) rename {new-api => heicode}/common/endpoint_defaults.go (96%) rename {new-api => heicode}/common/endpoint_type.go (97%) rename {new-api => heicode}/common/env.go (100%) rename {new-api => heicode}/common/gin.go (99%) rename {new-api => heicode}/common/go-channel.go (100%) rename {new-api => heicode}/common/gopool.go (100%) rename {new-api => heicode}/common/hash.go (100%) rename {new-api => heicode}/common/init.go (93%) rename {new-api => heicode}/common/ip.go (100%) rename {new-api => heicode}/common/json.go (100%) rename {new-api => heicode}/common/json_test.go (100%) rename {new-api => heicode}/common/limiter/limiter.go (97%) rename {new-api => heicode}/common/limiter/lua/rate_limit.lua (100%) rename {new-api => heicode}/common/model.go (100%) rename {new-api => heicode}/common/page_info.go (100%) rename {new-api => heicode}/common/performance_config.go (100%) rename {new-api => heicode}/common/pprof.go (100%) rename {new-api => heicode}/common/pyro.go (94%) rename {new-api => heicode}/common/quota.go (100%) rename {new-api => heicode}/common/rate-limit.go (100%) rename {new-api => heicode}/common/redis.go (100%) rename {new-api => heicode}/common/ssrf_protection.go (100%) rename {new-api => heicode}/common/str.go (100%) rename {new-api => heicode}/common/sys_log.go (100%) rename {new-api => heicode}/common/system_monitor.go (100%) rename {new-api => heicode}/common/system_monitor_unix.go (100%) rename {new-api => heicode}/common/system_monitor_windows.go (100%) rename {new-api => heicode}/common/topup-ratio.go (100%) rename {new-api => heicode}/common/totp.go (100%) rename {new-api => heicode}/common/url_validator.go (96%) rename {new-api => heicode}/common/url_validator_test.go (98%) rename {new-api => heicode}/common/utils.go (100%) rename {new-api => heicode}/common/validate.go (100%) rename {new-api => heicode}/common/verification.go (100%) rename {new-api => heicode}/constant/README.md (100%) rename {new-api => heicode}/constant/api_type.go (100%) rename {new-api => heicode}/constant/azure.go (100%) rename {new-api => heicode}/constant/cache_key.go (100%) rename {new-api => heicode}/constant/channel.go (100%) rename {new-api => heicode}/constant/context_key.go (100%) rename {new-api => heicode}/constant/endpoint_type.go (100%) rename {new-api => heicode}/constant/env.go (100%) rename {new-api => heicode}/constant/finish_reason.go (100%) rename {new-api => heicode}/constant/midjourney.go (100%) rename {new-api => heicode}/constant/multi_key_mode.go (100%) rename {new-api => heicode}/constant/setup.go (100%) rename {new-api => heicode}/constant/task.go (100%) rename {new-api => heicode}/constant/waffo_pay_method.go (100%) rename {new-api => heicode}/controller/agnet_control_plane.go (99%) rename {new-api => heicode}/controller/billing.go (93%) rename {new-api => heicode}/controller/channel-billing.go (98%) rename {new-api => heicode}/controller/channel-test.go (97%) rename {new-api => heicode}/controller/channel.go (99%) rename {new-api => heicode}/controller/channel_affinity_cache.go (97%) rename {new-api => heicode}/controller/channel_test_internal_test.go (88%) rename {new-api => heicode}/controller/channel_upstream_update.go (98%) rename {new-api => heicode}/controller/channel_upstream_update_test.go (98%) rename {new-api => heicode}/controller/checkin.go (89%) rename {new-api => heicode}/controller/codex_oauth.go (96%) rename {new-api => heicode}/controller/codex_usage.go (94%) rename {new-api => heicode}/controller/console_migrate.go (97%) rename {new-api => heicode}/controller/custom_oauth.go (99%) rename {new-api => heicode}/controller/deployment.go (99%) rename {new-api => heicode}/controller/discord.go (97%) rename {new-api => heicode}/controller/github.go (98%) rename {new-api => heicode}/controller/group.go (86%) rename {new-api => heicode}/controller/heicode_oauth.go (97%) rename {new-api => heicode}/controller/image.go (100%) rename {new-api => heicode}/controller/linuxdo.go (98%) rename {new-api => heicode}/controller/log.go (98%) rename {new-api => heicode}/controller/midjourney.go (96%) rename {new-api => heicode}/controller/misc.go (96%) rename {new-api => heicode}/controller/missing_models.go (93%) rename {new-api => heicode}/controller/model.go (91%) rename {new-api => heicode}/controller/model_list_test.go (96%) rename {new-api => heicode}/controller/model_meta.go (98%) rename {new-api => heicode}/controller/model_sync.go (99%) rename {new-api => heicode}/controller/oauth.go (98%) rename {new-api => heicode}/controller/oidc.go (97%) rename {new-api => heicode}/controller/option.go (95%) rename {new-api => heicode}/controller/passkey.go (98%) rename {new-api => heicode}/controller/payment_webhook_availability.go (96%) rename {new-api => heicode}/controller/payment_webhook_availability_test.go (98%) rename {new-api => heicode}/controller/performance.go (99%) rename {new-api => heicode}/controller/playground.go (87%) rename {new-api => heicode}/controller/prefill_group.go (95%) rename {new-api => heicode}/controller/pricing.go (92%) rename {new-api => heicode}/controller/ratio_config.go (87%) rename {new-api => heicode}/controller/ratio_sync.go (99%) rename {new-api => heicode}/controller/redemption.go (97%) rename {new-api => heicode}/controller/relay.go (97%) rename {new-api => heicode}/controller/secure_verification.go (98%) rename {new-api => heicode}/controller/setup.go (95%) rename {new-api => heicode}/controller/subscription.go (98%) rename {new-api => heicode}/controller/subscription_payment_creem.go (93%) rename {new-api => heicode}/controller/subscription_payment_epay.go (96%) rename {new-api => heicode}/controller/subscription_payment_stripe.go (94%) rename {new-api => heicode}/controller/swag_video.go (100%) rename {new-api => heicode}/controller/task.go (89%) rename {new-api => heicode}/controller/task_video.go (96%) rename {new-api => heicode}/controller/telegram.go (96%) rename {new-api => heicode}/controller/token.go (98%) rename {new-api => heicode}/controller/token_test.go (99%) rename {new-api => heicode}/controller/topup.go (98%) rename {new-api => heicode}/controller/topup_creem.go (99%) rename {new-api => heicode}/controller/topup_stripe.go (97%) rename {new-api => heicode}/controller/topup_waffo.go (97%) rename {new-api => heicode}/controller/topup_waffo_pancake.go (95%) rename {new-api => heicode}/controller/topup_waffo_pancake_test.go (95%) rename {new-api => heicode}/controller/twofa.go (99%) rename {new-api => heicode}/controller/uptime_kuma.go (98%) rename {new-api => heicode}/controller/usedata.go (95%) rename {new-api => heicode}/controller/user.go (99%) rename {new-api => heicode}/controller/vendor_meta.go (97%) rename {new-api => heicode}/controller/video_proxy.go (96%) rename {new-api => heicode}/controller/video_proxy_gemini.go (97%) rename {new-api => heicode}/controller/wechat.go (97%) create mode 100644 heicode/docker-compose.azure-vm.yml rename {new-api => heicode}/docker-compose.dev.yml (78%) rename {new-api => heicode}/docker-compose.local.yml (78%) rename {new-api => heicode}/docker-compose.override.yml (52%) rename {new-api => heicode}/docker-compose.yml (80%) rename {new-api => heicode}/docs/channel/other_setting.md (100%) rename {new-api => heicode}/docs/images/aionui.png (100%) rename {new-api => heicode}/docs/images/aliyun.png (100%) rename {new-api => heicode}/docs/images/cherry-studio.png (100%) rename {new-api => heicode}/docs/images/io-net.png (100%) rename {new-api => heicode}/docs/images/pku.png (100%) rename {new-api => heicode}/docs/images/ucloud.png (100%) rename {new-api => heicode}/docs/installation/BT.md (91%) rename {new-api => heicode}/docs/ionet-client.md (100%) rename {new-api => heicode}/docs/openapi/api.json (100%) rename {new-api => heicode}/docs/openapi/relay.json (100%) rename {new-api => heicode}/docs/translation-glossary.fr.md (100%) rename {new-api => heicode}/docs/translation-glossary.md (100%) rename {new-api => heicode}/docs/translation-glossary.ru.md (100%) rename {new-api => heicode}/dto/audio.go (98%) rename {new-api => heicode}/dto/channel_settings.go (100%) rename {new-api => heicode}/dto/claude.go (99%) rename {new-api => heicode}/dto/embedding.go (98%) rename {new-api => heicode}/dto/error.go (96%) rename {new-api => heicode}/dto/gemini.go (99%) rename {new-api => heicode}/dto/gemini_generation_config_test.go (98%) rename {new-api => heicode}/dto/gemini_isstream_test.go (100%) rename {new-api => heicode}/dto/midjourney.go (100%) rename {new-api => heicode}/dto/notify.go (100%) rename {new-api => heicode}/dto/openai_compaction.go (92%) rename {new-api => heicode}/dto/openai_image.go (98%) rename {new-api => heicode}/dto/openai_request.go (99%) rename {new-api => heicode}/dto/openai_request_zero_value_test.go (98%) rename {new-api => heicode}/dto/openai_response.go (99%) rename {new-api => heicode}/dto/openai_responses_compaction_request.go (95%) rename {new-api => heicode}/dto/openai_video.go (100%) rename {new-api => heicode}/dto/playground.go (100%) rename {new-api => heicode}/dto/pricing.go (96%) rename {new-api => heicode}/dto/ratio_sync.go (100%) rename {new-api => heicode}/dto/realtime.go (98%) rename {new-api => heicode}/dto/request_common.go (92%) rename {new-api => heicode}/dto/rerank.go (97%) rename {new-api => heicode}/dto/sensitive.go (100%) rename {new-api => heicode}/dto/suno.go (100%) rename {new-api => heicode}/dto/task.go (100%) rename {new-api => heicode}/dto/user_settings.go (100%) rename {new-api => heicode}/dto/values.go (100%) rename {new-api => heicode}/dto/video.go (100%) rename {new-api => heicode}/electron/README.md (87%) rename {new-api => heicode}/electron/build.sh (78%) rename {new-api => heicode}/electron/create-tray-icon.js (100%) rename {new-api => heicode}/electron/entitlements.mac.plist (100%) rename {new-api => heicode}/electron/icon.png (100%) rename {new-api => heicode}/electron/main.js (98%) rename {new-api => heicode}/electron/package-lock.json (99%) rename {new-api => heicode}/electron/package.json (87%) rename {new-api => heicode}/electron/preload.js (100%) rename {new-api => heicode}/electron/tray-icon-windows.png (100%) rename {new-api => heicode}/electron/tray-iconTemplate.png (100%) rename {new-api => heicode}/electron/tray-iconTemplate@2x.png (100%) rename {new-api => heicode}/go.mod (99%) rename {new-api => heicode}/go.sum (100%) create mode 100644 heicode/heicode.service rename {new-api => heicode}/i18n/i18n.go (97%) rename {new-api => heicode}/i18n/keys.go (100%) rename {new-api => heicode}/i18n/locales/en.yaml (100%) rename {new-api => heicode}/i18n/locales/zh-CN.yaml (100%) rename {new-api => heicode}/i18n/locales/zh-TW.yaml (100%) rename {new-api => heicode}/logger/logger.go (97%) rename {new-api => heicode}/main.go (93%) rename {new-api => heicode}/makefile (100%) rename {new-api => heicode}/middleware/auth.go (97%) rename {new-api => heicode}/middleware/body_cleanup.go (83%) rename {new-api => heicode}/middleware/cache.go (100%) rename {new-api => heicode}/middleware/cors.go (92%) rename {new-api => heicode}/middleware/disable-cache.go (100%) rename {new-api => heicode}/middleware/distributor.go (97%) rename {new-api => heicode}/middleware/email-verification-rate-limit.go (97%) rename {new-api => heicode}/middleware/gzip.go (97%) rename {new-api => heicode}/middleware/i18n.go (88%) rename {new-api => heicode}/middleware/jimeng_adapter.go (92%) rename {new-api => heicode}/middleware/kling_adapter.go (92%) rename {new-api => heicode}/middleware/logger.go (95%) rename {new-api => heicode}/middleware/model-rate-limit.go (97%) rename {new-api => heicode}/middleware/performance.go (96%) rename {new-api => heicode}/middleware/rate-limit.go (99%) rename {new-api => heicode}/middleware/recover.go (85%) rename {new-api => heicode}/middleware/request-id.go (94%) rename {new-api => heicode}/middleware/secure_verification.go (100%) rename {new-api => heicode}/middleware/stats.go (100%) rename {new-api => heicode}/middleware/turnstile-check.go (97%) rename {new-api => heicode}/middleware/utils.go (87%) rename {new-api => heicode}/model/ability.go (99%) rename {new-api => heicode}/model/channel.go (99%) rename {new-api => heicode}/model/channel_cache.go (98%) rename {new-api => heicode}/model/channel_satisfy.go (94%) rename {new-api => heicode}/model/checkin.go (98%) rename {new-api => heicode}/model/custom_oauth_provider.go (99%) rename {new-api => heicode}/model/db_time.go (91%) rename {new-api => heicode}/model/errors.go (100%) rename {new-api => heicode}/model/log.go (99%) rename {new-api => heicode}/model/main.go (99%) rename {new-api => heicode}/model/midjourney.go (100%) rename {new-api => heicode}/model/missing_models.go (100%) rename {new-api => heicode}/model/model_extra.go (100%) rename {new-api => heicode}/model/model_meta.go (99%) rename {new-api => heicode}/model/option.go (98%) rename {new-api => heicode}/model/passkey.go (99%) rename {new-api => heicode}/model/payment_method_guard_test.go (99%) rename {new-api => heicode}/model/prefill_group.go (98%) rename {new-api => heicode}/model/pricing.go (97%) rename {new-api => heicode}/model/pricing_default.go (100%) rename {new-api => heicode}/model/pricing_refresh.go (100%) rename {new-api => heicode}/model/redemption.go (98%) rename {new-api => heicode}/model/setup.go (100%) rename {new-api => heicode}/model/subscription.go (99%) rename {new-api => heicode}/model/task.go (98%) rename {new-api => heicode}/model/task_cas_test.go (99%) rename {new-api => heicode}/model/token.go (99%) rename {new-api => heicode}/model/token_cache.go (94%) rename {new-api => heicode}/model/topup.go (99%) rename {new-api => heicode}/model/twofa.go (99%) rename {new-api => heicode}/model/usedata.go (99%) rename {new-api => heicode}/model/user.go (99%) rename {new-api => heicode}/model/user_cache.go (98%) rename {new-api => heicode}/model/user_oauth_binding.go (100%) rename {new-api => heicode}/model/utils.go (98%) rename {new-api => heicode}/model/vendor_meta.go (98%) rename {new-api => heicode}/oauth/discord.go (96%) rename {new-api => heicode}/oauth/generic.go (98%) rename {new-api => heicode}/oauth/github.go (97%) rename {new-api => heicode}/oauth/linuxdo.go (97%) rename {new-api => heicode}/oauth/oidc.go (96%) rename {new-api => heicode}/oauth/provider.go (96%) rename {new-api => heicode}/oauth/registry.go (97%) rename {new-api => heicode}/oauth/types.go (100%) rename {new-api => heicode}/pkg/billingexpr/billingexpr_test.go (99%) rename {new-api => heicode}/pkg/billingexpr/compile.go (100%) rename {new-api => heicode}/pkg/billingexpr/expr.md (100%) rename {new-api => heicode}/pkg/billingexpr/round.go (100%) rename {new-api => heicode}/pkg/billingexpr/run.go (100%) rename {new-api => heicode}/pkg/billingexpr/settle.go (100%) rename {new-api => heicode}/pkg/billingexpr/types.go (100%) rename {new-api => heicode}/pkg/cachex/codec.go (100%) rename {new-api => heicode}/pkg/cachex/hybrid_cache.go (100%) rename {new-api => heicode}/pkg/cachex/namespace.go (100%) rename {new-api => heicode}/pkg/ionet/client.go (100%) rename {new-api => heicode}/pkg/ionet/container.go (100%) rename {new-api => heicode}/pkg/ionet/deployment.go (100%) rename {new-api => heicode}/pkg/ionet/hardware.go (100%) rename {new-api => heicode}/pkg/ionet/jsonutil.go (100%) rename {new-api => heicode}/pkg/ionet/types.go (100%) rename {new-api => heicode}/relay/audio_handler.go (89%) rename {new-api => heicode}/relay/channel/adapter.go (95%) rename {new-api => heicode}/relay/channel/ai360/constants.go (100%) rename {new-api => heicode}/relay/channel/ali/adaptor.go (94%) rename {new-api => heicode}/relay/channel/ali/constants.go (100%) rename {new-api => heicode}/relay/channel/ali/dto.go (98%) rename {new-api => heicode}/relay/channel/ali/image.go (97%) rename {new-api => heicode}/relay/channel/ali/image_wan.go (89%) rename {new-api => heicode}/relay/channel/ali/rerank.go (91%) rename {new-api => heicode}/relay/channel/ali/text.go (92%) rename {new-api => heicode}/relay/channel/api_request.go (97%) rename {new-api => heicode}/relay/channel/api_request_test.go (98%) rename {new-api => heicode}/relay/channel/aws/adaptor.go (94%) rename {new-api => heicode}/relay/channel/aws/constants.go (100%) rename {new-api => heicode}/relay/channel/aws/dto.go (97%) rename {new-api => heicode}/relay/channel/aws/relay-aws.go (96%) rename {new-api => heicode}/relay/channel/aws/relay_aws_test.go (93%) rename {new-api => heicode}/relay/channel/baidu/adaptor.go (95%) rename {new-api => heicode}/relay/channel/baidu/constants.go (100%) rename {new-api => heicode}/relay/channel/baidu/dto.go (98%) rename {new-api => heicode}/relay/channel/baidu/relay-baidu.go (96%) rename {new-api => heicode}/relay/channel/baidu_v2/adaptor.go (93%) rename {new-api => heicode}/relay/channel/baidu_v2/constants.go (100%) rename {new-api => heicode}/relay/channel/claude/adaptor.go (93%) rename {new-api => heicode}/relay/channel/claude/constants.go (100%) rename {new-api => heicode}/relay/channel/claude/dto.go (100%) rename {new-api => heicode}/relay/channel/claude/message_delta_usage_patch_test.go (97%) rename {new-api => heicode}/relay/channel/claude/relay-claude.go (98%) rename {new-api => heicode}/relay/channel/claude/relay_claude_test.go (99%) rename {new-api => heicode}/relay/channel/cloudflare/adaptor.go (93%) rename {new-api => heicode}/relay/channel/cloudflare/constant.go (100%) rename {new-api => heicode}/relay/channel/cloudflare/dto.go (92%) rename {new-api => heicode}/relay/channel/cloudflare/relay_cloudflare.go (93%) rename {new-api => heicode}/relay/channel/codex/adaptor.go (94%) rename {new-api => heicode}/relay/channel/codex/constants.go (92%) rename {new-api => heicode}/relay/channel/codex/oauth_key.go (94%) rename {new-api => heicode}/relay/channel/cohere/adaptor.go (92%) rename {new-api => heicode}/relay/channel/cohere/constant.go (100%) rename {new-api => heicode}/relay/channel/cohere/dto.go (97%) rename {new-api => heicode}/relay/channel/cohere/relay-cohere.go (96%) rename {new-api => heicode}/relay/channel/coze/adaptor.go (95%) rename {new-api => heicode}/relay/channel/coze/constants.go (100%) rename {new-api => heicode}/relay/channel/coze/dto.go (100%) rename {new-api => heicode}/relay/channel/coze/relay-coze.go (97%) rename {new-api => heicode}/relay/channel/deepseek/adaptor.go (92%) rename {new-api => heicode}/relay/channel/deepseek/constants.go (100%) rename {new-api => heicode}/relay/channel/dify/adaptor.go (94%) rename {new-api => heicode}/relay/channel/dify/constants.go (100%) rename {new-api => heicode}/relay/channel/dify/dto.go (97%) rename {new-api => heicode}/relay/channel/dify/relay-dify.go (96%) rename {new-api => heicode}/relay/channel/gemini/adaptor.go (95%) rename {new-api => heicode}/relay/channel/gemini/constant.go (100%) rename {new-api => heicode}/relay/channel/gemini/relay-gemini-native.go (89%) rename {new-api => heicode}/relay/channel/gemini/relay-gemini.go (99%) rename {new-api => heicode}/relay/channel/gemini/relay_gemini_usage_test.go (97%) rename {new-api => heicode}/relay/channel/jimeng/adaptor.go (94%) rename {new-api => heicode}/relay/channel/jimeng/constants.go (100%) rename {new-api => heicode}/relay/channel/jimeng/image.go (93%) rename {new-api => heicode}/relay/channel/jimeng/sign.go (99%) rename {new-api => heicode}/relay/channel/jina/adaptor.go (89%) rename {new-api => heicode}/relay/channel/jina/constant.go (100%) rename {new-api => heicode}/relay/channel/jina/relay-jina.go (100%) rename {new-api => heicode}/relay/channel/lingyiwanwu/constrants.go (100%) rename {new-api => heicode}/relay/channel/minimax/adaptor.go (92%) rename {new-api => heicode}/relay/channel/minimax/adaptor_test.go (95%) rename {new-api => heicode}/relay/channel/minimax/constants.go (100%) rename {new-api => heicode}/relay/channel/minimax/image.go (96%) rename {new-api => heicode}/relay/channel/minimax/relay-minimax.go (79%) rename {new-api => heicode}/relay/channel/minimax/tts.go (97%) rename {new-api => heicode}/relay/channel/mistral/adaptor.go (91%) rename {new-api => heicode}/relay/channel/mistral/constants.go (100%) rename {new-api => heicode}/relay/channel/mistral/text.go (96%) rename {new-api => heicode}/relay/channel/mokaai/adaptor.go (92%) rename {new-api => heicode}/relay/channel/mokaai/constants.go (100%) rename {new-api => heicode}/relay/channel/mokaai/relay-mokaai.go (91%) rename {new-api => heicode}/relay/channel/moonshot/adaptor.go (90%) rename {new-api => heicode}/relay/channel/moonshot/constants.go (100%) rename {new-api => heicode}/relay/channel/ollama/adaptor.go (91%) rename {new-api => heicode}/relay/channel/ollama/constants.go (100%) rename {new-api => heicode}/relay/channel/ollama/dto.go (100%) rename {new-api => heicode}/relay/channel/ollama/relay-ollama.go (98%) rename {new-api => heicode}/relay/channel/ollama/stream.go (96%) rename {new-api => heicode}/relay/channel/openai/adaptor.go (96%) rename {new-api => heicode}/relay/channel/openai/audio.go (93%) rename {new-api => heicode}/relay/channel/openai/chat_via_responses.go (98%) rename {new-api => heicode}/relay/channel/openai/constant.go (100%) rename {new-api => heicode}/relay/channel/openai/helper.go (95%) rename {new-api => heicode}/relay/channel/openai/relay-openai.go (98%) rename {new-api => heicode}/relay/channel/openai/relay_responses.go (94%) rename {new-api => heicode}/relay/channel/openai/relay_responses_compact.go (88%) rename {new-api => heicode}/relay/channel/openrouter/constant.go (100%) rename {new-api => heicode}/relay/channel/openrouter/dto.go (100%) rename {new-api => heicode}/relay/channel/palm/adaptor.go (92%) rename {new-api => heicode}/relay/channel/palm/constants.go (100%) rename {new-api => heicode}/relay/channel/palm/dto.go (95%) rename {new-api => heicode}/relay/channel/palm/relay-palm.go (93%) rename {new-api => heicode}/relay/channel/perplexity/adaptor.go (90%) rename {new-api => heicode}/relay/channel/perplexity/constants.go (100%) rename {new-api => heicode}/relay/channel/perplexity/relay-perplexity.go (96%) rename {new-api => heicode}/relay/channel/replicate/adaptor.go (97%) rename {new-api => heicode}/relay/channel/replicate/constants.go (100%) rename {new-api => heicode}/relay/channel/replicate/dto.go (100%) rename {new-api => heicode}/relay/channel/siliconflow/adaptor.go (91%) rename {new-api => heicode}/relay/channel/siliconflow/constant.go (100%) rename {new-api => heicode}/relay/channel/siliconflow/dto.go (95%) rename {new-api => heicode}/relay/channel/siliconflow/relay-siliconflow.go (88%) rename {new-api => heicode}/relay/channel/submodel/adaptor.go (92%) rename {new-api => heicode}/relay/channel/submodel/constants.go (100%) rename {new-api => heicode}/relay/channel/task/ali/adaptor.go (97%) rename {new-api => heicode}/relay/channel/task/ali/constants.go (100%) rename {new-api => heicode}/relay/channel/task/doubao/adaptor.go (96%) rename {new-api => heicode}/relay/channel/task/doubao/constants.go (100%) rename {new-api => heicode}/relay/channel/task/gemini/adaptor.go (94%) rename {new-api => heicode}/relay/channel/task/gemini/billing.go (100%) rename {new-api => heicode}/relay/channel/task/gemini/dto.go (100%) rename {new-api => heicode}/relay/channel/task/gemini/image.go (95%) rename {new-api => heicode}/relay/channel/task/hailuo/adaptor.go (95%) rename {new-api => heicode}/relay/channel/task/hailuo/constants.go (100%) rename {new-api => heicode}/relay/channel/task/hailuo/models.go (100%) rename {new-api => heicode}/relay/channel/task/jimeng/adaptor.go (97%) rename {new-api => heicode}/relay/channel/task/kling/adaptor.go (97%) rename {new-api => heicode}/relay/channel/task/sora/adaptor.go (96%) rename {new-api => heicode}/relay/channel/task/sora/constants.go (100%) rename {new-api => heicode}/relay/channel/task/suno/adaptor.go (93%) rename {new-api => heicode}/relay/channel/task/suno/models.go (100%) rename {new-api => heicode}/relay/channel/task/taskcommon/helpers.go (93%) rename {new-api => heicode}/relay/channel/task/vertex/adaptor.go (96%) rename {new-api => heicode}/relay/channel/task/vidu/adaptor.go (95%) rename {new-api => heicode}/relay/channel/tencent/adaptor.go (92%) rename {new-api => heicode}/relay/channel/tencent/constants.go (100%) rename {new-api => heicode}/relay/channel/tencent/dto.go (100%) rename {new-api => heicode}/relay/channel/tencent/relay-tencent.go (95%) rename {new-api => heicode}/relay/channel/vertex/adaptor.go (95%) rename {new-api => heicode}/relay/channel/vertex/constants.go (100%) rename {new-api => heicode}/relay/channel/vertex/dto.go (97%) rename {new-api => heicode}/relay/channel/vertex/relay-vertex.go (90%) rename {new-api => heicode}/relay/channel/vertex/service_account.go (98%) rename {new-api => heicode}/relay/channel/volcengine/adaptor.go (96%) rename {new-api => heicode}/relay/channel/volcengine/constants.go (100%) rename {new-api => heicode}/relay/channel/volcengine/protocols.go (100%) rename {new-api => heicode}/relay/channel/volcengine/tts.go (98%) rename {new-api => heicode}/relay/channel/xai/adaptor.go (93%) rename {new-api => heicode}/relay/channel/xai/constants.go (100%) rename {new-api => heicode}/relay/channel/xai/dto.go (96%) rename {new-api => heicode}/relay/channel/xai/text.go (90%) rename {new-api => heicode}/relay/channel/xinference/constant.go (100%) rename {new-api => heicode}/relay/channel/xinference/dto.go (100%) rename {new-api => heicode}/relay/channel/xunfei/adaptor.go (94%) rename {new-api => heicode}/relay/channel/xunfei/constants.go (100%) rename {new-api => heicode}/relay/channel/xunfei/dto.go (97%) rename {new-api => heicode}/relay/channel/xunfei/relay-xunfei.go (97%) rename {new-api => heicode}/relay/channel/zhipu/adaptor.go (93%) rename {new-api => heicode}/relay/channel/zhipu/constants.go (100%) rename {new-api => heicode}/relay/channel/zhipu/dto.go (96%) rename {new-api => heicode}/relay/channel/zhipu/relay-zhipu.go (95%) rename {new-api => heicode}/relay/channel/zhipu_4v/adaptor.go (90%) rename {new-api => heicode}/relay/channel/zhipu_4v/constants.go (100%) rename {new-api => heicode}/relay/channel/zhipu_4v/dto.go (96%) rename {new-api => heicode}/relay/channel/zhipu_4v/image.go (92%) rename {new-api => heicode}/relay/channel/zhipu_4v/relay-zhipu_v4.go (97%) rename {new-api => heicode}/relay/chat_completions_via_responses.go (91%) rename {new-api => heicode}/relay/claude_handler.go (94%) rename {new-api => heicode}/relay/common/billing.go (100%) rename {new-api => heicode}/relay/common/override.go (99%) rename {new-api => heicode}/relay/common/override_test.go (99%) rename {new-api => heicode}/relay/common/relay_info.go (98%) rename {new-api => heicode}/relay/common/relay_info_test.go (96%) rename {new-api => heicode}/relay/common/relay_utils.go (97%) rename {new-api => heicode}/relay/common/request_conversion.go (93%) rename {new-api => heicode}/relay/common/stream_status.go (100%) rename {new-api => heicode}/relay/common/stream_status_test.go (100%) rename {new-api => heicode}/relay/common_handler/rerank.go (86%) rename {new-api => heicode}/relay/compatible_handler.go (93%) rename {new-api => heicode}/relay/constant/relay_mode.go (100%) rename {new-api => heicode}/relay/embedding_handler.go (89%) rename {new-api => heicode}/relay/gemini_handler.go (95%) rename {new-api => heicode}/relay/helper/billing_expr_request.go (91%) rename {new-api => heicode}/relay/helper/billing_expr_request_test.go (92%) rename {new-api => heicode}/relay/helper/common.go (97%) rename {new-api => heicode}/relay/helper/model_mapped.go (91%) rename {new-api => heicode}/relay/helper/price.go (95%) rename {new-api => heicode}/relay/helper/price_test.go (86%) rename {new-api => heicode}/relay/helper/stream_result.go (96%) rename {new-api => heicode}/relay/helper/stream_scanner.go (96%) rename {new-api => heicode}/relay/helper/stream_scanner_test.go (99%) rename {new-api => heicode}/relay/helper/valid_request.go (97%) rename {new-api => heicode}/relay/image_handler.go (92%) rename {new-api => heicode}/relay/mjproxy_handler.go (98%) rename {new-api => heicode}/relay/param_override_error.go (77%) rename {new-api => heicode}/relay/reasonmap/reasonmap.go (94%) rename {new-api => heicode}/relay/relay_adaptor.go (57%) rename {new-api => heicode}/relay/relay_task.go (97%) rename {new-api => heicode}/relay/rerank_handler.go (90%) rename {new-api => heicode}/relay/responses_handler.go (91%) rename {new-api => heicode}/relay/websocket.go (86%) rename {new-api => heicode}/router/api-router.go (99%) rename {new-api => heicode}/router/dashboard.go (88%) rename {new-api => heicode}/router/heicode-router.go (81%) rename {new-api => heicode}/router/main.go (90%) rename {new-api => heicode}/router/relay-router.go (97%) rename {new-api => heicode}/router/video-router.go (95%) rename {new-api => heicode}/router/web-router.go (91%) rename {new-api => heicode}/service/audio.go (100%) rename {new-api => heicode}/service/billing.go (94%) rename {new-api => heicode}/service/billing_session.go (98%) rename {new-api => heicode}/service/channel.go (91%) rename {new-api => heicode}/service/channel_affinity.go (98%) rename {new-api => heicode}/service/channel_affinity_template_test.go (98%) rename {new-api => heicode}/service/channel_affinity_usage_cache_test.go (97%) rename {new-api => heicode}/service/channel_select.go (96%) rename {new-api => heicode}/service/codex_credential_refresh.go (95%) rename {new-api => heicode}/service/codex_credential_refresh_task.go (95%) rename {new-api => heicode}/service/codex_oauth.go (99%) rename {new-api => heicode}/service/codex_wham_usage.go (100%) rename {new-api => heicode}/service/convert.go (99%) rename {new-api => heicode}/service/download.go (96%) rename {new-api => heicode}/service/epay.go (63%) rename {new-api => heicode}/service/error.go (97%) rename {new-api => heicode}/service/error_test.go (96%) rename {new-api => heicode}/service/file_decoder.go (97%) rename {new-api => heicode}/service/file_service.go (99%) rename {new-api => heicode}/service/funding_source.go (99%) rename {new-api => heicode}/service/group.go (94%) rename {new-api => heicode}/service/http.go (94%) rename {new-api => heicode}/service/http_client.go (97%) rename {new-api => heicode}/service/image.go (98%) rename {new-api => heicode}/service/log_info_generate.go (97%) rename {new-api => heicode}/service/midjourney.go (97%) rename {new-api => heicode}/service/notify-limit.go (97%) rename {new-api => heicode}/service/openai_chat_responses_compat.go (86%) rename {new-api => heicode}/service/openai_chat_responses_mode.go (81%) rename {new-api => heicode}/service/openaicompat/chat_to_responses.go (99%) rename {new-api => heicode}/service/openaicompat/policy.go (90%) rename {new-api => heicode}/service/openaicompat/regex.go (100%) rename {new-api => heicode}/service/openaicompat/responses_to_chat.go (98%) rename {new-api => heicode}/service/passkey/service.go (98%) rename {new-api => heicode}/service/passkey/session.go (100%) rename {new-api => heicode}/service/passkey/user.go (97%) rename {new-api => heicode}/service/pre_consume_quota.go (93%) rename {new-api => heicode}/service/quota.go (97%) rename {new-api => heicode}/service/sensitive.go (95%) rename {new-api => heicode}/service/str.go (100%) rename {new-api => heicode}/service/subscription_reset_task.go (94%) rename {new-api => heicode}/service/task.go (82%) rename {new-api => heicode}/service/task_billing.go (97%) rename {new-api => heicode}/service/task_billing_test.go (99%) rename {new-api => heicode}/service/task_polling.go (98%) rename {new-api => heicode}/service/text_quota.go (98%) rename {new-api => heicode}/service/text_quota_test.go (98%) rename {new-api => heicode}/service/tiered_settle.go (95%) rename {new-api => heicode}/service/tiered_settle_test.go (99%) rename {new-api => heicode}/service/token_counter.go (97%) rename {new-api => heicode}/service/token_estimator.go (100%) rename {new-api => heicode}/service/tokenizer.go (97%) rename {new-api => heicode}/service/tool_billing.go (95%) rename {new-api => heicode}/service/usage_helpr.go (89%) rename {new-api => heicode}/service/user_notify.go (98%) rename {new-api => heicode}/service/violation_fee.go (94%) rename {new-api => heicode}/service/waffo_pancake.go (98%) rename {new-api => heicode}/service/waffo_pancake_test.go (96%) rename {new-api => heicode}/service/webhook.go (96%) rename {new-api => heicode}/setting/auto_group.go (93%) rename {new-api => heicode}/setting/billing_setting/tiered_billing.go (96%) rename {new-api => heicode}/setting/chat.go (96%) rename {new-api => heicode}/setting/config/config.go (99%) rename {new-api => heicode}/setting/config/config_test.go (100%) rename {new-api => heicode}/setting/console_setting/config.go (96%) rename {new-api => heicode}/setting/console_setting/validation.go (100%) rename {new-api => heicode}/setting/midjourney.go (100%) rename {new-api => heicode}/setting/model_setting/claude.go (98%) rename {new-api => heicode}/setting/model_setting/claude_test.go (100%) rename {new-api => heicode}/setting/model_setting/gemini.go (97%) rename {new-api => heicode}/setting/model_setting/global.go (97%) rename {new-api => heicode}/setting/model_setting/grok.go (90%) rename {new-api => heicode}/setting/model_setting/qwen.go (95%) rename {new-api => heicode}/setting/operation_setting/channel_affinity_setting.go (98%) rename {new-api => heicode}/setting/operation_setting/checkin_setting.go (94%) rename {new-api => heicode}/setting/operation_setting/general_setting.go (97%) rename {new-api => heicode}/setting/operation_setting/monitor_setting.go (94%) rename {new-api => heicode}/setting/operation_setting/operation_setting.go (100%) rename {new-api => heicode}/setting/operation_setting/payment_setting.go (91%) rename {new-api => heicode}/setting/operation_setting/payment_setting_old.go (96%) rename {new-api => heicode}/setting/operation_setting/quota_setting.go (88%) rename {new-api => heicode}/setting/operation_setting/status_code_ranges.go (99%) rename {new-api => heicode}/setting/operation_setting/status_code_ranges_test.go (100%) rename {new-api => heicode}/setting/operation_setting/token_setting.go (91%) rename {new-api => heicode}/setting/operation_setting/tools.go (99%) rename {new-api => heicode}/setting/payment_creem.go (100%) rename {new-api => heicode}/setting/payment_stripe.go (100%) rename {new-api => heicode}/setting/payment_waffo.go (95%) rename {new-api => heicode}/setting/payment_waffo_pancake.go (100%) rename {new-api => heicode}/setting/performance_setting/config.go (96%) rename {new-api => heicode}/setting/rate_limit.go (97%) rename {new-api => heicode}/setting/ratio_setting/cache_ratio.go (99%) rename {new-api => heicode}/setting/ratio_setting/compact_suffix.go (100%) rename {new-api => heicode}/setting/ratio_setting/expose_ratio.go (100%) rename {new-api => heicode}/setting/ratio_setting/exposed_cache.go (100%) rename {new-api => heicode}/setting/ratio_setting/group_ratio.go (95%) rename {new-api => heicode}/setting/ratio_setting/model_ratio.go (99%) rename {new-api => heicode}/setting/reasoning/suffix.go (100%) rename {new-api => heicode}/setting/sensitive.go (100%) rename {new-api => heicode}/setting/system_setting/discord.go (88%) rename {new-api => heicode}/setting/system_setting/fetch_setting.go (96%) rename {new-api => heicode}/setting/system_setting/legal.go (87%) rename {new-api => heicode}/setting/system_setting/oidc.go (92%) rename {new-api => heicode}/setting/system_setting/passkey.go (94%) rename {new-api => heicode}/setting/system_setting/system_setting_old.go (100%) rename {new-api => heicode}/setting/system_setting/theme.go (85%) rename {new-api => heicode}/setting/user_usable_group.go (96%) rename {new-api => heicode}/types/channel_error.go (100%) rename {new-api => heicode}/types/error.go (99%) rename {new-api => heicode}/types/file_data.go (100%) rename {new-api => heicode}/types/file_source.go (100%) rename {new-api => heicode}/types/price_data.go (100%) rename {new-api => heicode}/types/relay_format.go (100%) rename {new-api => heicode}/types/request_meta.go (100%) rename {new-api => heicode}/types/rw_map.go (98%) rename {new-api => heicode}/types/set.go (100%) rename {new-api => heicode}/web/classic/.eslintrc.cjs (100%) rename {new-api => heicode}/web/classic/.gitignore (100%) rename {new-api => heicode}/web/classic/.prettierrc.mjs (100%) rename {new-api => heicode}/web/classic/bun.lock (100%) rename {new-api => heicode}/web/classic/i18next.config.js (100%) rename {new-api => heicode}/web/classic/index.html (95%) rename {new-api => heicode}/web/classic/jsconfig.json (100%) rename {new-api => heicode}/web/classic/package.json (100%) rename {new-api => heicode}/web/classic/postcss.config.js (100%) rename {new-api => heicode}/web/classic/public/azure_model_name.png (100%) rename {new-api => heicode}/web/classic/public/cover-4.webp (100%) rename {new-api => heicode}/web/classic/public/favicon.ico (100%) rename {new-api => heicode}/web/classic/public/logo.png (100%) rename {new-api => heicode}/web/classic/public/pay-apple.png (100%) rename {new-api => heicode}/web/classic/public/pay-card.png (100%) rename {new-api => heicode}/web/classic/public/pay-google.png (100%) rename {new-api => heicode}/web/classic/public/ratio.png (100%) rename {new-api => heicode}/web/classic/public/robots.txt (100%) rename {new-api => heicode}/web/classic/src/App.jsx (100%) rename {new-api => heicode}/web/classic/src/components/auth/LoginForm.jsx (100%) rename {new-api => heicode}/web/classic/src/components/auth/OAuth2Callback.jsx (100%) rename {new-api => heicode}/web/classic/src/components/auth/PasswordResetConfirm.jsx (100%) rename {new-api => heicode}/web/classic/src/components/auth/PasswordResetForm.jsx (100%) rename {new-api => heicode}/web/classic/src/components/auth/RegisterForm.jsx (100%) rename {new-api => heicode}/web/classic/src/components/auth/TwoFAVerification.jsx (100%) rename {new-api => heicode}/web/classic/src/components/common/DocumentRenderer/index.jsx (100%) rename {new-api => heicode}/web/classic/src/components/common/ErrorBoundary.jsx (100%) rename {new-api => heicode}/web/classic/src/components/common/examples/ChannelKeyViewExample.jsx (100%) rename {new-api => heicode}/web/classic/src/components/common/logo/LinuxDoIcon.jsx (100%) rename {new-api => heicode}/web/classic/src/components/common/logo/OIDCIcon.jsx (100%) rename {new-api => heicode}/web/classic/src/components/common/logo/WeChatIcon.jsx (100%) rename {new-api => heicode}/web/classic/src/components/common/markdown/MarkdownRenderer.jsx (100%) rename {new-api => heicode}/web/classic/src/components/common/markdown/markdown.css (100%) rename {new-api => heicode}/web/classic/src/components/common/modals/RiskAcknowledgementModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/common/modals/SecureVerificationModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/common/modals/TwoFactorAuthModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/common/ui/CardPro.jsx (100%) rename {new-api => heicode}/web/classic/src/components/common/ui/CardTable.jsx (100%) rename {new-api => heicode}/web/classic/src/components/common/ui/ChannelKeyDisplay.jsx (100%) rename {new-api => heicode}/web/classic/src/components/common/ui/CompactModeToggle.jsx (100%) rename {new-api => heicode}/web/classic/src/components/common/ui/JSONEditor.jsx (100%) rename {new-api => heicode}/web/classic/src/components/common/ui/Loading.jsx (100%) rename {new-api => heicode}/web/classic/src/components/common/ui/RenderUtils.jsx (100%) rename {new-api => heicode}/web/classic/src/components/common/ui/ScrollableContainer.jsx (100%) rename {new-api => heicode}/web/classic/src/components/common/ui/SelectableButtonGroup.jsx (100%) rename {new-api => heicode}/web/classic/src/components/dashboard/AnnouncementsPanel.jsx (100%) rename {new-api => heicode}/web/classic/src/components/dashboard/ApiInfoPanel.jsx (100%) rename {new-api => heicode}/web/classic/src/components/dashboard/ChartsPanel.jsx (100%) rename {new-api => heicode}/web/classic/src/components/dashboard/DashboardHeader.jsx (100%) rename {new-api => heicode}/web/classic/src/components/dashboard/FaqPanel.jsx (100%) rename {new-api => heicode}/web/classic/src/components/dashboard/StatsCards.jsx (100%) rename {new-api => heicode}/web/classic/src/components/dashboard/UptimePanel.jsx (100%) rename {new-api => heicode}/web/classic/src/components/dashboard/index.jsx (100%) rename {new-api => heicode}/web/classic/src/components/dashboard/modals/SearchModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/layout/Footer.jsx (97%) rename {new-api => heicode}/web/classic/src/components/layout/NoticeModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/layout/PageLayout.jsx (100%) rename {new-api => heicode}/web/classic/src/components/layout/SetupCheck.js (100%) rename {new-api => heicode}/web/classic/src/components/layout/SiderBar.jsx (100%) rename {new-api => heicode}/web/classic/src/components/layout/components/SkeletonWrapper.jsx (100%) rename {new-api => heicode}/web/classic/src/components/layout/headerbar/ActionButtons.jsx (100%) rename {new-api => heicode}/web/classic/src/components/layout/headerbar/HeaderLogo.jsx (100%) rename {new-api => heicode}/web/classic/src/components/layout/headerbar/LanguageSelector.jsx (100%) rename {new-api => heicode}/web/classic/src/components/layout/headerbar/MobileMenuButton.jsx (100%) rename {new-api => heicode}/web/classic/src/components/layout/headerbar/Navigation.jsx (100%) rename {new-api => heicode}/web/classic/src/components/layout/headerbar/NewYearButton.jsx (100%) rename {new-api => heicode}/web/classic/src/components/layout/headerbar/NotificationButton.jsx (100%) rename {new-api => heicode}/web/classic/src/components/layout/headerbar/ThemeToggle.jsx (100%) rename {new-api => heicode}/web/classic/src/components/layout/headerbar/UserArea.jsx (100%) rename {new-api => heicode}/web/classic/src/components/layout/headerbar/index.jsx (100%) rename {new-api => heicode}/web/classic/src/components/model-deployments/DeploymentAccessGuard.jsx (100%) rename {new-api => heicode}/web/classic/src/components/playground/ChatArea.jsx (100%) rename {new-api => heicode}/web/classic/src/components/playground/CodeViewer.jsx (100%) rename {new-api => heicode}/web/classic/src/components/playground/ConfigManager.jsx (100%) rename {new-api => heicode}/web/classic/src/components/playground/CustomInputRender.jsx (100%) rename {new-api => heicode}/web/classic/src/components/playground/CustomRequestEditor.jsx (100%) rename {new-api => heicode}/web/classic/src/components/playground/DebugPanel.jsx (100%) rename {new-api => heicode}/web/classic/src/components/playground/FloatingButtons.jsx (100%) rename {new-api => heicode}/web/classic/src/components/playground/ImageUrlInput.jsx (100%) rename {new-api => heicode}/web/classic/src/components/playground/MessageActions.jsx (100%) rename {new-api => heicode}/web/classic/src/components/playground/MessageContent.jsx (100%) rename {new-api => heicode}/web/classic/src/components/playground/OptimizedComponents.js (100%) rename {new-api => heicode}/web/classic/src/components/playground/ParameterControl.jsx (100%) rename {new-api => heicode}/web/classic/src/components/playground/SSEViewer.jsx (100%) rename {new-api => heicode}/web/classic/src/components/playground/SettingsPanel.jsx (100%) rename {new-api => heicode}/web/classic/src/components/playground/ThinkingContent.jsx (100%) rename {new-api => heicode}/web/classic/src/components/playground/configStorage.js (100%) rename {new-api => heicode}/web/classic/src/components/playground/index.js (100%) rename {new-api => heicode}/web/classic/src/components/settings/ChannelSelectorModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/settings/ChatsSetting.jsx (100%) rename {new-api => heicode}/web/classic/src/components/settings/CustomOAuthSetting.jsx (100%) rename {new-api => heicode}/web/classic/src/components/settings/DashboardSetting.jsx (100%) rename {new-api => heicode}/web/classic/src/components/settings/DrawingSetting.jsx (100%) rename {new-api => heicode}/web/classic/src/components/settings/HttpStatusCodeRulesInput.jsx (100%) rename {new-api => heicode}/web/classic/src/components/settings/ModelDeploymentSetting.jsx (100%) rename {new-api => heicode}/web/classic/src/components/settings/ModelSetting.jsx (100%) rename {new-api => heicode}/web/classic/src/components/settings/OperationSetting.jsx (100%) rename {new-api => heicode}/web/classic/src/components/settings/OtherSetting.jsx (98%) rename {new-api => heicode}/web/classic/src/components/settings/PaymentSetting.jsx (100%) rename {new-api => heicode}/web/classic/src/components/settings/PerformanceSetting.jsx (100%) rename {new-api => heicode}/web/classic/src/components/settings/PersonalSetting.jsx (100%) rename {new-api => heicode}/web/classic/src/components/settings/RateLimitSetting.jsx (100%) rename {new-api => heicode}/web/classic/src/components/settings/RatioSetting.jsx (100%) rename {new-api => heicode}/web/classic/src/components/settings/SystemSetting.jsx (99%) rename {new-api => heicode}/web/classic/src/components/settings/personal/cards/AccountManagement.jsx (100%) rename {new-api => heicode}/web/classic/src/components/settings/personal/cards/CheckinCalendar.jsx (100%) rename {new-api => heicode}/web/classic/src/components/settings/personal/cards/ModelsList.jsx (100%) rename {new-api => heicode}/web/classic/src/components/settings/personal/cards/NotificationSettings.jsx (100%) rename {new-api => heicode}/web/classic/src/components/settings/personal/cards/PreferencesSettings.jsx (100%) rename {new-api => heicode}/web/classic/src/components/settings/personal/components/TwoFASetting.jsx (100%) rename {new-api => heicode}/web/classic/src/components/settings/personal/components/UserInfoHeader.jsx (100%) rename {new-api => heicode}/web/classic/src/components/settings/personal/modals/AccountDeleteModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/settings/personal/modals/ChangePasswordModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/settings/personal/modals/EmailBindModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/settings/personal/modals/WeChatBindModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/setup/SetupWizard.jsx (100%) rename {new-api => heicode}/web/classic/src/components/setup/components/StepNavigation.jsx (100%) rename {new-api => heicode}/web/classic/src/components/setup/components/steps/AdminStep.jsx (100%) rename {new-api => heicode}/web/classic/src/components/setup/components/steps/CompleteStep.jsx (100%) rename {new-api => heicode}/web/classic/src/components/setup/components/steps/DatabaseStep.jsx (100%) rename {new-api => heicode}/web/classic/src/components/setup/components/steps/UsageModeStep.jsx (100%) rename {new-api => heicode}/web/classic/src/components/setup/index.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/channels/ChannelsActions.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/channels/ChannelsColumnDefs.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/channels/ChannelsFilters.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/channels/ChannelsTable.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/channels/ChannelsTabs.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/channels/index.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/channels/modals/BatchTagModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/channels/modals/ChannelUpstreamUpdateModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/channels/modals/CodexOAuthModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/channels/modals/CodexUsageModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/channels/modals/ColumnSelectorModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/channels/modals/EditChannelModal.jsx (99%) rename {new-api => heicode}/web/classic/src/components/table/channels/modals/EditTagModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/channels/modals/ModelSelectModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/channels/modals/ModelTestModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/channels/modals/MultiKeyManageModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/channels/modals/OllamaModelModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/channels/modals/ParamOverrideEditorModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/channels/modals/SingleModelSelectModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/channels/modals/StatusCodeRiskGuardModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/channels/modals/statusCodeRiskGuard.js (100%) rename {new-api => heicode}/web/classic/src/components/table/mj-logs/MjLogsActions.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/mj-logs/MjLogsColumnDefs.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/mj-logs/MjLogsFilters.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/mj-logs/MjLogsTable.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/mj-logs/index.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/mj-logs/modals/ColumnSelectorModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/mj-logs/modals/ContentModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/model-deployments/DeploymentsActions.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/model-deployments/DeploymentsColumnDefs.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/model-deployments/DeploymentsFilters.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/model-deployments/DeploymentsTable.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/model-deployments/index.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/model-deployments/modals/ColumnSelectorModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/model-deployments/modals/ConfirmationDialog.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/model-deployments/modals/CreateDeploymentModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/model-deployments/modals/EditDeploymentModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/model-deployments/modals/ExtendDurationModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/model-deployments/modals/UpdateConfigModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/model-deployments/modals/ViewDetailsModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/model-deployments/modals/ViewLogsModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/model-pricing/filter/PricingDisplaySettings.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/model-pricing/filter/PricingEndpointTypes.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/model-pricing/filter/PricingGroups.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/model-pricing/filter/PricingQuotaTypes.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/model-pricing/filter/PricingTags.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/model-pricing/filter/PricingVendors.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/model-pricing/layout/PricingPage.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/model-pricing/layout/PricingSidebar.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/model-pricing/layout/content/PricingContent.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/model-pricing/layout/content/PricingView.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/model-pricing/layout/header/PricingTopSection.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/model-pricing/layout/header/PricingVendorIntro.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/model-pricing/layout/header/PricingVendorIntroSkeleton.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/model-pricing/layout/header/PricingVendorIntroWithSkeleton.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/model-pricing/layout/header/SearchActions.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/model-pricing/modal/ModelDetailSideSheet.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/model-pricing/modal/PricingFilterModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/model-pricing/modal/components/DynamicPricingBreakdown.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/model-pricing/modal/components/FilterModalContent.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/model-pricing/modal/components/FilterModalFooter.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/model-pricing/modal/components/ModelBasicInfo.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/model-pricing/modal/components/ModelEndpoints.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/model-pricing/modal/components/ModelHeader.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/model-pricing/modal/components/ModelPricingTable.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/model-pricing/view/card/PricingCardSkeleton.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/model-pricing/view/card/PricingCardView.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/model-pricing/view/table/PricingTable.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/model-pricing/view/table/PricingTableColumns.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/models/ModelsActions.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/models/ModelsColumnDefs.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/models/ModelsDescription.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/models/ModelsFilters.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/models/ModelsTable.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/models/ModelsTabs.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/models/components/SelectionNotification.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/models/index.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/models/modals/EditModelModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/models/modals/EditPrefillGroupModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/models/modals/EditVendorModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/models/modals/MissingModelsModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/models/modals/PrefillGroupManagement.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/models/modals/SyncWizardModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/models/modals/UpstreamConflictModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/redemptions/RedemptionsActions.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/redemptions/RedemptionsColumnDefs.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/redemptions/RedemptionsDescription.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/redemptions/RedemptionsFilters.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/redemptions/RedemptionsTable.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/redemptions/index.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/redemptions/modals/DeleteRedemptionModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/redemptions/modals/EditRedemptionModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/subscriptions/SubscriptionsActions.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/subscriptions/SubscriptionsColumnDefs.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/subscriptions/SubscriptionsDescription.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/subscriptions/SubscriptionsTable.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/subscriptions/index.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/subscriptions/modals/AddEditSubscriptionModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/task-logs/TaskLogsActions.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/task-logs/TaskLogsColumnDefs.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/task-logs/TaskLogsFilters.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/task-logs/TaskLogsTable.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/task-logs/index.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/task-logs/modals/AudioPreviewModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/task-logs/modals/ColumnSelectorModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/task-logs/modals/ContentModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/tokens/TokensActions.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/tokens/TokensColumnDefs.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/tokens/TokensDescription.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/tokens/TokensFilters.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/tokens/TokensTable.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/tokens/index.jsx (97%) rename {new-api => heicode}/web/classic/src/components/table/tokens/modals/CCSwitchModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/tokens/modals/CopyTokensModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/tokens/modals/DeleteTokensModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/tokens/modals/EditTokenModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/usage-logs/UsageLogsActions.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/usage-logs/UsageLogsColumnDefs.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/usage-logs/UsageLogsFilters.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/usage-logs/UsageLogsTable.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/usage-logs/components/ParamOverrideEntry.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/usage-logs/index.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/usage-logs/modals/ChannelAffinityUsageCacheModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/usage-logs/modals/ColumnSelectorModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/usage-logs/modals/ParamOverrideModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/usage-logs/modals/UserInfoModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/users/UsersActions.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/users/UsersColumnDefs.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/users/UsersDescription.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/users/UsersFilters.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/users/UsersTable.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/users/index.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/users/modals/AddUserModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/users/modals/DeleteUserModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/users/modals/DemoteUserModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/users/modals/EditUserModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/users/modals/EnableDisableUserModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/users/modals/PromoteUserModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/users/modals/ResetPasskeyModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/users/modals/ResetTwoFAModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/users/modals/UserBindingManagementModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/table/users/modals/UserSubscriptionsModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/topup/InvitationCard.jsx (100%) rename {new-api => heicode}/web/classic/src/components/topup/RechargeCard.jsx (100%) rename {new-api => heicode}/web/classic/src/components/topup/SubscriptionPlansCard.jsx (100%) rename {new-api => heicode}/web/classic/src/components/topup/index.jsx (100%) rename {new-api => heicode}/web/classic/src/components/topup/modals/PaymentConfirmModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/topup/modals/SubscriptionPurchaseModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/topup/modals/TopupHistoryModal.jsx (100%) rename {new-api => heicode}/web/classic/src/components/topup/modals/TransferModal.jsx (100%) rename {new-api => heicode}/web/classic/src/constants/billing.constants.js (100%) rename {new-api => heicode}/web/classic/src/constants/channel-affinity-template.constants.js (100%) rename {new-api => heicode}/web/classic/src/constants/channel.constants.js (100%) rename {new-api => heicode}/web/classic/src/constants/common.constant.js (100%) rename {new-api => heicode}/web/classic/src/constants/console.constants.js (100%) rename {new-api => heicode}/web/classic/src/constants/dashboard.constants.js (100%) rename {new-api => heicode}/web/classic/src/constants/index.js (100%) rename {new-api => heicode}/web/classic/src/constants/playground.constants.js (100%) rename {new-api => heicode}/web/classic/src/constants/redemption.constants.js (100%) rename {new-api => heicode}/web/classic/src/constants/toast.constants.js (100%) rename {new-api => heicode}/web/classic/src/constants/user.constants.js (100%) rename {new-api => heicode}/web/classic/src/context/Status/index.jsx (100%) rename {new-api => heicode}/web/classic/src/context/Status/reducer.js (100%) rename {new-api => heicode}/web/classic/src/context/Theme/index.jsx (100%) rename {new-api => heicode}/web/classic/src/context/User/index.jsx (100%) rename {new-api => heicode}/web/classic/src/context/User/reducer.js (100%) rename {new-api => heicode}/web/classic/src/contexts/PlaygroundContext.jsx (100%) rename {new-api => heicode}/web/classic/src/helpers/api.js (100%) rename {new-api => heicode}/web/classic/src/helpers/auth.jsx (100%) rename {new-api => heicode}/web/classic/src/helpers/base64.js (100%) rename {new-api => heicode}/web/classic/src/helpers/boolean.js (100%) rename {new-api => heicode}/web/classic/src/helpers/dashboard.jsx (100%) rename {new-api => heicode}/web/classic/src/helpers/data.js (100%) rename {new-api => heicode}/web/classic/src/helpers/history.js (100%) rename {new-api => heicode}/web/classic/src/helpers/index.js (100%) rename {new-api => heicode}/web/classic/src/helpers/log.js (100%) rename {new-api => heicode}/web/classic/src/helpers/passkey.js (100%) rename {new-api => heicode}/web/classic/src/helpers/quota.js (100%) rename {new-api => heicode}/web/classic/src/helpers/render.jsx (100%) rename {new-api => heicode}/web/classic/src/helpers/secureApiCall.js (100%) rename {new-api => heicode}/web/classic/src/helpers/statusCodeRules.js (100%) rename {new-api => heicode}/web/classic/src/helpers/subscriptionFormat.js (100%) rename {new-api => heicode}/web/classic/src/helpers/token.js (100%) rename {new-api => heicode}/web/classic/src/helpers/utils.jsx (100%) rename {new-api => heicode}/web/classic/src/hooks/channels/upstreamUpdateUtils.js (100%) rename {new-api => heicode}/web/classic/src/hooks/channels/useChannelUpstreamUpdates.jsx (100%) rename {new-api => heicode}/web/classic/src/hooks/channels/useChannelsData.jsx (100%) rename {new-api => heicode}/web/classic/src/hooks/chat/useTokenKeys.js (100%) rename {new-api => heicode}/web/classic/src/hooks/common/useContainerWidth.js (100%) rename {new-api => heicode}/web/classic/src/hooks/common/useHeaderBar.js (100%) rename {new-api => heicode}/web/classic/src/hooks/common/useIsMobile.js (100%) rename {new-api => heicode}/web/classic/src/hooks/common/useMinimumLoadingTime.js (100%) rename {new-api => heicode}/web/classic/src/hooks/common/useNavigation.js (100%) rename {new-api => heicode}/web/classic/src/hooks/common/useNotifications.js (100%) rename {new-api => heicode}/web/classic/src/hooks/common/useSecureVerification.jsx (100%) rename {new-api => heicode}/web/classic/src/hooks/common/useSidebar.js (100%) rename {new-api => heicode}/web/classic/src/hooks/common/useSidebarCollapsed.js (100%) rename {new-api => heicode}/web/classic/src/hooks/common/useTableCompactMode.js (100%) rename {new-api => heicode}/web/classic/src/hooks/common/useUserPermissions.js (100%) rename {new-api => heicode}/web/classic/src/hooks/dashboard/useDashboardCharts.jsx (100%) rename {new-api => heicode}/web/classic/src/hooks/dashboard/useDashboardData.js (100%) rename {new-api => heicode}/web/classic/src/hooks/dashboard/useDashboardStats.jsx (100%) rename {new-api => heicode}/web/classic/src/hooks/mj-logs/useMjLogsData.js (100%) rename {new-api => heicode}/web/classic/src/hooks/model-deployments/useDeploymentResources.js (100%) rename {new-api => heicode}/web/classic/src/hooks/model-deployments/useDeploymentsData.jsx (100%) rename {new-api => heicode}/web/classic/src/hooks/model-deployments/useEnhancedDeploymentActions.jsx (100%) rename {new-api => heicode}/web/classic/src/hooks/model-deployments/useModelDeploymentSettings.js (100%) rename {new-api => heicode}/web/classic/src/hooks/model-pricing/useModelPricingData.jsx (100%) rename {new-api => heicode}/web/classic/src/hooks/model-pricing/usePricingFilterCounts.js (100%) rename {new-api => heicode}/web/classic/src/hooks/models/useModelsData.jsx (100%) rename {new-api => heicode}/web/classic/src/hooks/playground/useApiRequest.jsx (100%) rename {new-api => heicode}/web/classic/src/hooks/playground/useDataLoader.js (100%) rename {new-api => heicode}/web/classic/src/hooks/playground/useMessageActions.jsx (100%) rename {new-api => heicode}/web/classic/src/hooks/playground/useMessageEdit.jsx (100%) rename {new-api => heicode}/web/classic/src/hooks/playground/usePlaygroundState.js (100%) rename {new-api => heicode}/web/classic/src/hooks/playground/useSyncMessageAndCustomBody.js (100%) rename {new-api => heicode}/web/classic/src/hooks/redemptions/useRedemptionsData.jsx (100%) rename {new-api => heicode}/web/classic/src/hooks/subscriptions/useSubscriptionsData.jsx (100%) rename {new-api => heicode}/web/classic/src/hooks/task-logs/useTaskLogsData.js (100%) rename {new-api => heicode}/web/classic/src/hooks/tokens/useTokensData.jsx (99%) rename {new-api => heicode}/web/classic/src/hooks/usage-logs/useUsageLogsData.jsx (100%) rename {new-api => heicode}/web/classic/src/hooks/users/useUsersData.jsx (100%) rename {new-api => heicode}/web/classic/src/i18n/i18n.js (100%) rename {new-api => heicode}/web/classic/src/i18n/language.js (100%) rename {new-api => heicode}/web/classic/src/i18n/locales/en.json (99%) rename {new-api => heicode}/web/classic/src/i18n/locales/fr.json (99%) rename {new-api => heicode}/web/classic/src/i18n/locales/ja.json (99%) rename {new-api => heicode}/web/classic/src/i18n/locales/ru.json (99%) rename {new-api => heicode}/web/classic/src/i18n/locales/vi.json (99%) rename {new-api => heicode}/web/classic/src/i18n/locales/zh-CN.json (99%) rename {new-api => heicode}/web/classic/src/i18n/locales/zh-TW.json (99%) rename {new-api => heicode}/web/classic/src/i18n/locales/zh.json (99%) rename {new-api => heicode}/web/classic/src/index.css (100%) rename {new-api => heicode}/web/classic/src/index.jsx (97%) rename {new-api => heicode}/web/classic/src/pages/About/index.jsx (96%) rename {new-api => heicode}/web/classic/src/pages/Channel/index.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Chat/index.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Chat2Link/index.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Dashboard/index.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Forbidden/index.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Home/index.jsx (99%) rename {new-api => heicode}/web/classic/src/pages/Log/index.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Midjourney/index.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Model/index.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/ModelDeployment/index.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/NotFound/index.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Playground/index.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Pricing/index.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/PrivacyPolicy/index.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Redemption/index.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Setting/Chat/SettingsChats.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Setting/Dashboard/SettingsAPIInfo.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Setting/Dashboard/SettingsAnnouncements.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Setting/Dashboard/SettingsDataDashboard.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Setting/Dashboard/SettingsFAQ.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Setting/Dashboard/SettingsUptimeKuma.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Setting/Drawing/SettingsDrawing.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Setting/Model/SettingClaudeModel.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Setting/Model/SettingGeminiModel.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Setting/Model/SettingGlobalModel.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Setting/Model/SettingGrokModel.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Setting/Model/SettingModelDeployment.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Setting/Operation/SettingsChannelAffinity.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Setting/Operation/SettingsCheckin.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Setting/Operation/SettingsCreditLimit.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Setting/Operation/SettingsGeneral.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Setting/Operation/SettingsHeaderNavModules.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Setting/Operation/SettingsLog.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Setting/Operation/SettingsMonitoring.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Setting/Operation/SettingsSensitiveWords.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Setting/Operation/SettingsSidebarModulesAdmin.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Setting/Payment/SettingsGeneralPayment.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Setting/Payment/SettingsPaymentGateway.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Setting/Payment/SettingsPaymentGatewayCreem.jsx (99%) rename {new-api => heicode}/web/classic/src/pages/Setting/Payment/SettingsPaymentGatewayStripe.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Setting/Payment/SettingsPaymentGatewayWaffo.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Setting/Payment/SettingsPaymentGatewayWaffoPancake.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Setting/Performance/SettingsPerformance.jsx (99%) rename {new-api => heicode}/web/classic/src/pages/Setting/Personal/SettingsSidebarModulesUser.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Setting/RateLimit/SettingsRequestRateLimit.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Setting/Ratio/GroupRatioSettings.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Setting/Ratio/ModelPricingCombined.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Setting/Ratio/ModelRatioSettings.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Setting/Ratio/ModelRationNotSetEditor.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Setting/Ratio/ModelSettingsVisualEditor.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Setting/Ratio/ToolPriceSettings.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Setting/Ratio/UpstreamRatioSync.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Setting/Ratio/components/AutoGroupList.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Setting/Ratio/components/GroupGroupRatioRules.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Setting/Ratio/components/GroupSpecialUsableRules.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Setting/Ratio/components/GroupTable.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Setting/Ratio/components/ModelPricingEditor.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Setting/Ratio/components/TieredPricingEditor.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Setting/Ratio/components/requestRuleExpr.js (100%) rename {new-api => heicode}/web/classic/src/pages/Setting/Ratio/hooks/useModelPricingEditorState.js (100%) rename {new-api => heicode}/web/classic/src/pages/Setting/index.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Setup/index.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Subscription/index.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Task/index.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/Token/index.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/TopUp/index.js (100%) rename {new-api => heicode}/web/classic/src/pages/User/index.jsx (100%) rename {new-api => heicode}/web/classic/src/pages/UserAgreement/index.jsx (100%) rename {new-api => heicode}/web/classic/src/services/secureVerification.js (100%) rename {new-api => heicode}/web/classic/tailwind.config.js (100%) rename {new-api => heicode}/web/classic/vercel.json (100%) rename {new-api => heicode}/web/classic/vite.config.js (100%) rename {new-api => heicode}/web/default/.gitignore (100%) rename {new-api => heicode}/web/default/.node-version (100%) rename {new-api => heicode}/web/default/.npmrc (100%) rename {new-api => heicode}/web/default/.prettierignore (100%) rename {new-api => heicode}/web/default/.prettierrc (100%) rename {new-api => heicode}/web/default/AGENTS.md (100%) rename {new-api => heicode}/web/default/bun.lock (100%) rename {new-api => heicode}/web/default/components.json (100%) rename {new-api => heicode}/web/default/cz.yaml (100%) rename {new-api => heicode}/web/default/eslint.config.js (100%) rename {new-api => heicode}/web/default/index.html (100%) rename {new-api => heicode}/web/default/knip.config.ts (100%) rename {new-api => heicode}/web/default/netlify.toml (100%) rename {new-api => heicode}/web/default/package.json (100%) rename {new-api => heicode}/web/default/postcss.config.mjs (100%) rename {new-api => heicode}/web/default/public/favicon.ico (100%) rename {new-api => heicode}/web/default/public/heicode-logo.svg (100%) rename {new-api => heicode}/web/default/public/logo.png (100%) rename {new-api => heicode}/web/default/public/pay-apple.png (100%) rename {new-api => heicode}/web/default/public/pay-card.png (100%) rename {new-api => heicode}/web/default/public/pay-google.png (100%) rename {new-api => heicode}/web/default/rsbuild.config.ts (100%) rename {new-api => heicode}/web/default/scripts/sync-i18n.mjs (100%) rename {new-api => heicode}/web/default/src/assets/brand-icons/icon-discord.tsx (100%) rename {new-api => heicode}/web/default/src/assets/brand-icons/icon-docker.tsx (100%) rename {new-api => heicode}/web/default/src/assets/brand-icons/icon-facebook.tsx (100%) rename {new-api => heicode}/web/default/src/assets/brand-icons/icon-figma.tsx (100%) rename {new-api => heicode}/web/default/src/assets/brand-icons/icon-gitlab.tsx (100%) rename {new-api => heicode}/web/default/src/assets/brand-icons/icon-gmail.tsx (100%) rename {new-api => heicode}/web/default/src/assets/brand-icons/icon-linuxdo.tsx (100%) rename {new-api => heicode}/web/default/src/assets/brand-icons/icon-medium.tsx (100%) rename {new-api => heicode}/web/default/src/assets/brand-icons/icon-notion.tsx (100%) rename {new-api => heicode}/web/default/src/assets/brand-icons/icon-skype.tsx (100%) rename {new-api => heicode}/web/default/src/assets/brand-icons/icon-slack.tsx (100%) rename {new-api => heicode}/web/default/src/assets/brand-icons/icon-stripe.tsx (100%) rename {new-api => heicode}/web/default/src/assets/brand-icons/icon-telegram.tsx (100%) rename {new-api => heicode}/web/default/src/assets/brand-icons/icon-trello.tsx (100%) rename {new-api => heicode}/web/default/src/assets/brand-icons/icon-wechat.tsx (100%) rename {new-api => heicode}/web/default/src/assets/brand-icons/icon-whatsapp.tsx (100%) rename {new-api => heicode}/web/default/src/assets/brand-icons/icon-zoom.tsx (100%) rename {new-api => heicode}/web/default/src/assets/brand-icons/index.ts (100%) rename {new-api => heicode}/web/default/src/assets/clerk-full-logo.tsx (100%) rename {new-api => heicode}/web/default/src/assets/clerk-logo.tsx (100%) rename {new-api => heicode}/web/default/src/assets/custom/icon-dir.tsx (100%) rename {new-api => heicode}/web/default/src/assets/custom/icon-layout-compact.tsx (100%) rename {new-api => heicode}/web/default/src/assets/custom/icon-layout-default.tsx (100%) rename {new-api => heicode}/web/default/src/assets/custom/icon-layout-full.tsx (100%) rename {new-api => heicode}/web/default/src/assets/custom/icon-sidebar-floating.tsx (100%) rename {new-api => heicode}/web/default/src/assets/custom/icon-sidebar-inset.tsx (100%) rename {new-api => heicode}/web/default/src/assets/custom/icon-sidebar-sidebar.tsx (100%) rename {new-api => heicode}/web/default/src/assets/custom/icon-theme-dark.tsx (100%) rename {new-api => heicode}/web/default/src/assets/custom/icon-theme-light.tsx (100%) rename {new-api => heicode}/web/default/src/assets/custom/icon-theme-system.tsx (100%) rename {new-api => heicode}/web/default/src/assets/logo.tsx (100%) rename {new-api => heicode}/web/default/src/components/ai-elements/actions.tsx (100%) rename {new-api => heicode}/web/default/src/components/ai-elements/artifact.tsx (100%) rename {new-api => heicode}/web/default/src/components/ai-elements/branch.tsx (100%) rename {new-api => heicode}/web/default/src/components/ai-elements/canvas.tsx (100%) rename {new-api => heicode}/web/default/src/components/ai-elements/chain-of-thought.tsx (100%) rename {new-api => heicode}/web/default/src/components/ai-elements/code-block.tsx (100%) rename {new-api => heicode}/web/default/src/components/ai-elements/confirmation.tsx (100%) rename {new-api => heicode}/web/default/src/components/ai-elements/connection.tsx (100%) rename {new-api => heicode}/web/default/src/components/ai-elements/context.tsx (100%) rename {new-api => heicode}/web/default/src/components/ai-elements/controls.tsx (100%) rename {new-api => heicode}/web/default/src/components/ai-elements/conversation.tsx (100%) rename {new-api => heicode}/web/default/src/components/ai-elements/edge.tsx (100%) rename {new-api => heicode}/web/default/src/components/ai-elements/image.tsx (100%) rename {new-api => heicode}/web/default/src/components/ai-elements/inline-citation.tsx (100%) rename {new-api => heicode}/web/default/src/components/ai-elements/loader.tsx (100%) rename {new-api => heicode}/web/default/src/components/ai-elements/message.tsx (100%) rename {new-api => heicode}/web/default/src/components/ai-elements/node.tsx (100%) rename {new-api => heicode}/web/default/src/components/ai-elements/open-in-chat.tsx (100%) rename {new-api => heicode}/web/default/src/components/ai-elements/panel.tsx (100%) rename {new-api => heicode}/web/default/src/components/ai-elements/plan.tsx (100%) rename {new-api => heicode}/web/default/src/components/ai-elements/prompt-input.tsx (100%) rename {new-api => heicode}/web/default/src/components/ai-elements/queue.tsx (100%) rename {new-api => heicode}/web/default/src/components/ai-elements/reasoning.tsx (100%) rename {new-api => heicode}/web/default/src/components/ai-elements/response.tsx (100%) rename {new-api => heicode}/web/default/src/components/ai-elements/shimmer.tsx (100%) rename {new-api => heicode}/web/default/src/components/ai-elements/sources.tsx (100%) rename {new-api => heicode}/web/default/src/components/ai-elements/suggestion.tsx (100%) rename {new-api => heicode}/web/default/src/components/ai-elements/task.tsx (100%) rename {new-api => heicode}/web/default/src/components/ai-elements/tool.tsx (100%) rename {new-api => heicode}/web/default/src/components/ai-elements/toolbar.tsx (100%) rename {new-api => heicode}/web/default/src/components/ai-elements/web-preview.tsx (100%) rename {new-api => heicode}/web/default/src/components/animate-in-view.tsx (100%) rename {new-api => heicode}/web/default/src/components/auto-skeleton.tsx (100%) rename {new-api => heicode}/web/default/src/components/coming-soon.tsx (100%) rename {new-api => heicode}/web/default/src/components/command-menu.tsx (100%) rename {new-api => heicode}/web/default/src/components/config-drawer.tsx (100%) rename {new-api => heicode}/web/default/src/components/confirm-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/components/copy-button.tsx (100%) rename {new-api => heicode}/web/default/src/components/data-table/bulk-actions.tsx (100%) rename {new-api => heicode}/web/default/src/components/data-table/column-header.tsx (100%) rename {new-api => heicode}/web/default/src/components/data-table/faceted-filter.tsx (100%) rename {new-api => heicode}/web/default/src/components/data-table/index.ts (100%) rename {new-api => heicode}/web/default/src/components/data-table/mobile-card-list.tsx (100%) rename {new-api => heicode}/web/default/src/components/data-table/pagination.tsx (100%) rename {new-api => heicode}/web/default/src/components/data-table/table-empty.tsx (100%) rename {new-api => heicode}/web/default/src/components/data-table/table-skeleton.tsx (100%) rename {new-api => heicode}/web/default/src/components/data-table/toolbar.tsx (100%) rename {new-api => heicode}/web/default/src/components/data-table/view-options.tsx (100%) rename {new-api => heicode}/web/default/src/components/date-picker.tsx (100%) rename {new-api => heicode}/web/default/src/components/datetime-picker.tsx (100%) rename {new-api => heicode}/web/default/src/components/empty-state.tsx (100%) rename {new-api => heicode}/web/default/src/components/error-state.tsx (100%) rename {new-api => heicode}/web/default/src/components/json-editor.tsx (100%) rename {new-api => heicode}/web/default/src/components/language-switcher.tsx (100%) rename {new-api => heicode}/web/default/src/components/layout/components/app-header.tsx (100%) rename {new-api => heicode}/web/default/src/components/layout/components/app-sidebar.tsx (100%) rename {new-api => heicode}/web/default/src/components/layout/components/authenticated-layout.tsx (100%) rename {new-api => heicode}/web/default/src/components/layout/components/chat-presets-item.tsx (100%) rename {new-api => heicode}/web/default/src/components/layout/components/footer.tsx (100%) rename {new-api => heicode}/web/default/src/components/layout/components/glow.tsx (100%) rename {new-api => heicode}/web/default/src/components/layout/components/header-logo.tsx (100%) rename {new-api => heicode}/web/default/src/components/layout/components/header.tsx (100%) rename {new-api => heicode}/web/default/src/components/layout/components/logo.tsx (100%) rename {new-api => heicode}/web/default/src/components/layout/components/main.tsx (100%) rename {new-api => heicode}/web/default/src/components/layout/components/mobile-drawer.tsx (100%) rename {new-api => heicode}/web/default/src/components/layout/components/mockup.tsx (100%) rename {new-api => heicode}/web/default/src/components/layout/components/nav-group.tsx (100%) rename {new-api => heicode}/web/default/src/components/layout/components/nav-link-item.tsx (100%) rename {new-api => heicode}/web/default/src/components/layout/components/navbar.tsx (100%) rename {new-api => heicode}/web/default/src/components/layout/components/page-footer.tsx (100%) rename {new-api => heicode}/web/default/src/components/layout/components/public-header.tsx (100%) rename {new-api => heicode}/web/default/src/components/layout/components/public-layout.tsx (100%) rename {new-api => heicode}/web/default/src/components/layout/components/public-navigation.tsx (100%) rename {new-api => heicode}/web/default/src/components/layout/components/section-page-layout.tsx (100%) rename {new-api => heicode}/web/default/src/components/layout/components/section.tsx (100%) rename {new-api => heicode}/web/default/src/components/layout/components/tenant-bar.tsx (100%) rename {new-api => heicode}/web/default/src/components/layout/components/top-nav.tsx (100%) rename {new-api => heicode}/web/default/src/components/layout/components/workspace-switcher.tsx (100%) rename {new-api => heicode}/web/default/src/components/layout/config/system-settings.config.ts (100%) rename {new-api => heicode}/web/default/src/components/layout/config/top-nav.config.ts (100%) rename {new-api => heicode}/web/default/src/components/layout/constants.ts (100%) rename {new-api => heicode}/web/default/src/components/layout/context/workspace-context.tsx (100%) rename {new-api => heicode}/web/default/src/components/layout/index.ts (100%) rename {new-api => heicode}/web/default/src/components/layout/lib/url-utils.ts (100%) rename {new-api => heicode}/web/default/src/components/layout/lib/workspace-registry.example.ts (100%) rename {new-api => heicode}/web/default/src/components/layout/lib/workspace-registry.ts (100%) rename {new-api => heicode}/web/default/src/components/layout/types.ts (100%) rename {new-api => heicode}/web/default/src/components/learn-more.tsx (100%) rename {new-api => heicode}/web/default/src/components/loading-state.tsx (100%) rename {new-api => heicode}/web/default/src/components/long-text.tsx (100%) rename {new-api => heicode}/web/default/src/components/masked-value-display.tsx (100%) rename {new-api => heicode}/web/default/src/components/model-group-selector.tsx (100%) rename {new-api => heicode}/web/default/src/components/multi-select.tsx (100%) rename {new-api => heicode}/web/default/src/components/navigation-progress.tsx (100%) rename {new-api => heicode}/web/default/src/components/notification-button.tsx (100%) rename {new-api => heicode}/web/default/src/components/notification-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/components/page-transition.tsx (100%) rename {new-api => heicode}/web/default/src/components/password-input.tsx (100%) rename {new-api => heicode}/web/default/src/components/profile-dropdown.tsx (100%) rename {new-api => heicode}/web/default/src/components/search.tsx (100%) rename {new-api => heicode}/web/default/src/components/select-dropdown.tsx (100%) rename {new-api => heicode}/web/default/src/components/sign-out-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/components/skip-to-main.tsx (100%) rename {new-api => heicode}/web/default/src/components/state-shell.tsx (100%) rename {new-api => heicode}/web/default/src/components/status-badge.tsx (100%) rename {new-api => heicode}/web/default/src/components/tag-input.tsx (100%) rename {new-api => heicode}/web/default/src/components/theme-quick-switcher.tsx (100%) rename {new-api => heicode}/web/default/src/components/theme-switch.tsx (100%) rename {new-api => heicode}/web/default/src/components/turnstile.tsx (100%) rename {new-api => heicode}/web/default/src/components/ui/accordion.tsx (100%) rename {new-api => heicode}/web/default/src/components/ui/alert-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/components/ui/alert.tsx (100%) rename {new-api => heicode}/web/default/src/components/ui/avatar.tsx (100%) rename {new-api => heicode}/web/default/src/components/ui/badge.tsx (100%) rename {new-api => heicode}/web/default/src/components/ui/button.tsx (100%) rename {new-api => heicode}/web/default/src/components/ui/calendar.tsx (100%) rename {new-api => heicode}/web/default/src/components/ui/card.tsx (100%) rename {new-api => heicode}/web/default/src/components/ui/carousel.tsx (100%) rename {new-api => heicode}/web/default/src/components/ui/checkbox.tsx (100%) rename {new-api => heicode}/web/default/src/components/ui/collapsible.tsx (100%) rename {new-api => heicode}/web/default/src/components/ui/combobox-input.tsx (100%) rename {new-api => heicode}/web/default/src/components/ui/combobox.tsx (100%) rename {new-api => heicode}/web/default/src/components/ui/command.tsx (100%) rename {new-api => heicode}/web/default/src/components/ui/dialog.tsx (100%) rename {new-api => heicode}/web/default/src/components/ui/drawer.tsx (100%) rename {new-api => heicode}/web/default/src/components/ui/dropdown-menu.tsx (100%) rename {new-api => heicode}/web/default/src/components/ui/empty.tsx (100%) rename {new-api => heicode}/web/default/src/components/ui/form.tsx (100%) rename {new-api => heicode}/web/default/src/components/ui/hover-card.tsx (100%) rename {new-api => heicode}/web/default/src/components/ui/input-group.tsx (100%) rename {new-api => heicode}/web/default/src/components/ui/input-otp.tsx (100%) rename {new-api => heicode}/web/default/src/components/ui/input.tsx (100%) rename {new-api => heicode}/web/default/src/components/ui/label.tsx (100%) rename {new-api => heicode}/web/default/src/components/ui/markdown.tsx (100%) rename {new-api => heicode}/web/default/src/components/ui/popover.tsx (100%) rename {new-api => heicode}/web/default/src/components/ui/progress.tsx (100%) rename {new-api => heicode}/web/default/src/components/ui/radio-group.tsx (100%) rename {new-api => heicode}/web/default/src/components/ui/scroll-area.tsx (100%) rename {new-api => heicode}/web/default/src/components/ui/select.tsx (100%) rename {new-api => heicode}/web/default/src/components/ui/separator.tsx (100%) rename {new-api => heicode}/web/default/src/components/ui/sheet.tsx (100%) rename {new-api => heicode}/web/default/src/components/ui/sidebar.tsx (100%) rename {new-api => heicode}/web/default/src/components/ui/skeleton.tsx (100%) rename {new-api => heicode}/web/default/src/components/ui/sonner.tsx (100%) rename {new-api => heicode}/web/default/src/components/ui/switch.tsx (100%) rename {new-api => heicode}/web/default/src/components/ui/table.tsx (100%) rename {new-api => heicode}/web/default/src/components/ui/tabs.tsx (100%) rename {new-api => heicode}/web/default/src/components/ui/textarea.tsx (100%) rename {new-api => heicode}/web/default/src/components/ui/tooltip.tsx (100%) rename {new-api => heicode}/web/default/src/config/fonts.ts (100%) rename {new-api => heicode}/web/default/src/context/direction-provider.tsx (100%) rename {new-api => heicode}/web/default/src/context/font-provider.tsx (100%) rename {new-api => heicode}/web/default/src/context/layout-provider.tsx (100%) rename {new-api => heicode}/web/default/src/context/search-provider.tsx (100%) rename {new-api => heicode}/web/default/src/context/theme-provider.tsx (100%) rename {new-api => heicode}/web/default/src/env.d.ts (100%) rename {new-api => heicode}/web/default/src/features/about/api.ts (100%) rename {new-api => heicode}/web/default/src/features/about/index.tsx (100%) rename {new-api => heicode}/web/default/src/features/about/types.ts (100%) rename {new-api => heicode}/web/default/src/features/agnet-console/api.ts (100%) rename {new-api => heicode}/web/default/src/features/agnet-console/pages.tsx (100%) rename {new-api => heicode}/web/default/src/features/agnet-hub/index.tsx (100%) rename {new-api => heicode}/web/default/src/features/auth/api.ts (95%) rename {new-api => heicode}/web/default/src/features/auth/auth-layout.tsx (100%) rename {new-api => heicode}/web/default/src/features/auth/components/legal-consent.tsx (100%) rename {new-api => heicode}/web/default/src/features/auth/components/oauth-callback-screen.tsx (100%) rename {new-api => heicode}/web/default/src/features/auth/components/oauth-providers.tsx (100%) rename {new-api => heicode}/web/default/src/features/auth/components/terms-footer.tsx (100%) rename {new-api => heicode}/web/default/src/features/auth/constants.ts (100%) rename {new-api => heicode}/web/default/src/features/auth/forgot-password/components/forgot-password-form.tsx (100%) rename {new-api => heicode}/web/default/src/features/auth/forgot-password/index.tsx (100%) create mode 100644 heicode/web/default/src/features/auth/heicode-authenticated-session.ts rename {new-api => heicode}/web/default/src/features/auth/hooks/use-auth-redirect.ts (92%) rename {new-api => heicode}/web/default/src/features/auth/hooks/use-email-verification.ts (100%) rename {new-api => heicode}/web/default/src/features/auth/hooks/use-oauth-login.ts (100%) rename {new-api => heicode}/web/default/src/features/auth/hooks/use-turnstile.ts (100%) rename {new-api => heicode}/web/default/src/features/auth/index.ts (100%) rename {new-api => heicode}/web/default/src/features/auth/lib/oauth.ts (100%) rename {new-api => heicode}/web/default/src/features/auth/lib/storage.ts (100%) rename {new-api => heicode}/web/default/src/features/auth/lib/validation.ts (100%) rename {new-api => heicode}/web/default/src/features/auth/otp/components/otp-form.tsx (100%) rename {new-api => heicode}/web/default/src/features/auth/otp/index.tsx (100%) rename {new-api => heicode}/web/default/src/features/auth/passkey/api.ts (100%) rename {new-api => heicode}/web/default/src/features/auth/passkey/hooks/use-passkey-management.ts (100%) rename {new-api => heicode}/web/default/src/features/auth/passkey/index.ts (100%) rename {new-api => heicode}/web/default/src/features/auth/passkey/types.ts (100%) rename {new-api => heicode}/web/default/src/features/auth/reset-password-confirm/index.tsx (100%) rename {new-api => heicode}/web/default/src/features/auth/secure-verification/api.ts (100%) rename {new-api => heicode}/web/default/src/features/auth/secure-verification/components/secure-verification-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/auth/secure-verification/hooks/use-secure-verification.ts (100%) rename {new-api => heicode}/web/default/src/features/auth/secure-verification/index.ts (100%) rename {new-api => heicode}/web/default/src/features/auth/secure-verification/types.ts (100%) rename {new-api => heicode}/web/default/src/features/auth/sign-in/components/user-auth-form.tsx (100%) rename {new-api => heicode}/web/default/src/features/auth/sign-in/index.tsx (100%) rename {new-api => heicode}/web/default/src/features/auth/sign-up/components/sign-up-form.tsx (100%) rename {new-api => heicode}/web/default/src/features/auth/sign-up/index.tsx (100%) rename {new-api => heicode}/web/default/src/features/auth/types.ts (100%) rename {new-api => heicode}/web/default/src/features/channels/api.ts (100%) rename {new-api => heicode}/web/default/src/features/channels/components/channels-columns.tsx (100%) rename {new-api => heicode}/web/default/src/features/channels/components/channels-dialogs.tsx (100%) rename {new-api => heicode}/web/default/src/features/channels/components/channels-primary-buttons.tsx (100%) rename {new-api => heicode}/web/default/src/features/channels/components/channels-provider.tsx (100%) rename {new-api => heicode}/web/default/src/features/channels/components/channels-table.tsx (100%) rename {new-api => heicode}/web/default/src/features/channels/components/data-table-bulk-actions.tsx (100%) rename {new-api => heicode}/web/default/src/features/channels/components/data-table-row-actions.tsx (100%) rename {new-api => heicode}/web/default/src/features/channels/components/data-table-tag-row-actions.tsx (100%) rename {new-api => heicode}/web/default/src/features/channels/components/dialogs/balance-query-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/channels/components/dialogs/channel-test-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/channels/components/dialogs/codex-oauth-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/channels/components/dialogs/codex-usage-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/channels/components/dialogs/copy-channel-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/channels/components/dialogs/edit-tag-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/channels/components/dialogs/fetch-models-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/channels/components/dialogs/missing-models-confirmation-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/channels/components/dialogs/multi-key-manage-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/channels/components/dialogs/multi-key-statistics-card.tsx (100%) rename {new-api => heicode}/web/default/src/features/channels/components/dialogs/multi-key-table-row-actions.tsx (100%) rename {new-api => heicode}/web/default/src/features/channels/components/dialogs/ollama-models-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/channels/components/dialogs/status-code-risk-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/channels/components/dialogs/tag-batch-edit-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/channels/components/dialogs/upstream-update-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/channels/components/drawers/channel-mutate-drawer.tsx (100%) rename {new-api => heicode}/web/default/src/features/channels/components/model-mapping-editor.tsx (100%) rename {new-api => heicode}/web/default/src/features/channels/components/numeric-spinner-input.tsx (100%) rename {new-api => heicode}/web/default/src/features/channels/constants.ts (100%) rename {new-api => heicode}/web/default/src/features/channels/hooks/use-channel-upstream-updates.ts (100%) rename {new-api => heicode}/web/default/src/features/channels/index.tsx (100%) rename {new-api => heicode}/web/default/src/features/channels/lib/channel-actions.ts (100%) rename {new-api => heicode}/web/default/src/features/channels/lib/channel-form.ts (100%) rename {new-api => heicode}/web/default/src/features/channels/lib/channel-type-config.ts (100%) rename {new-api => heicode}/web/default/src/features/channels/lib/channel-utils.ts (100%) rename {new-api => heicode}/web/default/src/features/channels/lib/index.ts (100%) rename {new-api => heicode}/web/default/src/features/channels/lib/model-mapping-validation.ts (100%) rename {new-api => heicode}/web/default/src/features/channels/lib/multi-key-utils.ts (100%) rename {new-api => heicode}/web/default/src/features/channels/lib/ollama-utils.ts (100%) rename {new-api => heicode}/web/default/src/features/channels/lib/status-code-risk-guard.ts (100%) rename {new-api => heicode}/web/default/src/features/channels/lib/upstream-update-utils.ts (100%) rename {new-api => heicode}/web/default/src/features/channels/types.ts (100%) rename {new-api => heicode}/web/default/src/features/chat/hooks/use-active-chat-key.ts (100%) rename {new-api => heicode}/web/default/src/features/chat/hooks/use-chat-presets.ts (100%) rename {new-api => heicode}/web/default/src/features/chat/lib/chat-links.ts (98%) rename {new-api => heicode}/web/default/src/features/chat/lib/send-to-fluent.ts (83%) rename {new-api => heicode}/web/default/src/features/dashboard/api.ts (100%) rename {new-api => heicode}/web/default/src/features/dashboard/components/cockpit/index.tsx (100%) rename {new-api => heicode}/web/default/src/features/dashboard/components/models/consumption-distribution-chart.tsx (100%) rename {new-api => heicode}/web/default/src/features/dashboard/components/models/log-stat-cards.tsx (100%) rename {new-api => heicode}/web/default/src/features/dashboard/components/models/model-charts.tsx (100%) rename {new-api => heicode}/web/default/src/features/dashboard/components/models/models-filter-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/dashboard/components/overview/announcement-detail-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/dashboard/components/overview/announcements-panel.tsx (100%) rename {new-api => heicode}/web/default/src/features/dashboard/components/overview/api-info-item.tsx (100%) rename {new-api => heicode}/web/default/src/features/dashboard/components/overview/api-info-panel.tsx (100%) rename {new-api => heicode}/web/default/src/features/dashboard/components/overview/faq-panel.tsx (100%) rename {new-api => heicode}/web/default/src/features/dashboard/components/overview/summary-cards.tsx (100%) rename {new-api => heicode}/web/default/src/features/dashboard/components/overview/uptime-panel.tsx (100%) rename {new-api => heicode}/web/default/src/features/dashboard/components/ui/panel-wrapper.tsx (100%) rename {new-api => heicode}/web/default/src/features/dashboard/components/ui/stat-card.tsx (100%) rename {new-api => heicode}/web/default/src/features/dashboard/components/users/user-charts.tsx (100%) rename {new-api => heicode}/web/default/src/features/dashboard/constants.ts (100%) rename {new-api => heicode}/web/default/src/features/dashboard/hooks/use-dashboard-config.tsx (100%) rename {new-api => heicode}/web/default/src/features/dashboard/hooks/use-status-data.ts (100%) rename {new-api => heicode}/web/default/src/features/dashboard/index.tsx (100%) rename {new-api => heicode}/web/default/src/features/dashboard/lib/api-info.ts (100%) rename {new-api => heicode}/web/default/src/features/dashboard/lib/charts.ts (100%) rename {new-api => heicode}/web/default/src/features/dashboard/lib/filters.ts (100%) rename {new-api => heicode}/web/default/src/features/dashboard/lib/index.ts (100%) rename {new-api => heicode}/web/default/src/features/dashboard/lib/stats.ts (100%) rename {new-api => heicode}/web/default/src/features/dashboard/lib/text.ts (100%) rename {new-api => heicode}/web/default/src/features/dashboard/section-registry.tsx (100%) rename {new-api => heicode}/web/default/src/features/dashboard/types.ts (100%) rename {new-api => heicode}/web/default/src/features/errors/forbidden.tsx (100%) rename {new-api => heicode}/web/default/src/features/errors/general-error.tsx (100%) rename {new-api => heicode}/web/default/src/features/errors/maintenance-error.tsx (100%) rename {new-api => heicode}/web/default/src/features/errors/not-found-error.tsx (100%) rename {new-api => heicode}/web/default/src/features/errors/unauthorized-error.tsx (100%) rename {new-api => heicode}/web/default/src/features/home/api.ts (100%) rename {new-api => heicode}/web/default/src/features/home/components/connection-line.tsx (100%) rename {new-api => heicode}/web/default/src/features/home/components/feature-item.tsx (100%) rename {new-api => heicode}/web/default/src/features/home/components/gateway-card.tsx (100%) rename {new-api => heicode}/web/default/src/features/home/components/hero-buttons.tsx (100%) rename {new-api => heicode}/web/default/src/features/home/components/hero-terminal-demo.tsx (100%) rename {new-api => heicode}/web/default/src/features/home/components/icon-card.tsx (100%) rename {new-api => heicode}/web/default/src/features/home/components/index.ts (100%) rename {new-api => heicode}/web/default/src/features/home/components/scrolling-icons.tsx (100%) rename {new-api => heicode}/web/default/src/features/home/components/sections/cta.tsx (100%) rename {new-api => heicode}/web/default/src/features/home/components/sections/features.tsx (100%) rename {new-api => heicode}/web/default/src/features/home/components/sections/hero.tsx (100%) rename {new-api => heicode}/web/default/src/features/home/components/sections/how-it-works.tsx (100%) rename {new-api => heicode}/web/default/src/features/home/components/sections/stats.tsx (100%) rename {new-api => heicode}/web/default/src/features/home/components/stat-item.tsx (100%) rename {new-api => heicode}/web/default/src/features/home/constants.ts (100%) rename {new-api => heicode}/web/default/src/features/home/hooks/index.ts (100%) rename {new-api => heicode}/web/default/src/features/home/hooks/use-home-page-content.ts (100%) rename {new-api => heicode}/web/default/src/features/home/index.tsx (100%) rename {new-api => heicode}/web/default/src/features/home/lib/icon-mapper.tsx (100%) rename {new-api => heicode}/web/default/src/features/home/types.ts (100%) rename {new-api => heicode}/web/default/src/features/keys/api.ts (100%) rename {new-api => heicode}/web/default/src/features/keys/components/api-key-group-combobox.tsx (100%) rename {new-api => heicode}/web/default/src/features/keys/components/api-keys-cells.tsx (100%) rename {new-api => heicode}/web/default/src/features/keys/components/api-keys-columns.tsx (100%) rename {new-api => heicode}/web/default/src/features/keys/components/api-keys-delete-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/keys/components/api-keys-dialogs.tsx (100%) rename {new-api => heicode}/web/default/src/features/keys/components/api-keys-multi-delete-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/keys/components/api-keys-mutate-drawer.tsx (100%) rename {new-api => heicode}/web/default/src/features/keys/components/api-keys-primary-buttons.tsx (100%) rename {new-api => heicode}/web/default/src/features/keys/components/api-keys-provider.tsx (100%) rename {new-api => heicode}/web/default/src/features/keys/components/api-keys-table.tsx (100%) rename {new-api => heicode}/web/default/src/features/keys/components/data-table-bulk-actions.tsx (100%) rename {new-api => heicode}/web/default/src/features/keys/components/data-table-row-actions.tsx (100%) rename {new-api => heicode}/web/default/src/features/keys/components/dialogs/cc-switch-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/keys/constants.ts (100%) rename {new-api => heicode}/web/default/src/features/keys/index.tsx (100%) rename {new-api => heicode}/web/default/src/features/keys/lib/api-key-form.ts (100%) rename {new-api => heicode}/web/default/src/features/keys/lib/index.ts (100%) rename {new-api => heicode}/web/default/src/features/keys/types.ts (100%) rename {new-api => heicode}/web/default/src/features/legal/api.ts (100%) rename {new-api => heicode}/web/default/src/features/legal/index.ts (100%) rename {new-api => heicode}/web/default/src/features/legal/legal-document.tsx (100%) rename {new-api => heicode}/web/default/src/features/legal/privacy-policy.tsx (100%) rename {new-api => heicode}/web/default/src/features/legal/types.ts (100%) rename {new-api => heicode}/web/default/src/features/legal/user-agreement.tsx (100%) rename {new-api => heicode}/web/default/src/features/models/api.ts (100%) rename {new-api => heicode}/web/default/src/features/models/components/data-table-bulk-actions.tsx (100%) rename {new-api => heicode}/web/default/src/features/models/components/data-table-row-actions.tsx (100%) rename {new-api => heicode}/web/default/src/features/models/components/deployment-access-guard.tsx (100%) rename {new-api => heicode}/web/default/src/features/models/components/deployments-columns.tsx (100%) rename {new-api => heicode}/web/default/src/features/models/components/deployments-table.tsx (100%) rename {new-api => heicode}/web/default/src/features/models/components/description-cell.tsx (100%) rename {new-api => heicode}/web/default/src/features/models/components/dialogs/create-deployment-drawer.tsx (100%) rename {new-api => heicode}/web/default/src/features/models/components/dialogs/description-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/models/components/dialogs/extend-deployment-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/models/components/dialogs/missing-models-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/models/components/dialogs/prefill-group-management-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/models/components/dialogs/prefill-group-management.tsx (100%) rename {new-api => heicode}/web/default/src/features/models/components/dialogs/rename-deployment-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/models/components/dialogs/sync-wizard-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/models/components/dialogs/update-config-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/models/components/dialogs/upstream-conflict-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/models/components/dialogs/vendor-mutate-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/models/components/dialogs/view-details-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/models/components/dialogs/view-logs-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/models/components/drawers/model-mutate-drawer.tsx (100%) rename {new-api => heicode}/web/default/src/features/models/components/drawers/prefill-group-form-drawer.tsx (100%) rename {new-api => heicode}/web/default/src/features/models/components/models-columns.tsx (100%) rename {new-api => heicode}/web/default/src/features/models/components/models-dialogs.tsx (100%) rename {new-api => heicode}/web/default/src/features/models/components/models-primary-buttons.tsx (100%) rename {new-api => heicode}/web/default/src/features/models/components/models-provider.tsx (100%) rename {new-api => heicode}/web/default/src/features/models/components/models-table.tsx (100%) rename {new-api => heicode}/web/default/src/features/models/components/prefill-group-shared.ts (100%) rename {new-api => heicode}/web/default/src/features/models/constants.ts (100%) rename {new-api => heicode}/web/default/src/features/models/hooks/use-model-deployment-settings.ts (100%) rename {new-api => heicode}/web/default/src/features/models/index.tsx (100%) rename {new-api => heicode}/web/default/src/features/models/lib/deployments-utils.ts (100%) rename {new-api => heicode}/web/default/src/features/models/lib/index.ts (100%) rename {new-api => heicode}/web/default/src/features/models/lib/model-actions.ts (100%) rename {new-api => heicode}/web/default/src/features/models/lib/model-form.ts (100%) rename {new-api => heicode}/web/default/src/features/models/lib/model-utils.ts (100%) rename {new-api => heicode}/web/default/src/features/models/lib/query-keys.ts (100%) rename {new-api => heicode}/web/default/src/features/models/lib/vendor-actions.ts (100%) rename {new-api => heicode}/web/default/src/features/models/section-registry.tsx (100%) rename {new-api => heicode}/web/default/src/features/models/types.ts (100%) rename {new-api => heicode}/web/default/src/features/playground/api.ts (100%) rename {new-api => heicode}/web/default/src/features/playground/components/message-action-button.tsx (100%) rename {new-api => heicode}/web/default/src/features/playground/components/message-actions.tsx (100%) rename {new-api => heicode}/web/default/src/features/playground/components/message-error.tsx (100%) rename {new-api => heicode}/web/default/src/features/playground/components/playground-chat.tsx (100%) rename {new-api => heicode}/web/default/src/features/playground/components/playground-input.tsx (100%) rename {new-api => heicode}/web/default/src/features/playground/constants.ts (100%) rename {new-api => heicode}/web/default/src/features/playground/hooks/index.ts (100%) rename {new-api => heicode}/web/default/src/features/playground/hooks/use-chat-handler.ts (100%) rename {new-api => heicode}/web/default/src/features/playground/hooks/use-message-action-guard.ts (100%) rename {new-api => heicode}/web/default/src/features/playground/hooks/use-playground-state.ts (100%) rename {new-api => heicode}/web/default/src/features/playground/hooks/use-stream-request.ts (100%) rename {new-api => heicode}/web/default/src/features/playground/index.tsx (100%) rename {new-api => heicode}/web/default/src/features/playground/lib/index.ts (100%) rename {new-api => heicode}/web/default/src/features/playground/lib/message-styles.ts (100%) rename {new-api => heicode}/web/default/src/features/playground/lib/message-utils.ts (100%) rename {new-api => heicode}/web/default/src/features/playground/lib/payload-builder.ts (100%) rename {new-api => heicode}/web/default/src/features/playground/lib/storage.ts (100%) rename {new-api => heicode}/web/default/src/features/playground/types.ts (100%) rename {new-api => heicode}/web/default/src/features/pricing/api.ts (100%) rename {new-api => heicode}/web/default/src/features/pricing/components/dynamic-pricing-breakdown.tsx (100%) rename {new-api => heicode}/web/default/src/features/pricing/components/empty-state.tsx (100%) rename {new-api => heicode}/web/default/src/features/pricing/components/filter-bar.tsx (100%) rename {new-api => heicode}/web/default/src/features/pricing/components/index.ts (100%) rename {new-api => heicode}/web/default/src/features/pricing/components/loading-skeleton.tsx (100%) rename {new-api => heicode}/web/default/src/features/pricing/components/model-details.tsx (100%) rename {new-api => heicode}/web/default/src/features/pricing/components/model-row.tsx (100%) rename {new-api => heicode}/web/default/src/features/pricing/components/pricing-columns.tsx (100%) rename {new-api => heicode}/web/default/src/features/pricing/components/pricing-table.tsx (100%) rename {new-api => heicode}/web/default/src/features/pricing/components/search-bar.tsx (100%) rename {new-api => heicode}/web/default/src/features/pricing/components/virtual-model-list.tsx (100%) rename {new-api => heicode}/web/default/src/features/pricing/constants.ts (100%) rename {new-api => heicode}/web/default/src/features/pricing/hooks/index.ts (100%) rename {new-api => heicode}/web/default/src/features/pricing/hooks/use-filters.ts (100%) rename {new-api => heicode}/web/default/src/features/pricing/hooks/use-pricing-data.ts (100%) rename {new-api => heicode}/web/default/src/features/pricing/index.tsx (100%) rename {new-api => heicode}/web/default/src/features/pricing/lib/billing-expr.ts (100%) rename {new-api => heicode}/web/default/src/features/pricing/lib/filters.ts (100%) rename {new-api => heicode}/web/default/src/features/pricing/lib/index.ts (100%) rename {new-api => heicode}/web/default/src/features/pricing/lib/model-helpers.ts (100%) rename {new-api => heicode}/web/default/src/features/pricing/lib/price.ts (100%) rename {new-api => heicode}/web/default/src/features/pricing/lib/tier-expr.ts (100%) rename {new-api => heicode}/web/default/src/features/pricing/types.ts (100%) rename {new-api => heicode}/web/default/src/features/profile/api.ts (100%) rename {new-api => heicode}/web/default/src/features/profile/components/checkin-calendar-card.tsx (100%) rename {new-api => heicode}/web/default/src/features/profile/components/dialogs/access-token-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/profile/components/dialogs/change-password-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/profile/components/dialogs/delete-account-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/profile/components/dialogs/email-bind-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/profile/components/dialogs/telegram-bind-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/profile/components/dialogs/two-fa-backup-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/profile/components/dialogs/two-fa-disable-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/profile/components/dialogs/two-fa-setup-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/profile/components/dialogs/wechat-bind-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/profile/components/passkey-card.tsx (100%) rename {new-api => heicode}/web/default/src/features/profile/components/profile-header.tsx (100%) rename {new-api => heicode}/web/default/src/features/profile/components/profile-security-card.tsx (100%) rename {new-api => heicode}/web/default/src/features/profile/components/profile-settings-card.tsx (100%) rename {new-api => heicode}/web/default/src/features/profile/components/sidebar-modules-card.tsx (100%) rename {new-api => heicode}/web/default/src/features/profile/components/tabs/account-bindings-tab.tsx (100%) rename {new-api => heicode}/web/default/src/features/profile/components/tabs/notification-tab.tsx (100%) rename {new-api => heicode}/web/default/src/features/profile/components/two-fa-card.tsx (100%) rename {new-api => heicode}/web/default/src/features/profile/constants.ts (100%) rename {new-api => heicode}/web/default/src/features/profile/hooks/index.ts (100%) rename {new-api => heicode}/web/default/src/features/profile/hooks/use-access-token.ts (100%) rename {new-api => heicode}/web/default/src/features/profile/hooks/use-profile.ts (100%) rename {new-api => heicode}/web/default/src/features/profile/hooks/use-two-fa.ts (100%) rename {new-api => heicode}/web/default/src/features/profile/index.tsx (100%) rename {new-api => heicode}/web/default/src/features/profile/lib/format.ts (100%) rename {new-api => heicode}/web/default/src/features/profile/lib/index.ts (100%) rename {new-api => heicode}/web/default/src/features/profile/types.ts (100%) rename {new-api => heicode}/web/default/src/features/redemption-codes/api.ts (100%) rename {new-api => heicode}/web/default/src/features/redemption-codes/components/data-table-bulk-actions.tsx (100%) rename {new-api => heicode}/web/default/src/features/redemption-codes/components/data-table-row-actions.tsx (100%) rename {new-api => heicode}/web/default/src/features/redemption-codes/components/redemptions-columns.tsx (100%) rename {new-api => heicode}/web/default/src/features/redemption-codes/components/redemptions-delete-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/redemption-codes/components/redemptions-dialogs.tsx (100%) rename {new-api => heicode}/web/default/src/features/redemption-codes/components/redemptions-mutate-drawer.tsx (100%) rename {new-api => heicode}/web/default/src/features/redemption-codes/components/redemptions-primary-buttons.tsx (100%) rename {new-api => heicode}/web/default/src/features/redemption-codes/components/redemptions-provider.tsx (100%) rename {new-api => heicode}/web/default/src/features/redemption-codes/components/redemptions-table.tsx (100%) rename {new-api => heicode}/web/default/src/features/redemption-codes/constants.ts (100%) rename {new-api => heicode}/web/default/src/features/redemption-codes/index.tsx (100%) rename {new-api => heicode}/web/default/src/features/redemption-codes/lib/index.ts (100%) rename {new-api => heicode}/web/default/src/features/redemption-codes/lib/redemption-form.ts (100%) rename {new-api => heicode}/web/default/src/features/redemption-codes/lib/utils.ts (100%) rename {new-api => heicode}/web/default/src/features/redemption-codes/types.ts (100%) rename {new-api => heicode}/web/default/src/features/setup/api.ts (100%) rename {new-api => heicode}/web/default/src/features/setup/components/admin-step.tsx (100%) rename {new-api => heicode}/web/default/src/features/setup/components/complete-step.tsx (100%) rename {new-api => heicode}/web/default/src/features/setup/components/database-step.tsx (100%) rename {new-api => heicode}/web/default/src/features/setup/components/step-navigation.tsx (100%) rename {new-api => heicode}/web/default/src/features/setup/components/usage-mode-step.tsx (100%) rename {new-api => heicode}/web/default/src/features/setup/index.ts (100%) rename {new-api => heicode}/web/default/src/features/setup/setup-wizard.tsx (100%) rename {new-api => heicode}/web/default/src/features/setup/types.ts (100%) rename {new-api => heicode}/web/default/src/features/subscriptions/api.ts (100%) rename {new-api => heicode}/web/default/src/features/subscriptions/components/data-table-row-actions.tsx (100%) rename {new-api => heicode}/web/default/src/features/subscriptions/components/dialogs/subscription-purchase-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/subscriptions/components/dialogs/toggle-status-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/subscriptions/components/dialogs/user-subscriptions-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/subscriptions/components/subscriptions-columns.tsx (100%) rename {new-api => heicode}/web/default/src/features/subscriptions/components/subscriptions-dialogs.tsx (100%) rename {new-api => heicode}/web/default/src/features/subscriptions/components/subscriptions-mutate-drawer.tsx (100%) rename {new-api => heicode}/web/default/src/features/subscriptions/components/subscriptions-primary-buttons.tsx (100%) rename {new-api => heicode}/web/default/src/features/subscriptions/components/subscriptions-provider.tsx (100%) rename {new-api => heicode}/web/default/src/features/subscriptions/components/subscriptions-table.tsx (100%) rename {new-api => heicode}/web/default/src/features/subscriptions/constants.ts (100%) rename {new-api => heicode}/web/default/src/features/subscriptions/index.tsx (100%) rename {new-api => heicode}/web/default/src/features/subscriptions/lib/format.ts (100%) rename {new-api => heicode}/web/default/src/features/subscriptions/lib/index.ts (100%) rename {new-api => heicode}/web/default/src/features/subscriptions/lib/plan-form.ts (100%) rename {new-api => heicode}/web/default/src/features/subscriptions/types.ts (100%) rename {new-api => heicode}/web/default/src/features/system-settings/api.ts (100%) rename {new-api => heicode}/web/default/src/features/system-settings/auth/basic-auth-section.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/auth/bot-protection-section.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/auth/custom-oauth/api.ts (100%) rename {new-api => heicode}/web/default/src/features/system-settings/auth/custom-oauth/components/discovery-button.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/auth/custom-oauth/components/preset-selector.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/auth/custom-oauth/components/provider-form-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/auth/custom-oauth/components/provider-table.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/auth/custom-oauth/custom-oauth-section.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/auth/custom-oauth/hooks/use-custom-oauth-mutations.ts (100%) rename {new-api => heicode}/web/default/src/features/system-settings/auth/custom-oauth/hooks/use-custom-oauth-providers.ts (100%) rename {new-api => heicode}/web/default/src/features/system-settings/auth/custom-oauth/types.ts (100%) rename {new-api => heicode}/web/default/src/features/system-settings/auth/index.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/auth/oauth-section.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/auth/passkey-section.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/auth/section-registry.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/components/form-dirty-indicator.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/components/form-navigation-guard.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/components/settings-accordion.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/components/settings-card.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/components/settings-page.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/components/settings-section.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/content/announcements-section.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/content/api-info-section.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/content/chat-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/content/chat-settings-section.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/content/chat-settings-visual-editor.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/content/dashboard-section.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/content/drawing-settings-section.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/content/faq-section.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/content/index.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/content/json-toggle-section.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/content/section-registry.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/content/uptime-kuma-section.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/content/utils.ts (100%) rename {new-api => heicode}/web/default/src/features/system-settings/general/channel-affinity/api.ts (100%) rename {new-api => heicode}/web/default/src/features/system-settings/general/channel-affinity/cache-stats-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/general/channel-affinity/constants.ts (100%) rename {new-api => heicode}/web/default/src/features/system-settings/general/channel-affinity/index.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/general/channel-affinity/rule-editor-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/general/channel-affinity/types.ts (100%) rename {new-api => heicode}/web/default/src/features/system-settings/general/checkin-settings-section.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/general/index.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/general/pricing-section.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/general/quota-settings-section.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/general/section-registry.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/general/system-behavior-section.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/general/system-info-section.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/hooks/use-accordion-state.ts (100%) rename {new-api => heicode}/web/default/src/features/system-settings/hooks/use-form-dirty-guard.ts (100%) rename {new-api => heicode}/web/default/src/features/system-settings/hooks/use-reset-form.ts (100%) rename {new-api => heicode}/web/default/src/features/system-settings/hooks/use-safe-json-state.ts (100%) rename {new-api => heicode}/web/default/src/features/system-settings/hooks/use-settings-form.ts (100%) rename {new-api => heicode}/web/default/src/features/system-settings/hooks/use-system-options.ts (100%) rename {new-api => heicode}/web/default/src/features/system-settings/hooks/use-update-option.ts (100%) rename {new-api => heicode}/web/default/src/features/system-settings/index.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/integrations/amount-discount-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/integrations/amount-discount-visual-editor.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/integrations/amount-options-visual-editor.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/integrations/creem-product-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/integrations/creem-products-visual-editor.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/integrations/email-settings-section.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/integrations/index.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/integrations/ionet-deployment-settings-section.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/integrations/monitoring-settings-section.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/integrations/payment-method-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/integrations/payment-methods-visual-editor.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/integrations/payment-settings-section.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/integrations/section-registry.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/integrations/utils.ts (100%) rename {new-api => heicode}/web/default/src/features/system-settings/integrations/waffo-pancake-settings-section.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/integrations/waffo-settings-section.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/integrations/worker-settings-section.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/maintenance/config.ts (100%) rename {new-api => heicode}/web/default/src/features/system-settings/maintenance/header-navigation-section.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/maintenance/index.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/maintenance/log-settings-section.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/maintenance/notice-section.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/maintenance/performance-section.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/maintenance/section-registry.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/maintenance/sidebar-modules-section.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/maintenance/update-checker-section.tsx (97%) rename {new-api => heicode}/web/default/src/features/system-settings/models/channel-selector-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/models/claude-settings-card.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/models/conflict-confirm-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/models/constants.ts (100%) rename {new-api => heicode}/web/default/src/features/system-settings/models/gemini-settings-card.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/models/global-settings-card.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/models/grok-settings-card.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/models/group-ratio-form.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/models/group-ratio-visual-editor.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/models/group-special-usable-editor.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/models/index.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/models/model-ratio-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/models/model-ratio-form.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/models/model-ratio-visual-editor.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/models/ratio-settings-card.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/models/section-registry.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/models/tiered-pricing-editor.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/models/tool-price-settings.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/models/upstream-ratio-sync-columns.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/models/upstream-ratio-sync-helpers.ts (100%) rename {new-api => heicode}/web/default/src/features/system-settings/models/upstream-ratio-sync-table.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/models/upstream-ratio-sync.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/models/utils.ts (100%) rename {new-api => heicode}/web/default/src/features/system-settings/request-limits/index.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/request-limits/rate-limit-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/request-limits/rate-limit-section.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/request-limits/rate-limit-visual-editor.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/request-limits/section-registry.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/request-limits/sensitive-words-section.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/request-limits/ssrf-section.tsx (100%) rename {new-api => heicode}/web/default/src/features/system-settings/types.ts (100%) rename {new-api => heicode}/web/default/src/features/system-settings/utils/json-parser.ts (100%) rename {new-api => heicode}/web/default/src/features/system-settings/utils/json-validators.ts (100%) rename {new-api => heicode}/web/default/src/features/system-settings/utils/route-config.ts (100%) rename {new-api => heicode}/web/default/src/features/system-settings/utils/section-registry.ts (100%) rename {new-api => heicode}/web/default/src/features/usage-logs/api.ts (100%) rename {new-api => heicode}/web/default/src/features/usage-logs/components/columns/column-helpers.tsx (100%) rename {new-api => heicode}/web/default/src/features/usage-logs/components/columns/common-logs-columns.tsx (100%) rename {new-api => heicode}/web/default/src/features/usage-logs/components/columns/drawing-logs-columns.tsx (100%) rename {new-api => heicode}/web/default/src/features/usage-logs/components/columns/task-logs-columns.tsx (100%) rename {new-api => heicode}/web/default/src/features/usage-logs/components/common-logs-filter-bar.tsx (100%) rename {new-api => heicode}/web/default/src/features/usage-logs/components/common-logs-stats.tsx (100%) rename {new-api => heicode}/web/default/src/features/usage-logs/components/compact-date-time-range-picker.tsx (100%) rename {new-api => heicode}/web/default/src/features/usage-logs/components/dialogs/audio-preview-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/usage-logs/components/dialogs/details-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/usage-logs/components/dialogs/fail-reason-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/usage-logs/components/dialogs/filter-components.tsx (100%) rename {new-api => heicode}/web/default/src/features/usage-logs/components/dialogs/image-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/usage-logs/components/dialogs/prompt-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/usage-logs/components/dialogs/usage-logs-filter-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/usage-logs/components/dialogs/user-info-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/usage-logs/components/model-badge.tsx (100%) rename {new-api => heicode}/web/default/src/features/usage-logs/components/usage-logs-primary-buttons.tsx (100%) rename {new-api => heicode}/web/default/src/features/usage-logs/components/usage-logs-provider.tsx (100%) rename {new-api => heicode}/web/default/src/features/usage-logs/components/usage-logs-table.tsx (100%) rename {new-api => heicode}/web/default/src/features/usage-logs/constants.ts (100%) rename {new-api => heicode}/web/default/src/features/usage-logs/index.tsx (100%) rename {new-api => heicode}/web/default/src/features/usage-logs/lib/avatar-color.ts (100%) rename {new-api => heicode}/web/default/src/features/usage-logs/lib/columns.ts (100%) rename {new-api => heicode}/web/default/src/features/usage-logs/lib/filter.ts (100%) rename {new-api => heicode}/web/default/src/features/usage-logs/lib/format.ts (100%) rename {new-api => heicode}/web/default/src/features/usage-logs/lib/index.ts (100%) rename {new-api => heicode}/web/default/src/features/usage-logs/lib/mappers.ts (100%) rename {new-api => heicode}/web/default/src/features/usage-logs/lib/status.ts (100%) rename {new-api => heicode}/web/default/src/features/usage-logs/lib/utils.ts (100%) rename {new-api => heicode}/web/default/src/features/usage-logs/section-registry.tsx (100%) rename {new-api => heicode}/web/default/src/features/usage-logs/types.ts (100%) rename {new-api => heicode}/web/default/src/features/users/api.ts (100%) rename {new-api => heicode}/web/default/src/features/users/components/data-table-bulk-actions.tsx (100%) rename {new-api => heicode}/web/default/src/features/users/components/data-table-row-actions.tsx (100%) rename {new-api => heicode}/web/default/src/features/users/components/dialogs/user-binding-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/users/components/user-quota-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/users/components/users-columns.tsx (100%) rename {new-api => heicode}/web/default/src/features/users/components/users-delete-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/users/components/users-mutate-drawer.tsx (100%) rename {new-api => heicode}/web/default/src/features/users/components/users-primary-buttons.tsx (100%) rename {new-api => heicode}/web/default/src/features/users/components/users-provider.tsx (100%) rename {new-api => heicode}/web/default/src/features/users/components/users-table.tsx (100%) rename {new-api => heicode}/web/default/src/features/users/constants.ts (100%) rename {new-api => heicode}/web/default/src/features/users/index.tsx (100%) rename {new-api => heicode}/web/default/src/features/users/lib/index.ts (100%) rename {new-api => heicode}/web/default/src/features/users/lib/user-actions.ts (100%) rename {new-api => heicode}/web/default/src/features/users/lib/user-form.ts (100%) rename {new-api => heicode}/web/default/src/features/users/types.ts (100%) rename {new-api => heicode}/web/default/src/features/wallet/api.ts (100%) rename {new-api => heicode}/web/default/src/features/wallet/components/affiliate-rewards-card.tsx (100%) rename {new-api => heicode}/web/default/src/features/wallet/components/creem-products-section.tsx (100%) rename {new-api => heicode}/web/default/src/features/wallet/components/dialogs/billing-history-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/wallet/components/dialogs/creem-confirm-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/wallet/components/dialogs/payment-confirm-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/wallet/components/dialogs/transfer-dialog.tsx (100%) rename {new-api => heicode}/web/default/src/features/wallet/components/recharge-form-card.tsx (100%) rename {new-api => heicode}/web/default/src/features/wallet/components/subscription-plans-card.tsx (100%) rename {new-api => heicode}/web/default/src/features/wallet/components/wallet-stats-card.tsx (100%) rename {new-api => heicode}/web/default/src/features/wallet/constants.ts (100%) rename {new-api => heicode}/web/default/src/features/wallet/hooks/index.ts (100%) rename {new-api => heicode}/web/default/src/features/wallet/hooks/use-affiliate.ts (100%) rename {new-api => heicode}/web/default/src/features/wallet/hooks/use-billing-history.ts (100%) rename {new-api => heicode}/web/default/src/features/wallet/hooks/use-creem-payment.ts (100%) rename {new-api => heicode}/web/default/src/features/wallet/hooks/use-payment.ts (100%) rename {new-api => heicode}/web/default/src/features/wallet/hooks/use-redemption.ts (100%) rename {new-api => heicode}/web/default/src/features/wallet/hooks/use-topup-info.ts (100%) rename {new-api => heicode}/web/default/src/features/wallet/hooks/use-waffo-pancake-payment.ts (100%) rename {new-api => heicode}/web/default/src/features/wallet/hooks/use-waffo-payment.ts (100%) rename {new-api => heicode}/web/default/src/features/wallet/index.tsx (100%) rename {new-api => heicode}/web/default/src/features/wallet/lib/affiliate.ts (100%) rename {new-api => heicode}/web/default/src/features/wallet/lib/billing.ts (100%) rename {new-api => heicode}/web/default/src/features/wallet/lib/format.ts (100%) rename {new-api => heicode}/web/default/src/features/wallet/lib/index.ts (100%) rename {new-api => heicode}/web/default/src/features/wallet/lib/payment.ts (100%) rename {new-api => heicode}/web/default/src/features/wallet/lib/ui.tsx (100%) rename {new-api => heicode}/web/default/src/features/wallet/types.ts (100%) rename {new-api => heicode}/web/default/src/hooks/index.ts (100%) rename {new-api => heicode}/web/default/src/hooks/use-admin.ts (100%) rename {new-api => heicode}/web/default/src/hooks/use-copy-to-clipboard.ts (100%) rename {new-api => heicode}/web/default/src/hooks/use-countdown.ts (100%) rename {new-api => heicode}/web/default/src/hooks/use-debounce.ts (100%) rename {new-api => heicode}/web/default/src/hooks/use-dialog.ts (100%) rename {new-api => heicode}/web/default/src/hooks/use-hidden-click-unlock.ts (100%) rename {new-api => heicode}/web/default/src/hooks/use-media-query.ts (100%) rename {new-api => heicode}/web/default/src/hooks/use-minimum-loading-time.ts (100%) rename {new-api => heicode}/web/default/src/hooks/use-mobile.tsx (100%) rename {new-api => heicode}/web/default/src/hooks/use-notifications.ts (100%) rename {new-api => heicode}/web/default/src/hooks/use-sidebar-config.ts (100%) rename {new-api => heicode}/web/default/src/hooks/use-sidebar-data.ts (100%) rename {new-api => heicode}/web/default/src/hooks/use-status.ts (100%) rename {new-api => heicode}/web/default/src/hooks/use-system-config.ts (100%) rename {new-api => heicode}/web/default/src/hooks/use-table-compact-mode.ts (100%) rename {new-api => heicode}/web/default/src/hooks/use-table-url-state.ts (100%) rename {new-api => heicode}/web/default/src/hooks/use-top-nav-links.ts (100%) rename {new-api => heicode}/web/default/src/hooks/use-user-display.ts (100%) rename {new-api => heicode}/web/default/src/i18n/config.ts (100%) rename {new-api => heicode}/web/default/src/i18n/locales/_reports/_sync-report.json (100%) rename {new-api => heicode}/web/default/src/i18n/locales/_reports/fr.untranslated.json (100%) rename {new-api => heicode}/web/default/src/i18n/locales/_reports/ja.untranslated.json (97%) rename {new-api => heicode}/web/default/src/i18n/locales/_reports/ru.untranslated.json (97%) rename {new-api => heicode}/web/default/src/i18n/locales/_reports/vi.untranslated.json (100%) rename {new-api => heicode}/web/default/src/i18n/locales/_reports/zh.untranslated.json (98%) rename {new-api => heicode}/web/default/src/i18n/locales/en.json (99%) rename {new-api => heicode}/web/default/src/i18n/locales/fr.json (99%) rename {new-api => heicode}/web/default/src/i18n/locales/ja.json (99%) rename {new-api => heicode}/web/default/src/i18n/locales/ru.json (99%) rename {new-api => heicode}/web/default/src/i18n/locales/vi.json (99%) rename {new-api => heicode}/web/default/src/i18n/locales/zh.json (99%) rename {new-api => heicode}/web/default/src/i18n/static-keys.ts (100%) rename {new-api => heicode}/web/default/src/lib/api.ts (100%) rename {new-api => heicode}/web/default/src/lib/brand.ts (100%) rename {new-api => heicode}/web/default/src/lib/colors.ts (100%) rename {new-api => heicode}/web/default/src/lib/constants.ts (100%) rename {new-api => heicode}/web/default/src/lib/cookies.ts (100%) rename {new-api => heicode}/web/default/src/lib/copy-to-clipboard.ts (100%) rename {new-api => heicode}/web/default/src/lib/currency.ts (100%) rename {new-api => heicode}/web/default/src/lib/dayjs.ts (100%) rename {new-api => heicode}/web/default/src/lib/dom-utils.ts (100%) rename {new-api => heicode}/web/default/src/lib/format.ts (100%) rename {new-api => heicode}/web/default/src/lib/handle-server-error.ts (100%) rename {new-api => heicode}/web/default/src/lib/http-status-code-rules.ts (100%) rename {new-api => heicode}/web/default/src/lib/lobe-icon.tsx (100%) rename {new-api => heicode}/web/default/src/lib/motion.ts (100%) rename {new-api => heicode}/web/default/src/lib/oauth.ts (100%) rename {new-api => heicode}/web/default/src/lib/passkey.ts (100%) rename {new-api => heicode}/web/default/src/lib/roles.ts (100%) rename {new-api => heicode}/web/default/src/lib/secure-verification.ts (100%) rename {new-api => heicode}/web/default/src/lib/show-submitted-data.tsx (100%) rename {new-api => heicode}/web/default/src/lib/time.ts (100%) rename {new-api => heicode}/web/default/src/lib/utils.ts (100%) rename {new-api => heicode}/web/default/src/lib/vchart.ts (100%) rename {new-api => heicode}/web/default/src/main.tsx (96%) rename {new-api => heicode}/web/default/src/routeTree.gen.ts (100%) rename {new-api => heicode}/web/default/src/routes/(auth)/forgot-password.tsx (100%) rename {new-api => heicode}/web/default/src/routes/(auth)/oauth.tsx (100%) rename {new-api => heicode}/web/default/src/routes/(auth)/otp.tsx (100%) rename {new-api => heicode}/web/default/src/routes/(auth)/reset.tsx (100%) rename {new-api => heicode}/web/default/src/routes/(auth)/route.tsx (100%) rename {new-api => heicode}/web/default/src/routes/(auth)/sign-in.tsx (100%) rename {new-api => heicode}/web/default/src/routes/(auth)/sign-up.tsx (100%) rename {new-api => heicode}/web/default/src/routes/(auth)/user/reset.tsx (100%) rename {new-api => heicode}/web/default/src/routes/(errors)/401.tsx (100%) rename {new-api => heicode}/web/default/src/routes/(errors)/403.tsx (100%) rename {new-api => heicode}/web/default/src/routes/(errors)/404.tsx (100%) rename {new-api => heicode}/web/default/src/routes/(errors)/500.tsx (100%) rename {new-api => heicode}/web/default/src/routes/(errors)/503.tsx (100%) rename {new-api => heicode}/web/default/src/routes/__root.tsx (100%) rename {new-api => heicode}/web/default/src/routes/_authenticated/agents/index.tsx (100%) rename {new-api => heicode}/web/default/src/routes/_authenticated/audit/index.tsx (100%) rename {new-api => heicode}/web/default/src/routes/_authenticated/channels/index.tsx (100%) rename {new-api => heicode}/web/default/src/routes/_authenticated/chat/$chatId.tsx (100%) rename {new-api => heicode}/web/default/src/routes/_authenticated/chat2link.tsx (100%) rename {new-api => heicode}/web/default/src/routes/_authenticated/dashboard/$section.tsx (100%) rename {new-api => heicode}/web/default/src/routes/_authenticated/dashboard/index.tsx (100%) rename {new-api => heicode}/web/default/src/routes/_authenticated/deployments/index.tsx (100%) rename {new-api => heicode}/web/default/src/routes/_authenticated/errors/$error.tsx (100%) rename {new-api => heicode}/web/default/src/routes/_authenticated/events/index.tsx (100%) rename {new-api => heicode}/web/default/src/routes/_authenticated/keys/index.tsx (100%) rename {new-api => heicode}/web/default/src/routes/_authenticated/models/$section.tsx (100%) rename {new-api => heicode}/web/default/src/routes/_authenticated/models/index.tsx (100%) rename {new-api => heicode}/web/default/src/routes/_authenticated/playground/index.tsx (100%) rename {new-api => heicode}/web/default/src/routes/_authenticated/profile/index.tsx (100%) rename {new-api => heicode}/web/default/src/routes/_authenticated/redemption-codes/index.tsx (100%) create mode 100644 heicode/web/default/src/routes/_authenticated/route.tsx rename {new-api => heicode}/web/default/src/routes/_authenticated/sk-sources/index.tsx (100%) rename {new-api => heicode}/web/default/src/routes/_authenticated/subscriptions/index.tsx (100%) rename {new-api => heicode}/web/default/src/routes/_authenticated/system-settings/auth/$section.tsx (100%) rename {new-api => heicode}/web/default/src/routes/_authenticated/system-settings/auth/index.tsx (100%) rename {new-api => heicode}/web/default/src/routes/_authenticated/system-settings/content/$section.tsx (100%) rename {new-api => heicode}/web/default/src/routes/_authenticated/system-settings/content/index.tsx (100%) rename {new-api => heicode}/web/default/src/routes/_authenticated/system-settings/general/$section.tsx (100%) rename {new-api => heicode}/web/default/src/routes/_authenticated/system-settings/general/index.tsx (100%) rename {new-api => heicode}/web/default/src/routes/_authenticated/system-settings/index.tsx (100%) rename {new-api => heicode}/web/default/src/routes/_authenticated/system-settings/integrations/$section.tsx (100%) rename {new-api => heicode}/web/default/src/routes/_authenticated/system-settings/integrations/index.tsx (100%) rename {new-api => heicode}/web/default/src/routes/_authenticated/system-settings/maintenance/$section.tsx (100%) rename {new-api => heicode}/web/default/src/routes/_authenticated/system-settings/maintenance/index.tsx (100%) rename {new-api => heicode}/web/default/src/routes/_authenticated/system-settings/models/$section.tsx (100%) rename {new-api => heicode}/web/default/src/routes/_authenticated/system-settings/models/index.tsx (100%) rename {new-api => heicode}/web/default/src/routes/_authenticated/system-settings/request-limits/$section.tsx (100%) rename {new-api => heicode}/web/default/src/routes/_authenticated/system-settings/request-limits/index.tsx (100%) rename {new-api => heicode}/web/default/src/routes/_authenticated/system-settings/route.tsx (100%) rename {new-api => heicode}/web/default/src/routes/_authenticated/templates/index.tsx (100%) rename {new-api => heicode}/web/default/src/routes/_authenticated/usage-logs/$section.tsx (100%) rename {new-api => heicode}/web/default/src/routes/_authenticated/usage-logs/index.tsx (100%) rename {new-api => heicode}/web/default/src/routes/_authenticated/users/index.tsx (100%) rename {new-api => heicode}/web/default/src/routes/_authenticated/wallet/index.tsx (100%) rename {new-api => heicode}/web/default/src/routes/about/index.tsx (100%) rename {new-api => heicode}/web/default/src/routes/index.tsx (100%) rename {new-api => heicode}/web/default/src/routes/oauth/$provider.tsx (100%) rename {new-api => heicode}/web/default/src/routes/pricing/$modelId/index.tsx (100%) rename {new-api => heicode}/web/default/src/routes/pricing/index.tsx (100%) rename {new-api => heicode}/web/default/src/routes/privacy-policy.tsx (100%) rename {new-api => heicode}/web/default/src/routes/setup/index.tsx (100%) rename {new-api => heicode}/web/default/src/routes/user-agreement.tsx (100%) rename {new-api => heicode}/web/default/src/stores/auth-store.ts (100%) rename {new-api => heicode}/web/default/src/stores/notification-store.ts (100%) rename {new-api => heicode}/web/default/src/stores/system-config-store.ts (100%) rename {new-api => heicode}/web/default/src/styles/index.css (100%) rename {new-api => heicode}/web/default/src/styles/theme.css (100%) rename {new-api => heicode}/web/default/src/styles/tokens.css (100%) rename {new-api => heicode}/web/default/src/tanstack-table.d.ts (100%) rename {new-api => heicode}/web/default/tsconfig.app.json (100%) rename {new-api => heicode}/web/default/tsconfig.json (100%) rename {new-api => heicode}/web/default/tsconfig.node.json (100%) delete mode 100644 new-api/new-api.service delete mode 100644 new-api/web/default/src/routes/_authenticated/route.tsx diff --git a/CLAUDE.md b/CLAUDE.md index 64e81ee..42b359b 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -7,7 +7,7 @@ | 路径 | 角色 | 栈 / 备注 | |------|------|-----------| | `cc-haha/` | **Heicode** 客户端:CLI(Ink)+ 本地 HTTP/WS 服务 + **Desktop**(Tauri + React) | Bun + TypeScript;产品入口 `bin/heicode` | -| `new-api/` | **Heicode Manager**:网关 + 管理控制台 | Go(Gin/GORM)+ `web/default` 前端(Bun/Rsbuild/React) | +| `heicode/` | **Heicode Manager**:网关 + 管理控制台 | Go(Gin/GORM)+ `web/default` 前端(Bun/Rsbuild/React) | | `website/` | 产品介绍站点 | Next.js;根 `docker-compose.yml` 提供 `heicode-www` :8888 | | `docs/` | 愿景、**里程碑**(`docs/milestones/`)、**Agnet 集成**(`docs/integration/`) | Markdown | @@ -16,7 +16,7 @@ ## 权威子文档(改代码前先打开对应一篇) - **客户端(cc-haha)**:[`cc-haha/AGENTS.md`](./cc-haha/AGENTS.md) — 目录结构、运行命令、测试、提交约定。 -- **网关(new-api)**:[`new-api/CLAUDE.md`](./new-api/CLAUDE.md) — Go 分层、JSON/i18n/DB 规则等。 +- **网关(heicode)**:[`heicode/CLAUDE.md`](./heicode/CLAUDE.md) — Go 分层、JSON/i18n/DB 规则等。 - **产品愿景与交付节奏**:[`docs/vision-heicode-full-stack-agentic-dev.md`](./docs/vision-heicode-full-stack-agentic-dev.md)、[`docs/milestones/README.md`](./docs/milestones/README.md)。 ## 最小开发闭环 @@ -32,7 +32,7 @@ bun run src/server/index.ts cd desktop && bun run tauri dev ``` -联调本机 Manager(new-api)时常见: +联调本机 Manager(heicode)时常见: ```bash HEICODE_TAIJIAICLOUD_BASE_URL=http://localhost:3000 bun run src/server/index.ts @@ -45,11 +45,11 @@ HEICODE_TAIJIAICLOUD_BASE_URL=http://localhost:3000 bun run src/server/index.ts - **客户端登录 / Provider**:`cc-haha/src/server/api/heicode-auth.ts`,路由前缀 `/api/heicode-auth/*`(由 `cc-haha/src/server/router.ts` 挂载)。 - **模型发现**:`cc-haha/src/server/services/providerService.ts`、`cc-haha/src/server/api/providers.ts`。 - **Provider 预设**:`cc-haha/src/server/config/providerPresets.json` + `providerPresets.ts`。 -- **Manager 侧 Heicode OAuth**:`new-api/controller/heicode_oauth.go`,路由 `new-api/router/heicode-router.go`(例如 `/heicode/oauth/authorize`、`/heicode/oauth/session`)。 +- **Manager 侧 Heicode OAuth**:`heicode/controller/heicode_oauth.go`,路由 `heicode/router/heicode-router.go`(例如 `/heicode/oauth/authorize`、`/heicode/oauth/session`)。 ## 协作约定(根级) -1. **改哪一层跟哪篇文档**:Go 行为以 `new-api/CLAUDE.md` 为准;客户端 TS/React 以 `cc-haha/AGENTS.md` 为准。 +1. **改哪一层跟哪篇文档**:Go 行为以 `heicode/CLAUDE.md` 为准;客户端 TS/React 以 `cc-haha/AGENTS.md` 为准。 2. **小步提交**:沿用历史风格(如 `feat:` / `fix:` / `docs:`);PR 写清影响面与验证步骤。 3. **集成与「SK」边界**:平台契约见 [`docs/integration/agnet-platform-api-design.md`](./docs/integration/agnet-platform-api-design.md),里程碑见 `docs/milestones/`。 4. **不要臆测计费**:计费与订阅在平台侧,不在 Heicode 客户端内实现。 @@ -57,7 +57,9 @@ HEICODE_TAIJIAICLOUD_BASE_URL=http://localhost:3000 bun run src/server/index.ts ## Docker / 站点 - 根目录 [`docker-compose.yml`](./docker-compose.yml):构建 `website/` 静态站点镜像(端口 **8888**)。 -- Manager 本地编排以 `new-api/docker-compose.yml` 及仓库内 override 为准(若存在)。 +- Manager 本地编排以 `heicode/docker-compose.yml` 及仓库内 override 为准(若存在)。 +- **VM / 生产同步代码**:优先在目标机上 **`git clone` / `git pull`** 与本仓库远程一致;**不要**用 `scp` 传整份源码或 compose(仅在仓库不可用或紧急热修时例外)。 +- **VM 部署后清镜像**:每次 `docker compose ... up -d --build` 后执行 **`sudo docker image prune -f`**,清掉重建产生的悬空层;定期可 **`sudo docker system prune -f`**(不删仍在使用的卷)。避免只叠新镜像、旧层占满磁盘。 ## 当前线上入口(2026-04) @@ -68,11 +70,13 @@ HEICODE_TAIJIAICLOUD_BASE_URL=http://localhost:3000 bun run src/server/index.ts ## Manager 生产拓扑(Azure) -- 应用层:Azure VM 上运行 `new-api`(当前用 Docker 容器承载应用进程)。 -- 数据层:仅使用云资源 +- 应用层:Azure VM 上运行 `heicode`(当前用 Docker 容器承载应用进程)。 +- 数据库与缓存:使用 Azure 托管服务(不在 VM 上跑 PostgreSQL/Redis 容器) - PostgreSQL: `heicode.postgres.database.azure.com` / DB `heicode` - Redis: `heicode.redis.cache.windows.net:6380`(TLS) -- 说明:VM 上本地 `postgres/redis` 不参与生产,若被创建应删除,避免数据源混淆。 +- 容器落盘:VM 仅承载应用进程;**容器内产生的文件**(如 `/data` 上传与持久文件、`/app/logs`)通过 **bind mount** 写到 VM 本地磁盘,便于备份与重建容器后不丢。编排见 `heicode/docker-compose.azure-vm.yml`,目录由环境变量 `HEICODE_DATA_ROOT` 指定。 +- 说明:不要在生产 VM 上再启本地 `postgres`/`redis` 容器并指向业务库,避免与托管实例混淆。 +- 镜像清理:发版构建后删除悬空/旧镜像层(见上文「VM 部署后清镜像」),防止 OS 盘被 Docker 占满。 --- diff --git a/README.md b/README.md index a22e5f1..c9df647 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Heicode 面向**多人协作、可追溯交付**的软件团队:把需求对 | 目录 | 大致含义 | |------|----------| | `cc-haha/` | **Heicode**(终端与桌面客户端及本地服务;此为源码目录名)。 | -| `new-api/` | **Heicode Manager**(网关与管理控制台服务端;此为源码目录名)。 | +| `heicode/` | **Heicode Manager**(网关与管理控制台服务端;此为源码目录名)。 | | `website/` | 产品介绍站点(Next.js;可 `pnpm dev` 或 Docker 预览)。 | | `docs/` | 愿景与范式;**[`docs/milestones/`](./docs/milestones/README.md)** 交付里程碑;**[`docs/integration/`](./docs/integration/README.md)** Agnet 等平台接口设计。 | @@ -44,12 +44,12 @@ bun run tauri dev HEICODE_TAIJIAICLOUD_BASE_URL=http://localhost:3000 bun run src/server/index.ts ``` -**Heicode Manager**(`new-api/`)中与 Heicode 登录相关的路由(最小集,以实际代码为准): +**Heicode Manager**(`heicode/`)中与 Heicode 登录相关的路由(最小集,以实际代码为准): - `GET /heicode/oauth/authorize` - `GET /heicode/oauth/session` -平台侧能力还包括模型发现(如 `GET /v1/models`)与 Anthropic Messages 兼容入口等,详见 **Heicode Manager**(`new-api/`)与 **Heicode 客户端**(`cc-haha/`)各自 README。 +平台侧能力还包括模型发现(如 `GET /v1/models`)与 Anthropic Messages 兼容入口等,详见 **Heicode Manager**(`heicode/`)与 **Heicode 客户端**(`cc-haha/`)各自 README。 ## 官网(Next.js) @@ -72,4 +72,4 @@ cd website && pnpm install && pnpm dev ## 许可证 -各子项目许可证见各子目录内 `LICENSE`(例如 Heicode Manager / `new-api/` 侧常见为 AGPLv3)。 +各子项目许可证见各子目录内 `LICENSE`(例如 Heicode Manager / `heicode/` 侧常见为 AGPLv3)。 diff --git a/cc-haha/README.md b/cc-haha/README.md index 8cb4979..0704d10 100644 --- a/cc-haha/README.md +++ b/cc-haha/README.md @@ -7,7 +7,7 @@ ## 当前形态 - **登录方式**:用户启动 HeiCode 后只看到两个登录入口 - - **TaijiAICloud**(自建网关,基于 [`new-api`](https://github.com/Calcium-Ion/new-api)) + - **TaijiAICloud**(自建网关,基于 [`heicode`](https://github.com/Calcium-Ion/heicode)) - **ClawdRouter**(聚合网关) - **支持模式**: - 浏览器跳转 OAuth(推荐 / 平台支持后启用) @@ -118,7 +118,7 @@ curl -X POST http://127.0.0.1:3456/api/heicode-auth/login \ 详见 [`docs/HEICODE-PLAN.md`](./docs/HEICODE-PLAN.md)。简版: -### TaijiAICloud(基于 new-api) +### TaijiAICloud(基于 heicode) - 必备:`/v1/messages`(Anthropic 原生协议) · `/v1/models` · API Key 子分组管理 - 推荐:OAuth2 Authorization Code + PKCE 端点;Webhook(额度告警) @@ -154,4 +154,4 @@ curl -X POST http://127.0.0.1:3456/api/heicode-auth/login \ ## 致谢 - 上游 [`cc-haha`](https://github.com/NanmiCoder/cc-haha) — 提供基础工程 -- [`new-api`](https://github.com/Calcium-Ion/new-api) — 模型网关后端 +- [`heicode`](https://github.com/Calcium-Ion/heicode) — 模型网关后端 diff --git a/cc-haha/desktop/src/components/login/ProviderLoginCard.tsx b/cc-haha/desktop/src/components/login/ProviderLoginCard.tsx index 7519c3b..1ea4ce3 100644 --- a/cc-haha/desktop/src/components/login/ProviderLoginCard.tsx +++ b/cc-haha/desktop/src/components/login/ProviderLoginCard.tsx @@ -19,7 +19,7 @@ type Props = { * - http:// (not https://) — typical for in-cluster gateways * - localhost / 127.0.0.1 * - 10/172.16-31/192.168 RFC1918 ranges - * - any hostname without a dot (e.g. `new-api`, `heicode-server`) — Docker DNS aliases + * - any hostname without a dot (e.g. `heicode`, `heicode-server`) — Docker DNS aliases */ function isLocalBaseUrl(rawUrl: string): boolean { if (!rawUrl) return false @@ -86,7 +86,7 @@ export function ProviderLoginCard({ provider }: Props) { {/* Always-visible baseUrl indicator. Helps the user immediately tell whether this card is pointing at the public TaijiAICloud endpoint - or has been overridden to a local new-api dev gateway. */} + or has been overridden to a local heicode dev gateway. */}
{ const updated = await svc.updateProvider(added.id, { name: 'Updated Name', - baseUrl: 'https://new-api.example.com', + baseUrl: 'https://heicode.example.com', }) expect(updated.name).toBe('Updated Name') - expect(updated.baseUrl).toBe('https://new-api.example.com') + expect(updated.baseUrl).toBe('https://heicode.example.com') // unchanged fields preserved expect(updated.apiKey).toBe('sk-test-key-123') }) @@ -216,13 +216,13 @@ describe('ProviderService', () => { await svc.activateProvider(added.id) await svc.updateProvider(added.id, { - baseUrl: 'https://new-api.example.com', + baseUrl: 'https://heicode.example.com', apiKey: 'sk-new-key', }) const settings = await readSettings() const env = settings.env as Record - expect(env.ANTHROPIC_BASE_URL).toBe('https://new-api.example.com') + expect(env.ANTHROPIC_BASE_URL).toBe('https://heicode.example.com') expect(env.ANTHROPIC_API_KEY).toBe('sk-new-key') expect(env.ANTHROPIC_MODEL).toBe('model-main') }) diff --git a/cc-haha/src/server/config/providerPresets.ts b/cc-haha/src/server/config/providerPresets.ts index 5518e29..fc1c40e 100644 --- a/cc-haha/src/server/config/providerPresets.ts +++ b/cc-haha/src/server/config/providerPresets.ts @@ -34,7 +34,7 @@ export type ProviderPreset = z.infer /** * Per-provider base URL overrides via env. This lets a developer point - * HeiCode at a *local* gateway (e.g. a self-hosted new-api on Docker) + * HeiCode at a *local* gateway (e.g. a self-hosted heicode on Docker) * without editing the preset JSON file. * * Examples: diff --git a/cc-haha/src/server/services/providerService.ts b/cc-haha/src/server/services/providerService.ts index ab4a52e..c999ffb 100644 --- a/cc-haha/src/server/services/providerService.ts +++ b/cc-haha/src/server/services/providerService.ts @@ -409,7 +409,7 @@ export class ProviderService { * Fetch the list of models exposed by a provider. * * Strategy: - * 1. Try `GET /v1/models` (OpenAI-compatible — what TaijiAICloud (new-api) and ClawdRouter both expose). + * 1. Try `GET /v1/models` (OpenAI-compatible — what TaijiAICloud (heicode) and ClawdRouter both expose). * 2. Fall back to `GET /models` (some Anthropic-flavoured proxies put it there). * 3. If neither works, return an empty list — the UI should let the user enter a model id manually. * diff --git a/docs/README.md b/docs/README.md index f87ef84..32ee09a 100644 --- a/docs/README.md +++ b/docs/README.md @@ -13,7 +13,7 @@ ## 路径 A · 内部研发 / 新成员上手 -适合刚加入团队、负责 `cc-haha`(客户端)或 `new-api`(Manager)开发的同学。 +适合刚加入团队、负责 `cc-haha`(客户端)或 `heicode`(Manager)开发的同学。 1. [`onboarding/README.md`](./onboarding/README.md):阅读顺序 2. [`onboarding/local-dev.md`](./onboarding/local-dev.md):本地联调步骤与排错 diff --git a/docs/architecture.md b/docs/architecture.md index 08e2c3e..a80eb83 100644 --- a/docs/architecture.md +++ b/docs/architecture.md @@ -11,7 +11,7 @@ ```mermaid flowchart TD entry["人机入口
官网 · 控制台 · CLI · Desktop"] - manager["Heicode Manager
(new-api)"] + manager["Heicode Manager
(heicode)"] client["Heicode 客户端
(cc-haha)"] agnet["Agnet 平台
(角色模板 · 执行单元)"] assets["资产与环境
仓库 · 流水线 · 运行时"] @@ -107,7 +107,7 @@ flowchart LR ## 五、模块关注点对照 -| 关注点 | Heicode 客户端 (`cc-haha/`) | Heicode Manager (`new-api/`) | Agnet 平台 | +| 关注点 | Heicode 客户端 (`cc-haha/`) | Heicode Manager (`heicode/`) | Agnet 平台 | |--------|------------------------------|-------------------------------|------------| | 用户身份 | 浏览器登录 / API Key 兼容 | OAuth 提供方、Token 颁发与吊销 | 接收 M2M JWT 与用户委派令牌 | | 模型调用 | 不直连模型,请求经 Manager | 路由、计费、RBAC | 不参与基础模型调用 | @@ -121,6 +121,6 @@ flowchart LR - 客户端登录:`cc-haha/src/server/api/heicode-auth.ts` - 客户端 Provider 预设:`cc-haha/src/server/config/providerPresets.ts` -- Manager OAuth:`new-api/controller/heicode_oauth.go`、`new-api/router/heicode-router.go` +- Manager OAuth:`heicode/controller/heicode_oauth.go`、`heicode/router/heicode-router.go` > 代码会演进,本文以 **架构关系** 为准;具体路径请以仓库当前实现为最终事实。 diff --git a/docs/glossary.md b/docs/glossary.md index 756cd0d..73a8b63 100644 --- a/docs/glossary.md +++ b/docs/glossary.md @@ -11,7 +11,7 @@ 仓库与产品族的总称。在区分产品形态时,亦称 **Heicode 客户端**。 ### Heicode Manager -账户、模型策略、渠道、计费与平台管控的服务端,源码目录 `new-api/`。在文档中亦称 **Manager**。 +账户、模型策略、渠道、计费与平台管控的服务端,源码目录 `heicode/`。在文档中亦称 **Manager**。 ### Heicode 客户端 面向开发者的 CLI(Ink)+ 桌面应用(Tauri + React)+ 本地 HTTP/WS 服务,源码目录 `cc-haha/`。 diff --git a/docs/integration/heicode-oauth-flow.md b/docs/integration/heicode-oauth-flow.md index 7c79b26..1110e33 100644 --- a/docs/integration/heicode-oauth-flow.md +++ b/docs/integration/heicode-oauth-flow.md @@ -5,7 +5,7 @@ > 代码位置: > > - 客户端:`cc-haha/src/server/api/heicode-auth.ts` -> - 服务端:`new-api/controller/heicode_oauth.go`、`new-api/router/heicode-router.go` +> - 服务端:`heicode/controller/heicode_oauth.go`、`heicode/router/heicode-router.go` ## 一、设计目标 @@ -22,8 +22,8 @@ | 端点 | 谁实现 | 用途 | | -------------------------------------- | ---------------- | ---------------------------------- | | `POST /api/heicode-auth/oauth/start` | 客户端本地服务 | 生成 `state` / PKCE,返回 authorize URL | -| `GET /heicode/oauth/authorize` | Manager(new-api) | 校验 loopback、引导登录、回跳 token | -| `GET /heicode/oauth/session` | Manager(new-api) | 给「请先登录」过渡页轮询登录态 | +| `GET /heicode/oauth/authorize` | Manager(heicode) | 校验 loopback、引导登录、回跳 token | +| `GET /heicode/oauth/session` | Manager(heicode) | 给「请先登录」过渡页轮询登录态 | | `GET /api/heicode-auth/oauth/callback` | 客户端本地服务 | 接收 token / code,落地并激活 | @@ -35,7 +35,7 @@ sequenceDiagram participant U as 用户 participant C as Heicode 客户端
(本地 HTTP 服务) participant B as 浏览器 - participant M as Heicode Manager
(new-api) + participant M as Heicode Manager
(heicode) U->>C: 点击「浏览器登录」 C->>C: 生成 state / PKCE 并写入会话 diff --git a/docs/milestones/STATUS.md b/docs/milestones/STATUS.md index 33b4a85..1d9bebf 100644 --- a/docs/milestones/STATUS.md +++ b/docs/milestones/STATUS.md @@ -8,7 +8,7 @@ > - `todo`:尚未开始或仅有占位 > - `docs-only`:仅文档定义,待实现承接 > -> 来源依据:`cc-haha/src/server/api/heicode-auth.ts`、`cc-haha/src/server/services/providerService.ts`、`new-api/controller/heicode_oauth.go`、`new-api/router/heicode-router.go`、本仓库 `docs/`。 +> 来源依据:`cc-haha/src/server/api/heicode-auth.ts`、`cc-haha/src/server/services/providerService.ts`、`heicode/controller/heicode_oauth.go`、`heicode/router/heicode-router.go`、本仓库 `docs/`。 ## M1 · 契约与身份对齐 @@ -34,7 +34,7 @@ | DoD | 状态 | 备注 | |-----|------|------| | Agnet 控制面最小集(部署/伸缩/停止) | `docs-only` | 设计完整,本仓库不含实现 | -| Heicode Manager「一键部署 Agnet 团队」 | `todo` | 尚未在 `new-api` 中提供 | +| Heicode Manager「一键部署 Agnet 团队」 | `todo` | 尚未在 `heicode` 中提供 | | SK 边界(写权仅 Heicode、子 agent 只读) | `partial` | 文档单点真相已就绪([`../sk-lifecycle.md`](../sk-lifecycle.md));客户端 SK 编辑入口待落地 | | Webhook / 回调(Agnet → Heicode) | `todo` | Manager 未提供回调注册端点 | | 幂等与 `deployment_id` / `correlation_id` | `docs-only` | 字段约定见 API 设计 §5.1、§2.3 | @@ -45,11 +45,11 @@ | DoD | 状态 | 备注 | |-----|------|------| -| 租户模型(`tenant` 顶层) | `partial` | `new-api` 自身有用户/组/Token 体系;Heicode 维度未与 Agnet 集成 | -| RBAC 角色矩阵 | `partial` | `new-api` 控制台已有基础角色;与 Agnet 设计(`agnet:*` 角色)未对齐 | +| 租户模型(`tenant` 顶层) | `partial` | `heicode` 自身有用户/组/Token 体系;Heicode 维度未与 Agnet 集成 | +| RBAC 角色矩阵 | `partial` | `heicode` 控制台已有基础角色;与 Agnet 设计(`agnet:*` 角色)未对齐 | | 数据面隔离与跨租户负例 | `todo` | 待联合 Agnet 落地后补测 | | 凭据写入隔离(Git Token / 云 SA) | `docs-only` | 见 API 设计 §3.2 | -| 审计日志(追加式) | `partial` | `new-api` 自带操作日志;统一 `correlation_id` 字段未规范化 | +| 审计日志(追加式) | `partial` | `heicode` 自带操作日志;统一 `correlation_id` 字段未规范化 | ## M5 · 可观测性与可视化 @@ -57,7 +57,7 @@ |-----|------|------| | 实例快照 API | `docs-only` | 字段定义见 API 设计 §6.1 | | 子 Agnet 输出流(SSE/WS) | `todo` | 客户端 UI 尚未实现订阅 | -| 项目级聚合 / Dashboard | `partial` | `new-api` 控制台具备模型/Token 指标基础 | +| 项目级聚合 / Dashboard | `partial` | `heicode` 控制台具备模型/Token 指标基础 | | 事件流(含 `Last-Event-ID` 重连) | `docs-only` | 见 API 设计 §7 | | 与 RBAC 联动 | `todo` | 需在 M4 落地后回填 | | SLI 指标导出 | `todo` | Prometheus / JSON 端点未配置 | diff --git a/docs/onboarding/README.md b/docs/onboarding/README.md index a9e817d..d514842 100644 --- a/docs/onboarding/README.md +++ b/docs/onboarding/README.md @@ -4,13 +4,13 @@ ## 推荐阅读顺序 -1. [`local-dev.md`](./local-dev.md):把 `cc-haha`(客户端)、`new-api`(Manager)、`website`(站点)跑起来;含常见错误与排查 +1. [`local-dev.md`](./local-dev.md):把 `cc-haha`(客户端)、`heicode`(Manager)、`website`(站点)跑起来;含常见错误与排查 2. [`env-variables.md`](./env-variables.md):客户端识别的环境变量(base URL、OAuth 配置) 3. 共用骨架:[`../architecture.md`](../architecture.md)、[`../glossary.md`](../glossary.md)、[`../sk-lifecycle.md`](../sk-lifecycle.md) 4. 现状对齐:[`../milestones/STATUS.md`](../milestones/STATUS.md) 5. 子项目细则: - 客户端约定:[`../../cc-haha/AGENTS.md`](../../cc-haha/AGENTS.md) - - 网关约定:[`../../new-api/CLAUDE.md`](../../new-api/CLAUDE.md) + - 网关约定:[`../../heicode/CLAUDE.md`](../../heicode/CLAUDE.md) ## 改代码前的最小心智模型 @@ -19,7 +19,7 @@ | 客户端登录 / Provider | `cc-haha/src/server/api/heicode-auth.ts` | 路由前缀 `/api/heicode-auth/*` | | 客户端模型发现 | `cc-haha/src/server/services/providerService.ts`、`cc-haha/src/server/api/providers.ts` | `/v1/models` 探活 | | Provider 预设 | `cc-haha/src/server/config/providerPresets.json` + `providerPresets.ts` | 仅保留 `taijiaicloud` / `clawdrouter` | -| Manager OAuth | `new-api/controller/heicode_oauth.go` | 路由 `new-api/router/heicode-router.go` | +| Manager OAuth | `heicode/controller/heicode_oauth.go` | 路由 `heicode/router/heicode-router.go` | | 桌面端 UI | `cc-haha/desktop/src/` | Tauri + React | ## 你不需要做的事 @@ -38,5 +38,5 @@ ## 提问与求助 - 客户端 TS/React 行为问题:先看 [`../../cc-haha/AGENTS.md`](../../cc-haha/AGENTS.md) -- 网关 Go 行为问题:先看 [`../../new-api/CLAUDE.md`](../../new-api/CLAUDE.md) +- 网关 Go 行为问题:先看 [`../../heicode/CLAUDE.md`](../../heicode/CLAUDE.md) - 集成 / Agnet 契约问题:先看 [`../integration/README.md`](../integration/README.md) diff --git a/docs/onboarding/env-variables.md b/docs/onboarding/env-variables.md index fd26831..00cec42 100644 --- a/docs/onboarding/env-variables.md +++ b/docs/onboarding/env-variables.md @@ -1,6 +1,6 @@ # 环境变量手册(Heicode 客户端) -仅列出 Heicode 客户端(`cc-haha/`)当前 **代码中已支持** 的环境变量。Manager(`new-api/`)的环境变量请以 `new-api/CLAUDE.md` 与 `new-api/.env.example` 为准。 +仅列出 Heicode 客户端(`cc-haha/`)当前 **代码中已支持** 的环境变量。Manager(`heicode/`)的环境变量请以 `heicode/CLAUDE.md` 与 `heicode/.env.example` 为准。 > 来源代码: > - `cc-haha/src/server/config/providerPresets.ts` diff --git a/docs/onboarding/local-dev.md b/docs/onboarding/local-dev.md index 202ed14..12fc779 100644 --- a/docs/onboarding/local-dev.md +++ b/docs/onboarding/local-dev.md @@ -1,6 +1,6 @@ # 本地联调指引 -把仓库内三块跑起来:`cc-haha`(客户端)、`new-api`(Manager)、`website`(站点)。下面命令以 macOS / Linux 为主,Windows 仅在差异点提示。 +把仓库内三块跑起来:`cc-haha`(客户端)、`heicode`(Manager)、`website`(站点)。下面命令以 macOS / Linux 为主,Windows 仅在差异点提示。 > 命令以仓库当前 README 与 package.json 为准;如出现冲突,以代码为最终事实。 > 客户端工程级别的更细约定在 [`../../cc-haha/AGENTS.md`](../../cc-haha/AGENTS.md)。 @@ -34,11 +34,11 @@ bun run tauri dev 服务默认监听 `http://127.0.0.1:3456`(可用 `SERVER_PORT` 覆盖)。 -## 三、联调本机 Manager(new-api) +## 三、联调本机 Manager(heicode) ```bash -# 1. 起 Manager(new-api) -cd new-api +# 1. 起 Manager(heicode) +cd heicode docker compose -f docker-compose.yml -f docker-compose.override.yml up --build -d # 2. 让客户端把 TaijiAICloud 指向本地 Manager @@ -67,17 +67,17 @@ bun run lint # tsc --noEmit 桌面端构建产物:`bun run build` 或针对平台用 `bun run build:macos-arm64` / `bun run build:windows-x64`。 -## 六、Manager(new-api)开发 +## 六、Manager(heicode)开发 -简版命令以 `new-api/CLAUDE.md` 为准,本节只列联调相关: +简版命令以 `heicode/CLAUDE.md` 为准,本节只列联调相关: ```bash # 用本地 source 构建(覆盖镜像) -cd new-api +cd heicode docker compose -f docker-compose.yml -f docker-compose.override.yml up --build -d # 看日志 -docker compose logs -f new-api +docker compose logs -f heicode ``` 启动后访问 `http://localhost:3000`,注册管理员,再测试客户端登录链路。 diff --git a/new-api/.agents/skills/classic-to-default-sync/SKILL.md b/heicode/.agents/skills/classic-to-default-sync/SKILL.md similarity index 100% rename from new-api/.agents/skills/classic-to-default-sync/SKILL.md rename to heicode/.agents/skills/classic-to-default-sync/SKILL.md diff --git a/new-api/.agents/skills/i18n-translate/SKILL.md b/heicode/.agents/skills/i18n-translate/SKILL.md similarity index 100% rename from new-api/.agents/skills/i18n-translate/SKILL.md rename to heicode/.agents/skills/i18n-translate/SKILL.md diff --git a/new-api/.agents/skills/vercel-react-best-practices/AGENTS.md b/heicode/.agents/skills/vercel-react-best-practices/AGENTS.md similarity index 100% rename from new-api/.agents/skills/vercel-react-best-practices/AGENTS.md rename to heicode/.agents/skills/vercel-react-best-practices/AGENTS.md diff --git a/new-api/.check_pg.sh b/heicode/.check_pg.sh similarity index 100% rename from new-api/.check_pg.sh rename to heicode/.check_pg.sh diff --git a/new-api/.dockerignore b/heicode/.dockerignore similarity index 100% rename from new-api/.dockerignore rename to heicode/.dockerignore diff --git a/new-api/.env.example b/heicode/.env.example similarity index 98% rename from new-api/.env.example rename to heicode/.env.example index b152c2a..0e86419 100644 --- a/new-api/.env.example +++ b/heicode/.env.example @@ -11,7 +11,7 @@ # DEBUG=true # Pyroscope 配置 # PYROSCOPE_URL=http://localhost:4040 -# PYROSCOPE_APP_NAME=new-api +# PYROSCOPE_APP_NAME=heicode # PYROSCOPE_BASIC_AUTH_USER=your-user # PYROSCOPE_BASIC_AUTH_PASSWORD=your-password # PYROSCOPE_MUTEX_RATE=5 diff --git a/new-api/.gitattributes b/heicode/.gitattributes similarity index 100% rename from new-api/.gitattributes rename to heicode/.gitattributes diff --git a/new-api/.github/CODE_OF_CONDUCT.md b/heicode/.github/CODE_OF_CONDUCT.md similarity index 100% rename from new-api/.github/CODE_OF_CONDUCT.md rename to heicode/.github/CODE_OF_CONDUCT.md diff --git a/new-api/.github/ISSUE_TEMPLATE/bug_report.md b/heicode/.github/ISSUE_TEMPLATE/bug_report.md similarity index 99% rename from new-api/.github/ISSUE_TEMPLATE/bug_report.md rename to heicode/.github/ISSUE_TEMPLATE/bug_report.md index 62b6c15..ec8cb54 100644 --- a/new-api/.github/ISSUE_TEMPLATE/bug_report.md +++ b/heicode/.github/ISSUE_TEMPLATE/bug_report.md @@ -10,7 +10,7 @@ assignees: '' ## 提交前必读(请勿删除本节) - 文档:https://docs.newapi.ai/ -- 使用问题先看或先问:https://deepwiki.com/QuantumNous/new-api +- 使用问题先看或先问:https://deepwiki.com/QuantumNous/heicode - 警告:删除本模板、删除小节标题或随意清空内容的 issue,可能会被直接关闭;重复恶意提交者可能会被 block。 **您当前的 newapi 版本** diff --git a/new-api/.github/ISSUE_TEMPLATE/bug_report_en.md b/heicode/.github/ISSUE_TEMPLATE/bug_report_en.md similarity index 94% rename from new-api/.github/ISSUE_TEMPLATE/bug_report_en.md rename to heicode/.github/ISSUE_TEMPLATE/bug_report_en.md index b1d8e50..5741232 100644 --- a/new-api/.github/ISSUE_TEMPLATE/bug_report_en.md +++ b/heicode/.github/ISSUE_TEMPLATE/bug_report_en.md @@ -10,7 +10,7 @@ assignees: '' ## Read This First (Do Not Remove This Section) - Docs: https://docs.newapi.ai/ -- Usage questions first: https://deepwiki.com/QuantumNous/new-api +- Usage questions first: https://deepwiki.com/QuantumNous/heicode - Warning: issues with this template removed, section headings deleted, or content cleared may be closed directly. Repeated abusive submissions may result in a block. **Your current newapi version** diff --git a/new-api/.github/ISSUE_TEMPLATE/config.yml b/heicode/.github/ISSUE_TEMPLATE/config.yml similarity index 87% rename from new-api/.github/ISSUE_TEMPLATE/config.yml rename to heicode/.github/ISSUE_TEMPLATE/config.yml index fa1029f..effcb9f 100644 --- a/new-api/.github/ISSUE_TEMPLATE/config.yml +++ b/heicode/.github/ISSUE_TEMPLATE/config.yml @@ -4,5 +4,5 @@ contact_links: url: https://docs.newapi.ai/ about: 提交 issue 前请先查阅文档,确认现有说明无法解决你的问题。 - name: 使用问题 / Usage Questions - url: https://deepwiki.com/QuantumNous/new-api + url: https://deepwiki.com/QuantumNous/heicode about: 使用、配置、接入等问题请优先在 DeepWiki 查询或提问。 diff --git a/new-api/.github/ISSUE_TEMPLATE/feature_request.md b/heicode/.github/ISSUE_TEMPLATE/feature_request.md similarity index 99% rename from new-api/.github/ISSUE_TEMPLATE/feature_request.md rename to heicode/.github/ISSUE_TEMPLATE/feature_request.md index 465ca81..11c4c44 100644 --- a/new-api/.github/ISSUE_TEMPLATE/feature_request.md +++ b/heicode/.github/ISSUE_TEMPLATE/feature_request.md @@ -10,7 +10,7 @@ assignees: '' ## 提交前必读(请勿删除本节) - 文档:https://docs.newapi.ai/ -- 使用问题先看或先问:https://deepwiki.com/QuantumNous/new-api +- 使用问题先看或先问:https://deepwiki.com/QuantumNous/heicode - 警告:删除本模板、删除小节标题或随意清空内容的 issue,可能会被直接关闭;重复恶意提交者可能会被 block。 **您当前的 newapi 版本** diff --git a/new-api/.github/ISSUE_TEMPLATE/feature_request_en.md b/heicode/.github/ISSUE_TEMPLATE/feature_request_en.md similarity index 94% rename from new-api/.github/ISSUE_TEMPLATE/feature_request_en.md rename to heicode/.github/ISSUE_TEMPLATE/feature_request_en.md index 4583293..7dae019 100644 --- a/new-api/.github/ISSUE_TEMPLATE/feature_request_en.md +++ b/heicode/.github/ISSUE_TEMPLATE/feature_request_en.md @@ -10,7 +10,7 @@ assignees: '' ## Read This First (Do Not Remove This Section) - Docs: https://docs.newapi.ai/ -- Usage questions first: https://deepwiki.com/QuantumNous/new-api +- Usage questions first: https://deepwiki.com/QuantumNous/heicode - Warning: issues with this template removed, section headings deleted, or content cleared may be closed directly. Repeated abusive submissions may result in a block. **Your current newapi version** diff --git a/new-api/.github/PULL_REQUEST_TEMPLATE.md b/heicode/.github/PULL_REQUEST_TEMPLATE.md similarity index 92% rename from new-api/.github/PULL_REQUEST_TEMPLATE.md rename to heicode/.github/PULL_REQUEST_TEMPLATE.md index 7b1eb50..f14b4bb 100644 --- a/new-api/.github/PULL_REQUEST_TEMPLATE.md +++ b/heicode/.github/PULL_REQUEST_TEMPLATE.md @@ -17,7 +17,7 @@ ## ✅ 提交前检查项 / Checklist - [ ] **人工确认:** 我已亲自整理并撰写此描述,没有直接粘贴未经处理的 AI 输出。 -- [ ] **非重复提交:** 我已搜索现有的 [Issues](https://github.com/QuantumNous/new-api/issues) 与 [PRs](https://github.com/QuantumNous/new-api/pulls),确认不是重复提交。 +- [ ] **非重复提交:** 我已搜索现有的 [Issues](https://github.com/QuantumNous/heicode/issues) 与 [PRs](https://github.com/QuantumNous/heicode/pulls),确认不是重复提交。 - [ ] **Bug fix 说明:** 若此 PR 标记为 `Bug fix`,我已提交或关联对应 Issue,且不会将设计取舍、预期不一致或理解偏差直接归类为 bug。 - [ ] **变更理解:** 我已理解这些更改的工作原理及可能影响。 - [ ] **范围聚焦:** 本 PR 未包含任何与当前任务无关的代码改动。 diff --git a/new-api/.github/SECURITY.md b/heicode/.github/SECURITY.md similarity index 98% rename from new-api/.github/SECURITY.md rename to heicode/.github/SECURITY.md index f940bee..e2d4700 100644 --- a/new-api/.github/SECURITY.md +++ b/heicode/.github/SECURITY.md @@ -19,7 +19,7 @@ We take security vulnerability reports very seriously. If you discover a securit **Do NOT** report security vulnerabilities in public GitHub Issues. -To report a security issue, please use the GitHub Security Advisories tab to "[Open a draft security advisory](https://github.com/QuantumNous/new-api/security/advisories/new)". This is the preferred method as it provides a built-in private communication channel. +To report a security issue, please use the GitHub Security Advisories tab to "[Open a draft security advisory](https://github.com/QuantumNous/heicode/security/advisories/new)". This is the preferred method as it provides a built-in private communication channel. Alternatively, you can report via email: diff --git a/new-api/.github/workflows/docker-build.yml b/heicode/.github/workflows/docker-build.yml similarity index 85% rename from new-api/.github/workflows/docker-build.yml rename to heicode/.github/workflows/docker-build.yml index 1601b86..5380802 100644 --- a/new-api/.github/workflows/docker-build.yml +++ b/heicode/.github/workflows/docker-build.yml @@ -71,7 +71,7 @@ jobs: id: meta uses: docker/metadata-action@v5 with: - images: calciumion/new-api + images: calciumion/heicode - name: Build & push id: build @@ -81,8 +81,8 @@ jobs: platforms: ${{ matrix.platform }} push: true tags: | - calciumion/new-api:${{ env.TAG }}-${{ matrix.arch }} - calciumion/new-api:latest-${{ matrix.arch }} + calciumion/heicode:${{ env.TAG }}-${{ matrix.arch }} + calciumion/heicode:latest-${{ matrix.arch }} labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha cache-to: type=gha,mode=max @@ -93,13 +93,13 @@ jobs: uses: sigstore/cosign-installer@v3 - name: Sign image with cosign - run: cosign sign --yes calciumion/new-api@${{ steps.build.outputs.digest }} + run: cosign sign --yes calciumion/heicode@${{ steps.build.outputs.digest }} - name: Image summary run: | echo "### Docker Image Digest (${{ matrix.arch }})" >> $GITHUB_STEP_SUMMARY echo '```' >> $GITHUB_STEP_SUMMARY - echo "calciumion/new-api:${TAG}-${{ matrix.arch }}" >> $GITHUB_STEP_SUMMARY + echo "calciumion/heicode:${TAG}-${{ matrix.arch }}" >> $GITHUB_STEP_SUMMARY echo "${{ steps.build.outputs.digest }}" >> $GITHUB_STEP_SUMMARY echo '```' >> $GITHUB_STEP_SUMMARY @@ -122,20 +122,20 @@ jobs: - name: Create & push manifest (version) run: | docker buildx imagetools create \ - -t calciumion/new-api:${TAG} \ - calciumion/new-api:${TAG}-amd64 \ - calciumion/new-api:${TAG}-arm64 + -t calciumion/heicode:${TAG} \ + calciumion/heicode:${TAG}-amd64 \ + calciumion/heicode:${TAG}-arm64 - name: Create & push manifest (latest) run: | docker buildx imagetools create \ - -t calciumion/new-api:latest \ - calciumion/new-api:latest-amd64 \ - calciumion/new-api:latest-arm64 + -t calciumion/heicode:latest \ + calciumion/heicode:latest-amd64 \ + calciumion/heicode:latest-arm64 - name: Manifest summary run: | echo "### Multi-arch Manifest" >> $GITHUB_STEP_SUMMARY echo '```' >> $GITHUB_STEP_SUMMARY - docker buildx imagetools inspect calciumion/new-api:${TAG} >> $GITHUB_STEP_SUMMARY + docker buildx imagetools inspect calciumion/heicode:${TAG} >> $GITHUB_STEP_SUMMARY echo '```' >> $GITHUB_STEP_SUMMARY diff --git a/new-api/.github/workflows/docker-image-alpha.yml b/heicode/.github/workflows/docker-image-alpha.yml similarity index 90% rename from new-api/.github/workflows/docker-image-alpha.yml rename to heicode/.github/workflows/docker-image-alpha.yml index 116dd14..39203fc 100644 --- a/new-api/.github/workflows/docker-image-alpha.yml +++ b/heicode/.github/workflows/docker-image-alpha.yml @@ -67,7 +67,7 @@ jobs: uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5 with: images: | - calciumion/new-api + calciumion/heicode ghcr.io/${{ env.GHCR_REPOSITORY }} - name: Build & push single-arch (to both registries) @@ -78,8 +78,8 @@ jobs: platforms: ${{ matrix.platform }} push: true tags: | - calciumion/new-api:alpha-${{ matrix.arch }} - calciumion/new-api:${{ steps.version.outputs.value }}-${{ matrix.arch }} + calciumion/heicode:alpha-${{ matrix.arch }} + calciumion/heicode:${{ steps.version.outputs.value }}-${{ matrix.arch }} ghcr.io/${{ env.GHCR_REPOSITORY }}:alpha-${{ matrix.arch }} ghcr.io/${{ env.GHCR_REPOSITORY }}:${{ steps.version.outputs.value }}-${{ matrix.arch }} labels: ${{ steps.meta.outputs.labels }} @@ -93,14 +93,14 @@ jobs: - name: Sign image with cosign run: | - cosign sign --yes calciumion/new-api@${{ steps.build.outputs.digest }} + cosign sign --yes calciumion/heicode@${{ steps.build.outputs.digest }} cosign sign --yes ghcr.io/${{ env.GHCR_REPOSITORY }}@${{ steps.build.outputs.digest }} - name: Output digest run: | echo "### Docker Image Digest (${{ matrix.arch }})" >> $GITHUB_STEP_SUMMARY echo '```' >> $GITHUB_STEP_SUMMARY - echo "calciumion/new-api:alpha-${{ matrix.arch }}" >> $GITHUB_STEP_SUMMARY + echo "calciumion/heicode:alpha-${{ matrix.arch }}" >> $GITHUB_STEP_SUMMARY echo "ghcr.io/${{ env.GHCR_REPOSITORY }}:alpha-${{ matrix.arch }}" >> $GITHUB_STEP_SUMMARY echo "${{ steps.build.outputs.digest }}" >> $GITHUB_STEP_SUMMARY echo '```' >> $GITHUB_STEP_SUMMARY @@ -137,16 +137,16 @@ jobs: - name: Create & push manifest (Docker Hub - alpha) run: | docker buildx imagetools create \ - -t calciumion/new-api:alpha \ - calciumion/new-api:alpha-amd64 \ - calciumion/new-api:alpha-arm64 + -t calciumion/heicode:alpha \ + calciumion/heicode:alpha-amd64 \ + calciumion/heicode:alpha-arm64 - name: Create & push manifest (Docker Hub - versioned alpha) run: | docker buildx imagetools create \ - -t calciumion/new-api:${VERSION} \ - calciumion/new-api:${VERSION}-amd64 \ - calciumion/new-api:${VERSION}-arm64 + -t calciumion/heicode:${VERSION} \ + calciumion/heicode:${VERSION}-amd64 \ + calciumion/heicode:${VERSION}-arm64 - name: Log in to GHCR uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3 @@ -173,7 +173,7 @@ jobs: run: | echo "### Multi-arch Manifest Digests" >> $GITHUB_STEP_SUMMARY echo '```' >> $GITHUB_STEP_SUMMARY - docker buildx imagetools inspect calciumion/new-api:alpha >> $GITHUB_STEP_SUMMARY + docker buildx imagetools inspect calciumion/heicode:alpha >> $GITHUB_STEP_SUMMARY echo "---" >> $GITHUB_STEP_SUMMARY docker buildx imagetools inspect ghcr.io/${GHCR_REPOSITORY}:alpha >> $GITHUB_STEP_SUMMARY echo '```' >> $GITHUB_STEP_SUMMARY diff --git a/new-api/.github/workflows/docker-image-nightly.yml b/heicode/.github/workflows/docker-image-nightly.yml similarity index 86% rename from new-api/.github/workflows/docker-image-nightly.yml rename to heicode/.github/workflows/docker-image-nightly.yml index 2125fa9..5ff0cf5 100644 --- a/new-api/.github/workflows/docker-image-nightly.yml +++ b/heicode/.github/workflows/docker-image-nightly.yml @@ -57,7 +57,7 @@ jobs: uses: docker/metadata-action@v5 with: images: | - calciumion/new-api + calciumion/heicode - name: Build & push single-arch uses: docker/build-push-action@v6 @@ -66,8 +66,8 @@ jobs: platforms: ${{ matrix.platform }} push: true tags: | - calciumion/new-api:nightly-${{ matrix.arch }} - calciumion/new-api:${{ steps.version.outputs.value }}-${{ matrix.arch }} + calciumion/heicode:nightly-${{ matrix.arch }} + calciumion/heicode:${{ steps.version.outputs.value }}-${{ matrix.arch }} labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha cache-to: type=gha,mode=max @@ -101,13 +101,13 @@ jobs: - name: Create & push manifest (Docker Hub - nightly) run: | docker buildx imagetools create \ - -t calciumion/new-api:nightly \ - calciumion/new-api:nightly-amd64 \ - calciumion/new-api:nightly-arm64 + -t calciumion/heicode:nightly \ + calciumion/heicode:nightly-amd64 \ + calciumion/heicode:nightly-arm64 - name: Create & push manifest (Docker Hub - versioned nightly) run: | docker buildx imagetools create \ - -t calciumion/new-api:${VERSION} \ - calciumion/new-api:${VERSION}-amd64 \ - calciumion/new-api:${VERSION}-arm64 + -t calciumion/heicode:${VERSION} \ + calciumion/heicode:${VERSION}-amd64 \ + calciumion/heicode:${VERSION}-arm64 diff --git a/new-api/.github/workflows/electron-build.yml b/heicode/.github/workflows/electron-build.yml similarity index 93% rename from new-api/.github/workflows/electron-build.yml rename to heicode/.github/workflows/electron-build.yml index 20113e0..3f259e9 100644 --- a/new-api/.github/workflows/electron-build.yml +++ b/heicode/.github/workflows/electron-build.yml @@ -55,13 +55,13 @@ jobs: # if: runner.os != 'Windows' # run: | # go mod download - # go build -ldflags "-s -w -X 'new-api/common.Version=$(git describe --tags)' -extldflags '-static'" -o new-api + # go build -ldflags "-s -w -X 'github.com/heicode/manager/common.Version=$(git describe --tags)' -extldflags '-static'" -o heicode - name: Build Go binary (Windows) if: runner.os == 'Windows' run: | go mod download - go build -ldflags "-s -w -X 'new-api/common.Version=$(git describe --tags)'" -o new-api.exe + go build -ldflags "-s -w -X 'github.com/heicode/manager/common.Version=$(git describe --tags)'" -o heicode.exe - name: Update Electron version run: | diff --git a/new-api/.github/workflows/pr-check.yml b/heicode/.github/workflows/pr-check.yml similarity index 100% rename from new-api/.github/workflows/pr-check.yml rename to heicode/.github/workflows/pr-check.yml diff --git a/new-api/.github/workflows/release.yml b/heicode/.github/workflows/release.yml similarity index 86% rename from new-api/.github/workflows/release.yml rename to heicode/.github/workflows/release.yml index 513bbb2..3d0f945 100644 --- a/new-api/.github/workflows/release.yml +++ b/heicode/.github/workflows/release.yml @@ -52,21 +52,21 @@ jobs: - name: Build Backend (amd64) run: | go mod download - go build -ldflags "-s -w -X 'new-api/common.Version=$VERSION' -extldflags '-static'" -o new-api-$VERSION + go build -ldflags "-s -w -X 'github.com/heicode/manager/common.Version=$VERSION' -extldflags '-static'" -o heicode-$VERSION - name: Build Backend (arm64) run: | sudo apt-get update DEBIAN_FRONTEND=noninteractive sudo apt-get install -y gcc-aarch64-linux-gnu - CC=aarch64-linux-gnu-gcc CGO_ENABLED=1 GOOS=linux GOARCH=arm64 go build -ldflags "-s -w -X 'new-api/common.Version=$VERSION' -extldflags '-static'" -o new-api-arm64-$VERSION + CC=aarch64-linux-gnu-gcc CGO_ENABLED=1 GOOS=linux GOARCH=arm64 go build -ldflags "-s -w -X 'github.com/heicode/manager/common.Version=$VERSION' -extldflags '-static'" -o heicode-arm64-$VERSION - name: Generate checksums - run: sha256sum new-api-* > checksums-linux.txt + run: sha256sum heicode-* > checksums-linux.txt - name: Release uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2 if: startsWith(github.ref, 'refs/tags/') with: files: | - new-api-* + heicode-* checksums-linux.txt env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -110,16 +110,16 @@ jobs: - name: Build Backend run: | go mod download - go build -ldflags "-X 'new-api/common.Version=$VERSION'" -o new-api-macos-$VERSION + go build -ldflags "-X 'github.com/heicode/manager/common.Version=$VERSION'" -o heicode-macos-$VERSION - name: Generate checksums - run: shasum -a 256 new-api-macos-* > checksums-macos.txt + run: shasum -a 256 heicode-macos-* > checksums-macos.txt - name: Release uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2 if: startsWith(github.ref, 'refs/tags/') with: files: | - new-api-macos-* + heicode-macos-* checksums-macos.txt env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -165,16 +165,16 @@ jobs: - name: Build Backend run: | go mod download - go build -ldflags "-s -w -X 'new-api/common.Version=$VERSION'" -o new-api-$VERSION.exe + go build -ldflags "-s -w -X 'github.com/heicode/manager/common.Version=$VERSION'" -o heicode-$VERSION.exe - name: Generate checksums - run: sha256sum new-api-*.exe > checksums-windows.txt + run: sha256sum heicode-*.exe > checksums-windows.txt - name: Release uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2 if: startsWith(github.ref, 'refs/tags/') with: files: | - new-api-*.exe + heicode-*.exe checksums-windows.txt env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/new-api/.github/workflows/sync-to-gitee.yml b/heicode/.github/workflows/sync-to-gitee.yml similarity index 95% rename from new-api/.github/workflows/sync-to-gitee.yml rename to heicode/.github/workflows/sync-to-gitee.yml index 4f515a1..017c3fd 100644 --- a/new-api/.github/workflows/sync-to-gitee.yml +++ b/heicode/.github/workflows/sync-to-gitee.yml @@ -13,8 +13,8 @@ on: # 配置你的 Gitee 仓库信息 env: - GITEE_OWNER: 'QuantumNous' # 修改为你的 Gitee 用户名 - GITEE_REPO: 'new-api' # 修改为你的 Gitee 仓库名 + GITEE_OWNER: 'xiaohei' # 修改为你的 Gitee 用户名 + GITEE_REPO: 'heicode' # 修改为你的 Gitee 仓库名 jobs: sync-to-gitee: diff --git a/new-api/.gitignore b/heicode/.gitignore similarity index 97% rename from new-api/.gitignore rename to heicode/.gitignore index bbc5717..d49f238 100644 --- a/new-api/.gitignore +++ b/heicode/.gitignore @@ -14,7 +14,7 @@ web/node_modules web/dist .env one-api -new-api +heicode /__debug_bin* .DS_Store tiktoken_cache diff --git a/new-api/.retry_pg.sh b/heicode/.retry_pg.sh similarity index 100% rename from new-api/.retry_pg.sh rename to heicode/.retry_pg.sh diff --git a/new-api/AGENTS.md b/heicode/AGENTS.md similarity index 99% rename from new-api/AGENTS.md rename to heicode/AGENTS.md index e2052d7..faec208 100644 --- a/new-api/AGENTS.md +++ b/heicode/AGENTS.md @@ -1,4 +1,4 @@ -# AGENTS.md — Project Conventions for new-api +# AGENTS.md — Project Conventions for heicode ## Overview diff --git a/new-api/CLAUDE.md b/heicode/CLAUDE.md similarity index 99% rename from new-api/CLAUDE.md rename to heicode/CLAUDE.md index a4c3f04..ff6fb47 100644 --- a/new-api/CLAUDE.md +++ b/heicode/CLAUDE.md @@ -1,4 +1,4 @@ -# CLAUDE.md — Project Conventions for new-api +# CLAUDE.md — Project Conventions for heicode ## Overview diff --git a/new-api/Dockerfile b/heicode/Dockerfile similarity index 88% rename from new-api/Dockerfile rename to heicode/Dockerfile index b12d35c..09b50cd 100644 --- a/new-api/Dockerfile +++ b/heicode/Dockerfile @@ -34,7 +34,7 @@ RUN go mod download COPY . . COPY --from=builder /build/dist ./web/default/dist COPY --from=builder-classic /build/dist ./web/classic/dist -RUN go build -ldflags "-s -w -X 'github.com/QuantumNous/new-api/common.Version=$(cat VERSION)'" -o new-api +RUN go build -ldflags "-s -w -X 'github.com/heicode/manager/common.Version=$(cat VERSION)'" -o heicode FROM debian:bookworm-slim@sha256:f06537653ac770703bc45b4b113475bd402f451e85223f0f2837acbf89ab020a @@ -43,7 +43,7 @@ RUN apt-get update \ && rm -rf /var/lib/apt/lists/* \ && update-ca-certificates -COPY --from=builder2 /build/new-api / +COPY --from=builder2 /build/heicode / EXPOSE 3000 WORKDIR /data -ENTRYPOINT ["/new-api"] +ENTRYPOINT ["/heicode"] diff --git a/new-api/Dockerfile.dev b/heicode/Dockerfile.dev similarity index 84% rename from new-api/Dockerfile.dev rename to heicode/Dockerfile.dev index 6601e3d..a81c86d 100644 --- a/new-api/Dockerfile.dev +++ b/heicode/Dockerfile.dev @@ -20,7 +20,7 @@ RUN mkdir -p web/default/dist web/classic/dist && \ echo 'devuse frontend dev server' > web/default/dist/index.html && \ echo 'devuse frontend dev server' > web/classic/dist/index.html -RUN go build -ldflags "-s -w -X 'github.com/QuantumNous/new-api/common.Version=$(cat VERSION)'" -o new-api +RUN go build -ldflags "-s -w -X 'github.com/heicode/manager/common.Version=$(cat VERSION)'" -o heicode FROM debian:bookworm-slim @@ -29,7 +29,7 @@ RUN apt-get update \ && rm -rf /var/lib/apt/lists/* \ && update-ca-certificates -COPY --from=builder /build/new-api / +COPY --from=builder /build/heicode / EXPOSE 3000 WORKDIR /data -ENTRYPOINT ["/new-api"] +ENTRYPOINT ["/heicode"] diff --git a/new-api/LICENSE b/heicode/LICENSE similarity index 100% rename from new-api/LICENSE rename to heicode/LICENSE diff --git a/new-api/README.en.md b/heicode/README.en.md similarity index 89% rename from new-api/README.en.md rename to heicode/README.en.md index cc274eb..8a45984 100644 --- a/new-api/README.en.md +++ b/heicode/README.en.md @@ -1,6 +1,6 @@
-![new-api](/web/default/public/logo.png) +![heicode](/web/default/public/logo.png) # New API @@ -14,26 +14,26 @@

- - license + + license - - release + + release - + docker - + docker - - GoReportCard + + GoReportCard

- Calcium-Ion%2Fnew-api | Trendshift + Calcium-Ion%2Fheicode | Trendshift

@@ -88,13 +88,13 @@ ## 🙏 Special Thanks

- + JetBrains Logo

- Thanks to JetBrains for providing free open-source development license for this project + Thanks to JetBrains for providing free open-source development license for this project

--- @@ -105,8 +105,8 @@ ```bash # Clone the project -git clone https://github.com/QuantumNous/new-api.git -cd new-api +git clone https://github.com/QuantumNous/heicode.git +cd heicode # Edit docker-compose.yml configuration nano docker-compose.yml @@ -120,22 +120,22 @@ docker-compose up -d ```bash # Pull the latest image -docker pull calciumion/new-api:latest +docker pull calciumion/heicode:latest # Using SQLite (default) -docker run --name new-api -d --restart always \ +docker run --name heicode -d --restart always \ -p 3000:3000 \ -e TZ=Asia/Shanghai \ -v ./data:/data \ - calciumion/new-api:latest + calciumion/heicode:latest # Using MySQL -docker run --name new-api -d --restart always \ +docker run --name heicode -d --restart always \ -p 3000:3000 \ -e SQL_DSN="root:123456@tcp(localhost:3306)/oneapi" \ -e TZ=Asia/Shanghai \ -v ./data:/data \ - calciumion/new-api:latest + calciumion/heicode:latest ``` > **💡 Tip:** `-v ./data:/data` will save data in the `data` folder of the current directory, you can also change it to an absolute path like `-v /your/custom/path:/data` @@ -154,7 +154,7 @@ docker run --name new-api -d --restart always \
-### 📖 [Official Documentation](https://docs.newapi.pro/en/docs) | [![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/QuantumNous/new-api) +### 📖 [Official Documentation](https://docs.newapi.pro/en/docs) | [![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/QuantumNous/heicode)
@@ -284,7 +284,7 @@ docker run --name new-api -d --restart always \ ## 🚢 Deployment > [!TIP] -> **Latest Docker image:** `calciumion/new-api:latest` +> **Latest Docker image:** `calciumion/heicode:latest` ### 📋 Deployment Requirements @@ -311,12 +311,12 @@ docker run --name new-api -d --restart always \ | `AZURE_DEFAULT_API_VERSION` | Azure API version | `2025-04-01-preview` | | `ERROR_LOG_ENABLED` | Error log switch | `false` | | `PYROSCOPE_URL` | Pyroscope server address | - | -| `PYROSCOPE_APP_NAME` | Pyroscope application name | `new-api` | +| `PYROSCOPE_APP_NAME` | Pyroscope application name | `heicode` | | `PYROSCOPE_BASIC_AUTH_USER` | Pyroscope basic auth user | - | | `PYROSCOPE_BASIC_AUTH_PASSWORD` | Pyroscope basic auth password | - | | `PYROSCOPE_MUTEX_RATE` | Pyroscope mutex sampling rate | `5` | | `PYROSCOPE_BLOCK_RATE` | Pyroscope block sampling rate | `5` | -| `HOSTNAME` | Hostname tag for Pyroscope | `new-api` | +| `HOSTNAME` | Hostname tag for Pyroscope | `heicode` | 📖 **Complete configuration:** [Environment Variables Documentation](https://docs.newapi.pro/en/docs/installation/config-maintenance/environment-variables) @@ -329,8 +329,8 @@ docker run --name new-api -d --restart always \ ```bash # Clone the project -git clone https://github.com/QuantumNous/new-api.git -cd new-api +git clone https://github.com/QuantumNous/heicode.git +cd heicode # Edit configuration nano docker-compose.yml @@ -346,21 +346,21 @@ docker-compose up -d **Using SQLite:** ```bash -docker run --name new-api -d --restart always \ +docker run --name heicode -d --restart always \ -p 3000:3000 \ -e TZ=Asia/Shanghai \ -v ./data:/data \ - calciumion/new-api:latest + calciumion/heicode:latest ``` **Using MySQL:** ```bash -docker run --name new-api -d --restart always \ +docker run --name heicode -d --restart always \ -p 3000:3000 \ -e SQL_DSN="root:123456@tcp(localhost:3306)/oneapi" \ -e TZ=Asia/Shanghai \ -v ./data:/data \ - calciumion/new-api:latest + calciumion/heicode:latest ``` > **💡 Path explanation:** @@ -410,7 +410,7 @@ docker run --name new-api -d --restart always \ | Project | Description | |------|------| | [neko-api-key-tool](https://github.com/Calcium-Ion/neko-api-key-tool) | Key quota query tool | -| [new-api-horizon](https://github.com/Calcium-Ion/new-api-horizon) | New API high-performance optimized version | +| [heicode-horizon](https://github.com/Calcium-Ion/heicode-horizon) | New API high-performance optimized version | --- @@ -440,7 +440,7 @@ Welcome all forms of contribution!
-[![Star History Chart](https://api.star-history.com/svg?repos=Calcium-Ion/new-api&type=Date)](https://star-history.com/#Calcium-Ion/new-api&Date) +[![Star History Chart](https://api.star-history.com/svg?repos=Calcium-Ion/heicode&type=Date)](https://star-history.com/#Calcium-Ion/heicode&Date)
@@ -452,7 +452,7 @@ Welcome all forms of contribution! If this project is helpful to you, welcome to give us a ⭐️ Star! -**[Official Documentation](https://docs.newapi.pro/en/docs)** • **[Issue Feedback](https://github.com/Calcium-Ion/new-api/issues)** • **[Latest Release](https://github.com/Calcium-Ion/new-api/releases)** +**[Official Documentation](https://docs.newapi.pro/en/docs)** • **[Issue Feedback](https://github.com/Calcium-Ion/heicode/issues)** • **[Latest Release](https://github.com/Calcium-Ion/heicode/releases)** Built with ❤️ by QuantumNous diff --git a/new-api/README.fr.md b/heicode/README.fr.md similarity index 90% rename from new-api/README.fr.md rename to heicode/README.fr.md index f7d8399..5785892 100644 --- a/new-api/README.fr.md +++ b/heicode/README.fr.md @@ -1,6 +1,6 @@
-![new-api](/web/default/public/logo.png) +![heicode](/web/default/public/logo.png) # New API @@ -15,29 +15,29 @@

- - licence + + licence - version + --> + version + --> docker - GoReportCard + --> + GoReportCard

- QuantumNous%2Fnew-api | Trendshift + QuantumNous%2Fheicode | Trendshift
- + Featured|HelloGitHub + --> New API - All-in-one AI asset management gateway. | Product Hunt

@@ -93,13 +93,13 @@ ## 🙏 Remerciements spéciaux

- + JetBrains Logo

- Merci à JetBrains pour avoir fourni une licence de développement open-source gratuite pour ce projet + Merci à JetBrains pour avoir fourni une licence de développement open-source gratuite pour ce projet

--- @@ -110,8 +110,8 @@ ```bash # Cloner le projet -git clone https://github.com/QuantumNous/new-api.git -cd new-api +git clone https://github.com/QuantumNous/heicode.git +cd heicode # Modifier la configuration docker-compose.yml nano docker-compose.yml @@ -125,22 +125,22 @@ docker-compose up -d ```bash # Tirer la dernière image -docker pull calciumion/new-api:latest +docker pull calciumion/heicode:latest # Utilisation de SQLite (par défaut) -docker run --name new-api -d --restart always \ +docker run --name heicode -d --restart always \ -p 3000:3000 \ -e TZ=Asia/Shanghai \ -v ./data:/data \ - calciumion/new-api:latest + calciumion/heicode:latest # Utilisation de MySQL -docker run --name new-api -d --restart always \ +docker run --name heicode -d --restart always \ -p 3000:3000 \ -e SQL_DSN="root:123456@tcp(localhost:3306)/oneapi" \ -e TZ=Asia/Shanghai \ -v ./data:/data \ - calciumion/new-api:latest + calciumion/heicode:latest ``` > **💡 Astuce:** `-v ./data:/data` sauvegardera les données dans le dossier `data` du répertoire actuel, vous pouvez également le changer en chemin absolu comme `-v /your/custom/path:/data` @@ -159,7 +159,7 @@ docker run --name new-api -d --restart always \
-### 📖 [Documentation officielle](https://docs.newapi.pro/en/docs) | [![Demander à DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/QuantumNous/new-api) +### 📖 [Documentation officielle](https://docs.newapi.pro/en/docs) | [![Demander à DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/QuantumNous/heicode)
@@ -291,7 +291,7 @@ docker run --name new-api -d --restart always \ ## 🚢 Déploiement > [!TIP] -> **Dernière image Docker:** `calciumion/new-api:latest` +> **Dernière image Docker:** `calciumion/heicode:latest` ### 📋 Exigences de déploiement @@ -318,12 +318,12 @@ docker run --name new-api -d --restart always \ | `AZURE_DEFAULT_API_VERSION` | Version de l'API Azure | `2025-04-01-preview` | | `ERROR_LOG_ENABLED` | Interrupteur du journal d'erreurs | `false` | | `PYROSCOPE_URL` | Adresse du serveur Pyroscope | - | -| `PYROSCOPE_APP_NAME` | Nom de l'application Pyroscope | `new-api` | +| `PYROSCOPE_APP_NAME` | Nom de l'application Pyroscope | `heicode` | | `PYROSCOPE_BASIC_AUTH_USER` | Utilisateur Basic Auth Pyroscope | - | | `PYROSCOPE_BASIC_AUTH_PASSWORD` | Mot de passe Basic Auth Pyroscope | - | | `PYROSCOPE_MUTEX_RATE` | Taux d'échantillonnage mutex Pyroscope | `5` | | `PYROSCOPE_BLOCK_RATE` | Taux d'échantillonnage block Pyroscope | `5` | -| `HOSTNAME` | Nom d'hôte tagué pour Pyroscope | `new-api` | +| `HOSTNAME` | Nom d'hôte tagué pour Pyroscope | `heicode` | 📖 **Configuration complète:** [Documentation des variables d'environnement](https://docs.newapi.pro/en/docs/installation/config-maintenance/environment-variables) @@ -336,8 +336,8 @@ docker run --name new-api -d --restart always \ ```bash # Cloner le projet -git clone https://github.com/QuantumNous/new-api.git -cd new-api +git clone https://github.com/QuantumNous/heicode.git +cd heicode # Modifier la configuration nano docker-compose.yml @@ -353,21 +353,21 @@ docker-compose up -d **Utilisation de SQLite:** ```bash -docker run --name new-api -d --restart always \ +docker run --name heicode -d --restart always \ -p 3000:3000 \ -e TZ=Asia/Shanghai \ -v ./data:/data \ - calciumion/new-api:latest + calciumion/heicode:latest ``` **Utilisation de MySQL:** ```bash -docker run --name new-api -d --restart always \ +docker run --name heicode -d --restart always \ -p 3000:3000 \ -e SQL_DSN="root:123456@tcp(localhost:3306)/oneapi" \ -e TZ=Asia/Shanghai \ -v ./data:/data \ - calciumion/new-api:latest + calciumion/heicode:latest ``` > **💡 Explication du chemin:** @@ -417,7 +417,7 @@ docker run --name new-api -d --restart always \ | Projet | Description | |------|------| | [neko-api-key-tool](https://github.com/Calcium-Ion/neko-api-key-tool) | Outil de recherche de quota d'utilisation avec une clé | -| [new-api-horizon](https://github.com/Calcium-Ion/new-api-horizon) | Version optimisée haute performance de New API | +| [heicode-horizon](https://github.com/Calcium-Ion/heicode-horizon) | Version optimisée haute performance de New API | --- @@ -457,7 +457,7 @@ Si les politiques de votre organisation ne permettent pas l'utilisation de logic
-[![Graphique de l'historique des étoiles](https://api.star-history.com/svg?repos=Calcium-Ion/new-api&type=Date)](https://star-history.com/#Calcium-Ion/new-api&Date) +[![Graphique de l'historique des étoiles](https://api.star-history.com/svg?repos=Calcium-Ion/heicode&type=Date)](https://star-history.com/#Calcium-Ion/heicode&Date)
@@ -469,7 +469,7 @@ Si les politiques de votre organisation ne permettent pas l'utilisation de logic Si ce projet vous est utile, bienvenue à nous donner une ⭐️ Étoile! -**[Documentation officielle](https://docs.newapi.pro/en/docs)** • **[Commentaires sur les problèmes](https://github.com/Calcium-Ion/new-api/issues)** • **[Dernière version](https://github.com/Calcium-Ion/new-api/releases)** +**[Documentation officielle](https://docs.newapi.pro/en/docs)** • **[Commentaires sur les problèmes](https://github.com/Calcium-Ion/heicode/issues)** • **[Dernière version](https://github.com/Calcium-Ion/heicode/releases)** Construit avec ❤️ par QuantumNous diff --git a/new-api/README.ja.md b/heicode/README.ja.md similarity index 90% rename from new-api/README.ja.md rename to heicode/README.ja.md index 77e3f84..d53a63a 100644 --- a/new-api/README.ja.md +++ b/heicode/README.ja.md @@ -1,6 +1,6 @@
-![new-api](/web/default/public/logo.png) +![heicode](/web/default/public/logo.png) # New API @@ -15,29 +15,29 @@

- - license + + license - release + --> + release + --> docker - GoReportCard + --> + GoReportCard

- QuantumNous%2Fnew-api | Trendshift + QuantumNous%2Fheicode | Trendshift
- + Featured|HelloGitHub + --> New API - All-in-one AI asset management gateway. | Product Hunt

@@ -93,13 +93,13 @@ ## 🙏 特別な感謝

- + JetBrains Logo

- 感謝 JetBrains が本プロジェクトに無料のオープンソース開発ライセンスを提供してくれたことに感謝します + 感謝 JetBrains が本プロジェクトに無料のオープンソース開発ライセンスを提供してくれたことに感謝します

--- @@ -110,8 +110,8 @@ ```bash # プロジェクトをクローン -git clone https://github.com/QuantumNous/new-api.git -cd new-api +git clone https://github.com/QuantumNous/heicode.git +cd heicode # docker-compose.yml 設定を編集 nano docker-compose.yml @@ -125,22 +125,22 @@ docker-compose up -d ```bash # 最新のイメージをプル -docker pull calciumion/new-api:latest +docker pull calciumion/heicode:latest # SQLiteを使用(デフォルト) -docker run --name new-api -d --restart always \ +docker run --name heicode -d --restart always \ -p 3000:3000 \ -e TZ=Asia/Shanghai \ -v ./data:/data \ - calciumion/new-api:latest + calciumion/heicode:latest # MySQLを使用 -docker run --name new-api -d --restart always \ +docker run --name heicode -d --restart always \ -p 3000:3000 \ -e SQL_DSN="root:123456@tcp(localhost:3306)/oneapi" \ -e TZ=Asia/Shanghai \ -v ./data:/data \ - calciumion/new-api:latest + calciumion/heicode:latest ``` > **💡 ヒント:** `-v ./data:/data` は現在のディレクトリの `data` フォルダにデータを保存します。絶対パスに変更することもできます:`-v /your/custom/path:/data` @@ -159,7 +159,7 @@ docker run --name new-api -d --restart always \
-### 📖 [公式ドキュメント](https://docs.newapi.pro/ja/docs) | [![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/QuantumNous/new-api) +### 📖 [公式ドキュメント](https://docs.newapi.pro/ja/docs) | [![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/QuantumNous/heicode)
@@ -293,7 +293,7 @@ docker run --name new-api -d --restart always \ ## 🚢 デプロイ > [!TIP] -> **最新のDockerイメージ:** `calciumion/new-api:latest` +> **最新のDockerイメージ:** `calciumion/heicode:latest` ### 📋 デプロイ要件 @@ -320,12 +320,12 @@ docker run --name new-api -d --restart always \ | `AZURE_DEFAULT_API_VERSION` | Azure APIバージョン | `2025-04-01-preview` | | `ERROR_LOG_ENABLED` | エラーログスイッチ | `false` | | `PYROSCOPE_URL` | Pyroscopeサーバーのアドレス | - | -| `PYROSCOPE_APP_NAME` | Pyroscopeアプリ名 | `new-api` | +| `PYROSCOPE_APP_NAME` | Pyroscopeアプリ名 | `heicode` | | `PYROSCOPE_BASIC_AUTH_USER` | Pyroscope Basic Authユーザー | - | | `PYROSCOPE_BASIC_AUTH_PASSWORD` | Pyroscope Basic Authパスワード | - | | `PYROSCOPE_MUTEX_RATE` | Pyroscope mutexサンプリング率 | `5` | | `PYROSCOPE_BLOCK_RATE` | Pyroscope blockサンプリング率 | `5` | -| `HOSTNAME` | Pyroscope用のホスト名タグ | `new-api` | +| `HOSTNAME` | Pyroscope用のホスト名タグ | `heicode` | 📖 **完全な設定:** [環境変数ドキュメント](https://docs.newapi.pro/ja/docs/installation/config-maintenance/environment-variables) @@ -338,8 +338,8 @@ docker run --name new-api -d --restart always \ ```bash # プロジェクトをクローン -git clone https://github.com/QuantumNous/new-api.git -cd new-api +git clone https://github.com/QuantumNous/heicode.git +cd heicode # 設定を編集 nano docker-compose.yml @@ -355,21 +355,21 @@ docker-compose up -d **SQLiteを使用:** ```bash -docker run --name new-api -d --restart always \ +docker run --name heicode -d --restart always \ -p 3000:3000 \ -e TZ=Asia/Shanghai \ -v ./data:/data \ - calciumion/new-api:latest + calciumion/heicode:latest ``` **MySQLを使用:** ```bash -docker run --name new-api -d --restart always \ +docker run --name heicode -d --restart always \ -p 3000:3000 \ -e SQL_DSN="root:123456@tcp(localhost:3306)/oneapi" \ -e TZ=Asia/Shanghai \ -v ./data:/data \ - calciumion/new-api:latest + calciumion/heicode:latest ``` > **💡 パス説明:** @@ -417,7 +417,7 @@ docker run --name new-api -d --restart always \ | プロジェクト | 説明 | |------|------| | [neko-api-key-tool](https://github.com/Calcium-Ion/neko-api-key-tool) | キー使用量クォータ照会ツール | -| [new-api-horizon](https://github.com/Calcium-Ion/new-api-horizon) | New API高性能最適化版 | +| [heicode-horizon](https://github.com/Calcium-Ion/heicode-horizon) | New API高性能最適化版 | --- @@ -457,7 +457,7 @@ docker run --name new-api -d --restart always \
-[![スター履歴チャート](https://api.star-history.com/svg?repos=Calcium-Ion/new-api&type=Date)](https://star-history.com/#Calcium-Ion/new-api&Date) +[![スター履歴チャート](https://api.star-history.com/svg?repos=Calcium-Ion/heicode&type=Date)](https://star-history.com/#Calcium-Ion/heicode&Date)
@@ -469,7 +469,7 @@ docker run --name new-api -d --restart always \ このプロジェクトがあなたのお役に立てたなら、ぜひ ⭐️ スターをください! -**[公式ドキュメント](https://docs.newapi.pro/ja/docs)** • **[問題フィードバック](https://github.com/Calcium-Ion/new-api/issues)** • **[最新リリース](https://github.com/Calcium-Ion/new-api/releases)** +**[公式ドキュメント](https://docs.newapi.pro/ja/docs)** • **[問題フィードバック](https://github.com/Calcium-Ion/heicode/issues)** • **[最新リリース](https://github.com/Calcium-Ion/heicode/releases)** ❤️ で構築された QuantumNous diff --git a/new-api/README.md b/heicode/README.md similarity index 89% rename from new-api/README.md rename to heicode/README.md index cb037a8..e2f90a6 100644 --- a/new-api/README.md +++ b/heicode/README.md @@ -1,6 +1,6 @@
-![new-api](/web/default/public/logo.png) +![heicode](/web/default/public/logo.png) # New API @@ -15,29 +15,29 @@

- - license + + license - release + --> + release + --> docker - GoReportCard + --> + GoReportCard

- QuantumNous%2Fnew-api | Trendshift + QuantumNous%2Fheicode | Trendshift
- + Featured|HelloGitHub + --> New API - All-in-one AI asset management gateway. | Product Hunt

@@ -93,13 +93,13 @@ ## 🙏 Special Thanks

- + JetBrains Logo

- Thanks to JetBrains for providing free open-source development license for this project + Thanks to JetBrains for providing free open-source development license for this project

--- @@ -110,8 +110,8 @@ ```bash # Clone the project -git clone https://github.com/QuantumNous/new-api.git -cd new-api +git clone https://github.com/QuantumNous/heicode.git +cd heicode # Edit docker-compose.yml configuration nano docker-compose.yml @@ -125,22 +125,22 @@ docker-compose up -d ```bash # Pull the latest image -docker pull calciumion/new-api:latest +docker pull calciumion/heicode:latest # Using SQLite (default) -docker run --name new-api -d --restart always \ +docker run --name heicode -d --restart always \ -p 3000:3000 \ -e TZ=Asia/Shanghai \ -v ./data:/data \ - calciumion/new-api:latest + calciumion/heicode:latest # Using MySQL -docker run --name new-api -d --restart always \ +docker run --name heicode -d --restart always \ -p 3000:3000 \ -e SQL_DSN="root:123456@tcp(localhost:3306)/oneapi" \ -e TZ=Asia/Shanghai \ -v ./data:/data \ - calciumion/new-api:latest + calciumion/heicode:latest ``` > **💡 Tip:** `-v ./data:/data` will save data in the `data` folder of the current directory, you can also change it to an absolute path like `-v /your/custom/path:/data` @@ -159,7 +159,7 @@ docker run --name new-api -d --restart always \
-### 📖 [Official Documentation](https://docs.newapi.pro/en/docs) | [![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/QuantumNous/new-api) +### 📖 [Official Documentation](https://docs.newapi.pro/en/docs) | [![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/QuantumNous/heicode)
@@ -291,7 +291,7 @@ docker run --name new-api -d --restart always \ ## 🚢 Deployment > [!TIP] -> **Latest Docker image:** `calciumion/new-api:latest` +> **Latest Docker image:** `calciumion/heicode:latest` ### 📋 Deployment Requirements @@ -318,12 +318,12 @@ docker run --name new-api -d --restart always \ | `AZURE_DEFAULT_API_VERSION` | Azure API version | `2025-04-01-preview` | | `ERROR_LOG_ENABLED` | Error log switch | `false` | | `PYROSCOPE_URL` | Pyroscope server address | - | -| `PYROSCOPE_APP_NAME` | Pyroscope application name | `new-api` | +| `PYROSCOPE_APP_NAME` | Pyroscope application name | `heicode` | | `PYROSCOPE_BASIC_AUTH_USER` | Pyroscope basic auth user | - | | `PYROSCOPE_BASIC_AUTH_PASSWORD` | Pyroscope basic auth password | - | | `PYROSCOPE_MUTEX_RATE` | Pyroscope mutex sampling rate | `5` | | `PYROSCOPE_BLOCK_RATE` | Pyroscope block sampling rate | `5` | -| `HOSTNAME` | Hostname tag for Pyroscope | `new-api` | +| `HOSTNAME` | Hostname tag for Pyroscope | `heicode` | 📖 **Complete configuration:** [Environment Variables Documentation](https://docs.newapi.pro/en/docs/installation/config-maintenance/environment-variables) @@ -336,8 +336,8 @@ docker run --name new-api -d --restart always \ ```bash # Clone the project -git clone https://github.com/QuantumNous/new-api.git -cd new-api +git clone https://github.com/QuantumNous/heicode.git +cd heicode # Edit configuration nano docker-compose.yml @@ -353,21 +353,21 @@ docker-compose up -d **Using SQLite:** ```bash -docker run --name new-api -d --restart always \ +docker run --name heicode -d --restart always \ -p 3000:3000 \ -e TZ=Asia/Shanghai \ -v ./data:/data \ - calciumion/new-api:latest + calciumion/heicode:latest ``` **Using MySQL:** ```bash -docker run --name new-api -d --restart always \ +docker run --name heicode -d --restart always \ -p 3000:3000 \ -e SQL_DSN="root:123456@tcp(localhost:3306)/oneapi" \ -e TZ=Asia/Shanghai \ -v ./data:/data \ - calciumion/new-api:latest + calciumion/heicode:latest ``` > **💡 Path explanation:** @@ -417,7 +417,7 @@ docker run --name new-api -d --restart always \ | Project | Description | |------|------| | [neko-api-key-tool](https://github.com/Calcium-Ion/neko-api-key-tool) | Key quota query tool | -| [new-api-horizon](https://github.com/Calcium-Ion/new-api-horizon) | New API high-performance optimized version | +| [heicode-horizon](https://github.com/Calcium-Ion/heicode-horizon) | New API high-performance optimized version | --- @@ -457,7 +457,7 @@ If your organization's policies do not permit the use of AGPLv3-licensed softwar
-[![Star History Chart](https://api.star-history.com/svg?repos=Calcium-Ion/new-api&type=Date)](https://star-history.com/#Calcium-Ion/new-api&Date) +[![Star History Chart](https://api.star-history.com/svg?repos=Calcium-Ion/heicode&type=Date)](https://star-history.com/#Calcium-Ion/heicode&Date)
@@ -469,7 +469,7 @@ If your organization's policies do not permit the use of AGPLv3-licensed softwar If this project is helpful to you, welcome to give us a ⭐️ Star! -**[Official Documentation](https://docs.newapi.pro/en/docs)** • **[Issue Feedback](https://github.com/Calcium-Ion/new-api/issues)** • **[Latest Release](https://github.com/Calcium-Ion/new-api/releases)** +**[Official Documentation](https://docs.newapi.pro/en/docs)** • **[Issue Feedback](https://github.com/Calcium-Ion/heicode/issues)** • **[Latest Release](https://github.com/Calcium-Ion/heicode/releases)** Built with ❤️ by QuantumNous diff --git a/new-api/README.sync-conflict-20260430-014104-GVADS2N.md b/heicode/README.sync-conflict-20260430-014104-GVADS2N.md similarity index 84% rename from new-api/README.sync-conflict-20260430-014104-GVADS2N.md rename to heicode/README.sync-conflict-20260430-014104-GVADS2N.md index 41bd586..7c7a51b 100644 --- a/new-api/README.sync-conflict-20260430-014104-GVADS2N.md +++ b/heicode/README.sync-conflict-20260430-014104-GVADS2N.md @@ -1,6 +1,6 @@ -# Heicode Manager(源码目录 `new-api`) +# Heicode Manager(源码目录 `heicode`) -本目录实现 **Heicode Manager**:网关与管理控制台(账号、渠道、模型策略、计费等)。目录名 `new-api` 为历史工程名;对外产品与文档统一称 **Heicode Manager**。目标是支撑 **Heicode 客户端**「浏览器登录后即用模型」。 +本目录实现 **Heicode Manager**:网关与管理控制台(账号、渠道、模型策略、计费等)。目录名 `heicode` 为历史工程名;对外产品与文档统一称 **Heicode Manager**。目标是支撑 **Heicode 客户端**「浏览器登录后即用模型」。 ## 本仓库角色 @@ -30,7 +30,7 @@ ## 快速运行(本地 Docker) ```bash -cd new-api +cd heicode docker compose -f docker-compose.yml -f docker-compose.override.yml up --build -d ``` @@ -38,7 +38,7 @@ docker compose -f docker-compose.yml -f docker-compose.override.yml up --build - ```bash docker compose ps -docker compose logs -f new-api +docker compose logs -f heicode ``` 默认访问地址:`http://localhost:3000` @@ -67,4 +67,4 @@ docker compose logs -f new-api ## 许可证与来源 -本工程在开源网关上游基础上演进(目录名 `new-api` 仅为历史路径),遵循对应许可证要求。企业使用前请完成内部合规审查。 +本工程在开源网关上游基础上演进(目录名 `heicode` 仅为历史路径),遵循对应许可证要求。企业使用前请完成内部合规审查。 diff --git a/new-api/README.zh_CN.md b/heicode/README.zh_CN.md similarity index 89% rename from new-api/README.zh_CN.md rename to heicode/README.zh_CN.md index 725df2b..99ce111 100644 --- a/new-api/README.zh_CN.md +++ b/heicode/README.zh_CN.md @@ -1,6 +1,6 @@
-![new-api](/web/default/public/logo.png) +![heicode](/web/default/public/logo.png) # New API @@ -15,29 +15,29 @@

- - license + + license - release + --> + release + --> docker - GoReportCard + --> + GoReportCard

- QuantumNous%2Fnew-api | Trendshift + QuantumNous%2Fheicode | Trendshift
- + Featured|HelloGitHub + --> New API - All-in-one AI asset management gateway. | Product Hunt

@@ -93,13 +93,13 @@ ## 🙏 特别鸣谢

- + JetBrains Logo

- 感谢 JetBrains 为本项目提供免费的开源开发许可证 + 感谢 JetBrains 为本项目提供免费的开源开发许可证

--- @@ -110,8 +110,8 @@ ```bash # 克隆项目 -git clone https://github.com/QuantumNous/new-api.git -cd new-api +git clone https://github.com/QuantumNous/heicode.git +cd heicode # 编辑 docker-compose.yml 配置 nano docker-compose.yml @@ -125,22 +125,22 @@ docker-compose up -d ```bash # 拉取最新镜像 -docker pull calciumion/new-api:latest +docker pull calciumion/heicode:latest # 使用 SQLite(默认) -docker run --name new-api -d --restart always \ +docker run --name heicode -d --restart always \ -p 3000:3000 \ -e TZ=Asia/Shanghai \ -v ./data:/data \ - calciumion/new-api:latest + calciumion/heicode:latest # 使用 MySQL -docker run --name new-api -d --restart always \ +docker run --name heicode -d --restart always \ -p 3000:3000 \ -e SQL_DSN="root:123456@tcp(localhost:3306)/oneapi" \ -e TZ=Asia/Shanghai \ -v ./data:/data \ - calciumion/new-api:latest + calciumion/heicode:latest ``` > **💡 提示:** `-v ./data:/data` 会将数据保存在当前目录的 `data` 文件夹中,你也可以改为绝对路径如 `-v /your/custom/path:/data` @@ -159,7 +159,7 @@ docker run --name new-api -d --restart always \
-### 📖 [官方文档](https://docs.newapi.pro/zh/docs) | [![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/QuantumNous/new-api) +### 📖 [官方文档](https://docs.newapi.pro/zh/docs) | [![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/QuantumNous/heicode)
@@ -291,7 +291,7 @@ docker run --name new-api -d --restart always \ ## 🚢 部署 > [!TIP] -> **最新版 Docker 镜像:** `calciumion/new-api:latest` +> **最新版 Docker 镜像:** `calciumion/heicode:latest` ### 📋 部署要求 @@ -318,12 +318,12 @@ docker run --name new-api -d --restart always \ | `AZURE_DEFAULT_API_VERSION` | Azure API 版本 | `2025-04-01-preview` | | `ERROR_LOG_ENABLED` | 错误日志开关 | `false` | | `PYROSCOPE_URL` | Pyroscope 服务地址 | - | -| `PYROSCOPE_APP_NAME` | Pyroscope 应用名 | `new-api` | +| `PYROSCOPE_APP_NAME` | Pyroscope 应用名 | `heicode` | | `PYROSCOPE_BASIC_AUTH_USER` | Pyroscope Basic Auth 用户名 | - | | `PYROSCOPE_BASIC_AUTH_PASSWORD` | Pyroscope Basic Auth 密码 | - | | `PYROSCOPE_MUTEX_RATE` | Pyroscope mutex 采样率 | `5` | | `PYROSCOPE_BLOCK_RATE` | Pyroscope block 采样率 | `5` | -| `HOSTNAME` | Pyroscope 标签里的主机名 | `new-api` | +| `HOSTNAME` | Pyroscope 标签里的主机名 | `heicode` | 📖 **完整配置:** [环境变量文档](https://docs.newapi.pro/zh/docs/installation/config-maintenance/environment-variables) @@ -336,8 +336,8 @@ docker run --name new-api -d --restart always \ ```bash # 克隆项目 -git clone https://github.com/QuantumNous/new-api.git -cd new-api +git clone https://github.com/QuantumNous/heicode.git +cd heicode # 编辑配置 nano docker-compose.yml @@ -353,21 +353,21 @@ docker-compose up -d **使用 SQLite:** ```bash -docker run --name new-api -d --restart always \ +docker run --name heicode -d --restart always \ -p 3000:3000 \ -e TZ=Asia/Shanghai \ -v ./data:/data \ - calciumion/new-api:latest + calciumion/heicode:latest ``` **使用 MySQL:** ```bash -docker run --name new-api -d --restart always \ +docker run --name heicode -d --restart always \ -p 3000:3000 \ -e SQL_DSN="root:123456@tcp(localhost:3306)/oneapi" \ -e TZ=Asia/Shanghai \ -v ./data:/data \ - calciumion/new-api:latest + calciumion/heicode:latest ``` > **💡 路径说明:** @@ -417,7 +417,7 @@ docker run --name new-api -d --restart always \ | 项目 | 说明 | |------|------| | [neko-api-key-tool](https://github.com/Calcium-Ion/neko-api-key-tool) | Key 额度查询工具 | -| [new-api-horizon](https://github.com/Calcium-Ion/new-api-horizon) | New API 高性能优化版 | +| [heicode-horizon](https://github.com/Calcium-Ion/heicode-horizon) | New API 高性能优化版 | --- @@ -457,7 +457,7 @@ docker run --name new-api -d --restart always \
-[![Star History Chart](https://api.star-history.com/svg?repos=Calcium-Ion/new-api&type=Date)](https://star-history.com/#Calcium-Ion/new-api&Date) +[![Star History Chart](https://api.star-history.com/svg?repos=Calcium-Ion/heicode&type=Date)](https://star-history.com/#Calcium-Ion/heicode&Date)
@@ -469,7 +469,7 @@ docker run --name new-api -d --restart always \ 如果这个项目对你有帮助,欢迎给我们一个 ⭐️ Star! -**[官方文档](https://docs.newapi.pro/zh/docs)** • **[问题反馈](https://github.com/Calcium-Ion/new-api/issues)** • **[最新发布](https://github.com/Calcium-Ion/new-api/releases)** +**[官方文档](https://docs.newapi.pro/zh/docs)** • **[问题反馈](https://github.com/Calcium-Ion/heicode/issues)** • **[最新发布](https://github.com/Calcium-Ion/heicode/releases)** Built with ❤️ by QuantumNous diff --git a/new-api/README.zh_TW.md b/heicode/README.zh_TW.md similarity index 89% rename from new-api/README.zh_TW.md rename to heicode/README.zh_TW.md index 9041215..3875346 100644 --- a/new-api/README.zh_TW.md +++ b/heicode/README.zh_TW.md @@ -1,6 +1,6 @@
-![new-api](/web/default/public/logo.png) +![heicode](/web/default/public/logo.png) # New API @@ -15,29 +15,29 @@

- - license + + license - - release + + release - + docker - - GoReportCard + + GoReportCard

- QuantumNous%2Fnew-api | Trendshift + QuantumNous%2Fheicode | Trendshift
- + Featured|HelloGitHub - + New API - All-in-one AI asset management gateway. | Product Hunt

@@ -93,13 +93,13 @@ ## 🙏 特別鳴謝

- + JetBrains Logo

- 感謝 JetBrains 為本項目提供免費的開源開發許可證 + 感謝 JetBrains 為本項目提供免費的開源開發許可證

--- @@ -110,8 +110,8 @@ ```bash # 複製項目 -git clone https://github.com/QuantumNous/new-api.git -cd new-api +git clone https://github.com/QuantumNous/heicode.git +cd heicode # 編輯 docker-compose.yml 配置 nano docker-compose.yml @@ -125,22 +125,22 @@ docker-compose up -d ```bash # 拉取最新鏡像 -docker pull calciumion/new-api:latest +docker pull calciumion/heicode:latest # 使用 SQLite(預設) -docker run --name new-api -d --restart always \ +docker run --name heicode -d --restart always \ -p 3000:3000 \ -e TZ=Asia/Shanghai \ -v ./data:/data \ - calciumion/new-api:latest + calciumion/heicode:latest # 使用 MySQL -docker run --name new-api -d --restart always \ +docker run --name heicode -d --restart always \ -p 3000:3000 \ -e SQL_DSN="root:123456@tcp(localhost:3306)/oneapi" \ -e TZ=Asia/Shanghai \ -v ./data:/data \ - calciumion/new-api:latest + calciumion/heicode:latest ``` > **💡 提示:** `-v ./data:/data` 會將數據保存在當前目錄的 `data` 資料夾中,你也可以改為絕對路徑如 `-v /your/custom/path:/data` @@ -159,7 +159,7 @@ docker run --name new-api -d --restart always \
-### 📖 [官方文件](https://docs.newapi.pro/zh/docs) | [![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/QuantumNous/new-api) +### 📖 [官方文件](https://docs.newapi.pro/zh/docs) | [![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/QuantumNous/heicode)
@@ -291,7 +291,7 @@ docker run --name new-api -d --restart always \ ## 🚢 部署 > [!TIP] -> **最新版 Docker 鏡像:** `calciumion/new-api:latest` +> **最新版 Docker 鏡像:** `calciumion/heicode:latest` ### 📋 部署要求 @@ -318,12 +318,12 @@ docker run --name new-api -d --restart always \ | `AZURE_DEFAULT_API_VERSION` | Azure API 版本 | `2025-04-01-preview` | | `ERROR_LOG_ENABLED` | 錯誤日誌開關 | `false` | | `PYROSCOPE_URL` | Pyroscope 服務位址 | - | -| `PYROSCOPE_APP_NAME` | Pyroscope 應用名 | `new-api` | +| `PYROSCOPE_APP_NAME` | Pyroscope 應用名 | `heicode` | | `PYROSCOPE_BASIC_AUTH_USER` | Pyroscope Basic Auth 用戶名 | - | | `PYROSCOPE_BASIC_AUTH_PASSWORD` | Pyroscope Basic Auth 密碼 | - | | `PYROSCOPE_MUTEX_RATE` | Pyroscope mutex 採樣率 | `5` | | `PYROSCOPE_BLOCK_RATE` | Pyroscope block 採樣率 | `5` | -| `HOSTNAME` | Pyroscope 標籤裡的主機名 | `new-api` | +| `HOSTNAME` | Pyroscope 標籤裡的主機名 | `heicode` | 📖 **完整配置:** [環境變數文件](https://docs.newapi.pro/zh/docs/installation/config-maintenance/environment-variables) @@ -336,8 +336,8 @@ docker run --name new-api -d --restart always \ ```bash # 複製項目 -git clone https://github.com/QuantumNous/new-api.git -cd new-api +git clone https://github.com/QuantumNous/heicode.git +cd heicode # 編輯配置 nano docker-compose.yml @@ -353,21 +353,21 @@ docker-compose up -d **使用 SQLite:** ```bash -docker run --name new-api -d --restart always \ +docker run --name heicode -d --restart always \ -p 3000:3000 \ -e TZ=Asia/Shanghai \ -v ./data:/data \ - calciumion/new-api:latest + calciumion/heicode:latest ``` **使用 MySQL:** ```bash -docker run --name new-api -d --restart always \ +docker run --name heicode -d --restart always \ -p 3000:3000 \ -e SQL_DSN="root:123456@tcp(localhost:3306)/oneapi" \ -e TZ=Asia/Shanghai \ -v ./data:/data \ - calciumion/new-api:latest + calciumion/heicode:latest ``` > **💡 路徑說明:** @@ -417,7 +417,7 @@ docker run --name new-api -d --restart always \ | 項目 | 說明 | |------|------| | [neko-api-key-tool](https://github.com/Calcium-Ion/neko-api-key-tool) | Key 額度查詢工具 | -| [new-api-horizon](https://github.com/Calcium-Ion/new-api-horizon) | New API 高性能優化版 | +| [heicode-horizon](https://github.com/Calcium-Ion/heicode-horizon) | New API 高性能優化版 | --- @@ -457,7 +457,7 @@ docker run --name new-api -d --restart always \
-[![Star History Chart](https://api.star-history.com/svg?repos=Calcium-Ion/new-api&type=Date)](https://star-history.com/#Calcium-Ion/new-api&Date) +[![Star History Chart](https://api.star-history.com/svg?repos=Calcium-Ion/heicode&type=Date)](https://star-history.com/#Calcium-Ion/heicode&Date)
@@ -469,7 +469,7 @@ docker run --name new-api -d --restart always \ 如果這個項目對你有幫助,歡迎給我們一個 ⭐️ Star! -**[官方文件](https://docs.newapi.pro/zh/docs)** • **[問題回饋](https://github.com/Calcium-Ion/new-api/issues)** • **[最新發布](https://github.com/Calcium-Ion/new-api/releases)** +**[官方文件](https://docs.newapi.pro/zh/docs)** • **[問題回饋](https://github.com/Calcium-Ion/heicode/issues)** • **[最新發布](https://github.com/Calcium-Ion/heicode/releases)** Built with ❤️ by QuantumNous diff --git a/new-api/VERSION b/heicode/VERSION similarity index 100% rename from new-api/VERSION rename to heicode/VERSION diff --git a/new-api/bin/acceptance_agnet_local.sh b/heicode/bin/acceptance_agnet_local.sh similarity index 98% rename from new-api/bin/acceptance_agnet_local.sh rename to heicode/bin/acceptance_agnet_local.sh index 06ef31e..4cd0c9d 100644 --- a/new-api/bin/acceptance_agnet_local.sh +++ b/heicode/bin/acceptance_agnet_local.sh @@ -2,7 +2,7 @@ set -euo pipefail # Local executable acceptance for Agnet integration matrix. -# Requires an authenticated admin cookie from new-api dashboard. +# Requires an authenticated admin cookie from heicode dashboard. # # Example: # AUTH_COOKIE="session=xxxx" BASE_URL="http://localhost:3000" ./bin/acceptance_agnet_local.sh diff --git a/new-api/bin/azure_vm_deploy.sh b/heicode/bin/azure_vm_deploy.sh similarity index 82% rename from new-api/bin/azure_vm_deploy.sh rename to heicode/bin/azure_vm_deploy.sh index 961cabd..6e8ffd1 100644 --- a/new-api/bin/azure_vm_deploy.sh +++ b/heicode/bin/azure_vm_deploy.sh @@ -8,13 +8,13 @@ set -euo pipefail # - project already synced to VM path # # Example: -# VM_HOST=20.1.2.3 VM_USER=azureuser REMOTE_DIR=/opt/heicode/new-api \ -# IMAGE_TAG=new-api-heicode:local ./bin/azure_vm_deploy.sh +# VM_HOST=20.1.2.3 VM_USER=azureuser REMOTE_DIR=/opt/heicode/heicode \ +# IMAGE_TAG=heicode-manager:local ./bin/azure_vm_deploy.sh VM_HOST="${VM_HOST:-}" VM_USER="${VM_USER:-azureuser}" -REMOTE_DIR="${REMOTE_DIR:-/opt/heicode/new-api}" -IMAGE_TAG="${IMAGE_TAG:-new-api-heicode:local}" +REMOTE_DIR="${REMOTE_DIR:-/opt/heicode/heicode}" +IMAGE_TAG="${IMAGE_TAG:-heicode-manager:local}" HEALTH_URL="${HEALTH_URL:-http://127.0.0.1:3000/api/status}" SSH_OPTS="${SSH_OPTS:-}" @@ -33,7 +33,7 @@ echo "image=${IMAGE_TAG}" # Persist previous image for rollback. ${SSH} "cd '${REMOTE_DIR}' && \ - PREV=\$(docker inspect --format='{{.Config.Image}}' new-api 2>/dev/null || true) && \ + PREV=\$(docker inspect --format='{{.Config.Image}}' heicode 2>/dev/null || true) && \ echo \"\${PREV}\" > .last_success_image && \ echo \"last_success_image=\${PREV}\"" diff --git a/new-api/bin/migration_v0.2-v0.3.sql b/heicode/bin/migration_v0.2-v0.3.sql similarity index 100% rename from new-api/bin/migration_v0.2-v0.3.sql rename to heicode/bin/migration_v0.2-v0.3.sql diff --git a/new-api/bin/migration_v0.3-v0.4.sql b/heicode/bin/migration_v0.3-v0.4.sql similarity index 100% rename from new-api/bin/migration_v0.3-v0.4.sql rename to heicode/bin/migration_v0.3-v0.4.sql diff --git a/new-api/bin/time_test.sh b/heicode/bin/time_test.sh similarity index 100% rename from new-api/bin/time_test.sh rename to heicode/bin/time_test.sh diff --git a/new-api/common/api_type.go b/heicode/common/api_type.go similarity index 98% rename from new-api/common/api_type.go rename to heicode/common/api_type.go index 39c1fe9..baf54b7 100644 --- a/new-api/common/api_type.go +++ b/heicode/common/api_type.go @@ -1,6 +1,6 @@ package common -import "github.com/QuantumNous/new-api/constant" +import "github.com/heicode/manager/constant" func ChannelType2APIType(channelType int) (int, bool) { apiType := -1 diff --git a/new-api/common/audio.go b/heicode/common/audio.go similarity index 100% rename from new-api/common/audio.go rename to heicode/common/audio.go diff --git a/new-api/common/body_storage.go b/heicode/common/body_storage.go similarity index 100% rename from new-api/common/body_storage.go rename to heicode/common/body_storage.go diff --git a/new-api/common/constants.go b/heicode/common/constants.go similarity index 100% rename from new-api/common/constants.go rename to heicode/common/constants.go diff --git a/new-api/common/copy.go b/heicode/common/copy.go similarity index 100% rename from new-api/common/copy.go rename to heicode/common/copy.go diff --git a/new-api/common/crypto.go b/heicode/common/crypto.go similarity index 100% rename from new-api/common/crypto.go rename to heicode/common/crypto.go diff --git a/new-api/common/custom-event.go b/heicode/common/custom-event.go similarity index 100% rename from new-api/common/custom-event.go rename to heicode/common/custom-event.go diff --git a/new-api/common/database.go b/heicode/common/database.go similarity index 100% rename from new-api/common/database.go rename to heicode/common/database.go diff --git a/new-api/common/disk_cache.go b/heicode/common/disk_cache.go similarity index 99% rename from new-api/common/disk_cache.go rename to heicode/common/disk_cache.go index bea3de0..b22f972 100644 --- a/new-api/common/disk_cache.go +++ b/heicode/common/disk_cache.go @@ -18,7 +18,7 @@ const ( ) // 统一的缓存目录名 -const diskCacheDir = "new-api-body-cache" +const diskCacheDir = "heicode-body-cache" // GetDiskCacheDir 获取统一的磁盘缓存目录 // 注意:每次调用都会重新计算,以响应配置变化 diff --git a/new-api/common/disk_cache_config.go b/heicode/common/disk_cache_config.go similarity index 100% rename from new-api/common/disk_cache_config.go rename to heicode/common/disk_cache_config.go diff --git a/new-api/common/email-outlook-auth.go b/heicode/common/email-outlook-auth.go similarity index 100% rename from new-api/common/email-outlook-auth.go rename to heicode/common/email-outlook-auth.go diff --git a/new-api/common/email.go b/heicode/common/email.go similarity index 100% rename from new-api/common/email.go rename to heicode/common/email.go diff --git a/new-api/common/embed-file-system.go b/heicode/common/embed-file-system.go similarity index 100% rename from new-api/common/embed-file-system.go rename to heicode/common/embed-file-system.go diff --git a/new-api/common/endpoint_defaults.go b/heicode/common/endpoint_defaults.go similarity index 96% rename from new-api/common/endpoint_defaults.go rename to heicode/common/endpoint_defaults.go index 11ec792..4040cea 100644 --- a/new-api/common/endpoint_defaults.go +++ b/heicode/common/endpoint_defaults.go @@ -1,6 +1,6 @@ package common -import "github.com/QuantumNous/new-api/constant" +import "github.com/heicode/manager/constant" // EndpointInfo 描述单个端点的默认请求信息 // path: 上游路径 diff --git a/new-api/common/endpoint_type.go b/heicode/common/endpoint_type.go similarity index 97% rename from new-api/common/endpoint_type.go rename to heicode/common/endpoint_type.go index a5e2ff8..91bd5dc 100644 --- a/new-api/common/endpoint_type.go +++ b/heicode/common/endpoint_type.go @@ -1,6 +1,6 @@ package common -import "github.com/QuantumNous/new-api/constant" +import "github.com/heicode/manager/constant" // GetEndpointTypesByChannelType 获取渠道最优先端点类型(所有的渠道都支持 OpenAI 端点) func GetEndpointTypesByChannelType(channelType int, modelName string) []constant.EndpointType { diff --git a/new-api/common/env.go b/heicode/common/env.go similarity index 100% rename from new-api/common/env.go rename to heicode/common/env.go diff --git a/new-api/common/gin.go b/heicode/common/gin.go similarity index 99% rename from new-api/common/gin.go rename to heicode/common/gin.go index da7f8be..ed46d6b 100644 --- a/new-api/common/gin.go +++ b/heicode/common/gin.go @@ -11,7 +11,7 @@ import ( "strings" "time" - "github.com/QuantumNous/new-api/constant" + "github.com/heicode/manager/constant" "github.com/pkg/errors" "github.com/gin-gonic/gin" diff --git a/new-api/common/go-channel.go b/heicode/common/go-channel.go similarity index 100% rename from new-api/common/go-channel.go rename to heicode/common/go-channel.go diff --git a/new-api/common/gopool.go b/heicode/common/gopool.go similarity index 100% rename from new-api/common/gopool.go rename to heicode/common/gopool.go diff --git a/new-api/common/hash.go b/heicode/common/hash.go similarity index 100% rename from new-api/common/hash.go rename to heicode/common/hash.go diff --git a/new-api/common/init.go b/heicode/common/init.go similarity index 93% rename from new-api/common/init.go rename to heicode/common/init.go index 35b4c6b..5307e46 100644 --- a/new-api/common/init.go +++ b/heicode/common/init.go @@ -11,7 +11,7 @@ import ( "strings" "time" - "github.com/QuantumNous/new-api/constant" + "github.com/heicode/manager/constant" ) var ( @@ -22,10 +22,10 @@ var ( ) func printHelp() { - fmt.Println("NewAPI(Based OneAPI) " + Version + " - The next-generation LLM gateway and AI asset management system supports multiple languages.") - fmt.Println("Original Project: OneAPI by JustSong - https://github.com/songquanpeng/one-api") - fmt.Println("Maintainer: QuantumNous - https://github.com/QuantumNous/new-api") - fmt.Println("Usage: newapi [--port ] [--log-dir ] [--version] [--help]") + fmt.Println("Heicode Manager " + Version + " — gateway and admin console (upstream lineage: One API / new-api fork).") + fmt.Println("Original lineage: OneAPI by JustSong — https://github.com/songquanpeng/one-api") + fmt.Println("Maintainer: Heicode — https://github.com/heicode/manager") + fmt.Println("Usage: heicode [--port ] [--log-dir ] [--version] [--help]") } func InitEnv() { diff --git a/new-api/common/ip.go b/heicode/common/ip.go similarity index 100% rename from new-api/common/ip.go rename to heicode/common/ip.go diff --git a/new-api/common/json.go b/heicode/common/json.go similarity index 100% rename from new-api/common/json.go rename to heicode/common/json.go diff --git a/new-api/common/json_test.go b/heicode/common/json_test.go similarity index 100% rename from new-api/common/json_test.go rename to heicode/common/json_test.go diff --git a/new-api/common/limiter/limiter.go b/heicode/common/limiter/limiter.go similarity index 97% rename from new-api/common/limiter/limiter.go rename to heicode/common/limiter/limiter.go index 6be61bc..c66476f 100644 --- a/new-api/common/limiter/limiter.go +++ b/heicode/common/limiter/limiter.go @@ -6,7 +6,7 @@ import ( "fmt" "sync" - "github.com/QuantumNous/new-api/common" + "github.com/heicode/manager/common" "github.com/go-redis/redis/v8" ) diff --git a/new-api/common/limiter/lua/rate_limit.lua b/heicode/common/limiter/lua/rate_limit.lua similarity index 100% rename from new-api/common/limiter/lua/rate_limit.lua rename to heicode/common/limiter/lua/rate_limit.lua diff --git a/new-api/common/model.go b/heicode/common/model.go similarity index 100% rename from new-api/common/model.go rename to heicode/common/model.go diff --git a/new-api/common/page_info.go b/heicode/common/page_info.go similarity index 100% rename from new-api/common/page_info.go rename to heicode/common/page_info.go diff --git a/new-api/common/performance_config.go b/heicode/common/performance_config.go similarity index 100% rename from new-api/common/performance_config.go rename to heicode/common/performance_config.go diff --git a/new-api/common/pprof.go b/heicode/common/pprof.go similarity index 100% rename from new-api/common/pprof.go rename to heicode/common/pprof.go diff --git a/new-api/common/pyro.go b/heicode/common/pyro.go similarity index 94% rename from new-api/common/pyro.go rename to heicode/common/pyro.go index b798f2c..0783e9f 100644 --- a/new-api/common/pyro.go +++ b/heicode/common/pyro.go @@ -13,10 +13,10 @@ func StartPyroScope() error { return nil } - pyroscopeAppName := GetEnvOrDefaultString("PYROSCOPE_APP_NAME", "new-api") + pyroscopeAppName := GetEnvOrDefaultString("PYROSCOPE_APP_NAME", "heicode") pyroscopeBasicAuthUser := GetEnvOrDefaultString("PYROSCOPE_BASIC_AUTH_USER", "") pyroscopeBasicAuthPassword := GetEnvOrDefaultString("PYROSCOPE_BASIC_AUTH_PASSWORD", "") - pyroscopeHostname := GetEnvOrDefaultString("HOSTNAME", "new-api") + pyroscopeHostname := GetEnvOrDefaultString("HOSTNAME", "heicode") mutexRate := GetEnvOrDefault("PYROSCOPE_MUTEX_RATE", 5) blockRate := GetEnvOrDefault("PYROSCOPE_BLOCK_RATE", 5) diff --git a/new-api/common/quota.go b/heicode/common/quota.go similarity index 100% rename from new-api/common/quota.go rename to heicode/common/quota.go diff --git a/new-api/common/rate-limit.go b/heicode/common/rate-limit.go similarity index 100% rename from new-api/common/rate-limit.go rename to heicode/common/rate-limit.go diff --git a/new-api/common/redis.go b/heicode/common/redis.go similarity index 100% rename from new-api/common/redis.go rename to heicode/common/redis.go diff --git a/new-api/common/ssrf_protection.go b/heicode/common/ssrf_protection.go similarity index 100% rename from new-api/common/ssrf_protection.go rename to heicode/common/ssrf_protection.go diff --git a/new-api/common/str.go b/heicode/common/str.go similarity index 100% rename from new-api/common/str.go rename to heicode/common/str.go diff --git a/new-api/common/sys_log.go b/heicode/common/sys_log.go similarity index 100% rename from new-api/common/sys_log.go rename to heicode/common/sys_log.go diff --git a/new-api/common/system_monitor.go b/heicode/common/system_monitor.go similarity index 100% rename from new-api/common/system_monitor.go rename to heicode/common/system_monitor.go diff --git a/new-api/common/system_monitor_unix.go b/heicode/common/system_monitor_unix.go similarity index 100% rename from new-api/common/system_monitor_unix.go rename to heicode/common/system_monitor_unix.go diff --git a/new-api/common/system_monitor_windows.go b/heicode/common/system_monitor_windows.go similarity index 100% rename from new-api/common/system_monitor_windows.go rename to heicode/common/system_monitor_windows.go diff --git a/new-api/common/topup-ratio.go b/heicode/common/topup-ratio.go similarity index 100% rename from new-api/common/topup-ratio.go rename to heicode/common/topup-ratio.go diff --git a/new-api/common/totp.go b/heicode/common/totp.go similarity index 100% rename from new-api/common/totp.go rename to heicode/common/totp.go diff --git a/new-api/common/url_validator.go b/heicode/common/url_validator.go similarity index 96% rename from new-api/common/url_validator.go rename to heicode/common/url_validator.go index 151f643..5fd7d03 100644 --- a/new-api/common/url_validator.go +++ b/heicode/common/url_validator.go @@ -5,7 +5,7 @@ import ( "net/url" "strings" - "github.com/QuantumNous/new-api/constant" + "github.com/heicode/manager/constant" ) // ValidateRedirectURL validates that a redirect URL is safe to use. diff --git a/new-api/common/url_validator_test.go b/heicode/common/url_validator_test.go similarity index 98% rename from new-api/common/url_validator_test.go rename to heicode/common/url_validator_test.go index b87b678..5f301d6 100644 --- a/new-api/common/url_validator_test.go +++ b/heicode/common/url_validator_test.go @@ -3,7 +3,7 @@ package common import ( "testing" - "github.com/QuantumNous/new-api/constant" + "github.com/heicode/manager/constant" ) func TestValidateRedirectURL(t *testing.T) { diff --git a/new-api/common/utils.go b/heicode/common/utils.go similarity index 100% rename from new-api/common/utils.go rename to heicode/common/utils.go diff --git a/new-api/common/validate.go b/heicode/common/validate.go similarity index 100% rename from new-api/common/validate.go rename to heicode/common/validate.go diff --git a/new-api/common/verification.go b/heicode/common/verification.go similarity index 100% rename from new-api/common/verification.go rename to heicode/common/verification.go diff --git a/new-api/constant/README.md b/heicode/constant/README.md similarity index 100% rename from new-api/constant/README.md rename to heicode/constant/README.md diff --git a/new-api/constant/api_type.go b/heicode/constant/api_type.go similarity index 100% rename from new-api/constant/api_type.go rename to heicode/constant/api_type.go diff --git a/new-api/constant/azure.go b/heicode/constant/azure.go similarity index 100% rename from new-api/constant/azure.go rename to heicode/constant/azure.go diff --git a/new-api/constant/cache_key.go b/heicode/constant/cache_key.go similarity index 100% rename from new-api/constant/cache_key.go rename to heicode/constant/cache_key.go diff --git a/new-api/constant/channel.go b/heicode/constant/channel.go similarity index 100% rename from new-api/constant/channel.go rename to heicode/constant/channel.go diff --git a/new-api/constant/context_key.go b/heicode/constant/context_key.go similarity index 100% rename from new-api/constant/context_key.go rename to heicode/constant/context_key.go diff --git a/new-api/constant/endpoint_type.go b/heicode/constant/endpoint_type.go similarity index 100% rename from new-api/constant/endpoint_type.go rename to heicode/constant/endpoint_type.go diff --git a/new-api/constant/env.go b/heicode/constant/env.go similarity index 100% rename from new-api/constant/env.go rename to heicode/constant/env.go diff --git a/new-api/constant/finish_reason.go b/heicode/constant/finish_reason.go similarity index 100% rename from new-api/constant/finish_reason.go rename to heicode/constant/finish_reason.go diff --git a/new-api/constant/midjourney.go b/heicode/constant/midjourney.go similarity index 100% rename from new-api/constant/midjourney.go rename to heicode/constant/midjourney.go diff --git a/new-api/constant/multi_key_mode.go b/heicode/constant/multi_key_mode.go similarity index 100% rename from new-api/constant/multi_key_mode.go rename to heicode/constant/multi_key_mode.go diff --git a/new-api/constant/setup.go b/heicode/constant/setup.go similarity index 100% rename from new-api/constant/setup.go rename to heicode/constant/setup.go diff --git a/new-api/constant/task.go b/heicode/constant/task.go similarity index 100% rename from new-api/constant/task.go rename to heicode/constant/task.go diff --git a/new-api/constant/waffo_pay_method.go b/heicode/constant/waffo_pay_method.go similarity index 100% rename from new-api/constant/waffo_pay_method.go rename to heicode/constant/waffo_pay_method.go diff --git a/new-api/controller/agnet_control_plane.go b/heicode/controller/agnet_control_plane.go similarity index 99% rename from new-api/controller/agnet_control_plane.go rename to heicode/controller/agnet_control_plane.go index 0bb218e..43953a5 100644 --- a/new-api/controller/agnet_control_plane.go +++ b/heicode/controller/agnet_control_plane.go @@ -6,7 +6,7 @@ import ( "sync" "time" - "github.com/QuantumNous/new-api/common" + "github.com/heicode/manager/common" "github.com/gin-gonic/gin" ) diff --git a/new-api/controller/billing.go b/heicode/controller/billing.go similarity index 93% rename from new-api/controller/billing.go rename to heicode/controller/billing.go index f75f681..2c31ad3 100644 --- a/new-api/controller/billing.go +++ b/heicode/controller/billing.go @@ -1,10 +1,10 @@ package controller import ( - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/setting/operation_setting" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/model" + "github.com/heicode/manager/setting/operation_setting" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/controller/channel-billing.go b/heicode/controller/channel-billing.go similarity index 98% rename from new-api/controller/channel-billing.go rename to heicode/controller/channel-billing.go index 751ee36..1b36814 100644 --- a/new-api/controller/channel-billing.go +++ b/heicode/controller/channel-billing.go @@ -9,12 +9,12 @@ import ( "strconv" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/setting/operation_setting" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/model" + "github.com/heicode/manager/service" + "github.com/heicode/manager/setting/operation_setting" + "github.com/heicode/manager/types" "github.com/shopspring/decimal" diff --git a/new-api/controller/channel-test.go b/heicode/controller/channel-test.go similarity index 97% rename from new-api/controller/channel-test.go rename to heicode/controller/channel-test.go index b225585..b322542 100644 --- a/new-api/controller/channel-test.go +++ b/heicode/controller/channel-test.go @@ -15,20 +15,20 @@ import ( "sync" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/middleware" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/pkg/billingexpr" - "github.com/QuantumNous/new-api/relay" - relaycommon "github.com/QuantumNous/new-api/relay/common" - relayconstant "github.com/QuantumNous/new-api/relay/constant" - "github.com/QuantumNous/new-api/relay/helper" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/setting/operation_setting" - "github.com/QuantumNous/new-api/setting/ratio_setting" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/middleware" + "github.com/heicode/manager/model" + "github.com/heicode/manager/pkg/billingexpr" + "github.com/heicode/manager/relay" + relaycommon "github.com/heicode/manager/relay/common" + relayconstant "github.com/heicode/manager/relay/constant" + "github.com/heicode/manager/relay/helper" + "github.com/heicode/manager/service" + "github.com/heicode/manager/setting/operation_setting" + "github.com/heicode/manager/setting/ratio_setting" + "github.com/heicode/manager/types" "github.com/bytedance/gopkg/util/gopool" "github.com/samber/lo" diff --git a/new-api/controller/channel.go b/heicode/controller/channel.go similarity index 99% rename from new-api/controller/channel.go rename to heicode/controller/channel.go index b0dd228..c1c117d 100644 --- a/new-api/controller/channel.go +++ b/heicode/controller/channel.go @@ -9,14 +9,14 @@ import ( "strings" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/model" - relaychannel "github.com/QuantumNous/new-api/relay/channel" - "github.com/QuantumNous/new-api/relay/channel/gemini" - "github.com/QuantumNous/new-api/relay/channel/ollama" - "github.com/QuantumNous/new-api/service" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/model" + relaychannel "github.com/heicode/manager/relay/channel" + "github.com/heicode/manager/relay/channel/gemini" + "github.com/heicode/manager/relay/channel/ollama" + "github.com/heicode/manager/service" "github.com/gin-gonic/gin" ) diff --git a/new-api/controller/channel_affinity_cache.go b/heicode/controller/channel_affinity_cache.go similarity index 97% rename from new-api/controller/channel_affinity_cache.go rename to heicode/controller/channel_affinity_cache.go index a72b04b..0487d22 100644 --- a/new-api/controller/channel_affinity_cache.go +++ b/heicode/controller/channel_affinity_cache.go @@ -4,7 +4,7 @@ import ( "net/http" "strings" - "github.com/QuantumNous/new-api/service" + "github.com/heicode/manager/service" "github.com/gin-gonic/gin" ) diff --git a/new-api/controller/channel_test_internal_test.go b/heicode/controller/channel_test_internal_test.go similarity index 88% rename from new-api/controller/channel_test_internal_test.go rename to heicode/controller/channel_test_internal_test.go index 9c26d62..35e0fe9 100644 --- a/new-api/controller/channel_test_internal_test.go +++ b/heicode/controller/channel_test_internal_test.go @@ -4,11 +4,11 @@ import ( "net/http/httptest" "testing" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/pkg/billingexpr" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/pkg/billingexpr" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" "github.com/stretchr/testify/require" ) diff --git a/new-api/controller/channel_upstream_update.go b/heicode/controller/channel_upstream_update.go similarity index 98% rename from new-api/controller/channel_upstream_update.go rename to heicode/controller/channel_upstream_update.go index 77a1e3c..cef1998 100644 --- a/new-api/controller/channel_upstream_update.go +++ b/heicode/controller/channel_upstream_update.go @@ -10,13 +10,13 @@ import ( "sync/atomic" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/relay/channel/gemini" - "github.com/QuantumNous/new-api/relay/channel/ollama" - "github.com/QuantumNous/new-api/service" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/model" + "github.com/heicode/manager/relay/channel/gemini" + "github.com/heicode/manager/relay/channel/ollama" + "github.com/heicode/manager/service" "github.com/gin-gonic/gin" "github.com/samber/lo" diff --git a/new-api/controller/channel_upstream_update_test.go b/heicode/controller/channel_upstream_update_test.go similarity index 98% rename from new-api/controller/channel_upstream_update_test.go rename to heicode/controller/channel_upstream_update_test.go index d9890d9..dde8a66 100644 --- a/new-api/controller/channel_upstream_update_test.go +++ b/heicode/controller/channel_upstream_update_test.go @@ -3,8 +3,8 @@ package controller import ( "testing" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/model" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/model" "github.com/stretchr/testify/require" ) diff --git a/new-api/controller/checkin.go b/heicode/controller/checkin.go similarity index 89% rename from new-api/controller/checkin.go rename to heicode/controller/checkin.go index cc8bf4f..4bca607 100644 --- a/new-api/controller/checkin.go +++ b/heicode/controller/checkin.go @@ -5,10 +5,10 @@ import ( "net/http" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/logger" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/setting/operation_setting" + "github.com/heicode/manager/common" + "github.com/heicode/manager/logger" + "github.com/heicode/manager/model" + "github.com/heicode/manager/setting/operation_setting" "github.com/gin-gonic/gin" ) diff --git a/new-api/controller/codex_oauth.go b/heicode/controller/codex_oauth.go similarity index 96% rename from new-api/controller/codex_oauth.go rename to heicode/controller/codex_oauth.go index de9743a..259d4ff 100644 --- a/new-api/controller/codex_oauth.go +++ b/heicode/controller/codex_oauth.go @@ -10,11 +10,11 @@ import ( "strings" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/relay/channel/codex" - "github.com/QuantumNous/new-api/service" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/model" + "github.com/heicode/manager/relay/channel/codex" + "github.com/heicode/manager/service" "github.com/gin-contrib/sessions" "github.com/gin-gonic/gin" diff --git a/new-api/controller/codex_usage.go b/heicode/controller/codex_usage.go similarity index 94% rename from new-api/controller/codex_usage.go rename to heicode/controller/codex_usage.go index 52fdbdf..e548997 100644 --- a/new-api/controller/codex_usage.go +++ b/heicode/controller/codex_usage.go @@ -8,11 +8,11 @@ import ( "strings" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/relay/channel/codex" - "github.com/QuantumNous/new-api/service" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/model" + "github.com/heicode/manager/relay/channel/codex" + "github.com/heicode/manager/service" "github.com/gin-gonic/gin" ) diff --git a/new-api/controller/console_migrate.go b/heicode/controller/console_migrate.go similarity index 97% rename from new-api/controller/console_migrate.go rename to heicode/controller/console_migrate.go index 4584961..9acf1ef 100644 --- a/new-api/controller/console_migrate.go +++ b/heicode/controller/console_migrate.go @@ -6,8 +6,8 @@ import ( "encoding/json" "net/http" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/model" + "github.com/heicode/manager/common" + "github.com/heicode/manager/model" "github.com/gin-gonic/gin" ) diff --git a/new-api/controller/custom_oauth.go b/heicode/controller/custom_oauth.go similarity index 99% rename from new-api/controller/custom_oauth.go rename to heicode/controller/custom_oauth.go index c21ec79..5178f89 100644 --- a/new-api/controller/custom_oauth.go +++ b/heicode/controller/custom_oauth.go @@ -9,9 +9,9 @@ import ( "strings" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/oauth" + "github.com/heicode/manager/common" + "github.com/heicode/manager/model" + "github.com/heicode/manager/oauth" "github.com/gin-gonic/gin" ) diff --git a/new-api/controller/deployment.go b/heicode/controller/deployment.go similarity index 99% rename from new-api/controller/deployment.go rename to heicode/controller/deployment.go index a2ffedc..0323c8b 100644 --- a/new-api/controller/deployment.go +++ b/heicode/controller/deployment.go @@ -8,8 +8,8 @@ import ( "strings" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/pkg/ionet" + "github.com/heicode/manager/common" + "github.com/heicode/manager/pkg/ionet" "github.com/gin-gonic/gin" ) diff --git a/new-api/controller/discord.go b/heicode/controller/discord.go similarity index 97% rename from new-api/controller/discord.go rename to heicode/controller/discord.go index a0865de..cb8e2bd 100644 --- a/new-api/controller/discord.go +++ b/heicode/controller/discord.go @@ -10,9 +10,9 @@ import ( "strings" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/setting/system_setting" + "github.com/heicode/manager/common" + "github.com/heicode/manager/model" + "github.com/heicode/manager/setting/system_setting" "github.com/gin-contrib/sessions" "github.com/gin-gonic/gin" diff --git a/new-api/controller/github.go b/heicode/controller/github.go similarity index 98% rename from new-api/controller/github.go rename to heicode/controller/github.go index 5d90613..9c82c9f 100644 --- a/new-api/controller/github.go +++ b/heicode/controller/github.go @@ -9,8 +9,8 @@ import ( "strconv" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/model" + "github.com/heicode/manager/common" + "github.com/heicode/manager/model" "github.com/gin-contrib/sessions" "github.com/gin-gonic/gin" diff --git a/new-api/controller/group.go b/heicode/controller/group.go similarity index 86% rename from new-api/controller/group.go rename to heicode/controller/group.go index 6ba339a..43ada59 100644 --- a/new-api/controller/group.go +++ b/heicode/controller/group.go @@ -3,10 +3,10 @@ package controller import ( "net/http" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/setting" - "github.com/QuantumNous/new-api/setting/ratio_setting" + "github.com/heicode/manager/model" + "github.com/heicode/manager/service" + "github.com/heicode/manager/setting" + "github.com/heicode/manager/setting/ratio_setting" "github.com/gin-gonic/gin" ) diff --git a/new-api/controller/heicode_oauth.go b/heicode/controller/heicode_oauth.go similarity index 97% rename from new-api/controller/heicode_oauth.go rename to heicode/controller/heicode_oauth.go index 5704093..94fac38 100644 --- a/new-api/controller/heicode_oauth.go +++ b/heicode/controller/heicode_oauth.go @@ -8,8 +8,8 @@ import ( "net/url" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/model" + "github.com/heicode/manager/common" + "github.com/heicode/manager/model" "github.com/gin-contrib/sessions" "github.com/gin-gonic/gin" @@ -22,7 +22,7 @@ import ( // // 1. HeiCode desktop opens // GET /heicode/oauth/authorize?state=&redirect_uri=&provider_id= -// 2. If the user is not signed in to new-api, we render a small HTML page +// 2. If the user is not signed in to heicode, we render a small HTML page // that links to /login and polls /heicode/oauth/session every 1.5s // until the user has authenticated. Then it auto-redirects back. // 3. Once the session is valid, we find or create a token named "HeiCode" diff --git a/new-api/controller/image.go b/heicode/controller/image.go similarity index 100% rename from new-api/controller/image.go rename to heicode/controller/image.go diff --git a/new-api/controller/linuxdo.go b/heicode/controller/linuxdo.go similarity index 98% rename from new-api/controller/linuxdo.go rename to heicode/controller/linuxdo.go index 5457c9a..e192b5e 100644 --- a/new-api/controller/linuxdo.go +++ b/heicode/controller/linuxdo.go @@ -11,8 +11,8 @@ import ( "strings" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/model" + "github.com/heicode/manager/common" + "github.com/heicode/manager/model" "github.com/gin-contrib/sessions" "github.com/gin-gonic/gin" diff --git a/new-api/controller/log.go b/heicode/controller/log.go similarity index 98% rename from new-api/controller/log.go rename to heicode/controller/log.go index cf3825f..d1f2798 100644 --- a/new-api/controller/log.go +++ b/heicode/controller/log.go @@ -4,8 +4,8 @@ import ( "net/http" "strconv" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/model" + "github.com/heicode/manager/common" + "github.com/heicode/manager/model" "github.com/gin-gonic/gin" ) diff --git a/new-api/controller/midjourney.go b/heicode/controller/midjourney.go similarity index 96% rename from new-api/controller/midjourney.go rename to heicode/controller/midjourney.go index 69aa5cc..0398098 100644 --- a/new-api/controller/midjourney.go +++ b/heicode/controller/midjourney.go @@ -9,13 +9,13 @@ import ( "net/http" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/logger" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/setting" - "github.com/QuantumNous/new-api/setting/system_setting" + "github.com/heicode/manager/common" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/logger" + "github.com/heicode/manager/model" + "github.com/heicode/manager/service" + "github.com/heicode/manager/setting" + "github.com/heicode/manager/setting/system_setting" "github.com/gin-gonic/gin" ) diff --git a/new-api/controller/misc.go b/heicode/controller/misc.go similarity index 96% rename from new-api/controller/misc.go rename to heicode/controller/misc.go index 1250bb7..fd99836 100644 --- a/new-api/controller/misc.go +++ b/heicode/controller/misc.go @@ -6,16 +6,16 @@ import ( "net/http" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/logger" - "github.com/QuantumNous/new-api/middleware" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/oauth" - "github.com/QuantumNous/new-api/setting" - "github.com/QuantumNous/new-api/setting/console_setting" - "github.com/QuantumNous/new-api/setting/operation_setting" - "github.com/QuantumNous/new-api/setting/system_setting" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/logger" + "github.com/heicode/manager/middleware" + "github.com/heicode/manager/model" + "github.com/heicode/manager/oauth" + "github.com/heicode/manager/setting" + "github.com/heicode/manager/setting/console_setting" + "github.com/heicode/manager/setting/operation_setting" + "github.com/heicode/manager/setting/system_setting" "github.com/gin-gonic/gin" ) diff --git a/new-api/controller/missing_models.go b/heicode/controller/missing_models.go similarity index 93% rename from new-api/controller/missing_models.go rename to heicode/controller/missing_models.go index eddd869..fdb8f2e 100644 --- a/new-api/controller/missing_models.go +++ b/heicode/controller/missing_models.go @@ -3,7 +3,7 @@ package controller import ( "net/http" - "github.com/QuantumNous/new-api/model" + "github.com/heicode/manager/model" "github.com/gin-gonic/gin" ) diff --git a/new-api/controller/model.go b/heicode/controller/model.go similarity index 91% rename from new-api/controller/model.go rename to heicode/controller/model.go index 4dbd458..0145efd 100644 --- a/new-api/controller/model.go +++ b/heicode/controller/model.go @@ -5,20 +5,20 @@ import ( "net/http" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/relay" - "github.com/QuantumNous/new-api/relay/channel/ai360" - "github.com/QuantumNous/new-api/relay/channel/lingyiwanwu" - "github.com/QuantumNous/new-api/relay/channel/minimax" - "github.com/QuantumNous/new-api/relay/channel/moonshot" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/relay/helper" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/setting/operation_setting" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/model" + "github.com/heicode/manager/relay" + "github.com/heicode/manager/relay/channel/ai360" + "github.com/heicode/manager/relay/channel/lingyiwanwu" + "github.com/heicode/manager/relay/channel/minimax" + "github.com/heicode/manager/relay/channel/moonshot" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/relay/helper" + "github.com/heicode/manager/service" + "github.com/heicode/manager/setting/operation_setting" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" "github.com/samber/lo" ) diff --git a/new-api/controller/model_list_test.go b/heicode/controller/model_list_test.go similarity index 96% rename from new-api/controller/model_list_test.go rename to heicode/controller/model_list_test.go index 97d27ca..c920e47 100644 --- a/new-api/controller/model_list_test.go +++ b/heicode/controller/model_list_test.go @@ -8,12 +8,12 @@ import ( "strings" "testing" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/setting/config" - "github.com/QuantumNous/new-api/setting/operation_setting" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/model" + "github.com/heicode/manager/setting/config" + "github.com/heicode/manager/setting/operation_setting" "github.com/gin-gonic/gin" "github.com/glebarez/sqlite" "github.com/stretchr/testify/require" diff --git a/new-api/controller/model_meta.go b/heicode/controller/model_meta.go similarity index 98% rename from new-api/controller/model_meta.go rename to heicode/controller/model_meta.go index fd36264..a511b3b 100644 --- a/new-api/controller/model_meta.go +++ b/heicode/controller/model_meta.go @@ -6,9 +6,9 @@ import ( "strconv" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/model" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/model" "github.com/gin-gonic/gin" ) diff --git a/new-api/controller/model_sync.go b/heicode/controller/model_sync.go similarity index 99% rename from new-api/controller/model_sync.go rename to heicode/controller/model_sync.go index f254dc8..208d2c2 100644 --- a/new-api/controller/model_sync.go +++ b/heicode/controller/model_sync.go @@ -13,8 +13,8 @@ import ( "sync" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/model" + "github.com/heicode/manager/common" + "github.com/heicode/manager/model" "github.com/gin-gonic/gin" "gorm.io/gorm" diff --git a/new-api/controller/oauth.go b/heicode/controller/oauth.go similarity index 98% rename from new-api/controller/oauth.go rename to heicode/controller/oauth.go index 9951f22..8d7f216 100644 --- a/new-api/controller/oauth.go +++ b/heicode/controller/oauth.go @@ -5,10 +5,10 @@ import ( "net/http" "strconv" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/i18n" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/oauth" + "github.com/heicode/manager/common" + "github.com/heicode/manager/i18n" + "github.com/heicode/manager/model" + "github.com/heicode/manager/oauth" "github.com/gin-contrib/sessions" "github.com/gin-gonic/gin" "gorm.io/gorm" diff --git a/new-api/controller/oidc.go b/heicode/controller/oidc.go similarity index 97% rename from new-api/controller/oidc.go rename to heicode/controller/oidc.go index ac49f84..b988953 100644 --- a/new-api/controller/oidc.go +++ b/heicode/controller/oidc.go @@ -10,9 +10,9 @@ import ( "strings" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/setting/system_setting" + "github.com/heicode/manager/common" + "github.com/heicode/manager/model" + "github.com/heicode/manager/setting/system_setting" "github.com/gin-contrib/sessions" "github.com/gin-gonic/gin" diff --git a/new-api/controller/option.go b/heicode/controller/option.go similarity index 95% rename from new-api/controller/option.go rename to heicode/controller/option.go index 5f81bfa..8fe8569 100644 --- a/new-api/controller/option.go +++ b/heicode/controller/option.go @@ -5,13 +5,13 @@ import ( "net/http" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/setting" - "github.com/QuantumNous/new-api/setting/console_setting" - "github.com/QuantumNous/new-api/setting/operation_setting" - "github.com/QuantumNous/new-api/setting/ratio_setting" - "github.com/QuantumNous/new-api/setting/system_setting" + "github.com/heicode/manager/common" + "github.com/heicode/manager/model" + "github.com/heicode/manager/setting" + "github.com/heicode/manager/setting/console_setting" + "github.com/heicode/manager/setting/operation_setting" + "github.com/heicode/manager/setting/ratio_setting" + "github.com/heicode/manager/setting/system_setting" "github.com/gin-gonic/gin" ) diff --git a/new-api/controller/passkey.go b/heicode/controller/passkey.go similarity index 98% rename from new-api/controller/passkey.go rename to heicode/controller/passkey.go index 79930fd..94da351 100644 --- a/new-api/controller/passkey.go +++ b/heicode/controller/passkey.go @@ -7,10 +7,10 @@ import ( "strconv" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/model" - passkeysvc "github.com/QuantumNous/new-api/service/passkey" - "github.com/QuantumNous/new-api/setting/system_setting" + "github.com/heicode/manager/common" + "github.com/heicode/manager/model" + passkeysvc "github.com/heicode/manager/service/passkey" + "github.com/heicode/manager/setting/system_setting" "github.com/gin-contrib/sessions" "github.com/gin-gonic/gin" diff --git a/new-api/controller/payment_webhook_availability.go b/heicode/controller/payment_webhook_availability.go similarity index 96% rename from new-api/controller/payment_webhook_availability.go rename to heicode/controller/payment_webhook_availability.go index 9e7a08a..0948c36 100644 --- a/new-api/controller/payment_webhook_availability.go +++ b/heicode/controller/payment_webhook_availability.go @@ -3,8 +3,8 @@ package controller import ( "strings" - "github.com/QuantumNous/new-api/setting" - "github.com/QuantumNous/new-api/setting/operation_setting" + "github.com/heicode/manager/setting" + "github.com/heicode/manager/setting/operation_setting" ) func isStripeTopUpEnabled() bool { diff --git a/new-api/controller/payment_webhook_availability_test.go b/heicode/controller/payment_webhook_availability_test.go similarity index 98% rename from new-api/controller/payment_webhook_availability_test.go rename to heicode/controller/payment_webhook_availability_test.go index 0534acc..b525a28 100644 --- a/new-api/controller/payment_webhook_availability_test.go +++ b/heicode/controller/payment_webhook_availability_test.go @@ -3,8 +3,8 @@ package controller import ( "testing" - "github.com/QuantumNous/new-api/setting" - "github.com/QuantumNous/new-api/setting/operation_setting" + "github.com/heicode/manager/setting" + "github.com/heicode/manager/setting/operation_setting" "github.com/stretchr/testify/require" ) diff --git a/new-api/controller/performance.go b/heicode/controller/performance.go similarity index 99% rename from new-api/controller/performance.go rename to heicode/controller/performance.go index 6932447..30af45d 100644 --- a/new-api/controller/performance.go +++ b/heicode/controller/performance.go @@ -11,8 +11,8 @@ import ( "strings" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/logger" + "github.com/heicode/manager/common" + "github.com/heicode/manager/logger" "github.com/gin-gonic/gin" ) diff --git a/new-api/controller/playground.go b/heicode/controller/playground.go similarity index 87% rename from new-api/controller/playground.go rename to heicode/controller/playground.go index 501c4e1..30cf79f 100644 --- a/new-api/controller/playground.go +++ b/heicode/controller/playground.go @@ -4,10 +4,10 @@ import ( "errors" "fmt" - "github.com/QuantumNous/new-api/middleware" - "github.com/QuantumNous/new-api/model" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/middleware" + "github.com/heicode/manager/model" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/controller/prefill_group.go b/heicode/controller/prefill_group.go similarity index 95% rename from new-api/controller/prefill_group.go rename to heicode/controller/prefill_group.go index 3c990da..edebb86 100644 --- a/new-api/controller/prefill_group.go +++ b/heicode/controller/prefill_group.go @@ -3,8 +3,8 @@ package controller import ( "strconv" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/model" + "github.com/heicode/manager/common" + "github.com/heicode/manager/model" "github.com/gin-gonic/gin" ) diff --git a/new-api/controller/pricing.go b/heicode/controller/pricing.go similarity index 92% rename from new-api/controller/pricing.go rename to heicode/controller/pricing.go index 8252327..c686ca4 100644 --- a/new-api/controller/pricing.go +++ b/heicode/controller/pricing.go @@ -1,10 +1,10 @@ package controller import ( - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/setting/ratio_setting" + "github.com/heicode/manager/common" + "github.com/heicode/manager/model" + "github.com/heicode/manager/service" + "github.com/heicode/manager/setting/ratio_setting" "github.com/gin-gonic/gin" ) diff --git a/new-api/controller/ratio_config.go b/heicode/controller/ratio_config.go similarity index 87% rename from new-api/controller/ratio_config.go rename to heicode/controller/ratio_config.go index b9b9d47..7f12d0a 100644 --- a/new-api/controller/ratio_config.go +++ b/heicode/controller/ratio_config.go @@ -3,7 +3,7 @@ package controller import ( "net/http" - "github.com/QuantumNous/new-api/setting/ratio_setting" + "github.com/heicode/manager/setting/ratio_setting" "github.com/gin-gonic/gin" ) diff --git a/new-api/controller/ratio_sync.go b/heicode/controller/ratio_sync.go similarity index 99% rename from new-api/controller/ratio_sync.go rename to heicode/controller/ratio_sync.go index 1f57bcc..c6d7149 100644 --- a/new-api/controller/ratio_sync.go +++ b/heicode/controller/ratio_sync.go @@ -16,13 +16,13 @@ import ( "sync" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/logger" + "github.com/heicode/manager/common" + "github.com/heicode/manager/logger" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/setting/billing_setting" - "github.com/QuantumNous/new-api/setting/ratio_setting" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/model" + "github.com/heicode/manager/setting/billing_setting" + "github.com/heicode/manager/setting/ratio_setting" "github.com/samber/lo" "github.com/gin-gonic/gin" diff --git a/new-api/controller/redemption.go b/heicode/controller/redemption.go similarity index 97% rename from new-api/controller/redemption.go rename to heicode/controller/redemption.go index 76c35bc..4f07f2f 100644 --- a/new-api/controller/redemption.go +++ b/heicode/controller/redemption.go @@ -5,9 +5,9 @@ import ( "strconv" "unicode/utf8" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/i18n" - "github.com/QuantumNous/new-api/model" + "github.com/heicode/manager/common" + "github.com/heicode/manager/i18n" + "github.com/heicode/manager/model" "github.com/gin-gonic/gin" ) diff --git a/new-api/controller/relay.go b/heicode/controller/relay.go similarity index 97% rename from new-api/controller/relay.go rename to heicode/controller/relay.go index c97ab45..72d4dc6 100644 --- a/new-api/controller/relay.go +++ b/heicode/controller/relay.go @@ -9,20 +9,20 @@ import ( "strings" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/logger" - "github.com/QuantumNous/new-api/middleware" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/relay" - relaycommon "github.com/QuantumNous/new-api/relay/common" - relayconstant "github.com/QuantumNous/new-api/relay/constant" - "github.com/QuantumNous/new-api/relay/helper" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/setting" - "github.com/QuantumNous/new-api/setting/operation_setting" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/logger" + "github.com/heicode/manager/middleware" + "github.com/heicode/manager/model" + "github.com/heicode/manager/relay" + relaycommon "github.com/heicode/manager/relay/common" + relayconstant "github.com/heicode/manager/relay/constant" + "github.com/heicode/manager/relay/helper" + "github.com/heicode/manager/service" + "github.com/heicode/manager/setting" + "github.com/heicode/manager/setting/operation_setting" + "github.com/heicode/manager/types" "github.com/bytedance/gopkg/util/gopool" "github.com/samber/lo" diff --git a/new-api/controller/secure_verification.go b/heicode/controller/secure_verification.go similarity index 98% rename from new-api/controller/secure_verification.go rename to heicode/controller/secure_verification.go index 7640269..fb5f209 100644 --- a/new-api/controller/secure_verification.go +++ b/heicode/controller/secure_verification.go @@ -5,8 +5,8 @@ import ( "net/http" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/model" + "github.com/heicode/manager/common" + "github.com/heicode/manager/model" "github.com/gin-contrib/sessions" "github.com/gin-gonic/gin" ) diff --git a/new-api/controller/setup.go b/heicode/controller/setup.go similarity index 95% rename from new-api/controller/setup.go rename to heicode/controller/setup.go index 2f6a0c9..0773660 100644 --- a/new-api/controller/setup.go +++ b/heicode/controller/setup.go @@ -3,10 +3,10 @@ package controller import ( "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/setting/operation_setting" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/model" + "github.com/heicode/manager/setting/operation_setting" "github.com/gin-gonic/gin" ) diff --git a/new-api/controller/subscription.go b/heicode/controller/subscription.go similarity index 98% rename from new-api/controller/subscription.go rename to heicode/controller/subscription.go index c609531..d09df76 100644 --- a/new-api/controller/subscription.go +++ b/heicode/controller/subscription.go @@ -4,9 +4,9 @@ import ( "strconv" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/setting/ratio_setting" + "github.com/heicode/manager/common" + "github.com/heicode/manager/model" + "github.com/heicode/manager/setting/ratio_setting" "github.com/gin-gonic/gin" "gorm.io/gorm" ) diff --git a/new-api/controller/subscription_payment_creem.go b/heicode/controller/subscription_payment_creem.go similarity index 93% rename from new-api/controller/subscription_payment_creem.go rename to heicode/controller/subscription_payment_creem.go index 18e1a58..f935959 100644 --- a/new-api/controller/subscription_payment_creem.go +++ b/heicode/controller/subscription_payment_creem.go @@ -7,11 +7,11 @@ import ( "net/http" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/logger" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/setting" - "github.com/QuantumNous/new-api/setting/operation_setting" + "github.com/heicode/manager/common" + "github.com/heicode/manager/logger" + "github.com/heicode/manager/model" + "github.com/heicode/manager/setting" + "github.com/heicode/manager/setting/operation_setting" "github.com/gin-gonic/gin" "github.com/thanhpk/randstr" ) diff --git a/new-api/controller/subscription_payment_epay.go b/heicode/controller/subscription_payment_epay.go similarity index 96% rename from new-api/controller/subscription_payment_epay.go rename to heicode/controller/subscription_payment_epay.go index 2567654..c262c66 100644 --- a/new-api/controller/subscription_payment_epay.go +++ b/heicode/controller/subscription_payment_epay.go @@ -8,11 +8,11 @@ import ( "time" "github.com/Calcium-Ion/go-epay/epay" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/setting/operation_setting" - "github.com/QuantumNous/new-api/setting/system_setting" + "github.com/heicode/manager/common" + "github.com/heicode/manager/model" + "github.com/heicode/manager/service" + "github.com/heicode/manager/setting/operation_setting" + "github.com/heicode/manager/setting/system_setting" "github.com/gin-gonic/gin" "github.com/samber/lo" ) diff --git a/new-api/controller/subscription_payment_stripe.go b/heicode/controller/subscription_payment_stripe.go similarity index 94% rename from new-api/controller/subscription_payment_stripe.go rename to heicode/controller/subscription_payment_stripe.go index a5ce468..a342198 100644 --- a/new-api/controller/subscription_payment_stripe.go +++ b/heicode/controller/subscription_payment_stripe.go @@ -6,11 +6,11 @@ import ( "strings" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/logger" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/setting" - "github.com/QuantumNous/new-api/setting/system_setting" + "github.com/heicode/manager/common" + "github.com/heicode/manager/logger" + "github.com/heicode/manager/model" + "github.com/heicode/manager/setting" + "github.com/heicode/manager/setting/system_setting" "github.com/gin-gonic/gin" "github.com/stripe/stripe-go/v81" "github.com/stripe/stripe-go/v81/checkout/session" diff --git a/new-api/controller/swag_video.go b/heicode/controller/swag_video.go similarity index 100% rename from new-api/controller/swag_video.go rename to heicode/controller/swag_video.go diff --git a/new-api/controller/task.go b/heicode/controller/task.go similarity index 89% rename from new-api/controller/task.go rename to heicode/controller/task.go index eac7db1..33f9000 100644 --- a/new-api/controller/task.go +++ b/heicode/controller/task.go @@ -3,13 +3,13 @@ package controller import ( "strconv" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/relay" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/model" + "github.com/heicode/manager/relay" + "github.com/heicode/manager/service" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/controller/task_video.go b/heicode/controller/task_video.go similarity index 96% rename from new-api/controller/task_video.go rename to heicode/controller/task_video.go index ce808df..01e167f 100644 --- a/new-api/controller/task_video.go +++ b/heicode/controller/task_video.go @@ -7,15 +7,15 @@ import ( "io" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/logger" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/relay" - "github.com/QuantumNous/new-api/relay/channel" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/setting/ratio_setting" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/logger" + "github.com/heicode/manager/model" + "github.com/heicode/manager/relay" + "github.com/heicode/manager/relay/channel" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/setting/ratio_setting" ) func UpdateVideoTaskAll(ctx context.Context, platform constant.TaskPlatform, taskChannelM map[int][]string, taskM map[string]*model.Task) error { diff --git a/new-api/controller/telegram.go b/heicode/controller/telegram.go similarity index 96% rename from new-api/controller/telegram.go rename to heicode/controller/telegram.go index f16cdd6..fcb60f6 100644 --- a/new-api/controller/telegram.go +++ b/heicode/controller/telegram.go @@ -8,8 +8,8 @@ import ( "net/http" "sort" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/model" + "github.com/heicode/manager/common" + "github.com/heicode/manager/model" "github.com/gin-contrib/sessions" "github.com/gin-gonic/gin" diff --git a/new-api/controller/token.go b/heicode/controller/token.go similarity index 98% rename from new-api/controller/token.go rename to heicode/controller/token.go index 836e9b2..fa0a6e6 100644 --- a/new-api/controller/token.go +++ b/heicode/controller/token.go @@ -6,10 +6,10 @@ import ( "strconv" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/i18n" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/setting/operation_setting" + "github.com/heicode/manager/common" + "github.com/heicode/manager/i18n" + "github.com/heicode/manager/model" + "github.com/heicode/manager/setting/operation_setting" "github.com/gin-gonic/gin" ) diff --git a/new-api/controller/token_test.go b/heicode/controller/token_test.go similarity index 99% rename from new-api/controller/token_test.go rename to heicode/controller/token_test.go index 0c0f504..9e1a980 100644 --- a/new-api/controller/token_test.go +++ b/heicode/controller/token_test.go @@ -12,8 +12,8 @@ import ( "strings" "testing" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/model" + "github.com/heicode/manager/common" + "github.com/heicode/manager/model" "github.com/gin-gonic/gin" "github.com/glebarez/sqlite" "gorm.io/driver/mysql" diff --git a/new-api/controller/topup.go b/heicode/controller/topup.go similarity index 98% rename from new-api/controller/topup.go rename to heicode/controller/topup.go index a6445b4..951eb94 100644 --- a/new-api/controller/topup.go +++ b/heicode/controller/topup.go @@ -8,13 +8,13 @@ import ( "sync" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/logger" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/setting" - "github.com/QuantumNous/new-api/setting/operation_setting" - "github.com/QuantumNous/new-api/setting/system_setting" + "github.com/heicode/manager/common" + "github.com/heicode/manager/logger" + "github.com/heicode/manager/model" + "github.com/heicode/manager/service" + "github.com/heicode/manager/setting" + "github.com/heicode/manager/setting/operation_setting" + "github.com/heicode/manager/setting/system_setting" "github.com/Calcium-Ion/go-epay/epay" "github.com/gin-gonic/gin" diff --git a/new-api/controller/topup_creem.go b/heicode/controller/topup_creem.go similarity index 99% rename from new-api/controller/topup_creem.go rename to heicode/controller/topup_creem.go index 7472690..5a76d7d 100644 --- a/new-api/controller/topup_creem.go +++ b/heicode/controller/topup_creem.go @@ -9,10 +9,10 @@ import ( "encoding/json" "errors" "fmt" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/logger" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/setting" + "github.com/heicode/manager/common" + "github.com/heicode/manager/logger" + "github.com/heicode/manager/model" + "github.com/heicode/manager/setting" "io" "net/http" "time" diff --git a/new-api/controller/topup_stripe.go b/heicode/controller/topup_stripe.go similarity index 97% rename from new-api/controller/topup_stripe.go rename to heicode/controller/topup_stripe.go index ceee8ec..4584c64 100644 --- a/new-api/controller/topup_stripe.go +++ b/heicode/controller/topup_stripe.go @@ -10,12 +10,12 @@ import ( "strings" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/logger" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/setting" - "github.com/QuantumNous/new-api/setting/operation_setting" - "github.com/QuantumNous/new-api/setting/system_setting" + "github.com/heicode/manager/common" + "github.com/heicode/manager/logger" + "github.com/heicode/manager/model" + "github.com/heicode/manager/setting" + "github.com/heicode/manager/setting/operation_setting" + "github.com/heicode/manager/setting/system_setting" "github.com/gin-gonic/gin" "github.com/stripe/stripe-go/v81" @@ -90,7 +90,7 @@ func (*StripeAdaptor) RequestPay(c *gin.Context, req *StripePayRequest) { user, _ := model.GetUserById(id, false) chargedMoney := GetChargedAmount(float64(req.Amount), *user) - reference := fmt.Sprintf("new-api-ref-%d-%d-%s", user.Id, time.Now().UnixMilli(), randstr.String(4)) + reference := fmt.Sprintf("heicode-ref-%d-%d-%s", user.Id, time.Now().UnixMilli(), randstr.String(4)) referenceId := "ref_" + common.Sha1([]byte(reference)) payLink, err := genStripeLink(referenceId, user.StripeCustomer, user.Email, req.Amount, req.SuccessURL, req.CancelURL) diff --git a/new-api/controller/topup_waffo.go b/heicode/controller/topup_waffo.go similarity index 97% rename from new-api/controller/topup_waffo.go rename to heicode/controller/topup_waffo.go index 1885c1d..131b305 100644 --- a/new-api/controller/topup_waffo.go +++ b/heicode/controller/topup_waffo.go @@ -8,13 +8,13 @@ import ( "strconv" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/logger" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/setting" - "github.com/QuantumNous/new-api/setting/operation_setting" - "github.com/QuantumNous/new-api/setting/system_setting" + "github.com/heicode/manager/common" + "github.com/heicode/manager/logger" + "github.com/heicode/manager/model" + "github.com/heicode/manager/service" + "github.com/heicode/manager/setting" + "github.com/heicode/manager/setting/operation_setting" + "github.com/heicode/manager/setting/system_setting" "github.com/gin-gonic/gin" "github.com/thanhpk/randstr" waffo "github.com/waffo-com/waffo-go" diff --git a/new-api/controller/topup_waffo_pancake.go b/heicode/controller/topup_waffo_pancake.go similarity index 95% rename from new-api/controller/topup_waffo_pancake.go rename to heicode/controller/topup_waffo_pancake.go index 09f1516..ff274a2 100644 --- a/new-api/controller/topup_waffo_pancake.go +++ b/heicode/controller/topup_waffo_pancake.go @@ -7,13 +7,13 @@ import ( "strings" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/logger" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/setting" - "github.com/QuantumNous/new-api/setting/operation_setting" - "github.com/QuantumNous/new-api/setting/system_setting" + "github.com/heicode/manager/common" + "github.com/heicode/manager/logger" + "github.com/heicode/manager/model" + "github.com/heicode/manager/service" + "github.com/heicode/manager/setting" + "github.com/heicode/manager/setting/operation_setting" + "github.com/heicode/manager/setting/system_setting" "github.com/gin-gonic/gin" "github.com/shopspring/decimal" "github.com/thanhpk/randstr" @@ -98,7 +98,7 @@ func getWaffoPancakeBuyerEmail(user *model.User) string { return user.Email } if user != nil { - return fmt.Sprintf("%d@new-api.local", user.Id) + return fmt.Sprintf("%d@heicode.local", user.Id) } return "" } diff --git a/new-api/controller/topup_waffo_pancake_test.go b/heicode/controller/topup_waffo_pancake_test.go similarity index 95% rename from new-api/controller/topup_waffo_pancake_test.go rename to heicode/controller/topup_waffo_pancake_test.go index 483dd7b..74e3a99 100644 --- a/new-api/controller/topup_waffo_pancake_test.go +++ b/heicode/controller/topup_waffo_pancake_test.go @@ -3,9 +3,9 @@ package controller import ( "testing" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/setting" - "github.com/QuantumNous/new-api/setting/operation_setting" + "github.com/heicode/manager/common" + "github.com/heicode/manager/setting" + "github.com/heicode/manager/setting/operation_setting" "github.com/stretchr/testify/require" ) diff --git a/new-api/controller/twofa.go b/heicode/controller/twofa.go similarity index 99% rename from new-api/controller/twofa.go rename to heicode/controller/twofa.go index 123c74e..7aa1d0d 100644 --- a/new-api/controller/twofa.go +++ b/heicode/controller/twofa.go @@ -5,8 +5,8 @@ import ( "net/http" "strconv" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/model" + "github.com/heicode/manager/common" + "github.com/heicode/manager/model" "github.com/gin-contrib/sessions" "github.com/gin-gonic/gin" diff --git a/new-api/controller/uptime_kuma.go b/heicode/controller/uptime_kuma.go similarity index 98% rename from new-api/controller/uptime_kuma.go rename to heicode/controller/uptime_kuma.go index 2beceb4..2febfc9 100644 --- a/new-api/controller/uptime_kuma.go +++ b/heicode/controller/uptime_kuma.go @@ -9,7 +9,7 @@ import ( "strings" "time" - "github.com/QuantumNous/new-api/setting/console_setting" + "github.com/heicode/manager/setting/console_setting" "github.com/gin-gonic/gin" "golang.org/x/sync/errgroup" diff --git a/new-api/controller/usedata.go b/heicode/controller/usedata.go similarity index 95% rename from new-api/controller/usedata.go rename to heicode/controller/usedata.go index 5e194c5..7f4ebc0 100644 --- a/new-api/controller/usedata.go +++ b/heicode/controller/usedata.go @@ -4,8 +4,8 @@ import ( "net/http" "strconv" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/model" + "github.com/heicode/manager/common" + "github.com/heicode/manager/model" "github.com/gin-gonic/gin" ) diff --git a/new-api/controller/user.go b/heicode/controller/user.go similarity index 99% rename from new-api/controller/user.go rename to heicode/controller/user.go index b572266..d55c270 100644 --- a/new-api/controller/user.go +++ b/heicode/controller/user.go @@ -10,15 +10,15 @@ import ( "strings" "sync" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/i18n" - "github.com/QuantumNous/new-api/logger" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/setting" + "github.com/heicode/manager/common" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/i18n" + "github.com/heicode/manager/logger" + "github.com/heicode/manager/model" + "github.com/heicode/manager/service" + "github.com/heicode/manager/setting" - "github.com/QuantumNous/new-api/constant" + "github.com/heicode/manager/constant" "github.com/gin-contrib/sessions" "github.com/gin-gonic/gin" diff --git a/new-api/controller/vendor_meta.go b/heicode/controller/vendor_meta.go similarity index 97% rename from new-api/controller/vendor_meta.go rename to heicode/controller/vendor_meta.go index 243ed18..320ca06 100644 --- a/new-api/controller/vendor_meta.go +++ b/heicode/controller/vendor_meta.go @@ -3,8 +3,8 @@ package controller import ( "strconv" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/model" + "github.com/heicode/manager/common" + "github.com/heicode/manager/model" "github.com/gin-gonic/gin" ) diff --git a/new-api/controller/video_proxy.go b/heicode/controller/video_proxy.go similarity index 96% rename from new-api/controller/video_proxy.go rename to heicode/controller/video_proxy.go index 520d313..b1c86ac 100644 --- a/new-api/controller/video_proxy.go +++ b/heicode/controller/video_proxy.go @@ -10,12 +10,12 @@ import ( "strings" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/logger" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/setting/system_setting" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/logger" + "github.com/heicode/manager/model" + "github.com/heicode/manager/service" + "github.com/heicode/manager/setting/system_setting" "github.com/gin-gonic/gin" ) diff --git a/new-api/controller/video_proxy_gemini.go b/heicode/controller/video_proxy_gemini.go similarity index 97% rename from new-api/controller/video_proxy_gemini.go rename to heicode/controller/video_proxy_gemini.go index 0c76e33..6ad0208 100644 --- a/new-api/controller/video_proxy_gemini.go +++ b/heicode/controller/video_proxy_gemini.go @@ -6,10 +6,10 @@ import ( "strconv" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/relay" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/model" + "github.com/heicode/manager/relay" ) func getGeminiVideoURL(channel *model.Channel, task *model.Task, apiKey string) (string, error) { diff --git a/new-api/controller/wechat.go b/heicode/controller/wechat.go similarity index 97% rename from new-api/controller/wechat.go rename to heicode/controller/wechat.go index 8889dac..12faca6 100644 --- a/new-api/controller/wechat.go +++ b/heicode/controller/wechat.go @@ -9,8 +9,8 @@ import ( "strconv" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/model" + "github.com/heicode/manager/common" + "github.com/heicode/manager/model" "github.com/gin-contrib/sessions" "github.com/gin-gonic/gin" diff --git a/heicode/docker-compose.azure-vm.yml b/heicode/docker-compose.azure-vm.yml new file mode 100644 index 0000000..135f1e1 --- /dev/null +++ b/heicode/docker-compose.azure-vm.yml @@ -0,0 +1,55 @@ +# Azure VM:只跑 heicode 容器;PostgreSQL / Redis 使用 Azure 托管实例。 +# 代码更新:在 VM 上对完整 heicode 仓库 git pull,勿用 scp 同步源码(见仓库根 CLAUDE.md)。 +# 容器产生的数据(/data 上传与持久文件、/app/logs)绑定到 VM 本地磁盘,避免仅用匿名卷导致难备份或重建丢失。 +# +# 1. 在 VM 上准备目录(示例) +# export HEICODE_DATA_ROOT=/var/lib/heicode/heicode +# sudo mkdir -p "$HEICODE_DATA_ROOT"/{data,logs} +# sudo chown -R "$USER":"$USER" "$HEICODE_DATA_ROOT" +# +# 2. 在本目录放置 .env(勿提交仓库),至少包含由运维注入的: +# SQL_DSN=postgresql://...@heicode.postgres.database.azure.com:5432/heicode?sslmode=require +# REDIS_CONN_STRING=rediss://:...@heicode.redis.cache.windows.net:6380 +# SESSION_SECRET=... +# (以及项目要求的其它密钥,见官方 heicode 文档) +# +# 3. 构建 Heicode 定制镜像时与本地 override 一致: +# docker compose -f docker-compose.azure-vm.yml -f docker-compose.override.yml --env-file .env up -d --build +# 4. 构建完成后删除悬空旧镜像层:sudo docker image prune -f +# +# 若只用上游镜像、无 override,可去掉第二个 -f 文件,并把下方 image 改为 calciumion/heicode:latest。 + +version: '3.4' + +services: + heicode: + image: heicode-manager:local + build: + context: . + dockerfile: Dockerfile + container_name: heicode + restart: always + command: --log-dir /app/logs + ports: + - "3000:3000" + volumes: + - ${HEICODE_DATA_ROOT}/data:/data + - ${HEICODE_DATA_ROOT}/logs:/app/logs + env_file: + - .env + environment: + - TZ=Asia/Shanghai + - ERROR_LOG_ENABLED=true + - BATCH_UPDATE_ENABLED=true + - NODE_NAME=heicode-node-1 + networks: + - heicode-network + healthcheck: + test: ["CMD-SHELL", "wget -q -O - http://localhost:3000/api/status | grep -o '\"success\":\\s*true' || exit 1"] + interval: 30s + timeout: 10s + retries: 3 + +networks: + heicode-network: + driver: bridge diff --git a/new-api/docker-compose.dev.yml b/heicode/docker-compose.dev.yml similarity index 78% rename from new-api/docker-compose.dev.yml rename to heicode/docker-compose.dev.yml index e75befa..a4507bc 100644 --- a/new-api/docker-compose.dev.yml +++ b/heicode/docker-compose.dev.yml @@ -6,7 +6,7 @@ # 3. Open http://localhost:3001 (Rsbuild dev server, API auto-proxied to :3000) # # Rebuild backend after Go code changes: -# docker compose -f docker-compose.dev.yml up -d --build new-api +# docker compose -f docker-compose.dev.yml up -d --build heicode # # Stop: # docker compose -f docker-compose.dev.yml down @@ -15,19 +15,19 @@ # docker compose -f docker-compose.dev.yml down -v services: - new-api: + heicode: build: context: . dockerfile: Dockerfile.dev - image: new-api-dev:local - container_name: new-api-dev + image: heicode-dev:local + container_name: heicode-dev restart: unless-stopped ports: - "3000:3000" volumes: - dev_data:/data environment: - - SQL_DSN=postgresql://root:123456@postgres:5432/new-api + - SQL_DSN=postgresql://root:123456@postgres:5432/heicode - REDIS_CONN_STRING=redis://redis - TZ=Asia/Shanghai - BATCH_UPDATE_ENABLED=true @@ -41,25 +41,25 @@ services: redis: image: redis:7-alpine - container_name: new-api-dev-redis + container_name: heicode-dev-redis restart: unless-stopped networks: - dev-network postgres: image: postgres:15-alpine - container_name: new-api-dev-pg + container_name: heicode-dev-pg restart: unless-stopped environment: POSTGRES_USER: root POSTGRES_PASSWORD: 123456 - POSTGRES_DB: new-api + POSTGRES_DB: heicode volumes: - dev_pg_data:/var/lib/postgresql/data networks: - dev-network healthcheck: - test: ["CMD-SHELL", "pg_isready -U root -d new-api"] + test: ["CMD-SHELL", "pg_isready -U root -d heicode"] interval: 5s timeout: 3s retries: 5 diff --git a/new-api/docker-compose.local.yml b/heicode/docker-compose.local.yml similarity index 78% rename from new-api/docker-compose.local.yml rename to heicode/docker-compose.local.yml index cbde737..509ba66 100644 --- a/new-api/docker-compose.local.yml +++ b/heicode/docker-compose.local.yml @@ -1,4 +1,4 @@ services: - new-api: + heicode: ports: - "3001:3000" diff --git a/new-api/docker-compose.override.yml b/heicode/docker-compose.override.yml similarity index 52% rename from new-api/docker-compose.override.yml rename to heicode/docker-compose.override.yml index c4e2766..fc27122 100644 --- a/new-api/docker-compose.override.yml +++ b/heicode/docker-compose.override.yml @@ -1,15 +1,15 @@ -# Override file: build new-api from local source so the HeiCode OAuth bridge +# Override file: build heicode from local source so the HeiCode OAuth bridge # (controller/heicode_oauth.go + router/heicode-router.go) is included. # # Usage: -# docker compose up -d --build new-api +# docker compose up -d --build heicode # # Remove this file (or rename it) to fall back to the upstream -# calciumion/new-api:latest image declared in docker-compose.yml. +# calciumion/heicode:latest image declared in docker-compose.yml. services: - new-api: - image: new-api-heicode:local + heicode: + image: heicode-manager:local build: context: . dockerfile: Dockerfile diff --git a/new-api/docker-compose.yml b/heicode/docker-compose.yml similarity index 80% rename from new-api/docker-compose.yml rename to heicode/docker-compose.yml index be8c885..346cd20 100644 --- a/new-api/docker-compose.yml +++ b/heicode/docker-compose.yml @@ -1,5 +1,10 @@ # New-API Docker Compose Configuration -# +# +# VM / 生产:容器内产生的文件(上传、日志等)应落在宿主机磁盘上,设置绝对路径即可: +# export HEICODE_DATA_ROOT=/var/lib/heicode/heicode +# mkdir -p "$HEICODE_DATA_ROOT"/{data,logs} +# 未设置时默认为当前目录下的 ./data 与 ./logs。 +# # Quick Start: # 1. docker-compose up -d # 2. Access at http://localhost:3000 @@ -15,24 +20,24 @@ version: '3.4' # For compatibility with older Docker versions services: - new-api: - image: calciumion/new-api:latest - container_name: new-api + heicode: + image: calciumion/heicode:latest + container_name: heicode restart: always command: --log-dir /app/logs ports: - "3000:3000" volumes: - - ./data:/data - - ./logs:/app/logs + - ${HEICODE_DATA_ROOT:-.}/data:/data + - ${HEICODE_DATA_ROOT:-.}/logs:/app/logs environment: - - SQL_DSN=postgresql://root:123456@postgres:5432/new-api # ⚠️ IMPORTANT: Change the password in production! -# - SQL_DSN=root:123456@tcp(mysql:3306)/new-api # Point to the mysql service, uncomment if using MySQL + - SQL_DSN=postgresql://root:123456@postgres:5432/heicode # ⚠️ IMPORTANT: Change the password in production! +# - SQL_DSN=root:123456@tcp(mysql:3306)/heicode # Point to the mysql service, uncomment if using MySQL - REDIS_CONN_STRING=redis://:123456@redis:6379 # ⚠️ IMPORTANT: Change the password in production! - TZ=Asia/Shanghai - ERROR_LOG_ENABLED=true # 是否启用错误日志记录 (Whether to enable error log recording) - BATCH_UPDATE_ENABLED=true # 是否启用批量更新 (Whether to enable batch update) - - NODE_NAME=new-api-node-1 # 节点名称,用于审计日志中标识节点身份;多节点/容器部署时建议设置 (Node name used in audit logs; recommended when running multiple instances or in containers) + - NODE_NAME=heicode-node-1 # 节点名称,用于审计日志中标识节点身份;多节点/容器部署时建议设置 (Node name used in audit logs; recommended when running multiple instances or in containers) # - STREAMING_TIMEOUT=300 # 流模式无响应超时时间,单位秒,默认120秒,如果出现空补全可以尝试改为更大值 (Streaming timeout in seconds, default is 120s. Increase if experiencing empty completions) # - SESSION_SECRET=random_string # 多机部署时设置,必须修改这个随机字符串!! (multi-node deployment, set this to a random string!!!!!!!) # - SYNC_FREQUENCY=60 # Uncomment if regular database syncing is needed @@ -45,7 +50,7 @@ services: - postgres # - mysql # Uncomment if using MySQL networks: - - new-api-network + - heicode-network healthcheck: test: ["CMD-SHELL", "wget -q -O - http://localhost:3000/api/status | grep -o '\"success\":\\s*true' || exit 1"] interval: 30s @@ -58,7 +63,7 @@ services: restart: always command: ["redis-server", "--requirepass", "123456"] # ⚠️ IMPORTANT: Change this password in production! networks: - - new-api-network + - heicode-network postgres: image: postgres:15 @@ -67,11 +72,11 @@ services: environment: POSTGRES_USER: root POSTGRES_PASSWORD: 123456 # ⚠️ IMPORTANT: Change this password in production! - POSTGRES_DB: new-api + POSTGRES_DB: heicode volumes: - pg_data:/var/lib/postgresql/data networks: - - new-api-network + - heicode-network # ports: # - "5432:5432" # Uncomment if you need to access PostgreSQL from outside Docker @@ -81,11 +86,11 @@ services: # restart: always # environment: # MYSQL_ROOT_PASSWORD: 123456 # ⚠️ IMPORTANT: Change this password in production! -# MYSQL_DATABASE: new-api +# MYSQL_DATABASE: heicode # volumes: # - mysql_data:/var/lib/mysql # networks: -# - new-api-network +# - heicode-network # ports: # - "3306:3306" # Uncomment if you need to access MySQL from outside Docker @@ -94,5 +99,5 @@ volumes: # mysql_data: networks: - new-api-network: + heicode-network: driver: bridge diff --git a/new-api/docs/channel/other_setting.md b/heicode/docs/channel/other_setting.md similarity index 100% rename from new-api/docs/channel/other_setting.md rename to heicode/docs/channel/other_setting.md diff --git a/new-api/docs/images/aionui.png b/heicode/docs/images/aionui.png similarity index 100% rename from new-api/docs/images/aionui.png rename to heicode/docs/images/aionui.png diff --git a/new-api/docs/images/aliyun.png b/heicode/docs/images/aliyun.png similarity index 100% rename from new-api/docs/images/aliyun.png rename to heicode/docs/images/aliyun.png diff --git a/new-api/docs/images/cherry-studio.png b/heicode/docs/images/cherry-studio.png similarity index 100% rename from new-api/docs/images/cherry-studio.png rename to heicode/docs/images/cherry-studio.png diff --git a/new-api/docs/images/io-net.png b/heicode/docs/images/io-net.png similarity index 100% rename from new-api/docs/images/io-net.png rename to heicode/docs/images/io-net.png diff --git a/new-api/docs/images/pku.png b/heicode/docs/images/pku.png similarity index 100% rename from new-api/docs/images/pku.png rename to heicode/docs/images/pku.png diff --git a/new-api/docs/images/ucloud.png b/heicode/docs/images/ucloud.png similarity index 100% rename from new-api/docs/images/ucloud.png rename to heicode/docs/images/ucloud.png diff --git a/new-api/docs/installation/BT.md b/heicode/docs/installation/BT.md similarity index 91% rename from new-api/docs/installation/BT.md rename to heicode/docs/installation/BT.md index 8579b35..0f007e8 100644 --- a/new-api/docs/installation/BT.md +++ b/heicode/docs/installation/BT.md @@ -40,7 +40,7 @@ 2. 搜索并找到 **New-API** 3. 点击 **安装** 4. 配置以下基本选项: - - **容器名称**:可自定义,默认为 `new-api` + - **容器名称**:可自定义,默认为 `heicode` - **端口映射**:默认为 `3000:3000` - **环境变量**: - `SESSION_SECRET`:会话密钥(**必填**,多机部署时必须一致) @@ -50,15 +50,15 @@ ### 方法二:使用 Docker Compose -1. 在宝塔面板中创建网站目录,如 `/www/wwwroot/new-api` +1. 在宝塔面板中创建网站目录,如 `/www/wwwroot/heicode` 2. 创建 `docker-compose.yml` 文件: ```yaml version: '3' services: - new-api: - image: calciumion/new-api:latest - container_name: new-api + heicode: + image: calciumion/heicode:latest + container_name: heicode restart: always ports: - "3000:3000" @@ -72,7 +72,7 @@ services: 1. 在终端中进入目录并启动: ```bash -cd /www/wwwroot/new-api +cd /www/wwwroot/heicode docker-compose up -d ``` @@ -126,7 +126,7 @@ volumes: ```bash # 拉取最新镜像 -docker pull calciumion/new-api:latest +docker pull calciumion/heicode:latest # 重启容器 docker-compose down && docker-compose up -d @@ -139,7 +139,7 @@ docker-compose down && docker-compose up -d - [官方文档](https://docs.newapi.pro/zh/docs/installation) - [环境变量配置](https://docs.newapi.pro/zh/docs/installation/config-maintenance/environment-variables) - [常见问题](https://docs.newapi.pro/zh/docs/support/faq) -- [GitHub 仓库](https://github.com/QuantumNous/new-api) +- [GitHub 仓库](https://github.com/QuantumNous/heicode) *** diff --git a/new-api/docs/ionet-client.md b/heicode/docs/ionet-client.md similarity index 100% rename from new-api/docs/ionet-client.md rename to heicode/docs/ionet-client.md diff --git a/new-api/docs/openapi/api.json b/heicode/docs/openapi/api.json similarity index 100% rename from new-api/docs/openapi/api.json rename to heicode/docs/openapi/api.json diff --git a/new-api/docs/openapi/relay.json b/heicode/docs/openapi/relay.json similarity index 100% rename from new-api/docs/openapi/relay.json rename to heicode/docs/openapi/relay.json diff --git a/new-api/docs/translation-glossary.fr.md b/heicode/docs/translation-glossary.fr.md similarity index 100% rename from new-api/docs/translation-glossary.fr.md rename to heicode/docs/translation-glossary.fr.md diff --git a/new-api/docs/translation-glossary.md b/heicode/docs/translation-glossary.md similarity index 100% rename from new-api/docs/translation-glossary.md rename to heicode/docs/translation-glossary.md diff --git a/new-api/docs/translation-glossary.ru.md b/heicode/docs/translation-glossary.ru.md similarity index 100% rename from new-api/docs/translation-glossary.ru.md rename to heicode/docs/translation-glossary.ru.md diff --git a/new-api/dto/audio.go b/heicode/dto/audio.go similarity index 98% rename from new-api/dto/audio.go rename to heicode/dto/audio.go index e0d4f9d..d177b58 100644 --- a/new-api/dto/audio.go +++ b/heicode/dto/audio.go @@ -4,7 +4,7 @@ import ( "encoding/json" "strings" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/dto/channel_settings.go b/heicode/dto/channel_settings.go similarity index 100% rename from new-api/dto/channel_settings.go rename to heicode/dto/channel_settings.go diff --git a/new-api/dto/claude.go b/heicode/dto/claude.go similarity index 99% rename from new-api/dto/claude.go rename to heicode/dto/claude.go index d7fed41..044cb18 100644 --- a/new-api/dto/claude.go +++ b/heicode/dto/claude.go @@ -5,8 +5,8 @@ import ( "fmt" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/dto/embedding.go b/heicode/dto/embedding.go similarity index 98% rename from new-api/dto/embedding.go rename to heicode/dto/embedding.go index c9bd2d7..45828f0 100644 --- a/new-api/dto/embedding.go +++ b/heicode/dto/embedding.go @@ -3,7 +3,7 @@ package dto import ( "strings" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/dto/error.go b/heicode/dto/error.go similarity index 96% rename from new-api/dto/error.go rename to heicode/dto/error.go index be57407..dad4ae2 100644 --- a/new-api/dto/error.go +++ b/heicode/dto/error.go @@ -3,8 +3,8 @@ package dto import ( "encoding/json" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/types" ) //type OpenAIError struct { diff --git a/new-api/dto/gemini.go b/heicode/dto/gemini.go similarity index 99% rename from new-api/dto/gemini.go rename to heicode/dto/gemini.go index 489ebea..204239b 100644 --- a/new-api/dto/gemini.go +++ b/heicode/dto/gemini.go @@ -4,9 +4,9 @@ import ( "encoding/json" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/logger" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/logger" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/dto/gemini_generation_config_test.go b/heicode/dto/gemini_generation_config_test.go similarity index 98% rename from new-api/dto/gemini_generation_config_test.go rename to heicode/dto/gemini_generation_config_test.go index ed4beb3..9c06c91 100644 --- a/new-api/dto/gemini_generation_config_test.go +++ b/heicode/dto/gemini_generation_config_test.go @@ -3,7 +3,7 @@ package dto import ( "testing" - "github.com/QuantumNous/new-api/common" + "github.com/heicode/manager/common" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/new-api/dto/gemini_isstream_test.go b/heicode/dto/gemini_isstream_test.go similarity index 100% rename from new-api/dto/gemini_isstream_test.go rename to heicode/dto/gemini_isstream_test.go diff --git a/new-api/dto/midjourney.go b/heicode/dto/midjourney.go similarity index 100% rename from new-api/dto/midjourney.go rename to heicode/dto/midjourney.go diff --git a/new-api/dto/notify.go b/heicode/dto/notify.go similarity index 100% rename from new-api/dto/notify.go rename to heicode/dto/notify.go diff --git a/new-api/dto/openai_compaction.go b/heicode/dto/openai_compaction.go similarity index 92% rename from new-api/dto/openai_compaction.go rename to heicode/dto/openai_compaction.go index f19df09..8b6054c 100644 --- a/new-api/dto/openai_compaction.go +++ b/heicode/dto/openai_compaction.go @@ -3,7 +3,7 @@ package dto import ( "encoding/json" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/types" ) type OpenAIResponsesCompactionResponse struct { diff --git a/new-api/dto/openai_image.go b/heicode/dto/openai_image.go similarity index 98% rename from new-api/dto/openai_image.go rename to heicode/dto/openai_image.go index 52986fb..006bf47 100644 --- a/new-api/dto/openai_image.go +++ b/heicode/dto/openai_image.go @@ -5,8 +5,8 @@ import ( "reflect" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/dto/openai_request.go b/heicode/dto/openai_request.go similarity index 99% rename from new-api/dto/openai_request.go rename to heicode/dto/openai_request.go index 8c104dd..6e5b5c0 100644 --- a/new-api/dto/openai_request.go +++ b/heicode/dto/openai_request.go @@ -5,8 +5,8 @@ import ( "fmt" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/types" "github.com/samber/lo" "github.com/gin-gonic/gin" diff --git a/new-api/dto/openai_request_zero_value_test.go b/heicode/dto/openai_request_zero_value_test.go similarity index 98% rename from new-api/dto/openai_request_zero_value_test.go rename to heicode/dto/openai_request_zero_value_test.go index 4b0dbd7..1656e2c 100644 --- a/new-api/dto/openai_request_zero_value_test.go +++ b/heicode/dto/openai_request_zero_value_test.go @@ -3,7 +3,7 @@ package dto import ( "testing" - "github.com/QuantumNous/new-api/common" + "github.com/heicode/manager/common" "github.com/stretchr/testify/require" "github.com/tidwall/gjson" ) diff --git a/new-api/dto/openai_response.go b/heicode/dto/openai_response.go similarity index 99% rename from new-api/dto/openai_response.go rename to heicode/dto/openai_response.go index 0e6b818..1fda2f6 100644 --- a/new-api/dto/openai_response.go +++ b/heicode/dto/openai_response.go @@ -4,8 +4,8 @@ import ( "encoding/json" "fmt" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/types" ) const ( diff --git a/new-api/dto/openai_responses_compaction_request.go b/heicode/dto/openai_responses_compaction_request.go similarity index 95% rename from new-api/dto/openai_responses_compaction_request.go rename to heicode/dto/openai_responses_compaction_request.go index 7ea584c..e784b18 100644 --- a/new-api/dto/openai_responses_compaction_request.go +++ b/heicode/dto/openai_responses_compaction_request.go @@ -4,7 +4,7 @@ import ( "encoding/json" "strings" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/dto/openai_video.go b/heicode/dto/openai_video.go similarity index 100% rename from new-api/dto/openai_video.go rename to heicode/dto/openai_video.go diff --git a/new-api/dto/playground.go b/heicode/dto/playground.go similarity index 100% rename from new-api/dto/playground.go rename to heicode/dto/playground.go diff --git a/new-api/dto/pricing.go b/heicode/dto/pricing.go similarity index 96% rename from new-api/dto/pricing.go rename to heicode/dto/pricing.go index 1ed8dcd..5940556 100644 --- a/new-api/dto/pricing.go +++ b/heicode/dto/pricing.go @@ -1,6 +1,6 @@ package dto -import "github.com/QuantumNous/new-api/constant" +import "github.com/heicode/manager/constant" // 这里不好动就不动了,本来想独立出来的( type OpenAIModels struct { diff --git a/new-api/dto/ratio_sync.go b/heicode/dto/ratio_sync.go similarity index 100% rename from new-api/dto/ratio_sync.go rename to heicode/dto/ratio_sync.go diff --git a/new-api/dto/realtime.go b/heicode/dto/realtime.go similarity index 98% rename from new-api/dto/realtime.go rename to heicode/dto/realtime.go index 0fbfb86..82840ae 100644 --- a/new-api/dto/realtime.go +++ b/heicode/dto/realtime.go @@ -1,6 +1,6 @@ package dto -import "github.com/QuantumNous/new-api/types" +import "github.com/heicode/manager/types" const ( RealtimeEventTypeError = "error" diff --git a/new-api/dto/request_common.go b/heicode/dto/request_common.go similarity index 92% rename from new-api/dto/request_common.go rename to heicode/dto/request_common.go index e6e40c3..97bec24 100644 --- a/new-api/dto/request_common.go +++ b/heicode/dto/request_common.go @@ -1,7 +1,7 @@ package dto import ( - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/dto/rerank.go b/heicode/dto/rerank.go similarity index 97% rename from new-api/dto/rerank.go rename to heicode/dto/rerank.go index 9664436..84052dd 100644 --- a/new-api/dto/rerank.go +++ b/heicode/dto/rerank.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/dto/sensitive.go b/heicode/dto/sensitive.go similarity index 100% rename from new-api/dto/sensitive.go rename to heicode/dto/sensitive.go diff --git a/new-api/dto/suno.go b/heicode/dto/suno.go similarity index 100% rename from new-api/dto/suno.go rename to heicode/dto/suno.go diff --git a/new-api/dto/task.go b/heicode/dto/task.go similarity index 100% rename from new-api/dto/task.go rename to heicode/dto/task.go diff --git a/new-api/dto/user_settings.go b/heicode/dto/user_settings.go similarity index 100% rename from new-api/dto/user_settings.go rename to heicode/dto/user_settings.go diff --git a/new-api/dto/values.go b/heicode/dto/values.go similarity index 100% rename from new-api/dto/values.go rename to heicode/dto/values.go diff --git a/new-api/dto/video.go b/heicode/dto/video.go similarity index 100% rename from new-api/dto/video.go rename to heicode/dto/video.go diff --git a/new-api/electron/README.md b/heicode/electron/README.md similarity index 87% rename from new-api/electron/README.md rename to heicode/electron/README.md index 88463b8..318de9f 100644 --- a/new-api/electron/README.md +++ b/heicode/electron/README.md @@ -9,8 +9,8 @@ The Electron app requires the compiled Go binary to function. You have two optio **Option A: Use existing binary (without Go installed)** ```bash -# If you have a pre-built binary (e.g., new-api-macos) -cp ../new-api-macos ../new-api +# If you have a pre-built binary (e.g., heicode-macos) +cp ../heicode-macos ../heicode ``` **Option B: Build from source (requires Go)** @@ -33,14 +33,14 @@ This will: - Start the Go backend on port 3000 - Open an Electron window with DevTools enabled - Create a system tray icon (menu bar on macOS) -- Store database in `../data/new-api.db` +- Store database in `../data/heicode.db` ## Building for Production ### Quick Build ```bash # Ensure Go binary exists in parent directory -ls ../new-api # Should exist +ls ../heicode # Should exist # Build for current platform npm run build @@ -66,7 +66,7 @@ const PORT = 3000; // Change to desired port ``` ### Database Location -- **Development**: `../data/new-api.db` (project directory) +- **Development**: `../data/heicode.db` (project directory) - **Production**: - macOS: `~/Library/Application Support/New API/data/` - Windows: `%APPDATA%/New API/data/` diff --git a/new-api/electron/build.sh b/heicode/electron/build.sh similarity index 78% rename from new-api/electron/build.sh rename to heicode/electron/build.sh index cef7143..4039f89 100755 --- a/new-api/electron/build.sh +++ b/heicode/electron/build.sh @@ -14,25 +14,25 @@ cd .. if [[ "$OSTYPE" == "darwin"* ]]; then echo "Building for macOS..." - CGO_ENABLED=1 go build -ldflags="-s -w" -o new-api + CGO_ENABLED=1 go build -ldflags="-s -w" -o heicode cd electron npm install npm run build:mac elif [[ "$OSTYPE" == "linux-gnu"* ]]; then echo "Building for Linux..." - CGO_ENABLED=1 go build -ldflags="-s -w" -o new-api + CGO_ENABLED=1 go build -ldflags="-s -w" -o heicode cd electron npm install npm run build:linux elif [[ "$OSTYPE" == "msys" || "$OSTYPE" == "cygwin" || "$OSTYPE" == "win32" ]]; then echo "Building for Windows..." - CGO_ENABLED=1 go build -ldflags="-s -w" -o new-api.exe + CGO_ENABLED=1 go build -ldflags="-s -w" -o heicode.exe cd electron npm install npm run build:win else echo "Unknown OS, building for current platform..." - CGO_ENABLED=1 go build -ldflags="-s -w" -o new-api + CGO_ENABLED=1 go build -ldflags="-s -w" -o heicode cd electron npm install npm run build diff --git a/new-api/electron/create-tray-icon.js b/heicode/electron/create-tray-icon.js similarity index 100% rename from new-api/electron/create-tray-icon.js rename to heicode/electron/create-tray-icon.js diff --git a/new-api/electron/entitlements.mac.plist b/heicode/electron/entitlements.mac.plist similarity index 100% rename from new-api/electron/entitlements.mac.plist rename to heicode/electron/entitlements.mac.plist diff --git a/new-api/electron/icon.png b/heicode/electron/icon.png similarity index 100% rename from new-api/electron/icon.png rename to heicode/electron/icon.png diff --git a/new-api/electron/main.js b/heicode/electron/main.js similarity index 98% rename from new-api/electron/main.js rename to heicode/electron/main.js index 210a456..6ce49e9 100644 --- a/new-api/electron/main.js +++ b/heicode/electron/main.js @@ -15,7 +15,7 @@ const DEV_FRONTEND_PORT = 5173; // Vite dev server port function saveAndOpenErrorLog() { try { const timestamp = new Date().toISOString().replace(/[:.]/g, '-'); - const logFileName = `new-api-crash-${timestamp}.log`; + const logFileName = `heicode-crash-${timestamp}.log`; const logDir = app.getPath('logs'); const logFilePath = path.join(logDir, logFileName); @@ -152,23 +152,23 @@ function getBinaryPath() { const platform = process.platform; if (isDev) { - const binaryName = platform === 'win32' ? 'new-api.exe' : 'new-api'; + const binaryName = platform === 'win32' ? 'heicode.exe' : 'heicode'; return path.join(__dirname, '..', binaryName); } let binaryName; switch (platform) { case 'win32': - binaryName = 'new-api.exe'; + binaryName = 'heicode.exe'; break; case 'darwin': - binaryName = 'new-api'; + binaryName = 'heicode'; break; case 'linux': - binaryName = 'new-api'; + binaryName = 'heicode'; break; default: - binaryName = 'new-api'; + binaryName = 'heicode'; } return path.join(process.resourcesPath, 'bin', binaryName); @@ -261,7 +261,7 @@ function startServer() { fs.mkdirSync(dataDir, { recursive: true }); } - env.SQLITE_PATH = path.join(dataDir, 'new-api.db'); + env.SQLITE_PATH = path.join(dataDir, 'heicode.db'); console.log('━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━'); console.log('📁 您的数据存储位置:'); diff --git a/new-api/electron/package-lock.json b/heicode/electron/package-lock.json similarity index 99% rename from new-api/electron/package-lock.json rename to heicode/electron/package-lock.json index 995c272..28817c1 100644 --- a/new-api/electron/package-lock.json +++ b/heicode/electron/package-lock.json @@ -1,11 +1,11 @@ { - "name": "new-api-electron", + "name": "heicode-electron", "version": "1.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "new-api-electron", + "name": "heicode-electron", "version": "1.0.0", "devDependencies": { "cross-env": "^7.0.3", diff --git a/new-api/electron/package.json b/heicode/electron/package.json similarity index 87% rename from new-api/electron/package.json rename to heicode/electron/package.json index c62bad1..bc02919 100644 --- a/new-api/electron/package.json +++ b/heicode/electron/package.json @@ -1,5 +1,5 @@ { - "name": "new-api-electron", + "name": "heicode-electron", "version": "1.0.0", "description": "New API - AI Model Gateway Desktop Application", "main": "main.js", @@ -21,7 +21,7 @@ "author": "QuantumNous", "repository": { "type": "git", - "url": "https://github.com/QuantumNous/new-api" + "url": "https://github.com/QuantumNous/heicode" }, "devDependencies": { "cross-env": "^7.0.3", @@ -57,8 +57,8 @@ ], "extraResources": [ { - "from": "../new-api", - "to": "bin/new-api" + "from": "../heicode", + "to": "bin/heicode" }, { "from": "../web/dist", @@ -74,8 +74,8 @@ ], "extraResources": [ { - "from": "../new-api.exe", - "to": "bin/new-api.exe" + "from": "../heicode.exe", + "to": "bin/heicode.exe" } ] }, @@ -88,8 +88,8 @@ "category": "Development", "extraResources": [ { - "from": "../new-api", - "to": "bin/new-api" + "from": "../heicode", + "to": "bin/heicode" } ] }, diff --git a/new-api/electron/preload.js b/heicode/electron/preload.js similarity index 100% rename from new-api/electron/preload.js rename to heicode/electron/preload.js diff --git a/new-api/electron/tray-icon-windows.png b/heicode/electron/tray-icon-windows.png similarity index 100% rename from new-api/electron/tray-icon-windows.png rename to heicode/electron/tray-icon-windows.png diff --git a/new-api/electron/tray-iconTemplate.png b/heicode/electron/tray-iconTemplate.png similarity index 100% rename from new-api/electron/tray-iconTemplate.png rename to heicode/electron/tray-iconTemplate.png diff --git a/new-api/electron/tray-iconTemplate@2x.png b/heicode/electron/tray-iconTemplate@2x.png similarity index 100% rename from new-api/electron/tray-iconTemplate@2x.png rename to heicode/electron/tray-iconTemplate@2x.png diff --git a/new-api/go.mod b/heicode/go.mod similarity index 99% rename from new-api/go.mod rename to heicode/go.mod index f34ecc1..3cd9df8 100644 --- a/new-api/go.mod +++ b/heicode/go.mod @@ -1,4 +1,4 @@ -module github.com/QuantumNous/new-api +module github.com/heicode/manager // +heroku goVersion go1.18 go 1.25.1 diff --git a/new-api/go.sum b/heicode/go.sum similarity index 100% rename from new-api/go.sum rename to heicode/go.sum diff --git a/heicode/heicode.service b/heicode/heicode.service new file mode 100644 index 0000000..e9e1879 --- /dev/null +++ b/heicode/heicode.service @@ -0,0 +1,18 @@ +# File path: /etc/systemd/system/heicode.service +# sudo systemctl daemon-reload +# sudo systemctl start heicode +# sudo systemctl enable heicode +# sudo systemctl status heicode +[Unit] +Description=Heicode Manager (gateway) +After=network.target + +[Service] +User=ubuntu # 注意修改用户名 +WorkingDirectory=/path/to/heicode # 注意修改路径 +ExecStart=/path/to/heicode/heicode --port 3000 --log-dir /path/to/heicode/logs # 注意修改路径和端口号 +Restart=always +RestartSec=5 + +[Install] +WantedBy=multi-user.target diff --git a/new-api/i18n/i18n.go b/heicode/i18n/i18n.go similarity index 97% rename from new-api/i18n/i18n.go rename to heicode/i18n/i18n.go index 7ca8d2a..4785a64 100644 --- a/new-api/i18n/i18n.go +++ b/heicode/i18n/i18n.go @@ -10,9 +10,9 @@ import ( "golang.org/x/text/language" "gopkg.in/yaml.v3" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" ) const ( diff --git a/new-api/i18n/keys.go b/heicode/i18n/keys.go similarity index 100% rename from new-api/i18n/keys.go rename to heicode/i18n/keys.go diff --git a/new-api/i18n/locales/en.yaml b/heicode/i18n/locales/en.yaml similarity index 100% rename from new-api/i18n/locales/en.yaml rename to heicode/i18n/locales/en.yaml diff --git a/new-api/i18n/locales/zh-CN.yaml b/heicode/i18n/locales/zh-CN.yaml similarity index 100% rename from new-api/i18n/locales/zh-CN.yaml rename to heicode/i18n/locales/zh-CN.yaml diff --git a/new-api/i18n/locales/zh-TW.yaml b/heicode/i18n/locales/zh-TW.yaml similarity index 100% rename from new-api/i18n/locales/zh-TW.yaml rename to heicode/i18n/locales/zh-TW.yaml diff --git a/new-api/logger/logger.go b/heicode/logger/logger.go similarity index 97% rename from new-api/logger/logger.go rename to heicode/logger/logger.go index 7b0c82d..6960e2a 100644 --- a/new-api/logger/logger.go +++ b/heicode/logger/logger.go @@ -10,8 +10,8 @@ import ( "sync" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/setting/operation_setting" + "github.com/heicode/manager/common" + "github.com/heicode/manager/setting/operation_setting" "github.com/bytedance/gopkg/util/gopool" "github.com/gin-gonic/gin" diff --git a/new-api/main.go b/heicode/main.go similarity index 93% rename from new-api/main.go rename to heicode/main.go index bc0d038..03bf19c 100644 --- a/new-api/main.go +++ b/heicode/main.go @@ -11,19 +11,19 @@ import ( "strings" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/controller" - "github.com/QuantumNous/new-api/i18n" - "github.com/QuantumNous/new-api/logger" - "github.com/QuantumNous/new-api/middleware" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/oauth" - "github.com/QuantumNous/new-api/relay" - "github.com/QuantumNous/new-api/router" - "github.com/QuantumNous/new-api/service" - _ "github.com/QuantumNous/new-api/setting/performance_setting" - "github.com/QuantumNous/new-api/setting/ratio_setting" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/controller" + "github.com/heicode/manager/i18n" + "github.com/heicode/manager/logger" + "github.com/heicode/manager/middleware" + "github.com/heicode/manager/model" + "github.com/heicode/manager/oauth" + "github.com/heicode/manager/relay" + "github.com/heicode/manager/router" + "github.com/heicode/manager/service" + _ "github.com/heicode/manager/setting/performance_setting" + "github.com/heicode/manager/setting/ratio_setting" "github.com/bytedance/gopkg/util/gopool" "github.com/gin-contrib/sessions" @@ -163,7 +163,7 @@ func main() { common.SysLog(fmt.Sprintf("panic detected: %v", err)) c.JSON(http.StatusInternalServerError, gin.H{ "error": gin.H{ - "message": fmt.Sprintf("Panic detected, error: %v. Please submit a issue here: https://github.com/Calcium-Ion/new-api", err), + "message": fmt.Sprintf("Panic detected, error: %v. Please submit a issue here: https://github.com/Calcium-Ion/heicode", err), "type": "new_api_panic", }, }) diff --git a/new-api/makefile b/heicode/makefile similarity index 100% rename from new-api/makefile rename to heicode/makefile diff --git a/new-api/middleware/auth.go b/heicode/middleware/auth.go similarity index 97% rename from new-api/middleware/auth.go rename to heicode/middleware/auth.go index 23d933f..6d99862 100644 --- a/new-api/middleware/auth.go +++ b/heicode/middleware/auth.go @@ -8,14 +8,14 @@ import ( "strconv" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/i18n" - "github.com/QuantumNous/new-api/logger" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/setting/ratio_setting" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/i18n" + "github.com/heicode/manager/logger" + "github.com/heicode/manager/model" + "github.com/heicode/manager/service" + "github.com/heicode/manager/setting/ratio_setting" + "github.com/heicode/manager/types" "github.com/gin-contrib/sessions" "github.com/gin-gonic/gin" diff --git a/new-api/middleware/body_cleanup.go b/heicode/middleware/body_cleanup.go similarity index 83% rename from new-api/middleware/body_cleanup.go rename to heicode/middleware/body_cleanup.go index f7b7ab5..4b0a0d0 100644 --- a/new-api/middleware/body_cleanup.go +++ b/heicode/middleware/body_cleanup.go @@ -1,8 +1,8 @@ package middleware import ( - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/service" + "github.com/heicode/manager/common" + "github.com/heicode/manager/service" "github.com/gin-gonic/gin" ) diff --git a/new-api/middleware/cache.go b/heicode/middleware/cache.go similarity index 100% rename from new-api/middleware/cache.go rename to heicode/middleware/cache.go diff --git a/new-api/middleware/cors.go b/heicode/middleware/cors.go similarity index 92% rename from new-api/middleware/cors.go rename to heicode/middleware/cors.go index 6aaa15d..47b70ff 100644 --- a/new-api/middleware/cors.go +++ b/heicode/middleware/cors.go @@ -1,7 +1,7 @@ package middleware import ( - "github.com/QuantumNous/new-api/common" + "github.com/heicode/manager/common" "github.com/gin-contrib/cors" "github.com/gin-gonic/gin" ) diff --git a/new-api/middleware/disable-cache.go b/heicode/middleware/disable-cache.go similarity index 100% rename from new-api/middleware/disable-cache.go rename to heicode/middleware/disable-cache.go diff --git a/new-api/middleware/distributor.go b/heicode/middleware/distributor.go similarity index 97% rename from new-api/middleware/distributor.go rename to heicode/middleware/distributor.go index 2263fae..2607882 100644 --- a/new-api/middleware/distributor.go +++ b/heicode/middleware/distributor.go @@ -9,15 +9,15 @@ import ( "strings" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/i18n" - "github.com/QuantumNous/new-api/model" - relayconstant "github.com/QuantumNous/new-api/relay/constant" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/setting/ratio_setting" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/i18n" + "github.com/heicode/manager/model" + relayconstant "github.com/heicode/manager/relay/constant" + "github.com/heicode/manager/service" + "github.com/heicode/manager/setting/ratio_setting" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/middleware/email-verification-rate-limit.go b/heicode/middleware/email-verification-rate-limit.go similarity index 97% rename from new-api/middleware/email-verification-rate-limit.go rename to heicode/middleware/email-verification-rate-limit.go index 470d773..8922813 100644 --- a/new-api/middleware/email-verification-rate-limit.go +++ b/heicode/middleware/email-verification-rate-limit.go @@ -6,7 +6,7 @@ import ( "net/http" "time" - "github.com/QuantumNous/new-api/common" + "github.com/heicode/manager/common" "github.com/gin-gonic/gin" ) diff --git a/new-api/middleware/gzip.go b/heicode/middleware/gzip.go similarity index 97% rename from new-api/middleware/gzip.go rename to heicode/middleware/gzip.go index 5e56825..d9b16c2 100644 --- a/new-api/middleware/gzip.go +++ b/heicode/middleware/gzip.go @@ -5,7 +5,7 @@ import ( "io" "net/http" - "github.com/QuantumNous/new-api/constant" + "github.com/heicode/manager/constant" "github.com/andybalholm/brotli" "github.com/gin-gonic/gin" ) diff --git a/new-api/middleware/i18n.go b/heicode/middleware/i18n.go similarity index 88% rename from new-api/middleware/i18n.go rename to heicode/middleware/i18n.go index 279a738..e0f0087 100644 --- a/new-api/middleware/i18n.go +++ b/heicode/middleware/i18n.go @@ -3,10 +3,10 @@ package middleware import ( "github.com/gin-gonic/gin" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/i18n" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/i18n" ) // I18n middleware detects and sets the language preference for the request diff --git a/new-api/middleware/jimeng_adapter.go b/heicode/middleware/jimeng_adapter.go similarity index 92% rename from new-api/middleware/jimeng_adapter.go rename to heicode/middleware/jimeng_adapter.go index 3e3dd7a..58053d3 100644 --- a/new-api/middleware/jimeng_adapter.go +++ b/heicode/middleware/jimeng_adapter.go @@ -6,9 +6,9 @@ import ( "io" "net/http" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - relayconstant "github.com/QuantumNous/new-api/relay/constant" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + relayconstant "github.com/heicode/manager/relay/constant" "github.com/gin-gonic/gin" ) diff --git a/new-api/middleware/kling_adapter.go b/heicode/middleware/kling_adapter.go similarity index 92% rename from new-api/middleware/kling_adapter.go rename to heicode/middleware/kling_adapter.go index e200379..797728f 100644 --- a/new-api/middleware/kling_adapter.go +++ b/heicode/middleware/kling_adapter.go @@ -5,8 +5,8 @@ import ( "encoding/json" "io" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" "github.com/gin-gonic/gin" ) diff --git a/new-api/middleware/logger.go b/heicode/middleware/logger.go similarity index 95% rename from new-api/middleware/logger.go rename to heicode/middleware/logger.go index 151008d..54d87c3 100644 --- a/new-api/middleware/logger.go +++ b/heicode/middleware/logger.go @@ -3,7 +3,7 @@ package middleware import ( "fmt" - "github.com/QuantumNous/new-api/common" + "github.com/heicode/manager/common" "github.com/gin-gonic/gin" ) diff --git a/new-api/middleware/model-rate-limit.go b/heicode/middleware/model-rate-limit.go similarity index 97% rename from new-api/middleware/model-rate-limit.go rename to heicode/middleware/model-rate-limit.go index 80a3995..fcbbf83 100644 --- a/new-api/middleware/model-rate-limit.go +++ b/heicode/middleware/model-rate-limit.go @@ -7,10 +7,10 @@ import ( "strconv" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/common/limiter" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/setting" + "github.com/heicode/manager/common" + "github.com/heicode/manager/common/limiter" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/setting" "github.com/gin-gonic/gin" "github.com/go-redis/redis/v8" diff --git a/new-api/middleware/performance.go b/heicode/middleware/performance.go similarity index 96% rename from new-api/middleware/performance.go rename to heicode/middleware/performance.go index 8668bb9..e219508 100644 --- a/new-api/middleware/performance.go +++ b/heicode/middleware/performance.go @@ -5,8 +5,8 @@ import ( "net/http" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/middleware/rate-limit.go b/heicode/middleware/rate-limit.go similarity index 99% rename from new-api/middleware/rate-limit.go rename to heicode/middleware/rate-limit.go index d8dd15d..7d6b684 100644 --- a/new-api/middleware/rate-limit.go +++ b/heicode/middleware/rate-limit.go @@ -6,7 +6,7 @@ import ( "net/http" "time" - "github.com/QuantumNous/new-api/common" + "github.com/heicode/manager/common" "github.com/gin-gonic/gin" ) diff --git a/new-api/middleware/recover.go b/heicode/middleware/recover.go similarity index 85% rename from new-api/middleware/recover.go rename to heicode/middleware/recover.go index 745a610..0d1354f 100644 --- a/new-api/middleware/recover.go +++ b/heicode/middleware/recover.go @@ -5,7 +5,7 @@ import ( "net/http" "runtime/debug" - "github.com/QuantumNous/new-api/common" + "github.com/heicode/manager/common" "github.com/gin-gonic/gin" ) @@ -17,7 +17,7 @@ func RelayPanicRecover() gin.HandlerFunc { common.SysLog(fmt.Sprintf("stacktrace from panic: %s", string(debug.Stack()))) c.JSON(http.StatusInternalServerError, gin.H{ "error": gin.H{ - "message": fmt.Sprintf("Panic detected, error: %v. Please submit a issue here: https://github.com/Calcium-Ion/new-api", err), + "message": fmt.Sprintf("Panic detected, error: %v. Please submit a issue here: https://github.com/Calcium-Ion/heicode", err), "type": "new_api_panic", }, }) diff --git a/new-api/middleware/request-id.go b/heicode/middleware/request-id.go similarity index 94% rename from new-api/middleware/request-id.go rename to heicode/middleware/request-id.go index 241c2a8..35fce57 100644 --- a/new-api/middleware/request-id.go +++ b/heicode/middleware/request-id.go @@ -6,7 +6,7 @@ import ( "encoding/hex" "runtime/debug" - "github.com/QuantumNous/new-api/common" + "github.com/heicode/manager/common" "github.com/gin-gonic/gin" ) diff --git a/new-api/middleware/secure_verification.go b/heicode/middleware/secure_verification.go similarity index 100% rename from new-api/middleware/secure_verification.go rename to heicode/middleware/secure_verification.go diff --git a/new-api/middleware/stats.go b/heicode/middleware/stats.go similarity index 100% rename from new-api/middleware/stats.go rename to heicode/middleware/stats.go diff --git a/new-api/middleware/turnstile-check.go b/heicode/middleware/turnstile-check.go similarity index 97% rename from new-api/middleware/turnstile-check.go rename to heicode/middleware/turnstile-check.go index af87fad..55b442b 100644 --- a/new-api/middleware/turnstile-check.go +++ b/heicode/middleware/turnstile-check.go @@ -5,7 +5,7 @@ import ( "net/http" "net/url" - "github.com/QuantumNous/new-api/common" + "github.com/heicode/manager/common" "github.com/gin-contrib/sessions" "github.com/gin-gonic/gin" ) diff --git a/new-api/middleware/utils.go b/heicode/middleware/utils.go similarity index 87% rename from new-api/middleware/utils.go rename to heicode/middleware/utils.go index f198af8..82bc80a 100644 --- a/new-api/middleware/utils.go +++ b/heicode/middleware/utils.go @@ -3,9 +3,9 @@ package middleware import ( "fmt" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/logger" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/logger" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/model/ability.go b/heicode/model/ability.go similarity index 99% rename from new-api/model/ability.go rename to heicode/model/ability.go index 1d7c53f..0f613f8 100644 --- a/new-api/model/ability.go +++ b/heicode/model/ability.go @@ -6,7 +6,7 @@ import ( "strings" "sync" - "github.com/QuantumNous/new-api/common" + "github.com/heicode/manager/common" "github.com/samber/lo" "gorm.io/gorm" diff --git a/new-api/model/channel.go b/heicode/model/channel.go similarity index 99% rename from new-api/model/channel.go rename to heicode/model/channel.go index f256b54..bf1bb06 100644 --- a/new-api/model/channel.go +++ b/heicode/model/channel.go @@ -9,10 +9,10 @@ import ( "strings" "sync" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/types" "github.com/samber/lo" "gorm.io/gorm" diff --git a/new-api/model/channel_cache.go b/heicode/model/channel_cache.go similarity index 98% rename from new-api/model/channel_cache.go rename to heicode/model/channel_cache.go index c9c5035..3bfd3f3 100644 --- a/new-api/model/channel_cache.go +++ b/heicode/model/channel_cache.go @@ -9,9 +9,9 @@ import ( "sync" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/setting/ratio_setting" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/setting/ratio_setting" ) var group2model2channels map[string]map[string][]int // enabled channel diff --git a/new-api/model/channel_satisfy.go b/heicode/model/channel_satisfy.go similarity index 94% rename from new-api/model/channel_satisfy.go rename to heicode/model/channel_satisfy.go index 681f1e6..73fc3f2 100644 --- a/new-api/model/channel_satisfy.go +++ b/heicode/model/channel_satisfy.go @@ -1,8 +1,8 @@ package model import ( - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/setting/ratio_setting" + "github.com/heicode/manager/common" + "github.com/heicode/manager/setting/ratio_setting" ) func IsChannelEnabledForGroupModel(group string, modelName string, channelID int) bool { diff --git a/new-api/model/checkin.go b/heicode/model/checkin.go similarity index 98% rename from new-api/model/checkin.go rename to heicode/model/checkin.go index 71eb8ee..ce29803 100644 --- a/new-api/model/checkin.go +++ b/heicode/model/checkin.go @@ -5,8 +5,8 @@ import ( "math/rand" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/setting/operation_setting" + "github.com/heicode/manager/common" + "github.com/heicode/manager/setting/operation_setting" "gorm.io/gorm" ) diff --git a/new-api/model/custom_oauth_provider.go b/heicode/model/custom_oauth_provider.go similarity index 99% rename from new-api/model/custom_oauth_provider.go rename to heicode/model/custom_oauth_provider.go index 12b4d11..c39493c 100644 --- a/new-api/model/custom_oauth_provider.go +++ b/heicode/model/custom_oauth_provider.go @@ -6,7 +6,7 @@ import ( "strings" "time" - "github.com/QuantumNous/new-api/common" + "github.com/heicode/manager/common" ) type accessPolicyPayload struct { diff --git a/new-api/model/db_time.go b/heicode/model/db_time.go similarity index 91% rename from new-api/model/db_time.go rename to heicode/model/db_time.go index dca1429..2ea7916 100644 --- a/new-api/model/db_time.go +++ b/heicode/model/db_time.go @@ -1,6 +1,6 @@ package model -import "github.com/QuantumNous/new-api/common" +import "github.com/heicode/manager/common" // GetDBTimestamp returns a UNIX timestamp from database time. // Falls back to application time on error. diff --git a/new-api/model/errors.go b/heicode/model/errors.go similarity index 100% rename from new-api/model/errors.go rename to heicode/model/errors.go diff --git a/new-api/model/log.go b/heicode/model/log.go similarity index 99% rename from new-api/model/log.go rename to heicode/model/log.go index 9203ff2..32693ee 100644 --- a/new-api/model/log.go +++ b/heicode/model/log.go @@ -6,9 +6,9 @@ import ( "fmt" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/logger" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/logger" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" diff --git a/new-api/model/main.go b/heicode/model/main.go similarity index 99% rename from new-api/model/main.go rename to heicode/model/main.go index f37cb66..8eb3328 100644 --- a/new-api/model/main.go +++ b/heicode/model/main.go @@ -8,8 +8,8 @@ import ( "sync" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" "github.com/glebarez/sqlite" "gorm.io/driver/mysql" diff --git a/new-api/model/midjourney.go b/heicode/model/midjourney.go similarity index 100% rename from new-api/model/midjourney.go rename to heicode/model/midjourney.go diff --git a/new-api/model/missing_models.go b/heicode/model/missing_models.go similarity index 100% rename from new-api/model/missing_models.go rename to heicode/model/missing_models.go diff --git a/new-api/model/model_extra.go b/heicode/model/model_extra.go similarity index 100% rename from new-api/model/model_extra.go rename to heicode/model/model_extra.go diff --git a/new-api/model/model_meta.go b/heicode/model/model_meta.go similarity index 99% rename from new-api/model/model_meta.go rename to heicode/model/model_meta.go index 860b960..fd0774c 100644 --- a/new-api/model/model_meta.go +++ b/heicode/model/model_meta.go @@ -3,7 +3,7 @@ package model import ( "strconv" - "github.com/QuantumNous/new-api/common" + "github.com/heicode/manager/common" "gorm.io/gorm" ) diff --git a/new-api/model/option.go b/heicode/model/option.go similarity index 98% rename from new-api/model/option.go rename to heicode/model/option.go index e0a3048..2fa24d0 100644 --- a/new-api/model/option.go +++ b/heicode/model/option.go @@ -5,13 +5,13 @@ import ( "strings" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/setting" - "github.com/QuantumNous/new-api/setting/config" - "github.com/QuantumNous/new-api/setting/operation_setting" - "github.com/QuantumNous/new-api/setting/performance_setting" - "github.com/QuantumNous/new-api/setting/ratio_setting" - "github.com/QuantumNous/new-api/setting/system_setting" + "github.com/heicode/manager/common" + "github.com/heicode/manager/setting" + "github.com/heicode/manager/setting/config" + "github.com/heicode/manager/setting/operation_setting" + "github.com/heicode/manager/setting/performance_setting" + "github.com/heicode/manager/setting/ratio_setting" + "github.com/heicode/manager/setting/system_setting" ) type Option struct { diff --git a/new-api/model/passkey.go b/heicode/model/passkey.go similarity index 99% rename from new-api/model/passkey.go rename to heicode/model/passkey.go index 5d2595c..36b4cb1 100644 --- a/new-api/model/passkey.go +++ b/heicode/model/passkey.go @@ -8,7 +8,7 @@ import ( "strings" "time" - "github.com/QuantumNous/new-api/common" + "github.com/heicode/manager/common" "github.com/go-webauthn/webauthn/protocol" "github.com/go-webauthn/webauthn/webauthn" diff --git a/new-api/model/payment_method_guard_test.go b/heicode/model/payment_method_guard_test.go similarity index 99% rename from new-api/model/payment_method_guard_test.go rename to heicode/model/payment_method_guard_test.go index 7f4f15c..86a0b0d 100644 --- a/new-api/model/payment_method_guard_test.go +++ b/heicode/model/payment_method_guard_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - "github.com/QuantumNous/new-api/common" + "github.com/heicode/manager/common" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/new-api/model/prefill_group.go b/heicode/model/prefill_group.go similarity index 98% rename from new-api/model/prefill_group.go rename to heicode/model/prefill_group.go index cc2e64d..ff4e6c3 100644 --- a/new-api/model/prefill_group.go +++ b/heicode/model/prefill_group.go @@ -4,7 +4,7 @@ import ( "database/sql/driver" "encoding/json" - "github.com/QuantumNous/new-api/common" + "github.com/heicode/manager/common" "gorm.io/gorm" ) diff --git a/new-api/model/pricing.go b/heicode/model/pricing.go similarity index 97% rename from new-api/model/pricing.go rename to heicode/model/pricing.go index b9574a3..4293289 100644 --- a/new-api/model/pricing.go +++ b/heicode/model/pricing.go @@ -8,11 +8,11 @@ import ( "sync" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/setting/billing_setting" - "github.com/QuantumNous/new-api/setting/ratio_setting" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/setting/billing_setting" + "github.com/heicode/manager/setting/ratio_setting" + "github.com/heicode/manager/types" ) type Pricing struct { diff --git a/new-api/model/pricing_default.go b/heicode/model/pricing_default.go similarity index 100% rename from new-api/model/pricing_default.go rename to heicode/model/pricing_default.go diff --git a/new-api/model/pricing_refresh.go b/heicode/model/pricing_refresh.go similarity index 100% rename from new-api/model/pricing_refresh.go rename to heicode/model/pricing_refresh.go diff --git a/new-api/model/redemption.go b/heicode/model/redemption.go similarity index 98% rename from new-api/model/redemption.go rename to heicode/model/redemption.go index b0ccb5d..d76b810 100644 --- a/new-api/model/redemption.go +++ b/heicode/model/redemption.go @@ -5,8 +5,8 @@ import ( "fmt" "strconv" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/logger" + "github.com/heicode/manager/common" + "github.com/heicode/manager/logger" "gorm.io/gorm" ) diff --git a/new-api/model/setup.go b/heicode/model/setup.go similarity index 100% rename from new-api/model/setup.go rename to heicode/model/setup.go diff --git a/new-api/model/subscription.go b/heicode/model/subscription.go similarity index 99% rename from new-api/model/subscription.go rename to heicode/model/subscription.go index da8fdae..35e0386 100644 --- a/new-api/model/subscription.go +++ b/heicode/model/subscription.go @@ -8,8 +8,8 @@ import ( "sync" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/pkg/cachex" + "github.com/heicode/manager/common" + "github.com/heicode/manager/pkg/cachex" "github.com/samber/hot" "gorm.io/gorm" ) @@ -38,8 +38,8 @@ var ( ) const ( - subscriptionPlanCacheNamespace = "new-api:subscription_plan:v1" - subscriptionPlanInfoCacheNamespace = "new-api:subscription_plan_info:v1" + subscriptionPlanCacheNamespace = "heicode:subscription_plan:v1" + subscriptionPlanInfoCacheNamespace = "heicode:subscription_plan_info:v1" ) var ( diff --git a/new-api/model/task.go b/heicode/model/task.go similarity index 98% rename from new-api/model/task.go rename to heicode/model/task.go index 5d00de5..8011c8b 100644 --- a/new-api/model/task.go +++ b/heicode/model/task.go @@ -6,10 +6,10 @@ import ( "encoding/json" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - commonRelay "github.com/QuantumNous/new-api/relay/common" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + commonRelay "github.com/heicode/manager/relay/common" ) type TaskStatus string diff --git a/new-api/model/task_cas_test.go b/heicode/model/task_cas_test.go similarity index 99% rename from new-api/model/task_cas_test.go rename to heicode/model/task_cas_test.go index ba34a73..79ae8c9 100644 --- a/new-api/model/task_cas_test.go +++ b/heicode/model/task_cas_test.go @@ -7,7 +7,7 @@ import ( "testing" "time" - "github.com/QuantumNous/new-api/common" + "github.com/heicode/manager/common" "github.com/glebarez/sqlite" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/new-api/model/token.go b/heicode/model/token.go similarity index 99% rename from new-api/model/token.go rename to heicode/model/token.go index ab841f6..a436012 100644 --- a/new-api/model/token.go +++ b/heicode/model/token.go @@ -5,8 +5,8 @@ import ( "fmt" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/setting/operation_setting" + "github.com/heicode/manager/common" + "github.com/heicode/manager/setting/operation_setting" "github.com/bytedance/gopkg/util/gopool" "gorm.io/gorm" ) diff --git a/new-api/model/token_cache.go b/heicode/model/token_cache.go similarity index 94% rename from new-api/model/token_cache.go rename to heicode/model/token_cache.go index 947f587..0bdfcf9 100644 --- a/new-api/model/token_cache.go +++ b/heicode/model/token_cache.go @@ -4,8 +4,8 @@ import ( "fmt" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" ) func cacheSetToken(token Token) error { diff --git a/new-api/model/topup.go b/heicode/model/topup.go similarity index 99% rename from new-api/model/topup.go rename to heicode/model/topup.go index c071b77..b784380 100644 --- a/new-api/model/topup.go +++ b/heicode/model/topup.go @@ -4,8 +4,8 @@ import ( "errors" "fmt" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/logger" + "github.com/heicode/manager/common" + "github.com/heicode/manager/logger" "github.com/shopspring/decimal" "gorm.io/gorm" diff --git a/new-api/model/twofa.go b/heicode/model/twofa.go similarity index 99% rename from new-api/model/twofa.go rename to heicode/model/twofa.go index a2d0c7e..d5a2a4b 100644 --- a/new-api/model/twofa.go +++ b/heicode/model/twofa.go @@ -5,7 +5,7 @@ import ( "fmt" "time" - "github.com/QuantumNous/new-api/common" + "github.com/heicode/manager/common" "gorm.io/gorm" ) diff --git a/new-api/model/usedata.go b/heicode/model/usedata.go similarity index 99% rename from new-api/model/usedata.go rename to heicode/model/usedata.go index f0ea055..473c719 100644 --- a/new-api/model/usedata.go +++ b/heicode/model/usedata.go @@ -5,7 +5,7 @@ import ( "sync" "time" - "github.com/QuantumNous/new-api/common" + "github.com/heicode/manager/common" "gorm.io/gorm" ) diff --git a/new-api/model/user.go b/heicode/model/user.go similarity index 99% rename from new-api/model/user.go rename to heicode/model/user.go index b632ef9..7dcc45a 100644 --- a/new-api/model/user.go +++ b/heicode/model/user.go @@ -8,9 +8,9 @@ import ( "strconv" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/logger" + "github.com/heicode/manager/common" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/logger" "github.com/bytedance/gopkg/util/gopool" "gorm.io/gorm" diff --git a/new-api/model/user_cache.go b/heicode/model/user_cache.go similarity index 98% rename from new-api/model/user_cache.go rename to heicode/model/user_cache.go index 80d0264..d2d4ee6 100644 --- a/new-api/model/user_cache.go +++ b/heicode/model/user_cache.go @@ -4,9 +4,9 @@ import ( "fmt" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" "github.com/gin-gonic/gin" diff --git a/new-api/model/user_oauth_binding.go b/heicode/model/user_oauth_binding.go similarity index 100% rename from new-api/model/user_oauth_binding.go rename to heicode/model/user_oauth_binding.go diff --git a/new-api/model/utils.go b/heicode/model/utils.go similarity index 98% rename from new-api/model/utils.go rename to heicode/model/utils.go index adfd8e1..0ebbf84 100644 --- a/new-api/model/utils.go +++ b/heicode/model/utils.go @@ -5,7 +5,7 @@ import ( "sync" "time" - "github.com/QuantumNous/new-api/common" + "github.com/heicode/manager/common" "github.com/bytedance/gopkg/util/gopool" "gorm.io/gorm" diff --git a/new-api/model/vendor_meta.go b/heicode/model/vendor_meta.go similarity index 98% rename from new-api/model/vendor_meta.go rename to heicode/model/vendor_meta.go index 2bb357f..a88ba33 100644 --- a/new-api/model/vendor_meta.go +++ b/heicode/model/vendor_meta.go @@ -1,7 +1,7 @@ package model import ( - "github.com/QuantumNous/new-api/common" + "github.com/heicode/manager/common" "gorm.io/gorm" ) diff --git a/new-api/oauth/discord.go b/heicode/oauth/discord.go similarity index 96% rename from new-api/oauth/discord.go rename to heicode/oauth/discord.go index b626d2f..e2e95ea 100644 --- a/new-api/oauth/discord.go +++ b/heicode/oauth/discord.go @@ -9,10 +9,10 @@ import ( "strings" "time" - "github.com/QuantumNous/new-api/i18n" - "github.com/QuantumNous/new-api/logger" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/setting/system_setting" + "github.com/heicode/manager/i18n" + "github.com/heicode/manager/logger" + "github.com/heicode/manager/model" + "github.com/heicode/manager/setting/system_setting" "github.com/gin-gonic/gin" ) diff --git a/new-api/oauth/generic.go b/heicode/oauth/generic.go similarity index 98% rename from new-api/oauth/generic.go rename to heicode/oauth/generic.go index 11bbb9b..edfd7c6 100644 --- a/new-api/oauth/generic.go +++ b/heicode/oauth/generic.go @@ -14,11 +14,11 @@ import ( "strings" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/i18n" - "github.com/QuantumNous/new-api/logger" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/setting/system_setting" + "github.com/heicode/manager/common" + "github.com/heicode/manager/i18n" + "github.com/heicode/manager/logger" + "github.com/heicode/manager/model" + "github.com/heicode/manager/setting/system_setting" "github.com/gin-gonic/gin" "github.com/samber/lo" "github.com/tidwall/gjson" diff --git a/new-api/oauth/github.go b/heicode/oauth/github.go similarity index 97% rename from new-api/oauth/github.go rename to heicode/oauth/github.go index 314118a..f7e62ef 100644 --- a/new-api/oauth/github.go +++ b/heicode/oauth/github.go @@ -10,10 +10,10 @@ import ( "strconv" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/i18n" - "github.com/QuantumNous/new-api/logger" - "github.com/QuantumNous/new-api/model" + "github.com/heicode/manager/common" + "github.com/heicode/manager/i18n" + "github.com/heicode/manager/logger" + "github.com/heicode/manager/model" "github.com/gin-gonic/gin" ) diff --git a/new-api/oauth/linuxdo.go b/heicode/oauth/linuxdo.go similarity index 97% rename from new-api/oauth/linuxdo.go rename to heicode/oauth/linuxdo.go index 1ed91e0..c398dce 100644 --- a/new-api/oauth/linuxdo.go +++ b/heicode/oauth/linuxdo.go @@ -11,10 +11,10 @@ import ( "strings" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/i18n" - "github.com/QuantumNous/new-api/logger" - "github.com/QuantumNous/new-api/model" + "github.com/heicode/manager/common" + "github.com/heicode/manager/i18n" + "github.com/heicode/manager/logger" + "github.com/heicode/manager/model" "github.com/gin-gonic/gin" ) diff --git a/new-api/oauth/oidc.go b/heicode/oauth/oidc.go similarity index 96% rename from new-api/oauth/oidc.go rename to heicode/oauth/oidc.go index 9bdc6d0..8fa840e 100644 --- a/new-api/oauth/oidc.go +++ b/heicode/oauth/oidc.go @@ -9,10 +9,10 @@ import ( "strings" "time" - "github.com/QuantumNous/new-api/i18n" - "github.com/QuantumNous/new-api/logger" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/setting/system_setting" + "github.com/heicode/manager/i18n" + "github.com/heicode/manager/logger" + "github.com/heicode/manager/model" + "github.com/heicode/manager/setting/system_setting" "github.com/gin-gonic/gin" ) diff --git a/new-api/oauth/provider.go b/heicode/oauth/provider.go similarity index 96% rename from new-api/oauth/provider.go rename to heicode/oauth/provider.go index 785ed25..f52e208 100644 --- a/new-api/oauth/provider.go +++ b/heicode/oauth/provider.go @@ -3,7 +3,7 @@ package oauth import ( "context" - "github.com/QuantumNous/new-api/model" + "github.com/heicode/manager/model" "github.com/gin-gonic/gin" ) diff --git a/new-api/oauth/registry.go b/heicode/oauth/registry.go similarity index 97% rename from new-api/oauth/registry.go rename to heicode/oauth/registry.go index 91d1963..a59ea21 100644 --- a/new-api/oauth/registry.go +++ b/heicode/oauth/registry.go @@ -4,8 +4,8 @@ import ( "fmt" "sync" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/model" + "github.com/heicode/manager/common" + "github.com/heicode/manager/model" ) var ( diff --git a/new-api/oauth/types.go b/heicode/oauth/types.go similarity index 100% rename from new-api/oauth/types.go rename to heicode/oauth/types.go diff --git a/new-api/pkg/billingexpr/billingexpr_test.go b/heicode/pkg/billingexpr/billingexpr_test.go similarity index 99% rename from new-api/pkg/billingexpr/billingexpr_test.go rename to heicode/pkg/billingexpr/billingexpr_test.go index 5a5412f..0e45c3d 100644 --- a/new-api/pkg/billingexpr/billingexpr_test.go +++ b/heicode/pkg/billingexpr/billingexpr_test.go @@ -5,7 +5,7 @@ import ( "math/rand" "testing" - "github.com/QuantumNous/new-api/pkg/billingexpr" + "github.com/heicode/manager/pkg/billingexpr" ) // --------------------------------------------------------------------------- diff --git a/new-api/pkg/billingexpr/compile.go b/heicode/pkg/billingexpr/compile.go similarity index 100% rename from new-api/pkg/billingexpr/compile.go rename to heicode/pkg/billingexpr/compile.go diff --git a/new-api/pkg/billingexpr/expr.md b/heicode/pkg/billingexpr/expr.md similarity index 100% rename from new-api/pkg/billingexpr/expr.md rename to heicode/pkg/billingexpr/expr.md diff --git a/new-api/pkg/billingexpr/round.go b/heicode/pkg/billingexpr/round.go similarity index 100% rename from new-api/pkg/billingexpr/round.go rename to heicode/pkg/billingexpr/round.go diff --git a/new-api/pkg/billingexpr/run.go b/heicode/pkg/billingexpr/run.go similarity index 100% rename from new-api/pkg/billingexpr/run.go rename to heicode/pkg/billingexpr/run.go diff --git a/new-api/pkg/billingexpr/settle.go b/heicode/pkg/billingexpr/settle.go similarity index 100% rename from new-api/pkg/billingexpr/settle.go rename to heicode/pkg/billingexpr/settle.go diff --git a/new-api/pkg/billingexpr/types.go b/heicode/pkg/billingexpr/types.go similarity index 100% rename from new-api/pkg/billingexpr/types.go rename to heicode/pkg/billingexpr/types.go diff --git a/new-api/pkg/cachex/codec.go b/heicode/pkg/cachex/codec.go similarity index 100% rename from new-api/pkg/cachex/codec.go rename to heicode/pkg/cachex/codec.go diff --git a/new-api/pkg/cachex/hybrid_cache.go b/heicode/pkg/cachex/hybrid_cache.go similarity index 100% rename from new-api/pkg/cachex/hybrid_cache.go rename to heicode/pkg/cachex/hybrid_cache.go diff --git a/new-api/pkg/cachex/namespace.go b/heicode/pkg/cachex/namespace.go similarity index 100% rename from new-api/pkg/cachex/namespace.go rename to heicode/pkg/cachex/namespace.go diff --git a/new-api/pkg/ionet/client.go b/heicode/pkg/ionet/client.go similarity index 100% rename from new-api/pkg/ionet/client.go rename to heicode/pkg/ionet/client.go diff --git a/new-api/pkg/ionet/container.go b/heicode/pkg/ionet/container.go similarity index 100% rename from new-api/pkg/ionet/container.go rename to heicode/pkg/ionet/container.go diff --git a/new-api/pkg/ionet/deployment.go b/heicode/pkg/ionet/deployment.go similarity index 100% rename from new-api/pkg/ionet/deployment.go rename to heicode/pkg/ionet/deployment.go diff --git a/new-api/pkg/ionet/hardware.go b/heicode/pkg/ionet/hardware.go similarity index 100% rename from new-api/pkg/ionet/hardware.go rename to heicode/pkg/ionet/hardware.go diff --git a/new-api/pkg/ionet/jsonutil.go b/heicode/pkg/ionet/jsonutil.go similarity index 100% rename from new-api/pkg/ionet/jsonutil.go rename to heicode/pkg/ionet/jsonutil.go diff --git a/new-api/pkg/ionet/types.go b/heicode/pkg/ionet/types.go similarity index 100% rename from new-api/pkg/ionet/types.go rename to heicode/pkg/ionet/types.go diff --git a/new-api/relay/audio_handler.go b/heicode/relay/audio_handler.go similarity index 89% rename from new-api/relay/audio_handler.go rename to heicode/relay/audio_handler.go index 7e9f6c4..29e370b 100644 --- a/new-api/relay/audio_handler.go +++ b/heicode/relay/audio_handler.go @@ -5,12 +5,12 @@ import ( "fmt" "net/http" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/dto" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/relay/helper" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/dto" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/relay/helper" + "github.com/heicode/manager/service" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/channel/adapter.go b/heicode/relay/channel/adapter.go similarity index 95% rename from new-api/relay/channel/adapter.go rename to heicode/relay/channel/adapter.go index d2f7c6b..e936366 100644 --- a/new-api/relay/channel/adapter.go +++ b/heicode/relay/channel/adapter.go @@ -4,10 +4,10 @@ import ( "io" "net/http" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/model" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/model" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/channel/ai360/constants.go b/heicode/relay/channel/ai360/constants.go similarity index 100% rename from new-api/relay/channel/ai360/constants.go rename to heicode/relay/channel/ai360/constants.go diff --git a/new-api/relay/channel/ali/adaptor.go b/heicode/relay/channel/ali/adaptor.go similarity index 94% rename from new-api/relay/channel/ali/adaptor.go rename to heicode/relay/channel/ali/adaptor.go index cb3070f..a2cf105 100644 --- a/new-api/relay/channel/ali/adaptor.go +++ b/heicode/relay/channel/ali/adaptor.go @@ -7,16 +7,16 @@ import ( "net/http" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/relay/channel" - "github.com/QuantumNous/new-api/relay/channel/claude" - "github.com/QuantumNous/new-api/relay/channel/openai" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/relay/constant" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/setting/model_setting" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/relay/channel" + "github.com/heicode/manager/relay/channel/claude" + "github.com/heicode/manager/relay/channel/openai" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/relay/constant" + "github.com/heicode/manager/service" + "github.com/heicode/manager/setting/model_setting" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" "github.com/samber/lo" diff --git a/new-api/relay/channel/ali/constants.go b/heicode/relay/channel/ali/constants.go similarity index 100% rename from new-api/relay/channel/ali/constants.go rename to heicode/relay/channel/ali/constants.go diff --git a/new-api/relay/channel/ali/dto.go b/heicode/relay/channel/ali/dto.go similarity index 98% rename from new-api/relay/channel/ali/dto.go rename to heicode/relay/channel/ali/dto.go index ec564f0..7dcd26e 100644 --- a/new-api/relay/channel/ali/dto.go +++ b/heicode/relay/channel/ali/dto.go @@ -3,9 +3,9 @@ package ali import ( "strings" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/logger" - "github.com/QuantumNous/new-api/service" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/logger" + "github.com/heicode/manager/service" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/channel/ali/image.go b/heicode/relay/channel/ali/image.go similarity index 97% rename from new-api/relay/channel/ali/image.go rename to heicode/relay/channel/ali/image.go index 79bc220..b3551b9 100644 --- a/new-api/relay/channel/ali/image.go +++ b/heicode/relay/channel/ali/image.go @@ -10,12 +10,12 @@ import ( "strings" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/logger" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/logger" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/service" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" "github.com/samber/lo" diff --git a/new-api/relay/channel/ali/image_wan.go b/heicode/relay/channel/ali/image_wan.go similarity index 89% rename from new-api/relay/channel/ali/image_wan.go rename to heicode/relay/channel/ali/image_wan.go index e2f4606..5fb13cf 100644 --- a/new-api/relay/channel/ali/image_wan.go +++ b/heicode/relay/channel/ali/image_wan.go @@ -4,9 +4,9 @@ import ( "fmt" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/dto" - relaycommon "github.com/QuantumNous/new-api/relay/common" + "github.com/heicode/manager/common" + "github.com/heicode/manager/dto" + relaycommon "github.com/heicode/manager/relay/common" "github.com/gin-gonic/gin" "github.com/samber/lo" diff --git a/new-api/relay/channel/ali/rerank.go b/heicode/relay/channel/ali/rerank.go similarity index 91% rename from new-api/relay/channel/ali/rerank.go rename to heicode/relay/channel/ali/rerank.go index 1f7a345..d3148e6 100644 --- a/new-api/relay/channel/ali/rerank.go +++ b/heicode/relay/channel/ali/rerank.go @@ -5,10 +5,10 @@ import ( "io" "net/http" - "github.com/QuantumNous/new-api/dto" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/dto" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/service" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/channel/ali/text.go b/heicode/relay/channel/ali/text.go similarity index 92% rename from new-api/relay/channel/ali/text.go rename to heicode/relay/channel/ali/text.go index 09a52ad..b783ac4 100644 --- a/new-api/relay/channel/ali/text.go +++ b/heicode/relay/channel/ali/text.go @@ -1,7 +1,7 @@ package ali import ( - "github.com/QuantumNous/new-api/dto" + "github.com/heicode/manager/dto" "github.com/samber/lo" ) diff --git a/new-api/relay/channel/api_request.go b/heicode/relay/channel/api_request.go similarity index 97% rename from new-api/relay/channel/api_request.go rename to heicode/relay/channel/api_request.go index 8dfb61d..6a77b91 100644 --- a/new-api/relay/channel/api_request.go +++ b/heicode/relay/channel/api_request.go @@ -11,14 +11,14 @@ import ( "sync" "time" - common2 "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/logger" - "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/relay/constant" - "github.com/QuantumNous/new-api/relay/helper" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/setting/operation_setting" - "github.com/QuantumNous/new-api/types" + common2 "github.com/heicode/manager/common" + "github.com/heicode/manager/logger" + "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/relay/constant" + "github.com/heicode/manager/relay/helper" + "github.com/heicode/manager/service" + "github.com/heicode/manager/setting/operation_setting" + "github.com/heicode/manager/types" "github.com/bytedance/gopkg/util/gopool" "github.com/gin-gonic/gin" diff --git a/new-api/relay/channel/api_request_test.go b/heicode/relay/channel/api_request_test.go similarity index 98% rename from new-api/relay/channel/api_request_test.go rename to heicode/relay/channel/api_request_test.go index f697f85..23e1daf 100644 --- a/new-api/relay/channel/api_request_test.go +++ b/heicode/relay/channel/api_request_test.go @@ -5,7 +5,7 @@ import ( "net/http/httptest" "testing" - relaycommon "github.com/QuantumNous/new-api/relay/common" + relaycommon "github.com/heicode/manager/relay/common" "github.com/gin-gonic/gin" "github.com/stretchr/testify/require" ) diff --git a/new-api/relay/channel/aws/adaptor.go b/heicode/relay/channel/aws/adaptor.go similarity index 94% rename from new-api/relay/channel/aws/adaptor.go rename to heicode/relay/channel/aws/adaptor.go index e9e5fd9..51c79ab 100644 --- a/new-api/relay/channel/aws/adaptor.go +++ b/heicode/relay/channel/aws/adaptor.go @@ -6,12 +6,12 @@ import ( "net/http" "strings" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/relay/channel" - "github.com/QuantumNous/new-api/relay/channel/claude" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/relay/channel" + "github.com/heicode/manager/relay/channel/claude" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/service" + "github.com/heicode/manager/types" "github.com/aws/aws-sdk-go-v2/service/bedrockruntime" "github.com/pkg/errors" diff --git a/new-api/relay/channel/aws/constants.go b/heicode/relay/channel/aws/constants.go similarity index 100% rename from new-api/relay/channel/aws/constants.go rename to heicode/relay/channel/aws/constants.go diff --git a/new-api/relay/channel/aws/dto.go b/heicode/relay/channel/aws/dto.go similarity index 97% rename from new-api/relay/channel/aws/dto.go rename to heicode/relay/channel/aws/dto.go index 4c5c5cb..29041bf 100644 --- a/new-api/relay/channel/aws/dto.go +++ b/heicode/relay/channel/aws/dto.go @@ -7,9 +7,9 @@ import ( "net/http" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/logger" + "github.com/heicode/manager/common" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/logger" ) type AwsClaudeRequest struct { diff --git a/new-api/relay/channel/aws/relay-aws.go b/heicode/relay/channel/aws/relay-aws.go similarity index 96% rename from new-api/relay/channel/aws/relay-aws.go rename to heicode/relay/channel/aws/relay-aws.go index 1f6ff7e..0a87a21 100644 --- a/new-api/relay/channel/aws/relay-aws.go +++ b/heicode/relay/channel/aws/relay-aws.go @@ -9,19 +9,19 @@ import ( "strings" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/relay/channel" - "github.com/QuantumNous/new-api/relay/channel/claude" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/relay/helper" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/relay/channel" + "github.com/heicode/manager/relay/channel/claude" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/relay/helper" + "github.com/heicode/manager/service" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" "github.com/pkg/errors" - "github.com/QuantumNous/new-api/setting/model_setting" + "github.com/heicode/manager/setting/model_setting" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/credentials" "github.com/aws/aws-sdk-go-v2/service/bedrockruntime" diff --git a/new-api/relay/channel/aws/relay_aws_test.go b/heicode/relay/channel/aws/relay_aws_test.go similarity index 93% rename from new-api/relay/channel/aws/relay_aws_test.go rename to heicode/relay/channel/aws/relay_aws_test.go index 92745ff..d028944 100644 --- a/new-api/relay/channel/aws/relay_aws_test.go +++ b/heicode/relay/channel/aws/relay_aws_test.go @@ -6,8 +6,8 @@ import ( "net/http/httptest" "testing" - "github.com/QuantumNous/new-api/common" - relaycommon "github.com/QuantumNous/new-api/relay/common" + "github.com/heicode/manager/common" + relaycommon "github.com/heicode/manager/relay/common" "github.com/aws/aws-sdk-go-v2/service/bedrockruntime" "github.com/gin-gonic/gin" "github.com/stretchr/testify/require" diff --git a/new-api/relay/channel/baidu/adaptor.go b/heicode/relay/channel/baidu/adaptor.go similarity index 95% rename from new-api/relay/channel/baidu/adaptor.go rename to heicode/relay/channel/baidu/adaptor.go index b8b4735..a9bab5f 100644 --- a/new-api/relay/channel/baidu/adaptor.go +++ b/heicode/relay/channel/baidu/adaptor.go @@ -7,11 +7,11 @@ import ( "net/http" "strings" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/relay/channel" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/relay/constant" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/relay/channel" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/relay/constant" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/channel/baidu/constants.go b/heicode/relay/channel/baidu/constants.go similarity index 100% rename from new-api/relay/channel/baidu/constants.go rename to heicode/relay/channel/baidu/constants.go diff --git a/new-api/relay/channel/baidu/dto.go b/heicode/relay/channel/baidu/dto.go similarity index 98% rename from new-api/relay/channel/baidu/dto.go rename to heicode/relay/channel/baidu/dto.go index 4fa73f8..9cf93a9 100644 --- a/new-api/relay/channel/baidu/dto.go +++ b/heicode/relay/channel/baidu/dto.go @@ -4,7 +4,7 @@ import ( "encoding/json" "time" - "github.com/QuantumNous/new-api/dto" + "github.com/heicode/manager/dto" ) type BaiduMessage struct { diff --git a/new-api/relay/channel/baidu/relay-baidu.go b/heicode/relay/channel/baidu/relay-baidu.go similarity index 96% rename from new-api/relay/channel/baidu/relay-baidu.go rename to heicode/relay/channel/baidu/relay-baidu.go index a76d768..0c35639 100644 --- a/new-api/relay/channel/baidu/relay-baidu.go +++ b/heicode/relay/channel/baidu/relay-baidu.go @@ -10,13 +10,13 @@ import ( "sync" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/relay/helper" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/relay/helper" + "github.com/heicode/manager/service" + "github.com/heicode/manager/types" "github.com/samber/lo" "github.com/gin-gonic/gin" diff --git a/new-api/relay/channel/baidu_v2/adaptor.go b/heicode/relay/channel/baidu_v2/adaptor.go similarity index 93% rename from new-api/relay/channel/baidu_v2/adaptor.go rename to heicode/relay/channel/baidu_v2/adaptor.go index 94091e3..8f85c35 100644 --- a/new-api/relay/channel/baidu_v2/adaptor.go +++ b/heicode/relay/channel/baidu_v2/adaptor.go @@ -7,12 +7,12 @@ import ( "net/http" "strings" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/relay/channel" - "github.com/QuantumNous/new-api/relay/channel/openai" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/relay/constant" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/relay/channel" + "github.com/heicode/manager/relay/channel/openai" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/relay/constant" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/channel/baidu_v2/constants.go b/heicode/relay/channel/baidu_v2/constants.go similarity index 100% rename from new-api/relay/channel/baidu_v2/constants.go rename to heicode/relay/channel/baidu_v2/constants.go diff --git a/new-api/relay/channel/claude/adaptor.go b/heicode/relay/channel/claude/adaptor.go similarity index 93% rename from new-api/relay/channel/claude/adaptor.go rename to heicode/relay/channel/claude/adaptor.go index 6daf5b6..fd26773 100644 --- a/new-api/relay/channel/claude/adaptor.go +++ b/heicode/relay/channel/claude/adaptor.go @@ -7,11 +7,11 @@ import ( "net/http" "net/url" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/relay/channel" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/setting/model_setting" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/relay/channel" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/setting/model_setting" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/channel/claude/constants.go b/heicode/relay/channel/claude/constants.go similarity index 100% rename from new-api/relay/channel/claude/constants.go rename to heicode/relay/channel/claude/constants.go diff --git a/new-api/relay/channel/claude/dto.go b/heicode/relay/channel/claude/dto.go similarity index 100% rename from new-api/relay/channel/claude/dto.go rename to heicode/relay/channel/claude/dto.go diff --git a/new-api/relay/channel/claude/message_delta_usage_patch_test.go b/heicode/relay/channel/claude/message_delta_usage_patch_test.go similarity index 97% rename from new-api/relay/channel/claude/message_delta_usage_patch_test.go rename to heicode/relay/channel/claude/message_delta_usage_patch_test.go index 42c2c70..9561feb 100644 --- a/new-api/relay/channel/claude/message_delta_usage_patch_test.go +++ b/heicode/relay/channel/claude/message_delta_usage_patch_test.go @@ -3,9 +3,9 @@ package claude import ( "testing" - "github.com/QuantumNous/new-api/dto" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/setting/model_setting" + "github.com/heicode/manager/dto" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/setting/model_setting" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "github.com/tidwall/gjson" diff --git a/new-api/relay/channel/claude/relay-claude.go b/heicode/relay/channel/claude/relay-claude.go similarity index 98% rename from new-api/relay/channel/claude/relay-claude.go rename to heicode/relay/channel/claude/relay-claude.go index e177e56..4ef4307 100644 --- a/new-api/relay/channel/claude/relay-claude.go +++ b/heicode/relay/channel/claude/relay-claude.go @@ -7,18 +7,18 @@ import ( "net/http" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/logger" - "github.com/QuantumNous/new-api/relay/channel/openrouter" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/relay/helper" - "github.com/QuantumNous/new-api/relay/reasonmap" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/setting/model_setting" - "github.com/QuantumNous/new-api/setting/reasoning" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/logger" + "github.com/heicode/manager/relay/channel/openrouter" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/relay/helper" + "github.com/heicode/manager/relay/reasonmap" + "github.com/heicode/manager/service" + "github.com/heicode/manager/setting/model_setting" + "github.com/heicode/manager/setting/reasoning" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" "github.com/tidwall/gjson" diff --git a/new-api/relay/channel/claude/relay_claude_test.go b/heicode/relay/channel/claude/relay_claude_test.go similarity index 99% rename from new-api/relay/channel/claude/relay_claude_test.go rename to heicode/relay/channel/claude/relay_claude_test.go index fdc7b38..69a61a3 100644 --- a/new-api/relay/channel/claude/relay_claude_test.go +++ b/heicode/relay/channel/claude/relay_claude_test.go @@ -5,7 +5,7 @@ import ( "strings" "testing" - "github.com/QuantumNous/new-api/dto" + "github.com/heicode/manager/dto" "github.com/stretchr/testify/require" ) diff --git a/new-api/relay/channel/cloudflare/adaptor.go b/heicode/relay/channel/cloudflare/adaptor.go similarity index 93% rename from new-api/relay/channel/cloudflare/adaptor.go rename to heicode/relay/channel/cloudflare/adaptor.go index af34462..f81d25b 100644 --- a/new-api/relay/channel/cloudflare/adaptor.go +++ b/heicode/relay/channel/cloudflare/adaptor.go @@ -7,12 +7,12 @@ import ( "io" "net/http" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/relay/channel" - "github.com/QuantumNous/new-api/relay/channel/openai" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/relay/constant" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/relay/channel" + "github.com/heicode/manager/relay/channel/openai" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/relay/constant" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/channel/cloudflare/constant.go b/heicode/relay/channel/cloudflare/constant.go similarity index 100% rename from new-api/relay/channel/cloudflare/constant.go rename to heicode/relay/channel/cloudflare/constant.go diff --git a/new-api/relay/channel/cloudflare/dto.go b/heicode/relay/channel/cloudflare/dto.go similarity index 92% rename from new-api/relay/channel/cloudflare/dto.go rename to heicode/relay/channel/cloudflare/dto.go index 7dcb672..86e0385 100644 --- a/new-api/relay/channel/cloudflare/dto.go +++ b/heicode/relay/channel/cloudflare/dto.go @@ -1,6 +1,6 @@ package cloudflare -import "github.com/QuantumNous/new-api/dto" +import "github.com/heicode/manager/dto" type CfRequest struct { Messages []dto.Message `json:"messages,omitempty"` diff --git a/new-api/relay/channel/cloudflare/relay_cloudflare.go b/heicode/relay/channel/cloudflare/relay_cloudflare.go similarity index 93% rename from new-api/relay/channel/cloudflare/relay_cloudflare.go rename to heicode/relay/channel/cloudflare/relay_cloudflare.go index a543c8f..49b9b81 100644 --- a/new-api/relay/channel/cloudflare/relay_cloudflare.go +++ b/heicode/relay/channel/cloudflare/relay_cloudflare.go @@ -8,12 +8,12 @@ import ( "strings" "time" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/logger" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/relay/helper" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/logger" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/relay/helper" + "github.com/heicode/manager/service" + "github.com/heicode/manager/types" "github.com/samber/lo" "github.com/gin-gonic/gin" diff --git a/new-api/relay/channel/codex/adaptor.go b/heicode/relay/channel/codex/adaptor.go similarity index 94% rename from new-api/relay/channel/codex/adaptor.go rename to heicode/relay/channel/codex/adaptor.go index ef4d4fa..8f9fe99 100644 --- a/new-api/relay/channel/codex/adaptor.go +++ b/heicode/relay/channel/codex/adaptor.go @@ -7,13 +7,13 @@ import ( "net/http" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/relay/channel" - "github.com/QuantumNous/new-api/relay/channel/openai" - relaycommon "github.com/QuantumNous/new-api/relay/common" - relayconstant "github.com/QuantumNous/new-api/relay/constant" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/relay/channel" + "github.com/heicode/manager/relay/channel/openai" + relaycommon "github.com/heicode/manager/relay/common" + relayconstant "github.com/heicode/manager/relay/constant" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/channel/codex/constants.go b/heicode/relay/channel/codex/constants.go similarity index 92% rename from new-api/relay/channel/codex/constants.go rename to heicode/relay/channel/codex/constants.go index 5233393..b0fbf7e 100644 --- a/new-api/relay/channel/codex/constants.go +++ b/heicode/relay/channel/codex/constants.go @@ -1,7 +1,7 @@ package codex import ( - "github.com/QuantumNous/new-api/setting/ratio_setting" + "github.com/heicode/manager/setting/ratio_setting" "github.com/samber/lo" ) diff --git a/new-api/relay/channel/codex/oauth_key.go b/heicode/relay/channel/codex/oauth_key.go similarity index 94% rename from new-api/relay/channel/codex/oauth_key.go rename to heicode/relay/channel/codex/oauth_key.go index bf143f8..24bf15d 100644 --- a/new-api/relay/channel/codex/oauth_key.go +++ b/heicode/relay/channel/codex/oauth_key.go @@ -3,7 +3,7 @@ package codex import ( "errors" - "github.com/QuantumNous/new-api/common" + "github.com/heicode/manager/common" ) type OAuthKey struct { diff --git a/new-api/relay/channel/cohere/adaptor.go b/heicode/relay/channel/cohere/adaptor.go similarity index 92% rename from new-api/relay/channel/cohere/adaptor.go rename to heicode/relay/channel/cohere/adaptor.go index 664eb67..20e9746 100644 --- a/new-api/relay/channel/cohere/adaptor.go +++ b/heicode/relay/channel/cohere/adaptor.go @@ -6,11 +6,11 @@ import ( "io" "net/http" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/relay/channel" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/relay/constant" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/relay/channel" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/relay/constant" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/channel/cohere/constant.go b/heicode/relay/channel/cohere/constant.go similarity index 100% rename from new-api/relay/channel/cohere/constant.go rename to heicode/relay/channel/cohere/constant.go diff --git a/new-api/relay/channel/cohere/dto.go b/heicode/relay/channel/cohere/dto.go similarity index 97% rename from new-api/relay/channel/cohere/dto.go rename to heicode/relay/channel/cohere/dto.go index 2ab6385..c230b94 100644 --- a/new-api/relay/channel/cohere/dto.go +++ b/heicode/relay/channel/cohere/dto.go @@ -1,6 +1,6 @@ package cohere -import "github.com/QuantumNous/new-api/dto" +import "github.com/heicode/manager/dto" type CohereRequest struct { Model string `json:"model"` diff --git a/new-api/relay/channel/cohere/relay-cohere.go b/heicode/relay/channel/cohere/relay-cohere.go similarity index 96% rename from new-api/relay/channel/cohere/relay-cohere.go rename to heicode/relay/channel/cohere/relay-cohere.go index c205e10..47f0f5a 100644 --- a/new-api/relay/channel/cohere/relay-cohere.go +++ b/heicode/relay/channel/cohere/relay-cohere.go @@ -8,12 +8,12 @@ import ( "strings" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/dto" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/relay/helper" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/dto" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/relay/helper" + "github.com/heicode/manager/service" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" "github.com/samber/lo" diff --git a/new-api/relay/channel/coze/adaptor.go b/heicode/relay/channel/coze/adaptor.go similarity index 95% rename from new-api/relay/channel/coze/adaptor.go rename to heicode/relay/channel/coze/adaptor.go index 30f229a..1276fae 100644 --- a/new-api/relay/channel/coze/adaptor.go +++ b/heicode/relay/channel/coze/adaptor.go @@ -8,10 +8,10 @@ import ( "net/http" "time" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/relay/channel" - "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/relay/channel" + "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/channel/coze/constants.go b/heicode/relay/channel/coze/constants.go similarity index 100% rename from new-api/relay/channel/coze/constants.go rename to heicode/relay/channel/coze/constants.go diff --git a/new-api/relay/channel/coze/dto.go b/heicode/relay/channel/coze/dto.go similarity index 100% rename from new-api/relay/channel/coze/dto.go rename to heicode/relay/channel/coze/dto.go diff --git a/new-api/relay/channel/coze/relay-coze.go b/heicode/relay/channel/coze/relay-coze.go similarity index 97% rename from new-api/relay/channel/coze/relay-coze.go rename to heicode/relay/channel/coze/relay-coze.go index 69ebd8a..8457b22 100644 --- a/new-api/relay/channel/coze/relay-coze.go +++ b/heicode/relay/channel/coze/relay-coze.go @@ -9,12 +9,12 @@ import ( "net/http" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/dto" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/relay/helper" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/dto" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/relay/helper" + "github.com/heicode/manager/service" + "github.com/heicode/manager/types" "github.com/samber/lo" "github.com/gin-gonic/gin" diff --git a/new-api/relay/channel/deepseek/adaptor.go b/heicode/relay/channel/deepseek/adaptor.go similarity index 92% rename from new-api/relay/channel/deepseek/adaptor.go rename to heicode/relay/channel/deepseek/adaptor.go index 60eaf22..fd13420 100644 --- a/new-api/relay/channel/deepseek/adaptor.go +++ b/heicode/relay/channel/deepseek/adaptor.go @@ -7,15 +7,15 @@ import ( "net/http" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/relay/channel" - "github.com/QuantumNous/new-api/relay/channel/claude" - "github.com/QuantumNous/new-api/relay/channel/openai" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/relay/constant" - "github.com/QuantumNous/new-api/setting/reasoning" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/relay/channel" + "github.com/heicode/manager/relay/channel/claude" + "github.com/heicode/manager/relay/channel/openai" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/relay/constant" + "github.com/heicode/manager/setting/reasoning" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/channel/deepseek/constants.go b/heicode/relay/channel/deepseek/constants.go similarity index 100% rename from new-api/relay/channel/deepseek/constants.go rename to heicode/relay/channel/deepseek/constants.go diff --git a/new-api/relay/channel/dify/adaptor.go b/heicode/relay/channel/dify/adaptor.go similarity index 94% rename from new-api/relay/channel/dify/adaptor.go rename to heicode/relay/channel/dify/adaptor.go index 4ffee3e..a7e3bde 100644 --- a/new-api/relay/channel/dify/adaptor.go +++ b/heicode/relay/channel/dify/adaptor.go @@ -6,10 +6,10 @@ import ( "io" "net/http" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/relay/channel" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/relay/channel" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/channel/dify/constants.go b/heicode/relay/channel/dify/constants.go similarity index 100% rename from new-api/relay/channel/dify/constants.go rename to heicode/relay/channel/dify/constants.go diff --git a/new-api/relay/channel/dify/dto.go b/heicode/relay/channel/dify/dto.go similarity index 97% rename from new-api/relay/channel/dify/dto.go rename to heicode/relay/channel/dify/dto.go index b4029a0..8b0bce7 100644 --- a/new-api/relay/channel/dify/dto.go +++ b/heicode/relay/channel/dify/dto.go @@ -1,7 +1,7 @@ package dify import ( - "github.com/QuantumNous/new-api/dto" + "github.com/heicode/manager/dto" ) type DifyChatRequest struct { diff --git a/new-api/relay/channel/dify/relay-dify.go b/heicode/relay/channel/dify/relay-dify.go similarity index 96% rename from new-api/relay/channel/dify/relay-dify.go rename to heicode/relay/channel/dify/relay-dify.go index 80094f8..52ca0cb 100644 --- a/new-api/relay/channel/dify/relay-dify.go +++ b/heicode/relay/channel/dify/relay-dify.go @@ -11,13 +11,13 @@ import ( "os" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/relay/helper" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/relay/helper" + "github.com/heicode/manager/service" + "github.com/heicode/manager/types" "github.com/samber/lo" "github.com/gin-gonic/gin" diff --git a/new-api/relay/channel/gemini/adaptor.go b/heicode/relay/channel/gemini/adaptor.go similarity index 95% rename from new-api/relay/channel/gemini/adaptor.go rename to heicode/relay/channel/gemini/adaptor.go index 680c4ee..62e8e91 100644 --- a/new-api/relay/channel/gemini/adaptor.go +++ b/heicode/relay/channel/gemini/adaptor.go @@ -7,14 +7,14 @@ import ( "net/http" "strings" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/relay/channel" - "github.com/QuantumNous/new-api/relay/channel/openai" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/relay/constant" - "github.com/QuantumNous/new-api/setting/model_setting" - "github.com/QuantumNous/new-api/setting/reasoning" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/relay/channel" + "github.com/heicode/manager/relay/channel/openai" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/relay/constant" + "github.com/heicode/manager/setting/model_setting" + "github.com/heicode/manager/setting/reasoning" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" "github.com/samber/lo" diff --git a/new-api/relay/channel/gemini/constant.go b/heicode/relay/channel/gemini/constant.go similarity index 100% rename from new-api/relay/channel/gemini/constant.go rename to heicode/relay/channel/gemini/constant.go diff --git a/new-api/relay/channel/gemini/relay-gemini-native.go b/heicode/relay/channel/gemini/relay-gemini-native.go similarity index 89% rename from new-api/relay/channel/gemini/relay-gemini-native.go rename to heicode/relay/channel/gemini/relay-gemini-native.go index 1a434a4..5d65f18 100644 --- a/new-api/relay/channel/gemini/relay-gemini-native.go +++ b/heicode/relay/channel/gemini/relay-gemini-native.go @@ -5,14 +5,14 @@ import ( "io" "net/http" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/logger" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/relay/helper" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/logger" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/relay/helper" + "github.com/heicode/manager/service" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/channel/gemini/relay-gemini.go b/heicode/relay/channel/gemini/relay-gemini.go similarity index 99% rename from new-api/relay/channel/gemini/relay-gemini.go rename to heicode/relay/channel/gemini/relay-gemini.go index 355c75d..4a1b447 100644 --- a/new-api/relay/channel/gemini/relay-gemini.go +++ b/heicode/relay/channel/gemini/relay-gemini.go @@ -12,17 +12,17 @@ import ( "time" "unicode/utf8" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/logger" - "github.com/QuantumNous/new-api/relay/channel/openai" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/relay/helper" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/setting/model_setting" - "github.com/QuantumNous/new-api/setting/reasoning" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/logger" + "github.com/heicode/manager/relay/channel/openai" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/relay/helper" + "github.com/heicode/manager/service" + "github.com/heicode/manager/setting/model_setting" + "github.com/heicode/manager/setting/reasoning" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" "github.com/samber/lo" ) diff --git a/new-api/relay/channel/gemini/relay_gemini_usage_test.go b/heicode/relay/channel/gemini/relay_gemini_usage_test.go similarity index 97% rename from new-api/relay/channel/gemini/relay_gemini_usage_test.go rename to heicode/relay/channel/gemini/relay_gemini_usage_test.go index c8f9f83..18ce33f 100644 --- a/new-api/relay/channel/gemini/relay_gemini_usage_test.go +++ b/heicode/relay/channel/gemini/relay_gemini_usage_test.go @@ -7,11 +7,11 @@ import ( "net/http/httptest" "testing" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" "github.com/stretchr/testify/require" ) diff --git a/new-api/relay/channel/jimeng/adaptor.go b/heicode/relay/channel/jimeng/adaptor.go similarity index 94% rename from new-api/relay/channel/jimeng/adaptor.go rename to heicode/relay/channel/jimeng/adaptor.go index 1938ac1..e9bddda 100644 --- a/new-api/relay/channel/jimeng/adaptor.go +++ b/heicode/relay/channel/jimeng/adaptor.go @@ -7,12 +7,12 @@ import ( "io" "net/http" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/relay/channel" - "github.com/QuantumNous/new-api/relay/channel/openai" - relaycommon "github.com/QuantumNous/new-api/relay/common" - relayconstant "github.com/QuantumNous/new-api/relay/constant" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/relay/channel" + "github.com/heicode/manager/relay/channel/openai" + relaycommon "github.com/heicode/manager/relay/common" + relayconstant "github.com/heicode/manager/relay/constant" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/channel/jimeng/constants.go b/heicode/relay/channel/jimeng/constants.go similarity index 100% rename from new-api/relay/channel/jimeng/constants.go rename to heicode/relay/channel/jimeng/constants.go diff --git a/new-api/relay/channel/jimeng/image.go b/heicode/relay/channel/jimeng/image.go similarity index 93% rename from new-api/relay/channel/jimeng/image.go rename to heicode/relay/channel/jimeng/image.go index e422e06..3ab22a4 100644 --- a/new-api/relay/channel/jimeng/image.go +++ b/heicode/relay/channel/jimeng/image.go @@ -6,10 +6,10 @@ import ( "io" "net/http" - "github.com/QuantumNous/new-api/dto" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/dto" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/service" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/channel/jimeng/sign.go b/heicode/relay/channel/jimeng/sign.go similarity index 99% rename from new-api/relay/channel/jimeng/sign.go rename to heicode/relay/channel/jimeng/sign.go index 7c67531..82a5820 100644 --- a/new-api/relay/channel/jimeng/sign.go +++ b/heicode/relay/channel/jimeng/sign.go @@ -15,7 +15,7 @@ import ( "strings" "time" - "github.com/QuantumNous/new-api/logger" + "github.com/heicode/manager/logger" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/channel/jina/adaptor.go b/heicode/relay/channel/jina/adaptor.go similarity index 89% rename from new-api/relay/channel/jina/adaptor.go rename to heicode/relay/channel/jina/adaptor.go index 3f2d01d..44c8796 100644 --- a/new-api/relay/channel/jina/adaptor.go +++ b/heicode/relay/channel/jina/adaptor.go @@ -6,13 +6,13 @@ import ( "io" "net/http" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/relay/channel" - "github.com/QuantumNous/new-api/relay/channel/openai" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/relay/common_handler" - "github.com/QuantumNous/new-api/relay/constant" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/relay/channel" + "github.com/heicode/manager/relay/channel/openai" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/relay/common_handler" + "github.com/heicode/manager/relay/constant" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/channel/jina/constant.go b/heicode/relay/channel/jina/constant.go similarity index 100% rename from new-api/relay/channel/jina/constant.go rename to heicode/relay/channel/jina/constant.go diff --git a/new-api/relay/channel/jina/relay-jina.go b/heicode/relay/channel/jina/relay-jina.go similarity index 100% rename from new-api/relay/channel/jina/relay-jina.go rename to heicode/relay/channel/jina/relay-jina.go diff --git a/new-api/relay/channel/lingyiwanwu/constrants.go b/heicode/relay/channel/lingyiwanwu/constrants.go similarity index 100% rename from new-api/relay/channel/lingyiwanwu/constrants.go rename to heicode/relay/channel/lingyiwanwu/constrants.go diff --git a/new-api/relay/channel/minimax/adaptor.go b/heicode/relay/channel/minimax/adaptor.go similarity index 92% rename from new-api/relay/channel/minimax/adaptor.go rename to heicode/relay/channel/minimax/adaptor.go index 56d3a1e..874fb35 100644 --- a/new-api/relay/channel/minimax/adaptor.go +++ b/heicode/relay/channel/minimax/adaptor.go @@ -8,13 +8,13 @@ import ( "io" "net/http" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/relay/channel" - "github.com/QuantumNous/new-api/relay/channel/claude" - "github.com/QuantumNous/new-api/relay/channel/openai" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/relay/constant" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/relay/channel" + "github.com/heicode/manager/relay/channel/claude" + "github.com/heicode/manager/relay/channel/openai" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/relay/constant" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" "github.com/samber/lo" diff --git a/new-api/relay/channel/minimax/adaptor_test.go b/heicode/relay/channel/minimax/adaptor_test.go similarity index 95% rename from new-api/relay/channel/minimax/adaptor_test.go rename to heicode/relay/channel/minimax/adaptor_test.go index 46d57c1..6373905 100644 --- a/new-api/relay/channel/minimax/adaptor_test.go +++ b/heicode/relay/channel/minimax/adaptor_test.go @@ -8,9 +8,9 @@ import ( "testing" "time" - "github.com/QuantumNous/new-api/dto" - relaycommon "github.com/QuantumNous/new-api/relay/common" - relayconstant "github.com/QuantumNous/new-api/relay/constant" + "github.com/heicode/manager/dto" + relaycommon "github.com/heicode/manager/relay/common" + relayconstant "github.com/heicode/manager/relay/constant" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/channel/minimax/constants.go b/heicode/relay/channel/minimax/constants.go similarity index 100% rename from new-api/relay/channel/minimax/constants.go rename to heicode/relay/channel/minimax/constants.go diff --git a/new-api/relay/channel/minimax/image.go b/heicode/relay/channel/minimax/image.go similarity index 96% rename from new-api/relay/channel/minimax/image.go rename to heicode/relay/channel/minimax/image.go index 9b316bd..5bf97fd 100644 --- a/new-api/relay/channel/minimax/image.go +++ b/heicode/relay/channel/minimax/image.go @@ -7,11 +7,11 @@ import ( "strconv" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/dto" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/dto" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/service" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/channel/minimax/relay-minimax.go b/heicode/relay/channel/minimax/relay-minimax.go similarity index 79% rename from new-api/relay/channel/minimax/relay-minimax.go rename to heicode/relay/channel/minimax/relay-minimax.go index a1a0515..6c56c81 100644 --- a/new-api/relay/channel/minimax/relay-minimax.go +++ b/heicode/relay/channel/minimax/relay-minimax.go @@ -3,10 +3,10 @@ package minimax import ( "fmt" - channelconstant "github.com/QuantumNous/new-api/constant" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/relay/constant" - "github.com/QuantumNous/new-api/types" + channelconstant "github.com/heicode/manager/constant" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/relay/constant" + "github.com/heicode/manager/types" ) func GetRequestURL(info *relaycommon.RelayInfo) (string, error) { diff --git a/new-api/relay/channel/minimax/tts.go b/heicode/relay/channel/minimax/tts.go similarity index 97% rename from new-api/relay/channel/minimax/tts.go rename to heicode/relay/channel/minimax/tts.go index 8900f5a..76396ad 100644 --- a/new-api/relay/channel/minimax/tts.go +++ b/heicode/relay/channel/minimax/tts.go @@ -9,9 +9,9 @@ import ( "net/http" "strings" - "github.com/QuantumNous/new-api/dto" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/dto" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/channel/mistral/adaptor.go b/heicode/relay/channel/mistral/adaptor.go similarity index 91% rename from new-api/relay/channel/mistral/adaptor.go rename to heicode/relay/channel/mistral/adaptor.go index 88d72e0..f84afc2 100644 --- a/new-api/relay/channel/mistral/adaptor.go +++ b/heicode/relay/channel/mistral/adaptor.go @@ -5,11 +5,11 @@ import ( "io" "net/http" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/relay/channel" - "github.com/QuantumNous/new-api/relay/channel/openai" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/relay/channel" + "github.com/heicode/manager/relay/channel/openai" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/channel/mistral/constants.go b/heicode/relay/channel/mistral/constants.go similarity index 100% rename from new-api/relay/channel/mistral/constants.go rename to heicode/relay/channel/mistral/constants.go diff --git a/new-api/relay/channel/mistral/text.go b/heicode/relay/channel/mistral/text.go similarity index 96% rename from new-api/relay/channel/mistral/text.go rename to heicode/relay/channel/mistral/text.go index d43bc36..c1823ce 100644 --- a/new-api/relay/channel/mistral/text.go +++ b/heicode/relay/channel/mistral/text.go @@ -3,8 +3,8 @@ package mistral import ( "regexp" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/dto" + "github.com/heicode/manager/common" + "github.com/heicode/manager/dto" ) var mistralToolCallIdRegexp = regexp.MustCompile("^[a-zA-Z0-9]{9}$") diff --git a/new-api/relay/channel/mokaai/adaptor.go b/heicode/relay/channel/mokaai/adaptor.go similarity index 92% rename from new-api/relay/channel/mokaai/adaptor.go rename to heicode/relay/channel/mokaai/adaptor.go index f50c1e6..e1bd21b 100644 --- a/new-api/relay/channel/mokaai/adaptor.go +++ b/heicode/relay/channel/mokaai/adaptor.go @@ -7,11 +7,11 @@ import ( "net/http" "strings" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/relay/channel" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/relay/constant" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/relay/channel" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/relay/constant" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/channel/mokaai/constants.go b/heicode/relay/channel/mokaai/constants.go similarity index 100% rename from new-api/relay/channel/mokaai/constants.go rename to heicode/relay/channel/mokaai/constants.go diff --git a/new-api/relay/channel/mokaai/relay-mokaai.go b/heicode/relay/channel/mokaai/relay-mokaai.go similarity index 91% rename from new-api/relay/channel/mokaai/relay-mokaai.go rename to heicode/relay/channel/mokaai/relay-mokaai.go index 4949ed6..27bc3ec 100644 --- a/new-api/relay/channel/mokaai/relay-mokaai.go +++ b/heicode/relay/channel/mokaai/relay-mokaai.go @@ -5,11 +5,11 @@ import ( "io" "net/http" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/dto" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/dto" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/service" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/channel/moonshot/adaptor.go b/heicode/relay/channel/moonshot/adaptor.go similarity index 90% rename from new-api/relay/channel/moonshot/adaptor.go rename to heicode/relay/channel/moonshot/adaptor.go index c2f6ee4..c7de296 100644 --- a/new-api/relay/channel/moonshot/adaptor.go +++ b/heicode/relay/channel/moonshot/adaptor.go @@ -6,14 +6,14 @@ import ( "io" "net/http" - channelconstant "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/relay/channel" - "github.com/QuantumNous/new-api/relay/channel/claude" - "github.com/QuantumNous/new-api/relay/channel/openai" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/relay/constant" - "github.com/QuantumNous/new-api/types" + channelconstant "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/relay/channel" + "github.com/heicode/manager/relay/channel/claude" + "github.com/heicode/manager/relay/channel/openai" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/relay/constant" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/channel/moonshot/constants.go b/heicode/relay/channel/moonshot/constants.go similarity index 100% rename from new-api/relay/channel/moonshot/constants.go rename to heicode/relay/channel/moonshot/constants.go diff --git a/new-api/relay/channel/ollama/adaptor.go b/heicode/relay/channel/ollama/adaptor.go similarity index 91% rename from new-api/relay/channel/ollama/adaptor.go rename to heicode/relay/channel/ollama/adaptor.go index a3013e2..e158ad0 100644 --- a/new-api/relay/channel/ollama/adaptor.go +++ b/heicode/relay/channel/ollama/adaptor.go @@ -6,12 +6,12 @@ import ( "net/http" "strings" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/relay/channel" - "github.com/QuantumNous/new-api/relay/channel/openai" - relaycommon "github.com/QuantumNous/new-api/relay/common" - relayconstant "github.com/QuantumNous/new-api/relay/constant" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/relay/channel" + "github.com/heicode/manager/relay/channel/openai" + relaycommon "github.com/heicode/manager/relay/common" + relayconstant "github.com/heicode/manager/relay/constant" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/channel/ollama/constants.go b/heicode/relay/channel/ollama/constants.go similarity index 100% rename from new-api/relay/channel/ollama/constants.go rename to heicode/relay/channel/ollama/constants.go diff --git a/new-api/relay/channel/ollama/dto.go b/heicode/relay/channel/ollama/dto.go similarity index 100% rename from new-api/relay/channel/ollama/dto.go rename to heicode/relay/channel/ollama/dto.go diff --git a/new-api/relay/channel/ollama/relay-ollama.go b/heicode/relay/channel/ollama/relay-ollama.go similarity index 98% rename from new-api/relay/channel/ollama/relay-ollama.go rename to heicode/relay/channel/ollama/relay-ollama.go index 975c244..8e1e85f 100644 --- a/new-api/relay/channel/ollama/relay-ollama.go +++ b/heicode/relay/channel/ollama/relay-ollama.go @@ -9,11 +9,11 @@ import ( "strings" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/dto" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/dto" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/service" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" "github.com/samber/lo" diff --git a/new-api/relay/channel/ollama/stream.go b/heicode/relay/channel/ollama/stream.go similarity index 96% rename from new-api/relay/channel/ollama/stream.go rename to heicode/relay/channel/ollama/stream.go index 43e024d..d25ffbe 100644 --- a/new-api/relay/channel/ollama/stream.go +++ b/heicode/relay/channel/ollama/stream.go @@ -9,13 +9,13 @@ import ( "strings" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/logger" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/relay/helper" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/logger" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/relay/helper" + "github.com/heicode/manager/service" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/channel/openai/adaptor.go b/heicode/relay/channel/openai/adaptor.go similarity index 96% rename from new-api/relay/channel/openai/adaptor.go rename to heicode/relay/channel/openai/adaptor.go index 3fd8d76..c356a0d 100644 --- a/new-api/relay/channel/openai/adaptor.go +++ b/heicode/relay/channel/openai/adaptor.go @@ -12,24 +12,24 @@ import ( "path/filepath" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/logger" - "github.com/QuantumNous/new-api/relay/channel" - "github.com/QuantumNous/new-api/relay/channel/ai360" - "github.com/QuantumNous/new-api/relay/channel/lingyiwanwu" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/logger" + "github.com/heicode/manager/relay/channel" + "github.com/heicode/manager/relay/channel/ai360" + "github.com/heicode/manager/relay/channel/lingyiwanwu" - //"github.com/QuantumNous/new-api/relay/channel/minimax" - "github.com/QuantumNous/new-api/relay/channel/openrouter" - "github.com/QuantumNous/new-api/relay/channel/xinference" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/relay/common_handler" - relayconstant "github.com/QuantumNous/new-api/relay/constant" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/setting/model_setting" - "github.com/QuantumNous/new-api/setting/reasoning" - "github.com/QuantumNous/new-api/types" + //"github.com/heicode/manager/relay/channel/minimax" + "github.com/heicode/manager/relay/channel/openrouter" + "github.com/heicode/manager/relay/channel/xinference" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/relay/common_handler" + relayconstant "github.com/heicode/manager/relay/constant" + "github.com/heicode/manager/service" + "github.com/heicode/manager/setting/model_setting" + "github.com/heicode/manager/setting/reasoning" + "github.com/heicode/manager/types" "github.com/samber/lo" "github.com/gin-gonic/gin" diff --git a/new-api/relay/channel/openai/audio.go b/heicode/relay/channel/openai/audio.go similarity index 93% rename from new-api/relay/channel/openai/audio.go rename to heicode/relay/channel/openai/audio.go index 3bab3c1..aefb367 100644 --- a/new-api/relay/channel/openai/audio.go +++ b/heicode/relay/channel/openai/audio.go @@ -7,14 +7,14 @@ import ( "math" "net/http" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/logger" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/relay/helper" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/logger" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/relay/helper" + "github.com/heicode/manager/service" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/channel/openai/chat_via_responses.go b/heicode/relay/channel/openai/chat_via_responses.go similarity index 98% rename from new-api/relay/channel/openai/chat_via_responses.go rename to heicode/relay/channel/openai/chat_via_responses.go index 2c07522..7c9eccf 100644 --- a/new-api/relay/channel/openai/chat_via_responses.go +++ b/heicode/relay/channel/openai/chat_via_responses.go @@ -7,13 +7,13 @@ import ( "strings" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/logger" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/relay/helper" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/logger" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/relay/helper" + "github.com/heicode/manager/service" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/channel/openai/constant.go b/heicode/relay/channel/openai/constant.go similarity index 100% rename from new-api/relay/channel/openai/constant.go rename to heicode/relay/channel/openai/constant.go diff --git a/new-api/relay/channel/openai/helper.go b/heicode/relay/channel/openai/helper.go similarity index 95% rename from new-api/relay/channel/openai/helper.go rename to heicode/relay/channel/openai/helper.go index 08811a7..4cbdb74 100644 --- a/new-api/relay/channel/openai/helper.go +++ b/heicode/relay/channel/openai/helper.go @@ -4,14 +4,14 @@ import ( "encoding/json" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/logger" - relaycommon "github.com/QuantumNous/new-api/relay/common" - relayconstant "github.com/QuantumNous/new-api/relay/constant" - "github.com/QuantumNous/new-api/relay/helper" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/logger" + relaycommon "github.com/heicode/manager/relay/common" + relayconstant "github.com/heicode/manager/relay/constant" + "github.com/heicode/manager/relay/helper" + "github.com/heicode/manager/service" + "github.com/heicode/manager/types" "github.com/samber/lo" diff --git a/new-api/relay/channel/openai/relay-openai.go b/heicode/relay/channel/openai/relay-openai.go similarity index 98% rename from new-api/relay/channel/openai/relay-openai.go rename to heicode/relay/channel/openai/relay-openai.go index a857518..b101efb 100644 --- a/new-api/relay/channel/openai/relay-openai.go +++ b/heicode/relay/channel/openai/relay-openai.go @@ -6,16 +6,16 @@ import ( "net/http" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/logger" - "github.com/QuantumNous/new-api/relay/channel/openrouter" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/relay/helper" - "github.com/QuantumNous/new-api/service" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/logger" + "github.com/heicode/manager/relay/channel/openrouter" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/relay/helper" + "github.com/heicode/manager/service" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/types" "github.com/bytedance/gopkg/util/gopool" "github.com/gin-gonic/gin" diff --git a/new-api/relay/channel/openai/relay_responses.go b/heicode/relay/channel/openai/relay_responses.go similarity index 94% rename from new-api/relay/channel/openai/relay_responses.go rename to heicode/relay/channel/openai/relay_responses.go index 2665b8d..afe30b6 100644 --- a/new-api/relay/channel/openai/relay_responses.go +++ b/heicode/relay/channel/openai/relay_responses.go @@ -6,13 +6,13 @@ import ( "net/http" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/logger" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/relay/helper" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/logger" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/relay/helper" + "github.com/heicode/manager/service" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/channel/openai/relay_responses_compact.go b/heicode/relay/channel/openai/relay_responses_compact.go similarity index 88% rename from new-api/relay/channel/openai/relay_responses_compact.go rename to heicode/relay/channel/openai/relay_responses_compact.go index 390de8e..6e40d54 100644 --- a/new-api/relay/channel/openai/relay_responses_compact.go +++ b/heicode/relay/channel/openai/relay_responses_compact.go @@ -4,10 +4,10 @@ import ( "io" "net/http" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/service" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/channel/openrouter/constant.go b/heicode/relay/channel/openrouter/constant.go similarity index 100% rename from new-api/relay/channel/openrouter/constant.go rename to heicode/relay/channel/openrouter/constant.go diff --git a/new-api/relay/channel/openrouter/dto.go b/heicode/relay/channel/openrouter/dto.go similarity index 100% rename from new-api/relay/channel/openrouter/dto.go rename to heicode/relay/channel/openrouter/dto.go diff --git a/new-api/relay/channel/palm/adaptor.go b/heicode/relay/channel/palm/adaptor.go similarity index 92% rename from new-api/relay/channel/palm/adaptor.go rename to heicode/relay/channel/palm/adaptor.go index 3c1302d..c6c66ca 100644 --- a/new-api/relay/channel/palm/adaptor.go +++ b/heicode/relay/channel/palm/adaptor.go @@ -6,11 +6,11 @@ import ( "io" "net/http" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/relay/channel" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/relay/channel" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/service" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/channel/palm/constants.go b/heicode/relay/channel/palm/constants.go similarity index 100% rename from new-api/relay/channel/palm/constants.go rename to heicode/relay/channel/palm/constants.go diff --git a/new-api/relay/channel/palm/dto.go b/heicode/relay/channel/palm/dto.go similarity index 95% rename from new-api/relay/channel/palm/dto.go rename to heicode/relay/channel/palm/dto.go index 47ca3fc..f10bbda 100644 --- a/new-api/relay/channel/palm/dto.go +++ b/heicode/relay/channel/palm/dto.go @@ -1,6 +1,6 @@ package palm -import "github.com/QuantumNous/new-api/dto" +import "github.com/heicode/manager/dto" type PaLMChatMessage struct { Author string `json:"author"` diff --git a/new-api/relay/channel/palm/relay-palm.go b/heicode/relay/channel/palm/relay-palm.go similarity index 93% rename from new-api/relay/channel/palm/relay-palm.go rename to heicode/relay/channel/palm/relay-palm.go index 786ea4c..5643ff8 100644 --- a/new-api/relay/channel/palm/relay-palm.go +++ b/heicode/relay/channel/palm/relay-palm.go @@ -5,13 +5,13 @@ import ( "io" "net/http" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/relay/helper" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/relay/helper" + "github.com/heicode/manager/service" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/channel/perplexity/adaptor.go b/heicode/relay/channel/perplexity/adaptor.go similarity index 90% rename from new-api/relay/channel/perplexity/adaptor.go rename to heicode/relay/channel/perplexity/adaptor.go index 6b03690..de22172 100644 --- a/new-api/relay/channel/perplexity/adaptor.go +++ b/heicode/relay/channel/perplexity/adaptor.go @@ -6,12 +6,12 @@ import ( "io" "net/http" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/relay/channel" - "github.com/QuantumNous/new-api/relay/channel/openai" - relaycommon "github.com/QuantumNous/new-api/relay/common" - relayconstant "github.com/QuantumNous/new-api/relay/constant" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/relay/channel" + "github.com/heicode/manager/relay/channel/openai" + relaycommon "github.com/heicode/manager/relay/common" + relayconstant "github.com/heicode/manager/relay/constant" + "github.com/heicode/manager/types" "github.com/samber/lo" "github.com/gin-gonic/gin" diff --git a/new-api/relay/channel/perplexity/constants.go b/heicode/relay/channel/perplexity/constants.go similarity index 100% rename from new-api/relay/channel/perplexity/constants.go rename to heicode/relay/channel/perplexity/constants.go diff --git a/new-api/relay/channel/perplexity/relay-perplexity.go b/heicode/relay/channel/perplexity/relay-perplexity.go similarity index 96% rename from new-api/relay/channel/perplexity/relay-perplexity.go rename to heicode/relay/channel/perplexity/relay-perplexity.go index 4f5767e..72f1a18 100644 --- a/new-api/relay/channel/perplexity/relay-perplexity.go +++ b/heicode/relay/channel/perplexity/relay-perplexity.go @@ -1,6 +1,6 @@ package perplexity -import "github.com/QuantumNous/new-api/dto" +import "github.com/heicode/manager/dto" func requestOpenAI2Perplexity(request dto.GeneralOpenAIRequest) *dto.GeneralOpenAIRequest { messages := make([]dto.Message, 0, len(request.Messages)) diff --git a/new-api/relay/channel/replicate/adaptor.go b/heicode/relay/channel/replicate/adaptor.go similarity index 97% rename from new-api/relay/channel/replicate/adaptor.go rename to heicode/relay/channel/replicate/adaptor.go index 6735020..1801a77 100644 --- a/new-api/relay/channel/replicate/adaptor.go +++ b/heicode/relay/channel/replicate/adaptor.go @@ -12,14 +12,14 @@ import ( "strconv" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/relay/channel" - relaycommon "github.com/QuantumNous/new-api/relay/common" - relayconstant "github.com/QuantumNous/new-api/relay/constant" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/relay/channel" + relaycommon "github.com/heicode/manager/relay/common" + relayconstant "github.com/heicode/manager/relay/constant" + "github.com/heicode/manager/service" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" "github.com/samber/lo" diff --git a/new-api/relay/channel/replicate/constants.go b/heicode/relay/channel/replicate/constants.go similarity index 100% rename from new-api/relay/channel/replicate/constants.go rename to heicode/relay/channel/replicate/constants.go diff --git a/new-api/relay/channel/replicate/dto.go b/heicode/relay/channel/replicate/dto.go similarity index 100% rename from new-api/relay/channel/replicate/dto.go rename to heicode/relay/channel/replicate/dto.go diff --git a/new-api/relay/channel/siliconflow/adaptor.go b/heicode/relay/channel/siliconflow/adaptor.go similarity index 91% rename from new-api/relay/channel/siliconflow/adaptor.go rename to heicode/relay/channel/siliconflow/adaptor.go index 3e9bee5..4120c94 100644 --- a/new-api/relay/channel/siliconflow/adaptor.go +++ b/heicode/relay/channel/siliconflow/adaptor.go @@ -6,13 +6,13 @@ import ( "io" "net/http" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/relay/channel" - "github.com/QuantumNous/new-api/relay/channel/openai" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/relay/constant" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/relay/channel" + "github.com/heicode/manager/relay/channel/openai" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/relay/constant" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" "github.com/samber/lo" diff --git a/new-api/relay/channel/siliconflow/constant.go b/heicode/relay/channel/siliconflow/constant.go similarity index 100% rename from new-api/relay/channel/siliconflow/constant.go rename to heicode/relay/channel/siliconflow/constant.go diff --git a/new-api/relay/channel/siliconflow/dto.go b/heicode/relay/channel/siliconflow/dto.go similarity index 95% rename from new-api/relay/channel/siliconflow/dto.go rename to heicode/relay/channel/siliconflow/dto.go index 1009751..f6d118b 100644 --- a/new-api/relay/channel/siliconflow/dto.go +++ b/heicode/relay/channel/siliconflow/dto.go @@ -1,6 +1,6 @@ package siliconflow -import "github.com/QuantumNous/new-api/dto" +import "github.com/heicode/manager/dto" type SFTokens struct { InputTokens int `json:"input_tokens"` diff --git a/new-api/relay/channel/siliconflow/relay-siliconflow.go b/heicode/relay/channel/siliconflow/relay-siliconflow.go similarity index 88% rename from new-api/relay/channel/siliconflow/relay-siliconflow.go rename to heicode/relay/channel/siliconflow/relay-siliconflow.go index 421731f..32819f2 100644 --- a/new-api/relay/channel/siliconflow/relay-siliconflow.go +++ b/heicode/relay/channel/siliconflow/relay-siliconflow.go @@ -5,10 +5,10 @@ import ( "io" "net/http" - "github.com/QuantumNous/new-api/dto" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/dto" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/service" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/channel/submodel/adaptor.go b/heicode/relay/channel/submodel/adaptor.go similarity index 92% rename from new-api/relay/channel/submodel/adaptor.go rename to heicode/relay/channel/submodel/adaptor.go index 58b2a3b..fb8a2c2 100644 --- a/new-api/relay/channel/submodel/adaptor.go +++ b/heicode/relay/channel/submodel/adaptor.go @@ -5,11 +5,11 @@ import ( "io" "net/http" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/relay/channel" - "github.com/QuantumNous/new-api/relay/channel/openai" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/relay/channel" + "github.com/heicode/manager/relay/channel/openai" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/channel/submodel/constants.go b/heicode/relay/channel/submodel/constants.go similarity index 100% rename from new-api/relay/channel/submodel/constants.go rename to heicode/relay/channel/submodel/constants.go diff --git a/new-api/relay/channel/task/ali/adaptor.go b/heicode/relay/channel/task/ali/adaptor.go similarity index 97% rename from new-api/relay/channel/task/ali/adaptor.go rename to heicode/relay/channel/task/ali/adaptor.go index 5b6b01d..03f5a27 100644 --- a/new-api/relay/channel/task/ali/adaptor.go +++ b/heicode/relay/channel/task/ali/adaptor.go @@ -8,14 +8,14 @@ import ( "strconv" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/logger" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/relay/channel" - "github.com/QuantumNous/new-api/relay/channel/task/taskcommon" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/service" + "github.com/heicode/manager/common" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/logger" + "github.com/heicode/manager/model" + "github.com/heicode/manager/relay/channel" + "github.com/heicode/manager/relay/channel/task/taskcommon" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/service" "github.com/samber/lo" "github.com/gin-gonic/gin" diff --git a/new-api/relay/channel/task/ali/constants.go b/heicode/relay/channel/task/ali/constants.go similarity index 100% rename from new-api/relay/channel/task/ali/constants.go rename to heicode/relay/channel/task/ali/constants.go diff --git a/new-api/relay/channel/task/doubao/adaptor.go b/heicode/relay/channel/task/doubao/adaptor.go similarity index 96% rename from new-api/relay/channel/task/doubao/adaptor.go rename to heicode/relay/channel/task/doubao/adaptor.go index a6dabb5..a9c9c72 100644 --- a/new-api/relay/channel/task/doubao/adaptor.go +++ b/heicode/relay/channel/task/doubao/adaptor.go @@ -8,15 +8,15 @@ import ( "strconv" "time" - "github.com/QuantumNous/new-api/common" + "github.com/heicode/manager/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/relay/channel" - "github.com/QuantumNous/new-api/relay/channel/task/taskcommon" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/service" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/model" + "github.com/heicode/manager/relay/channel" + "github.com/heicode/manager/relay/channel/task/taskcommon" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/service" "github.com/gin-gonic/gin" "github.com/pkg/errors" diff --git a/new-api/relay/channel/task/doubao/constants.go b/heicode/relay/channel/task/doubao/constants.go similarity index 100% rename from new-api/relay/channel/task/doubao/constants.go rename to heicode/relay/channel/task/doubao/constants.go diff --git a/new-api/relay/channel/task/gemini/adaptor.go b/heicode/relay/channel/task/gemini/adaptor.go similarity index 94% rename from new-api/relay/channel/task/gemini/adaptor.go rename to heicode/relay/channel/task/gemini/adaptor.go index 48aa063..53608c6 100644 --- a/new-api/relay/channel/task/gemini/adaptor.go +++ b/heicode/relay/channel/task/gemini/adaptor.go @@ -9,15 +9,15 @@ import ( "strings" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/relay/channel" - taskcommon "github.com/QuantumNous/new-api/relay/channel/task/taskcommon" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/setting/model_setting" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/model" + "github.com/heicode/manager/relay/channel" + taskcommon "github.com/heicode/manager/relay/channel/task/taskcommon" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/service" + "github.com/heicode/manager/setting/model_setting" "github.com/gin-gonic/gin" "github.com/pkg/errors" ) diff --git a/new-api/relay/channel/task/gemini/billing.go b/heicode/relay/channel/task/gemini/billing.go similarity index 100% rename from new-api/relay/channel/task/gemini/billing.go rename to heicode/relay/channel/task/gemini/billing.go diff --git a/new-api/relay/channel/task/gemini/dto.go b/heicode/relay/channel/task/gemini/dto.go similarity index 100% rename from new-api/relay/channel/task/gemini/dto.go rename to heicode/relay/channel/task/gemini/dto.go diff --git a/new-api/relay/channel/task/gemini/image.go b/heicode/relay/channel/task/gemini/image.go similarity index 95% rename from new-api/relay/channel/task/gemini/image.go rename to heicode/relay/channel/task/gemini/image.go index da11b47..bb784cf 100644 --- a/new-api/relay/channel/task/gemini/image.go +++ b/heicode/relay/channel/task/gemini/image.go @@ -6,8 +6,8 @@ import ( "net/http" "strings" - "github.com/QuantumNous/new-api/constant" - relaycommon "github.com/QuantumNous/new-api/relay/common" + "github.com/heicode/manager/constant" + relaycommon "github.com/heicode/manager/relay/common" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/channel/task/hailuo/adaptor.go b/heicode/relay/channel/task/hailuo/adaptor.go similarity index 95% rename from new-api/relay/channel/task/hailuo/adaptor.go rename to heicode/relay/channel/task/hailuo/adaptor.go index 28b3a97..caf2285 100644 --- a/new-api/relay/channel/task/hailuo/adaptor.go +++ b/heicode/relay/channel/task/hailuo/adaptor.go @@ -9,17 +9,17 @@ import ( "strings" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/model" + "github.com/heicode/manager/common" + "github.com/heicode/manager/model" "github.com/gin-gonic/gin" "github.com/pkg/errors" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/relay/channel" - taskcommon "github.com/QuantumNous/new-api/relay/channel/task/taskcommon" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/service" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/relay/channel" + taskcommon "github.com/heicode/manager/relay/channel/task/taskcommon" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/service" ) // https://platform.minimaxi.com/docs/api-reference/video-generation-intro diff --git a/new-api/relay/channel/task/hailuo/constants.go b/heicode/relay/channel/task/hailuo/constants.go similarity index 100% rename from new-api/relay/channel/task/hailuo/constants.go rename to heicode/relay/channel/task/hailuo/constants.go diff --git a/new-api/relay/channel/task/hailuo/models.go b/heicode/relay/channel/task/hailuo/models.go similarity index 100% rename from new-api/relay/channel/task/hailuo/models.go rename to heicode/relay/channel/task/hailuo/models.go diff --git a/new-api/relay/channel/task/jimeng/adaptor.go b/heicode/relay/channel/task/jimeng/adaptor.go similarity index 97% rename from new-api/relay/channel/task/jimeng/adaptor.go rename to heicode/relay/channel/task/jimeng/adaptor.go index e6211b1..8b034f0 100644 --- a/new-api/relay/channel/task/jimeng/adaptor.go +++ b/heicode/relay/channel/task/jimeng/adaptor.go @@ -14,19 +14,19 @@ import ( "strings" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/model" + "github.com/heicode/manager/common" + "github.com/heicode/manager/model" "github.com/samber/lo" "github.com/gin-gonic/gin" "github.com/pkg/errors" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/relay/channel" - taskcommon "github.com/QuantumNous/new-api/relay/channel/task/taskcommon" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/service" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/relay/channel" + taskcommon "github.com/heicode/manager/relay/channel/task/taskcommon" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/service" ) // ============================ diff --git a/new-api/relay/channel/task/kling/adaptor.go b/heicode/relay/channel/task/kling/adaptor.go similarity index 97% rename from new-api/relay/channel/task/kling/adaptor.go rename to heicode/relay/channel/task/kling/adaptor.go index 413ade0..6592f34 100644 --- a/new-api/relay/channel/task/kling/adaptor.go +++ b/heicode/relay/channel/task/kling/adaptor.go @@ -10,8 +10,8 @@ import ( "strings" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/model" + "github.com/heicode/manager/common" + "github.com/heicode/manager/model" "github.com/samber/lo" @@ -19,12 +19,12 @@ import ( "github.com/golang-jwt/jwt/v5" "github.com/pkg/errors" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/relay/channel" - taskcommon "github.com/QuantumNous/new-api/relay/channel/task/taskcommon" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/service" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/relay/channel" + taskcommon "github.com/heicode/manager/relay/channel/task/taskcommon" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/service" ) // ============================ diff --git a/new-api/relay/channel/task/sora/adaptor.go b/heicode/relay/channel/task/sora/adaptor.go similarity index 96% rename from new-api/relay/channel/task/sora/adaptor.go rename to heicode/relay/channel/task/sora/adaptor.go index e9029aa..66371d6 100644 --- a/new-api/relay/channel/task/sora/adaptor.go +++ b/heicode/relay/channel/task/sora/adaptor.go @@ -10,14 +10,14 @@ import ( "strconv" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/relay/channel" - taskcommon "github.com/QuantumNous/new-api/relay/channel/task/taskcommon" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/service" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/model" + "github.com/heicode/manager/relay/channel" + taskcommon "github.com/heicode/manager/relay/channel/task/taskcommon" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/service" "github.com/gin-gonic/gin" "github.com/pkg/errors" diff --git a/new-api/relay/channel/task/sora/constants.go b/heicode/relay/channel/task/sora/constants.go similarity index 100% rename from new-api/relay/channel/task/sora/constants.go rename to heicode/relay/channel/task/sora/constants.go diff --git a/new-api/relay/channel/task/suno/adaptor.go b/heicode/relay/channel/task/suno/adaptor.go similarity index 93% rename from new-api/relay/channel/task/suno/adaptor.go rename to heicode/relay/channel/task/suno/adaptor.go index 35b5e42..fdcb602 100644 --- a/new-api/relay/channel/task/suno/adaptor.go +++ b/heicode/relay/channel/task/suno/adaptor.go @@ -7,13 +7,13 @@ import ( "net/http" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/relay/channel" - taskcommon "github.com/QuantumNous/new-api/relay/channel/task/taskcommon" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/service" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/relay/channel" + taskcommon "github.com/heicode/manager/relay/channel/task/taskcommon" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/service" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/channel/task/suno/models.go b/heicode/relay/channel/task/suno/models.go similarity index 100% rename from new-api/relay/channel/task/suno/models.go rename to heicode/relay/channel/task/suno/models.go diff --git a/new-api/relay/channel/task/taskcommon/helpers.go b/heicode/relay/channel/task/taskcommon/helpers.go similarity index 93% rename from new-api/relay/channel/task/taskcommon/helpers.go rename to heicode/relay/channel/task/taskcommon/helpers.go index 7d1820c..486ddbd 100644 --- a/new-api/relay/channel/task/taskcommon/helpers.go +++ b/heicode/relay/channel/task/taskcommon/helpers.go @@ -4,10 +4,10 @@ import ( "encoding/base64" "fmt" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/model" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/setting/system_setting" + "github.com/heicode/manager/common" + "github.com/heicode/manager/model" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/setting/system_setting" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/channel/task/vertex/adaptor.go b/heicode/relay/channel/task/vertex/adaptor.go similarity index 96% rename from new-api/relay/channel/task/vertex/adaptor.go rename to heicode/relay/channel/task/vertex/adaptor.go index b76364e..cfc2ed6 100644 --- a/new-api/relay/channel/task/vertex/adaptor.go +++ b/heicode/relay/channel/task/vertex/adaptor.go @@ -9,18 +9,18 @@ import ( "strings" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/model" + "github.com/heicode/manager/common" + "github.com/heicode/manager/model" "github.com/gin-gonic/gin" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/relay/channel" - geminitask "github.com/QuantumNous/new-api/relay/channel/task/gemini" - taskcommon "github.com/QuantumNous/new-api/relay/channel/task/taskcommon" - vertexcore "github.com/QuantumNous/new-api/relay/channel/vertex" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/service" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/relay/channel" + geminitask "github.com/heicode/manager/relay/channel/task/gemini" + taskcommon "github.com/heicode/manager/relay/channel/task/taskcommon" + vertexcore "github.com/heicode/manager/relay/channel/vertex" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/service" ) // ============================ diff --git a/new-api/relay/channel/task/vidu/adaptor.go b/heicode/relay/channel/task/vidu/adaptor.go similarity index 95% rename from new-api/relay/channel/task/vidu/adaptor.go rename to heicode/relay/channel/task/vidu/adaptor.go index 6ae1c18..756eb6c 100644 --- a/new-api/relay/channel/task/vidu/adaptor.go +++ b/heicode/relay/channel/task/vidu/adaptor.go @@ -8,16 +8,16 @@ import ( "strings" "time" - "github.com/QuantumNous/new-api/common" + "github.com/heicode/manager/common" "github.com/gin-gonic/gin" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/relay/channel" - taskcommon "github.com/QuantumNous/new-api/relay/channel/task/taskcommon" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/service" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/model" + "github.com/heicode/manager/relay/channel" + taskcommon "github.com/heicode/manager/relay/channel/task/taskcommon" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/service" "github.com/pkg/errors" ) diff --git a/new-api/relay/channel/tencent/adaptor.go b/heicode/relay/channel/tencent/adaptor.go similarity index 92% rename from new-api/relay/channel/tencent/adaptor.go rename to heicode/relay/channel/tencent/adaptor.go index eb69855..ad21deb 100644 --- a/new-api/relay/channel/tencent/adaptor.go +++ b/heicode/relay/channel/tencent/adaptor.go @@ -8,12 +8,12 @@ import ( "strconv" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/relay/channel" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/relay/channel" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/channel/tencent/constants.go b/heicode/relay/channel/tencent/constants.go similarity index 100% rename from new-api/relay/channel/tencent/constants.go rename to heicode/relay/channel/tencent/constants.go diff --git a/new-api/relay/channel/tencent/dto.go b/heicode/relay/channel/tencent/dto.go similarity index 100% rename from new-api/relay/channel/tencent/dto.go rename to heicode/relay/channel/tencent/dto.go diff --git a/new-api/relay/channel/tencent/relay-tencent.go b/heicode/relay/channel/tencent/relay-tencent.go similarity index 95% rename from new-api/relay/channel/tencent/relay-tencent.go rename to heicode/relay/channel/tencent/relay-tencent.go index 0343f57..6e2a3f0 100644 --- a/new-api/relay/channel/tencent/relay-tencent.go +++ b/heicode/relay/channel/tencent/relay-tencent.go @@ -14,13 +14,13 @@ import ( "strings" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/relay/helper" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/relay/helper" + "github.com/heicode/manager/service" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/channel/vertex/adaptor.go b/heicode/relay/channel/vertex/adaptor.go similarity index 95% rename from new-api/relay/channel/vertex/adaptor.go rename to heicode/relay/channel/vertex/adaptor.go index 5cf1fcc..4d26f5c 100644 --- a/new-api/relay/channel/vertex/adaptor.go +++ b/heicode/relay/channel/vertex/adaptor.go @@ -8,17 +8,17 @@ import ( "net/http" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/relay/channel" - "github.com/QuantumNous/new-api/relay/channel/claude" - "github.com/QuantumNous/new-api/relay/channel/gemini" - "github.com/QuantumNous/new-api/relay/channel/openai" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/relay/constant" - "github.com/QuantumNous/new-api/setting/model_setting" - "github.com/QuantumNous/new-api/setting/reasoning" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/relay/channel" + "github.com/heicode/manager/relay/channel/claude" + "github.com/heicode/manager/relay/channel/gemini" + "github.com/heicode/manager/relay/channel/openai" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/relay/constant" + "github.com/heicode/manager/setting/model_setting" + "github.com/heicode/manager/setting/reasoning" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" "github.com/samber/lo" diff --git a/new-api/relay/channel/vertex/constants.go b/heicode/relay/channel/vertex/constants.go similarity index 100% rename from new-api/relay/channel/vertex/constants.go rename to heicode/relay/channel/vertex/constants.go diff --git a/new-api/relay/channel/vertex/dto.go b/heicode/relay/channel/vertex/dto.go similarity index 97% rename from new-api/relay/channel/vertex/dto.go rename to heicode/relay/channel/vertex/dto.go index c1d13a6..301271e 100644 --- a/new-api/relay/channel/vertex/dto.go +++ b/heicode/relay/channel/vertex/dto.go @@ -3,7 +3,7 @@ package vertex import ( "encoding/json" - "github.com/QuantumNous/new-api/dto" + "github.com/heicode/manager/dto" ) type VertexAIClaudeRequest struct { diff --git a/new-api/relay/channel/vertex/relay-vertex.go b/heicode/relay/channel/vertex/relay-vertex.go similarity index 90% rename from new-api/relay/channel/vertex/relay-vertex.go rename to heicode/relay/channel/vertex/relay-vertex.go index c5103a9..ff9755d 100644 --- a/new-api/relay/channel/vertex/relay-vertex.go +++ b/heicode/relay/channel/vertex/relay-vertex.go @@ -1,6 +1,6 @@ package vertex -import "github.com/QuantumNous/new-api/common" +import "github.com/heicode/manager/common" func GetModelRegion(other string, localModelName string) string { // if other is json string diff --git a/new-api/relay/channel/vertex/service_account.go b/heicode/relay/channel/vertex/service_account.go similarity index 98% rename from new-api/relay/channel/vertex/service_account.go rename to heicode/relay/channel/vertex/service_account.go index 96ec6b2..7f6d7fc 100644 --- a/new-api/relay/channel/vertex/service_account.go +++ b/heicode/relay/channel/vertex/service_account.go @@ -10,8 +10,8 @@ import ( "net/url" "strings" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/service" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/service" "github.com/bytedance/gopkg/cache/asynccache" "github.com/golang-jwt/jwt/v5" diff --git a/new-api/relay/channel/volcengine/adaptor.go b/heicode/relay/channel/volcengine/adaptor.go similarity index 96% rename from new-api/relay/channel/volcengine/adaptor.go rename to heicode/relay/channel/volcengine/adaptor.go index ba9f223..5edd08a 100644 --- a/new-api/relay/channel/volcengine/adaptor.go +++ b/heicode/relay/channel/volcengine/adaptor.go @@ -10,15 +10,15 @@ import ( "path/filepath" "strings" - channelconstant "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/relay/channel" - "github.com/QuantumNous/new-api/relay/channel/claude" - "github.com/QuantumNous/new-api/relay/channel/openai" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/relay/constant" - "github.com/QuantumNous/new-api/setting/model_setting" - "github.com/QuantumNous/new-api/types" + channelconstant "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/relay/channel" + "github.com/heicode/manager/relay/channel/claude" + "github.com/heicode/manager/relay/channel/openai" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/relay/constant" + "github.com/heicode/manager/setting/model_setting" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" "github.com/samber/lo" diff --git a/new-api/relay/channel/volcengine/constants.go b/heicode/relay/channel/volcengine/constants.go similarity index 100% rename from new-api/relay/channel/volcengine/constants.go rename to heicode/relay/channel/volcengine/constants.go diff --git a/new-api/relay/channel/volcengine/protocols.go b/heicode/relay/channel/volcengine/protocols.go similarity index 100% rename from new-api/relay/channel/volcengine/protocols.go rename to heicode/relay/channel/volcengine/protocols.go diff --git a/new-api/relay/channel/volcengine/tts.go b/heicode/relay/channel/volcengine/tts.go similarity index 98% rename from new-api/relay/channel/volcengine/tts.go rename to heicode/relay/channel/volcengine/tts.go index 2b03981..adbfafd 100644 --- a/new-api/relay/channel/volcengine/tts.go +++ b/heicode/relay/channel/volcengine/tts.go @@ -10,9 +10,9 @@ import ( "net/http" "strings" - "github.com/QuantumNous/new-api/dto" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/dto" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" "github.com/google/uuid" "github.com/gorilla/websocket" diff --git a/new-api/relay/channel/xai/adaptor.go b/heicode/relay/channel/xai/adaptor.go similarity index 93% rename from new-api/relay/channel/xai/adaptor.go rename to heicode/relay/channel/xai/adaptor.go index c73bd8c..195b635 100644 --- a/new-api/relay/channel/xai/adaptor.go +++ b/heicode/relay/channel/xai/adaptor.go @@ -6,13 +6,13 @@ import ( "net/http" "strings" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/relay/channel" - "github.com/QuantumNous/new-api/relay/channel/openai" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/relay/channel" + "github.com/heicode/manager/relay/channel/openai" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/types" - "github.com/QuantumNous/new-api/relay/constant" + "github.com/heicode/manager/relay/constant" "github.com/gin-gonic/gin" "github.com/samber/lo" diff --git a/new-api/relay/channel/xai/constants.go b/heicode/relay/channel/xai/constants.go similarity index 100% rename from new-api/relay/channel/xai/constants.go rename to heicode/relay/channel/xai/constants.go diff --git a/new-api/relay/channel/xai/dto.go b/heicode/relay/channel/xai/dto.go similarity index 96% rename from new-api/relay/channel/xai/dto.go rename to heicode/relay/channel/xai/dto.go index 371d62a..022e0b1 100644 --- a/new-api/relay/channel/xai/dto.go +++ b/heicode/relay/channel/xai/dto.go @@ -1,6 +1,6 @@ package xai -import "github.com/QuantumNous/new-api/dto" +import "github.com/heicode/manager/dto" // ChatCompletionResponse represents the response from XAI chat completion API type ChatCompletionResponse struct { diff --git a/new-api/relay/channel/xai/text.go b/heicode/relay/channel/xai/text.go similarity index 90% rename from new-api/relay/channel/xai/text.go rename to heicode/relay/channel/xai/text.go index f9a8ee2..af5b9df 100644 --- a/new-api/relay/channel/xai/text.go +++ b/heicode/relay/channel/xai/text.go @@ -5,13 +5,13 @@ import ( "net/http" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/relay/channel/openai" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/relay/helper" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/relay/channel/openai" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/relay/helper" + "github.com/heicode/manager/service" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/channel/xinference/constant.go b/heicode/relay/channel/xinference/constant.go similarity index 100% rename from new-api/relay/channel/xinference/constant.go rename to heicode/relay/channel/xinference/constant.go diff --git a/new-api/relay/channel/xinference/dto.go b/heicode/relay/channel/xinference/dto.go similarity index 100% rename from new-api/relay/channel/xinference/dto.go rename to heicode/relay/channel/xinference/dto.go diff --git a/new-api/relay/channel/xunfei/adaptor.go b/heicode/relay/channel/xunfei/adaptor.go similarity index 94% rename from new-api/relay/channel/xunfei/adaptor.go rename to heicode/relay/channel/xunfei/adaptor.go index 686b0cb..35f27d7 100644 --- a/new-api/relay/channel/xunfei/adaptor.go +++ b/heicode/relay/channel/xunfei/adaptor.go @@ -6,10 +6,10 @@ import ( "net/http" "strings" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/relay/channel" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/relay/channel" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/channel/xunfei/constants.go b/heicode/relay/channel/xunfei/constants.go similarity index 100% rename from new-api/relay/channel/xunfei/constants.go rename to heicode/relay/channel/xunfei/constants.go diff --git a/new-api/relay/channel/xunfei/dto.go b/heicode/relay/channel/xunfei/dto.go similarity index 97% rename from new-api/relay/channel/xunfei/dto.go rename to heicode/relay/channel/xunfei/dto.go index 71a40f2..b44e148 100644 --- a/new-api/relay/channel/xunfei/dto.go +++ b/heicode/relay/channel/xunfei/dto.go @@ -1,6 +1,6 @@ package xunfei -import "github.com/QuantumNous/new-api/dto" +import "github.com/heicode/manager/dto" type XunfeiMessage struct { Role string `json:"role"` diff --git a/new-api/relay/channel/xunfei/relay-xunfei.go b/heicode/relay/channel/xunfei/relay-xunfei.go similarity index 97% rename from new-api/relay/channel/xunfei/relay-xunfei.go rename to heicode/relay/channel/xunfei/relay-xunfei.go index 70fde81..02de2da 100644 --- a/new-api/relay/channel/xunfei/relay-xunfei.go +++ b/heicode/relay/channel/xunfei/relay-xunfei.go @@ -11,11 +11,11 @@ import ( "strings" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/relay/helper" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/relay/helper" + "github.com/heicode/manager/types" "github.com/samber/lo" "github.com/gin-gonic/gin" diff --git a/new-api/relay/channel/zhipu/adaptor.go b/heicode/relay/channel/zhipu/adaptor.go similarity index 93% rename from new-api/relay/channel/zhipu/adaptor.go rename to heicode/relay/channel/zhipu/adaptor.go index 3ed4b35..cc8dda7 100644 --- a/new-api/relay/channel/zhipu/adaptor.go +++ b/heicode/relay/channel/zhipu/adaptor.go @@ -6,10 +6,10 @@ import ( "io" "net/http" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/relay/channel" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/relay/channel" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/types" "github.com/samber/lo" "github.com/gin-gonic/gin" diff --git a/new-api/relay/channel/zhipu/constants.go b/heicode/relay/channel/zhipu/constants.go similarity index 100% rename from new-api/relay/channel/zhipu/constants.go rename to heicode/relay/channel/zhipu/constants.go diff --git a/new-api/relay/channel/zhipu/dto.go b/heicode/relay/channel/zhipu/dto.go similarity index 96% rename from new-api/relay/channel/zhipu/dto.go rename to heicode/relay/channel/zhipu/dto.go index 5ca9136..3d3af6d 100644 --- a/new-api/relay/channel/zhipu/dto.go +++ b/heicode/relay/channel/zhipu/dto.go @@ -3,7 +3,7 @@ package zhipu import ( "time" - "github.com/QuantumNous/new-api/dto" + "github.com/heicode/manager/dto" ) type ZhipuMessage struct { diff --git a/new-api/relay/channel/zhipu/relay-zhipu.go b/heicode/relay/channel/zhipu/relay-zhipu.go similarity index 95% rename from new-api/relay/channel/zhipu/relay-zhipu.go rename to heicode/relay/channel/zhipu/relay-zhipu.go index c3c96a0..b78a256 100644 --- a/new-api/relay/channel/zhipu/relay-zhipu.go +++ b/heicode/relay/channel/zhipu/relay-zhipu.go @@ -9,13 +9,13 @@ import ( "sync" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/relay/helper" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/relay/helper" + "github.com/heicode/manager/service" + "github.com/heicode/manager/types" "github.com/samber/lo" "github.com/gin-gonic/gin" diff --git a/new-api/relay/channel/zhipu_4v/adaptor.go b/heicode/relay/channel/zhipu_4v/adaptor.go similarity index 90% rename from new-api/relay/channel/zhipu_4v/adaptor.go rename to heicode/relay/channel/zhipu_4v/adaptor.go index 0af8a16..353a188 100644 --- a/new-api/relay/channel/zhipu_4v/adaptor.go +++ b/heicode/relay/channel/zhipu_4v/adaptor.go @@ -6,14 +6,14 @@ import ( "io" "net/http" - channelconstant "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/relay/channel" - "github.com/QuantumNous/new-api/relay/channel/claude" - "github.com/QuantumNous/new-api/relay/channel/openai" - relaycommon "github.com/QuantumNous/new-api/relay/common" - relayconstant "github.com/QuantumNous/new-api/relay/constant" - "github.com/QuantumNous/new-api/types" + channelconstant "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/relay/channel" + "github.com/heicode/manager/relay/channel/claude" + "github.com/heicode/manager/relay/channel/openai" + relaycommon "github.com/heicode/manager/relay/common" + relayconstant "github.com/heicode/manager/relay/constant" + "github.com/heicode/manager/types" "github.com/samber/lo" "github.com/gin-gonic/gin" diff --git a/new-api/relay/channel/zhipu_4v/constants.go b/heicode/relay/channel/zhipu_4v/constants.go similarity index 100% rename from new-api/relay/channel/zhipu_4v/constants.go rename to heicode/relay/channel/zhipu_4v/constants.go diff --git a/new-api/relay/channel/zhipu_4v/dto.go b/heicode/relay/channel/zhipu_4v/dto.go similarity index 96% rename from new-api/relay/channel/zhipu_4v/dto.go rename to heicode/relay/channel/zhipu_4v/dto.go index e96feda..060236f 100644 --- a/new-api/relay/channel/zhipu_4v/dto.go +++ b/heicode/relay/channel/zhipu_4v/dto.go @@ -3,8 +3,8 @@ package zhipu_4v import ( "time" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/types" ) // type ZhipuMessage struct { diff --git a/new-api/relay/channel/zhipu_4v/image.go b/heicode/relay/channel/zhipu_4v/image.go similarity index 92% rename from new-api/relay/channel/zhipu_4v/image.go rename to heicode/relay/channel/zhipu_4v/image.go index b1fd2c8..05d05fa 100644 --- a/new-api/relay/channel/zhipu_4v/image.go +++ b/heicode/relay/channel/zhipu_4v/image.go @@ -4,12 +4,12 @@ import ( "io" "net/http" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/logger" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/logger" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/service" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/channel/zhipu_4v/relay-zhipu_v4.go b/heicode/relay/channel/zhipu_4v/relay-zhipu_v4.go similarity index 97% rename from new-api/relay/channel/zhipu_4v/relay-zhipu_v4.go rename to heicode/relay/channel/zhipu_4v/relay-zhipu_v4.go index 91ef0c4..06b46c3 100644 --- a/new-api/relay/channel/zhipu_4v/relay-zhipu_v4.go +++ b/heicode/relay/channel/zhipu_4v/relay-zhipu_v4.go @@ -3,7 +3,7 @@ package zhipu_4v import ( "strings" - "github.com/QuantumNous/new-api/dto" + "github.com/heicode/manager/dto" ) func requestOpenAI2Zhipu(request dto.GeneralOpenAIRequest) *dto.GeneralOpenAIRequest { diff --git a/new-api/relay/chat_completions_via_responses.go b/heicode/relay/chat_completions_via_responses.go similarity index 91% rename from new-api/relay/chat_completions_via_responses.go rename to heicode/relay/chat_completions_via_responses.go index 7a2eb9a..232ea09 100644 --- a/new-api/relay/chat_completions_via_responses.go +++ b/heicode/relay/chat_completions_via_responses.go @@ -6,15 +6,15 @@ import ( "net/http" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/relay/channel" - openaichannel "github.com/QuantumNous/new-api/relay/channel/openai" - relaycommon "github.com/QuantumNous/new-api/relay/common" - relayconstant "github.com/QuantumNous/new-api/relay/constant" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/relay/channel" + openaichannel "github.com/heicode/manager/relay/channel/openai" + relaycommon "github.com/heicode/manager/relay/common" + relayconstant "github.com/heicode/manager/relay/constant" + "github.com/heicode/manager/service" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/claude_handler.go b/heicode/relay/claude_handler.go similarity index 94% rename from new-api/relay/claude_handler.go rename to heicode/relay/claude_handler.go index 54f8ced..c1b2dd4 100644 --- a/new-api/relay/claude_handler.go +++ b/heicode/relay/claude_handler.go @@ -8,15 +8,15 @@ import ( "net/http" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/relay/helper" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/setting/model_setting" - "github.com/QuantumNous/new-api/setting/reasoning" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/relay/helper" + "github.com/heicode/manager/service" + "github.com/heicode/manager/setting/model_setting" + "github.com/heicode/manager/setting/reasoning" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/common/billing.go b/heicode/relay/common/billing.go similarity index 100% rename from new-api/relay/common/billing.go rename to heicode/relay/common/billing.go diff --git a/new-api/relay/common/override.go b/heicode/relay/common/override.go similarity index 99% rename from new-api/relay/common/override.go rename to heicode/relay/common/override.go index 1a28303..afbadae 100644 --- a/new-api/relay/common/override.go +++ b/heicode/relay/common/override.go @@ -9,8 +9,8 @@ import ( "strconv" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/types" "github.com/samber/lo" "github.com/tidwall/gjson" "github.com/tidwall/sjson" diff --git a/new-api/relay/common/override_test.go b/heicode/relay/common/override_test.go similarity index 99% rename from new-api/relay/common/override_test.go rename to heicode/relay/common/override_test.go index 6e35cf7..055d2e6 100644 --- a/new-api/relay/common/override_test.go +++ b/heicode/relay/common/override_test.go @@ -6,11 +6,11 @@ import ( "reflect" "testing" - common2 "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/types" + common2 "github.com/heicode/manager/common" + "github.com/heicode/manager/types" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/setting/model_setting" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/setting/model_setting" "github.com/samber/lo" ) diff --git a/new-api/relay/common/relay_info.go b/heicode/relay/common/relay_info.go similarity index 98% rename from new-api/relay/common/relay_info.go rename to heicode/relay/common/relay_info.go index 64d4d4e..d24ecbd 100644 --- a/new-api/relay/common/relay_info.go +++ b/heicode/relay/common/relay_info.go @@ -8,13 +8,13 @@ import ( "strings" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/pkg/billingexpr" - relayconstant "github.com/QuantumNous/new-api/relay/constant" - "github.com/QuantumNous/new-api/setting/model_setting" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/pkg/billingexpr" + relayconstant "github.com/heicode/manager/relay/constant" + "github.com/heicode/manager/setting/model_setting" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" "github.com/gorilla/websocket" diff --git a/new-api/relay/common/relay_info_test.go b/heicode/relay/common/relay_info_test.go similarity index 96% rename from new-api/relay/common/relay_info_test.go rename to heicode/relay/common/relay_info_test.go index e53ec80..32b9134 100644 --- a/new-api/relay/common/relay_info_test.go +++ b/heicode/relay/common/relay_info_test.go @@ -3,7 +3,7 @@ package common import ( "testing" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/types" "github.com/stretchr/testify/require" ) diff --git a/new-api/relay/common/relay_utils.go b/heicode/relay/common/relay_utils.go similarity index 97% rename from new-api/relay/common/relay_utils.go rename to heicode/relay/common/relay_utils.go index 18df77a..0af52fe 100644 --- a/new-api/relay/common/relay_utils.go +++ b/heicode/relay/common/relay_utils.go @@ -6,9 +6,9 @@ import ( "strconv" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" "github.com/gin-gonic/gin" "github.com/samber/lo" diff --git a/new-api/relay/common/request_conversion.go b/heicode/relay/common/request_conversion.go similarity index 93% rename from new-api/relay/common/request_conversion.go rename to heicode/relay/common/request_conversion.go index 96b728d..47fa5c8 100644 --- a/new-api/relay/common/request_conversion.go +++ b/heicode/relay/common/request_conversion.go @@ -1,8 +1,8 @@ package common import ( - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/types" ) func GuessRelayFormatFromRequest(req any) (types.RelayFormat, bool) { diff --git a/new-api/relay/common/stream_status.go b/heicode/relay/common/stream_status.go similarity index 100% rename from new-api/relay/common/stream_status.go rename to heicode/relay/common/stream_status.go diff --git a/new-api/relay/common/stream_status_test.go b/heicode/relay/common/stream_status_test.go similarity index 100% rename from new-api/relay/common/stream_status_test.go rename to heicode/relay/common/stream_status_test.go diff --git a/new-api/relay/common_handler/rerank.go b/heicode/relay/common_handler/rerank.go similarity index 86% rename from new-api/relay/common_handler/rerank.go rename to heicode/relay/common_handler/rerank.go index f52a91b..637f382 100644 --- a/new-api/relay/common_handler/rerank.go +++ b/heicode/relay/common_handler/rerank.go @@ -4,13 +4,13 @@ import ( "io" "net/http" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/relay/channel/xinference" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/relay/channel/xinference" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/service" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/compatible_handler.go b/heicode/relay/compatible_handler.go similarity index 93% rename from new-api/relay/compatible_handler.go rename to heicode/relay/compatible_handler.go index 7a5624e..d754b0f 100644 --- a/new-api/relay/compatible_handler.go +++ b/heicode/relay/compatible_handler.go @@ -7,17 +7,17 @@ import ( "net/http" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/logger" - relaycommon "github.com/QuantumNous/new-api/relay/common" - relayconstant "github.com/QuantumNous/new-api/relay/constant" - "github.com/QuantumNous/new-api/relay/helper" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/setting/model_setting" - "github.com/QuantumNous/new-api/setting/ratio_setting" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/logger" + relaycommon "github.com/heicode/manager/relay/common" + relayconstant "github.com/heicode/manager/relay/constant" + "github.com/heicode/manager/relay/helper" + "github.com/heicode/manager/service" + "github.com/heicode/manager/setting/model_setting" + "github.com/heicode/manager/setting/ratio_setting" + "github.com/heicode/manager/types" "github.com/samber/lo" "github.com/gin-gonic/gin" diff --git a/new-api/relay/constant/relay_mode.go b/heicode/relay/constant/relay_mode.go similarity index 100% rename from new-api/relay/constant/relay_mode.go rename to heicode/relay/constant/relay_mode.go diff --git a/new-api/relay/embedding_handler.go b/heicode/relay/embedding_handler.go similarity index 89% rename from new-api/relay/embedding_handler.go rename to heicode/relay/embedding_handler.go index b8e7fc9..272ced9 100644 --- a/new-api/relay/embedding_handler.go +++ b/heicode/relay/embedding_handler.go @@ -6,13 +6,13 @@ import ( "io" "net/http" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/logger" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/relay/helper" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/logger" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/relay/helper" + "github.com/heicode/manager/service" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/gemini_handler.go b/heicode/relay/gemini_handler.go similarity index 95% rename from new-api/relay/gemini_handler.go rename to heicode/relay/gemini_handler.go index 3b4bafe..87ff157 100644 --- a/new-api/relay/gemini_handler.go +++ b/heicode/relay/gemini_handler.go @@ -7,16 +7,16 @@ import ( "net/http" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/logger" - "github.com/QuantumNous/new-api/relay/channel/gemini" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/relay/helper" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/setting/model_setting" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/logger" + "github.com/heicode/manager/relay/channel/gemini" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/relay/helper" + "github.com/heicode/manager/service" + "github.com/heicode/manager/setting/model_setting" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/helper/billing_expr_request.go b/heicode/relay/helper/billing_expr_request.go similarity index 91% rename from new-api/relay/helper/billing_expr_request.go rename to heicode/relay/helper/billing_expr_request.go index 28a44bc..c481db8 100644 --- a/new-api/relay/helper/billing_expr_request.go +++ b/heicode/relay/helper/billing_expr_request.go @@ -3,10 +3,10 @@ package helper import ( "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/pkg/billingexpr" - relaycommon "github.com/QuantumNous/new-api/relay/common" + "github.com/heicode/manager/common" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/pkg/billingexpr" + relaycommon "github.com/heicode/manager/relay/common" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/helper/billing_expr_request_test.go b/heicode/relay/helper/billing_expr_request_test.go similarity index 92% rename from new-api/relay/helper/billing_expr_request_test.go rename to heicode/relay/helper/billing_expr_request_test.go index 9193f4b..b81d2a6 100644 --- a/new-api/relay/helper/billing_expr_request_test.go +++ b/heicode/relay/helper/billing_expr_request_test.go @@ -7,9 +7,9 @@ import ( "net/http/httptest" "testing" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/dto" - relaycommon "github.com/QuantumNous/new-api/relay/common" + "github.com/heicode/manager/common" + "github.com/heicode/manager/dto" + relaycommon "github.com/heicode/manager/relay/common" "github.com/gin-gonic/gin" "github.com/samber/lo" "github.com/stretchr/testify/require" diff --git a/new-api/relay/helper/common.go b/heicode/relay/helper/common.go similarity index 97% rename from new-api/relay/helper/common.go rename to heicode/relay/helper/common.go index 17ce79d..4a41bff 100644 --- a/new-api/relay/helper/common.go +++ b/heicode/relay/helper/common.go @@ -5,10 +5,10 @@ import ( "fmt" "net/http" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/logger" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/logger" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" "github.com/gorilla/websocket" diff --git a/new-api/relay/helper/model_mapped.go b/heicode/relay/helper/model_mapped.go similarity index 91% rename from new-api/relay/helper/model_mapped.go rename to heicode/relay/helper/model_mapped.go index 5d6efa0..81e2f0a 100644 --- a/new-api/relay/helper/model_mapped.go +++ b/heicode/relay/helper/model_mapped.go @@ -6,10 +6,10 @@ import ( "fmt" "strings" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/relay/common" - relayconstant "github.com/QuantumNous/new-api/relay/constant" - "github.com/QuantumNous/new-api/setting/ratio_setting" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/relay/common" + relayconstant "github.com/heicode/manager/relay/constant" + "github.com/heicode/manager/setting/ratio_setting" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/helper/price.go b/heicode/relay/helper/price.go similarity index 95% rename from new-api/relay/helper/price.go rename to heicode/relay/helper/price.go index 0e68edb..77087d7 100644 --- a/new-api/relay/helper/price.go +++ b/heicode/relay/helper/price.go @@ -4,15 +4,15 @@ import ( "fmt" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/logger" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/pkg/billingexpr" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/setting/billing_setting" - "github.com/QuantumNous/new-api/setting/operation_setting" - "github.com/QuantumNous/new-api/setting/ratio_setting" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/logger" + "github.com/heicode/manager/model" + "github.com/heicode/manager/pkg/billingexpr" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/setting/billing_setting" + "github.com/heicode/manager/setting/operation_setting" + "github.com/heicode/manager/setting/ratio_setting" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/helper/price_test.go b/heicode/relay/helper/price_test.go similarity index 86% rename from new-api/relay/helper/price_test.go rename to heicode/relay/helper/price_test.go index afa64c4..d33fc26 100644 --- a/new-api/relay/helper/price_test.go +++ b/heicode/relay/helper/price_test.go @@ -5,12 +5,12 @@ import ( "net/http/httptest" "testing" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/pkg/billingexpr" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/setting/billing_setting" - "github.com/QuantumNous/new-api/setting/config" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/pkg/billingexpr" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/setting/billing_setting" + "github.com/heicode/manager/setting/config" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" "github.com/stretchr/testify/require" ) diff --git a/new-api/relay/helper/stream_result.go b/heicode/relay/helper/stream_result.go similarity index 96% rename from new-api/relay/helper/stream_result.go rename to heicode/relay/helper/stream_result.go index aa77e80..1f55c25 100644 --- a/new-api/relay/helper/stream_result.go +++ b/heicode/relay/helper/stream_result.go @@ -1,7 +1,7 @@ package helper import ( - relaycommon "github.com/QuantumNous/new-api/relay/common" + relaycommon "github.com/heicode/manager/relay/common" ) // StreamResult is passed to each dataHandler invocation, providing methods diff --git a/new-api/relay/helper/stream_scanner.go b/heicode/relay/helper/stream_scanner.go similarity index 96% rename from new-api/relay/helper/stream_scanner.go rename to heicode/relay/helper/stream_scanner.go index a9bc5e1..1676bf8 100644 --- a/new-api/relay/helper/stream_scanner.go +++ b/heicode/relay/helper/stream_scanner.go @@ -10,11 +10,11 @@ import ( "sync" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/logger" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/setting/operation_setting" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/logger" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/setting/operation_setting" "github.com/bytedance/gopkg/util/gopool" diff --git a/new-api/relay/helper/stream_scanner_test.go b/heicode/relay/helper/stream_scanner_test.go similarity index 99% rename from new-api/relay/helper/stream_scanner_test.go rename to heicode/relay/helper/stream_scanner_test.go index 9d6f3bb..9a0675d 100644 --- a/new-api/relay/helper/stream_scanner_test.go +++ b/heicode/relay/helper/stream_scanner_test.go @@ -11,9 +11,9 @@ import ( "testing" "time" - "github.com/QuantumNous/new-api/constant" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/setting/operation_setting" + "github.com/heicode/manager/constant" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/setting/operation_setting" "github.com/gin-gonic/gin" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/new-api/relay/helper/valid_request.go b/heicode/relay/helper/valid_request.go similarity index 97% rename from new-api/relay/helper/valid_request.go rename to heicode/relay/helper/valid_request.go index c5477cc..8691912 100644 --- a/new-api/relay/helper/valid_request.go +++ b/heicode/relay/helper/valid_request.go @@ -7,11 +7,11 @@ import ( "math" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/logger" - relayconstant "github.com/QuantumNous/new-api/relay/constant" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/logger" + relayconstant "github.com/heicode/manager/relay/constant" + "github.com/heicode/manager/types" "github.com/samber/lo" "github.com/gin-gonic/gin" diff --git a/new-api/relay/image_handler.go b/heicode/relay/image_handler.go similarity index 92% rename from new-api/relay/image_handler.go rename to heicode/relay/image_handler.go index e986dd8..e23d69d 100644 --- a/new-api/relay/image_handler.go +++ b/heicode/relay/image_handler.go @@ -7,15 +7,15 @@ import ( "net/http" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/logger" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/relay/helper" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/setting/model_setting" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/logger" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/relay/helper" + "github.com/heicode/manager/service" + "github.com/heicode/manager/setting/model_setting" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/mjproxy_handler.go b/heicode/relay/mjproxy_handler.go similarity index 98% rename from new-api/relay/mjproxy_handler.go rename to heicode/relay/mjproxy_handler.go index ee48ca6..541b1cc 100644 --- a/new-api/relay/mjproxy_handler.go +++ b/heicode/relay/mjproxy_handler.go @@ -11,16 +11,16 @@ import ( "strings" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/model" - relaycommon "github.com/QuantumNous/new-api/relay/common" - relayconstant "github.com/QuantumNous/new-api/relay/constant" - "github.com/QuantumNous/new-api/relay/helper" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/setting" - "github.com/QuantumNous/new-api/setting/system_setting" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/model" + relaycommon "github.com/heicode/manager/relay/common" + relayconstant "github.com/heicode/manager/relay/constant" + "github.com/heicode/manager/relay/helper" + "github.com/heicode/manager/service" + "github.com/heicode/manager/setting" + "github.com/heicode/manager/setting/system_setting" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/param_override_error.go b/heicode/relay/param_override_error.go similarity index 77% rename from new-api/relay/param_override_error.go rename to heicode/relay/param_override_error.go index c233829..f8e1ceb 100644 --- a/new-api/relay/param_override_error.go +++ b/heicode/relay/param_override_error.go @@ -1,8 +1,8 @@ package relay import ( - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/types" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/types" ) func newAPIErrorFromParamOverride(err error) *types.NewAPIError { diff --git a/new-api/relay/reasonmap/reasonmap.go b/heicode/relay/reasonmap/reasonmap.go similarity index 94% rename from new-api/relay/reasonmap/reasonmap.go rename to heicode/relay/reasonmap/reasonmap.go index 45b74bb..b4a402a 100644 --- a/new-api/relay/reasonmap/reasonmap.go +++ b/heicode/relay/reasonmap/reasonmap.go @@ -3,7 +3,7 @@ package reasonmap import ( "strings" - "github.com/QuantumNous/new-api/constant" + "github.com/heicode/manager/constant" ) func ClaudeStopReasonToOpenAIFinishReason(stopReason string) string { diff --git a/new-api/relay/relay_adaptor.go b/heicode/relay/relay_adaptor.go similarity index 57% rename from new-api/relay/relay_adaptor.go rename to heicode/relay/relay_adaptor.go index 3139c9a..8183da3 100644 --- a/new-api/relay/relay_adaptor.go +++ b/heicode/relay/relay_adaptor.go @@ -3,50 +3,50 @@ package relay import ( "strconv" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/relay/channel" - "github.com/QuantumNous/new-api/relay/channel/ali" - "github.com/QuantumNous/new-api/relay/channel/aws" - "github.com/QuantumNous/new-api/relay/channel/baidu" - "github.com/QuantumNous/new-api/relay/channel/baidu_v2" - "github.com/QuantumNous/new-api/relay/channel/claude" - "github.com/QuantumNous/new-api/relay/channel/cloudflare" - "github.com/QuantumNous/new-api/relay/channel/codex" - "github.com/QuantumNous/new-api/relay/channel/cohere" - "github.com/QuantumNous/new-api/relay/channel/coze" - "github.com/QuantumNous/new-api/relay/channel/deepseek" - "github.com/QuantumNous/new-api/relay/channel/dify" - "github.com/QuantumNous/new-api/relay/channel/gemini" - "github.com/QuantumNous/new-api/relay/channel/jimeng" - "github.com/QuantumNous/new-api/relay/channel/jina" - "github.com/QuantumNous/new-api/relay/channel/minimax" - "github.com/QuantumNous/new-api/relay/channel/mistral" - "github.com/QuantumNous/new-api/relay/channel/mokaai" - "github.com/QuantumNous/new-api/relay/channel/moonshot" - "github.com/QuantumNous/new-api/relay/channel/ollama" - "github.com/QuantumNous/new-api/relay/channel/openai" - "github.com/QuantumNous/new-api/relay/channel/palm" - "github.com/QuantumNous/new-api/relay/channel/perplexity" - "github.com/QuantumNous/new-api/relay/channel/replicate" - "github.com/QuantumNous/new-api/relay/channel/siliconflow" - "github.com/QuantumNous/new-api/relay/channel/submodel" - taskali "github.com/QuantumNous/new-api/relay/channel/task/ali" - taskdoubao "github.com/QuantumNous/new-api/relay/channel/task/doubao" - taskGemini "github.com/QuantumNous/new-api/relay/channel/task/gemini" - "github.com/QuantumNous/new-api/relay/channel/task/hailuo" - taskjimeng "github.com/QuantumNous/new-api/relay/channel/task/jimeng" - "github.com/QuantumNous/new-api/relay/channel/task/kling" - tasksora "github.com/QuantumNous/new-api/relay/channel/task/sora" - "github.com/QuantumNous/new-api/relay/channel/task/suno" - taskvertex "github.com/QuantumNous/new-api/relay/channel/task/vertex" - taskVidu "github.com/QuantumNous/new-api/relay/channel/task/vidu" - "github.com/QuantumNous/new-api/relay/channel/tencent" - "github.com/QuantumNous/new-api/relay/channel/vertex" - "github.com/QuantumNous/new-api/relay/channel/volcengine" - "github.com/QuantumNous/new-api/relay/channel/xai" - "github.com/QuantumNous/new-api/relay/channel/xunfei" - "github.com/QuantumNous/new-api/relay/channel/zhipu" - "github.com/QuantumNous/new-api/relay/channel/zhipu_4v" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/relay/channel" + "github.com/heicode/manager/relay/channel/ali" + "github.com/heicode/manager/relay/channel/aws" + "github.com/heicode/manager/relay/channel/baidu" + "github.com/heicode/manager/relay/channel/baidu_v2" + "github.com/heicode/manager/relay/channel/claude" + "github.com/heicode/manager/relay/channel/cloudflare" + "github.com/heicode/manager/relay/channel/codex" + "github.com/heicode/manager/relay/channel/cohere" + "github.com/heicode/manager/relay/channel/coze" + "github.com/heicode/manager/relay/channel/deepseek" + "github.com/heicode/manager/relay/channel/dify" + "github.com/heicode/manager/relay/channel/gemini" + "github.com/heicode/manager/relay/channel/jimeng" + "github.com/heicode/manager/relay/channel/jina" + "github.com/heicode/manager/relay/channel/minimax" + "github.com/heicode/manager/relay/channel/mistral" + "github.com/heicode/manager/relay/channel/mokaai" + "github.com/heicode/manager/relay/channel/moonshot" + "github.com/heicode/manager/relay/channel/ollama" + "github.com/heicode/manager/relay/channel/openai" + "github.com/heicode/manager/relay/channel/palm" + "github.com/heicode/manager/relay/channel/perplexity" + "github.com/heicode/manager/relay/channel/replicate" + "github.com/heicode/manager/relay/channel/siliconflow" + "github.com/heicode/manager/relay/channel/submodel" + taskali "github.com/heicode/manager/relay/channel/task/ali" + taskdoubao "github.com/heicode/manager/relay/channel/task/doubao" + taskGemini "github.com/heicode/manager/relay/channel/task/gemini" + "github.com/heicode/manager/relay/channel/task/hailuo" + taskjimeng "github.com/heicode/manager/relay/channel/task/jimeng" + "github.com/heicode/manager/relay/channel/task/kling" + tasksora "github.com/heicode/manager/relay/channel/task/sora" + "github.com/heicode/manager/relay/channel/task/suno" + taskvertex "github.com/heicode/manager/relay/channel/task/vertex" + taskVidu "github.com/heicode/manager/relay/channel/task/vidu" + "github.com/heicode/manager/relay/channel/tencent" + "github.com/heicode/manager/relay/channel/vertex" + "github.com/heicode/manager/relay/channel/volcengine" + "github.com/heicode/manager/relay/channel/xai" + "github.com/heicode/manager/relay/channel/xunfei" + "github.com/heicode/manager/relay/channel/zhipu" + "github.com/heicode/manager/relay/channel/zhipu_4v" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/relay_task.go b/heicode/relay/relay_task.go similarity index 97% rename from new-api/relay/relay_task.go rename to heicode/relay/relay_task.go index 098e238..8a5d53a 100644 --- a/new-api/relay/relay_task.go +++ b/heicode/relay/relay_task.go @@ -9,16 +9,16 @@ import ( "strconv" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/relay/channel" - "github.com/QuantumNous/new-api/relay/channel/task/taskcommon" - relaycommon "github.com/QuantumNous/new-api/relay/common" - relayconstant "github.com/QuantumNous/new-api/relay/constant" - "github.com/QuantumNous/new-api/relay/helper" - "github.com/QuantumNous/new-api/service" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/model" + "github.com/heicode/manager/relay/channel" + "github.com/heicode/manager/relay/channel/task/taskcommon" + relaycommon "github.com/heicode/manager/relay/common" + relayconstant "github.com/heicode/manager/relay/constant" + "github.com/heicode/manager/relay/helper" + "github.com/heicode/manager/service" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/rerank_handler.go b/heicode/relay/rerank_handler.go similarity index 90% rename from new-api/relay/rerank_handler.go rename to heicode/relay/rerank_handler.go index 53cd6e4..69345bb 100644 --- a/new-api/relay/rerank_handler.go +++ b/heicode/relay/rerank_handler.go @@ -6,13 +6,13 @@ import ( "io" "net/http" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/dto" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/relay/helper" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/setting/model_setting" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/dto" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/relay/helper" + "github.com/heicode/manager/service" + "github.com/heicode/manager/setting/model_setting" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/responses_handler.go b/heicode/relay/responses_handler.go similarity index 91% rename from new-api/relay/responses_handler.go rename to heicode/relay/responses_handler.go index 58324aa..3ee8c94 100644 --- a/new-api/relay/responses_handler.go +++ b/heicode/relay/responses_handler.go @@ -7,15 +7,15 @@ import ( "net/http" "strings" - "github.com/QuantumNous/new-api/common" - appconstant "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - relaycommon "github.com/QuantumNous/new-api/relay/common" - relayconstant "github.com/QuantumNous/new-api/relay/constant" - "github.com/QuantumNous/new-api/relay/helper" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/setting/model_setting" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + appconstant "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + relaycommon "github.com/heicode/manager/relay/common" + relayconstant "github.com/heicode/manager/relay/constant" + "github.com/heicode/manager/relay/helper" + "github.com/heicode/manager/service" + "github.com/heicode/manager/setting/model_setting" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/relay/websocket.go b/heicode/relay/websocket.go similarity index 86% rename from new-api/relay/websocket.go rename to heicode/relay/websocket.go index 57a5189..23fd8c2 100644 --- a/new-api/relay/websocket.go +++ b/heicode/relay/websocket.go @@ -3,10 +3,10 @@ package relay import ( "fmt" - "github.com/QuantumNous/new-api/dto" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/service" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/dto" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/service" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" "github.com/gorilla/websocket" diff --git a/new-api/router/api-router.go b/heicode/router/api-router.go similarity index 99% rename from new-api/router/api-router.go rename to heicode/router/api-router.go index f8bb046..c5a8623 100644 --- a/new-api/router/api-router.go +++ b/heicode/router/api-router.go @@ -1,11 +1,11 @@ package router import ( - "github.com/QuantumNous/new-api/controller" - "github.com/QuantumNous/new-api/middleware" + "github.com/heicode/manager/controller" + "github.com/heicode/manager/middleware" // Import oauth package to register providers via init() - _ "github.com/QuantumNous/new-api/oauth" + _ "github.com/heicode/manager/oauth" "github.com/gin-contrib/gzip" "github.com/gin-gonic/gin" diff --git a/new-api/router/dashboard.go b/heicode/router/dashboard.go similarity index 88% rename from new-api/router/dashboard.go rename to heicode/router/dashboard.go index 2e48615..57eb8c5 100644 --- a/new-api/router/dashboard.go +++ b/heicode/router/dashboard.go @@ -1,8 +1,8 @@ package router import ( - "github.com/QuantumNous/new-api/controller" - "github.com/QuantumNous/new-api/middleware" + "github.com/heicode/manager/controller" + "github.com/heicode/manager/middleware" "github.com/gin-contrib/gzip" "github.com/gin-gonic/gin" ) diff --git a/new-api/router/heicode-router.go b/heicode/router/heicode-router.go similarity index 81% rename from new-api/router/heicode-router.go rename to heicode/router/heicode-router.go index f73932b..02bba02 100644 --- a/new-api/router/heicode-router.go +++ b/heicode/router/heicode-router.go @@ -1,14 +1,14 @@ package router import ( - "github.com/QuantumNous/new-api/controller" + "github.com/heicode/manager/controller" "github.com/gin-gonic/gin" ) // SetHeicodeOAuthRouter wires up HeiCode-specific browser-login bridge endpoints. // These endpoints are mounted at /heicode/* (no /api prefix) so the redirect_uri -// from HeiCode desktop matches: http(s):///heicode/oauth/authorize. +// from HeiCode desktop matches: http(s):///heicode/oauth/authorize. func SetHeicodeOAuthRouter(router *gin.Engine) { heicode := router.Group("/heicode") { diff --git a/new-api/router/main.go b/heicode/router/main.go similarity index 90% rename from new-api/router/main.go rename to heicode/router/main.go index 95c9fdc..dba0684 100644 --- a/new-api/router/main.go +++ b/heicode/router/main.go @@ -6,8 +6,8 @@ import ( "os" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/middleware" + "github.com/heicode/manager/common" + "github.com/heicode/manager/middleware" "github.com/gin-gonic/gin" ) diff --git a/new-api/router/relay-router.go b/heicode/router/relay-router.go similarity index 97% rename from new-api/router/relay-router.go rename to heicode/router/relay-router.go index 17a13ca..2262940 100644 --- a/new-api/router/relay-router.go +++ b/heicode/router/relay-router.go @@ -1,11 +1,11 @@ package router import ( - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/controller" - "github.com/QuantumNous/new-api/middleware" - "github.com/QuantumNous/new-api/relay" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/controller" + "github.com/heicode/manager/middleware" + "github.com/heicode/manager/relay" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/router/video-router.go b/heicode/router/video-router.go similarity index 95% rename from new-api/router/video-router.go rename to heicode/router/video-router.go index 4614511..6b4e3be 100644 --- a/new-api/router/video-router.go +++ b/heicode/router/video-router.go @@ -1,8 +1,8 @@ package router import ( - "github.com/QuantumNous/new-api/controller" - "github.com/QuantumNous/new-api/middleware" + "github.com/heicode/manager/controller" + "github.com/heicode/manager/middleware" "github.com/gin-gonic/gin" ) diff --git a/new-api/router/web-router.go b/heicode/router/web-router.go similarity index 91% rename from new-api/router/web-router.go rename to heicode/router/web-router.go index 0d475e9..face118 100644 --- a/new-api/router/web-router.go +++ b/heicode/router/web-router.go @@ -5,9 +5,9 @@ import ( "net/http" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/controller" - "github.com/QuantumNous/new-api/middleware" + "github.com/heicode/manager/common" + "github.com/heicode/manager/controller" + "github.com/heicode/manager/middleware" "github.com/gin-contrib/gzip" "github.com/gin-contrib/static" "github.com/gin-gonic/gin" diff --git a/new-api/service/audio.go b/heicode/service/audio.go similarity index 100% rename from new-api/service/audio.go rename to heicode/service/audio.go diff --git a/new-api/service/billing.go b/heicode/service/billing.go similarity index 94% rename from new-api/service/billing.go rename to heicode/service/billing.go index 81daeed..e88db8b 100644 --- a/new-api/service/billing.go +++ b/heicode/service/billing.go @@ -3,9 +3,9 @@ package service import ( "fmt" - "github.com/QuantumNous/new-api/logger" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/logger" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/service/billing_session.go b/heicode/service/billing_session.go similarity index 98% rename from new-api/service/billing_session.go rename to heicode/service/billing_session.go index 4761f7a..6b3ac11 100644 --- a/new-api/service/billing_session.go +++ b/heicode/service/billing_session.go @@ -6,11 +6,11 @@ import ( "strings" "sync" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/logger" - "github.com/QuantumNous/new-api/model" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/logger" + "github.com/heicode/manager/model" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/types" "github.com/bytedance/gopkg/util/gopool" "github.com/gin-gonic/gin" diff --git a/new-api/service/channel.go b/heicode/service/channel.go similarity index 91% rename from new-api/service/channel.go rename to heicode/service/channel.go index 3fde6e2..84fee20 100644 --- a/new-api/service/channel.go +++ b/heicode/service/channel.go @@ -4,11 +4,11 @@ import ( "fmt" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/setting/operation_setting" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/model" + "github.com/heicode/manager/setting/operation_setting" + "github.com/heicode/manager/types" ) func formatNotifyType(channelId int, status int) string { diff --git a/new-api/service/channel_affinity.go b/heicode/service/channel_affinity.go similarity index 98% rename from new-api/service/channel_affinity.go rename to heicode/service/channel_affinity.go index e09cb01..643fbe7 100644 --- a/new-api/service/channel_affinity.go +++ b/heicode/service/channel_affinity.go @@ -9,11 +9,11 @@ import ( "sync" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/pkg/cachex" - "github.com/QuantumNous/new-api/setting/operation_setting" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/pkg/cachex" + "github.com/heicode/manager/setting/operation_setting" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" "github.com/samber/hot" "github.com/tidwall/gjson" @@ -26,8 +26,8 @@ const ( ginKeyChannelAffinityLogInfo = "channel_affinity_log_info" ginKeyChannelAffinitySkipRetry = "channel_affinity_skip_retry_on_failure" - channelAffinityCacheNamespace = "new-api:channel_affinity:v1" - channelAffinityUsageCacheStatsNamespace = "new-api:channel_affinity_usage_cache_stats:v1" + channelAffinityCacheNamespace = "heicode:channel_affinity:v1" + channelAffinityUsageCacheStatsNamespace = "heicode:channel_affinity_usage_cache_stats:v1" ) var ( diff --git a/new-api/service/channel_affinity_template_test.go b/heicode/service/channel_affinity_template_test.go similarity index 98% rename from new-api/service/channel_affinity_template_test.go rename to heicode/service/channel_affinity_template_test.go index 033cbd8..95f2bb7 100644 --- a/new-api/service/channel_affinity_template_test.go +++ b/heicode/service/channel_affinity_template_test.go @@ -8,8 +8,8 @@ import ( "testing" "time" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/setting/operation_setting" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/setting/operation_setting" "github.com/gin-gonic/gin" "github.com/stretchr/testify/require" ) diff --git a/new-api/service/channel_affinity_usage_cache_test.go b/heicode/service/channel_affinity_usage_cache_test.go similarity index 97% rename from new-api/service/channel_affinity_usage_cache_test.go rename to heicode/service/channel_affinity_usage_cache_test.go index 64d3d71..2f294b3 100644 --- a/new-api/service/channel_affinity_usage_cache_test.go +++ b/heicode/service/channel_affinity_usage_cache_test.go @@ -6,8 +6,8 @@ import ( "testing" "time" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" "github.com/stretchr/testify/require" ) diff --git a/new-api/service/channel_select.go b/heicode/service/channel_select.go similarity index 96% rename from new-api/service/channel_select.go rename to heicode/service/channel_select.go index a3710ef..bc3a0de 100644 --- a/new-api/service/channel_select.go +++ b/heicode/service/channel_select.go @@ -3,11 +3,11 @@ package service import ( "errors" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/logger" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/setting" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/logger" + "github.com/heicode/manager/model" + "github.com/heicode/manager/setting" "github.com/gin-gonic/gin" ) diff --git a/new-api/service/codex_credential_refresh.go b/heicode/service/codex_credential_refresh.go similarity index 95% rename from new-api/service/codex_credential_refresh.go rename to heicode/service/codex_credential_refresh.go index 2e681ee..1823284 100644 --- a/new-api/service/codex_credential_refresh.go +++ b/heicode/service/codex_credential_refresh.go @@ -7,9 +7,9 @@ import ( "strings" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/model" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/model" ) type CodexCredentialRefreshOptions struct { diff --git a/new-api/service/codex_credential_refresh_task.go b/heicode/service/codex_credential_refresh_task.go similarity index 95% rename from new-api/service/codex_credential_refresh_task.go rename to heicode/service/codex_credential_refresh_task.go index 5cc53fe..f6ee651 100644 --- a/new-api/service/codex_credential_refresh_task.go +++ b/heicode/service/codex_credential_refresh_task.go @@ -8,10 +8,10 @@ import ( "sync/atomic" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/logger" - "github.com/QuantumNous/new-api/model" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/logger" + "github.com/heicode/manager/model" "github.com/bytedance/gopkg/util/gopool" ) diff --git a/new-api/service/codex_oauth.go b/heicode/service/codex_oauth.go similarity index 99% rename from new-api/service/codex_oauth.go rename to heicode/service/codex_oauth.go index 33ef1d6..6c03cd9 100644 --- a/new-api/service/codex_oauth.go +++ b/heicode/service/codex_oauth.go @@ -13,7 +13,7 @@ import ( "strings" "time" - "github.com/QuantumNous/new-api/common" + "github.com/heicode/manager/common" ) const ( diff --git a/new-api/service/codex_wham_usage.go b/heicode/service/codex_wham_usage.go similarity index 100% rename from new-api/service/codex_wham_usage.go rename to heicode/service/codex_wham_usage.go diff --git a/new-api/service/convert.go b/heicode/service/convert.go similarity index 99% rename from new-api/service/convert.go rename to heicode/service/convert.go index 95acf83..d3bcdb1 100644 --- a/new-api/service/convert.go +++ b/heicode/service/convert.go @@ -5,12 +5,12 @@ import ( "fmt" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/relay/channel/openrouter" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/relay/reasonmap" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/relay/channel/openrouter" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/relay/reasonmap" "github.com/samber/lo" ) diff --git a/new-api/service/download.go b/heicode/service/download.go similarity index 96% rename from new-api/service/download.go rename to heicode/service/download.go index 752d8c6..28775a3 100644 --- a/new-api/service/download.go +++ b/heicode/service/download.go @@ -7,8 +7,8 @@ import ( "net/http" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/setting/system_setting" + "github.com/heicode/manager/common" + "github.com/heicode/manager/setting/system_setting" ) // WorkerRequest Worker请求的数据结构 diff --git a/new-api/service/epay.go b/heicode/service/epay.go similarity index 63% rename from new-api/service/epay.go rename to heicode/service/epay.go index bfe1437..67d655a 100644 --- a/new-api/service/epay.go +++ b/heicode/service/epay.go @@ -1,8 +1,8 @@ package service import ( - "github.com/QuantumNous/new-api/setting/operation_setting" - "github.com/QuantumNous/new-api/setting/system_setting" + "github.com/heicode/manager/setting/operation_setting" + "github.com/heicode/manager/setting/system_setting" ) func GetCallbackAddress() string { diff --git a/new-api/service/error.go b/heicode/service/error.go similarity index 97% rename from new-api/service/error.go rename to heicode/service/error.go index a2ff0aa..a130dc4 100644 --- a/new-api/service/error.go +++ b/heicode/service/error.go @@ -11,10 +11,10 @@ import ( "strconv" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/logger" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/logger" + "github.com/heicode/manager/types" ) func MidjourneyErrorWrapper(code int, desc string) *dto.MidjourneyResponse { diff --git a/new-api/service/error_test.go b/heicode/service/error_test.go similarity index 96% rename from new-api/service/error_test.go rename to heicode/service/error_test.go index 2303e8f..d7d9af7 100644 --- a/new-api/service/error_test.go +++ b/heicode/service/error_test.go @@ -3,7 +3,7 @@ package service import ( "testing" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/types" "github.com/stretchr/testify/require" ) diff --git a/new-api/service/file_decoder.go b/heicode/service/file_decoder.go similarity index 97% rename from new-api/service/file_decoder.go rename to heicode/service/file_decoder.go index 57898af..f16c7f4 100644 --- a/new-api/service/file_decoder.go +++ b/heicode/service/file_decoder.go @@ -11,9 +11,9 @@ import ( "net/http" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/logger" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/logger" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/service/file_service.go b/heicode/service/file_service.go similarity index 99% rename from new-api/service/file_service.go rename to heicode/service/file_service.go index bcf4744..2674918 100644 --- a/new-api/service/file_service.go +++ b/heicode/service/file_service.go @@ -13,10 +13,10 @@ import ( "net/http" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/logger" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/logger" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" "golang.org/x/image/webp" diff --git a/new-api/service/funding_source.go b/heicode/service/funding_source.go similarity index 99% rename from new-api/service/funding_source.go rename to heicode/service/funding_source.go index fc629c8..90563c8 100644 --- a/new-api/service/funding_source.go +++ b/heicode/service/funding_source.go @@ -3,7 +3,7 @@ package service import ( "time" - "github.com/QuantumNous/new-api/model" + "github.com/heicode/manager/model" ) // --------------------------------------------------------------------------- diff --git a/new-api/service/group.go b/heicode/service/group.go similarity index 94% rename from new-api/service/group.go rename to heicode/service/group.go index a73642c..2d4b1de 100644 --- a/new-api/service/group.go +++ b/heicode/service/group.go @@ -3,8 +3,8 @@ package service import ( "strings" - "github.com/QuantumNous/new-api/setting" - "github.com/QuantumNous/new-api/setting/ratio_setting" + "github.com/heicode/manager/setting" + "github.com/heicode/manager/setting/ratio_setting" ) func GetUserUsableGroups(userGroup string) map[string]string { diff --git a/new-api/service/http.go b/heicode/service/http.go similarity index 94% rename from new-api/service/http.go rename to heicode/service/http.go index f80f2c3..cc600b1 100644 --- a/new-api/service/http.go +++ b/heicode/service/http.go @@ -6,8 +6,8 @@ import ( "io" "net/http" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/logger" + "github.com/heicode/manager/common" + "github.com/heicode/manager/logger" "github.com/gin-gonic/gin" ) diff --git a/new-api/service/http_client.go b/heicode/service/http_client.go similarity index 97% rename from new-api/service/http_client.go rename to heicode/service/http_client.go index 2c3168f..aa7c8c0 100644 --- a/new-api/service/http_client.go +++ b/heicode/service/http_client.go @@ -9,8 +9,8 @@ import ( "sync" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/setting/system_setting" + "github.com/heicode/manager/common" + "github.com/heicode/manager/setting/system_setting" "golang.org/x/net/proxy" ) diff --git a/new-api/service/image.go b/heicode/service/image.go similarity index 98% rename from new-api/service/image.go rename to heicode/service/image.go index 66181f6..9bf39fa 100644 --- a/new-api/service/image.go +++ b/heicode/service/image.go @@ -10,8 +10,8 @@ import ( "net/http" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" "golang.org/x/image/webp" ) diff --git a/new-api/service/log_info_generate.go b/heicode/service/log_info_generate.go similarity index 97% rename from new-api/service/log_info_generate.go rename to heicode/service/log_info_generate.go index 54448d5..acfb312 100644 --- a/new-api/service/log_info_generate.go +++ b/heicode/service/log_info_generate.go @@ -4,12 +4,12 @@ import ( "encoding/base64" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/pkg/billingexpr" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/pkg/billingexpr" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/service/midjourney.go b/heicode/service/midjourney.go similarity index 97% rename from new-api/service/midjourney.go rename to heicode/service/midjourney.go index bdb0fe5..f7b6639 100644 --- a/new-api/service/midjourney.go +++ b/heicode/service/midjourney.go @@ -10,11 +10,11 @@ import ( "strings" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - relayconstant "github.com/QuantumNous/new-api/relay/constant" - "github.com/QuantumNous/new-api/setting" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + relayconstant "github.com/heicode/manager/relay/constant" + "github.com/heicode/manager/setting" "github.com/gin-gonic/gin" ) diff --git a/new-api/service/notify-limit.go b/heicode/service/notify-limit.go similarity index 97% rename from new-api/service/notify-limit.go rename to heicode/service/notify-limit.go index cad5d7b..a007d97 100644 --- a/new-api/service/notify-limit.go +++ b/heicode/service/notify-limit.go @@ -6,8 +6,8 @@ import ( "sync" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" "github.com/bytedance/gopkg/util/gopool" ) diff --git a/new-api/service/openai_chat_responses_compat.go b/heicode/service/openai_chat_responses_compat.go similarity index 86% rename from new-api/service/openai_chat_responses_compat.go rename to heicode/service/openai_chat_responses_compat.go index 2e88738..0c6f765 100644 --- a/new-api/service/openai_chat_responses_compat.go +++ b/heicode/service/openai_chat_responses_compat.go @@ -1,8 +1,8 @@ package service import ( - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/service/openaicompat" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/service/openaicompat" ) func ChatCompletionsRequestToResponsesRequest(req *dto.GeneralOpenAIRequest) (*dto.OpenAIResponsesRequest, error) { diff --git a/new-api/service/openai_chat_responses_mode.go b/heicode/service/openai_chat_responses_mode.go similarity index 81% rename from new-api/service/openai_chat_responses_mode.go rename to heicode/service/openai_chat_responses_mode.go index c66c33c..7292010 100644 --- a/new-api/service/openai_chat_responses_mode.go +++ b/heicode/service/openai_chat_responses_mode.go @@ -1,8 +1,8 @@ package service import ( - "github.com/QuantumNous/new-api/service/openaicompat" - "github.com/QuantumNous/new-api/setting/model_setting" + "github.com/heicode/manager/service/openaicompat" + "github.com/heicode/manager/setting/model_setting" ) func ShouldChatCompletionsUseResponsesPolicy(policy model_setting.ChatCompletionsToResponsesPolicy, channelID int, channelType int, model string) bool { diff --git a/new-api/service/openaicompat/chat_to_responses.go b/heicode/service/openaicompat/chat_to_responses.go similarity index 99% rename from new-api/service/openaicompat/chat_to_responses.go rename to heicode/service/openaicompat/chat_to_responses.go index 16096b8..5d38c83 100644 --- a/new-api/service/openaicompat/chat_to_responses.go +++ b/heicode/service/openaicompat/chat_to_responses.go @@ -6,8 +6,8 @@ import ( "fmt" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/dto" + "github.com/heicode/manager/common" + "github.com/heicode/manager/dto" "github.com/samber/lo" ) diff --git a/new-api/service/openaicompat/policy.go b/heicode/service/openaicompat/policy.go similarity index 90% rename from new-api/service/openaicompat/policy.go rename to heicode/service/openaicompat/policy.go index b600b0f..e7489c6 100644 --- a/new-api/service/openaicompat/policy.go +++ b/heicode/service/openaicompat/policy.go @@ -1,6 +1,6 @@ package openaicompat -import "github.com/QuantumNous/new-api/setting/model_setting" +import "github.com/heicode/manager/setting/model_setting" func ShouldChatCompletionsUseResponsesPolicy(policy model_setting.ChatCompletionsToResponsesPolicy, channelID int, channelType int, model string) bool { if !policy.IsChannelEnabled(channelID, channelType) { diff --git a/new-api/service/openaicompat/regex.go b/heicode/service/openaicompat/regex.go similarity index 100% rename from new-api/service/openaicompat/regex.go rename to heicode/service/openaicompat/regex.go diff --git a/new-api/service/openaicompat/responses_to_chat.go b/heicode/service/openaicompat/responses_to_chat.go similarity index 98% rename from new-api/service/openaicompat/responses_to_chat.go rename to heicode/service/openaicompat/responses_to_chat.go index d1c7473..ecb23bd 100644 --- a/new-api/service/openaicompat/responses_to_chat.go +++ b/heicode/service/openaicompat/responses_to_chat.go @@ -4,7 +4,7 @@ import ( "errors" "strings" - "github.com/QuantumNous/new-api/dto" + "github.com/heicode/manager/dto" ) func ResponsesResponseToChatCompletionsResponse(resp *dto.OpenAIResponsesResponse, id string) (*dto.OpenAITextResponse, *dto.Usage, error) { diff --git a/new-api/service/passkey/service.go b/heicode/service/passkey/service.go similarity index 98% rename from new-api/service/passkey/service.go rename to heicode/service/passkey/service.go index 4d29d1a..da182fe 100644 --- a/new-api/service/passkey/service.go +++ b/heicode/service/passkey/service.go @@ -9,8 +9,8 @@ import ( "strings" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/setting/system_setting" + "github.com/heicode/manager/common" + "github.com/heicode/manager/setting/system_setting" "github.com/go-webauthn/webauthn/protocol" webauthn "github.com/go-webauthn/webauthn/webauthn" diff --git a/new-api/service/passkey/session.go b/heicode/service/passkey/session.go similarity index 100% rename from new-api/service/passkey/session.go rename to heicode/service/passkey/session.go diff --git a/new-api/service/passkey/user.go b/heicode/service/passkey/user.go similarity index 97% rename from new-api/service/passkey/user.go rename to heicode/service/passkey/user.go index 2ec248a..571ef14 100644 --- a/new-api/service/passkey/user.go +++ b/heicode/service/passkey/user.go @@ -5,7 +5,7 @@ import ( "strconv" "strings" - "github.com/QuantumNous/new-api/model" + "github.com/heicode/manager/model" webauthn "github.com/go-webauthn/webauthn/webauthn" ) diff --git a/new-api/service/pre_consume_quota.go b/heicode/service/pre_consume_quota.go similarity index 93% rename from new-api/service/pre_consume_quota.go rename to heicode/service/pre_consume_quota.go index d1c8365..c9d5820 100644 --- a/new-api/service/pre_consume_quota.go +++ b/heicode/service/pre_consume_quota.go @@ -4,11 +4,11 @@ import ( "fmt" "net/http" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/logger" - "github.com/QuantumNous/new-api/model" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/logger" + "github.com/heicode/manager/model" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/types" "github.com/bytedance/gopkg/util/gopool" "github.com/gin-gonic/gin" diff --git a/new-api/service/quota.go b/heicode/service/quota.go similarity index 97% rename from new-api/service/quota.go rename to heicode/service/quota.go index 398bd1b..1c534a8 100644 --- a/new-api/service/quota.go +++ b/heicode/service/quota.go @@ -8,16 +8,16 @@ import ( "strings" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/logger" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/pkg/billingexpr" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/setting/ratio_setting" - "github.com/QuantumNous/new-api/setting/system_setting" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/logger" + "github.com/heicode/manager/model" + "github.com/heicode/manager/pkg/billingexpr" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/setting/ratio_setting" + "github.com/heicode/manager/setting/system_setting" + "github.com/heicode/manager/types" "github.com/bytedance/gopkg/util/gopool" diff --git a/new-api/service/sensitive.go b/heicode/service/sensitive.go similarity index 95% rename from new-api/service/sensitive.go rename to heicode/service/sensitive.go index 3c78099..257b34e 100644 --- a/new-api/service/sensitive.go +++ b/heicode/service/sensitive.go @@ -4,8 +4,8 @@ import ( "errors" "strings" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/setting" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/setting" ) func CheckSensitiveMessages(messages []dto.Message) ([]string, error) { diff --git a/new-api/service/str.go b/heicode/service/str.go similarity index 100% rename from new-api/service/str.go rename to heicode/service/str.go diff --git a/new-api/service/subscription_reset_task.go b/heicode/service/subscription_reset_task.go similarity index 94% rename from new-api/service/subscription_reset_task.go rename to heicode/service/subscription_reset_task.go index 9dcd373..6265cdd 100644 --- a/new-api/service/subscription_reset_task.go +++ b/heicode/service/subscription_reset_task.go @@ -7,9 +7,9 @@ import ( "sync/atomic" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/logger" - "github.com/QuantumNous/new-api/model" + "github.com/heicode/manager/common" + "github.com/heicode/manager/logger" + "github.com/heicode/manager/model" "github.com/bytedance/gopkg/util/gopool" ) diff --git a/new-api/service/task.go b/heicode/service/task.go similarity index 82% rename from new-api/service/task.go rename to heicode/service/task.go index b33ef29..fd27c5b 100644 --- a/new-api/service/task.go +++ b/heicode/service/task.go @@ -3,7 +3,7 @@ package service import ( "strings" - "github.com/QuantumNous/new-api/constant" + "github.com/heicode/manager/constant" ) func CoverTaskActionToModelName(platform constant.TaskPlatform, action string) string { diff --git a/new-api/service/task_billing.go b/heicode/service/task_billing.go similarity index 97% rename from new-api/service/task_billing.go rename to heicode/service/task_billing.go index 6cf7a96..d8edbfe 100644 --- a/new-api/service/task_billing.go +++ b/heicode/service/task_billing.go @@ -5,12 +5,12 @@ import ( "fmt" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/logger" - "github.com/QuantumNous/new-api/model" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/setting/ratio_setting" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/logger" + "github.com/heicode/manager/model" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/setting/ratio_setting" "github.com/gin-gonic/gin" ) diff --git a/new-api/service/task_billing_test.go b/heicode/service/task_billing_test.go similarity index 99% rename from new-api/service/task_billing_test.go rename to heicode/service/task_billing_test.go index 39cb8f1..6158dba 100644 --- a/new-api/service/task_billing_test.go +++ b/heicode/service/task_billing_test.go @@ -8,9 +8,9 @@ import ( "testing" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/model" - relaycommon "github.com/QuantumNous/new-api/relay/common" + "github.com/heicode/manager/common" + "github.com/heicode/manager/model" + relaycommon "github.com/heicode/manager/relay/common" "github.com/glebarez/sqlite" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/new-api/service/task_polling.go b/heicode/service/task_polling.go similarity index 98% rename from new-api/service/task_polling.go rename to heicode/service/task_polling.go index dc85e57..20ba6ea 100644 --- a/new-api/service/task_polling.go +++ b/heicode/service/task_polling.go @@ -10,13 +10,13 @@ import ( "strings" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/logger" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/relay/channel/task/taskcommon" - relaycommon "github.com/QuantumNous/new-api/relay/common" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/logger" + "github.com/heicode/manager/model" + "github.com/heicode/manager/relay/channel/task/taskcommon" + relaycommon "github.com/heicode/manager/relay/common" "github.com/samber/lo" ) diff --git a/new-api/service/text_quota.go b/heicode/service/text_quota.go similarity index 98% rename from new-api/service/text_quota.go rename to heicode/service/text_quota.go index 6f9f73c..0988f74 100644 --- a/new-api/service/text_quota.go +++ b/heicode/service/text_quota.go @@ -5,15 +5,15 @@ import ( "strings" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/logger" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/pkg/billingexpr" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/setting/operation_setting" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/logger" + "github.com/heicode/manager/model" + "github.com/heicode/manager/pkg/billingexpr" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/setting/operation_setting" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" "github.com/shopspring/decimal" diff --git a/new-api/service/text_quota_test.go b/heicode/service/text_quota_test.go similarity index 98% rename from new-api/service/text_quota_test.go rename to heicode/service/text_quota_test.go index 37ce187..82669db 100644 --- a/new-api/service/text_quota_test.go +++ b/heicode/service/text_quota_test.go @@ -5,11 +5,11 @@ import ( "testing" "time" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/pkg/billingexpr" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/pkg/billingexpr" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" "github.com/stretchr/testify/require" diff --git a/new-api/service/tiered_settle.go b/heicode/service/tiered_settle.go similarity index 95% rename from new-api/service/tiered_settle.go rename to heicode/service/tiered_settle.go index a97ec08..05e157d 100644 --- a/new-api/service/tiered_settle.go +++ b/heicode/service/tiered_settle.go @@ -1,9 +1,9 @@ package service import ( - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/pkg/billingexpr" - relaycommon "github.com/QuantumNous/new-api/relay/common" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/pkg/billingexpr" + relaycommon "github.com/heicode/manager/relay/common" ) // TieredResultWrapper wraps billingexpr.TieredResult for use at the service layer. diff --git a/new-api/service/tiered_settle_test.go b/heicode/service/tiered_settle_test.go similarity index 99% rename from new-api/service/tiered_settle_test.go rename to heicode/service/tiered_settle_test.go index cb6676f..d1ed7d7 100644 --- a/new-api/service/tiered_settle_test.go +++ b/heicode/service/tiered_settle_test.go @@ -6,9 +6,9 @@ import ( "sync" "testing" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/pkg/billingexpr" - relaycommon "github.com/QuantumNous/new-api/relay/common" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/pkg/billingexpr" + relaycommon "github.com/heicode/manager/relay/common" "github.com/shopspring/decimal" ) diff --git a/new-api/service/token_counter.go b/heicode/service/token_counter.go similarity index 97% rename from new-api/service/token_counter.go rename to heicode/service/token_counter.go index 63b76d9..ae1fbba 100644 --- a/new-api/service/token_counter.go +++ b/heicode/service/token_counter.go @@ -9,12 +9,12 @@ import ( "strings" "unicode/utf8" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" - relaycommon "github.com/QuantumNous/new-api/relay/common" - constant2 "github.com/QuantumNous/new-api/relay/constant" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" + relaycommon "github.com/heicode/manager/relay/common" + constant2 "github.com/heicode/manager/relay/constant" + "github.com/heicode/manager/types" "github.com/gin-gonic/gin" ) diff --git a/new-api/service/token_estimator.go b/heicode/service/token_estimator.go similarity index 100% rename from new-api/service/token_estimator.go rename to heicode/service/token_estimator.go diff --git a/new-api/service/tokenizer.go b/heicode/service/tokenizer.go similarity index 97% rename from new-api/service/tokenizer.go rename to heicode/service/tokenizer.go index 9cf632b..0b8a91a 100644 --- a/new-api/service/tokenizer.go +++ b/heicode/service/tokenizer.go @@ -3,7 +3,7 @@ package service import ( "sync" - "github.com/QuantumNous/new-api/common" + "github.com/heicode/manager/common" "github.com/tiktoken-go/tokenizer" "github.com/tiktoken-go/tokenizer/codec" ) diff --git a/new-api/service/tool_billing.go b/heicode/service/tool_billing.go similarity index 95% rename from new-api/service/tool_billing.go rename to heicode/service/tool_billing.go index fd28fdd..03ae01c 100644 --- a/new-api/service/tool_billing.go +++ b/heicode/service/tool_billing.go @@ -3,8 +3,8 @@ package service import ( "math" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/setting/operation_setting" + "github.com/heicode/manager/common" + "github.com/heicode/manager/setting/operation_setting" ) // ToolCallUsage captures all tool call counts from a single request. diff --git a/new-api/service/usage_helpr.go b/heicode/service/usage_helpr.go similarity index 89% rename from new-api/service/usage_helpr.go rename to heicode/service/usage_helpr.go index 97d54c4..504e6c5 100644 --- a/new-api/service/usage_helpr.go +++ b/heicode/service/usage_helpr.go @@ -1,9 +1,9 @@ package service import ( - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" - "github.com/QuantumNous/new-api/dto" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" + "github.com/heicode/manager/dto" "github.com/gin-gonic/gin" ) diff --git a/new-api/service/user_notify.go b/heicode/service/user_notify.go similarity index 98% rename from new-api/service/user_notify.go rename to heicode/service/user_notify.go index 27a72b8..6f047f6 100644 --- a/new-api/service/user_notify.go +++ b/heicode/service/user_notify.go @@ -8,10 +8,10 @@ import ( "net/url" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/setting/system_setting" + "github.com/heicode/manager/common" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/model" + "github.com/heicode/manager/setting/system_setting" ) func NotifyRootUser(t string, subject string, content string) { diff --git a/new-api/service/violation_fee.go b/heicode/service/violation_fee.go similarity index 94% rename from new-api/service/violation_fee.go rename to heicode/service/violation_fee.go index 4550885..6240260 100644 --- a/new-api/service/violation_fee.go +++ b/heicode/service/violation_fee.go @@ -5,12 +5,12 @@ import ( "strings" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/logger" - "github.com/QuantumNous/new-api/model" - relaycommon "github.com/QuantumNous/new-api/relay/common" - "github.com/QuantumNous/new-api/setting/model_setting" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/logger" + "github.com/heicode/manager/model" + relaycommon "github.com/heicode/manager/relay/common" + "github.com/heicode/manager/setting/model_setting" + "github.com/heicode/manager/types" "github.com/shopspring/decimal" diff --git a/new-api/service/waffo_pancake.go b/heicode/service/waffo_pancake.go similarity index 98% rename from new-api/service/waffo_pancake.go rename to heicode/service/waffo_pancake.go index 9033c37..0e679fc 100644 --- a/new-api/service/waffo_pancake.go +++ b/heicode/service/waffo_pancake.go @@ -17,10 +17,10 @@ import ( "strings" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/setting" + "github.com/heicode/manager/common" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/model" + "github.com/heicode/manager/setting" ) const ( diff --git a/new-api/service/waffo_pancake_test.go b/heicode/service/waffo_pancake_test.go similarity index 96% rename from new-api/service/waffo_pancake_test.go rename to heicode/service/waffo_pancake_test.go index eeb1012..c7bfe38 100644 --- a/new-api/service/waffo_pancake_test.go +++ b/heicode/service/waffo_pancake_test.go @@ -6,9 +6,9 @@ import ( "testing" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/model" - "github.com/QuantumNous/new-api/setting" + "github.com/heicode/manager/common" + "github.com/heicode/manager/model" + "github.com/heicode/manager/setting" "github.com/glebarez/sqlite" "github.com/stretchr/testify/require" "gorm.io/gorm" diff --git a/new-api/service/webhook.go b/heicode/service/webhook.go similarity index 96% rename from new-api/service/webhook.go rename to heicode/service/webhook.go index bab8842..8148d06 100644 --- a/new-api/service/webhook.go +++ b/heicode/service/webhook.go @@ -10,9 +10,9 @@ import ( "net/http" "time" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/dto" - "github.com/QuantumNous/new-api/setting/system_setting" + "github.com/heicode/manager/common" + "github.com/heicode/manager/dto" + "github.com/heicode/manager/setting/system_setting" ) // WebhookPayload webhook 通知的负载数据 diff --git a/new-api/setting/auto_group.go b/heicode/setting/auto_group.go similarity index 93% rename from new-api/setting/auto_group.go rename to heicode/setting/auto_group.go index 9261286..e7b22a3 100644 --- a/new-api/setting/auto_group.go +++ b/heicode/setting/auto_group.go @@ -1,7 +1,7 @@ package setting import ( - "github.com/QuantumNous/new-api/common" + "github.com/heicode/manager/common" ) var autoGroups = []string{ diff --git a/new-api/setting/billing_setting/tiered_billing.go b/heicode/setting/billing_setting/tiered_billing.go similarity index 96% rename from new-api/setting/billing_setting/tiered_billing.go rename to heicode/setting/billing_setting/tiered_billing.go index 46dc70d..e9881cf 100644 --- a/new-api/setting/billing_setting/tiered_billing.go +++ b/heicode/setting/billing_setting/tiered_billing.go @@ -3,8 +3,8 @@ package billing_setting import ( "fmt" - "github.com/QuantumNous/new-api/pkg/billingexpr" - "github.com/QuantumNous/new-api/setting/config" + "github.com/heicode/manager/pkg/billingexpr" + "github.com/heicode/manager/setting/config" "github.com/samber/lo" ) diff --git a/new-api/setting/chat.go b/heicode/setting/chat.go similarity index 96% rename from new-api/setting/chat.go rename to heicode/setting/chat.go index 417ee85..3052155 100644 --- a/new-api/setting/chat.go +++ b/heicode/setting/chat.go @@ -3,7 +3,7 @@ package setting import ( "encoding/json" - "github.com/QuantumNous/new-api/common" + "github.com/heicode/manager/common" ) var Chats = []map[string]string{ diff --git a/new-api/setting/config/config.go b/heicode/setting/config/config.go similarity index 99% rename from new-api/setting/config/config.go rename to heicode/setting/config/config.go index a82d934..418bbdf 100644 --- a/new-api/setting/config/config.go +++ b/heicode/setting/config/config.go @@ -7,7 +7,7 @@ import ( "strings" "sync" - "github.com/QuantumNous/new-api/common" + "github.com/heicode/manager/common" ) // ConfigManager 统一管理所有配置 diff --git a/new-api/setting/config/config_test.go b/heicode/setting/config/config_test.go similarity index 100% rename from new-api/setting/config/config_test.go rename to heicode/setting/config/config_test.go diff --git a/new-api/setting/console_setting/config.go b/heicode/setting/console_setting/config.go similarity index 96% rename from new-api/setting/console_setting/config.go rename to heicode/setting/console_setting/config.go index 144e95c..4fc620d 100644 --- a/new-api/setting/console_setting/config.go +++ b/heicode/setting/console_setting/config.go @@ -1,6 +1,6 @@ package console_setting -import "github.com/QuantumNous/new-api/setting/config" +import "github.com/heicode/manager/setting/config" type ConsoleSetting struct { ApiInfo string `json:"api_info"` // 控制台 API 信息 (JSON 数组字符串) diff --git a/new-api/setting/console_setting/validation.go b/heicode/setting/console_setting/validation.go similarity index 100% rename from new-api/setting/console_setting/validation.go rename to heicode/setting/console_setting/validation.go diff --git a/new-api/setting/midjourney.go b/heicode/setting/midjourney.go similarity index 100% rename from new-api/setting/midjourney.go rename to heicode/setting/midjourney.go diff --git a/new-api/setting/model_setting/claude.go b/heicode/setting/model_setting/claude.go similarity index 98% rename from new-api/setting/model_setting/claude.go rename to heicode/setting/model_setting/claude.go index 3173bda..a0be8a7 100644 --- a/new-api/setting/model_setting/claude.go +++ b/heicode/setting/model_setting/claude.go @@ -4,7 +4,7 @@ import ( "net/http" "strings" - "github.com/QuantumNous/new-api/setting/config" + "github.com/heicode/manager/setting/config" ) //var claudeHeadersSettings = map[string][]string{} diff --git a/new-api/setting/model_setting/claude_test.go b/heicode/setting/model_setting/claude_test.go similarity index 100% rename from new-api/setting/model_setting/claude_test.go rename to heicode/setting/model_setting/claude_test.go diff --git a/new-api/setting/model_setting/gemini.go b/heicode/setting/model_setting/gemini.go similarity index 97% rename from new-api/setting/model_setting/gemini.go rename to heicode/setting/model_setting/gemini.go index dea7131..3ecc38c 100644 --- a/new-api/setting/model_setting/gemini.go +++ b/heicode/setting/model_setting/gemini.go @@ -1,7 +1,7 @@ package model_setting import ( - "github.com/QuantumNous/new-api/setting/config" + "github.com/heicode/manager/setting/config" ) // GeminiSettings defines Gemini model configuration. 注意bool要以enabled结尾才可以生效编辑 diff --git a/new-api/setting/model_setting/global.go b/heicode/setting/model_setting/global.go similarity index 97% rename from new-api/setting/model_setting/global.go rename to heicode/setting/model_setting/global.go index d0c4d31..9d5302e 100644 --- a/new-api/setting/model_setting/global.go +++ b/heicode/setting/model_setting/global.go @@ -4,7 +4,7 @@ import ( "slices" "strings" - "github.com/QuantumNous/new-api/setting/config" + "github.com/heicode/manager/setting/config" ) type ChatCompletionsToResponsesPolicy struct { diff --git a/new-api/setting/model_setting/grok.go b/heicode/setting/model_setting/grok.go similarity index 90% rename from new-api/setting/model_setting/grok.go rename to heicode/setting/model_setting/grok.go index d558679..64198f4 100644 --- a/new-api/setting/model_setting/grok.go +++ b/heicode/setting/model_setting/grok.go @@ -1,6 +1,6 @@ package model_setting -import "github.com/QuantumNous/new-api/setting/config" +import "github.com/heicode/manager/setting/config" // GrokSettings defines Grok model configuration. type GrokSettings struct { diff --git a/new-api/setting/model_setting/qwen.go b/heicode/setting/model_setting/qwen.go similarity index 95% rename from new-api/setting/model_setting/qwen.go rename to heicode/setting/model_setting/qwen.go index ffbcd9d..b25f7a8 100644 --- a/new-api/setting/model_setting/qwen.go +++ b/heicode/setting/model_setting/qwen.go @@ -3,7 +3,7 @@ package model_setting import ( "strings" - "github.com/QuantumNous/new-api/setting/config" + "github.com/heicode/manager/setting/config" ) // QwenSettings defines Qwen model configuration. 注意bool要以enabled结尾才可以生效编辑 diff --git a/new-api/setting/operation_setting/channel_affinity_setting.go b/heicode/setting/operation_setting/channel_affinity_setting.go similarity index 98% rename from new-api/setting/operation_setting/channel_affinity_setting.go rename to heicode/setting/operation_setting/channel_affinity_setting.go index 8cd605c..9d52d0c 100644 --- a/new-api/setting/operation_setting/channel_affinity_setting.go +++ b/heicode/setting/operation_setting/channel_affinity_setting.go @@ -1,6 +1,6 @@ package operation_setting -import "github.com/QuantumNous/new-api/setting/config" +import "github.com/heicode/manager/setting/config" type ChannelAffinityKeySource struct { Type string `json:"type"` // context_int, context_string, gjson diff --git a/new-api/setting/operation_setting/checkin_setting.go b/heicode/setting/operation_setting/checkin_setting.go similarity index 94% rename from new-api/setting/operation_setting/checkin_setting.go rename to heicode/setting/operation_setting/checkin_setting.go index dd4e359..d7fd680 100644 --- a/new-api/setting/operation_setting/checkin_setting.go +++ b/heicode/setting/operation_setting/checkin_setting.go @@ -1,6 +1,6 @@ package operation_setting -import "github.com/QuantumNous/new-api/setting/config" +import "github.com/heicode/manager/setting/config" // CheckinSetting 签到功能配置 type CheckinSetting struct { diff --git a/new-api/setting/operation_setting/general_setting.go b/heicode/setting/operation_setting/general_setting.go similarity index 97% rename from new-api/setting/operation_setting/general_setting.go rename to heicode/setting/operation_setting/general_setting.go index b4a3ccc..52a9f1f 100644 --- a/new-api/setting/operation_setting/general_setting.go +++ b/heicode/setting/operation_setting/general_setting.go @@ -1,6 +1,6 @@ package operation_setting -import "github.com/QuantumNous/new-api/setting/config" +import "github.com/heicode/manager/setting/config" // 额度展示类型 const ( diff --git a/new-api/setting/operation_setting/monitor_setting.go b/heicode/setting/operation_setting/monitor_setting.go similarity index 94% rename from new-api/setting/operation_setting/monitor_setting.go rename to heicode/setting/operation_setting/monitor_setting.go index 541e25f..d6fd4f7 100644 --- a/new-api/setting/operation_setting/monitor_setting.go +++ b/heicode/setting/operation_setting/monitor_setting.go @@ -4,7 +4,7 @@ import ( "os" "strconv" - "github.com/QuantumNous/new-api/setting/config" + "github.com/heicode/manager/setting/config" ) type MonitorSetting struct { diff --git a/new-api/setting/operation_setting/operation_setting.go b/heicode/setting/operation_setting/operation_setting.go similarity index 100% rename from new-api/setting/operation_setting/operation_setting.go rename to heicode/setting/operation_setting/operation_setting.go diff --git a/new-api/setting/operation_setting/payment_setting.go b/heicode/setting/operation_setting/payment_setting.go similarity index 91% rename from new-api/setting/operation_setting/payment_setting.go rename to heicode/setting/operation_setting/payment_setting.go index 84162f4..54aba63 100644 --- a/new-api/setting/operation_setting/payment_setting.go +++ b/heicode/setting/operation_setting/payment_setting.go @@ -1,6 +1,6 @@ package operation_setting -import "github.com/QuantumNous/new-api/setting/config" +import "github.com/heicode/manager/setting/config" type PaymentSetting struct { AmountOptions []int `json:"amount_options"` diff --git a/new-api/setting/operation_setting/payment_setting_old.go b/heicode/setting/operation_setting/payment_setting_old.go similarity index 96% rename from new-api/setting/operation_setting/payment_setting_old.go rename to heicode/setting/operation_setting/payment_setting_old.go index d34b6f0..3e815cc 100644 --- a/new-api/setting/operation_setting/payment_setting_old.go +++ b/heicode/setting/operation_setting/payment_setting_old.go @@ -6,7 +6,7 @@ This file is the old version of the payment settings file. If you need to add ne package operation_setting import ( - "github.com/QuantumNous/new-api/common" + "github.com/heicode/manager/common" ) var PayAddress = "" diff --git a/new-api/setting/operation_setting/quota_setting.go b/heicode/setting/operation_setting/quota_setting.go similarity index 88% rename from new-api/setting/operation_setting/quota_setting.go rename to heicode/setting/operation_setting/quota_setting.go index dcf0501..7f16c9a 100644 --- a/new-api/setting/operation_setting/quota_setting.go +++ b/heicode/setting/operation_setting/quota_setting.go @@ -1,6 +1,6 @@ package operation_setting -import "github.com/QuantumNous/new-api/setting/config" +import "github.com/heicode/manager/setting/config" type QuotaSetting struct { EnableFreeModelPreConsume bool `json:"enable_free_model_pre_consume"` // 是否对免费模型启用预消耗 diff --git a/new-api/setting/operation_setting/status_code_ranges.go b/heicode/setting/operation_setting/status_code_ranges.go similarity index 99% rename from new-api/setting/operation_setting/status_code_ranges.go rename to heicode/setting/operation_setting/status_code_ranges.go index 14cfaca..61bfcff 100644 --- a/new-api/setting/operation_setting/status_code_ranges.go +++ b/heicode/setting/operation_setting/status_code_ranges.go @@ -6,7 +6,7 @@ import ( "strconv" "strings" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/types" ) type StatusCodeRange struct { diff --git a/new-api/setting/operation_setting/status_code_ranges_test.go b/heicode/setting/operation_setting/status_code_ranges_test.go similarity index 100% rename from new-api/setting/operation_setting/status_code_ranges_test.go rename to heicode/setting/operation_setting/status_code_ranges_test.go diff --git a/new-api/setting/operation_setting/token_setting.go b/heicode/setting/operation_setting/token_setting.go similarity index 91% rename from new-api/setting/operation_setting/token_setting.go rename to heicode/setting/operation_setting/token_setting.go index 0d4c4e2..04a216c 100644 --- a/new-api/setting/operation_setting/token_setting.go +++ b/heicode/setting/operation_setting/token_setting.go @@ -1,6 +1,6 @@ package operation_setting -import "github.com/QuantumNous/new-api/setting/config" +import "github.com/heicode/manager/setting/config" // TokenSetting 令牌相关配置 type TokenSetting struct { diff --git a/new-api/setting/operation_setting/tools.go b/heicode/setting/operation_setting/tools.go similarity index 99% rename from new-api/setting/operation_setting/tools.go rename to heicode/setting/operation_setting/tools.go index 0eb2da0..c6f36de 100644 --- a/new-api/setting/operation_setting/tools.go +++ b/heicode/setting/operation_setting/tools.go @@ -5,7 +5,7 @@ import ( "strings" "sync/atomic" - "github.com/QuantumNous/new-api/setting/config" + "github.com/heicode/manager/setting/config" ) // --------------------------------------------------------------------------- diff --git a/new-api/setting/payment_creem.go b/heicode/setting/payment_creem.go similarity index 100% rename from new-api/setting/payment_creem.go rename to heicode/setting/payment_creem.go diff --git a/new-api/setting/payment_stripe.go b/heicode/setting/payment_stripe.go similarity index 100% rename from new-api/setting/payment_stripe.go rename to heicode/setting/payment_stripe.go diff --git a/new-api/setting/payment_waffo.go b/heicode/setting/payment_waffo.go similarity index 95% rename from new-api/setting/payment_waffo.go rename to heicode/setting/payment_waffo.go index c27ca6f..3ab7ad0 100644 --- a/new-api/setting/payment_waffo.go +++ b/heicode/setting/payment_waffo.go @@ -1,8 +1,8 @@ package setting import ( - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/constant" + "github.com/heicode/manager/common" + "github.com/heicode/manager/constant" ) var ( diff --git a/new-api/setting/payment_waffo_pancake.go b/heicode/setting/payment_waffo_pancake.go similarity index 100% rename from new-api/setting/payment_waffo_pancake.go rename to heicode/setting/payment_waffo_pancake.go diff --git a/new-api/setting/performance_setting/config.go b/heicode/setting/performance_setting/config.go similarity index 96% rename from new-api/setting/performance_setting/config.go rename to heicode/setting/performance_setting/config.go index 4f02dc7..c5c317a 100644 --- a/new-api/setting/performance_setting/config.go +++ b/heicode/setting/performance_setting/config.go @@ -1,8 +1,8 @@ package performance_setting import ( - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/setting/config" + "github.com/heicode/manager/common" + "github.com/heicode/manager/setting/config" ) // PerformanceSetting 性能设置配置 diff --git a/new-api/setting/rate_limit.go b/heicode/setting/rate_limit.go similarity index 97% rename from new-api/setting/rate_limit.go rename to heicode/setting/rate_limit.go index 413f395..ffc354b 100644 --- a/new-api/setting/rate_limit.go +++ b/heicode/setting/rate_limit.go @@ -6,7 +6,7 @@ import ( "math" "sync" - "github.com/QuantumNous/new-api/common" + "github.com/heicode/manager/common" ) var ModelRequestRateLimitEnabled = false diff --git a/new-api/setting/ratio_setting/cache_ratio.go b/heicode/setting/ratio_setting/cache_ratio.go similarity index 99% rename from new-api/setting/ratio_setting/cache_ratio.go rename to heicode/setting/ratio_setting/cache_ratio.go index fe6e3b3..9074448 100644 --- a/new-api/setting/ratio_setting/cache_ratio.go +++ b/heicode/setting/ratio_setting/cache_ratio.go @@ -1,7 +1,7 @@ package ratio_setting import ( - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/types" ) var defaultCacheRatio = map[string]float64{ diff --git a/new-api/setting/ratio_setting/compact_suffix.go b/heicode/setting/ratio_setting/compact_suffix.go similarity index 100% rename from new-api/setting/ratio_setting/compact_suffix.go rename to heicode/setting/ratio_setting/compact_suffix.go diff --git a/new-api/setting/ratio_setting/expose_ratio.go b/heicode/setting/ratio_setting/expose_ratio.go similarity index 100% rename from new-api/setting/ratio_setting/expose_ratio.go rename to heicode/setting/ratio_setting/expose_ratio.go diff --git a/new-api/setting/ratio_setting/exposed_cache.go b/heicode/setting/ratio_setting/exposed_cache.go similarity index 100% rename from new-api/setting/ratio_setting/exposed_cache.go rename to heicode/setting/ratio_setting/exposed_cache.go diff --git a/new-api/setting/ratio_setting/group_ratio.go b/heicode/setting/ratio_setting/group_ratio.go similarity index 95% rename from new-api/setting/ratio_setting/group_ratio.go rename to heicode/setting/ratio_setting/group_ratio.go index 637aef6..d304c4a 100644 --- a/new-api/setting/ratio_setting/group_ratio.go +++ b/heicode/setting/ratio_setting/group_ratio.go @@ -4,9 +4,9 @@ import ( "encoding/json" "errors" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/setting/config" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/setting/config" + "github.com/heicode/manager/types" ) var defaultGroupRatio = map[string]float64{ diff --git a/new-api/setting/ratio_setting/model_ratio.go b/heicode/setting/ratio_setting/model_ratio.go similarity index 99% rename from new-api/setting/ratio_setting/model_ratio.go rename to heicode/setting/ratio_setting/model_ratio.go index 80702ee..af49611 100644 --- a/new-api/setting/ratio_setting/model_ratio.go +++ b/heicode/setting/ratio_setting/model_ratio.go @@ -3,9 +3,9 @@ package ratio_setting import ( "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/setting/operation_setting" - "github.com/QuantumNous/new-api/types" + "github.com/heicode/manager/common" + "github.com/heicode/manager/setting/operation_setting" + "github.com/heicode/manager/types" ) // from songquanpeng/one-api diff --git a/new-api/setting/reasoning/suffix.go b/heicode/setting/reasoning/suffix.go similarity index 100% rename from new-api/setting/reasoning/suffix.go rename to heicode/setting/reasoning/suffix.go diff --git a/new-api/setting/sensitive.go b/heicode/setting/sensitive.go similarity index 100% rename from new-api/setting/sensitive.go rename to heicode/setting/sensitive.go diff --git a/new-api/setting/system_setting/discord.go b/heicode/setting/system_setting/discord.go similarity index 88% rename from new-api/setting/system_setting/discord.go rename to heicode/setting/system_setting/discord.go index f478906..5ad4cd1 100644 --- a/new-api/setting/system_setting/discord.go +++ b/heicode/setting/system_setting/discord.go @@ -1,6 +1,6 @@ package system_setting -import "github.com/QuantumNous/new-api/setting/config" +import "github.com/heicode/manager/setting/config" type DiscordSettings struct { Enabled bool `json:"enabled"` diff --git a/new-api/setting/system_setting/fetch_setting.go b/heicode/setting/system_setting/fetch_setting.go similarity index 96% rename from new-api/setting/system_setting/fetch_setting.go rename to heicode/setting/system_setting/fetch_setting.go index c71be03..e8da9cc 100644 --- a/new-api/setting/system_setting/fetch_setting.go +++ b/heicode/setting/system_setting/fetch_setting.go @@ -1,6 +1,6 @@ package system_setting -import "github.com/QuantumNous/new-api/setting/config" +import "github.com/heicode/manager/setting/config" type FetchSetting struct { EnableSSRFProtection bool `json:"enable_ssrf_protection"` // 是否启用SSRF防护 diff --git a/new-api/setting/system_setting/legal.go b/heicode/setting/system_setting/legal.go similarity index 87% rename from new-api/setting/system_setting/legal.go rename to heicode/setting/system_setting/legal.go index cc84d40..e9ab199 100644 --- a/new-api/setting/system_setting/legal.go +++ b/heicode/setting/system_setting/legal.go @@ -1,6 +1,6 @@ package system_setting -import "github.com/QuantumNous/new-api/setting/config" +import "github.com/heicode/manager/setting/config" type LegalSettings struct { UserAgreement string `json:"user_agreement"` diff --git a/new-api/setting/system_setting/oidc.go b/heicode/setting/system_setting/oidc.go similarity index 92% rename from new-api/setting/system_setting/oidc.go rename to heicode/setting/system_setting/oidc.go index 307d3b4..43adc22 100644 --- a/new-api/setting/system_setting/oidc.go +++ b/heicode/setting/system_setting/oidc.go @@ -1,6 +1,6 @@ package system_setting -import "github.com/QuantumNous/new-api/setting/config" +import "github.com/heicode/manager/setting/config" type OIDCSettings struct { Enabled bool `json:"enabled"` diff --git a/new-api/setting/system_setting/passkey.go b/heicode/setting/system_setting/passkey.go similarity index 94% rename from new-api/setting/system_setting/passkey.go rename to heicode/setting/system_setting/passkey.go index 4185589..932e81d 100644 --- a/new-api/setting/system_setting/passkey.go +++ b/heicode/setting/system_setting/passkey.go @@ -4,8 +4,8 @@ import ( "net/url" "strings" - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/setting/config" + "github.com/heicode/manager/common" + "github.com/heicode/manager/setting/config" ) type PasskeySettings struct { diff --git a/new-api/setting/system_setting/system_setting_old.go b/heicode/setting/system_setting/system_setting_old.go similarity index 100% rename from new-api/setting/system_setting/system_setting_old.go rename to heicode/setting/system_setting/system_setting_old.go diff --git a/new-api/setting/system_setting/theme.go b/heicode/setting/system_setting/theme.go similarity index 85% rename from new-api/setting/system_setting/theme.go rename to heicode/setting/system_setting/theme.go index 5ff973d..2d577c4 100644 --- a/new-api/setting/system_setting/theme.go +++ b/heicode/setting/system_setting/theme.go @@ -1,8 +1,8 @@ package system_setting import ( - "github.com/QuantumNous/new-api/common" - "github.com/QuantumNous/new-api/setting/config" + "github.com/heicode/manager/common" + "github.com/heicode/manager/setting/config" ) type ThemeSettings struct { diff --git a/new-api/setting/user_usable_group.go b/heicode/setting/user_usable_group.go similarity index 96% rename from new-api/setting/user_usable_group.go rename to heicode/setting/user_usable_group.go index eb04b7f..d81ede0 100644 --- a/new-api/setting/user_usable_group.go +++ b/heicode/setting/user_usable_group.go @@ -4,7 +4,7 @@ import ( "encoding/json" "sync" - "github.com/QuantumNous/new-api/common" + "github.com/heicode/manager/common" ) var userUsableGroups = map[string]string{ diff --git a/new-api/types/channel_error.go b/heicode/types/channel_error.go similarity index 100% rename from new-api/types/channel_error.go rename to heicode/types/channel_error.go diff --git a/new-api/types/error.go b/heicode/types/error.go similarity index 99% rename from new-api/types/error.go rename to heicode/types/error.go index 9717401..5e4941e 100644 --- a/new-api/types/error.go +++ b/heicode/types/error.go @@ -7,7 +7,7 @@ import ( "net/http" "strings" - "github.com/QuantumNous/new-api/common" + "github.com/heicode/manager/common" ) type OpenAIError struct { diff --git a/new-api/types/file_data.go b/heicode/types/file_data.go similarity index 100% rename from new-api/types/file_data.go rename to heicode/types/file_data.go diff --git a/new-api/types/file_source.go b/heicode/types/file_source.go similarity index 100% rename from new-api/types/file_source.go rename to heicode/types/file_source.go diff --git a/new-api/types/price_data.go b/heicode/types/price_data.go similarity index 100% rename from new-api/types/price_data.go rename to heicode/types/price_data.go diff --git a/new-api/types/relay_format.go b/heicode/types/relay_format.go similarity index 100% rename from new-api/types/relay_format.go rename to heicode/types/relay_format.go diff --git a/new-api/types/request_meta.go b/heicode/types/request_meta.go similarity index 100% rename from new-api/types/request_meta.go rename to heicode/types/request_meta.go diff --git a/new-api/types/rw_map.go b/heicode/types/rw_map.go similarity index 98% rename from new-api/types/rw_map.go rename to heicode/types/rw_map.go index 3d29681..ebf9a0a 100644 --- a/new-api/types/rw_map.go +++ b/heicode/types/rw_map.go @@ -3,7 +3,7 @@ package types import ( "sync" - "github.com/QuantumNous/new-api/common" + "github.com/heicode/manager/common" ) type RWMap[K comparable, V any] struct { diff --git a/new-api/types/set.go b/heicode/types/set.go similarity index 100% rename from new-api/types/set.go rename to heicode/types/set.go diff --git a/new-api/web/classic/.eslintrc.cjs b/heicode/web/classic/.eslintrc.cjs similarity index 100% rename from new-api/web/classic/.eslintrc.cjs rename to heicode/web/classic/.eslintrc.cjs diff --git a/new-api/web/classic/.gitignore b/heicode/web/classic/.gitignore similarity index 100% rename from new-api/web/classic/.gitignore rename to heicode/web/classic/.gitignore diff --git a/new-api/web/classic/.prettierrc.mjs b/heicode/web/classic/.prettierrc.mjs similarity index 100% rename from new-api/web/classic/.prettierrc.mjs rename to heicode/web/classic/.prettierrc.mjs diff --git a/new-api/web/classic/bun.lock b/heicode/web/classic/bun.lock similarity index 100% rename from new-api/web/classic/bun.lock rename to heicode/web/classic/bun.lock diff --git a/new-api/web/classic/i18next.config.js b/heicode/web/classic/i18next.config.js similarity index 100% rename from new-api/web/classic/i18next.config.js rename to heicode/web/classic/i18next.config.js diff --git a/new-api/web/classic/index.html b/heicode/web/classic/index.html similarity index 95% rename from new-api/web/classic/index.html rename to heicode/web/classic/index.html index d6bd243..97aada9 100644 --- a/new-api/web/classic/index.html +++ b/heicode/web/classic/index.html @@ -15,7 +15,7 @@ lang="en" content="A unified AI model hub for aggregation & distribution. It supports cross-converting various LLMs into OpenAI-compatible, Claude-compatible, or Gemini-compatible formats. A centralized gateway for personal and enterprise model management." /> - + New API diff --git a/new-api/web/classic/jsconfig.json b/heicode/web/classic/jsconfig.json similarity index 100% rename from new-api/web/classic/jsconfig.json rename to heicode/web/classic/jsconfig.json diff --git a/new-api/web/classic/package.json b/heicode/web/classic/package.json similarity index 100% rename from new-api/web/classic/package.json rename to heicode/web/classic/package.json diff --git a/new-api/web/classic/postcss.config.js b/heicode/web/classic/postcss.config.js similarity index 100% rename from new-api/web/classic/postcss.config.js rename to heicode/web/classic/postcss.config.js diff --git a/new-api/web/classic/public/azure_model_name.png b/heicode/web/classic/public/azure_model_name.png similarity index 100% rename from new-api/web/classic/public/azure_model_name.png rename to heicode/web/classic/public/azure_model_name.png diff --git a/new-api/web/classic/public/cover-4.webp b/heicode/web/classic/public/cover-4.webp similarity index 100% rename from new-api/web/classic/public/cover-4.webp rename to heicode/web/classic/public/cover-4.webp diff --git a/new-api/web/classic/public/favicon.ico b/heicode/web/classic/public/favicon.ico similarity index 100% rename from new-api/web/classic/public/favicon.ico rename to heicode/web/classic/public/favicon.ico diff --git a/new-api/web/classic/public/logo.png b/heicode/web/classic/public/logo.png similarity index 100% rename from new-api/web/classic/public/logo.png rename to heicode/web/classic/public/logo.png diff --git a/new-api/web/classic/public/pay-apple.png b/heicode/web/classic/public/pay-apple.png similarity index 100% rename from new-api/web/classic/public/pay-apple.png rename to heicode/web/classic/public/pay-apple.png diff --git a/new-api/web/classic/public/pay-card.png b/heicode/web/classic/public/pay-card.png similarity index 100% rename from new-api/web/classic/public/pay-card.png rename to heicode/web/classic/public/pay-card.png diff --git a/new-api/web/classic/public/pay-google.png b/heicode/web/classic/public/pay-google.png similarity index 100% rename from new-api/web/classic/public/pay-google.png rename to heicode/web/classic/public/pay-google.png diff --git a/new-api/web/classic/public/ratio.png b/heicode/web/classic/public/ratio.png similarity index 100% rename from new-api/web/classic/public/ratio.png rename to heicode/web/classic/public/ratio.png diff --git a/new-api/web/classic/public/robots.txt b/heicode/web/classic/public/robots.txt similarity index 100% rename from new-api/web/classic/public/robots.txt rename to heicode/web/classic/public/robots.txt diff --git a/new-api/web/classic/src/App.jsx b/heicode/web/classic/src/App.jsx similarity index 100% rename from new-api/web/classic/src/App.jsx rename to heicode/web/classic/src/App.jsx diff --git a/new-api/web/classic/src/components/auth/LoginForm.jsx b/heicode/web/classic/src/components/auth/LoginForm.jsx similarity index 100% rename from new-api/web/classic/src/components/auth/LoginForm.jsx rename to heicode/web/classic/src/components/auth/LoginForm.jsx diff --git a/new-api/web/classic/src/components/auth/OAuth2Callback.jsx b/heicode/web/classic/src/components/auth/OAuth2Callback.jsx similarity index 100% rename from new-api/web/classic/src/components/auth/OAuth2Callback.jsx rename to heicode/web/classic/src/components/auth/OAuth2Callback.jsx diff --git a/new-api/web/classic/src/components/auth/PasswordResetConfirm.jsx b/heicode/web/classic/src/components/auth/PasswordResetConfirm.jsx similarity index 100% rename from new-api/web/classic/src/components/auth/PasswordResetConfirm.jsx rename to heicode/web/classic/src/components/auth/PasswordResetConfirm.jsx diff --git a/new-api/web/classic/src/components/auth/PasswordResetForm.jsx b/heicode/web/classic/src/components/auth/PasswordResetForm.jsx similarity index 100% rename from new-api/web/classic/src/components/auth/PasswordResetForm.jsx rename to heicode/web/classic/src/components/auth/PasswordResetForm.jsx diff --git a/new-api/web/classic/src/components/auth/RegisterForm.jsx b/heicode/web/classic/src/components/auth/RegisterForm.jsx similarity index 100% rename from new-api/web/classic/src/components/auth/RegisterForm.jsx rename to heicode/web/classic/src/components/auth/RegisterForm.jsx diff --git a/new-api/web/classic/src/components/auth/TwoFAVerification.jsx b/heicode/web/classic/src/components/auth/TwoFAVerification.jsx similarity index 100% rename from new-api/web/classic/src/components/auth/TwoFAVerification.jsx rename to heicode/web/classic/src/components/auth/TwoFAVerification.jsx diff --git a/new-api/web/classic/src/components/common/DocumentRenderer/index.jsx b/heicode/web/classic/src/components/common/DocumentRenderer/index.jsx similarity index 100% rename from new-api/web/classic/src/components/common/DocumentRenderer/index.jsx rename to heicode/web/classic/src/components/common/DocumentRenderer/index.jsx diff --git a/new-api/web/classic/src/components/common/ErrorBoundary.jsx b/heicode/web/classic/src/components/common/ErrorBoundary.jsx similarity index 100% rename from new-api/web/classic/src/components/common/ErrorBoundary.jsx rename to heicode/web/classic/src/components/common/ErrorBoundary.jsx diff --git a/new-api/web/classic/src/components/common/examples/ChannelKeyViewExample.jsx b/heicode/web/classic/src/components/common/examples/ChannelKeyViewExample.jsx similarity index 100% rename from new-api/web/classic/src/components/common/examples/ChannelKeyViewExample.jsx rename to heicode/web/classic/src/components/common/examples/ChannelKeyViewExample.jsx diff --git a/new-api/web/classic/src/components/common/logo/LinuxDoIcon.jsx b/heicode/web/classic/src/components/common/logo/LinuxDoIcon.jsx similarity index 100% rename from new-api/web/classic/src/components/common/logo/LinuxDoIcon.jsx rename to heicode/web/classic/src/components/common/logo/LinuxDoIcon.jsx diff --git a/new-api/web/classic/src/components/common/logo/OIDCIcon.jsx b/heicode/web/classic/src/components/common/logo/OIDCIcon.jsx similarity index 100% rename from new-api/web/classic/src/components/common/logo/OIDCIcon.jsx rename to heicode/web/classic/src/components/common/logo/OIDCIcon.jsx diff --git a/new-api/web/classic/src/components/common/logo/WeChatIcon.jsx b/heicode/web/classic/src/components/common/logo/WeChatIcon.jsx similarity index 100% rename from new-api/web/classic/src/components/common/logo/WeChatIcon.jsx rename to heicode/web/classic/src/components/common/logo/WeChatIcon.jsx diff --git a/new-api/web/classic/src/components/common/markdown/MarkdownRenderer.jsx b/heicode/web/classic/src/components/common/markdown/MarkdownRenderer.jsx similarity index 100% rename from new-api/web/classic/src/components/common/markdown/MarkdownRenderer.jsx rename to heicode/web/classic/src/components/common/markdown/MarkdownRenderer.jsx diff --git a/new-api/web/classic/src/components/common/markdown/markdown.css b/heicode/web/classic/src/components/common/markdown/markdown.css similarity index 100% rename from new-api/web/classic/src/components/common/markdown/markdown.css rename to heicode/web/classic/src/components/common/markdown/markdown.css diff --git a/new-api/web/classic/src/components/common/modals/RiskAcknowledgementModal.jsx b/heicode/web/classic/src/components/common/modals/RiskAcknowledgementModal.jsx similarity index 100% rename from new-api/web/classic/src/components/common/modals/RiskAcknowledgementModal.jsx rename to heicode/web/classic/src/components/common/modals/RiskAcknowledgementModal.jsx diff --git a/new-api/web/classic/src/components/common/modals/SecureVerificationModal.jsx b/heicode/web/classic/src/components/common/modals/SecureVerificationModal.jsx similarity index 100% rename from new-api/web/classic/src/components/common/modals/SecureVerificationModal.jsx rename to heicode/web/classic/src/components/common/modals/SecureVerificationModal.jsx diff --git a/new-api/web/classic/src/components/common/modals/TwoFactorAuthModal.jsx b/heicode/web/classic/src/components/common/modals/TwoFactorAuthModal.jsx similarity index 100% rename from new-api/web/classic/src/components/common/modals/TwoFactorAuthModal.jsx rename to heicode/web/classic/src/components/common/modals/TwoFactorAuthModal.jsx diff --git a/new-api/web/classic/src/components/common/ui/CardPro.jsx b/heicode/web/classic/src/components/common/ui/CardPro.jsx similarity index 100% rename from new-api/web/classic/src/components/common/ui/CardPro.jsx rename to heicode/web/classic/src/components/common/ui/CardPro.jsx diff --git a/new-api/web/classic/src/components/common/ui/CardTable.jsx b/heicode/web/classic/src/components/common/ui/CardTable.jsx similarity index 100% rename from new-api/web/classic/src/components/common/ui/CardTable.jsx rename to heicode/web/classic/src/components/common/ui/CardTable.jsx diff --git a/new-api/web/classic/src/components/common/ui/ChannelKeyDisplay.jsx b/heicode/web/classic/src/components/common/ui/ChannelKeyDisplay.jsx similarity index 100% rename from new-api/web/classic/src/components/common/ui/ChannelKeyDisplay.jsx rename to heicode/web/classic/src/components/common/ui/ChannelKeyDisplay.jsx diff --git a/new-api/web/classic/src/components/common/ui/CompactModeToggle.jsx b/heicode/web/classic/src/components/common/ui/CompactModeToggle.jsx similarity index 100% rename from new-api/web/classic/src/components/common/ui/CompactModeToggle.jsx rename to heicode/web/classic/src/components/common/ui/CompactModeToggle.jsx diff --git a/new-api/web/classic/src/components/common/ui/JSONEditor.jsx b/heicode/web/classic/src/components/common/ui/JSONEditor.jsx similarity index 100% rename from new-api/web/classic/src/components/common/ui/JSONEditor.jsx rename to heicode/web/classic/src/components/common/ui/JSONEditor.jsx diff --git a/new-api/web/classic/src/components/common/ui/Loading.jsx b/heicode/web/classic/src/components/common/ui/Loading.jsx similarity index 100% rename from new-api/web/classic/src/components/common/ui/Loading.jsx rename to heicode/web/classic/src/components/common/ui/Loading.jsx diff --git a/new-api/web/classic/src/components/common/ui/RenderUtils.jsx b/heicode/web/classic/src/components/common/ui/RenderUtils.jsx similarity index 100% rename from new-api/web/classic/src/components/common/ui/RenderUtils.jsx rename to heicode/web/classic/src/components/common/ui/RenderUtils.jsx diff --git a/new-api/web/classic/src/components/common/ui/ScrollableContainer.jsx b/heicode/web/classic/src/components/common/ui/ScrollableContainer.jsx similarity index 100% rename from new-api/web/classic/src/components/common/ui/ScrollableContainer.jsx rename to heicode/web/classic/src/components/common/ui/ScrollableContainer.jsx diff --git a/new-api/web/classic/src/components/common/ui/SelectableButtonGroup.jsx b/heicode/web/classic/src/components/common/ui/SelectableButtonGroup.jsx similarity index 100% rename from new-api/web/classic/src/components/common/ui/SelectableButtonGroup.jsx rename to heicode/web/classic/src/components/common/ui/SelectableButtonGroup.jsx diff --git a/new-api/web/classic/src/components/dashboard/AnnouncementsPanel.jsx b/heicode/web/classic/src/components/dashboard/AnnouncementsPanel.jsx similarity index 100% rename from new-api/web/classic/src/components/dashboard/AnnouncementsPanel.jsx rename to heicode/web/classic/src/components/dashboard/AnnouncementsPanel.jsx diff --git a/new-api/web/classic/src/components/dashboard/ApiInfoPanel.jsx b/heicode/web/classic/src/components/dashboard/ApiInfoPanel.jsx similarity index 100% rename from new-api/web/classic/src/components/dashboard/ApiInfoPanel.jsx rename to heicode/web/classic/src/components/dashboard/ApiInfoPanel.jsx diff --git a/new-api/web/classic/src/components/dashboard/ChartsPanel.jsx b/heicode/web/classic/src/components/dashboard/ChartsPanel.jsx similarity index 100% rename from new-api/web/classic/src/components/dashboard/ChartsPanel.jsx rename to heicode/web/classic/src/components/dashboard/ChartsPanel.jsx diff --git a/new-api/web/classic/src/components/dashboard/DashboardHeader.jsx b/heicode/web/classic/src/components/dashboard/DashboardHeader.jsx similarity index 100% rename from new-api/web/classic/src/components/dashboard/DashboardHeader.jsx rename to heicode/web/classic/src/components/dashboard/DashboardHeader.jsx diff --git a/new-api/web/classic/src/components/dashboard/FaqPanel.jsx b/heicode/web/classic/src/components/dashboard/FaqPanel.jsx similarity index 100% rename from new-api/web/classic/src/components/dashboard/FaqPanel.jsx rename to heicode/web/classic/src/components/dashboard/FaqPanel.jsx diff --git a/new-api/web/classic/src/components/dashboard/StatsCards.jsx b/heicode/web/classic/src/components/dashboard/StatsCards.jsx similarity index 100% rename from new-api/web/classic/src/components/dashboard/StatsCards.jsx rename to heicode/web/classic/src/components/dashboard/StatsCards.jsx diff --git a/new-api/web/classic/src/components/dashboard/UptimePanel.jsx b/heicode/web/classic/src/components/dashboard/UptimePanel.jsx similarity index 100% rename from new-api/web/classic/src/components/dashboard/UptimePanel.jsx rename to heicode/web/classic/src/components/dashboard/UptimePanel.jsx diff --git a/new-api/web/classic/src/components/dashboard/index.jsx b/heicode/web/classic/src/components/dashboard/index.jsx similarity index 100% rename from new-api/web/classic/src/components/dashboard/index.jsx rename to heicode/web/classic/src/components/dashboard/index.jsx diff --git a/new-api/web/classic/src/components/dashboard/modals/SearchModal.jsx b/heicode/web/classic/src/components/dashboard/modals/SearchModal.jsx similarity index 100% rename from new-api/web/classic/src/components/dashboard/modals/SearchModal.jsx rename to heicode/web/classic/src/components/dashboard/modals/SearchModal.jsx diff --git a/new-api/web/classic/src/components/layout/Footer.jsx b/heicode/web/classic/src/components/layout/Footer.jsx similarity index 97% rename from new-api/web/classic/src/components/layout/Footer.jsx rename to heicode/web/classic/src/components/layout/Footer.jsx index ba64689..8a46bdd 100644 --- a/new-api/web/classic/src/components/layout/Footer.jsx +++ b/heicode/web/classic/src/components/layout/Footer.jsx @@ -159,12 +159,12 @@ const FooterBar = () => {

- new-api-horizon + heicode-horizon { {t('设计与开发由')}{' '} { {t('设计与开发由')}{' '} { // Option 1: Use a public CORS proxy service // const proxyUrl = 'https://cors-anywhere.herokuapp.com/'; // const res = await API.get( - // `${proxyUrl}https://api.github.com/repos/Calcium-Ion/new-api/releases/latest`, + // `${proxyUrl}https://api.github.com/repos/Calcium-Ion/heicode/releases/latest`, // ); // Option 2: Use the JSON proxy approach which often works better with GitHub API const res = await fetch( - 'https://api.github.com/repos/Calcium-Ion/new-api/releases/latest', + 'https://api.github.com/repos/Calcium-Ion/heicode/releases/latest', { headers: { Accept: 'application/json', 'Content-Type': 'application/json', // Adding User-Agent which is often required by GitHub API - 'User-Agent': 'new-api-update-checker', + 'User-Agent': 'heicode-update-checker', }, }, ).then((response) => response.json()); @@ -303,7 +303,7 @@ const OtherSetting = () => { // Function to open GitHub release page const openGitHubRelease = () => { window.open( - `https://github.com/Calcium-Ion/new-api/releases/tag/${updateData.tag_name}`, + `https://github.com/Calcium-Ion/heicode/releases/tag/${updateData.tag_name}`, '_blank', ); }; diff --git a/new-api/web/classic/src/components/settings/PaymentSetting.jsx b/heicode/web/classic/src/components/settings/PaymentSetting.jsx similarity index 100% rename from new-api/web/classic/src/components/settings/PaymentSetting.jsx rename to heicode/web/classic/src/components/settings/PaymentSetting.jsx diff --git a/new-api/web/classic/src/components/settings/PerformanceSetting.jsx b/heicode/web/classic/src/components/settings/PerformanceSetting.jsx similarity index 100% rename from new-api/web/classic/src/components/settings/PerformanceSetting.jsx rename to heicode/web/classic/src/components/settings/PerformanceSetting.jsx diff --git a/new-api/web/classic/src/components/settings/PersonalSetting.jsx b/heicode/web/classic/src/components/settings/PersonalSetting.jsx similarity index 100% rename from new-api/web/classic/src/components/settings/PersonalSetting.jsx rename to heicode/web/classic/src/components/settings/PersonalSetting.jsx diff --git a/new-api/web/classic/src/components/settings/RateLimitSetting.jsx b/heicode/web/classic/src/components/settings/RateLimitSetting.jsx similarity index 100% rename from new-api/web/classic/src/components/settings/RateLimitSetting.jsx rename to heicode/web/classic/src/components/settings/RateLimitSetting.jsx diff --git a/new-api/web/classic/src/components/settings/RatioSetting.jsx b/heicode/web/classic/src/components/settings/RatioSetting.jsx similarity index 100% rename from new-api/web/classic/src/components/settings/RatioSetting.jsx rename to heicode/web/classic/src/components/settings/RatioSetting.jsx diff --git a/new-api/web/classic/src/components/settings/SystemSetting.jsx b/heicode/web/classic/src/components/settings/SystemSetting.jsx similarity index 99% rename from new-api/web/classic/src/components/settings/SystemSetting.jsx rename to heicode/web/classic/src/components/settings/SystemSetting.jsx index 63b20c7..b6c4cda 100644 --- a/new-api/web/classic/src/components/settings/SystemSetting.jsx +++ b/heicode/web/classic/src/components/settings/SystemSetting.jsx @@ -747,13 +747,13 @@ const SystemSetting = () => { {t('仅支持')}{' '} - new-api-worker + heicode-worker {' '} - {t('或其兼容new-api-worker格式的其他版本')} + {t('或其兼容heicode-worker格式的其他版本')} { showClear disabled={isIonetLocked} extraText={t( - '对于官方渠道,new-api已经内置地址,除非是第三方代理站点或者Azure的特殊接入地址,否则不需要填写', + '对于官方渠道,heicode已经内置地址,除非是第三方代理站点或者Azure的特殊接入地址,否则不需要填写', )} />
diff --git a/new-api/web/classic/src/components/table/channels/modals/EditTagModal.jsx b/heicode/web/classic/src/components/table/channels/modals/EditTagModal.jsx similarity index 100% rename from new-api/web/classic/src/components/table/channels/modals/EditTagModal.jsx rename to heicode/web/classic/src/components/table/channels/modals/EditTagModal.jsx diff --git a/new-api/web/classic/src/components/table/channels/modals/ModelSelectModal.jsx b/heicode/web/classic/src/components/table/channels/modals/ModelSelectModal.jsx similarity index 100% rename from new-api/web/classic/src/components/table/channels/modals/ModelSelectModal.jsx rename to heicode/web/classic/src/components/table/channels/modals/ModelSelectModal.jsx diff --git a/new-api/web/classic/src/components/table/channels/modals/ModelTestModal.jsx b/heicode/web/classic/src/components/table/channels/modals/ModelTestModal.jsx similarity index 100% rename from new-api/web/classic/src/components/table/channels/modals/ModelTestModal.jsx rename to heicode/web/classic/src/components/table/channels/modals/ModelTestModal.jsx diff --git a/new-api/web/classic/src/components/table/channels/modals/MultiKeyManageModal.jsx b/heicode/web/classic/src/components/table/channels/modals/MultiKeyManageModal.jsx similarity index 100% rename from new-api/web/classic/src/components/table/channels/modals/MultiKeyManageModal.jsx rename to heicode/web/classic/src/components/table/channels/modals/MultiKeyManageModal.jsx diff --git a/new-api/web/classic/src/components/table/channels/modals/OllamaModelModal.jsx b/heicode/web/classic/src/components/table/channels/modals/OllamaModelModal.jsx similarity index 100% rename from new-api/web/classic/src/components/table/channels/modals/OllamaModelModal.jsx rename to heicode/web/classic/src/components/table/channels/modals/OllamaModelModal.jsx diff --git a/new-api/web/classic/src/components/table/channels/modals/ParamOverrideEditorModal.jsx b/heicode/web/classic/src/components/table/channels/modals/ParamOverrideEditorModal.jsx similarity index 100% rename from new-api/web/classic/src/components/table/channels/modals/ParamOverrideEditorModal.jsx rename to heicode/web/classic/src/components/table/channels/modals/ParamOverrideEditorModal.jsx diff --git a/new-api/web/classic/src/components/table/channels/modals/SingleModelSelectModal.jsx b/heicode/web/classic/src/components/table/channels/modals/SingleModelSelectModal.jsx similarity index 100% rename from new-api/web/classic/src/components/table/channels/modals/SingleModelSelectModal.jsx rename to heicode/web/classic/src/components/table/channels/modals/SingleModelSelectModal.jsx diff --git a/new-api/web/classic/src/components/table/channels/modals/StatusCodeRiskGuardModal.jsx b/heicode/web/classic/src/components/table/channels/modals/StatusCodeRiskGuardModal.jsx similarity index 100% rename from new-api/web/classic/src/components/table/channels/modals/StatusCodeRiskGuardModal.jsx rename to heicode/web/classic/src/components/table/channels/modals/StatusCodeRiskGuardModal.jsx diff --git a/new-api/web/classic/src/components/table/channels/modals/statusCodeRiskGuard.js b/heicode/web/classic/src/components/table/channels/modals/statusCodeRiskGuard.js similarity index 100% rename from new-api/web/classic/src/components/table/channels/modals/statusCodeRiskGuard.js rename to heicode/web/classic/src/components/table/channels/modals/statusCodeRiskGuard.js diff --git a/new-api/web/classic/src/components/table/mj-logs/MjLogsActions.jsx b/heicode/web/classic/src/components/table/mj-logs/MjLogsActions.jsx similarity index 100% rename from new-api/web/classic/src/components/table/mj-logs/MjLogsActions.jsx rename to heicode/web/classic/src/components/table/mj-logs/MjLogsActions.jsx diff --git a/new-api/web/classic/src/components/table/mj-logs/MjLogsColumnDefs.jsx b/heicode/web/classic/src/components/table/mj-logs/MjLogsColumnDefs.jsx similarity index 100% rename from new-api/web/classic/src/components/table/mj-logs/MjLogsColumnDefs.jsx rename to heicode/web/classic/src/components/table/mj-logs/MjLogsColumnDefs.jsx diff --git a/new-api/web/classic/src/components/table/mj-logs/MjLogsFilters.jsx b/heicode/web/classic/src/components/table/mj-logs/MjLogsFilters.jsx similarity index 100% rename from new-api/web/classic/src/components/table/mj-logs/MjLogsFilters.jsx rename to heicode/web/classic/src/components/table/mj-logs/MjLogsFilters.jsx diff --git a/new-api/web/classic/src/components/table/mj-logs/MjLogsTable.jsx b/heicode/web/classic/src/components/table/mj-logs/MjLogsTable.jsx similarity index 100% rename from new-api/web/classic/src/components/table/mj-logs/MjLogsTable.jsx rename to heicode/web/classic/src/components/table/mj-logs/MjLogsTable.jsx diff --git a/new-api/web/classic/src/components/table/mj-logs/index.jsx b/heicode/web/classic/src/components/table/mj-logs/index.jsx similarity index 100% rename from new-api/web/classic/src/components/table/mj-logs/index.jsx rename to heicode/web/classic/src/components/table/mj-logs/index.jsx diff --git a/new-api/web/classic/src/components/table/mj-logs/modals/ColumnSelectorModal.jsx b/heicode/web/classic/src/components/table/mj-logs/modals/ColumnSelectorModal.jsx similarity index 100% rename from new-api/web/classic/src/components/table/mj-logs/modals/ColumnSelectorModal.jsx rename to heicode/web/classic/src/components/table/mj-logs/modals/ColumnSelectorModal.jsx diff --git a/new-api/web/classic/src/components/table/mj-logs/modals/ContentModal.jsx b/heicode/web/classic/src/components/table/mj-logs/modals/ContentModal.jsx similarity index 100% rename from new-api/web/classic/src/components/table/mj-logs/modals/ContentModal.jsx rename to heicode/web/classic/src/components/table/mj-logs/modals/ContentModal.jsx diff --git a/new-api/web/classic/src/components/table/model-deployments/DeploymentsActions.jsx b/heicode/web/classic/src/components/table/model-deployments/DeploymentsActions.jsx similarity index 100% rename from new-api/web/classic/src/components/table/model-deployments/DeploymentsActions.jsx rename to heicode/web/classic/src/components/table/model-deployments/DeploymentsActions.jsx diff --git a/new-api/web/classic/src/components/table/model-deployments/DeploymentsColumnDefs.jsx b/heicode/web/classic/src/components/table/model-deployments/DeploymentsColumnDefs.jsx similarity index 100% rename from new-api/web/classic/src/components/table/model-deployments/DeploymentsColumnDefs.jsx rename to heicode/web/classic/src/components/table/model-deployments/DeploymentsColumnDefs.jsx diff --git a/new-api/web/classic/src/components/table/model-deployments/DeploymentsFilters.jsx b/heicode/web/classic/src/components/table/model-deployments/DeploymentsFilters.jsx similarity index 100% rename from new-api/web/classic/src/components/table/model-deployments/DeploymentsFilters.jsx rename to heicode/web/classic/src/components/table/model-deployments/DeploymentsFilters.jsx diff --git a/new-api/web/classic/src/components/table/model-deployments/DeploymentsTable.jsx b/heicode/web/classic/src/components/table/model-deployments/DeploymentsTable.jsx similarity index 100% rename from new-api/web/classic/src/components/table/model-deployments/DeploymentsTable.jsx rename to heicode/web/classic/src/components/table/model-deployments/DeploymentsTable.jsx diff --git a/new-api/web/classic/src/components/table/model-deployments/index.jsx b/heicode/web/classic/src/components/table/model-deployments/index.jsx similarity index 100% rename from new-api/web/classic/src/components/table/model-deployments/index.jsx rename to heicode/web/classic/src/components/table/model-deployments/index.jsx diff --git a/new-api/web/classic/src/components/table/model-deployments/modals/ColumnSelectorModal.jsx b/heicode/web/classic/src/components/table/model-deployments/modals/ColumnSelectorModal.jsx similarity index 100% rename from new-api/web/classic/src/components/table/model-deployments/modals/ColumnSelectorModal.jsx rename to heicode/web/classic/src/components/table/model-deployments/modals/ColumnSelectorModal.jsx diff --git a/new-api/web/classic/src/components/table/model-deployments/modals/ConfirmationDialog.jsx b/heicode/web/classic/src/components/table/model-deployments/modals/ConfirmationDialog.jsx similarity index 100% rename from new-api/web/classic/src/components/table/model-deployments/modals/ConfirmationDialog.jsx rename to heicode/web/classic/src/components/table/model-deployments/modals/ConfirmationDialog.jsx diff --git a/new-api/web/classic/src/components/table/model-deployments/modals/CreateDeploymentModal.jsx b/heicode/web/classic/src/components/table/model-deployments/modals/CreateDeploymentModal.jsx similarity index 100% rename from new-api/web/classic/src/components/table/model-deployments/modals/CreateDeploymentModal.jsx rename to heicode/web/classic/src/components/table/model-deployments/modals/CreateDeploymentModal.jsx diff --git a/new-api/web/classic/src/components/table/model-deployments/modals/EditDeploymentModal.jsx b/heicode/web/classic/src/components/table/model-deployments/modals/EditDeploymentModal.jsx similarity index 100% rename from new-api/web/classic/src/components/table/model-deployments/modals/EditDeploymentModal.jsx rename to heicode/web/classic/src/components/table/model-deployments/modals/EditDeploymentModal.jsx diff --git a/new-api/web/classic/src/components/table/model-deployments/modals/ExtendDurationModal.jsx b/heicode/web/classic/src/components/table/model-deployments/modals/ExtendDurationModal.jsx similarity index 100% rename from new-api/web/classic/src/components/table/model-deployments/modals/ExtendDurationModal.jsx rename to heicode/web/classic/src/components/table/model-deployments/modals/ExtendDurationModal.jsx diff --git a/new-api/web/classic/src/components/table/model-deployments/modals/UpdateConfigModal.jsx b/heicode/web/classic/src/components/table/model-deployments/modals/UpdateConfigModal.jsx similarity index 100% rename from new-api/web/classic/src/components/table/model-deployments/modals/UpdateConfigModal.jsx rename to heicode/web/classic/src/components/table/model-deployments/modals/UpdateConfigModal.jsx diff --git a/new-api/web/classic/src/components/table/model-deployments/modals/ViewDetailsModal.jsx b/heicode/web/classic/src/components/table/model-deployments/modals/ViewDetailsModal.jsx similarity index 100% rename from new-api/web/classic/src/components/table/model-deployments/modals/ViewDetailsModal.jsx rename to heicode/web/classic/src/components/table/model-deployments/modals/ViewDetailsModal.jsx diff --git a/new-api/web/classic/src/components/table/model-deployments/modals/ViewLogsModal.jsx b/heicode/web/classic/src/components/table/model-deployments/modals/ViewLogsModal.jsx similarity index 100% rename from new-api/web/classic/src/components/table/model-deployments/modals/ViewLogsModal.jsx rename to heicode/web/classic/src/components/table/model-deployments/modals/ViewLogsModal.jsx diff --git a/new-api/web/classic/src/components/table/model-pricing/filter/PricingDisplaySettings.jsx b/heicode/web/classic/src/components/table/model-pricing/filter/PricingDisplaySettings.jsx similarity index 100% rename from new-api/web/classic/src/components/table/model-pricing/filter/PricingDisplaySettings.jsx rename to heicode/web/classic/src/components/table/model-pricing/filter/PricingDisplaySettings.jsx diff --git a/new-api/web/classic/src/components/table/model-pricing/filter/PricingEndpointTypes.jsx b/heicode/web/classic/src/components/table/model-pricing/filter/PricingEndpointTypes.jsx similarity index 100% rename from new-api/web/classic/src/components/table/model-pricing/filter/PricingEndpointTypes.jsx rename to heicode/web/classic/src/components/table/model-pricing/filter/PricingEndpointTypes.jsx diff --git a/new-api/web/classic/src/components/table/model-pricing/filter/PricingGroups.jsx b/heicode/web/classic/src/components/table/model-pricing/filter/PricingGroups.jsx similarity index 100% rename from new-api/web/classic/src/components/table/model-pricing/filter/PricingGroups.jsx rename to heicode/web/classic/src/components/table/model-pricing/filter/PricingGroups.jsx diff --git a/new-api/web/classic/src/components/table/model-pricing/filter/PricingQuotaTypes.jsx b/heicode/web/classic/src/components/table/model-pricing/filter/PricingQuotaTypes.jsx similarity index 100% rename from new-api/web/classic/src/components/table/model-pricing/filter/PricingQuotaTypes.jsx rename to heicode/web/classic/src/components/table/model-pricing/filter/PricingQuotaTypes.jsx diff --git a/new-api/web/classic/src/components/table/model-pricing/filter/PricingTags.jsx b/heicode/web/classic/src/components/table/model-pricing/filter/PricingTags.jsx similarity index 100% rename from new-api/web/classic/src/components/table/model-pricing/filter/PricingTags.jsx rename to heicode/web/classic/src/components/table/model-pricing/filter/PricingTags.jsx diff --git a/new-api/web/classic/src/components/table/model-pricing/filter/PricingVendors.jsx b/heicode/web/classic/src/components/table/model-pricing/filter/PricingVendors.jsx similarity index 100% rename from new-api/web/classic/src/components/table/model-pricing/filter/PricingVendors.jsx rename to heicode/web/classic/src/components/table/model-pricing/filter/PricingVendors.jsx diff --git a/new-api/web/classic/src/components/table/model-pricing/layout/PricingPage.jsx b/heicode/web/classic/src/components/table/model-pricing/layout/PricingPage.jsx similarity index 100% rename from new-api/web/classic/src/components/table/model-pricing/layout/PricingPage.jsx rename to heicode/web/classic/src/components/table/model-pricing/layout/PricingPage.jsx diff --git a/new-api/web/classic/src/components/table/model-pricing/layout/PricingSidebar.jsx b/heicode/web/classic/src/components/table/model-pricing/layout/PricingSidebar.jsx similarity index 100% rename from new-api/web/classic/src/components/table/model-pricing/layout/PricingSidebar.jsx rename to heicode/web/classic/src/components/table/model-pricing/layout/PricingSidebar.jsx diff --git a/new-api/web/classic/src/components/table/model-pricing/layout/content/PricingContent.jsx b/heicode/web/classic/src/components/table/model-pricing/layout/content/PricingContent.jsx similarity index 100% rename from new-api/web/classic/src/components/table/model-pricing/layout/content/PricingContent.jsx rename to heicode/web/classic/src/components/table/model-pricing/layout/content/PricingContent.jsx diff --git a/new-api/web/classic/src/components/table/model-pricing/layout/content/PricingView.jsx b/heicode/web/classic/src/components/table/model-pricing/layout/content/PricingView.jsx similarity index 100% rename from new-api/web/classic/src/components/table/model-pricing/layout/content/PricingView.jsx rename to heicode/web/classic/src/components/table/model-pricing/layout/content/PricingView.jsx diff --git a/new-api/web/classic/src/components/table/model-pricing/layout/header/PricingTopSection.jsx b/heicode/web/classic/src/components/table/model-pricing/layout/header/PricingTopSection.jsx similarity index 100% rename from new-api/web/classic/src/components/table/model-pricing/layout/header/PricingTopSection.jsx rename to heicode/web/classic/src/components/table/model-pricing/layout/header/PricingTopSection.jsx diff --git a/new-api/web/classic/src/components/table/model-pricing/layout/header/PricingVendorIntro.jsx b/heicode/web/classic/src/components/table/model-pricing/layout/header/PricingVendorIntro.jsx similarity index 100% rename from new-api/web/classic/src/components/table/model-pricing/layout/header/PricingVendorIntro.jsx rename to heicode/web/classic/src/components/table/model-pricing/layout/header/PricingVendorIntro.jsx diff --git a/new-api/web/classic/src/components/table/model-pricing/layout/header/PricingVendorIntroSkeleton.jsx b/heicode/web/classic/src/components/table/model-pricing/layout/header/PricingVendorIntroSkeleton.jsx similarity index 100% rename from new-api/web/classic/src/components/table/model-pricing/layout/header/PricingVendorIntroSkeleton.jsx rename to heicode/web/classic/src/components/table/model-pricing/layout/header/PricingVendorIntroSkeleton.jsx diff --git a/new-api/web/classic/src/components/table/model-pricing/layout/header/PricingVendorIntroWithSkeleton.jsx b/heicode/web/classic/src/components/table/model-pricing/layout/header/PricingVendorIntroWithSkeleton.jsx similarity index 100% rename from new-api/web/classic/src/components/table/model-pricing/layout/header/PricingVendorIntroWithSkeleton.jsx rename to heicode/web/classic/src/components/table/model-pricing/layout/header/PricingVendorIntroWithSkeleton.jsx diff --git a/new-api/web/classic/src/components/table/model-pricing/layout/header/SearchActions.jsx b/heicode/web/classic/src/components/table/model-pricing/layout/header/SearchActions.jsx similarity index 100% rename from new-api/web/classic/src/components/table/model-pricing/layout/header/SearchActions.jsx rename to heicode/web/classic/src/components/table/model-pricing/layout/header/SearchActions.jsx diff --git a/new-api/web/classic/src/components/table/model-pricing/modal/ModelDetailSideSheet.jsx b/heicode/web/classic/src/components/table/model-pricing/modal/ModelDetailSideSheet.jsx similarity index 100% rename from new-api/web/classic/src/components/table/model-pricing/modal/ModelDetailSideSheet.jsx rename to heicode/web/classic/src/components/table/model-pricing/modal/ModelDetailSideSheet.jsx diff --git a/new-api/web/classic/src/components/table/model-pricing/modal/PricingFilterModal.jsx b/heicode/web/classic/src/components/table/model-pricing/modal/PricingFilterModal.jsx similarity index 100% rename from new-api/web/classic/src/components/table/model-pricing/modal/PricingFilterModal.jsx rename to heicode/web/classic/src/components/table/model-pricing/modal/PricingFilterModal.jsx diff --git a/new-api/web/classic/src/components/table/model-pricing/modal/components/DynamicPricingBreakdown.jsx b/heicode/web/classic/src/components/table/model-pricing/modal/components/DynamicPricingBreakdown.jsx similarity index 100% rename from new-api/web/classic/src/components/table/model-pricing/modal/components/DynamicPricingBreakdown.jsx rename to heicode/web/classic/src/components/table/model-pricing/modal/components/DynamicPricingBreakdown.jsx diff --git a/new-api/web/classic/src/components/table/model-pricing/modal/components/FilterModalContent.jsx b/heicode/web/classic/src/components/table/model-pricing/modal/components/FilterModalContent.jsx similarity index 100% rename from new-api/web/classic/src/components/table/model-pricing/modal/components/FilterModalContent.jsx rename to heicode/web/classic/src/components/table/model-pricing/modal/components/FilterModalContent.jsx diff --git a/new-api/web/classic/src/components/table/model-pricing/modal/components/FilterModalFooter.jsx b/heicode/web/classic/src/components/table/model-pricing/modal/components/FilterModalFooter.jsx similarity index 100% rename from new-api/web/classic/src/components/table/model-pricing/modal/components/FilterModalFooter.jsx rename to heicode/web/classic/src/components/table/model-pricing/modal/components/FilterModalFooter.jsx diff --git a/new-api/web/classic/src/components/table/model-pricing/modal/components/ModelBasicInfo.jsx b/heicode/web/classic/src/components/table/model-pricing/modal/components/ModelBasicInfo.jsx similarity index 100% rename from new-api/web/classic/src/components/table/model-pricing/modal/components/ModelBasicInfo.jsx rename to heicode/web/classic/src/components/table/model-pricing/modal/components/ModelBasicInfo.jsx diff --git a/new-api/web/classic/src/components/table/model-pricing/modal/components/ModelEndpoints.jsx b/heicode/web/classic/src/components/table/model-pricing/modal/components/ModelEndpoints.jsx similarity index 100% rename from new-api/web/classic/src/components/table/model-pricing/modal/components/ModelEndpoints.jsx rename to heicode/web/classic/src/components/table/model-pricing/modal/components/ModelEndpoints.jsx diff --git a/new-api/web/classic/src/components/table/model-pricing/modal/components/ModelHeader.jsx b/heicode/web/classic/src/components/table/model-pricing/modal/components/ModelHeader.jsx similarity index 100% rename from new-api/web/classic/src/components/table/model-pricing/modal/components/ModelHeader.jsx rename to heicode/web/classic/src/components/table/model-pricing/modal/components/ModelHeader.jsx diff --git a/new-api/web/classic/src/components/table/model-pricing/modal/components/ModelPricingTable.jsx b/heicode/web/classic/src/components/table/model-pricing/modal/components/ModelPricingTable.jsx similarity index 100% rename from new-api/web/classic/src/components/table/model-pricing/modal/components/ModelPricingTable.jsx rename to heicode/web/classic/src/components/table/model-pricing/modal/components/ModelPricingTable.jsx diff --git a/new-api/web/classic/src/components/table/model-pricing/view/card/PricingCardSkeleton.jsx b/heicode/web/classic/src/components/table/model-pricing/view/card/PricingCardSkeleton.jsx similarity index 100% rename from new-api/web/classic/src/components/table/model-pricing/view/card/PricingCardSkeleton.jsx rename to heicode/web/classic/src/components/table/model-pricing/view/card/PricingCardSkeleton.jsx diff --git a/new-api/web/classic/src/components/table/model-pricing/view/card/PricingCardView.jsx b/heicode/web/classic/src/components/table/model-pricing/view/card/PricingCardView.jsx similarity index 100% rename from new-api/web/classic/src/components/table/model-pricing/view/card/PricingCardView.jsx rename to heicode/web/classic/src/components/table/model-pricing/view/card/PricingCardView.jsx diff --git a/new-api/web/classic/src/components/table/model-pricing/view/table/PricingTable.jsx b/heicode/web/classic/src/components/table/model-pricing/view/table/PricingTable.jsx similarity index 100% rename from new-api/web/classic/src/components/table/model-pricing/view/table/PricingTable.jsx rename to heicode/web/classic/src/components/table/model-pricing/view/table/PricingTable.jsx diff --git a/new-api/web/classic/src/components/table/model-pricing/view/table/PricingTableColumns.jsx b/heicode/web/classic/src/components/table/model-pricing/view/table/PricingTableColumns.jsx similarity index 100% rename from new-api/web/classic/src/components/table/model-pricing/view/table/PricingTableColumns.jsx rename to heicode/web/classic/src/components/table/model-pricing/view/table/PricingTableColumns.jsx diff --git a/new-api/web/classic/src/components/table/models/ModelsActions.jsx b/heicode/web/classic/src/components/table/models/ModelsActions.jsx similarity index 100% rename from new-api/web/classic/src/components/table/models/ModelsActions.jsx rename to heicode/web/classic/src/components/table/models/ModelsActions.jsx diff --git a/new-api/web/classic/src/components/table/models/ModelsColumnDefs.jsx b/heicode/web/classic/src/components/table/models/ModelsColumnDefs.jsx similarity index 100% rename from new-api/web/classic/src/components/table/models/ModelsColumnDefs.jsx rename to heicode/web/classic/src/components/table/models/ModelsColumnDefs.jsx diff --git a/new-api/web/classic/src/components/table/models/ModelsDescription.jsx b/heicode/web/classic/src/components/table/models/ModelsDescription.jsx similarity index 100% rename from new-api/web/classic/src/components/table/models/ModelsDescription.jsx rename to heicode/web/classic/src/components/table/models/ModelsDescription.jsx diff --git a/new-api/web/classic/src/components/table/models/ModelsFilters.jsx b/heicode/web/classic/src/components/table/models/ModelsFilters.jsx similarity index 100% rename from new-api/web/classic/src/components/table/models/ModelsFilters.jsx rename to heicode/web/classic/src/components/table/models/ModelsFilters.jsx diff --git a/new-api/web/classic/src/components/table/models/ModelsTable.jsx b/heicode/web/classic/src/components/table/models/ModelsTable.jsx similarity index 100% rename from new-api/web/classic/src/components/table/models/ModelsTable.jsx rename to heicode/web/classic/src/components/table/models/ModelsTable.jsx diff --git a/new-api/web/classic/src/components/table/models/ModelsTabs.jsx b/heicode/web/classic/src/components/table/models/ModelsTabs.jsx similarity index 100% rename from new-api/web/classic/src/components/table/models/ModelsTabs.jsx rename to heicode/web/classic/src/components/table/models/ModelsTabs.jsx diff --git a/new-api/web/classic/src/components/table/models/components/SelectionNotification.jsx b/heicode/web/classic/src/components/table/models/components/SelectionNotification.jsx similarity index 100% rename from new-api/web/classic/src/components/table/models/components/SelectionNotification.jsx rename to heicode/web/classic/src/components/table/models/components/SelectionNotification.jsx diff --git a/new-api/web/classic/src/components/table/models/index.jsx b/heicode/web/classic/src/components/table/models/index.jsx similarity index 100% rename from new-api/web/classic/src/components/table/models/index.jsx rename to heicode/web/classic/src/components/table/models/index.jsx diff --git a/new-api/web/classic/src/components/table/models/modals/EditModelModal.jsx b/heicode/web/classic/src/components/table/models/modals/EditModelModal.jsx similarity index 100% rename from new-api/web/classic/src/components/table/models/modals/EditModelModal.jsx rename to heicode/web/classic/src/components/table/models/modals/EditModelModal.jsx diff --git a/new-api/web/classic/src/components/table/models/modals/EditPrefillGroupModal.jsx b/heicode/web/classic/src/components/table/models/modals/EditPrefillGroupModal.jsx similarity index 100% rename from new-api/web/classic/src/components/table/models/modals/EditPrefillGroupModal.jsx rename to heicode/web/classic/src/components/table/models/modals/EditPrefillGroupModal.jsx diff --git a/new-api/web/classic/src/components/table/models/modals/EditVendorModal.jsx b/heicode/web/classic/src/components/table/models/modals/EditVendorModal.jsx similarity index 100% rename from new-api/web/classic/src/components/table/models/modals/EditVendorModal.jsx rename to heicode/web/classic/src/components/table/models/modals/EditVendorModal.jsx diff --git a/new-api/web/classic/src/components/table/models/modals/MissingModelsModal.jsx b/heicode/web/classic/src/components/table/models/modals/MissingModelsModal.jsx similarity index 100% rename from new-api/web/classic/src/components/table/models/modals/MissingModelsModal.jsx rename to heicode/web/classic/src/components/table/models/modals/MissingModelsModal.jsx diff --git a/new-api/web/classic/src/components/table/models/modals/PrefillGroupManagement.jsx b/heicode/web/classic/src/components/table/models/modals/PrefillGroupManagement.jsx similarity index 100% rename from new-api/web/classic/src/components/table/models/modals/PrefillGroupManagement.jsx rename to heicode/web/classic/src/components/table/models/modals/PrefillGroupManagement.jsx diff --git a/new-api/web/classic/src/components/table/models/modals/SyncWizardModal.jsx b/heicode/web/classic/src/components/table/models/modals/SyncWizardModal.jsx similarity index 100% rename from new-api/web/classic/src/components/table/models/modals/SyncWizardModal.jsx rename to heicode/web/classic/src/components/table/models/modals/SyncWizardModal.jsx diff --git a/new-api/web/classic/src/components/table/models/modals/UpstreamConflictModal.jsx b/heicode/web/classic/src/components/table/models/modals/UpstreamConflictModal.jsx similarity index 100% rename from new-api/web/classic/src/components/table/models/modals/UpstreamConflictModal.jsx rename to heicode/web/classic/src/components/table/models/modals/UpstreamConflictModal.jsx diff --git a/new-api/web/classic/src/components/table/redemptions/RedemptionsActions.jsx b/heicode/web/classic/src/components/table/redemptions/RedemptionsActions.jsx similarity index 100% rename from new-api/web/classic/src/components/table/redemptions/RedemptionsActions.jsx rename to heicode/web/classic/src/components/table/redemptions/RedemptionsActions.jsx diff --git a/new-api/web/classic/src/components/table/redemptions/RedemptionsColumnDefs.jsx b/heicode/web/classic/src/components/table/redemptions/RedemptionsColumnDefs.jsx similarity index 100% rename from new-api/web/classic/src/components/table/redemptions/RedemptionsColumnDefs.jsx rename to heicode/web/classic/src/components/table/redemptions/RedemptionsColumnDefs.jsx diff --git a/new-api/web/classic/src/components/table/redemptions/RedemptionsDescription.jsx b/heicode/web/classic/src/components/table/redemptions/RedemptionsDescription.jsx similarity index 100% rename from new-api/web/classic/src/components/table/redemptions/RedemptionsDescription.jsx rename to heicode/web/classic/src/components/table/redemptions/RedemptionsDescription.jsx diff --git a/new-api/web/classic/src/components/table/redemptions/RedemptionsFilters.jsx b/heicode/web/classic/src/components/table/redemptions/RedemptionsFilters.jsx similarity index 100% rename from new-api/web/classic/src/components/table/redemptions/RedemptionsFilters.jsx rename to heicode/web/classic/src/components/table/redemptions/RedemptionsFilters.jsx diff --git a/new-api/web/classic/src/components/table/redemptions/RedemptionsTable.jsx b/heicode/web/classic/src/components/table/redemptions/RedemptionsTable.jsx similarity index 100% rename from new-api/web/classic/src/components/table/redemptions/RedemptionsTable.jsx rename to heicode/web/classic/src/components/table/redemptions/RedemptionsTable.jsx diff --git a/new-api/web/classic/src/components/table/redemptions/index.jsx b/heicode/web/classic/src/components/table/redemptions/index.jsx similarity index 100% rename from new-api/web/classic/src/components/table/redemptions/index.jsx rename to heicode/web/classic/src/components/table/redemptions/index.jsx diff --git a/new-api/web/classic/src/components/table/redemptions/modals/DeleteRedemptionModal.jsx b/heicode/web/classic/src/components/table/redemptions/modals/DeleteRedemptionModal.jsx similarity index 100% rename from new-api/web/classic/src/components/table/redemptions/modals/DeleteRedemptionModal.jsx rename to heicode/web/classic/src/components/table/redemptions/modals/DeleteRedemptionModal.jsx diff --git a/new-api/web/classic/src/components/table/redemptions/modals/EditRedemptionModal.jsx b/heicode/web/classic/src/components/table/redemptions/modals/EditRedemptionModal.jsx similarity index 100% rename from new-api/web/classic/src/components/table/redemptions/modals/EditRedemptionModal.jsx rename to heicode/web/classic/src/components/table/redemptions/modals/EditRedemptionModal.jsx diff --git a/new-api/web/classic/src/components/table/subscriptions/SubscriptionsActions.jsx b/heicode/web/classic/src/components/table/subscriptions/SubscriptionsActions.jsx similarity index 100% rename from new-api/web/classic/src/components/table/subscriptions/SubscriptionsActions.jsx rename to heicode/web/classic/src/components/table/subscriptions/SubscriptionsActions.jsx diff --git a/new-api/web/classic/src/components/table/subscriptions/SubscriptionsColumnDefs.jsx b/heicode/web/classic/src/components/table/subscriptions/SubscriptionsColumnDefs.jsx similarity index 100% rename from new-api/web/classic/src/components/table/subscriptions/SubscriptionsColumnDefs.jsx rename to heicode/web/classic/src/components/table/subscriptions/SubscriptionsColumnDefs.jsx diff --git a/new-api/web/classic/src/components/table/subscriptions/SubscriptionsDescription.jsx b/heicode/web/classic/src/components/table/subscriptions/SubscriptionsDescription.jsx similarity index 100% rename from new-api/web/classic/src/components/table/subscriptions/SubscriptionsDescription.jsx rename to heicode/web/classic/src/components/table/subscriptions/SubscriptionsDescription.jsx diff --git a/new-api/web/classic/src/components/table/subscriptions/SubscriptionsTable.jsx b/heicode/web/classic/src/components/table/subscriptions/SubscriptionsTable.jsx similarity index 100% rename from new-api/web/classic/src/components/table/subscriptions/SubscriptionsTable.jsx rename to heicode/web/classic/src/components/table/subscriptions/SubscriptionsTable.jsx diff --git a/new-api/web/classic/src/components/table/subscriptions/index.jsx b/heicode/web/classic/src/components/table/subscriptions/index.jsx similarity index 100% rename from new-api/web/classic/src/components/table/subscriptions/index.jsx rename to heicode/web/classic/src/components/table/subscriptions/index.jsx diff --git a/new-api/web/classic/src/components/table/subscriptions/modals/AddEditSubscriptionModal.jsx b/heicode/web/classic/src/components/table/subscriptions/modals/AddEditSubscriptionModal.jsx similarity index 100% rename from new-api/web/classic/src/components/table/subscriptions/modals/AddEditSubscriptionModal.jsx rename to heicode/web/classic/src/components/table/subscriptions/modals/AddEditSubscriptionModal.jsx diff --git a/new-api/web/classic/src/components/table/task-logs/TaskLogsActions.jsx b/heicode/web/classic/src/components/table/task-logs/TaskLogsActions.jsx similarity index 100% rename from new-api/web/classic/src/components/table/task-logs/TaskLogsActions.jsx rename to heicode/web/classic/src/components/table/task-logs/TaskLogsActions.jsx diff --git a/new-api/web/classic/src/components/table/task-logs/TaskLogsColumnDefs.jsx b/heicode/web/classic/src/components/table/task-logs/TaskLogsColumnDefs.jsx similarity index 100% rename from new-api/web/classic/src/components/table/task-logs/TaskLogsColumnDefs.jsx rename to heicode/web/classic/src/components/table/task-logs/TaskLogsColumnDefs.jsx diff --git a/new-api/web/classic/src/components/table/task-logs/TaskLogsFilters.jsx b/heicode/web/classic/src/components/table/task-logs/TaskLogsFilters.jsx similarity index 100% rename from new-api/web/classic/src/components/table/task-logs/TaskLogsFilters.jsx rename to heicode/web/classic/src/components/table/task-logs/TaskLogsFilters.jsx diff --git a/new-api/web/classic/src/components/table/task-logs/TaskLogsTable.jsx b/heicode/web/classic/src/components/table/task-logs/TaskLogsTable.jsx similarity index 100% rename from new-api/web/classic/src/components/table/task-logs/TaskLogsTable.jsx rename to heicode/web/classic/src/components/table/task-logs/TaskLogsTable.jsx diff --git a/new-api/web/classic/src/components/table/task-logs/index.jsx b/heicode/web/classic/src/components/table/task-logs/index.jsx similarity index 100% rename from new-api/web/classic/src/components/table/task-logs/index.jsx rename to heicode/web/classic/src/components/table/task-logs/index.jsx diff --git a/new-api/web/classic/src/components/table/task-logs/modals/AudioPreviewModal.jsx b/heicode/web/classic/src/components/table/task-logs/modals/AudioPreviewModal.jsx similarity index 100% rename from new-api/web/classic/src/components/table/task-logs/modals/AudioPreviewModal.jsx rename to heicode/web/classic/src/components/table/task-logs/modals/AudioPreviewModal.jsx diff --git a/new-api/web/classic/src/components/table/task-logs/modals/ColumnSelectorModal.jsx b/heicode/web/classic/src/components/table/task-logs/modals/ColumnSelectorModal.jsx similarity index 100% rename from new-api/web/classic/src/components/table/task-logs/modals/ColumnSelectorModal.jsx rename to heicode/web/classic/src/components/table/task-logs/modals/ColumnSelectorModal.jsx diff --git a/new-api/web/classic/src/components/table/task-logs/modals/ContentModal.jsx b/heicode/web/classic/src/components/table/task-logs/modals/ContentModal.jsx similarity index 100% rename from new-api/web/classic/src/components/table/task-logs/modals/ContentModal.jsx rename to heicode/web/classic/src/components/table/task-logs/modals/ContentModal.jsx diff --git a/new-api/web/classic/src/components/table/tokens/TokensActions.jsx b/heicode/web/classic/src/components/table/tokens/TokensActions.jsx similarity index 100% rename from new-api/web/classic/src/components/table/tokens/TokensActions.jsx rename to heicode/web/classic/src/components/table/tokens/TokensActions.jsx diff --git a/new-api/web/classic/src/components/table/tokens/TokensColumnDefs.jsx b/heicode/web/classic/src/components/table/tokens/TokensColumnDefs.jsx similarity index 100% rename from new-api/web/classic/src/components/table/tokens/TokensColumnDefs.jsx rename to heicode/web/classic/src/components/table/tokens/TokensColumnDefs.jsx diff --git a/new-api/web/classic/src/components/table/tokens/TokensDescription.jsx b/heicode/web/classic/src/components/table/tokens/TokensDescription.jsx similarity index 100% rename from new-api/web/classic/src/components/table/tokens/TokensDescription.jsx rename to heicode/web/classic/src/components/table/tokens/TokensDescription.jsx diff --git a/new-api/web/classic/src/components/table/tokens/TokensFilters.jsx b/heicode/web/classic/src/components/table/tokens/TokensFilters.jsx similarity index 100% rename from new-api/web/classic/src/components/table/tokens/TokensFilters.jsx rename to heicode/web/classic/src/components/table/tokens/TokensFilters.jsx diff --git a/new-api/web/classic/src/components/table/tokens/TokensTable.jsx b/heicode/web/classic/src/components/table/tokens/TokensTable.jsx similarity index 100% rename from new-api/web/classic/src/components/table/tokens/TokensTable.jsx rename to heicode/web/classic/src/components/table/tokens/TokensTable.jsx diff --git a/new-api/web/classic/src/components/table/tokens/index.jsx b/heicode/web/classic/src/components/table/tokens/index.jsx similarity index 97% rename from new-api/web/classic/src/components/table/tokens/index.jsx rename to heicode/web/classic/src/components/table/tokens/index.jsx index 1711ecd..fb3e2b6 100644 --- a/new-api/web/classic/src/components/table/tokens/index.jsx +++ b/heicode/web/classic/src/components/table/tokens/index.jsx @@ -127,7 +127,7 @@ function TokensPage() { loadModels(); } if (!key && localStorage.getItem(SUPPRESS_KEY) === '1') return; - const container = document.getElementById('fluent-new-api-container'); + const container = document.getElementById('fluent-heicode-container'); if (!container) { Toast.warning(t('未检测到 FluentRead(流畅阅读),请确认扩展已启用')); return; @@ -210,7 +210,7 @@ function TokensPage() { prefillKey: overrideKey, fetchTokenKey, } = latestRef.current; - const container = document.getElementById('fluent-new-api-container'); + const container = document.getElementById('fluent-heicode-container'); if (!container) { Toast.error(t('未检测到 Fluent 容器')); return; @@ -253,7 +253,7 @@ function TokensPage() { } const payload = { - id: 'new-api', + id: 'heicode', baseUrl: serverAddress, apiKey: apiKeyToUse, model: chosenModel, @@ -293,7 +293,7 @@ function TokensPage() { }, [modelOptions, selectedModel, tokensData.t, fluentNoticeOpen]); useEffect(() => { - const selector = '#fluent-new-api-container'; + const selector = '#fluent-heicode-container'; const root = document.body || document.documentElement; const existing = document.querySelector(selector); @@ -306,7 +306,7 @@ function TokensPage() { const isOrContainsTarget = (node) => { if (!(node && node.nodeType === 1)) return false; - if (node.id === 'fluent-new-api-container') return true; + if (node.id === 'fluent-heicode-container') return true; return ( typeof node.querySelector === 'function' && !!node.querySelector(selector) diff --git a/new-api/web/classic/src/components/table/tokens/modals/CCSwitchModal.jsx b/heicode/web/classic/src/components/table/tokens/modals/CCSwitchModal.jsx similarity index 100% rename from new-api/web/classic/src/components/table/tokens/modals/CCSwitchModal.jsx rename to heicode/web/classic/src/components/table/tokens/modals/CCSwitchModal.jsx diff --git a/new-api/web/classic/src/components/table/tokens/modals/CopyTokensModal.jsx b/heicode/web/classic/src/components/table/tokens/modals/CopyTokensModal.jsx similarity index 100% rename from new-api/web/classic/src/components/table/tokens/modals/CopyTokensModal.jsx rename to heicode/web/classic/src/components/table/tokens/modals/CopyTokensModal.jsx diff --git a/new-api/web/classic/src/components/table/tokens/modals/DeleteTokensModal.jsx b/heicode/web/classic/src/components/table/tokens/modals/DeleteTokensModal.jsx similarity index 100% rename from new-api/web/classic/src/components/table/tokens/modals/DeleteTokensModal.jsx rename to heicode/web/classic/src/components/table/tokens/modals/DeleteTokensModal.jsx diff --git a/new-api/web/classic/src/components/table/tokens/modals/EditTokenModal.jsx b/heicode/web/classic/src/components/table/tokens/modals/EditTokenModal.jsx similarity index 100% rename from new-api/web/classic/src/components/table/tokens/modals/EditTokenModal.jsx rename to heicode/web/classic/src/components/table/tokens/modals/EditTokenModal.jsx diff --git a/new-api/web/classic/src/components/table/usage-logs/UsageLogsActions.jsx b/heicode/web/classic/src/components/table/usage-logs/UsageLogsActions.jsx similarity index 100% rename from new-api/web/classic/src/components/table/usage-logs/UsageLogsActions.jsx rename to heicode/web/classic/src/components/table/usage-logs/UsageLogsActions.jsx diff --git a/new-api/web/classic/src/components/table/usage-logs/UsageLogsColumnDefs.jsx b/heicode/web/classic/src/components/table/usage-logs/UsageLogsColumnDefs.jsx similarity index 100% rename from new-api/web/classic/src/components/table/usage-logs/UsageLogsColumnDefs.jsx rename to heicode/web/classic/src/components/table/usage-logs/UsageLogsColumnDefs.jsx diff --git a/new-api/web/classic/src/components/table/usage-logs/UsageLogsFilters.jsx b/heicode/web/classic/src/components/table/usage-logs/UsageLogsFilters.jsx similarity index 100% rename from new-api/web/classic/src/components/table/usage-logs/UsageLogsFilters.jsx rename to heicode/web/classic/src/components/table/usage-logs/UsageLogsFilters.jsx diff --git a/new-api/web/classic/src/components/table/usage-logs/UsageLogsTable.jsx b/heicode/web/classic/src/components/table/usage-logs/UsageLogsTable.jsx similarity index 100% rename from new-api/web/classic/src/components/table/usage-logs/UsageLogsTable.jsx rename to heicode/web/classic/src/components/table/usage-logs/UsageLogsTable.jsx diff --git a/new-api/web/classic/src/components/table/usage-logs/components/ParamOverrideEntry.jsx b/heicode/web/classic/src/components/table/usage-logs/components/ParamOverrideEntry.jsx similarity index 100% rename from new-api/web/classic/src/components/table/usage-logs/components/ParamOverrideEntry.jsx rename to heicode/web/classic/src/components/table/usage-logs/components/ParamOverrideEntry.jsx diff --git a/new-api/web/classic/src/components/table/usage-logs/index.jsx b/heicode/web/classic/src/components/table/usage-logs/index.jsx similarity index 100% rename from new-api/web/classic/src/components/table/usage-logs/index.jsx rename to heicode/web/classic/src/components/table/usage-logs/index.jsx diff --git a/new-api/web/classic/src/components/table/usage-logs/modals/ChannelAffinityUsageCacheModal.jsx b/heicode/web/classic/src/components/table/usage-logs/modals/ChannelAffinityUsageCacheModal.jsx similarity index 100% rename from new-api/web/classic/src/components/table/usage-logs/modals/ChannelAffinityUsageCacheModal.jsx rename to heicode/web/classic/src/components/table/usage-logs/modals/ChannelAffinityUsageCacheModal.jsx diff --git a/new-api/web/classic/src/components/table/usage-logs/modals/ColumnSelectorModal.jsx b/heicode/web/classic/src/components/table/usage-logs/modals/ColumnSelectorModal.jsx similarity index 100% rename from new-api/web/classic/src/components/table/usage-logs/modals/ColumnSelectorModal.jsx rename to heicode/web/classic/src/components/table/usage-logs/modals/ColumnSelectorModal.jsx diff --git a/new-api/web/classic/src/components/table/usage-logs/modals/ParamOverrideModal.jsx b/heicode/web/classic/src/components/table/usage-logs/modals/ParamOverrideModal.jsx similarity index 100% rename from new-api/web/classic/src/components/table/usage-logs/modals/ParamOverrideModal.jsx rename to heicode/web/classic/src/components/table/usage-logs/modals/ParamOverrideModal.jsx diff --git a/new-api/web/classic/src/components/table/usage-logs/modals/UserInfoModal.jsx b/heicode/web/classic/src/components/table/usage-logs/modals/UserInfoModal.jsx similarity index 100% rename from new-api/web/classic/src/components/table/usage-logs/modals/UserInfoModal.jsx rename to heicode/web/classic/src/components/table/usage-logs/modals/UserInfoModal.jsx diff --git a/new-api/web/classic/src/components/table/users/UsersActions.jsx b/heicode/web/classic/src/components/table/users/UsersActions.jsx similarity index 100% rename from new-api/web/classic/src/components/table/users/UsersActions.jsx rename to heicode/web/classic/src/components/table/users/UsersActions.jsx diff --git a/new-api/web/classic/src/components/table/users/UsersColumnDefs.jsx b/heicode/web/classic/src/components/table/users/UsersColumnDefs.jsx similarity index 100% rename from new-api/web/classic/src/components/table/users/UsersColumnDefs.jsx rename to heicode/web/classic/src/components/table/users/UsersColumnDefs.jsx diff --git a/new-api/web/classic/src/components/table/users/UsersDescription.jsx b/heicode/web/classic/src/components/table/users/UsersDescription.jsx similarity index 100% rename from new-api/web/classic/src/components/table/users/UsersDescription.jsx rename to heicode/web/classic/src/components/table/users/UsersDescription.jsx diff --git a/new-api/web/classic/src/components/table/users/UsersFilters.jsx b/heicode/web/classic/src/components/table/users/UsersFilters.jsx similarity index 100% rename from new-api/web/classic/src/components/table/users/UsersFilters.jsx rename to heicode/web/classic/src/components/table/users/UsersFilters.jsx diff --git a/new-api/web/classic/src/components/table/users/UsersTable.jsx b/heicode/web/classic/src/components/table/users/UsersTable.jsx similarity index 100% rename from new-api/web/classic/src/components/table/users/UsersTable.jsx rename to heicode/web/classic/src/components/table/users/UsersTable.jsx diff --git a/new-api/web/classic/src/components/table/users/index.jsx b/heicode/web/classic/src/components/table/users/index.jsx similarity index 100% rename from new-api/web/classic/src/components/table/users/index.jsx rename to heicode/web/classic/src/components/table/users/index.jsx diff --git a/new-api/web/classic/src/components/table/users/modals/AddUserModal.jsx b/heicode/web/classic/src/components/table/users/modals/AddUserModal.jsx similarity index 100% rename from new-api/web/classic/src/components/table/users/modals/AddUserModal.jsx rename to heicode/web/classic/src/components/table/users/modals/AddUserModal.jsx diff --git a/new-api/web/classic/src/components/table/users/modals/DeleteUserModal.jsx b/heicode/web/classic/src/components/table/users/modals/DeleteUserModal.jsx similarity index 100% rename from new-api/web/classic/src/components/table/users/modals/DeleteUserModal.jsx rename to heicode/web/classic/src/components/table/users/modals/DeleteUserModal.jsx diff --git a/new-api/web/classic/src/components/table/users/modals/DemoteUserModal.jsx b/heicode/web/classic/src/components/table/users/modals/DemoteUserModal.jsx similarity index 100% rename from new-api/web/classic/src/components/table/users/modals/DemoteUserModal.jsx rename to heicode/web/classic/src/components/table/users/modals/DemoteUserModal.jsx diff --git a/new-api/web/classic/src/components/table/users/modals/EditUserModal.jsx b/heicode/web/classic/src/components/table/users/modals/EditUserModal.jsx similarity index 100% rename from new-api/web/classic/src/components/table/users/modals/EditUserModal.jsx rename to heicode/web/classic/src/components/table/users/modals/EditUserModal.jsx diff --git a/new-api/web/classic/src/components/table/users/modals/EnableDisableUserModal.jsx b/heicode/web/classic/src/components/table/users/modals/EnableDisableUserModal.jsx similarity index 100% rename from new-api/web/classic/src/components/table/users/modals/EnableDisableUserModal.jsx rename to heicode/web/classic/src/components/table/users/modals/EnableDisableUserModal.jsx diff --git a/new-api/web/classic/src/components/table/users/modals/PromoteUserModal.jsx b/heicode/web/classic/src/components/table/users/modals/PromoteUserModal.jsx similarity index 100% rename from new-api/web/classic/src/components/table/users/modals/PromoteUserModal.jsx rename to heicode/web/classic/src/components/table/users/modals/PromoteUserModal.jsx diff --git a/new-api/web/classic/src/components/table/users/modals/ResetPasskeyModal.jsx b/heicode/web/classic/src/components/table/users/modals/ResetPasskeyModal.jsx similarity index 100% rename from new-api/web/classic/src/components/table/users/modals/ResetPasskeyModal.jsx rename to heicode/web/classic/src/components/table/users/modals/ResetPasskeyModal.jsx diff --git a/new-api/web/classic/src/components/table/users/modals/ResetTwoFAModal.jsx b/heicode/web/classic/src/components/table/users/modals/ResetTwoFAModal.jsx similarity index 100% rename from new-api/web/classic/src/components/table/users/modals/ResetTwoFAModal.jsx rename to heicode/web/classic/src/components/table/users/modals/ResetTwoFAModal.jsx diff --git a/new-api/web/classic/src/components/table/users/modals/UserBindingManagementModal.jsx b/heicode/web/classic/src/components/table/users/modals/UserBindingManagementModal.jsx similarity index 100% rename from new-api/web/classic/src/components/table/users/modals/UserBindingManagementModal.jsx rename to heicode/web/classic/src/components/table/users/modals/UserBindingManagementModal.jsx diff --git a/new-api/web/classic/src/components/table/users/modals/UserSubscriptionsModal.jsx b/heicode/web/classic/src/components/table/users/modals/UserSubscriptionsModal.jsx similarity index 100% rename from new-api/web/classic/src/components/table/users/modals/UserSubscriptionsModal.jsx rename to heicode/web/classic/src/components/table/users/modals/UserSubscriptionsModal.jsx diff --git a/new-api/web/classic/src/components/topup/InvitationCard.jsx b/heicode/web/classic/src/components/topup/InvitationCard.jsx similarity index 100% rename from new-api/web/classic/src/components/topup/InvitationCard.jsx rename to heicode/web/classic/src/components/topup/InvitationCard.jsx diff --git a/new-api/web/classic/src/components/topup/RechargeCard.jsx b/heicode/web/classic/src/components/topup/RechargeCard.jsx similarity index 100% rename from new-api/web/classic/src/components/topup/RechargeCard.jsx rename to heicode/web/classic/src/components/topup/RechargeCard.jsx diff --git a/new-api/web/classic/src/components/topup/SubscriptionPlansCard.jsx b/heicode/web/classic/src/components/topup/SubscriptionPlansCard.jsx similarity index 100% rename from new-api/web/classic/src/components/topup/SubscriptionPlansCard.jsx rename to heicode/web/classic/src/components/topup/SubscriptionPlansCard.jsx diff --git a/new-api/web/classic/src/components/topup/index.jsx b/heicode/web/classic/src/components/topup/index.jsx similarity index 100% rename from new-api/web/classic/src/components/topup/index.jsx rename to heicode/web/classic/src/components/topup/index.jsx diff --git a/new-api/web/classic/src/components/topup/modals/PaymentConfirmModal.jsx b/heicode/web/classic/src/components/topup/modals/PaymentConfirmModal.jsx similarity index 100% rename from new-api/web/classic/src/components/topup/modals/PaymentConfirmModal.jsx rename to heicode/web/classic/src/components/topup/modals/PaymentConfirmModal.jsx diff --git a/new-api/web/classic/src/components/topup/modals/SubscriptionPurchaseModal.jsx b/heicode/web/classic/src/components/topup/modals/SubscriptionPurchaseModal.jsx similarity index 100% rename from new-api/web/classic/src/components/topup/modals/SubscriptionPurchaseModal.jsx rename to heicode/web/classic/src/components/topup/modals/SubscriptionPurchaseModal.jsx diff --git a/new-api/web/classic/src/components/topup/modals/TopupHistoryModal.jsx b/heicode/web/classic/src/components/topup/modals/TopupHistoryModal.jsx similarity index 100% rename from new-api/web/classic/src/components/topup/modals/TopupHistoryModal.jsx rename to heicode/web/classic/src/components/topup/modals/TopupHistoryModal.jsx diff --git a/new-api/web/classic/src/components/topup/modals/TransferModal.jsx b/heicode/web/classic/src/components/topup/modals/TransferModal.jsx similarity index 100% rename from new-api/web/classic/src/components/topup/modals/TransferModal.jsx rename to heicode/web/classic/src/components/topup/modals/TransferModal.jsx diff --git a/new-api/web/classic/src/constants/billing.constants.js b/heicode/web/classic/src/constants/billing.constants.js similarity index 100% rename from new-api/web/classic/src/constants/billing.constants.js rename to heicode/web/classic/src/constants/billing.constants.js diff --git a/new-api/web/classic/src/constants/channel-affinity-template.constants.js b/heicode/web/classic/src/constants/channel-affinity-template.constants.js similarity index 100% rename from new-api/web/classic/src/constants/channel-affinity-template.constants.js rename to heicode/web/classic/src/constants/channel-affinity-template.constants.js diff --git a/new-api/web/classic/src/constants/channel.constants.js b/heicode/web/classic/src/constants/channel.constants.js similarity index 100% rename from new-api/web/classic/src/constants/channel.constants.js rename to heicode/web/classic/src/constants/channel.constants.js diff --git a/new-api/web/classic/src/constants/common.constant.js b/heicode/web/classic/src/constants/common.constant.js similarity index 100% rename from new-api/web/classic/src/constants/common.constant.js rename to heicode/web/classic/src/constants/common.constant.js diff --git a/new-api/web/classic/src/constants/console.constants.js b/heicode/web/classic/src/constants/console.constants.js similarity index 100% rename from new-api/web/classic/src/constants/console.constants.js rename to heicode/web/classic/src/constants/console.constants.js diff --git a/new-api/web/classic/src/constants/dashboard.constants.js b/heicode/web/classic/src/constants/dashboard.constants.js similarity index 100% rename from new-api/web/classic/src/constants/dashboard.constants.js rename to heicode/web/classic/src/constants/dashboard.constants.js diff --git a/new-api/web/classic/src/constants/index.js b/heicode/web/classic/src/constants/index.js similarity index 100% rename from new-api/web/classic/src/constants/index.js rename to heicode/web/classic/src/constants/index.js diff --git a/new-api/web/classic/src/constants/playground.constants.js b/heicode/web/classic/src/constants/playground.constants.js similarity index 100% rename from new-api/web/classic/src/constants/playground.constants.js rename to heicode/web/classic/src/constants/playground.constants.js diff --git a/new-api/web/classic/src/constants/redemption.constants.js b/heicode/web/classic/src/constants/redemption.constants.js similarity index 100% rename from new-api/web/classic/src/constants/redemption.constants.js rename to heicode/web/classic/src/constants/redemption.constants.js diff --git a/new-api/web/classic/src/constants/toast.constants.js b/heicode/web/classic/src/constants/toast.constants.js similarity index 100% rename from new-api/web/classic/src/constants/toast.constants.js rename to heicode/web/classic/src/constants/toast.constants.js diff --git a/new-api/web/classic/src/constants/user.constants.js b/heicode/web/classic/src/constants/user.constants.js similarity index 100% rename from new-api/web/classic/src/constants/user.constants.js rename to heicode/web/classic/src/constants/user.constants.js diff --git a/new-api/web/classic/src/context/Status/index.jsx b/heicode/web/classic/src/context/Status/index.jsx similarity index 100% rename from new-api/web/classic/src/context/Status/index.jsx rename to heicode/web/classic/src/context/Status/index.jsx diff --git a/new-api/web/classic/src/context/Status/reducer.js b/heicode/web/classic/src/context/Status/reducer.js similarity index 100% rename from new-api/web/classic/src/context/Status/reducer.js rename to heicode/web/classic/src/context/Status/reducer.js diff --git a/new-api/web/classic/src/context/Theme/index.jsx b/heicode/web/classic/src/context/Theme/index.jsx similarity index 100% rename from new-api/web/classic/src/context/Theme/index.jsx rename to heicode/web/classic/src/context/Theme/index.jsx diff --git a/new-api/web/classic/src/context/User/index.jsx b/heicode/web/classic/src/context/User/index.jsx similarity index 100% rename from new-api/web/classic/src/context/User/index.jsx rename to heicode/web/classic/src/context/User/index.jsx diff --git a/new-api/web/classic/src/context/User/reducer.js b/heicode/web/classic/src/context/User/reducer.js similarity index 100% rename from new-api/web/classic/src/context/User/reducer.js rename to heicode/web/classic/src/context/User/reducer.js diff --git a/new-api/web/classic/src/contexts/PlaygroundContext.jsx b/heicode/web/classic/src/contexts/PlaygroundContext.jsx similarity index 100% rename from new-api/web/classic/src/contexts/PlaygroundContext.jsx rename to heicode/web/classic/src/contexts/PlaygroundContext.jsx diff --git a/new-api/web/classic/src/helpers/api.js b/heicode/web/classic/src/helpers/api.js similarity index 100% rename from new-api/web/classic/src/helpers/api.js rename to heicode/web/classic/src/helpers/api.js diff --git a/new-api/web/classic/src/helpers/auth.jsx b/heicode/web/classic/src/helpers/auth.jsx similarity index 100% rename from new-api/web/classic/src/helpers/auth.jsx rename to heicode/web/classic/src/helpers/auth.jsx diff --git a/new-api/web/classic/src/helpers/base64.js b/heicode/web/classic/src/helpers/base64.js similarity index 100% rename from new-api/web/classic/src/helpers/base64.js rename to heicode/web/classic/src/helpers/base64.js diff --git a/new-api/web/classic/src/helpers/boolean.js b/heicode/web/classic/src/helpers/boolean.js similarity index 100% rename from new-api/web/classic/src/helpers/boolean.js rename to heicode/web/classic/src/helpers/boolean.js diff --git a/new-api/web/classic/src/helpers/dashboard.jsx b/heicode/web/classic/src/helpers/dashboard.jsx similarity index 100% rename from new-api/web/classic/src/helpers/dashboard.jsx rename to heicode/web/classic/src/helpers/dashboard.jsx diff --git a/new-api/web/classic/src/helpers/data.js b/heicode/web/classic/src/helpers/data.js similarity index 100% rename from new-api/web/classic/src/helpers/data.js rename to heicode/web/classic/src/helpers/data.js diff --git a/new-api/web/classic/src/helpers/history.js b/heicode/web/classic/src/helpers/history.js similarity index 100% rename from new-api/web/classic/src/helpers/history.js rename to heicode/web/classic/src/helpers/history.js diff --git a/new-api/web/classic/src/helpers/index.js b/heicode/web/classic/src/helpers/index.js similarity index 100% rename from new-api/web/classic/src/helpers/index.js rename to heicode/web/classic/src/helpers/index.js diff --git a/new-api/web/classic/src/helpers/log.js b/heicode/web/classic/src/helpers/log.js similarity index 100% rename from new-api/web/classic/src/helpers/log.js rename to heicode/web/classic/src/helpers/log.js diff --git a/new-api/web/classic/src/helpers/passkey.js b/heicode/web/classic/src/helpers/passkey.js similarity index 100% rename from new-api/web/classic/src/helpers/passkey.js rename to heicode/web/classic/src/helpers/passkey.js diff --git a/new-api/web/classic/src/helpers/quota.js b/heicode/web/classic/src/helpers/quota.js similarity index 100% rename from new-api/web/classic/src/helpers/quota.js rename to heicode/web/classic/src/helpers/quota.js diff --git a/new-api/web/classic/src/helpers/render.jsx b/heicode/web/classic/src/helpers/render.jsx similarity index 100% rename from new-api/web/classic/src/helpers/render.jsx rename to heicode/web/classic/src/helpers/render.jsx diff --git a/new-api/web/classic/src/helpers/secureApiCall.js b/heicode/web/classic/src/helpers/secureApiCall.js similarity index 100% rename from new-api/web/classic/src/helpers/secureApiCall.js rename to heicode/web/classic/src/helpers/secureApiCall.js diff --git a/new-api/web/classic/src/helpers/statusCodeRules.js b/heicode/web/classic/src/helpers/statusCodeRules.js similarity index 100% rename from new-api/web/classic/src/helpers/statusCodeRules.js rename to heicode/web/classic/src/helpers/statusCodeRules.js diff --git a/new-api/web/classic/src/helpers/subscriptionFormat.js b/heicode/web/classic/src/helpers/subscriptionFormat.js similarity index 100% rename from new-api/web/classic/src/helpers/subscriptionFormat.js rename to heicode/web/classic/src/helpers/subscriptionFormat.js diff --git a/new-api/web/classic/src/helpers/token.js b/heicode/web/classic/src/helpers/token.js similarity index 100% rename from new-api/web/classic/src/helpers/token.js rename to heicode/web/classic/src/helpers/token.js diff --git a/new-api/web/classic/src/helpers/utils.jsx b/heicode/web/classic/src/helpers/utils.jsx similarity index 100% rename from new-api/web/classic/src/helpers/utils.jsx rename to heicode/web/classic/src/helpers/utils.jsx diff --git a/new-api/web/classic/src/hooks/channels/upstreamUpdateUtils.js b/heicode/web/classic/src/hooks/channels/upstreamUpdateUtils.js similarity index 100% rename from new-api/web/classic/src/hooks/channels/upstreamUpdateUtils.js rename to heicode/web/classic/src/hooks/channels/upstreamUpdateUtils.js diff --git a/new-api/web/classic/src/hooks/channels/useChannelUpstreamUpdates.jsx b/heicode/web/classic/src/hooks/channels/useChannelUpstreamUpdates.jsx similarity index 100% rename from new-api/web/classic/src/hooks/channels/useChannelUpstreamUpdates.jsx rename to heicode/web/classic/src/hooks/channels/useChannelUpstreamUpdates.jsx diff --git a/new-api/web/classic/src/hooks/channels/useChannelsData.jsx b/heicode/web/classic/src/hooks/channels/useChannelsData.jsx similarity index 100% rename from new-api/web/classic/src/hooks/channels/useChannelsData.jsx rename to heicode/web/classic/src/hooks/channels/useChannelsData.jsx diff --git a/new-api/web/classic/src/hooks/chat/useTokenKeys.js b/heicode/web/classic/src/hooks/chat/useTokenKeys.js similarity index 100% rename from new-api/web/classic/src/hooks/chat/useTokenKeys.js rename to heicode/web/classic/src/hooks/chat/useTokenKeys.js diff --git a/new-api/web/classic/src/hooks/common/useContainerWidth.js b/heicode/web/classic/src/hooks/common/useContainerWidth.js similarity index 100% rename from new-api/web/classic/src/hooks/common/useContainerWidth.js rename to heicode/web/classic/src/hooks/common/useContainerWidth.js diff --git a/new-api/web/classic/src/hooks/common/useHeaderBar.js b/heicode/web/classic/src/hooks/common/useHeaderBar.js similarity index 100% rename from new-api/web/classic/src/hooks/common/useHeaderBar.js rename to heicode/web/classic/src/hooks/common/useHeaderBar.js diff --git a/new-api/web/classic/src/hooks/common/useIsMobile.js b/heicode/web/classic/src/hooks/common/useIsMobile.js similarity index 100% rename from new-api/web/classic/src/hooks/common/useIsMobile.js rename to heicode/web/classic/src/hooks/common/useIsMobile.js diff --git a/new-api/web/classic/src/hooks/common/useMinimumLoadingTime.js b/heicode/web/classic/src/hooks/common/useMinimumLoadingTime.js similarity index 100% rename from new-api/web/classic/src/hooks/common/useMinimumLoadingTime.js rename to heicode/web/classic/src/hooks/common/useMinimumLoadingTime.js diff --git a/new-api/web/classic/src/hooks/common/useNavigation.js b/heicode/web/classic/src/hooks/common/useNavigation.js similarity index 100% rename from new-api/web/classic/src/hooks/common/useNavigation.js rename to heicode/web/classic/src/hooks/common/useNavigation.js diff --git a/new-api/web/classic/src/hooks/common/useNotifications.js b/heicode/web/classic/src/hooks/common/useNotifications.js similarity index 100% rename from new-api/web/classic/src/hooks/common/useNotifications.js rename to heicode/web/classic/src/hooks/common/useNotifications.js diff --git a/new-api/web/classic/src/hooks/common/useSecureVerification.jsx b/heicode/web/classic/src/hooks/common/useSecureVerification.jsx similarity index 100% rename from new-api/web/classic/src/hooks/common/useSecureVerification.jsx rename to heicode/web/classic/src/hooks/common/useSecureVerification.jsx diff --git a/new-api/web/classic/src/hooks/common/useSidebar.js b/heicode/web/classic/src/hooks/common/useSidebar.js similarity index 100% rename from new-api/web/classic/src/hooks/common/useSidebar.js rename to heicode/web/classic/src/hooks/common/useSidebar.js diff --git a/new-api/web/classic/src/hooks/common/useSidebarCollapsed.js b/heicode/web/classic/src/hooks/common/useSidebarCollapsed.js similarity index 100% rename from new-api/web/classic/src/hooks/common/useSidebarCollapsed.js rename to heicode/web/classic/src/hooks/common/useSidebarCollapsed.js diff --git a/new-api/web/classic/src/hooks/common/useTableCompactMode.js b/heicode/web/classic/src/hooks/common/useTableCompactMode.js similarity index 100% rename from new-api/web/classic/src/hooks/common/useTableCompactMode.js rename to heicode/web/classic/src/hooks/common/useTableCompactMode.js diff --git a/new-api/web/classic/src/hooks/common/useUserPermissions.js b/heicode/web/classic/src/hooks/common/useUserPermissions.js similarity index 100% rename from new-api/web/classic/src/hooks/common/useUserPermissions.js rename to heicode/web/classic/src/hooks/common/useUserPermissions.js diff --git a/new-api/web/classic/src/hooks/dashboard/useDashboardCharts.jsx b/heicode/web/classic/src/hooks/dashboard/useDashboardCharts.jsx similarity index 100% rename from new-api/web/classic/src/hooks/dashboard/useDashboardCharts.jsx rename to heicode/web/classic/src/hooks/dashboard/useDashboardCharts.jsx diff --git a/new-api/web/classic/src/hooks/dashboard/useDashboardData.js b/heicode/web/classic/src/hooks/dashboard/useDashboardData.js similarity index 100% rename from new-api/web/classic/src/hooks/dashboard/useDashboardData.js rename to heicode/web/classic/src/hooks/dashboard/useDashboardData.js diff --git a/new-api/web/classic/src/hooks/dashboard/useDashboardStats.jsx b/heicode/web/classic/src/hooks/dashboard/useDashboardStats.jsx similarity index 100% rename from new-api/web/classic/src/hooks/dashboard/useDashboardStats.jsx rename to heicode/web/classic/src/hooks/dashboard/useDashboardStats.jsx diff --git a/new-api/web/classic/src/hooks/mj-logs/useMjLogsData.js b/heicode/web/classic/src/hooks/mj-logs/useMjLogsData.js similarity index 100% rename from new-api/web/classic/src/hooks/mj-logs/useMjLogsData.js rename to heicode/web/classic/src/hooks/mj-logs/useMjLogsData.js diff --git a/new-api/web/classic/src/hooks/model-deployments/useDeploymentResources.js b/heicode/web/classic/src/hooks/model-deployments/useDeploymentResources.js similarity index 100% rename from new-api/web/classic/src/hooks/model-deployments/useDeploymentResources.js rename to heicode/web/classic/src/hooks/model-deployments/useDeploymentResources.js diff --git a/new-api/web/classic/src/hooks/model-deployments/useDeploymentsData.jsx b/heicode/web/classic/src/hooks/model-deployments/useDeploymentsData.jsx similarity index 100% rename from new-api/web/classic/src/hooks/model-deployments/useDeploymentsData.jsx rename to heicode/web/classic/src/hooks/model-deployments/useDeploymentsData.jsx diff --git a/new-api/web/classic/src/hooks/model-deployments/useEnhancedDeploymentActions.jsx b/heicode/web/classic/src/hooks/model-deployments/useEnhancedDeploymentActions.jsx similarity index 100% rename from new-api/web/classic/src/hooks/model-deployments/useEnhancedDeploymentActions.jsx rename to heicode/web/classic/src/hooks/model-deployments/useEnhancedDeploymentActions.jsx diff --git a/new-api/web/classic/src/hooks/model-deployments/useModelDeploymentSettings.js b/heicode/web/classic/src/hooks/model-deployments/useModelDeploymentSettings.js similarity index 100% rename from new-api/web/classic/src/hooks/model-deployments/useModelDeploymentSettings.js rename to heicode/web/classic/src/hooks/model-deployments/useModelDeploymentSettings.js diff --git a/new-api/web/classic/src/hooks/model-pricing/useModelPricingData.jsx b/heicode/web/classic/src/hooks/model-pricing/useModelPricingData.jsx similarity index 100% rename from new-api/web/classic/src/hooks/model-pricing/useModelPricingData.jsx rename to heicode/web/classic/src/hooks/model-pricing/useModelPricingData.jsx diff --git a/new-api/web/classic/src/hooks/model-pricing/usePricingFilterCounts.js b/heicode/web/classic/src/hooks/model-pricing/usePricingFilterCounts.js similarity index 100% rename from new-api/web/classic/src/hooks/model-pricing/usePricingFilterCounts.js rename to heicode/web/classic/src/hooks/model-pricing/usePricingFilterCounts.js diff --git a/new-api/web/classic/src/hooks/models/useModelsData.jsx b/heicode/web/classic/src/hooks/models/useModelsData.jsx similarity index 100% rename from new-api/web/classic/src/hooks/models/useModelsData.jsx rename to heicode/web/classic/src/hooks/models/useModelsData.jsx diff --git a/new-api/web/classic/src/hooks/playground/useApiRequest.jsx b/heicode/web/classic/src/hooks/playground/useApiRequest.jsx similarity index 100% rename from new-api/web/classic/src/hooks/playground/useApiRequest.jsx rename to heicode/web/classic/src/hooks/playground/useApiRequest.jsx diff --git a/new-api/web/classic/src/hooks/playground/useDataLoader.js b/heicode/web/classic/src/hooks/playground/useDataLoader.js similarity index 100% rename from new-api/web/classic/src/hooks/playground/useDataLoader.js rename to heicode/web/classic/src/hooks/playground/useDataLoader.js diff --git a/new-api/web/classic/src/hooks/playground/useMessageActions.jsx b/heicode/web/classic/src/hooks/playground/useMessageActions.jsx similarity index 100% rename from new-api/web/classic/src/hooks/playground/useMessageActions.jsx rename to heicode/web/classic/src/hooks/playground/useMessageActions.jsx diff --git a/new-api/web/classic/src/hooks/playground/useMessageEdit.jsx b/heicode/web/classic/src/hooks/playground/useMessageEdit.jsx similarity index 100% rename from new-api/web/classic/src/hooks/playground/useMessageEdit.jsx rename to heicode/web/classic/src/hooks/playground/useMessageEdit.jsx diff --git a/new-api/web/classic/src/hooks/playground/usePlaygroundState.js b/heicode/web/classic/src/hooks/playground/usePlaygroundState.js similarity index 100% rename from new-api/web/classic/src/hooks/playground/usePlaygroundState.js rename to heicode/web/classic/src/hooks/playground/usePlaygroundState.js diff --git a/new-api/web/classic/src/hooks/playground/useSyncMessageAndCustomBody.js b/heicode/web/classic/src/hooks/playground/useSyncMessageAndCustomBody.js similarity index 100% rename from new-api/web/classic/src/hooks/playground/useSyncMessageAndCustomBody.js rename to heicode/web/classic/src/hooks/playground/useSyncMessageAndCustomBody.js diff --git a/new-api/web/classic/src/hooks/redemptions/useRedemptionsData.jsx b/heicode/web/classic/src/hooks/redemptions/useRedemptionsData.jsx similarity index 100% rename from new-api/web/classic/src/hooks/redemptions/useRedemptionsData.jsx rename to heicode/web/classic/src/hooks/redemptions/useRedemptionsData.jsx diff --git a/new-api/web/classic/src/hooks/subscriptions/useSubscriptionsData.jsx b/heicode/web/classic/src/hooks/subscriptions/useSubscriptionsData.jsx similarity index 100% rename from new-api/web/classic/src/hooks/subscriptions/useSubscriptionsData.jsx rename to heicode/web/classic/src/hooks/subscriptions/useSubscriptionsData.jsx diff --git a/new-api/web/classic/src/hooks/task-logs/useTaskLogsData.js b/heicode/web/classic/src/hooks/task-logs/useTaskLogsData.js similarity index 100% rename from new-api/web/classic/src/hooks/task-logs/useTaskLogsData.js rename to heicode/web/classic/src/hooks/task-logs/useTaskLogsData.js diff --git a/new-api/web/classic/src/hooks/tokens/useTokensData.jsx b/heicode/web/classic/src/hooks/tokens/useTokensData.jsx similarity index 99% rename from new-api/web/classic/src/hooks/tokens/useTokensData.jsx rename to heicode/web/classic/src/hooks/tokens/useTokensData.jsx index abee82b..d9717c0 100644 --- a/new-api/web/classic/src/hooks/tokens/useTokensData.jsx +++ b/heicode/web/classic/src/hooks/tokens/useTokensData.jsx @@ -233,7 +233,7 @@ export const useTokensData = (openFluentNotification, openCCSwitchModal) => { } if (url.includes('{cherryConfig}') === true) { let cherryConfig = { - id: 'new-api', + id: 'heicode', baseUrl: serverAddress, apiKey: `sk-${fullKey}`, }; @@ -243,7 +243,7 @@ export const useTokensData = (openFluentNotification, openCCSwitchModal) => { url = url.replaceAll('{cherryConfig}', encodedConfig); } else if (url.includes('{aionuiConfig}') === true) { let aionuiConfig = { - platform: 'new-api', + platform: 'heicode', baseUrl: serverAddress, apiKey: `sk-${fullKey}`, }; diff --git a/new-api/web/classic/src/hooks/usage-logs/useUsageLogsData.jsx b/heicode/web/classic/src/hooks/usage-logs/useUsageLogsData.jsx similarity index 100% rename from new-api/web/classic/src/hooks/usage-logs/useUsageLogsData.jsx rename to heicode/web/classic/src/hooks/usage-logs/useUsageLogsData.jsx diff --git a/new-api/web/classic/src/hooks/users/useUsersData.jsx b/heicode/web/classic/src/hooks/users/useUsersData.jsx similarity index 100% rename from new-api/web/classic/src/hooks/users/useUsersData.jsx rename to heicode/web/classic/src/hooks/users/useUsersData.jsx diff --git a/new-api/web/classic/src/i18n/i18n.js b/heicode/web/classic/src/i18n/i18n.js similarity index 100% rename from new-api/web/classic/src/i18n/i18n.js rename to heicode/web/classic/src/i18n/i18n.js diff --git a/new-api/web/classic/src/i18n/language.js b/heicode/web/classic/src/i18n/language.js similarity index 100% rename from new-api/web/classic/src/i18n/language.js rename to heicode/web/classic/src/i18n/language.js diff --git a/new-api/web/classic/src/i18n/locales/en.json b/heicode/web/classic/src/i18n/locales/en.json similarity index 99% rename from new-api/web/classic/src/i18n/locales/en.json rename to heicode/web/classic/src/i18n/locales/en.json index dc8ad6c..edc31bd 100644 --- a/new-api/web/classic/src/i18n/locales/en.json +++ b/heicode/web/classic/src/i18n/locales/en.json @@ -511,7 +511,7 @@ "使用认证器应用扫描二维码": "Scan QR code with authenticator app", "使用说明": "Guide", "例如": "e.g.", - "例如 /var/cache/new-api": "e.g. /var/cache/new-api", + "例如 /var/cache/heicode": "e.g. /var/cache/heicode", "例如 €, £, Rp, ₩, ₹...": "For example, €, £, Rp, ₩, ₹...", "例如 https://docs.newapi.pro": "E.g., https://docs.newapi.pro", "例如 https://example.com/api/waffo/webhook": "", @@ -1285,7 +1285,7 @@ "密钥获取成功": "Key acquisition successful", "密钥输入方式": "Key input method", "密钥预览": "Key preview", - "对于官方渠道,new-api已经内置地址,除非是第三方代理站点或者Azure的特殊接入地址,否则不需要填写": "For official channels, the new-api has a built-in address. Unless it is a third-party proxy site or a special Azure access address, there is no need to fill it in", + "对于官方渠道,heicode已经内置地址,除非是第三方代理站点或者Azure的特殊接入地址,否则不需要填写": "For official channels, the heicode has a built-in address. Unless it is a third-party proxy site or a special Azure access address, there is no need to fill it in", "对免费模型启用预消耗": "Enable pre-consumption for free models", "对域名启用 IP 过滤(推荐开启)": "Enable IP filtering for domains (recommended)", "对外运营模式": "Default mode", @@ -1581,7 +1581,7 @@ "我的订阅": "My Subscriptions", "我确认开启高危重试": "I confirm enabling high-risk retry", "或": "or", - "或其兼容new-api-worker格式的其他版本": "or other versions compatible with new-api-worker format", + "或其兼容heicode-worker格式的其他版本": "or other versions compatible with heicode-worker format", "或手动输入密钥:": "Or manually enter the secret:", "所有上游数据均可信": "All upstream data is reliable", "所有密钥已复制到剪贴板": "All keys have been copied to the clipboard", @@ -2380,7 +2380,7 @@ "用于API调用的身份验证令牌,请妥善保管": "Authentication token for API calls, please keep it safe", "用于唯一标识用户的字段路径": "Field path for uniquely identifying users", "用于配置网络代理,支持 socks5 协议": "Used to configure network proxy, supports socks5 protocol", - "用于验证回调 new-api 的 webhook 请求的密钥,敏感信息不显示": "The key used to validate webhook requests for the callback new-api, sensitive information is not displayed.", + "用于验证回调 heicode 的 webhook 请求的密钥,敏感信息不显示": "The key used to validate webhook requests for the callback heicode, sensitive information is not displayed.", "用以支持基于 WebAuthn 的无密码登录注册": "Support WebAuthn-based passwordless login and registration", "用以支持用户校验": "To support user verification", "用以支持系统的邮件发送": "To support the system email sending", diff --git a/new-api/web/classic/src/i18n/locales/fr.json b/heicode/web/classic/src/i18n/locales/fr.json similarity index 99% rename from new-api/web/classic/src/i18n/locales/fr.json rename to heicode/web/classic/src/i18n/locales/fr.json index 8e7d143..40fcc1e 100644 --- a/new-api/web/classic/src/i18n/locales/fr.json +++ b/heicode/web/classic/src/i18n/locales/fr.json @@ -126,7 +126,7 @@ "CPU 使用率超过此值时拒绝请求": "Rejeter les requêtes lorsque l'utilisation du CPU dépasse cette valeur", "CPU 阈值 (%)": "Seuil CPU (%)", "Creem API 密钥,敏感信息不显示": "Clé API Creem, les informations sensibles ne sont pas affichées", - "Creem Setting Tips": "Creem ne prend en charge que des produits à montant fixe préconfigurés. Ces produits et leurs prix doivent être créés et configurés à l'avance sur le site Creem, les recharges à montant dynamique ne sont donc pas prises en charge. Configurez le nom et le prix du produit sur Creem, récupérez l'identifiant du produit, puis remplissez-le ci-dessous. Définissez enfin le montant et le prix affiché dans new-api.", + "Creem Setting Tips": "Creem ne prend en charge que des produits à montant fixe préconfigurés. Ces produits et leurs prix doivent être créés et configurés à l'avance sur le site Creem, les recharges à montant dynamique ne sont donc pas prises en charge. Configurez le nom et le prix du produit sur Creem, récupérez l'identifiant du produit, puis remplissez-le ci-dessous. Définissez enfin le montant et le prix affiché dans heicode.", "Creem 介绍": "Présentation de Creem", "Creem 充值": "Recharge Creem", "Creem 设置": "Paramètres Creem", @@ -507,7 +507,7 @@ "使用认证器应用(如 Google Authenticator、Microsoft Authenticator)扫描下方二维码:": "Utilisez une application d'authentification (telle que Google Authenticator, Microsoft Authenticator) pour scanner le code QR ci-dessous :", "使用认证器应用扫描二维码": "Scanner le code QR avec l'application d'authentification", "使用说明": "Guide", - "例如 /var/cache/new-api": "ex. : /var/cache/new-api", + "例如 /var/cache/heicode": "ex. : /var/cache/heicode", "例如 €, £, Rp, ₩, ₹...": "Par exemple, €, £, Rp, ₩, ₹...", "例如 https://docs.newapi.pro": "Par exemple, https://docs.newapi.pro", "例如 https://example.com/api/waffo/webhook": "", @@ -1281,7 +1281,7 @@ "密钥获取成功": "Acquisition de la clé réussie", "密钥输入方式": "Méthode de saisie de la clé", "密钥预览": "Aperçu de la clé", - "对于官方渠道,new-api已经内置地址,除非是第三方代理站点或者Azure的特殊接入地址,否则不需要填写": "Pour les canaux officiels, le new-api a une adresse intégrée. Sauf s'il s'agit d'un site proxy tiers ou d'une adresse d'accès Azure spéciale, il n'est pas nécessaire de la remplir", + "对于官方渠道,heicode已经内置地址,除非是第三方代理站点或者Azure的特殊接入地址,否则不需要填写": "Pour les canaux officiels, le heicode a une adresse intégrée. Sauf s'il s'agit d'un site proxy tiers ou d'une adresse d'accès Azure spéciale, il n'est pas nécessaire de la remplir", "对免费模型启用预消耗": "Activer la préconsommation pour les modèles gratuits", "对域名启用 IP 过滤(推荐开启)": "Activer le filtrage IP pour les domaines (recommandé)", "对外运营模式": "Mode par défaut", @@ -1585,7 +1585,7 @@ "我已阅读并同意": "J'ai lu et j'accepte", "我的订阅": "Mes abonnements", "或": "Ou", - "或其兼容new-api-worker格式的其他版本": "ou d'autres versions compatibles avec le format new-api-worker", + "或其兼容heicode-worker格式的其他版本": "ou d'autres versions compatibles avec le format heicode-worker", "或手动输入密钥:": "Ou saisissez manuellement le secret :", "所有上游数据均可信": "Toutes les données en amont sont fiables", "所有密钥已复制到剪贴板": "Toutes les clés ont été copiées dans le presse-papiers", @@ -2370,7 +2370,7 @@ "用于API调用的身份验证令牌,请妥善保管": "Jeton d'authentification pour les appels d'API, veuillez le conserver en lieu sûr", "用于唯一标识用户的字段路径": "Chemin du champ pour identifier les utilisateurs de manière unique", "用于配置网络代理,支持 socks5 协议": "Utilisé pour configurer le proxy réseau, prend en charge le protocole socks5", - "用于验证回调 new-api 的 webhook 请求的密钥,敏感信息不显示": "Clé utilisée pour vérifier les requêtes webhook de rappel de new-api, les informations sensibles ne sont pas affichées.", + "用于验证回调 heicode 的 webhook 请求的密钥,敏感信息不显示": "Clé utilisée pour vérifier les requêtes webhook de rappel de heicode, les informations sensibles ne sont pas affichées.", "用以支持基于 WebAuthn 的无密码登录注册": "Prise en charge de la connexion et de l'enregistrement sans mot de passe basés sur WebAuthn", "用以支持用户校验": "Pour prendre en charge la vérification des utilisateurs", "用以支持系统的邮件发送": "Pour prendre en charge l'envoi d'e-mails système", diff --git a/new-api/web/classic/src/i18n/locales/ja.json b/heicode/web/classic/src/i18n/locales/ja.json similarity index 99% rename from new-api/web/classic/src/i18n/locales/ja.json rename to heicode/web/classic/src/i18n/locales/ja.json index 88d2899..36d400b 100644 --- a/new-api/web/classic/src/i18n/locales/ja.json +++ b/heicode/web/classic/src/i18n/locales/ja.json @@ -499,7 +499,7 @@ "使用认证器应用(如 Google Authenticator、Microsoft Authenticator)扫描下方二维码:": "Google Authenticator、Microsoft Authenticatorなどの認証アプリで、以下のQRコードをスキャンしてください:", "使用认证器应用扫描二维码": " 認証アプリスキャン", "使用说明": "ガイド", - "例如 /var/cache/new-api": "例:/var/cache/new-api", + "例如 /var/cache/heicode": "例:/var/cache/heicode", "例如 €, £, Rp, ₩, ₹...": "例:€, £, Rp, ₩, ₹...", "例如 https://docs.newapi.pro": "例:https://docs.newapi.pro", "例如 https://example.com/api/waffo/webhook": "", @@ -1268,7 +1268,7 @@ "密钥获取成功": "APIキーの取得に成功しました", "密钥输入方式": "APIキーの入力方式", "密钥预览": "APIキーのプレビュー", - "对于官方渠道,new-api已经内置地址,除非是第三方代理站点或者Azure的特殊接入地址,否则不需要填写": "公式チャネルの場合、new-apiにはベースURLが組み込まれているため、サードパーティのプロキシサイトやAzureの専用のエンドポイントでない限り、入力する必要はありません。", + "对于官方渠道,heicode已经内置地址,除非是第三方代理站点或者Azure的特殊接入地址,否则不需要填写": "公式チャネルの場合、heicodeにはベースURLが組み込まれているため、サードパーティのプロキシサイトやAzureの専用のエンドポイントでない限り、入力する必要はありません。", "对免费模型启用预消耗": "Enable pre-consumption for free models", "对域名启用 IP 过滤(推荐开启)": "ドメインのIPフィルタリングを有効にする(推奨)", "对外运营模式": "公開運用モード", @@ -1556,7 +1556,7 @@ "我已阅读并同意": "読んで同意します", "我的订阅": "私のサブスクリプション", "或": "または", - "或其兼容new-api-worker格式的其他版本": "またはnew-api-worker形式と互換性のある他のバージョン", + "或其兼容heicode-worker格式的其他版本": "またはheicode-worker形式と互換性のある他のバージョン", "或手动输入密钥:": "またはAPIキーを手動で入力:", "所有上游数据均可信": "すべてのアップストリームデータは信頼できます", "所有密钥已复制到剪贴板": "すべてのAPIキーがクリップボードにコピーされました", @@ -2341,7 +2341,7 @@ "用于API调用的身份验证令牌,请妥善保管": "API呼び出し用の認証トークンです。大切に保管してください。", "用于唯一标识用户的字段路径": "ユーザーを一意に識別するためのフィールドパス", "用于配置网络代理,支持 socks5 协议": "ネットワークプロキシの設定に使用し、SOCKS5プロトコルに対応しています", - "用于验证回调 new-api 的 webhook 请求的密钥,敏感信息不显示": "The key used to validate webhook requests for the callback new-api, sensitive information is not displayed.", + "用于验证回调 heicode 的 webhook 请求的密钥,敏感信息不显示": "The key used to validate webhook requests for the callback heicode, sensitive information is not displayed.", "用以支持基于 WebAuthn 的无密码登录注册": "WebAuthnベースのパスワードレスログインとサインアップを有効にします", "用以支持用户校验": "ユーザー検証を有効にします", "用以支持系统的邮件发送": "システムによるメール送信を有効にします", diff --git a/new-api/web/classic/src/i18n/locales/ru.json b/heicode/web/classic/src/i18n/locales/ru.json similarity index 99% rename from new-api/web/classic/src/i18n/locales/ru.json rename to heicode/web/classic/src/i18n/locales/ru.json index 2980af1..1f292f9 100644 --- a/new-api/web/classic/src/i18n/locales/ru.json +++ b/heicode/web/classic/src/i18n/locales/ru.json @@ -130,7 +130,7 @@ "CPU 使用率超过此值时拒绝请求": "Отклонять запросы, когда использование CPU превышает это значение", "CPU 阈值 (%)": "Порог CPU (%)", "Creem API 密钥,敏感信息不显示": "API-ключ Creem, чувствительные данные не отображаются", - "Creem Setting Tips": "Creem поддерживает только преднастроенные товары с фиксированной суммой. Эти товары и их цены нужно заранее создать и настроить на сайте Creem, поэтому пополнения с произвольной суммой не поддерживаются. Настройте название и цену товара в Creem, получите идентификатор товара и укажите его ниже. Затем задайте сумму пополнения и отображаемую цену в new-api.", + "Creem Setting Tips": "Creem поддерживает только преднастроенные товары с фиксированной суммой. Эти товары и их цены нужно заранее создать и настроить на сайте Creem, поэтому пополнения с произвольной суммой не поддерживаются. Настройте название и цену товара в Creem, получите идентификатор товара и укажите его ниже. Затем задайте сумму пополнения и отображаемую цену в heicode.", "Creem 介绍": "О сервисе Creem", "Creem 充值": "Пополнение через Creem", "Creem 设置": "Настройки Creem", @@ -512,7 +512,7 @@ "使用认证器应用(如 Google Authenticator、Microsoft Authenticator)扫描下方二维码:": "Отсканируйте QR-код ниже с помощью приложения аутентификатора (например, Google Authenticator, Microsoft Authenticator):", "使用认证器应用扫描二维码": "Отсканировать QR-код с помощью приложения аутентификатора", "使用说明": "Guide", - "例如 /var/cache/new-api": "напр.: /var/cache/new-api", + "例如 /var/cache/heicode": "напр.: /var/cache/heicode", "例如 €, £, Rp, ₩, ₹...": "Например €, £, Rp, ₩, ₹...", "例如 https://docs.newapi.pro": "Например https://docs.newapi.pro", "例如 https://example.com/api/waffo/webhook": "", @@ -1289,7 +1289,7 @@ "密钥获取成功": "Ключ успешно получен", "密钥输入方式": "Способ ввода ключа", "密钥预览": "Предпросмотр ключа", - "对于官方渠道,new-api已经内置地址,除非是第三方代理站点或者Azure的特殊接入地址,否则不需要填写": "Для официальных каналов new-api уже имеет встроенные адреса, если это не сторонние прокси-сайты или специальные адреса доступа Azure, заполнять не нужно", + "对于官方渠道,heicode已经内置地址,除非是第三方代理站点或者Azure的特殊接入地址,否则不需要填写": "Для официальных каналов heicode уже имеет встроенные адреса, если это не сторонние прокси-сайты или специальные адреса доступа Azure, заполнять не нужно", "对免费模型启用预消耗": "Включить предварительное списание для бесплатных моделей", "对域名启用 IP 过滤(推荐开启)": "Включить IP-фильтрацию для доменов (рекомендуется)", "对外运营模式": "Режим внешней эксплуатации", @@ -1603,7 +1603,7 @@ "我已阅读并同意": "Я прочитал(а) и согласен(на)", "我的订阅": "Мои подписки", "或": "или", - "或其兼容new-api-worker格式的其他版本": "или другие версии, совместимые с форматом new-api-worker", + "或其兼容heicode-worker格式的其他版本": "или другие версии, совместимые с форматом heicode-worker", "或手动输入密钥:": "или введите ключ вручную: ", "所有上游数据均可信": "Все восходящие данные доверенные", "所有密钥已复制到剪贴板": "Все ключи скопированы в буфер обмена", @@ -2388,7 +2388,7 @@ "用于API调用的身份验证令牌,请妥善保管": "Токен аутентификации для API вызовов, пожалуйста, храните его надёжно", "用于唯一标识用户的字段路径": "Путь поля для уникальной идентификации пользователей", "用于配置网络代理,支持 socks5 协议": "Используется для настройки сетевого прокси, поддерживает протокол socks5", - "用于验证回调 new-api 的 webhook 请求的密钥,敏感信息不显示": "Ключ для проверки обратных запросов new-api по webhook, чувствительные данные не показываются.", + "用于验证回调 heicode 的 webhook 请求的密钥,敏感信息不显示": "Ключ для проверки обратных запросов heicode по webhook, чувствительные данные не показываются.", "用以支持基于 WebAuthn 的无密码登录注册": "Используется для поддержки входа и регистрации без пароля на основе WebAuthn", "用以支持用户校验": "Используется для поддержки проверки пользователей", "用以支持系统的邮件发送": "Используется для поддержки отправки электронной почты системой", diff --git a/new-api/web/classic/src/i18n/locales/vi.json b/heicode/web/classic/src/i18n/locales/vi.json similarity index 99% rename from new-api/web/classic/src/i18n/locales/vi.json rename to heicode/web/classic/src/i18n/locales/vi.json index 4ca1a77..b45ab61 100644 --- a/new-api/web/classic/src/i18n/locales/vi.json +++ b/heicode/web/classic/src/i18n/locales/vi.json @@ -500,7 +500,7 @@ "使用认证器应用(如 Google Authenticator、Microsoft Authenticator)扫描下方二维码:": "Sử dụng ứng dụng xác thực (như Google Authenticator, Microsoft Authenticator) để quét mã QR bên dưới:", "使用认证器应用扫描二维码": "Quét mã QR bằng ứng dụng xác thực", "使用说明": "Guide", - "例如 /var/cache/new-api": "VD: /var/cache/new-api", + "例如 /var/cache/heicode": "VD: /var/cache/heicode", "例如 €, £, Rp, ₩, ₹...": "Ví dụ, €, £, Rp, ₩, ₹...", "例如 https://docs.newapi.pro": "Ví dụ, https://docs.newapi.pro", "例如 https://example.com/api/waffo/webhook": "", @@ -1269,7 +1269,7 @@ "密钥获取成功": "Lấy khóa thành công", "密钥输入方式": "Phương thức nhập khóa", "密钥预览": "Xem trước khóa", - "对于官方渠道,new-api已经内置地址,除非是第三方代理站点或者Azure的特殊接入地址,否则不需要填写": "Đối với các kênh chính thức, new-api đã tích hợp sẵn địa chỉ. Trừ khi đó là trang web proxy của bên thứ ba hoặc địa chỉ truy cập đặc biệt của Azure, không cần điền vào", + "对于官方渠道,heicode已经内置地址,除非是第三方代理站点或者Azure的特殊接入地址,否则不需要填写": "Đối với các kênh chính thức, heicode đã tích hợp sẵn địa chỉ. Trừ khi đó là trang web proxy của bên thứ ba hoặc địa chỉ truy cập đặc biệt của Azure, không cần điền vào", "对免费模型启用预消耗": "Enable pre-consumption for free models", "对域名启用 IP 过滤(推荐开启)": "Bật lọc IP cho tên miền (khuyến nghị)", "对外运营模式": "Chế độ mặc định", @@ -1557,7 +1557,7 @@ "我已阅读并同意": "Tôi đã đọc và đồng ý với", "我的订阅": "Đăng ký của tôi", "或": "hoặc", - "或其兼容new-api-worker格式的其他版本": "hoặc các phiên bản khác tương thích với định dạng new-api-worker", + "或其兼容heicode-worker格式的其他版本": "hoặc các phiên bản khác tương thích với định dạng heicode-worker", "或手动输入密钥:": "Hoặc nhập khóa thủ công:", "所有上游数据均可信": "Tất cả dữ liệu thượng nguồn đều đáng tin cậy", "所有密钥已复制到剪贴板": "Tất cả các khóa đã được sao chép vào khay nhớ tạm", @@ -2498,7 +2498,7 @@ "用于唯一标识用户的字段路径": "Đường dẫn trường để nhận dạng duy nhất người dùng", "用于配置网络代理,支持 socks5 协议": "Được sử dụng để cấu hình proxy mạng, hỗ trợ giao thức socks5", "用于非 OpenAI 格式的 Gemini/Vertex 渠道": "Dành cho các kênh Gemini/Vertex không phải định dạng OpenAI", - "用于验证回调 new-api 的 webhook 请求的密钥,敏感信息不显示": "Khóa được sử dụng để xác minh các yêu cầu webhook gọi lại new-api, thông tin nhạy cảm không được hiển thị.", + "用于验证回调 heicode 的 webhook 请求的密钥,敏感信息不显示": "Khóa được sử dụng để xác minh các yêu cầu webhook gọi lại heicode, thông tin nhạy cảm không được hiển thị.", "用以支持基于 WebAuthn 的无密码登录注册": "Hỗ trợ đăng nhập và đăng ký không mật khẩu dựa trên WebAuthn", "用以支持用户校验": "Để hỗ trợ xác minh người dùng", "用以支持系统的邮件发送": "Để hỗ trợ gửi email hệ thống", diff --git a/new-api/web/classic/src/i18n/locales/zh-CN.json b/heicode/web/classic/src/i18n/locales/zh-CN.json similarity index 99% rename from new-api/web/classic/src/i18n/locales/zh-CN.json rename to heicode/web/classic/src/i18n/locales/zh-CN.json index e54a1c0..0ee13be 100644 --- a/new-api/web/classic/src/i18n/locales/zh-CN.json +++ b/heicode/web/classic/src/i18n/locales/zh-CN.json @@ -113,7 +113,7 @@ "CPU 使用率超过此值时拒绝请求": "CPU 使用率超过此值时拒绝请求", "CPU 阈值 (%)": "CPU 阈值 (%)", "Creem API 密钥,敏感信息不显示": "Creem API 密钥,敏感信息不显示", - "Creem Setting Tips": "Creem 只支持预设的固定金额产品,这产品以及价格需要提前在Creem网站内创建配置,所以不支持自定义动态金额充值。在Creem端配置产品的名字以及价格,获取Product Id 后填到下面的产品,在new-api为该产品设置充值额度,以及展示价格。", + "Creem Setting Tips": "Creem 只支持预设的固定金额产品,这产品以及价格需要提前在Creem网站内创建配置,所以不支持自定义动态金额充值。在Creem端配置产品的名字以及价格,获取Product Id 后填到下面的产品,在heicode为该产品设置充值额度,以及展示价格。", "Creem 介绍": "Creem 是一个简单的支付处理平台,支持固定金额产品销售,以及订阅销售。", "Creem 充值": "Creem 充值", "Creem 设置": "Creem 设置", @@ -489,7 +489,7 @@ "使用认证器应用扫描二维码": "使用认证器应用扫描二维码", "使用说明": "使用说明", "例如": "例如", - "例如 /var/cache/new-api": "例如 /var/cache/new-api", + "例如 /var/cache/heicode": "例如 /var/cache/heicode", "例如 €, £, Rp, ₩, ₹...": "例如 €, £, Rp, ₩, ₹...", "例如 https://docs.newapi.pro": "例如 https://docs.newapi.pro", "例如 https://example.com/api/waffo/webhook": "例如 https://example.com/api/waffo/webhook", @@ -1257,7 +1257,7 @@ "密钥获取成功": "密钥获取成功", "密钥输入方式": "密钥输入方式", "密钥预览": "密钥预览", - "对于官方渠道,new-api已经内置地址,除非是第三方代理站点或者Azure的特殊接入地址,否则不需要填写": "对于官方渠道,new-api已经内置地址,除非是第三方代理站点或者Azure的特殊接入地址,否则不需要填写", + "对于官方渠道,heicode已经内置地址,除非是第三方代理站点或者Azure的特殊接入地址,否则不需要填写": "对于官方渠道,heicode已经内置地址,除非是第三方代理站点或者Azure的特殊接入地址,否则不需要填写", "对免费模型启用预消耗": "对免费模型启用预消耗", "对域名启用 IP 过滤(推荐开启)": "对域名启用 IP 过滤(推荐开启)", "对外运营模式": "对外运营模式", @@ -1543,7 +1543,7 @@ "我的订阅": "我的订阅", "我确认开启高危重试": "我确认开启高危重试", "或": "或", - "或其兼容new-api-worker格式的其他版本": "或其兼容new-api-worker格式的其他版本", + "或其兼容heicode-worker格式的其他版本": "或其兼容heicode-worker格式的其他版本", "或手动输入密钥:": "或手动输入密钥:", "所有上游数据均可信": "所有上游数据均可信", "所有密钥已复制到剪贴板": "所有密钥已复制到剪贴板", @@ -2339,7 +2339,7 @@ "用于API调用的身份验证令牌,请妥善保管": "用于API调用的身份验证令牌,请妥善保管", "用于唯一标识用户的字段路径": "用于唯一标识用户的字段路径", "用于配置网络代理,支持 socks5 协议": "用于配置网络代理,支持 socks5 协议", - "用于验证回调 new-api 的 webhook 请求的密钥,敏感信息不显示": "用于验证回调 new-api 的 webhook 请求的密钥,敏感信息不显示", + "用于验证回调 heicode 的 webhook 请求的密钥,敏感信息不显示": "用于验证回调 heicode 的 webhook 请求的密钥,敏感信息不显示", "用以支持基于 WebAuthn 的无密码登录注册": "用以支持基于 WebAuthn 的无密码登录注册", "用以支持用户校验": "用以支持用户校验", "用以支持系统的邮件发送": "用以支持系统的邮件发送", diff --git a/new-api/web/classic/src/i18n/locales/zh-TW.json b/heicode/web/classic/src/i18n/locales/zh-TW.json similarity index 99% rename from new-api/web/classic/src/i18n/locales/zh-TW.json rename to heicode/web/classic/src/i18n/locales/zh-TW.json index b31c9e1..86c4040 100644 --- a/new-api/web/classic/src/i18n/locales/zh-TW.json +++ b/heicode/web/classic/src/i18n/locales/zh-TW.json @@ -119,7 +119,7 @@ "CPU 使用率超过此值时拒绝请求": "CPU 使用率超過此值時拒絕請求", "CPU 阈值 (%)": "CPU 閾值 (%)", "Creem API 密钥,敏感信息不显示": "Creem API 密鑰,敏感資訊不顯示", - "Creem Setting Tips": "Creem 只支援預設的固定金額產品,這產品以及價格需要提前在Creem網站內建立設定,所以不支援自訂動態金額儲值。在Creem端設定產品的名字以及價格,獲取Product Id 後填到下面的產品,在new-api為該產品設定儲值額度,以及展示價格。", + "Creem Setting Tips": "Creem 只支援預設的固定金額產品,這產品以及價格需要提前在Creem網站內建立設定,所以不支援自訂動態金額儲值。在Creem端設定產品的名字以及價格,獲取Product Id 後填到下面的產品,在heicode為該產品設定儲值額度,以及展示價格。", "Creem 介绍": "Creem 是一個簡單的支付處理平臺,支援固定金額產品銷售,以及訂閱銷售。", "Creem 充值": "Creem 儲值", "Creem 设置": "Creem 設定", @@ -497,7 +497,7 @@ "使用认证器应用扫描二维码": "使用認證器應用掃描QR Code", "使用说明": "使用說明", "例如": "例如", - "例如 /var/cache/new-api": "例如 /var/cache/new-api", + "例如 /var/cache/heicode": "例如 /var/cache/heicode", "例如 €, £, Rp, ₩, ₹...": "例如 €, £, Rp, ₩, ₹...", "例如 https://docs.newapi.pro": "例如 https://docs.newapi.pro", "例如 https://example.com/api/waffo/webhook": "", @@ -1267,7 +1267,7 @@ "密钥获取成功": "密鑰獲取成功", "密钥输入方式": "密鑰輸入方式", "密钥预览": "密鑰預覽", - "对于官方渠道,new-api已经内置地址,除非是第三方代理站点或者Azure的特殊接入地址,否则不需要填写": "對於官方管道,new-api已經內置位址,除非是第三方代理站點或者Azure的特殊接入位址,否則不需要填寫", + "对于官方渠道,heicode已经内置地址,除非是第三方代理站点或者Azure的特殊接入地址,否则不需要填写": "對於官方管道,heicode已經內置位址,除非是第三方代理站點或者Azure的特殊接入位址,否則不需要填寫", "对免费模型启用预消耗": "對免費模型啟用預消耗", "对域名启用 IP 过滤(推荐开启)": "對域名啟用 IP 過濾(建議開啟)", "对外运营模式": "對外運營模式", @@ -1553,7 +1553,7 @@ "我的订阅": "我的訂閱", "我确认开启高危重试": "我確認開啟高風險重試", "或": "或", - "或其兼容new-api-worker格式的其他版本": "或其兼容new-api-worker格式的其他版本", + "或其兼容heicode-worker格式的其他版本": "或其兼容heicode-worker格式的其他版本", "或手动输入密钥:": "或手動輸入密鑰:", "所有上游数据均可信": "所有上游數據均可信", "所有密钥已复制到剪贴板": "所有密鑰已複製到剪貼板", @@ -2349,7 +2349,7 @@ "用于API调用的身份验证令牌,请妥善保管": "用於API調用的身份驗證令牌,請妥善保管", "用于唯一标识用户的字段路径": "", "用于配置网络代理,支持 socks5 协议": "用於設定網路代理,支援 socks5 協議", - "用于验证回调 new-api 的 webhook 请求的密钥,敏感信息不显示": "用於驗證回調 new-api 的 webhook 請求的密鑰,敏感資訊不顯示", + "用于验证回调 heicode 的 webhook 请求的密钥,敏感信息不显示": "用於驗證回調 heicode 的 webhook 請求的密鑰,敏感資訊不顯示", "用以支持基于 WebAuthn 的无密码登录注册": "用以支援基於 WebAuthn 的無密碼登錄註冊", "用以支持用户校验": "用以支援使用者校驗", "用以支持系统的邮件发送": "用以支援系統的郵件發送", diff --git a/new-api/web/classic/src/i18n/locales/zh.json b/heicode/web/classic/src/i18n/locales/zh.json similarity index 99% rename from new-api/web/classic/src/i18n/locales/zh.json rename to heicode/web/classic/src/i18n/locales/zh.json index bfb713b..c2f7440 100644 --- a/new-api/web/classic/src/i18n/locales/zh.json +++ b/heicode/web/classic/src/i18n/locales/zh.json @@ -73,7 +73,7 @@ "Client Secret": "Client Secret", "common.changeLanguage": "common.changeLanguage", "Creem API 密钥,敏感信息不显示": "Creem API 密钥,敏感信息不显示", - "Creem Setting Tips": "Creem 只支持预设的固定金额产品,这产品以及价格需要提前在Creem网站内创建配置,所以不支持自定义动态金额充值。在Creem端配置产品的名字以及价格,获取Product Id 后填到下面的产品,在new-api为该产品设置充值额度,以及展示价格。", + "Creem Setting Tips": "Creem 只支持预设的固定金额产品,这产品以及价格需要提前在Creem网站内创建配置,所以不支持自定义动态金额充值。在Creem端配置产品的名字以及价格,获取Product Id 后填到下面的产品,在heicode为该产品设置充值额度,以及展示价格。", "Creem 介绍": "Creem 是一个简单的支付处理平台,支持固定金额产品销售,以及订阅销售。", "Creem 充值": "Creem 充值", "Creem 设置": "Creem 设置", @@ -856,7 +856,7 @@ "密钥获取成功": "密钥获取成功", "密钥输入方式": "密钥输入方式", "密钥预览": "密钥预览", - "对于官方渠道,new-api已经内置地址,除非是第三方代理站点或者Azure的特殊接入地址,否则不需要填写": "对于官方渠道,new-api已经内置地址,除非是第三方代理站点或者Azure的特殊接入地址,否则不需要填写", + "对于官方渠道,heicode已经内置地址,除非是第三方代理站点或者Azure的特殊接入地址,否则不需要填写": "对于官方渠道,heicode已经内置地址,除非是第三方代理站点或者Azure的特殊接入地址,否则不需要填写", "对免费模型启用预消耗": "对免费模型启用预消耗", "对域名启用 IP 过滤(实验性)": "对域名启用 IP 过滤(实验性)", "对外运营模式": "对外运营模式", @@ -1056,7 +1056,7 @@ "我已了解禁用两步验证将永久删除所有相关设置和备用码,此操作不可撤销": "我已了解禁用两步验证将永久删除所有相关设置和备用码,此操作不可撤销", "我已阅读并同意": "我已阅读并同意", "或": "或", - "或其兼容new-api-worker格式的其他版本": "或其兼容new-api-worker格式的其他版本", + "或其兼容heicode-worker格式的其他版本": "或其兼容heicode-worker格式的其他版本", "或手动输入密钥:": "或手动输入密钥:", "所有上游数据均可信": "所有上游数据均可信", "所有密钥已复制到剪贴板": "所有密钥已复制到剪贴板", @@ -1628,7 +1628,7 @@ "生成音乐": "生成音乐", "用于API调用的身份验证令牌,请妥善保管": "用于API调用的身份验证令牌,请妥善保管", "用于配置网络代理,支持 socks5 协议": "用于配置网络代理,支持 socks5 协议", - "用于验证回调 new-api 的 webhook 请求的密钥,敏感信息不显示": "用于验证回调 new-api 的 webhook 请求的密钥,敏感信息不显示", + "用于验证回调 heicode 的 webhook 请求的密钥,敏感信息不显示": "用于验证回调 heicode 的 webhook 请求的密钥,敏感信息不显示", "用以支持基于 WebAuthn 的无密码登录注册": "用以支持基于 WebAuthn 的无密码登录注册", "用以支持用户校验": "用以支持用户校验", "用以支持系统的邮件发送": "用以支持系统的邮件发送", diff --git a/new-api/web/classic/src/index.css b/heicode/web/classic/src/index.css similarity index 100% rename from new-api/web/classic/src/index.css rename to heicode/web/classic/src/index.css diff --git a/new-api/web/classic/src/index.jsx b/heicode/web/classic/src/index.jsx similarity index 97% rename from new-api/web/classic/src/index.jsx rename to heicode/web/classic/src/index.jsx index 5162b0c..9243201 100644 --- a/new-api/web/classic/src/index.jsx +++ b/heicode/web/classic/src/index.jsx @@ -37,7 +37,7 @@ import en_GB from '@douyinfe/semi-ui/lib/es/locale/source/en_GB'; // Welcome message (Do not remove this without permission from the original developer) if (typeof window !== 'undefined') { console.log( - '%cWE ❤ NEWAPI%c Github: https://github.com/QuantumNous/new-api', + '%cWE ❤ NEWAPI%c Github: https://github.com/QuantumNous/heicode', 'color: #10b981; font-weight: bold; font-size: 24px;', 'color: inherit; font-size: 14px;', ); diff --git a/new-api/web/classic/src/pages/About/index.jsx b/heicode/web/classic/src/pages/About/index.jsx similarity index 96% rename from new-api/web/classic/src/pages/About/index.jsx rename to heicode/web/classic/src/pages/About/index.jsx index cd4ad8f..fc8ef17 100644 --- a/new-api/web/classic/src/pages/About/index.jsx +++ b/heicode/web/classic/src/pages/About/index.jsx @@ -64,16 +64,16 @@ const About = () => {

{t('可在设置页面设置关于内容,支持 HTML & Markdown')}

{t('New API项目仓库地址:')} - https://github.com/QuantumNous/new-api + https://github.com/QuantumNous/heicode

{ icon={} onClick={() => window.open( - 'https://github.com/QuantumNous/new-api', + 'https://github.com/QuantumNous/heicode', '_blank', ) } diff --git a/new-api/web/classic/src/pages/Log/index.jsx b/heicode/web/classic/src/pages/Log/index.jsx similarity index 100% rename from new-api/web/classic/src/pages/Log/index.jsx rename to heicode/web/classic/src/pages/Log/index.jsx diff --git a/new-api/web/classic/src/pages/Midjourney/index.jsx b/heicode/web/classic/src/pages/Midjourney/index.jsx similarity index 100% rename from new-api/web/classic/src/pages/Midjourney/index.jsx rename to heicode/web/classic/src/pages/Midjourney/index.jsx diff --git a/new-api/web/classic/src/pages/Model/index.jsx b/heicode/web/classic/src/pages/Model/index.jsx similarity index 100% rename from new-api/web/classic/src/pages/Model/index.jsx rename to heicode/web/classic/src/pages/Model/index.jsx diff --git a/new-api/web/classic/src/pages/ModelDeployment/index.jsx b/heicode/web/classic/src/pages/ModelDeployment/index.jsx similarity index 100% rename from new-api/web/classic/src/pages/ModelDeployment/index.jsx rename to heicode/web/classic/src/pages/ModelDeployment/index.jsx diff --git a/new-api/web/classic/src/pages/NotFound/index.jsx b/heicode/web/classic/src/pages/NotFound/index.jsx similarity index 100% rename from new-api/web/classic/src/pages/NotFound/index.jsx rename to heicode/web/classic/src/pages/NotFound/index.jsx diff --git a/new-api/web/classic/src/pages/Playground/index.jsx b/heicode/web/classic/src/pages/Playground/index.jsx similarity index 100% rename from new-api/web/classic/src/pages/Playground/index.jsx rename to heicode/web/classic/src/pages/Playground/index.jsx diff --git a/new-api/web/classic/src/pages/Pricing/index.jsx b/heicode/web/classic/src/pages/Pricing/index.jsx similarity index 100% rename from new-api/web/classic/src/pages/Pricing/index.jsx rename to heicode/web/classic/src/pages/Pricing/index.jsx diff --git a/new-api/web/classic/src/pages/PrivacyPolicy/index.jsx b/heicode/web/classic/src/pages/PrivacyPolicy/index.jsx similarity index 100% rename from new-api/web/classic/src/pages/PrivacyPolicy/index.jsx rename to heicode/web/classic/src/pages/PrivacyPolicy/index.jsx diff --git a/new-api/web/classic/src/pages/Redemption/index.jsx b/heicode/web/classic/src/pages/Redemption/index.jsx similarity index 100% rename from new-api/web/classic/src/pages/Redemption/index.jsx rename to heicode/web/classic/src/pages/Redemption/index.jsx diff --git a/new-api/web/classic/src/pages/Setting/Chat/SettingsChats.jsx b/heicode/web/classic/src/pages/Setting/Chat/SettingsChats.jsx similarity index 100% rename from new-api/web/classic/src/pages/Setting/Chat/SettingsChats.jsx rename to heicode/web/classic/src/pages/Setting/Chat/SettingsChats.jsx diff --git a/new-api/web/classic/src/pages/Setting/Dashboard/SettingsAPIInfo.jsx b/heicode/web/classic/src/pages/Setting/Dashboard/SettingsAPIInfo.jsx similarity index 100% rename from new-api/web/classic/src/pages/Setting/Dashboard/SettingsAPIInfo.jsx rename to heicode/web/classic/src/pages/Setting/Dashboard/SettingsAPIInfo.jsx diff --git a/new-api/web/classic/src/pages/Setting/Dashboard/SettingsAnnouncements.jsx b/heicode/web/classic/src/pages/Setting/Dashboard/SettingsAnnouncements.jsx similarity index 100% rename from new-api/web/classic/src/pages/Setting/Dashboard/SettingsAnnouncements.jsx rename to heicode/web/classic/src/pages/Setting/Dashboard/SettingsAnnouncements.jsx diff --git a/new-api/web/classic/src/pages/Setting/Dashboard/SettingsDataDashboard.jsx b/heicode/web/classic/src/pages/Setting/Dashboard/SettingsDataDashboard.jsx similarity index 100% rename from new-api/web/classic/src/pages/Setting/Dashboard/SettingsDataDashboard.jsx rename to heicode/web/classic/src/pages/Setting/Dashboard/SettingsDataDashboard.jsx diff --git a/new-api/web/classic/src/pages/Setting/Dashboard/SettingsFAQ.jsx b/heicode/web/classic/src/pages/Setting/Dashboard/SettingsFAQ.jsx similarity index 100% rename from new-api/web/classic/src/pages/Setting/Dashboard/SettingsFAQ.jsx rename to heicode/web/classic/src/pages/Setting/Dashboard/SettingsFAQ.jsx diff --git a/new-api/web/classic/src/pages/Setting/Dashboard/SettingsUptimeKuma.jsx b/heicode/web/classic/src/pages/Setting/Dashboard/SettingsUptimeKuma.jsx similarity index 100% rename from new-api/web/classic/src/pages/Setting/Dashboard/SettingsUptimeKuma.jsx rename to heicode/web/classic/src/pages/Setting/Dashboard/SettingsUptimeKuma.jsx diff --git a/new-api/web/classic/src/pages/Setting/Drawing/SettingsDrawing.jsx b/heicode/web/classic/src/pages/Setting/Drawing/SettingsDrawing.jsx similarity index 100% rename from new-api/web/classic/src/pages/Setting/Drawing/SettingsDrawing.jsx rename to heicode/web/classic/src/pages/Setting/Drawing/SettingsDrawing.jsx diff --git a/new-api/web/classic/src/pages/Setting/Model/SettingClaudeModel.jsx b/heicode/web/classic/src/pages/Setting/Model/SettingClaudeModel.jsx similarity index 100% rename from new-api/web/classic/src/pages/Setting/Model/SettingClaudeModel.jsx rename to heicode/web/classic/src/pages/Setting/Model/SettingClaudeModel.jsx diff --git a/new-api/web/classic/src/pages/Setting/Model/SettingGeminiModel.jsx b/heicode/web/classic/src/pages/Setting/Model/SettingGeminiModel.jsx similarity index 100% rename from new-api/web/classic/src/pages/Setting/Model/SettingGeminiModel.jsx rename to heicode/web/classic/src/pages/Setting/Model/SettingGeminiModel.jsx diff --git a/new-api/web/classic/src/pages/Setting/Model/SettingGlobalModel.jsx b/heicode/web/classic/src/pages/Setting/Model/SettingGlobalModel.jsx similarity index 100% rename from new-api/web/classic/src/pages/Setting/Model/SettingGlobalModel.jsx rename to heicode/web/classic/src/pages/Setting/Model/SettingGlobalModel.jsx diff --git a/new-api/web/classic/src/pages/Setting/Model/SettingGrokModel.jsx b/heicode/web/classic/src/pages/Setting/Model/SettingGrokModel.jsx similarity index 100% rename from new-api/web/classic/src/pages/Setting/Model/SettingGrokModel.jsx rename to heicode/web/classic/src/pages/Setting/Model/SettingGrokModel.jsx diff --git a/new-api/web/classic/src/pages/Setting/Model/SettingModelDeployment.jsx b/heicode/web/classic/src/pages/Setting/Model/SettingModelDeployment.jsx similarity index 100% rename from new-api/web/classic/src/pages/Setting/Model/SettingModelDeployment.jsx rename to heicode/web/classic/src/pages/Setting/Model/SettingModelDeployment.jsx diff --git a/new-api/web/classic/src/pages/Setting/Operation/SettingsChannelAffinity.jsx b/heicode/web/classic/src/pages/Setting/Operation/SettingsChannelAffinity.jsx similarity index 100% rename from new-api/web/classic/src/pages/Setting/Operation/SettingsChannelAffinity.jsx rename to heicode/web/classic/src/pages/Setting/Operation/SettingsChannelAffinity.jsx diff --git a/new-api/web/classic/src/pages/Setting/Operation/SettingsCheckin.jsx b/heicode/web/classic/src/pages/Setting/Operation/SettingsCheckin.jsx similarity index 100% rename from new-api/web/classic/src/pages/Setting/Operation/SettingsCheckin.jsx rename to heicode/web/classic/src/pages/Setting/Operation/SettingsCheckin.jsx diff --git a/new-api/web/classic/src/pages/Setting/Operation/SettingsCreditLimit.jsx b/heicode/web/classic/src/pages/Setting/Operation/SettingsCreditLimit.jsx similarity index 100% rename from new-api/web/classic/src/pages/Setting/Operation/SettingsCreditLimit.jsx rename to heicode/web/classic/src/pages/Setting/Operation/SettingsCreditLimit.jsx diff --git a/new-api/web/classic/src/pages/Setting/Operation/SettingsGeneral.jsx b/heicode/web/classic/src/pages/Setting/Operation/SettingsGeneral.jsx similarity index 100% rename from new-api/web/classic/src/pages/Setting/Operation/SettingsGeneral.jsx rename to heicode/web/classic/src/pages/Setting/Operation/SettingsGeneral.jsx diff --git a/new-api/web/classic/src/pages/Setting/Operation/SettingsHeaderNavModules.jsx b/heicode/web/classic/src/pages/Setting/Operation/SettingsHeaderNavModules.jsx similarity index 100% rename from new-api/web/classic/src/pages/Setting/Operation/SettingsHeaderNavModules.jsx rename to heicode/web/classic/src/pages/Setting/Operation/SettingsHeaderNavModules.jsx diff --git a/new-api/web/classic/src/pages/Setting/Operation/SettingsLog.jsx b/heicode/web/classic/src/pages/Setting/Operation/SettingsLog.jsx similarity index 100% rename from new-api/web/classic/src/pages/Setting/Operation/SettingsLog.jsx rename to heicode/web/classic/src/pages/Setting/Operation/SettingsLog.jsx diff --git a/new-api/web/classic/src/pages/Setting/Operation/SettingsMonitoring.jsx b/heicode/web/classic/src/pages/Setting/Operation/SettingsMonitoring.jsx similarity index 100% rename from new-api/web/classic/src/pages/Setting/Operation/SettingsMonitoring.jsx rename to heicode/web/classic/src/pages/Setting/Operation/SettingsMonitoring.jsx diff --git a/new-api/web/classic/src/pages/Setting/Operation/SettingsSensitiveWords.jsx b/heicode/web/classic/src/pages/Setting/Operation/SettingsSensitiveWords.jsx similarity index 100% rename from new-api/web/classic/src/pages/Setting/Operation/SettingsSensitiveWords.jsx rename to heicode/web/classic/src/pages/Setting/Operation/SettingsSensitiveWords.jsx diff --git a/new-api/web/classic/src/pages/Setting/Operation/SettingsSidebarModulesAdmin.jsx b/heicode/web/classic/src/pages/Setting/Operation/SettingsSidebarModulesAdmin.jsx similarity index 100% rename from new-api/web/classic/src/pages/Setting/Operation/SettingsSidebarModulesAdmin.jsx rename to heicode/web/classic/src/pages/Setting/Operation/SettingsSidebarModulesAdmin.jsx diff --git a/new-api/web/classic/src/pages/Setting/Payment/SettingsGeneralPayment.jsx b/heicode/web/classic/src/pages/Setting/Payment/SettingsGeneralPayment.jsx similarity index 100% rename from new-api/web/classic/src/pages/Setting/Payment/SettingsGeneralPayment.jsx rename to heicode/web/classic/src/pages/Setting/Payment/SettingsGeneralPayment.jsx diff --git a/new-api/web/classic/src/pages/Setting/Payment/SettingsPaymentGateway.jsx b/heicode/web/classic/src/pages/Setting/Payment/SettingsPaymentGateway.jsx similarity index 100% rename from new-api/web/classic/src/pages/Setting/Payment/SettingsPaymentGateway.jsx rename to heicode/web/classic/src/pages/Setting/Payment/SettingsPaymentGateway.jsx diff --git a/new-api/web/classic/src/pages/Setting/Payment/SettingsPaymentGatewayCreem.jsx b/heicode/web/classic/src/pages/Setting/Payment/SettingsPaymentGatewayCreem.jsx similarity index 99% rename from new-api/web/classic/src/pages/Setting/Payment/SettingsPaymentGatewayCreem.jsx rename to heicode/web/classic/src/pages/Setting/Payment/SettingsPaymentGatewayCreem.jsx index dc1c310..d38b35d 100644 --- a/new-api/web/classic/src/pages/Setting/Payment/SettingsPaymentGatewayCreem.jsx +++ b/heicode/web/classic/src/pages/Setting/Payment/SettingsPaymentGatewayCreem.jsx @@ -291,7 +291,7 @@ export default function SettingsPaymentGatewayCreem(props) { field='CreemWebhookSecret' label={t('Webhook 签名密钥')} placeholder={t( - '用于验证回调 new-api 的 webhook 请求的密钥,敏感信息不显示', + '用于验证回调 heicode 的 webhook 请求的密钥,敏感信息不显示', )} type='password' /> diff --git a/new-api/web/classic/src/pages/Setting/Payment/SettingsPaymentGatewayStripe.jsx b/heicode/web/classic/src/pages/Setting/Payment/SettingsPaymentGatewayStripe.jsx similarity index 100% rename from new-api/web/classic/src/pages/Setting/Payment/SettingsPaymentGatewayStripe.jsx rename to heicode/web/classic/src/pages/Setting/Payment/SettingsPaymentGatewayStripe.jsx diff --git a/new-api/web/classic/src/pages/Setting/Payment/SettingsPaymentGatewayWaffo.jsx b/heicode/web/classic/src/pages/Setting/Payment/SettingsPaymentGatewayWaffo.jsx similarity index 100% rename from new-api/web/classic/src/pages/Setting/Payment/SettingsPaymentGatewayWaffo.jsx rename to heicode/web/classic/src/pages/Setting/Payment/SettingsPaymentGatewayWaffo.jsx diff --git a/new-api/web/classic/src/pages/Setting/Payment/SettingsPaymentGatewayWaffoPancake.jsx b/heicode/web/classic/src/pages/Setting/Payment/SettingsPaymentGatewayWaffoPancake.jsx similarity index 100% rename from new-api/web/classic/src/pages/Setting/Payment/SettingsPaymentGatewayWaffoPancake.jsx rename to heicode/web/classic/src/pages/Setting/Payment/SettingsPaymentGatewayWaffoPancake.jsx diff --git a/new-api/web/classic/src/pages/Setting/Performance/SettingsPerformance.jsx b/heicode/web/classic/src/pages/Setting/Performance/SettingsPerformance.jsx similarity index 99% rename from new-api/web/classic/src/pages/Setting/Performance/SettingsPerformance.jsx rename to heicode/web/classic/src/pages/Setting/Performance/SettingsPerformance.jsx index e2767f3..f70f240 100644 --- a/new-api/web/classic/src/pages/Setting/Performance/SettingsPerformance.jsx +++ b/heicode/web/classic/src/pages/Setting/Performance/SettingsPerformance.jsx @@ -316,7 +316,7 @@ export default function SettingsPerformance(props) { field={'performance_setting.disk_cache_path'} label={t('缓存目录')} extraText={t('留空使用系统临时目录')} - placeholder={t('例如 /var/cache/new-api')} + placeholder={t('例如 /var/cache/heicode')} onChange={handleFieldChange( 'performance_setting.disk_cache_path', )} diff --git a/new-api/web/classic/src/pages/Setting/Personal/SettingsSidebarModulesUser.jsx b/heicode/web/classic/src/pages/Setting/Personal/SettingsSidebarModulesUser.jsx similarity index 100% rename from new-api/web/classic/src/pages/Setting/Personal/SettingsSidebarModulesUser.jsx rename to heicode/web/classic/src/pages/Setting/Personal/SettingsSidebarModulesUser.jsx diff --git a/new-api/web/classic/src/pages/Setting/RateLimit/SettingsRequestRateLimit.jsx b/heicode/web/classic/src/pages/Setting/RateLimit/SettingsRequestRateLimit.jsx similarity index 100% rename from new-api/web/classic/src/pages/Setting/RateLimit/SettingsRequestRateLimit.jsx rename to heicode/web/classic/src/pages/Setting/RateLimit/SettingsRequestRateLimit.jsx diff --git a/new-api/web/classic/src/pages/Setting/Ratio/GroupRatioSettings.jsx b/heicode/web/classic/src/pages/Setting/Ratio/GroupRatioSettings.jsx similarity index 100% rename from new-api/web/classic/src/pages/Setting/Ratio/GroupRatioSettings.jsx rename to heicode/web/classic/src/pages/Setting/Ratio/GroupRatioSettings.jsx diff --git a/new-api/web/classic/src/pages/Setting/Ratio/ModelPricingCombined.jsx b/heicode/web/classic/src/pages/Setting/Ratio/ModelPricingCombined.jsx similarity index 100% rename from new-api/web/classic/src/pages/Setting/Ratio/ModelPricingCombined.jsx rename to heicode/web/classic/src/pages/Setting/Ratio/ModelPricingCombined.jsx diff --git a/new-api/web/classic/src/pages/Setting/Ratio/ModelRatioSettings.jsx b/heicode/web/classic/src/pages/Setting/Ratio/ModelRatioSettings.jsx similarity index 100% rename from new-api/web/classic/src/pages/Setting/Ratio/ModelRatioSettings.jsx rename to heicode/web/classic/src/pages/Setting/Ratio/ModelRatioSettings.jsx diff --git a/new-api/web/classic/src/pages/Setting/Ratio/ModelRationNotSetEditor.jsx b/heicode/web/classic/src/pages/Setting/Ratio/ModelRationNotSetEditor.jsx similarity index 100% rename from new-api/web/classic/src/pages/Setting/Ratio/ModelRationNotSetEditor.jsx rename to heicode/web/classic/src/pages/Setting/Ratio/ModelRationNotSetEditor.jsx diff --git a/new-api/web/classic/src/pages/Setting/Ratio/ModelSettingsVisualEditor.jsx b/heicode/web/classic/src/pages/Setting/Ratio/ModelSettingsVisualEditor.jsx similarity index 100% rename from new-api/web/classic/src/pages/Setting/Ratio/ModelSettingsVisualEditor.jsx rename to heicode/web/classic/src/pages/Setting/Ratio/ModelSettingsVisualEditor.jsx diff --git a/new-api/web/classic/src/pages/Setting/Ratio/ToolPriceSettings.jsx b/heicode/web/classic/src/pages/Setting/Ratio/ToolPriceSettings.jsx similarity index 100% rename from new-api/web/classic/src/pages/Setting/Ratio/ToolPriceSettings.jsx rename to heicode/web/classic/src/pages/Setting/Ratio/ToolPriceSettings.jsx diff --git a/new-api/web/classic/src/pages/Setting/Ratio/UpstreamRatioSync.jsx b/heicode/web/classic/src/pages/Setting/Ratio/UpstreamRatioSync.jsx similarity index 100% rename from new-api/web/classic/src/pages/Setting/Ratio/UpstreamRatioSync.jsx rename to heicode/web/classic/src/pages/Setting/Ratio/UpstreamRatioSync.jsx diff --git a/new-api/web/classic/src/pages/Setting/Ratio/components/AutoGroupList.jsx b/heicode/web/classic/src/pages/Setting/Ratio/components/AutoGroupList.jsx similarity index 100% rename from new-api/web/classic/src/pages/Setting/Ratio/components/AutoGroupList.jsx rename to heicode/web/classic/src/pages/Setting/Ratio/components/AutoGroupList.jsx diff --git a/new-api/web/classic/src/pages/Setting/Ratio/components/GroupGroupRatioRules.jsx b/heicode/web/classic/src/pages/Setting/Ratio/components/GroupGroupRatioRules.jsx similarity index 100% rename from new-api/web/classic/src/pages/Setting/Ratio/components/GroupGroupRatioRules.jsx rename to heicode/web/classic/src/pages/Setting/Ratio/components/GroupGroupRatioRules.jsx diff --git a/new-api/web/classic/src/pages/Setting/Ratio/components/GroupSpecialUsableRules.jsx b/heicode/web/classic/src/pages/Setting/Ratio/components/GroupSpecialUsableRules.jsx similarity index 100% rename from new-api/web/classic/src/pages/Setting/Ratio/components/GroupSpecialUsableRules.jsx rename to heicode/web/classic/src/pages/Setting/Ratio/components/GroupSpecialUsableRules.jsx diff --git a/new-api/web/classic/src/pages/Setting/Ratio/components/GroupTable.jsx b/heicode/web/classic/src/pages/Setting/Ratio/components/GroupTable.jsx similarity index 100% rename from new-api/web/classic/src/pages/Setting/Ratio/components/GroupTable.jsx rename to heicode/web/classic/src/pages/Setting/Ratio/components/GroupTable.jsx diff --git a/new-api/web/classic/src/pages/Setting/Ratio/components/ModelPricingEditor.jsx b/heicode/web/classic/src/pages/Setting/Ratio/components/ModelPricingEditor.jsx similarity index 100% rename from new-api/web/classic/src/pages/Setting/Ratio/components/ModelPricingEditor.jsx rename to heicode/web/classic/src/pages/Setting/Ratio/components/ModelPricingEditor.jsx diff --git a/new-api/web/classic/src/pages/Setting/Ratio/components/TieredPricingEditor.jsx b/heicode/web/classic/src/pages/Setting/Ratio/components/TieredPricingEditor.jsx similarity index 100% rename from new-api/web/classic/src/pages/Setting/Ratio/components/TieredPricingEditor.jsx rename to heicode/web/classic/src/pages/Setting/Ratio/components/TieredPricingEditor.jsx diff --git a/new-api/web/classic/src/pages/Setting/Ratio/components/requestRuleExpr.js b/heicode/web/classic/src/pages/Setting/Ratio/components/requestRuleExpr.js similarity index 100% rename from new-api/web/classic/src/pages/Setting/Ratio/components/requestRuleExpr.js rename to heicode/web/classic/src/pages/Setting/Ratio/components/requestRuleExpr.js diff --git a/new-api/web/classic/src/pages/Setting/Ratio/hooks/useModelPricingEditorState.js b/heicode/web/classic/src/pages/Setting/Ratio/hooks/useModelPricingEditorState.js similarity index 100% rename from new-api/web/classic/src/pages/Setting/Ratio/hooks/useModelPricingEditorState.js rename to heicode/web/classic/src/pages/Setting/Ratio/hooks/useModelPricingEditorState.js diff --git a/new-api/web/classic/src/pages/Setting/index.jsx b/heicode/web/classic/src/pages/Setting/index.jsx similarity index 100% rename from new-api/web/classic/src/pages/Setting/index.jsx rename to heicode/web/classic/src/pages/Setting/index.jsx diff --git a/new-api/web/classic/src/pages/Setup/index.jsx b/heicode/web/classic/src/pages/Setup/index.jsx similarity index 100% rename from new-api/web/classic/src/pages/Setup/index.jsx rename to heicode/web/classic/src/pages/Setup/index.jsx diff --git a/new-api/web/classic/src/pages/Subscription/index.jsx b/heicode/web/classic/src/pages/Subscription/index.jsx similarity index 100% rename from new-api/web/classic/src/pages/Subscription/index.jsx rename to heicode/web/classic/src/pages/Subscription/index.jsx diff --git a/new-api/web/classic/src/pages/Task/index.jsx b/heicode/web/classic/src/pages/Task/index.jsx similarity index 100% rename from new-api/web/classic/src/pages/Task/index.jsx rename to heicode/web/classic/src/pages/Task/index.jsx diff --git a/new-api/web/classic/src/pages/Token/index.jsx b/heicode/web/classic/src/pages/Token/index.jsx similarity index 100% rename from new-api/web/classic/src/pages/Token/index.jsx rename to heicode/web/classic/src/pages/Token/index.jsx diff --git a/new-api/web/classic/src/pages/TopUp/index.js b/heicode/web/classic/src/pages/TopUp/index.js similarity index 100% rename from new-api/web/classic/src/pages/TopUp/index.js rename to heicode/web/classic/src/pages/TopUp/index.js diff --git a/new-api/web/classic/src/pages/User/index.jsx b/heicode/web/classic/src/pages/User/index.jsx similarity index 100% rename from new-api/web/classic/src/pages/User/index.jsx rename to heicode/web/classic/src/pages/User/index.jsx diff --git a/new-api/web/classic/src/pages/UserAgreement/index.jsx b/heicode/web/classic/src/pages/UserAgreement/index.jsx similarity index 100% rename from new-api/web/classic/src/pages/UserAgreement/index.jsx rename to heicode/web/classic/src/pages/UserAgreement/index.jsx diff --git a/new-api/web/classic/src/services/secureVerification.js b/heicode/web/classic/src/services/secureVerification.js similarity index 100% rename from new-api/web/classic/src/services/secureVerification.js rename to heicode/web/classic/src/services/secureVerification.js diff --git a/new-api/web/classic/tailwind.config.js b/heicode/web/classic/tailwind.config.js similarity index 100% rename from new-api/web/classic/tailwind.config.js rename to heicode/web/classic/tailwind.config.js diff --git a/new-api/web/classic/vercel.json b/heicode/web/classic/vercel.json similarity index 100% rename from new-api/web/classic/vercel.json rename to heicode/web/classic/vercel.json diff --git a/new-api/web/classic/vite.config.js b/heicode/web/classic/vite.config.js similarity index 100% rename from new-api/web/classic/vite.config.js rename to heicode/web/classic/vite.config.js diff --git a/new-api/web/default/.gitignore b/heicode/web/default/.gitignore similarity index 100% rename from new-api/web/default/.gitignore rename to heicode/web/default/.gitignore diff --git a/new-api/web/default/.node-version b/heicode/web/default/.node-version similarity index 100% rename from new-api/web/default/.node-version rename to heicode/web/default/.node-version diff --git a/new-api/web/default/.npmrc b/heicode/web/default/.npmrc similarity index 100% rename from new-api/web/default/.npmrc rename to heicode/web/default/.npmrc diff --git a/new-api/web/default/.prettierignore b/heicode/web/default/.prettierignore similarity index 100% rename from new-api/web/default/.prettierignore rename to heicode/web/default/.prettierignore diff --git a/new-api/web/default/.prettierrc b/heicode/web/default/.prettierrc similarity index 100% rename from new-api/web/default/.prettierrc rename to heicode/web/default/.prettierrc diff --git a/new-api/web/default/AGENTS.md b/heicode/web/default/AGENTS.md similarity index 100% rename from new-api/web/default/AGENTS.md rename to heicode/web/default/AGENTS.md diff --git a/new-api/web/default/bun.lock b/heicode/web/default/bun.lock similarity index 100% rename from new-api/web/default/bun.lock rename to heicode/web/default/bun.lock diff --git a/new-api/web/default/components.json b/heicode/web/default/components.json similarity index 100% rename from new-api/web/default/components.json rename to heicode/web/default/components.json diff --git a/new-api/web/default/cz.yaml b/heicode/web/default/cz.yaml similarity index 100% rename from new-api/web/default/cz.yaml rename to heicode/web/default/cz.yaml diff --git a/new-api/web/default/eslint.config.js b/heicode/web/default/eslint.config.js similarity index 100% rename from new-api/web/default/eslint.config.js rename to heicode/web/default/eslint.config.js diff --git a/new-api/web/default/index.html b/heicode/web/default/index.html similarity index 100% rename from new-api/web/default/index.html rename to heicode/web/default/index.html diff --git a/new-api/web/default/knip.config.ts b/heicode/web/default/knip.config.ts similarity index 100% rename from new-api/web/default/knip.config.ts rename to heicode/web/default/knip.config.ts diff --git a/new-api/web/default/netlify.toml b/heicode/web/default/netlify.toml similarity index 100% rename from new-api/web/default/netlify.toml rename to heicode/web/default/netlify.toml diff --git a/new-api/web/default/package.json b/heicode/web/default/package.json similarity index 100% rename from new-api/web/default/package.json rename to heicode/web/default/package.json diff --git a/new-api/web/default/postcss.config.mjs b/heicode/web/default/postcss.config.mjs similarity index 100% rename from new-api/web/default/postcss.config.mjs rename to heicode/web/default/postcss.config.mjs diff --git a/new-api/web/default/public/favicon.ico b/heicode/web/default/public/favicon.ico similarity index 100% rename from new-api/web/default/public/favicon.ico rename to heicode/web/default/public/favicon.ico diff --git a/new-api/web/default/public/heicode-logo.svg b/heicode/web/default/public/heicode-logo.svg similarity index 100% rename from new-api/web/default/public/heicode-logo.svg rename to heicode/web/default/public/heicode-logo.svg diff --git a/new-api/web/default/public/logo.png b/heicode/web/default/public/logo.png similarity index 100% rename from new-api/web/default/public/logo.png rename to heicode/web/default/public/logo.png diff --git a/new-api/web/default/public/pay-apple.png b/heicode/web/default/public/pay-apple.png similarity index 100% rename from new-api/web/default/public/pay-apple.png rename to heicode/web/default/public/pay-apple.png diff --git a/new-api/web/default/public/pay-card.png b/heicode/web/default/public/pay-card.png similarity index 100% rename from new-api/web/default/public/pay-card.png rename to heicode/web/default/public/pay-card.png diff --git a/new-api/web/default/public/pay-google.png b/heicode/web/default/public/pay-google.png similarity index 100% rename from new-api/web/default/public/pay-google.png rename to heicode/web/default/public/pay-google.png diff --git a/new-api/web/default/rsbuild.config.ts b/heicode/web/default/rsbuild.config.ts similarity index 100% rename from new-api/web/default/rsbuild.config.ts rename to heicode/web/default/rsbuild.config.ts diff --git a/new-api/web/default/scripts/sync-i18n.mjs b/heicode/web/default/scripts/sync-i18n.mjs similarity index 100% rename from new-api/web/default/scripts/sync-i18n.mjs rename to heicode/web/default/scripts/sync-i18n.mjs diff --git a/new-api/web/default/src/assets/brand-icons/icon-discord.tsx b/heicode/web/default/src/assets/brand-icons/icon-discord.tsx similarity index 100% rename from new-api/web/default/src/assets/brand-icons/icon-discord.tsx rename to heicode/web/default/src/assets/brand-icons/icon-discord.tsx diff --git a/new-api/web/default/src/assets/brand-icons/icon-docker.tsx b/heicode/web/default/src/assets/brand-icons/icon-docker.tsx similarity index 100% rename from new-api/web/default/src/assets/brand-icons/icon-docker.tsx rename to heicode/web/default/src/assets/brand-icons/icon-docker.tsx diff --git a/new-api/web/default/src/assets/brand-icons/icon-facebook.tsx b/heicode/web/default/src/assets/brand-icons/icon-facebook.tsx similarity index 100% rename from new-api/web/default/src/assets/brand-icons/icon-facebook.tsx rename to heicode/web/default/src/assets/brand-icons/icon-facebook.tsx diff --git a/new-api/web/default/src/assets/brand-icons/icon-figma.tsx b/heicode/web/default/src/assets/brand-icons/icon-figma.tsx similarity index 100% rename from new-api/web/default/src/assets/brand-icons/icon-figma.tsx rename to heicode/web/default/src/assets/brand-icons/icon-figma.tsx diff --git a/new-api/web/default/src/assets/brand-icons/icon-gitlab.tsx b/heicode/web/default/src/assets/brand-icons/icon-gitlab.tsx similarity index 100% rename from new-api/web/default/src/assets/brand-icons/icon-gitlab.tsx rename to heicode/web/default/src/assets/brand-icons/icon-gitlab.tsx diff --git a/new-api/web/default/src/assets/brand-icons/icon-gmail.tsx b/heicode/web/default/src/assets/brand-icons/icon-gmail.tsx similarity index 100% rename from new-api/web/default/src/assets/brand-icons/icon-gmail.tsx rename to heicode/web/default/src/assets/brand-icons/icon-gmail.tsx diff --git a/new-api/web/default/src/assets/brand-icons/icon-linuxdo.tsx b/heicode/web/default/src/assets/brand-icons/icon-linuxdo.tsx similarity index 100% rename from new-api/web/default/src/assets/brand-icons/icon-linuxdo.tsx rename to heicode/web/default/src/assets/brand-icons/icon-linuxdo.tsx diff --git a/new-api/web/default/src/assets/brand-icons/icon-medium.tsx b/heicode/web/default/src/assets/brand-icons/icon-medium.tsx similarity index 100% rename from new-api/web/default/src/assets/brand-icons/icon-medium.tsx rename to heicode/web/default/src/assets/brand-icons/icon-medium.tsx diff --git a/new-api/web/default/src/assets/brand-icons/icon-notion.tsx b/heicode/web/default/src/assets/brand-icons/icon-notion.tsx similarity index 100% rename from new-api/web/default/src/assets/brand-icons/icon-notion.tsx rename to heicode/web/default/src/assets/brand-icons/icon-notion.tsx diff --git a/new-api/web/default/src/assets/brand-icons/icon-skype.tsx b/heicode/web/default/src/assets/brand-icons/icon-skype.tsx similarity index 100% rename from new-api/web/default/src/assets/brand-icons/icon-skype.tsx rename to heicode/web/default/src/assets/brand-icons/icon-skype.tsx diff --git a/new-api/web/default/src/assets/brand-icons/icon-slack.tsx b/heicode/web/default/src/assets/brand-icons/icon-slack.tsx similarity index 100% rename from new-api/web/default/src/assets/brand-icons/icon-slack.tsx rename to heicode/web/default/src/assets/brand-icons/icon-slack.tsx diff --git a/new-api/web/default/src/assets/brand-icons/icon-stripe.tsx b/heicode/web/default/src/assets/brand-icons/icon-stripe.tsx similarity index 100% rename from new-api/web/default/src/assets/brand-icons/icon-stripe.tsx rename to heicode/web/default/src/assets/brand-icons/icon-stripe.tsx diff --git a/new-api/web/default/src/assets/brand-icons/icon-telegram.tsx b/heicode/web/default/src/assets/brand-icons/icon-telegram.tsx similarity index 100% rename from new-api/web/default/src/assets/brand-icons/icon-telegram.tsx rename to heicode/web/default/src/assets/brand-icons/icon-telegram.tsx diff --git a/new-api/web/default/src/assets/brand-icons/icon-trello.tsx b/heicode/web/default/src/assets/brand-icons/icon-trello.tsx similarity index 100% rename from new-api/web/default/src/assets/brand-icons/icon-trello.tsx rename to heicode/web/default/src/assets/brand-icons/icon-trello.tsx diff --git a/new-api/web/default/src/assets/brand-icons/icon-wechat.tsx b/heicode/web/default/src/assets/brand-icons/icon-wechat.tsx similarity index 100% rename from new-api/web/default/src/assets/brand-icons/icon-wechat.tsx rename to heicode/web/default/src/assets/brand-icons/icon-wechat.tsx diff --git a/new-api/web/default/src/assets/brand-icons/icon-whatsapp.tsx b/heicode/web/default/src/assets/brand-icons/icon-whatsapp.tsx similarity index 100% rename from new-api/web/default/src/assets/brand-icons/icon-whatsapp.tsx rename to heicode/web/default/src/assets/brand-icons/icon-whatsapp.tsx diff --git a/new-api/web/default/src/assets/brand-icons/icon-zoom.tsx b/heicode/web/default/src/assets/brand-icons/icon-zoom.tsx similarity index 100% rename from new-api/web/default/src/assets/brand-icons/icon-zoom.tsx rename to heicode/web/default/src/assets/brand-icons/icon-zoom.tsx diff --git a/new-api/web/default/src/assets/brand-icons/index.ts b/heicode/web/default/src/assets/brand-icons/index.ts similarity index 100% rename from new-api/web/default/src/assets/brand-icons/index.ts rename to heicode/web/default/src/assets/brand-icons/index.ts diff --git a/new-api/web/default/src/assets/clerk-full-logo.tsx b/heicode/web/default/src/assets/clerk-full-logo.tsx similarity index 100% rename from new-api/web/default/src/assets/clerk-full-logo.tsx rename to heicode/web/default/src/assets/clerk-full-logo.tsx diff --git a/new-api/web/default/src/assets/clerk-logo.tsx b/heicode/web/default/src/assets/clerk-logo.tsx similarity index 100% rename from new-api/web/default/src/assets/clerk-logo.tsx rename to heicode/web/default/src/assets/clerk-logo.tsx diff --git a/new-api/web/default/src/assets/custom/icon-dir.tsx b/heicode/web/default/src/assets/custom/icon-dir.tsx similarity index 100% rename from new-api/web/default/src/assets/custom/icon-dir.tsx rename to heicode/web/default/src/assets/custom/icon-dir.tsx diff --git a/new-api/web/default/src/assets/custom/icon-layout-compact.tsx b/heicode/web/default/src/assets/custom/icon-layout-compact.tsx similarity index 100% rename from new-api/web/default/src/assets/custom/icon-layout-compact.tsx rename to heicode/web/default/src/assets/custom/icon-layout-compact.tsx diff --git a/new-api/web/default/src/assets/custom/icon-layout-default.tsx b/heicode/web/default/src/assets/custom/icon-layout-default.tsx similarity index 100% rename from new-api/web/default/src/assets/custom/icon-layout-default.tsx rename to heicode/web/default/src/assets/custom/icon-layout-default.tsx diff --git a/new-api/web/default/src/assets/custom/icon-layout-full.tsx b/heicode/web/default/src/assets/custom/icon-layout-full.tsx similarity index 100% rename from new-api/web/default/src/assets/custom/icon-layout-full.tsx rename to heicode/web/default/src/assets/custom/icon-layout-full.tsx diff --git a/new-api/web/default/src/assets/custom/icon-sidebar-floating.tsx b/heicode/web/default/src/assets/custom/icon-sidebar-floating.tsx similarity index 100% rename from new-api/web/default/src/assets/custom/icon-sidebar-floating.tsx rename to heicode/web/default/src/assets/custom/icon-sidebar-floating.tsx diff --git a/new-api/web/default/src/assets/custom/icon-sidebar-inset.tsx b/heicode/web/default/src/assets/custom/icon-sidebar-inset.tsx similarity index 100% rename from new-api/web/default/src/assets/custom/icon-sidebar-inset.tsx rename to heicode/web/default/src/assets/custom/icon-sidebar-inset.tsx diff --git a/new-api/web/default/src/assets/custom/icon-sidebar-sidebar.tsx b/heicode/web/default/src/assets/custom/icon-sidebar-sidebar.tsx similarity index 100% rename from new-api/web/default/src/assets/custom/icon-sidebar-sidebar.tsx rename to heicode/web/default/src/assets/custom/icon-sidebar-sidebar.tsx diff --git a/new-api/web/default/src/assets/custom/icon-theme-dark.tsx b/heicode/web/default/src/assets/custom/icon-theme-dark.tsx similarity index 100% rename from new-api/web/default/src/assets/custom/icon-theme-dark.tsx rename to heicode/web/default/src/assets/custom/icon-theme-dark.tsx diff --git a/new-api/web/default/src/assets/custom/icon-theme-light.tsx b/heicode/web/default/src/assets/custom/icon-theme-light.tsx similarity index 100% rename from new-api/web/default/src/assets/custom/icon-theme-light.tsx rename to heicode/web/default/src/assets/custom/icon-theme-light.tsx diff --git a/new-api/web/default/src/assets/custom/icon-theme-system.tsx b/heicode/web/default/src/assets/custom/icon-theme-system.tsx similarity index 100% rename from new-api/web/default/src/assets/custom/icon-theme-system.tsx rename to heicode/web/default/src/assets/custom/icon-theme-system.tsx diff --git a/new-api/web/default/src/assets/logo.tsx b/heicode/web/default/src/assets/logo.tsx similarity index 100% rename from new-api/web/default/src/assets/logo.tsx rename to heicode/web/default/src/assets/logo.tsx diff --git a/new-api/web/default/src/components/ai-elements/actions.tsx b/heicode/web/default/src/components/ai-elements/actions.tsx similarity index 100% rename from new-api/web/default/src/components/ai-elements/actions.tsx rename to heicode/web/default/src/components/ai-elements/actions.tsx diff --git a/new-api/web/default/src/components/ai-elements/artifact.tsx b/heicode/web/default/src/components/ai-elements/artifact.tsx similarity index 100% rename from new-api/web/default/src/components/ai-elements/artifact.tsx rename to heicode/web/default/src/components/ai-elements/artifact.tsx diff --git a/new-api/web/default/src/components/ai-elements/branch.tsx b/heicode/web/default/src/components/ai-elements/branch.tsx similarity index 100% rename from new-api/web/default/src/components/ai-elements/branch.tsx rename to heicode/web/default/src/components/ai-elements/branch.tsx diff --git a/new-api/web/default/src/components/ai-elements/canvas.tsx b/heicode/web/default/src/components/ai-elements/canvas.tsx similarity index 100% rename from new-api/web/default/src/components/ai-elements/canvas.tsx rename to heicode/web/default/src/components/ai-elements/canvas.tsx diff --git a/new-api/web/default/src/components/ai-elements/chain-of-thought.tsx b/heicode/web/default/src/components/ai-elements/chain-of-thought.tsx similarity index 100% rename from new-api/web/default/src/components/ai-elements/chain-of-thought.tsx rename to heicode/web/default/src/components/ai-elements/chain-of-thought.tsx diff --git a/new-api/web/default/src/components/ai-elements/code-block.tsx b/heicode/web/default/src/components/ai-elements/code-block.tsx similarity index 100% rename from new-api/web/default/src/components/ai-elements/code-block.tsx rename to heicode/web/default/src/components/ai-elements/code-block.tsx diff --git a/new-api/web/default/src/components/ai-elements/confirmation.tsx b/heicode/web/default/src/components/ai-elements/confirmation.tsx similarity index 100% rename from new-api/web/default/src/components/ai-elements/confirmation.tsx rename to heicode/web/default/src/components/ai-elements/confirmation.tsx diff --git a/new-api/web/default/src/components/ai-elements/connection.tsx b/heicode/web/default/src/components/ai-elements/connection.tsx similarity index 100% rename from new-api/web/default/src/components/ai-elements/connection.tsx rename to heicode/web/default/src/components/ai-elements/connection.tsx diff --git a/new-api/web/default/src/components/ai-elements/context.tsx b/heicode/web/default/src/components/ai-elements/context.tsx similarity index 100% rename from new-api/web/default/src/components/ai-elements/context.tsx rename to heicode/web/default/src/components/ai-elements/context.tsx diff --git a/new-api/web/default/src/components/ai-elements/controls.tsx b/heicode/web/default/src/components/ai-elements/controls.tsx similarity index 100% rename from new-api/web/default/src/components/ai-elements/controls.tsx rename to heicode/web/default/src/components/ai-elements/controls.tsx diff --git a/new-api/web/default/src/components/ai-elements/conversation.tsx b/heicode/web/default/src/components/ai-elements/conversation.tsx similarity index 100% rename from new-api/web/default/src/components/ai-elements/conversation.tsx rename to heicode/web/default/src/components/ai-elements/conversation.tsx diff --git a/new-api/web/default/src/components/ai-elements/edge.tsx b/heicode/web/default/src/components/ai-elements/edge.tsx similarity index 100% rename from new-api/web/default/src/components/ai-elements/edge.tsx rename to heicode/web/default/src/components/ai-elements/edge.tsx diff --git a/new-api/web/default/src/components/ai-elements/image.tsx b/heicode/web/default/src/components/ai-elements/image.tsx similarity index 100% rename from new-api/web/default/src/components/ai-elements/image.tsx rename to heicode/web/default/src/components/ai-elements/image.tsx diff --git a/new-api/web/default/src/components/ai-elements/inline-citation.tsx b/heicode/web/default/src/components/ai-elements/inline-citation.tsx similarity index 100% rename from new-api/web/default/src/components/ai-elements/inline-citation.tsx rename to heicode/web/default/src/components/ai-elements/inline-citation.tsx diff --git a/new-api/web/default/src/components/ai-elements/loader.tsx b/heicode/web/default/src/components/ai-elements/loader.tsx similarity index 100% rename from new-api/web/default/src/components/ai-elements/loader.tsx rename to heicode/web/default/src/components/ai-elements/loader.tsx diff --git a/new-api/web/default/src/components/ai-elements/message.tsx b/heicode/web/default/src/components/ai-elements/message.tsx similarity index 100% rename from new-api/web/default/src/components/ai-elements/message.tsx rename to heicode/web/default/src/components/ai-elements/message.tsx diff --git a/new-api/web/default/src/components/ai-elements/node.tsx b/heicode/web/default/src/components/ai-elements/node.tsx similarity index 100% rename from new-api/web/default/src/components/ai-elements/node.tsx rename to heicode/web/default/src/components/ai-elements/node.tsx diff --git a/new-api/web/default/src/components/ai-elements/open-in-chat.tsx b/heicode/web/default/src/components/ai-elements/open-in-chat.tsx similarity index 100% rename from new-api/web/default/src/components/ai-elements/open-in-chat.tsx rename to heicode/web/default/src/components/ai-elements/open-in-chat.tsx diff --git a/new-api/web/default/src/components/ai-elements/panel.tsx b/heicode/web/default/src/components/ai-elements/panel.tsx similarity index 100% rename from new-api/web/default/src/components/ai-elements/panel.tsx rename to heicode/web/default/src/components/ai-elements/panel.tsx diff --git a/new-api/web/default/src/components/ai-elements/plan.tsx b/heicode/web/default/src/components/ai-elements/plan.tsx similarity index 100% rename from new-api/web/default/src/components/ai-elements/plan.tsx rename to heicode/web/default/src/components/ai-elements/plan.tsx diff --git a/new-api/web/default/src/components/ai-elements/prompt-input.tsx b/heicode/web/default/src/components/ai-elements/prompt-input.tsx similarity index 100% rename from new-api/web/default/src/components/ai-elements/prompt-input.tsx rename to heicode/web/default/src/components/ai-elements/prompt-input.tsx diff --git a/new-api/web/default/src/components/ai-elements/queue.tsx b/heicode/web/default/src/components/ai-elements/queue.tsx similarity index 100% rename from new-api/web/default/src/components/ai-elements/queue.tsx rename to heicode/web/default/src/components/ai-elements/queue.tsx diff --git a/new-api/web/default/src/components/ai-elements/reasoning.tsx b/heicode/web/default/src/components/ai-elements/reasoning.tsx similarity index 100% rename from new-api/web/default/src/components/ai-elements/reasoning.tsx rename to heicode/web/default/src/components/ai-elements/reasoning.tsx diff --git a/new-api/web/default/src/components/ai-elements/response.tsx b/heicode/web/default/src/components/ai-elements/response.tsx similarity index 100% rename from new-api/web/default/src/components/ai-elements/response.tsx rename to heicode/web/default/src/components/ai-elements/response.tsx diff --git a/new-api/web/default/src/components/ai-elements/shimmer.tsx b/heicode/web/default/src/components/ai-elements/shimmer.tsx similarity index 100% rename from new-api/web/default/src/components/ai-elements/shimmer.tsx rename to heicode/web/default/src/components/ai-elements/shimmer.tsx diff --git a/new-api/web/default/src/components/ai-elements/sources.tsx b/heicode/web/default/src/components/ai-elements/sources.tsx similarity index 100% rename from new-api/web/default/src/components/ai-elements/sources.tsx rename to heicode/web/default/src/components/ai-elements/sources.tsx diff --git a/new-api/web/default/src/components/ai-elements/suggestion.tsx b/heicode/web/default/src/components/ai-elements/suggestion.tsx similarity index 100% rename from new-api/web/default/src/components/ai-elements/suggestion.tsx rename to heicode/web/default/src/components/ai-elements/suggestion.tsx diff --git a/new-api/web/default/src/components/ai-elements/task.tsx b/heicode/web/default/src/components/ai-elements/task.tsx similarity index 100% rename from new-api/web/default/src/components/ai-elements/task.tsx rename to heicode/web/default/src/components/ai-elements/task.tsx diff --git a/new-api/web/default/src/components/ai-elements/tool.tsx b/heicode/web/default/src/components/ai-elements/tool.tsx similarity index 100% rename from new-api/web/default/src/components/ai-elements/tool.tsx rename to heicode/web/default/src/components/ai-elements/tool.tsx diff --git a/new-api/web/default/src/components/ai-elements/toolbar.tsx b/heicode/web/default/src/components/ai-elements/toolbar.tsx similarity index 100% rename from new-api/web/default/src/components/ai-elements/toolbar.tsx rename to heicode/web/default/src/components/ai-elements/toolbar.tsx diff --git a/new-api/web/default/src/components/ai-elements/web-preview.tsx b/heicode/web/default/src/components/ai-elements/web-preview.tsx similarity index 100% rename from new-api/web/default/src/components/ai-elements/web-preview.tsx rename to heicode/web/default/src/components/ai-elements/web-preview.tsx diff --git a/new-api/web/default/src/components/animate-in-view.tsx b/heicode/web/default/src/components/animate-in-view.tsx similarity index 100% rename from new-api/web/default/src/components/animate-in-view.tsx rename to heicode/web/default/src/components/animate-in-view.tsx diff --git a/new-api/web/default/src/components/auto-skeleton.tsx b/heicode/web/default/src/components/auto-skeleton.tsx similarity index 100% rename from new-api/web/default/src/components/auto-skeleton.tsx rename to heicode/web/default/src/components/auto-skeleton.tsx diff --git a/new-api/web/default/src/components/coming-soon.tsx b/heicode/web/default/src/components/coming-soon.tsx similarity index 100% rename from new-api/web/default/src/components/coming-soon.tsx rename to heicode/web/default/src/components/coming-soon.tsx diff --git a/new-api/web/default/src/components/command-menu.tsx b/heicode/web/default/src/components/command-menu.tsx similarity index 100% rename from new-api/web/default/src/components/command-menu.tsx rename to heicode/web/default/src/components/command-menu.tsx diff --git a/new-api/web/default/src/components/config-drawer.tsx b/heicode/web/default/src/components/config-drawer.tsx similarity index 100% rename from new-api/web/default/src/components/config-drawer.tsx rename to heicode/web/default/src/components/config-drawer.tsx diff --git a/new-api/web/default/src/components/confirm-dialog.tsx b/heicode/web/default/src/components/confirm-dialog.tsx similarity index 100% rename from new-api/web/default/src/components/confirm-dialog.tsx rename to heicode/web/default/src/components/confirm-dialog.tsx diff --git a/new-api/web/default/src/components/copy-button.tsx b/heicode/web/default/src/components/copy-button.tsx similarity index 100% rename from new-api/web/default/src/components/copy-button.tsx rename to heicode/web/default/src/components/copy-button.tsx diff --git a/new-api/web/default/src/components/data-table/bulk-actions.tsx b/heicode/web/default/src/components/data-table/bulk-actions.tsx similarity index 100% rename from new-api/web/default/src/components/data-table/bulk-actions.tsx rename to heicode/web/default/src/components/data-table/bulk-actions.tsx diff --git a/new-api/web/default/src/components/data-table/column-header.tsx b/heicode/web/default/src/components/data-table/column-header.tsx similarity index 100% rename from new-api/web/default/src/components/data-table/column-header.tsx rename to heicode/web/default/src/components/data-table/column-header.tsx diff --git a/new-api/web/default/src/components/data-table/faceted-filter.tsx b/heicode/web/default/src/components/data-table/faceted-filter.tsx similarity index 100% rename from new-api/web/default/src/components/data-table/faceted-filter.tsx rename to heicode/web/default/src/components/data-table/faceted-filter.tsx diff --git a/new-api/web/default/src/components/data-table/index.ts b/heicode/web/default/src/components/data-table/index.ts similarity index 100% rename from new-api/web/default/src/components/data-table/index.ts rename to heicode/web/default/src/components/data-table/index.ts diff --git a/new-api/web/default/src/components/data-table/mobile-card-list.tsx b/heicode/web/default/src/components/data-table/mobile-card-list.tsx similarity index 100% rename from new-api/web/default/src/components/data-table/mobile-card-list.tsx rename to heicode/web/default/src/components/data-table/mobile-card-list.tsx diff --git a/new-api/web/default/src/components/data-table/pagination.tsx b/heicode/web/default/src/components/data-table/pagination.tsx similarity index 100% rename from new-api/web/default/src/components/data-table/pagination.tsx rename to heicode/web/default/src/components/data-table/pagination.tsx diff --git a/new-api/web/default/src/components/data-table/table-empty.tsx b/heicode/web/default/src/components/data-table/table-empty.tsx similarity index 100% rename from new-api/web/default/src/components/data-table/table-empty.tsx rename to heicode/web/default/src/components/data-table/table-empty.tsx diff --git a/new-api/web/default/src/components/data-table/table-skeleton.tsx b/heicode/web/default/src/components/data-table/table-skeleton.tsx similarity index 100% rename from new-api/web/default/src/components/data-table/table-skeleton.tsx rename to heicode/web/default/src/components/data-table/table-skeleton.tsx diff --git a/new-api/web/default/src/components/data-table/toolbar.tsx b/heicode/web/default/src/components/data-table/toolbar.tsx similarity index 100% rename from new-api/web/default/src/components/data-table/toolbar.tsx rename to heicode/web/default/src/components/data-table/toolbar.tsx diff --git a/new-api/web/default/src/components/data-table/view-options.tsx b/heicode/web/default/src/components/data-table/view-options.tsx similarity index 100% rename from new-api/web/default/src/components/data-table/view-options.tsx rename to heicode/web/default/src/components/data-table/view-options.tsx diff --git a/new-api/web/default/src/components/date-picker.tsx b/heicode/web/default/src/components/date-picker.tsx similarity index 100% rename from new-api/web/default/src/components/date-picker.tsx rename to heicode/web/default/src/components/date-picker.tsx diff --git a/new-api/web/default/src/components/datetime-picker.tsx b/heicode/web/default/src/components/datetime-picker.tsx similarity index 100% rename from new-api/web/default/src/components/datetime-picker.tsx rename to heicode/web/default/src/components/datetime-picker.tsx diff --git a/new-api/web/default/src/components/empty-state.tsx b/heicode/web/default/src/components/empty-state.tsx similarity index 100% rename from new-api/web/default/src/components/empty-state.tsx rename to heicode/web/default/src/components/empty-state.tsx diff --git a/new-api/web/default/src/components/error-state.tsx b/heicode/web/default/src/components/error-state.tsx similarity index 100% rename from new-api/web/default/src/components/error-state.tsx rename to heicode/web/default/src/components/error-state.tsx diff --git a/new-api/web/default/src/components/json-editor.tsx b/heicode/web/default/src/components/json-editor.tsx similarity index 100% rename from new-api/web/default/src/components/json-editor.tsx rename to heicode/web/default/src/components/json-editor.tsx diff --git a/new-api/web/default/src/components/language-switcher.tsx b/heicode/web/default/src/components/language-switcher.tsx similarity index 100% rename from new-api/web/default/src/components/language-switcher.tsx rename to heicode/web/default/src/components/language-switcher.tsx diff --git a/new-api/web/default/src/components/layout/components/app-header.tsx b/heicode/web/default/src/components/layout/components/app-header.tsx similarity index 100% rename from new-api/web/default/src/components/layout/components/app-header.tsx rename to heicode/web/default/src/components/layout/components/app-header.tsx diff --git a/new-api/web/default/src/components/layout/components/app-sidebar.tsx b/heicode/web/default/src/components/layout/components/app-sidebar.tsx similarity index 100% rename from new-api/web/default/src/components/layout/components/app-sidebar.tsx rename to heicode/web/default/src/components/layout/components/app-sidebar.tsx diff --git a/new-api/web/default/src/components/layout/components/authenticated-layout.tsx b/heicode/web/default/src/components/layout/components/authenticated-layout.tsx similarity index 100% rename from new-api/web/default/src/components/layout/components/authenticated-layout.tsx rename to heicode/web/default/src/components/layout/components/authenticated-layout.tsx diff --git a/new-api/web/default/src/components/layout/components/chat-presets-item.tsx b/heicode/web/default/src/components/layout/components/chat-presets-item.tsx similarity index 100% rename from new-api/web/default/src/components/layout/components/chat-presets-item.tsx rename to heicode/web/default/src/components/layout/components/chat-presets-item.tsx diff --git a/new-api/web/default/src/components/layout/components/footer.tsx b/heicode/web/default/src/components/layout/components/footer.tsx similarity index 100% rename from new-api/web/default/src/components/layout/components/footer.tsx rename to heicode/web/default/src/components/layout/components/footer.tsx diff --git a/new-api/web/default/src/components/layout/components/glow.tsx b/heicode/web/default/src/components/layout/components/glow.tsx similarity index 100% rename from new-api/web/default/src/components/layout/components/glow.tsx rename to heicode/web/default/src/components/layout/components/glow.tsx diff --git a/new-api/web/default/src/components/layout/components/header-logo.tsx b/heicode/web/default/src/components/layout/components/header-logo.tsx similarity index 100% rename from new-api/web/default/src/components/layout/components/header-logo.tsx rename to heicode/web/default/src/components/layout/components/header-logo.tsx diff --git a/new-api/web/default/src/components/layout/components/header.tsx b/heicode/web/default/src/components/layout/components/header.tsx similarity index 100% rename from new-api/web/default/src/components/layout/components/header.tsx rename to heicode/web/default/src/components/layout/components/header.tsx diff --git a/new-api/web/default/src/components/layout/components/logo.tsx b/heicode/web/default/src/components/layout/components/logo.tsx similarity index 100% rename from new-api/web/default/src/components/layout/components/logo.tsx rename to heicode/web/default/src/components/layout/components/logo.tsx diff --git a/new-api/web/default/src/components/layout/components/main.tsx b/heicode/web/default/src/components/layout/components/main.tsx similarity index 100% rename from new-api/web/default/src/components/layout/components/main.tsx rename to heicode/web/default/src/components/layout/components/main.tsx diff --git a/new-api/web/default/src/components/layout/components/mobile-drawer.tsx b/heicode/web/default/src/components/layout/components/mobile-drawer.tsx similarity index 100% rename from new-api/web/default/src/components/layout/components/mobile-drawer.tsx rename to heicode/web/default/src/components/layout/components/mobile-drawer.tsx diff --git a/new-api/web/default/src/components/layout/components/mockup.tsx b/heicode/web/default/src/components/layout/components/mockup.tsx similarity index 100% rename from new-api/web/default/src/components/layout/components/mockup.tsx rename to heicode/web/default/src/components/layout/components/mockup.tsx diff --git a/new-api/web/default/src/components/layout/components/nav-group.tsx b/heicode/web/default/src/components/layout/components/nav-group.tsx similarity index 100% rename from new-api/web/default/src/components/layout/components/nav-group.tsx rename to heicode/web/default/src/components/layout/components/nav-group.tsx diff --git a/new-api/web/default/src/components/layout/components/nav-link-item.tsx b/heicode/web/default/src/components/layout/components/nav-link-item.tsx similarity index 100% rename from new-api/web/default/src/components/layout/components/nav-link-item.tsx rename to heicode/web/default/src/components/layout/components/nav-link-item.tsx diff --git a/new-api/web/default/src/components/layout/components/navbar.tsx b/heicode/web/default/src/components/layout/components/navbar.tsx similarity index 100% rename from new-api/web/default/src/components/layout/components/navbar.tsx rename to heicode/web/default/src/components/layout/components/navbar.tsx diff --git a/new-api/web/default/src/components/layout/components/page-footer.tsx b/heicode/web/default/src/components/layout/components/page-footer.tsx similarity index 100% rename from new-api/web/default/src/components/layout/components/page-footer.tsx rename to heicode/web/default/src/components/layout/components/page-footer.tsx diff --git a/new-api/web/default/src/components/layout/components/public-header.tsx b/heicode/web/default/src/components/layout/components/public-header.tsx similarity index 100% rename from new-api/web/default/src/components/layout/components/public-header.tsx rename to heicode/web/default/src/components/layout/components/public-header.tsx diff --git a/new-api/web/default/src/components/layout/components/public-layout.tsx b/heicode/web/default/src/components/layout/components/public-layout.tsx similarity index 100% rename from new-api/web/default/src/components/layout/components/public-layout.tsx rename to heicode/web/default/src/components/layout/components/public-layout.tsx diff --git a/new-api/web/default/src/components/layout/components/public-navigation.tsx b/heicode/web/default/src/components/layout/components/public-navigation.tsx similarity index 100% rename from new-api/web/default/src/components/layout/components/public-navigation.tsx rename to heicode/web/default/src/components/layout/components/public-navigation.tsx diff --git a/new-api/web/default/src/components/layout/components/section-page-layout.tsx b/heicode/web/default/src/components/layout/components/section-page-layout.tsx similarity index 100% rename from new-api/web/default/src/components/layout/components/section-page-layout.tsx rename to heicode/web/default/src/components/layout/components/section-page-layout.tsx diff --git a/new-api/web/default/src/components/layout/components/section.tsx b/heicode/web/default/src/components/layout/components/section.tsx similarity index 100% rename from new-api/web/default/src/components/layout/components/section.tsx rename to heicode/web/default/src/components/layout/components/section.tsx diff --git a/new-api/web/default/src/components/layout/components/tenant-bar.tsx b/heicode/web/default/src/components/layout/components/tenant-bar.tsx similarity index 100% rename from new-api/web/default/src/components/layout/components/tenant-bar.tsx rename to heicode/web/default/src/components/layout/components/tenant-bar.tsx diff --git a/new-api/web/default/src/components/layout/components/top-nav.tsx b/heicode/web/default/src/components/layout/components/top-nav.tsx similarity index 100% rename from new-api/web/default/src/components/layout/components/top-nav.tsx rename to heicode/web/default/src/components/layout/components/top-nav.tsx diff --git a/new-api/web/default/src/components/layout/components/workspace-switcher.tsx b/heicode/web/default/src/components/layout/components/workspace-switcher.tsx similarity index 100% rename from new-api/web/default/src/components/layout/components/workspace-switcher.tsx rename to heicode/web/default/src/components/layout/components/workspace-switcher.tsx diff --git a/new-api/web/default/src/components/layout/config/system-settings.config.ts b/heicode/web/default/src/components/layout/config/system-settings.config.ts similarity index 100% rename from new-api/web/default/src/components/layout/config/system-settings.config.ts rename to heicode/web/default/src/components/layout/config/system-settings.config.ts diff --git a/new-api/web/default/src/components/layout/config/top-nav.config.ts b/heicode/web/default/src/components/layout/config/top-nav.config.ts similarity index 100% rename from new-api/web/default/src/components/layout/config/top-nav.config.ts rename to heicode/web/default/src/components/layout/config/top-nav.config.ts diff --git a/new-api/web/default/src/components/layout/constants.ts b/heicode/web/default/src/components/layout/constants.ts similarity index 100% rename from new-api/web/default/src/components/layout/constants.ts rename to heicode/web/default/src/components/layout/constants.ts diff --git a/new-api/web/default/src/components/layout/context/workspace-context.tsx b/heicode/web/default/src/components/layout/context/workspace-context.tsx similarity index 100% rename from new-api/web/default/src/components/layout/context/workspace-context.tsx rename to heicode/web/default/src/components/layout/context/workspace-context.tsx diff --git a/new-api/web/default/src/components/layout/index.ts b/heicode/web/default/src/components/layout/index.ts similarity index 100% rename from new-api/web/default/src/components/layout/index.ts rename to heicode/web/default/src/components/layout/index.ts diff --git a/new-api/web/default/src/components/layout/lib/url-utils.ts b/heicode/web/default/src/components/layout/lib/url-utils.ts similarity index 100% rename from new-api/web/default/src/components/layout/lib/url-utils.ts rename to heicode/web/default/src/components/layout/lib/url-utils.ts diff --git a/new-api/web/default/src/components/layout/lib/workspace-registry.example.ts b/heicode/web/default/src/components/layout/lib/workspace-registry.example.ts similarity index 100% rename from new-api/web/default/src/components/layout/lib/workspace-registry.example.ts rename to heicode/web/default/src/components/layout/lib/workspace-registry.example.ts diff --git a/new-api/web/default/src/components/layout/lib/workspace-registry.ts b/heicode/web/default/src/components/layout/lib/workspace-registry.ts similarity index 100% rename from new-api/web/default/src/components/layout/lib/workspace-registry.ts rename to heicode/web/default/src/components/layout/lib/workspace-registry.ts diff --git a/new-api/web/default/src/components/layout/types.ts b/heicode/web/default/src/components/layout/types.ts similarity index 100% rename from new-api/web/default/src/components/layout/types.ts rename to heicode/web/default/src/components/layout/types.ts diff --git a/new-api/web/default/src/components/learn-more.tsx b/heicode/web/default/src/components/learn-more.tsx similarity index 100% rename from new-api/web/default/src/components/learn-more.tsx rename to heicode/web/default/src/components/learn-more.tsx diff --git a/new-api/web/default/src/components/loading-state.tsx b/heicode/web/default/src/components/loading-state.tsx similarity index 100% rename from new-api/web/default/src/components/loading-state.tsx rename to heicode/web/default/src/components/loading-state.tsx diff --git a/new-api/web/default/src/components/long-text.tsx b/heicode/web/default/src/components/long-text.tsx similarity index 100% rename from new-api/web/default/src/components/long-text.tsx rename to heicode/web/default/src/components/long-text.tsx diff --git a/new-api/web/default/src/components/masked-value-display.tsx b/heicode/web/default/src/components/masked-value-display.tsx similarity index 100% rename from new-api/web/default/src/components/masked-value-display.tsx rename to heicode/web/default/src/components/masked-value-display.tsx diff --git a/new-api/web/default/src/components/model-group-selector.tsx b/heicode/web/default/src/components/model-group-selector.tsx similarity index 100% rename from new-api/web/default/src/components/model-group-selector.tsx rename to heicode/web/default/src/components/model-group-selector.tsx diff --git a/new-api/web/default/src/components/multi-select.tsx b/heicode/web/default/src/components/multi-select.tsx similarity index 100% rename from new-api/web/default/src/components/multi-select.tsx rename to heicode/web/default/src/components/multi-select.tsx diff --git a/new-api/web/default/src/components/navigation-progress.tsx b/heicode/web/default/src/components/navigation-progress.tsx similarity index 100% rename from new-api/web/default/src/components/navigation-progress.tsx rename to heicode/web/default/src/components/navigation-progress.tsx diff --git a/new-api/web/default/src/components/notification-button.tsx b/heicode/web/default/src/components/notification-button.tsx similarity index 100% rename from new-api/web/default/src/components/notification-button.tsx rename to heicode/web/default/src/components/notification-button.tsx diff --git a/new-api/web/default/src/components/notification-dialog.tsx b/heicode/web/default/src/components/notification-dialog.tsx similarity index 100% rename from new-api/web/default/src/components/notification-dialog.tsx rename to heicode/web/default/src/components/notification-dialog.tsx diff --git a/new-api/web/default/src/components/page-transition.tsx b/heicode/web/default/src/components/page-transition.tsx similarity index 100% rename from new-api/web/default/src/components/page-transition.tsx rename to heicode/web/default/src/components/page-transition.tsx diff --git a/new-api/web/default/src/components/password-input.tsx b/heicode/web/default/src/components/password-input.tsx similarity index 100% rename from new-api/web/default/src/components/password-input.tsx rename to heicode/web/default/src/components/password-input.tsx diff --git a/new-api/web/default/src/components/profile-dropdown.tsx b/heicode/web/default/src/components/profile-dropdown.tsx similarity index 100% rename from new-api/web/default/src/components/profile-dropdown.tsx rename to heicode/web/default/src/components/profile-dropdown.tsx diff --git a/new-api/web/default/src/components/search.tsx b/heicode/web/default/src/components/search.tsx similarity index 100% rename from new-api/web/default/src/components/search.tsx rename to heicode/web/default/src/components/search.tsx diff --git a/new-api/web/default/src/components/select-dropdown.tsx b/heicode/web/default/src/components/select-dropdown.tsx similarity index 100% rename from new-api/web/default/src/components/select-dropdown.tsx rename to heicode/web/default/src/components/select-dropdown.tsx diff --git a/new-api/web/default/src/components/sign-out-dialog.tsx b/heicode/web/default/src/components/sign-out-dialog.tsx similarity index 100% rename from new-api/web/default/src/components/sign-out-dialog.tsx rename to heicode/web/default/src/components/sign-out-dialog.tsx diff --git a/new-api/web/default/src/components/skip-to-main.tsx b/heicode/web/default/src/components/skip-to-main.tsx similarity index 100% rename from new-api/web/default/src/components/skip-to-main.tsx rename to heicode/web/default/src/components/skip-to-main.tsx diff --git a/new-api/web/default/src/components/state-shell.tsx b/heicode/web/default/src/components/state-shell.tsx similarity index 100% rename from new-api/web/default/src/components/state-shell.tsx rename to heicode/web/default/src/components/state-shell.tsx diff --git a/new-api/web/default/src/components/status-badge.tsx b/heicode/web/default/src/components/status-badge.tsx similarity index 100% rename from new-api/web/default/src/components/status-badge.tsx rename to heicode/web/default/src/components/status-badge.tsx diff --git a/new-api/web/default/src/components/tag-input.tsx b/heicode/web/default/src/components/tag-input.tsx similarity index 100% rename from new-api/web/default/src/components/tag-input.tsx rename to heicode/web/default/src/components/tag-input.tsx diff --git a/new-api/web/default/src/components/theme-quick-switcher.tsx b/heicode/web/default/src/components/theme-quick-switcher.tsx similarity index 100% rename from new-api/web/default/src/components/theme-quick-switcher.tsx rename to heicode/web/default/src/components/theme-quick-switcher.tsx diff --git a/new-api/web/default/src/components/theme-switch.tsx b/heicode/web/default/src/components/theme-switch.tsx similarity index 100% rename from new-api/web/default/src/components/theme-switch.tsx rename to heicode/web/default/src/components/theme-switch.tsx diff --git a/new-api/web/default/src/components/turnstile.tsx b/heicode/web/default/src/components/turnstile.tsx similarity index 100% rename from new-api/web/default/src/components/turnstile.tsx rename to heicode/web/default/src/components/turnstile.tsx diff --git a/new-api/web/default/src/components/ui/accordion.tsx b/heicode/web/default/src/components/ui/accordion.tsx similarity index 100% rename from new-api/web/default/src/components/ui/accordion.tsx rename to heicode/web/default/src/components/ui/accordion.tsx diff --git a/new-api/web/default/src/components/ui/alert-dialog.tsx b/heicode/web/default/src/components/ui/alert-dialog.tsx similarity index 100% rename from new-api/web/default/src/components/ui/alert-dialog.tsx rename to heicode/web/default/src/components/ui/alert-dialog.tsx diff --git a/new-api/web/default/src/components/ui/alert.tsx b/heicode/web/default/src/components/ui/alert.tsx similarity index 100% rename from new-api/web/default/src/components/ui/alert.tsx rename to heicode/web/default/src/components/ui/alert.tsx diff --git a/new-api/web/default/src/components/ui/avatar.tsx b/heicode/web/default/src/components/ui/avatar.tsx similarity index 100% rename from new-api/web/default/src/components/ui/avatar.tsx rename to heicode/web/default/src/components/ui/avatar.tsx diff --git a/new-api/web/default/src/components/ui/badge.tsx b/heicode/web/default/src/components/ui/badge.tsx similarity index 100% rename from new-api/web/default/src/components/ui/badge.tsx rename to heicode/web/default/src/components/ui/badge.tsx diff --git a/new-api/web/default/src/components/ui/button.tsx b/heicode/web/default/src/components/ui/button.tsx similarity index 100% rename from new-api/web/default/src/components/ui/button.tsx rename to heicode/web/default/src/components/ui/button.tsx diff --git a/new-api/web/default/src/components/ui/calendar.tsx b/heicode/web/default/src/components/ui/calendar.tsx similarity index 100% rename from new-api/web/default/src/components/ui/calendar.tsx rename to heicode/web/default/src/components/ui/calendar.tsx diff --git a/new-api/web/default/src/components/ui/card.tsx b/heicode/web/default/src/components/ui/card.tsx similarity index 100% rename from new-api/web/default/src/components/ui/card.tsx rename to heicode/web/default/src/components/ui/card.tsx diff --git a/new-api/web/default/src/components/ui/carousel.tsx b/heicode/web/default/src/components/ui/carousel.tsx similarity index 100% rename from new-api/web/default/src/components/ui/carousel.tsx rename to heicode/web/default/src/components/ui/carousel.tsx diff --git a/new-api/web/default/src/components/ui/checkbox.tsx b/heicode/web/default/src/components/ui/checkbox.tsx similarity index 100% rename from new-api/web/default/src/components/ui/checkbox.tsx rename to heicode/web/default/src/components/ui/checkbox.tsx diff --git a/new-api/web/default/src/components/ui/collapsible.tsx b/heicode/web/default/src/components/ui/collapsible.tsx similarity index 100% rename from new-api/web/default/src/components/ui/collapsible.tsx rename to heicode/web/default/src/components/ui/collapsible.tsx diff --git a/new-api/web/default/src/components/ui/combobox-input.tsx b/heicode/web/default/src/components/ui/combobox-input.tsx similarity index 100% rename from new-api/web/default/src/components/ui/combobox-input.tsx rename to heicode/web/default/src/components/ui/combobox-input.tsx diff --git a/new-api/web/default/src/components/ui/combobox.tsx b/heicode/web/default/src/components/ui/combobox.tsx similarity index 100% rename from new-api/web/default/src/components/ui/combobox.tsx rename to heicode/web/default/src/components/ui/combobox.tsx diff --git a/new-api/web/default/src/components/ui/command.tsx b/heicode/web/default/src/components/ui/command.tsx similarity index 100% rename from new-api/web/default/src/components/ui/command.tsx rename to heicode/web/default/src/components/ui/command.tsx diff --git a/new-api/web/default/src/components/ui/dialog.tsx b/heicode/web/default/src/components/ui/dialog.tsx similarity index 100% rename from new-api/web/default/src/components/ui/dialog.tsx rename to heicode/web/default/src/components/ui/dialog.tsx diff --git a/new-api/web/default/src/components/ui/drawer.tsx b/heicode/web/default/src/components/ui/drawer.tsx similarity index 100% rename from new-api/web/default/src/components/ui/drawer.tsx rename to heicode/web/default/src/components/ui/drawer.tsx diff --git a/new-api/web/default/src/components/ui/dropdown-menu.tsx b/heicode/web/default/src/components/ui/dropdown-menu.tsx similarity index 100% rename from new-api/web/default/src/components/ui/dropdown-menu.tsx rename to heicode/web/default/src/components/ui/dropdown-menu.tsx diff --git a/new-api/web/default/src/components/ui/empty.tsx b/heicode/web/default/src/components/ui/empty.tsx similarity index 100% rename from new-api/web/default/src/components/ui/empty.tsx rename to heicode/web/default/src/components/ui/empty.tsx diff --git a/new-api/web/default/src/components/ui/form.tsx b/heicode/web/default/src/components/ui/form.tsx similarity index 100% rename from new-api/web/default/src/components/ui/form.tsx rename to heicode/web/default/src/components/ui/form.tsx diff --git a/new-api/web/default/src/components/ui/hover-card.tsx b/heicode/web/default/src/components/ui/hover-card.tsx similarity index 100% rename from new-api/web/default/src/components/ui/hover-card.tsx rename to heicode/web/default/src/components/ui/hover-card.tsx diff --git a/new-api/web/default/src/components/ui/input-group.tsx b/heicode/web/default/src/components/ui/input-group.tsx similarity index 100% rename from new-api/web/default/src/components/ui/input-group.tsx rename to heicode/web/default/src/components/ui/input-group.tsx diff --git a/new-api/web/default/src/components/ui/input-otp.tsx b/heicode/web/default/src/components/ui/input-otp.tsx similarity index 100% rename from new-api/web/default/src/components/ui/input-otp.tsx rename to heicode/web/default/src/components/ui/input-otp.tsx diff --git a/new-api/web/default/src/components/ui/input.tsx b/heicode/web/default/src/components/ui/input.tsx similarity index 100% rename from new-api/web/default/src/components/ui/input.tsx rename to heicode/web/default/src/components/ui/input.tsx diff --git a/new-api/web/default/src/components/ui/label.tsx b/heicode/web/default/src/components/ui/label.tsx similarity index 100% rename from new-api/web/default/src/components/ui/label.tsx rename to heicode/web/default/src/components/ui/label.tsx diff --git a/new-api/web/default/src/components/ui/markdown.tsx b/heicode/web/default/src/components/ui/markdown.tsx similarity index 100% rename from new-api/web/default/src/components/ui/markdown.tsx rename to heicode/web/default/src/components/ui/markdown.tsx diff --git a/new-api/web/default/src/components/ui/popover.tsx b/heicode/web/default/src/components/ui/popover.tsx similarity index 100% rename from new-api/web/default/src/components/ui/popover.tsx rename to heicode/web/default/src/components/ui/popover.tsx diff --git a/new-api/web/default/src/components/ui/progress.tsx b/heicode/web/default/src/components/ui/progress.tsx similarity index 100% rename from new-api/web/default/src/components/ui/progress.tsx rename to heicode/web/default/src/components/ui/progress.tsx diff --git a/new-api/web/default/src/components/ui/radio-group.tsx b/heicode/web/default/src/components/ui/radio-group.tsx similarity index 100% rename from new-api/web/default/src/components/ui/radio-group.tsx rename to heicode/web/default/src/components/ui/radio-group.tsx diff --git a/new-api/web/default/src/components/ui/scroll-area.tsx b/heicode/web/default/src/components/ui/scroll-area.tsx similarity index 100% rename from new-api/web/default/src/components/ui/scroll-area.tsx rename to heicode/web/default/src/components/ui/scroll-area.tsx diff --git a/new-api/web/default/src/components/ui/select.tsx b/heicode/web/default/src/components/ui/select.tsx similarity index 100% rename from new-api/web/default/src/components/ui/select.tsx rename to heicode/web/default/src/components/ui/select.tsx diff --git a/new-api/web/default/src/components/ui/separator.tsx b/heicode/web/default/src/components/ui/separator.tsx similarity index 100% rename from new-api/web/default/src/components/ui/separator.tsx rename to heicode/web/default/src/components/ui/separator.tsx diff --git a/new-api/web/default/src/components/ui/sheet.tsx b/heicode/web/default/src/components/ui/sheet.tsx similarity index 100% rename from new-api/web/default/src/components/ui/sheet.tsx rename to heicode/web/default/src/components/ui/sheet.tsx diff --git a/new-api/web/default/src/components/ui/sidebar.tsx b/heicode/web/default/src/components/ui/sidebar.tsx similarity index 100% rename from new-api/web/default/src/components/ui/sidebar.tsx rename to heicode/web/default/src/components/ui/sidebar.tsx diff --git a/new-api/web/default/src/components/ui/skeleton.tsx b/heicode/web/default/src/components/ui/skeleton.tsx similarity index 100% rename from new-api/web/default/src/components/ui/skeleton.tsx rename to heicode/web/default/src/components/ui/skeleton.tsx diff --git a/new-api/web/default/src/components/ui/sonner.tsx b/heicode/web/default/src/components/ui/sonner.tsx similarity index 100% rename from new-api/web/default/src/components/ui/sonner.tsx rename to heicode/web/default/src/components/ui/sonner.tsx diff --git a/new-api/web/default/src/components/ui/switch.tsx b/heicode/web/default/src/components/ui/switch.tsx similarity index 100% rename from new-api/web/default/src/components/ui/switch.tsx rename to heicode/web/default/src/components/ui/switch.tsx diff --git a/new-api/web/default/src/components/ui/table.tsx b/heicode/web/default/src/components/ui/table.tsx similarity index 100% rename from new-api/web/default/src/components/ui/table.tsx rename to heicode/web/default/src/components/ui/table.tsx diff --git a/new-api/web/default/src/components/ui/tabs.tsx b/heicode/web/default/src/components/ui/tabs.tsx similarity index 100% rename from new-api/web/default/src/components/ui/tabs.tsx rename to heicode/web/default/src/components/ui/tabs.tsx diff --git a/new-api/web/default/src/components/ui/textarea.tsx b/heicode/web/default/src/components/ui/textarea.tsx similarity index 100% rename from new-api/web/default/src/components/ui/textarea.tsx rename to heicode/web/default/src/components/ui/textarea.tsx diff --git a/new-api/web/default/src/components/ui/tooltip.tsx b/heicode/web/default/src/components/ui/tooltip.tsx similarity index 100% rename from new-api/web/default/src/components/ui/tooltip.tsx rename to heicode/web/default/src/components/ui/tooltip.tsx diff --git a/new-api/web/default/src/config/fonts.ts b/heicode/web/default/src/config/fonts.ts similarity index 100% rename from new-api/web/default/src/config/fonts.ts rename to heicode/web/default/src/config/fonts.ts diff --git a/new-api/web/default/src/context/direction-provider.tsx b/heicode/web/default/src/context/direction-provider.tsx similarity index 100% rename from new-api/web/default/src/context/direction-provider.tsx rename to heicode/web/default/src/context/direction-provider.tsx diff --git a/new-api/web/default/src/context/font-provider.tsx b/heicode/web/default/src/context/font-provider.tsx similarity index 100% rename from new-api/web/default/src/context/font-provider.tsx rename to heicode/web/default/src/context/font-provider.tsx diff --git a/new-api/web/default/src/context/layout-provider.tsx b/heicode/web/default/src/context/layout-provider.tsx similarity index 100% rename from new-api/web/default/src/context/layout-provider.tsx rename to heicode/web/default/src/context/layout-provider.tsx diff --git a/new-api/web/default/src/context/search-provider.tsx b/heicode/web/default/src/context/search-provider.tsx similarity index 100% rename from new-api/web/default/src/context/search-provider.tsx rename to heicode/web/default/src/context/search-provider.tsx diff --git a/new-api/web/default/src/context/theme-provider.tsx b/heicode/web/default/src/context/theme-provider.tsx similarity index 100% rename from new-api/web/default/src/context/theme-provider.tsx rename to heicode/web/default/src/context/theme-provider.tsx diff --git a/new-api/web/default/src/env.d.ts b/heicode/web/default/src/env.d.ts similarity index 100% rename from new-api/web/default/src/env.d.ts rename to heicode/web/default/src/env.d.ts diff --git a/new-api/web/default/src/features/about/api.ts b/heicode/web/default/src/features/about/api.ts similarity index 100% rename from new-api/web/default/src/features/about/api.ts rename to heicode/web/default/src/features/about/api.ts diff --git a/new-api/web/default/src/features/about/index.tsx b/heicode/web/default/src/features/about/index.tsx similarity index 100% rename from new-api/web/default/src/features/about/index.tsx rename to heicode/web/default/src/features/about/index.tsx diff --git a/new-api/web/default/src/features/about/types.ts b/heicode/web/default/src/features/about/types.ts similarity index 100% rename from new-api/web/default/src/features/about/types.ts rename to heicode/web/default/src/features/about/types.ts diff --git a/new-api/web/default/src/features/agnet-console/api.ts b/heicode/web/default/src/features/agnet-console/api.ts similarity index 100% rename from new-api/web/default/src/features/agnet-console/api.ts rename to heicode/web/default/src/features/agnet-console/api.ts diff --git a/new-api/web/default/src/features/agnet-console/pages.tsx b/heicode/web/default/src/features/agnet-console/pages.tsx similarity index 100% rename from new-api/web/default/src/features/agnet-console/pages.tsx rename to heicode/web/default/src/features/agnet-console/pages.tsx diff --git a/new-api/web/default/src/features/agnet-hub/index.tsx b/heicode/web/default/src/features/agnet-hub/index.tsx similarity index 100% rename from new-api/web/default/src/features/agnet-hub/index.tsx rename to heicode/web/default/src/features/agnet-hub/index.tsx diff --git a/new-api/web/default/src/features/auth/api.ts b/heicode/web/default/src/features/auth/api.ts similarity index 95% rename from new-api/web/default/src/features/auth/api.ts rename to heicode/web/default/src/features/auth/api.ts index d964b82..98622db 100644 --- a/new-api/web/default/src/features/auth/api.ts +++ b/heicode/web/default/src/features/auth/api.ts @@ -1,4 +1,5 @@ import { api } from '@/lib/api' +import { resetHeicodeAuthenticatedSession } from '@/features/auth/heicode-authenticated-session' import type { LoginPayload, LoginResponse, @@ -31,10 +32,16 @@ function writeTokens(accessToken?: string, refreshToken?: string) { } } +/** Heicode 外部 Auth 是否在本地存有 token(用于路由守卫:登录成功但 /me 偶发失败时不踢下线) */ +export function hasHeicodeTokens(): boolean { + return Boolean(readToken(ACCESS_TOKEN_KEY) || readToken(REFRESH_TOKEN_KEY)) +} + export function clearHeicodeTokens() { if (typeof window === 'undefined') return window.localStorage.removeItem(ACCESS_TOKEN_KEY) window.localStorage.removeItem(REFRESH_TOKEN_KEY) + resetHeicodeAuthenticatedSession() } async function callHeicodeAuth( diff --git a/new-api/web/default/src/features/auth/auth-layout.tsx b/heicode/web/default/src/features/auth/auth-layout.tsx similarity index 100% rename from new-api/web/default/src/features/auth/auth-layout.tsx rename to heicode/web/default/src/features/auth/auth-layout.tsx diff --git a/new-api/web/default/src/features/auth/components/legal-consent.tsx b/heicode/web/default/src/features/auth/components/legal-consent.tsx similarity index 100% rename from new-api/web/default/src/features/auth/components/legal-consent.tsx rename to heicode/web/default/src/features/auth/components/legal-consent.tsx diff --git a/new-api/web/default/src/features/auth/components/oauth-callback-screen.tsx b/heicode/web/default/src/features/auth/components/oauth-callback-screen.tsx similarity index 100% rename from new-api/web/default/src/features/auth/components/oauth-callback-screen.tsx rename to heicode/web/default/src/features/auth/components/oauth-callback-screen.tsx diff --git a/new-api/web/default/src/features/auth/components/oauth-providers.tsx b/heicode/web/default/src/features/auth/components/oauth-providers.tsx similarity index 100% rename from new-api/web/default/src/features/auth/components/oauth-providers.tsx rename to heicode/web/default/src/features/auth/components/oauth-providers.tsx diff --git a/new-api/web/default/src/features/auth/components/terms-footer.tsx b/heicode/web/default/src/features/auth/components/terms-footer.tsx similarity index 100% rename from new-api/web/default/src/features/auth/components/terms-footer.tsx rename to heicode/web/default/src/features/auth/components/terms-footer.tsx diff --git a/new-api/web/default/src/features/auth/constants.ts b/heicode/web/default/src/features/auth/constants.ts similarity index 100% rename from new-api/web/default/src/features/auth/constants.ts rename to heicode/web/default/src/features/auth/constants.ts diff --git a/new-api/web/default/src/features/auth/forgot-password/components/forgot-password-form.tsx b/heicode/web/default/src/features/auth/forgot-password/components/forgot-password-form.tsx similarity index 100% rename from new-api/web/default/src/features/auth/forgot-password/components/forgot-password-form.tsx rename to heicode/web/default/src/features/auth/forgot-password/components/forgot-password-form.tsx diff --git a/new-api/web/default/src/features/auth/forgot-password/index.tsx b/heicode/web/default/src/features/auth/forgot-password/index.tsx similarity index 100% rename from new-api/web/default/src/features/auth/forgot-password/index.tsx rename to heicode/web/default/src/features/auth/forgot-password/index.tsx diff --git a/heicode/web/default/src/features/auth/heicode-authenticated-session.ts b/heicode/web/default/src/features/auth/heicode-authenticated-session.ts new file mode 100644 index 0000000..f0008b3 --- /dev/null +++ b/heicode/web/default/src/features/auth/heicode-authenticated-session.ts @@ -0,0 +1,17 @@ +/** + * SPA 内存标记:password / OAuth 登录成功后已建立会话时跳过 beforeLoad 里重复的 /me 校验, + * 避免第二次请求失败把用户踢回登录页。 + */ +let verified = false + +export function markHeicodeAuthenticatedSessionVerified(): void { + verified = true +} + +export function resetHeicodeAuthenticatedSession(): void { + verified = false +} + +export function isHeicodeAuthenticatedSessionVerified(): boolean { + return verified +} diff --git a/new-api/web/default/src/features/auth/hooks/use-auth-redirect.ts b/heicode/web/default/src/features/auth/hooks/use-auth-redirect.ts similarity index 92% rename from new-api/web/default/src/features/auth/hooks/use-auth-redirect.ts rename to heicode/web/default/src/features/auth/hooks/use-auth-redirect.ts index 934f79c..821b8eb 100644 --- a/new-api/web/default/src/features/auth/hooks/use-auth-redirect.ts +++ b/heicode/web/default/src/features/auth/hooks/use-auth-redirect.ts @@ -2,6 +2,7 @@ import { useNavigate } from '@tanstack/react-router' import i18n from 'i18next' import { useAuthStore } from '@/stores/auth-store' import { getHeicodeCurrentUser } from '@/features/auth/api' +import { markHeicodeAuthenticatedSessionVerified } from '@/features/auth/heicode-authenticated-session' import { saveUserId } from '../lib/storage' /** @@ -96,6 +97,9 @@ export function useAuthRedirect() { auth.setUser(buildFallbackUser(userData)) } + // 告知路由守卫:本会话已完成登录,避免 beforeLoad 再次请求 /me 失败导致踢回登录页 + markHeicodeAuthenticatedSessionVerified() + // Navigate to target page const targetPath = normalizeRedirectTarget(redirectTo) navigate({ to: targetPath, replace: true }) diff --git a/new-api/web/default/src/features/auth/hooks/use-email-verification.ts b/heicode/web/default/src/features/auth/hooks/use-email-verification.ts similarity index 100% rename from new-api/web/default/src/features/auth/hooks/use-email-verification.ts rename to heicode/web/default/src/features/auth/hooks/use-email-verification.ts diff --git a/new-api/web/default/src/features/auth/hooks/use-oauth-login.ts b/heicode/web/default/src/features/auth/hooks/use-oauth-login.ts similarity index 100% rename from new-api/web/default/src/features/auth/hooks/use-oauth-login.ts rename to heicode/web/default/src/features/auth/hooks/use-oauth-login.ts diff --git a/new-api/web/default/src/features/auth/hooks/use-turnstile.ts b/heicode/web/default/src/features/auth/hooks/use-turnstile.ts similarity index 100% rename from new-api/web/default/src/features/auth/hooks/use-turnstile.ts rename to heicode/web/default/src/features/auth/hooks/use-turnstile.ts diff --git a/new-api/web/default/src/features/auth/index.ts b/heicode/web/default/src/features/auth/index.ts similarity index 100% rename from new-api/web/default/src/features/auth/index.ts rename to heicode/web/default/src/features/auth/index.ts diff --git a/new-api/web/default/src/features/auth/lib/oauth.ts b/heicode/web/default/src/features/auth/lib/oauth.ts similarity index 100% rename from new-api/web/default/src/features/auth/lib/oauth.ts rename to heicode/web/default/src/features/auth/lib/oauth.ts diff --git a/new-api/web/default/src/features/auth/lib/storage.ts b/heicode/web/default/src/features/auth/lib/storage.ts similarity index 100% rename from new-api/web/default/src/features/auth/lib/storage.ts rename to heicode/web/default/src/features/auth/lib/storage.ts diff --git a/new-api/web/default/src/features/auth/lib/validation.ts b/heicode/web/default/src/features/auth/lib/validation.ts similarity index 100% rename from new-api/web/default/src/features/auth/lib/validation.ts rename to heicode/web/default/src/features/auth/lib/validation.ts diff --git a/new-api/web/default/src/features/auth/otp/components/otp-form.tsx b/heicode/web/default/src/features/auth/otp/components/otp-form.tsx similarity index 100% rename from new-api/web/default/src/features/auth/otp/components/otp-form.tsx rename to heicode/web/default/src/features/auth/otp/components/otp-form.tsx diff --git a/new-api/web/default/src/features/auth/otp/index.tsx b/heicode/web/default/src/features/auth/otp/index.tsx similarity index 100% rename from new-api/web/default/src/features/auth/otp/index.tsx rename to heicode/web/default/src/features/auth/otp/index.tsx diff --git a/new-api/web/default/src/features/auth/passkey/api.ts b/heicode/web/default/src/features/auth/passkey/api.ts similarity index 100% rename from new-api/web/default/src/features/auth/passkey/api.ts rename to heicode/web/default/src/features/auth/passkey/api.ts diff --git a/new-api/web/default/src/features/auth/passkey/hooks/use-passkey-management.ts b/heicode/web/default/src/features/auth/passkey/hooks/use-passkey-management.ts similarity index 100% rename from new-api/web/default/src/features/auth/passkey/hooks/use-passkey-management.ts rename to heicode/web/default/src/features/auth/passkey/hooks/use-passkey-management.ts diff --git a/new-api/web/default/src/features/auth/passkey/index.ts b/heicode/web/default/src/features/auth/passkey/index.ts similarity index 100% rename from new-api/web/default/src/features/auth/passkey/index.ts rename to heicode/web/default/src/features/auth/passkey/index.ts diff --git a/new-api/web/default/src/features/auth/passkey/types.ts b/heicode/web/default/src/features/auth/passkey/types.ts similarity index 100% rename from new-api/web/default/src/features/auth/passkey/types.ts rename to heicode/web/default/src/features/auth/passkey/types.ts diff --git a/new-api/web/default/src/features/auth/reset-password-confirm/index.tsx b/heicode/web/default/src/features/auth/reset-password-confirm/index.tsx similarity index 100% rename from new-api/web/default/src/features/auth/reset-password-confirm/index.tsx rename to heicode/web/default/src/features/auth/reset-password-confirm/index.tsx diff --git a/new-api/web/default/src/features/auth/secure-verification/api.ts b/heicode/web/default/src/features/auth/secure-verification/api.ts similarity index 100% rename from new-api/web/default/src/features/auth/secure-verification/api.ts rename to heicode/web/default/src/features/auth/secure-verification/api.ts diff --git a/new-api/web/default/src/features/auth/secure-verification/components/secure-verification-dialog.tsx b/heicode/web/default/src/features/auth/secure-verification/components/secure-verification-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/auth/secure-verification/components/secure-verification-dialog.tsx rename to heicode/web/default/src/features/auth/secure-verification/components/secure-verification-dialog.tsx diff --git a/new-api/web/default/src/features/auth/secure-verification/hooks/use-secure-verification.ts b/heicode/web/default/src/features/auth/secure-verification/hooks/use-secure-verification.ts similarity index 100% rename from new-api/web/default/src/features/auth/secure-verification/hooks/use-secure-verification.ts rename to heicode/web/default/src/features/auth/secure-verification/hooks/use-secure-verification.ts diff --git a/new-api/web/default/src/features/auth/secure-verification/index.ts b/heicode/web/default/src/features/auth/secure-verification/index.ts similarity index 100% rename from new-api/web/default/src/features/auth/secure-verification/index.ts rename to heicode/web/default/src/features/auth/secure-verification/index.ts diff --git a/new-api/web/default/src/features/auth/secure-verification/types.ts b/heicode/web/default/src/features/auth/secure-verification/types.ts similarity index 100% rename from new-api/web/default/src/features/auth/secure-verification/types.ts rename to heicode/web/default/src/features/auth/secure-verification/types.ts diff --git a/new-api/web/default/src/features/auth/sign-in/components/user-auth-form.tsx b/heicode/web/default/src/features/auth/sign-in/components/user-auth-form.tsx similarity index 100% rename from new-api/web/default/src/features/auth/sign-in/components/user-auth-form.tsx rename to heicode/web/default/src/features/auth/sign-in/components/user-auth-form.tsx diff --git a/new-api/web/default/src/features/auth/sign-in/index.tsx b/heicode/web/default/src/features/auth/sign-in/index.tsx similarity index 100% rename from new-api/web/default/src/features/auth/sign-in/index.tsx rename to heicode/web/default/src/features/auth/sign-in/index.tsx diff --git a/new-api/web/default/src/features/auth/sign-up/components/sign-up-form.tsx b/heicode/web/default/src/features/auth/sign-up/components/sign-up-form.tsx similarity index 100% rename from new-api/web/default/src/features/auth/sign-up/components/sign-up-form.tsx rename to heicode/web/default/src/features/auth/sign-up/components/sign-up-form.tsx diff --git a/new-api/web/default/src/features/auth/sign-up/index.tsx b/heicode/web/default/src/features/auth/sign-up/index.tsx similarity index 100% rename from new-api/web/default/src/features/auth/sign-up/index.tsx rename to heicode/web/default/src/features/auth/sign-up/index.tsx diff --git a/new-api/web/default/src/features/auth/types.ts b/heicode/web/default/src/features/auth/types.ts similarity index 100% rename from new-api/web/default/src/features/auth/types.ts rename to heicode/web/default/src/features/auth/types.ts diff --git a/new-api/web/default/src/features/channels/api.ts b/heicode/web/default/src/features/channels/api.ts similarity index 100% rename from new-api/web/default/src/features/channels/api.ts rename to heicode/web/default/src/features/channels/api.ts diff --git a/new-api/web/default/src/features/channels/components/channels-columns.tsx b/heicode/web/default/src/features/channels/components/channels-columns.tsx similarity index 100% rename from new-api/web/default/src/features/channels/components/channels-columns.tsx rename to heicode/web/default/src/features/channels/components/channels-columns.tsx diff --git a/new-api/web/default/src/features/channels/components/channels-dialogs.tsx b/heicode/web/default/src/features/channels/components/channels-dialogs.tsx similarity index 100% rename from new-api/web/default/src/features/channels/components/channels-dialogs.tsx rename to heicode/web/default/src/features/channels/components/channels-dialogs.tsx diff --git a/new-api/web/default/src/features/channels/components/channels-primary-buttons.tsx b/heicode/web/default/src/features/channels/components/channels-primary-buttons.tsx similarity index 100% rename from new-api/web/default/src/features/channels/components/channels-primary-buttons.tsx rename to heicode/web/default/src/features/channels/components/channels-primary-buttons.tsx diff --git a/new-api/web/default/src/features/channels/components/channels-provider.tsx b/heicode/web/default/src/features/channels/components/channels-provider.tsx similarity index 100% rename from new-api/web/default/src/features/channels/components/channels-provider.tsx rename to heicode/web/default/src/features/channels/components/channels-provider.tsx diff --git a/new-api/web/default/src/features/channels/components/channels-table.tsx b/heicode/web/default/src/features/channels/components/channels-table.tsx similarity index 100% rename from new-api/web/default/src/features/channels/components/channels-table.tsx rename to heicode/web/default/src/features/channels/components/channels-table.tsx diff --git a/new-api/web/default/src/features/channels/components/data-table-bulk-actions.tsx b/heicode/web/default/src/features/channels/components/data-table-bulk-actions.tsx similarity index 100% rename from new-api/web/default/src/features/channels/components/data-table-bulk-actions.tsx rename to heicode/web/default/src/features/channels/components/data-table-bulk-actions.tsx diff --git a/new-api/web/default/src/features/channels/components/data-table-row-actions.tsx b/heicode/web/default/src/features/channels/components/data-table-row-actions.tsx similarity index 100% rename from new-api/web/default/src/features/channels/components/data-table-row-actions.tsx rename to heicode/web/default/src/features/channels/components/data-table-row-actions.tsx diff --git a/new-api/web/default/src/features/channels/components/data-table-tag-row-actions.tsx b/heicode/web/default/src/features/channels/components/data-table-tag-row-actions.tsx similarity index 100% rename from new-api/web/default/src/features/channels/components/data-table-tag-row-actions.tsx rename to heicode/web/default/src/features/channels/components/data-table-tag-row-actions.tsx diff --git a/new-api/web/default/src/features/channels/components/dialogs/balance-query-dialog.tsx b/heicode/web/default/src/features/channels/components/dialogs/balance-query-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/channels/components/dialogs/balance-query-dialog.tsx rename to heicode/web/default/src/features/channels/components/dialogs/balance-query-dialog.tsx diff --git a/new-api/web/default/src/features/channels/components/dialogs/channel-test-dialog.tsx b/heicode/web/default/src/features/channels/components/dialogs/channel-test-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/channels/components/dialogs/channel-test-dialog.tsx rename to heicode/web/default/src/features/channels/components/dialogs/channel-test-dialog.tsx diff --git a/new-api/web/default/src/features/channels/components/dialogs/codex-oauth-dialog.tsx b/heicode/web/default/src/features/channels/components/dialogs/codex-oauth-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/channels/components/dialogs/codex-oauth-dialog.tsx rename to heicode/web/default/src/features/channels/components/dialogs/codex-oauth-dialog.tsx diff --git a/new-api/web/default/src/features/channels/components/dialogs/codex-usage-dialog.tsx b/heicode/web/default/src/features/channels/components/dialogs/codex-usage-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/channels/components/dialogs/codex-usage-dialog.tsx rename to heicode/web/default/src/features/channels/components/dialogs/codex-usage-dialog.tsx diff --git a/new-api/web/default/src/features/channels/components/dialogs/copy-channel-dialog.tsx b/heicode/web/default/src/features/channels/components/dialogs/copy-channel-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/channels/components/dialogs/copy-channel-dialog.tsx rename to heicode/web/default/src/features/channels/components/dialogs/copy-channel-dialog.tsx diff --git a/new-api/web/default/src/features/channels/components/dialogs/edit-tag-dialog.tsx b/heicode/web/default/src/features/channels/components/dialogs/edit-tag-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/channels/components/dialogs/edit-tag-dialog.tsx rename to heicode/web/default/src/features/channels/components/dialogs/edit-tag-dialog.tsx diff --git a/new-api/web/default/src/features/channels/components/dialogs/fetch-models-dialog.tsx b/heicode/web/default/src/features/channels/components/dialogs/fetch-models-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/channels/components/dialogs/fetch-models-dialog.tsx rename to heicode/web/default/src/features/channels/components/dialogs/fetch-models-dialog.tsx diff --git a/new-api/web/default/src/features/channels/components/dialogs/missing-models-confirmation-dialog.tsx b/heicode/web/default/src/features/channels/components/dialogs/missing-models-confirmation-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/channels/components/dialogs/missing-models-confirmation-dialog.tsx rename to heicode/web/default/src/features/channels/components/dialogs/missing-models-confirmation-dialog.tsx diff --git a/new-api/web/default/src/features/channels/components/dialogs/multi-key-manage-dialog.tsx b/heicode/web/default/src/features/channels/components/dialogs/multi-key-manage-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/channels/components/dialogs/multi-key-manage-dialog.tsx rename to heicode/web/default/src/features/channels/components/dialogs/multi-key-manage-dialog.tsx diff --git a/new-api/web/default/src/features/channels/components/dialogs/multi-key-statistics-card.tsx b/heicode/web/default/src/features/channels/components/dialogs/multi-key-statistics-card.tsx similarity index 100% rename from new-api/web/default/src/features/channels/components/dialogs/multi-key-statistics-card.tsx rename to heicode/web/default/src/features/channels/components/dialogs/multi-key-statistics-card.tsx diff --git a/new-api/web/default/src/features/channels/components/dialogs/multi-key-table-row-actions.tsx b/heicode/web/default/src/features/channels/components/dialogs/multi-key-table-row-actions.tsx similarity index 100% rename from new-api/web/default/src/features/channels/components/dialogs/multi-key-table-row-actions.tsx rename to heicode/web/default/src/features/channels/components/dialogs/multi-key-table-row-actions.tsx diff --git a/new-api/web/default/src/features/channels/components/dialogs/ollama-models-dialog.tsx b/heicode/web/default/src/features/channels/components/dialogs/ollama-models-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/channels/components/dialogs/ollama-models-dialog.tsx rename to heicode/web/default/src/features/channels/components/dialogs/ollama-models-dialog.tsx diff --git a/new-api/web/default/src/features/channels/components/dialogs/status-code-risk-dialog.tsx b/heicode/web/default/src/features/channels/components/dialogs/status-code-risk-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/channels/components/dialogs/status-code-risk-dialog.tsx rename to heicode/web/default/src/features/channels/components/dialogs/status-code-risk-dialog.tsx diff --git a/new-api/web/default/src/features/channels/components/dialogs/tag-batch-edit-dialog.tsx b/heicode/web/default/src/features/channels/components/dialogs/tag-batch-edit-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/channels/components/dialogs/tag-batch-edit-dialog.tsx rename to heicode/web/default/src/features/channels/components/dialogs/tag-batch-edit-dialog.tsx diff --git a/new-api/web/default/src/features/channels/components/dialogs/upstream-update-dialog.tsx b/heicode/web/default/src/features/channels/components/dialogs/upstream-update-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/channels/components/dialogs/upstream-update-dialog.tsx rename to heicode/web/default/src/features/channels/components/dialogs/upstream-update-dialog.tsx diff --git a/new-api/web/default/src/features/channels/components/drawers/channel-mutate-drawer.tsx b/heicode/web/default/src/features/channels/components/drawers/channel-mutate-drawer.tsx similarity index 100% rename from new-api/web/default/src/features/channels/components/drawers/channel-mutate-drawer.tsx rename to heicode/web/default/src/features/channels/components/drawers/channel-mutate-drawer.tsx diff --git a/new-api/web/default/src/features/channels/components/model-mapping-editor.tsx b/heicode/web/default/src/features/channels/components/model-mapping-editor.tsx similarity index 100% rename from new-api/web/default/src/features/channels/components/model-mapping-editor.tsx rename to heicode/web/default/src/features/channels/components/model-mapping-editor.tsx diff --git a/new-api/web/default/src/features/channels/components/numeric-spinner-input.tsx b/heicode/web/default/src/features/channels/components/numeric-spinner-input.tsx similarity index 100% rename from new-api/web/default/src/features/channels/components/numeric-spinner-input.tsx rename to heicode/web/default/src/features/channels/components/numeric-spinner-input.tsx diff --git a/new-api/web/default/src/features/channels/constants.ts b/heicode/web/default/src/features/channels/constants.ts similarity index 100% rename from new-api/web/default/src/features/channels/constants.ts rename to heicode/web/default/src/features/channels/constants.ts diff --git a/new-api/web/default/src/features/channels/hooks/use-channel-upstream-updates.ts b/heicode/web/default/src/features/channels/hooks/use-channel-upstream-updates.ts similarity index 100% rename from new-api/web/default/src/features/channels/hooks/use-channel-upstream-updates.ts rename to heicode/web/default/src/features/channels/hooks/use-channel-upstream-updates.ts diff --git a/new-api/web/default/src/features/channels/index.tsx b/heicode/web/default/src/features/channels/index.tsx similarity index 100% rename from new-api/web/default/src/features/channels/index.tsx rename to heicode/web/default/src/features/channels/index.tsx diff --git a/new-api/web/default/src/features/channels/lib/channel-actions.ts b/heicode/web/default/src/features/channels/lib/channel-actions.ts similarity index 100% rename from new-api/web/default/src/features/channels/lib/channel-actions.ts rename to heicode/web/default/src/features/channels/lib/channel-actions.ts diff --git a/new-api/web/default/src/features/channels/lib/channel-form.ts b/heicode/web/default/src/features/channels/lib/channel-form.ts similarity index 100% rename from new-api/web/default/src/features/channels/lib/channel-form.ts rename to heicode/web/default/src/features/channels/lib/channel-form.ts diff --git a/new-api/web/default/src/features/channels/lib/channel-type-config.ts b/heicode/web/default/src/features/channels/lib/channel-type-config.ts similarity index 100% rename from new-api/web/default/src/features/channels/lib/channel-type-config.ts rename to heicode/web/default/src/features/channels/lib/channel-type-config.ts diff --git a/new-api/web/default/src/features/channels/lib/channel-utils.ts b/heicode/web/default/src/features/channels/lib/channel-utils.ts similarity index 100% rename from new-api/web/default/src/features/channels/lib/channel-utils.ts rename to heicode/web/default/src/features/channels/lib/channel-utils.ts diff --git a/new-api/web/default/src/features/channels/lib/index.ts b/heicode/web/default/src/features/channels/lib/index.ts similarity index 100% rename from new-api/web/default/src/features/channels/lib/index.ts rename to heicode/web/default/src/features/channels/lib/index.ts diff --git a/new-api/web/default/src/features/channels/lib/model-mapping-validation.ts b/heicode/web/default/src/features/channels/lib/model-mapping-validation.ts similarity index 100% rename from new-api/web/default/src/features/channels/lib/model-mapping-validation.ts rename to heicode/web/default/src/features/channels/lib/model-mapping-validation.ts diff --git a/new-api/web/default/src/features/channels/lib/multi-key-utils.ts b/heicode/web/default/src/features/channels/lib/multi-key-utils.ts similarity index 100% rename from new-api/web/default/src/features/channels/lib/multi-key-utils.ts rename to heicode/web/default/src/features/channels/lib/multi-key-utils.ts diff --git a/new-api/web/default/src/features/channels/lib/ollama-utils.ts b/heicode/web/default/src/features/channels/lib/ollama-utils.ts similarity index 100% rename from new-api/web/default/src/features/channels/lib/ollama-utils.ts rename to heicode/web/default/src/features/channels/lib/ollama-utils.ts diff --git a/new-api/web/default/src/features/channels/lib/status-code-risk-guard.ts b/heicode/web/default/src/features/channels/lib/status-code-risk-guard.ts similarity index 100% rename from new-api/web/default/src/features/channels/lib/status-code-risk-guard.ts rename to heicode/web/default/src/features/channels/lib/status-code-risk-guard.ts diff --git a/new-api/web/default/src/features/channels/lib/upstream-update-utils.ts b/heicode/web/default/src/features/channels/lib/upstream-update-utils.ts similarity index 100% rename from new-api/web/default/src/features/channels/lib/upstream-update-utils.ts rename to heicode/web/default/src/features/channels/lib/upstream-update-utils.ts diff --git a/new-api/web/default/src/features/channels/types.ts b/heicode/web/default/src/features/channels/types.ts similarity index 100% rename from new-api/web/default/src/features/channels/types.ts rename to heicode/web/default/src/features/channels/types.ts diff --git a/new-api/web/default/src/features/chat/hooks/use-active-chat-key.ts b/heicode/web/default/src/features/chat/hooks/use-active-chat-key.ts similarity index 100% rename from new-api/web/default/src/features/chat/hooks/use-active-chat-key.ts rename to heicode/web/default/src/features/chat/hooks/use-active-chat-key.ts diff --git a/new-api/web/default/src/features/chat/hooks/use-chat-presets.ts b/heicode/web/default/src/features/chat/hooks/use-chat-presets.ts similarity index 100% rename from new-api/web/default/src/features/chat/hooks/use-chat-presets.ts rename to heicode/web/default/src/features/chat/hooks/use-chat-presets.ts diff --git a/new-api/web/default/src/features/chat/lib/chat-links.ts b/heicode/web/default/src/features/chat/lib/chat-links.ts similarity index 98% rename from new-api/web/default/src/features/chat/lib/chat-links.ts rename to heicode/web/default/src/features/chat/lib/chat-links.ts index ef89795..79c7a06 100644 --- a/new-api/web/default/src/features/chat/lib/chat-links.ts +++ b/heicode/web/default/src/features/chat/lib/chat-links.ts @@ -128,7 +128,7 @@ export function resolveChatUrl({ if (url.includes('{cherryConfig}')) { const payload = { - id: 'new-api', + id: 'heicode', baseUrl: safeServerAddress, apiKey: safeApiKey, } @@ -138,7 +138,7 @@ export function resolveChatUrl({ if (url.includes('{aionuiConfig}')) { const payload = { - platform: 'new-api', + platform: 'heicode', baseUrl: safeServerAddress, apiKey: safeApiKey, } diff --git a/new-api/web/default/src/features/chat/lib/send-to-fluent.ts b/heicode/web/default/src/features/chat/lib/send-to-fluent.ts similarity index 83% rename from new-api/web/default/src/features/chat/lib/send-to-fluent.ts rename to heicode/web/default/src/features/chat/lib/send-to-fluent.ts index 32a98b3..5e3db29 100644 --- a/new-api/web/default/src/features/chat/lib/send-to-fluent.ts +++ b/heicode/web/default/src/features/chat/lib/send-to-fluent.ts @@ -3,13 +3,13 @@ export function sendToFluent(apiKey: string, serverAddress?: string): boolean { return false } - const container = document.getElementById('fluent-new-api-container') + const container = document.getElementById('fluent-heicode-container') if (!container) { return false } const payload = { - id: 'new-api', + id: 'heicode', baseUrl: serverAddress || window.location.origin, apiKey: `sk-${apiKey}`, } diff --git a/new-api/web/default/src/features/dashboard/api.ts b/heicode/web/default/src/features/dashboard/api.ts similarity index 100% rename from new-api/web/default/src/features/dashboard/api.ts rename to heicode/web/default/src/features/dashboard/api.ts diff --git a/new-api/web/default/src/features/dashboard/components/cockpit/index.tsx b/heicode/web/default/src/features/dashboard/components/cockpit/index.tsx similarity index 100% rename from new-api/web/default/src/features/dashboard/components/cockpit/index.tsx rename to heicode/web/default/src/features/dashboard/components/cockpit/index.tsx diff --git a/new-api/web/default/src/features/dashboard/components/models/consumption-distribution-chart.tsx b/heicode/web/default/src/features/dashboard/components/models/consumption-distribution-chart.tsx similarity index 100% rename from new-api/web/default/src/features/dashboard/components/models/consumption-distribution-chart.tsx rename to heicode/web/default/src/features/dashboard/components/models/consumption-distribution-chart.tsx diff --git a/new-api/web/default/src/features/dashboard/components/models/log-stat-cards.tsx b/heicode/web/default/src/features/dashboard/components/models/log-stat-cards.tsx similarity index 100% rename from new-api/web/default/src/features/dashboard/components/models/log-stat-cards.tsx rename to heicode/web/default/src/features/dashboard/components/models/log-stat-cards.tsx diff --git a/new-api/web/default/src/features/dashboard/components/models/model-charts.tsx b/heicode/web/default/src/features/dashboard/components/models/model-charts.tsx similarity index 100% rename from new-api/web/default/src/features/dashboard/components/models/model-charts.tsx rename to heicode/web/default/src/features/dashboard/components/models/model-charts.tsx diff --git a/new-api/web/default/src/features/dashboard/components/models/models-filter-dialog.tsx b/heicode/web/default/src/features/dashboard/components/models/models-filter-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/dashboard/components/models/models-filter-dialog.tsx rename to heicode/web/default/src/features/dashboard/components/models/models-filter-dialog.tsx diff --git a/new-api/web/default/src/features/dashboard/components/overview/announcement-detail-dialog.tsx b/heicode/web/default/src/features/dashboard/components/overview/announcement-detail-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/dashboard/components/overview/announcement-detail-dialog.tsx rename to heicode/web/default/src/features/dashboard/components/overview/announcement-detail-dialog.tsx diff --git a/new-api/web/default/src/features/dashboard/components/overview/announcements-panel.tsx b/heicode/web/default/src/features/dashboard/components/overview/announcements-panel.tsx similarity index 100% rename from new-api/web/default/src/features/dashboard/components/overview/announcements-panel.tsx rename to heicode/web/default/src/features/dashboard/components/overview/announcements-panel.tsx diff --git a/new-api/web/default/src/features/dashboard/components/overview/api-info-item.tsx b/heicode/web/default/src/features/dashboard/components/overview/api-info-item.tsx similarity index 100% rename from new-api/web/default/src/features/dashboard/components/overview/api-info-item.tsx rename to heicode/web/default/src/features/dashboard/components/overview/api-info-item.tsx diff --git a/new-api/web/default/src/features/dashboard/components/overview/api-info-panel.tsx b/heicode/web/default/src/features/dashboard/components/overview/api-info-panel.tsx similarity index 100% rename from new-api/web/default/src/features/dashboard/components/overview/api-info-panel.tsx rename to heicode/web/default/src/features/dashboard/components/overview/api-info-panel.tsx diff --git a/new-api/web/default/src/features/dashboard/components/overview/faq-panel.tsx b/heicode/web/default/src/features/dashboard/components/overview/faq-panel.tsx similarity index 100% rename from new-api/web/default/src/features/dashboard/components/overview/faq-panel.tsx rename to heicode/web/default/src/features/dashboard/components/overview/faq-panel.tsx diff --git a/new-api/web/default/src/features/dashboard/components/overview/summary-cards.tsx b/heicode/web/default/src/features/dashboard/components/overview/summary-cards.tsx similarity index 100% rename from new-api/web/default/src/features/dashboard/components/overview/summary-cards.tsx rename to heicode/web/default/src/features/dashboard/components/overview/summary-cards.tsx diff --git a/new-api/web/default/src/features/dashboard/components/overview/uptime-panel.tsx b/heicode/web/default/src/features/dashboard/components/overview/uptime-panel.tsx similarity index 100% rename from new-api/web/default/src/features/dashboard/components/overview/uptime-panel.tsx rename to heicode/web/default/src/features/dashboard/components/overview/uptime-panel.tsx diff --git a/new-api/web/default/src/features/dashboard/components/ui/panel-wrapper.tsx b/heicode/web/default/src/features/dashboard/components/ui/panel-wrapper.tsx similarity index 100% rename from new-api/web/default/src/features/dashboard/components/ui/panel-wrapper.tsx rename to heicode/web/default/src/features/dashboard/components/ui/panel-wrapper.tsx diff --git a/new-api/web/default/src/features/dashboard/components/ui/stat-card.tsx b/heicode/web/default/src/features/dashboard/components/ui/stat-card.tsx similarity index 100% rename from new-api/web/default/src/features/dashboard/components/ui/stat-card.tsx rename to heicode/web/default/src/features/dashboard/components/ui/stat-card.tsx diff --git a/new-api/web/default/src/features/dashboard/components/users/user-charts.tsx b/heicode/web/default/src/features/dashboard/components/users/user-charts.tsx similarity index 100% rename from new-api/web/default/src/features/dashboard/components/users/user-charts.tsx rename to heicode/web/default/src/features/dashboard/components/users/user-charts.tsx diff --git a/new-api/web/default/src/features/dashboard/constants.ts b/heicode/web/default/src/features/dashboard/constants.ts similarity index 100% rename from new-api/web/default/src/features/dashboard/constants.ts rename to heicode/web/default/src/features/dashboard/constants.ts diff --git a/new-api/web/default/src/features/dashboard/hooks/use-dashboard-config.tsx b/heicode/web/default/src/features/dashboard/hooks/use-dashboard-config.tsx similarity index 100% rename from new-api/web/default/src/features/dashboard/hooks/use-dashboard-config.tsx rename to heicode/web/default/src/features/dashboard/hooks/use-dashboard-config.tsx diff --git a/new-api/web/default/src/features/dashboard/hooks/use-status-data.ts b/heicode/web/default/src/features/dashboard/hooks/use-status-data.ts similarity index 100% rename from new-api/web/default/src/features/dashboard/hooks/use-status-data.ts rename to heicode/web/default/src/features/dashboard/hooks/use-status-data.ts diff --git a/new-api/web/default/src/features/dashboard/index.tsx b/heicode/web/default/src/features/dashboard/index.tsx similarity index 100% rename from new-api/web/default/src/features/dashboard/index.tsx rename to heicode/web/default/src/features/dashboard/index.tsx diff --git a/new-api/web/default/src/features/dashboard/lib/api-info.ts b/heicode/web/default/src/features/dashboard/lib/api-info.ts similarity index 100% rename from new-api/web/default/src/features/dashboard/lib/api-info.ts rename to heicode/web/default/src/features/dashboard/lib/api-info.ts diff --git a/new-api/web/default/src/features/dashboard/lib/charts.ts b/heicode/web/default/src/features/dashboard/lib/charts.ts similarity index 100% rename from new-api/web/default/src/features/dashboard/lib/charts.ts rename to heicode/web/default/src/features/dashboard/lib/charts.ts diff --git a/new-api/web/default/src/features/dashboard/lib/filters.ts b/heicode/web/default/src/features/dashboard/lib/filters.ts similarity index 100% rename from new-api/web/default/src/features/dashboard/lib/filters.ts rename to heicode/web/default/src/features/dashboard/lib/filters.ts diff --git a/new-api/web/default/src/features/dashboard/lib/index.ts b/heicode/web/default/src/features/dashboard/lib/index.ts similarity index 100% rename from new-api/web/default/src/features/dashboard/lib/index.ts rename to heicode/web/default/src/features/dashboard/lib/index.ts diff --git a/new-api/web/default/src/features/dashboard/lib/stats.ts b/heicode/web/default/src/features/dashboard/lib/stats.ts similarity index 100% rename from new-api/web/default/src/features/dashboard/lib/stats.ts rename to heicode/web/default/src/features/dashboard/lib/stats.ts diff --git a/new-api/web/default/src/features/dashboard/lib/text.ts b/heicode/web/default/src/features/dashboard/lib/text.ts similarity index 100% rename from new-api/web/default/src/features/dashboard/lib/text.ts rename to heicode/web/default/src/features/dashboard/lib/text.ts diff --git a/new-api/web/default/src/features/dashboard/section-registry.tsx b/heicode/web/default/src/features/dashboard/section-registry.tsx similarity index 100% rename from new-api/web/default/src/features/dashboard/section-registry.tsx rename to heicode/web/default/src/features/dashboard/section-registry.tsx diff --git a/new-api/web/default/src/features/dashboard/types.ts b/heicode/web/default/src/features/dashboard/types.ts similarity index 100% rename from new-api/web/default/src/features/dashboard/types.ts rename to heicode/web/default/src/features/dashboard/types.ts diff --git a/new-api/web/default/src/features/errors/forbidden.tsx b/heicode/web/default/src/features/errors/forbidden.tsx similarity index 100% rename from new-api/web/default/src/features/errors/forbidden.tsx rename to heicode/web/default/src/features/errors/forbidden.tsx diff --git a/new-api/web/default/src/features/errors/general-error.tsx b/heicode/web/default/src/features/errors/general-error.tsx similarity index 100% rename from new-api/web/default/src/features/errors/general-error.tsx rename to heicode/web/default/src/features/errors/general-error.tsx diff --git a/new-api/web/default/src/features/errors/maintenance-error.tsx b/heicode/web/default/src/features/errors/maintenance-error.tsx similarity index 100% rename from new-api/web/default/src/features/errors/maintenance-error.tsx rename to heicode/web/default/src/features/errors/maintenance-error.tsx diff --git a/new-api/web/default/src/features/errors/not-found-error.tsx b/heicode/web/default/src/features/errors/not-found-error.tsx similarity index 100% rename from new-api/web/default/src/features/errors/not-found-error.tsx rename to heicode/web/default/src/features/errors/not-found-error.tsx diff --git a/new-api/web/default/src/features/errors/unauthorized-error.tsx b/heicode/web/default/src/features/errors/unauthorized-error.tsx similarity index 100% rename from new-api/web/default/src/features/errors/unauthorized-error.tsx rename to heicode/web/default/src/features/errors/unauthorized-error.tsx diff --git a/new-api/web/default/src/features/home/api.ts b/heicode/web/default/src/features/home/api.ts similarity index 100% rename from new-api/web/default/src/features/home/api.ts rename to heicode/web/default/src/features/home/api.ts diff --git a/new-api/web/default/src/features/home/components/connection-line.tsx b/heicode/web/default/src/features/home/components/connection-line.tsx similarity index 100% rename from new-api/web/default/src/features/home/components/connection-line.tsx rename to heicode/web/default/src/features/home/components/connection-line.tsx diff --git a/new-api/web/default/src/features/home/components/feature-item.tsx b/heicode/web/default/src/features/home/components/feature-item.tsx similarity index 100% rename from new-api/web/default/src/features/home/components/feature-item.tsx rename to heicode/web/default/src/features/home/components/feature-item.tsx diff --git a/new-api/web/default/src/features/home/components/gateway-card.tsx b/heicode/web/default/src/features/home/components/gateway-card.tsx similarity index 100% rename from new-api/web/default/src/features/home/components/gateway-card.tsx rename to heicode/web/default/src/features/home/components/gateway-card.tsx diff --git a/new-api/web/default/src/features/home/components/hero-buttons.tsx b/heicode/web/default/src/features/home/components/hero-buttons.tsx similarity index 100% rename from new-api/web/default/src/features/home/components/hero-buttons.tsx rename to heicode/web/default/src/features/home/components/hero-buttons.tsx diff --git a/new-api/web/default/src/features/home/components/hero-terminal-demo.tsx b/heicode/web/default/src/features/home/components/hero-terminal-demo.tsx similarity index 100% rename from new-api/web/default/src/features/home/components/hero-terminal-demo.tsx rename to heicode/web/default/src/features/home/components/hero-terminal-demo.tsx diff --git a/new-api/web/default/src/features/home/components/icon-card.tsx b/heicode/web/default/src/features/home/components/icon-card.tsx similarity index 100% rename from new-api/web/default/src/features/home/components/icon-card.tsx rename to heicode/web/default/src/features/home/components/icon-card.tsx diff --git a/new-api/web/default/src/features/home/components/index.ts b/heicode/web/default/src/features/home/components/index.ts similarity index 100% rename from new-api/web/default/src/features/home/components/index.ts rename to heicode/web/default/src/features/home/components/index.ts diff --git a/new-api/web/default/src/features/home/components/scrolling-icons.tsx b/heicode/web/default/src/features/home/components/scrolling-icons.tsx similarity index 100% rename from new-api/web/default/src/features/home/components/scrolling-icons.tsx rename to heicode/web/default/src/features/home/components/scrolling-icons.tsx diff --git a/new-api/web/default/src/features/home/components/sections/cta.tsx b/heicode/web/default/src/features/home/components/sections/cta.tsx similarity index 100% rename from new-api/web/default/src/features/home/components/sections/cta.tsx rename to heicode/web/default/src/features/home/components/sections/cta.tsx diff --git a/new-api/web/default/src/features/home/components/sections/features.tsx b/heicode/web/default/src/features/home/components/sections/features.tsx similarity index 100% rename from new-api/web/default/src/features/home/components/sections/features.tsx rename to heicode/web/default/src/features/home/components/sections/features.tsx diff --git a/new-api/web/default/src/features/home/components/sections/hero.tsx b/heicode/web/default/src/features/home/components/sections/hero.tsx similarity index 100% rename from new-api/web/default/src/features/home/components/sections/hero.tsx rename to heicode/web/default/src/features/home/components/sections/hero.tsx diff --git a/new-api/web/default/src/features/home/components/sections/how-it-works.tsx b/heicode/web/default/src/features/home/components/sections/how-it-works.tsx similarity index 100% rename from new-api/web/default/src/features/home/components/sections/how-it-works.tsx rename to heicode/web/default/src/features/home/components/sections/how-it-works.tsx diff --git a/new-api/web/default/src/features/home/components/sections/stats.tsx b/heicode/web/default/src/features/home/components/sections/stats.tsx similarity index 100% rename from new-api/web/default/src/features/home/components/sections/stats.tsx rename to heicode/web/default/src/features/home/components/sections/stats.tsx diff --git a/new-api/web/default/src/features/home/components/stat-item.tsx b/heicode/web/default/src/features/home/components/stat-item.tsx similarity index 100% rename from new-api/web/default/src/features/home/components/stat-item.tsx rename to heicode/web/default/src/features/home/components/stat-item.tsx diff --git a/new-api/web/default/src/features/home/constants.ts b/heicode/web/default/src/features/home/constants.ts similarity index 100% rename from new-api/web/default/src/features/home/constants.ts rename to heicode/web/default/src/features/home/constants.ts diff --git a/new-api/web/default/src/features/home/hooks/index.ts b/heicode/web/default/src/features/home/hooks/index.ts similarity index 100% rename from new-api/web/default/src/features/home/hooks/index.ts rename to heicode/web/default/src/features/home/hooks/index.ts diff --git a/new-api/web/default/src/features/home/hooks/use-home-page-content.ts b/heicode/web/default/src/features/home/hooks/use-home-page-content.ts similarity index 100% rename from new-api/web/default/src/features/home/hooks/use-home-page-content.ts rename to heicode/web/default/src/features/home/hooks/use-home-page-content.ts diff --git a/new-api/web/default/src/features/home/index.tsx b/heicode/web/default/src/features/home/index.tsx similarity index 100% rename from new-api/web/default/src/features/home/index.tsx rename to heicode/web/default/src/features/home/index.tsx diff --git a/new-api/web/default/src/features/home/lib/icon-mapper.tsx b/heicode/web/default/src/features/home/lib/icon-mapper.tsx similarity index 100% rename from new-api/web/default/src/features/home/lib/icon-mapper.tsx rename to heicode/web/default/src/features/home/lib/icon-mapper.tsx diff --git a/new-api/web/default/src/features/home/types.ts b/heicode/web/default/src/features/home/types.ts similarity index 100% rename from new-api/web/default/src/features/home/types.ts rename to heicode/web/default/src/features/home/types.ts diff --git a/new-api/web/default/src/features/keys/api.ts b/heicode/web/default/src/features/keys/api.ts similarity index 100% rename from new-api/web/default/src/features/keys/api.ts rename to heicode/web/default/src/features/keys/api.ts diff --git a/new-api/web/default/src/features/keys/components/api-key-group-combobox.tsx b/heicode/web/default/src/features/keys/components/api-key-group-combobox.tsx similarity index 100% rename from new-api/web/default/src/features/keys/components/api-key-group-combobox.tsx rename to heicode/web/default/src/features/keys/components/api-key-group-combobox.tsx diff --git a/new-api/web/default/src/features/keys/components/api-keys-cells.tsx b/heicode/web/default/src/features/keys/components/api-keys-cells.tsx similarity index 100% rename from new-api/web/default/src/features/keys/components/api-keys-cells.tsx rename to heicode/web/default/src/features/keys/components/api-keys-cells.tsx diff --git a/new-api/web/default/src/features/keys/components/api-keys-columns.tsx b/heicode/web/default/src/features/keys/components/api-keys-columns.tsx similarity index 100% rename from new-api/web/default/src/features/keys/components/api-keys-columns.tsx rename to heicode/web/default/src/features/keys/components/api-keys-columns.tsx diff --git a/new-api/web/default/src/features/keys/components/api-keys-delete-dialog.tsx b/heicode/web/default/src/features/keys/components/api-keys-delete-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/keys/components/api-keys-delete-dialog.tsx rename to heicode/web/default/src/features/keys/components/api-keys-delete-dialog.tsx diff --git a/new-api/web/default/src/features/keys/components/api-keys-dialogs.tsx b/heicode/web/default/src/features/keys/components/api-keys-dialogs.tsx similarity index 100% rename from new-api/web/default/src/features/keys/components/api-keys-dialogs.tsx rename to heicode/web/default/src/features/keys/components/api-keys-dialogs.tsx diff --git a/new-api/web/default/src/features/keys/components/api-keys-multi-delete-dialog.tsx b/heicode/web/default/src/features/keys/components/api-keys-multi-delete-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/keys/components/api-keys-multi-delete-dialog.tsx rename to heicode/web/default/src/features/keys/components/api-keys-multi-delete-dialog.tsx diff --git a/new-api/web/default/src/features/keys/components/api-keys-mutate-drawer.tsx b/heicode/web/default/src/features/keys/components/api-keys-mutate-drawer.tsx similarity index 100% rename from new-api/web/default/src/features/keys/components/api-keys-mutate-drawer.tsx rename to heicode/web/default/src/features/keys/components/api-keys-mutate-drawer.tsx diff --git a/new-api/web/default/src/features/keys/components/api-keys-primary-buttons.tsx b/heicode/web/default/src/features/keys/components/api-keys-primary-buttons.tsx similarity index 100% rename from new-api/web/default/src/features/keys/components/api-keys-primary-buttons.tsx rename to heicode/web/default/src/features/keys/components/api-keys-primary-buttons.tsx diff --git a/new-api/web/default/src/features/keys/components/api-keys-provider.tsx b/heicode/web/default/src/features/keys/components/api-keys-provider.tsx similarity index 100% rename from new-api/web/default/src/features/keys/components/api-keys-provider.tsx rename to heicode/web/default/src/features/keys/components/api-keys-provider.tsx diff --git a/new-api/web/default/src/features/keys/components/api-keys-table.tsx b/heicode/web/default/src/features/keys/components/api-keys-table.tsx similarity index 100% rename from new-api/web/default/src/features/keys/components/api-keys-table.tsx rename to heicode/web/default/src/features/keys/components/api-keys-table.tsx diff --git a/new-api/web/default/src/features/keys/components/data-table-bulk-actions.tsx b/heicode/web/default/src/features/keys/components/data-table-bulk-actions.tsx similarity index 100% rename from new-api/web/default/src/features/keys/components/data-table-bulk-actions.tsx rename to heicode/web/default/src/features/keys/components/data-table-bulk-actions.tsx diff --git a/new-api/web/default/src/features/keys/components/data-table-row-actions.tsx b/heicode/web/default/src/features/keys/components/data-table-row-actions.tsx similarity index 100% rename from new-api/web/default/src/features/keys/components/data-table-row-actions.tsx rename to heicode/web/default/src/features/keys/components/data-table-row-actions.tsx diff --git a/new-api/web/default/src/features/keys/components/dialogs/cc-switch-dialog.tsx b/heicode/web/default/src/features/keys/components/dialogs/cc-switch-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/keys/components/dialogs/cc-switch-dialog.tsx rename to heicode/web/default/src/features/keys/components/dialogs/cc-switch-dialog.tsx diff --git a/new-api/web/default/src/features/keys/constants.ts b/heicode/web/default/src/features/keys/constants.ts similarity index 100% rename from new-api/web/default/src/features/keys/constants.ts rename to heicode/web/default/src/features/keys/constants.ts diff --git a/new-api/web/default/src/features/keys/index.tsx b/heicode/web/default/src/features/keys/index.tsx similarity index 100% rename from new-api/web/default/src/features/keys/index.tsx rename to heicode/web/default/src/features/keys/index.tsx diff --git a/new-api/web/default/src/features/keys/lib/api-key-form.ts b/heicode/web/default/src/features/keys/lib/api-key-form.ts similarity index 100% rename from new-api/web/default/src/features/keys/lib/api-key-form.ts rename to heicode/web/default/src/features/keys/lib/api-key-form.ts diff --git a/new-api/web/default/src/features/keys/lib/index.ts b/heicode/web/default/src/features/keys/lib/index.ts similarity index 100% rename from new-api/web/default/src/features/keys/lib/index.ts rename to heicode/web/default/src/features/keys/lib/index.ts diff --git a/new-api/web/default/src/features/keys/types.ts b/heicode/web/default/src/features/keys/types.ts similarity index 100% rename from new-api/web/default/src/features/keys/types.ts rename to heicode/web/default/src/features/keys/types.ts diff --git a/new-api/web/default/src/features/legal/api.ts b/heicode/web/default/src/features/legal/api.ts similarity index 100% rename from new-api/web/default/src/features/legal/api.ts rename to heicode/web/default/src/features/legal/api.ts diff --git a/new-api/web/default/src/features/legal/index.ts b/heicode/web/default/src/features/legal/index.ts similarity index 100% rename from new-api/web/default/src/features/legal/index.ts rename to heicode/web/default/src/features/legal/index.ts diff --git a/new-api/web/default/src/features/legal/legal-document.tsx b/heicode/web/default/src/features/legal/legal-document.tsx similarity index 100% rename from new-api/web/default/src/features/legal/legal-document.tsx rename to heicode/web/default/src/features/legal/legal-document.tsx diff --git a/new-api/web/default/src/features/legal/privacy-policy.tsx b/heicode/web/default/src/features/legal/privacy-policy.tsx similarity index 100% rename from new-api/web/default/src/features/legal/privacy-policy.tsx rename to heicode/web/default/src/features/legal/privacy-policy.tsx diff --git a/new-api/web/default/src/features/legal/types.ts b/heicode/web/default/src/features/legal/types.ts similarity index 100% rename from new-api/web/default/src/features/legal/types.ts rename to heicode/web/default/src/features/legal/types.ts diff --git a/new-api/web/default/src/features/legal/user-agreement.tsx b/heicode/web/default/src/features/legal/user-agreement.tsx similarity index 100% rename from new-api/web/default/src/features/legal/user-agreement.tsx rename to heicode/web/default/src/features/legal/user-agreement.tsx diff --git a/new-api/web/default/src/features/models/api.ts b/heicode/web/default/src/features/models/api.ts similarity index 100% rename from new-api/web/default/src/features/models/api.ts rename to heicode/web/default/src/features/models/api.ts diff --git a/new-api/web/default/src/features/models/components/data-table-bulk-actions.tsx b/heicode/web/default/src/features/models/components/data-table-bulk-actions.tsx similarity index 100% rename from new-api/web/default/src/features/models/components/data-table-bulk-actions.tsx rename to heicode/web/default/src/features/models/components/data-table-bulk-actions.tsx diff --git a/new-api/web/default/src/features/models/components/data-table-row-actions.tsx b/heicode/web/default/src/features/models/components/data-table-row-actions.tsx similarity index 100% rename from new-api/web/default/src/features/models/components/data-table-row-actions.tsx rename to heicode/web/default/src/features/models/components/data-table-row-actions.tsx diff --git a/new-api/web/default/src/features/models/components/deployment-access-guard.tsx b/heicode/web/default/src/features/models/components/deployment-access-guard.tsx similarity index 100% rename from new-api/web/default/src/features/models/components/deployment-access-guard.tsx rename to heicode/web/default/src/features/models/components/deployment-access-guard.tsx diff --git a/new-api/web/default/src/features/models/components/deployments-columns.tsx b/heicode/web/default/src/features/models/components/deployments-columns.tsx similarity index 100% rename from new-api/web/default/src/features/models/components/deployments-columns.tsx rename to heicode/web/default/src/features/models/components/deployments-columns.tsx diff --git a/new-api/web/default/src/features/models/components/deployments-table.tsx b/heicode/web/default/src/features/models/components/deployments-table.tsx similarity index 100% rename from new-api/web/default/src/features/models/components/deployments-table.tsx rename to heicode/web/default/src/features/models/components/deployments-table.tsx diff --git a/new-api/web/default/src/features/models/components/description-cell.tsx b/heicode/web/default/src/features/models/components/description-cell.tsx similarity index 100% rename from new-api/web/default/src/features/models/components/description-cell.tsx rename to heicode/web/default/src/features/models/components/description-cell.tsx diff --git a/new-api/web/default/src/features/models/components/dialogs/create-deployment-drawer.tsx b/heicode/web/default/src/features/models/components/dialogs/create-deployment-drawer.tsx similarity index 100% rename from new-api/web/default/src/features/models/components/dialogs/create-deployment-drawer.tsx rename to heicode/web/default/src/features/models/components/dialogs/create-deployment-drawer.tsx diff --git a/new-api/web/default/src/features/models/components/dialogs/description-dialog.tsx b/heicode/web/default/src/features/models/components/dialogs/description-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/models/components/dialogs/description-dialog.tsx rename to heicode/web/default/src/features/models/components/dialogs/description-dialog.tsx diff --git a/new-api/web/default/src/features/models/components/dialogs/extend-deployment-dialog.tsx b/heicode/web/default/src/features/models/components/dialogs/extend-deployment-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/models/components/dialogs/extend-deployment-dialog.tsx rename to heicode/web/default/src/features/models/components/dialogs/extend-deployment-dialog.tsx diff --git a/new-api/web/default/src/features/models/components/dialogs/missing-models-dialog.tsx b/heicode/web/default/src/features/models/components/dialogs/missing-models-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/models/components/dialogs/missing-models-dialog.tsx rename to heicode/web/default/src/features/models/components/dialogs/missing-models-dialog.tsx diff --git a/new-api/web/default/src/features/models/components/dialogs/prefill-group-management-dialog.tsx b/heicode/web/default/src/features/models/components/dialogs/prefill-group-management-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/models/components/dialogs/prefill-group-management-dialog.tsx rename to heicode/web/default/src/features/models/components/dialogs/prefill-group-management-dialog.tsx diff --git a/new-api/web/default/src/features/models/components/dialogs/prefill-group-management.tsx b/heicode/web/default/src/features/models/components/dialogs/prefill-group-management.tsx similarity index 100% rename from new-api/web/default/src/features/models/components/dialogs/prefill-group-management.tsx rename to heicode/web/default/src/features/models/components/dialogs/prefill-group-management.tsx diff --git a/new-api/web/default/src/features/models/components/dialogs/rename-deployment-dialog.tsx b/heicode/web/default/src/features/models/components/dialogs/rename-deployment-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/models/components/dialogs/rename-deployment-dialog.tsx rename to heicode/web/default/src/features/models/components/dialogs/rename-deployment-dialog.tsx diff --git a/new-api/web/default/src/features/models/components/dialogs/sync-wizard-dialog.tsx b/heicode/web/default/src/features/models/components/dialogs/sync-wizard-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/models/components/dialogs/sync-wizard-dialog.tsx rename to heicode/web/default/src/features/models/components/dialogs/sync-wizard-dialog.tsx diff --git a/new-api/web/default/src/features/models/components/dialogs/update-config-dialog.tsx b/heicode/web/default/src/features/models/components/dialogs/update-config-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/models/components/dialogs/update-config-dialog.tsx rename to heicode/web/default/src/features/models/components/dialogs/update-config-dialog.tsx diff --git a/new-api/web/default/src/features/models/components/dialogs/upstream-conflict-dialog.tsx b/heicode/web/default/src/features/models/components/dialogs/upstream-conflict-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/models/components/dialogs/upstream-conflict-dialog.tsx rename to heicode/web/default/src/features/models/components/dialogs/upstream-conflict-dialog.tsx diff --git a/new-api/web/default/src/features/models/components/dialogs/vendor-mutate-dialog.tsx b/heicode/web/default/src/features/models/components/dialogs/vendor-mutate-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/models/components/dialogs/vendor-mutate-dialog.tsx rename to heicode/web/default/src/features/models/components/dialogs/vendor-mutate-dialog.tsx diff --git a/new-api/web/default/src/features/models/components/dialogs/view-details-dialog.tsx b/heicode/web/default/src/features/models/components/dialogs/view-details-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/models/components/dialogs/view-details-dialog.tsx rename to heicode/web/default/src/features/models/components/dialogs/view-details-dialog.tsx diff --git a/new-api/web/default/src/features/models/components/dialogs/view-logs-dialog.tsx b/heicode/web/default/src/features/models/components/dialogs/view-logs-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/models/components/dialogs/view-logs-dialog.tsx rename to heicode/web/default/src/features/models/components/dialogs/view-logs-dialog.tsx diff --git a/new-api/web/default/src/features/models/components/drawers/model-mutate-drawer.tsx b/heicode/web/default/src/features/models/components/drawers/model-mutate-drawer.tsx similarity index 100% rename from new-api/web/default/src/features/models/components/drawers/model-mutate-drawer.tsx rename to heicode/web/default/src/features/models/components/drawers/model-mutate-drawer.tsx diff --git a/new-api/web/default/src/features/models/components/drawers/prefill-group-form-drawer.tsx b/heicode/web/default/src/features/models/components/drawers/prefill-group-form-drawer.tsx similarity index 100% rename from new-api/web/default/src/features/models/components/drawers/prefill-group-form-drawer.tsx rename to heicode/web/default/src/features/models/components/drawers/prefill-group-form-drawer.tsx diff --git a/new-api/web/default/src/features/models/components/models-columns.tsx b/heicode/web/default/src/features/models/components/models-columns.tsx similarity index 100% rename from new-api/web/default/src/features/models/components/models-columns.tsx rename to heicode/web/default/src/features/models/components/models-columns.tsx diff --git a/new-api/web/default/src/features/models/components/models-dialogs.tsx b/heicode/web/default/src/features/models/components/models-dialogs.tsx similarity index 100% rename from new-api/web/default/src/features/models/components/models-dialogs.tsx rename to heicode/web/default/src/features/models/components/models-dialogs.tsx diff --git a/new-api/web/default/src/features/models/components/models-primary-buttons.tsx b/heicode/web/default/src/features/models/components/models-primary-buttons.tsx similarity index 100% rename from new-api/web/default/src/features/models/components/models-primary-buttons.tsx rename to heicode/web/default/src/features/models/components/models-primary-buttons.tsx diff --git a/new-api/web/default/src/features/models/components/models-provider.tsx b/heicode/web/default/src/features/models/components/models-provider.tsx similarity index 100% rename from new-api/web/default/src/features/models/components/models-provider.tsx rename to heicode/web/default/src/features/models/components/models-provider.tsx diff --git a/new-api/web/default/src/features/models/components/models-table.tsx b/heicode/web/default/src/features/models/components/models-table.tsx similarity index 100% rename from new-api/web/default/src/features/models/components/models-table.tsx rename to heicode/web/default/src/features/models/components/models-table.tsx diff --git a/new-api/web/default/src/features/models/components/prefill-group-shared.ts b/heicode/web/default/src/features/models/components/prefill-group-shared.ts similarity index 100% rename from new-api/web/default/src/features/models/components/prefill-group-shared.ts rename to heicode/web/default/src/features/models/components/prefill-group-shared.ts diff --git a/new-api/web/default/src/features/models/constants.ts b/heicode/web/default/src/features/models/constants.ts similarity index 100% rename from new-api/web/default/src/features/models/constants.ts rename to heicode/web/default/src/features/models/constants.ts diff --git a/new-api/web/default/src/features/models/hooks/use-model-deployment-settings.ts b/heicode/web/default/src/features/models/hooks/use-model-deployment-settings.ts similarity index 100% rename from new-api/web/default/src/features/models/hooks/use-model-deployment-settings.ts rename to heicode/web/default/src/features/models/hooks/use-model-deployment-settings.ts diff --git a/new-api/web/default/src/features/models/index.tsx b/heicode/web/default/src/features/models/index.tsx similarity index 100% rename from new-api/web/default/src/features/models/index.tsx rename to heicode/web/default/src/features/models/index.tsx diff --git a/new-api/web/default/src/features/models/lib/deployments-utils.ts b/heicode/web/default/src/features/models/lib/deployments-utils.ts similarity index 100% rename from new-api/web/default/src/features/models/lib/deployments-utils.ts rename to heicode/web/default/src/features/models/lib/deployments-utils.ts diff --git a/new-api/web/default/src/features/models/lib/index.ts b/heicode/web/default/src/features/models/lib/index.ts similarity index 100% rename from new-api/web/default/src/features/models/lib/index.ts rename to heicode/web/default/src/features/models/lib/index.ts diff --git a/new-api/web/default/src/features/models/lib/model-actions.ts b/heicode/web/default/src/features/models/lib/model-actions.ts similarity index 100% rename from new-api/web/default/src/features/models/lib/model-actions.ts rename to heicode/web/default/src/features/models/lib/model-actions.ts diff --git a/new-api/web/default/src/features/models/lib/model-form.ts b/heicode/web/default/src/features/models/lib/model-form.ts similarity index 100% rename from new-api/web/default/src/features/models/lib/model-form.ts rename to heicode/web/default/src/features/models/lib/model-form.ts diff --git a/new-api/web/default/src/features/models/lib/model-utils.ts b/heicode/web/default/src/features/models/lib/model-utils.ts similarity index 100% rename from new-api/web/default/src/features/models/lib/model-utils.ts rename to heicode/web/default/src/features/models/lib/model-utils.ts diff --git a/new-api/web/default/src/features/models/lib/query-keys.ts b/heicode/web/default/src/features/models/lib/query-keys.ts similarity index 100% rename from new-api/web/default/src/features/models/lib/query-keys.ts rename to heicode/web/default/src/features/models/lib/query-keys.ts diff --git a/new-api/web/default/src/features/models/lib/vendor-actions.ts b/heicode/web/default/src/features/models/lib/vendor-actions.ts similarity index 100% rename from new-api/web/default/src/features/models/lib/vendor-actions.ts rename to heicode/web/default/src/features/models/lib/vendor-actions.ts diff --git a/new-api/web/default/src/features/models/section-registry.tsx b/heicode/web/default/src/features/models/section-registry.tsx similarity index 100% rename from new-api/web/default/src/features/models/section-registry.tsx rename to heicode/web/default/src/features/models/section-registry.tsx diff --git a/new-api/web/default/src/features/models/types.ts b/heicode/web/default/src/features/models/types.ts similarity index 100% rename from new-api/web/default/src/features/models/types.ts rename to heicode/web/default/src/features/models/types.ts diff --git a/new-api/web/default/src/features/playground/api.ts b/heicode/web/default/src/features/playground/api.ts similarity index 100% rename from new-api/web/default/src/features/playground/api.ts rename to heicode/web/default/src/features/playground/api.ts diff --git a/new-api/web/default/src/features/playground/components/message-action-button.tsx b/heicode/web/default/src/features/playground/components/message-action-button.tsx similarity index 100% rename from new-api/web/default/src/features/playground/components/message-action-button.tsx rename to heicode/web/default/src/features/playground/components/message-action-button.tsx diff --git a/new-api/web/default/src/features/playground/components/message-actions.tsx b/heicode/web/default/src/features/playground/components/message-actions.tsx similarity index 100% rename from new-api/web/default/src/features/playground/components/message-actions.tsx rename to heicode/web/default/src/features/playground/components/message-actions.tsx diff --git a/new-api/web/default/src/features/playground/components/message-error.tsx b/heicode/web/default/src/features/playground/components/message-error.tsx similarity index 100% rename from new-api/web/default/src/features/playground/components/message-error.tsx rename to heicode/web/default/src/features/playground/components/message-error.tsx diff --git a/new-api/web/default/src/features/playground/components/playground-chat.tsx b/heicode/web/default/src/features/playground/components/playground-chat.tsx similarity index 100% rename from new-api/web/default/src/features/playground/components/playground-chat.tsx rename to heicode/web/default/src/features/playground/components/playground-chat.tsx diff --git a/new-api/web/default/src/features/playground/components/playground-input.tsx b/heicode/web/default/src/features/playground/components/playground-input.tsx similarity index 100% rename from new-api/web/default/src/features/playground/components/playground-input.tsx rename to heicode/web/default/src/features/playground/components/playground-input.tsx diff --git a/new-api/web/default/src/features/playground/constants.ts b/heicode/web/default/src/features/playground/constants.ts similarity index 100% rename from new-api/web/default/src/features/playground/constants.ts rename to heicode/web/default/src/features/playground/constants.ts diff --git a/new-api/web/default/src/features/playground/hooks/index.ts b/heicode/web/default/src/features/playground/hooks/index.ts similarity index 100% rename from new-api/web/default/src/features/playground/hooks/index.ts rename to heicode/web/default/src/features/playground/hooks/index.ts diff --git a/new-api/web/default/src/features/playground/hooks/use-chat-handler.ts b/heicode/web/default/src/features/playground/hooks/use-chat-handler.ts similarity index 100% rename from new-api/web/default/src/features/playground/hooks/use-chat-handler.ts rename to heicode/web/default/src/features/playground/hooks/use-chat-handler.ts diff --git a/new-api/web/default/src/features/playground/hooks/use-message-action-guard.ts b/heicode/web/default/src/features/playground/hooks/use-message-action-guard.ts similarity index 100% rename from new-api/web/default/src/features/playground/hooks/use-message-action-guard.ts rename to heicode/web/default/src/features/playground/hooks/use-message-action-guard.ts diff --git a/new-api/web/default/src/features/playground/hooks/use-playground-state.ts b/heicode/web/default/src/features/playground/hooks/use-playground-state.ts similarity index 100% rename from new-api/web/default/src/features/playground/hooks/use-playground-state.ts rename to heicode/web/default/src/features/playground/hooks/use-playground-state.ts diff --git a/new-api/web/default/src/features/playground/hooks/use-stream-request.ts b/heicode/web/default/src/features/playground/hooks/use-stream-request.ts similarity index 100% rename from new-api/web/default/src/features/playground/hooks/use-stream-request.ts rename to heicode/web/default/src/features/playground/hooks/use-stream-request.ts diff --git a/new-api/web/default/src/features/playground/index.tsx b/heicode/web/default/src/features/playground/index.tsx similarity index 100% rename from new-api/web/default/src/features/playground/index.tsx rename to heicode/web/default/src/features/playground/index.tsx diff --git a/new-api/web/default/src/features/playground/lib/index.ts b/heicode/web/default/src/features/playground/lib/index.ts similarity index 100% rename from new-api/web/default/src/features/playground/lib/index.ts rename to heicode/web/default/src/features/playground/lib/index.ts diff --git a/new-api/web/default/src/features/playground/lib/message-styles.ts b/heicode/web/default/src/features/playground/lib/message-styles.ts similarity index 100% rename from new-api/web/default/src/features/playground/lib/message-styles.ts rename to heicode/web/default/src/features/playground/lib/message-styles.ts diff --git a/new-api/web/default/src/features/playground/lib/message-utils.ts b/heicode/web/default/src/features/playground/lib/message-utils.ts similarity index 100% rename from new-api/web/default/src/features/playground/lib/message-utils.ts rename to heicode/web/default/src/features/playground/lib/message-utils.ts diff --git a/new-api/web/default/src/features/playground/lib/payload-builder.ts b/heicode/web/default/src/features/playground/lib/payload-builder.ts similarity index 100% rename from new-api/web/default/src/features/playground/lib/payload-builder.ts rename to heicode/web/default/src/features/playground/lib/payload-builder.ts diff --git a/new-api/web/default/src/features/playground/lib/storage.ts b/heicode/web/default/src/features/playground/lib/storage.ts similarity index 100% rename from new-api/web/default/src/features/playground/lib/storage.ts rename to heicode/web/default/src/features/playground/lib/storage.ts diff --git a/new-api/web/default/src/features/playground/types.ts b/heicode/web/default/src/features/playground/types.ts similarity index 100% rename from new-api/web/default/src/features/playground/types.ts rename to heicode/web/default/src/features/playground/types.ts diff --git a/new-api/web/default/src/features/pricing/api.ts b/heicode/web/default/src/features/pricing/api.ts similarity index 100% rename from new-api/web/default/src/features/pricing/api.ts rename to heicode/web/default/src/features/pricing/api.ts diff --git a/new-api/web/default/src/features/pricing/components/dynamic-pricing-breakdown.tsx b/heicode/web/default/src/features/pricing/components/dynamic-pricing-breakdown.tsx similarity index 100% rename from new-api/web/default/src/features/pricing/components/dynamic-pricing-breakdown.tsx rename to heicode/web/default/src/features/pricing/components/dynamic-pricing-breakdown.tsx diff --git a/new-api/web/default/src/features/pricing/components/empty-state.tsx b/heicode/web/default/src/features/pricing/components/empty-state.tsx similarity index 100% rename from new-api/web/default/src/features/pricing/components/empty-state.tsx rename to heicode/web/default/src/features/pricing/components/empty-state.tsx diff --git a/new-api/web/default/src/features/pricing/components/filter-bar.tsx b/heicode/web/default/src/features/pricing/components/filter-bar.tsx similarity index 100% rename from new-api/web/default/src/features/pricing/components/filter-bar.tsx rename to heicode/web/default/src/features/pricing/components/filter-bar.tsx diff --git a/new-api/web/default/src/features/pricing/components/index.ts b/heicode/web/default/src/features/pricing/components/index.ts similarity index 100% rename from new-api/web/default/src/features/pricing/components/index.ts rename to heicode/web/default/src/features/pricing/components/index.ts diff --git a/new-api/web/default/src/features/pricing/components/loading-skeleton.tsx b/heicode/web/default/src/features/pricing/components/loading-skeleton.tsx similarity index 100% rename from new-api/web/default/src/features/pricing/components/loading-skeleton.tsx rename to heicode/web/default/src/features/pricing/components/loading-skeleton.tsx diff --git a/new-api/web/default/src/features/pricing/components/model-details.tsx b/heicode/web/default/src/features/pricing/components/model-details.tsx similarity index 100% rename from new-api/web/default/src/features/pricing/components/model-details.tsx rename to heicode/web/default/src/features/pricing/components/model-details.tsx diff --git a/new-api/web/default/src/features/pricing/components/model-row.tsx b/heicode/web/default/src/features/pricing/components/model-row.tsx similarity index 100% rename from new-api/web/default/src/features/pricing/components/model-row.tsx rename to heicode/web/default/src/features/pricing/components/model-row.tsx diff --git a/new-api/web/default/src/features/pricing/components/pricing-columns.tsx b/heicode/web/default/src/features/pricing/components/pricing-columns.tsx similarity index 100% rename from new-api/web/default/src/features/pricing/components/pricing-columns.tsx rename to heicode/web/default/src/features/pricing/components/pricing-columns.tsx diff --git a/new-api/web/default/src/features/pricing/components/pricing-table.tsx b/heicode/web/default/src/features/pricing/components/pricing-table.tsx similarity index 100% rename from new-api/web/default/src/features/pricing/components/pricing-table.tsx rename to heicode/web/default/src/features/pricing/components/pricing-table.tsx diff --git a/new-api/web/default/src/features/pricing/components/search-bar.tsx b/heicode/web/default/src/features/pricing/components/search-bar.tsx similarity index 100% rename from new-api/web/default/src/features/pricing/components/search-bar.tsx rename to heicode/web/default/src/features/pricing/components/search-bar.tsx diff --git a/new-api/web/default/src/features/pricing/components/virtual-model-list.tsx b/heicode/web/default/src/features/pricing/components/virtual-model-list.tsx similarity index 100% rename from new-api/web/default/src/features/pricing/components/virtual-model-list.tsx rename to heicode/web/default/src/features/pricing/components/virtual-model-list.tsx diff --git a/new-api/web/default/src/features/pricing/constants.ts b/heicode/web/default/src/features/pricing/constants.ts similarity index 100% rename from new-api/web/default/src/features/pricing/constants.ts rename to heicode/web/default/src/features/pricing/constants.ts diff --git a/new-api/web/default/src/features/pricing/hooks/index.ts b/heicode/web/default/src/features/pricing/hooks/index.ts similarity index 100% rename from new-api/web/default/src/features/pricing/hooks/index.ts rename to heicode/web/default/src/features/pricing/hooks/index.ts diff --git a/new-api/web/default/src/features/pricing/hooks/use-filters.ts b/heicode/web/default/src/features/pricing/hooks/use-filters.ts similarity index 100% rename from new-api/web/default/src/features/pricing/hooks/use-filters.ts rename to heicode/web/default/src/features/pricing/hooks/use-filters.ts diff --git a/new-api/web/default/src/features/pricing/hooks/use-pricing-data.ts b/heicode/web/default/src/features/pricing/hooks/use-pricing-data.ts similarity index 100% rename from new-api/web/default/src/features/pricing/hooks/use-pricing-data.ts rename to heicode/web/default/src/features/pricing/hooks/use-pricing-data.ts diff --git a/new-api/web/default/src/features/pricing/index.tsx b/heicode/web/default/src/features/pricing/index.tsx similarity index 100% rename from new-api/web/default/src/features/pricing/index.tsx rename to heicode/web/default/src/features/pricing/index.tsx diff --git a/new-api/web/default/src/features/pricing/lib/billing-expr.ts b/heicode/web/default/src/features/pricing/lib/billing-expr.ts similarity index 100% rename from new-api/web/default/src/features/pricing/lib/billing-expr.ts rename to heicode/web/default/src/features/pricing/lib/billing-expr.ts diff --git a/new-api/web/default/src/features/pricing/lib/filters.ts b/heicode/web/default/src/features/pricing/lib/filters.ts similarity index 100% rename from new-api/web/default/src/features/pricing/lib/filters.ts rename to heicode/web/default/src/features/pricing/lib/filters.ts diff --git a/new-api/web/default/src/features/pricing/lib/index.ts b/heicode/web/default/src/features/pricing/lib/index.ts similarity index 100% rename from new-api/web/default/src/features/pricing/lib/index.ts rename to heicode/web/default/src/features/pricing/lib/index.ts diff --git a/new-api/web/default/src/features/pricing/lib/model-helpers.ts b/heicode/web/default/src/features/pricing/lib/model-helpers.ts similarity index 100% rename from new-api/web/default/src/features/pricing/lib/model-helpers.ts rename to heicode/web/default/src/features/pricing/lib/model-helpers.ts diff --git a/new-api/web/default/src/features/pricing/lib/price.ts b/heicode/web/default/src/features/pricing/lib/price.ts similarity index 100% rename from new-api/web/default/src/features/pricing/lib/price.ts rename to heicode/web/default/src/features/pricing/lib/price.ts diff --git a/new-api/web/default/src/features/pricing/lib/tier-expr.ts b/heicode/web/default/src/features/pricing/lib/tier-expr.ts similarity index 100% rename from new-api/web/default/src/features/pricing/lib/tier-expr.ts rename to heicode/web/default/src/features/pricing/lib/tier-expr.ts diff --git a/new-api/web/default/src/features/pricing/types.ts b/heicode/web/default/src/features/pricing/types.ts similarity index 100% rename from new-api/web/default/src/features/pricing/types.ts rename to heicode/web/default/src/features/pricing/types.ts diff --git a/new-api/web/default/src/features/profile/api.ts b/heicode/web/default/src/features/profile/api.ts similarity index 100% rename from new-api/web/default/src/features/profile/api.ts rename to heicode/web/default/src/features/profile/api.ts diff --git a/new-api/web/default/src/features/profile/components/checkin-calendar-card.tsx b/heicode/web/default/src/features/profile/components/checkin-calendar-card.tsx similarity index 100% rename from new-api/web/default/src/features/profile/components/checkin-calendar-card.tsx rename to heicode/web/default/src/features/profile/components/checkin-calendar-card.tsx diff --git a/new-api/web/default/src/features/profile/components/dialogs/access-token-dialog.tsx b/heicode/web/default/src/features/profile/components/dialogs/access-token-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/profile/components/dialogs/access-token-dialog.tsx rename to heicode/web/default/src/features/profile/components/dialogs/access-token-dialog.tsx diff --git a/new-api/web/default/src/features/profile/components/dialogs/change-password-dialog.tsx b/heicode/web/default/src/features/profile/components/dialogs/change-password-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/profile/components/dialogs/change-password-dialog.tsx rename to heicode/web/default/src/features/profile/components/dialogs/change-password-dialog.tsx diff --git a/new-api/web/default/src/features/profile/components/dialogs/delete-account-dialog.tsx b/heicode/web/default/src/features/profile/components/dialogs/delete-account-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/profile/components/dialogs/delete-account-dialog.tsx rename to heicode/web/default/src/features/profile/components/dialogs/delete-account-dialog.tsx diff --git a/new-api/web/default/src/features/profile/components/dialogs/email-bind-dialog.tsx b/heicode/web/default/src/features/profile/components/dialogs/email-bind-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/profile/components/dialogs/email-bind-dialog.tsx rename to heicode/web/default/src/features/profile/components/dialogs/email-bind-dialog.tsx diff --git a/new-api/web/default/src/features/profile/components/dialogs/telegram-bind-dialog.tsx b/heicode/web/default/src/features/profile/components/dialogs/telegram-bind-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/profile/components/dialogs/telegram-bind-dialog.tsx rename to heicode/web/default/src/features/profile/components/dialogs/telegram-bind-dialog.tsx diff --git a/new-api/web/default/src/features/profile/components/dialogs/two-fa-backup-dialog.tsx b/heicode/web/default/src/features/profile/components/dialogs/two-fa-backup-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/profile/components/dialogs/two-fa-backup-dialog.tsx rename to heicode/web/default/src/features/profile/components/dialogs/two-fa-backup-dialog.tsx diff --git a/new-api/web/default/src/features/profile/components/dialogs/two-fa-disable-dialog.tsx b/heicode/web/default/src/features/profile/components/dialogs/two-fa-disable-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/profile/components/dialogs/two-fa-disable-dialog.tsx rename to heicode/web/default/src/features/profile/components/dialogs/two-fa-disable-dialog.tsx diff --git a/new-api/web/default/src/features/profile/components/dialogs/two-fa-setup-dialog.tsx b/heicode/web/default/src/features/profile/components/dialogs/two-fa-setup-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/profile/components/dialogs/two-fa-setup-dialog.tsx rename to heicode/web/default/src/features/profile/components/dialogs/two-fa-setup-dialog.tsx diff --git a/new-api/web/default/src/features/profile/components/dialogs/wechat-bind-dialog.tsx b/heicode/web/default/src/features/profile/components/dialogs/wechat-bind-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/profile/components/dialogs/wechat-bind-dialog.tsx rename to heicode/web/default/src/features/profile/components/dialogs/wechat-bind-dialog.tsx diff --git a/new-api/web/default/src/features/profile/components/passkey-card.tsx b/heicode/web/default/src/features/profile/components/passkey-card.tsx similarity index 100% rename from new-api/web/default/src/features/profile/components/passkey-card.tsx rename to heicode/web/default/src/features/profile/components/passkey-card.tsx diff --git a/new-api/web/default/src/features/profile/components/profile-header.tsx b/heicode/web/default/src/features/profile/components/profile-header.tsx similarity index 100% rename from new-api/web/default/src/features/profile/components/profile-header.tsx rename to heicode/web/default/src/features/profile/components/profile-header.tsx diff --git a/new-api/web/default/src/features/profile/components/profile-security-card.tsx b/heicode/web/default/src/features/profile/components/profile-security-card.tsx similarity index 100% rename from new-api/web/default/src/features/profile/components/profile-security-card.tsx rename to heicode/web/default/src/features/profile/components/profile-security-card.tsx diff --git a/new-api/web/default/src/features/profile/components/profile-settings-card.tsx b/heicode/web/default/src/features/profile/components/profile-settings-card.tsx similarity index 100% rename from new-api/web/default/src/features/profile/components/profile-settings-card.tsx rename to heicode/web/default/src/features/profile/components/profile-settings-card.tsx diff --git a/new-api/web/default/src/features/profile/components/sidebar-modules-card.tsx b/heicode/web/default/src/features/profile/components/sidebar-modules-card.tsx similarity index 100% rename from new-api/web/default/src/features/profile/components/sidebar-modules-card.tsx rename to heicode/web/default/src/features/profile/components/sidebar-modules-card.tsx diff --git a/new-api/web/default/src/features/profile/components/tabs/account-bindings-tab.tsx b/heicode/web/default/src/features/profile/components/tabs/account-bindings-tab.tsx similarity index 100% rename from new-api/web/default/src/features/profile/components/tabs/account-bindings-tab.tsx rename to heicode/web/default/src/features/profile/components/tabs/account-bindings-tab.tsx diff --git a/new-api/web/default/src/features/profile/components/tabs/notification-tab.tsx b/heicode/web/default/src/features/profile/components/tabs/notification-tab.tsx similarity index 100% rename from new-api/web/default/src/features/profile/components/tabs/notification-tab.tsx rename to heicode/web/default/src/features/profile/components/tabs/notification-tab.tsx diff --git a/new-api/web/default/src/features/profile/components/two-fa-card.tsx b/heicode/web/default/src/features/profile/components/two-fa-card.tsx similarity index 100% rename from new-api/web/default/src/features/profile/components/two-fa-card.tsx rename to heicode/web/default/src/features/profile/components/two-fa-card.tsx diff --git a/new-api/web/default/src/features/profile/constants.ts b/heicode/web/default/src/features/profile/constants.ts similarity index 100% rename from new-api/web/default/src/features/profile/constants.ts rename to heicode/web/default/src/features/profile/constants.ts diff --git a/new-api/web/default/src/features/profile/hooks/index.ts b/heicode/web/default/src/features/profile/hooks/index.ts similarity index 100% rename from new-api/web/default/src/features/profile/hooks/index.ts rename to heicode/web/default/src/features/profile/hooks/index.ts diff --git a/new-api/web/default/src/features/profile/hooks/use-access-token.ts b/heicode/web/default/src/features/profile/hooks/use-access-token.ts similarity index 100% rename from new-api/web/default/src/features/profile/hooks/use-access-token.ts rename to heicode/web/default/src/features/profile/hooks/use-access-token.ts diff --git a/new-api/web/default/src/features/profile/hooks/use-profile.ts b/heicode/web/default/src/features/profile/hooks/use-profile.ts similarity index 100% rename from new-api/web/default/src/features/profile/hooks/use-profile.ts rename to heicode/web/default/src/features/profile/hooks/use-profile.ts diff --git a/new-api/web/default/src/features/profile/hooks/use-two-fa.ts b/heicode/web/default/src/features/profile/hooks/use-two-fa.ts similarity index 100% rename from new-api/web/default/src/features/profile/hooks/use-two-fa.ts rename to heicode/web/default/src/features/profile/hooks/use-two-fa.ts diff --git a/new-api/web/default/src/features/profile/index.tsx b/heicode/web/default/src/features/profile/index.tsx similarity index 100% rename from new-api/web/default/src/features/profile/index.tsx rename to heicode/web/default/src/features/profile/index.tsx diff --git a/new-api/web/default/src/features/profile/lib/format.ts b/heicode/web/default/src/features/profile/lib/format.ts similarity index 100% rename from new-api/web/default/src/features/profile/lib/format.ts rename to heicode/web/default/src/features/profile/lib/format.ts diff --git a/new-api/web/default/src/features/profile/lib/index.ts b/heicode/web/default/src/features/profile/lib/index.ts similarity index 100% rename from new-api/web/default/src/features/profile/lib/index.ts rename to heicode/web/default/src/features/profile/lib/index.ts diff --git a/new-api/web/default/src/features/profile/types.ts b/heicode/web/default/src/features/profile/types.ts similarity index 100% rename from new-api/web/default/src/features/profile/types.ts rename to heicode/web/default/src/features/profile/types.ts diff --git a/new-api/web/default/src/features/redemption-codes/api.ts b/heicode/web/default/src/features/redemption-codes/api.ts similarity index 100% rename from new-api/web/default/src/features/redemption-codes/api.ts rename to heicode/web/default/src/features/redemption-codes/api.ts diff --git a/new-api/web/default/src/features/redemption-codes/components/data-table-bulk-actions.tsx b/heicode/web/default/src/features/redemption-codes/components/data-table-bulk-actions.tsx similarity index 100% rename from new-api/web/default/src/features/redemption-codes/components/data-table-bulk-actions.tsx rename to heicode/web/default/src/features/redemption-codes/components/data-table-bulk-actions.tsx diff --git a/new-api/web/default/src/features/redemption-codes/components/data-table-row-actions.tsx b/heicode/web/default/src/features/redemption-codes/components/data-table-row-actions.tsx similarity index 100% rename from new-api/web/default/src/features/redemption-codes/components/data-table-row-actions.tsx rename to heicode/web/default/src/features/redemption-codes/components/data-table-row-actions.tsx diff --git a/new-api/web/default/src/features/redemption-codes/components/redemptions-columns.tsx b/heicode/web/default/src/features/redemption-codes/components/redemptions-columns.tsx similarity index 100% rename from new-api/web/default/src/features/redemption-codes/components/redemptions-columns.tsx rename to heicode/web/default/src/features/redemption-codes/components/redemptions-columns.tsx diff --git a/new-api/web/default/src/features/redemption-codes/components/redemptions-delete-dialog.tsx b/heicode/web/default/src/features/redemption-codes/components/redemptions-delete-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/redemption-codes/components/redemptions-delete-dialog.tsx rename to heicode/web/default/src/features/redemption-codes/components/redemptions-delete-dialog.tsx diff --git a/new-api/web/default/src/features/redemption-codes/components/redemptions-dialogs.tsx b/heicode/web/default/src/features/redemption-codes/components/redemptions-dialogs.tsx similarity index 100% rename from new-api/web/default/src/features/redemption-codes/components/redemptions-dialogs.tsx rename to heicode/web/default/src/features/redemption-codes/components/redemptions-dialogs.tsx diff --git a/new-api/web/default/src/features/redemption-codes/components/redemptions-mutate-drawer.tsx b/heicode/web/default/src/features/redemption-codes/components/redemptions-mutate-drawer.tsx similarity index 100% rename from new-api/web/default/src/features/redemption-codes/components/redemptions-mutate-drawer.tsx rename to heicode/web/default/src/features/redemption-codes/components/redemptions-mutate-drawer.tsx diff --git a/new-api/web/default/src/features/redemption-codes/components/redemptions-primary-buttons.tsx b/heicode/web/default/src/features/redemption-codes/components/redemptions-primary-buttons.tsx similarity index 100% rename from new-api/web/default/src/features/redemption-codes/components/redemptions-primary-buttons.tsx rename to heicode/web/default/src/features/redemption-codes/components/redemptions-primary-buttons.tsx diff --git a/new-api/web/default/src/features/redemption-codes/components/redemptions-provider.tsx b/heicode/web/default/src/features/redemption-codes/components/redemptions-provider.tsx similarity index 100% rename from new-api/web/default/src/features/redemption-codes/components/redemptions-provider.tsx rename to heicode/web/default/src/features/redemption-codes/components/redemptions-provider.tsx diff --git a/new-api/web/default/src/features/redemption-codes/components/redemptions-table.tsx b/heicode/web/default/src/features/redemption-codes/components/redemptions-table.tsx similarity index 100% rename from new-api/web/default/src/features/redemption-codes/components/redemptions-table.tsx rename to heicode/web/default/src/features/redemption-codes/components/redemptions-table.tsx diff --git a/new-api/web/default/src/features/redemption-codes/constants.ts b/heicode/web/default/src/features/redemption-codes/constants.ts similarity index 100% rename from new-api/web/default/src/features/redemption-codes/constants.ts rename to heicode/web/default/src/features/redemption-codes/constants.ts diff --git a/new-api/web/default/src/features/redemption-codes/index.tsx b/heicode/web/default/src/features/redemption-codes/index.tsx similarity index 100% rename from new-api/web/default/src/features/redemption-codes/index.tsx rename to heicode/web/default/src/features/redemption-codes/index.tsx diff --git a/new-api/web/default/src/features/redemption-codes/lib/index.ts b/heicode/web/default/src/features/redemption-codes/lib/index.ts similarity index 100% rename from new-api/web/default/src/features/redemption-codes/lib/index.ts rename to heicode/web/default/src/features/redemption-codes/lib/index.ts diff --git a/new-api/web/default/src/features/redemption-codes/lib/redemption-form.ts b/heicode/web/default/src/features/redemption-codes/lib/redemption-form.ts similarity index 100% rename from new-api/web/default/src/features/redemption-codes/lib/redemption-form.ts rename to heicode/web/default/src/features/redemption-codes/lib/redemption-form.ts diff --git a/new-api/web/default/src/features/redemption-codes/lib/utils.ts b/heicode/web/default/src/features/redemption-codes/lib/utils.ts similarity index 100% rename from new-api/web/default/src/features/redemption-codes/lib/utils.ts rename to heicode/web/default/src/features/redemption-codes/lib/utils.ts diff --git a/new-api/web/default/src/features/redemption-codes/types.ts b/heicode/web/default/src/features/redemption-codes/types.ts similarity index 100% rename from new-api/web/default/src/features/redemption-codes/types.ts rename to heicode/web/default/src/features/redemption-codes/types.ts diff --git a/new-api/web/default/src/features/setup/api.ts b/heicode/web/default/src/features/setup/api.ts similarity index 100% rename from new-api/web/default/src/features/setup/api.ts rename to heicode/web/default/src/features/setup/api.ts diff --git a/new-api/web/default/src/features/setup/components/admin-step.tsx b/heicode/web/default/src/features/setup/components/admin-step.tsx similarity index 100% rename from new-api/web/default/src/features/setup/components/admin-step.tsx rename to heicode/web/default/src/features/setup/components/admin-step.tsx diff --git a/new-api/web/default/src/features/setup/components/complete-step.tsx b/heicode/web/default/src/features/setup/components/complete-step.tsx similarity index 100% rename from new-api/web/default/src/features/setup/components/complete-step.tsx rename to heicode/web/default/src/features/setup/components/complete-step.tsx diff --git a/new-api/web/default/src/features/setup/components/database-step.tsx b/heicode/web/default/src/features/setup/components/database-step.tsx similarity index 100% rename from new-api/web/default/src/features/setup/components/database-step.tsx rename to heicode/web/default/src/features/setup/components/database-step.tsx diff --git a/new-api/web/default/src/features/setup/components/step-navigation.tsx b/heicode/web/default/src/features/setup/components/step-navigation.tsx similarity index 100% rename from new-api/web/default/src/features/setup/components/step-navigation.tsx rename to heicode/web/default/src/features/setup/components/step-navigation.tsx diff --git a/new-api/web/default/src/features/setup/components/usage-mode-step.tsx b/heicode/web/default/src/features/setup/components/usage-mode-step.tsx similarity index 100% rename from new-api/web/default/src/features/setup/components/usage-mode-step.tsx rename to heicode/web/default/src/features/setup/components/usage-mode-step.tsx diff --git a/new-api/web/default/src/features/setup/index.ts b/heicode/web/default/src/features/setup/index.ts similarity index 100% rename from new-api/web/default/src/features/setup/index.ts rename to heicode/web/default/src/features/setup/index.ts diff --git a/new-api/web/default/src/features/setup/setup-wizard.tsx b/heicode/web/default/src/features/setup/setup-wizard.tsx similarity index 100% rename from new-api/web/default/src/features/setup/setup-wizard.tsx rename to heicode/web/default/src/features/setup/setup-wizard.tsx diff --git a/new-api/web/default/src/features/setup/types.ts b/heicode/web/default/src/features/setup/types.ts similarity index 100% rename from new-api/web/default/src/features/setup/types.ts rename to heicode/web/default/src/features/setup/types.ts diff --git a/new-api/web/default/src/features/subscriptions/api.ts b/heicode/web/default/src/features/subscriptions/api.ts similarity index 100% rename from new-api/web/default/src/features/subscriptions/api.ts rename to heicode/web/default/src/features/subscriptions/api.ts diff --git a/new-api/web/default/src/features/subscriptions/components/data-table-row-actions.tsx b/heicode/web/default/src/features/subscriptions/components/data-table-row-actions.tsx similarity index 100% rename from new-api/web/default/src/features/subscriptions/components/data-table-row-actions.tsx rename to heicode/web/default/src/features/subscriptions/components/data-table-row-actions.tsx diff --git a/new-api/web/default/src/features/subscriptions/components/dialogs/subscription-purchase-dialog.tsx b/heicode/web/default/src/features/subscriptions/components/dialogs/subscription-purchase-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/subscriptions/components/dialogs/subscription-purchase-dialog.tsx rename to heicode/web/default/src/features/subscriptions/components/dialogs/subscription-purchase-dialog.tsx diff --git a/new-api/web/default/src/features/subscriptions/components/dialogs/toggle-status-dialog.tsx b/heicode/web/default/src/features/subscriptions/components/dialogs/toggle-status-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/subscriptions/components/dialogs/toggle-status-dialog.tsx rename to heicode/web/default/src/features/subscriptions/components/dialogs/toggle-status-dialog.tsx diff --git a/new-api/web/default/src/features/subscriptions/components/dialogs/user-subscriptions-dialog.tsx b/heicode/web/default/src/features/subscriptions/components/dialogs/user-subscriptions-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/subscriptions/components/dialogs/user-subscriptions-dialog.tsx rename to heicode/web/default/src/features/subscriptions/components/dialogs/user-subscriptions-dialog.tsx diff --git a/new-api/web/default/src/features/subscriptions/components/subscriptions-columns.tsx b/heicode/web/default/src/features/subscriptions/components/subscriptions-columns.tsx similarity index 100% rename from new-api/web/default/src/features/subscriptions/components/subscriptions-columns.tsx rename to heicode/web/default/src/features/subscriptions/components/subscriptions-columns.tsx diff --git a/new-api/web/default/src/features/subscriptions/components/subscriptions-dialogs.tsx b/heicode/web/default/src/features/subscriptions/components/subscriptions-dialogs.tsx similarity index 100% rename from new-api/web/default/src/features/subscriptions/components/subscriptions-dialogs.tsx rename to heicode/web/default/src/features/subscriptions/components/subscriptions-dialogs.tsx diff --git a/new-api/web/default/src/features/subscriptions/components/subscriptions-mutate-drawer.tsx b/heicode/web/default/src/features/subscriptions/components/subscriptions-mutate-drawer.tsx similarity index 100% rename from new-api/web/default/src/features/subscriptions/components/subscriptions-mutate-drawer.tsx rename to heicode/web/default/src/features/subscriptions/components/subscriptions-mutate-drawer.tsx diff --git a/new-api/web/default/src/features/subscriptions/components/subscriptions-primary-buttons.tsx b/heicode/web/default/src/features/subscriptions/components/subscriptions-primary-buttons.tsx similarity index 100% rename from new-api/web/default/src/features/subscriptions/components/subscriptions-primary-buttons.tsx rename to heicode/web/default/src/features/subscriptions/components/subscriptions-primary-buttons.tsx diff --git a/new-api/web/default/src/features/subscriptions/components/subscriptions-provider.tsx b/heicode/web/default/src/features/subscriptions/components/subscriptions-provider.tsx similarity index 100% rename from new-api/web/default/src/features/subscriptions/components/subscriptions-provider.tsx rename to heicode/web/default/src/features/subscriptions/components/subscriptions-provider.tsx diff --git a/new-api/web/default/src/features/subscriptions/components/subscriptions-table.tsx b/heicode/web/default/src/features/subscriptions/components/subscriptions-table.tsx similarity index 100% rename from new-api/web/default/src/features/subscriptions/components/subscriptions-table.tsx rename to heicode/web/default/src/features/subscriptions/components/subscriptions-table.tsx diff --git a/new-api/web/default/src/features/subscriptions/constants.ts b/heicode/web/default/src/features/subscriptions/constants.ts similarity index 100% rename from new-api/web/default/src/features/subscriptions/constants.ts rename to heicode/web/default/src/features/subscriptions/constants.ts diff --git a/new-api/web/default/src/features/subscriptions/index.tsx b/heicode/web/default/src/features/subscriptions/index.tsx similarity index 100% rename from new-api/web/default/src/features/subscriptions/index.tsx rename to heicode/web/default/src/features/subscriptions/index.tsx diff --git a/new-api/web/default/src/features/subscriptions/lib/format.ts b/heicode/web/default/src/features/subscriptions/lib/format.ts similarity index 100% rename from new-api/web/default/src/features/subscriptions/lib/format.ts rename to heicode/web/default/src/features/subscriptions/lib/format.ts diff --git a/new-api/web/default/src/features/subscriptions/lib/index.ts b/heicode/web/default/src/features/subscriptions/lib/index.ts similarity index 100% rename from new-api/web/default/src/features/subscriptions/lib/index.ts rename to heicode/web/default/src/features/subscriptions/lib/index.ts diff --git a/new-api/web/default/src/features/subscriptions/lib/plan-form.ts b/heicode/web/default/src/features/subscriptions/lib/plan-form.ts similarity index 100% rename from new-api/web/default/src/features/subscriptions/lib/plan-form.ts rename to heicode/web/default/src/features/subscriptions/lib/plan-form.ts diff --git a/new-api/web/default/src/features/subscriptions/types.ts b/heicode/web/default/src/features/subscriptions/types.ts similarity index 100% rename from new-api/web/default/src/features/subscriptions/types.ts rename to heicode/web/default/src/features/subscriptions/types.ts diff --git a/new-api/web/default/src/features/system-settings/api.ts b/heicode/web/default/src/features/system-settings/api.ts similarity index 100% rename from new-api/web/default/src/features/system-settings/api.ts rename to heicode/web/default/src/features/system-settings/api.ts diff --git a/new-api/web/default/src/features/system-settings/auth/basic-auth-section.tsx b/heicode/web/default/src/features/system-settings/auth/basic-auth-section.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/auth/basic-auth-section.tsx rename to heicode/web/default/src/features/system-settings/auth/basic-auth-section.tsx diff --git a/new-api/web/default/src/features/system-settings/auth/bot-protection-section.tsx b/heicode/web/default/src/features/system-settings/auth/bot-protection-section.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/auth/bot-protection-section.tsx rename to heicode/web/default/src/features/system-settings/auth/bot-protection-section.tsx diff --git a/new-api/web/default/src/features/system-settings/auth/custom-oauth/api.ts b/heicode/web/default/src/features/system-settings/auth/custom-oauth/api.ts similarity index 100% rename from new-api/web/default/src/features/system-settings/auth/custom-oauth/api.ts rename to heicode/web/default/src/features/system-settings/auth/custom-oauth/api.ts diff --git a/new-api/web/default/src/features/system-settings/auth/custom-oauth/components/discovery-button.tsx b/heicode/web/default/src/features/system-settings/auth/custom-oauth/components/discovery-button.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/auth/custom-oauth/components/discovery-button.tsx rename to heicode/web/default/src/features/system-settings/auth/custom-oauth/components/discovery-button.tsx diff --git a/new-api/web/default/src/features/system-settings/auth/custom-oauth/components/preset-selector.tsx b/heicode/web/default/src/features/system-settings/auth/custom-oauth/components/preset-selector.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/auth/custom-oauth/components/preset-selector.tsx rename to heicode/web/default/src/features/system-settings/auth/custom-oauth/components/preset-selector.tsx diff --git a/new-api/web/default/src/features/system-settings/auth/custom-oauth/components/provider-form-dialog.tsx b/heicode/web/default/src/features/system-settings/auth/custom-oauth/components/provider-form-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/auth/custom-oauth/components/provider-form-dialog.tsx rename to heicode/web/default/src/features/system-settings/auth/custom-oauth/components/provider-form-dialog.tsx diff --git a/new-api/web/default/src/features/system-settings/auth/custom-oauth/components/provider-table.tsx b/heicode/web/default/src/features/system-settings/auth/custom-oauth/components/provider-table.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/auth/custom-oauth/components/provider-table.tsx rename to heicode/web/default/src/features/system-settings/auth/custom-oauth/components/provider-table.tsx diff --git a/new-api/web/default/src/features/system-settings/auth/custom-oauth/custom-oauth-section.tsx b/heicode/web/default/src/features/system-settings/auth/custom-oauth/custom-oauth-section.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/auth/custom-oauth/custom-oauth-section.tsx rename to heicode/web/default/src/features/system-settings/auth/custom-oauth/custom-oauth-section.tsx diff --git a/new-api/web/default/src/features/system-settings/auth/custom-oauth/hooks/use-custom-oauth-mutations.ts b/heicode/web/default/src/features/system-settings/auth/custom-oauth/hooks/use-custom-oauth-mutations.ts similarity index 100% rename from new-api/web/default/src/features/system-settings/auth/custom-oauth/hooks/use-custom-oauth-mutations.ts rename to heicode/web/default/src/features/system-settings/auth/custom-oauth/hooks/use-custom-oauth-mutations.ts diff --git a/new-api/web/default/src/features/system-settings/auth/custom-oauth/hooks/use-custom-oauth-providers.ts b/heicode/web/default/src/features/system-settings/auth/custom-oauth/hooks/use-custom-oauth-providers.ts similarity index 100% rename from new-api/web/default/src/features/system-settings/auth/custom-oauth/hooks/use-custom-oauth-providers.ts rename to heicode/web/default/src/features/system-settings/auth/custom-oauth/hooks/use-custom-oauth-providers.ts diff --git a/new-api/web/default/src/features/system-settings/auth/custom-oauth/types.ts b/heicode/web/default/src/features/system-settings/auth/custom-oauth/types.ts similarity index 100% rename from new-api/web/default/src/features/system-settings/auth/custom-oauth/types.ts rename to heicode/web/default/src/features/system-settings/auth/custom-oauth/types.ts diff --git a/new-api/web/default/src/features/system-settings/auth/index.tsx b/heicode/web/default/src/features/system-settings/auth/index.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/auth/index.tsx rename to heicode/web/default/src/features/system-settings/auth/index.tsx diff --git a/new-api/web/default/src/features/system-settings/auth/oauth-section.tsx b/heicode/web/default/src/features/system-settings/auth/oauth-section.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/auth/oauth-section.tsx rename to heicode/web/default/src/features/system-settings/auth/oauth-section.tsx diff --git a/new-api/web/default/src/features/system-settings/auth/passkey-section.tsx b/heicode/web/default/src/features/system-settings/auth/passkey-section.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/auth/passkey-section.tsx rename to heicode/web/default/src/features/system-settings/auth/passkey-section.tsx diff --git a/new-api/web/default/src/features/system-settings/auth/section-registry.tsx b/heicode/web/default/src/features/system-settings/auth/section-registry.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/auth/section-registry.tsx rename to heicode/web/default/src/features/system-settings/auth/section-registry.tsx diff --git a/new-api/web/default/src/features/system-settings/components/form-dirty-indicator.tsx b/heicode/web/default/src/features/system-settings/components/form-dirty-indicator.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/components/form-dirty-indicator.tsx rename to heicode/web/default/src/features/system-settings/components/form-dirty-indicator.tsx diff --git a/new-api/web/default/src/features/system-settings/components/form-navigation-guard.tsx b/heicode/web/default/src/features/system-settings/components/form-navigation-guard.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/components/form-navigation-guard.tsx rename to heicode/web/default/src/features/system-settings/components/form-navigation-guard.tsx diff --git a/new-api/web/default/src/features/system-settings/components/settings-accordion.tsx b/heicode/web/default/src/features/system-settings/components/settings-accordion.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/components/settings-accordion.tsx rename to heicode/web/default/src/features/system-settings/components/settings-accordion.tsx diff --git a/new-api/web/default/src/features/system-settings/components/settings-card.tsx b/heicode/web/default/src/features/system-settings/components/settings-card.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/components/settings-card.tsx rename to heicode/web/default/src/features/system-settings/components/settings-card.tsx diff --git a/new-api/web/default/src/features/system-settings/components/settings-page.tsx b/heicode/web/default/src/features/system-settings/components/settings-page.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/components/settings-page.tsx rename to heicode/web/default/src/features/system-settings/components/settings-page.tsx diff --git a/new-api/web/default/src/features/system-settings/components/settings-section.tsx b/heicode/web/default/src/features/system-settings/components/settings-section.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/components/settings-section.tsx rename to heicode/web/default/src/features/system-settings/components/settings-section.tsx diff --git a/new-api/web/default/src/features/system-settings/content/announcements-section.tsx b/heicode/web/default/src/features/system-settings/content/announcements-section.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/content/announcements-section.tsx rename to heicode/web/default/src/features/system-settings/content/announcements-section.tsx diff --git a/new-api/web/default/src/features/system-settings/content/api-info-section.tsx b/heicode/web/default/src/features/system-settings/content/api-info-section.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/content/api-info-section.tsx rename to heicode/web/default/src/features/system-settings/content/api-info-section.tsx diff --git a/new-api/web/default/src/features/system-settings/content/chat-dialog.tsx b/heicode/web/default/src/features/system-settings/content/chat-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/content/chat-dialog.tsx rename to heicode/web/default/src/features/system-settings/content/chat-dialog.tsx diff --git a/new-api/web/default/src/features/system-settings/content/chat-settings-section.tsx b/heicode/web/default/src/features/system-settings/content/chat-settings-section.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/content/chat-settings-section.tsx rename to heicode/web/default/src/features/system-settings/content/chat-settings-section.tsx diff --git a/new-api/web/default/src/features/system-settings/content/chat-settings-visual-editor.tsx b/heicode/web/default/src/features/system-settings/content/chat-settings-visual-editor.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/content/chat-settings-visual-editor.tsx rename to heicode/web/default/src/features/system-settings/content/chat-settings-visual-editor.tsx diff --git a/new-api/web/default/src/features/system-settings/content/dashboard-section.tsx b/heicode/web/default/src/features/system-settings/content/dashboard-section.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/content/dashboard-section.tsx rename to heicode/web/default/src/features/system-settings/content/dashboard-section.tsx diff --git a/new-api/web/default/src/features/system-settings/content/drawing-settings-section.tsx b/heicode/web/default/src/features/system-settings/content/drawing-settings-section.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/content/drawing-settings-section.tsx rename to heicode/web/default/src/features/system-settings/content/drawing-settings-section.tsx diff --git a/new-api/web/default/src/features/system-settings/content/faq-section.tsx b/heicode/web/default/src/features/system-settings/content/faq-section.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/content/faq-section.tsx rename to heicode/web/default/src/features/system-settings/content/faq-section.tsx diff --git a/new-api/web/default/src/features/system-settings/content/index.tsx b/heicode/web/default/src/features/system-settings/content/index.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/content/index.tsx rename to heicode/web/default/src/features/system-settings/content/index.tsx diff --git a/new-api/web/default/src/features/system-settings/content/json-toggle-section.tsx b/heicode/web/default/src/features/system-settings/content/json-toggle-section.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/content/json-toggle-section.tsx rename to heicode/web/default/src/features/system-settings/content/json-toggle-section.tsx diff --git a/new-api/web/default/src/features/system-settings/content/section-registry.tsx b/heicode/web/default/src/features/system-settings/content/section-registry.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/content/section-registry.tsx rename to heicode/web/default/src/features/system-settings/content/section-registry.tsx diff --git a/new-api/web/default/src/features/system-settings/content/uptime-kuma-section.tsx b/heicode/web/default/src/features/system-settings/content/uptime-kuma-section.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/content/uptime-kuma-section.tsx rename to heicode/web/default/src/features/system-settings/content/uptime-kuma-section.tsx diff --git a/new-api/web/default/src/features/system-settings/content/utils.ts b/heicode/web/default/src/features/system-settings/content/utils.ts similarity index 100% rename from new-api/web/default/src/features/system-settings/content/utils.ts rename to heicode/web/default/src/features/system-settings/content/utils.ts diff --git a/new-api/web/default/src/features/system-settings/general/channel-affinity/api.ts b/heicode/web/default/src/features/system-settings/general/channel-affinity/api.ts similarity index 100% rename from new-api/web/default/src/features/system-settings/general/channel-affinity/api.ts rename to heicode/web/default/src/features/system-settings/general/channel-affinity/api.ts diff --git a/new-api/web/default/src/features/system-settings/general/channel-affinity/cache-stats-dialog.tsx b/heicode/web/default/src/features/system-settings/general/channel-affinity/cache-stats-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/general/channel-affinity/cache-stats-dialog.tsx rename to heicode/web/default/src/features/system-settings/general/channel-affinity/cache-stats-dialog.tsx diff --git a/new-api/web/default/src/features/system-settings/general/channel-affinity/constants.ts b/heicode/web/default/src/features/system-settings/general/channel-affinity/constants.ts similarity index 100% rename from new-api/web/default/src/features/system-settings/general/channel-affinity/constants.ts rename to heicode/web/default/src/features/system-settings/general/channel-affinity/constants.ts diff --git a/new-api/web/default/src/features/system-settings/general/channel-affinity/index.tsx b/heicode/web/default/src/features/system-settings/general/channel-affinity/index.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/general/channel-affinity/index.tsx rename to heicode/web/default/src/features/system-settings/general/channel-affinity/index.tsx diff --git a/new-api/web/default/src/features/system-settings/general/channel-affinity/rule-editor-dialog.tsx b/heicode/web/default/src/features/system-settings/general/channel-affinity/rule-editor-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/general/channel-affinity/rule-editor-dialog.tsx rename to heicode/web/default/src/features/system-settings/general/channel-affinity/rule-editor-dialog.tsx diff --git a/new-api/web/default/src/features/system-settings/general/channel-affinity/types.ts b/heicode/web/default/src/features/system-settings/general/channel-affinity/types.ts similarity index 100% rename from new-api/web/default/src/features/system-settings/general/channel-affinity/types.ts rename to heicode/web/default/src/features/system-settings/general/channel-affinity/types.ts diff --git a/new-api/web/default/src/features/system-settings/general/checkin-settings-section.tsx b/heicode/web/default/src/features/system-settings/general/checkin-settings-section.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/general/checkin-settings-section.tsx rename to heicode/web/default/src/features/system-settings/general/checkin-settings-section.tsx diff --git a/new-api/web/default/src/features/system-settings/general/index.tsx b/heicode/web/default/src/features/system-settings/general/index.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/general/index.tsx rename to heicode/web/default/src/features/system-settings/general/index.tsx diff --git a/new-api/web/default/src/features/system-settings/general/pricing-section.tsx b/heicode/web/default/src/features/system-settings/general/pricing-section.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/general/pricing-section.tsx rename to heicode/web/default/src/features/system-settings/general/pricing-section.tsx diff --git a/new-api/web/default/src/features/system-settings/general/quota-settings-section.tsx b/heicode/web/default/src/features/system-settings/general/quota-settings-section.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/general/quota-settings-section.tsx rename to heicode/web/default/src/features/system-settings/general/quota-settings-section.tsx diff --git a/new-api/web/default/src/features/system-settings/general/section-registry.tsx b/heicode/web/default/src/features/system-settings/general/section-registry.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/general/section-registry.tsx rename to heicode/web/default/src/features/system-settings/general/section-registry.tsx diff --git a/new-api/web/default/src/features/system-settings/general/system-behavior-section.tsx b/heicode/web/default/src/features/system-settings/general/system-behavior-section.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/general/system-behavior-section.tsx rename to heicode/web/default/src/features/system-settings/general/system-behavior-section.tsx diff --git a/new-api/web/default/src/features/system-settings/general/system-info-section.tsx b/heicode/web/default/src/features/system-settings/general/system-info-section.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/general/system-info-section.tsx rename to heicode/web/default/src/features/system-settings/general/system-info-section.tsx diff --git a/new-api/web/default/src/features/system-settings/hooks/use-accordion-state.ts b/heicode/web/default/src/features/system-settings/hooks/use-accordion-state.ts similarity index 100% rename from new-api/web/default/src/features/system-settings/hooks/use-accordion-state.ts rename to heicode/web/default/src/features/system-settings/hooks/use-accordion-state.ts diff --git a/new-api/web/default/src/features/system-settings/hooks/use-form-dirty-guard.ts b/heicode/web/default/src/features/system-settings/hooks/use-form-dirty-guard.ts similarity index 100% rename from new-api/web/default/src/features/system-settings/hooks/use-form-dirty-guard.ts rename to heicode/web/default/src/features/system-settings/hooks/use-form-dirty-guard.ts diff --git a/new-api/web/default/src/features/system-settings/hooks/use-reset-form.ts b/heicode/web/default/src/features/system-settings/hooks/use-reset-form.ts similarity index 100% rename from new-api/web/default/src/features/system-settings/hooks/use-reset-form.ts rename to heicode/web/default/src/features/system-settings/hooks/use-reset-form.ts diff --git a/new-api/web/default/src/features/system-settings/hooks/use-safe-json-state.ts b/heicode/web/default/src/features/system-settings/hooks/use-safe-json-state.ts similarity index 100% rename from new-api/web/default/src/features/system-settings/hooks/use-safe-json-state.ts rename to heicode/web/default/src/features/system-settings/hooks/use-safe-json-state.ts diff --git a/new-api/web/default/src/features/system-settings/hooks/use-settings-form.ts b/heicode/web/default/src/features/system-settings/hooks/use-settings-form.ts similarity index 100% rename from new-api/web/default/src/features/system-settings/hooks/use-settings-form.ts rename to heicode/web/default/src/features/system-settings/hooks/use-settings-form.ts diff --git a/new-api/web/default/src/features/system-settings/hooks/use-system-options.ts b/heicode/web/default/src/features/system-settings/hooks/use-system-options.ts similarity index 100% rename from new-api/web/default/src/features/system-settings/hooks/use-system-options.ts rename to heicode/web/default/src/features/system-settings/hooks/use-system-options.ts diff --git a/new-api/web/default/src/features/system-settings/hooks/use-update-option.ts b/heicode/web/default/src/features/system-settings/hooks/use-update-option.ts similarity index 100% rename from new-api/web/default/src/features/system-settings/hooks/use-update-option.ts rename to heicode/web/default/src/features/system-settings/hooks/use-update-option.ts diff --git a/new-api/web/default/src/features/system-settings/index.tsx b/heicode/web/default/src/features/system-settings/index.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/index.tsx rename to heicode/web/default/src/features/system-settings/index.tsx diff --git a/new-api/web/default/src/features/system-settings/integrations/amount-discount-dialog.tsx b/heicode/web/default/src/features/system-settings/integrations/amount-discount-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/integrations/amount-discount-dialog.tsx rename to heicode/web/default/src/features/system-settings/integrations/amount-discount-dialog.tsx diff --git a/new-api/web/default/src/features/system-settings/integrations/amount-discount-visual-editor.tsx b/heicode/web/default/src/features/system-settings/integrations/amount-discount-visual-editor.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/integrations/amount-discount-visual-editor.tsx rename to heicode/web/default/src/features/system-settings/integrations/amount-discount-visual-editor.tsx diff --git a/new-api/web/default/src/features/system-settings/integrations/amount-options-visual-editor.tsx b/heicode/web/default/src/features/system-settings/integrations/amount-options-visual-editor.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/integrations/amount-options-visual-editor.tsx rename to heicode/web/default/src/features/system-settings/integrations/amount-options-visual-editor.tsx diff --git a/new-api/web/default/src/features/system-settings/integrations/creem-product-dialog.tsx b/heicode/web/default/src/features/system-settings/integrations/creem-product-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/integrations/creem-product-dialog.tsx rename to heicode/web/default/src/features/system-settings/integrations/creem-product-dialog.tsx diff --git a/new-api/web/default/src/features/system-settings/integrations/creem-products-visual-editor.tsx b/heicode/web/default/src/features/system-settings/integrations/creem-products-visual-editor.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/integrations/creem-products-visual-editor.tsx rename to heicode/web/default/src/features/system-settings/integrations/creem-products-visual-editor.tsx diff --git a/new-api/web/default/src/features/system-settings/integrations/email-settings-section.tsx b/heicode/web/default/src/features/system-settings/integrations/email-settings-section.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/integrations/email-settings-section.tsx rename to heicode/web/default/src/features/system-settings/integrations/email-settings-section.tsx diff --git a/new-api/web/default/src/features/system-settings/integrations/index.tsx b/heicode/web/default/src/features/system-settings/integrations/index.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/integrations/index.tsx rename to heicode/web/default/src/features/system-settings/integrations/index.tsx diff --git a/new-api/web/default/src/features/system-settings/integrations/ionet-deployment-settings-section.tsx b/heicode/web/default/src/features/system-settings/integrations/ionet-deployment-settings-section.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/integrations/ionet-deployment-settings-section.tsx rename to heicode/web/default/src/features/system-settings/integrations/ionet-deployment-settings-section.tsx diff --git a/new-api/web/default/src/features/system-settings/integrations/monitoring-settings-section.tsx b/heicode/web/default/src/features/system-settings/integrations/monitoring-settings-section.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/integrations/monitoring-settings-section.tsx rename to heicode/web/default/src/features/system-settings/integrations/monitoring-settings-section.tsx diff --git a/new-api/web/default/src/features/system-settings/integrations/payment-method-dialog.tsx b/heicode/web/default/src/features/system-settings/integrations/payment-method-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/integrations/payment-method-dialog.tsx rename to heicode/web/default/src/features/system-settings/integrations/payment-method-dialog.tsx diff --git a/new-api/web/default/src/features/system-settings/integrations/payment-methods-visual-editor.tsx b/heicode/web/default/src/features/system-settings/integrations/payment-methods-visual-editor.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/integrations/payment-methods-visual-editor.tsx rename to heicode/web/default/src/features/system-settings/integrations/payment-methods-visual-editor.tsx diff --git a/new-api/web/default/src/features/system-settings/integrations/payment-settings-section.tsx b/heicode/web/default/src/features/system-settings/integrations/payment-settings-section.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/integrations/payment-settings-section.tsx rename to heicode/web/default/src/features/system-settings/integrations/payment-settings-section.tsx diff --git a/new-api/web/default/src/features/system-settings/integrations/section-registry.tsx b/heicode/web/default/src/features/system-settings/integrations/section-registry.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/integrations/section-registry.tsx rename to heicode/web/default/src/features/system-settings/integrations/section-registry.tsx diff --git a/new-api/web/default/src/features/system-settings/integrations/utils.ts b/heicode/web/default/src/features/system-settings/integrations/utils.ts similarity index 100% rename from new-api/web/default/src/features/system-settings/integrations/utils.ts rename to heicode/web/default/src/features/system-settings/integrations/utils.ts diff --git a/new-api/web/default/src/features/system-settings/integrations/waffo-pancake-settings-section.tsx b/heicode/web/default/src/features/system-settings/integrations/waffo-pancake-settings-section.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/integrations/waffo-pancake-settings-section.tsx rename to heicode/web/default/src/features/system-settings/integrations/waffo-pancake-settings-section.tsx diff --git a/new-api/web/default/src/features/system-settings/integrations/waffo-settings-section.tsx b/heicode/web/default/src/features/system-settings/integrations/waffo-settings-section.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/integrations/waffo-settings-section.tsx rename to heicode/web/default/src/features/system-settings/integrations/waffo-settings-section.tsx diff --git a/new-api/web/default/src/features/system-settings/integrations/worker-settings-section.tsx b/heicode/web/default/src/features/system-settings/integrations/worker-settings-section.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/integrations/worker-settings-section.tsx rename to heicode/web/default/src/features/system-settings/integrations/worker-settings-section.tsx diff --git a/new-api/web/default/src/features/system-settings/maintenance/config.ts b/heicode/web/default/src/features/system-settings/maintenance/config.ts similarity index 100% rename from new-api/web/default/src/features/system-settings/maintenance/config.ts rename to heicode/web/default/src/features/system-settings/maintenance/config.ts diff --git a/new-api/web/default/src/features/system-settings/maintenance/header-navigation-section.tsx b/heicode/web/default/src/features/system-settings/maintenance/header-navigation-section.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/maintenance/header-navigation-section.tsx rename to heicode/web/default/src/features/system-settings/maintenance/header-navigation-section.tsx diff --git a/new-api/web/default/src/features/system-settings/maintenance/index.tsx b/heicode/web/default/src/features/system-settings/maintenance/index.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/maintenance/index.tsx rename to heicode/web/default/src/features/system-settings/maintenance/index.tsx diff --git a/new-api/web/default/src/features/system-settings/maintenance/log-settings-section.tsx b/heicode/web/default/src/features/system-settings/maintenance/log-settings-section.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/maintenance/log-settings-section.tsx rename to heicode/web/default/src/features/system-settings/maintenance/log-settings-section.tsx diff --git a/new-api/web/default/src/features/system-settings/maintenance/notice-section.tsx b/heicode/web/default/src/features/system-settings/maintenance/notice-section.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/maintenance/notice-section.tsx rename to heicode/web/default/src/features/system-settings/maintenance/notice-section.tsx diff --git a/new-api/web/default/src/features/system-settings/maintenance/performance-section.tsx b/heicode/web/default/src/features/system-settings/maintenance/performance-section.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/maintenance/performance-section.tsx rename to heicode/web/default/src/features/system-settings/maintenance/performance-section.tsx diff --git a/new-api/web/default/src/features/system-settings/maintenance/section-registry.tsx b/heicode/web/default/src/features/system-settings/maintenance/section-registry.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/maintenance/section-registry.tsx rename to heicode/web/default/src/features/system-settings/maintenance/section-registry.tsx diff --git a/new-api/web/default/src/features/system-settings/maintenance/sidebar-modules-section.tsx b/heicode/web/default/src/features/system-settings/maintenance/sidebar-modules-section.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/maintenance/sidebar-modules-section.tsx rename to heicode/web/default/src/features/system-settings/maintenance/sidebar-modules-section.tsx diff --git a/new-api/web/default/src/features/system-settings/maintenance/update-checker-section.tsx b/heicode/web/default/src/features/system-settings/maintenance/update-checker-section.tsx similarity index 97% rename from new-api/web/default/src/features/system-settings/maintenance/update-checker-section.tsx rename to heicode/web/default/src/features/system-settings/maintenance/update-checker-section.tsx index 9a73ff1..47adcb9 100644 --- a/new-api/web/default/src/features/system-settings/maintenance/update-checker-section.tsx +++ b/heicode/web/default/src/features/system-settings/maintenance/update-checker-section.tsx @@ -44,11 +44,11 @@ export function UpdateCheckerSection({ setChecking(true) try { const response = await fetch( - 'https://api.github.com/repos/Calcium-Ion/new-api/releases/latest', + 'https://api.github.com/repos/Calcium-Ion/heicode/releases/latest', { headers: { Accept: 'application/vnd.github+json', - 'User-Agent': 'new-api-dashboard', + 'User-Agent': 'heicode-dashboard', }, } ) diff --git a/new-api/web/default/src/features/system-settings/models/channel-selector-dialog.tsx b/heicode/web/default/src/features/system-settings/models/channel-selector-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/models/channel-selector-dialog.tsx rename to heicode/web/default/src/features/system-settings/models/channel-selector-dialog.tsx diff --git a/new-api/web/default/src/features/system-settings/models/claude-settings-card.tsx b/heicode/web/default/src/features/system-settings/models/claude-settings-card.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/models/claude-settings-card.tsx rename to heicode/web/default/src/features/system-settings/models/claude-settings-card.tsx diff --git a/new-api/web/default/src/features/system-settings/models/conflict-confirm-dialog.tsx b/heicode/web/default/src/features/system-settings/models/conflict-confirm-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/models/conflict-confirm-dialog.tsx rename to heicode/web/default/src/features/system-settings/models/conflict-confirm-dialog.tsx diff --git a/new-api/web/default/src/features/system-settings/models/constants.ts b/heicode/web/default/src/features/system-settings/models/constants.ts similarity index 100% rename from new-api/web/default/src/features/system-settings/models/constants.ts rename to heicode/web/default/src/features/system-settings/models/constants.ts diff --git a/new-api/web/default/src/features/system-settings/models/gemini-settings-card.tsx b/heicode/web/default/src/features/system-settings/models/gemini-settings-card.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/models/gemini-settings-card.tsx rename to heicode/web/default/src/features/system-settings/models/gemini-settings-card.tsx diff --git a/new-api/web/default/src/features/system-settings/models/global-settings-card.tsx b/heicode/web/default/src/features/system-settings/models/global-settings-card.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/models/global-settings-card.tsx rename to heicode/web/default/src/features/system-settings/models/global-settings-card.tsx diff --git a/new-api/web/default/src/features/system-settings/models/grok-settings-card.tsx b/heicode/web/default/src/features/system-settings/models/grok-settings-card.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/models/grok-settings-card.tsx rename to heicode/web/default/src/features/system-settings/models/grok-settings-card.tsx diff --git a/new-api/web/default/src/features/system-settings/models/group-ratio-form.tsx b/heicode/web/default/src/features/system-settings/models/group-ratio-form.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/models/group-ratio-form.tsx rename to heicode/web/default/src/features/system-settings/models/group-ratio-form.tsx diff --git a/new-api/web/default/src/features/system-settings/models/group-ratio-visual-editor.tsx b/heicode/web/default/src/features/system-settings/models/group-ratio-visual-editor.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/models/group-ratio-visual-editor.tsx rename to heicode/web/default/src/features/system-settings/models/group-ratio-visual-editor.tsx diff --git a/new-api/web/default/src/features/system-settings/models/group-special-usable-editor.tsx b/heicode/web/default/src/features/system-settings/models/group-special-usable-editor.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/models/group-special-usable-editor.tsx rename to heicode/web/default/src/features/system-settings/models/group-special-usable-editor.tsx diff --git a/new-api/web/default/src/features/system-settings/models/index.tsx b/heicode/web/default/src/features/system-settings/models/index.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/models/index.tsx rename to heicode/web/default/src/features/system-settings/models/index.tsx diff --git a/new-api/web/default/src/features/system-settings/models/model-ratio-dialog.tsx b/heicode/web/default/src/features/system-settings/models/model-ratio-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/models/model-ratio-dialog.tsx rename to heicode/web/default/src/features/system-settings/models/model-ratio-dialog.tsx diff --git a/new-api/web/default/src/features/system-settings/models/model-ratio-form.tsx b/heicode/web/default/src/features/system-settings/models/model-ratio-form.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/models/model-ratio-form.tsx rename to heicode/web/default/src/features/system-settings/models/model-ratio-form.tsx diff --git a/new-api/web/default/src/features/system-settings/models/model-ratio-visual-editor.tsx b/heicode/web/default/src/features/system-settings/models/model-ratio-visual-editor.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/models/model-ratio-visual-editor.tsx rename to heicode/web/default/src/features/system-settings/models/model-ratio-visual-editor.tsx diff --git a/new-api/web/default/src/features/system-settings/models/ratio-settings-card.tsx b/heicode/web/default/src/features/system-settings/models/ratio-settings-card.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/models/ratio-settings-card.tsx rename to heicode/web/default/src/features/system-settings/models/ratio-settings-card.tsx diff --git a/new-api/web/default/src/features/system-settings/models/section-registry.tsx b/heicode/web/default/src/features/system-settings/models/section-registry.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/models/section-registry.tsx rename to heicode/web/default/src/features/system-settings/models/section-registry.tsx diff --git a/new-api/web/default/src/features/system-settings/models/tiered-pricing-editor.tsx b/heicode/web/default/src/features/system-settings/models/tiered-pricing-editor.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/models/tiered-pricing-editor.tsx rename to heicode/web/default/src/features/system-settings/models/tiered-pricing-editor.tsx diff --git a/new-api/web/default/src/features/system-settings/models/tool-price-settings.tsx b/heicode/web/default/src/features/system-settings/models/tool-price-settings.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/models/tool-price-settings.tsx rename to heicode/web/default/src/features/system-settings/models/tool-price-settings.tsx diff --git a/new-api/web/default/src/features/system-settings/models/upstream-ratio-sync-columns.tsx b/heicode/web/default/src/features/system-settings/models/upstream-ratio-sync-columns.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/models/upstream-ratio-sync-columns.tsx rename to heicode/web/default/src/features/system-settings/models/upstream-ratio-sync-columns.tsx diff --git a/new-api/web/default/src/features/system-settings/models/upstream-ratio-sync-helpers.ts b/heicode/web/default/src/features/system-settings/models/upstream-ratio-sync-helpers.ts similarity index 100% rename from new-api/web/default/src/features/system-settings/models/upstream-ratio-sync-helpers.ts rename to heicode/web/default/src/features/system-settings/models/upstream-ratio-sync-helpers.ts diff --git a/new-api/web/default/src/features/system-settings/models/upstream-ratio-sync-table.tsx b/heicode/web/default/src/features/system-settings/models/upstream-ratio-sync-table.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/models/upstream-ratio-sync-table.tsx rename to heicode/web/default/src/features/system-settings/models/upstream-ratio-sync-table.tsx diff --git a/new-api/web/default/src/features/system-settings/models/upstream-ratio-sync.tsx b/heicode/web/default/src/features/system-settings/models/upstream-ratio-sync.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/models/upstream-ratio-sync.tsx rename to heicode/web/default/src/features/system-settings/models/upstream-ratio-sync.tsx diff --git a/new-api/web/default/src/features/system-settings/models/utils.ts b/heicode/web/default/src/features/system-settings/models/utils.ts similarity index 100% rename from new-api/web/default/src/features/system-settings/models/utils.ts rename to heicode/web/default/src/features/system-settings/models/utils.ts diff --git a/new-api/web/default/src/features/system-settings/request-limits/index.tsx b/heicode/web/default/src/features/system-settings/request-limits/index.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/request-limits/index.tsx rename to heicode/web/default/src/features/system-settings/request-limits/index.tsx diff --git a/new-api/web/default/src/features/system-settings/request-limits/rate-limit-dialog.tsx b/heicode/web/default/src/features/system-settings/request-limits/rate-limit-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/request-limits/rate-limit-dialog.tsx rename to heicode/web/default/src/features/system-settings/request-limits/rate-limit-dialog.tsx diff --git a/new-api/web/default/src/features/system-settings/request-limits/rate-limit-section.tsx b/heicode/web/default/src/features/system-settings/request-limits/rate-limit-section.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/request-limits/rate-limit-section.tsx rename to heicode/web/default/src/features/system-settings/request-limits/rate-limit-section.tsx diff --git a/new-api/web/default/src/features/system-settings/request-limits/rate-limit-visual-editor.tsx b/heicode/web/default/src/features/system-settings/request-limits/rate-limit-visual-editor.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/request-limits/rate-limit-visual-editor.tsx rename to heicode/web/default/src/features/system-settings/request-limits/rate-limit-visual-editor.tsx diff --git a/new-api/web/default/src/features/system-settings/request-limits/section-registry.tsx b/heicode/web/default/src/features/system-settings/request-limits/section-registry.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/request-limits/section-registry.tsx rename to heicode/web/default/src/features/system-settings/request-limits/section-registry.tsx diff --git a/new-api/web/default/src/features/system-settings/request-limits/sensitive-words-section.tsx b/heicode/web/default/src/features/system-settings/request-limits/sensitive-words-section.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/request-limits/sensitive-words-section.tsx rename to heicode/web/default/src/features/system-settings/request-limits/sensitive-words-section.tsx diff --git a/new-api/web/default/src/features/system-settings/request-limits/ssrf-section.tsx b/heicode/web/default/src/features/system-settings/request-limits/ssrf-section.tsx similarity index 100% rename from new-api/web/default/src/features/system-settings/request-limits/ssrf-section.tsx rename to heicode/web/default/src/features/system-settings/request-limits/ssrf-section.tsx diff --git a/new-api/web/default/src/features/system-settings/types.ts b/heicode/web/default/src/features/system-settings/types.ts similarity index 100% rename from new-api/web/default/src/features/system-settings/types.ts rename to heicode/web/default/src/features/system-settings/types.ts diff --git a/new-api/web/default/src/features/system-settings/utils/json-parser.ts b/heicode/web/default/src/features/system-settings/utils/json-parser.ts similarity index 100% rename from new-api/web/default/src/features/system-settings/utils/json-parser.ts rename to heicode/web/default/src/features/system-settings/utils/json-parser.ts diff --git a/new-api/web/default/src/features/system-settings/utils/json-validators.ts b/heicode/web/default/src/features/system-settings/utils/json-validators.ts similarity index 100% rename from new-api/web/default/src/features/system-settings/utils/json-validators.ts rename to heicode/web/default/src/features/system-settings/utils/json-validators.ts diff --git a/new-api/web/default/src/features/system-settings/utils/route-config.ts b/heicode/web/default/src/features/system-settings/utils/route-config.ts similarity index 100% rename from new-api/web/default/src/features/system-settings/utils/route-config.ts rename to heicode/web/default/src/features/system-settings/utils/route-config.ts diff --git a/new-api/web/default/src/features/system-settings/utils/section-registry.ts b/heicode/web/default/src/features/system-settings/utils/section-registry.ts similarity index 100% rename from new-api/web/default/src/features/system-settings/utils/section-registry.ts rename to heicode/web/default/src/features/system-settings/utils/section-registry.ts diff --git a/new-api/web/default/src/features/usage-logs/api.ts b/heicode/web/default/src/features/usage-logs/api.ts similarity index 100% rename from new-api/web/default/src/features/usage-logs/api.ts rename to heicode/web/default/src/features/usage-logs/api.ts diff --git a/new-api/web/default/src/features/usage-logs/components/columns/column-helpers.tsx b/heicode/web/default/src/features/usage-logs/components/columns/column-helpers.tsx similarity index 100% rename from new-api/web/default/src/features/usage-logs/components/columns/column-helpers.tsx rename to heicode/web/default/src/features/usage-logs/components/columns/column-helpers.tsx diff --git a/new-api/web/default/src/features/usage-logs/components/columns/common-logs-columns.tsx b/heicode/web/default/src/features/usage-logs/components/columns/common-logs-columns.tsx similarity index 100% rename from new-api/web/default/src/features/usage-logs/components/columns/common-logs-columns.tsx rename to heicode/web/default/src/features/usage-logs/components/columns/common-logs-columns.tsx diff --git a/new-api/web/default/src/features/usage-logs/components/columns/drawing-logs-columns.tsx b/heicode/web/default/src/features/usage-logs/components/columns/drawing-logs-columns.tsx similarity index 100% rename from new-api/web/default/src/features/usage-logs/components/columns/drawing-logs-columns.tsx rename to heicode/web/default/src/features/usage-logs/components/columns/drawing-logs-columns.tsx diff --git a/new-api/web/default/src/features/usage-logs/components/columns/task-logs-columns.tsx b/heicode/web/default/src/features/usage-logs/components/columns/task-logs-columns.tsx similarity index 100% rename from new-api/web/default/src/features/usage-logs/components/columns/task-logs-columns.tsx rename to heicode/web/default/src/features/usage-logs/components/columns/task-logs-columns.tsx diff --git a/new-api/web/default/src/features/usage-logs/components/common-logs-filter-bar.tsx b/heicode/web/default/src/features/usage-logs/components/common-logs-filter-bar.tsx similarity index 100% rename from new-api/web/default/src/features/usage-logs/components/common-logs-filter-bar.tsx rename to heicode/web/default/src/features/usage-logs/components/common-logs-filter-bar.tsx diff --git a/new-api/web/default/src/features/usage-logs/components/common-logs-stats.tsx b/heicode/web/default/src/features/usage-logs/components/common-logs-stats.tsx similarity index 100% rename from new-api/web/default/src/features/usage-logs/components/common-logs-stats.tsx rename to heicode/web/default/src/features/usage-logs/components/common-logs-stats.tsx diff --git a/new-api/web/default/src/features/usage-logs/components/compact-date-time-range-picker.tsx b/heicode/web/default/src/features/usage-logs/components/compact-date-time-range-picker.tsx similarity index 100% rename from new-api/web/default/src/features/usage-logs/components/compact-date-time-range-picker.tsx rename to heicode/web/default/src/features/usage-logs/components/compact-date-time-range-picker.tsx diff --git a/new-api/web/default/src/features/usage-logs/components/dialogs/audio-preview-dialog.tsx b/heicode/web/default/src/features/usage-logs/components/dialogs/audio-preview-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/usage-logs/components/dialogs/audio-preview-dialog.tsx rename to heicode/web/default/src/features/usage-logs/components/dialogs/audio-preview-dialog.tsx diff --git a/new-api/web/default/src/features/usage-logs/components/dialogs/details-dialog.tsx b/heicode/web/default/src/features/usage-logs/components/dialogs/details-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/usage-logs/components/dialogs/details-dialog.tsx rename to heicode/web/default/src/features/usage-logs/components/dialogs/details-dialog.tsx diff --git a/new-api/web/default/src/features/usage-logs/components/dialogs/fail-reason-dialog.tsx b/heicode/web/default/src/features/usage-logs/components/dialogs/fail-reason-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/usage-logs/components/dialogs/fail-reason-dialog.tsx rename to heicode/web/default/src/features/usage-logs/components/dialogs/fail-reason-dialog.tsx diff --git a/new-api/web/default/src/features/usage-logs/components/dialogs/filter-components.tsx b/heicode/web/default/src/features/usage-logs/components/dialogs/filter-components.tsx similarity index 100% rename from new-api/web/default/src/features/usage-logs/components/dialogs/filter-components.tsx rename to heicode/web/default/src/features/usage-logs/components/dialogs/filter-components.tsx diff --git a/new-api/web/default/src/features/usage-logs/components/dialogs/image-dialog.tsx b/heicode/web/default/src/features/usage-logs/components/dialogs/image-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/usage-logs/components/dialogs/image-dialog.tsx rename to heicode/web/default/src/features/usage-logs/components/dialogs/image-dialog.tsx diff --git a/new-api/web/default/src/features/usage-logs/components/dialogs/prompt-dialog.tsx b/heicode/web/default/src/features/usage-logs/components/dialogs/prompt-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/usage-logs/components/dialogs/prompt-dialog.tsx rename to heicode/web/default/src/features/usage-logs/components/dialogs/prompt-dialog.tsx diff --git a/new-api/web/default/src/features/usage-logs/components/dialogs/usage-logs-filter-dialog.tsx b/heicode/web/default/src/features/usage-logs/components/dialogs/usage-logs-filter-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/usage-logs/components/dialogs/usage-logs-filter-dialog.tsx rename to heicode/web/default/src/features/usage-logs/components/dialogs/usage-logs-filter-dialog.tsx diff --git a/new-api/web/default/src/features/usage-logs/components/dialogs/user-info-dialog.tsx b/heicode/web/default/src/features/usage-logs/components/dialogs/user-info-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/usage-logs/components/dialogs/user-info-dialog.tsx rename to heicode/web/default/src/features/usage-logs/components/dialogs/user-info-dialog.tsx diff --git a/new-api/web/default/src/features/usage-logs/components/model-badge.tsx b/heicode/web/default/src/features/usage-logs/components/model-badge.tsx similarity index 100% rename from new-api/web/default/src/features/usage-logs/components/model-badge.tsx rename to heicode/web/default/src/features/usage-logs/components/model-badge.tsx diff --git a/new-api/web/default/src/features/usage-logs/components/usage-logs-primary-buttons.tsx b/heicode/web/default/src/features/usage-logs/components/usage-logs-primary-buttons.tsx similarity index 100% rename from new-api/web/default/src/features/usage-logs/components/usage-logs-primary-buttons.tsx rename to heicode/web/default/src/features/usage-logs/components/usage-logs-primary-buttons.tsx diff --git a/new-api/web/default/src/features/usage-logs/components/usage-logs-provider.tsx b/heicode/web/default/src/features/usage-logs/components/usage-logs-provider.tsx similarity index 100% rename from new-api/web/default/src/features/usage-logs/components/usage-logs-provider.tsx rename to heicode/web/default/src/features/usage-logs/components/usage-logs-provider.tsx diff --git a/new-api/web/default/src/features/usage-logs/components/usage-logs-table.tsx b/heicode/web/default/src/features/usage-logs/components/usage-logs-table.tsx similarity index 100% rename from new-api/web/default/src/features/usage-logs/components/usage-logs-table.tsx rename to heicode/web/default/src/features/usage-logs/components/usage-logs-table.tsx diff --git a/new-api/web/default/src/features/usage-logs/constants.ts b/heicode/web/default/src/features/usage-logs/constants.ts similarity index 100% rename from new-api/web/default/src/features/usage-logs/constants.ts rename to heicode/web/default/src/features/usage-logs/constants.ts diff --git a/new-api/web/default/src/features/usage-logs/index.tsx b/heicode/web/default/src/features/usage-logs/index.tsx similarity index 100% rename from new-api/web/default/src/features/usage-logs/index.tsx rename to heicode/web/default/src/features/usage-logs/index.tsx diff --git a/new-api/web/default/src/features/usage-logs/lib/avatar-color.ts b/heicode/web/default/src/features/usage-logs/lib/avatar-color.ts similarity index 100% rename from new-api/web/default/src/features/usage-logs/lib/avatar-color.ts rename to heicode/web/default/src/features/usage-logs/lib/avatar-color.ts diff --git a/new-api/web/default/src/features/usage-logs/lib/columns.ts b/heicode/web/default/src/features/usage-logs/lib/columns.ts similarity index 100% rename from new-api/web/default/src/features/usage-logs/lib/columns.ts rename to heicode/web/default/src/features/usage-logs/lib/columns.ts diff --git a/new-api/web/default/src/features/usage-logs/lib/filter.ts b/heicode/web/default/src/features/usage-logs/lib/filter.ts similarity index 100% rename from new-api/web/default/src/features/usage-logs/lib/filter.ts rename to heicode/web/default/src/features/usage-logs/lib/filter.ts diff --git a/new-api/web/default/src/features/usage-logs/lib/format.ts b/heicode/web/default/src/features/usage-logs/lib/format.ts similarity index 100% rename from new-api/web/default/src/features/usage-logs/lib/format.ts rename to heicode/web/default/src/features/usage-logs/lib/format.ts diff --git a/new-api/web/default/src/features/usage-logs/lib/index.ts b/heicode/web/default/src/features/usage-logs/lib/index.ts similarity index 100% rename from new-api/web/default/src/features/usage-logs/lib/index.ts rename to heicode/web/default/src/features/usage-logs/lib/index.ts diff --git a/new-api/web/default/src/features/usage-logs/lib/mappers.ts b/heicode/web/default/src/features/usage-logs/lib/mappers.ts similarity index 100% rename from new-api/web/default/src/features/usage-logs/lib/mappers.ts rename to heicode/web/default/src/features/usage-logs/lib/mappers.ts diff --git a/new-api/web/default/src/features/usage-logs/lib/status.ts b/heicode/web/default/src/features/usage-logs/lib/status.ts similarity index 100% rename from new-api/web/default/src/features/usage-logs/lib/status.ts rename to heicode/web/default/src/features/usage-logs/lib/status.ts diff --git a/new-api/web/default/src/features/usage-logs/lib/utils.ts b/heicode/web/default/src/features/usage-logs/lib/utils.ts similarity index 100% rename from new-api/web/default/src/features/usage-logs/lib/utils.ts rename to heicode/web/default/src/features/usage-logs/lib/utils.ts diff --git a/new-api/web/default/src/features/usage-logs/section-registry.tsx b/heicode/web/default/src/features/usage-logs/section-registry.tsx similarity index 100% rename from new-api/web/default/src/features/usage-logs/section-registry.tsx rename to heicode/web/default/src/features/usage-logs/section-registry.tsx diff --git a/new-api/web/default/src/features/usage-logs/types.ts b/heicode/web/default/src/features/usage-logs/types.ts similarity index 100% rename from new-api/web/default/src/features/usage-logs/types.ts rename to heicode/web/default/src/features/usage-logs/types.ts diff --git a/new-api/web/default/src/features/users/api.ts b/heicode/web/default/src/features/users/api.ts similarity index 100% rename from new-api/web/default/src/features/users/api.ts rename to heicode/web/default/src/features/users/api.ts diff --git a/new-api/web/default/src/features/users/components/data-table-bulk-actions.tsx b/heicode/web/default/src/features/users/components/data-table-bulk-actions.tsx similarity index 100% rename from new-api/web/default/src/features/users/components/data-table-bulk-actions.tsx rename to heicode/web/default/src/features/users/components/data-table-bulk-actions.tsx diff --git a/new-api/web/default/src/features/users/components/data-table-row-actions.tsx b/heicode/web/default/src/features/users/components/data-table-row-actions.tsx similarity index 100% rename from new-api/web/default/src/features/users/components/data-table-row-actions.tsx rename to heicode/web/default/src/features/users/components/data-table-row-actions.tsx diff --git a/new-api/web/default/src/features/users/components/dialogs/user-binding-dialog.tsx b/heicode/web/default/src/features/users/components/dialogs/user-binding-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/users/components/dialogs/user-binding-dialog.tsx rename to heicode/web/default/src/features/users/components/dialogs/user-binding-dialog.tsx diff --git a/new-api/web/default/src/features/users/components/user-quota-dialog.tsx b/heicode/web/default/src/features/users/components/user-quota-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/users/components/user-quota-dialog.tsx rename to heicode/web/default/src/features/users/components/user-quota-dialog.tsx diff --git a/new-api/web/default/src/features/users/components/users-columns.tsx b/heicode/web/default/src/features/users/components/users-columns.tsx similarity index 100% rename from new-api/web/default/src/features/users/components/users-columns.tsx rename to heicode/web/default/src/features/users/components/users-columns.tsx diff --git a/new-api/web/default/src/features/users/components/users-delete-dialog.tsx b/heicode/web/default/src/features/users/components/users-delete-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/users/components/users-delete-dialog.tsx rename to heicode/web/default/src/features/users/components/users-delete-dialog.tsx diff --git a/new-api/web/default/src/features/users/components/users-mutate-drawer.tsx b/heicode/web/default/src/features/users/components/users-mutate-drawer.tsx similarity index 100% rename from new-api/web/default/src/features/users/components/users-mutate-drawer.tsx rename to heicode/web/default/src/features/users/components/users-mutate-drawer.tsx diff --git a/new-api/web/default/src/features/users/components/users-primary-buttons.tsx b/heicode/web/default/src/features/users/components/users-primary-buttons.tsx similarity index 100% rename from new-api/web/default/src/features/users/components/users-primary-buttons.tsx rename to heicode/web/default/src/features/users/components/users-primary-buttons.tsx diff --git a/new-api/web/default/src/features/users/components/users-provider.tsx b/heicode/web/default/src/features/users/components/users-provider.tsx similarity index 100% rename from new-api/web/default/src/features/users/components/users-provider.tsx rename to heicode/web/default/src/features/users/components/users-provider.tsx diff --git a/new-api/web/default/src/features/users/components/users-table.tsx b/heicode/web/default/src/features/users/components/users-table.tsx similarity index 100% rename from new-api/web/default/src/features/users/components/users-table.tsx rename to heicode/web/default/src/features/users/components/users-table.tsx diff --git a/new-api/web/default/src/features/users/constants.ts b/heicode/web/default/src/features/users/constants.ts similarity index 100% rename from new-api/web/default/src/features/users/constants.ts rename to heicode/web/default/src/features/users/constants.ts diff --git a/new-api/web/default/src/features/users/index.tsx b/heicode/web/default/src/features/users/index.tsx similarity index 100% rename from new-api/web/default/src/features/users/index.tsx rename to heicode/web/default/src/features/users/index.tsx diff --git a/new-api/web/default/src/features/users/lib/index.ts b/heicode/web/default/src/features/users/lib/index.ts similarity index 100% rename from new-api/web/default/src/features/users/lib/index.ts rename to heicode/web/default/src/features/users/lib/index.ts diff --git a/new-api/web/default/src/features/users/lib/user-actions.ts b/heicode/web/default/src/features/users/lib/user-actions.ts similarity index 100% rename from new-api/web/default/src/features/users/lib/user-actions.ts rename to heicode/web/default/src/features/users/lib/user-actions.ts diff --git a/new-api/web/default/src/features/users/lib/user-form.ts b/heicode/web/default/src/features/users/lib/user-form.ts similarity index 100% rename from new-api/web/default/src/features/users/lib/user-form.ts rename to heicode/web/default/src/features/users/lib/user-form.ts diff --git a/new-api/web/default/src/features/users/types.ts b/heicode/web/default/src/features/users/types.ts similarity index 100% rename from new-api/web/default/src/features/users/types.ts rename to heicode/web/default/src/features/users/types.ts diff --git a/new-api/web/default/src/features/wallet/api.ts b/heicode/web/default/src/features/wallet/api.ts similarity index 100% rename from new-api/web/default/src/features/wallet/api.ts rename to heicode/web/default/src/features/wallet/api.ts diff --git a/new-api/web/default/src/features/wallet/components/affiliate-rewards-card.tsx b/heicode/web/default/src/features/wallet/components/affiliate-rewards-card.tsx similarity index 100% rename from new-api/web/default/src/features/wallet/components/affiliate-rewards-card.tsx rename to heicode/web/default/src/features/wallet/components/affiliate-rewards-card.tsx diff --git a/new-api/web/default/src/features/wallet/components/creem-products-section.tsx b/heicode/web/default/src/features/wallet/components/creem-products-section.tsx similarity index 100% rename from new-api/web/default/src/features/wallet/components/creem-products-section.tsx rename to heicode/web/default/src/features/wallet/components/creem-products-section.tsx diff --git a/new-api/web/default/src/features/wallet/components/dialogs/billing-history-dialog.tsx b/heicode/web/default/src/features/wallet/components/dialogs/billing-history-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/wallet/components/dialogs/billing-history-dialog.tsx rename to heicode/web/default/src/features/wallet/components/dialogs/billing-history-dialog.tsx diff --git a/new-api/web/default/src/features/wallet/components/dialogs/creem-confirm-dialog.tsx b/heicode/web/default/src/features/wallet/components/dialogs/creem-confirm-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/wallet/components/dialogs/creem-confirm-dialog.tsx rename to heicode/web/default/src/features/wallet/components/dialogs/creem-confirm-dialog.tsx diff --git a/new-api/web/default/src/features/wallet/components/dialogs/payment-confirm-dialog.tsx b/heicode/web/default/src/features/wallet/components/dialogs/payment-confirm-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/wallet/components/dialogs/payment-confirm-dialog.tsx rename to heicode/web/default/src/features/wallet/components/dialogs/payment-confirm-dialog.tsx diff --git a/new-api/web/default/src/features/wallet/components/dialogs/transfer-dialog.tsx b/heicode/web/default/src/features/wallet/components/dialogs/transfer-dialog.tsx similarity index 100% rename from new-api/web/default/src/features/wallet/components/dialogs/transfer-dialog.tsx rename to heicode/web/default/src/features/wallet/components/dialogs/transfer-dialog.tsx diff --git a/new-api/web/default/src/features/wallet/components/recharge-form-card.tsx b/heicode/web/default/src/features/wallet/components/recharge-form-card.tsx similarity index 100% rename from new-api/web/default/src/features/wallet/components/recharge-form-card.tsx rename to heicode/web/default/src/features/wallet/components/recharge-form-card.tsx diff --git a/new-api/web/default/src/features/wallet/components/subscription-plans-card.tsx b/heicode/web/default/src/features/wallet/components/subscription-plans-card.tsx similarity index 100% rename from new-api/web/default/src/features/wallet/components/subscription-plans-card.tsx rename to heicode/web/default/src/features/wallet/components/subscription-plans-card.tsx diff --git a/new-api/web/default/src/features/wallet/components/wallet-stats-card.tsx b/heicode/web/default/src/features/wallet/components/wallet-stats-card.tsx similarity index 100% rename from new-api/web/default/src/features/wallet/components/wallet-stats-card.tsx rename to heicode/web/default/src/features/wallet/components/wallet-stats-card.tsx diff --git a/new-api/web/default/src/features/wallet/constants.ts b/heicode/web/default/src/features/wallet/constants.ts similarity index 100% rename from new-api/web/default/src/features/wallet/constants.ts rename to heicode/web/default/src/features/wallet/constants.ts diff --git a/new-api/web/default/src/features/wallet/hooks/index.ts b/heicode/web/default/src/features/wallet/hooks/index.ts similarity index 100% rename from new-api/web/default/src/features/wallet/hooks/index.ts rename to heicode/web/default/src/features/wallet/hooks/index.ts diff --git a/new-api/web/default/src/features/wallet/hooks/use-affiliate.ts b/heicode/web/default/src/features/wallet/hooks/use-affiliate.ts similarity index 100% rename from new-api/web/default/src/features/wallet/hooks/use-affiliate.ts rename to heicode/web/default/src/features/wallet/hooks/use-affiliate.ts diff --git a/new-api/web/default/src/features/wallet/hooks/use-billing-history.ts b/heicode/web/default/src/features/wallet/hooks/use-billing-history.ts similarity index 100% rename from new-api/web/default/src/features/wallet/hooks/use-billing-history.ts rename to heicode/web/default/src/features/wallet/hooks/use-billing-history.ts diff --git a/new-api/web/default/src/features/wallet/hooks/use-creem-payment.ts b/heicode/web/default/src/features/wallet/hooks/use-creem-payment.ts similarity index 100% rename from new-api/web/default/src/features/wallet/hooks/use-creem-payment.ts rename to heicode/web/default/src/features/wallet/hooks/use-creem-payment.ts diff --git a/new-api/web/default/src/features/wallet/hooks/use-payment.ts b/heicode/web/default/src/features/wallet/hooks/use-payment.ts similarity index 100% rename from new-api/web/default/src/features/wallet/hooks/use-payment.ts rename to heicode/web/default/src/features/wallet/hooks/use-payment.ts diff --git a/new-api/web/default/src/features/wallet/hooks/use-redemption.ts b/heicode/web/default/src/features/wallet/hooks/use-redemption.ts similarity index 100% rename from new-api/web/default/src/features/wallet/hooks/use-redemption.ts rename to heicode/web/default/src/features/wallet/hooks/use-redemption.ts diff --git a/new-api/web/default/src/features/wallet/hooks/use-topup-info.ts b/heicode/web/default/src/features/wallet/hooks/use-topup-info.ts similarity index 100% rename from new-api/web/default/src/features/wallet/hooks/use-topup-info.ts rename to heicode/web/default/src/features/wallet/hooks/use-topup-info.ts diff --git a/new-api/web/default/src/features/wallet/hooks/use-waffo-pancake-payment.ts b/heicode/web/default/src/features/wallet/hooks/use-waffo-pancake-payment.ts similarity index 100% rename from new-api/web/default/src/features/wallet/hooks/use-waffo-pancake-payment.ts rename to heicode/web/default/src/features/wallet/hooks/use-waffo-pancake-payment.ts diff --git a/new-api/web/default/src/features/wallet/hooks/use-waffo-payment.ts b/heicode/web/default/src/features/wallet/hooks/use-waffo-payment.ts similarity index 100% rename from new-api/web/default/src/features/wallet/hooks/use-waffo-payment.ts rename to heicode/web/default/src/features/wallet/hooks/use-waffo-payment.ts diff --git a/new-api/web/default/src/features/wallet/index.tsx b/heicode/web/default/src/features/wallet/index.tsx similarity index 100% rename from new-api/web/default/src/features/wallet/index.tsx rename to heicode/web/default/src/features/wallet/index.tsx diff --git a/new-api/web/default/src/features/wallet/lib/affiliate.ts b/heicode/web/default/src/features/wallet/lib/affiliate.ts similarity index 100% rename from new-api/web/default/src/features/wallet/lib/affiliate.ts rename to heicode/web/default/src/features/wallet/lib/affiliate.ts diff --git a/new-api/web/default/src/features/wallet/lib/billing.ts b/heicode/web/default/src/features/wallet/lib/billing.ts similarity index 100% rename from new-api/web/default/src/features/wallet/lib/billing.ts rename to heicode/web/default/src/features/wallet/lib/billing.ts diff --git a/new-api/web/default/src/features/wallet/lib/format.ts b/heicode/web/default/src/features/wallet/lib/format.ts similarity index 100% rename from new-api/web/default/src/features/wallet/lib/format.ts rename to heicode/web/default/src/features/wallet/lib/format.ts diff --git a/new-api/web/default/src/features/wallet/lib/index.ts b/heicode/web/default/src/features/wallet/lib/index.ts similarity index 100% rename from new-api/web/default/src/features/wallet/lib/index.ts rename to heicode/web/default/src/features/wallet/lib/index.ts diff --git a/new-api/web/default/src/features/wallet/lib/payment.ts b/heicode/web/default/src/features/wallet/lib/payment.ts similarity index 100% rename from new-api/web/default/src/features/wallet/lib/payment.ts rename to heicode/web/default/src/features/wallet/lib/payment.ts diff --git a/new-api/web/default/src/features/wallet/lib/ui.tsx b/heicode/web/default/src/features/wallet/lib/ui.tsx similarity index 100% rename from new-api/web/default/src/features/wallet/lib/ui.tsx rename to heicode/web/default/src/features/wallet/lib/ui.tsx diff --git a/new-api/web/default/src/features/wallet/types.ts b/heicode/web/default/src/features/wallet/types.ts similarity index 100% rename from new-api/web/default/src/features/wallet/types.ts rename to heicode/web/default/src/features/wallet/types.ts diff --git a/new-api/web/default/src/hooks/index.ts b/heicode/web/default/src/hooks/index.ts similarity index 100% rename from new-api/web/default/src/hooks/index.ts rename to heicode/web/default/src/hooks/index.ts diff --git a/new-api/web/default/src/hooks/use-admin.ts b/heicode/web/default/src/hooks/use-admin.ts similarity index 100% rename from new-api/web/default/src/hooks/use-admin.ts rename to heicode/web/default/src/hooks/use-admin.ts diff --git a/new-api/web/default/src/hooks/use-copy-to-clipboard.ts b/heicode/web/default/src/hooks/use-copy-to-clipboard.ts similarity index 100% rename from new-api/web/default/src/hooks/use-copy-to-clipboard.ts rename to heicode/web/default/src/hooks/use-copy-to-clipboard.ts diff --git a/new-api/web/default/src/hooks/use-countdown.ts b/heicode/web/default/src/hooks/use-countdown.ts similarity index 100% rename from new-api/web/default/src/hooks/use-countdown.ts rename to heicode/web/default/src/hooks/use-countdown.ts diff --git a/new-api/web/default/src/hooks/use-debounce.ts b/heicode/web/default/src/hooks/use-debounce.ts similarity index 100% rename from new-api/web/default/src/hooks/use-debounce.ts rename to heicode/web/default/src/hooks/use-debounce.ts diff --git a/new-api/web/default/src/hooks/use-dialog.ts b/heicode/web/default/src/hooks/use-dialog.ts similarity index 100% rename from new-api/web/default/src/hooks/use-dialog.ts rename to heicode/web/default/src/hooks/use-dialog.ts diff --git a/new-api/web/default/src/hooks/use-hidden-click-unlock.ts b/heicode/web/default/src/hooks/use-hidden-click-unlock.ts similarity index 100% rename from new-api/web/default/src/hooks/use-hidden-click-unlock.ts rename to heicode/web/default/src/hooks/use-hidden-click-unlock.ts diff --git a/new-api/web/default/src/hooks/use-media-query.ts b/heicode/web/default/src/hooks/use-media-query.ts similarity index 100% rename from new-api/web/default/src/hooks/use-media-query.ts rename to heicode/web/default/src/hooks/use-media-query.ts diff --git a/new-api/web/default/src/hooks/use-minimum-loading-time.ts b/heicode/web/default/src/hooks/use-minimum-loading-time.ts similarity index 100% rename from new-api/web/default/src/hooks/use-minimum-loading-time.ts rename to heicode/web/default/src/hooks/use-minimum-loading-time.ts diff --git a/new-api/web/default/src/hooks/use-mobile.tsx b/heicode/web/default/src/hooks/use-mobile.tsx similarity index 100% rename from new-api/web/default/src/hooks/use-mobile.tsx rename to heicode/web/default/src/hooks/use-mobile.tsx diff --git a/new-api/web/default/src/hooks/use-notifications.ts b/heicode/web/default/src/hooks/use-notifications.ts similarity index 100% rename from new-api/web/default/src/hooks/use-notifications.ts rename to heicode/web/default/src/hooks/use-notifications.ts diff --git a/new-api/web/default/src/hooks/use-sidebar-config.ts b/heicode/web/default/src/hooks/use-sidebar-config.ts similarity index 100% rename from new-api/web/default/src/hooks/use-sidebar-config.ts rename to heicode/web/default/src/hooks/use-sidebar-config.ts diff --git a/new-api/web/default/src/hooks/use-sidebar-data.ts b/heicode/web/default/src/hooks/use-sidebar-data.ts similarity index 100% rename from new-api/web/default/src/hooks/use-sidebar-data.ts rename to heicode/web/default/src/hooks/use-sidebar-data.ts diff --git a/new-api/web/default/src/hooks/use-status.ts b/heicode/web/default/src/hooks/use-status.ts similarity index 100% rename from new-api/web/default/src/hooks/use-status.ts rename to heicode/web/default/src/hooks/use-status.ts diff --git a/new-api/web/default/src/hooks/use-system-config.ts b/heicode/web/default/src/hooks/use-system-config.ts similarity index 100% rename from new-api/web/default/src/hooks/use-system-config.ts rename to heicode/web/default/src/hooks/use-system-config.ts diff --git a/new-api/web/default/src/hooks/use-table-compact-mode.ts b/heicode/web/default/src/hooks/use-table-compact-mode.ts similarity index 100% rename from new-api/web/default/src/hooks/use-table-compact-mode.ts rename to heicode/web/default/src/hooks/use-table-compact-mode.ts diff --git a/new-api/web/default/src/hooks/use-table-url-state.ts b/heicode/web/default/src/hooks/use-table-url-state.ts similarity index 100% rename from new-api/web/default/src/hooks/use-table-url-state.ts rename to heicode/web/default/src/hooks/use-table-url-state.ts diff --git a/new-api/web/default/src/hooks/use-top-nav-links.ts b/heicode/web/default/src/hooks/use-top-nav-links.ts similarity index 100% rename from new-api/web/default/src/hooks/use-top-nav-links.ts rename to heicode/web/default/src/hooks/use-top-nav-links.ts diff --git a/new-api/web/default/src/hooks/use-user-display.ts b/heicode/web/default/src/hooks/use-user-display.ts similarity index 100% rename from new-api/web/default/src/hooks/use-user-display.ts rename to heicode/web/default/src/hooks/use-user-display.ts diff --git a/new-api/web/default/src/i18n/config.ts b/heicode/web/default/src/i18n/config.ts similarity index 100% rename from new-api/web/default/src/i18n/config.ts rename to heicode/web/default/src/i18n/config.ts diff --git a/new-api/web/default/src/i18n/locales/_reports/_sync-report.json b/heicode/web/default/src/i18n/locales/_reports/_sync-report.json similarity index 100% rename from new-api/web/default/src/i18n/locales/_reports/_sync-report.json rename to heicode/web/default/src/i18n/locales/_reports/_sync-report.json diff --git a/new-api/web/default/src/i18n/locales/_reports/fr.untranslated.json b/heicode/web/default/src/i18n/locales/_reports/fr.untranslated.json similarity index 100% rename from new-api/web/default/src/i18n/locales/_reports/fr.untranslated.json rename to heicode/web/default/src/i18n/locales/_reports/fr.untranslated.json diff --git a/new-api/web/default/src/i18n/locales/_reports/ja.untranslated.json b/heicode/web/default/src/i18n/locales/_reports/ja.untranslated.json similarity index 97% rename from new-api/web/default/src/i18n/locales/_reports/ja.untranslated.json rename to heicode/web/default/src/i18n/locales/_reports/ja.untranslated.json index 99a8b3b..260cb2f 100644 --- a/new-api/web/default/src/i18n/locales/_reports/ja.untranslated.json +++ b/heicode/web/default/src/i18n/locales/_reports/ja.untranslated.json @@ -36,7 +36,7 @@ "https://example.com/topup": "https://example.com/topup", "https://example.com/webhook": "https://example.com/webhook", "https://gateway.example.com": "https://gateway.example.com", - "https://github.com/QuantumNous/new-api": "https://github.com/QuantumNous/new-api", + "https://github.com/QuantumNous/heicode": "https://github.com/QuantumNous/heicode", "https://gotify.example.com": "https://gotify.example.com", "https://pay.example.com": "https://pay.example.com", "https://provider.com/.well-known/openid-configuration": "https://provider.com/.well-known/openid-configuration", diff --git a/new-api/web/default/src/i18n/locales/_reports/ru.untranslated.json b/heicode/web/default/src/i18n/locales/_reports/ru.untranslated.json similarity index 97% rename from new-api/web/default/src/i18n/locales/_reports/ru.untranslated.json rename to heicode/web/default/src/i18n/locales/_reports/ru.untranslated.json index 50bb6ee..2a6c3ae 100644 --- a/new-api/web/default/src/i18n/locales/_reports/ru.untranslated.json +++ b/heicode/web/default/src/i18n/locales/_reports/ru.untranslated.json @@ -40,7 +40,7 @@ "https://example.com/topup": "https://example.com/topup", "https://example.com/webhook": "https://example.com/webhook", "https://gateway.example.com": "https://gateway.example.com", - "https://github.com/QuantumNous/new-api": "https://github.com/QuantumNous/new-api", + "https://github.com/QuantumNous/heicode": "https://github.com/QuantumNous/heicode", "https://gotify.example.com": "https://gotify.example.com", "https://pay.example.com": "https://pay.example.com", "https://provider.com/.well-known/openid-configuration": "https://provider.com/.well-known/openid-configuration", diff --git a/new-api/web/default/src/i18n/locales/_reports/vi.untranslated.json b/heicode/web/default/src/i18n/locales/_reports/vi.untranslated.json similarity index 100% rename from new-api/web/default/src/i18n/locales/_reports/vi.untranslated.json rename to heicode/web/default/src/i18n/locales/_reports/vi.untranslated.json diff --git a/new-api/web/default/src/i18n/locales/_reports/zh.untranslated.json b/heicode/web/default/src/i18n/locales/_reports/zh.untranslated.json similarity index 98% rename from new-api/web/default/src/i18n/locales/_reports/zh.untranslated.json rename to heicode/web/default/src/i18n/locales/_reports/zh.untranslated.json index 78ee1e3..93ac9d6 100644 --- a/new-api/web/default/src/i18n/locales/_reports/zh.untranslated.json +++ b/heicode/web/default/src/i18n/locales/_reports/zh.untranslated.json @@ -44,7 +44,7 @@ "https://example.com/topup": "https://example.com/topup", "https://example.com/webhook": "https://example.com/webhook", "https://gateway.example.com": "https://gateway.example.com", - "https://github.com/QuantumNous/new-api": "https://github.com/QuantumNous/new-api", + "https://github.com/QuantumNous/heicode": "https://github.com/QuantumNous/heicode", "https://gotify.example.com": "https://gotify.example.com", "https://pay.example.com": "https://pay.example.com", "https://provider.com/.well-known/openid-configuration": "https://provider.com/.well-known/openid-configuration", diff --git a/new-api/web/default/src/i18n/locales/en.json b/heicode/web/default/src/i18n/locales/en.json similarity index 99% rename from new-api/web/default/src/i18n/locales/en.json rename to heicode/web/default/src/i18n/locales/en.json index 8cfe1cf..f275eb1 100644 --- a/new-api/web/default/src/i18n/locales/en.json +++ b/heicode/web/default/src/i18n/locales/en.json @@ -1677,7 +1677,7 @@ "https://example.com/topup": "https://example.com/topup", "https://example.com/webhook": "https://example.com/webhook", "https://gateway.example.com": "https://gateway.example.com", - "https://github.com/QuantumNous/new-api": "https://github.com/QuantumNous/new-api", + "https://github.com/QuantumNous/heicode": "https://github.com/QuantumNous/heicode", "https://gotify.example.com": "https://gotify.example.com", "https://pay.example.com": "https://pay.example.com", "https://provider.com/.well-known/openid-configuration": "https://provider.com/.well-known/openid-configuration", diff --git a/new-api/web/default/src/i18n/locales/fr.json b/heicode/web/default/src/i18n/locales/fr.json similarity index 99% rename from new-api/web/default/src/i18n/locales/fr.json rename to heicode/web/default/src/i18n/locales/fr.json index c5ed76e..0bf9621 100644 --- a/new-api/web/default/src/i18n/locales/fr.json +++ b/heicode/web/default/src/i18n/locales/fr.json @@ -1677,7 +1677,7 @@ "https://example.com/topup": "https://example.com/topup", "https://example.com/webhook": "https://example.com/webhook", "https://gateway.example.com": "https://gateway.example.com", - "https://github.com/QuantumNous/new-api": "https://github.com/QuantumNous/new-api", + "https://github.com/QuantumNous/heicode": "https://github.com/QuantumNous/heicode", "https://gotify.example.com": "https://gotify.example.com", "https://pay.example.com": "https://pay.example.com", "https://provider.com/.well-known/openid-configuration": "https://provider.com/.well-known/openid-configuration", diff --git a/new-api/web/default/src/i18n/locales/ja.json b/heicode/web/default/src/i18n/locales/ja.json similarity index 99% rename from new-api/web/default/src/i18n/locales/ja.json rename to heicode/web/default/src/i18n/locales/ja.json index f4328c6..a06def5 100644 --- a/new-api/web/default/src/i18n/locales/ja.json +++ b/heicode/web/default/src/i18n/locales/ja.json @@ -1677,7 +1677,7 @@ "https://example.com/topup": "https://example.com/topup", "https://example.com/webhook": "https://example.com/webhook", "https://gateway.example.com": "https://gateway.example.com", - "https://github.com/QuantumNous/new-api": "https://github.com/QuantumNous/new-api", + "https://github.com/QuantumNous/heicode": "https://github.com/QuantumNous/heicode", "https://gotify.example.com": "https://gotify.example.com", "https://pay.example.com": "https://pay.example.com", "https://provider.com/.well-known/openid-configuration": "https://provider.com/.well-known/openid-configuration", diff --git a/new-api/web/default/src/i18n/locales/ru.json b/heicode/web/default/src/i18n/locales/ru.json similarity index 99% rename from new-api/web/default/src/i18n/locales/ru.json rename to heicode/web/default/src/i18n/locales/ru.json index 5d21bd4..90c11c0 100644 --- a/new-api/web/default/src/i18n/locales/ru.json +++ b/heicode/web/default/src/i18n/locales/ru.json @@ -1677,7 +1677,7 @@ "https://example.com/topup": "https://example.com/topup", "https://example.com/webhook": "https://example.com/webhook", "https://gateway.example.com": "https://gateway.example.com", - "https://github.com/QuantumNous/new-api": "https://github.com/QuantumNous/new-api", + "https://github.com/QuantumNous/heicode": "https://github.com/QuantumNous/heicode", "https://gotify.example.com": "https://gotify.example.com", "https://pay.example.com": "https://pay.example.com", "https://provider.com/.well-known/openid-configuration": "https://provider.com/.well-known/openid-configuration", diff --git a/new-api/web/default/src/i18n/locales/vi.json b/heicode/web/default/src/i18n/locales/vi.json similarity index 99% rename from new-api/web/default/src/i18n/locales/vi.json rename to heicode/web/default/src/i18n/locales/vi.json index 116a10c..b59fd86 100644 --- a/new-api/web/default/src/i18n/locales/vi.json +++ b/heicode/web/default/src/i18n/locales/vi.json @@ -1677,7 +1677,7 @@ "https://example.com/topup": "https://example.com/topup", "https://example.com/webhook": "https://example.com/webhook", "https://gateway.example.com": "https://gateway.example.com", - "https://github.com/QuantumNous/new-api": "https://github.com/QuantumNous/new-api", + "https://github.com/QuantumNous/heicode": "https://github.com/QuantumNous/heicode", "https://gotify.example.com": "https://gotify.example.com", "https://pay.example.com": "https://pay.example.com", "https://provider.com/.well-known/openid-configuration": "https://provider.com/.well-known/openid-configuration", diff --git a/new-api/web/default/src/i18n/locales/zh.json b/heicode/web/default/src/i18n/locales/zh.json similarity index 99% rename from new-api/web/default/src/i18n/locales/zh.json rename to heicode/web/default/src/i18n/locales/zh.json index dc43832..29e3125 100644 --- a/new-api/web/default/src/i18n/locales/zh.json +++ b/heicode/web/default/src/i18n/locales/zh.json @@ -1677,7 +1677,7 @@ "https://example.com/topup": "https://example.com/topup", "https://example.com/webhook": "https://example.com/webhook", "https://gateway.example.com": "https://gateway.example.com", - "https://github.com/QuantumNous/new-api": "https://github.com/QuantumNous/new-api", + "https://github.com/QuantumNous/heicode": "https://github.com/QuantumNous/heicode", "https://gotify.example.com": "https://gotify.example.com", "https://pay.example.com": "https://pay.example.com", "https://provider.com/.well-known/openid-configuration": "https://provider.com/.well-known/openid-configuration", diff --git a/new-api/web/default/src/i18n/static-keys.ts b/heicode/web/default/src/i18n/static-keys.ts similarity index 100% rename from new-api/web/default/src/i18n/static-keys.ts rename to heicode/web/default/src/i18n/static-keys.ts diff --git a/new-api/web/default/src/lib/api.ts b/heicode/web/default/src/lib/api.ts similarity index 100% rename from new-api/web/default/src/lib/api.ts rename to heicode/web/default/src/lib/api.ts diff --git a/new-api/web/default/src/lib/brand.ts b/heicode/web/default/src/lib/brand.ts similarity index 100% rename from new-api/web/default/src/lib/brand.ts rename to heicode/web/default/src/lib/brand.ts diff --git a/new-api/web/default/src/lib/colors.ts b/heicode/web/default/src/lib/colors.ts similarity index 100% rename from new-api/web/default/src/lib/colors.ts rename to heicode/web/default/src/lib/colors.ts diff --git a/new-api/web/default/src/lib/constants.ts b/heicode/web/default/src/lib/constants.ts similarity index 100% rename from new-api/web/default/src/lib/constants.ts rename to heicode/web/default/src/lib/constants.ts diff --git a/new-api/web/default/src/lib/cookies.ts b/heicode/web/default/src/lib/cookies.ts similarity index 100% rename from new-api/web/default/src/lib/cookies.ts rename to heicode/web/default/src/lib/cookies.ts diff --git a/new-api/web/default/src/lib/copy-to-clipboard.ts b/heicode/web/default/src/lib/copy-to-clipboard.ts similarity index 100% rename from new-api/web/default/src/lib/copy-to-clipboard.ts rename to heicode/web/default/src/lib/copy-to-clipboard.ts diff --git a/new-api/web/default/src/lib/currency.ts b/heicode/web/default/src/lib/currency.ts similarity index 100% rename from new-api/web/default/src/lib/currency.ts rename to heicode/web/default/src/lib/currency.ts diff --git a/new-api/web/default/src/lib/dayjs.ts b/heicode/web/default/src/lib/dayjs.ts similarity index 100% rename from new-api/web/default/src/lib/dayjs.ts rename to heicode/web/default/src/lib/dayjs.ts diff --git a/new-api/web/default/src/lib/dom-utils.ts b/heicode/web/default/src/lib/dom-utils.ts similarity index 100% rename from new-api/web/default/src/lib/dom-utils.ts rename to heicode/web/default/src/lib/dom-utils.ts diff --git a/new-api/web/default/src/lib/format.ts b/heicode/web/default/src/lib/format.ts similarity index 100% rename from new-api/web/default/src/lib/format.ts rename to heicode/web/default/src/lib/format.ts diff --git a/new-api/web/default/src/lib/handle-server-error.ts b/heicode/web/default/src/lib/handle-server-error.ts similarity index 100% rename from new-api/web/default/src/lib/handle-server-error.ts rename to heicode/web/default/src/lib/handle-server-error.ts diff --git a/new-api/web/default/src/lib/http-status-code-rules.ts b/heicode/web/default/src/lib/http-status-code-rules.ts similarity index 100% rename from new-api/web/default/src/lib/http-status-code-rules.ts rename to heicode/web/default/src/lib/http-status-code-rules.ts diff --git a/new-api/web/default/src/lib/lobe-icon.tsx b/heicode/web/default/src/lib/lobe-icon.tsx similarity index 100% rename from new-api/web/default/src/lib/lobe-icon.tsx rename to heicode/web/default/src/lib/lobe-icon.tsx diff --git a/new-api/web/default/src/lib/motion.ts b/heicode/web/default/src/lib/motion.ts similarity index 100% rename from new-api/web/default/src/lib/motion.ts rename to heicode/web/default/src/lib/motion.ts diff --git a/new-api/web/default/src/lib/oauth.ts b/heicode/web/default/src/lib/oauth.ts similarity index 100% rename from new-api/web/default/src/lib/oauth.ts rename to heicode/web/default/src/lib/oauth.ts diff --git a/new-api/web/default/src/lib/passkey.ts b/heicode/web/default/src/lib/passkey.ts similarity index 100% rename from new-api/web/default/src/lib/passkey.ts rename to heicode/web/default/src/lib/passkey.ts diff --git a/new-api/web/default/src/lib/roles.ts b/heicode/web/default/src/lib/roles.ts similarity index 100% rename from new-api/web/default/src/lib/roles.ts rename to heicode/web/default/src/lib/roles.ts diff --git a/new-api/web/default/src/lib/secure-verification.ts b/heicode/web/default/src/lib/secure-verification.ts similarity index 100% rename from new-api/web/default/src/lib/secure-verification.ts rename to heicode/web/default/src/lib/secure-verification.ts diff --git a/new-api/web/default/src/lib/show-submitted-data.tsx b/heicode/web/default/src/lib/show-submitted-data.tsx similarity index 100% rename from new-api/web/default/src/lib/show-submitted-data.tsx rename to heicode/web/default/src/lib/show-submitted-data.tsx diff --git a/new-api/web/default/src/lib/time.ts b/heicode/web/default/src/lib/time.ts similarity index 100% rename from new-api/web/default/src/lib/time.ts rename to heicode/web/default/src/lib/time.ts diff --git a/new-api/web/default/src/lib/utils.ts b/heicode/web/default/src/lib/utils.ts similarity index 100% rename from new-api/web/default/src/lib/utils.ts rename to heicode/web/default/src/lib/utils.ts diff --git a/new-api/web/default/src/lib/vchart.ts b/heicode/web/default/src/lib/vchart.ts similarity index 100% rename from new-api/web/default/src/lib/vchart.ts rename to heicode/web/default/src/lib/vchart.ts diff --git a/new-api/web/default/src/main.tsx b/heicode/web/default/src/main.tsx similarity index 96% rename from new-api/web/default/src/main.tsx rename to heicode/web/default/src/main.tsx index 2233a20..c2ea2b3 100644 --- a/new-api/web/default/src/main.tsx +++ b/heicode/web/default/src/main.tsx @@ -10,6 +10,7 @@ import { RouterProvider, createRouter } from '@tanstack/react-router' import i18next from 'i18next' import { toast } from 'sonner' import { useAuthStore } from '@/stores/auth-store' +import { resetHeicodeAuthenticatedSession } from '@/features/auth/heicode-authenticated-session' import { getStatus } from '@/lib/api' import { DEFAULT_LOGO } from '@/lib/constants' import '@/lib/dayjs' @@ -63,6 +64,7 @@ const queryClient = new QueryClient({ if (error.response?.status === 401) { toast.error(i18next.t('Session expired!')) useAuthStore.getState().auth.reset() + resetHeicodeAuthenticatedSession() const redirect = `${router.history.location.href}` router.navigate({ to: '/sign-in', search: { redirect } }) } diff --git a/new-api/web/default/src/routeTree.gen.ts b/heicode/web/default/src/routeTree.gen.ts similarity index 100% rename from new-api/web/default/src/routeTree.gen.ts rename to heicode/web/default/src/routeTree.gen.ts diff --git a/new-api/web/default/src/routes/(auth)/forgot-password.tsx b/heicode/web/default/src/routes/(auth)/forgot-password.tsx similarity index 100% rename from new-api/web/default/src/routes/(auth)/forgot-password.tsx rename to heicode/web/default/src/routes/(auth)/forgot-password.tsx diff --git a/new-api/web/default/src/routes/(auth)/oauth.tsx b/heicode/web/default/src/routes/(auth)/oauth.tsx similarity index 100% rename from new-api/web/default/src/routes/(auth)/oauth.tsx rename to heicode/web/default/src/routes/(auth)/oauth.tsx diff --git a/new-api/web/default/src/routes/(auth)/otp.tsx b/heicode/web/default/src/routes/(auth)/otp.tsx similarity index 100% rename from new-api/web/default/src/routes/(auth)/otp.tsx rename to heicode/web/default/src/routes/(auth)/otp.tsx diff --git a/new-api/web/default/src/routes/(auth)/reset.tsx b/heicode/web/default/src/routes/(auth)/reset.tsx similarity index 100% rename from new-api/web/default/src/routes/(auth)/reset.tsx rename to heicode/web/default/src/routes/(auth)/reset.tsx diff --git a/new-api/web/default/src/routes/(auth)/route.tsx b/heicode/web/default/src/routes/(auth)/route.tsx similarity index 100% rename from new-api/web/default/src/routes/(auth)/route.tsx rename to heicode/web/default/src/routes/(auth)/route.tsx diff --git a/new-api/web/default/src/routes/(auth)/sign-in.tsx b/heicode/web/default/src/routes/(auth)/sign-in.tsx similarity index 100% rename from new-api/web/default/src/routes/(auth)/sign-in.tsx rename to heicode/web/default/src/routes/(auth)/sign-in.tsx diff --git a/new-api/web/default/src/routes/(auth)/sign-up.tsx b/heicode/web/default/src/routes/(auth)/sign-up.tsx similarity index 100% rename from new-api/web/default/src/routes/(auth)/sign-up.tsx rename to heicode/web/default/src/routes/(auth)/sign-up.tsx diff --git a/new-api/web/default/src/routes/(auth)/user/reset.tsx b/heicode/web/default/src/routes/(auth)/user/reset.tsx similarity index 100% rename from new-api/web/default/src/routes/(auth)/user/reset.tsx rename to heicode/web/default/src/routes/(auth)/user/reset.tsx diff --git a/new-api/web/default/src/routes/(errors)/401.tsx b/heicode/web/default/src/routes/(errors)/401.tsx similarity index 100% rename from new-api/web/default/src/routes/(errors)/401.tsx rename to heicode/web/default/src/routes/(errors)/401.tsx diff --git a/new-api/web/default/src/routes/(errors)/403.tsx b/heicode/web/default/src/routes/(errors)/403.tsx similarity index 100% rename from new-api/web/default/src/routes/(errors)/403.tsx rename to heicode/web/default/src/routes/(errors)/403.tsx diff --git a/new-api/web/default/src/routes/(errors)/404.tsx b/heicode/web/default/src/routes/(errors)/404.tsx similarity index 100% rename from new-api/web/default/src/routes/(errors)/404.tsx rename to heicode/web/default/src/routes/(errors)/404.tsx diff --git a/new-api/web/default/src/routes/(errors)/500.tsx b/heicode/web/default/src/routes/(errors)/500.tsx similarity index 100% rename from new-api/web/default/src/routes/(errors)/500.tsx rename to heicode/web/default/src/routes/(errors)/500.tsx diff --git a/new-api/web/default/src/routes/(errors)/503.tsx b/heicode/web/default/src/routes/(errors)/503.tsx similarity index 100% rename from new-api/web/default/src/routes/(errors)/503.tsx rename to heicode/web/default/src/routes/(errors)/503.tsx diff --git a/new-api/web/default/src/routes/__root.tsx b/heicode/web/default/src/routes/__root.tsx similarity index 100% rename from new-api/web/default/src/routes/__root.tsx rename to heicode/web/default/src/routes/__root.tsx diff --git a/new-api/web/default/src/routes/_authenticated/agents/index.tsx b/heicode/web/default/src/routes/_authenticated/agents/index.tsx similarity index 100% rename from new-api/web/default/src/routes/_authenticated/agents/index.tsx rename to heicode/web/default/src/routes/_authenticated/agents/index.tsx diff --git a/new-api/web/default/src/routes/_authenticated/audit/index.tsx b/heicode/web/default/src/routes/_authenticated/audit/index.tsx similarity index 100% rename from new-api/web/default/src/routes/_authenticated/audit/index.tsx rename to heicode/web/default/src/routes/_authenticated/audit/index.tsx diff --git a/new-api/web/default/src/routes/_authenticated/channels/index.tsx b/heicode/web/default/src/routes/_authenticated/channels/index.tsx similarity index 100% rename from new-api/web/default/src/routes/_authenticated/channels/index.tsx rename to heicode/web/default/src/routes/_authenticated/channels/index.tsx diff --git a/new-api/web/default/src/routes/_authenticated/chat/$chatId.tsx b/heicode/web/default/src/routes/_authenticated/chat/$chatId.tsx similarity index 100% rename from new-api/web/default/src/routes/_authenticated/chat/$chatId.tsx rename to heicode/web/default/src/routes/_authenticated/chat/$chatId.tsx diff --git a/new-api/web/default/src/routes/_authenticated/chat2link.tsx b/heicode/web/default/src/routes/_authenticated/chat2link.tsx similarity index 100% rename from new-api/web/default/src/routes/_authenticated/chat2link.tsx rename to heicode/web/default/src/routes/_authenticated/chat2link.tsx diff --git a/new-api/web/default/src/routes/_authenticated/dashboard/$section.tsx b/heicode/web/default/src/routes/_authenticated/dashboard/$section.tsx similarity index 100% rename from new-api/web/default/src/routes/_authenticated/dashboard/$section.tsx rename to heicode/web/default/src/routes/_authenticated/dashboard/$section.tsx diff --git a/new-api/web/default/src/routes/_authenticated/dashboard/index.tsx b/heicode/web/default/src/routes/_authenticated/dashboard/index.tsx similarity index 100% rename from new-api/web/default/src/routes/_authenticated/dashboard/index.tsx rename to heicode/web/default/src/routes/_authenticated/dashboard/index.tsx diff --git a/new-api/web/default/src/routes/_authenticated/deployments/index.tsx b/heicode/web/default/src/routes/_authenticated/deployments/index.tsx similarity index 100% rename from new-api/web/default/src/routes/_authenticated/deployments/index.tsx rename to heicode/web/default/src/routes/_authenticated/deployments/index.tsx diff --git a/new-api/web/default/src/routes/_authenticated/errors/$error.tsx b/heicode/web/default/src/routes/_authenticated/errors/$error.tsx similarity index 100% rename from new-api/web/default/src/routes/_authenticated/errors/$error.tsx rename to heicode/web/default/src/routes/_authenticated/errors/$error.tsx diff --git a/new-api/web/default/src/routes/_authenticated/events/index.tsx b/heicode/web/default/src/routes/_authenticated/events/index.tsx similarity index 100% rename from new-api/web/default/src/routes/_authenticated/events/index.tsx rename to heicode/web/default/src/routes/_authenticated/events/index.tsx diff --git a/new-api/web/default/src/routes/_authenticated/keys/index.tsx b/heicode/web/default/src/routes/_authenticated/keys/index.tsx similarity index 100% rename from new-api/web/default/src/routes/_authenticated/keys/index.tsx rename to heicode/web/default/src/routes/_authenticated/keys/index.tsx diff --git a/new-api/web/default/src/routes/_authenticated/models/$section.tsx b/heicode/web/default/src/routes/_authenticated/models/$section.tsx similarity index 100% rename from new-api/web/default/src/routes/_authenticated/models/$section.tsx rename to heicode/web/default/src/routes/_authenticated/models/$section.tsx diff --git a/new-api/web/default/src/routes/_authenticated/models/index.tsx b/heicode/web/default/src/routes/_authenticated/models/index.tsx similarity index 100% rename from new-api/web/default/src/routes/_authenticated/models/index.tsx rename to heicode/web/default/src/routes/_authenticated/models/index.tsx diff --git a/new-api/web/default/src/routes/_authenticated/playground/index.tsx b/heicode/web/default/src/routes/_authenticated/playground/index.tsx similarity index 100% rename from new-api/web/default/src/routes/_authenticated/playground/index.tsx rename to heicode/web/default/src/routes/_authenticated/playground/index.tsx diff --git a/new-api/web/default/src/routes/_authenticated/profile/index.tsx b/heicode/web/default/src/routes/_authenticated/profile/index.tsx similarity index 100% rename from new-api/web/default/src/routes/_authenticated/profile/index.tsx rename to heicode/web/default/src/routes/_authenticated/profile/index.tsx diff --git a/new-api/web/default/src/routes/_authenticated/redemption-codes/index.tsx b/heicode/web/default/src/routes/_authenticated/redemption-codes/index.tsx similarity index 100% rename from new-api/web/default/src/routes/_authenticated/redemption-codes/index.tsx rename to heicode/web/default/src/routes/_authenticated/redemption-codes/index.tsx diff --git a/heicode/web/default/src/routes/_authenticated/route.tsx b/heicode/web/default/src/routes/_authenticated/route.tsx new file mode 100644 index 0000000..d27204a --- /dev/null +++ b/heicode/web/default/src/routes/_authenticated/route.tsx @@ -0,0 +1,58 @@ +import { createFileRoute, redirect } from '@tanstack/react-router' +import { useAuthStore, type AuthUser } from '@/stores/auth-store' +import { getHeicodeCurrentUser, hasHeicodeTokens } from '@/features/auth/api' +import { + isHeicodeAuthenticatedSessionVerified, + markHeicodeAuthenticatedSessionVerified, +} from '@/features/auth/heicode-authenticated-session' +import { getSelf } from '@/lib/api' +import { AuthenticatedLayout } from '@/components/layout' + +export const Route = createFileRoute('/_authenticated')({ + beforeLoad: async ({ location }) => { + const { auth } = useAuthStore.getState() + + if (!auth.user) { + throw redirect({ + to: '/sign-in', + search: { redirect: location.href }, + }) + } + + // 刚完成密码登录等流程时已标记,避免立刻再请求外部 /me 失败被误判为未登录 + if (isHeicodeAuthenticatedSessionVerified()) { + return + } + + const heicodeUser = await getHeicodeCurrentUser().catch(() => null) + if (heicodeUser) { + auth.setUser(heicodeUser) + markHeicodeAuthenticatedSessionVerified() + return + } + + // 已有 Heicode token(登录刚写入)但 /me 偶发失败:保留本地会话 + if (hasHeicodeTokens()) { + markHeicodeAuthenticatedSessionVerified() + return + } + + // cookie 会话(GitHub/OIDC 等走 heicode 的 OAuth) + const self = (await getSelf().catch(() => null)) as { + success?: boolean + data?: AuthUser | null + } | null + if (self?.success && self.data) { + auth.setUser(self.data) + markHeicodeAuthenticatedSessionVerified() + return + } + + auth.reset() + throw redirect({ + to: '/sign-in', + search: { redirect: location.href }, + }) + }, + component: AuthenticatedLayout, +}) diff --git a/new-api/web/default/src/routes/_authenticated/sk-sources/index.tsx b/heicode/web/default/src/routes/_authenticated/sk-sources/index.tsx similarity index 100% rename from new-api/web/default/src/routes/_authenticated/sk-sources/index.tsx rename to heicode/web/default/src/routes/_authenticated/sk-sources/index.tsx diff --git a/new-api/web/default/src/routes/_authenticated/subscriptions/index.tsx b/heicode/web/default/src/routes/_authenticated/subscriptions/index.tsx similarity index 100% rename from new-api/web/default/src/routes/_authenticated/subscriptions/index.tsx rename to heicode/web/default/src/routes/_authenticated/subscriptions/index.tsx diff --git a/new-api/web/default/src/routes/_authenticated/system-settings/auth/$section.tsx b/heicode/web/default/src/routes/_authenticated/system-settings/auth/$section.tsx similarity index 100% rename from new-api/web/default/src/routes/_authenticated/system-settings/auth/$section.tsx rename to heicode/web/default/src/routes/_authenticated/system-settings/auth/$section.tsx diff --git a/new-api/web/default/src/routes/_authenticated/system-settings/auth/index.tsx b/heicode/web/default/src/routes/_authenticated/system-settings/auth/index.tsx similarity index 100% rename from new-api/web/default/src/routes/_authenticated/system-settings/auth/index.tsx rename to heicode/web/default/src/routes/_authenticated/system-settings/auth/index.tsx diff --git a/new-api/web/default/src/routes/_authenticated/system-settings/content/$section.tsx b/heicode/web/default/src/routes/_authenticated/system-settings/content/$section.tsx similarity index 100% rename from new-api/web/default/src/routes/_authenticated/system-settings/content/$section.tsx rename to heicode/web/default/src/routes/_authenticated/system-settings/content/$section.tsx diff --git a/new-api/web/default/src/routes/_authenticated/system-settings/content/index.tsx b/heicode/web/default/src/routes/_authenticated/system-settings/content/index.tsx similarity index 100% rename from new-api/web/default/src/routes/_authenticated/system-settings/content/index.tsx rename to heicode/web/default/src/routes/_authenticated/system-settings/content/index.tsx diff --git a/new-api/web/default/src/routes/_authenticated/system-settings/general/$section.tsx b/heicode/web/default/src/routes/_authenticated/system-settings/general/$section.tsx similarity index 100% rename from new-api/web/default/src/routes/_authenticated/system-settings/general/$section.tsx rename to heicode/web/default/src/routes/_authenticated/system-settings/general/$section.tsx diff --git a/new-api/web/default/src/routes/_authenticated/system-settings/general/index.tsx b/heicode/web/default/src/routes/_authenticated/system-settings/general/index.tsx similarity index 100% rename from new-api/web/default/src/routes/_authenticated/system-settings/general/index.tsx rename to heicode/web/default/src/routes/_authenticated/system-settings/general/index.tsx diff --git a/new-api/web/default/src/routes/_authenticated/system-settings/index.tsx b/heicode/web/default/src/routes/_authenticated/system-settings/index.tsx similarity index 100% rename from new-api/web/default/src/routes/_authenticated/system-settings/index.tsx rename to heicode/web/default/src/routes/_authenticated/system-settings/index.tsx diff --git a/new-api/web/default/src/routes/_authenticated/system-settings/integrations/$section.tsx b/heicode/web/default/src/routes/_authenticated/system-settings/integrations/$section.tsx similarity index 100% rename from new-api/web/default/src/routes/_authenticated/system-settings/integrations/$section.tsx rename to heicode/web/default/src/routes/_authenticated/system-settings/integrations/$section.tsx diff --git a/new-api/web/default/src/routes/_authenticated/system-settings/integrations/index.tsx b/heicode/web/default/src/routes/_authenticated/system-settings/integrations/index.tsx similarity index 100% rename from new-api/web/default/src/routes/_authenticated/system-settings/integrations/index.tsx rename to heicode/web/default/src/routes/_authenticated/system-settings/integrations/index.tsx diff --git a/new-api/web/default/src/routes/_authenticated/system-settings/maintenance/$section.tsx b/heicode/web/default/src/routes/_authenticated/system-settings/maintenance/$section.tsx similarity index 100% rename from new-api/web/default/src/routes/_authenticated/system-settings/maintenance/$section.tsx rename to heicode/web/default/src/routes/_authenticated/system-settings/maintenance/$section.tsx diff --git a/new-api/web/default/src/routes/_authenticated/system-settings/maintenance/index.tsx b/heicode/web/default/src/routes/_authenticated/system-settings/maintenance/index.tsx similarity index 100% rename from new-api/web/default/src/routes/_authenticated/system-settings/maintenance/index.tsx rename to heicode/web/default/src/routes/_authenticated/system-settings/maintenance/index.tsx diff --git a/new-api/web/default/src/routes/_authenticated/system-settings/models/$section.tsx b/heicode/web/default/src/routes/_authenticated/system-settings/models/$section.tsx similarity index 100% rename from new-api/web/default/src/routes/_authenticated/system-settings/models/$section.tsx rename to heicode/web/default/src/routes/_authenticated/system-settings/models/$section.tsx diff --git a/new-api/web/default/src/routes/_authenticated/system-settings/models/index.tsx b/heicode/web/default/src/routes/_authenticated/system-settings/models/index.tsx similarity index 100% rename from new-api/web/default/src/routes/_authenticated/system-settings/models/index.tsx rename to heicode/web/default/src/routes/_authenticated/system-settings/models/index.tsx diff --git a/new-api/web/default/src/routes/_authenticated/system-settings/request-limits/$section.tsx b/heicode/web/default/src/routes/_authenticated/system-settings/request-limits/$section.tsx similarity index 100% rename from new-api/web/default/src/routes/_authenticated/system-settings/request-limits/$section.tsx rename to heicode/web/default/src/routes/_authenticated/system-settings/request-limits/$section.tsx diff --git a/new-api/web/default/src/routes/_authenticated/system-settings/request-limits/index.tsx b/heicode/web/default/src/routes/_authenticated/system-settings/request-limits/index.tsx similarity index 100% rename from new-api/web/default/src/routes/_authenticated/system-settings/request-limits/index.tsx rename to heicode/web/default/src/routes/_authenticated/system-settings/request-limits/index.tsx diff --git a/new-api/web/default/src/routes/_authenticated/system-settings/route.tsx b/heicode/web/default/src/routes/_authenticated/system-settings/route.tsx similarity index 100% rename from new-api/web/default/src/routes/_authenticated/system-settings/route.tsx rename to heicode/web/default/src/routes/_authenticated/system-settings/route.tsx diff --git a/new-api/web/default/src/routes/_authenticated/templates/index.tsx b/heicode/web/default/src/routes/_authenticated/templates/index.tsx similarity index 100% rename from new-api/web/default/src/routes/_authenticated/templates/index.tsx rename to heicode/web/default/src/routes/_authenticated/templates/index.tsx diff --git a/new-api/web/default/src/routes/_authenticated/usage-logs/$section.tsx b/heicode/web/default/src/routes/_authenticated/usage-logs/$section.tsx similarity index 100% rename from new-api/web/default/src/routes/_authenticated/usage-logs/$section.tsx rename to heicode/web/default/src/routes/_authenticated/usage-logs/$section.tsx diff --git a/new-api/web/default/src/routes/_authenticated/usage-logs/index.tsx b/heicode/web/default/src/routes/_authenticated/usage-logs/index.tsx similarity index 100% rename from new-api/web/default/src/routes/_authenticated/usage-logs/index.tsx rename to heicode/web/default/src/routes/_authenticated/usage-logs/index.tsx diff --git a/new-api/web/default/src/routes/_authenticated/users/index.tsx b/heicode/web/default/src/routes/_authenticated/users/index.tsx similarity index 100% rename from new-api/web/default/src/routes/_authenticated/users/index.tsx rename to heicode/web/default/src/routes/_authenticated/users/index.tsx diff --git a/new-api/web/default/src/routes/_authenticated/wallet/index.tsx b/heicode/web/default/src/routes/_authenticated/wallet/index.tsx similarity index 100% rename from new-api/web/default/src/routes/_authenticated/wallet/index.tsx rename to heicode/web/default/src/routes/_authenticated/wallet/index.tsx diff --git a/new-api/web/default/src/routes/about/index.tsx b/heicode/web/default/src/routes/about/index.tsx similarity index 100% rename from new-api/web/default/src/routes/about/index.tsx rename to heicode/web/default/src/routes/about/index.tsx diff --git a/new-api/web/default/src/routes/index.tsx b/heicode/web/default/src/routes/index.tsx similarity index 100% rename from new-api/web/default/src/routes/index.tsx rename to heicode/web/default/src/routes/index.tsx diff --git a/new-api/web/default/src/routes/oauth/$provider.tsx b/heicode/web/default/src/routes/oauth/$provider.tsx similarity index 100% rename from new-api/web/default/src/routes/oauth/$provider.tsx rename to heicode/web/default/src/routes/oauth/$provider.tsx diff --git a/new-api/web/default/src/routes/pricing/$modelId/index.tsx b/heicode/web/default/src/routes/pricing/$modelId/index.tsx similarity index 100% rename from new-api/web/default/src/routes/pricing/$modelId/index.tsx rename to heicode/web/default/src/routes/pricing/$modelId/index.tsx diff --git a/new-api/web/default/src/routes/pricing/index.tsx b/heicode/web/default/src/routes/pricing/index.tsx similarity index 100% rename from new-api/web/default/src/routes/pricing/index.tsx rename to heicode/web/default/src/routes/pricing/index.tsx diff --git a/new-api/web/default/src/routes/privacy-policy.tsx b/heicode/web/default/src/routes/privacy-policy.tsx similarity index 100% rename from new-api/web/default/src/routes/privacy-policy.tsx rename to heicode/web/default/src/routes/privacy-policy.tsx diff --git a/new-api/web/default/src/routes/setup/index.tsx b/heicode/web/default/src/routes/setup/index.tsx similarity index 100% rename from new-api/web/default/src/routes/setup/index.tsx rename to heicode/web/default/src/routes/setup/index.tsx diff --git a/new-api/web/default/src/routes/user-agreement.tsx b/heicode/web/default/src/routes/user-agreement.tsx similarity index 100% rename from new-api/web/default/src/routes/user-agreement.tsx rename to heicode/web/default/src/routes/user-agreement.tsx diff --git a/new-api/web/default/src/stores/auth-store.ts b/heicode/web/default/src/stores/auth-store.ts similarity index 100% rename from new-api/web/default/src/stores/auth-store.ts rename to heicode/web/default/src/stores/auth-store.ts diff --git a/new-api/web/default/src/stores/notification-store.ts b/heicode/web/default/src/stores/notification-store.ts similarity index 100% rename from new-api/web/default/src/stores/notification-store.ts rename to heicode/web/default/src/stores/notification-store.ts diff --git a/new-api/web/default/src/stores/system-config-store.ts b/heicode/web/default/src/stores/system-config-store.ts similarity index 100% rename from new-api/web/default/src/stores/system-config-store.ts rename to heicode/web/default/src/stores/system-config-store.ts diff --git a/new-api/web/default/src/styles/index.css b/heicode/web/default/src/styles/index.css similarity index 100% rename from new-api/web/default/src/styles/index.css rename to heicode/web/default/src/styles/index.css diff --git a/new-api/web/default/src/styles/theme.css b/heicode/web/default/src/styles/theme.css similarity index 100% rename from new-api/web/default/src/styles/theme.css rename to heicode/web/default/src/styles/theme.css diff --git a/new-api/web/default/src/styles/tokens.css b/heicode/web/default/src/styles/tokens.css similarity index 100% rename from new-api/web/default/src/styles/tokens.css rename to heicode/web/default/src/styles/tokens.css diff --git a/new-api/web/default/src/tanstack-table.d.ts b/heicode/web/default/src/tanstack-table.d.ts similarity index 100% rename from new-api/web/default/src/tanstack-table.d.ts rename to heicode/web/default/src/tanstack-table.d.ts diff --git a/new-api/web/default/tsconfig.app.json b/heicode/web/default/tsconfig.app.json similarity index 100% rename from new-api/web/default/tsconfig.app.json rename to heicode/web/default/tsconfig.app.json diff --git a/new-api/web/default/tsconfig.json b/heicode/web/default/tsconfig.json similarity index 100% rename from new-api/web/default/tsconfig.json rename to heicode/web/default/tsconfig.json diff --git a/new-api/web/default/tsconfig.node.json b/heicode/web/default/tsconfig.node.json similarity index 100% rename from new-api/web/default/tsconfig.node.json rename to heicode/web/default/tsconfig.node.json diff --git a/new-api/new-api.service b/new-api/new-api.service deleted file mode 100644 index 5a29336..0000000 --- a/new-api/new-api.service +++ /dev/null @@ -1,18 +0,0 @@ -# File path: /etc/systemd/system/new-api.service -# sudo systemctl daemon-reload -# sudo systemctl start new-api -# sudo systemctl enable new-api -# sudo systemctl status new-api -[Unit] -Description=One API Service -After=network.target - -[Service] -User=ubuntu # 注意修改用户名 -WorkingDirectory=/path/to/new-api # 注意修改路径 -ExecStart=/path/to/new-api/new-api --port 3000 --log-dir /path/to/new-api/logs # 注意修改路径和端口号 -Restart=always -RestartSec=5 - -[Install] -WantedBy=multi-user.target diff --git a/new-api/web/default/src/routes/_authenticated/route.tsx b/new-api/web/default/src/routes/_authenticated/route.tsx deleted file mode 100644 index 27085fd..0000000 --- a/new-api/web/default/src/routes/_authenticated/route.tsx +++ /dev/null @@ -1,38 +0,0 @@ -import { createFileRoute, redirect } from '@tanstack/react-router' -import { useAuthStore } from '@/stores/auth-store' -import { getHeicodeCurrentUser } from '@/features/auth/api' -import { AuthenticatedLayout } from '@/components/layout' - -// 内存中的验证标记,避免同一会话中重复验证 -let sessionVerified = false - -export const Route = createFileRoute('/_authenticated')({ - beforeLoad: async ({ location }) => { - const { auth } = useAuthStore.getState() - - // 如果本地没有用户信息,直接跳转登录页 - if (!auth.user) { - throw redirect({ - to: '/sign-in', - search: { redirect: location.href }, - }) - } - - // 本地有用户信息,但需要验证 session 是否有效(每个会话只验证一次) - if (!sessionVerified) { - const heicodeUser = await getHeicodeCurrentUser().catch(() => null) - if (heicodeUser) { - auth.setUser(heicodeUser) - sessionVerified = true - } else { - // 外部认证验证失败,清除本地缓存并跳转登录页 - auth.reset() - throw redirect({ - to: '/sign-in', - search: { redirect: location.href }, - }) - } - } - }, - component: AuthenticatedLayout, -})