@devframes/plugin-terminals 0.0.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.
@@ -0,0 +1,695 @@
1
+ import { TerminalPreset, TerminalsSharedState } from "../types.mjs";
2
+ import * as _$valibot from "valibot";
3
+ import * as _$devframe from "devframe";
4
+ import * as _$devframe_rpc0 from "devframe/rpc";
5
+ import { RpcDefinitionsToFunctions } from "devframe/rpc";
6
+
7
+ //#region src/rpc/index.d.ts
8
+ declare const serverFunctions: readonly [{
9
+ name: "devframes-plugin-terminals:list";
10
+ type?: "query" | undefined;
11
+ cacheable?: boolean;
12
+ args: readonly [];
13
+ returns: _$valibot.ArraySchema<_$valibot.ObjectSchema<{
14
+ readonly id: _$valibot.StringSchema<undefined>;
15
+ readonly title: _$valibot.StringSchema<undefined>;
16
+ readonly processName: _$valibot.OptionalSchema<_$valibot.StringSchema<undefined>, undefined>;
17
+ readonly customTitle: _$valibot.OptionalSchema<_$valibot.StringSchema<undefined>, undefined>;
18
+ readonly mode: _$valibot.PicklistSchema<["interactive", "readonly"], undefined>;
19
+ readonly status: _$valibot.PicklistSchema<["running", "exited", "error"], undefined>;
20
+ readonly backend: _$valibot.PicklistSchema<["pty", "pipe"], undefined>;
21
+ readonly command: _$valibot.StringSchema<undefined>;
22
+ readonly args: _$valibot.ArraySchema<_$valibot.StringSchema<undefined>, undefined>;
23
+ readonly cwd: _$valibot.StringSchema<undefined>;
24
+ readonly cols: _$valibot.NumberSchema<undefined>;
25
+ readonly rows: _$valibot.NumberSchema<undefined>;
26
+ readonly pid: _$valibot.OptionalSchema<_$valibot.NumberSchema<undefined>, undefined>;
27
+ readonly exitCode: _$valibot.OptionalSchema<_$valibot.NumberSchema<undefined>, undefined>;
28
+ readonly icon: _$valibot.OptionalSchema<_$valibot.StringSchema<undefined>, undefined>;
29
+ readonly channel: _$valibot.OptionalSchema<_$valibot.StringSchema<undefined>, undefined>;
30
+ readonly presetId: _$valibot.OptionalSchema<_$valibot.StringSchema<undefined>, undefined>;
31
+ readonly createdAt: _$valibot.NumberSchema<undefined>;
32
+ }, undefined>, undefined>;
33
+ jsonSerializable?: boolean;
34
+ agent?: _$devframe.RpcFunctionAgentOptions;
35
+ setup?: ((context: _$devframe.DevframeNodeContext) => _$devframe_rpc0.Thenable<_$devframe_rpc0.RpcFunctionSetupResult<[], {
36
+ id: string;
37
+ title: string;
38
+ processName?: string | undefined;
39
+ customTitle?: string | undefined;
40
+ mode: "interactive" | "readonly";
41
+ status: "running" | "exited" | "error";
42
+ backend: "pty" | "pipe";
43
+ command: string;
44
+ args: string[];
45
+ cwd: string;
46
+ cols: number;
47
+ rows: number;
48
+ pid?: number | undefined;
49
+ exitCode?: number | undefined;
50
+ icon?: string | undefined;
51
+ channel?: string | undefined;
52
+ presetId?: string | undefined;
53
+ createdAt: number;
54
+ }[]>>) | undefined;
55
+ handler?: (() => {
56
+ id: string;
57
+ title: string;
58
+ processName?: string | undefined;
59
+ customTitle?: string | undefined;
60
+ mode: "interactive" | "readonly";
61
+ status: "running" | "exited" | "error";
62
+ backend: "pty" | "pipe";
63
+ command: string;
64
+ args: string[];
65
+ cwd: string;
66
+ cols: number;
67
+ rows: number;
68
+ pid?: number | undefined;
69
+ exitCode?: number | undefined;
70
+ icon?: string | undefined;
71
+ channel?: string | undefined;
72
+ presetId?: string | undefined;
73
+ createdAt: number;
74
+ }[]) | undefined;
75
+ dump?: _$devframe_rpc0.RpcDump<[], {
76
+ id: string;
77
+ title: string;
78
+ processName?: string | undefined;
79
+ customTitle?: string | undefined;
80
+ mode: "interactive" | "readonly";
81
+ status: "running" | "exited" | "error";
82
+ backend: "pty" | "pipe";
83
+ command: string;
84
+ args: string[];
85
+ cwd: string;
86
+ cols: number;
87
+ rows: number;
88
+ pid?: number | undefined;
89
+ exitCode?: number | undefined;
90
+ icon?: string | undefined;
91
+ channel?: string | undefined;
92
+ presetId?: string | undefined;
93
+ createdAt: number;
94
+ }[], _$devframe.DevframeNodeContext> | undefined;
95
+ snapshot?: boolean;
96
+ __cache?: WeakMap<object, _$devframe_rpc0.Thenable<_$devframe_rpc0.RpcFunctionSetupResult<[], {
97
+ id: string;
98
+ title: string;
99
+ processName?: string | undefined;
100
+ customTitle?: string | undefined;
101
+ mode: "interactive" | "readonly";
102
+ status: "running" | "exited" | "error";
103
+ backend: "pty" | "pipe";
104
+ command: string;
105
+ args: string[];
106
+ cwd: string;
107
+ cols: number;
108
+ rows: number;
109
+ pid?: number | undefined;
110
+ exitCode?: number | undefined;
111
+ icon?: string | undefined;
112
+ channel?: string | undefined;
113
+ presetId?: string | undefined;
114
+ createdAt: number;
115
+ }[]>>> | undefined;
116
+ __promise?: _$devframe_rpc0.Thenable<_$devframe_rpc0.RpcFunctionSetupResult<[], {
117
+ id: string;
118
+ title: string;
119
+ processName?: string | undefined;
120
+ customTitle?: string | undefined;
121
+ mode: "interactive" | "readonly";
122
+ status: "running" | "exited" | "error";
123
+ backend: "pty" | "pipe";
124
+ command: string;
125
+ args: string[];
126
+ cwd: string;
127
+ cols: number;
128
+ rows: number;
129
+ pid?: number | undefined;
130
+ exitCode?: number | undefined;
131
+ icon?: string | undefined;
132
+ channel?: string | undefined;
133
+ presetId?: string | undefined;
134
+ createdAt: number;
135
+ }[]>> | undefined;
136
+ }, {
137
+ name: "devframes-plugin-terminals:presets";
138
+ type?: "query" | undefined;
139
+ cacheable?: boolean;
140
+ args: readonly [];
141
+ returns: _$valibot.ArraySchema<_$valibot.ObjectSchema<{
142
+ readonly id: _$valibot.StringSchema<undefined>;
143
+ readonly title: _$valibot.StringSchema<undefined>;
144
+ readonly command: _$valibot.StringSchema<undefined>;
145
+ readonly args: _$valibot.ArraySchema<_$valibot.StringSchema<undefined>, undefined>;
146
+ readonly mode: _$valibot.PicklistSchema<["interactive", "readonly"], undefined>;
147
+ readonly icon: _$valibot.OptionalSchema<_$valibot.StringSchema<undefined>, undefined>;
148
+ }, undefined>, undefined>;
149
+ jsonSerializable?: boolean;
150
+ agent?: _$devframe.RpcFunctionAgentOptions;
151
+ setup?: ((context: _$devframe.DevframeNodeContext) => _$devframe_rpc0.Thenable<_$devframe_rpc0.RpcFunctionSetupResult<[], {
152
+ id: string;
153
+ title: string;
154
+ command: string;
155
+ args: string[];
156
+ mode: "interactive" | "readonly";
157
+ icon?: string | undefined;
158
+ }[]>>) | undefined;
159
+ handler?: (() => {
160
+ id: string;
161
+ title: string;
162
+ command: string;
163
+ args: string[];
164
+ mode: "interactive" | "readonly";
165
+ icon?: string | undefined;
166
+ }[]) | undefined;
167
+ dump?: _$devframe_rpc0.RpcDump<[], {
168
+ id: string;
169
+ title: string;
170
+ command: string;
171
+ args: string[];
172
+ mode: "interactive" | "readonly";
173
+ icon?: string | undefined;
174
+ }[], _$devframe.DevframeNodeContext> | undefined;
175
+ snapshot?: boolean;
176
+ __cache?: WeakMap<object, _$devframe_rpc0.Thenable<_$devframe_rpc0.RpcFunctionSetupResult<[], {
177
+ id: string;
178
+ title: string;
179
+ command: string;
180
+ args: string[];
181
+ mode: "interactive" | "readonly";
182
+ icon?: string | undefined;
183
+ }[]>>> | undefined;
184
+ __promise?: _$devframe_rpc0.Thenable<_$devframe_rpc0.RpcFunctionSetupResult<[], {
185
+ id: string;
186
+ title: string;
187
+ command: string;
188
+ args: string[];
189
+ mode: "interactive" | "readonly";
190
+ icon?: string | undefined;
191
+ }[]>> | undefined;
192
+ }, {
193
+ name: "devframes-plugin-terminals:spawn";
194
+ type?: "action" | undefined;
195
+ cacheable?: boolean;
196
+ args: readonly [_$valibot.ObjectSchema<{
197
+ readonly presetId: _$valibot.OptionalSchema<_$valibot.StringSchema<undefined>, undefined>;
198
+ readonly command: _$valibot.OptionalSchema<_$valibot.StringSchema<undefined>, undefined>;
199
+ readonly args: _$valibot.OptionalSchema<_$valibot.ArraySchema<_$valibot.StringSchema<undefined>, undefined>, undefined>;
200
+ readonly cwd: _$valibot.OptionalSchema<_$valibot.StringSchema<undefined>, undefined>;
201
+ readonly mode: _$valibot.OptionalSchema<_$valibot.PicklistSchema<["interactive", "readonly"], undefined>, undefined>;
202
+ readonly title: _$valibot.OptionalSchema<_$valibot.StringSchema<undefined>, undefined>;
203
+ readonly cols: _$valibot.OptionalSchema<_$valibot.NumberSchema<undefined>, undefined>;
204
+ readonly rows: _$valibot.OptionalSchema<_$valibot.NumberSchema<undefined>, undefined>;
205
+ readonly env: _$valibot.OptionalSchema<_$valibot.RecordSchema<_$valibot.StringSchema<undefined>, _$valibot.StringSchema<undefined>, undefined>, undefined>;
206
+ }, undefined>];
207
+ returns: _$valibot.ObjectSchema<{
208
+ readonly id: _$valibot.StringSchema<undefined>;
209
+ readonly title: _$valibot.StringSchema<undefined>;
210
+ readonly processName: _$valibot.OptionalSchema<_$valibot.StringSchema<undefined>, undefined>;
211
+ readonly customTitle: _$valibot.OptionalSchema<_$valibot.StringSchema<undefined>, undefined>;
212
+ readonly mode: _$valibot.PicklistSchema<["interactive", "readonly"], undefined>;
213
+ readonly status: _$valibot.PicklistSchema<["running", "exited", "error"], undefined>;
214
+ readonly backend: _$valibot.PicklistSchema<["pty", "pipe"], undefined>;
215
+ readonly command: _$valibot.StringSchema<undefined>;
216
+ readonly args: _$valibot.ArraySchema<_$valibot.StringSchema<undefined>, undefined>;
217
+ readonly cwd: _$valibot.StringSchema<undefined>;
218
+ readonly cols: _$valibot.NumberSchema<undefined>;
219
+ readonly rows: _$valibot.NumberSchema<undefined>;
220
+ readonly pid: _$valibot.OptionalSchema<_$valibot.NumberSchema<undefined>, undefined>;
221
+ readonly exitCode: _$valibot.OptionalSchema<_$valibot.NumberSchema<undefined>, undefined>;
222
+ readonly icon: _$valibot.OptionalSchema<_$valibot.StringSchema<undefined>, undefined>;
223
+ readonly channel: _$valibot.OptionalSchema<_$valibot.StringSchema<undefined>, undefined>;
224
+ readonly presetId: _$valibot.OptionalSchema<_$valibot.StringSchema<undefined>, undefined>;
225
+ readonly createdAt: _$valibot.NumberSchema<undefined>;
226
+ }, undefined>;
227
+ jsonSerializable?: boolean;
228
+ agent?: _$devframe.RpcFunctionAgentOptions;
229
+ setup?: ((context: _$devframe.DevframeNodeContext) => _$devframe_rpc0.Thenable<_$devframe_rpc0.RpcFunctionSetupResult<[{
230
+ presetId?: string | undefined;
231
+ command?: string | undefined;
232
+ args?: string[] | undefined;
233
+ cwd?: string | undefined;
234
+ mode?: "interactive" | "readonly" | undefined;
235
+ title?: string | undefined;
236
+ cols?: number | undefined;
237
+ rows?: number | undefined;
238
+ env?: {
239
+ [x: string]: string;
240
+ } | undefined;
241
+ }], {
242
+ id: string;
243
+ title: string;
244
+ processName?: string | undefined;
245
+ customTitle?: string | undefined;
246
+ mode: "interactive" | "readonly";
247
+ status: "running" | "exited" | "error";
248
+ backend: "pty" | "pipe";
249
+ command: string;
250
+ args: string[];
251
+ cwd: string;
252
+ cols: number;
253
+ rows: number;
254
+ pid?: number | undefined;
255
+ exitCode?: number | undefined;
256
+ icon?: string | undefined;
257
+ channel?: string | undefined;
258
+ presetId?: string | undefined;
259
+ createdAt: number;
260
+ }>>) | undefined;
261
+ handler?: ((args_0: {
262
+ presetId?: string | undefined;
263
+ command?: string | undefined;
264
+ args?: string[] | undefined;
265
+ cwd?: string | undefined;
266
+ mode?: "interactive" | "readonly" | undefined;
267
+ title?: string | undefined;
268
+ cols?: number | undefined;
269
+ rows?: number | undefined;
270
+ env?: {
271
+ [x: string]: string;
272
+ } | undefined;
273
+ }) => {
274
+ id: string;
275
+ title: string;
276
+ processName?: string | undefined;
277
+ customTitle?: string | undefined;
278
+ mode: "interactive" | "readonly";
279
+ status: "running" | "exited" | "error";
280
+ backend: "pty" | "pipe";
281
+ command: string;
282
+ args: string[];
283
+ cwd: string;
284
+ cols: number;
285
+ rows: number;
286
+ pid?: number | undefined;
287
+ exitCode?: number | undefined;
288
+ icon?: string | undefined;
289
+ channel?: string | undefined;
290
+ presetId?: string | undefined;
291
+ createdAt: number;
292
+ }) | undefined;
293
+ dump?: _$devframe_rpc0.RpcDump<[{
294
+ presetId?: string | undefined;
295
+ command?: string | undefined;
296
+ args?: string[] | undefined;
297
+ cwd?: string | undefined;
298
+ mode?: "interactive" | "readonly" | undefined;
299
+ title?: string | undefined;
300
+ cols?: number | undefined;
301
+ rows?: number | undefined;
302
+ env?: {
303
+ [x: string]: string;
304
+ } | undefined;
305
+ }], {
306
+ id: string;
307
+ title: string;
308
+ processName?: string | undefined;
309
+ customTitle?: string | undefined;
310
+ mode: "interactive" | "readonly";
311
+ status: "running" | "exited" | "error";
312
+ backend: "pty" | "pipe";
313
+ command: string;
314
+ args: string[];
315
+ cwd: string;
316
+ cols: number;
317
+ rows: number;
318
+ pid?: number | undefined;
319
+ exitCode?: number | undefined;
320
+ icon?: string | undefined;
321
+ channel?: string | undefined;
322
+ presetId?: string | undefined;
323
+ createdAt: number;
324
+ }, _$devframe.DevframeNodeContext> | undefined;
325
+ snapshot?: boolean;
326
+ __cache?: WeakMap<object, _$devframe_rpc0.Thenable<_$devframe_rpc0.RpcFunctionSetupResult<[{
327
+ presetId?: string | undefined;
328
+ command?: string | undefined;
329
+ args?: string[] | undefined;
330
+ cwd?: string | undefined;
331
+ mode?: "interactive" | "readonly" | undefined;
332
+ title?: string | undefined;
333
+ cols?: number | undefined;
334
+ rows?: number | undefined;
335
+ env?: {
336
+ [x: string]: string;
337
+ } | undefined;
338
+ }], {
339
+ id: string;
340
+ title: string;
341
+ processName?: string | undefined;
342
+ customTitle?: string | undefined;
343
+ mode: "interactive" | "readonly";
344
+ status: "running" | "exited" | "error";
345
+ backend: "pty" | "pipe";
346
+ command: string;
347
+ args: string[];
348
+ cwd: string;
349
+ cols: number;
350
+ rows: number;
351
+ pid?: number | undefined;
352
+ exitCode?: number | undefined;
353
+ icon?: string | undefined;
354
+ channel?: string | undefined;
355
+ presetId?: string | undefined;
356
+ createdAt: number;
357
+ }>>> | undefined;
358
+ __promise?: _$devframe_rpc0.Thenable<_$devframe_rpc0.RpcFunctionSetupResult<[{
359
+ presetId?: string | undefined;
360
+ command?: string | undefined;
361
+ args?: string[] | undefined;
362
+ cwd?: string | undefined;
363
+ mode?: "interactive" | "readonly" | undefined;
364
+ title?: string | undefined;
365
+ cols?: number | undefined;
366
+ rows?: number | undefined;
367
+ env?: {
368
+ [x: string]: string;
369
+ } | undefined;
370
+ }], {
371
+ id: string;
372
+ title: string;
373
+ processName?: string | undefined;
374
+ customTitle?: string | undefined;
375
+ mode: "interactive" | "readonly";
376
+ status: "running" | "exited" | "error";
377
+ backend: "pty" | "pipe";
378
+ command: string;
379
+ args: string[];
380
+ cwd: string;
381
+ cols: number;
382
+ rows: number;
383
+ pid?: number | undefined;
384
+ exitCode?: number | undefined;
385
+ icon?: string | undefined;
386
+ channel?: string | undefined;
387
+ presetId?: string | undefined;
388
+ createdAt: number;
389
+ }>> | undefined;
390
+ }, {
391
+ name: "devframes-plugin-terminals:write";
392
+ type?: "action" | undefined;
393
+ cacheable?: boolean;
394
+ args: readonly [_$valibot.ObjectSchema<{
395
+ readonly id: _$valibot.StringSchema<undefined>;
396
+ readonly data: _$valibot.StringSchema<undefined>;
397
+ }, undefined>];
398
+ returns: _$valibot.VoidSchema<undefined>;
399
+ jsonSerializable?: boolean;
400
+ agent?: _$devframe.RpcFunctionAgentOptions;
401
+ setup?: ((context: _$devframe.DevframeNodeContext) => _$devframe_rpc0.Thenable<_$devframe_rpc0.RpcFunctionSetupResult<[{
402
+ id: string;
403
+ data: string;
404
+ }], void>>) | undefined;
405
+ handler?: ((args_0: {
406
+ id: string;
407
+ data: string;
408
+ }) => void) | undefined;
409
+ dump?: _$devframe_rpc0.RpcDump<[{
410
+ id: string;
411
+ data: string;
412
+ }], void, _$devframe.DevframeNodeContext> | undefined;
413
+ snapshot?: boolean;
414
+ __cache?: WeakMap<object, _$devframe_rpc0.Thenable<_$devframe_rpc0.RpcFunctionSetupResult<[{
415
+ id: string;
416
+ data: string;
417
+ }], void>>> | undefined;
418
+ __promise?: _$devframe_rpc0.Thenable<_$devframe_rpc0.RpcFunctionSetupResult<[{
419
+ id: string;
420
+ data: string;
421
+ }], void>> | undefined;
422
+ }, {
423
+ name: "devframes-plugin-terminals:resize";
424
+ type?: "action" | undefined;
425
+ cacheable?: boolean;
426
+ args: readonly [_$valibot.ObjectSchema<{
427
+ readonly id: _$valibot.StringSchema<undefined>;
428
+ readonly cols: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.IntegerAction<number, undefined>, _$valibot.MinValueAction<number, 1, undefined>]>;
429
+ readonly rows: _$valibot.SchemaWithPipe<readonly [_$valibot.NumberSchema<undefined>, _$valibot.IntegerAction<number, undefined>, _$valibot.MinValueAction<number, 1, undefined>]>;
430
+ }, undefined>];
431
+ returns: _$valibot.VoidSchema<undefined>;
432
+ jsonSerializable?: boolean;
433
+ agent?: _$devframe.RpcFunctionAgentOptions;
434
+ setup?: ((context: _$devframe.DevframeNodeContext) => _$devframe_rpc0.Thenable<_$devframe_rpc0.RpcFunctionSetupResult<[{
435
+ id: string;
436
+ cols: number;
437
+ rows: number;
438
+ }], void>>) | undefined;
439
+ handler?: ((args_0: {
440
+ id: string;
441
+ cols: number;
442
+ rows: number;
443
+ }) => void) | undefined;
444
+ dump?: _$devframe_rpc0.RpcDump<[{
445
+ id: string;
446
+ cols: number;
447
+ rows: number;
448
+ }], void, _$devframe.DevframeNodeContext> | undefined;
449
+ snapshot?: boolean;
450
+ __cache?: WeakMap<object, _$devframe_rpc0.Thenable<_$devframe_rpc0.RpcFunctionSetupResult<[{
451
+ id: string;
452
+ cols: number;
453
+ rows: number;
454
+ }], void>>> | undefined;
455
+ __promise?: _$devframe_rpc0.Thenable<_$devframe_rpc0.RpcFunctionSetupResult<[{
456
+ id: string;
457
+ cols: number;
458
+ rows: number;
459
+ }], void>> | undefined;
460
+ }, {
461
+ name: "devframes-plugin-terminals:terminate";
462
+ type?: "action" | undefined;
463
+ cacheable?: boolean;
464
+ args: readonly [_$valibot.ObjectSchema<{
465
+ readonly id: _$valibot.StringSchema<undefined>;
466
+ }, undefined>];
467
+ returns: _$valibot.VoidSchema<undefined>;
468
+ jsonSerializable?: boolean;
469
+ agent?: _$devframe.RpcFunctionAgentOptions;
470
+ setup?: ((context: _$devframe.DevframeNodeContext) => _$devframe_rpc0.Thenable<_$devframe_rpc0.RpcFunctionSetupResult<[{
471
+ id: string;
472
+ }], void>>) | undefined;
473
+ handler?: ((args_0: {
474
+ id: string;
475
+ }) => void) | undefined;
476
+ dump?: _$devframe_rpc0.RpcDump<[{
477
+ id: string;
478
+ }], void, _$devframe.DevframeNodeContext> | undefined;
479
+ snapshot?: boolean;
480
+ __cache?: WeakMap<object, _$devframe_rpc0.Thenable<_$devframe_rpc0.RpcFunctionSetupResult<[{
481
+ id: string;
482
+ }], void>>> | undefined;
483
+ __promise?: _$devframe_rpc0.Thenable<_$devframe_rpc0.RpcFunctionSetupResult<[{
484
+ id: string;
485
+ }], void>> | undefined;
486
+ }, {
487
+ name: "devframes-plugin-terminals:restart";
488
+ type?: "action" | undefined;
489
+ cacheable?: boolean;
490
+ args: readonly [_$valibot.ObjectSchema<{
491
+ readonly id: _$valibot.StringSchema<undefined>;
492
+ }, undefined>];
493
+ returns: _$valibot.ObjectSchema<{
494
+ readonly id: _$valibot.StringSchema<undefined>;
495
+ readonly title: _$valibot.StringSchema<undefined>;
496
+ readonly processName: _$valibot.OptionalSchema<_$valibot.StringSchema<undefined>, undefined>;
497
+ readonly customTitle: _$valibot.OptionalSchema<_$valibot.StringSchema<undefined>, undefined>;
498
+ readonly mode: _$valibot.PicklistSchema<["interactive", "readonly"], undefined>;
499
+ readonly status: _$valibot.PicklistSchema<["running", "exited", "error"], undefined>;
500
+ readonly backend: _$valibot.PicklistSchema<["pty", "pipe"], undefined>;
501
+ readonly command: _$valibot.StringSchema<undefined>;
502
+ readonly args: _$valibot.ArraySchema<_$valibot.StringSchema<undefined>, undefined>;
503
+ readonly cwd: _$valibot.StringSchema<undefined>;
504
+ readonly cols: _$valibot.NumberSchema<undefined>;
505
+ readonly rows: _$valibot.NumberSchema<undefined>;
506
+ readonly pid: _$valibot.OptionalSchema<_$valibot.NumberSchema<undefined>, undefined>;
507
+ readonly exitCode: _$valibot.OptionalSchema<_$valibot.NumberSchema<undefined>, undefined>;
508
+ readonly icon: _$valibot.OptionalSchema<_$valibot.StringSchema<undefined>, undefined>;
509
+ readonly channel: _$valibot.OptionalSchema<_$valibot.StringSchema<undefined>, undefined>;
510
+ readonly presetId: _$valibot.OptionalSchema<_$valibot.StringSchema<undefined>, undefined>;
511
+ readonly createdAt: _$valibot.NumberSchema<undefined>;
512
+ }, undefined>;
513
+ jsonSerializable?: boolean;
514
+ agent?: _$devframe.RpcFunctionAgentOptions;
515
+ setup?: ((context: _$devframe.DevframeNodeContext) => _$devframe_rpc0.Thenable<_$devframe_rpc0.RpcFunctionSetupResult<[{
516
+ id: string;
517
+ }], {
518
+ id: string;
519
+ title: string;
520
+ processName?: string | undefined;
521
+ customTitle?: string | undefined;
522
+ mode: "interactive" | "readonly";
523
+ status: "running" | "exited" | "error";
524
+ backend: "pty" | "pipe";
525
+ command: string;
526
+ args: string[];
527
+ cwd: string;
528
+ cols: number;
529
+ rows: number;
530
+ pid?: number | undefined;
531
+ exitCode?: number | undefined;
532
+ icon?: string | undefined;
533
+ channel?: string | undefined;
534
+ presetId?: string | undefined;
535
+ createdAt: number;
536
+ }>>) | undefined;
537
+ handler?: ((args_0: {
538
+ id: string;
539
+ }) => {
540
+ id: string;
541
+ title: string;
542
+ processName?: string | undefined;
543
+ customTitle?: string | undefined;
544
+ mode: "interactive" | "readonly";
545
+ status: "running" | "exited" | "error";
546
+ backend: "pty" | "pipe";
547
+ command: string;
548
+ args: string[];
549
+ cwd: string;
550
+ cols: number;
551
+ rows: number;
552
+ pid?: number | undefined;
553
+ exitCode?: number | undefined;
554
+ icon?: string | undefined;
555
+ channel?: string | undefined;
556
+ presetId?: string | undefined;
557
+ createdAt: number;
558
+ }) | undefined;
559
+ dump?: _$devframe_rpc0.RpcDump<[{
560
+ id: string;
561
+ }], {
562
+ id: string;
563
+ title: string;
564
+ processName?: string | undefined;
565
+ customTitle?: string | undefined;
566
+ mode: "interactive" | "readonly";
567
+ status: "running" | "exited" | "error";
568
+ backend: "pty" | "pipe";
569
+ command: string;
570
+ args: string[];
571
+ cwd: string;
572
+ cols: number;
573
+ rows: number;
574
+ pid?: number | undefined;
575
+ exitCode?: number | undefined;
576
+ icon?: string | undefined;
577
+ channel?: string | undefined;
578
+ presetId?: string | undefined;
579
+ createdAt: number;
580
+ }, _$devframe.DevframeNodeContext> | undefined;
581
+ snapshot?: boolean;
582
+ __cache?: WeakMap<object, _$devframe_rpc0.Thenable<_$devframe_rpc0.RpcFunctionSetupResult<[{
583
+ id: string;
584
+ }], {
585
+ id: string;
586
+ title: string;
587
+ processName?: string | undefined;
588
+ customTitle?: string | undefined;
589
+ mode: "interactive" | "readonly";
590
+ status: "running" | "exited" | "error";
591
+ backend: "pty" | "pipe";
592
+ command: string;
593
+ args: string[];
594
+ cwd: string;
595
+ cols: number;
596
+ rows: number;
597
+ pid?: number | undefined;
598
+ exitCode?: number | undefined;
599
+ icon?: string | undefined;
600
+ channel?: string | undefined;
601
+ presetId?: string | undefined;
602
+ createdAt: number;
603
+ }>>> | undefined;
604
+ __promise?: _$devframe_rpc0.Thenable<_$devframe_rpc0.RpcFunctionSetupResult<[{
605
+ id: string;
606
+ }], {
607
+ id: string;
608
+ title: string;
609
+ processName?: string | undefined;
610
+ customTitle?: string | undefined;
611
+ mode: "interactive" | "readonly";
612
+ status: "running" | "exited" | "error";
613
+ backend: "pty" | "pipe";
614
+ command: string;
615
+ args: string[];
616
+ cwd: string;
617
+ cols: number;
618
+ rows: number;
619
+ pid?: number | undefined;
620
+ exitCode?: number | undefined;
621
+ icon?: string | undefined;
622
+ channel?: string | undefined;
623
+ presetId?: string | undefined;
624
+ createdAt: number;
625
+ }>> | undefined;
626
+ }, {
627
+ name: "devframes-plugin-terminals:rename";
628
+ type?: "action" | undefined;
629
+ cacheable?: boolean;
630
+ args: readonly [_$valibot.ObjectSchema<{
631
+ readonly id: _$valibot.StringSchema<undefined>;
632
+ readonly title: _$valibot.StringSchema<undefined>;
633
+ }, undefined>];
634
+ returns: _$valibot.VoidSchema<undefined>;
635
+ jsonSerializable?: boolean;
636
+ agent?: _$devframe.RpcFunctionAgentOptions;
637
+ setup?: ((context: _$devframe.DevframeNodeContext) => _$devframe_rpc0.Thenable<_$devframe_rpc0.RpcFunctionSetupResult<[{
638
+ id: string;
639
+ title: string;
640
+ }], void>>) | undefined;
641
+ handler?: ((args_0: {
642
+ id: string;
643
+ title: string;
644
+ }) => void) | undefined;
645
+ dump?: _$devframe_rpc0.RpcDump<[{
646
+ id: string;
647
+ title: string;
648
+ }], void, _$devframe.DevframeNodeContext> | undefined;
649
+ snapshot?: boolean;
650
+ __cache?: WeakMap<object, _$devframe_rpc0.Thenable<_$devframe_rpc0.RpcFunctionSetupResult<[{
651
+ id: string;
652
+ title: string;
653
+ }], void>>> | undefined;
654
+ __promise?: _$devframe_rpc0.Thenable<_$devframe_rpc0.RpcFunctionSetupResult<[{
655
+ id: string;
656
+ title: string;
657
+ }], void>> | undefined;
658
+ }, {
659
+ name: "devframes-plugin-terminals:remove";
660
+ type?: "action" | undefined;
661
+ cacheable?: boolean;
662
+ args: readonly [_$valibot.ObjectSchema<{
663
+ readonly id: _$valibot.StringSchema<undefined>;
664
+ }, undefined>];
665
+ returns: _$valibot.VoidSchema<undefined>;
666
+ jsonSerializable?: boolean;
667
+ agent?: _$devframe.RpcFunctionAgentOptions;
668
+ setup?: ((context: _$devframe.DevframeNodeContext) => _$devframe_rpc0.Thenable<_$devframe_rpc0.RpcFunctionSetupResult<[{
669
+ id: string;
670
+ }], void>>) | undefined;
671
+ handler?: ((args_0: {
672
+ id: string;
673
+ }) => void) | undefined;
674
+ dump?: _$devframe_rpc0.RpcDump<[{
675
+ id: string;
676
+ }], void, _$devframe.DevframeNodeContext> | undefined;
677
+ snapshot?: boolean;
678
+ __cache?: WeakMap<object, _$devframe_rpc0.Thenable<_$devframe_rpc0.RpcFunctionSetupResult<[{
679
+ id: string;
680
+ }], void>>> | undefined;
681
+ __promise?: _$devframe_rpc0.Thenable<_$devframe_rpc0.RpcFunctionSetupResult<[{
682
+ id: string;
683
+ }], void>> | undefined;
684
+ }];
685
+ declare module 'devframe' {
686
+ interface DevframeRpcServerFunctions extends RpcDefinitionsToFunctions<typeof serverFunctions> {}
687
+ interface DevframeRpcSharedStates {
688
+ 'devframes-plugin-terminals:sessions': TerminalsSharedState;
689
+ 'devframes-plugin-terminals:presets': {
690
+ presets: TerminalPreset[];
691
+ };
692
+ }
693
+ }
694
+ //#endregion
695
+ export { serverFunctions };
@@ -0,0 +1,2 @@
1
+ import { t as serverFunctions } from "../rpc-F1ncx7tt.mjs";
2
+ export { serverFunctions };