mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-09 04:40:45 +08:00
refactor: move bundled skills tree to repo root skills/
- Relocate runtime/skills -> skills/; runtime_skills_root() prefers oclaw/skills with fallback to legacy runtime/skills for unmigrated trees. - session-bootstrap hook handler resolves repo root via PROJECT_ROOT. - Update architecture/migration docs and in-tree skill references. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
396dba76ea
commit
beb52006d8
298 changed files with 51 additions and 51 deletions
|
|
@ -14,7 +14,14 @@ def runtime_root() -> Path:
|
|||
|
||||
|
||||
def runtime_skills_root() -> Path:
|
||||
return (runtime_root() / "skills").resolve()
|
||||
"""Canonical skills tree lives at repo ``skills/``; ``runtime/skills`` remains a migration fallback."""
|
||||
root_skills = (oclaw_root() / "skills").resolve()
|
||||
legacy_runtime_skills = (runtime_root() / "skills").resolve()
|
||||
if root_skills.is_dir():
|
||||
return root_skills
|
||||
if legacy_runtime_skills.is_dir():
|
||||
return legacy_runtime_skills
|
||||
return root_skills
|
||||
|
||||
|
||||
def runtime_hooks_root() -> Path:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue