MCPcopy Create free account

hub / github.com/Tron521/codex-console-temp / functions

Functions2,218 in github.com/Tron521/codex-console-temp

↓ 2 callersFunctionviewAccount
(id)
static/js/accounts.js:1518
↓ 2 callersFunctionwatchDomainTask
(fetchTask, onUpdate, maxWaitMs = 20 * 60 * 1000, options = {})
static/js/accounts.js:76
↓ 2 callersFunctionwebsocket_auth_failure
()
src/web/auth.py:92
↓ 1 callersMethod__init__
初始化 HTTP 客户端 Args: proxy_url: 代理 URL,如 "http://127.0.0.1:7890" config: 请求配置 session: 可重用的会话对象
src/core/http_client.py:45
↓ 1 callersMethod__init__
( self, email: str, password: str, client_id: str = "", refresh_token:
src/services/outlook_legacy_mail.py:54
↓ 1 callersMethod__init__
(self, steps)
tests/test_registration_engine.py:26
↓ 1 callersMethod__init__
(self, status_code=200, payload=None, text="", headers=None)
tests/test_registration_sentinel_flow.py:29
↓ 1 callersMethod__str__
字符串表示
src/services/outlook/providers/base.py:175
↓ 1 callersMethod_admin_headers
构造 admin 请求头
src/services/temp_mail.py:280
↓ 1 callersFunction_append_repair_rollback_entry
(entry: Dict[str, Any])
src/core/system_selfcheck.py:973
↓ 1 callersMethod_authenticate_xoauth2
使用 XOAUTH2 认证 Returns: 是否认证成功
src/services/outlook/providers/imap_new.py:102
↓ 1 callersMethod_authenticate_xoauth2
使用 XOAUTH2 认证 Returns: 是否认证成功
src/services/outlook/providers/imap_old.py:112
↓ 1 callersFunction_auto_bind_with_cdp_checkout
ABCard 风格: 外部 Chrome + CDP 连接,降低自动化特征后执行 checkout 填卡。
src/core/openai/browser_bind.py:417
↓ 1 callersFunction_b64url_no_pad
Base64 URL 编码(无填充)
src/core/openai/oauth.py:26
↓ 1 callersFunction_bootstrap_session_token_by_abcard_bridge
ABCard 同款 next-auth 会话桥接: 1) /api/auth/csrf 2) /api/auth/signin/openai 3) /api/auth/session Returns: (session_token, fres
src/web/routes/payment.py:607
↓ 1 callersFunction_bootstrap_session_token_by_relogin
二级兜底:用账号邮箱+密码走一次登录链路,自动收 OTP 并补齐 session token。
src/web/routes/payment.py:844
↓ 1 callersMethod_bridge_login_for_session_token
当 chatgpt signin/openai 跳回 auth.openai 登录页时,自动补一次登录流程: login -> password -> email otp -> workspace -> auth/session。
src/core/register.py:1239
↓ 1 callersMethod_broadcast_batch_log
广播批量任务日志
src/web/task_manager.py:266
↓ 1 callersMethod_broadcast_batch_status
广播批量任务状态
src/web/task_manager.py:307
↓ 1 callersMethod_broadcast_log
广播日志到所有 WebSocket 连接
src/web/task_manager.py:116
↓ 1 callersMethod_build_anyauto_fallback_result
Map PR60 AnyAuto V2 output into the current RegistrationResult structure.
src/core/register.py:3096
↓ 1 callersMethod_build_appeal_payload
( self, reason: str, context: Dict[str, Any], )
src/services/luckmail_mail.py:489
↓ 1 callersFunction_build_checkout_bundle_from_payload
(data, proxy: Optional[str] = None)
src/core/openai/payment.py:203
↓ 1 callersFunction_build_checkout_request_headers
(account: Account, proxy: Optional[str])
src/core/openai/payment.py:743
↓ 1 callersFunction_build_engine_options
(database_url: str)
src/database/session.py:74
↓ 1 callersFunction_build_fake_get_db
(manager: DatabaseSessionManager)
tests/test_registration_task_recovery.py:9
↓ 1 callersFunction_build_headers
(account: Account)
src/core/openai/overview.py:150
↓ 1 callersMethod_build_headers
( self, *, token: Optional[str] = None, use_api_key: bool = False, ext
src/services/yyds_mail.py:57
↓ 1 callersMethod_build_headers
( self, token: Optional[str] = None, use_api_key: bool = False, extra_headers:
src/services/duck_mail.py:58
↓ 1 callersFunction_build_http_session
(proxy_url: Optional[str])
src/core/system_selfcheck.py:134
↓ 1 callersFunction_build_inbox_config
根据账号邮箱服务类型从数据库构建服务配置(不传 proxy_url)
src/web/routes/accounts.py:2468
↓ 1 callersFunction_build_official_checkout_url
(checkout_session_id: Optional[str])
src/web/routes/payment.py:1297
↓ 1 callersFunction_build_openai_sentinel_token
生成 openai-sentinel-token(失败时返回 None,不阻断主流程)。
src/core/openai/payment.py:644
↓ 1 callersFunction_build_playwright_proxy_config
(proxy: Optional[str])
src/core/anyauto/sentinel_browser.py:24
↓ 1 callersFunction_build_preview_item
(key: str, run_id: int)
src/core/system_selfcheck.py:981
↓ 1 callersFunction_build_proxies
(proxy: Optional[str])
src/core/openai/overview.py:58
↓ 1 callersMethod_build_purchase_order_info
( self, item: Any, project_code: str, email_type: str, preferred_domai
src/services/luckmail_mail.py:668
↓ 1 callersFunction_build_repair_snapshot
(run_id: int, repair_keys: List[str])
src/core/system_selfcheck.py:907
↓ 1 callersFunction_build_static_asset_version
(static_dir: Path)
src/web/app.py:43
↓ 1 callersMethod_build_summary_text
(run_result: Dict[str, Any])
src/web/auto_quick_refresh_scheduler.py:79
↓ 1 callersFunction_build_third_party_bind_api_candidates
对第三方地址做容错: - 支持只给根域名(自动补 /api/v1/bind-card) - 支持给到 /api/v1(自动补 /bind-card) - 保留原始路径作为首选
src/web/routes/payment.py:1356
↓ 1 callersFunction_build_third_party_status_api_candidates
(api_url: str)
src/web/routes/payment.py:1645
↓ 1 callersFunction_build_us_line1
()
src/core/openai/random_billing.py:296
↓ 1 callersFunction_build_us_postal
(prefix: str)
src/core/openai/random_billing.py:306
↓ 1 callersMethod_build_xoauth2
构建 XOAUTH2 认证字符串
src/services/outlook_legacy_mail.py:150
↓ 1 callersMethod_cache_account
(self, account_info: Dict[str, Any])
src/services/duck_mail.py:127
↓ 1 callersMethod_cache_mailbox
(self, mailbox: Dict[str, Any])
src/services/web2_mail.py:60
↓ 1 callersMethod_cache_order
(self, info: Dict[str, Any])
src/services/luckmail_mail.py:151
↓ 1 callersFunction_can_bind_port
检测端口是否可用(可绑定)。
webui.py:48
↓ 1 callersFunction_cancel_batch_tasks
(batch_id: str)
src/web/routes/registration.py:130
↓ 1 callersMethod_capture_access_token_light
轻量从 /api/auth/session 抓 accessToken(不依赖 session_token)。
src/core/register.py:1982
↓ 1 callersFunction_check_accounts_auth
(mode: str, proxy_url: Optional[str])
src/core/system_selfcheck.py:472
↓ 1 callersMethod_check_ip_location
检查 IP 地理位置
src/core/register.py:421
↓ 1 callersFunction_check_network
(proxy_url: Optional[str])
src/core/system_selfcheck.py:312
↓ 1 callersFunction_clamp_int
(value: Any, min_value: int, max_value: int, default: int)
src/web/selfcheck_scheduler.py:36
↓ 1 callersMethod_cleanup_inflight_email_claims
(self, now_ts: Optional[float] = None)
src/services/luckmail_mail.py:170
↓ 1 callersFunction_cleanup_stale_outlook_account_claims
(now_ts: Optional[float] = None)
src/web/routes/registration.py:62
↓ 1 callersMethod_complete_token_exchange
在登录态已建立后,补齐 session/access,并尽量获取 OAuth token。
src/core/register.py:1417
↓ 1 callersMethod_complete_token_exchange_outlook
Outlook 入口链路(迁移版): 对齐 codex-console-main-clean 的收尾流程, 走「登录 OTP -> Workspace -> OAuth callback」主干,避免 ABCard/native 增强链路干扰。
src/core/register.py:1717
↓ 1 callersFunction_count_status
(rows: List[Dict[str, Any]])
src/web/routes/tasks.py:48
↓ 1 callersMethod_create_email
创建邮箱
src/core/register.py:429
↓ 1 callersMethod_create_order_inbox
( self, project_code: str, email_type: str, preferred_domain: str, spe
src/services/luckmail_mail.py:777
↓ 1 callersMethod_create_provider
创建提供者实例 Args: account: Outlook 账户 provider_type: 提供者类型 Returns: 提供者实例
src/services/outlook/service.py:177
↓ 1 callersMethod_decode_cookie_json_value
(value)
src/core/anyauto/oauth_client.py:1270
↓ 1 callersMethod_decode_str
解码邮件头部字段
src/services/imap_mail.py:56
↓ 1 callersFunction_describe_token_completeness
(token_completeness: Any)
src/web/routes/registration.py:526
↓ 1 callersFunction_detect_challenge
(page, page_text_lower: str)
src/core/openai/browser_bind.py:1024
↓ 1 callersFunction_detect_plan
(account: Account, payloads: Dict[str, Dict[str, Any]])
src/core/openai/overview.py:727
↓ 1 callersFunction_detect_plan_from_payload
(payload: Dict[str, Any], source_name: str)
src/core/openai/overview.py:717
↓ 1 callersFunction_detect_window_match
(path: str, payload: Dict[str, Any], window: str)
src/core/openai/overview.py:346
↓ 1 callersFunction_encode_pow_payload
(config: Sequence[object], nonce: int)
src/core/openai/sentinel.py:59
↓ 1 callersMethod_ensure_connection
确保连接有效
src/services/outlook_legacy_mail.py:175
↓ 1 callersMethod_ensure_domains
获取并缓存可用域名列表
src/services/freemail.py:113
↓ 1 callersMethod_ensure_session_token_strict
强制确保 session_token 可用。 - 先走 auth/session 直抓 - 再走 ABCard 同款会话桥接 连续多轮失败则返回 False。
src/core/register.py:1832
↓ 1 callersMethod_execute_with_retry
(self, schedule: Dict[str, Any], reason: str)
src/web/auto_quick_refresh_scheduler.py:259
↓ 1 callersMethod_extract_body
提取邮件正文
src/services/outlook_legacy_mail.py:296
↓ 1 callersMethod_extract_body
提取邮件正文
src/services/outlook/providers/imap_old.py:320
↓ 1 callersMethod_extract_body_from_message
从 MIME 邮件对象中提取可读正文。
src/services/temp_mail.py:152
↓ 1 callersFunction_extract_chatgpt_plan_from_jwt
(token: Optional[str])
src/core/openai/overview.py:130
↓ 1 callersMethod_extract_code
(self, message: Dict[str, Any], pattern: str)
src/services/web2_mail.py:159
↓ 1 callersMethod_extract_code_from_mail
从邮件中提取验证码 优先级: 1. 从主题提取(6位数字) 2. 从正文用语义正则提取(如 "code is 123456") 3. 兜底:任意 6 位数字 Args: ma
src/services/outlook_legacy_mail.py:673
↓ 1 callersFunction_extract_code_review_quota
Code Review 配额:优先读取 wham/usage.code_review_rate_limit 的 primary/secondary_window。
src/core/openai/overview.py:539
↓ 1 callersFunction_extract_cookie_value
(cookies_str: str, key: str)
src/core/openai/overview.py:64
↓ 1 callersFunction_extract_cookie_value
(cookies_text: Optional[str], cookie_name: str)
src/web/routes/accounts.py:337
↓ 1 callersFunction_extract_cookie_value_from_items
(items: List[dict], name: str)
src/core/openai/browser_bind.py:242
↓ 1 callersMethod_extract_first_purchase_item
(self, purchased: Any)
src/services/luckmail_mail.py:819
↓ 1 callersMethod_extract_from_subject
从主题提取验证码
src/services/outlook/email_parser.py:105
↓ 1 callersMethod_extract_mail_detail_from_response
从详情接口响应里提取单封邮件对象。
src/services/temp_mail.py:424
↓ 1 callersMethod_extract_mail_id
提取邮件唯一标识,兼容不同字段;缺失时生成稳定回退 ID。
src/services/temp_mail.py:553
↓ 1 callersMethod_extract_mails_from_response
从不同返回结构中提取邮件列表。 兼容以下常见格式: - {"results": [...]} - {"mails": [...]} - {"data": [...]} - {"items": [...
src/services/temp_mail.py:292
↓ 1 callersMethod_extract_message_id
(self, message: Dict[str, Any])
src/services/web2_mail.py:152
↓ 1 callersMethod_extract_otp
从文本中提取 6 位验证码,优先语义匹配,回退简单匹配
src/services/imap_mail.py:98
↓ 1 callersMethod_extract_otp_code
(self, content: str, pattern: str)
src/services/yyds_mail.py:256
↓ 1 callersMethod_extract_password_from_task_logs
(self, logs_text: str)
src/services/luckmail_mail.py:255
↓ 1 callersFunction_extract_publishable_key_from_payload
(data)
src/core/openai/payment.py:184
↓ 1 callersFunction_extract_quota_candidate
(payload: Dict[str, Any])
src/core/openai/overview.py:573
↓ 1 callersFunction_extract_quota_from_rate_limit
对齐 cockpit:优先 wham/usage.rate_limit;缺失时使用 codex/usage.rate_limit 兜底。
src/core/openai/overview.py:504
↓ 1 callersFunction_extract_random_url
(page_html: str, page_url: str)
src/core/openai/random_billing.py:255
↓ 1 callersMethod_extract_semantic
语义匹配提取验证码
src/services/outlook/email_parser.py:112
↓ 1 callersMethod_extract_session_data_from_consent_html
从 consent HTML 的 React Router stream 中提取 workspace session 数据。
src/core/anyauto/oauth_client.py:1150
← previousnext →701–800 of 2,218, ranked by callers