agentic-comms 0.3.0__tar.gz → 0.3.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {agentic_comms-0.3.0 → agentic_comms-0.3.1}/PKG-INFO +1 -1
- {agentic_comms-0.3.0 → agentic_comms-0.3.1}/agent_comms/cli.py +5 -1
- {agentic_comms-0.3.0 → agentic_comms-0.3.1}/agentic_comms.egg-info/PKG-INFO +1 -1
- {agentic_comms-0.3.0 → agentic_comms-0.3.1}/pyproject.toml +1 -1
- {agentic_comms-0.3.0 → agentic_comms-0.3.1}/README.md +0 -0
- {agentic_comms-0.3.0 → agentic_comms-0.3.1}/agent_comms/__init__.py +0 -0
- {agentic_comms-0.3.0 → agentic_comms-0.3.1}/agent_comms/__main__.py +0 -0
- {agentic_comms-0.3.0 → agentic_comms-0.3.1}/agent_comms/api.py +0 -0
- {agentic_comms-0.3.0 → agentic_comms-0.3.1}/agent_comms/config.py +0 -0
- {agentic_comms-0.3.0 → agentic_comms-0.3.1}/agent_comms/hook.py +0 -0
- {agentic_comms-0.3.0 → agentic_comms-0.3.1}/agent_comms/install.py +0 -0
- {agentic_comms-0.3.0 → agentic_comms-0.3.1}/agentic_comms.egg-info/SOURCES.txt +0 -0
- {agentic_comms-0.3.0 → agentic_comms-0.3.1}/agentic_comms.egg-info/dependency_links.txt +0 -0
- {agentic_comms-0.3.0 → agentic_comms-0.3.1}/agentic_comms.egg-info/entry_points.txt +0 -0
- {agentic_comms-0.3.0 → agentic_comms-0.3.1}/agentic_comms.egg-info/requires.txt +0 -0
- {agentic_comms-0.3.0 → agentic_comms-0.3.1}/agentic_comms.egg-info/top_level.txt +0 -0
- {agentic_comms-0.3.0 → agentic_comms-0.3.1}/setup.cfg +0 -0
- {agentic_comms-0.3.0 → agentic_comms-0.3.1}/tests/test_cli.py +0 -0
|
@@ -14,6 +14,7 @@ stored in ~/.config/agent-comms/sessions/. `comms init` creates one,
|
|
|
14
14
|
from __future__ import annotations
|
|
15
15
|
|
|
16
16
|
import json
|
|
17
|
+
import os
|
|
17
18
|
import sys
|
|
18
19
|
from typing import Optional
|
|
19
20
|
|
|
@@ -256,13 +257,16 @@ def check(
|
|
|
256
257
|
handle: Optional[str] = typer.Option(None, help="Defaults to current identity."),
|
|
257
258
|
brief: bool = typer.Option(False, "--brief", help="Hide bodies."),
|
|
258
259
|
json_: bool = typer.Option(False, "--json"),
|
|
259
|
-
hook: bool = typer.Option(False, "--hook", help="Run as Claude Code
|
|
260
|
+
hook: bool = typer.Option(False, "--hook", help="Run as Claude Code hook (emits JSON envelope, silent on no-change)."),
|
|
261
|
+
with_control: bool = typer.Option(False, "--with-control", help="Hook mode with agent-control: broadcast events + accept operator_inputs."),
|
|
260
262
|
):
|
|
261
263
|
"""Silent check for unread DMs. Prints nothing if empty. Otherwise prints each
|
|
262
264
|
unread message in full (title, summary, body) so one command = complete read.
|
|
263
265
|
Always exits 0 (so hooks don't fail)."""
|
|
264
266
|
if hook:
|
|
265
267
|
from . import hook as hook_mod
|
|
268
|
+
if with_control:
|
|
269
|
+
os.environ["AGENT_COMMS_CONTROL"] = "1"
|
|
266
270
|
raise typer.Exit(hook_mod.main())
|
|
267
271
|
ident = config.load_identity() if not handle else None
|
|
268
272
|
h = handle or (ident.handle if ident else None)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|