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,622 @@
1
+ {
2
+ "openapi": "3.1.0",
3
+ "info": {
4
+ "title": "Lustro Logs debug tab",
5
+ "version": "1.1",
6
+ "description": "The app's own logcat (logcat -b main -b system -b crash -v threadtime -v UTC --pid=<the app's pid>), from the start of its process: a live tail, filters, and a plain-text export. The tab reads logcat while Lustro is started, also in the background, and holds the newest lines in a buffer of a fixed size on the app's heap. Log lines are not redacted. All routes are token-authenticated (Bearer header or HttpOnly cookie) and live under /api/v1/logs. Errors use the shared error envelope."
7
+ },
8
+ "servers": [
9
+ {
10
+ "url": "/",
11
+ "description": "The Lustro debug server (loopback by default)."
12
+ }
13
+ ],
14
+ "paths": {
15
+ "/api/v1/logs/entries": {
16
+ "get": {
17
+ "operationId": "listLogEntries",
18
+ "summary": "Poll the log: the lines after the cursor, filtered.",
19
+ "description": "A stream envelope. The first poll (no cursor, or one from before a clear) gets status=reset with the last lines that pass the filters, at most limit of them. A poll with the returned cursor gets status=delta with only the lines after it, oldest first, or status=unchanged. When more than limit lines are new, the delta has the oldest limit of them, and the next poll goes on from there. dropped counts the places in the log that it evicted before this client got them. The filters leave lines out of items; the cursor still moves past them. A line that repeats the line before folds into it while compact is on: it comes again in a later poll with the same seq and a larger count, and replaces the earlier copy. state carries the reader's status and the paused and compact flags with every response.",
20
+ "parameters": [
21
+ {
22
+ "name": "cursor",
23
+ "in": "query",
24
+ "required": false,
25
+ "schema": {
26
+ "type": "string"
27
+ },
28
+ "description": "Opaque cursor from the previous response. Omit on the first poll."
29
+ },
30
+ {
31
+ "name": "level",
32
+ "in": "query",
33
+ "required": false,
34
+ "schema": {
35
+ "type": "string",
36
+ "enum": [
37
+ "V",
38
+ "D",
39
+ "I",
40
+ "W",
41
+ "E",
42
+ "F"
43
+ ]
44
+ },
45
+ "description": "The lowest level: W gives W, E, and F. A lowercase letter works too. 400 with field level for any other value."
46
+ },
47
+ {
48
+ "name": "tag",
49
+ "in": "query",
50
+ "required": false,
51
+ "schema": {
52
+ "type": "string",
53
+ "maxLength": 200
54
+ },
55
+ "description": "A Java regular expression found in the tag, case-sensitive: ^OkHttp$ for one tag, (?i)sync to ignore case. 400 with field tag when it is longer than 200 characters or doesn't compile."
56
+ },
57
+ {
58
+ "name": "q",
59
+ "in": "query",
60
+ "required": false,
61
+ "schema": {
62
+ "type": "string"
63
+ },
64
+ "description": "Text that the message contains, ignoring case."
65
+ },
66
+ {
67
+ "name": "mq",
68
+ "in": "query",
69
+ "required": false,
70
+ "schema": {
71
+ "type": "string",
72
+ "maxLength": 200
73
+ },
74
+ "description": "A Java regular expression found in the message, case-sensitive. 400 with field mq when it is longer than 200 characters or doesn't compile. The filters check the time between lines and stop with a 400 after 5 s. One match can't be stopped, so a regex that backtracks a lot, such as (a+)+$, can hold the request for long: keep tag and mq simple."
75
+ },
76
+ {
77
+ "name": "from",
78
+ "in": "query",
79
+ "required": false,
80
+ "schema": {
81
+ "type": "integer",
82
+ "format": "int64"
83
+ },
84
+ "description": "The start of a time range, in epoch milliseconds, included: only the lines at or after it. A repeated line counts from its first time to its last (at to lastAt). 400 with field from when it is not a whole number, or when it is after to."
85
+ },
86
+ {
87
+ "name": "to",
88
+ "in": "query",
89
+ "required": false,
90
+ "schema": {
91
+ "type": "integer",
92
+ "format": "int64"
93
+ },
94
+ "description": "The end of a time range, in epoch milliseconds, included: only the lines at or before it, such as the lines of one run of a worker. 400 with field to when it is not a whole number."
95
+ },
96
+ {
97
+ "name": "limit",
98
+ "in": "query",
99
+ "required": false,
100
+ "schema": {
101
+ "type": "integer",
102
+ "format": "int32",
103
+ "minimum": 1,
104
+ "maximum": 5000,
105
+ "default": 500
106
+ },
107
+ "description": "The most lines in one response. 400 when it is not a whole number from 1 to 5000."
108
+ }
109
+ ],
110
+ "responses": {
111
+ "200": {
112
+ "description": "Stream envelope.",
113
+ "content": {
114
+ "application/json": {
115
+ "schema": {
116
+ "$ref": "#/components/schemas/LogStreamEnvelope"
117
+ }
118
+ }
119
+ }
120
+ },
121
+ "400": {
122
+ "$ref": "#/components/responses/Error"
123
+ },
124
+ "401": {
125
+ "$ref": "#/components/responses/Error"
126
+ },
127
+ "403": {
128
+ "$ref": "#/components/responses/Error"
129
+ },
130
+ "413": {
131
+ "$ref": "#/components/responses/Error"
132
+ },
133
+ "503": {
134
+ "$ref": "#/components/responses/Error"
135
+ }
136
+ }
137
+ }
138
+ },
139
+ "/api/v1/logs/text": {
140
+ "get": {
141
+ "operationId": "exportLogText",
142
+ "summary": "The held lines as logcat's threadtime text, for a bug report or a file.",
143
+ "description": "Every held line that passes the filters, oldest first, one per line: MM-dd HH:mm:ss.SSS PID TID L TAG: message, in the device's time zone. A repeated line prints once, with [×N] at its end. A message with line breaks, which only a line that the app appended has, prints each of its lines with the prefix. With a cursor from entries, only the lines after it. The response gives no cursor.",
144
+ "parameters": [
145
+ {
146
+ "name": "cursor",
147
+ "in": "query",
148
+ "required": false,
149
+ "schema": {
150
+ "type": "string"
151
+ },
152
+ "description": "Opaque cursor from the previous response. Omit on the first poll."
153
+ },
154
+ {
155
+ "name": "level",
156
+ "in": "query",
157
+ "required": false,
158
+ "schema": {
159
+ "type": "string",
160
+ "enum": [
161
+ "V",
162
+ "D",
163
+ "I",
164
+ "W",
165
+ "E",
166
+ "F"
167
+ ]
168
+ },
169
+ "description": "The lowest level: W gives W, E, and F. A lowercase letter works too. 400 with field level for any other value."
170
+ },
171
+ {
172
+ "name": "tag",
173
+ "in": "query",
174
+ "required": false,
175
+ "schema": {
176
+ "type": "string",
177
+ "maxLength": 200
178
+ },
179
+ "description": "A Java regular expression found in the tag, case-sensitive: ^OkHttp$ for one tag, (?i)sync to ignore case. 400 with field tag when it is longer than 200 characters or doesn't compile."
180
+ },
181
+ {
182
+ "name": "q",
183
+ "in": "query",
184
+ "required": false,
185
+ "schema": {
186
+ "type": "string"
187
+ },
188
+ "description": "Text that the message contains, ignoring case."
189
+ },
190
+ {
191
+ "name": "mq",
192
+ "in": "query",
193
+ "required": false,
194
+ "schema": {
195
+ "type": "string",
196
+ "maxLength": 200
197
+ },
198
+ "description": "A Java regular expression found in the message, case-sensitive. 400 with field mq when it is longer than 200 characters or doesn't compile. The filters check the time between lines and stop with a 400 after 5 s. One match can't be stopped, so a regex that backtracks a lot, such as (a+)+$, can hold the request for long: keep tag and mq simple."
199
+ },
200
+ {
201
+ "name": "from",
202
+ "in": "query",
203
+ "required": false,
204
+ "schema": {
205
+ "type": "integer",
206
+ "format": "int64"
207
+ },
208
+ "description": "The start of a time range, in epoch milliseconds, included: only the lines at or after it. A repeated line counts from its first time to its last (at to lastAt). 400 with field from when it is not a whole number, or when it is after to."
209
+ },
210
+ {
211
+ "name": "to",
212
+ "in": "query",
213
+ "required": false,
214
+ "schema": {
215
+ "type": "integer",
216
+ "format": "int64"
217
+ },
218
+ "description": "The end of a time range, in epoch milliseconds, included: only the lines at or before it, such as the lines of one run of a worker. 400 with field to when it is not a whole number."
219
+ },
220
+ {
221
+ "name": "limit",
222
+ "in": "query",
223
+ "required": false,
224
+ "schema": {
225
+ "type": "integer",
226
+ "format": "int32",
227
+ "minimum": 1
228
+ },
229
+ "description": "Only the last limit lines. Without it, every held line that passes the filters. 400 when it is not a whole number of 1 or more."
230
+ }
231
+ ],
232
+ "responses": {
233
+ "200": {
234
+ "description": "The lines.",
235
+ "content": {
236
+ "text/plain": {
237
+ "schema": {
238
+ "type": "string"
239
+ }
240
+ }
241
+ }
242
+ },
243
+ "400": {
244
+ "$ref": "#/components/responses/Error"
245
+ },
246
+ "401": {
247
+ "$ref": "#/components/responses/Error"
248
+ },
249
+ "403": {
250
+ "$ref": "#/components/responses/Error"
251
+ },
252
+ "413": {
253
+ "$ref": "#/components/responses/Error"
254
+ },
255
+ "503": {
256
+ "$ref": "#/components/responses/Error"
257
+ }
258
+ }
259
+ }
260
+ },
261
+ "/api/v1/logs/clear": {
262
+ "post": {
263
+ "operationId": "clearLog",
264
+ "summary": "Empty the buffer, and get the cursor of the empty log.",
265
+ "description": "The log starts again, so a cursor from before the clear gets a reset, not a dropped count. The returned cursor gets only the lines after the clear. logcat's own buffer stays as it is.",
266
+ "responses": {
267
+ "200": {
268
+ "description": "The log is empty.",
269
+ "content": {
270
+ "application/json": {
271
+ "schema": {
272
+ "type": "object",
273
+ "required": [
274
+ "status",
275
+ "cursor"
276
+ ],
277
+ "properties": {
278
+ "status": {
279
+ "const": "ok"
280
+ },
281
+ "cursor": {
282
+ "type": "string",
283
+ "description": "The cursor to poll entries with next."
284
+ }
285
+ }
286
+ }
287
+ }
288
+ }
289
+ },
290
+ "401": {
291
+ "$ref": "#/components/responses/Error"
292
+ },
293
+ "403": {
294
+ "$ref": "#/components/responses/Error"
295
+ },
296
+ "413": {
297
+ "$ref": "#/components/responses/Error"
298
+ },
299
+ "503": {
300
+ "$ref": "#/components/responses/Error"
301
+ }
302
+ }
303
+ }
304
+ },
305
+ "/api/v1/logs/pause": {
306
+ "post": {
307
+ "operationId": "pauseLog",
308
+ "summary": "Pause or resume the capture.",
309
+ "description": "While paused, the reader goes on reading logcat, so logcat never blocks, and drops the lines. Resume does not bring them back.",
310
+ "requestBody": {
311
+ "required": false,
312
+ "description": "{\"paused\": true} or false sets it. Without a body, or without the key, it toggles.",
313
+ "content": {
314
+ "application/json": {
315
+ "schema": {
316
+ "type": "object",
317
+ "properties": {
318
+ "paused": {
319
+ "type": "boolean",
320
+ "description": "true pauses the capture; false resumes it."
321
+ }
322
+ }
323
+ }
324
+ }
325
+ }
326
+ },
327
+ "responses": {
328
+ "200": {
329
+ "description": "The new value.",
330
+ "content": {
331
+ "application/json": {
332
+ "schema": {
333
+ "type": "object",
334
+ "required": [
335
+ "status",
336
+ "paused"
337
+ ],
338
+ "properties": {
339
+ "status": {
340
+ "const": "ok"
341
+ },
342
+ "paused": {
343
+ "type": "boolean",
344
+ "description": "Whether the capture is paused."
345
+ }
346
+ }
347
+ }
348
+ }
349
+ }
350
+ },
351
+ "400": {
352
+ "$ref": "#/components/responses/Error"
353
+ },
354
+ "401": {
355
+ "$ref": "#/components/responses/Error"
356
+ },
357
+ "403": {
358
+ "$ref": "#/components/responses/Error"
359
+ },
360
+ "413": {
361
+ "$ref": "#/components/responses/Error"
362
+ },
363
+ "503": {
364
+ "$ref": "#/components/responses/Error"
365
+ }
366
+ }
367
+ }
368
+ },
369
+ "/api/v1/logs/compact": {
370
+ "post": {
371
+ "operationId": "setLogCompact",
372
+ "summary": "Fold repeated lines into a count, or keep each one.",
373
+ "description": "On by default. It applies to the lines that come after it: a line folds into the one before when its level, tag, pid, tid, and message are the same.",
374
+ "requestBody": {
375
+ "required": false,
376
+ "description": "{\"compact\": true} or false sets it. Without a body, or without the key, it toggles.",
377
+ "content": {
378
+ "application/json": {
379
+ "schema": {
380
+ "type": "object",
381
+ "properties": {
382
+ "compact": {
383
+ "type": "boolean",
384
+ "description": "true folds repeated lines; false keeps each one."
385
+ }
386
+ }
387
+ }
388
+ }
389
+ }
390
+ },
391
+ "responses": {
392
+ "200": {
393
+ "description": "The new value.",
394
+ "content": {
395
+ "application/json": {
396
+ "schema": {
397
+ "type": "object",
398
+ "required": [
399
+ "status",
400
+ "compact"
401
+ ],
402
+ "properties": {
403
+ "status": {
404
+ "const": "ok"
405
+ },
406
+ "compact": {
407
+ "type": "boolean",
408
+ "description": "Whether repeated lines fold."
409
+ }
410
+ }
411
+ }
412
+ }
413
+ }
414
+ },
415
+ "400": {
416
+ "$ref": "#/components/responses/Error"
417
+ },
418
+ "401": {
419
+ "$ref": "#/components/responses/Error"
420
+ },
421
+ "403": {
422
+ "$ref": "#/components/responses/Error"
423
+ },
424
+ "413": {
425
+ "$ref": "#/components/responses/Error"
426
+ },
427
+ "503": {
428
+ "$ref": "#/components/responses/Error"
429
+ }
430
+ }
431
+ }
432
+ }
433
+ },
434
+ "components": {
435
+ "responses": {
436
+ "Error": {
437
+ "description": "Error envelope.",
438
+ "content": {
439
+ "application/json": {
440
+ "schema": {
441
+ "$ref": "#/components/schemas/ErrorEnvelope"
442
+ }
443
+ }
444
+ }
445
+ }
446
+ },
447
+ "schemas": {
448
+ "ErrorEnvelope": {
449
+ "type": "object",
450
+ "required": [
451
+ "error",
452
+ "message"
453
+ ],
454
+ "properties": {
455
+ "error": {
456
+ "type": "string",
457
+ "enum": [
458
+ "bad_request",
459
+ "unauthorized",
460
+ "forbidden",
461
+ "not_found",
462
+ "method_not_allowed",
463
+ "conflict",
464
+ "payload_too_large",
465
+ "unprocessable_entity",
466
+ "too_many_requests",
467
+ "internal_error",
468
+ "unavailable",
469
+ "timeout",
470
+ "error"
471
+ ],
472
+ "description": "Machine error type, e.g. bad_request, not_found, timeout."
473
+ },
474
+ "message": {
475
+ "type": "string"
476
+ },
477
+ "code": {
478
+ "type": "string"
479
+ },
480
+ "field": {
481
+ "type": "string"
482
+ },
483
+ "hint": {
484
+ "type": "string"
485
+ }
486
+ },
487
+ "additionalProperties": false
488
+ },
489
+ "LogStreamEnvelope": {
490
+ "type": "object",
491
+ "required": [
492
+ "cursor",
493
+ "status",
494
+ "state"
495
+ ],
496
+ "properties": {
497
+ "cursor": {
498
+ "type": "string",
499
+ "description": "Opaque cursor token."
500
+ },
501
+ "status": {
502
+ "type": "string",
503
+ "enum": [
504
+ "delta",
505
+ "unchanged",
506
+ "reset"
507
+ ]
508
+ },
509
+ "items": {
510
+ "type": "array",
511
+ "items": {
512
+ "$ref": "#/components/schemas/LogEntry"
513
+ },
514
+ "description": "Oldest first. For reset, the last lines; for delta, the lines after the cursor. An item whose seq the client has replaces that row."
515
+ },
516
+ "dropped": {
517
+ "type": "integer",
518
+ "minimum": 0,
519
+ "description": "For delta: places in the log that it evicted before this client got them."
520
+ },
521
+ "state": {
522
+ "$ref": "#/components/schemas/LogState"
523
+ }
524
+ },
525
+ "additionalProperties": false
526
+ },
527
+ "LogEntry": {
528
+ "type": "object",
529
+ "required": [
530
+ "seq",
531
+ "at",
532
+ "timestamp",
533
+ "pid",
534
+ "tid",
535
+ "level",
536
+ "tag",
537
+ "message"
538
+ ],
539
+ "properties": {
540
+ "seq": {
541
+ "type": "integer",
542
+ "minimum": 0,
543
+ "description": "Identifies the line: the place in the log where it came first."
544
+ },
545
+ "at": {
546
+ "type": "integer",
547
+ "description": "When the line was written, in epoch milliseconds."
548
+ },
549
+ "timestamp": {
550
+ "type": "string",
551
+ "description": "at as logcat prints it, MM-dd HH:mm:ss.SSS in the device's time zone."
552
+ },
553
+ "pid": {
554
+ "type": "integer"
555
+ },
556
+ "tid": {
557
+ "type": "integer"
558
+ },
559
+ "level": {
560
+ "type": "string",
561
+ "enum": [
562
+ "V",
563
+ "D",
564
+ "I",
565
+ "W",
566
+ "E",
567
+ "F"
568
+ ]
569
+ },
570
+ "tag": {
571
+ "type": "string"
572
+ },
573
+ "message": {
574
+ "type": "string",
575
+ "description": "One line of logcat's output. Android keeps at most about 4 KB of a log message, and logcat prints each line of a multi-line message, such as a stack trace, as a line of its own. A line that the app's logger appended has the whole message, up to 65,536 characters, and can hold line breaks."
576
+ },
577
+ "count": {
578
+ "type": "integer",
579
+ "minimum": 2,
580
+ "description": "Only for a repeated line: how many times it came in a row."
581
+ },
582
+ "lastAt": {
583
+ "type": "integer",
584
+ "description": "Only for a repeated line: when the last repeat was written, in epoch milliseconds."
585
+ }
586
+ },
587
+ "additionalProperties": false
588
+ },
589
+ "LogState": {
590
+ "type": "object",
591
+ "required": [
592
+ "reader",
593
+ "paused",
594
+ "compact"
595
+ ],
596
+ "properties": {
597
+ "reader": {
598
+ "type": "string",
599
+ "enum": [
600
+ "running",
601
+ "restarting",
602
+ "failed",
603
+ "stopped"
604
+ ],
605
+ "description": "running: logcat runs. restarting: logcat ended, and the reader starts it again in 1 s. failed: logcat ended four times in a row without a line, and the reader stopped; the buffer keeps its lines. stopped: Lustro is stopped."
606
+ },
607
+ "readerError": {
608
+ "type": "string",
609
+ "description": "Why logcat ended or could not start, while no line came since."
610
+ },
611
+ "paused": {
612
+ "type": "boolean"
613
+ },
614
+ "compact": {
615
+ "type": "boolean"
616
+ }
617
+ },
618
+ "additionalProperties": false
619
+ }
620
+ }
621
+ }
622
+ }
@@ -0,0 +1,47 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://twinsen81.github.io/Lustro/wire-protocol/v1/meta.schema.json",
4
+ "title": "Framework metadata",
5
+ "description": "Response of GET /api/v1/_meta. Lists the library/protocol versions and the schema-exposing tabs.",
6
+ "type": "object",
7
+ "required": ["libraryVersion", "protocolVersion", "tabs"],
8
+ "properties": {
9
+ "libraryVersion": {
10
+ "type": "string",
11
+ "description": "The Lustro library version (e.g. \"0.1.0-SNAPSHOT\")."
12
+ },
13
+ "protocolVersion": {
14
+ "type": "string",
15
+ "description": "The wire-protocol minor version reported at runtime (e.g. \"1.0\"). The major version lives in the route path (/api/v1)."
16
+ },
17
+ "tabs": {
18
+ "type": "array",
19
+ "description": "The registered tabs that expose a schema (static asset or schema()). Schema-less tabs work in the UI but are omitted here.",
20
+ "items": {
21
+ "type": "object",
22
+ "required": ["id", "title", "schemaUrl", "version"],
23
+ "properties": {
24
+ "id": {
25
+ "type": "string",
26
+ "description": "Tab id; matches the regex [a-z][a-z0-9-]{0,30}.",
27
+ "pattern": "^[a-z][a-z0-9-]{0,30}$"
28
+ },
29
+ "title": {
30
+ "type": "string",
31
+ "description": "Human-readable tab title."
32
+ },
33
+ "schemaUrl": {
34
+ "type": "string",
35
+ "description": "URL of the tab's schema (e.g. /api/v1/<id>/_schema)."
36
+ },
37
+ "version": {
38
+ "type": "string",
39
+ "description": "The info.version of the tab's own schema; the protocolVersion for a schema without one. A plugin tab's routes change at their own pace."
40
+ }
41
+ },
42
+ "additionalProperties": false
43
+ }
44
+ }
45
+ },
46
+ "additionalProperties": false
47
+ }