py/facett_demo/proto/__init__.py
"""Generated gRPC stubs.
* ``korp_pb2`` / ``korp_pb2_grpc`` — generated from ``korp/proto/korp.proto`` in
the sibling ``korp`` checkout (the demo's data plane). That file is the ONE
copy: this package deliberately keeps NO ``korp.proto`` of its own, because the
hand copy that used to live here drifted three RPCs behind the server
(``AdhocSql``, ``ListGraphs``, ``GraphSchema``) before anyone noticed.
``tests/test_korp_wire.py`` fails if these stubs and korp's proto disagree.
* ``saga_pb2`` / ``saga_pb2_grpc`` — from ``saga.proto``, the wire-compatible
``nornir.v1.Saga`` subset of ``edda/crates/nornir-wire/proto/nornir.proto``
(the tape this app records to and replays from). ``tests/test_saga.py`` keeps
that subset honest.
Regenerate both with::
python scripts/regen_protos.py # writes; also deletes any stray korp.proto
python scripts/regen_protos.py --check # verifies the checked-in stubs match
(The script points protoc at each wire's source of truth and rewrites the grpc
stub's top-level ``import X_pb2`` to ``from . import X_pb2``.)
"""