MCPcopy Create free account

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

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

↓ 3 callersMethodsend_message
Send a Discord message immediately.
messaging/platforms/discord_io.py:44
↓ 3 callersFunctionserialize_tool_result_content
Serialize Anthropic ``tool_result.content`` into provider-safe text.
core/anthropic/request_serialization.py:9
↓ 3 callersMethodset_active_block
(self, state: BlockState)
core/openai_responses/streaming/ledger.py:26
↓ 3 callersFunctionsource
()
tests/core/test_trace.py:53
↓ 3 callersMethodstart
Initialize and connect to Discord.
messaging/platforms/discord.py:185
↓ 3 callersMethodstart
(self)
smoke/lib/e2e.py:320
↓ 3 callersMethodstop_tool_block
(self, tool_index: int)
core/anthropic/streaming/ledger.py:363
↓ 3 callersMethodstream
( self, routed: RoutedMessagesRequest, *, wire_api: str, raw_log_label
api/provider_execution.py:36
↓ 3 callersFunctionstring_setting
Return a string-valued settings attribute, ignoring non-string mocks.
providers/runtime/config.py:11
↓ 3 callersFunctionsummarize_request_validation_body
Return message shape summary and tool name list for debug logs.
api/validation_log.py:8
↓ 3 callersMethodto_json
(self)
messaging/session/message_log.py:44
↓ 3 callersFunctiontool_item
( state: ToolBlockState, *, status: str, arguments: str = "", input_text: str = "", )
core/openai_responses/streaming/completion.py:115
↓ 3 callersFunctiontry_filepath_mock
Mock filepath extraction requests.
api/optimization_handlers.py:115
↓ 3 callersFunctiontry_optimizations
Run optimization handlers in order. Returns first match or None.
api/optimization_handlers.py:146
↓ 3 callersFunctiontry_prefix_detection
Fast prefix detection - return command prefix without API call.
api/optimization_handlers.py:41
↓ 3 callersFunctionunregister_pid
(pid: int)
cli/process_registry.py:40
↓ 3 callersFunctionupdateProviderCard
(providerId, status, label, metaText)
api/admin_static/admin.js:175
↓ 3 callersMethodupdate_cancelled_nodes_ui
Update status messages and persist tree state for cancelled nodes.
messaging/workflow.py:187
↓ 3 callersMethodupdate_queue_positions
Refresh queued status messages after a dequeue.
messaging/workflow.py:131
↓ 2 callersFunction_agent_result_count
(text: str)
smoke/lib/claude_cli_matrix.py:751
↓ 2 callersFunction_agent_tool_count
(text: str)
smoke/lib/claude_cli_matrix.py:737
↓ 2 callersMethod_append
( self, chat_key: str, message_id: str, *, ts: str, direction:
messaging/session/message_log.py:77
↓ 2 callersFunction_append_event
( events: list[SSEEvent], current_event: str, data_parts: list[str], raw_parts: list[str], )
core/anthropic/stream_contracts.py:79
↓ 2 callersFunction_append_message_item
( role: str, content: Any, messages: list[dict[str, Any]], system_parts: list[str], *,
core/openai_responses/input.py:189
↓ 2 callersFunction_append_provider_model_variants
( models: list[ModelResponse], seen: set[str], provider_model_ref: str, *, supports_thinki
api/model_catalog.py:111
↓ 2 callersFunction_append_request_id_lines
(lines: list[str], request_id: str | None)
providers/error_mapping.py:171
↓ 2 callersMethod_append_tool_call
(self, tool_id: str, name: str)
messaging/transcript/buffer.py:175
↓ 2 callersFunction_assert_error_not_in_text_deltas_after_tool
Transport errors after a native tool call must not use assistant text_delta (issue #206).
tests/providers/test_streaming_errors.py:154
↓ 2 callersFunction_assert_minimal_success_stream
(events: list[str])
tests/providers/test_anthropic_messages_429_retry.py:20
↓ 2 callersFunction_asset_response
(filename: str)
api/admin_routes.py:74
↓ 2 callersMethod_before_model_list
(self)
tests/providers/test_model_validation.py:320
↓ 2 callersMethod_build_request_body_with_resolved_thinking
Build a native Anthropic request body after thinking is resolved.
providers/transports/anthropic_messages/transport.py:129
↓ 2 callersFunction_cap_text_bytes
(text: str, max_bytes: int)
providers/error_mapping.py:91
↓ 2 callersMethod_clear_active_content_block
(self, state: StreamBlockState)
core/anthropic/streaming/ledger.py:684
↓ 2 callersFunction_clone_strip_extra_body
( body: dict[str, Any], strip: Callable[[dict[str, Any]], bool], )
providers/nvidia_nim/retry.py:30
↓ 2 callersFunction_cloudflare_account_api_url
Return the account-scoped Cloudflare API root URL.
providers/cloudflare/client.py:41
↓ 2 callersFunction_collect_test_names
(root: Path)
tests/contracts/test_feature_manifest.py:106
↓ 2 callersFunction_convert_custom_tool
( tool: Mapping[str, Any], *, namespace: str | None )
core/openai_responses/tools.py:317
↓ 2 callersFunction_convert_function_tool
( tool: Mapping[str, Any], *, namespace: str | None )
core/openai_responses/tools.py:295
↓ 2 callersFunction_convert_message_content
(content: Any)
core/openai_responses/input.py:235
↓ 2 callersFunction_copied_messages
(body: dict[str, Any])
core/anthropic/streaming/recovery.py:394
↓ 2 callersFunction_copy_if_present
( source: Mapping[str, Any], target: dict[str, Any], field_name: str )
core/openai_responses/input.py:283
↓ 2 callersMethod_create_stream
Create a streaming chat completion, optionally retrying once.
providers/transports/openai_chat/transport.py:114
↓ 2 callersFunction_disabled_provider_param
(reason: str)
smoke/conftest.py:109
↓ 2 callersFunction_discovered_model_response
(model_id: str, *, display_name: str)
api/model_catalog.py:94
↓ 2 callersMethod_drain_stderr_bounded
Read stderr concurrently with stdout to avoid subprocess pipe deadlocks. Retains at most ``max_bytes`` for logging; any excess is discarded,
cli/managed/session.py:59
↓ 2 callersFunction_dump_request_fields
Extract the public request fields (OpenRouter-style explicit field list).
core/anthropic/native_messages_request.py:99
↓ 2 callersFunction_emit_parser_parts
( builder: AnthropicStreamLedger, parts: Iterable, enable_thinking: bool, )
tests/contracts/test_stream_contracts.py:178
↓ 2 callersMethod_emit_reasoning_delta
(self, state: ReasoningBlockState, text: str)
core/openai_responses/streaming/assembler.py:285
↓ 2 callersMethod_emit_text_delta
(self, state: TextBlockState, text: str)
core/openai_responses/streaming/assembler.py:279
↓ 2 callersMethod_emit_tool_arg_delta
Emit one argument fragment for a started tool block.
providers/transports/openai_chat/tool_calls.py:211
↓ 2 callersMethod_ensure_started
(self)
core/openai_responses/streaming/assembler.py:112
↓ 2 callersFunction_ensure_v1_url
(url: str)
cli/launchers/codex.py:198
↓ 2 callersFunction_filtered_values
(values: dict[str, Any])
api/admin_routes.py:217
↓ 2 callersFunction_flatten_log_calls
(mock_log)
tests/api/test_safe_logging.py:87
↓ 2 callersMethod_flush_active_blocks
(self)
core/openai_responses/streaming/assembler.py:297
↓ 2 callersMethod_format_model_validation_failure
( ref: ConfiguredChatModelRef, problem: str )
providers/runtime/validation.py:118
↓ 2 callersMethod_format_provider_query_failures
( self, refs: list[ConfiguredChatModelRef], exc: BaseException, )
providers/runtime/validation.py:106
↓ 2 callersFunction_get_discord
Return the discord module or raise a setup error.
messaging/platforms/discord.py:36
↓ 2 callersFunction_get_local_provider_response
( provider: str, url: str, *, timeout_s: float, )
smoke/lib/local_providers.py:67
↓ 2 callersMethod_handle_line_gen
Process a single line and yield events.
cli/managed/session.py:222
↓ 2 callersFunction_ids_roughly_match
(stack_id: str, result_id: str)
messaging/transcript/subagents.py:103
↓ 2 callersFunction_importing_package_parts
Package in which this file's module lives (for relative imports).
tests/contracts/test_import_boundaries.py:642
↓ 2 callersFunction_internal_5xx
(code: int)
tests/providers/test_openai_compat_5xx_retry.py:16
↓ 2 callersFunction_is_env_assignment
Return True when a token is a shell-style env assignment.
api/command_utils.py:9
↓ 2 callersFunction_is_loopback_host
(host: str | None)
api/admin_routes.py:43
↓ 2 callersFunction_is_provider_model_ref
(value: str)
cli/launchers/codex_model_catalog.py:180
↓ 2 callersFunction_iter_response_body_under_cap
( response: httpx.Response, max_bytes: int )
api/web_tools/outbound.py:76
↓ 2 callersMethod_iter_tool_token_payloads
(self)
core/anthropic/streaming/ledger.py:613
↓ 2 callersFunction_join
(parts: Iterable[str], add_marker: bool)
messaging/transcript/renderer.py:31
↓ 2 callersMethod_last_open_block
(self, block_type: str)
core/anthropic/streaming/ledger.py:677
↓ 2 callersMethod_log_discovery_failure
(self, provider_id: str, exc: BaseException)
providers/runtime/discovery.py:136
↓ 2 callersMethod_log_stream_transport_error
Log streaming transport failures (metadata-only unless verbose is enabled).
providers/base.py:87
↓ 2 callersFunction_make_mock_settings
Create a mock settings object with provider runtime fields.
tests/api/test_dependencies.py:23
↓ 2 callersFunction_make_provider_with_thinking_enabled
Create a provider instance with thinking explicitly enabled or disabled.
tests/providers/test_streaming_errors.py:78
↓ 2 callersMethod_new_ledger
(self)
providers/transports/anthropic_messages/stream.py:253
↓ 2 callersFunction_normalize_system_role_messages
(data: Any)
api/models/anthropic.py:113
↓ 2 callersFunction_normalize_task_run_in_background
(args_json: dict[str, Any])
core/anthropic/streaming/ledger.py:693
↓ 2 callersFunction_parse_csv
(raw: str | None)
smoke/lib/config.py:270
↓ 2 callersFunction_path_prepending
(path: Path)
tests/scripts/test_uninstallers.py:53
↓ 2 callersMethod_pop
(self, tool_id: str)
messaging/transcript/subagents.py:58
↓ 2 callersMethod_prepare_create_body
Return the body passed to the upstream OpenAI-compatible client.
providers/transports/openai_chat/transport.py:97
↓ 2 callersFunction_provider_getter
(request: Request, settings: Settings)
api/routes.py:22
↓ 2 callersFunction_provider_runtime_for_admin
( request: Request, settings: Settings )
api/admin_routes.py:206
↓ 2 callersFunction_read_response_body_capped
(response: httpx.Response, max_bytes: int)
api/web_tools/outbound.py:101
↓ 2 callersMethod_record_block_delta
(self, index: int, delta: dict[str, Any])
core/anthropic/streaming/ledger.py:647
↓ 2 callersMethod_record_block_start
(self, index: int, block: dict[str, Any])
core/anthropic/streaming/ledger.py:617
↓ 2 callersMethod_record_block_stop
(self, index: int)
core/anthropic/streaming/ledger.py:666
↓ 2 callersMethod_record_tool_call_extra_content
( self, tool_call_id: str, extra_content: dict[str, Any] )
providers/transports/openai_chat/tool_calls.py:280
↓ 2 callersMethod_refresh_model_infos
(self, provider_ids: tuple[str, ...])
providers/runtime/discovery.py:109
↓ 2 callersMethod_resolve_thinking
Resolve whether thinking is enabled for an incoming Claude model name.
api/model_router.py:121
↓ 2 callersFunction_safe_public_host_for_logs
(url: str)
api/web_tools/outbound.py:33
↓ 2 callersFunction_safe_usage_int
(value: object)
core/anthropic/streaming/ledger.py:33
↓ 2 callersMethod_set_dirty
(self, dirty: bool)
messaging/session/store.py:46
↓ 2 callersFunction_settings_env_key
(settings_attr: str)
api/admin_config/provider_manifest.py:161
↓ 2 callersFunction_settings_init_key
(field_name: str)
smoke/product/test_config_extensibility_product_live.py:156
↓ 2 callersFunction_shell_path_with_mock
(bin_dir: Path)
tests/scripts/test_uninstallers.py:49
↓ 2 callersFunction_should_drop_block_type
(block_type: Any, *, thinking_enabled: bool)
core/anthropic/native_sse_block_policy.py:121
↓ 2 callersFunction_slug
(value: str)
smoke/product/test_openrouter_free_cli_product_live.py:71
↓ 2 callersFunction_slug
(value: str)
smoke/product/test_nvidia_nim_cli_product_live.py:69
← previousnext →501–600 of 3,538, ranked by callers