INNER CODE UNIT · Python
plugin_dir
softaworks/agent-toolkit · scripts/build_plugins.py:75
plugin_dir = dist_dir / name
paths = extract_paths(plugin)
file_count = 0
if not paths:
if verbose:
print(f" skip {name}: no skills/agents/commands defined")
return 0
if not dry_run:
plugin_dir.mkdir(parents=True, exist_ok=True)
for rel_path, path_type in paths:
src = root / rel_path
dst = plugin_dir / rel_path
if path_type == "skill_dir":
if not src.is_dir():