ghosttrap-cli 0.3.2__tar.gz → 0.3.4__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.
- {ghosttrap_cli-0.3.2 → ghosttrap_cli-0.3.4}/PKG-INFO +1 -1
- {ghosttrap_cli-0.3.2 → ghosttrap_cli-0.3.4}/ghosttrap_cli/cli.py +6 -4
- {ghosttrap_cli-0.3.2 → ghosttrap_cli-0.3.4}/ghosttrap_cli.egg-info/PKG-INFO +1 -1
- {ghosttrap_cli-0.3.2 → ghosttrap_cli-0.3.4}/pyproject.toml +1 -1
- {ghosttrap_cli-0.3.2 → ghosttrap_cli-0.3.4}/README.md +0 -0
- {ghosttrap_cli-0.3.2 → ghosttrap_cli-0.3.4}/ghosttrap_cli/__init__.py +0 -0
- {ghosttrap_cli-0.3.2 → ghosttrap_cli-0.3.4}/ghosttrap_cli.egg-info/SOURCES.txt +0 -0
- {ghosttrap_cli-0.3.2 → ghosttrap_cli-0.3.4}/ghosttrap_cli.egg-info/dependency_links.txt +0 -0
- {ghosttrap_cli-0.3.2 → ghosttrap_cli-0.3.4}/ghosttrap_cli.egg-info/entry_points.txt +0 -0
- {ghosttrap_cli-0.3.2 → ghosttrap_cli-0.3.4}/ghosttrap_cli.egg-info/requires.txt +0 -0
- {ghosttrap_cli-0.3.2 → ghosttrap_cli-0.3.4}/ghosttrap_cli.egg-info/top_level.txt +0 -0
- {ghosttrap_cli-0.3.2 → ghosttrap_cli-0.3.4}/setup.cfg +0 -0
|
@@ -63,7 +63,9 @@ Read `~/.ghosttrap/config.json` for state. It contains:
|
|
|
63
63
|
|
|
64
64
|
## When peek returns
|
|
65
65
|
|
|
66
|
-
|
|
66
|
+
1. **Immediately restart peek** in the background before doing anything else — this ensures you're listening for the next error while you work on the current one.
|
|
67
|
+
2. Read the JSON output: `error.repo`, `error.type`, `error.message`, `error.traceback` (list of strings), `error.frames` (list of `{file, line, function, code}`).
|
|
68
|
+
3. Open the file from the last frame, diagnose, fix.
|
|
67
69
|
|
|
68
70
|
## Rules
|
|
69
71
|
|
|
@@ -295,9 +297,9 @@ async def watch(server_url, token):
|
|
|
295
297
|
while True:
|
|
296
298
|
try:
|
|
297
299
|
await _connect_and_handle(server_url, token, config, once=False)
|
|
298
|
-
except websockets.ConnectionClosed:
|
|
300
|
+
except (websockets.ConnectionClosed, websockets.InvalidStatus, ConnectionError, OSError):
|
|
299
301
|
print("connection lost, reconnecting...", file=sys.stderr)
|
|
300
|
-
await asyncio.sleep(
|
|
302
|
+
await asyncio.sleep(60)
|
|
301
303
|
|
|
302
304
|
|
|
303
305
|
async def peek(server_url, token):
|
|
@@ -307,7 +309,7 @@ async def peek(server_url, token):
|
|
|
307
309
|
try:
|
|
308
310
|
await _connect_and_handle(server_url, token, config, once=True)
|
|
309
311
|
return # got an error, printed it, done
|
|
310
|
-
except (websockets.ConnectionClosed, ConnectionError, OSError):
|
|
312
|
+
except (websockets.ConnectionClosed, websockets.InvalidStatus, ConnectionError, OSError):
|
|
311
313
|
print("connection lost, reconnecting...", file=sys.stderr)
|
|
312
314
|
await asyncio.sleep(60)
|
|
313
315
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|