v0.2.25 - Fix private skill interoperability: NIP-44 encode/decode for kind 31124 with runtime tag normalization

This commit is contained in:
Didactyl User
2026-04-05 20:43:32 -04:00
parent 1241943c52
commit 6ad668b693
13 changed files with 2904 additions and 254 deletions

View File

@@ -18,16 +18,15 @@
// Supported values: "nip04", "nip17", or "both".
"dm_protocol": "nip04",
// ─── LLM Provider ──────────────────────────────────────────────────
// OpenAI-compatible endpoint settings.
"llm": {
"provider": "openai",
"api_key": "sk-REPLACE_WITH_API_KEY",
"model": "gpt-4o-mini",
"base_url": "https://api.openai.com/v1",
"max_tokens": 512,
"temperature": 0.7
},
// ─── Encrypted Startup Config Events ───────────────────────────────
// These are published as NIP-44 encrypted kind 30078 self-events on first run.
"encrypted_events": [
{
"kind": 30078,
"d_tag": "user-settings",
"content": "{\"v\":2,\"updatedAt\":0,\"global_llm\":{\"provider\":\"openai\",\"api_key\":\"sk-REPLACE_WITH_API_KEY\",\"model\":\"gpt-4o-mini\",\"base_url\":\"https://api.openai.com/v1\",\"max_tokens\":512,\"temperature\":0.7},\"didactyl\":{\"admin_pubkey\":\"npub1REPLACE_WITH_ADMIN_PUBKEY\",\"dm_protocol\":\"nip04\"}}"
}
],
// ─── HTTP Admin API ────────────────────────────────────────────────
"api": {
@@ -60,7 +59,6 @@
["r", "wss://relay.damus.io"],
["r", "wss://relay.primal.net"]
]
}
},
{
"kind": 31124,