MCPcopy Create free account

hub / github.com/Louisym/MiniCC / functions

Functions1,659 in github.com/Louisym/MiniCC

↓ 1 callersFunctionstable_content_hash
(content: &str)
rust/crates/runtime/src/prompt.rs:347
↓ 1 callersFunctionstable_hex_hash
(value: &str)
rust/crates/runtime/src/mcp.rs:149
↓ 1 callersMethodstart_code_block
(&self, code_language: &str, output: &mut String)
rust/crates/rusty-claude-cli/src/render.rs:456
↓ 1 callersMethodstart_heading
(&self, state: &mut RenderState, level: u8, output: &mut String)
rust/crates/rusty-claude-cli/src/render.rs:429
↓ 1 callersFunctionstart_keychain_prefetch
()
src/prefetch.py:18
↓ 1 callersFunctionstart_mdm_raw_read
()
src/prefetch.py:14
↓ 1 callersFunctionstart_project_scan
(root: Path)
src/prefetch.py:22
↓ 1 callersMethodstart_quote
(&self, state: &mut RenderState, output: &mut String)
rust/crates/rusty-claude-cli/src/render.rs:436
↓ 1 callersFunctionstartup_banner
源码: main.rs:1028-1051
mini_claude_code/main.py:341
↓ 1 callersMethodstate_for_port
(&self, port: u16)
rust/crates/runtime/src/remote.rs:136
↓ 1 callersMethodstream
(&mut self, request: ApiRequest)
rust/crates/runtime/src/conversation.rs:481
↓ 1 callersMethodstream
(self, request: ApiRequest)
tutorials/05_agentic_loop_complete.py:185
↓ 1 callersMethodstream_submit_message
( self, prompt: str, matched_commands: tuple[str, ...] = (), matched_tools: tu
src/query_engine.py:106
↓ 1 callersFunctionstream_with_retry
带重试的流式请求——mini-claude-code 的核心
tutorials/17_async_await_for_sse.py:349
↓ 1 callersFunctionstrip_tag_block
(content: &str, tag: &str)
rust/crates/runtime/src/compact.rs:348
↓ 1 callersFunctionstrip_tag_block
删除整个 XML 标签块。源码: compact.rs:348-360
mini_claude_code/compact.py:138
↓ 1 callersMethodstyle_text
(&self, text: &str, theme: &ColorTheme)
rust/crates/rusty-claude-cli/src/render.rs:171
↓ 1 callersMethodsubprocess_env
(&self)
rust/crates/runtime/src/remote.rs:161
↓ 1 callersFunctionsummarize_block
(block: &ContentBlock)
rust/crates/runtime/src/compact.rs:200
↓ 1 callersFunctionsummarize_messages
(messages: &[ConversationMessage])
rust/crates/runtime/src/compact.rs:113
↓ 1 callersFunctionsummarize_messages
源码: compact.rs:113-198
mini_claude_code/compact.py:178
↓ 1 callersFunctionsummarize_messages
生成压缩摘要 — 源码 compact.rs:113-198 这不是简单的"取最后一条"。它提取了 5 种信息: 1. 统计信息: 多少条 user/assistant/tool 消息 2. 工具名称: 用到了哪些工具 3. 最近的用户请求: 最后 3 条用户消息
tutorials/16_prompt_building_and_compaction.py:479
↓ 1 callersFunctionsummarize_messages
将一组消息压缩成摘要。 摘要包含: - 消息统计(几条 user/assistant/tool 消息) - 使用了哪些工具 - 最近的用户请求 - 待完成的工作 - 涉及的关键文件 - 时间线概要 对应源码: compac
tutorials/07_auto_compaction.py:167
↓ 1 callersFunctionsummarize_tool_payload
(payload: &str)
rust/crates/rusty-claude-cli/src/main.rs:2950
↓ 1 callersFunctionsummarize_web_fetch
( url: &str, prompt: &str, content: &str, raw_body: &str, content_type: &str, )
rust/crates/tools/src/lib.rs:969
↓ 1 callersMethodsummary
(self)
tutorials/05_agentic_loop_complete.py:214
↓ 1 callersMethodsummary
输出配置摘要
tutorials/09_config_system.py:247
↓ 1 callersFunctionsupported_config_setting
(setting: &str)
rust/crates/tools/src/lib.rs:2451
↓ 1 callersMethodsynthesize
综合 Worker 的发现。这是 Leader 的核心价值。 对应 Reference: EP03 §4 "协调者拥有综合权 —— 不做'基于你的发现'式委派"
tutorials/13_multi_agent_coordination.py:391
↓ 1 callersMethodsystem_text
(text: str)
tutorials/07_auto_compaction.py:83
↓ 1 callersFunctiontemp_config_home
()
rust/crates/runtime/src/oauth.rs:475
↓ 1 callersFunctiontest_connectivity
测试能否连接到指定地址
tutorials/14b_networking_for_engineers.py:499
↓ 1 callersMethodtimeout
(self)
mini_claude_code/config.py:189
↓ 1 callersMethodto_bytes
(&self)
rust/crates/tools/src/lib.rs:4228
↓ 1 callersMethodto_dict
(self)
tutorials/13_multi_agent_coordination.py:138
↓ 1 callersMethodto_dict
把 Session 变成字典(方便转 JSON)
tutorials/02_session_and_messages.py:237
↓ 1 callersMethodto_json
(&self)
rust/crates/runtime/src/session.rs:99
↓ 1 callersFunctiontodo_store_path
()
rust/crates/tools/src/lib.rs:1293
↓ 1 callersMethodtool
装饰器: @registry.tool("bash")
tutorials/18_design_patterns_for_agents.py:690
↓ 1 callersFunctiontool_permission_specs
()
rust/crates/rusty-claude-cli/src/main.rs:3087
↓ 1 callersMethodtool_result
(tool_use_id: str, tool_name: str, output: str, is_error: bool = False)
tutorials/05_agentic_loop_complete.py:79
↓ 1 callersMethodtool_result
(tool_use_id: str, tool_name: str, output: str, is_error: bool = False)
tutorials/07_auto_compaction.py:87
↓ 1 callersMethodtool_result
创建一条工具结果消息
tutorials/02_session_and_messages.py:200
↓ 1 callersFunctiontool_specs_for_allowed_tools
(allowed_tools: Option<&BTreeSet<String>>)
rust/crates/tools/src/lib.rs:1792
↓ 1 callersFunctiontruncate_content
源码: prompt.rs:366-376
mini_claude_code/prompt.py:168
↓ 1 callersFunctiontruncate_for_prompt
(value: &str, limit: usize)
rust/crates/rusty-claude-cli/src/main.rs:2182
↓ 1 callersFunctiontruncate_instruction_content
截断指令内容 — 源码 prompt.rs:366-376 硬限制: min(4000, remaining_budget) 截断时追加 [truncated] 标记,让模型知道这不是完整内容。
tutorials/16_prompt_building_and_compaction.py:165
↓ 1 callersMethodturns
(&self)
rust/crates/runtime/src/usage.rs:206
↓ 1 callersMethodturns
源码: usage.rs:206-208
mini_claude_code/runtime.py:109
↓ 1 callersFunctionui_consumer
消费者: 模拟 UI 逐字显示
tutorials/17_async_await_for_sse.py:433
↓ 1 callersMethodunsupported_servers
(&self)
rust/crates/runtime/src/mcp_stdio.rs:355
↓ 1 callersFunctionupstream_proxy_ws_url
(base_url: &str)
rust/crates/runtime/src/remote.rs:201
↓ 1 callersFunctionupstream_repo_candidates
(primary_repo_root: &Path)
rust/crates/compat-harness/src/lib.rs:65
↓ 1 callersFunctionusage_to_json
(usage: TokenUsage)
rust/crates/runtime/src/session.rs:327
↓ 1 callersMethoduser_text
(text: str)
tutorials/05_agentic_loop_complete.py:71
↓ 1 callersMethoduser_text
(text: str)
tutorials/07_auto_compaction.py:75
↓ 1 callersMethoduser_text
创建一条用户文字消息
tutorials/02_session_and_messages.py:168
↓ 1 callersFunctionvalidate_todos
(todos: &[TodoItem])
rust/crates/tools/src/lib.rs:1279
↓ 1 callersFunctionverification_lines
(cwd: &Path, detection: &RepoDetection)
rust/crates/rusty-claude-cli/src/init.rs:275
↓ 1 callersFunctionwait_for_oauth_callback
( port: u16, )
rust/crates/rusty-claude-cli/src/main.rs:544
↓ 1 callersMethodwith_extra_param
(mut self, key: impl Into<String>, value: impl Into<String>)
rust/crates/runtime/src/oauth.rs:134
↓ 1 callersMethodwith_max_iterations
(mut self, max_iterations: usize)
rust/crates/runtime/src/conversation.rs:159
↓ 1 callersMethodwith_os
源码: prompt.rs:109-113
mini_claude_code/prompt.py:242
↓ 1 callersMethodwith_os
添加操作系统信息
tutorials/06_system_prompt_builder.py:312
↓ 1 callersMethodwith_os
(self, name: str, version: str)
tutorials/18_design_patterns_for_agents.py:415
↓ 1 callersMethodwith_output_style
(mut self, name: impl Into<String>, prompt: impl Into<String>)
rust/crates/runtime/src/prompt.rs:102
↓ 1 callersMethodwith_project
(self, cwd: str, date: str)
tutorials/18_design_patterns_for_agents.py:426
↓ 1 callersMethodwith_project_context
源码: prompt.rs:116-119
mini_claude_code/prompt.py:248
↓ 1 callersMethodwith_project_context
添加项目上下文
tutorials/06_system_prompt_builder.py:318
↓ 1 callersMethodwith_streaming
(mut self)
rust/crates/api/src/types.rs:21
↓ 1 callersMethodwith_style
(self, name: str, prompt: str)
tutorials/18_design_patterns_for_agents.py:421
↓ 1 callersMethodwrite_frame
(&mut self, payload: &[u8])
rust/crates/runtime/src/mcp_stdio.rs:640
↓ 1 callersFunctionwrite_json_object
(path: &Path, value: &serde_json::Map<String, Value>)
rust/crates/tools/src/lib.rs:2619
↓ 1 callersMethodwrite_jsonrpc_message
(&mut self, message: &T)
rust/crates/runtime/src/mcp_stdio.rs:677
↓ 1 callersMethodwrite_line
(&mut self, line: &str)
rust/crates/runtime/src/mcp_stdio.rs:615
↓ 1 callersMethodwrite_turn_output
( &self, summary: &runtime::TurnSummary, out: &mut impl Write, )
rust/crates/rusty-claude-cli/src/app.rs:261
Method__init__
(self, message: str, kind: str = "parse")
mini_claude_code/config.py:62
Method__init__
参数: cwd: 当前工作目录(项目根目录) config_home: 用户配置目录,通常是 ~/.claude 源码: config.rs:166-172 CC 也接收 cwd 和 config_h
mini_claude_code/config.py:212
Method__init__
(self)
mini_claude_code/runtime.py:79
Method__init__
源码: conversation.rs:117-133
mini_claude_code/runtime.py:282
Method__init__
(self, active_mode: PermissionMode)
mini_claude_code/permissions.py:120
Method__init__
参数: storage_dir: 存储目录,如 ~/.claude/projects/<sanitized-cwd>/ CC 用 sanitizePath() 把 cwd 转成合法文件名。 我们简化为直接接收 storage
mini_claude_code/storage.py:58
Method__init__
(self, message: str = "connection error")
mini_claude_code/retry.py:67
Method__init__
(self, message: str = "authentication failed")
mini_claude_code/retry.py:79
Method__init__
(self, attempts: int, last_error: ApiError)
mini_claude_code/retry.py:94
Method__init__
(self)
mini_claude_code/prompt.py:235
Method__init__
(self, kind: _Outcome, message: Optional[str] = None)
mini_claude_code/hooks.py:72
Method__init__
( self, pre_tool_use: Optional[list[str]] = None, post_tool_use: Optional[list[str]] =
mini_claude_code/hooks.py:90
Method__init__
(self)
mini_claude_code/tools.py:6
Method__init__
参数: store_dir: agent 文件存储目录 (manifest JSON + output MD) spawn_fn: 自定义 spawn 策略。None 时使用默认的 threading.Thread。
mini_claude_code/multi_agent.py:211
Method__init__
( self, api_key: str, model: str, tools: list[dict] | None = None, emi
mini_claude_code/api_client.py:151
Method__init__
(self, registry: ToolRegistry)
mini_claude_code/main.py:150
Method__init__
(self, mode: PermissionMode)
tutorials/05_agentic_loop_complete.py:105
Method__init__
(self)
tutorials/05_agentic_loop_complete.py:124
Method__init__
(self)
tutorials/05_agentic_loop_complete.py:198
Method__init__
( self, session: Session, api_client: ApiClient, tool_executor: ToolExecutor,
tutorials/05_agentic_loop_complete.py:244
Method__init__
(self)
tutorials/05_agentic_loop_complete.py:401
Method__init__
(self, status_code: int, error_type: str = "", message: str = "", retryable: bool = False)
tutorials/11_error_recovery_and_retry.py:85
Method__init__
(self, message: str = "connection failed")
tutorials/11_error_recovery_and_retry.py:115
Method__init__
(self, attempts: int, last_error: ApiError)
tutorials/11_error_recovery_and_retry.py:143
← previousnext →1,001–1,100 of 1,659, ranked by callers