feat(agents): expose MAM_ID_POST_DISCOVERED in facts bridge (Issue #68)

This commit is contained in:
Godopu committed 2026-10-28 14:56:04 +00:00
1 parent b9c828f092
commit 5305cf21f9
2 files changed
+54

No files matched your search

+2
View File
@@ -1,6 +1,7 @@
# __main__.py — CLI bridge for lib_py.agents facts and resolution (N4)
import os, sys, json, shlex, time
from lib_py.agents.base import POST_DISCOVERED
from lib_py.agents.registry import get_adapter, own_key, agent_of_row
# `purge auto` probes adapters in this order; opencode last because its
@@ -71,6 +72,7 @@ def main():
print(f"MAM_AGENT_STATUS_RELIABLE={1 if adapter.agent_status_reliable else 0}")
print(f"MAM_EXIT_KEY={q(adapter.exit_key)}")
print(f"MAM_DELEGATE_AGENT_KEY={q(adapter.delegate_agent_key)}")
print(f"MAM_ID_POST_DISCOVERED={1 if adapter.id_lifecycle == POST_DISCOVERED else 0}")
elif cmd == 'resolve':
name = sys.argv[2] if len(sys.argv) > 2 else ''