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.
Files changed (60) hide show
  1. lustro_cli/__init__.py +29 -0
  2. lustro_cli/cli.py +2460 -0
  3. lustro_cli/client.py +434 -0
  4. lustro_cli/discovery.py +1033 -0
  5. lustro_cli/exitcodes.py +25 -0
  6. lustro_cli/mcp.py +867 -0
  7. lustro_cli/wire/__init__.py +62 -0
  8. lustro_cli/wire/_schema.json +97 -0
  9. lustro_cli/wire/cursor-envelope.schema.json +28 -0
  10. lustro_cli/wire/error-envelope.schema.json +46 -0
  11. lustro_cli/wire/golden/cursor-delta.json +91 -0
  12. lustro_cli/wire/golden/cursor-reset.json +65 -0
  13. lustro_cli/wire/golden/cursor-unchanged.json +15 -0
  14. lustro_cli/wire/golden/error-envelope.json +7 -0
  15. lustro_cli/wire/golden/export-har-websocket.json +148 -0
  16. lustro_cli/wire/golden/export-har.json +359 -0
  17. lustro_cli/wire/golden/logs-delta.json +44 -0
  18. lustro_cli/wire/golden/logs-reset.json +73 -0
  19. lustro_cli/wire/golden/logs-unchanged.json +9 -0
  20. lustro_cli/wire/golden/meta.json +12 -0
  21. lustro_cli/wire/golden/prefs-delta.json +58 -0
  22. lustro_cli/wire/golden/prefs-files.json +64 -0
  23. lustro_cli/wire/golden/prefs-reset.json +58 -0
  24. lustro_cli/wire/golden/prefs-unchanged.json +4 -0
  25. lustro_cli/wire/golden/rules-list.json +44 -0
  26. lustro_cli/wire/golden/screen-tree-views.json +596 -0
  27. lustro_cli/wire/golden/screen-tree.json +689 -0
  28. lustro_cli/wire/golden/send-result.json +7 -0
  29. lustro_cli/wire/golden/senders-list.json +6 -0
  30. lustro_cli/wire/golden/sqlite-databases.json +37 -0
  31. lustro_cli/wire/golden/sqlite-exec.json +4 -0
  32. lustro_cli/wire/golden/sqlite-query.json +109 -0
  33. lustro_cli/wire/golden/sqlite-rows.json +109 -0
  34. lustro_cli/wire/golden/sqlite-schema.json +98 -0
  35. lustro_cli/wire/golden/sqlite-tables.json +57 -0
  36. lustro_cli/wire/golden/stream-delta.json +48 -0
  37. lustro_cli/wire/golden/stream-reset.json +66 -0
  38. lustro_cli/wire/golden/stream-unchanged.json +4 -0
  39. lustro_cli/wire/golden/transaction-image.json +43 -0
  40. lustro_cli/wire/golden/transaction.json +41 -0
  41. lustro_cli/wire/golden/websocket.json +37 -0
  42. lustro_cli/wire/golden/websockets-reset.json +89 -0
  43. lustro_cli/wire/golden/work-events.json +152 -0
  44. lustro_cli/wire/golden/work-item.json +118 -0
  45. lustro_cli/wire/golden/work-items.json +129 -0
  46. lustro_cli/wire/golden/work-metrics.json +40 -0
  47. lustro_cli/wire/logs.openapi.json +622 -0
  48. lustro_cli/wire/meta.schema.json +47 -0
  49. lustro_cli/wire/network.openapi.json +2458 -0
  50. lustro_cli/wire/pagination.schema.json +20 -0
  51. lustro_cli/wire/prefs.openapi.json +699 -0
  52. lustro_cli/wire/screen.openapi.json +512 -0
  53. lustro_cli/wire/sqlite.openapi.json +1233 -0
  54. lustro_cli/wire/stream-envelope.schema.json +33 -0
  55. lustro_cli/wire/sync.py +80 -0
  56. lustro_cli/wire/work.openapi.json +1188 -0
  57. lustro_cli-0.1.0.dist-info/METADATA +585 -0
  58. lustro_cli-0.1.0.dist-info/RECORD +60 -0
  59. lustro_cli-0.1.0.dist-info/WHEEL +4 -0
  60. lustro_cli-0.1.0.dist-info/entry_points.txt +3 -0
@@ -0,0 +1,689 @@
1
+ {
2
+ "windows": [
3
+ {
4
+ "id": "v1",
5
+ "type": 1,
6
+ "kind": "activity",
7
+ "title": "io.github.twinsen81.lustro.screen.test\/androidx.activity.ComponentActivity",
8
+ "hasWindowFocus": false,
9
+ "focusable": true,
10
+ "visible": true,
11
+ "bounds": {
12
+ "left": 0,
13
+ "top": 0,
14
+ "right": 720,
15
+ "bottom": 1280
16
+ },
17
+ "nodes": [
18
+ {
19
+ "id": "v1",
20
+ "kind": "view",
21
+ "className": "com.android.internal.policy.DecorView",
22
+ "bounds": {
23
+ "left": 0,
24
+ "top": 0,
25
+ "right": 720,
26
+ "bottom": 1280
27
+ },
28
+ "screenBounds": {
29
+ "left": 0,
30
+ "top": 0,
31
+ "right": 720,
32
+ "bottom": 1280
33
+ },
34
+ "visibleBounds": {
35
+ "left": 0,
36
+ "top": 0,
37
+ "right": 720,
38
+ "bottom": 1280
39
+ }
40
+ },
41
+ {
42
+ "id": "v2",
43
+ "parent": "v1",
44
+ "kind": "view",
45
+ "className": "android.widget.LinearLayout",
46
+ "bounds": {
47
+ "left": 0,
48
+ "top": 0,
49
+ "right": 720,
50
+ "bottom": 1280
51
+ },
52
+ "screenBounds": {
53
+ "left": 0,
54
+ "top": 0,
55
+ "right": 720,
56
+ "bottom": 1280
57
+ },
58
+ "visibleBounds": {
59
+ "left": 0,
60
+ "top": 0,
61
+ "right": 720,
62
+ "bottom": 1280
63
+ }
64
+ },
65
+ {
66
+ "id": "v3",
67
+ "parent": "v2",
68
+ "kind": "view",
69
+ "className": "android.widget.FrameLayout",
70
+ "resourceId": "android:id\/content",
71
+ "bounds": {
72
+ "left": 0,
73
+ "top": 0,
74
+ "right": 720,
75
+ "bottom": 1280
76
+ },
77
+ "screenBounds": {
78
+ "left": 0,
79
+ "top": 0,
80
+ "right": 720,
81
+ "bottom": 1280
82
+ },
83
+ "visibleBounds": {
84
+ "left": 0,
85
+ "top": 0,
86
+ "right": 720,
87
+ "bottom": 1280
88
+ }
89
+ },
90
+ {
91
+ "id": "v4",
92
+ "parent": "v3",
93
+ "kind": "view",
94
+ "className": "androidx.compose.ui.platform.ComposeView",
95
+ "bounds": {
96
+ "left": 0,
97
+ "top": 0,
98
+ "right": 200,
99
+ "bottom": 369
100
+ },
101
+ "screenBounds": {
102
+ "left": 0,
103
+ "top": 0,
104
+ "right": 200,
105
+ "bottom": 369
106
+ },
107
+ "visibleBounds": {
108
+ "left": 0,
109
+ "top": 0,
110
+ "right": 200,
111
+ "bottom": 369
112
+ }
113
+ },
114
+ {
115
+ "id": "v5",
116
+ "parent": "v4",
117
+ "kind": "view",
118
+ "className": "androidx.compose.ui.platform.AndroidComposeView",
119
+ "bounds": {
120
+ "left": 0,
121
+ "top": 0,
122
+ "right": 200,
123
+ "bottom": 369
124
+ },
125
+ "screenBounds": {
126
+ "left": 0,
127
+ "top": 0,
128
+ "right": 200,
129
+ "bottom": 369
130
+ },
131
+ "visibleBounds": {
132
+ "left": 0,
133
+ "top": 0,
134
+ "right": 200,
135
+ "bottom": 369
136
+ }
137
+ },
138
+ {
139
+ "id": "c5.1",
140
+ "parent": "v5",
141
+ "kind": "compose",
142
+ "bounds": {
143
+ "left": 0,
144
+ "top": 0,
145
+ "right": 200,
146
+ "bottom": 369
147
+ },
148
+ "screenBounds": {
149
+ "left": 0,
150
+ "top": 0,
151
+ "right": 200,
152
+ "bottom": 369
153
+ },
154
+ "visibleBounds": {
155
+ "left": 0,
156
+ "top": 0,
157
+ "right": 200,
158
+ "bottom": 369
159
+ }
160
+ },
161
+ {
162
+ "id": "c5.4",
163
+ "parent": "c5.1",
164
+ "kind": "compose",
165
+ "testTag": "title",
166
+ "text": [
167
+ "Profile"
168
+ ],
169
+ "bounds": {
170
+ "left": 0,
171
+ "top": 0,
172
+ "right": 81,
173
+ "bottom": 33
174
+ },
175
+ "screenBounds": {
176
+ "left": 0,
177
+ "top": 0,
178
+ "right": 81,
179
+ "bottom": 33
180
+ },
181
+ "visibleBounds": {
182
+ "left": 0,
183
+ "top": 0,
184
+ "right": 81,
185
+ "bottom": 33
186
+ }
187
+ },
188
+ {
189
+ "id": "c5.5",
190
+ "parent": "c5.1",
191
+ "kind": "compose",
192
+ "testTag": "name",
193
+ "editableText": "Ada",
194
+ "bounds": {
195
+ "left": 0,
196
+ "top": 33,
197
+ "right": 200,
198
+ "bottom": 66
199
+ },
200
+ "screenBounds": {
201
+ "left": 0,
202
+ "top": 33,
203
+ "right": 200,
204
+ "bottom": 66
205
+ },
206
+ "visibleBounds": {
207
+ "left": 0,
208
+ "top": 33,
209
+ "right": 200,
210
+ "bottom": 66
211
+ },
212
+ "clickable": true,
213
+ "actions": [
214
+ "OnClick",
215
+ "OnLongClick",
216
+ "SetText",
217
+ "PerformImeAction"
218
+ ]
219
+ },
220
+ {
221
+ "id": "c5.9",
222
+ "parent": "c5.1",
223
+ "kind": "compose",
224
+ "testTag": "secret",
225
+ "editableText": "•••••••",
226
+ "password": true,
227
+ "bounds": {
228
+ "left": 0,
229
+ "top": 66,
230
+ "right": 200,
231
+ "bottom": 99
232
+ },
233
+ "screenBounds": {
234
+ "left": 0,
235
+ "top": 66,
236
+ "right": 200,
237
+ "bottom": 99
238
+ },
239
+ "visibleBounds": {
240
+ "left": 0,
241
+ "top": 66,
242
+ "right": 200,
243
+ "bottom": 99
244
+ },
245
+ "clickable": true,
246
+ "actions": [
247
+ "OnClick",
248
+ "OnLongClick",
249
+ "SetText",
250
+ "PerformImeAction"
251
+ ]
252
+ },
253
+ {
254
+ "id": "c5.13",
255
+ "parent": "c5.1",
256
+ "kind": "compose",
257
+ "testTag": "dark",
258
+ "text": [
259
+ "Dark theme"
260
+ ],
261
+ "role": "Switch",
262
+ "bounds": {
263
+ "left": 0,
264
+ "top": 99,
265
+ "right": 174,
266
+ "bottom": 164
267
+ },
268
+ "screenBounds": {
269
+ "left": 0,
270
+ "top": 99,
271
+ "right": 174,
272
+ "bottom": 164
273
+ },
274
+ "visibleBounds": {
275
+ "left": 0,
276
+ "top": 99,
277
+ "right": 174,
278
+ "bottom": 164
279
+ },
280
+ "toggle": "off",
281
+ "clickable": true,
282
+ "actions": [
283
+ "OnClick"
284
+ ]
285
+ },
286
+ {
287
+ "id": "c5.15",
288
+ "parent": "c5.1",
289
+ "kind": "compose",
290
+ "testTag": "save",
291
+ "text": [
292
+ "Save"
293
+ ],
294
+ "role": "Button",
295
+ "bounds": {
296
+ "left": 0,
297
+ "top": 164,
298
+ "right": 93,
299
+ "bottom": 229
300
+ },
301
+ "screenBounds": {
302
+ "left": 0,
303
+ "top": 164,
304
+ "right": 93,
305
+ "bottom": 229
306
+ },
307
+ "visibleBounds": {
308
+ "left": 0,
309
+ "top": 164,
310
+ "right": 93,
311
+ "bottom": 229
312
+ },
313
+ "clickable": true,
314
+ "actions": [
315
+ "OnClick"
316
+ ]
317
+ },
318
+ {
319
+ "id": "c5.17",
320
+ "parent": "c5.1",
321
+ "kind": "compose",
322
+ "testTag": "avatar",
323
+ "contentDescription": [
324
+ "Avatar"
325
+ ],
326
+ "bounds": {
327
+ "left": 0,
328
+ "top": 229,
329
+ "right": 0,
330
+ "bottom": 249
331
+ },
332
+ "screenBounds": {
333
+ "left": 0,
334
+ "top": 229,
335
+ "right": 0,
336
+ "bottom": 249
337
+ },
338
+ "visibleBounds": null
339
+ },
340
+ {
341
+ "id": "c5.18",
342
+ "parent": "c5.1",
343
+ "kind": "compose",
344
+ "testTag": "list",
345
+ "bounds": {
346
+ "left": 0,
347
+ "top": 249,
348
+ "right": 77,
349
+ "bottom": 369
350
+ },
351
+ "screenBounds": {
352
+ "left": 0,
353
+ "top": 249,
354
+ "right": 77,
355
+ "bottom": 369
356
+ },
357
+ "visibleBounds": {
358
+ "left": 0,
359
+ "top": 249,
360
+ "right": 77,
361
+ "bottom": 369
362
+ },
363
+ "actions": [
364
+ "ScrollBy",
365
+ "ScrollToIndex"
366
+ ],
367
+ "verticalScroll": {
368
+ "value": 0,
369
+ "max": 100,
370
+ "reverse": false,
371
+ "forward": true,
372
+ "backward": false
373
+ },
374
+ "collection": {
375
+ "rows": null,
376
+ "columns": 1
377
+ }
378
+ },
379
+ {
380
+ "id": "c5.20",
381
+ "parent": "c5.18",
382
+ "kind": "compose",
383
+ "testTag": "row 0",
384
+ "text": [
385
+ "Row 0"
386
+ ],
387
+ "bounds": {
388
+ "left": 0,
389
+ "top": 249,
390
+ "right": 77,
391
+ "bottom": 289
392
+ },
393
+ "screenBounds": {
394
+ "left": 0,
395
+ "top": 249,
396
+ "right": 77,
397
+ "bottom": 289
398
+ },
399
+ "visibleBounds": {
400
+ "left": 0,
401
+ "top": 249,
402
+ "right": 77,
403
+ "bottom": 289
404
+ }
405
+ },
406
+ {
407
+ "id": "c5.22",
408
+ "parent": "c5.18",
409
+ "kind": "compose",
410
+ "testTag": "row 1",
411
+ "text": [
412
+ "Row 1"
413
+ ],
414
+ "bounds": {
415
+ "left": 0,
416
+ "top": 289,
417
+ "right": 77,
418
+ "bottom": 329
419
+ },
420
+ "screenBounds": {
421
+ "left": 0,
422
+ "top": 289,
423
+ "right": 77,
424
+ "bottom": 329
425
+ },
426
+ "visibleBounds": {
427
+ "left": 0,
428
+ "top": 289,
429
+ "right": 77,
430
+ "bottom": 329
431
+ }
432
+ },
433
+ {
434
+ "id": "c5.24",
435
+ "parent": "c5.18",
436
+ "kind": "compose",
437
+ "testTag": "row 2",
438
+ "text": [
439
+ "Row 2"
440
+ ],
441
+ "bounds": {
442
+ "left": 0,
443
+ "top": 329,
444
+ "right": 77,
445
+ "bottom": 369
446
+ },
447
+ "screenBounds": {
448
+ "left": 0,
449
+ "top": 329,
450
+ "right": 77,
451
+ "bottom": 369
452
+ },
453
+ "visibleBounds": {
454
+ "left": 0,
455
+ "top": 329,
456
+ "right": 77,
457
+ "bottom": 369
458
+ }
459
+ }
460
+ ]
461
+ },
462
+ {
463
+ "id": "v6",
464
+ "type": 2,
465
+ "kind": "dialog",
466
+ "title": "io.github.twinsen81.lustro.screen.test\/androidx.activity.ComponentActivity",
467
+ "hasWindowFocus": false,
468
+ "focusable": true,
469
+ "visible": true,
470
+ "bounds": {
471
+ "left": 0,
472
+ "top": 0,
473
+ "right": 224,
474
+ "bottom": 33
475
+ },
476
+ "nodes": [
477
+ {
478
+ "id": "v6",
479
+ "kind": "view",
480
+ "className": "com.android.internal.policy.DecorView",
481
+ "bounds": {
482
+ "left": 0,
483
+ "top": 0,
484
+ "right": 224,
485
+ "bottom": 33
486
+ },
487
+ "screenBounds": {
488
+ "left": 0,
489
+ "top": 0,
490
+ "right": 224,
491
+ "bottom": 33
492
+ },
493
+ "visibleBounds": {
494
+ "left": 0,
495
+ "top": 0,
496
+ "right": 224,
497
+ "bottom": 33
498
+ }
499
+ },
500
+ {
501
+ "id": "v7",
502
+ "parent": "v6",
503
+ "kind": "view",
504
+ "className": "android.widget.FrameLayout",
505
+ "bounds": {
506
+ "left": 0,
507
+ "top": 0,
508
+ "right": 224,
509
+ "bottom": 33
510
+ },
511
+ "screenBounds": {
512
+ "left": 0,
513
+ "top": 0,
514
+ "right": 224,
515
+ "bottom": 33
516
+ },
517
+ "visibleBounds": {
518
+ "left": 0,
519
+ "top": 0,
520
+ "right": 224,
521
+ "bottom": 33
522
+ }
523
+ },
524
+ {
525
+ "id": "v8",
526
+ "parent": "v7",
527
+ "kind": "view",
528
+ "className": "android.widget.FrameLayout",
529
+ "resourceId": "android:id\/content",
530
+ "bounds": {
531
+ "left": 0,
532
+ "top": 0,
533
+ "right": 224,
534
+ "bottom": 33
535
+ },
536
+ "screenBounds": {
537
+ "left": 0,
538
+ "top": 0,
539
+ "right": 224,
540
+ "bottom": 33
541
+ },
542
+ "visibleBounds": {
543
+ "left": 0,
544
+ "top": 0,
545
+ "right": 224,
546
+ "bottom": 33
547
+ }
548
+ },
549
+ {
550
+ "id": "v9",
551
+ "parent": "v8",
552
+ "kind": "view",
553
+ "className": "androidx.compose.ui.window.DialogLayout",
554
+ "bounds": {
555
+ "left": 0,
556
+ "top": 0,
557
+ "right": 224,
558
+ "bottom": 33
559
+ },
560
+ "screenBounds": {
561
+ "left": 0,
562
+ "top": 0,
563
+ "right": 224,
564
+ "bottom": 33
565
+ },
566
+ "visibleBounds": {
567
+ "left": 0,
568
+ "top": 0,
569
+ "right": 224,
570
+ "bottom": 33
571
+ }
572
+ },
573
+ {
574
+ "id": "v10",
575
+ "parent": "v9",
576
+ "kind": "view",
577
+ "className": "androidx.compose.ui.platform.AndroidComposeView",
578
+ "bounds": {
579
+ "left": 0,
580
+ "top": 0,
581
+ "right": 224,
582
+ "bottom": 33
583
+ },
584
+ "screenBounds": {
585
+ "left": 0,
586
+ "top": 0,
587
+ "right": 224,
588
+ "bottom": 33
589
+ },
590
+ "visibleBounds": {
591
+ "left": 0,
592
+ "top": 0,
593
+ "right": 224,
594
+ "bottom": 33
595
+ }
596
+ },
597
+ {
598
+ "id": "c10.2",
599
+ "parent": "v10",
600
+ "kind": "compose",
601
+ "bounds": {
602
+ "left": 0,
603
+ "top": 0,
604
+ "right": 224,
605
+ "bottom": 33
606
+ },
607
+ "screenBounds": {
608
+ "left": 0,
609
+ "top": 0,
610
+ "right": 224,
611
+ "bottom": 33
612
+ },
613
+ "visibleBounds": {
614
+ "left": 0,
615
+ "top": 0,
616
+ "right": 224,
617
+ "bottom": 33
618
+ }
619
+ },
620
+ {
621
+ "id": "c10.25",
622
+ "parent": "c10.2",
623
+ "kind": "compose",
624
+ "bounds": {
625
+ "left": 0,
626
+ "top": 0,
627
+ "right": 224,
628
+ "bottom": 33
629
+ },
630
+ "screenBounds": {
631
+ "left": 0,
632
+ "top": 0,
633
+ "right": 224,
634
+ "bottom": 33
635
+ },
636
+ "visibleBounds": {
637
+ "left": 0,
638
+ "top": 0,
639
+ "right": 224,
640
+ "bottom": 33
641
+ }
642
+ },
643
+ {
644
+ "id": "c10.26",
645
+ "parent": "c10.25",
646
+ "kind": "compose",
647
+ "testTag": "confirm",
648
+ "text": [
649
+ "Delete the profile?"
650
+ ],
651
+ "role": "Button",
652
+ "bounds": {
653
+ "left": 0,
654
+ "top": 0,
655
+ "right": 224,
656
+ "bottom": 33
657
+ },
658
+ "screenBounds": {
659
+ "left": 0,
660
+ "top": 0,
661
+ "right": 224,
662
+ "bottom": 33
663
+ },
664
+ "visibleBounds": {
665
+ "left": 0,
666
+ "top": 0,
667
+ "right": 224,
668
+ "bottom": 33
669
+ },
670
+ "clickable": true,
671
+ "actions": [
672
+ "OnClick"
673
+ ]
674
+ }
675
+ ]
676
+ }
677
+ ],
678
+ "merged": true,
679
+ "density": 2,
680
+ "compose": true,
681
+ "windowSource": "inspector",
682
+ "context": {
683
+ "route": "profile",
684
+ "stack": [
685
+ "home",
686
+ "profile"
687
+ ]
688
+ }
689
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "transactionId": "tx_5c1f9a02",
3
+ "sender": "API",
4
+ "url": "https://api.example.com/v1/me",
5
+ "statusCode": 200,
6
+ "ok": true
7
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "items": [
3
+ { "name": "API", "baseUrl": "https://api.example.com/v1" },
4
+ { "name": "Any host", "baseUrl": null }
5
+ ]
6
+ }