From 56d4073f4a302ffd2c71a5dc231d4451fbcb2a48 Mon Sep 17 00:00:00 2001 From: Brydon DeWitt Date: Mon, 8 Jun 2026 22:30:13 -0400 Subject: [PATCH] fix: moved "config" files under .agents --- .../frameworks}/opencode/opencode.json | 0 .../llama-server/llama-server-presets.path | 0 .../llama-server/llama-server-presets.service | 0 .../llama-server/llama-server.service | 0 {config => .agents}/llama-server/presets.ini | 0 {config => .agents}/llama-server/start.sh | 0 README.md | 2 +- install.sh | 13 ++++++------- 8 files changed, 7 insertions(+), 8 deletions(-) rename {config => .agents/frameworks}/opencode/opencode.json (100%) rename {config => .agents}/llama-server/llama-server-presets.path (100%) rename {config => .agents}/llama-server/llama-server-presets.service (100%) rename {config => .agents}/llama-server/llama-server.service (100%) rename {config => .agents}/llama-server/presets.ini (100%) rename {config => .agents}/llama-server/start.sh (100%) diff --git a/config/opencode/opencode.json b/.agents/frameworks/opencode/opencode.json similarity index 100% rename from config/opencode/opencode.json rename to .agents/frameworks/opencode/opencode.json diff --git a/config/llama-server/llama-server-presets.path b/.agents/llama-server/llama-server-presets.path similarity index 100% rename from config/llama-server/llama-server-presets.path rename to .agents/llama-server/llama-server-presets.path diff --git a/config/llama-server/llama-server-presets.service b/.agents/llama-server/llama-server-presets.service similarity index 100% rename from config/llama-server/llama-server-presets.service rename to .agents/llama-server/llama-server-presets.service diff --git a/config/llama-server/llama-server.service b/.agents/llama-server/llama-server.service similarity index 100% rename from config/llama-server/llama-server.service rename to .agents/llama-server/llama-server.service diff --git a/config/llama-server/presets.ini b/.agents/llama-server/presets.ini similarity index 100% rename from config/llama-server/presets.ini rename to .agents/llama-server/presets.ini diff --git a/config/llama-server/start.sh b/.agents/llama-server/start.sh similarity index 100% rename from config/llama-server/start.sh rename to .agents/llama-server/start.sh diff --git a/README.md b/README.md index aec973b..15dc3b6 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ If using devcontainers, drop the `--host` flag in the Dockerfile or just rely on **Host install** (`install.sh --host`): - Everything in basic install, plus: -- llama-server presets, startup script, and systemd units from `config/llama-server/` +- llama-server presets, startup script, and systemd units from `.agents/llama-server/` ## Idempotent diff --git a/install.sh b/install.sh index 8d71149..a2aab2c 100755 --- a/install.sh +++ b/install.sh @@ -9,7 +9,6 @@ INSTALL_HOST=false for arg in "$@"; do case "$arg" in --host) INSTALL_HOST=true ;; esac; done DOTFILES_AGENTS="$(cd "$(dirname "$0")" && pwd)/.agents" -DOTFILES_CONFIG="$(cd "$(dirname "$0")" && pwd)/config" log() { printf '\033[0;32m✓\033[0m %s\n' "$1"; } warn() { printf '\033[0;33m⚠\033[0m %s\n' "$1"; } @@ -92,7 +91,7 @@ else fi # ── 4. OpenCode global config (opencode.json) ──────────────────────────────── -OC_CONFIG_SOURCE="$DOTFILES_CONFIG/opencode/opencode.json" +OC_CONFIG_SOURCE="$DOTFILES_AGENTS/frameworks/opencode/opencode.json" OC_CONFIG_LINK="$HOME/.config/opencode/opencode.json" mkdir -p "$(dirname "$OC_CONFIG_LINK")" @@ -134,7 +133,7 @@ else _hf_download "bartowski/Qwen_Qwen3.6-27B-GGUF" "Qwen_Qwen3.6-27B-Q4_K_M.gguf" "$HOME/models" fi - PRESETS_SRC="$DOTFILES_CONFIG/llama-server/presets.ini" + PRESETS_SRC="$DOTFILES_AGENTS/llama-server/presets.ini" PRESETS_DST="$HOME/models/presets.ini" mkdir -p "$HOME/models" if diff -q "$PRESETS_SRC" "$PRESETS_DST" >/dev/null 2>&1; then @@ -144,7 +143,7 @@ else log "Installed presets.ini → $PRESETS_DST" fi - SVC_SRC="$DOTFILES_CONFIG/llama-server/llama-server.service" + SVC_SRC="$DOTFILES_AGENTS/llama-server/llama-server.service" SVC_DST="/etc/systemd/system/llama-server.service" if diff -q "$SVC_SRC" "$SVC_DST" >/dev/null 2>&1; then skip "llama-server.service already up-to-date: $SVC_DST" @@ -153,7 +152,7 @@ else log "Installed llama-server.service → $SVC_DST" fi - PATH_SRC="$DOTFILES_CONFIG/llama-server/llama-server-presets.path" + PATH_SRC="$DOTFILES_AGENTS/llama-server/llama-server-presets.path" PATH_DST="/etc/systemd/system/llama-server-presets.path" if diff -q "$PATH_SRC" "$PATH_DST" >/dev/null 2>&1; then skip "llama-server-presets.path already up-to-date: $PATH_DST" @@ -162,7 +161,7 @@ else log "Installed llama-server-presets.path → $PATH_DST" fi - PSVC_SRC="$DOTFILES_CONFIG/llama-server/llama-server-presets.service" + PSVC_SRC="$DOTFILES_AGENTS/llama-server/llama-server-presets.service" PSVC_DST="/etc/systemd/system/llama-server-presets.service" if diff -q "$PSVC_SRC" "$PSVC_DST" >/dev/null 2>&1; then skip "llama-server-presets.service already up-to-date: $PSVC_DST" @@ -171,7 +170,7 @@ else log "Installed llama-server-presets.service → $PSVC_DST" fi - START_SRC="$DOTFILES_CONFIG/llama-server/start.sh" + START_SRC="$DOTFILES_AGENTS/llama-server/start.sh" START_DST="/opt/llama-server/start.sh" mkdir -p "$(dirname "$START_DST")" if diff -q "$START_SRC" "$START_DST" >/dev/null 2>&1; then