♻️ refactor(json_handler): update trigger root path calculation

- change trigger root to use resolved path parents for consistency
- improve path resolution to avoid reliance on home directory expansion
This commit is contained in:
AIOSAI
2026-03-05 22:46:04 -08:00
parent 430b5ecbac
commit 751be2d30b
@@ -25,7 +25,7 @@ import inspect
# Infrastructure
# Constants
TRIGGER_ROOT = Path.home() / "aipass_core" / "trigger"
TRIGGER_ROOT = Path(__file__).resolve().parents[3]
TRIGGER_JSON_DIR = TRIGGER_ROOT / "trigger_json"
JSON_TEMPLATES_DIR = TRIGGER_ROOT / "apps" / "json_templates"