hypha-debugger 0.2.4__tar.gz → 0.2.5__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 (26) hide show
  1. {hypha_debugger-0.2.4 → hypha_debugger-0.2.5}/PKG-INFO +36 -1
  2. {hypha_debugger-0.2.4 → hypha_debugger-0.2.5}/README.md +35 -0
  3. {hypha_debugger-0.2.4 → hypha_debugger-0.2.5}/hypha_debugger/__init__.py +1 -1
  4. {hypha_debugger-0.2.4 → hypha_debugger-0.2.5}/hypha_debugger/services/source.py +12 -7
  5. {hypha_debugger-0.2.4 → hypha_debugger-0.2.5}/hypha_debugger.egg-info/PKG-INFO +36 -1
  6. {hypha_debugger-0.2.4 → hypha_debugger-0.2.5}/pyproject.toml +1 -1
  7. {hypha_debugger-0.2.4 → hypha_debugger-0.2.5}/hypha_debugger/__main__.py +0 -0
  8. {hypha_debugger-0.2.4 → hypha_debugger-0.2.5}/hypha_debugger/cli.py +0 -0
  9. {hypha_debugger-0.2.4 → hypha_debugger-0.2.5}/hypha_debugger/debugger.py +0 -0
  10. {hypha_debugger-0.2.4 → hypha_debugger-0.2.5}/hypha_debugger/services/__init__.py +0 -0
  11. {hypha_debugger-0.2.4 → hypha_debugger-0.2.5}/hypha_debugger/services/execute.py +0 -0
  12. {hypha_debugger-0.2.4 → hypha_debugger-0.2.5}/hypha_debugger/services/filesystem.py +0 -0
  13. {hypha_debugger-0.2.4 → hypha_debugger-0.2.5}/hypha_debugger/services/info.py +0 -0
  14. {hypha_debugger-0.2.4 → hypha_debugger-0.2.5}/hypha_debugger/services/inspect_vars.py +0 -0
  15. {hypha_debugger-0.2.4 → hypha_debugger-0.2.5}/hypha_debugger/services/shell.py +0 -0
  16. {hypha_debugger-0.2.4 → hypha_debugger-0.2.5}/hypha_debugger/utils/__init__.py +0 -0
  17. {hypha_debugger-0.2.4 → hypha_debugger-0.2.5}/hypha_debugger/utils/env.py +0 -0
  18. {hypha_debugger-0.2.4 → hypha_debugger-0.2.5}/hypha_debugger.egg-info/SOURCES.txt +0 -0
  19. {hypha_debugger-0.2.4 → hypha_debugger-0.2.5}/hypha_debugger.egg-info/dependency_links.txt +0 -0
  20. {hypha_debugger-0.2.4 → hypha_debugger-0.2.5}/hypha_debugger.egg-info/entry_points.txt +0 -0
  21. {hypha_debugger-0.2.4 → hypha_debugger-0.2.5}/hypha_debugger.egg-info/requires.txt +0 -0
  22. {hypha_debugger-0.2.4 → hypha_debugger-0.2.5}/hypha_debugger.egg-info/top_level.txt +0 -0
  23. {hypha_debugger-0.2.4 → hypha_debugger-0.2.5}/setup.cfg +0 -0
  24. {hypha_debugger-0.2.4 → hypha_debugger-0.2.5}/tests/test_cli.py +0 -0
  25. {hypha_debugger-0.2.4 → hypha_debugger-0.2.5}/tests/test_services.py +0 -0
  26. {hypha_debugger-0.2.4 → hypha_debugger-0.2.5}/tests/test_shell.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hypha-debugger
3
- Version: 0.2.4
3
+ Version: 0.2.5
4
4
  Summary: Injectable debugger for Python processes and AI agents, powered by Hypha RPC
5
5
  Author: Amun AI AB
6
6
  License: MIT
@@ -43,6 +43,41 @@ A lightweight, injectable debugger for web pages and Python processes, powered b
43
43
  └─────────────────────────┘ └──────────────┘ └─────────────────────────┘
44
44
  ```
45
45
 
46
+ ## The `hyd` CLI — talk to any remote with minimal overhead
47
+
48
+ Installing this package also gives you the **`hyd`** command — the low-overhead way
49
+ for an agent (or you) to drive a remote target. Store the connection once as a
50
+ **profile**, then every command is a short `hyd sh '…'` / `hyd js '…'` with the
51
+ connection + working directory remembered — far fewer tokens than re-sending
52
+ authenticated curl. One CLI drives **both** target types:
53
+
54
+ ```bash
55
+ pip install hypha-debugger # or: pipx install hypha-debugger (always on PATH)
56
+
57
+ # Terminal target (a Python process running this debugger):
58
+ hyd profile add box "<py-debugger-service-url>" # type inferred = terminal
59
+ export HYD_PROFILE=box
60
+ hyd sh 'uname -a && pwd' # remote shell | hyd 'ls -la' (bare form)
61
+ hyd py 'import sys; sys.version' # remote Python via execute_code
62
+
63
+ # Browser target (a Hypha Navigator web service):
64
+ hyd profile add web "<navigator-service-url>" --type browser
65
+ export HYD_PROFILE=web
66
+ hyd 'document.title' # bare form runs JavaScript on a browser profile
67
+ hyd nav 'https://example.com' # navigate | hyd shot page.png (screenshot)
68
+ hyd call get_browser_state # call any service function
69
+
70
+ hyd status # confirm the connection
71
+ ```
72
+
73
+ The current profile + directory live in the `HYD_PROFILE` / `HYD_CWD` environment
74
+ variables (per-terminal, nothing session-specific on disk); the remote stays
75
+ stateless. If `hyd` isn't on your PATH after a `--user` install, use
76
+ `python -m hypha_debugger.cli` (identical arguments). Run `hyd` with no args for help.
77
+
78
+ > Any debugger's `GET <service-url>/get_skill_md` includes these same bootstrap
79
+ > instructions, so an AI agent can self-install and connect from the URL alone.
80
+
46
81
  ## JavaScript (Browser)
47
82
 
48
83
  [![npm](https://img.shields.io/npm/v/hypha-debugger)](https://www.npmjs.com/package/hypha-debugger)
@@ -14,6 +14,41 @@ A lightweight, injectable debugger for web pages and Python processes, powered b
14
14
  └─────────────────────────┘ └──────────────┘ └─────────────────────────┘
15
15
  ```
16
16
 
17
+ ## The `hyd` CLI — talk to any remote with minimal overhead
18
+
19
+ Installing this package also gives you the **`hyd`** command — the low-overhead way
20
+ for an agent (or you) to drive a remote target. Store the connection once as a
21
+ **profile**, then every command is a short `hyd sh '…'` / `hyd js '…'` with the
22
+ connection + working directory remembered — far fewer tokens than re-sending
23
+ authenticated curl. One CLI drives **both** target types:
24
+
25
+ ```bash
26
+ pip install hypha-debugger # or: pipx install hypha-debugger (always on PATH)
27
+
28
+ # Terminal target (a Python process running this debugger):
29
+ hyd profile add box "<py-debugger-service-url>" # type inferred = terminal
30
+ export HYD_PROFILE=box
31
+ hyd sh 'uname -a && pwd' # remote shell | hyd 'ls -la' (bare form)
32
+ hyd py 'import sys; sys.version' # remote Python via execute_code
33
+
34
+ # Browser target (a Hypha Navigator web service):
35
+ hyd profile add web "<navigator-service-url>" --type browser
36
+ export HYD_PROFILE=web
37
+ hyd 'document.title' # bare form runs JavaScript on a browser profile
38
+ hyd nav 'https://example.com' # navigate | hyd shot page.png (screenshot)
39
+ hyd call get_browser_state # call any service function
40
+
41
+ hyd status # confirm the connection
42
+ ```
43
+
44
+ The current profile + directory live in the `HYD_PROFILE` / `HYD_CWD` environment
45
+ variables (per-terminal, nothing session-specific on disk); the remote stays
46
+ stateless. If `hyd` isn't on your PATH after a `--user` install, use
47
+ `python -m hypha_debugger.cli` (identical arguments). Run `hyd` with no args for help.
48
+
49
+ > Any debugger's `GET <service-url>/get_skill_md` includes these same bootstrap
50
+ > instructions, so an AI agent can self-install and connect from the URL alone.
51
+
17
52
  ## JavaScript (Browser)
18
53
 
19
54
  [![npm](https://img.shields.io/npm/v/hypha-debugger)](https://www.npmjs.com/package/hypha-debugger)
@@ -12,5 +12,5 @@ Usage (sync):
12
12
 
13
13
  from hypha_debugger.debugger import start_debugger, start_debugger_sync, DebugSession
14
14
 
15
- __version__ = "0.2.4"
15
+ __version__ = "0.2.5"
16
16
  __all__ = ["start_debugger", "start_debugger_sync", "DebugSession", "__version__"]
@@ -92,13 +92,18 @@ def _get_skill_md_impl() -> str:
92
92
  A remote debugger is attached to a running Python process. You have full access
93
93
  to run shell + Python, read/write files, inspect variables, and install packages.
94
94
 
95
- **START HERE → install the `hyd` CLI (next section).** Decision rule: if you'll run
96
- more than ~2 commands here (i.e. almost any real task), `hyd` is the intended
97
- interface — one `pip install`, then every command is a short `hyd sh '…'` /
98
- `hyd py '…'` with the connection + working directory remembered for you, far fewer
99
- tokens than re-sending an authenticated curl each time, and it behaves like a local
100
- shell. Only for a single throwaway call is raw curl (further down) simpler. The raw
101
- HTTP API is the low-level fallback and powers the CLI.
95
+ **RECOMMENDED → install the `hyd` CLI (next section).** Decision rule: if you'll run
96
+ more than ~2 commands here (i.e. almost any real task) and you *can* install a pip
97
+ package, `hyd` is the intended interface — one `pip install`, then every command is
98
+ a short `hyd sh '…'` / `hyd py '…'` with the connection + working directory
99
+ remembered for you, far fewer tokens than re-sending an authenticated curl each
100
+ time, and it behaves like a local shell.
101
+
102
+ **No install? Use `curl` — everything works without the CLI.** If you can't install
103
+ packages (no pip, no network to PyPI, locked-down sandbox), skip `hyd` entirely: the
104
+ raw HTTP API below is complete on its own, with copy-paste `curl` examples for every
105
+ function (it's exactly what `hyd` calls under the hood). Recommended path is `hyd`;
106
+ guaranteed-available path is `curl`. Either fully operates the remote host.
102
107
 
103
108
  ## Fast path — the `hyd` CLI (do this first)
104
109
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hypha-debugger
3
- Version: 0.2.4
3
+ Version: 0.2.5
4
4
  Summary: Injectable debugger for Python processes and AI agents, powered by Hypha RPC
5
5
  Author: Amun AI AB
6
6
  License: MIT
@@ -43,6 +43,41 @@ A lightweight, injectable debugger for web pages and Python processes, powered b
43
43
  └─────────────────────────┘ └──────────────┘ └─────────────────────────┘
44
44
  ```
45
45
 
46
+ ## The `hyd` CLI — talk to any remote with minimal overhead
47
+
48
+ Installing this package also gives you the **`hyd`** command — the low-overhead way
49
+ for an agent (or you) to drive a remote target. Store the connection once as a
50
+ **profile**, then every command is a short `hyd sh '…'` / `hyd js '…'` with the
51
+ connection + working directory remembered — far fewer tokens than re-sending
52
+ authenticated curl. One CLI drives **both** target types:
53
+
54
+ ```bash
55
+ pip install hypha-debugger # or: pipx install hypha-debugger (always on PATH)
56
+
57
+ # Terminal target (a Python process running this debugger):
58
+ hyd profile add box "<py-debugger-service-url>" # type inferred = terminal
59
+ export HYD_PROFILE=box
60
+ hyd sh 'uname -a && pwd' # remote shell | hyd 'ls -la' (bare form)
61
+ hyd py 'import sys; sys.version' # remote Python via execute_code
62
+
63
+ # Browser target (a Hypha Navigator web service):
64
+ hyd profile add web "<navigator-service-url>" --type browser
65
+ export HYD_PROFILE=web
66
+ hyd 'document.title' # bare form runs JavaScript on a browser profile
67
+ hyd nav 'https://example.com' # navigate | hyd shot page.png (screenshot)
68
+ hyd call get_browser_state # call any service function
69
+
70
+ hyd status # confirm the connection
71
+ ```
72
+
73
+ The current profile + directory live in the `HYD_PROFILE` / `HYD_CWD` environment
74
+ variables (per-terminal, nothing session-specific on disk); the remote stays
75
+ stateless. If `hyd` isn't on your PATH after a `--user` install, use
76
+ `python -m hypha_debugger.cli` (identical arguments). Run `hyd` with no args for help.
77
+
78
+ > Any debugger's `GET <service-url>/get_skill_md` includes these same bootstrap
79
+ > instructions, so an AI agent can self-install and connect from the URL alone.
80
+
46
81
  ## JavaScript (Browser)
47
82
 
48
83
  [![npm](https://img.shields.io/npm/v/hypha-debugger)](https://www.npmjs.com/package/hypha-debugger)
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "hypha-debugger"
7
- version = "0.2.4"
7
+ version = "0.2.5"
8
8
  description = "Injectable debugger for Python processes and AI agents, powered by Hypha RPC"
9
9
  readme = "README.md"
10
10
  license = {text = "MIT"}
File without changes