Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
31140ff
feat(node): add model upload sessions, release claims, and reclamation
beardthelion Nov 19, 2026
440a7cf
fix(node): cap the first claim's quota reservation too
beardthelion Nov 19, 2026
20fb3c3
fix(node): hide release refs from clone advertisement
beardthelion Nov 19, 2026
b263075
fix(node): stop block ingest when a repo leaves full publicity
beardthelion Nov 19, 2026
4ed781e
style(node): apply rustfmt to the quota test
beardthelion Nov 19, 2026
e2607f9
fix(node): rebuild releases with async range reads
beardthelion Nov 19, 2026
bb394dc
refactor(node): exit model workers on node shutdown
beardthelion Nov 19, 2026
2d29e93
fix(node): refund the admission on post-store failures
beardthelion Nov 19, 2026
690b062
feat(cli): add twigpine model publish
beardthelion Nov 19, 2026
ee8f61a
test(node): add HTTP coverage for model routes
beardthelion Nov 19, 2026
97c4d9b
refactor(node): tighten model publishing after the simplify pass
beardthelion Nov 19, 2026
0e7fb3c
fix(node): harden model publishing after the review pass
beardthelion Nov 19, 2026
9207ee2
chore(cli): annotate model publish's local git spawns
beardthelion Nov 19, 2026
236728e
fix(node): refuse mirror rows for model publishing
beardthelion Nov 19, 2026
27e971c
fix(node): fail closed on mirror rows at every model publicity check
beardthelion Nov 19, 2026
85e4124
fix(node): pin model.rs on the read_json gate, expire open sessions o…
beardthelion Nov 20, 2026
8d6cae2
fix(node): ignore expired sessions in cap sums, refund dedup of relea…
beardthelion Nov 21, 2026
6586831
Merge origin/feat/model-hosting-foundation into feat/model-hosting-pu…
beardthelion Nov 21, 2026
b518cad
fix(node): refund and skip the session link only for blocks the owner…
beardthelion Nov 21, 2026
2a3497c
docs(node): state that a rejected release is final for its commit
beardthelion Nov 21, 2026
4806c29
Merge origin/feat/model-hosting-foundation into feat/model-hosting-pu…
beardthelion Nov 22, 2026
5902079
fix(node): fsync the publish resume file through a writable handle an…
beardthelion Nov 22, 2026
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
3 changes: 2 additions & 1 deletion crates/twigpine-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ alloy = { version = "1", default-features = false, features = [
"rpc-types-eth",
] }

ed25519-dalek = { workspace = true }

[dev-dependencies]
mockito = "1"
tempfile = "3"
tokio = { workspace = true }
ed25519-dalek = { workspace = true }
19 changes: 19 additions & 0 deletions crates/twigpine-cli/src/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,25 @@ impl NodeClient {
self.send_signed("PUT", path, body).await
}

/// PUT raw bytes with no signature and caller-supplied extra headers.
/// Used only for the model block upload, where the session id IS the
/// bearer credential and the body is too large to buffer for signing.
/// Content-Length is set by reqwest from the body, which the route
/// requires. Every other write goes through `put`/`post`/`delete`.
pub async fn put_unsigned(
&self,
path: &str,
body: Vec<u8>,
headers: &[(&str, &str)],
) -> Result<reqwest::Response> {
let url = format!("{}{}", self.node_url, path);
let mut req = self.inner.put(&url).body(body);
for (name, value) in headers {
req = req.header(*name, *value);
}
req.send().await.with_context(|| format!("PUT {url}"))
}

/// DELETE with RFC 9421 signing + transparent iCaptcha solve/retry.
pub async fn delete(&self, path: &str, body: &[u8]) -> Result<reqwest::Response> {
self.send_signed("DELETE", path, body).await
Expand Down
8 changes: 8 additions & 0 deletions crates/twigpine-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ mod ipfs_cmd;
mod issue;
mod mcp;
mod mirror;
mod model;
mod name;
mod node;
mod node_stake;
Expand Down Expand Up @@ -140,6 +141,12 @@ enum Commands {

/// Print your current identity (DID) and optional node info
Whoami(whoami::WhoamiArgs),

/// Publish open-weight model releases
Model {
#[command(subcommand)]
cmd: model::ModelCmd,
},
}

/// The command was `gl` before the rename and still answers to it. Say so
Expand Down Expand Up @@ -236,6 +243,7 @@ async fn run() -> Result<()> {
Commands::Bounty(args) => bounty::run(args).await,
Commands::Ucan(args) => ucan_cmd::run(args).await,
Commands::Whoami(args) => whoami::run(args).await,
Commands::Model { cmd } => model::run(cmd).await,
}
}

Expand Down
Loading
Loading