@opencode-cockpit/protocol 0.1.5 → 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/index.js +2 -2
- package/dist/rpc.js +1 -1
- package/dist/shell/common.js +13 -0
- package/dist/shell/contract.js +55 -0
- package/dist/shell/index.js +6 -0
- package/dist/shell/info.js +37 -0
- package/dist/{shell.js → shell/params.js} +26 -75
- package/dist/shell/watch.js +37 -0
- package/package.json +3 -3
- package/types/index.d.ts +369 -1
- package/types/rpc.d.ts +1 -1
- package/types/shell/common.d.ts +16 -0
- package/types/{shell.d.ts → shell/contract.d.ts} +383 -241
- package/types/shell/index.d.ts +6 -0
- package/types/shell/info.d.ts +56 -0
- package/types/shell/params.d.ts +222 -0
- package/types/shell/watch.d.ts +46 -0
package/types/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export * from "./daemon.ts";
|
|
|
4
4
|
export * from "./framing.ts";
|
|
5
5
|
export * from "./paths.ts";
|
|
6
6
|
export * from "./rpc.ts";
|
|
7
|
-
export * as shell from "./shell.ts";
|
|
7
|
+
export * as shell from "./shell/index.ts";
|
|
8
8
|
/** Every method the daemon serves. Adding a module means spreading its contract here. */
|
|
9
9
|
export declare const contract: {
|
|
10
10
|
"daemon.hello": import("./contract.ts").MethodSpec<import("zod").ZodObject<{
|
|
@@ -66,6 +66,8 @@ export declare const contract: {
|
|
|
66
66
|
instance: import("zod").ZodOptional<import("zod").ZodString>;
|
|
67
67
|
}, import("zod/v4/core").$strip>;
|
|
68
68
|
timeoutMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
69
|
+
idleTimeoutMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
70
|
+
logFile: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
69
71
|
reuse: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
70
72
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
71
73
|
id: import("zod").ZodString;
|
|
@@ -90,6 +92,13 @@ export declare const contract: {
|
|
|
90
92
|
signal: import("zod").ZodOptional<import("zod").ZodString>;
|
|
91
93
|
error: import("zod").ZodOptional<import("zod").ZodString>;
|
|
92
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>;
|
|
93
102
|
startedAt: import("zod").ZodNumber;
|
|
94
103
|
endedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
95
104
|
cols: import("zod").ZodNumber;
|
|
@@ -99,6 +108,19 @@ export declare const contract: {
|
|
|
99
108
|
last: import("zod").ZodNumber;
|
|
100
109
|
}, import("zod/v4/core").$strip>;
|
|
101
110
|
bytes: import("zod").ZodNumber;
|
|
111
|
+
watch: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
112
|
+
preset: import("zod").ZodOptional<import("zod").ZodString>;
|
|
113
|
+
status: import("zod").ZodEnum<{
|
|
114
|
+
fail: "fail";
|
|
115
|
+
ok: "ok";
|
|
116
|
+
pending: "pending";
|
|
117
|
+
unknown: "unknown";
|
|
118
|
+
}>;
|
|
119
|
+
summary: import("zod").ZodOptional<import("zod").ZodString>;
|
|
120
|
+
runs: import("zod").ZodNumber;
|
|
121
|
+
since: import("zod").ZodNumber;
|
|
122
|
+
}, import("zod/v4/core").$strip>>;
|
|
123
|
+
logFile: import("zod").ZodOptional<import("zod").ZodString>;
|
|
102
124
|
}, import("zod/v4/core").$strip>>;
|
|
103
125
|
"shell.list": import("./contract.ts").MethodSpec<import("zod").ZodDefault<import("zod").ZodObject<{
|
|
104
126
|
owner: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
@@ -130,6 +152,13 @@ export declare const contract: {
|
|
|
130
152
|
signal: import("zod").ZodOptional<import("zod").ZodString>;
|
|
131
153
|
error: import("zod").ZodOptional<import("zod").ZodString>;
|
|
132
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>;
|
|
133
162
|
startedAt: import("zod").ZodNumber;
|
|
134
163
|
endedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
135
164
|
cols: import("zod").ZodNumber;
|
|
@@ -139,6 +168,19 @@ export declare const contract: {
|
|
|
139
168
|
last: import("zod").ZodNumber;
|
|
140
169
|
}, import("zod/v4/core").$strip>;
|
|
141
170
|
bytes: import("zod").ZodNumber;
|
|
171
|
+
watch: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
172
|
+
preset: import("zod").ZodOptional<import("zod").ZodString>;
|
|
173
|
+
status: import("zod").ZodEnum<{
|
|
174
|
+
fail: "fail";
|
|
175
|
+
ok: "ok";
|
|
176
|
+
pending: "pending";
|
|
177
|
+
unknown: "unknown";
|
|
178
|
+
}>;
|
|
179
|
+
summary: import("zod").ZodOptional<import("zod").ZodString>;
|
|
180
|
+
runs: import("zod").ZodNumber;
|
|
181
|
+
since: import("zod").ZodNumber;
|
|
182
|
+
}, import("zod/v4/core").$strip>>;
|
|
183
|
+
logFile: import("zod").ZodOptional<import("zod").ZodString>;
|
|
142
184
|
}, import("zod/v4/core").$strip>>>;
|
|
143
185
|
"shell.get": import("./contract.ts").MethodSpec<import("zod").ZodObject<{
|
|
144
186
|
id: import("zod").ZodString;
|
|
@@ -165,6 +207,13 @@ export declare const contract: {
|
|
|
165
207
|
signal: import("zod").ZodOptional<import("zod").ZodString>;
|
|
166
208
|
error: import("zod").ZodOptional<import("zod").ZodString>;
|
|
167
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>;
|
|
168
217
|
startedAt: import("zod").ZodNumber;
|
|
169
218
|
endedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
170
219
|
cols: import("zod").ZodNumber;
|
|
@@ -174,6 +223,19 @@ export declare const contract: {
|
|
|
174
223
|
last: import("zod").ZodNumber;
|
|
175
224
|
}, import("zod/v4/core").$strip>;
|
|
176
225
|
bytes: import("zod").ZodNumber;
|
|
226
|
+
watch: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
227
|
+
preset: import("zod").ZodOptional<import("zod").ZodString>;
|
|
228
|
+
status: import("zod").ZodEnum<{
|
|
229
|
+
fail: "fail";
|
|
230
|
+
ok: "ok";
|
|
231
|
+
pending: "pending";
|
|
232
|
+
unknown: "unknown";
|
|
233
|
+
}>;
|
|
234
|
+
summary: import("zod").ZodOptional<import("zod").ZodString>;
|
|
235
|
+
runs: import("zod").ZodNumber;
|
|
236
|
+
since: import("zod").ZodNumber;
|
|
237
|
+
}, import("zod/v4/core").$strip>>;
|
|
238
|
+
logFile: import("zod").ZodOptional<import("zod").ZodString>;
|
|
177
239
|
}, import("zod/v4/core").$strip>>;
|
|
178
240
|
"shell.read": import("./contract.ts").MethodSpec<import("zod").ZodObject<{
|
|
179
241
|
id: import("zod").ZodString;
|
|
@@ -209,6 +271,15 @@ export declare const contract: {
|
|
|
209
271
|
x: import("zod").ZodNumber;
|
|
210
272
|
y: import("zod").ZodNumber;
|
|
211
273
|
}, import("zod/v4/core").$strip>;
|
|
274
|
+
styled: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodArray<import("zod").ZodObject<{
|
|
275
|
+
text: import("zod").ZodString;
|
|
276
|
+
fg: import("zod").ZodOptional<import("zod").ZodString>;
|
|
277
|
+
bg: import("zod").ZodOptional<import("zod").ZodString>;
|
|
278
|
+
bold: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
279
|
+
dim: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
280
|
+
italic: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
281
|
+
underline: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
282
|
+
}, import("zod/v4/core").$strip>>>>;
|
|
212
283
|
}, import("zod/v4/core").$strip>>;
|
|
213
284
|
"shell.write": import("./contract.ts").MethodSpec<import("zod").ZodObject<{
|
|
214
285
|
id: import("zod").ZodString;
|
|
@@ -268,6 +339,13 @@ export declare const contract: {
|
|
|
268
339
|
signal: import("zod").ZodOptional<import("zod").ZodString>;
|
|
269
340
|
error: import("zod").ZodOptional<import("zod").ZodString>;
|
|
270
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>;
|
|
271
349
|
startedAt: import("zod").ZodNumber;
|
|
272
350
|
endedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
273
351
|
cols: import("zod").ZodNumber;
|
|
@@ -277,6 +355,19 @@ export declare const contract: {
|
|
|
277
355
|
last: import("zod").ZodNumber;
|
|
278
356
|
}, import("zod/v4/core").$strip>;
|
|
279
357
|
bytes: import("zod").ZodNumber;
|
|
358
|
+
watch: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
359
|
+
preset: import("zod").ZodOptional<import("zod").ZodString>;
|
|
360
|
+
status: import("zod").ZodEnum<{
|
|
361
|
+
fail: "fail";
|
|
362
|
+
ok: "ok";
|
|
363
|
+
pending: "pending";
|
|
364
|
+
unknown: "unknown";
|
|
365
|
+
}>;
|
|
366
|
+
summary: import("zod").ZodOptional<import("zod").ZodString>;
|
|
367
|
+
runs: import("zod").ZodNumber;
|
|
368
|
+
since: import("zod").ZodNumber;
|
|
369
|
+
}, import("zod/v4/core").$strip>>;
|
|
370
|
+
logFile: import("zod").ZodOptional<import("zod").ZodString>;
|
|
280
371
|
}, import("zod/v4/core").$strip>;
|
|
281
372
|
}, import("zod/v4/core").$strip>>;
|
|
282
373
|
"shell.stop": import("./contract.ts").MethodSpec<import("zod").ZodObject<{
|
|
@@ -311,6 +402,13 @@ export declare const contract: {
|
|
|
311
402
|
signal: import("zod").ZodOptional<import("zod").ZodString>;
|
|
312
403
|
error: import("zod").ZodOptional<import("zod").ZodString>;
|
|
313
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>;
|
|
314
412
|
startedAt: import("zod").ZodNumber;
|
|
315
413
|
endedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
316
414
|
cols: import("zod").ZodNumber;
|
|
@@ -320,6 +418,19 @@ export declare const contract: {
|
|
|
320
418
|
last: import("zod").ZodNumber;
|
|
321
419
|
}, import("zod/v4/core").$strip>;
|
|
322
420
|
bytes: import("zod").ZodNumber;
|
|
421
|
+
watch: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
422
|
+
preset: import("zod").ZodOptional<import("zod").ZodString>;
|
|
423
|
+
status: import("zod").ZodEnum<{
|
|
424
|
+
fail: "fail";
|
|
425
|
+
ok: "ok";
|
|
426
|
+
pending: "pending";
|
|
427
|
+
unknown: "unknown";
|
|
428
|
+
}>;
|
|
429
|
+
summary: import("zod").ZodOptional<import("zod").ZodString>;
|
|
430
|
+
runs: import("zod").ZodNumber;
|
|
431
|
+
since: import("zod").ZodNumber;
|
|
432
|
+
}, import("zod/v4/core").$strip>>;
|
|
433
|
+
logFile: import("zod").ZodOptional<import("zod").ZodString>;
|
|
323
434
|
}, import("zod/v4/core").$strip>>;
|
|
324
435
|
"shell.restart": import("./contract.ts").MethodSpec<import("zod").ZodObject<{
|
|
325
436
|
id: import("zod").ZodString;
|
|
@@ -346,6 +457,13 @@ export declare const contract: {
|
|
|
346
457
|
signal: import("zod").ZodOptional<import("zod").ZodString>;
|
|
347
458
|
error: import("zod").ZodOptional<import("zod").ZodString>;
|
|
348
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>;
|
|
349
467
|
startedAt: import("zod").ZodNumber;
|
|
350
468
|
endedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
351
469
|
cols: import("zod").ZodNumber;
|
|
@@ -355,6 +473,19 @@ export declare const contract: {
|
|
|
355
473
|
last: import("zod").ZodNumber;
|
|
356
474
|
}, import("zod/v4/core").$strip>;
|
|
357
475
|
bytes: import("zod").ZodNumber;
|
|
476
|
+
watch: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
477
|
+
preset: import("zod").ZodOptional<import("zod").ZodString>;
|
|
478
|
+
status: import("zod").ZodEnum<{
|
|
479
|
+
fail: "fail";
|
|
480
|
+
ok: "ok";
|
|
481
|
+
pending: "pending";
|
|
482
|
+
unknown: "unknown";
|
|
483
|
+
}>;
|
|
484
|
+
summary: import("zod").ZodOptional<import("zod").ZodString>;
|
|
485
|
+
runs: import("zod").ZodNumber;
|
|
486
|
+
since: import("zod").ZodNumber;
|
|
487
|
+
}, import("zod/v4/core").$strip>>;
|
|
488
|
+
logFile: import("zod").ZodOptional<import("zod").ZodString>;
|
|
358
489
|
}, import("zod/v4/core").$strip>>;
|
|
359
490
|
"shell.remove": import("./contract.ts").MethodSpec<import("zod").ZodObject<{
|
|
360
491
|
id: import("zod").ZodString;
|
|
@@ -369,6 +500,135 @@ export declare const contract: {
|
|
|
369
500
|
}, import("zod/v4/core").$strip>>, import("zod").ZodObject<{
|
|
370
501
|
removed: import("zod").ZodArray<import("zod").ZodString>;
|
|
371
502
|
}, import("zod/v4/core").$strip>>;
|
|
503
|
+
"shell.watch": import("./contract.ts").MethodSpec<import("zod").ZodObject<{
|
|
504
|
+
id: import("zod").ZodString;
|
|
505
|
+
preset: import("zod").ZodOptional<import("zod").ZodString>;
|
|
506
|
+
rule: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
507
|
+
done: import("zod").ZodOptional<import("zod").ZodString>;
|
|
508
|
+
fail: import("zod").ZodOptional<import("zod").ZodString>;
|
|
509
|
+
ok: import("zod").ZodOptional<import("zod").ZodString>;
|
|
510
|
+
ignoreCase: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
511
|
+
idleSeconds: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
512
|
+
}, import("zod/v4/core").$strip>>;
|
|
513
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
514
|
+
id: import("zod").ZodString;
|
|
515
|
+
title: import("zod").ZodString;
|
|
516
|
+
command: import("zod").ZodString;
|
|
517
|
+
args: import("zod").ZodArray<import("zod").ZodString>;
|
|
518
|
+
cwd: import("zod").ZodString;
|
|
519
|
+
owner: import("zod").ZodObject<{
|
|
520
|
+
project: import("zod").ZodString;
|
|
521
|
+
session: import("zod").ZodOptional<import("zod").ZodString>;
|
|
522
|
+
instance: import("zod").ZodOptional<import("zod").ZodString>;
|
|
523
|
+
}, import("zod/v4/core").$strip>;
|
|
524
|
+
status: import("zod").ZodEnum<{
|
|
525
|
+
exited: "exited";
|
|
526
|
+
failed: "failed";
|
|
527
|
+
killed: "killed";
|
|
528
|
+
running: "running";
|
|
529
|
+
}>;
|
|
530
|
+
run: import("zod").ZodNumber;
|
|
531
|
+
pid: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
532
|
+
exitCode: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
533
|
+
signal: import("zod").ZodOptional<import("zod").ZodString>;
|
|
534
|
+
error: import("zod").ZodOptional<import("zod").ZodString>;
|
|
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>;
|
|
543
|
+
startedAt: import("zod").ZodNumber;
|
|
544
|
+
endedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
545
|
+
cols: import("zod").ZodNumber;
|
|
546
|
+
rows: import("zod").ZodNumber;
|
|
547
|
+
lines: import("zod").ZodObject<{
|
|
548
|
+
first: import("zod").ZodNumber;
|
|
549
|
+
last: import("zod").ZodNumber;
|
|
550
|
+
}, import("zod/v4/core").$strip>;
|
|
551
|
+
bytes: import("zod").ZodNumber;
|
|
552
|
+
watch: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
553
|
+
preset: import("zod").ZodOptional<import("zod").ZodString>;
|
|
554
|
+
status: import("zod").ZodEnum<{
|
|
555
|
+
fail: "fail";
|
|
556
|
+
ok: "ok";
|
|
557
|
+
pending: "pending";
|
|
558
|
+
unknown: "unknown";
|
|
559
|
+
}>;
|
|
560
|
+
summary: import("zod").ZodOptional<import("zod").ZodString>;
|
|
561
|
+
runs: import("zod").ZodNumber;
|
|
562
|
+
since: import("zod").ZodNumber;
|
|
563
|
+
}, import("zod/v4/core").$strip>>;
|
|
564
|
+
logFile: import("zod").ZodOptional<import("zod").ZodString>;
|
|
565
|
+
}, import("zod/v4/core").$strip>>;
|
|
566
|
+
"shell.unwatch": import("./contract.ts").MethodSpec<import("zod").ZodObject<{
|
|
567
|
+
id: import("zod").ZodString;
|
|
568
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
569
|
+
id: import("zod").ZodString;
|
|
570
|
+
title: import("zod").ZodString;
|
|
571
|
+
command: import("zod").ZodString;
|
|
572
|
+
args: import("zod").ZodArray<import("zod").ZodString>;
|
|
573
|
+
cwd: import("zod").ZodString;
|
|
574
|
+
owner: import("zod").ZodObject<{
|
|
575
|
+
project: import("zod").ZodString;
|
|
576
|
+
session: import("zod").ZodOptional<import("zod").ZodString>;
|
|
577
|
+
instance: import("zod").ZodOptional<import("zod").ZodString>;
|
|
578
|
+
}, import("zod/v4/core").$strip>;
|
|
579
|
+
status: import("zod").ZodEnum<{
|
|
580
|
+
exited: "exited";
|
|
581
|
+
failed: "failed";
|
|
582
|
+
killed: "killed";
|
|
583
|
+
running: "running";
|
|
584
|
+
}>;
|
|
585
|
+
run: import("zod").ZodNumber;
|
|
586
|
+
pid: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
587
|
+
exitCode: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
588
|
+
signal: import("zod").ZodOptional<import("zod").ZodString>;
|
|
589
|
+
error: import("zod").ZodOptional<import("zod").ZodString>;
|
|
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>;
|
|
598
|
+
startedAt: import("zod").ZodNumber;
|
|
599
|
+
endedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
600
|
+
cols: import("zod").ZodNumber;
|
|
601
|
+
rows: import("zod").ZodNumber;
|
|
602
|
+
lines: import("zod").ZodObject<{
|
|
603
|
+
first: import("zod").ZodNumber;
|
|
604
|
+
last: import("zod").ZodNumber;
|
|
605
|
+
}, import("zod/v4/core").$strip>;
|
|
606
|
+
bytes: import("zod").ZodNumber;
|
|
607
|
+
watch: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
608
|
+
preset: import("zod").ZodOptional<import("zod").ZodString>;
|
|
609
|
+
status: import("zod").ZodEnum<{
|
|
610
|
+
fail: "fail";
|
|
611
|
+
ok: "ok";
|
|
612
|
+
pending: "pending";
|
|
613
|
+
unknown: "unknown";
|
|
614
|
+
}>;
|
|
615
|
+
summary: import("zod").ZodOptional<import("zod").ZodString>;
|
|
616
|
+
runs: import("zod").ZodNumber;
|
|
617
|
+
since: import("zod").ZodNumber;
|
|
618
|
+
}, import("zod/v4/core").$strip>>;
|
|
619
|
+
logFile: import("zod").ZodOptional<import("zod").ZodString>;
|
|
620
|
+
}, import("zod/v4/core").$strip>>;
|
|
621
|
+
"shell.presets": import("./contract.ts").MethodSpec<import("zod").ZodOptional<import("zod").ZodObject<{}, import("zod/v4/core").$strip>>, import("zod").ZodArray<import("zod").ZodObject<{
|
|
622
|
+
name: import("zod").ZodString;
|
|
623
|
+
match: import("zod").ZodOptional<import("zod").ZodString>;
|
|
624
|
+
rule: import("zod").ZodObject<{
|
|
625
|
+
done: import("zod").ZodOptional<import("zod").ZodString>;
|
|
626
|
+
fail: import("zod").ZodOptional<import("zod").ZodString>;
|
|
627
|
+
ok: import("zod").ZodOptional<import("zod").ZodString>;
|
|
628
|
+
ignoreCase: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
629
|
+
idleSeconds: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
630
|
+
}, import("zod/v4/core").$strip>;
|
|
631
|
+
}, import("zod/v4/core").$strip>>>;
|
|
372
632
|
"shell.attach": import("./contract.ts").MethodSpec<import("zod").ZodObject<{
|
|
373
633
|
id: import("zod").ZodString;
|
|
374
634
|
fromOffset: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
@@ -407,6 +667,13 @@ export declare const events: {
|
|
|
407
667
|
signal: import("zod").ZodOptional<import("zod").ZodString>;
|
|
408
668
|
error: import("zod").ZodOptional<import("zod").ZodString>;
|
|
409
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>;
|
|
410
677
|
startedAt: import("zod").ZodNumber;
|
|
411
678
|
endedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
412
679
|
cols: import("zod").ZodNumber;
|
|
@@ -416,6 +683,19 @@ export declare const events: {
|
|
|
416
683
|
last: import("zod").ZodNumber;
|
|
417
684
|
}, import("zod/v4/core").$strip>;
|
|
418
685
|
bytes: import("zod").ZodNumber;
|
|
686
|
+
watch: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
687
|
+
preset: import("zod").ZodOptional<import("zod").ZodString>;
|
|
688
|
+
status: import("zod").ZodEnum<{
|
|
689
|
+
fail: "fail";
|
|
690
|
+
ok: "ok";
|
|
691
|
+
pending: "pending";
|
|
692
|
+
unknown: "unknown";
|
|
693
|
+
}>;
|
|
694
|
+
summary: import("zod").ZodOptional<import("zod").ZodString>;
|
|
695
|
+
runs: import("zod").ZodNumber;
|
|
696
|
+
since: import("zod").ZodNumber;
|
|
697
|
+
}, import("zod/v4/core").$strip>>;
|
|
698
|
+
logFile: import("zod").ZodOptional<import("zod").ZodString>;
|
|
419
699
|
}, import("zod/v4/core").$strip>;
|
|
420
700
|
"shell.exited": import("zod").ZodObject<{
|
|
421
701
|
id: import("zod").ZodString;
|
|
@@ -440,6 +720,13 @@ export declare const events: {
|
|
|
440
720
|
signal: import("zod").ZodOptional<import("zod").ZodString>;
|
|
441
721
|
error: import("zod").ZodOptional<import("zod").ZodString>;
|
|
442
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>;
|
|
443
730
|
startedAt: import("zod").ZodNumber;
|
|
444
731
|
endedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
445
732
|
cols: import("zod").ZodNumber;
|
|
@@ -449,6 +736,19 @@ export declare const events: {
|
|
|
449
736
|
last: import("zod").ZodNumber;
|
|
450
737
|
}, import("zod/v4/core").$strip>;
|
|
451
738
|
bytes: import("zod").ZodNumber;
|
|
739
|
+
watch: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
740
|
+
preset: import("zod").ZodOptional<import("zod").ZodString>;
|
|
741
|
+
status: import("zod").ZodEnum<{
|
|
742
|
+
fail: "fail";
|
|
743
|
+
ok: "ok";
|
|
744
|
+
pending: "pending";
|
|
745
|
+
unknown: "unknown";
|
|
746
|
+
}>;
|
|
747
|
+
summary: import("zod").ZodOptional<import("zod").ZodString>;
|
|
748
|
+
runs: import("zod").ZodNumber;
|
|
749
|
+
since: import("zod").ZodNumber;
|
|
750
|
+
}, import("zod/v4/core").$strip>>;
|
|
751
|
+
logFile: import("zod").ZodOptional<import("zod").ZodString>;
|
|
452
752
|
}, import("zod/v4/core").$strip>;
|
|
453
753
|
"shell.removed": import("zod").ZodObject<{
|
|
454
754
|
id: import("zod").ZodString;
|
|
@@ -458,6 +758,74 @@ export declare const events: {
|
|
|
458
758
|
offset: import("zod").ZodNumber;
|
|
459
759
|
data: import("zod").ZodString;
|
|
460
760
|
}, import("zod/v4/core").$strip>;
|
|
761
|
+
"shell.watch": import("zod").ZodObject<{
|
|
762
|
+
info: import("zod").ZodObject<{
|
|
763
|
+
id: import("zod").ZodString;
|
|
764
|
+
title: import("zod").ZodString;
|
|
765
|
+
command: import("zod").ZodString;
|
|
766
|
+
args: import("zod").ZodArray<import("zod").ZodString>;
|
|
767
|
+
cwd: import("zod").ZodString;
|
|
768
|
+
owner: import("zod").ZodObject<{
|
|
769
|
+
project: import("zod").ZodString;
|
|
770
|
+
session: import("zod").ZodOptional<import("zod").ZodString>;
|
|
771
|
+
instance: import("zod").ZodOptional<import("zod").ZodString>;
|
|
772
|
+
}, import("zod/v4/core").$strip>;
|
|
773
|
+
status: import("zod").ZodEnum<{
|
|
774
|
+
exited: "exited";
|
|
775
|
+
failed: "failed";
|
|
776
|
+
killed: "killed";
|
|
777
|
+
running: "running";
|
|
778
|
+
}>;
|
|
779
|
+
run: import("zod").ZodNumber;
|
|
780
|
+
pid: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
781
|
+
exitCode: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
782
|
+
signal: import("zod").ZodOptional<import("zod").ZodString>;
|
|
783
|
+
error: import("zod").ZodOptional<import("zod").ZodString>;
|
|
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>;
|
|
792
|
+
startedAt: import("zod").ZodNumber;
|
|
793
|
+
endedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
794
|
+
cols: import("zod").ZodNumber;
|
|
795
|
+
rows: import("zod").ZodNumber;
|
|
796
|
+
lines: import("zod").ZodObject<{
|
|
797
|
+
first: import("zod").ZodNumber;
|
|
798
|
+
last: import("zod").ZodNumber;
|
|
799
|
+
}, import("zod/v4/core").$strip>;
|
|
800
|
+
bytes: import("zod").ZodNumber;
|
|
801
|
+
watch: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
802
|
+
preset: import("zod").ZodOptional<import("zod").ZodString>;
|
|
803
|
+
status: import("zod").ZodEnum<{
|
|
804
|
+
fail: "fail";
|
|
805
|
+
ok: "ok";
|
|
806
|
+
pending: "pending";
|
|
807
|
+
unknown: "unknown";
|
|
808
|
+
}>;
|
|
809
|
+
summary: import("zod").ZodOptional<import("zod").ZodString>;
|
|
810
|
+
runs: import("zod").ZodNumber;
|
|
811
|
+
since: import("zod").ZodNumber;
|
|
812
|
+
}, import("zod/v4/core").$strip>>;
|
|
813
|
+
logFile: import("zod").ZodOptional<import("zod").ZodString>;
|
|
814
|
+
}, import("zod/v4/core").$strip>;
|
|
815
|
+
previous: import("zod").ZodEnum<{
|
|
816
|
+
fail: "fail";
|
|
817
|
+
ok: "ok";
|
|
818
|
+
pending: "pending";
|
|
819
|
+
unknown: "unknown";
|
|
820
|
+
}>;
|
|
821
|
+
current: import("zod").ZodEnum<{
|
|
822
|
+
fail: "fail";
|
|
823
|
+
ok: "ok";
|
|
824
|
+
pending: "pending";
|
|
825
|
+
unknown: "unknown";
|
|
826
|
+
}>;
|
|
827
|
+
summary: import("zod").ZodOptional<import("zod").ZodString>;
|
|
828
|
+
}, import("zod/v4/core").$strip>;
|
|
461
829
|
};
|
|
462
830
|
export type Events = typeof events;
|
|
463
831
|
export type Topic = keyof Events;
|
package/types/rpc.d.ts
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** Identity and ownership, shared by every shell message. */
|
|
3
|
+
export declare const ShellId: z.ZodString;
|
|
4
|
+
export declare const Owner: z.ZodObject<{
|
|
5
|
+
project: z.ZodString;
|
|
6
|
+
session: z.ZodOptional<z.ZodString>;
|
|
7
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
export declare const ShellStatus: z.ZodEnum<{
|
|
10
|
+
exited: "exited";
|
|
11
|
+
failed: "failed";
|
|
12
|
+
killed: "killed";
|
|
13
|
+
running: "running";
|
|
14
|
+
}>;
|
|
15
|
+
export type Owner = z.output<typeof Owner>;
|
|
16
|
+
export type ShellStatus = z.output<typeof ShellStatus>;
|