Initial investigation: Identified core Box registration issues

Co-authored-by: moe-charm <217100418+moe-charm@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-08-12 08:12:26 +00:00
parent a2c8f84de5
commit dadb5afcff
7 changed files with 94 additions and 16 deletions

View File

@ -502,13 +502,10 @@ impl NyashInterpreter {
});
};
let transport_kind = transport_str.parse::<crate::boxes::p2p_box::TransportKind>()
.map_err(|e| RuntimeError::InvalidOperation {
message: format!("Invalid transport type '{}': {}", transport_str, e),
})?;
let p2p_box = crate::boxes::p2p_box::P2PBoxData::new(node_id, transport_kind);
return Ok(Box::new(p2p_box) as Box<dyn NyashBox>);
// TODO: Re-enable P2PBox after fixing transport/messaging imports
return Err(RuntimeError::TypeError {
message: "P2PBox temporarily disabled due to import issues".to_string(),
});
}
"StreamBox" => {
// StreamBoxは引数なしで作成