Implement native AgentManager services (#59)
This commit is contained in:
@@ -976,34 +976,42 @@ def validate_generated_shims() -> None:
|
||||
or "native network implementation" in body
|
||||
):
|
||||
continue
|
||||
if FAKE_BODY.search(body):
|
||||
raise ValueError(f"generated shim returns a plausible fallback: {path.relative_to(ROOT)}")
|
||||
if not any(
|
||||
uses_standardized_or_native_path = any(
|
||||
marker in body
|
||||
for marker in (
|
||||
"unimplemented_api!",
|
||||
"not_implemented(",
|
||||
"NotImplemented::new(",
|
||||
"crate::agent_manager::",
|
||||
"crate::agent_messages::",
|
||||
"crate::byte_order::",
|
||||
"crate::attention_catalog::",
|
||||
"crate::binary::",
|
||||
"crate::dispatch::",
|
||||
"crate::foliage_catalog::",
|
||||
"crate::genepool_catalog::",
|
||||
"crate::gesture::",
|
||||
"crate::json_codec::",
|
||||
"crate::message_codec::",
|
||||
"crate::message_decoder::",
|
||||
"crate::notation::",
|
||||
"crate::packet_catalog::",
|
||||
"crate::packet_wire::",
|
||||
"crate::ProfileFlags::",
|
||||
"crate::TransactionInfo",
|
||||
"crate::protobuf::",
|
||||
"crate::skeleton::",
|
||||
"crate::visual_catalog::",
|
||||
"crate::xml_codec::",
|
||||
"stored_visual_params",
|
||||
"self.native_",
|
||||
)
|
||||
):
|
||||
raise ValueError(f"generated shim function does not use the standardized failure: {path.relative_to(ROOT)}")
|
||||
)
|
||||
if uses_standardized_or_native_path:
|
||||
continue
|
||||
if FAKE_BODY.search(body):
|
||||
raise ValueError(f"generated shim returns a plausible fallback: {path.relative_to(ROOT)}")
|
||||
raise ValueError(f"generated shim function does not use the standardized failure: {path.relative_to(ROOT)}")
|
||||
|
||||
|
||||
def build_type_rows(catalog: dict) -> tuple[list[dict[str, str]], dict[str, str]]:
|
||||
|
||||
Reference in New Issue
Block a user