chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 13:12:33 +08:00
commit aacb60a4af
3387 changed files with 981307 additions and 0 deletions
@@ -0,0 +1,21 @@
"""/meta is registered: list on all surfaces; run not exposed on channel."""
from __future__ import annotations
from opensquilla.engine.commands import DEFAULT_REGISTRY, Surface
def test_meta_command_present_on_all_surfaces_for_list() -> None:
cmd = DEFAULT_REGISTRY.find("/meta")
assert cmd is not None
assert cmd.name == "/meta"
for surface in (Surface.WEB_CHAT, Surface.CLI_GATEWAY, Surface.CLI_STANDALONE, Surface.CHANNEL):
assert cmd.execution_for(surface) is not None, surface
def test_meta_channel_execution_is_list_rpc() -> None:
cmd = DEFAULT_REGISTRY.find("/meta")
channel = cmd.execution_for(Surface.CHANNEL)
# Channel lists via RPC; run is intentionally not wired here (channel = list only).
assert channel is not None
assert channel.rpc_method == "meta.list"