MCPcopy Create free account

hub / github.com/Alishahryar1/free-claude-code / functions

Functions3,538 in github.com/Alishahryar1/free-claude-code

↓ 7 callersFunction_mk_req
(messages, tools=None, system=None)
tests/api/test_request_utils_filepaths_and_suggestions.py:13
↓ 7 callersFunction_models_payload
(*model_ids: str)
tests/cli/test_codex_model_catalog.py:18
↓ 7 callersFunction_toml_assignment
(key: str, value: str)
cli/launchers/codex.py:203
↓ 7 callersMethodappend_text_suffix
(self, suffix: str)
core/anthropic/streaming/ledger.py:468
↓ 7 callersMethodappend_thinking_suffix
(self, suffix: str)
core/anthropic/streaming/ledger.py:477
↓ 7 callersMethodencode
(self, text: str)
tests/providers/test_stream_ledger.py:22
↓ 7 callersFunctionextract_provider_error_detail
Extract copyable upstream status/body/exception detail from provider errors.
providers/error_mapping.py:132
↓ 7 callersMethodfirst_model
(self)
smoke/lib/e2e.py:188
↓ 7 callersMethodflush
(self)
core/anthropic/streaming/recovery.py:156
↓ 7 callersMethodget_tree_snapshot
(self, root_id: str)
messaging/session/store.py:99
↓ 7 callersFunctionis_safety_classifier_request
Return whether this is Claude Code's auto-mode safety classifier prompt.
api/detection.py:74
↓ 7 callersMethodpush
(self, tool_id: str, segment: SubagentSegment)
messaging/transcript/subagents.py:30
↓ 7 callersMethodpush
(self, event: str)
core/anthropic/streaming/recovery.py:93
↓ 7 callersMethodqueue_edit_message
Queue or immediately edit a platform message.
messaging/platforms/outbox.py:71
↓ 7 callersMethodqueue_send_message
Queue or immediately send a platform message.
messaging/platforms/outbox.py:37
↓ 7 callersFunctionrender_markdown_to_mdv2
Render common Markdown into Telegram MarkdownV2.
messaging/rendering/telegram_markdown.py:52
↓ 7 callersMethodresolve_messages_request
( self, request: MessagesRequest )
tests/api/test_web_server_tools.py:57
↓ 7 callersMethodset_blocked
Set global block for specified seconds (reactive). Args: seconds: How long to block (default 60s)
providers/rate_limit.py:186
↓ 7 callersMethodset_node_error_sync
(self, node: MessageNode, error_message: str)
messaging/trees/runtime.py:142
↓ 7 callersFunctionshowMessage
(message, kind = "")
api/admin_static/admin.js:464
↓ 7 callersMethodtool_blocks
(self)
core/anthropic/streaming/ledger.py:548
↓ 7 callersFunctiontransform_native_sse_block_event
Normalize native Anthropic SSE events and enforce local thinking policy.
core/anthropic/native_sse_block_policy.py:172
↓ 7 callersFunctiontruncate_discord_message
Return text that fits Discord's message limit.
messaging/platforms/discord_io.py:17
↓ 6 callersFunction_assert_no_content_deltas_after_error_text
After the error text delta, only block close + message tail events may follow.
tests/providers/test_streaming_errors.py:131
↓ 6 callersMethod_deferred_post_tool_to_messages
( pending: _PendingAfterTools, )
core/anthropic/conversion.py:374
↓ 6 callersFunction_flow
(*, enabled: bool = True)
tests/messaging/test_platform_voice_flow.py:16
↓ 6 callersFunction_marker
(scope: str, prefix: str)
smoke/lib/claude_cli_matrix.py:771
↓ 6 callersMethod_on_discord_message
Handle incoming Discord messages.
messaging/platforms/discord.py:149
↓ 6 callersFunction_path_without_uv
()
tests/scripts/test_ci_scripts.py:33
↓ 6 callersFunction_request
( *, download_to=None, reply_text=None, message_id: str = "voice", )
tests/messaging/test_platform_voice_flow.py:28
↓ 6 callersFunction_script_text
(name: str)
tests/scripts/test_uninstallers.py:14
↓ 6 callersFunction_slugs
(catalog: Mapping[str, Any])
tests/cli/test_codex_model_catalog.py:40
↓ 6 callersFunction_streaming_body_text
(response: StreamingResponse)
tests/api/test_api_handlers.py:63
↓ 6 callersMethodacquire
(self)
core/rate_limit.py:33
↓ 6 callersFunctionassert_product_stream
(events: list[SSEEvent])
smoke/lib/e2e.py:671
↓ 6 callersFunctionbuild_native_messages_request_body
Build a native Anthropic-compatible Messages request body.
providers/transports/anthropic_messages/request_policy.py:35
↓ 6 callersMethodcache_model_infos
Store provider model metadata for later instant API responses.
providers/runtime/runtime.py:51
↓ 6 callersMethodcancel_tree
Cancel all queued and in-progress messages in a tree. Updates node states to ERROR and returns list of affected nodes that w
messaging/trees/manager.py:209
↓ 6 callersMethodedit_message
( self, chat_id: str, message_id: str, text: str, parse_mode: str | No
smoke/lib/e2e.py:366
↓ 6 callersMethodfinal_stop_reason
(self, fallback: str)
core/anthropic/streaming/ledger.py:573
↓ 6 callersFunctionformat_user_error_preview
Truncate a user-facing error string for short chat replies.
core/anthropic/errors.py:60
↓ 6 callersMethodget_descendants
(self, node_id: str)
messaging/trees/runtime.py:169
↓ 6 callersMethodget_root
(self)
messaging/trees/runtime.py:65
↓ 6 callersMethodget_tree_count
Get the number of active message trees.
messaging/trees/manager.py:319
↓ 6 callersFunctionis_title_generation_request
Check if this is a conversation title generation request. Title generation requests are detected by a system prompt containing title extracti
api/detection.py:29
↓ 6 callersFunctionlaunch
Launch Claude Code with Free Claude Code proxy environment variables.
cli/launchers/claude.py:23
↓ 6 callersFunctionlocal_admin_url
Return a browser-friendly URL for the localhost-only admin UI.
api/admin_urls.py:25
↓ 6 callersFunctionmanaged_env_path
Return the default user-managed env file path.
config/paths.py:21
↓ 6 callersMethodneeds_deferred
(self)
core/anthropic/conversion.py:102
↓ 6 callersFunctionnormalize_gfm_tables
Insert blank lines before detected tables outside fenced code blocks.
messaging/rendering/markdown_tables.py:21
↓ 6 callersMethodrecord_outgoing_message
Record outgoing message ID for /clear. Best-effort, never raises.
messaging/workflow.py:165
↓ 6 callersFunctionregression_failures
Return report lines for classifications that should fail pytest.
smoke/lib/claude_cli_matrix.py:407
↓ 6 callersMethodresolve_parent_node_id
Resolve a message ID to the actual parent node ID.
messaging/trees/manager.py:123
↓ 6 callersMethodresolve_provider
Return an existing provider or create it lazily.
providers/runtime/runtime.py:43
↓ 6 callersMethodschedule_save
(self)
messaging/session/persistence.py:49
↓ 6 callersFunctionset_if_not_none
Set ``body[key]`` only when value is not None.
core/anthropic/utils.py:6
↓ 6 callersFunctionskip_if_upstream_unavailable_events
(events: list[SSEEvent])
smoke/lib/skips.py:52
↓ 6 callersMethodsnapshot
()
tests/messaging/test_session_store_edge_cases.py:159
↓ 6 callersMethodstop_thinking_block
(self)
core/anthropic/streaming/ledger.py:308
↓ 6 callersFunctionstream_web_server_tool_response
Stream a minimal Anthropic-shaped turn for forced `web_search` / `web_fetch` (local fallback). When `ENABLE_WEB_SERVER_TOOLS` is on, this is a pr
api/web_tools/streaming.py:40
↓ 6 callersMethodsuccess_tail
(self, stop_reason: str)
core/anthropic/streaming/ledger.py:497
↓ 6 callersFunctionthinking_content
(events: list[SSEEvent])
core/anthropic/stream_contracts.py:184
↓ 6 callersMethodwait_if_blocked
Wait if currently rate limited or throttle to meet quota. Returns: True if was reactively blocked and waited, False othe
providers/rate_limit.py:155
↓ 5 callersMethod__init__
(self)
messaging/transcript/segments.py:52
↓ 5 callersFunction_aiohttp_client_session_patch
Build ``ClientSession`` mock that serves ``responses`` to successive ``get`` calls.
tests/api/test_web_server_tools.py:208
↓ 5 callersFunction_anthropic_text_stream
(text: str)
tests/api/test_openai_responses.py:541
↓ 5 callersFunction_app_with_runtime
(settings=None)
tests/api/test_dependencies.py:79
↓ 5 callersFunction_append_pending_reasoning
( messages: list[dict[str, Any]], pending_reasoning: str | None )
core/openai_responses/input.py:214
↓ 5 callersFunction_lines_from_events
(*events: str)
tests/providers/test_anthropic_messages.py:100
↓ 5 callersFunction_make_bad_request_error
(message: str)
tests/providers/test_nvidia_nim.py:91
↓ 5 callersFunction_noop_outbox
(*, limiter=None)
tests/messaging/test_platform_outbox.py:8
↓ 5 callersMethod_on_telegram_message
( self, update: Update, context: ContextTypes.DEFAULT_TYPE )
messaging/platforms/telegram.py:205
↓ 5 callersFunction_probe_response
Return an empty success response for compatibility probes.
api/routes.py:58
↓ 5 callersFunction_request
(headers=None, token: str = "")
tests/api/test_dependencies.py:85
↓ 5 callersMethod_request_headers
(self)
tests/providers/test_anthropic_messages.py:31
↓ 5 callersFunction_run_probe
( *, claude_bin: str, server: RunningServer, smoke_config: SmokeConfig, provider_model: Pr
smoke/lib/claude_cli_matrix.py:645
↓ 5 callersFunction_run_web_fetch
Fetch URL with manual redirects; each hop is DNS-pinned to validated addresses.
api/web_tools/outbound.py:210
↓ 5 callersFunction_sanitize_trace_value
Recursively copy JSON-like structures redacting credential-shaped keys.
core/trace.py:35
↓ 5 callersFunction_settings
( *, model: str = "deepseek/deepseek-chat", model_opus: str | None = "open_router/anthropic/claude
tests/api/test_model_listing.py:10
↓ 5 callersFunction_string_value
(value: Any)
cli/managed/claude.py:218
↓ 5 callersFunction_text_response
( request_data: MessagesRequest, text: str, *, input_tokens: int, output_tokens: int, )
api/optimization_handlers.py:25
↓ 5 callersFunction_tool_call_chunk
( *, name, arguments, tool_id="call_1", index=0, finish_reason=None, )
tests/providers/test_nvidia_nim.py:66
↓ 5 callersFunction_tree_node
(node_id: str, status_message_id: str)
tests/messaging/test_session_store_edge_cases.py:23
↓ 5 callersFunctionaccept_tool_json_repair
( prefix: str, candidate: str, *, tool_name: str, schemas: dict[str, ToolSchema], )
core/anthropic/streaming/recovery.py:307
↓ 5 callersFunctionapi
(path, options = {})
api/admin_static/admin.js:67
↓ 5 callersMethodask
( self, text: str, *, model: str = "fcc-smoke-default", max_tokens: in
smoke/lib/e2e.py:89
↓ 5 callersFunctionbest_effort
Run a shutdown step with timeout; never raise to callers.
api/runtime.py:30
↓ 5 callersFunctionbuild_base_native_anthropic_request_body
Serialize a Pydantic messages request to a generic native Anthropic body.
core/anthropic/native_messages_request.py:215
↓ 5 callersFunctionclone_body_without_reasoning_budget
Clone a request body and strip only reasoning_budget fields.
providers/nvidia_nim/retry.py:10
↓ 5 callersMethodclose_content_blocks
(self)
core/anthropic/streaming/ledger.py:378
↓ 5 callersFunctioncmd_python_c
(script: str)
smoke/lib/child_process.py:21
↓ 5 callersMethodcollect_text
Collect text/reasoning from an internal recovery request.
providers/transports/openai_chat/recovery.py:35
↓ 5 callersMethodcollect_text
Collect text/thinking from an internal native recovery request.
providers/transports/anthropic_messages/recovery.py:41
↓ 5 callersFunctionconfig_dir_path
Return the default user config directory.
config/paths.py:15
↓ 5 callersMethodconvert_system_prompt
(system: Any)
core/anthropic/conversion.py:514
↓ 5 callersFunctioncreate_provider
Create a provider instance for a supported provider id.
providers/runtime/factory.py:161
↓ 5 callersFunctiondefault_claude_workspace_path
Return the default Claude workspace path.
config/paths.py:37
↓ 5 callersFunctionescape_md_v2_code
Escape text for Telegram MarkdownV2 code spans/blocks.
messaging/rendering/telegram_markdown.py:24
↓ 5 callersMethodflush
Flush any remaining buffered content.
core/anthropic/thinking.py:131
↓ 5 callersFunctionformat_provider_error_message
Return a copyable user-facing provider error including upstream detail.
providers/error_mapping.py:176
← previousnext →201–300 of 3,538, ranked by callers