@usesketchbook/opencode-plugin 0.0.0-stage → 0.1.0-rc.1

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 (88) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +123 -2
  3. package/dist/generated/baseline-manifest.d.ts +2 -0
  4. package/dist/generated/baseline-manifest.js +1590 -0
  5. package/dist/generated/catalog-baseline.d.ts +2 -0
  6. package/dist/generated/catalog-baseline.js +255 -0
  7. package/dist/gui-experimental.cjs +111 -0
  8. package/dist/gui.d.ts +22 -0
  9. package/dist/gui.js +34 -0
  10. package/dist/index.d.ts +3 -0
  11. package/dist/index.js +20 -0
  12. package/dist/rpc.d.ts +1173 -0
  13. package/dist/rpc.js +212 -0
  14. package/dist/server/catalog.d.ts +9 -0
  15. package/dist/server/catalog.js +74 -0
  16. package/dist/server/decision-guard-hooks.d.ts +2 -0
  17. package/dist/server/decision-guard-hooks.js +57 -0
  18. package/dist/server/decision-guards.d.ts +11 -0
  19. package/dist/server/decision-guards.js +36 -0
  20. package/dist/server/engine.d.ts +6 -0
  21. package/dist/server/engine.js +38 -0
  22. package/dist/server/guard-hooks.d.ts +3 -0
  23. package/dist/server/guard-hooks.js +35 -0
  24. package/dist/server/guards.d.ts +13 -0
  25. package/dist/server/guards.js +42 -0
  26. package/dist/server/operations.d.ts +93 -0
  27. package/dist/server/operations.js +300 -0
  28. package/dist/server/permissions.d.ts +29 -0
  29. package/dist/server/permissions.js +97 -0
  30. package/dist/server/rpc.d.ts +126 -0
  31. package/dist/server/rpc.js +308 -0
  32. package/dist/server/runner.d.ts +27 -0
  33. package/dist/server/runner.js +136 -0
  34. package/dist/server/schema.d.ts +4 -0
  35. package/dist/server/schema.js +66 -0
  36. package/dist/server/tools.d.ts +2 -0
  37. package/dist/server/tools.js +176 -0
  38. package/dist/server/tui.d.ts +70 -0
  39. package/dist/server/tui.js +172 -0
  40. package/dist/shared/catalog.d.ts +52 -0
  41. package/dist/shared/catalog.js +84 -0
  42. package/dist/shared/envelope.d.ts +24 -0
  43. package/dist/shared/envelope.js +28 -0
  44. package/dist/shared/manifest.d.ts +53 -0
  45. package/dist/shared/manifest.js +135 -0
  46. package/dist/test/baseline.test.d.ts +1 -0
  47. package/dist/test/baseline.test.js +11 -0
  48. package/dist/test/catalog.test.d.ts +1 -0
  49. package/dist/test/catalog.test.js +232 -0
  50. package/dist/test/decision-guards.test.d.ts +1 -0
  51. package/dist/test/decision-guards.test.js +30 -0
  52. package/dist/test/engine.test.d.ts +1 -0
  53. package/dist/test/engine.test.js +23 -0
  54. package/dist/test/fixtures.d.ts +12 -0
  55. package/dist/test/fixtures.js +55 -0
  56. package/dist/test/guard-hooks.integration.test.d.ts +1 -0
  57. package/dist/test/guard-hooks.integration.test.js +321 -0
  58. package/dist/test/guard-hooks.test.d.ts +1 -0
  59. package/dist/test/guard-hooks.test.js +14 -0
  60. package/dist/test/guards.test.d.ts +1 -0
  61. package/dist/test/guards.test.js +24 -0
  62. package/dist/test/gui.test.d.ts +1 -0
  63. package/dist/test/gui.test.js +61 -0
  64. package/dist/test/manifest.test.d.ts +1 -0
  65. package/dist/test/manifest.test.js +86 -0
  66. package/dist/test/operations.test.d.ts +1 -0
  67. package/dist/test/operations.test.js +263 -0
  68. package/dist/test/parity.test.d.ts +1 -0
  69. package/dist/test/parity.test.js +56 -0
  70. package/dist/test/permissions.integration.test.d.ts +1 -0
  71. package/dist/test/permissions.integration.test.js +535 -0
  72. package/dist/test/permissions.test.d.ts +1 -0
  73. package/dist/test/permissions.test.js +42 -0
  74. package/dist/test/rpc.test.d.ts +1 -0
  75. package/dist/test/rpc.test.js +389 -0
  76. package/dist/test/runner.test.d.ts +1 -0
  77. package/dist/test/runner.test.js +47 -0
  78. package/dist/test/schema.test.d.ts +1 -0
  79. package/dist/test/schema.test.js +51 -0
  80. package/dist/test/tui.test.d.ts +1 -0
  81. package/dist/test/tui.test.js +226 -0
  82. package/dist/tprobe.d.ts +1 -0
  83. package/dist/tprobe.js +2 -0
  84. package/dist/tui.d.ts +10 -0
  85. package/dist/tui.js +21 -0
  86. package/dist/views/operations.d.ts +50 -0
  87. package/dist/views/operations.js +80 -0
  88. package/package.json +71 -4
package/dist/rpc.d.ts ADDED
@@ -0,0 +1,1173 @@
1
+ export declare const SketchbookRpc: {
2
+ readonly id: "sketchbook";
3
+ readonly methods: {
4
+ readonly capabilities: {
5
+ readonly input: {
6
+ readonly type: "object";
7
+ readonly properties: {};
8
+ readonly additionalProperties: false;
9
+ };
10
+ readonly output: {
11
+ readonly type: "object";
12
+ readonly properties: {
13
+ readonly protocolVersion: {
14
+ readonly type: "string";
15
+ };
16
+ readonly envelopeVersion: {
17
+ readonly type: "number";
18
+ };
19
+ readonly engine: {
20
+ readonly type: "object";
21
+ readonly properties: {
22
+ readonly name: {
23
+ readonly type: "string";
24
+ };
25
+ readonly version: {
26
+ readonly type: "string";
27
+ };
28
+ };
29
+ readonly required: readonly ["name", "version"];
30
+ };
31
+ readonly commands: {
32
+ readonly type: "array";
33
+ };
34
+ };
35
+ readonly required: readonly ["protocolVersion", "envelopeVersion", "engine", "commands"];
36
+ };
37
+ readonly errors: {
38
+ readonly sketchbook_operation: {
39
+ readonly type: "object";
40
+ readonly properties: {
41
+ readonly code: {
42
+ readonly type: "string";
43
+ };
44
+ readonly command: {
45
+ readonly type: "string";
46
+ };
47
+ readonly operationID: {
48
+ readonly type: "string";
49
+ };
50
+ readonly message: {
51
+ readonly type: "string";
52
+ };
53
+ };
54
+ readonly required: readonly ["code", "message"];
55
+ };
56
+ readonly sketchbook_stale_preview: {
57
+ readonly type: "object";
58
+ readonly properties: {
59
+ readonly code: {
60
+ readonly type: "string";
61
+ };
62
+ readonly command: {
63
+ readonly type: "string";
64
+ };
65
+ readonly operationID: {
66
+ readonly type: "string";
67
+ };
68
+ readonly message: {
69
+ readonly type: "string";
70
+ };
71
+ };
72
+ readonly required: readonly ["code", "message"];
73
+ };
74
+ readonly sketchbook_not_found: {
75
+ readonly type: "object";
76
+ readonly properties: {
77
+ readonly code: {
78
+ readonly type: "string";
79
+ };
80
+ readonly command: {
81
+ readonly type: "string";
82
+ };
83
+ readonly operationID: {
84
+ readonly type: "string";
85
+ };
86
+ readonly message: {
87
+ readonly type: "string";
88
+ };
89
+ };
90
+ readonly required: readonly ["code", "message"];
91
+ };
92
+ readonly sketchbook_cancelled: {
93
+ readonly type: "object";
94
+ readonly properties: {
95
+ readonly code: {
96
+ readonly type: "string";
97
+ };
98
+ readonly command: {
99
+ readonly type: "string";
100
+ };
101
+ readonly operationID: {
102
+ readonly type: "string";
103
+ };
104
+ readonly message: {
105
+ readonly type: "string";
106
+ };
107
+ };
108
+ readonly required: readonly ["code", "message"];
109
+ };
110
+ readonly sketchbook_timeout: {
111
+ readonly type: "object";
112
+ readonly properties: {
113
+ readonly code: {
114
+ readonly type: "string";
115
+ };
116
+ readonly command: {
117
+ readonly type: "string";
118
+ };
119
+ readonly operationID: {
120
+ readonly type: "string";
121
+ };
122
+ readonly message: {
123
+ readonly type: "string";
124
+ };
125
+ };
126
+ readonly required: readonly ["code", "message"];
127
+ };
128
+ readonly sketchbook_output_limit: {
129
+ readonly type: "object";
130
+ readonly properties: {
131
+ readonly code: {
132
+ readonly type: "string";
133
+ };
134
+ readonly command: {
135
+ readonly type: "string";
136
+ };
137
+ readonly operationID: {
138
+ readonly type: "string";
139
+ };
140
+ readonly message: {
141
+ readonly type: "string";
142
+ };
143
+ };
144
+ readonly required: readonly ["code", "message"];
145
+ };
146
+ readonly sketchbook_permission: {
147
+ readonly type: "object";
148
+ readonly properties: {
149
+ readonly code: {
150
+ readonly type: "string";
151
+ };
152
+ readonly command: {
153
+ readonly type: "string";
154
+ };
155
+ readonly operationID: {
156
+ readonly type: "string";
157
+ };
158
+ readonly message: {
159
+ readonly type: "string";
160
+ };
161
+ };
162
+ readonly required: readonly ["code", "message"];
163
+ };
164
+ };
165
+ };
166
+ readonly run: {
167
+ readonly input: {
168
+ readonly type: "object";
169
+ readonly properties: {
170
+ readonly command: {
171
+ readonly type: "string";
172
+ readonly description: "Sketchbook command name from the capabilities manifest.";
173
+ };
174
+ readonly subcommand: {
175
+ readonly type: "string";
176
+ readonly description: "Optional subcommand name.";
177
+ };
178
+ readonly args: {
179
+ readonly type: "array";
180
+ readonly items: {
181
+ readonly type: "string";
182
+ };
183
+ readonly description: "Positional arguments.";
184
+ };
185
+ readonly options: {
186
+ readonly type: "object";
187
+ readonly additionalProperties: {
188
+ readonly type: readonly ["string", "boolean"];
189
+ };
190
+ readonly description: "Command options keyed by their manifest name.";
191
+ };
192
+ readonly dryRun: {
193
+ readonly type: "boolean";
194
+ readonly description: "Force a preview (true) or an apply (false). Mutations preview by default.";
195
+ };
196
+ readonly operationID: {
197
+ readonly type: "string";
198
+ readonly description: "Client-chosen operation ID for cancel/status tracking. Generated when omitted.";
199
+ };
200
+ readonly timeoutMs: {
201
+ readonly type: "number";
202
+ readonly description: "Operation resource budget: wall-clock limit in milliseconds.";
203
+ };
204
+ readonly maxOutputBytes: {
205
+ readonly type: "number";
206
+ readonly description: "Operation resource budget: maximum engine output bytes.";
207
+ };
208
+ };
209
+ readonly required: readonly ["command"];
210
+ };
211
+ readonly output: {
212
+ readonly type: "object";
213
+ readonly properties: {
214
+ readonly ok: {
215
+ readonly type: "boolean";
216
+ };
217
+ readonly operationID: {
218
+ readonly type: "string";
219
+ };
220
+ readonly command: {
221
+ readonly type: "string";
222
+ };
223
+ readonly dryRun: {
224
+ readonly type: "boolean";
225
+ };
226
+ readonly envelope: {
227
+ readonly type: "object";
228
+ };
229
+ readonly engine: {
230
+ readonly type: "object";
231
+ readonly properties: {
232
+ readonly source: {
233
+ readonly type: "string";
234
+ readonly enum: readonly ["project", "bundled"];
235
+ };
236
+ readonly path: {
237
+ readonly type: "string";
238
+ };
239
+ readonly version: {
240
+ readonly type: "string";
241
+ };
242
+ };
243
+ readonly required: readonly ["source", "path", "version"];
244
+ };
245
+ readonly preview: {
246
+ readonly type: "object";
247
+ readonly properties: {
248
+ readonly id: {
249
+ readonly type: "string";
250
+ };
251
+ readonly fingerprint: {
252
+ readonly type: "string";
253
+ };
254
+ readonly status: {
255
+ readonly type: "string";
256
+ readonly enum: readonly ["pending", "applied", "stale"];
257
+ };
258
+ };
259
+ readonly required: readonly ["id", "fingerprint", "status"];
260
+ };
261
+ };
262
+ readonly required: readonly ["ok", "operationID", "command", "dryRun", "envelope", "engine"];
263
+ };
264
+ readonly errors: {
265
+ readonly sketchbook_operation: {
266
+ readonly type: "object";
267
+ readonly properties: {
268
+ readonly code: {
269
+ readonly type: "string";
270
+ };
271
+ readonly command: {
272
+ readonly type: "string";
273
+ };
274
+ readonly operationID: {
275
+ readonly type: "string";
276
+ };
277
+ readonly message: {
278
+ readonly type: "string";
279
+ };
280
+ };
281
+ readonly required: readonly ["code", "message"];
282
+ };
283
+ readonly sketchbook_stale_preview: {
284
+ readonly type: "object";
285
+ readonly properties: {
286
+ readonly code: {
287
+ readonly type: "string";
288
+ };
289
+ readonly command: {
290
+ readonly type: "string";
291
+ };
292
+ readonly operationID: {
293
+ readonly type: "string";
294
+ };
295
+ readonly message: {
296
+ readonly type: "string";
297
+ };
298
+ };
299
+ readonly required: readonly ["code", "message"];
300
+ };
301
+ readonly sketchbook_not_found: {
302
+ readonly type: "object";
303
+ readonly properties: {
304
+ readonly code: {
305
+ readonly type: "string";
306
+ };
307
+ readonly command: {
308
+ readonly type: "string";
309
+ };
310
+ readonly operationID: {
311
+ readonly type: "string";
312
+ };
313
+ readonly message: {
314
+ readonly type: "string";
315
+ };
316
+ };
317
+ readonly required: readonly ["code", "message"];
318
+ };
319
+ readonly sketchbook_cancelled: {
320
+ readonly type: "object";
321
+ readonly properties: {
322
+ readonly code: {
323
+ readonly type: "string";
324
+ };
325
+ readonly command: {
326
+ readonly type: "string";
327
+ };
328
+ readonly operationID: {
329
+ readonly type: "string";
330
+ };
331
+ readonly message: {
332
+ readonly type: "string";
333
+ };
334
+ };
335
+ readonly required: readonly ["code", "message"];
336
+ };
337
+ readonly sketchbook_timeout: {
338
+ readonly type: "object";
339
+ readonly properties: {
340
+ readonly code: {
341
+ readonly type: "string";
342
+ };
343
+ readonly command: {
344
+ readonly type: "string";
345
+ };
346
+ readonly operationID: {
347
+ readonly type: "string";
348
+ };
349
+ readonly message: {
350
+ readonly type: "string";
351
+ };
352
+ };
353
+ readonly required: readonly ["code", "message"];
354
+ };
355
+ readonly sketchbook_output_limit: {
356
+ readonly type: "object";
357
+ readonly properties: {
358
+ readonly code: {
359
+ readonly type: "string";
360
+ };
361
+ readonly command: {
362
+ readonly type: "string";
363
+ };
364
+ readonly operationID: {
365
+ readonly type: "string";
366
+ };
367
+ readonly message: {
368
+ readonly type: "string";
369
+ };
370
+ };
371
+ readonly required: readonly ["code", "message"];
372
+ };
373
+ readonly sketchbook_permission: {
374
+ readonly type: "object";
375
+ readonly properties: {
376
+ readonly code: {
377
+ readonly type: "string";
378
+ };
379
+ readonly command: {
380
+ readonly type: "string";
381
+ };
382
+ readonly operationID: {
383
+ readonly type: "string";
384
+ };
385
+ readonly message: {
386
+ readonly type: "string";
387
+ };
388
+ };
389
+ readonly required: readonly ["code", "message"];
390
+ };
391
+ };
392
+ };
393
+ readonly preview: {
394
+ readonly input: {
395
+ readonly type: "object";
396
+ readonly properties: {
397
+ readonly command: {
398
+ readonly type: "string";
399
+ readonly description: "Sketchbook command name from the capabilities manifest.";
400
+ };
401
+ readonly subcommand: {
402
+ readonly type: "string";
403
+ readonly description: "Optional subcommand name.";
404
+ };
405
+ readonly args: {
406
+ readonly type: "array";
407
+ readonly items: {
408
+ readonly type: "string";
409
+ };
410
+ readonly description: "Positional arguments.";
411
+ };
412
+ readonly options: {
413
+ readonly type: "object";
414
+ readonly additionalProperties: {
415
+ readonly type: readonly ["string", "boolean"];
416
+ };
417
+ readonly description: "Command options keyed by their manifest name.";
418
+ };
419
+ readonly dryRun: {
420
+ readonly type: "boolean";
421
+ readonly description: "Force a preview (true) or an apply (false). Mutations preview by default.";
422
+ };
423
+ readonly operationID: {
424
+ readonly type: "string";
425
+ readonly description: "Client-chosen operation ID for cancel/status tracking. Generated when omitted.";
426
+ };
427
+ readonly timeoutMs: {
428
+ readonly type: "number";
429
+ readonly description: "Operation resource budget: wall-clock limit in milliseconds.";
430
+ };
431
+ readonly maxOutputBytes: {
432
+ readonly type: "number";
433
+ readonly description: "Operation resource budget: maximum engine output bytes.";
434
+ };
435
+ };
436
+ readonly required: readonly ["command"];
437
+ };
438
+ readonly output: {
439
+ readonly type: "object";
440
+ readonly properties: {
441
+ readonly ok: {
442
+ readonly type: "boolean";
443
+ };
444
+ readonly operationID: {
445
+ readonly type: "string";
446
+ };
447
+ readonly command: {
448
+ readonly type: "string";
449
+ };
450
+ readonly dryRun: {
451
+ readonly type: "boolean";
452
+ };
453
+ readonly envelope: {
454
+ readonly type: "object";
455
+ };
456
+ readonly engine: {
457
+ readonly type: "object";
458
+ readonly properties: {
459
+ readonly source: {
460
+ readonly type: "string";
461
+ readonly enum: readonly ["project", "bundled"];
462
+ };
463
+ readonly path: {
464
+ readonly type: "string";
465
+ };
466
+ readonly version: {
467
+ readonly type: "string";
468
+ };
469
+ };
470
+ readonly required: readonly ["source", "path", "version"];
471
+ };
472
+ readonly preview: {
473
+ readonly type: "object";
474
+ readonly properties: {
475
+ readonly id: {
476
+ readonly type: "string";
477
+ };
478
+ readonly fingerprint: {
479
+ readonly type: "string";
480
+ };
481
+ readonly status: {
482
+ readonly type: "string";
483
+ readonly enum: readonly ["pending", "applied", "stale"];
484
+ };
485
+ };
486
+ readonly required: readonly ["id", "fingerprint", "status"];
487
+ };
488
+ };
489
+ readonly required: readonly ["ok", "operationID", "command", "dryRun", "envelope", "engine"];
490
+ };
491
+ readonly errors: {
492
+ readonly sketchbook_operation: {
493
+ readonly type: "object";
494
+ readonly properties: {
495
+ readonly code: {
496
+ readonly type: "string";
497
+ };
498
+ readonly command: {
499
+ readonly type: "string";
500
+ };
501
+ readonly operationID: {
502
+ readonly type: "string";
503
+ };
504
+ readonly message: {
505
+ readonly type: "string";
506
+ };
507
+ };
508
+ readonly required: readonly ["code", "message"];
509
+ };
510
+ readonly sketchbook_stale_preview: {
511
+ readonly type: "object";
512
+ readonly properties: {
513
+ readonly code: {
514
+ readonly type: "string";
515
+ };
516
+ readonly command: {
517
+ readonly type: "string";
518
+ };
519
+ readonly operationID: {
520
+ readonly type: "string";
521
+ };
522
+ readonly message: {
523
+ readonly type: "string";
524
+ };
525
+ };
526
+ readonly required: readonly ["code", "message"];
527
+ };
528
+ readonly sketchbook_not_found: {
529
+ readonly type: "object";
530
+ readonly properties: {
531
+ readonly code: {
532
+ readonly type: "string";
533
+ };
534
+ readonly command: {
535
+ readonly type: "string";
536
+ };
537
+ readonly operationID: {
538
+ readonly type: "string";
539
+ };
540
+ readonly message: {
541
+ readonly type: "string";
542
+ };
543
+ };
544
+ readonly required: readonly ["code", "message"];
545
+ };
546
+ readonly sketchbook_cancelled: {
547
+ readonly type: "object";
548
+ readonly properties: {
549
+ readonly code: {
550
+ readonly type: "string";
551
+ };
552
+ readonly command: {
553
+ readonly type: "string";
554
+ };
555
+ readonly operationID: {
556
+ readonly type: "string";
557
+ };
558
+ readonly message: {
559
+ readonly type: "string";
560
+ };
561
+ };
562
+ readonly required: readonly ["code", "message"];
563
+ };
564
+ readonly sketchbook_timeout: {
565
+ readonly type: "object";
566
+ readonly properties: {
567
+ readonly code: {
568
+ readonly type: "string";
569
+ };
570
+ readonly command: {
571
+ readonly type: "string";
572
+ };
573
+ readonly operationID: {
574
+ readonly type: "string";
575
+ };
576
+ readonly message: {
577
+ readonly type: "string";
578
+ };
579
+ };
580
+ readonly required: readonly ["code", "message"];
581
+ };
582
+ readonly sketchbook_output_limit: {
583
+ readonly type: "object";
584
+ readonly properties: {
585
+ readonly code: {
586
+ readonly type: "string";
587
+ };
588
+ readonly command: {
589
+ readonly type: "string";
590
+ };
591
+ readonly operationID: {
592
+ readonly type: "string";
593
+ };
594
+ readonly message: {
595
+ readonly type: "string";
596
+ };
597
+ };
598
+ readonly required: readonly ["code", "message"];
599
+ };
600
+ readonly sketchbook_permission: {
601
+ readonly type: "object";
602
+ readonly properties: {
603
+ readonly code: {
604
+ readonly type: "string";
605
+ };
606
+ readonly command: {
607
+ readonly type: "string";
608
+ };
609
+ readonly operationID: {
610
+ readonly type: "string";
611
+ };
612
+ readonly message: {
613
+ readonly type: "string";
614
+ };
615
+ };
616
+ readonly required: readonly ["code", "message"];
617
+ };
618
+ };
619
+ };
620
+ readonly apply: {
621
+ readonly input: {
622
+ readonly type: "object";
623
+ readonly properties: {
624
+ readonly operationID: {
625
+ readonly type: "string";
626
+ readonly description: "Preview operation ID to apply.";
627
+ };
628
+ };
629
+ readonly required: readonly ["operationID"];
630
+ };
631
+ readonly output: {
632
+ readonly type: "object";
633
+ readonly properties: {
634
+ readonly ok: {
635
+ readonly type: "boolean";
636
+ };
637
+ readonly operationID: {
638
+ readonly type: "string";
639
+ };
640
+ readonly command: {
641
+ readonly type: "string";
642
+ };
643
+ readonly envelope: {
644
+ readonly type: "object";
645
+ };
646
+ readonly engine: {
647
+ readonly type: "object";
648
+ readonly properties: {
649
+ readonly source: {
650
+ readonly type: "string";
651
+ readonly enum: readonly ["project", "bundled"];
652
+ };
653
+ readonly path: {
654
+ readonly type: "string";
655
+ };
656
+ readonly version: {
657
+ readonly type: "string";
658
+ };
659
+ };
660
+ readonly required: readonly ["source", "path", "version"];
661
+ };
662
+ };
663
+ readonly required: readonly ["ok", "operationID", "command", "envelope", "engine"];
664
+ };
665
+ readonly errors: {
666
+ readonly sketchbook_operation: {
667
+ readonly type: "object";
668
+ readonly properties: {
669
+ readonly code: {
670
+ readonly type: "string";
671
+ };
672
+ readonly command: {
673
+ readonly type: "string";
674
+ };
675
+ readonly operationID: {
676
+ readonly type: "string";
677
+ };
678
+ readonly message: {
679
+ readonly type: "string";
680
+ };
681
+ };
682
+ readonly required: readonly ["code", "message"];
683
+ };
684
+ readonly sketchbook_stale_preview: {
685
+ readonly type: "object";
686
+ readonly properties: {
687
+ readonly code: {
688
+ readonly type: "string";
689
+ };
690
+ readonly command: {
691
+ readonly type: "string";
692
+ };
693
+ readonly operationID: {
694
+ readonly type: "string";
695
+ };
696
+ readonly message: {
697
+ readonly type: "string";
698
+ };
699
+ };
700
+ readonly required: readonly ["code", "message"];
701
+ };
702
+ readonly sketchbook_not_found: {
703
+ readonly type: "object";
704
+ readonly properties: {
705
+ readonly code: {
706
+ readonly type: "string";
707
+ };
708
+ readonly command: {
709
+ readonly type: "string";
710
+ };
711
+ readonly operationID: {
712
+ readonly type: "string";
713
+ };
714
+ readonly message: {
715
+ readonly type: "string";
716
+ };
717
+ };
718
+ readonly required: readonly ["code", "message"];
719
+ };
720
+ readonly sketchbook_cancelled: {
721
+ readonly type: "object";
722
+ readonly properties: {
723
+ readonly code: {
724
+ readonly type: "string";
725
+ };
726
+ readonly command: {
727
+ readonly type: "string";
728
+ };
729
+ readonly operationID: {
730
+ readonly type: "string";
731
+ };
732
+ readonly message: {
733
+ readonly type: "string";
734
+ };
735
+ };
736
+ readonly required: readonly ["code", "message"];
737
+ };
738
+ readonly sketchbook_timeout: {
739
+ readonly type: "object";
740
+ readonly properties: {
741
+ readonly code: {
742
+ readonly type: "string";
743
+ };
744
+ readonly command: {
745
+ readonly type: "string";
746
+ };
747
+ readonly operationID: {
748
+ readonly type: "string";
749
+ };
750
+ readonly message: {
751
+ readonly type: "string";
752
+ };
753
+ };
754
+ readonly required: readonly ["code", "message"];
755
+ };
756
+ readonly sketchbook_output_limit: {
757
+ readonly type: "object";
758
+ readonly properties: {
759
+ readonly code: {
760
+ readonly type: "string";
761
+ };
762
+ readonly command: {
763
+ readonly type: "string";
764
+ };
765
+ readonly operationID: {
766
+ readonly type: "string";
767
+ };
768
+ readonly message: {
769
+ readonly type: "string";
770
+ };
771
+ };
772
+ readonly required: readonly ["code", "message"];
773
+ };
774
+ readonly sketchbook_permission: {
775
+ readonly type: "object";
776
+ readonly properties: {
777
+ readonly code: {
778
+ readonly type: "string";
779
+ };
780
+ readonly command: {
781
+ readonly type: "string";
782
+ };
783
+ readonly operationID: {
784
+ readonly type: "string";
785
+ };
786
+ readonly message: {
787
+ readonly type: "string";
788
+ };
789
+ };
790
+ readonly required: readonly ["code", "message"];
791
+ };
792
+ };
793
+ };
794
+ readonly cancel: {
795
+ readonly input: {
796
+ readonly type: "object";
797
+ readonly properties: {
798
+ readonly operationID: {
799
+ readonly type: "string";
800
+ };
801
+ };
802
+ readonly required: readonly ["operationID"];
803
+ };
804
+ readonly output: {
805
+ readonly type: "object";
806
+ readonly properties: {
807
+ readonly ok: {
808
+ readonly type: "boolean";
809
+ };
810
+ readonly operationID: {
811
+ readonly type: "string";
812
+ };
813
+ readonly cancelled: {
814
+ readonly type: "boolean";
815
+ };
816
+ readonly status: {
817
+ readonly type: "string";
818
+ };
819
+ };
820
+ readonly required: readonly ["ok", "operationID", "cancelled", "status"];
821
+ };
822
+ readonly errors: {
823
+ readonly sketchbook_operation: {
824
+ readonly type: "object";
825
+ readonly properties: {
826
+ readonly code: {
827
+ readonly type: "string";
828
+ };
829
+ readonly command: {
830
+ readonly type: "string";
831
+ };
832
+ readonly operationID: {
833
+ readonly type: "string";
834
+ };
835
+ readonly message: {
836
+ readonly type: "string";
837
+ };
838
+ };
839
+ readonly required: readonly ["code", "message"];
840
+ };
841
+ readonly sketchbook_stale_preview: {
842
+ readonly type: "object";
843
+ readonly properties: {
844
+ readonly code: {
845
+ readonly type: "string";
846
+ };
847
+ readonly command: {
848
+ readonly type: "string";
849
+ };
850
+ readonly operationID: {
851
+ readonly type: "string";
852
+ };
853
+ readonly message: {
854
+ readonly type: "string";
855
+ };
856
+ };
857
+ readonly required: readonly ["code", "message"];
858
+ };
859
+ readonly sketchbook_not_found: {
860
+ readonly type: "object";
861
+ readonly properties: {
862
+ readonly code: {
863
+ readonly type: "string";
864
+ };
865
+ readonly command: {
866
+ readonly type: "string";
867
+ };
868
+ readonly operationID: {
869
+ readonly type: "string";
870
+ };
871
+ readonly message: {
872
+ readonly type: "string";
873
+ };
874
+ };
875
+ readonly required: readonly ["code", "message"];
876
+ };
877
+ readonly sketchbook_cancelled: {
878
+ readonly type: "object";
879
+ readonly properties: {
880
+ readonly code: {
881
+ readonly type: "string";
882
+ };
883
+ readonly command: {
884
+ readonly type: "string";
885
+ };
886
+ readonly operationID: {
887
+ readonly type: "string";
888
+ };
889
+ readonly message: {
890
+ readonly type: "string";
891
+ };
892
+ };
893
+ readonly required: readonly ["code", "message"];
894
+ };
895
+ readonly sketchbook_timeout: {
896
+ readonly type: "object";
897
+ readonly properties: {
898
+ readonly code: {
899
+ readonly type: "string";
900
+ };
901
+ readonly command: {
902
+ readonly type: "string";
903
+ };
904
+ readonly operationID: {
905
+ readonly type: "string";
906
+ };
907
+ readonly message: {
908
+ readonly type: "string";
909
+ };
910
+ };
911
+ readonly required: readonly ["code", "message"];
912
+ };
913
+ readonly sketchbook_output_limit: {
914
+ readonly type: "object";
915
+ readonly properties: {
916
+ readonly code: {
917
+ readonly type: "string";
918
+ };
919
+ readonly command: {
920
+ readonly type: "string";
921
+ };
922
+ readonly operationID: {
923
+ readonly type: "string";
924
+ };
925
+ readonly message: {
926
+ readonly type: "string";
927
+ };
928
+ };
929
+ readonly required: readonly ["code", "message"];
930
+ };
931
+ readonly sketchbook_permission: {
932
+ readonly type: "object";
933
+ readonly properties: {
934
+ readonly code: {
935
+ readonly type: "string";
936
+ };
937
+ readonly command: {
938
+ readonly type: "string";
939
+ };
940
+ readonly operationID: {
941
+ readonly type: "string";
942
+ };
943
+ readonly message: {
944
+ readonly type: "string";
945
+ };
946
+ };
947
+ readonly required: readonly ["code", "message"];
948
+ };
949
+ };
950
+ };
951
+ readonly status: {
952
+ readonly input: {
953
+ readonly type: "object";
954
+ readonly properties: {
955
+ readonly operationID: {
956
+ readonly type: "string";
957
+ readonly description: "Omit to list every tracked operation.";
958
+ };
959
+ };
960
+ };
961
+ readonly output: {
962
+ readonly type: "object";
963
+ readonly properties: {
964
+ readonly ok: {
965
+ readonly type: "boolean";
966
+ };
967
+ readonly operations: {
968
+ readonly type: "array";
969
+ readonly items: {
970
+ readonly type: "object";
971
+ readonly properties: {
972
+ readonly operationID: {
973
+ readonly type: "string";
974
+ };
975
+ readonly command: {
976
+ readonly type: "string";
977
+ };
978
+ readonly status: {
979
+ readonly type: "string";
980
+ readonly enum: readonly ["running", "completed", "cancelled", "failed"];
981
+ };
982
+ readonly startedAt: {
983
+ readonly type: "string";
984
+ };
985
+ readonly finishedAt: {
986
+ readonly type: "string";
987
+ };
988
+ readonly progressCount: {
989
+ readonly type: "number";
990
+ };
991
+ };
992
+ readonly required: readonly ["operationID", "command", "status", "startedAt"];
993
+ };
994
+ };
995
+ };
996
+ readonly required: readonly ["ok", "operations"];
997
+ };
998
+ readonly errors: {
999
+ readonly sketchbook_operation: {
1000
+ readonly type: "object";
1001
+ readonly properties: {
1002
+ readonly code: {
1003
+ readonly type: "string";
1004
+ };
1005
+ readonly command: {
1006
+ readonly type: "string";
1007
+ };
1008
+ readonly operationID: {
1009
+ readonly type: "string";
1010
+ };
1011
+ readonly message: {
1012
+ readonly type: "string";
1013
+ };
1014
+ };
1015
+ readonly required: readonly ["code", "message"];
1016
+ };
1017
+ readonly sketchbook_stale_preview: {
1018
+ readonly type: "object";
1019
+ readonly properties: {
1020
+ readonly code: {
1021
+ readonly type: "string";
1022
+ };
1023
+ readonly command: {
1024
+ readonly type: "string";
1025
+ };
1026
+ readonly operationID: {
1027
+ readonly type: "string";
1028
+ };
1029
+ readonly message: {
1030
+ readonly type: "string";
1031
+ };
1032
+ };
1033
+ readonly required: readonly ["code", "message"];
1034
+ };
1035
+ readonly sketchbook_not_found: {
1036
+ readonly type: "object";
1037
+ readonly properties: {
1038
+ readonly code: {
1039
+ readonly type: "string";
1040
+ };
1041
+ readonly command: {
1042
+ readonly type: "string";
1043
+ };
1044
+ readonly operationID: {
1045
+ readonly type: "string";
1046
+ };
1047
+ readonly message: {
1048
+ readonly type: "string";
1049
+ };
1050
+ };
1051
+ readonly required: readonly ["code", "message"];
1052
+ };
1053
+ readonly sketchbook_cancelled: {
1054
+ readonly type: "object";
1055
+ readonly properties: {
1056
+ readonly code: {
1057
+ readonly type: "string";
1058
+ };
1059
+ readonly command: {
1060
+ readonly type: "string";
1061
+ };
1062
+ readonly operationID: {
1063
+ readonly type: "string";
1064
+ };
1065
+ readonly message: {
1066
+ readonly type: "string";
1067
+ };
1068
+ };
1069
+ readonly required: readonly ["code", "message"];
1070
+ };
1071
+ readonly sketchbook_timeout: {
1072
+ readonly type: "object";
1073
+ readonly properties: {
1074
+ readonly code: {
1075
+ readonly type: "string";
1076
+ };
1077
+ readonly command: {
1078
+ readonly type: "string";
1079
+ };
1080
+ readonly operationID: {
1081
+ readonly type: "string";
1082
+ };
1083
+ readonly message: {
1084
+ readonly type: "string";
1085
+ };
1086
+ };
1087
+ readonly required: readonly ["code", "message"];
1088
+ };
1089
+ readonly sketchbook_output_limit: {
1090
+ readonly type: "object";
1091
+ readonly properties: {
1092
+ readonly code: {
1093
+ readonly type: "string";
1094
+ };
1095
+ readonly command: {
1096
+ readonly type: "string";
1097
+ };
1098
+ readonly operationID: {
1099
+ readonly type: "string";
1100
+ };
1101
+ readonly message: {
1102
+ readonly type: "string";
1103
+ };
1104
+ };
1105
+ readonly required: readonly ["code", "message"];
1106
+ };
1107
+ readonly sketchbook_permission: {
1108
+ readonly type: "object";
1109
+ readonly properties: {
1110
+ readonly code: {
1111
+ readonly type: "string";
1112
+ };
1113
+ readonly command: {
1114
+ readonly type: "string";
1115
+ };
1116
+ readonly operationID: {
1117
+ readonly type: "string";
1118
+ };
1119
+ readonly message: {
1120
+ readonly type: "string";
1121
+ };
1122
+ };
1123
+ readonly required: readonly ["code", "message"];
1124
+ };
1125
+ };
1126
+ };
1127
+ };
1128
+ readonly events: {
1129
+ readonly progress: {
1130
+ readonly schema: {
1131
+ readonly type: "object";
1132
+ readonly properties: {
1133
+ readonly operationID: {
1134
+ readonly type: "string";
1135
+ };
1136
+ readonly command: {
1137
+ readonly type: "string";
1138
+ };
1139
+ readonly sequence: {
1140
+ readonly type: "number";
1141
+ readonly description: "Monotonic per-operation progress counter.";
1142
+ };
1143
+ readonly source: {
1144
+ readonly type: "string";
1145
+ readonly enum: readonly ["stdout", "stderr"];
1146
+ };
1147
+ readonly line: {
1148
+ readonly type: "string";
1149
+ };
1150
+ };
1151
+ readonly required: readonly ["operationID", "command", "sequence", "source", "line"];
1152
+ };
1153
+ };
1154
+ readonly operation: {
1155
+ readonly schema: {
1156
+ readonly type: "object";
1157
+ readonly properties: {
1158
+ readonly operationID: {
1159
+ readonly type: "string";
1160
+ };
1161
+ readonly command: {
1162
+ readonly type: "string";
1163
+ };
1164
+ readonly status: {
1165
+ readonly type: "string";
1166
+ readonly enum: readonly ["running", "completed", "cancelled", "failed"];
1167
+ };
1168
+ };
1169
+ readonly required: readonly ["operationID", "command", "status"];
1170
+ };
1171
+ };
1172
+ };
1173
+ };