mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-09 05:50:44 +08:00
50 lines
1.1 KiB
Python
50 lines
1.1 KiB
Python
from __future__ import annotations
|
|
|
|
from pathlib import Path
|
|
|
|
from oclaw.platform.config.paths import PROJECT_ROOT
|
|
|
|
|
|
def oclaw_root() -> Path:
|
|
return Path(PROJECT_ROOT).resolve()
|
|
|
|
|
|
def runtime_root() -> Path:
|
|
return (oclaw_root() / "runtime").resolve()
|
|
|
|
|
|
def runtime_skills_root() -> Path:
|
|
return (runtime_root() / "skills").resolve()
|
|
|
|
|
|
def runtime_hooks_root() -> Path:
|
|
return (runtime_root() / "hooks").resolve()
|
|
|
|
|
|
def runtime_hooks_bundled_root() -> Path:
|
|
return (runtime_hooks_root() / "bundled").resolve()
|
|
|
|
|
|
def runtime_extensions_root() -> Path:
|
|
return (runtime_root() / "extensions").resolve()
|
|
|
|
|
|
def runtime_operations_scripts_root() -> Path:
|
|
return (runtime_root() / "operations" / "scripts").resolve()
|
|
|
|
|
|
def ws_protocol_schemas_root() -> Path:
|
|
return (oclaw_root() / "interfaces" / "ws" / "protocol_schemas").resolve()
|
|
|
|
|
|
__all__ = [
|
|
"oclaw_root",
|
|
"runtime_root",
|
|
"runtime_skills_root",
|
|
"runtime_hooks_root",
|
|
"runtime_hooks_bundled_root",
|
|
"runtime_extensions_root",
|
|
"runtime_operations_scripts_root",
|
|
"ws_protocol_schemas_root",
|
|
]
|
|
|