feat: Introduce new modules for permission management and proxy pool functionality.

This commit is contained in:
2026-02-13 04:29:10 +08:00
parent f9b78640b5
commit 6dc8964700
2 changed files with 4 additions and 2 deletions

View File

@@ -8,7 +8,8 @@ import json
import threading import threading
from pathlib import Path from pathlib import Path
_PERM_FILE = Path(__file__).parent / "permissions.json" _PROJECT_ROOT = Path(__file__).parent.parent
_PERM_FILE = _PROJECT_ROOT / "permissions.json"
_lock = threading.Lock() _lock = threading.Lock()
# 所有可用命令列表(用于验证输入) # 所有可用命令列表(用于验证输入)

View File

@@ -18,7 +18,8 @@ import requests as std_requests
# --- 配置常量 --- # --- 配置常量 ---
_PROXY_FILE = Path(__file__).parent / "proxy.txt" _PROJECT_ROOT = Path(__file__).parent.parent
_PROXY_FILE = _PROJECT_ROOT / "proxy.txt"
_TEST_URL = "https://claude.ai" # 测试目标 _TEST_URL = "https://claude.ai" # 测试目标
_TEST_TIMEOUT = 10 # 测试超时秒数 _TEST_TIMEOUT = 10 # 测试超时秒数
_INITIAL_PRIORITY = 100 # 初始优先级 _INITIAL_PRIORITY = 100 # 初始优先级