feat: add control panel

This commit is contained in:
thanhnv
2026-07-08 19:07:35 +09:00
parent a07b15e489
commit 3be9970c15
104 changed files with 3639 additions and 461 deletions
@@ -24,11 +24,15 @@ fi
_casan_paths_self="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# Walk up from a starting dir until a dir containing `.specify/` is found.
# Walk up from a starting dir to the app/bundle root. Primary marker is the `.specify`
# state dir (present in an adopted repo). Secondary marker is `packages/casan-harness`
# (present in a freshly-extracted release bundle that has no `.specify` yet) — so a
# just-unpacked core/devkit/demo bundle resolves correctly and creates `.specify` on
# first write. In a real repo `.specify` matches first, so behavior is unchanged.
_casan_find_app_root() {
local d="$1"
while [[ -n "$d" && "$d" != "/" ]]; do
if [[ -d "$d/.specify" ]]; then
if [[ -d "$d/.specify" || -d "$d/packages/casan-harness" ]]; then
printf '%s\n' "$d"
return 0
fi