From 560a698d25bd61ef45f095074eea315bbf9f6b3c Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 13 Mar 2026 09:30:37 -0400 Subject: [PATCH] v0.0.70 - Add c_utils_lib category-based debug filtering with tests/docs and root API log tail shortcut script --- README.md | 4 ++-- src/main.h | 4 ++-- view_api_call_logs.sh | 28 ++++++++++++++++++++++++++++ 3 files changed, 32 insertions(+), 4 deletions(-) create mode 100755 view_api_call_logs.sh diff --git a/README.md b/README.md index 2766d51..5381bcb 100644 --- a/README.md +++ b/README.md @@ -55,11 +55,11 @@ Skills support context modes (`inject`, `full`, `override`) and per-skill LLM fa 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.0.69 +## Current Status — v0.0.70 **Active build — this project is barely working. Experiment at your own risk.** -> Last release update: v0.0.69 — Add startup skill to publish core docs as longform notes and switch admin announcement DMs to NIP-04 +> Last release update: v0.0.70 — Add c_utils_lib category-based debug filtering with tests/docs and root API log tail shortcut script - 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/src/main.h b/src/main.h index bf93a3a..1bfd33f 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 0 -#define DIDACTYL_VERSION_PATCH 69 -#define DIDACTYL_VERSION "v0.0.69" +#define DIDACTYL_VERSION_PATCH 70 +#define DIDACTYL_VERSION "v0.0.70" // Agent metadata #define DIDACTYL_NAME "Didactyl" diff --git a/view_api_call_logs.sh b/view_api_call_logs.sh new file mode 100755 index 0000000..fe3e775 --- /dev/null +++ b/view_api_call_logs.sh @@ -0,0 +1,28 @@ +#!/bin/bash +set -euo pipefail + +LOG_FILE="${1:-}" + +if [ -z "$LOG_FILE" ]; then + for candidate in "./didactyl.log" "./debug.log" "./context.log.md"; do + if [ -f "$candidate" ]; then + LOG_FILE="$candidate" + break + fi + done +fi + +if [ -z "$LOG_FILE" ] || [ ! -f "$LOG_FILE" ]; then + echo "Log file not found." >&2 + echo "Tried defaults: ./didactyl.log ./debug.log ./context.log.md" >&2 + echo "Usage: $0 [path/to/logfile]" >&2 + exit 1 +fi + +echo "Following API call logs from: $LOG_FILE" +echo "(Press Ctrl+C to stop)" + +# Show request/response failure lines related to outbound LLM HTTP calls. +# These are emitted by Didactyl in src/llm.c via fprintf(stderr, ...). +tail -n 0 -F "$LOG_FILE" \ + | stdbuf -oL grep -E --line-buffered "\\[didactyl\\] llm request:|\\[didactyl\\] llm http request failed:|\\[didactyl\\] llm error response:|\\[didactyl\\] llm partial response:|\\[didactyl\\] llm hint:" \ No newline at end of file