@opencode-cockpit/protocol 0.2.0 → 0.2.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.
- package/dist/rpc.js +1 -1
- package/dist/shell/info.js +4 -0
- package/package.json +1 -1
- package/types/index.d.ts +77 -0
- package/types/rpc.d.ts +1 -1
- package/types/shell/contract.d.ts +77 -0
- package/types/shell/info.d.ts +8 -0
- package/types/shell/params.d.ts +7 -0
package/dist/rpc.js
CHANGED
package/dist/shell/info.js
CHANGED
|
@@ -16,6 +16,10 @@ export const ShellInfo = z.object({
|
|
|
16
16
|
error: z.string().optional(),
|
|
17
17
|
/** Set when a run ends: the last error-looking line of the run, else its last line. */
|
|
18
18
|
summary: z.string().optional(),
|
|
19
|
+
/** Why the shell stopped, when it did not end on its own. */
|
|
20
|
+
stopReason: z.enum(["timeout", "idle", "request", "shutdown"]).optional(),
|
|
21
|
+
/** The client that asked for the stop, for `stopReason: "request"`. */
|
|
22
|
+
stoppedBy: z.string().optional(),
|
|
19
23
|
startedAt: z.number(),
|
|
20
24
|
endedAt: z.number().optional(),
|
|
21
25
|
cols: z.number().int(),
|
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -92,6 +92,13 @@ export declare const contract: {
|
|
|
92
92
|
signal: import("zod").ZodOptional<import("zod").ZodString>;
|
|
93
93
|
error: import("zod").ZodOptional<import("zod").ZodString>;
|
|
94
94
|
summary: import("zod").ZodOptional<import("zod").ZodString>;
|
|
95
|
+
stopReason: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
96
|
+
idle: "idle";
|
|
97
|
+
request: "request";
|
|
98
|
+
shutdown: "shutdown";
|
|
99
|
+
timeout: "timeout";
|
|
100
|
+
}>>;
|
|
101
|
+
stoppedBy: import("zod").ZodOptional<import("zod").ZodString>;
|
|
95
102
|
startedAt: import("zod").ZodNumber;
|
|
96
103
|
endedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
97
104
|
cols: import("zod").ZodNumber;
|
|
@@ -145,6 +152,13 @@ export declare const contract: {
|
|
|
145
152
|
signal: import("zod").ZodOptional<import("zod").ZodString>;
|
|
146
153
|
error: import("zod").ZodOptional<import("zod").ZodString>;
|
|
147
154
|
summary: import("zod").ZodOptional<import("zod").ZodString>;
|
|
155
|
+
stopReason: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
156
|
+
idle: "idle";
|
|
157
|
+
request: "request";
|
|
158
|
+
shutdown: "shutdown";
|
|
159
|
+
timeout: "timeout";
|
|
160
|
+
}>>;
|
|
161
|
+
stoppedBy: import("zod").ZodOptional<import("zod").ZodString>;
|
|
148
162
|
startedAt: import("zod").ZodNumber;
|
|
149
163
|
endedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
150
164
|
cols: import("zod").ZodNumber;
|
|
@@ -193,6 +207,13 @@ export declare const contract: {
|
|
|
193
207
|
signal: import("zod").ZodOptional<import("zod").ZodString>;
|
|
194
208
|
error: import("zod").ZodOptional<import("zod").ZodString>;
|
|
195
209
|
summary: import("zod").ZodOptional<import("zod").ZodString>;
|
|
210
|
+
stopReason: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
211
|
+
idle: "idle";
|
|
212
|
+
request: "request";
|
|
213
|
+
shutdown: "shutdown";
|
|
214
|
+
timeout: "timeout";
|
|
215
|
+
}>>;
|
|
216
|
+
stoppedBy: import("zod").ZodOptional<import("zod").ZodString>;
|
|
196
217
|
startedAt: import("zod").ZodNumber;
|
|
197
218
|
endedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
198
219
|
cols: import("zod").ZodNumber;
|
|
@@ -318,6 +339,13 @@ export declare const contract: {
|
|
|
318
339
|
signal: import("zod").ZodOptional<import("zod").ZodString>;
|
|
319
340
|
error: import("zod").ZodOptional<import("zod").ZodString>;
|
|
320
341
|
summary: import("zod").ZodOptional<import("zod").ZodString>;
|
|
342
|
+
stopReason: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
343
|
+
idle: "idle";
|
|
344
|
+
request: "request";
|
|
345
|
+
shutdown: "shutdown";
|
|
346
|
+
timeout: "timeout";
|
|
347
|
+
}>>;
|
|
348
|
+
stoppedBy: import("zod").ZodOptional<import("zod").ZodString>;
|
|
321
349
|
startedAt: import("zod").ZodNumber;
|
|
322
350
|
endedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
323
351
|
cols: import("zod").ZodNumber;
|
|
@@ -374,6 +402,13 @@ export declare const contract: {
|
|
|
374
402
|
signal: import("zod").ZodOptional<import("zod").ZodString>;
|
|
375
403
|
error: import("zod").ZodOptional<import("zod").ZodString>;
|
|
376
404
|
summary: import("zod").ZodOptional<import("zod").ZodString>;
|
|
405
|
+
stopReason: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
406
|
+
idle: "idle";
|
|
407
|
+
request: "request";
|
|
408
|
+
shutdown: "shutdown";
|
|
409
|
+
timeout: "timeout";
|
|
410
|
+
}>>;
|
|
411
|
+
stoppedBy: import("zod").ZodOptional<import("zod").ZodString>;
|
|
377
412
|
startedAt: import("zod").ZodNumber;
|
|
378
413
|
endedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
379
414
|
cols: import("zod").ZodNumber;
|
|
@@ -422,6 +457,13 @@ export declare const contract: {
|
|
|
422
457
|
signal: import("zod").ZodOptional<import("zod").ZodString>;
|
|
423
458
|
error: import("zod").ZodOptional<import("zod").ZodString>;
|
|
424
459
|
summary: import("zod").ZodOptional<import("zod").ZodString>;
|
|
460
|
+
stopReason: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
461
|
+
idle: "idle";
|
|
462
|
+
request: "request";
|
|
463
|
+
shutdown: "shutdown";
|
|
464
|
+
timeout: "timeout";
|
|
465
|
+
}>>;
|
|
466
|
+
stoppedBy: import("zod").ZodOptional<import("zod").ZodString>;
|
|
425
467
|
startedAt: import("zod").ZodNumber;
|
|
426
468
|
endedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
427
469
|
cols: import("zod").ZodNumber;
|
|
@@ -491,6 +533,13 @@ export declare const contract: {
|
|
|
491
533
|
signal: import("zod").ZodOptional<import("zod").ZodString>;
|
|
492
534
|
error: import("zod").ZodOptional<import("zod").ZodString>;
|
|
493
535
|
summary: import("zod").ZodOptional<import("zod").ZodString>;
|
|
536
|
+
stopReason: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
537
|
+
idle: "idle";
|
|
538
|
+
request: "request";
|
|
539
|
+
shutdown: "shutdown";
|
|
540
|
+
timeout: "timeout";
|
|
541
|
+
}>>;
|
|
542
|
+
stoppedBy: import("zod").ZodOptional<import("zod").ZodString>;
|
|
494
543
|
startedAt: import("zod").ZodNumber;
|
|
495
544
|
endedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
496
545
|
cols: import("zod").ZodNumber;
|
|
@@ -539,6 +588,13 @@ export declare const contract: {
|
|
|
539
588
|
signal: import("zod").ZodOptional<import("zod").ZodString>;
|
|
540
589
|
error: import("zod").ZodOptional<import("zod").ZodString>;
|
|
541
590
|
summary: import("zod").ZodOptional<import("zod").ZodString>;
|
|
591
|
+
stopReason: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
592
|
+
idle: "idle";
|
|
593
|
+
request: "request";
|
|
594
|
+
shutdown: "shutdown";
|
|
595
|
+
timeout: "timeout";
|
|
596
|
+
}>>;
|
|
597
|
+
stoppedBy: import("zod").ZodOptional<import("zod").ZodString>;
|
|
542
598
|
startedAt: import("zod").ZodNumber;
|
|
543
599
|
endedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
544
600
|
cols: import("zod").ZodNumber;
|
|
@@ -611,6 +667,13 @@ export declare const events: {
|
|
|
611
667
|
signal: import("zod").ZodOptional<import("zod").ZodString>;
|
|
612
668
|
error: import("zod").ZodOptional<import("zod").ZodString>;
|
|
613
669
|
summary: import("zod").ZodOptional<import("zod").ZodString>;
|
|
670
|
+
stopReason: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
671
|
+
idle: "idle";
|
|
672
|
+
request: "request";
|
|
673
|
+
shutdown: "shutdown";
|
|
674
|
+
timeout: "timeout";
|
|
675
|
+
}>>;
|
|
676
|
+
stoppedBy: import("zod").ZodOptional<import("zod").ZodString>;
|
|
614
677
|
startedAt: import("zod").ZodNumber;
|
|
615
678
|
endedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
616
679
|
cols: import("zod").ZodNumber;
|
|
@@ -657,6 +720,13 @@ export declare const events: {
|
|
|
657
720
|
signal: import("zod").ZodOptional<import("zod").ZodString>;
|
|
658
721
|
error: import("zod").ZodOptional<import("zod").ZodString>;
|
|
659
722
|
summary: import("zod").ZodOptional<import("zod").ZodString>;
|
|
723
|
+
stopReason: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
724
|
+
idle: "idle";
|
|
725
|
+
request: "request";
|
|
726
|
+
shutdown: "shutdown";
|
|
727
|
+
timeout: "timeout";
|
|
728
|
+
}>>;
|
|
729
|
+
stoppedBy: import("zod").ZodOptional<import("zod").ZodString>;
|
|
660
730
|
startedAt: import("zod").ZodNumber;
|
|
661
731
|
endedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
662
732
|
cols: import("zod").ZodNumber;
|
|
@@ -712,6 +782,13 @@ export declare const events: {
|
|
|
712
782
|
signal: import("zod").ZodOptional<import("zod").ZodString>;
|
|
713
783
|
error: import("zod").ZodOptional<import("zod").ZodString>;
|
|
714
784
|
summary: import("zod").ZodOptional<import("zod").ZodString>;
|
|
785
|
+
stopReason: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
786
|
+
idle: "idle";
|
|
787
|
+
request: "request";
|
|
788
|
+
shutdown: "shutdown";
|
|
789
|
+
timeout: "timeout";
|
|
790
|
+
}>>;
|
|
791
|
+
stoppedBy: import("zod").ZodOptional<import("zod").ZodString>;
|
|
715
792
|
startedAt: import("zod").ZodNumber;
|
|
716
793
|
endedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
717
794
|
cols: import("zod").ZodNumber;
|
package/types/rpc.d.ts
CHANGED
|
@@ -40,6 +40,13 @@ export declare const shellContract: {
|
|
|
40
40
|
signal: z.ZodOptional<z.ZodString>;
|
|
41
41
|
error: z.ZodOptional<z.ZodString>;
|
|
42
42
|
summary: z.ZodOptional<z.ZodString>;
|
|
43
|
+
stopReason: z.ZodOptional<z.ZodEnum<{
|
|
44
|
+
idle: "idle";
|
|
45
|
+
request: "request";
|
|
46
|
+
shutdown: "shutdown";
|
|
47
|
+
timeout: "timeout";
|
|
48
|
+
}>>;
|
|
49
|
+
stoppedBy: z.ZodOptional<z.ZodString>;
|
|
43
50
|
startedAt: z.ZodNumber;
|
|
44
51
|
endedAt: z.ZodOptional<z.ZodNumber>;
|
|
45
52
|
cols: z.ZodNumber;
|
|
@@ -93,6 +100,13 @@ export declare const shellContract: {
|
|
|
93
100
|
signal: z.ZodOptional<z.ZodString>;
|
|
94
101
|
error: z.ZodOptional<z.ZodString>;
|
|
95
102
|
summary: z.ZodOptional<z.ZodString>;
|
|
103
|
+
stopReason: z.ZodOptional<z.ZodEnum<{
|
|
104
|
+
idle: "idle";
|
|
105
|
+
request: "request";
|
|
106
|
+
shutdown: "shutdown";
|
|
107
|
+
timeout: "timeout";
|
|
108
|
+
}>>;
|
|
109
|
+
stoppedBy: z.ZodOptional<z.ZodString>;
|
|
96
110
|
startedAt: z.ZodNumber;
|
|
97
111
|
endedAt: z.ZodOptional<z.ZodNumber>;
|
|
98
112
|
cols: z.ZodNumber;
|
|
@@ -141,6 +155,13 @@ export declare const shellContract: {
|
|
|
141
155
|
signal: z.ZodOptional<z.ZodString>;
|
|
142
156
|
error: z.ZodOptional<z.ZodString>;
|
|
143
157
|
summary: z.ZodOptional<z.ZodString>;
|
|
158
|
+
stopReason: z.ZodOptional<z.ZodEnum<{
|
|
159
|
+
idle: "idle";
|
|
160
|
+
request: "request";
|
|
161
|
+
shutdown: "shutdown";
|
|
162
|
+
timeout: "timeout";
|
|
163
|
+
}>>;
|
|
164
|
+
stoppedBy: z.ZodOptional<z.ZodString>;
|
|
144
165
|
startedAt: z.ZodNumber;
|
|
145
166
|
endedAt: z.ZodOptional<z.ZodNumber>;
|
|
146
167
|
cols: z.ZodNumber;
|
|
@@ -266,6 +287,13 @@ export declare const shellContract: {
|
|
|
266
287
|
signal: z.ZodOptional<z.ZodString>;
|
|
267
288
|
error: z.ZodOptional<z.ZodString>;
|
|
268
289
|
summary: z.ZodOptional<z.ZodString>;
|
|
290
|
+
stopReason: z.ZodOptional<z.ZodEnum<{
|
|
291
|
+
idle: "idle";
|
|
292
|
+
request: "request";
|
|
293
|
+
shutdown: "shutdown";
|
|
294
|
+
timeout: "timeout";
|
|
295
|
+
}>>;
|
|
296
|
+
stoppedBy: z.ZodOptional<z.ZodString>;
|
|
269
297
|
startedAt: z.ZodNumber;
|
|
270
298
|
endedAt: z.ZodOptional<z.ZodNumber>;
|
|
271
299
|
cols: z.ZodNumber;
|
|
@@ -322,6 +350,13 @@ export declare const shellContract: {
|
|
|
322
350
|
signal: z.ZodOptional<z.ZodString>;
|
|
323
351
|
error: z.ZodOptional<z.ZodString>;
|
|
324
352
|
summary: z.ZodOptional<z.ZodString>;
|
|
353
|
+
stopReason: z.ZodOptional<z.ZodEnum<{
|
|
354
|
+
idle: "idle";
|
|
355
|
+
request: "request";
|
|
356
|
+
shutdown: "shutdown";
|
|
357
|
+
timeout: "timeout";
|
|
358
|
+
}>>;
|
|
359
|
+
stoppedBy: z.ZodOptional<z.ZodString>;
|
|
325
360
|
startedAt: z.ZodNumber;
|
|
326
361
|
endedAt: z.ZodOptional<z.ZodNumber>;
|
|
327
362
|
cols: z.ZodNumber;
|
|
@@ -370,6 +405,13 @@ export declare const shellContract: {
|
|
|
370
405
|
signal: z.ZodOptional<z.ZodString>;
|
|
371
406
|
error: z.ZodOptional<z.ZodString>;
|
|
372
407
|
summary: z.ZodOptional<z.ZodString>;
|
|
408
|
+
stopReason: z.ZodOptional<z.ZodEnum<{
|
|
409
|
+
idle: "idle";
|
|
410
|
+
request: "request";
|
|
411
|
+
shutdown: "shutdown";
|
|
412
|
+
timeout: "timeout";
|
|
413
|
+
}>>;
|
|
414
|
+
stoppedBy: z.ZodOptional<z.ZodString>;
|
|
373
415
|
startedAt: z.ZodNumber;
|
|
374
416
|
endedAt: z.ZodOptional<z.ZodNumber>;
|
|
375
417
|
cols: z.ZodNumber;
|
|
@@ -439,6 +481,13 @@ export declare const shellContract: {
|
|
|
439
481
|
signal: z.ZodOptional<z.ZodString>;
|
|
440
482
|
error: z.ZodOptional<z.ZodString>;
|
|
441
483
|
summary: z.ZodOptional<z.ZodString>;
|
|
484
|
+
stopReason: z.ZodOptional<z.ZodEnum<{
|
|
485
|
+
idle: "idle";
|
|
486
|
+
request: "request";
|
|
487
|
+
shutdown: "shutdown";
|
|
488
|
+
timeout: "timeout";
|
|
489
|
+
}>>;
|
|
490
|
+
stoppedBy: z.ZodOptional<z.ZodString>;
|
|
442
491
|
startedAt: z.ZodNumber;
|
|
443
492
|
endedAt: z.ZodOptional<z.ZodNumber>;
|
|
444
493
|
cols: z.ZodNumber;
|
|
@@ -487,6 +536,13 @@ export declare const shellContract: {
|
|
|
487
536
|
signal: z.ZodOptional<z.ZodString>;
|
|
488
537
|
error: z.ZodOptional<z.ZodString>;
|
|
489
538
|
summary: z.ZodOptional<z.ZodString>;
|
|
539
|
+
stopReason: z.ZodOptional<z.ZodEnum<{
|
|
540
|
+
idle: "idle";
|
|
541
|
+
request: "request";
|
|
542
|
+
shutdown: "shutdown";
|
|
543
|
+
timeout: "timeout";
|
|
544
|
+
}>>;
|
|
545
|
+
stoppedBy: z.ZodOptional<z.ZodString>;
|
|
490
546
|
startedAt: z.ZodNumber;
|
|
491
547
|
endedAt: z.ZodOptional<z.ZodNumber>;
|
|
492
548
|
cols: z.ZodNumber;
|
|
@@ -556,6 +612,13 @@ export declare const shellEvents: {
|
|
|
556
612
|
signal: z.ZodOptional<z.ZodString>;
|
|
557
613
|
error: z.ZodOptional<z.ZodString>;
|
|
558
614
|
summary: z.ZodOptional<z.ZodString>;
|
|
615
|
+
stopReason: z.ZodOptional<z.ZodEnum<{
|
|
616
|
+
idle: "idle";
|
|
617
|
+
request: "request";
|
|
618
|
+
shutdown: "shutdown";
|
|
619
|
+
timeout: "timeout";
|
|
620
|
+
}>>;
|
|
621
|
+
stoppedBy: z.ZodOptional<z.ZodString>;
|
|
559
622
|
startedAt: z.ZodNumber;
|
|
560
623
|
endedAt: z.ZodOptional<z.ZodNumber>;
|
|
561
624
|
cols: z.ZodNumber;
|
|
@@ -602,6 +665,13 @@ export declare const shellEvents: {
|
|
|
602
665
|
signal: z.ZodOptional<z.ZodString>;
|
|
603
666
|
error: z.ZodOptional<z.ZodString>;
|
|
604
667
|
summary: z.ZodOptional<z.ZodString>;
|
|
668
|
+
stopReason: z.ZodOptional<z.ZodEnum<{
|
|
669
|
+
idle: "idle";
|
|
670
|
+
request: "request";
|
|
671
|
+
shutdown: "shutdown";
|
|
672
|
+
timeout: "timeout";
|
|
673
|
+
}>>;
|
|
674
|
+
stoppedBy: z.ZodOptional<z.ZodString>;
|
|
605
675
|
startedAt: z.ZodNumber;
|
|
606
676
|
endedAt: z.ZodOptional<z.ZodNumber>;
|
|
607
677
|
cols: z.ZodNumber;
|
|
@@ -658,6 +728,13 @@ export declare const shellEvents: {
|
|
|
658
728
|
signal: z.ZodOptional<z.ZodString>;
|
|
659
729
|
error: z.ZodOptional<z.ZodString>;
|
|
660
730
|
summary: z.ZodOptional<z.ZodString>;
|
|
731
|
+
stopReason: z.ZodOptional<z.ZodEnum<{
|
|
732
|
+
idle: "idle";
|
|
733
|
+
request: "request";
|
|
734
|
+
shutdown: "shutdown";
|
|
735
|
+
timeout: "timeout";
|
|
736
|
+
}>>;
|
|
737
|
+
stoppedBy: z.ZodOptional<z.ZodString>;
|
|
661
738
|
startedAt: z.ZodNumber;
|
|
662
739
|
endedAt: z.ZodOptional<z.ZodNumber>;
|
|
663
740
|
cols: z.ZodNumber;
|
package/types/shell/info.d.ts
CHANGED
|
@@ -22,6 +22,13 @@ export declare const ShellInfo: z.ZodObject<{
|
|
|
22
22
|
signal: z.ZodOptional<z.ZodString>;
|
|
23
23
|
error: z.ZodOptional<z.ZodString>;
|
|
24
24
|
summary: z.ZodOptional<z.ZodString>;
|
|
25
|
+
stopReason: z.ZodOptional<z.ZodEnum<{
|
|
26
|
+
idle: "idle";
|
|
27
|
+
request: "request";
|
|
28
|
+
shutdown: "shutdown";
|
|
29
|
+
timeout: "timeout";
|
|
30
|
+
}>>;
|
|
31
|
+
stoppedBy: z.ZodOptional<z.ZodString>;
|
|
25
32
|
startedAt: z.ZodNumber;
|
|
26
33
|
endedAt: z.ZodOptional<z.ZodNumber>;
|
|
27
34
|
cols: z.ZodNumber;
|
|
@@ -46,3 +53,4 @@ export declare const ShellInfo: z.ZodObject<{
|
|
|
46
53
|
logFile: z.ZodOptional<z.ZodString>;
|
|
47
54
|
}, z.core.$strip>;
|
|
48
55
|
export type ShellInfo = z.output<typeof ShellInfo>;
|
|
56
|
+
export type StopReason = NonNullable<ShellInfo["stopReason"]>;
|
package/types/shell/params.d.ts
CHANGED
|
@@ -165,6 +165,13 @@ export declare const WaitResult: z.ZodObject<{
|
|
|
165
165
|
signal: z.ZodOptional<z.ZodString>;
|
|
166
166
|
error: z.ZodOptional<z.ZodString>;
|
|
167
167
|
summary: z.ZodOptional<z.ZodString>;
|
|
168
|
+
stopReason: z.ZodOptional<z.ZodEnum<{
|
|
169
|
+
idle: "idle";
|
|
170
|
+
request: "request";
|
|
171
|
+
shutdown: "shutdown";
|
|
172
|
+
timeout: "timeout";
|
|
173
|
+
}>>;
|
|
174
|
+
stoppedBy: z.ZodOptional<z.ZodString>;
|
|
168
175
|
startedAt: z.ZodNumber;
|
|
169
176
|
endedAt: z.ZodOptional<z.ZodNumber>;
|
|
170
177
|
cols: z.ZodNumber;
|