v0.2.18 - Add Python test harness and harden increment/push script for git identity and SSH remote handling

This commit is contained in:
Didactyl User
2026-03-25 09:23:55 -04:00
parent faf3edf29f
commit cf33b3b2c9
3 changed files with 26 additions and 4 deletions

View File

@@ -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. 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.** **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 - Connects to configured relays with auto-reconnect and relay state transition logging
- Publishes configured startup events per relay as each relay becomes connected - Publishes configured startup events per relay as each relay becomes connected

View File

@@ -142,6 +142,27 @@ ensure_git_identity() {
fi 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 # Function to get current version and increment appropriately
increment_version() { increment_version() {
local increment_type="$1" # "patch", "minor", or "major" local increment_type="$1" # "patch", "minor", or "major"
@@ -543,6 +564,7 @@ main() {
# Check prerequisites # Check prerequisites
check_git_repo check_git_repo
ensure_git_identity ensure_git_identity
ensure_origin_ssh_remote
if [[ "$RELEASE_MODE" == true ]]; then if [[ "$RELEASE_MODE" == true ]]; then
print_status "=== RELEASE MODE ===" print_status "=== RELEASE MODE ==="

View File

@@ -12,8 +12,8 @@
// Using DIDACTYL_ prefix to avoid conflicts with nostr_core_lib VERSION macros // Using DIDACTYL_ prefix to avoid conflicts with nostr_core_lib VERSION macros
#define DIDACTYL_VERSION_MAJOR 0 #define DIDACTYL_VERSION_MAJOR 0
#define DIDACTYL_VERSION_MINOR 2 #define DIDACTYL_VERSION_MINOR 2
#define DIDACTYL_VERSION_PATCH 17 #define DIDACTYL_VERSION_PATCH 18
#define DIDACTYL_VERSION "v0.2.17" #define DIDACTYL_VERSION "v0.2.18"
// Agent metadata // Agent metadata
#define DIDACTYL_NAME "Didactyl" #define DIDACTYL_NAME "Didactyl"