alissa-tools-github-devloop 0.8.38__py3-none-any.whl → 0.8.39__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.
- alissa/tools/github/devloop/version +1 -1
- alissa/tools/github/devloop/webui/__main__.py +3 -1
- alissa/tools/github/devloop/webui/server.py +24 -1
- {alissa_tools_github_devloop-0.8.38.dist-info → alissa_tools_github_devloop-0.8.39.dist-info}/METADATA +1 -1
- {alissa_tools_github_devloop-0.8.38.dist-info → alissa_tools_github_devloop-0.8.39.dist-info}/RECORD +10 -10
- {alissa_tools_github_devloop-0.8.38.dist-info → alissa_tools_github_devloop-0.8.39.dist-info}/WHEEL +0 -0
- {alissa_tools_github_devloop-0.8.38.dist-info → alissa_tools_github_devloop-0.8.39.dist-info}/entry_points.txt +0 -0
- {alissa_tools_github_devloop-0.8.38.dist-info → alissa_tools_github_devloop-0.8.39.dist-info}/licenses/LICENSE +0 -0
- {alissa_tools_github_devloop-0.8.38.dist-info → alissa_tools_github_devloop-0.8.39.dist-info}/licenses/NOTICE +0 -0
- {alissa_tools_github_devloop-0.8.38.dist-info → alissa_tools_github_devloop-0.8.39.dist-info}/top_level.txt +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
0.8.
|
|
1
|
+
0.8.39
|
|
@@ -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://{
|
|
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
|
-
|
|
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
|
{alissa_tools_github_devloop-0.8.38.dist-info → alissa_tools_github_devloop-0.8.39.dist-info}/RECORD
RENAMED
|
@@ -14,19 +14,19 @@ alissa/tools/github/devloop/parking.py,sha256=2Sys1bh_hG8qbq7cO9RxW1F1kAu3dCWHnv
|
|
|
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=
|
|
17
|
+
alissa/tools/github/devloop/version,sha256=G7Ocfbe12QLl5nILgm4wm9MiFgTZ-m2G2Eqgqg_CJWc,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=
|
|
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=
|
|
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.
|
|
27
|
-
alissa_tools_github_devloop-0.8.
|
|
28
|
-
alissa_tools_github_devloop-0.8.
|
|
29
|
-
alissa_tools_github_devloop-0.8.
|
|
30
|
-
alissa_tools_github_devloop-0.8.
|
|
31
|
-
alissa_tools_github_devloop-0.8.
|
|
32
|
-
alissa_tools_github_devloop-0.8.
|
|
26
|
+
alissa_tools_github_devloop-0.8.39.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
|
27
|
+
alissa_tools_github_devloop-0.8.39.dist-info/licenses/NOTICE,sha256=FKstNs3uw_tQod4_1XcFLD1FUTJQXf4FC0oXJAOA_HE,260
|
|
28
|
+
alissa_tools_github_devloop-0.8.39.dist-info/METADATA,sha256=2AAwmlUxY0R_doi3rOjmqej-3vvHiea0iRF7qoWktiU,8093
|
|
29
|
+
alissa_tools_github_devloop-0.8.39.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
|
|
30
|
+
alissa_tools_github_devloop-0.8.39.dist-info/entry_points.txt,sha256=8aC7Ajzx4bu9ZRR37a40IDfuStacvZP5KsAxY1dbFKU,145
|
|
31
|
+
alissa_tools_github_devloop-0.8.39.dist-info/top_level.txt,sha256=DodjDg-l-TWQnlxG-Vuc3G5sB4O7cWGQwe6XrVx3u-A,7
|
|
32
|
+
alissa_tools_github_devloop-0.8.39.dist-info/RECORD,,
|
{alissa_tools_github_devloop-0.8.38.dist-info → alissa_tools_github_devloop-0.8.39.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|