From cf33b3b2c99146efd63ac031fc0497d755043d5b Mon Sep 17 00:00:00 2001 From: Didactyl User Date: Wed, 25 Mar 2026 09:23:55 -0400 Subject: [PATCH] v0.2.18 - Add Python test harness and harden increment/push script for git identity and SSH remote handling --- README.md | 4 ++-- increment_and_push.sh | 22 ++++++++++++++++++++++ src/main.h | 4 ++-- 3 files changed, 26 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ca923f1..e474a0f 100644 --- a/README.md +++ b/README.md @@ -54,11 +54,11 @@ Skills compose by adoption-list order (`10123`) and trigger tags carry runtime e Didactyl will support local inference, which is very privacy preserving. Remote inference does however have it's advantages, and in those cases Didactyl supports using Bitcoin Lightning and eCash inference providers. -## Current Status — v0.2.17 +## Current Status — v0.2.18 **Active build — this project is barely working. Experiment at your own risk.** -> Last release update: v0.2.17 — Add Python test harness and improve increment_and_push diagnostics and git identity handling +> Last release update: v0.2.18 — Add Python test harness and harden increment/push script for git identity and SSH remote handling - Connects to configured relays with auto-reconnect and relay state transition logging - Publishes configured startup events per relay as each relay becomes connected diff --git a/increment_and_push.sh b/increment_and_push.sh index 864615a..1551e69 100755 --- a/increment_and_push.sh +++ b/increment_and_push.sh @@ -142,6 +142,27 @@ ensure_git_identity() { fi } +# Ensure origin remote uses SSH for git.laantungir.net to avoid HTTPS username prompts +ensure_origin_ssh_remote() { + local origin_url + origin_url=$(git remote get-url origin 2>/dev/null || true) + + if [[ -z "$origin_url" ]]; then + print_warning "No 'origin' remote found; skipping remote URL normalization" + return 0 + fi + + # Convert only this host from HTTPS to SSH (uses ~/.ssh/config Host git.laantungir.net) + if [[ "$origin_url" =~ ^https://git\.laantungir\.net/(.+)\.git$ ]]; then + local repo_path + local ssh_url + repo_path="${BASH_REMATCH[1]}" + ssh_url="git@git.laantungir.net:${repo_path}.git" + git remote set-url origin "$ssh_url" + print_status "Updated origin remote to SSH: $ssh_url" + fi +} + # Function to get current version and increment appropriately increment_version() { local increment_type="$1" # "patch", "minor", or "major" @@ -543,6 +564,7 @@ main() { # Check prerequisites check_git_repo ensure_git_identity + ensure_origin_ssh_remote if [[ "$RELEASE_MODE" == true ]]; then print_status "=== RELEASE MODE ===" diff --git a/src/main.h b/src/main.h index 9e1413f..2071264 100644 --- a/src/main.h +++ b/src/main.h @@ -12,8 +12,8 @@ // Using DIDACTYL_ prefix to avoid conflicts with nostr_core_lib VERSION macros #define DIDACTYL_VERSION_MAJOR 0 #define DIDACTYL_VERSION_MINOR 2 -#define DIDACTYL_VERSION_PATCH 17 -#define DIDACTYL_VERSION "v0.2.17" +#define DIDACTYL_VERSION_PATCH 18 +#define DIDACTYL_VERSION "v0.2.18" // Agent metadata #define DIDACTYL_NAME "Didactyl"