release: Themiz — публичный срез 26.11.2026

This commit is contained in:
public-repo-gate
2026-11-26 04:34:08 -05:00
parent 86ea1998fe
commit 979528e135
30 changed files with 53514 additions and 48997 deletions
+13
View File
@@ -152,6 +152,11 @@ def _process_lineage() -> list[dict]:
return []
# Десктопные приложения-харнессы: провайдер -> пути бандлов. Сессия Kimi Work идет
# из приложения, а не из терминального CLI, и живой процесс в цепочке — это бандл.
_DESKTOP_BUNDLES: dict[str, tuple[str, ...]] = {"kimi": ("/Applications/Kimi.app/",)}
def _candidate_binaries(registry: Path = CLI_REGISTRY) -> dict[str, str]:
try:
data = json.loads(registry.read_text(encoding="utf-8"))
@@ -191,6 +196,14 @@ def _active_from_lineage(lineage: list[dict], candidates: dict[str, str]) -> dic
if not live.name:
continue
matches = [name for name, binary in candidates.items() if same_cli(live, binary)]
if not matches:
# Десктопное приложение ведет сессию само: в цепочке живых родителей нет
# бинаря CLI из PATH, есть процесс приложения (Kimi Work, 04-05.11.2026:
# активная сессия не определялась, ПД-роли вставали без исполнителя).
# Тождество — по полному пути бандла, который сообщила ОС, не по имени.
matches = [name for name, bundles in _DESKTOP_BUNDLES.items()
if name in candidates
and any(str(live).startswith(bundle) for bundle in bundles)]
if len(matches) == 1:
return {"outcome": "ok", "cli": matches[0], "pid": process.get("pid")}
if len(matches) > 1: