devdoor 0.2.0__tar.gz → 0.2.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.
Files changed (43) hide show
  1. {devdoor-0.2.0 → devdoor-0.2.1}/PKG-INFO +19 -8
  2. {devdoor-0.2.0 → devdoor-0.2.1}/README.md +18 -7
  3. {devdoor-0.2.0 → devdoor-0.2.1}/pyproject.toml +1 -1
  4. {devdoor-0.2.0 → devdoor-0.2.1}/pyproject.toml.orig +1 -1
  5. {devdoor-0.2.0 → devdoor-0.2.1}/src/devdoor/__init__.py +1 -1
  6. {devdoor-0.2.0 → devdoor-0.2.1}/src/devdoor/cli/app.py +33 -1
  7. {devdoor-0.2.0 → devdoor-0.2.1}/src/devdoor/cli/auth.py +5 -2
  8. {devdoor-0.2.0 → devdoor-0.2.1}/src/devdoor/cli/domains.py +9 -2
  9. {devdoor-0.2.0 → devdoor-0.2.1}/src/devdoor/cli/validators.py +2 -0
  10. {devdoor-0.2.0 → devdoor-0.2.1}/src/devdoor/tunnel/auth_client.py +1 -1
  11. {devdoor-0.2.0 → devdoor-0.2.1}/LICENSE +0 -0
  12. {devdoor-0.2.0 → devdoor-0.2.1}/src/devdoor/__main__.py +0 -0
  13. {devdoor-0.2.0 → devdoor-0.2.1}/src/devdoor/cli/__init__.py +0 -0
  14. {devdoor-0.2.0 → devdoor-0.2.1}/src/devdoor/cli/inspector.py +0 -0
  15. {devdoor-0.2.0 → devdoor-0.2.1}/src/devdoor/cli/local.py +0 -0
  16. {devdoor-0.2.0 → devdoor-0.2.1}/src/devdoor/cli/share.py +0 -0
  17. {devdoor-0.2.0 → devdoor-0.2.1}/src/devdoor/core/__init__.py +0 -0
  18. {devdoor-0.2.0 → devdoor-0.2.1}/src/devdoor/core/config.py +0 -0
  19. {devdoor-0.2.0 → devdoor-0.2.1}/src/devdoor/core/engine.py +0 -0
  20. {devdoor-0.2.0 → devdoor-0.2.1}/src/devdoor/core/events.py +0 -0
  21. {devdoor-0.2.0 → devdoor-0.2.1}/src/devdoor/core/protocol.py +0 -0
  22. {devdoor-0.2.0 → devdoor-0.2.1}/src/devdoor/core/router.py +0 -0
  23. {devdoor-0.2.0 → devdoor-0.2.1}/src/devdoor/inspector/__init__.py +0 -0
  24. {devdoor-0.2.0 → devdoor-0.2.1}/src/devdoor/inspector/curl.py +0 -0
  25. {devdoor-0.2.0 → devdoor-0.2.1}/src/devdoor/inspector/daemon_hook.py +0 -0
  26. {devdoor-0.2.0 → devdoor-0.2.1}/src/devdoor/inspector/replay.py +0 -0
  27. {devdoor-0.2.0 → devdoor-0.2.1}/src/devdoor/inspector/store.py +0 -0
  28. {devdoor-0.2.0 → devdoor-0.2.1}/src/devdoor/platform/__init__.py +0 -0
  29. {devdoor-0.2.0 → devdoor-0.2.1}/src/devdoor/platform/base.py +0 -0
  30. {devdoor-0.2.0 → devdoor-0.2.1}/src/devdoor/platform/darwin.py +0 -0
  31. {devdoor-0.2.0 → devdoor-0.2.1}/src/devdoor/platform/linux.py +0 -0
  32. {devdoor-0.2.0 → devdoor-0.2.1}/src/devdoor/platform/windows.py +0 -0
  33. {devdoor-0.2.0 → devdoor-0.2.1}/src/devdoor/proxy/__init__.py +0 -0
  34. {devdoor-0.2.0 → devdoor-0.2.1}/src/devdoor/proxy/certs.py +0 -0
  35. {devdoor-0.2.0 → devdoor-0.2.1}/src/devdoor/proxy/forwarder.py +0 -0
  36. {devdoor-0.2.0 → devdoor-0.2.1}/src/devdoor/proxy/https_server.py +0 -0
  37. {devdoor-0.2.0 → devdoor-0.2.1}/src/devdoor/tui/__init__.py +0 -0
  38. {devdoor-0.2.0 → devdoor-0.2.1}/src/devdoor/tui/inspector_app.py +0 -0
  39. {devdoor-0.2.0 → devdoor-0.2.1}/src/devdoor/tunnel/__init__.py +0 -0
  40. {devdoor-0.2.0 → devdoor-0.2.1}/src/devdoor/tunnel/client.py +0 -0
  41. {devdoor-0.2.0 → devdoor-0.2.1}/src/devdoor/tunnel/httperr.py +0 -0
  42. {devdoor-0.2.0 → devdoor-0.2.1}/src/devdoor/tunnel/mux.py +0 -0
  43. {devdoor-0.2.0 → devdoor-0.2.1}/src/devdoor/tunnel/relay_api.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: devdoor
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: Open-source local HTTPS domain proxy, streaming tunnel client, and TUI inspector
5
5
  Keywords: https,local-development,reverse-proxy,tunnel,websocket,tui
6
6
  Author: Dipak Rathod
@@ -51,7 +51,7 @@ Description-Content-Type: text/markdown
51
51
  myapp.test → localhost:3000
52
52
  myapp.test/api → localhost:8080
53
53
  dashboard.test → localhost:5173
54
- share --port 3000 → https://brisk-otter.devdoor.dev (streaming SSE + WebSockets + replay)
54
+ share --port 3000 → https://brisk-otter.relay.dipakrathod.me (streaming SSE + WebSockets + replay)
55
55
  ```
56
56
 
57
57
  ## Why DevDoor?
@@ -63,12 +63,11 @@ share --port 3000 → https://brisk-otter.devdoor.dev (streaming SSE + WebSocke
63
63
 
64
64
  ## Installation
65
65
 
66
- > **Note:** Not yet published on PyPI—install directly from GitHub or a local source clone.
67
-
68
66
  Requires **Python 3.15+** and [`uv`](https://docs.astral.sh/uv/) (or `pipx`):
69
67
 
70
68
  ```bash
71
- uv tool install git+https://github.com/dipakrathod-tech/DevDoor.git
69
+ uv tool install devdoor
70
+ # or: pipx install devdoor
72
71
  ```
73
72
 
74
73
  Or run from a source checkout:
@@ -93,7 +92,7 @@ Expose a local server (or multi-route project) to the internet:
93
92
 
94
93
  ```bash
95
94
  devdoor share --port 3000
96
- # https://brisk-otter.devdoor.dev → localhost:3000
95
+ # https://brisk-otter.relay.dipakrathod.me → localhost:3000
97
96
  ```
98
97
 
99
98
  ## Local HTTPS Domains
@@ -147,6 +146,8 @@ devdoor down # stop project services only
147
146
 
148
147
  ## Internet Sharing & Self-Hosting
149
148
 
149
+ By default, DevDoor connects to the official hosted relay at `https://relay.dipakrathod.me`—override it anytime with `--relay`, `DEVDOOR_RELAY_URL`, or `devdoor config set relay` to point at your own self-hosted `devdoor-relay` server.
150
+
150
151
  Authenticate via browser OAuth (`GitHub` / `OIDC`) or an API token, then share a local port or a `devdoor.yaml` multi-route service:
151
152
 
152
153
  ```bash
@@ -197,7 +198,7 @@ devdoor subdomain release demo
197
198
  Random-subdomain tunnels display a one-time interstitial notice on browser page loads to protect shared relay domains. It is skipped automatically for vanity subdomains, custom domains, password-protected tunnels, and programmatic HTTP clients (`curl`, webhooks, `fetch`/XHR, CORS preflights, WebSockets). Browser-like scripts can also bypass it explicitly:
198
199
 
199
200
  ```bash
200
- curl -H "DevDoor-Skip-Browser-Warning: 1" https://brisk-otter.devdoor.dev/
201
+ curl -H "DevDoor-Skip-Browser-Warning: 1" https://brisk-otter.relay.dipakrathod.me/
201
202
  ```
202
203
 
203
204
  ## Request Inspector, Logs & Diagnostics
@@ -217,7 +218,7 @@ devdoor reset --dry-run # preview OS cleanup without modifying fi
217
218
  devdoor reset # safely undo OS changes & domains (keeps login & inspector.db)
218
219
  devdoor reset --all # also remove auth.json, config.yaml, and inspector.db
219
220
  devdoor upgrade # upgrade devdoor via uv/pipx/pip (alias: update)
220
- devdoor version # print version and Python runtime
221
+ devdoor version # print version and Python runtime (or -v / --version)
221
222
  devdoor uninstall # full OS undo + remove DevDoor files under ~/.devdoor
222
223
  ```
223
224
 
@@ -231,6 +232,16 @@ If you already removed the CLI binary before resetting:
231
232
  - **Linux:** Remove `# devdoor` lines from `/etc/hosts`, delete `/usr/local/share/ca-certificates/devdoor.crt` (or `/etc/pki/ca-trust/source/anchors/devdoor.crt`) and refresh trust (`sudo update-ca-certificates --fresh` or `sudo update-ca-trust extract`), and delete only the `DEVDOOR` `iptables -t nat` chain or `ip devdoor` `nft` table.
232
233
  - **Windows:** Run `certutil -user -delstore Root "DevDoor Root CA"`, remove `# devdoor` lines from `%SystemRoot%\System32\drivers\etc\hosts`, and delete DevDoor `netsh interface portproxy` rules (`connectport=10080` / `10443`) if elevated `.test` mode was used.
233
234
 
235
+ ## Documentation
236
+
237
+ Browse the full client documentation index in [docs/README.md](docs/README.md):
238
+
239
+ - [Configuration & CLI Reference](docs/configuration-and-cli.md) — Environment variables, `~/.devdoor` state layout, `devdoor config` keys, `devdoor.yaml` schema, CLI flags, and TUI keybindings
240
+ - [How-To Guides](docs/guides.md) — Multi-service setups, CORS recipes, password-protected webhooks, targeting custom relays, and request replay workflows
241
+ - [Architecture](docs/architecture.md) — Client module boundaries, daemon/tunnel traffic flows, wire framing, and privacy design
242
+ - [Troubleshooting & Recovery](docs/troubleshooting.md) — `devdoor doctor` diagnostics, browser/OS trust notes, firewall/port conflicts, and safe reset / manual cleanup
243
+ - [Architecture Decision Records (ADRs)](docs/decisions/) — Client design decisions (`ADR-001`–`ADR-006`)
244
+
234
245
  ## Contributing
235
246
 
236
247
  Contributions are welcome! Please read the [Contributing Guide](CONTRIBUTING.md), follow the [Code of Conduct](CODE_OF_CONDUCT.md), and adhere to [CONSTRAINTS.md](CONSTRAINTS.md).
@@ -16,7 +16,7 @@
16
16
  myapp.test → localhost:3000
17
17
  myapp.test/api → localhost:8080
18
18
  dashboard.test → localhost:5173
19
- share --port 3000 → https://brisk-otter.devdoor.dev (streaming SSE + WebSockets + replay)
19
+ share --port 3000 → https://brisk-otter.relay.dipakrathod.me (streaming SSE + WebSockets + replay)
20
20
  ```
21
21
 
22
22
  ## Why DevDoor?
@@ -28,12 +28,11 @@ share --port 3000 → https://brisk-otter.devdoor.dev (streaming SSE + WebSocke
28
28
 
29
29
  ## Installation
30
30
 
31
- > **Note:** Not yet published on PyPI—install directly from GitHub or a local source clone.
32
-
33
31
  Requires **Python 3.15+** and [`uv`](https://docs.astral.sh/uv/) (or `pipx`):
34
32
 
35
33
  ```bash
36
- uv tool install git+https://github.com/dipakrathod-tech/DevDoor.git
34
+ uv tool install devdoor
35
+ # or: pipx install devdoor
37
36
  ```
38
37
 
39
38
  Or run from a source checkout:
@@ -58,7 +57,7 @@ Expose a local server (or multi-route project) to the internet:
58
57
 
59
58
  ```bash
60
59
  devdoor share --port 3000
61
- # https://brisk-otter.devdoor.dev → localhost:3000
60
+ # https://brisk-otter.relay.dipakrathod.me → localhost:3000
62
61
  ```
63
62
 
64
63
  ## Local HTTPS Domains
@@ -112,6 +111,8 @@ devdoor down # stop project services only
112
111
 
113
112
  ## Internet Sharing & Self-Hosting
114
113
 
114
+ By default, DevDoor connects to the official hosted relay at `https://relay.dipakrathod.me`—override it anytime with `--relay`, `DEVDOOR_RELAY_URL`, or `devdoor config set relay` to point at your own self-hosted `devdoor-relay` server.
115
+
115
116
  Authenticate via browser OAuth (`GitHub` / `OIDC`) or an API token, then share a local port or a `devdoor.yaml` multi-route service:
116
117
 
117
118
  ```bash
@@ -162,7 +163,7 @@ devdoor subdomain release demo
162
163
  Random-subdomain tunnels display a one-time interstitial notice on browser page loads to protect shared relay domains. It is skipped automatically for vanity subdomains, custom domains, password-protected tunnels, and programmatic HTTP clients (`curl`, webhooks, `fetch`/XHR, CORS preflights, WebSockets). Browser-like scripts can also bypass it explicitly:
163
164
 
164
165
  ```bash
165
- curl -H "DevDoor-Skip-Browser-Warning: 1" https://brisk-otter.devdoor.dev/
166
+ curl -H "DevDoor-Skip-Browser-Warning: 1" https://brisk-otter.relay.dipakrathod.me/
166
167
  ```
167
168
 
168
169
  ## Request Inspector, Logs & Diagnostics
@@ -182,7 +183,7 @@ devdoor reset --dry-run # preview OS cleanup without modifying fi
182
183
  devdoor reset # safely undo OS changes & domains (keeps login & inspector.db)
183
184
  devdoor reset --all # also remove auth.json, config.yaml, and inspector.db
184
185
  devdoor upgrade # upgrade devdoor via uv/pipx/pip (alias: update)
185
- devdoor version # print version and Python runtime
186
+ devdoor version # print version and Python runtime (or -v / --version)
186
187
  devdoor uninstall # full OS undo + remove DevDoor files under ~/.devdoor
187
188
  ```
188
189
 
@@ -196,6 +197,16 @@ If you already removed the CLI binary before resetting:
196
197
  - **Linux:** Remove `# devdoor` lines from `/etc/hosts`, delete `/usr/local/share/ca-certificates/devdoor.crt` (or `/etc/pki/ca-trust/source/anchors/devdoor.crt`) and refresh trust (`sudo update-ca-certificates --fresh` or `sudo update-ca-trust extract`), and delete only the `DEVDOOR` `iptables -t nat` chain or `ip devdoor` `nft` table.
197
198
  - **Windows:** Run `certutil -user -delstore Root "DevDoor Root CA"`, remove `# devdoor` lines from `%SystemRoot%\System32\drivers\etc\hosts`, and delete DevDoor `netsh interface portproxy` rules (`connectport=10080` / `10443`) if elevated `.test` mode was used.
198
199
 
200
+ ## Documentation
201
+
202
+ Browse the full client documentation index in [docs/README.md](docs/README.md):
203
+
204
+ - [Configuration & CLI Reference](docs/configuration-and-cli.md) — Environment variables, `~/.devdoor` state layout, `devdoor config` keys, `devdoor.yaml` schema, CLI flags, and TUI keybindings
205
+ - [How-To Guides](docs/guides.md) — Multi-service setups, CORS recipes, password-protected webhooks, targeting custom relays, and request replay workflows
206
+ - [Architecture](docs/architecture.md) — Client module boundaries, daemon/tunnel traffic flows, wire framing, and privacy design
207
+ - [Troubleshooting & Recovery](docs/troubleshooting.md) — `devdoor doctor` diagnostics, browser/OS trust notes, firewall/port conflicts, and safe reset / manual cleanup
208
+ - [Architecture Decision Records (ADRs)](docs/decisions/) — Client design decisions (`ADR-001`–`ADR-006`)
209
+
199
210
  ## Contributing
200
211
 
201
212
  Contributions are welcome! Please read the [Contributing Guide](CONTRIBUTING.md), follow the [Code of Conduct](CODE_OF_CONDUCT.md), and adhere to [CONSTRAINTS.md](CONSTRAINTS.md).
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "devdoor"
3
- version = "0.2.0"
3
+ version = "0.2.1"
4
4
  description = "Open-source local HTTPS domain proxy, streaming tunnel client, and TUI inspector"
5
5
  readme = "README.md"
6
6
  license = "MIT"
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "devdoor"
3
- version = "0.2.0"
3
+ version = "0.2.1"
4
4
  description = "Open-source local HTTPS domain proxy, streaming tunnel client, and TUI inspector"
5
5
  readme = "README.md"
6
6
  license = "MIT"
@@ -9,7 +9,7 @@ def _resolve_version() -> str:
9
9
  try:
10
10
  return version("devdoor")
11
11
  except PackageNotFoundError:
12
- return "0.2.0"
12
+ return "0.2.1"
13
13
 
14
14
 
15
15
  __version__ = _resolve_version()
@@ -6,6 +6,7 @@ import platform
6
6
  import shutil
7
7
  import subprocess
8
8
  from collections.abc import Callable
9
+ from typing import Annotated
9
10
 
10
11
  import typer
11
12
 
@@ -25,13 +26,44 @@ from devdoor.cli.local import (
25
26
  up_command,
26
27
  )
27
28
  from devdoor.cli.share import share_command
29
+ from devdoor.cli.validators import CLI_CONTEXT_SETTINGS
28
30
 
29
31
  app = typer.Typer(
30
32
  name="devdoor",
31
33
  help="Open-source local HTTPS domain proxy, streaming tunnel, and TUI inspector.",
32
34
  no_args_is_help=True,
35
+ context_settings=CLI_CONTEXT_SETTINGS,
33
36
  )
34
37
 
38
+
39
+ def _format_version() -> str:
40
+ return f"devdoor {__version__} (Python {platform.python_version()})"
41
+
42
+
43
+ def _version_callback(value: bool) -> None:
44
+ if value:
45
+ typer.echo(_format_version())
46
+ raise typer.Exit()
47
+
48
+
49
+ @app.callback()
50
+ def root_callback(
51
+ version: Annotated[
52
+ bool,
53
+ typer.Option(
54
+ "--version",
55
+ "-v",
56
+ "-V",
57
+ callback=_version_callback,
58
+ is_eager=True,
59
+ help="Print installed DevDoor version and exit.",
60
+ ),
61
+ ] = False,
62
+ ) -> None:
63
+ """DevDoor CLI entrypoint."""
64
+ del version
65
+
66
+
35
67
  app.command("start")(start_command)
36
68
  app.command("stop")(stop_command)
37
69
  app.command("up")(up_command)
@@ -55,7 +87,7 @@ app.add_typer(subdomain_app, name="subdomain")
55
87
  @app.command("version")
56
88
  def version_command() -> None:
57
89
  """Print installed DevDoor version and Python runtime."""
58
- typer.echo(f"devdoor {__version__} (Python {platform.python_version()})")
90
+ typer.echo(_format_version())
59
91
 
60
92
 
61
93
  def detect_upgrade_command(
@@ -10,7 +10,7 @@ import typer
10
10
  from rich.console import Console
11
11
  from rich.table import Table
12
12
 
13
- from devdoor.cli.validators import parse_cli_log_mode, parse_cli_port
13
+ from devdoor.cli.validators import CLI_CONTEXT_SETTINGS, parse_cli_log_mode, parse_cli_port
14
14
  from devdoor.core.config import (
15
15
  ConfigError,
16
16
  GlobalConfig,
@@ -28,7 +28,10 @@ from devdoor.tunnel.auth_client import (
28
28
  )
29
29
  from devdoor.tunnel.httperr import RelayRequestError
30
30
 
31
- config_app = typer.Typer(help="Inspect and update DevDoor configuration.")
31
+ config_app = typer.Typer(
32
+ help="Inspect and update DevDoor configuration.",
33
+ context_settings=CLI_CONTEXT_SETTINGS,
34
+ )
32
35
 
33
36
  _CONFIG_KEY_ALIASES: dict[str, str] = {
34
37
  "relay": "relay-url",
@@ -9,6 +9,7 @@ import typer
9
9
  from rich.console import Console
10
10
  from rich.table import Table
11
11
 
12
+ from devdoor.cli.validators import CLI_CONTEXT_SETTINGS
12
13
  from devdoor.core.config import ConfigError, resolve_paths
13
14
  from devdoor.tunnel.auth_client import (
14
15
  describe_missing_auth,
@@ -18,8 +19,14 @@ from devdoor.tunnel.auth_client import (
18
19
  from devdoor.tunnel.httperr import RelayRequestError
19
20
  from devdoor.tunnel.relay_api import DomainRecord, RelayApiClient
20
21
 
21
- domain_app = typer.Typer(help="Manage verified custom domains on the relay.")
22
- subdomain_app = typer.Typer(help="Manage reserved vanity subdomains on the relay.")
22
+ domain_app = typer.Typer(
23
+ help="Manage verified custom domains on the relay.",
24
+ context_settings=CLI_CONTEXT_SETTINGS,
25
+ )
26
+ subdomain_app = typer.Typer(
27
+ help="Manage reserved vanity subdomains on the relay.",
28
+ context_settings=CLI_CONTEXT_SETTINGS,
29
+ )
23
30
 
24
31
 
25
32
  def _require_client_args(relay: str | None, *, allow_insecure: bool = False) -> tuple[str, str]:
@@ -6,6 +6,8 @@ import typer
6
6
 
7
7
  from devdoor.core.config import LogMode, parse_duration_seconds, parse_log_mode
8
8
 
9
+ CLI_CONTEXT_SETTINGS: dict[str, object] = {"help_option_names": ["-h", "--help"]}
10
+
9
11
 
10
12
  def parse_cli_log_mode(raw: str) -> LogMode:
11
13
  """Parse ``--log-mode`` or config ``log-mode`` into ``LogMode`` for CLI commands."""
@@ -31,7 +31,7 @@ from devdoor.tunnel.httperr import (
31
31
  format_network_error,
32
32
  )
33
33
 
34
- DEFAULT_RELAY_URL = "https://relay.devdoor.dev"
34
+ DEFAULT_RELAY_URL = "https://relay.dipakrathod.me"
35
35
 
36
36
 
37
37
  class AuthCredentials(BaseModel):
File without changes
File without changes