Files

24 lines
624 B
Python
Executable File

#!/usr/bin/env python3
"""Action ``aggregate`` (read-only): the net diff across a conversation's commits.
stdin ``{conversationId}`` → ``DiffResult`` (merges left out; ``approx`` when
interleaved work may show), through the core's
``hub/diff/conversations/{cid}/aggregate``."""
from __future__ import annotations
import pathlib
import sys
sys.dont_write_bytecode = True
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parent))
import _lib # noqa: E402
def main(p: dict) -> dict:
return _lib.hub_get(_lib.conv_path(_lib.conversation_id(p)) + "/aggregate")
if __name__ == "__main__":
_lib.run(main)