lib_extract_cse_zip
Extracts a Component Search Engine zip, stages its SchLib, PcbLib, and STEP files in a destination folder, and returns an ordered install plan for placing the part.
Instructions
Extract a Component Search Engine zip and build its install plan.
Stage 5 of the autonomous flow (library readiness,
reference/autonomy-roadmap.md): stages the recognized members
(.SchLib / .PcbLib / STEP) flattened into dest_dir and returns
an ordered install_plan whose steps are exact
lib_install_library / lib_link_footprint /
lib_link_3d_model parameter dicts -- dispatch them in order to
make the part placeable. Any archive member with an absolute path,
drive letter, or .. segment rejects the WHOLE archive before
anything is written. Extraction is pure Python; only the install
plan touches Altium when dispatched.
Args:
zip_path: Absolute path to the downloaded zip.
dest_dir: Where to stage the files. Default:
<workspace>/cse_imports/<zip stem>.
Returns:
{"ok": True, "mpn", "files": [abs paths], "extracted": {"schlib"/"pcblib"/"step": abs path or None}, "install_plan": [{"tool", "params"}]} or {"ok": False, "reason": "..."}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dest_dir | No | ||
| zip_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||