fix template, remove okr, use casan.*

This commit is contained in:
thanhnv
2026-07-18 16:45:31 +07:00
parent 0dfd1742d3
commit 13fae3e6c3
249 changed files with 4881 additions and 5702 deletions
@@ -76,7 +76,12 @@ fi
# apps/okr/domain (compat symlinks bridge the pre-move .specify paths). A different
# app sets CASAN_DOMAIN_ROOT to its own apps/<project>/domain (Plan-06 reuse).
if [[ -z "${CASAN_DOMAIN_ROOT:-}" ]]; then
if [[ -d "$CASAN_APP_ROOT/apps/okr/domain" ]]; then
if [[ -n "${CASAN_PROJECT_MANIFEST:-}${CASAN_PROJECT_ID:-}" ]] && command -v python3 >/dev/null 2>&1; then
_casan_manifest_args=(domain-root --root "$CASAN_APP_ROOT")
[[ -n "${CASAN_PROJECT_MANIFEST:-}" ]] && _casan_manifest_args+=(--manifest "$CASAN_PROJECT_MANIFEST")
[[ -n "${CASAN_PROJECT_ID:-}" ]] && _casan_manifest_args+=(--project "$CASAN_PROJECT_ID")
CASAN_DOMAIN_ROOT="$(python3 "$CASAN_HARNESS_ROOT/scripts/bash/project_manifest.py" "${_casan_manifest_args[@]}")" || return 2
elif [[ -d "$CASAN_APP_ROOT/apps/okr/domain" ]]; then
CASAN_DOMAIN_ROOT="$CASAN_APP_ROOT/apps/okr/domain"
else
# Fallback for the pre-split monolithic layout: domain data co-located in .specify.