@deepseek-ai/dsh-api-terminal-controller 0.1.6-alpha.1 → 0.1.6-alpha.2
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/README.i18n.yaml +2 -2
- package/README.md +14 -5
- package/README.zh.md +14 -5
- package/lib/client.js +249 -19
- package/lib/index.js +263 -61
- package/lib/typert.host.js +165 -78
- package/lib/typert.remote-client.d.ts +3 -1
- package/lib/typert.remote-client.js +152 -76
- package/lib/types/client/bindings.d.ts +31 -0
- package/lib/types/client/bindings.js +71 -0
- package/lib/types/client/index.d.ts +22 -4
- package/lib/types/client/index.js +83 -8
- package/lib/types/client/model.d.ts +3 -1
- package/lib/types/client/model.js +20 -7
- package/lib/types/client/retention.d.ts +35 -0
- package/lib/types/client/retention.js +77 -0
- package/lib/types/index.d.ts +17 -3
- package/lib/types/index.js +49 -43
- package/lib/types/retention.d.ts +53 -0
- package/lib/types/retention.js +153 -0
- package/lib/types/terminal.d.ts +23 -1
- package/lib/types/terminal.js +40 -9
- package/lib/types/types.d.ts +6 -0
- package/package.json +17 -16
package/lib/typert.host.js
CHANGED
|
@@ -1,17 +1,23 @@
|
|
|
1
1
|
/* Generated by @deepseek-ai/dsh-typert-generator from FaceModel — do not edit. */
|
|
2
2
|
import { z } from 'zod'
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
|
|
4
|
+
let _deepseek_ai_dsh_api_terminal_controller_terminal_close_parameter_0$schema$value
|
|
5
|
+
const _deepseek_ai_dsh_api_terminal_controller_terminal_close_parameter_0$schema = () => (_deepseek_ai_dsh_api_terminal_controller_terminal_close_parameter_0$schema$value ??= z.intersection(z.string(), z.unknown()))
|
|
6
|
+
let _deepseek_ai_dsh_api_terminal_controller_terminal_close_parameter_1$schema$value
|
|
7
|
+
const _deepseek_ai_dsh_api_terminal_controller_terminal_close_parameter_1$schema = () => (_deepseek_ai_dsh_api_terminal_controller_terminal_close_parameter_1$schema$value ??= z.intersection(z.string(), z.unknown()))
|
|
8
|
+
let _deepseek_ai_dsh_api_terminal_controller_terminal_close_result$schema$value
|
|
9
|
+
const _deepseek_ai_dsh_api_terminal_controller_terminal_close_result$schema = () => (_deepseek_ai_dsh_api_terminal_controller_terminal_close_result$schema$value ??= z.void())
|
|
10
|
+
let _deepseek_ai_dsh_api_terminal_controller_terminal_create_parameter_0$schema$value
|
|
11
|
+
const _deepseek_ai_dsh_api_terminal_controller_terminal_create_parameter_0$schema = () => (_deepseek_ai_dsh_api_terminal_controller_terminal_create_parameter_0$schema$value ??= z.intersection(z.string(), z.unknown()))
|
|
12
|
+
let _deepseek_ai_dsh_api_terminal_controller_terminal_create_parameter_1$schema$value
|
|
13
|
+
const _deepseek_ai_dsh_api_terminal_controller_terminal_create_parameter_1$schema = () => (_deepseek_ai_dsh_api_terminal_controller_terminal_create_parameter_1$schema$value ??= z.object({
|
|
9
14
|
'shellPath': z.string().readonly().optional(),
|
|
10
15
|
'id': z.intersection(z.string(), z.unknown()).readonly(),
|
|
11
16
|
'cols': z.number().readonly(),
|
|
12
17
|
'rows': z.number().readonly(),
|
|
13
|
-
})
|
|
14
|
-
|
|
18
|
+
}))
|
|
19
|
+
let _deepseek_ai_dsh_api_terminal_controller_terminal_create_result$schema$value
|
|
20
|
+
const _deepseek_ai_dsh_api_terminal_controller_terminal_create_result$schema = () => (_deepseek_ai_dsh_api_terminal_controller_terminal_create_result$schema$value ??= z.object({
|
|
15
21
|
'id': z.intersection(z.string(), z.unknown()).readonly(),
|
|
16
22
|
'title': z.string().readonly(),
|
|
17
23
|
'shell': z.object({
|
|
@@ -26,19 +32,25 @@ const _deepseek_ai_dsh_api_terminal_controller_terminal_create_result$schema = z
|
|
|
26
32
|
'exitCode': z.union([z.literal(null), z.number()]).readonly(),
|
|
27
33
|
'error': z.string().readonly().optional(),
|
|
28
34
|
'controllerId': z.intersection(z.string(), z.unknown()).readonly().optional(),
|
|
29
|
-
})
|
|
30
|
-
|
|
31
|
-
const
|
|
35
|
+
}))
|
|
36
|
+
let _deepseek_ai_dsh_api_terminal_controller_terminal_environment_parameter_0$schema$value
|
|
37
|
+
const _deepseek_ai_dsh_api_terminal_controller_terminal_environment_parameter_0$schema = () => (_deepseek_ai_dsh_api_terminal_controller_terminal_environment_parameter_0$schema$value ??= z.intersection(z.string(), z.unknown()))
|
|
38
|
+
let _deepseek_ai_dsh_api_terminal_controller_terminal_environment_result$schema$value
|
|
39
|
+
const _deepseek_ai_dsh_api_terminal_controller_terminal_environment_result$schema = () => (_deepseek_ai_dsh_api_terminal_controller_terminal_environment_result$schema$value ??= z.object({
|
|
32
40
|
'cwd': z.string().readonly(),
|
|
33
41
|
'maxInputBytes': z.number().readonly(),
|
|
34
42
|
'maxCols': z.number().readonly(),
|
|
35
43
|
'maxRows': z.number().readonly(),
|
|
36
44
|
'scrollback': z.number().readonly(),
|
|
37
|
-
})
|
|
38
|
-
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
const
|
|
45
|
+
}))
|
|
46
|
+
let _deepseek_ai_dsh_api_terminal_controller_terminal_follow_parameter_0$schema$value
|
|
47
|
+
const _deepseek_ai_dsh_api_terminal_controller_terminal_follow_parameter_0$schema = () => (_deepseek_ai_dsh_api_terminal_controller_terminal_follow_parameter_0$schema$value ??= z.intersection(z.string(), z.unknown()))
|
|
48
|
+
let _deepseek_ai_dsh_api_terminal_controller_terminal_follow_parameter_1$schema$value
|
|
49
|
+
const _deepseek_ai_dsh_api_terminal_controller_terminal_follow_parameter_1$schema = () => (_deepseek_ai_dsh_api_terminal_controller_terminal_follow_parameter_1$schema$value ??= z.intersection(z.string(), z.unknown()))
|
|
50
|
+
let _deepseek_ai_dsh_api_terminal_controller_terminal_follow_parameter_2$schema$value
|
|
51
|
+
const _deepseek_ai_dsh_api_terminal_controller_terminal_follow_parameter_2$schema = () => (_deepseek_ai_dsh_api_terminal_controller_terminal_follow_parameter_2$schema$value ??= z.intersection(z.string(), z.unknown()))
|
|
52
|
+
let _deepseek_ai_dsh_api_terminal_controller_terminal_follow_result$schema$value
|
|
53
|
+
const _deepseek_ai_dsh_api_terminal_controller_terminal_follow_result$schema = () => (_deepseek_ai_dsh_api_terminal_controller_terminal_follow_result$schema$value ??= z.union([z.object({
|
|
42
54
|
'type': z.literal("snapshot").readonly(),
|
|
43
55
|
'sequence': z.number().readonly(),
|
|
44
56
|
'screen': z.string().readonly(),
|
|
@@ -80,9 +92,11 @@ const _deepseek_ai_dsh_api_terminal_controller_terminal_follow_result$schema = z
|
|
|
80
92
|
'error': z.string().readonly().optional(),
|
|
81
93
|
'controllerId': z.intersection(z.string(), z.unknown()).readonly().optional(),
|
|
82
94
|
}).readonly(),
|
|
83
|
-
})])
|
|
84
|
-
|
|
85
|
-
const
|
|
95
|
+
})]))
|
|
96
|
+
let _deepseek_ai_dsh_api_terminal_controller_terminal_list_parameter_0$schema$value
|
|
97
|
+
const _deepseek_ai_dsh_api_terminal_controller_terminal_list_parameter_0$schema = () => (_deepseek_ai_dsh_api_terminal_controller_terminal_list_parameter_0$schema$value ??= z.intersection(z.string(), z.unknown()))
|
|
98
|
+
let _deepseek_ai_dsh_api_terminal_controller_terminal_list_result$schema$value
|
|
99
|
+
const _deepseek_ai_dsh_api_terminal_controller_terminal_list_result$schema = () => (_deepseek_ai_dsh_api_terminal_controller_terminal_list_result$schema$value ??= z.array(z.object({
|
|
86
100
|
'id': z.intersection(z.string(), z.unknown()).readonly(),
|
|
87
101
|
'title': z.string().readonly(),
|
|
88
102
|
'shell': z.object({
|
|
@@ -97,28 +111,53 @@ const _deepseek_ai_dsh_api_terminal_controller_terminal_list_result$schema = z.a
|
|
|
97
111
|
'exitCode': z.union([z.literal(null), z.number()]).readonly(),
|
|
98
112
|
'error': z.string().readonly().optional(),
|
|
99
113
|
'controllerId': z.intersection(z.string(), z.unknown()).readonly().optional(),
|
|
114
|
+
})))
|
|
115
|
+
let _deepseek_ai_dsh_api_terminal_controller_terminal_rename_parameter_0$schema$value
|
|
116
|
+
const _deepseek_ai_dsh_api_terminal_controller_terminal_rename_parameter_0$schema = () => (_deepseek_ai_dsh_api_terminal_controller_terminal_rename_parameter_0$schema$value ??= z.intersection(z.string(), z.unknown()))
|
|
117
|
+
let _deepseek_ai_dsh_api_terminal_controller_terminal_rename_parameter_1$schema$value
|
|
118
|
+
const _deepseek_ai_dsh_api_terminal_controller_terminal_rename_parameter_1$schema = () => (_deepseek_ai_dsh_api_terminal_controller_terminal_rename_parameter_1$schema$value ??= z.intersection(z.string(), z.unknown()))
|
|
119
|
+
let _deepseek_ai_dsh_api_terminal_controller_terminal_rename_parameter_2$schema$value
|
|
120
|
+
const _deepseek_ai_dsh_api_terminal_controller_terminal_rename_parameter_2$schema = () => (_deepseek_ai_dsh_api_terminal_controller_terminal_rename_parameter_2$schema$value ??= z.string())
|
|
121
|
+
let _deepseek_ai_dsh_api_terminal_controller_terminal_rename_result$schema$value
|
|
122
|
+
const _deepseek_ai_dsh_api_terminal_controller_terminal_rename_result$schema = () => (_deepseek_ai_dsh_api_terminal_controller_terminal_rename_result$schema$value ??= z.void())
|
|
123
|
+
let _deepseek_ai_dsh_api_terminal_controller_terminal_resize_parameter_0$schema$value
|
|
124
|
+
const _deepseek_ai_dsh_api_terminal_controller_terminal_resize_parameter_0$schema = () => (_deepseek_ai_dsh_api_terminal_controller_terminal_resize_parameter_0$schema$value ??= z.intersection(z.string(), z.unknown()))
|
|
125
|
+
let _deepseek_ai_dsh_api_terminal_controller_terminal_resize_parameter_1$schema$value
|
|
126
|
+
const _deepseek_ai_dsh_api_terminal_controller_terminal_resize_parameter_1$schema = () => (_deepseek_ai_dsh_api_terminal_controller_terminal_resize_parameter_1$schema$value ??= z.intersection(z.string(), z.unknown()))
|
|
127
|
+
let _deepseek_ai_dsh_api_terminal_controller_terminal_resize_parameter_2$schema$value
|
|
128
|
+
const _deepseek_ai_dsh_api_terminal_controller_terminal_resize_parameter_2$schema = () => (_deepseek_ai_dsh_api_terminal_controller_terminal_resize_parameter_2$schema$value ??= z.intersection(z.string(), z.unknown()))
|
|
129
|
+
let _deepseek_ai_dsh_api_terminal_controller_terminal_resize_parameter_3$schema$value
|
|
130
|
+
const _deepseek_ai_dsh_api_terminal_controller_terminal_resize_parameter_3$schema = () => (_deepseek_ai_dsh_api_terminal_controller_terminal_resize_parameter_3$schema$value ??= z.number())
|
|
131
|
+
let _deepseek_ai_dsh_api_terminal_controller_terminal_resize_parameter_4$schema$value
|
|
132
|
+
const _deepseek_ai_dsh_api_terminal_controller_terminal_resize_parameter_4$schema = () => (_deepseek_ai_dsh_api_terminal_controller_terminal_resize_parameter_4$schema$value ??= z.number())
|
|
133
|
+
let _deepseek_ai_dsh_api_terminal_controller_terminal_resize_result$schema$value
|
|
134
|
+
const _deepseek_ai_dsh_api_terminal_controller_terminal_resize_result$schema = () => (_deepseek_ai_dsh_api_terminal_controller_terminal_resize_result$schema$value ??= z.void())
|
|
135
|
+
let _deepseek_ai_dsh_api_terminal_controller_terminal_retain_parameter_0$schema$value
|
|
136
|
+
const _deepseek_ai_dsh_api_terminal_controller_terminal_retain_parameter_0$schema = () => (_deepseek_ai_dsh_api_terminal_controller_terminal_retain_parameter_0$schema$value ??= z.intersection(z.string(), z.unknown()))
|
|
137
|
+
let _deepseek_ai_dsh_api_terminal_controller_terminal_retain_parameter_1$schema$value
|
|
138
|
+
const _deepseek_ai_dsh_api_terminal_controller_terminal_retain_parameter_1$schema = () => (_deepseek_ai_dsh_api_terminal_controller_terminal_retain_parameter_1$schema$value ??= z.intersection(z.string(), z.unknown()))
|
|
139
|
+
let _deepseek_ai_dsh_api_terminal_controller_terminal_retain_result$schema$value
|
|
140
|
+
const _deepseek_ai_dsh_api_terminal_controller_terminal_retain_result$schema = () => (_deepseek_ai_dsh_api_terminal_controller_terminal_retain_result$schema$value ??= z.object({
|
|
141
|
+
'type': z.literal("retained").readonly(),
|
|
100
142
|
}))
|
|
101
|
-
|
|
102
|
-
const
|
|
103
|
-
|
|
104
|
-
const
|
|
105
|
-
const _deepseek_ai_dsh_api_terminal_controller_terminal_resize_parameter_0$schema = z.intersection(z.string(), z.unknown())
|
|
106
|
-
const _deepseek_ai_dsh_api_terminal_controller_terminal_resize_parameter_1$schema = z.intersection(z.string(), z.unknown())
|
|
107
|
-
const _deepseek_ai_dsh_api_terminal_controller_terminal_resize_parameter_2$schema = z.intersection(z.string(), z.unknown())
|
|
108
|
-
const _deepseek_ai_dsh_api_terminal_controller_terminal_resize_parameter_3$schema = z.number()
|
|
109
|
-
const _deepseek_ai_dsh_api_terminal_controller_terminal_resize_parameter_4$schema = z.number()
|
|
110
|
-
const _deepseek_ai_dsh_api_terminal_controller_terminal_resize_result$schema = z.void()
|
|
111
|
-
const _deepseek_ai_dsh_api_terminal_controller_terminal_shells_parameter_0$schema = z.intersection(z.string(), z.unknown())
|
|
112
|
-
const _deepseek_ai_dsh_api_terminal_controller_terminal_shells_result$schema = z.array(z.object({
|
|
143
|
+
let _deepseek_ai_dsh_api_terminal_controller_terminal_shells_parameter_0$schema$value
|
|
144
|
+
const _deepseek_ai_dsh_api_terminal_controller_terminal_shells_parameter_0$schema = () => (_deepseek_ai_dsh_api_terminal_controller_terminal_shells_parameter_0$schema$value ??= z.intersection(z.string(), z.unknown()))
|
|
145
|
+
let _deepseek_ai_dsh_api_terminal_controller_terminal_shells_result$schema$value
|
|
146
|
+
const _deepseek_ai_dsh_api_terminal_controller_terminal_shells_result$schema = () => (_deepseek_ai_dsh_api_terminal_controller_terminal_shells_result$schema$value ??= z.array(z.object({
|
|
113
147
|
'path': z.string().readonly(),
|
|
114
148
|
'args': z.array(z.string()).readonly(),
|
|
115
149
|
'name': z.string().readonly(),
|
|
116
|
-
}))
|
|
117
|
-
|
|
118
|
-
const
|
|
119
|
-
|
|
120
|
-
const
|
|
121
|
-
|
|
150
|
+
})))
|
|
151
|
+
let _deepseek_ai_dsh_api_terminal_controller_terminal_write_parameter_0$schema$value
|
|
152
|
+
const _deepseek_ai_dsh_api_terminal_controller_terminal_write_parameter_0$schema = () => (_deepseek_ai_dsh_api_terminal_controller_terminal_write_parameter_0$schema$value ??= z.intersection(z.string(), z.unknown()))
|
|
153
|
+
let _deepseek_ai_dsh_api_terminal_controller_terminal_write_parameter_1$schema$value
|
|
154
|
+
const _deepseek_ai_dsh_api_terminal_controller_terminal_write_parameter_1$schema = () => (_deepseek_ai_dsh_api_terminal_controller_terminal_write_parameter_1$schema$value ??= z.intersection(z.string(), z.unknown()))
|
|
155
|
+
let _deepseek_ai_dsh_api_terminal_controller_terminal_write_parameter_2$schema$value
|
|
156
|
+
const _deepseek_ai_dsh_api_terminal_controller_terminal_write_parameter_2$schema = () => (_deepseek_ai_dsh_api_terminal_controller_terminal_write_parameter_2$schema$value ??= z.intersection(z.string(), z.unknown()))
|
|
157
|
+
let _deepseek_ai_dsh_api_terminal_controller_terminal_write_parameter_3$schema$value
|
|
158
|
+
const _deepseek_ai_dsh_api_terminal_controller_terminal_write_parameter_3$schema = () => (_deepseek_ai_dsh_api_terminal_controller_terminal_write_parameter_3$schema$value ??= z.string())
|
|
159
|
+
let _deepseek_ai_dsh_api_terminal_controller_terminal_write_result$schema$value
|
|
160
|
+
const _deepseek_ai_dsh_api_terminal_controller_terminal_write_result$schema = () => (_deepseek_ai_dsh_api_terminal_controller_terminal_write_result$schema$value ??= z.void())
|
|
122
161
|
|
|
123
162
|
export const TYPERT = {
|
|
124
163
|
package: '@deepseek-ai/dsh-api-terminal-controller',
|
|
@@ -145,7 +184,7 @@ export const TYPERT = {
|
|
|
145
184
|
codec: {
|
|
146
185
|
mode: 'strict',
|
|
147
186
|
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
148
|
-
|
|
187
|
+
create: _deepseek_ai_dsh_api_terminal_controller_terminal_close_parameter_0$schema,
|
|
149
188
|
},
|
|
150
189
|
},
|
|
151
190
|
{
|
|
@@ -155,16 +194,16 @@ export const TYPERT = {
|
|
|
155
194
|
codec: {
|
|
156
195
|
mode: 'strict',
|
|
157
196
|
typeSymbol: '@deepseek-ai/dsh-api-terminal-controller/types#WebTerminalId',
|
|
158
|
-
|
|
197
|
+
create: _deepseek_ai_dsh_api_terminal_controller_terminal_close_parameter_1$schema,
|
|
159
198
|
},
|
|
160
199
|
},
|
|
161
200
|
],
|
|
162
201
|
result: {
|
|
163
202
|
mode: 'strict',
|
|
164
203
|
typeSymbol: '@deepseek-ai/dsh-api-terminal-controller#terminal/close:result',
|
|
165
|
-
|
|
204
|
+
create: _deepseek_ai_dsh_api_terminal_controller_terminal_close_result$schema,
|
|
166
205
|
},
|
|
167
|
-
sourceLocation: {"file":"packages/api/terminal-controller/src/index.ts","line":
|
|
206
|
+
sourceLocation: {"file":"packages/api/terminal-controller/src/index.ts","line":269,"column":9},
|
|
168
207
|
},
|
|
169
208
|
{
|
|
170
209
|
id: '@deepseek-ai/dsh-api-terminal-controller#terminal/create',
|
|
@@ -185,7 +224,7 @@ export const TYPERT = {
|
|
|
185
224
|
codec: {
|
|
186
225
|
mode: 'strict',
|
|
187
226
|
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
188
|
-
|
|
227
|
+
create: _deepseek_ai_dsh_api_terminal_controller_terminal_create_parameter_0$schema,
|
|
189
228
|
},
|
|
190
229
|
},
|
|
191
230
|
{
|
|
@@ -195,7 +234,7 @@ export const TYPERT = {
|
|
|
195
234
|
codec: {
|
|
196
235
|
mode: 'strict',
|
|
197
236
|
typeSymbol: '@deepseek-ai/dsh-api-terminal-controller/types#TerminalCreateRequest',
|
|
198
|
-
|
|
237
|
+
create: _deepseek_ai_dsh_api_terminal_controller_terminal_create_parameter_1$schema,
|
|
199
238
|
},
|
|
200
239
|
},
|
|
201
240
|
],
|
|
@@ -203,9 +242,9 @@ export const TYPERT = {
|
|
|
203
242
|
result: {
|
|
204
243
|
mode: 'strict',
|
|
205
244
|
typeSymbol: '@deepseek-ai/dsh-api-terminal-controller/types#WebTerminalInfo',
|
|
206
|
-
|
|
245
|
+
create: _deepseek_ai_dsh_api_terminal_controller_terminal_create_result$schema,
|
|
207
246
|
},
|
|
208
|
-
sourceLocation: {"file":"packages/api/terminal-controller/src/index.ts","line":
|
|
247
|
+
sourceLocation: {"file":"packages/api/terminal-controller/src/index.ts","line":158,"column":9},
|
|
209
248
|
},
|
|
210
249
|
{
|
|
211
250
|
id: '@deepseek-ai/dsh-api-terminal-controller#terminal/environment',
|
|
@@ -226,7 +265,7 @@ export const TYPERT = {
|
|
|
226
265
|
codec: {
|
|
227
266
|
mode: 'strict',
|
|
228
267
|
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
229
|
-
|
|
268
|
+
create: _deepseek_ai_dsh_api_terminal_controller_terminal_environment_parameter_0$schema,
|
|
230
269
|
},
|
|
231
270
|
},
|
|
232
271
|
],
|
|
@@ -234,9 +273,9 @@ export const TYPERT = {
|
|
|
234
273
|
result: {
|
|
235
274
|
mode: 'strict',
|
|
236
275
|
typeSymbol: '@deepseek-ai/dsh-api-terminal-controller/types#TerminalEnvironment',
|
|
237
|
-
|
|
276
|
+
create: _deepseek_ai_dsh_api_terminal_controller_terminal_environment_result$schema,
|
|
238
277
|
},
|
|
239
|
-
sourceLocation: {"file":"packages/api/terminal-controller/src/index.ts","line":
|
|
278
|
+
sourceLocation: {"file":"packages/api/terminal-controller/src/index.ts","line":118,"column":3},
|
|
240
279
|
},
|
|
241
280
|
{
|
|
242
281
|
id: '@deepseek-ai/dsh-api-terminal-controller#terminal/follow',
|
|
@@ -258,7 +297,7 @@ export const TYPERT = {
|
|
|
258
297
|
codec: {
|
|
259
298
|
mode: 'strict',
|
|
260
299
|
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
261
|
-
|
|
300
|
+
create: _deepseek_ai_dsh_api_terminal_controller_terminal_follow_parameter_0$schema,
|
|
262
301
|
},
|
|
263
302
|
},
|
|
264
303
|
{
|
|
@@ -268,7 +307,7 @@ export const TYPERT = {
|
|
|
268
307
|
codec: {
|
|
269
308
|
mode: 'strict',
|
|
270
309
|
typeSymbol: '@deepseek-ai/dsh-api-terminal-controller/types#WebTerminalId',
|
|
271
|
-
|
|
310
|
+
create: _deepseek_ai_dsh_api_terminal_controller_terminal_follow_parameter_1$schema,
|
|
272
311
|
},
|
|
273
312
|
},
|
|
274
313
|
{
|
|
@@ -278,7 +317,7 @@ export const TYPERT = {
|
|
|
278
317
|
codec: {
|
|
279
318
|
mode: 'strict',
|
|
280
319
|
typeSymbol: '@deepseek-ai/dsh-api-terminal-controller/types#TerminalAttachmentId',
|
|
281
|
-
|
|
320
|
+
create: _deepseek_ai_dsh_api_terminal_controller_terminal_follow_parameter_2$schema,
|
|
282
321
|
},
|
|
283
322
|
},
|
|
284
323
|
],
|
|
@@ -286,9 +325,9 @@ export const TYPERT = {
|
|
|
286
325
|
result: {
|
|
287
326
|
mode: 'strict',
|
|
288
327
|
typeSymbol: '@deepseek-ai/dsh-api-terminal-controller/types#TerminalFrame',
|
|
289
|
-
|
|
328
|
+
create: _deepseek_ai_dsh_api_terminal_controller_terminal_follow_result$schema,
|
|
290
329
|
},
|
|
291
|
-
sourceLocation: {"file":"packages/api/terminal-controller/src/index.ts","line":
|
|
330
|
+
sourceLocation: {"file":"packages/api/terminal-controller/src/index.ts","line":216,"column":3},
|
|
292
331
|
},
|
|
293
332
|
{
|
|
294
333
|
id: '@deepseek-ai/dsh-api-terminal-controller#terminal/list',
|
|
@@ -304,16 +343,16 @@ export const TYPERT = {
|
|
|
304
343
|
codec: {
|
|
305
344
|
mode: 'strict',
|
|
306
345
|
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
307
|
-
|
|
346
|
+
create: _deepseek_ai_dsh_api_terminal_controller_terminal_list_parameter_0$schema,
|
|
308
347
|
},
|
|
309
348
|
},
|
|
310
349
|
],
|
|
311
350
|
result: {
|
|
312
351
|
mode: 'strict',
|
|
313
352
|
typeSymbol: '@deepseek-ai/dsh-api-terminal-controller#terminal/list:result',
|
|
314
|
-
|
|
353
|
+
create: _deepseek_ai_dsh_api_terminal_controller_terminal_list_result$schema,
|
|
315
354
|
},
|
|
316
|
-
sourceLocation: {"file":"packages/api/terminal-controller/src/index.ts","line":
|
|
355
|
+
sourceLocation: {"file":"packages/api/terminal-controller/src/index.ts","line":144,"column":3},
|
|
317
356
|
},
|
|
318
357
|
{
|
|
319
358
|
id: '@deepseek-ai/dsh-api-terminal-controller#terminal/rename',
|
|
@@ -334,7 +373,7 @@ export const TYPERT = {
|
|
|
334
373
|
codec: {
|
|
335
374
|
mode: 'strict',
|
|
336
375
|
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
337
|
-
|
|
376
|
+
create: _deepseek_ai_dsh_api_terminal_controller_terminal_rename_parameter_0$schema,
|
|
338
377
|
},
|
|
339
378
|
},
|
|
340
379
|
{
|
|
@@ -344,7 +383,7 @@ export const TYPERT = {
|
|
|
344
383
|
codec: {
|
|
345
384
|
mode: 'strict',
|
|
346
385
|
typeSymbol: '@deepseek-ai/dsh-api-terminal-controller/types#WebTerminalId',
|
|
347
|
-
|
|
386
|
+
create: _deepseek_ai_dsh_api_terminal_controller_terminal_rename_parameter_1$schema,
|
|
348
387
|
},
|
|
349
388
|
},
|
|
350
389
|
{
|
|
@@ -354,16 +393,16 @@ export const TYPERT = {
|
|
|
354
393
|
codec: {
|
|
355
394
|
mode: 'strict',
|
|
356
395
|
typeSymbol: '@deepseek-ai/dsh-api-terminal-controller#terminal/rename:title',
|
|
357
|
-
|
|
396
|
+
create: _deepseek_ai_dsh_api_terminal_controller_terminal_rename_parameter_2$schema,
|
|
358
397
|
},
|
|
359
398
|
},
|
|
360
399
|
],
|
|
361
400
|
result: {
|
|
362
401
|
mode: 'strict',
|
|
363
402
|
typeSymbol: '@deepseek-ai/dsh-api-terminal-controller#terminal/rename:result',
|
|
364
|
-
|
|
403
|
+
create: _deepseek_ai_dsh_api_terminal_controller_terminal_rename_result$schema,
|
|
365
404
|
},
|
|
366
|
-
sourceLocation: {"file":"packages/api/terminal-controller/src/index.ts","line":
|
|
405
|
+
sourceLocation: {"file":"packages/api/terminal-controller/src/index.ts","line":257,"column":3},
|
|
367
406
|
},
|
|
368
407
|
{
|
|
369
408
|
id: '@deepseek-ai/dsh-api-terminal-controller#terminal/resize',
|
|
@@ -384,7 +423,7 @@ export const TYPERT = {
|
|
|
384
423
|
codec: {
|
|
385
424
|
mode: 'strict',
|
|
386
425
|
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
387
|
-
|
|
426
|
+
create: _deepseek_ai_dsh_api_terminal_controller_terminal_resize_parameter_0$schema,
|
|
388
427
|
},
|
|
389
428
|
},
|
|
390
429
|
{
|
|
@@ -394,7 +433,7 @@ export const TYPERT = {
|
|
|
394
433
|
codec: {
|
|
395
434
|
mode: 'strict',
|
|
396
435
|
typeSymbol: '@deepseek-ai/dsh-api-terminal-controller/types#WebTerminalId',
|
|
397
|
-
|
|
436
|
+
create: _deepseek_ai_dsh_api_terminal_controller_terminal_resize_parameter_1$schema,
|
|
398
437
|
},
|
|
399
438
|
},
|
|
400
439
|
{
|
|
@@ -404,7 +443,7 @@ export const TYPERT = {
|
|
|
404
443
|
codec: {
|
|
405
444
|
mode: 'strict',
|
|
406
445
|
typeSymbol: '@deepseek-ai/dsh-api-terminal-controller/types#TerminalAttachmentId',
|
|
407
|
-
|
|
446
|
+
create: _deepseek_ai_dsh_api_terminal_controller_terminal_resize_parameter_2$schema,
|
|
408
447
|
},
|
|
409
448
|
},
|
|
410
449
|
{
|
|
@@ -414,7 +453,7 @@ export const TYPERT = {
|
|
|
414
453
|
codec: {
|
|
415
454
|
mode: 'strict',
|
|
416
455
|
typeSymbol: '@deepseek-ai/dsh-api-terminal-controller#terminal/resize:cols',
|
|
417
|
-
|
|
456
|
+
create: _deepseek_ai_dsh_api_terminal_controller_terminal_resize_parameter_3$schema,
|
|
418
457
|
},
|
|
419
458
|
},
|
|
420
459
|
{
|
|
@@ -424,16 +463,53 @@ export const TYPERT = {
|
|
|
424
463
|
codec: {
|
|
425
464
|
mode: 'strict',
|
|
426
465
|
typeSymbol: '@deepseek-ai/dsh-api-terminal-controller#terminal/resize:rows',
|
|
427
|
-
|
|
466
|
+
create: _deepseek_ai_dsh_api_terminal_controller_terminal_resize_parameter_4$schema,
|
|
428
467
|
},
|
|
429
468
|
},
|
|
430
469
|
],
|
|
431
470
|
result: {
|
|
432
471
|
mode: 'strict',
|
|
433
472
|
typeSymbol: '@deepseek-ai/dsh-api-terminal-controller#terminal/resize:result',
|
|
434
|
-
|
|
473
|
+
create: _deepseek_ai_dsh_api_terminal_controller_terminal_resize_result$schema,
|
|
435
474
|
},
|
|
436
|
-
sourceLocation: {"file":"packages/api/terminal-controller/src/index.ts","line":
|
|
475
|
+
sourceLocation: {"file":"packages/api/terminal-controller/src/index.ts","line":245,"column":9},
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
id: '@deepseek-ai/dsh-api-terminal-controller#terminal/retain',
|
|
479
|
+
service: 'terminalController',
|
|
480
|
+
namespace: 'terminal',
|
|
481
|
+
method: 'retain',
|
|
482
|
+
mode: 'stream',
|
|
483
|
+
invocation: { kind: 'direct' },
|
|
484
|
+
parameters: [
|
|
485
|
+
{
|
|
486
|
+
name: 'sessionId',
|
|
487
|
+
wire: 'sessionId',
|
|
488
|
+
source: 'json',
|
|
489
|
+
codec: {
|
|
490
|
+
mode: 'strict',
|
|
491
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
492
|
+
create: _deepseek_ai_dsh_api_terminal_controller_terminal_retain_parameter_0$schema,
|
|
493
|
+
},
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
name: 'id',
|
|
497
|
+
wire: 'id',
|
|
498
|
+
source: 'json',
|
|
499
|
+
codec: {
|
|
500
|
+
mode: 'strict',
|
|
501
|
+
typeSymbol: '@deepseek-ai/dsh-api-terminal-controller/types#WebTerminalId',
|
|
502
|
+
create: _deepseek_ai_dsh_api_terminal_controller_terminal_retain_parameter_1$schema,
|
|
503
|
+
},
|
|
504
|
+
},
|
|
505
|
+
],
|
|
506
|
+
cancellation: { parameter: 'signal' },
|
|
507
|
+
result: {
|
|
508
|
+
mode: 'strict',
|
|
509
|
+
typeSymbol: '@deepseek-ai/dsh-api-terminal-controller/types#TerminalRetentionFrame',
|
|
510
|
+
create: _deepseek_ai_dsh_api_terminal_controller_terminal_retain_result$schema,
|
|
511
|
+
},
|
|
512
|
+
sourceLocation: {"file":"packages/api/terminal-controller/src/index.ts","line":198,"column":3},
|
|
437
513
|
},
|
|
438
514
|
{
|
|
439
515
|
id: '@deepseek-ai/dsh-api-terminal-controller#terminal/shells',
|
|
@@ -454,7 +530,7 @@ export const TYPERT = {
|
|
|
454
530
|
codec: {
|
|
455
531
|
mode: 'strict',
|
|
456
532
|
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
457
|
-
|
|
533
|
+
create: _deepseek_ai_dsh_api_terminal_controller_terminal_shells_parameter_0$schema,
|
|
458
534
|
},
|
|
459
535
|
},
|
|
460
536
|
],
|
|
@@ -462,9 +538,9 @@ export const TYPERT = {
|
|
|
462
538
|
result: {
|
|
463
539
|
mode: 'strict',
|
|
464
540
|
typeSymbol: '@deepseek-ai/dsh-api-terminal-controller#terminal/shells:result',
|
|
465
|
-
|
|
541
|
+
create: _deepseek_ai_dsh_api_terminal_controller_terminal_shells_result$schema,
|
|
466
542
|
},
|
|
467
|
-
sourceLocation: {"file":"packages/api/terminal-controller/src/index.ts","line":
|
|
543
|
+
sourceLocation: {"file":"packages/api/terminal-controller/src/index.ts","line":133,"column":3},
|
|
468
544
|
},
|
|
469
545
|
{
|
|
470
546
|
id: '@deepseek-ai/dsh-api-terminal-controller#terminal/write',
|
|
@@ -485,7 +561,7 @@ export const TYPERT = {
|
|
|
485
561
|
codec: {
|
|
486
562
|
mode: 'strict',
|
|
487
563
|
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
488
|
-
|
|
564
|
+
create: _deepseek_ai_dsh_api_terminal_controller_terminal_write_parameter_0$schema,
|
|
489
565
|
},
|
|
490
566
|
},
|
|
491
567
|
{
|
|
@@ -495,7 +571,7 @@ export const TYPERT = {
|
|
|
495
571
|
codec: {
|
|
496
572
|
mode: 'strict',
|
|
497
573
|
typeSymbol: '@deepseek-ai/dsh-api-terminal-controller/types#WebTerminalId',
|
|
498
|
-
|
|
574
|
+
create: _deepseek_ai_dsh_api_terminal_controller_terminal_write_parameter_1$schema,
|
|
499
575
|
},
|
|
500
576
|
},
|
|
501
577
|
{
|
|
@@ -505,7 +581,7 @@ export const TYPERT = {
|
|
|
505
581
|
codec: {
|
|
506
582
|
mode: 'strict',
|
|
507
583
|
typeSymbol: '@deepseek-ai/dsh-api-terminal-controller/types#TerminalAttachmentId',
|
|
508
|
-
|
|
584
|
+
create: _deepseek_ai_dsh_api_terminal_controller_terminal_write_parameter_2$schema,
|
|
509
585
|
},
|
|
510
586
|
},
|
|
511
587
|
{
|
|
@@ -515,16 +591,16 @@ export const TYPERT = {
|
|
|
515
591
|
codec: {
|
|
516
592
|
mode: 'strict',
|
|
517
593
|
typeSymbol: '@deepseek-ai/dsh-api-terminal-controller#terminal/write:data',
|
|
518
|
-
|
|
594
|
+
create: _deepseek_ai_dsh_api_terminal_controller_terminal_write_parameter_3$schema,
|
|
519
595
|
},
|
|
520
596
|
},
|
|
521
597
|
],
|
|
522
598
|
result: {
|
|
523
599
|
mode: 'strict',
|
|
524
600
|
typeSymbol: '@deepseek-ai/dsh-api-terminal-controller#terminal/write:result',
|
|
525
|
-
|
|
601
|
+
create: _deepseek_ai_dsh_api_terminal_controller_terminal_write_result$schema,
|
|
526
602
|
},
|
|
527
|
-
sourceLocation: {"file":"packages/api/terminal-controller/src/index.ts","line":
|
|
603
|
+
sourceLocation: {"file":"packages/api/terminal-controller/src/index.ts","line":230,"column":9},
|
|
528
604
|
},
|
|
529
605
|
],
|
|
530
606
|
model: {
|
|
@@ -562,8 +638,15 @@ export const TYPERT = {
|
|
|
562
638
|
"kind": "method",
|
|
563
639
|
"name": "create",
|
|
564
640
|
"signature": "@Remote async create(agent: Agent, request: TerminalCreateRequest, signal: AbortSignal): Promise<WebTerminalInfo>",
|
|
565
|
-
"summary": "Allocate
|
|
566
|
-
"jsDoc": "/**\n * Allocate
|
|
641
|
+
"summary": "Allocate a user shell once for a caller-generated identity, without Agent sandbox or approval restrictions.",
|
|
642
|
+
"jsDoc": "/**\n * Allocate a user shell once for a caller-generated identity, without Agent sandbox or approval restrictions.\n * @param agent - Session owner supplied by the Gateway.\n * @param request - initial dimensions and idempotency identity.\n * @param signal - allocation cancellation; committed terminals survive disconnection.\n * @returns the existing or newly committed terminal.\n */"
|
|
643
|
+
},
|
|
644
|
+
{
|
|
645
|
+
"kind": "method",
|
|
646
|
+
"name": "retain",
|
|
647
|
+
"signature": "@Remote({ mode: 'stream' }) retain(sessionId: SessionId, id: WebTerminalId, signal: AbortSignal): AsyncIterable<TerminalRetentionFrame>",
|
|
648
|
+
"summary": "Retain an existing terminal for a window without activating its Agent or taking input control.",
|
|
649
|
+
"jsDoc": "/**\n * Retain an existing terminal for a window without activating its Agent or taking input control.\n * @param sessionId - owning Session identity, including an inactive saved layout.\n * @param id - retained Host terminal identity.\n * @param signal - physical Remote stream cancellation.\n * @returns a hold acknowledgement followed by an open lifetime stream.\n */"
|
|
567
650
|
},
|
|
568
651
|
{
|
|
569
652
|
"kind": "method",
|
|
@@ -1054,6 +1137,10 @@ export const TYPERT = {
|
|
|
1054
1137
|
"name": "TerminalFrame",
|
|
1055
1138
|
"declaration": "export type TerminalFrame = { readonly type: 'snapshot'; readonly sequence: number; readonly screen: string; readonly info: WebTerminalInfo; } | { readonly type: 'output'; readonly sequence: number; readonly data: string; } | { readonly type: 'state'; readonly info: WebTerminalInfo; };"
|
|
1056
1139
|
},
|
|
1140
|
+
{
|
|
1141
|
+
"name": "TerminalRetentionFrame",
|
|
1142
|
+
"declaration": "export interface TerminalRetentionFrame {\n readonly type: 'retained';\n}"
|
|
1143
|
+
},
|
|
1057
1144
|
{
|
|
1058
1145
|
"name": "TerminalShell",
|
|
1059
1146
|
"declaration": "export interface TerminalShell {\n readonly path: string;\n readonly args: readonly string[];\n readonly name: string;\n}"
|
|
@@ -3,7 +3,7 @@ import type {
|
|
|
3
3
|
RemoteResult,
|
|
4
4
|
TypertRemoteContribution,
|
|
5
5
|
} from '@deepseek-ai/dsh-typert-protocol'
|
|
6
|
-
import type { TerminalAttachmentId, TerminalCreateRequest, TerminalEnvironment, TerminalFrame, TerminalShell, WebTerminalId, WebTerminalInfo } from '@deepseek-ai/dsh-api-terminal-controller/types'
|
|
6
|
+
import type { TerminalAttachmentId, TerminalCreateRequest, TerminalEnvironment, TerminalFrame, TerminalRetentionFrame, TerminalShell, WebTerminalId, WebTerminalInfo } from '@deepseek-ai/dsh-api-terminal-controller/types'
|
|
7
7
|
import type { SessionId } from '@deepseek-ai/dsh-session/types'
|
|
8
8
|
|
|
9
9
|
declare module '@deepseek-ai/dsh-typert-protocol' {
|
|
@@ -15,6 +15,7 @@ declare module '@deepseek-ai/dsh-typert-protocol' {
|
|
|
15
15
|
list: (sessionId: SessionId) => Promise<RemoteResult<WebTerminalInfo[]>>
|
|
16
16
|
rename: (agentId: SessionId, id: WebTerminalId, title: string) => Promise<RemoteResult<void>>
|
|
17
17
|
resize: (agentId: SessionId, id: WebTerminalId, attachmentId: TerminalAttachmentId, cols: number, rows: number) => Promise<RemoteResult<void>>
|
|
18
|
+
retain: (sessionId: SessionId, id: WebTerminalId, signal?: AbortSignal) => AsyncIterable<TerminalRetentionFrame>
|
|
18
19
|
shells: (agentId: SessionId, signal?: AbortSignal) => Promise<RemoteResult<TerminalShell[]>>
|
|
19
20
|
write: (agentId: SessionId, id: WebTerminalId, attachmentId: TerminalAttachmentId, data: string) => Promise<RemoteResult<void>>
|
|
20
21
|
}
|
|
@@ -26,6 +27,7 @@ declare module '@deepseek-ai/dsh-typert-protocol' {
|
|
|
26
27
|
'terminal/list': (sessionId: SessionId) => Promise<RemoteResult<WebTerminalInfo[]>>
|
|
27
28
|
'terminal/rename': (agentId: SessionId, id: WebTerminalId, title: string) => Promise<RemoteResult<void>>
|
|
28
29
|
'terminal/resize': (agentId: SessionId, id: WebTerminalId, attachmentId: TerminalAttachmentId, cols: number, rows: number) => Promise<RemoteResult<void>>
|
|
30
|
+
'terminal/retain': (sessionId: SessionId, id: WebTerminalId, signal?: AbortSignal) => AsyncIterable<TerminalRetentionFrame>
|
|
29
31
|
'terminal/shells': (agentId: SessionId, signal?: AbortSignal) => Promise<RemoteResult<TerminalShell[]>>
|
|
30
32
|
'terminal/write': (agentId: SessionId, id: WebTerminalId, attachmentId: TerminalAttachmentId, data: string) => Promise<RemoteResult<void>>
|
|
31
33
|
}
|