fix(boot): Point SKILLS_DIR to repo skills/ folder and improve boot failure error messages
Some checks failed
Deploy-Agent-V15-Stdin / JOB-V15-STDIN (push) Failing after 35s
Some checks failed
Deploy-Agent-V15-Stdin / JOB-V15-STDIN (push) Failing after 35s
This commit is contained in:
20
.env.example
20
.env.example
@@ -39,18 +39,18 @@ CONTEXT_LOG_LIMIT=20
|
|||||||
|
|
||||||
# Memex Integration
|
# Memex Integration
|
||||||
# Inside Docker, /app/ is the root for consolidated notes
|
# Inside Docker, /app/ is the root for consolidated notes
|
||||||
MEMEX_DIR="/memex"
|
MEMEX_DIR="$HOME/memex"
|
||||||
ZETTELKASTEN_DIR="/memex/notes"
|
ZETTELKASTEN_DIR="$HOME/memex/notes"
|
||||||
SKILLS_DIR="/memex/notes"
|
SKILLS_DIR="skills/"
|
||||||
|
|
||||||
# PARA Structure (Consolidated)
|
# PARA Structure (Consolidated)
|
||||||
INBOX_DIR="/memex/inbox"
|
INBOX_DIR="$HOME/memex/inbox"
|
||||||
DAILY_DIR="/memex/daily"
|
DAILY_DIR="$HOME/memex/daily"
|
||||||
PROJECTS_DIR="/memex/projects"
|
PROJECTS_DIR="$HOME/memex/projects"
|
||||||
AREAS_DIR="/memex/areas"
|
AREAS_DIR="$HOME/memex/areas"
|
||||||
RESOURCES_DIR="/memex/resources"
|
RESOURCES_DIR="$HOME/memex/resources"
|
||||||
ARCHIVES_DIR="/memex/archives"
|
ARCHIVES_DIR="$HOME/memex/archives"
|
||||||
SYSTEM_DIR="/memex/system"
|
SYSTEM_DIR="$HOME/memex/system"
|
||||||
|
|
||||||
# Identity Configuration
|
# Identity Configuration
|
||||||
MEMEX_USER="YourName"
|
MEMEX_USER="YourName"
|
||||||
|
|||||||
@@ -68,6 +68,9 @@ setup_system() {
|
|||||||
memex_dir=${memex_dir:-$HOME/memex}
|
memex_dir=${memex_dir:-$HOME/memex}
|
||||||
sed -i "s|MEMEX_DIR=.*|MEMEX_DIR=\"$memex_dir\"|" .env
|
sed -i "s|MEMEX_DIR=.*|MEMEX_DIR=\"$memex_dir\"|" .env
|
||||||
sed -i "s|\"/memex/|\"$memex_dir/|g" .env
|
sed -i "s|\"/memex/|\"$memex_dir/|g" .env
|
||||||
|
sed -i "s|SKILLS_DIR=.*|SKILLS_DIR=\"$SCRIPT_DIR/skills\"|" .env
|
||||||
|
sed -i "s|ZETTELKASTEN_DIR=.*|ZETTELKASTEN_DIR=\"$memex_dir/notes\"|" .env
|
||||||
|
|
||||||
|
|
||||||
read -p "Inbox Directory [$memex_dir/inbox]: " inbox_dir < /dev/tty
|
read -p "Inbox Directory [$memex_dir/inbox]: " inbox_dir < /dev/tty
|
||||||
inbox_dir=${inbox_dir:-$memex_dir/inbox}
|
inbox_dir=${inbox_dir:-$memex_dir/inbox}
|
||||||
|
|||||||
@@ -333,7 +333,7 @@ The `initialize-all-skills` function is the unified orchestrator for the system
|
|||||||
'("org-skill-policy" "org-skill-bouncer"))))
|
'("org-skill-policy" "org-skill-bouncer"))))
|
||||||
(dolist (req mandatory-skills)
|
(dolist (req mandatory-skills)
|
||||||
(unless (member req sorted-files :key #'pathname-name :test #'string-equal)
|
(unless (member req sorted-files :key #'pathname-name :test #'string-equal)
|
||||||
(error "BOOT FAILURE: Mandatory skill '~a' not found in skills directory." req)))
|
(error "BOOT FAILURE: Mandatory skill '~a' not found in skills directory: ~a" req (uiop:native-namestring skills-dir))" req)))
|
||||||
|
|
||||||
(harness-log "==================================================")
|
(harness-log "==================================================")
|
||||||
(harness-log " LOADER: Initializing ~a skills..." (length sorted-files))
|
(harness-log " LOADER: Initializing ~a skills..." (length sorted-files))
|
||||||
|
|||||||
@@ -59,6 +59,9 @@ setup_system() {
|
|||||||
memex_dir=${memex_dir:-$HOME/memex}
|
memex_dir=${memex_dir:-$HOME/memex}
|
||||||
sed -i "s|MEMEX_DIR=.*|MEMEX_DIR=\"$memex_dir\"|" .env
|
sed -i "s|MEMEX_DIR=.*|MEMEX_DIR=\"$memex_dir\"|" .env
|
||||||
sed -i "s|\"/memex/|\"$memex_dir/|g" .env
|
sed -i "s|\"/memex/|\"$memex_dir/|g" .env
|
||||||
|
sed -i "s|SKILLS_DIR=.*|SKILLS_DIR=\"$SCRIPT_DIR/skills\"|" .env
|
||||||
|
sed -i "s|ZETTELKASTEN_DIR=.*|ZETTELKASTEN_DIR=\"$memex_dir/notes\"|" .env
|
||||||
|
|
||||||
|
|
||||||
read -p "Inbox Directory [$memex_dir/inbox]: " inbox_dir < /dev/tty
|
read -p "Inbox Directory [$memex_dir/inbox]: " inbox_dir < /dev/tty
|
||||||
inbox_dir=${inbox_dir:-$memex_dir/inbox}
|
inbox_dir=${inbox_dir:-$memex_dir/inbox}
|
||||||
|
|||||||
@@ -205,7 +205,7 @@
|
|||||||
'("org-skill-policy" "org-skill-bouncer"))))
|
'("org-skill-policy" "org-skill-bouncer"))))
|
||||||
(dolist (req mandatory-skills)
|
(dolist (req mandatory-skills)
|
||||||
(unless (member req sorted-files :key #'pathname-name :test #'string-equal)
|
(unless (member req sorted-files :key #'pathname-name :test #'string-equal)
|
||||||
(error "BOOT FAILURE: Mandatory skill '~a' not found in skills directory." req)))
|
(error "BOOT FAILURE: Mandatory skill '~a' not found in skills directory: ~a" req (uiop:native-namestring skills-dir))" req)))
|
||||||
|
|
||||||
(harness-log "==================================================")
|
(harness-log "==================================================")
|
||||||
(harness-log " LOADER: Initializing ~a skills..." (length sorted-files))
|
(harness-log " LOADER: Initializing ~a skills..." (length sorted-files))
|
||||||
|
|||||||
Reference in New Issue
Block a user