deskwright 0.1.0__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.
Files changed (36) hide show
  1. deskwright/__init__.py +30 -0
  2. deskwright/atspi.py +1176 -0
  3. deskwright/atspi_ui.py +173 -0
  4. deskwright/capture.py +1343 -0
  5. deskwright/cli.py +36 -0
  6. deskwright/config.py +16 -0
  7. deskwright/desktop.py +266 -0
  8. deskwright/errors.py +74 -0
  9. deskwright/extension/README.md +53 -0
  10. deskwright/extension/deskwright@zeticle.com/check-syntax.sh +56 -0
  11. deskwright/extension/deskwright@zeticle.com/dbus.js +723 -0
  12. deskwright/extension/deskwright@zeticle.com/extension.js +73 -0
  13. deskwright/extension/deskwright@zeticle.com/indicator.js +226 -0
  14. deskwright/extension/deskwright@zeticle.com/metadata.json +8 -0
  15. deskwright/extension/deskwright@zeticle.com/schemas/gschemas.compiled +0 -0
  16. deskwright/extension/deskwright@zeticle.com/schemas/org.gnome.shell.extensions.deskwright.gschema.xml +17 -0
  17. deskwright/frames.py +292 -0
  18. deskwright/headless.py +697 -0
  19. deskwright/input.py +1123 -0
  20. deskwright/journal.py +318 -0
  21. deskwright/ocr.py +253 -0
  22. deskwright/portal_input.py +412 -0
  23. deskwright/remote_input.py +408 -0
  24. deskwright/screencast.py +305 -0
  25. deskwright/server.py +1362 -0
  26. deskwright/session.py +99 -0
  27. deskwright/setup_cli.py +706 -0
  28. deskwright/shell.py +833 -0
  29. deskwright/steps.py +356 -0
  30. deskwright/tripwire.py +77 -0
  31. deskwright-0.1.0.dist-info/METADATA +373 -0
  32. deskwright-0.1.0.dist-info/RECORD +36 -0
  33. deskwright-0.1.0.dist-info/WHEEL +5 -0
  34. deskwright-0.1.0.dist-info/entry_points.txt +6 -0
  35. deskwright-0.1.0.dist-info/licenses/LICENSE +202 -0
  36. deskwright-0.1.0.dist-info/top_level.txt +1 -0
deskwright/__init__.py ADDED
@@ -0,0 +1,30 @@
1
+ """Deskwright: an agent uses a real GNOME/Wayland desktop.
2
+
3
+ The only thing that happens at import is the environment shim below.
4
+ """
5
+ from __future__ import annotations
6
+
7
+ import os
8
+
9
+ # Every setting was `WCU_*` before the 0.1.0 rename, and the names live in
10
+ # shell profiles and MCP client configs that this package cannot edit. So a
11
+ # `WCU_*` variable is honoured when its `DESKWRIGHT_*` counterpart is unset,
12
+ # once, here, rather than at each of the dozen `os.environ.get` sites.
13
+ # Deprecated: it goes away in 0.2.0.
14
+ _LEGACY_PREFIX = "WCU_"
15
+ _PREFIX = "DESKWRIGHT_"
16
+
17
+
18
+ def _adopt_legacy_env(environ: dict | None = None) -> list[str]:
19
+ """Copy any WCU_* variable onto its DESKWRIGHT_* name. Returns what moved."""
20
+ env = os.environ if environ is None else environ
21
+ moved = []
22
+ for key in [k for k in env if k.startswith(_LEGACY_PREFIX)]:
23
+ new = _PREFIX + key[len(_LEGACY_PREFIX):]
24
+ if new not in env:
25
+ env[new] = env[key]
26
+ moved.append(f"{key} -> {new}")
27
+ return moved
28
+
29
+
30
+ _adopt_legacy_env()