alissa-tools-github-devloop 0.8.38__py3-none-any.whl → 0.8.40__py3-none-any.whl

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.
@@ -11280,21 +11280,19 @@ class DevWatcher:
11280
11280
  """The pass's fleet-vitals push (issue #116): one console snapshot
11281
11281
  to Studio, built from the pass's own roster and the ledgers the pass
11282
11282
  just wrote. Returns the outcome token the summary quotes --
11283
- `skipped` when the feature is off or under dry_run (the push writes
11284
- to an external service, and a dry pass takes no side effects: it
11285
- logs what it would have sent instead), else the pusher's `pushed` /
11286
- `failed`. Runs AFTER the loop-events push and never raises."""
11283
+ `skipped` when the feature is off, else the pusher's `pushed` /
11284
+ `failed`. Runs AFTER the loop-events push and never raises.
11285
+
11286
+ dry_run still pushes (issue: managed fleet first heartbeat). Vitals
11287
+ are the seat's liveness report to Studio, not an action on any
11288
+ repository: the managed provisioner deploys devloop dry for the
11289
+ smoke's first phase and waits for its first heartbeat, which a dry
11290
+ pass that sent nothing could never give. revloop already pushes its
11291
+ vitals under dry_run; this makes the seats agree."""
11287
11292
  if self.fleet_vitals is None:
11288
11293
  return fleet_vitals_mod.SKIPPED
11289
11294
  if self.config.dry_run:
11290
- log.info(
11291
- "[dry-run] would push fleet vitals (seat %s, %s roster "
11292
- "session(s) → POST %s%s)",
11293
- fleet_vitals_mod.SEAT,
11294
- len(roster.entries) if roster.entries is not None else "unlisted",
11295
- self.config.alissa_endpoint, fleet_vitals_mod.ENDPOINT_PATH,
11296
- )
11297
- return fleet_vitals_mod.SKIPPED
11295
+ log.debug("[dry-run] pushing fleet vitals anyway: liveness is not a side effect on a repository")
11298
11296
  return self.fleet_vitals.push_pass(roster.entries)
11299
11297
 
11300
11298
  def _vitals_config(self) -> dict:
@@ -1 +1 @@
1
- 0.8.38
1
+ 0.8.40
@@ -134,9 +134,11 @@ def main(argv: "list[str] | None" = None) -> int:
134
134
  )
135
135
  server = make_server(app, args.host, args.port)
136
136
 
137
+ # An IPv6 literal is bracketed in a URL (`http://[::]:8080`).
138
+ shown = f"[{args.host}]" if ":" in args.host else args.host
137
139
  print(
138
140
  f"alissa-devloop-ui {version.value} -- serving on "
139
- f"http://{args.host}:{args.port} (passcode required); "
141
+ f"http://{shown}:{args.port} (passcode required); "
140
142
  f"watching {config.workspace_root}",
141
143
  flush=True,
142
144
  )
@@ -34,6 +34,7 @@ from __future__ import annotations
34
34
 
35
35
  import json
36
36
  import re
37
+ import socket
37
38
  import sqlite3
38
39
  import sys
39
40
  import time
@@ -546,8 +547,30 @@ _REDIRECT_HOME = (
546
547
  )
547
548
 
548
549
 
550
+ class _DualStackServer(ThreadingHTTPServer):
551
+ """An AF_INET6 listener that also takes IPv4 (as IPv4-mapped addresses).
552
+
553
+ Railway's private network resolves `*.railway.internal` to IPv6 only, so
554
+ a console bound to `0.0.0.0` refuses every in-project caller (issue #159).
555
+ IPV6_V6ONLY is cleared explicitly rather than trusting the host's
556
+ net.ipv6.bindv6only default, so `::` is dual-stack wherever it binds."""
557
+
558
+ address_family = socket.AF_INET6
559
+
560
+ def server_bind(self) -> None:
561
+ try:
562
+ self.socket.setsockopt(socket.IPPROTO_IPV6, socket.IPV6_V6ONLY, 0)
563
+ except (AttributeError, OSError):
564
+ pass # a v6-only stack: still serve IPv6 rather than refuse to boot
565
+ super().server_bind()
566
+
567
+
549
568
  def make_server(app: App, host: str, port: int) -> ThreadingHTTPServer:
550
- server = ThreadingHTTPServer((host, port), Handler)
569
+ """Bind `host:port`. A host containing ':' is an IPv6 literal (`::` is
570
+ the dual-stack wildcard); anything else -- `0.0.0.0`, `127.0.0.1` -- keeps
571
+ the IPv4-only AF_INET listener it always had."""
572
+ cls = _DualStackServer if ":" in host else ThreadingHTTPServer
573
+ server = cls((host, port), Handler)
551
574
  server.daemon_threads = True
552
575
  server.app = app # type: ignore[attr-defined]
553
576
  return server
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: alissa-tools-github-devloop
3
- Version: 0.8.38
3
+ Version: 0.8.40
4
4
  Summary: ALISSA-TOOLS-GITHUB-DEVLOOP
5
5
  Home-page: https://alissa.app
6
6
  Author: Fahera
@@ -8,25 +8,25 @@ alissa/tools/github/devloop/fleet_vitals.py,sha256=Hl2xshweh7A9R0N7fyYRg2WzHN4aN
8
8
  alissa/tools/github/devloop/ghclient.py,sha256=tYUHwmoy9CBBt-jSOz9nuAl8lpMvm1LH4A-wHx25bss,71842
9
9
  alissa/tools/github/devloop/hubs.py,sha256=yjnsnSHLG7GNNP8X2hILeAMV6P5n4JGc_IaAxpSP_YQ,18974
10
10
  alissa/tools/github/devloop/janitor.py,sha256=R8REoHBeY2cfW7fYJVhKr-F5z9Mjlc-vmv-z4KtvBZc,27360
11
- alissa/tools/github/devloop/loop.py,sha256=Md5uX1Euo1T1SZ8x8um-TfirPjeTQsbb8ndQJ36nREs,590672
11
+ alissa/tools/github/devloop/loop.py,sha256=A28TYgoz4l0MxOIJ5ypc1fo4A8KPKzjMWsPDv5jZIgs,590661
12
12
  alissa/tools/github/devloop/loop_events.py,sha256=tmso0OALqY2yAPW2Fo6ae0sYetQIdIeIYooJ2Sc2cc4,37921
13
13
  alissa/tools/github/devloop/parking.py,sha256=2Sys1bh_hG8qbq7cO9RxW1F1kAu3dCWHnvwg_iAFVvY,7987
14
14
  alissa/tools/github/devloop/proc.py,sha256=_dDr3g76WEf2DRyLUz1Dzl4KvLVptJant_UZOrRixNk,1649
15
15
  alissa/tools/github/devloop/prompts.py,sha256=VzN6ec5eF2wwg7QSCRg52WLcxo-tGbGRgQbc4HSahUc,55169
16
16
  alissa/tools/github/devloop/state.py,sha256=uVwhbkogUTjWXXFq-COKzUeYrpuGbHzi05CjfEzAtPA,88668
17
- alissa/tools/github/devloop/version,sha256=T168U1zRoJPyTzADDJCmu4ruWJIPOAh23OqUa9vcDcA,7
17
+ alissa/tools/github/devloop/version,sha256=Iu0zRmy7L74fnLuqsTvu96vsUQo8I7iy8DwL-jhPqXs,7
18
18
  alissa/tools/github/devloop/version.py,sha256=znuuOaitXGrBpbskNy78_rlVpFdtmKmk_3k1ACxZrl0,1418
19
19
  alissa/tools/github/devloop/webui/__init__.py,sha256=vdXYoyGYzD7BrJ5lV6XdH8Bpw_pej8-RK0hjfxop7-8,1513
20
- alissa/tools/github/devloop/webui/__main__.py,sha256=s-xs5dkD2gbxLPDKbJYJvpHThHSO_AwWruKH5giQPSQ,6011
20
+ alissa/tools/github/devloop/webui/__main__.py,sha256=wORyW5AkgsniK0TZcrOrvm_P7Q4Mr-fH-4S6qj9XcgA,6137
21
21
  alissa/tools/github/devloop/webui/auth.py,sha256=g9YEDao9nKt-cBEENp7vFqwJ-T8olN6uLiCzVIN8yhA,7890
22
22
  alissa/tools/github/devloop/webui/page.py,sha256=4OD3e01ByvVM4Wo04AZyFuyOYTFEMT2lagktZAvyCKk,30862
23
- alissa/tools/github/devloop/webui/server.py,sha256=vWS8M0e6YTGATO3aWCfo0VavNCB6Crg2SwTPrWMA-EI,25207
23
+ alissa/tools/github/devloop/webui/server.py,sha256=YuUmcng5qdWqSurcuyxH3FKKkBBfrpDtvtZLidJOGiU,26226
24
24
  alissa/tools/github/devloop/webui/sources.py,sha256=Ud8357-Ag4qC39V3mlepqnArui9p1fTJ058bAdN29Jc,36730
25
25
  alissa/tools/github/devloop/webui/sysinfo.py,sha256=ptlogH9alFv0vZ-pQfyUaA3w-K7LQS3tQHGv0d8Tdlk,9649
26
- alissa_tools_github_devloop-0.8.38.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
27
- alissa_tools_github_devloop-0.8.38.dist-info/licenses/NOTICE,sha256=FKstNs3uw_tQod4_1XcFLD1FUTJQXf4FC0oXJAOA_HE,260
28
- alissa_tools_github_devloop-0.8.38.dist-info/METADATA,sha256=qNj9NcLiJlz3N-fT7Zl8czMrhjDoOQgXmaK4KGkBemo,8093
29
- alissa_tools_github_devloop-0.8.38.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
30
- alissa_tools_github_devloop-0.8.38.dist-info/entry_points.txt,sha256=8aC7Ajzx4bu9ZRR37a40IDfuStacvZP5KsAxY1dbFKU,145
31
- alissa_tools_github_devloop-0.8.38.dist-info/top_level.txt,sha256=DodjDg-l-TWQnlxG-Vuc3G5sB4O7cWGQwe6XrVx3u-A,7
32
- alissa_tools_github_devloop-0.8.38.dist-info/RECORD,,
26
+ alissa_tools_github_devloop-0.8.40.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
27
+ alissa_tools_github_devloop-0.8.40.dist-info/licenses/NOTICE,sha256=FKstNs3uw_tQod4_1XcFLD1FUTJQXf4FC0oXJAOA_HE,260
28
+ alissa_tools_github_devloop-0.8.40.dist-info/METADATA,sha256=uSiJc6s7Y4u9uz8MTj1oETKuZVJfCtE_NmMSYsvkKyE,8093
29
+ alissa_tools_github_devloop-0.8.40.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
30
+ alissa_tools_github_devloop-0.8.40.dist-info/entry_points.txt,sha256=8aC7Ajzx4bu9ZRR37a40IDfuStacvZP5KsAxY1dbFKU,145
31
+ alissa_tools_github_devloop-0.8.40.dist-info/top_level.txt,sha256=DodjDg-l-TWQnlxG-Vuc3G5sB4O7cWGQwe6XrVx3u-A,7
32
+ alissa_tools_github_devloop-0.8.40.dist-info/RECORD,,