MCPcopy Create free account

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

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

↓ 5 callersFunctionformat_status
Format a status message with emoji for Discord (matches Telegram API).
messaging/rendering/discord_markdown.py:47
↓ 5 callersFunctionget_audio_attachment
Return the first audio attachment from a Discord message.
messaging/platforms/discord_inbound.py:25
↓ 5 callersFunctionget_provider_runtime
Return the app-scoped provider runtime installed by ``AppRuntime``.
api/dependencies.py:27
↓ 5 callersMethodget_queue_snapshot
(self)
messaging/trees/runtime.py:105
↓ 5 callersMethodget_tree_for_node
Get the tree containing a given node.
messaging/trees/repository.py:25
↓ 5 callersMethodhas_node
(self, node_id: str)
messaging/trees/runtime.py:163
↓ 5 callersMethodis_blocked
Check if currently reactively blocked.
providers/rate_limit.py:196
↓ 5 callersMethodis_reply
Check if this message is a reply to another message.
messaging/models.py:34
↓ 5 callersFunctionload_value_state
Load effective admin field values and their sources.
api/admin_config/values.py:43
↓ 5 callersFunctionmock_async_gen
(events)
tests/messaging/test_handler_integration.py:17
↓ 5 callersFunctionnvidia_nim_cli_model_refs
Return normalized NIM CLI matrix model refs in deterministic order. Values are returned as ``full_model -> source`` so callers can preserve both
smoke/lib/config.py:322
↓ 5 callersMethodon_message
Register the workflow callback for inbound messages.
messaging/platforms/discord.py:231
↓ 5 callersMethodon_message
(self, handler: Callable[[IncomingMessage], Awaitable[None]])
smoke/lib/e2e.py:334
↓ 5 callersFunctionopenrouter_free_cli_model_refs
Return normalized OpenRouter free CLI matrix model refs in deterministic order.
smoke/lib/config.py:352
↓ 5 callersFunctionparse_sse_lines
(lines: Iterable[str])
core/anthropic/stream_contracts.py:51
↓ 5 callersFunctionpost_json
( server: RunningServer, path: str, payload: dict[str, Any], config: SmokeConfig, *, h
smoke/lib/http.py:32
↓ 5 callersMethodpreflight_stream
( self, request: Any, *, thinking_enabled: bool | None = None )
tests/api/test_api_handlers.py:32
↓ 5 callersMethodrecord_message_id
( self, platform: str, chat_id: str, message_id: str, direction: str,
messaging/session/store.py:111
↓ 5 callersFunctionredacted
Redact known secrets from a string before writing smoke artifacts.
smoke/lib/config.py:398
↓ 5 callersFunctionrequire_api_key
Require a server API key (Anthropic-style). Checks `x-api-key` header or `Authorization: Bearer ...` against `Settings.anthropic_auth_token`.
api/dependencies.py:71
↓ 5 callersMethodset_processing_state
(self, node_id: str | None, is_processing: bool)
messaging/trees/runtime.py:120
↓ 5 callersFunctionskip_upstream_unavailable
(reason: str)
smoke/lib/skips.py:28
↓ 5 callersMethodstop_all_tasks
Stop all pending and in-progress messaging tasks.
messaging/workflow.py:139
↓ 5 callersMethodvalidate_configured_models
Fail unless every configured chat model exists upstream.
providers/runtime/runtime.py:83
↓ 4 callersFunction_anthropic_tool_stream
( tool_name: str = "echo", partial_json: str = '{"value":"FCC"}' )
tests/api/test_openai_responses.py:576
↓ 4 callersMethod_build_request_body
Internal helper for tests and direct request dispatch.
providers/open_router/client.py:48
↓ 4 callersMethod_close_block
(self, index: int)
messaging/transcript/buffer.py:204
↓ 4 callersFunction_coerce_timeout_text
(value: str | bytes | None)
smoke/lib/claude_cli_matrix.py:783
↓ 4 callersMethod_convert_assistant_message
( content: list[Any], *, reasoning_content: str | None = None, reasoning_repla
core/anthropic/conversion.py:326
↓ 4 callersFunction_custom_source
(tool: Mapping[str, Any])
core/openai_responses/tools.py:340
↓ 4 callersFunction_fake_messaging_components
(runtime: MagicMock | None = None)
tests/api/test_app_lifespan_and_errors.py:44
↓ 4 callersFunction_input_json_deltas
(events)
tests/providers/test_nvidia_nim.py:51
↓ 4 callersFunction_is_sequence
(value: Any)
providers/model_listing.py:124
↓ 4 callersFunction_json_log_rows
(log_file: str)
tests/core/test_trace.py:15
↓ 4 callersFunction_make_tool_calls_chunk
Single OpenAI-style tool_calls delta (starts a native streamed tool block).
tests/providers/test_streaming_errors.py:114
↓ 4 callersFunction_parse_csv_ordered
(raw: str | None)
smoke/lib/config.py:276
↓ 4 callersFunction_script_text
(name: str)
tests/scripts/test_ci_scripts.py:13
↓ 4 callersFunction_trace_events
(trace_mock: MagicMock, event: str)
tests/api/test_api_handlers.py:73
↓ 4 callersFunctionbuild_managed_claude_invocation
Build a Claude Code stream-json subprocess invocation.
cli/managed/claude.py:58
↓ 4 callersFunctionbuild_provider_config
Build shared provider configuration for one provider descriptor.
providers/runtime/config.py:42
↓ 4 callersMethodcached_model_supports_thinking
Return cached thinking support when a provider exposes it.
providers/runtime/runtime.py:61
↓ 4 callersMethodcan_append_content
(self)
core/anthropic/streaming/ledger.py:570
↓ 4 callersMethodcancel_current
Cancel the currently running task in a tree.
messaging/trees/processor.py:175
↓ 4 callersMethodcancel_pending_voice
( self, chat_id: str, reply_id: str )
smoke/lib/e2e.py:438
↓ 4 callersMethodcommit_output
(self, output_index: int, item: dict[str, Any])
core/openai_responses/streaming/ledger.py:44
↓ 4 callersMethodconcurrency_slot
Async context manager that holds one concurrency slot for a stream. Blocks until a slot is available (controlled by max_concurrency).
providers/rate_limit.py:215
↓ 4 callersFunctionconfigured_chat_model_refs
Return unique configured chat provider/model refs with source env keys.
config/model_refs.py:38
↓ 4 callersMethoddequeue
(self)
messaging/trees/runtime.py:99
↓ 4 callersFunctiondiscord_bold
Format text as bold in Discord (uses **).
messaging/rendering/discord_markdown.py:29
↓ 4 callersMethodemit_error
(self, error_message: str)
core/anthropic/streaming/ledger.py:390
↓ 4 callersMethodensure_tool_state
(self, index: int)
core/anthropic/streaming/ledger.py:87
↓ 4 callersMethoderror_payload
(self, *, message: str, error_type: str)
core/openai_responses/adapter.py:30
↓ 4 callersMethodfire_and_forget
Enqueue a task without waiting for the result.
messaging/limiter.py:250
↓ 4 callersMethodfire_and_forget
Execute a coroutine or future without awaiting it.
messaging/platforms/outbox.py:139
↓ 4 callersMethodfire_and_forget
(self, task: Awaitable[Any])
smoke/lib/e2e.py:341
↓ 4 callersMethodflush_uncommitted
(self, decision: RecoveryDecision)
core/anthropic/streaming/recovery.py:162
↓ 4 callersFunctionformat_status_discord
Format a status message for Discord (label in bold, optional suffix).
messaging/rendering/discord_markdown.py:39
↓ 4 callersMethodfrom_json
(cls, data: Any)
messaging/trees/snapshot.py:24
↓ 4 callersMethodget_message_ids_for_chat
(self, platform: str, chat_id: str)
messaging/session/store.py:132
↓ 4 callersMethodget_node
Get a node from any tree.
messaging/trees/manager.py:119
↓ 4 callersMethodget_scoped_instance
Get or create a provider-scoped limiter instance.
providers/rate_limit.py:120
↓ 4 callersMethodget_stats
Get session statistics.
cli/managed/manager.py:153
↓ 4 callersFunctionis_audio_metadata
Return whether attachment metadata describes an audio file.
messaging/platforms/voice_flow.py:50
↓ 4 callersMethodis_cached
Return whether a provider for this id is already cached.
providers/runtime/runtime.py:39
↓ 4 callersFunctionis_web_server_tool_request
True when the client forces a web server tool via tool_choice (not merely listed).
api/web_tools/request.py:45
↓ 4 callersFunctionlocal_proxy_root_url
Return the proxy root URL (no path) for clients on the same machine.
api/admin_urls.py:19
↓ 4 callersFunctionmessage_payload
( text: str, *, model: str = "claude-3-5-sonnet-20241022", max_tokens: int = 128, extra: d
smoke/lib/http.py:15
↓ 4 callersMethodmidstream_error_tail
(self, error_message: str)
core/anthropic/streaming/ledger.py:506
↓ 4 callersFunctionnode_from_snapshot
(data: dict[str, Any])
messaging/trees/snapshot.py:125
↓ 4 callersFunctionparse_complete_tool_input
( raw_json: str, tool_name: str, schemas: dict[str, ToolSchema] )
core/anthropic/streaming/recovery.py:293
↓ 4 callersFunctionparse_managed_claude_stdout_line
Parse one Claude Code stream-json stdout line.
cli/managed/claude.py:166
↓ 4 callersFunctionprocess_env_key_is_effective
Return whether a key is coming from process env instead of configured dotenv.
config/env_files.py:83
↓ 4 callersMethodpush
(self, event: str)
core/anthropic/streaming/recovery.py:153
↓ 4 callersFunctionpython_exe
()
smoke/lib/child_process.py:17
↓ 4 callersMethodqsize
(self)
messaging/trees/queue.py:29
↓ 4 callersMethodqueue_send_message
( self, chat_id: str, text: str, reply_to: str | None = None, parse_mo
smoke/lib/e2e.py:385
↓ 4 callersMethodraise_for_status
(self)
tests/providers/test_wafer.py:39
↓ 4 callersMethodregister
( self, chat_id: str, voice_msg_id: str, status_msg_id: str )
messaging/voice.py:16
↓ 4 callersMethodremaining_wait
Get remaining reactive wait time in seconds.
providers/rate_limit.py:210
↓ 4 callersMethodremove_branch
Remove a branch (subtree) from the tree. If branch_root is the tree root, removes the entire tree. Returns: (re
messaging/trees/manager.py:379
↓ 4 callersFunctionresolve_provider
Resolve a provider through the app-scoped provider runtime.
api/dependencies.py:44
↓ 4 callersMethodresponse_payload
( self, *, status: str, error: dict[str, Any] | None = None )
core/openai_responses/streaming/assembler.py:74
↓ 4 callersFunctionrun
(ev: str)
tests/core/anthropic/test_native_sse_block_policy.py:57
↓ 4 callersFunctionrun_claude_cli
Run Claude Code CLI against the local smoke proxy.
smoke/lib/claude_cli_matrix.py:90
↓ 4 callersFunctionsend
( chat_id: str, text: str, reply_to: str | None, parse_mode: str | None,
tests/messaging/test_platform_outbox.py:9
↓ 4 callersFunctionserver_log_path
Return the canonical server log path.
config/paths.py:43
↓ 4 callersMethodshutdown
(self)
api/runtime.py:144
↓ 4 callersFunctionskip_if_upstream_unavailable_exception
(exc: Exception)
smoke/lib/skips.py:36
↓ 4 callersMethodstartup
(self)
api/runtime.py:106
↓ 4 callersMethodstop_text_block
(self)
core/anthropic/streaming/ledger.py:320
↓ 4 callersFunctiontool_schemas_by_name
Return Anthropic tool input schemas keyed by tool name.
core/anthropic/streaming/recovery.py:257
↓ 4 callersFunctiontraced_async_stream
Emit TRACE rows when a text stream completes, fails, cancels, or periodically.
core/trace.py:109
↓ 4 callersFunctionuser_visible_message_for_mapped_provider_error
Return the user-visible string after :func:`map_error` (405 + mapped types).
providers/error_mapping.py:232
↓ 4 callersFunctionwrite_matrix_report
Write a Claude CLI compatibility matrix report.
smoke/lib/claude_cli_matrix.py:383
↓ 3 callersFunction_allocate_new_segment
Assign a new downstream `index` for a segment and record upstream state.
core/anthropic/native_sse_block_policy.py:153
↓ 3 callersFunction_anthropic_reasoning_stream
( reasoning: str, *, output_tokens: int | None = 20, )
tests/core/openai_responses/test_sse.py:530
↓ 3 callersFunction_anthropic_text_stream
(text: str)
tests/core/openai_responses/test_sse.py:439
↓ 3 callersFunction_append_unique_model
( models: list[ModelResponse], seen: set[str], model: ModelResponse )
api/model_catalog.py:102
↓ 3 callersFunction_assert_no_forbidden_assistant_block
(block: Any)
core/anthropic/conversion.py:131
↓ 3 callersFunction_build_claude_cli_command
( *, claude_bin: str, prompt: str, tools: str | None, bare: bool = True, pre_tool_args
smoke/lib/claude_cli_matrix.py:162
← previousnext →301–400 of 3,538, ranked by callers