agents-over-telegram 0.11.2 → 0.11.3

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.
package/README.md CHANGED
@@ -4,7 +4,7 @@ Agents over Telegram (AOT) connects a coding agent project to a Telegram group o
4
4
 
5
5
  ## Supported agent hosts
6
6
 
7
- Version 0.11.2 supports **Claude Code**, **Codex**, **Pi**, **Amp** and **Antigravity** (the `agy` CLI and the desktop app), and, untested, **Grok Bot** (see [hosts](docs/HOSTS.md#grok-bot-untested)). Every host works the same way: you install AOT for the host once, then ask the agent to connect each project. A new Telegram message reaches the running agent without a typed prompt: an idle agent wakes up, and a busy agent gets a notice at its next safe point. The notice never contains the message text; the agent reads it with its scoped Telegram tools.
7
+ Version 0.11.3 supports **Claude Code**, **Codex**, **Pi**, **Amp** and **Antigravity** (the `agy` CLI and the desktop app), and, untested, **Grok Bot** (see [hosts](docs/HOSTS.md#grok-bot-untested)). Every host works the same way: you install AOT for the host once, then ask the agent to connect each project. A new Telegram message reaches the running agent without a typed prompt: an idle agent wakes up, and a busy agent gets a notice at its next safe point. The notice never contains the message text; the agent reads it with its scoped Telegram tools.
8
8
 
9
9
  [Agent hosts](docs/HOSTS.md) explains how each integration works and lists exactly what was tested. Most host checks used real host processes with a fake Telegram transport, not live Telegram.
10
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agents-over-telegram",
3
- "version": "0.11.2",
3
+ "version": "0.11.3",
4
4
  "description": "Coordinate logical agents through one human-owned Telegram bot. Pi package: the push extension and the setup skills.",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [
package/pyproject.toml CHANGED
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "agents-over-telegram"
7
- version = "0.11.2"
7
+ version = "0.11.3"
8
8
  description = "One human-owned Telegram bot, multiple isolated logical agent conversations"
9
9
  requires-python = ">=3.11"
10
10
  license = "Apache-2.0"
@@ -1,6 +1,6 @@
1
1
  # Generated by scripts/export_requirements.py; do not edit.
2
- # uv.lock-sha256: 90153ef744dd622c53f83400e5415e772b45607deb38da5cf3542154dad84111
3
- # pyproject.toml-sha256: 555e60e7ee64db4ba5a290616d45e99ecfa7467e7e95e35decebbd3da7b65ec7
2
+ # uv.lock-sha256: 590a74850b20051fd61d6de8c6a4a8af51c4c2eb96b221d3ebd0cedb999cfe2e
3
+ # pyproject.toml-sha256: 9f2ce11911f9e7d980160e98dbbddfcac451935e7a1d3f829a5bbc194ec6930e
4
4
  hatchling==1.27.0 \
5
5
  --hash=sha256:971c296d9819abb3811112fc52c7a9751c8d381898f36533bb16f9791e941fd6 \
6
6
  --hash=sha256:d3a2f3567c4f926ea39849cdf924c7e99e6686c9c8e288ae1037c8fa2a5d937b
@@ -1,6 +1,6 @@
1
1
  # Generated by scripts/export_requirements.py; do not edit.
2
- # uv.lock-sha256: 90153ef744dd622c53f83400e5415e772b45607deb38da5cf3542154dad84111
3
- # pyproject.toml-sha256: 555e60e7ee64db4ba5a290616d45e99ecfa7467e7e95e35decebbd3da7b65ec7
2
+ # uv.lock-sha256: 590a74850b20051fd61d6de8c6a4a8af51c4c2eb96b221d3ebd0cedb999cfe2e
3
+ # pyproject.toml-sha256: 9f2ce11911f9e7d980160e98dbbddfcac451935e7a1d3f829a5bbc194ec6930e
4
4
  annotated-types==0.8.0 \
5
5
  --hash=sha256:13b2beaad985e05e2d6407ee4c4f35590b11f8d693a258a561055cac8f64cab7 \
6
6
  --hash=sha256:f072f4d804ea359e4eaf198b1af7a8b0943881a87f31bb764f8bf219bb9419e0
@@ -1,2 +1,2 @@
1
1
  """Local, scoped communication between agents and a human-owned Telegram bot."""
2
- __version__ = "0.11.2"
2
+ __version__ = "0.11.3"
@@ -232,7 +232,8 @@ class NativeDesktopQueue:
232
232
  return None
233
233
  mains, backends = {}, []
234
234
  try:
235
- for pid, parent, start, executable, args, routing in MacOSProcesses().candidates(
235
+ processes = MacOSProcesses()
236
+ for pid, parent, start, executable, args, routing in processes.candidates(
236
237
  {self.desktop.resolve(), self.binary.resolve()}):
237
238
  if executable == self.desktop.resolve():
238
239
  if not any(re.search(rb'(?:^|\s)--type=', arg) for arg in args):
@@ -241,10 +242,20 @@ class NativeDesktopQueue:
241
242
  arg.startswith((b'--listen', b'--remote')) for arg in args)
242
243
  and self._routing_matches(routing)):
243
244
  backends.append((pid, parent, start))
245
+ # Since Codex Framework 158 the main process starts a utility
246
+ # helper inside the app's Frameworks folder, and that helper starts
247
+ # the app-server (issue 146). Accept that one extra level only.
248
+ frameworks = (self.bundle / 'Contents' / 'Frameworks').resolve()
249
+ identities = []
250
+ for pid, parent, start in backends:
251
+ if parent not in mains:
252
+ helper = processes.utility_parent(parent, frameworks)
253
+ if helper is None or helper[0] not in mains:
254
+ continue
255
+ parent = helper[0]
256
+ identities.append((parent, mains[parent], pid, start))
244
257
  except (OSError, ValueError, UnicodeError, RuntimeError):
245
258
  return None
246
- identities = [(parent, mains[parent], pid, start) for pid, parent, start in backends
247
- if parent in mains]
248
259
  return identities[0] if len(identities) == 1 else None
249
260
 
250
261
  def desktop_running(self):
@@ -109,6 +109,26 @@ class MacOSProcesses:
109
109
  count = self.proc.proc_listpids(2, pgid, pids, ctypes.sizeof(pids))
110
110
  return count == 0 and ctypes.get_errno() == 0
111
111
 
112
+ def utility_parent(self, pid, root):
113
+ """Return (parent, start) for an Electron utility helper under root, or None.
114
+
115
+ Newer desktop builds start the app-server from a utility helper inside
116
+ the app's Frameworks folder instead of from the main process.
117
+ """
118
+ try:
119
+ before = self._info(pid)
120
+ executable = self._path(pid)
121
+ if not executable.is_relative_to(root):
122
+ return None
123
+ args, _ = parse_procargs(self._sysctl(1, 49, pid))
124
+ if not any(arg == b'--type=utility' for arg in args):
125
+ return None
126
+ if self._info(pid) != before or self._path(pid) != executable:
127
+ return None
128
+ return before[1], before[2]
129
+ except (OSError, ValueError, UnicodeError, RuntimeError):
130
+ return None
131
+
112
132
  def candidates(self, executables):
113
133
  needed = self.proc.proc_listpids(1, 0, None, 0)
114
134
  if needed <= 0 or needed > 4 * 1024 * 1024:
package/uv.lock CHANGED
@@ -10,7 +10,7 @@ resolution-markers = [
10
10
 
11
11
  [[package]]
12
12
  name = "agents-over-telegram"
13
- version = "0.11.2"
13
+ version = "0.11.3"
14
14
  source = { editable = "." }
15
15
  dependencies = [
16
16
  { name = "anyio" },