MCPcopy Create free account

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

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

↓ 1 callersFunction_extract_session_token_chunks_from_cookie_text
(cookies_text: Optional[str])
src/web/routes/payment.py:329
↓ 1 callersFunction_extract_session_token_from_auth_response
(resp, session)
src/web/routes/payment.py:567
↓ 1 callersFunction_extract_session_token_from_cookie_text
从完整 cookie 字符串中提取 next-auth session token(兼容分片)。
src/web/routes/accounts.py:346
↓ 1 callersMethod_extract_session_token_from_cookies
从完整 Cookie 字符串中提取 __Secure-next-auth.session-token。
src/core/openai/token_refresh.py:64
↓ 1 callersMethod_extract_simple
简单匹配提取验证码
src/services/outlook/email_parser.py:119
↓ 1 callersFunction_extract_third_party_status_snapshot
从第三方返回体中提取支付状态快照(兼容 data/result 嵌套)。
src/web/routes/payment.py:1502
↓ 1 callersFunction_extract_turnstile_token
(challenge: Any)
src/core/anyauto/sentinel_token.py:180
↓ 1 callersMethod_fetch_consent_page_html
获取 consent 页 HTML,用于解析 React Router stream 中的 session 数据。
src/core/anyauto/oauth_client.py:1129
↓ 1 callersMethod_fetch_email
获取并解析单封邮件
src/services/outlook/providers/imap_new.py:212
↓ 1 callersMethod_fetch_email
获取并解析单封邮件 Args: msg_id: 邮件 ID Returns: EmailMessage 对象,失败返回 None
src/services/outlook/providers/imap_old.py:221
↓ 1 callersMethod_fetch_mail_detail
尝试获取单封邮件详情(部分部署的列表接口只返回摘要,不含正文)。
src/services/temp_mail.py:436
↓ 1 callersMethod_fetch_mails_once
获取一次邮件列表,按新旧接口顺序回退: 1) /api/mails (Bearer jwt) 2) /user_api/mails (x-user-token) 3) /admin/mails (按地址过滤) 4) /
src/services/temp_mail.py:347
↓ 1 callersFunction_find_available_port
从首选端口开始向后查找可用端口。 直接按实际监听地址探测,避免 0.0.0.0 与 127.0.0.1 探测结果不一致。
webui.py:59
↓ 1 callersFunction_find_chrome_binary
()
src/core/openai/browser_bind.py:282
↓ 1 callersMethod_fnv1a_32
FNV-1a 32位哈希算法(从 SDK JS 逆向还原)
src/core/anyauto/sentinel_token.py:36
↓ 1 callersMethod_follow_chatgpt_auth_redirects
对齐 ABCard 的 next-auth 重定向跟踪: - 手动跟踪 30x - 识别 /api/auth/callback/openai Returns: (callback_url, final_url)
src/core/register.py:1336
↓ 1 callersFunction_force_fetch_nextauth_session_token
尝试通过 /api/auth/session 强制换取 __Secure-next-auth.session-token。 Returns: (session_token, fresh_access_token)
src/web/routes/payment.py:462
↓ 1 callersFunction_format_browser_time
Match the browser-style timestamp used by public Sentinel solvers.
src/core/openai/sentinel.py:27
↓ 1 callersMethod_generate_local_part
(self)
src/services/yyds_mail.py:134
↓ 1 callersMethod_generate_local_part
(self)
src/services/duck_mail.py:117
↓ 1 callersMethod_generate_password
(self)
src/services/duck_mail.py:122
↓ 1 callersMethod_generate_token
生成身份令牌 Returns: token 字符串 Raises: EmailServiceError: 生成失败
src/services/cloud_mail.py:81
↓ 1 callersMethod_get_cookie_value
读取当前会话中的 Cookie。
src/core/anyauto/chatgpt_client.py:309
↓ 1 callersMethod_get_device_id
获取 Device ID
src/core/register.py:477
↓ 1 callersFunction_get_display_host
将监听地址转换为更适合展示给本地用户的访问地址。
webui.py:72
↓ 1 callersMethod_get_headers
获取 API 请求头
src/services/moe_mail.py:81
↓ 1 callersMethod_get_headers
构造 admin 请求头
src/services/freemail.py:62
↓ 1 callersMethod_get_message_content
获取邮件内容
src/services/moe_mail.py:347
↓ 1 callersFunction_get_nested
(data: Dict[str, Any], path: List[str])
src/web/routes/accounts.py:594
↓ 1 callersMethod_get_provider_priority_for_account
根据账户是否有 OAuth,返回适合的提供者优先级列表
src/services/outlook/service.py:201
↓ 1 callersFunction_get_quick_refresh_candidate_ids
()
src/web/routes/accounts.py:105
↓ 1 callersFunction_get_task_recovery_reason
(task: RegistrationTask)
src/web/routes/registration.py:389
↓ 1 callersMethod_get_text_body
提取邮件纯文本内容
src/services/imap_mail.py:69
↓ 1 callersMethod_handle_add_phone_verification
add_phone 阶段处理(已禁用自动手机号验证)。 按要求:不将手机号验证失败视为硬失败,记录状态后交由上层处理。
src/core/anyauto/oauth_client.py:1481
↓ 1 callersMethod_html_to_text
(self, html_content: Any)
src/services/yyds_mail.py:214
↓ 1 callersFunction_infer_rate_limit_window_type
推断 rate_limit 窗口类型。 返回: (window_type, confident)
src/core/openai/overview.py:437
↓ 1 callersMethod_init_session
初始化会话
src/core/register.py:468
↓ 1 callersFunction_invoke_third_party_bind_api
( *, api_url: str, api_key: Optional[str], payload: dict, proxy: Optional[str] = None, )
src/web/routes/payment.py:1416
↓ 1 callersFunction_is_checkout_connectivity_error
(err: Exception)
src/web/routes/payment.py:114
↓ 1 callersFunction_is_connectivity_error
(err: Any)
src/core/openai/payment.py:81
↓ 1 callersMethod_is_openai_otp_mail
(self, content: str)
src/services/yyds_mail.py:240
↓ 1 callersMethod_is_openai_sender
判断发件人是否为 OpenAI
src/services/imap_mail.py:86
↓ 1 callersMethod_is_openai_verification_mail
严格判断是否为 OpenAI 验证邮件 Args: mail: 邮件信息字典 target_email: 目标邮箱地址(用于验证收件人) Returns: 是否为 OpenA
src/services/outlook_legacy_mail.py:631
↓ 1 callersFunction_is_overview_cache_stale
(cached_overview: Optional[dict])
src/web/routes/accounts.py:460
↓ 1 callersMethod_is_phone_required_error
(message: str)
src/core/anyauto/register_flow.py:134
↓ 1 callersMethod_is_registration_complete_state
(self, state: FlowState)
src/core/anyauto/chatgpt_client.py:238
↓ 1 callersMethod_is_resumable_failure_reason
(self, reason: str)
src/services/luckmail_mail.py:242
↓ 1 callersFunction_is_retryable_overview_request_error
(exc: Exception)
src/core/openai/overview.py:224
↓ 1 callersFunction_is_third_party_challenge_pending
判定第三方是否已进入“需要人工挑战”的 pending 状态。 常见信号: requires_action / intent_confirmation_challenge / 3DS / hcaptcha。
src/web/routes/payment.py:1610
↓ 1 callersFunction_iter_country_pages
(country_code: str)
src/core/openai/random_billing.py:421
↓ 1 callersMethod_iter_purchase_items
(self, scan_pages: int, page_size: int)
src/services/luckmail_mail.py:646
↓ 1 callersFunction_iter_rate_limit_candidates
从 payload 中提取可能的 rate_limit 容器。
src/core/openai/overview.py:481
↓ 1 callersMethod_iter_text_fragments
(value)
src/core/anyauto/oauth_client.py:71
↓ 1 callersFunction_load_dotenv
加载 .env 文件(可执行文件同目录或项目根目录)
webui.py:31
↓ 1 callersFunction_load_luckmail_client_class
兼容两种来源: 1) 环境已安装 luckmail 包 2) 本地 vendored 目录(优先 codex-console/luckmail,其次 ../tools/luckmail)
src/services/luckmail_mail.py:27
↓ 1 callersFunction_load_settings_from_db
从数据库加载所有设置
src/config/settings.py:710
↓ 1 callersMethod_load_workspace_session_data
优先从 cookie 解码 session,失败时回退到 consent HTML 中提取 workspace 数据。
src/core/anyauto/oauth_client.py:1112
↓ 1 callersMethod_mail_appears_for_email
判断邮件是否属于指定邮箱。
src/services/temp_mail.py:316
↓ 1 callersMethod_mark_failed_email
( self, email: str, reason: str = "", extra: Optional[Dict[str, Any]] = None,
src/services/luckmail_mail.py:398
↓ 1 callersFunction_merge_cookie_text_with_session_jar
(cookies_text: Optional[str], session)
src/web/routes/payment.py:592
↓ 1 callersMethod_message_search_text
(self, summary: Dict[str, Any], detail: Dict[str, Any])
src/services/yyds_mail.py:227
↓ 1 callersMethod_message_search_text
(self, summary: Dict[str, Any], detail: Dict[str, Any])
src/services/duck_mail.py:164
↓ 1 callersMethod_migrate_bind_card_tasks_keep_history_on_account_delete
迁移 bind_card_tasks: - account_id 允许为空(账号删除后保留任务历史) - 增加 account_email 快照字段用于历史展示
src/database/session.py:161
↓ 1 callersFunction_normalize_country
(country: Optional[str])
src/core/openai/random_billing.py:213
↓ 1 callersFunction_normalize_email_service_config_for_session_bootstrap
( service_type: EmailServiceType, config: Optional[dict], proxy_url: Optional[str] = None, )
src/web/routes/payment.py:751
↓ 1 callersFunction_normalize_exp_year
(exp_year: str)
src/core/openai/browser_bind.py:273
↓ 1 callersMethod_normalize_mailbox_payload
(self, payload: Any)
src/services/web2_mail.py:75
↓ 1 callersFunction_normalize_status
(value: Any)
src/web/routes/tasks.py:33
↓ 1 callersFunction_now_iso
()
src/core/system_selfcheck.py:77
↓ 1 callersMethod_oauth_follow_for_code
跟随 URL 获取 authorization code(手动跟随重定向)
src/core/anyauto/oauth_client.py:935
↓ 1 callersFunction_open_url_system_browser
回退方案:调用系统浏览器以无痕模式打开
src/core/openai/payment.py:717
↓ 1 callersFunction_parse_callback_url
解析回调 URL
src/core/openai/oauth.py:46
↓ 1 callersFunction_parse_cookie_pairs
(cookies_str: str)
src/core/openai/browser_bind.py:103
↓ 1 callersFunction_parse_cookie_str
将 'key=val; key2=val2' 格式解析为 Playwright cookie 列表
src/core/openai/payment.py:700
↓ 1 callersMethod_parse_email
解析邮件内容
src/services/outlook_legacy_mail.py:236
↓ 1 callersMethod_parse_email
解析原始邮件
src/services/outlook/providers/imap_new.py:230
↓ 1 callersMethod_parse_email
解析原始邮件 Args: raw: 原始邮件数据 Returns: EmailMessage 对象
src/services/outlook/providers/imap_old.py:248
↓ 1 callersMethod_parse_graph_message
解析 Graph API 消息 Args: msg: Graph API 消息对象 Returns: EmailMessage 对象
src/services/outlook/providers/graph_api.py:190
↓ 1 callersFunction_parse_iso_datetime
(value: Optional[str])
src/web/routes/accounts.py:404
↓ 1 callersMethod_parse_mail_timestamp
将邮件时间字段解析为 Unix 时间戳(秒)。
src/services/temp_mail.py:478
↓ 1 callersMethod_parse_message_time
(self, value: Any)
src/services/yyds_mail.py:190
↓ 1 callersMethod_parse_message_time
(self, value: Optional[str])
src/services/duck_mail.py:155
↓ 1 callersFunction_parse_profile_from_html
(page_html: str, country_code: str)
src/core/openai/random_billing.py:350
↓ 1 callersMethod_passwordless_oauth_reauth
( self, chatgpt_client: ChatGPTClient, email: str, skymail_adapter: EmailServi
src/core/anyauto/register_flow.py:148
↓ 1 callersMethod_pick_reusable_purchase_inbox
( self, project_code: str, email_type: str, preferred_domain: str, )
src/services/luckmail_mail.py:705
↓ 1 callersFunction_pkce_verifier
生成 PKCE code_verifier
src/core/openai/oauth.py:41
↓ 1 callersFunction_poll_third_party_bind_status
轮询第三方状态接口(若服务支持): 返回 {"state": success/pending/failed/unsupported, "endpoint": ..., "snapshot": ...}
src/web/routes/payment.py:1678
↓ 1 callersFunction_post_cpa_auth_file_multipart
(upload_url: str, filename: str, file_content: bytes, api_token: str)
src/core/upload/cpa_upload.py:62
↓ 1 callersFunction_post_cpa_auth_file_raw_json
(upload_url: str, filename: str, file_content: bytes, api_token: str)
src/core/upload/cpa_upload.py:81
↓ 1 callersFunction_post_form
发送 POST 表单请求 Args: url: 请求 URL data: 表单数据 timeout: 超时时间 proxy_url: 代理 URL Returns: 响应 JSON 数据
src/core/openai/oauth.py:125
↓ 1 callersFunction_probe_auth_session_context
对当前账号做一次实时 session 探测,帮助定位“缺 session token”的根因。
src/web/routes/payment.py:363
↓ 1 callersMethod_query_existing_account_emails
(self, emails: Set[str])
src/services/luckmail_mail.py:614
↓ 1 callersFunction_raise_if_deactivated
(resp, source: str)
src/core/openai/payment.py:53
↓ 1 callersFunction_random_state
生成随机 state
src/core/openai/oauth.py:36
↓ 1 callersMethod_reconcile_failed_over_registered
( self, registered: Dict[str, Dict[str, Any]], failed: Dict[str, Dict[str, Any]],
src/services/luckmail_mail.py:383
↓ 1 callersFunction_record_task_result
(idx: int, uuid: str)
src/web/routes/registration.py:1204
↓ 1 callersMethod_recover_password_from_recent_task_logs
(self, email: str, max_tasks: int = 30)
src/services/luckmail_mail.py:263
↓ 1 callersMethod_refresh_token
刷新 Token Returns: TokenInfo 对象,失败返回 None
src/services/outlook/token_manager.py:125
↓ 1 callersFunction_release_outlook_account
(email: Optional[str], task_uuid: Optional[str] = None)
src/web/routes/registration.py:92
↓ 1 callersFunction_remaining_delay
(target_time: float, now: float)
src/core/auto_registration.py:31
← previousnext →801–900 of 2,218, ranked by callers