Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down
2 changes: 1 addition & 1 deletion apps/tui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@c0mpute/tui",
"version": "0.3.75",
"version": "0.3.76",
"private": true,
"type": "module",
"bin": {
Expand Down
2 changes: 1 addition & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "c0mpute",
"version": "0.3.75",
"version": "0.3.76",
"private": true,
"type": "module",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/app/releases/latest.json/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
8 changes: 5 additions & 3 deletions node/crates/c0mpute-cli/src/dm_cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,10 @@ fn node_target(who: &str) -> Option<String> {
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;
Expand Down Expand Up @@ -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);
}
}
32 changes: 27 additions & 5 deletions node/crates/c0mpute-core/src/dm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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 <node>` 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;
}
});
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "c0mpute-monorepo",
"version": "0.3.75",
"version": "0.3.76",
"private": true,
"workspaces": [
"apps/*",
Expand Down
2 changes: 1 addition & 1 deletion packages/captcha/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@c0mpute/shared",
"version": "0.3.75",
"version": "0.3.76",
"private": true,
"type": "module",
"main": "./dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion plugins/ad-generator-agent/module.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion plugins/ads-manager/module.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion plugins/apps/module.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion plugins/captcha/module.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion plugins/coinpay/module.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion plugins/containers/module.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion plugins/crawl/module.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion plugins/crowdgpt/module.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion plugins/ctv-ads/module.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion plugins/diffusion/module.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion plugins/embed/module.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion plugins/gameserver/module.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Loading