diff --git a/Cargo.lock b/Cargo.lock index 97940c51..d936956d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -486,7 +486,7 @@ checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04" [[package]] name = "c0mpute-api" -version = "0.3.75" +version = "0.3.76" dependencies = [ "anyhow", "c0mpute-proto", @@ -501,7 +501,7 @@ dependencies = [ [[package]] name = "c0mpute-bench" -version = "0.3.75" +version = "0.3.76" dependencies = [ "anyhow", "blake3", @@ -512,7 +512,7 @@ dependencies = [ [[package]] name = "c0mpute-cli" -version = "0.3.75" +version = "0.3.76" dependencies = [ "anyhow", "async-trait", @@ -549,7 +549,7 @@ dependencies = [ [[package]] name = "c0mpute-core" -version = "0.3.75" +version = "0.3.76" dependencies = [ "aes-gcm", "anyhow", @@ -603,7 +603,7 @@ dependencies = [ [[package]] name = "c0mpute-doctor" -version = "0.3.75" +version = "0.3.76" dependencies = [ "anyhow", "serde", @@ -615,7 +615,7 @@ dependencies = [ [[package]] name = "c0mpute-envelope" -version = "0.3.75" +version = "0.3.76" dependencies = [ "blake3", "bs58", @@ -628,7 +628,7 @@ dependencies = [ [[package]] name = "c0mpute-gateway" -version = "0.3.75" +version = "0.3.76" dependencies = [ "anyhow", "axum", @@ -650,7 +650,7 @@ dependencies = [ [[package]] name = "c0mpute-market" -version = "0.3.75" +version = "0.3.76" dependencies = [ "c0mpute-envelope", "serde", @@ -660,7 +660,7 @@ dependencies = [ [[package]] name = "c0mpute-net" -version = "0.3.75" +version = "0.3.76" dependencies = [ "anyhow", "async-trait", @@ -681,7 +681,7 @@ dependencies = [ [[package]] name = "c0mpute-placement" -version = "0.3.75" +version = "0.3.76" dependencies = [ "anyhow", "async-trait", @@ -702,7 +702,7 @@ dependencies = [ [[package]] name = "c0mpute-proto" -version = "0.3.75" +version = "0.3.76" dependencies = [ "blake3", "hex", @@ -714,7 +714,7 @@ dependencies = [ [[package]] name = "c0mpute-sealed" -version = "0.3.75" +version = "0.3.76" dependencies = [ "aes", "aes-gcm", @@ -736,7 +736,7 @@ dependencies = [ [[package]] name = "c0mpute-secure-chat" -version = "0.3.75" +version = "0.3.76" dependencies = [ "aes-gcm", "anyhow", @@ -759,7 +759,7 @@ dependencies = [ [[package]] name = "c0mpute-store" -version = "0.3.75" +version = "0.3.76" dependencies = [ "anyhow", "blake3", @@ -778,7 +778,7 @@ dependencies = [ [[package]] name = "c0mpute-transcode" -version = "0.3.75" +version = "0.3.76" dependencies = [ "anyhow", "c0mpute-proto", @@ -791,7 +791,7 @@ dependencies = [ [[package]] name = "c0mpute-update" -version = "0.3.75" +version = "0.3.76" dependencies = [ "anyhow", "hex", @@ -806,7 +806,7 @@ dependencies = [ [[package]] name = "c0mpute-verify" -version = "0.3.75" +version = "0.3.76" dependencies = [ "anyhow", "blake3", diff --git a/Cargo.toml b/Cargo.toml index cf4dfd85..09492f47 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,7 +24,7 @@ members = [ ] [workspace.package] -version = "0.3.75" +version = "0.3.76" edition = "2024" license = "MIT" repository = "https://github.com/profullstack/c0mpute" diff --git a/apps/desktop/package.json b/apps/desktop/package.json index 033573dd..12acadef 100644 --- a/apps/desktop/package.json +++ b/apps/desktop/package.json @@ -2,7 +2,7 @@ "name": "@c0mpute/desktop", "productName": "c0mpute", "desktopName": "c0mpute-desktop.desktop", - "version": "0.3.75", + "version": "0.3.76", "private": true, "type": "module", "description": "c0mpute desktop: chat, agent with your MCP servers and skills, node manager, hosting and tasks, with the c0mpute CLI bundled.", diff --git a/apps/tui/package.json b/apps/tui/package.json index 4809a31c..35487748 100644 --- a/apps/tui/package.json +++ b/apps/tui/package.json @@ -1,6 +1,6 @@ { "name": "@c0mpute/tui", - "version": "0.3.75", + "version": "0.3.76", "private": true, "type": "module", "bin": { diff --git a/apps/web/package.json b/apps/web/package.json index 635def18..99c884ae 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -1,6 +1,6 @@ { "name": "c0mpute", - "version": "0.3.75", + "version": "0.3.76", "private": true, "type": "module", "scripts": { diff --git a/apps/web/src/app/releases/latest.json/route.ts b/apps/web/src/app/releases/latest.json/route.ts index aa7248c4..c0d54e88 100644 --- a/apps/web/src/app/releases/latest.json/route.ts +++ b/apps/web/src/app/releases/latest.json/route.ts @@ -28,7 +28,7 @@ export const dynamic = "force-dynamic"; * this in sync with the workspace version in `Cargo.toml` on each release so a * freshly built CLI reports "already latest" rather than a phantom upgrade. */ -const FALLBACK_VERSION = "0.3.75"; +const FALLBACK_VERSION = "0.3.76"; const FALLBACK_MIN_REQUIRED = "0.0.1"; type Channel = "stable" | "beta" | "nightly"; diff --git a/node/crates/c0mpute-cli/src/dm_cli.rs b/node/crates/c0mpute-cli/src/dm_cli.rs index 25d2bf90..6549c634 100644 --- a/node/crates/c0mpute-cli/src/dm_cli.rs +++ b/node/crates/c0mpute-cli/src/dm_cli.rs @@ -147,8 +147,10 @@ fn node_target(who: &str) -> Option { if w.starts_with("12D3KooW") && w.len() >= 46 && alnum(w) { return Some(w[w.len() - 8..].to_string()); } - let has_upper = w.chars().any(|c| c.is_ascii_uppercase()); - (w.len() == 8 && alnum(w) && has_upper).then(|| w.to_string()) + // Any 8 alphanumerics: c0mpute.com/nodes shows ids like `mgsu3m6q` as + // well as `fdxBAdC8`. Contact names were already tried before this, and + // no address (64 hex) or fingerprint (16 hex) has 8 characters. + (w.len() == 8 && alnum(w)).then(|| w.to_string()) } /// A node's DM address from the public node list (c0mpute.com/api/nodes; @@ -525,7 +527,7 @@ mod tests { assert_eq!(node_target(&"ab".repeat(32)), None, "a 64-char address is a person"); assert_eq!(node_target("0123456789abcdef"), None, "a fingerprint is a person"); assert_eq!(node_target("sergey"), None); - assert_eq!(node_target("deadbeef"), None, "8 lowercase chars stay a contact name"); + assert_eq!(node_target("mgsu3m6q").as_deref(), Some("mgsu3m6q"), "all-lowercase node ids exist"); assert_eq!(node_target("12D3KooWshort"), None); } } diff --git a/node/crates/c0mpute-core/src/dm.rs b/node/crates/c0mpute-core/src/dm.rs index 6a7985d9..77721d0f 100644 --- a/node/crates/c0mpute-core/src/dm.rs +++ b/node/crates/c0mpute-core/src/dm.rs @@ -933,6 +933,13 @@ pub fn serve_node_identity(dm: Dm, config_dir: PathBuf) { let address = key.address(); let _ = NODE_DM_ADDRESS.set(address.clone()); info!(%address, "secure-chat: node DM identity (operators read with `c0mpute dm read`)"); + // The first publish runs before this node has found any mailbox node, + // so it stores the key nowhere; until it lands somewhere, retry soon + // (30 s, doubling to 10 min), then refresh every NODE_REPUBLISH. + // Before this the retry waited 6 h and senders got "its key is not on + // the network yet" (2026-11-15). + let mut retry = Duration::from_secs(30); + let mut published = false; loop { let now = unix_now(); match HomeRecord::sign(&key, dm.peer_id(), now, NODE_RECORD_SECS) { @@ -943,15 +950,30 @@ pub fn serve_node_identity(dm: Dm, config_dir: PathBuf) { } Err(e) => debug!(err = %e, "secure-chat: node home record not signed"), } - match KeyRecord::sign(&key, now, NODE_RECORD_SECS) { - Ok(rec) => { - if let Err(e) = dm.publish_key(&rec).await { + let stored = match KeyRecord::sign(&key, now, NODE_RECORD_SECS) { + Ok(rec) => match dm.publish_key(&rec).await { + Ok(n) => n, + Err(e) => { debug!(err = %e, "secure-chat: node key record not published yet"); + 0 } + }, + Err(e) => { + debug!(err = %e, "secure-chat: node key record not signed"); + 0 } - Err(e) => debug!(err = %e, "secure-chat: node key record not signed"), + }; + if stored > 0 { + if !published { + info!(copies = stored, "secure-chat: node key published; `c0mpute dm send ` can reach this node"); + published = true; + } + retry = Duration::from_secs(30); + tokio::time::sleep(NODE_REPUBLISH).await; + } else { + tokio::time::sleep(retry).await; + retry = (retry * 2).min(Duration::from_secs(600)); } - tokio::time::sleep(NODE_REPUBLISH).await; } }); } diff --git a/package.json b/package.json index 13c228ed..adae3fdb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "c0mpute-monorepo", - "version": "0.3.75", + "version": "0.3.76", "private": true, "workspaces": [ "apps/*", diff --git a/packages/captcha/package.json b/packages/captcha/package.json index 2176adf1..1a4f588f 100644 --- a/packages/captcha/package.json +++ b/packages/captcha/package.json @@ -1,6 +1,6 @@ { "name": "@profullstack/c0mpute-captcha", - "version": "0.3.75", + "version": "0.3.76", "description": "Solve image, slider, gap, click-text, audio and math captchas on the c0mpute network: library (fetch().then(solveCaptcha)), CLI and stdio MCP server.", "type": "module", "license": "MIT", diff --git a/packages/shared/package.json b/packages/shared/package.json index b7fcf1ac..17d00b7a 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -1,6 +1,6 @@ { "name": "@c0mpute/shared", - "version": "0.3.75", + "version": "0.3.76", "private": true, "type": "module", "main": "./dist/index.js", diff --git a/plugins/ad-generator-agent/module.toml b/plugins/ad-generator-agent/module.toml index b506edb9..3475c8e7 100644 --- a/plugins/ad-generator-agent/module.toml +++ b/plugins/ad-generator-agent/module.toml @@ -21,7 +21,7 @@ [module] id = "ad-generator-agent" name = "Ad Generator Agent — every ad type from one URL" -version = "0.3.75" +version = "0.3.76" kind = "service" category = "applications" status = "available" diff --git a/plugins/ads-manager/module.toml b/plugins/ads-manager/module.toml index 278102d3..92794208 100644 --- a/plugins/ads-manager/module.toml +++ b/plugins/ads-manager/module.toml @@ -38,7 +38,7 @@ [module] id = "ads-manager" name = "Ads Manager — shared ad operations layer" -version = "0.3.75" +version = "0.3.76" kind = "service" category = "applications" status = "partial" diff --git a/plugins/apps/module.toml b/plugins/apps/module.toml index 49965d9b..06c6fe3a 100644 --- a/plugins/apps/module.toml +++ b/plugins/apps/module.toml @@ -18,7 +18,7 @@ [module] id = "apps" name = "Apps — backends with 3x redundancy" -version = "0.3.75" +version = "0.3.76" kind = "workload" category = "infrastructure" status = "available" diff --git a/plugins/captcha/module.toml b/plugins/captcha/module.toml index 8b5765ce..ae45c413 100644 --- a/plugins/captcha/module.toml +++ b/plugins/captcha/module.toml @@ -22,7 +22,7 @@ [module] id = "captcha" name = "Captcha — image, slider, audio and math solving" -version = "0.3.75" +version = "0.3.76" kind = "workload" category = "ai" status = "available" diff --git a/plugins/coinpay/module.toml b/plugins/coinpay/module.toml index 64b3dacc..a5783d2f 100644 --- a/plugins/coinpay/module.toml +++ b/plugins/coinpay/module.toml @@ -7,7 +7,7 @@ [module] id = "coinpay" name = "CoinPay — DID, payments, escrow, reputation" -version = "0.3.75" +version = "0.3.76" kind = "service" category = "applications" status = "available" diff --git a/plugins/containers/module.toml b/plugins/containers/module.toml index f2317ee3..3a2f4687 100644 --- a/plugins/containers/module.toml +++ b/plugins/containers/module.toml @@ -15,7 +15,7 @@ [module] id = "containers" name = "Containers — remote docker builds and jobs" -version = "0.3.75" +version = "0.3.76" kind = "workload" category = "developer" status = "available" diff --git a/plugins/crawl/module.toml b/plugins/crawl/module.toml index 55a653a4..0306f59b 100644 --- a/plugins/crawl/module.toml +++ b/plugins/crawl/module.toml @@ -8,7 +8,7 @@ [module] id = "crawl" name = "Crawl — distributed web fetching" -version = "0.3.75" +version = "0.3.76" kind = "workload" category = "data" status = "available" diff --git a/plugins/crowdgpt/module.toml b/plugins/crowdgpt/module.toml index 909aadd3..a5f571ba 100644 --- a/plugins/crowdgpt/module.toml +++ b/plugins/crowdgpt/module.toml @@ -43,7 +43,7 @@ [module] id = "crowdgpt" name = "CrowdGPT: donate idle compute" -version = "0.3.75" +version = "0.3.76" kind = "donation" category = "ai" status = "available" diff --git a/plugins/ctv-ads/module.toml b/plugins/ctv-ads/module.toml index 31e8dda1..33855cc8 100644 --- a/plugins/ctv-ads/module.toml +++ b/plugins/ctv-ads/module.toml @@ -28,7 +28,7 @@ [module] id = "ctv-ads" name = "CTV Ads — VAST and VMAP from every gateway" -version = "0.3.75" +version = "0.3.76" kind = "service" category = "applications" status = "partial" diff --git a/plugins/diffusion/module.toml b/plugins/diffusion/module.toml index 5fce1287..92ed00b0 100644 --- a/plugins/diffusion/module.toml +++ b/plugins/diffusion/module.toml @@ -11,7 +11,7 @@ [module] id = "diffusion" name = "Diffusion — image generation" -version = "0.3.75" +version = "0.3.76" kind = "workload" category = "ai" status = "available" diff --git a/plugins/embed/module.toml b/plugins/embed/module.toml index 47489f2f..64b2ba07 100644 --- a/plugins/embed/module.toml +++ b/plugins/embed/module.toml @@ -19,7 +19,7 @@ [module] id = "embed" name = "Embeddings — vector generation" -version = "0.3.75" +version = "0.3.76" kind = "workload" category = "ai" status = "available" diff --git a/plugins/gameserver/module.toml b/plugins/gameserver/module.toml index c49bf04b..df558207 100644 --- a/plugins/gameserver/module.toml +++ b/plugins/gameserver/module.toml @@ -55,7 +55,7 @@ [module] id = "gameserver" name = "Game server — Minecraft / Factorio / Valheim" -version = "0.3.75" +version = "0.3.76" kind = "workload" category = "infrastructure" status = "available" diff --git a/plugins/git/module.toml b/plugins/git/module.toml index ebd4bdb4..beb17b60 100644 --- a/plugins/git/module.toml +++ b/plugins/git/module.toml @@ -32,7 +32,7 @@ [module] id = "git" name = "Git — p2p repo hosting" -version = "0.3.75" +version = "0.3.76" kind = "service" category = "data" status = "partial" diff --git a/plugins/hosting/module.toml b/plugins/hosting/module.toml index d6d708ce..db1c1995 100644 --- a/plugins/hosting/module.toml +++ b/plugins/hosting/module.toml @@ -30,7 +30,7 @@ [module] id = "hosting" name = "Hosting — p2p static sites" -version = "0.3.75" +version = "0.3.76" kind = "service" category = "data" status = "available" diff --git a/plugins/infernet/module.toml b/plugins/infernet/module.toml index 4e9c9bd1..2a92a21e 100644 --- a/plugins/infernet/module.toml +++ b/plugins/infernet/module.toml @@ -22,7 +22,7 @@ [module] id = "infernet" name = "Infernet Protocol — AI inference" -version = "0.3.75" +version = "0.3.76" kind = "workload" category = "ai" status = "available" diff --git a/plugins/live-stream/module.toml b/plugins/live-stream/module.toml index cdcf728e..0b09e0ba 100644 --- a/plugins/live-stream/module.toml +++ b/plugins/live-stream/module.toml @@ -34,7 +34,7 @@ [module] id = "live-stream" name = "Live Stream — p2p HLS live streaming" -version = "0.3.75" +version = "0.3.76" kind = "service" category = "media" status = "available" diff --git a/plugins/music/module.toml b/plugins/music/module.toml index 5531329c..e40b4303 100644 --- a/plugins/music/module.toml +++ b/plugins/music/module.toml @@ -15,7 +15,7 @@ [module] id = "music" name = "Music — song generation (ACE-Step 1.5)" -version = "0.3.75" +version = "0.3.76" kind = "workload" category = "ai" status = "available" diff --git a/plugins/ocr/module.toml b/plugins/ocr/module.toml index 71998a1e..b43357df 100644 --- a/plugins/ocr/module.toml +++ b/plugins/ocr/module.toml @@ -19,7 +19,7 @@ [module] id = "ocr" name = "OCR — document text extraction" -version = "0.3.75" +version = "0.3.76" kind = "workload" category = "ai" status = "available" diff --git a/plugins/podcast-ads/module.toml b/plugins/podcast-ads/module.toml index b5af52f8..ff8803f5 100644 --- a/plugins/podcast-ads/module.toml +++ b/plugins/podcast-ads/module.toml @@ -31,7 +31,7 @@ [module] id = "podcast-ads" name = "Podcast Ads — dynamic ad insertion" -version = "0.3.75" +version = "0.3.76" kind = "service" category = "applications" status = "partial" diff --git a/plugins/podcasting/module.toml b/plugins/podcasting/module.toml index 2f79ff89..45782941 100644 --- a/plugins/podcasting/module.toml +++ b/plugins/podcasting/module.toml @@ -24,7 +24,7 @@ [module] id = "podcasting" name = "Podcasting — p2p podcast publishing" -version = "0.3.75" +version = "0.3.76" kind = "service" category = "media" status = "available" diff --git a/plugins/podcasts/module.toml b/plugins/podcasts/module.toml index 2966852a..14e30717 100644 --- a/plugins/podcasts/module.toml +++ b/plugins/podcasts/module.toml @@ -24,7 +24,7 @@ [module] id = "podcasts" name = "Podcasts — p2p podcast listener" -version = "0.3.75" +version = "0.3.76" kind = "service" category = "media" status = "available" diff --git a/plugins/render/module.toml b/plugins/render/module.toml index 3b5513ce..96236381 100644 --- a/plugins/render/module.toml +++ b/plugins/render/module.toml @@ -33,7 +33,7 @@ [module] id = "render" name = "Render — Blender 3D rendering" -version = "0.3.75" +version = "0.3.76" kind = "workload" category = "media" status = "available" diff --git a/plugins/secure-chat/module.toml b/plugins/secure-chat/module.toml index 157c5b25..065fca5b 100644 --- a/plugins/secure-chat/module.toml +++ b/plugins/secure-chat/module.toml @@ -21,7 +21,7 @@ [module] id = "secure-chat" name = "Secure Chat — E2E encrypted p2p messaging" -version = "0.3.75" +version = "0.3.76" kind = "service" category = "applications" status = "available" diff --git a/plugins/storage/module.toml b/plugins/storage/module.toml index 5fddcbaf..3b7747ce 100644 --- a/plugins/storage/module.toml +++ b/plugins/storage/module.toml @@ -20,7 +20,7 @@ [module] id = "storage" name = "Storage — Reed-Solomon shard service" -version = "0.3.75" +version = "0.3.76" kind = "service" category = "data" status = "available" diff --git a/plugins/threatcrush/module.toml b/plugins/threatcrush/module.toml index b9e95e2c..b9c8f0f7 100644 --- a/plugins/threatcrush/module.toml +++ b/plugins/threatcrush/module.toml @@ -19,7 +19,7 @@ [module] id = "threatcrush" name = "ThreatCrush — protect this node" -version = "0.3.75" +version = "0.3.76" kind = "service" category = "infrastructure" status = "available" diff --git a/plugins/train/module.toml b/plugins/train/module.toml index 93bc24a2..ac5b17e2 100644 --- a/plugins/train/module.toml +++ b/plugins/train/module.toml @@ -55,7 +55,7 @@ [module] id = "train" name = "Fine-tune — LoRA training" -version = "0.3.75" +version = "0.3.76" kind = "workload" category = "ai" status = "available" diff --git a/plugins/transcode/module.toml b/plugins/transcode/module.toml index 43affdb6..cda092f0 100644 --- a/plugins/transcode/module.toml +++ b/plugins/transcode/module.toml @@ -7,7 +7,7 @@ [module] id = "transcode" name = "FFmpeg Transcoding" -version = "0.3.75" +version = "0.3.76" kind = "workload" category = "media" status = "available" diff --git a/plugins/tts/module.toml b/plugins/tts/module.toml index b498396d..c4d15740 100644 --- a/plugins/tts/module.toml +++ b/plugins/tts/module.toml @@ -15,7 +15,7 @@ [module] id = "tts" name = "TTS — text-to-speech" -version = "0.3.75" +version = "0.3.76" kind = "workload" category = "ai" status = "available" diff --git a/plugins/video/module.toml b/plugins/video/module.toml index d71a0fb7..ddead9a5 100644 --- a/plugins/video/module.toml +++ b/plugins/video/module.toml @@ -65,7 +65,7 @@ [module] id = "video" name = "Video — generation (Wan 2.2, Wan 2.1 1.3B on 8 GiB or CPU, LTX-2.3 with audio)" -version = "0.3.75" +version = "0.3.76" kind = "workload" category = "ai" status = "available" diff --git a/plugins/webhook/module.toml b/plugins/webhook/module.toml index 4e732651..58f93e1f 100644 --- a/plugins/webhook/module.toml +++ b/plugins/webhook/module.toml @@ -7,7 +7,7 @@ [module] id = "webhook" name = "Webhooks — paid, end-to-end encrypted delivery" -version = "0.3.75" +version = "0.3.76" kind = "workload" category = "infrastructure" status = "available" diff --git a/plugins/whisper/module.toml b/plugins/whisper/module.toml index 2d848d74..41bb3273 100644 --- a/plugins/whisper/module.toml +++ b/plugins/whisper/module.toml @@ -7,7 +7,7 @@ [module] id = "whisper" name = "Whisper — speech-to-text" -version = "0.3.75" +version = "0.3.76" kind = "workload" category = "ai" status = "available" diff --git a/plugins/workflow-step/module.toml b/plugins/workflow-step/module.toml index 89fd6316..5ca91e4d 100644 --- a/plugins/workflow-step/module.toml +++ b/plugins/workflow-step/module.toml @@ -14,7 +14,7 @@ [module] id = "workflow-step" name = "Workflow step — webhook workflow steps (meshhook)" -version = "0.3.75" +version = "0.3.76" kind = "workload" category = "infrastructure" status = "available" diff --git a/plugins/x402/module.toml b/plugins/x402/module.toml index 728839c0..46f33538 100644 --- a/plugins/x402/module.toml +++ b/plugins/x402/module.toml @@ -21,7 +21,7 @@ [module] id = "x402" name = "x402 — charge bots for hosted files" -version = "0.3.75" +version = "0.3.76" kind = "service" category = "applications" status = "available"