Files
make-cad/tools/skillbuild.py
T
NiJingzhe 264a904f8b feat(skill): 'sca skill targets|install' + skill source shipped in wheel
The wheel force-includes the uncompiled docs/skill source tree and
skillproj.toml as package resources; compilation happens at install
time on the user's machine, so no repository checkout is needed.

The compiler moves to simplecadapi.skill.compiler; tools/skillbuild.py
stays as the maintainer-side wrapper over the same code.

'sca skill install' compiles into <skills-dir>/simplecadapi (location
resolved through the existing addon config/env chain, default
~/.agents/skills; no sca init required) and refuses to overwrite
without --force, which only permits replacing a directory whose
SKILL.md declares the same skill name.
2026-09-18 10:54:13 +08:00

19 lines
384 B
Python
Executable File

#!/usr/bin/env python3
"""Checkout entry point for the shared skill compiler."""
from simplecadapi.skill.compiler import (
Condition,
SkillBuildError,
SkillProject,
SourceFile,
build_target,
collect_source_files,
compile_text,
find_project_root,
load_project,
main,
verify_output,
)
if __name__ == "__main__":
raise SystemExit(main())