INNER CODE UNIT · Python
src
kangarooking/cangjie-skill · scripts/cangjie.py:136
src = pack / src_name
if src.exists():
shutil.copyfile(src, bundle_dir / "book" / dst_name)
print(f"Capability Bundle 已生成: {bundle_dir}({len(capabilities)} 个能力)")
return 0
# ---------- compile ----------
def cmd_compile(args) -> int:
from compile_pack import compile_pack_tree
from compile_single import build_tree, write_tree
from select_output_strategy import decide, render_report
bundle_dir = Path(args.bundle)
sidecar = bundle_dir.parent if bundle_dir.name == "capabilities" else bundle_dir
run_id = new_run_id()