lustro-cli 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.
- lustro_cli/__init__.py +29 -0
- lustro_cli/cli.py +2460 -0
- lustro_cli/client.py +434 -0
- lustro_cli/discovery.py +1033 -0
- lustro_cli/exitcodes.py +25 -0
- lustro_cli/mcp.py +867 -0
- lustro_cli/wire/__init__.py +62 -0
- lustro_cli/wire/_schema.json +97 -0
- lustro_cli/wire/cursor-envelope.schema.json +28 -0
- lustro_cli/wire/error-envelope.schema.json +46 -0
- lustro_cli/wire/golden/cursor-delta.json +91 -0
- lustro_cli/wire/golden/cursor-reset.json +65 -0
- lustro_cli/wire/golden/cursor-unchanged.json +15 -0
- lustro_cli/wire/golden/error-envelope.json +7 -0
- lustro_cli/wire/golden/export-har-websocket.json +148 -0
- lustro_cli/wire/golden/export-har.json +359 -0
- lustro_cli/wire/golden/logs-delta.json +44 -0
- lustro_cli/wire/golden/logs-reset.json +73 -0
- lustro_cli/wire/golden/logs-unchanged.json +9 -0
- lustro_cli/wire/golden/meta.json +12 -0
- lustro_cli/wire/golden/prefs-delta.json +58 -0
- lustro_cli/wire/golden/prefs-files.json +64 -0
- lustro_cli/wire/golden/prefs-reset.json +58 -0
- lustro_cli/wire/golden/prefs-unchanged.json +4 -0
- lustro_cli/wire/golden/rules-list.json +44 -0
- lustro_cli/wire/golden/screen-tree-views.json +596 -0
- lustro_cli/wire/golden/screen-tree.json +689 -0
- lustro_cli/wire/golden/send-result.json +7 -0
- lustro_cli/wire/golden/senders-list.json +6 -0
- lustro_cli/wire/golden/sqlite-databases.json +37 -0
- lustro_cli/wire/golden/sqlite-exec.json +4 -0
- lustro_cli/wire/golden/sqlite-query.json +109 -0
- lustro_cli/wire/golden/sqlite-rows.json +109 -0
- lustro_cli/wire/golden/sqlite-schema.json +98 -0
- lustro_cli/wire/golden/sqlite-tables.json +57 -0
- lustro_cli/wire/golden/stream-delta.json +48 -0
- lustro_cli/wire/golden/stream-reset.json +66 -0
- lustro_cli/wire/golden/stream-unchanged.json +4 -0
- lustro_cli/wire/golden/transaction-image.json +43 -0
- lustro_cli/wire/golden/transaction.json +41 -0
- lustro_cli/wire/golden/websocket.json +37 -0
- lustro_cli/wire/golden/websockets-reset.json +89 -0
- lustro_cli/wire/golden/work-events.json +152 -0
- lustro_cli/wire/golden/work-item.json +118 -0
- lustro_cli/wire/golden/work-items.json +129 -0
- lustro_cli/wire/golden/work-metrics.json +40 -0
- lustro_cli/wire/logs.openapi.json +622 -0
- lustro_cli/wire/meta.schema.json +47 -0
- lustro_cli/wire/network.openapi.json +2458 -0
- lustro_cli/wire/pagination.schema.json +20 -0
- lustro_cli/wire/prefs.openapi.json +699 -0
- lustro_cli/wire/screen.openapi.json +512 -0
- lustro_cli/wire/sqlite.openapi.json +1233 -0
- lustro_cli/wire/stream-envelope.schema.json +33 -0
- lustro_cli/wire/sync.py +80 -0
- lustro_cli/wire/work.openapi.json +1188 -0
- lustro_cli-0.1.0.dist-info/METADATA +585 -0
- lustro_cli-0.1.0.dist-info/RECORD +60 -0
- lustro_cli-0.1.0.dist-info/WHEEL +4 -0
- lustro_cli-0.1.0.dist-info/entry_points.txt +3 -0
lustro_cli/__init__.py
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"""lustro — a CLI client for the Lustro Android debug server.
|
|
2
|
+
|
|
3
|
+
The CLI talks ONLY to the HTTP wire protocol under ``/api/v1/``, which is the
|
|
4
|
+
public, SemVer-governed contract (see ``wire-protocol/v1/``). It has no
|
|
5
|
+
dependency on a source checkout and uses the Python standard library only at
|
|
6
|
+
runtime.
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
__all__ = ["__version__", "PROTOCOL_VERSION", "REVISION", "LustroError", "LustroClient", "CursorState", "main"]
|
|
10
|
+
|
|
11
|
+
# The package's only version: pyproject.toml reads it from here. It is
|
|
12
|
+
# VERSION_NAME in gradle.properties without -SNAPSHOT, so a release publishes the
|
|
13
|
+
# CLI with the version of the library; `./gradlew checkCliVersion` fails when not.
|
|
14
|
+
__version__ = "0.1.0"
|
|
15
|
+
|
|
16
|
+
# The wire protocol version that this CLI implements, which `lustro --version`
|
|
17
|
+
# prints. It is the server's protocolVersion in lustro/build.gradle.kts, and
|
|
18
|
+
# `./gradlew checkCliVersion` fails when not: a change to the protocol updates it.
|
|
19
|
+
PROTOCOL_VERSION = "1.17"
|
|
20
|
+
|
|
21
|
+
# The revision of the CLI, which `lustro --version` prints. Each pull request that
|
|
22
|
+
# changes a file under lustro-cli/src/ increases it by one, and CI fails one that
|
|
23
|
+
# does not (.github/scripts/check_cli_revision.py). The two versions above change
|
|
24
|
+
# only at a release or with the protocol, so a wrapper script that needs a fix of
|
|
25
|
+
# the CLI requires the revision of that fix or a later one.
|
|
26
|
+
REVISION = 4
|
|
27
|
+
|
|
28
|
+
from .client import CursorState, LustroClient, LustroError # noqa: E402
|
|
29
|
+
from .cli import main # noqa: E402
|