MCPcopy Create free account

hub / github.com/LeoKemp223/embed-ai-tool / functions

Functions384 in github.com/LeoKemp223/embed-ai-tool

↓ 23 callersFunctionget_tool_path
合并读取工具路径(工作区优先于全局)。
shared/tool_config.py:59
↓ 19 callersFunctionset_tool_path
写入工具路径到指定级别的配置文件,返回写入的文件路径。
shared/tool_config.py:75
↓ 15 callersFunction_fmt_size
(size: int)
skills/memory-analysis/scripts/memory_analyzer.py:330
↓ 11 callersFunctionadd_profile_args
(parser: argparse.ArgumentParser)
shared/profile_store.py:26
↓ 11 callersFunctionhandle_profile_actions
(args: argparse.Namespace, workspace: str | Path, skill_name: str)
shared/profile_store.py:160
↓ 11 callersFunctionprint_resume_hint
( script_path: str | Path, cfg_path: Path, skill_name: str, name: str | None = None, actio
shared/profile_store.py:203
↓ 11 callersFunctionresolve_profile_workspace
Return the project root that owns ``.em_skill.json``. Local project installs live under ``<project>/.claude/skills/...``. When a script is ru
shared/profile_store.py:50
↓ 11 callersFunctionresume_profile
Apply a cached profile as default arg values on every invocation. Reading ``.em_skill.json`` is a code-level guarantee, not a prompt hint: a
shared/profile_store.py:174
↓ 11 callersFunctionsave_profile
( workspace: str | Path, skill_name: str, name: str | None, data: dict[str, Any], )
shared/profile_store.py:81
↓ 11 callersFunctionworkspace_config_path
返回工作区级配置文件路径。
shared/tool_config.py:34
↓ 10 callersFunctionload_config
读取 JSON 配置文件,文件不存在或格式错误时返回空字典。
shared/tool_config.py:40
↓ 10 callersFunctionprofile_name
(name: str | None)
shared/profile_store.py:46
↓ 8 callersFunction_rs485_send
Send bytes over the serial port, with optional RS-485 half-duplex RTS control. Two RS-485 modes: - Burst (rs485_bytewise=False): toggle RTS
skills/serial-shell/shell_proxy.py:81
↓ 8 callersFunctionget_idf_env
探测并返回可用的 IDF 环境,同一进程内缓存结果。
shared/idf_env.py:48
↓ 6 callersFunctionclassify_error
(e: Exception)
skills/visa-debug/scripts/visa_tool.py:84
↓ 6 callersFunctionfind_pio
(workspace: str | Path | None = None)
skills/build-platformio/scripts/platformio_builder.py:96
↓ 6 callersFunctionparse_id
(s: str)
skills/can-debug/scripts/can_tool.py:80
↓ 5 callersFunctionfail
(message: str, failures: list[str])
scripts/validate_repo.py:48
↓ 5 callersFunctionfind_tool
(name: str, alt_names: list[str] | None = None)
skills/build-cmake/scripts/cmake_builder.py:102
↓ 5 callersFunctionformat_msg
(msg: can.Message)
skills/can-debug/scripts/can_tool.py:68
↓ 5 callersFunctionprint_build_report
(result: BuildResult)
skills/build-iar/scripts/iar_builder.py:409
↓ 5 callersFunctionprint_build_report
(result: BuildResult)
skills/build-cmake/scripts/cmake_builder.py:421
↓ 5 callersFunctionprint_build_report
(result: BuildResult)
skills/build-platformio/scripts/platformio_builder.py:291
↓ 5 callersFunctionprint_rtos_report
(result: RTOSResult)
skills/rtos-debug/scripts/rtos_debugger.py:331
↓ 5 callersFunctionsave_config
将配置写入 JSON 文件,自动创建父目录。
shared/tool_config.py:50
↓ 5 callersFunctionupdate_project_profile
Merge stable cross-skill fields into ``.em_skill.json.project_profile``. ``skill_profiles`` remains the per-script resume cache. This helper keep
shared/profile_store.py:97
↓ 5 callersFunctionuser_config_path
返回全局配置文件路径(XDG / APPDATA)。
shared/tool_config.py:21
↓ 4 callersFunction_get_version
(executable: str)
skills/build-makefile/scripts/makefile_builder.py:112
↓ 4 callersFunction_probe_version
运行 idf.py --version 获取版本号。
shared/idf_env.py:261
↓ 4 callersFunction_skills_dir
(project: Path)
scripts/install.py:128
↓ 4 callersFunctionparse_platformio_ini
解析 platformio.ini,返回 (环境列表, 默认环境名列表)。
skills/build-platformio/scripts/platformio_builder.py:136
↓ 4 callersFunctionprint_build_report
(result: BuildResult)
skills/build-makefile/scripts/makefile_builder.py:466
↓ 4 callersFunctionprint_build_report
(result: BuildResult)
skills/build-keil/scripts/keil_builder.py:442
↓ 4 callersFunctionprint_report
(result: ModbusResult, fmt: str = "table")
skills/modbus-debug/scripts/modbus_tool.py:254
↓ 4 callersFunctionrun_gdb_commands
( gdb_path: str, elf_path: str, gdb_port: int, commands: list[str], )
skills/rtos-debug/scripts/rtos_debugger.py:141
↓ 4 callersFunctionscan_artifacts
(search_dir: Path)
skills/build-platformio/scripts/platformio_builder.py:179
↓ 3 callersFunction_available_skills
()
scripts/install.py:102
↓ 3 callersFunction_find_iarbuild_in_dir
在 IAR 安装目录中搜索 iarbuild.exe。
skills/build-iar/scripts/iar_builder.py:112
↓ 3 callersFunction_get_option_state
从 IAR settings XML 中提取指定 option 的 state 值。
skills/build-iar/scripts/iar_builder.py:200
↓ 3 callersFunction_line_ending
(crlf: bool)
skills/serial-shell/shell_proxy.py:77
↓ 3 callersFunction_load_meta
(project: Path)
scripts/install.py:136
↓ 3 callersFunction_meta_path
(project: Path)
scripts/install.py:132
↓ 3 callersFunction_open_port
( port: str, baud: int, bytesize: int, parity: str, stopbits: float, timeout: float, )
skills/serial-shell/shell_proxy.py:33
↓ 3 callersFunction_source_and_capture
Source 一个 shell 脚本并捕获激活后的完整环境变量。
shared/idf_env.py:170
↓ 3 callersFunction_wakeup
Send one or more blank lines to flush stale data from the device's input buffer, then drain the echoed response. Essential after opening a ha
skills/serial-shell/shell_proxy.py:135
↓ 3 callersFunctiondetect_environment
(workspace: str | Path | None = None)
skills/build-platformio/scripts/platformio_builder.py:119
↓ 3 callersFunctionfind_jlink_exe
(workspace: str | Path | None = None)
skills/flash-jlink/scripts/jlink_flasher.py:101
↓ 3 callersFunctionfind_openocd
(workspace: str | Path | None = None)
skills/flash-openocd/scripts/openocd_flasher.py:107
↓ 3 callersFunctionfind_tool
(name: str, alt_names: list[str] | None = None)
skills/build-makefile/scripts/makefile_builder.py:124
↓ 3 callersFunctionfind_tool
(name: str, alt_names: list[str] | None = None)
skills/debug-gdb-openocd/scripts/gdb_debugger.py:84
↓ 3 callersFunctionfind_uv4
(explicit_path: str | None = None, workspace: str | Path | None = None)
skills/build-keil/scripts/keil_builder.py:122
↓ 3 callersFunctionis_windows
()
skills/build-keil/scripts/keil_builder.py:118
↓ 3 callersFunctionlist_serial_ports
()
skills/serial-monitor/scripts/serial_monitor.py:165
↓ 3 callersFunctionmatches_any
(patterns: list[re.Pattern[str]], text: str)
skills/serial-monitor/scripts/serial_monitor.py:492
↓ 3 callersFunctionparse_map_file
(map_path: str)
skills/memory-analysis/scripts/memory_analyzer.py:82
↓ 3 callersFunctionprint_analysis_report
(result: AnalysisResult, summary_only: bool = False)
skills/static-analysis/scripts/static_analyzer.py:354
↓ 3 callersFunctionprint_flash_report
(result: FlashResult)
skills/flash-jlink/scripts/jlink_flasher.py:348
↓ 3 callersFunctionprint_report
(result: CANResult)
skills/can-debug/scripts/can_tool.py:199
↓ 3 callersFunctionrequire_pyserial
()
skills/serial-monitor/scripts/serial_monitor.py:113
↓ 3 callersFunctionresolve_build_dir
(project_dir: Path, env_name: str)
skills/build-platformio/scripts/platformio_builder.py:208
↓ 3 callersFunctionresolve_script
(build_system: str, step: str)
skills/workflow/scripts/workflow_runner.py:94
↓ 3 callersFunctionresolve_user_path
用户显式给的路径:绝对原样,相对则相对默认采集目录。
skills/logic-analyzer/scripts/la_tool.py:61
↓ 3 callersFunctionrun_pio_device_list
调用 pio device list 列出设备。
skills/build-platformio/scripts/platformio_builder.py:266
↓ 3 callersFunctionscan_artifacts
(search_dir: Path)
skills/build-makefile/scripts/makefile_builder.py:303
↓ 3 callersFunctionscan_artifacts
(search_dir: Path)
skills/build-keil/scripts/keil_builder.py:266
↓ 3 callersFunctionscan_artifacts
(search_dir: Path)
skills/build-iar/scripts/iar_builder.py:282
↓ 2 callersFunction_build_env_from_captured
从捕获的环境变量中构造 IdfEnv。
shared/idf_env.py:234
↓ 2 callersFunction_check_port_permission
(port: str)
skills/flash-idf/scripts/idf_flasher.py:90
↓ 2 callersFunction_copy_tree
递归拷贝目录,返回 (copied, skipped) 计数。
scripts/install.py:82
↓ 2 callersFunction_get_version
(executable: str)
skills/build-cmake/scripts/cmake_builder.py:120
↓ 2 callersFunction_glob_any
(project: Path, patterns: tuple[str, ...])
scripts/install.py:180
↓ 2 callersFunction_parse_targets_from_file
(makefile_path: Path)
skills/build-makefile/scripts/makefile_builder.py:275
↓ 2 callersFunctioncheck_openocd
(workspace: str | Path | None = None)
skills/flash-openocd/scripts/openocd_flasher.py:116
↓ 2 callersFunctioncheck_openocd
()
skills/serial-monitor/scripts/serial_monitor.py:219
↓ 2 callersFunctioncheck_scpi_error
(inst)
skills/visa-debug/scripts/visa_tool.py:74
↓ 2 callersFunctionclassify_modbus_error
(rr)
skills/modbus-debug/scripts/modbus_tool.py:160
↓ 2 callersFunctioncmd_analyze
分析工程类型,输出推荐安装的 skill 集,不执行任何写入。
scripts/install.py:187
↓ 2 callersFunctionconnect
连接 Logic 2 automation server,返回 (manager, err)。
skills/logic-analyzer/scripts/la_tool.py:232
↓ 2 callersFunctiondetect_debug_config
(project_dir: Path)
skills/flash-idf/scripts/idf_flasher.py:205
↓ 2 callersFunctiondetect_environment
(explicit_uv4: str | None = None, workspace: str | Path | None = None)
skills/build-keil/scripts/keil_builder.py:156
↓ 2 callersFunctiondetect_generator
()
skills/build-cmake/scripts/cmake_builder.py:132
↓ 2 callersFunctiondetect_probes
(openocd_path: str | None = None)
skills/flash-openocd/scripts/openocd_flasher.py:153
↓ 2 callersFunctiondetect_probes
()
skills/debug-gdb-openocd/scripts/gdb_debugger.py:149
↓ 2 callersFunctiondetect_rtos_from_elf
(elf_path: str)
skills/rtos-debug/scripts/rtos_debugger.py:89
↓ 2 callersFunctiondetect_serial_ports
()
skills/flash-idf/scripts/idf_flasher.py:67
↓ 2 callersFunctionfind_gdb
(explicit: str | None)
skills/debug-jlink/scripts/jlink_debugger.py:100
↓ 2 callersFunctionfind_gdb
(explicit: str | None)
skills/debug-gdb-openocd/scripts/gdb_debugger.py:113
↓ 2 callersFunctionfind_gdbserver
()
skills/debug-jlink/scripts/jlink_debugger.py:90
↓ 2 callersFunctionfind_iarbuild
定位 iarbuild.exe。
skills/build-iar/scripts/iar_builder.py:130
↓ 2 callersFunctionfind_make
()
skills/build-makefile/scripts/makefile_builder.py:141
↓ 2 callersFunctionfind_sdk_bundled_openocd_scripts
探测嵌入式 SDK 自带的 OpenOCD scripts 目录。 部分 SDK(如 Raspberry Pi Pico SDK、PlatformIO 等)会安装 自己的 OpenOCD,包含芯片特定目标配置文件(系统 OpenOCD 可能没有)。 返回 scrip
shared/tool_config.py:123
↓ 2 callersFunctionguess_mcu
(makefile_info: MakefileInfo)
skills/build-makefile/scripts/makefile_builder.py:232
↓ 2 callersFunctionis_windows
()
skills/build-iar/scripts/iar_builder.py:108
↓ 2 callersFunctionload_presets
(source_dir: Path)
skills/build-cmake/scripts/cmake_builder.py:166
↓ 2 callersFunctionload_profile
(workspace: str | Path, skill_name: str, name: str | None = None)
shared/profile_store.py:75
↓ 2 callersFunctionparse_debugger_config
(project_path: Path, target_name: str | None = None)
skills/flash-keil/scripts/keil_flasher.py:96
↓ 2 callersFunctionparse_ieee_block
(raw: bytes)
skills/visa-debug/scripts/visa_tool.py:95
↓ 2 callersFunctionparse_linker_script
(ld_path: str)
skills/memory-analysis/scripts/memory_analyzer.py:232
↓ 2 callersFunctionparse_project
(project_path: Path)
skills/build-keil/scripts/keil_builder.py:197
↓ 2 callersFunctionpick_primary_artifact
(artifacts: list[Artifact])
skills/build-makefile/scripts/makefile_builder.py:332
next →1–100 of 384, ranked by callers