fix: add dev.panproto.node.* XRPC route aliases for git-remote-cospan panproto-xrpc's NodeClient (used by git-remote-cospan) calls dev.panproto.node.listRefs, getObject, putObject, etc. The cospan node only registered these under dev.cospan.node.*, causing 404s when push was attempted via cospan:// remote. Register both namespaces so git-remote-cospan can push pre-parsed schemas to the node.
Author: Aaron Steven White
Commit
80872378da338915d8209edd02f08d33e3b799c6Parent: b5d1da416c
Structural diff unavailable
These commits were pushed via plain git push, so no pre-parsed
schemas are available. Install git-remote-cospan and re-push via panproto:// to
see scope-level changes, breaking change detection, and semantic diffs.
brew install panproto/tap/git-remote-cospan1 file changed +17 -0
@@ -63,6 +63,23 @@ pub fn build(state: Arc<NodeState>) -> Router {
6363 .route( 6464 "/xrpc/dev.panproto.node.getBlob", 6565 get(handlers::get_blob), 66+ ) 67+ // Aliases in the dev.panproto.node.* namespace so that 68+ // panproto-xrpc's NodeClient and git-remote-cospan can talk 69+ // to this node. The cospan-specific endpoints above are kept 70+ // for backward compatibility. 71+ .route("/xrpc/dev.panproto.node.getObject", get(handlers::get_object)) 72+ .route("/xrpc/dev.panproto.node.putObject", post(handlers::put_object)) 73+ .route("/xrpc/dev.panproto.node.getRef", get(handlers::get_ref)) 74+ .route("/xrpc/dev.panproto.node.setRef", post(handlers::set_ref)) 75+ .route("/xrpc/dev.panproto.node.listRefs", get(handlers::list_refs)) 76+ .route("/xrpc/dev.panproto.node.listCommits", get(handlers::list_commits)) 77+ .route("/xrpc/dev.panproto.node.diffCommits", get(handlers::diff_commits)) 78+ .route("/xrpc/dev.panproto.node.getHead", get(handlers::get_head)) 79+ .route("/xrpc/dev.panproto.node.negotiate", post(handlers::negotiate)) 80+ .route( 81+ "/xrpc/dev.panproto.node.getRepoInfo", 82+ get(handlers::get_repo_info), 6683 ); 6784 6885 let git = git_compat::git_routes();