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,44 @@
1
+ {
2
+ "items": [
3
+ {
4
+ "id": "orders-500",
5
+ "name": "Orders boom",
6
+ "urlPattern": "/v1/orders",
7
+ "method": "GET",
8
+ "statusCode": 500,
9
+ "responseHeaders": {
10
+ "Content-Type": "application/json"
11
+ },
12
+ "responseBody": "{\"error\":\"boom\"}",
13
+ "failure": null,
14
+ "enabled": true,
15
+ "hitCount": 3
16
+ },
17
+ {
18
+ "id": "users-regex",
19
+ "name": "Users empty",
20
+ "urlPattern": "regex:/v1/users/\\d+",
21
+ "method": null,
22
+ "statusCode": 200,
23
+ "responseHeaders": {
24
+ "Content-Type": "application/json"
25
+ },
26
+ "responseBody": "{\"users\":[]}",
27
+ "failure": null,
28
+ "enabled": false,
29
+ "hitCount": 0
30
+ },
31
+ {
32
+ "id": "feed-offline",
33
+ "name": "Feed offline",
34
+ "urlPattern": "/v1/feed",
35
+ "method": null,
36
+ "statusCode": 200,
37
+ "responseHeaders": {},
38
+ "responseBody": "",
39
+ "failure": "unknownHost",
40
+ "enabled": true,
41
+ "hitCount": 1
42
+ }
43
+ ]
44
+ }
@@ -0,0 +1,596 @@
1
+ {
2
+ "windows": [
3
+ {
4
+ "id": "v11",
5
+ "type": 1,
6
+ "kind": "activity",
7
+ "title": "io.github.twinsen81.lustro.screen.test\/android.app.Activity",
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": "v11",
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": "v12",
43
+ "parent": "v11",
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": "v13",
67
+ "parent": "v12",
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": "v14",
92
+ "parent": "v13",
93
+ "kind": "view",
94
+ "className": "android.widget.LinearLayout",
95
+ "bounds": {
96
+ "left": 0,
97
+ "top": 0,
98
+ "right": 720,
99
+ "bottom": 1280
100
+ },
101
+ "screenBounds": {
102
+ "left": 0,
103
+ "top": 0,
104
+ "right": 720,
105
+ "bottom": 1280
106
+ },
107
+ "visibleBounds": {
108
+ "left": 0,
109
+ "top": 0,
110
+ "right": 720,
111
+ "bottom": 1280
112
+ }
113
+ },
114
+ {
115
+ "id": "v15",
116
+ "parent": "v14",
117
+ "kind": "view",
118
+ "className": "android.widget.TextView",
119
+ "testTag": "title",
120
+ "text": [
121
+ "Settings"
122
+ ],
123
+ "bounds": {
124
+ "left": 0,
125
+ "top": 0,
126
+ "right": 720,
127
+ "bottom": 38
128
+ },
129
+ "screenBounds": {
130
+ "left": 0,
131
+ "top": 0,
132
+ "right": 720,
133
+ "bottom": 38
134
+ },
135
+ "visibleBounds": {
136
+ "left": 0,
137
+ "top": 0,
138
+ "right": 720,
139
+ "bottom": 38
140
+ }
141
+ },
142
+ {
143
+ "id": "v16",
144
+ "parent": "v14",
145
+ "kind": "view",
146
+ "className": "android.widget.Button",
147
+ "text": [
148
+ "Go"
149
+ ],
150
+ "contentDescription": [
151
+ "Go on"
152
+ ],
153
+ "bounds": {
154
+ "left": 0,
155
+ "top": 38,
156
+ "right": 720,
157
+ "bottom": 134
158
+ },
159
+ "screenBounds": {
160
+ "left": 0,
161
+ "top": 38,
162
+ "right": 720,
163
+ "bottom": 134
164
+ },
165
+ "visibleBounds": {
166
+ "left": 0,
167
+ "top": 38,
168
+ "right": 720,
169
+ "bottom": 134
170
+ },
171
+ "clickable": true,
172
+ "actions": [
173
+ "OnClick"
174
+ ]
175
+ },
176
+ {
177
+ "id": "v17",
178
+ "parent": "v14",
179
+ "kind": "view",
180
+ "className": "android.widget.EditText",
181
+ "editableText": "••••••",
182
+ "password": true,
183
+ "bounds": {
184
+ "left": 0,
185
+ "top": 134,
186
+ "right": 720,
187
+ "bottom": 225
188
+ },
189
+ "screenBounds": {
190
+ "left": 0,
191
+ "top": 134,
192
+ "right": 720,
193
+ "bottom": 225
194
+ },
195
+ "visibleBounds": {
196
+ "left": 0,
197
+ "top": 134,
198
+ "right": 720,
199
+ "bottom": 225
200
+ },
201
+ "clickable": true,
202
+ "actions": [
203
+ "OnClick",
204
+ "OnLongClick",
205
+ "SetText"
206
+ ]
207
+ },
208
+ {
209
+ "id": "v18",
210
+ "parent": "v14",
211
+ "kind": "view",
212
+ "className": "android.widget.CheckBox",
213
+ "text": [
214
+ "Remember me"
215
+ ],
216
+ "bounds": {
217
+ "left": 0,
218
+ "top": 225,
219
+ "right": 720,
220
+ "bottom": 289
221
+ },
222
+ "screenBounds": {
223
+ "left": 0,
224
+ "top": 225,
225
+ "right": 720,
226
+ "bottom": 289
227
+ },
228
+ "visibleBounds": {
229
+ "left": 0,
230
+ "top": 225,
231
+ "right": 720,
232
+ "bottom": 289
233
+ },
234
+ "toggle": "on",
235
+ "clickable": true,
236
+ "actions": [
237
+ "OnClick"
238
+ ]
239
+ },
240
+ {
241
+ "id": "v19",
242
+ "parent": "v14",
243
+ "kind": "view",
244
+ "className": "android.widget.ScrollView",
245
+ "bounds": {
246
+ "left": 0,
247
+ "top": 289,
248
+ "right": 720,
249
+ "bottom": 489
250
+ },
251
+ "screenBounds": {
252
+ "left": 0,
253
+ "top": 289,
254
+ "right": 720,
255
+ "bottom": 489
256
+ },
257
+ "visibleBounds": {
258
+ "left": 0,
259
+ "top": 289,
260
+ "right": 720,
261
+ "bottom": 489
262
+ },
263
+ "actions": [
264
+ "ScrollBy"
265
+ ],
266
+ "verticalScroll": {
267
+ "value": 0,
268
+ "max": 280,
269
+ "reverse": false,
270
+ "forward": true,
271
+ "backward": false
272
+ }
273
+ },
274
+ {
275
+ "id": "v20",
276
+ "parent": "v19",
277
+ "kind": "view",
278
+ "className": "android.widget.LinearLayout",
279
+ "bounds": {
280
+ "left": 0,
281
+ "top": 289,
282
+ "right": 720,
283
+ "bottom": 769
284
+ },
285
+ "screenBounds": {
286
+ "left": 0,
287
+ "top": 289,
288
+ "right": 720,
289
+ "bottom": 769
290
+ },
291
+ "visibleBounds": {
292
+ "left": 0,
293
+ "top": 289,
294
+ "right": 720,
295
+ "bottom": 489
296
+ },
297
+ "clipped": true
298
+ },
299
+ {
300
+ "id": "v21",
301
+ "parent": "v20",
302
+ "kind": "view",
303
+ "className": "android.widget.TextView",
304
+ "text": [
305
+ "Item 0"
306
+ ],
307
+ "bounds": {
308
+ "left": 0,
309
+ "top": 289,
310
+ "right": 720,
311
+ "bottom": 329
312
+ },
313
+ "screenBounds": {
314
+ "left": 0,
315
+ "top": 289,
316
+ "right": 720,
317
+ "bottom": 329
318
+ },
319
+ "visibleBounds": {
320
+ "left": 0,
321
+ "top": 289,
322
+ "right": 720,
323
+ "bottom": 329
324
+ }
325
+ },
326
+ {
327
+ "id": "v22",
328
+ "parent": "v20",
329
+ "kind": "view",
330
+ "className": "android.widget.TextView",
331
+ "text": [
332
+ "Item 1"
333
+ ],
334
+ "bounds": {
335
+ "left": 0,
336
+ "top": 329,
337
+ "right": 720,
338
+ "bottom": 369
339
+ },
340
+ "screenBounds": {
341
+ "left": 0,
342
+ "top": 329,
343
+ "right": 720,
344
+ "bottom": 369
345
+ },
346
+ "visibleBounds": {
347
+ "left": 0,
348
+ "top": 329,
349
+ "right": 720,
350
+ "bottom": 369
351
+ }
352
+ },
353
+ {
354
+ "id": "v23",
355
+ "parent": "v20",
356
+ "kind": "view",
357
+ "className": "android.widget.TextView",
358
+ "text": [
359
+ "Item 2"
360
+ ],
361
+ "bounds": {
362
+ "left": 0,
363
+ "top": 369,
364
+ "right": 720,
365
+ "bottom": 409
366
+ },
367
+ "screenBounds": {
368
+ "left": 0,
369
+ "top": 369,
370
+ "right": 720,
371
+ "bottom": 409
372
+ },
373
+ "visibleBounds": {
374
+ "left": 0,
375
+ "top": 369,
376
+ "right": 720,
377
+ "bottom": 409
378
+ }
379
+ },
380
+ {
381
+ "id": "v24",
382
+ "parent": "v20",
383
+ "kind": "view",
384
+ "className": "android.widget.TextView",
385
+ "text": [
386
+ "Item 3"
387
+ ],
388
+ "bounds": {
389
+ "left": 0,
390
+ "top": 409,
391
+ "right": 720,
392
+ "bottom": 449
393
+ },
394
+ "screenBounds": {
395
+ "left": 0,
396
+ "top": 409,
397
+ "right": 720,
398
+ "bottom": 449
399
+ },
400
+ "visibleBounds": {
401
+ "left": 0,
402
+ "top": 409,
403
+ "right": 720,
404
+ "bottom": 449
405
+ }
406
+ },
407
+ {
408
+ "id": "v25",
409
+ "parent": "v20",
410
+ "kind": "view",
411
+ "className": "android.widget.TextView",
412
+ "text": [
413
+ "Item 4"
414
+ ],
415
+ "bounds": {
416
+ "left": 0,
417
+ "top": 449,
418
+ "right": 720,
419
+ "bottom": 489
420
+ },
421
+ "screenBounds": {
422
+ "left": 0,
423
+ "top": 449,
424
+ "right": 720,
425
+ "bottom": 489
426
+ },
427
+ "visibleBounds": {
428
+ "left": 0,
429
+ "top": 449,
430
+ "right": 720,
431
+ "bottom": 489
432
+ }
433
+ },
434
+ {
435
+ "id": "v26",
436
+ "parent": "v20",
437
+ "kind": "view",
438
+ "className": "android.widget.TextView",
439
+ "text": [
440
+ "Item 5"
441
+ ],
442
+ "bounds": {
443
+ "left": 0,
444
+ "top": 489,
445
+ "right": 720,
446
+ "bottom": 529
447
+ },
448
+ "screenBounds": {
449
+ "left": 0,
450
+ "top": 489,
451
+ "right": 720,
452
+ "bottom": 529
453
+ },
454
+ "visibleBounds": null
455
+ },
456
+ {
457
+ "id": "v27",
458
+ "parent": "v20",
459
+ "kind": "view",
460
+ "className": "android.widget.TextView",
461
+ "text": [
462
+ "Item 6"
463
+ ],
464
+ "bounds": {
465
+ "left": 0,
466
+ "top": 529,
467
+ "right": 720,
468
+ "bottom": 569
469
+ },
470
+ "screenBounds": {
471
+ "left": 0,
472
+ "top": 529,
473
+ "right": 720,
474
+ "bottom": 569
475
+ },
476
+ "visibleBounds": null
477
+ },
478
+ {
479
+ "id": "v28",
480
+ "parent": "v20",
481
+ "kind": "view",
482
+ "className": "android.widget.TextView",
483
+ "text": [
484
+ "Item 7"
485
+ ],
486
+ "bounds": {
487
+ "left": 0,
488
+ "top": 569,
489
+ "right": 720,
490
+ "bottom": 609
491
+ },
492
+ "screenBounds": {
493
+ "left": 0,
494
+ "top": 569,
495
+ "right": 720,
496
+ "bottom": 609
497
+ },
498
+ "visibleBounds": null
499
+ },
500
+ {
501
+ "id": "v29",
502
+ "parent": "v20",
503
+ "kind": "view",
504
+ "className": "android.widget.TextView",
505
+ "text": [
506
+ "Item 8"
507
+ ],
508
+ "bounds": {
509
+ "left": 0,
510
+ "top": 609,
511
+ "right": 720,
512
+ "bottom": 649
513
+ },
514
+ "screenBounds": {
515
+ "left": 0,
516
+ "top": 609,
517
+ "right": 720,
518
+ "bottom": 649
519
+ },
520
+ "visibleBounds": null
521
+ },
522
+ {
523
+ "id": "v30",
524
+ "parent": "v20",
525
+ "kind": "view",
526
+ "className": "android.widget.TextView",
527
+ "text": [
528
+ "Item 9"
529
+ ],
530
+ "bounds": {
531
+ "left": 0,
532
+ "top": 649,
533
+ "right": 720,
534
+ "bottom": 689
535
+ },
536
+ "screenBounds": {
537
+ "left": 0,
538
+ "top": 649,
539
+ "right": 720,
540
+ "bottom": 689
541
+ },
542
+ "visibleBounds": null
543
+ },
544
+ {
545
+ "id": "v31",
546
+ "parent": "v20",
547
+ "kind": "view",
548
+ "className": "android.widget.TextView",
549
+ "text": [
550
+ "Item 10"
551
+ ],
552
+ "bounds": {
553
+ "left": 0,
554
+ "top": 689,
555
+ "right": 720,
556
+ "bottom": 729
557
+ },
558
+ "screenBounds": {
559
+ "left": 0,
560
+ "top": 689,
561
+ "right": 720,
562
+ "bottom": 729
563
+ },
564
+ "visibleBounds": null
565
+ },
566
+ {
567
+ "id": "v32",
568
+ "parent": "v20",
569
+ "kind": "view",
570
+ "className": "android.widget.TextView",
571
+ "text": [
572
+ "Item 11"
573
+ ],
574
+ "bounds": {
575
+ "left": 0,
576
+ "top": 729,
577
+ "right": 720,
578
+ "bottom": 769
579
+ },
580
+ "screenBounds": {
581
+ "left": 0,
582
+ "top": 729,
583
+ "right": 720,
584
+ "bottom": 769
585
+ },
586
+ "visibleBounds": null
587
+ }
588
+ ]
589
+ }
590
+ ],
591
+ "merged": true,
592
+ "density": 2,
593
+ "compose": true,
594
+ "windowSource": "inspector",
595
+ "context": null
596
+ }