host-execution-mcp 1.0.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/README.md +14 -12
  3. package/SECURITY.md +3 -3
  4. package/dist/access/index.d.ts +21 -10
  5. package/dist/access/index.js +55 -27
  6. package/dist/access/index.js.map +1 -1
  7. package/dist/access/paradi-auth.d.ts +3 -3
  8. package/dist/access/paradi-auth.js +4 -4
  9. package/dist/access/paradi-auth.js.map +1 -1
  10. package/dist/access/paradi-transport.d.ts +1 -1
  11. package/dist/access/paradi-transport.js +3 -3
  12. package/dist/access/paradi-transport.js.map +1 -1
  13. package/dist/access/paradi-username.d.ts +1 -1
  14. package/dist/access/paradi-username.js +2 -2
  15. package/dist/access/paradi-username.js.map +1 -1
  16. package/dist/access/session-pool.d.ts +5 -0
  17. package/dist/access/session-pool.js +7 -0
  18. package/dist/access/session-pool.js.map +1 -1
  19. package/dist/access/ssh-transport.d.ts +1 -1
  20. package/dist/access/ssh-transport.js +3 -2
  21. package/dist/access/ssh-transport.js.map +1 -1
  22. package/dist/config-yaml.d.ts +54 -0
  23. package/dist/config-yaml.js +172 -0
  24. package/dist/config-yaml.js.map +1 -0
  25. package/dist/config.d.ts +45 -1
  26. package/dist/config.js +126 -22
  27. package/dist/config.js.map +1 -1
  28. package/dist/index.js +3 -3
  29. package/dist/index.js.map +1 -1
  30. package/dist/instructions.d.ts +4 -1
  31. package/dist/instructions.js +92 -70
  32. package/dist/instructions.js.map +1 -1
  33. package/dist/kubectl/runner.d.ts +7 -8
  34. package/dist/kubectl/runner.js +18 -21
  35. package/dist/kubectl/runner.js.map +1 -1
  36. package/dist/link-runtime.d.ts +39 -0
  37. package/dist/link-runtime.js +134 -0
  38. package/dist/link-runtime.js.map +1 -0
  39. package/dist/server.d.ts +2 -1
  40. package/dist/server.js +10 -12
  41. package/dist/server.js.map +1 -1
  42. package/dist/sources/guides.d.ts +34 -0
  43. package/dist/sources/guides.js +50 -0
  44. package/dist/sources/guides.js.map +1 -0
  45. package/dist/sources/index.d.ts +5 -0
  46. package/dist/sources/index.js +22 -0
  47. package/dist/sources/index.js.map +1 -0
  48. package/dist/sources/yaml-template.d.ts +31 -0
  49. package/dist/sources/yaml-template.js +35 -0
  50. package/dist/sources/yaml-template.js.map +1 -0
  51. package/dist/ssh/access-client.d.ts +6 -2
  52. package/dist/ssh/access-client.js +58 -27
  53. package/dist/ssh/access-client.js.map +1 -1
  54. package/dist/ssh/access-errors.js +1 -1
  55. package/dist/ssh/access-errors.js.map +1 -1
  56. package/dist/ssh/access-sftp.js +3 -3
  57. package/dist/ssh/access-sftp.js.map +1 -1
  58. package/dist/tools/copy-job-schemas.d.ts +96 -581
  59. package/dist/tools/copy-job-schemas.js +9 -9
  60. package/dist/tools/copy-job-schemas.js.map +1 -1
  61. package/dist/tools/register.d.ts +2 -10
  62. package/dist/tools/register.js +174 -331
  63. package/dist/tools/register.js.map +1 -1
  64. package/dist/tools/remote-schemas.d.ts +156 -708
  65. package/dist/tools/remote-schemas.js +99 -103
  66. package/dist/tools/remote-schemas.js.map +1 -1
  67. package/dist/utils/copy-executor.d.ts +3 -1
  68. package/dist/utils/copy-executor.js +39 -25
  69. package/dist/utils/copy-executor.js.map +1 -1
  70. package/dist/utils/copy-transfer.d.ts +2 -0
  71. package/dist/utils/copy-transfer.js.map +1 -1
  72. package/dist/utils/remote-executor.d.ts +3 -4
  73. package/dist/utils/remote-executor.js +8 -18
  74. package/dist/utils/remote-executor.js.map +1 -1
  75. package/dist/utils/remote-target.js +1 -1
  76. package/dist/utils/remote-target.js.map +1 -1
  77. package/docs/AGENT_GUIDE.md +31 -103
  78. package/docs/CONFIGURATION.md +39 -10
  79. package/docs/GUIDE.md +186 -0
  80. package/docs/PARADI_ACCESS_PLAN.md +6 -6
  81. package/docs/TODO.md +4 -11
  82. package/docs/USER_GUIDE.zh-CN.md +38 -69
  83. package/docs/host-execution.yaml +92 -0
  84. package/docs/paradi-gateway-interactive.png +0 -0
  85. package/package.json +67 -65
  86. package/dist/ssh/bastion-client.d.ts +0 -60
  87. package/dist/ssh/bastion-client.js +0 -423
  88. package/dist/ssh/bastion-client.js.map +0 -1
  89. package/dist/ssh/bastion-errors.d.ts +0 -62
  90. package/dist/ssh/bastion-errors.js +0 -190
  91. package/dist/ssh/bastion-errors.js.map +0 -1
  92. package/dist/ssh/hop1-sftp.d.ts +0 -14
  93. package/dist/ssh/hop1-sftp.js +0 -437
  94. package/dist/ssh/hop1-sftp.js.map +0 -1
@@ -1,766 +1,237 @@
1
1
  import { z } from "zod";
2
2
  import type { AccessRuntime } from "../access/index.js";
3
3
  import type { FileEndpoint } from "../utils/remote-copy.js";
4
- export declare const landingTarget: z.ZodLiteral<"landing">;
5
- export declare const podFields: {
6
- namespace: z.ZodString;
7
- pod: z.ZodString;
8
- container: z.ZodOptional<z.ZodString>;
9
- };
10
- export declare const contextFields: {
11
- contextKey: z.ZodString;
12
- };
13
- export type RemoteSchemaOpts = {
14
- allowContext?: boolean;
15
- };
16
- /** Shared landing | pod [| context] discriminated union builder. */
17
- export declare function remotePathUnion<T extends z.ZodRawShape>(fields: T, opts?: RemoteSchemaOpts): z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
18
- target: z.ZodLiteral<"landing">;
19
- } & T, "strict", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
20
- target: z.ZodLiteral<"landing">;
21
- } & T>, any> extends infer T_1 ? { [k in keyof T_1]: T_1[k]; } : never, z.baseObjectInputType<{
22
- target: z.ZodLiteral<"landing">;
23
- } & T> extends infer T_2 ? { [k_1 in keyof T_2]: T_2[k_1]; } : never>, z.ZodObject<{
24
- namespace: z.ZodString;
25
- pod: z.ZodString;
26
- container: z.ZodOptional<z.ZodString>;
27
- target: z.ZodLiteral<"pod">;
28
- } & T, "strict", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
29
- namespace: z.ZodString;
30
- pod: z.ZodString;
31
- container: z.ZodOptional<z.ZodString>;
32
- target: z.ZodLiteral<"pod">;
33
- } & T>, any> extends infer T_3 ? { [k_2 in keyof T_3]: T_3[k_2]; } : never, z.baseObjectInputType<{
34
- namespace: z.ZodString;
35
- pod: z.ZodString;
36
- container: z.ZodOptional<z.ZodString>;
37
- target: z.ZodLiteral<"pod">;
38
- } & T> extends infer T_4 ? { [k_3 in keyof T_4]: T_4[k_3]; } : never>]> | z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
39
- target: z.ZodLiteral<"landing">;
40
- } & T, "strict", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
41
- target: z.ZodLiteral<"landing">;
42
- } & T>, any> extends infer T_5 ? { [k in keyof T_5]: T_5[k]; } : never, z.baseObjectInputType<{
43
- target: z.ZodLiteral<"landing">;
44
- } & T> extends infer T_6 ? { [k_1 in keyof T_6]: T_6[k_1]; } : never>, z.ZodObject<{
45
- namespace: z.ZodString;
46
- pod: z.ZodString;
47
- container: z.ZodOptional<z.ZodString>;
48
- target: z.ZodLiteral<"pod">;
49
- } & T, "strict", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
50
- namespace: z.ZodString;
51
- pod: z.ZodString;
52
- container: z.ZodOptional<z.ZodString>;
53
- target: z.ZodLiteral<"pod">;
54
- } & T>, any> extends infer T_7 ? { [k_2 in keyof T_7]: T_7[k_2]; } : never, z.baseObjectInputType<{
55
- namespace: z.ZodString;
56
- pod: z.ZodString;
57
- container: z.ZodOptional<z.ZodString>;
58
- target: z.ZodLiteral<"pod">;
59
- } & T> extends infer T_8 ? { [k_3 in keyof T_8]: T_8[k_3]; } : never>, z.ZodObject<{
60
- contextKey: z.ZodString;
61
- target: z.ZodLiteral<"context">;
62
- } & T, "strict", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
63
- contextKey: z.ZodString;
64
- target: z.ZodLiteral<"context">;
65
- } & T>, any> extends infer T_9 ? { [k_4 in keyof T_9]: T_9[k_4]; } : never, z.baseObjectInputType<{
66
- contextKey: z.ZodString;
67
- target: z.ZodLiteral<"context">;
68
- } & T> extends infer T_10 ? { [k_5 in keyof T_10]: T_10[k_5]; } : never>]>;
69
- export declare function buildRemoteReadFileSchema(opts?: RemoteSchemaOpts): z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
70
- target: z.ZodLiteral<"landing">;
71
- } & {
4
+ export declare const linkDescriptionField: z.ZodOptional<z.ZodString>;
5
+ export declare const hopHostField: z.ZodOptional<z.ZodString>;
6
+ /** Cross-field rules stay in handlers — .refine() becomes ZodEffects and MCP listTools yields empty properties. */
7
+ export declare function assertPodPair(args: {
8
+ namespace?: string;
9
+ pod?: string;
10
+ }): void;
11
+ export declare function assertCopyEndpoint(endpoint: {
12
+ target: string;
13
+ namespace?: string;
14
+ pod?: string;
15
+ }): void;
16
+ export declare function assertCopySkipVerify(args: {
17
+ skipIfComplete?: boolean;
18
+ verify?: string;
19
+ }): void;
20
+ export declare function buildRemoteReadFileSchema(): z.ZodObject<{
72
21
  mode: z.ZodOptional<z.ZodEnum<["head", "tail"]>>;
73
22
  lines: z.ZodOptional<z.ZodNumber>;
74
23
  maxLines: z.ZodOptional<z.ZodNumber>;
75
24
  offset: z.ZodOptional<z.ZodNumber>;
76
25
  grep: z.ZodOptional<z.ZodString>;
77
26
  timeoutMs: z.ZodOptional<z.ZodNumber>;
78
- path: z.ZodString;
79
- }, "strict", z.ZodTypeAny, {
80
- target: "landing";
81
- path: string;
82
- timeoutMs?: number | undefined;
83
- mode?: "head" | "tail" | undefined;
84
- lines?: number | undefined;
85
- maxLines?: number | undefined;
86
- offset?: number | undefined;
87
- grep?: string | undefined;
88
- }, {
89
- target: "landing";
90
- path: string;
91
- timeoutMs?: number | undefined;
92
- mode?: "head" | "tail" | undefined;
93
- lines?: number | undefined;
94
- maxLines?: number | undefined;
95
- offset?: number | undefined;
96
- grep?: string | undefined;
97
- }>, z.ZodObject<{
98
- namespace: z.ZodString;
99
- pod: z.ZodString;
27
+ namespace: z.ZodOptional<z.ZodString>;
28
+ pod: z.ZodOptional<z.ZodString>;
100
29
  container: z.ZodOptional<z.ZodString>;
101
- target: z.ZodLiteral<"pod">;
102
- } & {
103
- mode: z.ZodOptional<z.ZodEnum<["head", "tail"]>>;
104
- lines: z.ZodOptional<z.ZodNumber>;
105
- maxLines: z.ZodOptional<z.ZodNumber>;
106
- offset: z.ZodOptional<z.ZodNumber>;
107
- grep: z.ZodOptional<z.ZodString>;
108
- timeoutMs: z.ZodOptional<z.ZodNumber>;
109
30
  path: z.ZodString;
31
+ description: z.ZodOptional<z.ZodString>;
32
+ host: z.ZodOptional<z.ZodString>;
33
+ user: z.ZodOptional<z.ZodString>;
34
+ password: z.ZodOptional<z.ZodString>;
110
35
  }, "strict", z.ZodTypeAny, {
111
- pod: string;
112
- target: "pod";
113
36
  path: string;
114
- namespace: string;
115
- timeoutMs?: number | undefined;
116
- container?: string | undefined;
37
+ password?: string | undefined;
38
+ description?: string | undefined;
117
39
  mode?: "head" | "tail" | undefined;
118
- lines?: number | undefined;
119
- maxLines?: number | undefined;
120
- offset?: number | undefined;
121
- grep?: string | undefined;
122
- }, {
123
- pod: string;
124
- target: "pod";
125
- path: string;
126
- namespace: string;
40
+ host?: string | undefined;
127
41
  timeoutMs?: number | undefined;
42
+ user?: string | undefined;
128
43
  container?: string | undefined;
129
- mode?: "head" | "tail" | undefined;
130
- lines?: number | undefined;
131
- maxLines?: number | undefined;
132
- offset?: number | undefined;
133
- grep?: string | undefined;
134
- }>]> | z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
135
- target: z.ZodLiteral<"landing">;
136
- } & {
137
- mode: z.ZodOptional<z.ZodEnum<["head", "tail"]>>;
138
- lines: z.ZodOptional<z.ZodNumber>;
139
- maxLines: z.ZodOptional<z.ZodNumber>;
140
- offset: z.ZodOptional<z.ZodNumber>;
141
- grep: z.ZodOptional<z.ZodString>;
142
- timeoutMs: z.ZodOptional<z.ZodNumber>;
143
- path: z.ZodString;
144
- }, "strict", z.ZodTypeAny, {
145
- target: "landing";
146
- path: string;
147
- timeoutMs?: number | undefined;
148
- mode?: "head" | "tail" | undefined;
44
+ pod?: string | undefined;
149
45
  lines?: number | undefined;
150
46
  maxLines?: number | undefined;
151
47
  offset?: number | undefined;
152
48
  grep?: string | undefined;
49
+ namespace?: string | undefined;
153
50
  }, {
154
- target: "landing";
155
51
  path: string;
156
- timeoutMs?: number | undefined;
52
+ password?: string | undefined;
53
+ description?: string | undefined;
157
54
  mode?: "head" | "tail" | undefined;
158
- lines?: number | undefined;
159
- maxLines?: number | undefined;
160
- offset?: number | undefined;
161
- grep?: string | undefined;
162
- }>, z.ZodObject<{
163
- namespace: z.ZodString;
164
- pod: z.ZodString;
165
- container: z.ZodOptional<z.ZodString>;
166
- target: z.ZodLiteral<"pod">;
167
- } & {
168
- mode: z.ZodOptional<z.ZodEnum<["head", "tail"]>>;
169
- lines: z.ZodOptional<z.ZodNumber>;
170
- maxLines: z.ZodOptional<z.ZodNumber>;
171
- offset: z.ZodOptional<z.ZodNumber>;
172
- grep: z.ZodOptional<z.ZodString>;
173
- timeoutMs: z.ZodOptional<z.ZodNumber>;
174
- path: z.ZodString;
175
- }, "strict", z.ZodTypeAny, {
176
- pod: string;
177
- target: "pod";
178
- path: string;
179
- namespace: string;
55
+ host?: string | undefined;
180
56
  timeoutMs?: number | undefined;
57
+ user?: string | undefined;
181
58
  container?: string | undefined;
182
- mode?: "head" | "tail" | undefined;
183
- lines?: number | undefined;
184
- maxLines?: number | undefined;
185
- offset?: number | undefined;
186
- grep?: string | undefined;
187
- }, {
188
- pod: string;
189
- target: "pod";
190
- path: string;
191
- namespace: string;
192
- timeoutMs?: number | undefined;
193
- container?: string | undefined;
194
- mode?: "head" | "tail" | undefined;
195
- lines?: number | undefined;
196
- maxLines?: number | undefined;
197
- offset?: number | undefined;
198
- grep?: string | undefined;
199
- }>, z.ZodObject<{
200
- contextKey: z.ZodString;
201
- target: z.ZodLiteral<"context">;
202
- } & {
203
- mode: z.ZodOptional<z.ZodEnum<["head", "tail"]>>;
204
- lines: z.ZodOptional<z.ZodNumber>;
205
- maxLines: z.ZodOptional<z.ZodNumber>;
206
- offset: z.ZodOptional<z.ZodNumber>;
207
- grep: z.ZodOptional<z.ZodString>;
208
- timeoutMs: z.ZodOptional<z.ZodNumber>;
209
- path: z.ZodString;
210
- }, "strict", z.ZodTypeAny, {
211
- contextKey: string;
212
- target: "context";
213
- path: string;
214
- timeoutMs?: number | undefined;
215
- mode?: "head" | "tail" | undefined;
216
- lines?: number | undefined;
217
- maxLines?: number | undefined;
218
- offset?: number | undefined;
219
- grep?: string | undefined;
220
- }, {
221
- contextKey: string;
222
- target: "context";
223
- path: string;
224
- timeoutMs?: number | undefined;
225
- mode?: "head" | "tail" | undefined;
59
+ pod?: string | undefined;
226
60
  lines?: number | undefined;
227
61
  maxLines?: number | undefined;
228
62
  offset?: number | undefined;
229
63
  grep?: string | undefined;
230
- }>]>;
231
- export declare function buildRemotePsSchema(opts?: RemoteSchemaOpts): z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
232
- target: z.ZodLiteral<"landing">;
233
- } & {
234
- pattern: z.ZodOptional<z.ZodString>;
235
- timeoutMs: z.ZodOptional<z.ZodNumber>;
236
- }, "strict", z.ZodTypeAny, {
237
- target: "landing";
238
- timeoutMs?: number | undefined;
239
- pattern?: string | undefined;
240
- }, {
241
- target: "landing";
242
- timeoutMs?: number | undefined;
243
- pattern?: string | undefined;
244
- }>, z.ZodObject<{
245
- namespace: z.ZodString;
246
- pod: z.ZodString;
247
- container: z.ZodOptional<z.ZodString>;
248
- target: z.ZodLiteral<"pod">;
249
- } & {
250
- pattern: z.ZodOptional<z.ZodString>;
251
- timeoutMs: z.ZodOptional<z.ZodNumber>;
252
- }, "strict", z.ZodTypeAny, {
253
- pod: string;
254
- target: "pod";
255
- namespace: string;
256
- timeoutMs?: number | undefined;
257
- container?: string | undefined;
258
- pattern?: string | undefined;
259
- }, {
260
- pod: string;
261
- target: "pod";
262
- namespace: string;
263
- timeoutMs?: number | undefined;
264
- container?: string | undefined;
265
- pattern?: string | undefined;
266
- }>]> | z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
267
- target: z.ZodLiteral<"landing">;
268
- } & {
269
- pattern: z.ZodOptional<z.ZodString>;
64
+ namespace?: string | undefined;
65
+ }>;
66
+ export declare function buildRemotePsSchema(): z.ZodObject<{
270
67
  timeoutMs: z.ZodOptional<z.ZodNumber>;
271
- }, "strict", z.ZodTypeAny, {
272
- target: "landing";
273
- timeoutMs?: number | undefined;
274
- pattern?: string | undefined;
275
- }, {
276
- target: "landing";
277
- timeoutMs?: number | undefined;
278
- pattern?: string | undefined;
279
- }>, z.ZodObject<{
280
- namespace: z.ZodString;
281
- pod: z.ZodString;
68
+ namespace: z.ZodOptional<z.ZodString>;
69
+ pod: z.ZodOptional<z.ZodString>;
282
70
  container: z.ZodOptional<z.ZodString>;
283
- target: z.ZodLiteral<"pod">;
284
- } & {
71
+ description: z.ZodOptional<z.ZodString>;
72
+ host: z.ZodOptional<z.ZodString>;
73
+ user: z.ZodOptional<z.ZodString>;
74
+ password: z.ZodOptional<z.ZodString>;
285
75
  pattern: z.ZodOptional<z.ZodString>;
286
- timeoutMs: z.ZodOptional<z.ZodNumber>;
287
76
  }, "strict", z.ZodTypeAny, {
288
- pod: string;
289
- target: "pod";
290
- namespace: string;
77
+ password?: string | undefined;
78
+ description?: string | undefined;
79
+ host?: string | undefined;
291
80
  timeoutMs?: number | undefined;
81
+ user?: string | undefined;
292
82
  container?: string | undefined;
83
+ pod?: string | undefined;
84
+ namespace?: string | undefined;
293
85
  pattern?: string | undefined;
294
86
  }, {
295
- pod: string;
296
- target: "pod";
297
- namespace: string;
87
+ password?: string | undefined;
88
+ description?: string | undefined;
89
+ host?: string | undefined;
298
90
  timeoutMs?: number | undefined;
91
+ user?: string | undefined;
299
92
  container?: string | undefined;
93
+ pod?: string | undefined;
94
+ namespace?: string | undefined;
300
95
  pattern?: string | undefined;
301
- }>, z.ZodObject<{
302
- contextKey: z.ZodString;
303
- target: z.ZodLiteral<"context">;
304
- } & {
305
- pattern: z.ZodOptional<z.ZodString>;
306
- timeoutMs: z.ZodOptional<z.ZodNumber>;
307
- }, "strict", z.ZodTypeAny, {
308
- contextKey: string;
309
- target: "context";
310
- timeoutMs?: number | undefined;
311
- pattern?: string | undefined;
312
- }, {
313
- contextKey: string;
314
- target: "context";
315
- timeoutMs?: number | undefined;
316
- pattern?: string | undefined;
317
- }>]>;
318
- /** Default schemas (ACCESS_KIND=ssh — context allowed). */
319
- export declare const remoteReadFileSchema: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
320
- target: z.ZodLiteral<"landing">;
321
- } & {
96
+ }>;
97
+ export declare const remoteReadFileSchema: z.ZodObject<{
322
98
  mode: z.ZodOptional<z.ZodEnum<["head", "tail"]>>;
323
99
  lines: z.ZodOptional<z.ZodNumber>;
324
100
  maxLines: z.ZodOptional<z.ZodNumber>;
325
101
  offset: z.ZodOptional<z.ZodNumber>;
326
102
  grep: z.ZodOptional<z.ZodString>;
327
103
  timeoutMs: z.ZodOptional<z.ZodNumber>;
328
- path: z.ZodString;
329
- }, "strict", z.ZodTypeAny, {
330
- target: "landing";
331
- path: string;
332
- timeoutMs?: number | undefined;
333
- mode?: "head" | "tail" | undefined;
334
- lines?: number | undefined;
335
- maxLines?: number | undefined;
336
- offset?: number | undefined;
337
- grep?: string | undefined;
338
- }, {
339
- target: "landing";
340
- path: string;
341
- timeoutMs?: number | undefined;
342
- mode?: "head" | "tail" | undefined;
343
- lines?: number | undefined;
344
- maxLines?: number | undefined;
345
- offset?: number | undefined;
346
- grep?: string | undefined;
347
- }>, z.ZodObject<{
348
- namespace: z.ZodString;
349
- pod: z.ZodString;
104
+ namespace: z.ZodOptional<z.ZodString>;
105
+ pod: z.ZodOptional<z.ZodString>;
350
106
  container: z.ZodOptional<z.ZodString>;
351
- target: z.ZodLiteral<"pod">;
352
- } & {
353
- mode: z.ZodOptional<z.ZodEnum<["head", "tail"]>>;
354
- lines: z.ZodOptional<z.ZodNumber>;
355
- maxLines: z.ZodOptional<z.ZodNumber>;
356
- offset: z.ZodOptional<z.ZodNumber>;
357
- grep: z.ZodOptional<z.ZodString>;
358
- timeoutMs: z.ZodOptional<z.ZodNumber>;
359
107
  path: z.ZodString;
108
+ description: z.ZodOptional<z.ZodString>;
109
+ host: z.ZodOptional<z.ZodString>;
110
+ user: z.ZodOptional<z.ZodString>;
111
+ password: z.ZodOptional<z.ZodString>;
360
112
  }, "strict", z.ZodTypeAny, {
361
- pod: string;
362
- target: "pod";
363
113
  path: string;
364
- namespace: string;
365
- timeoutMs?: number | undefined;
366
- container?: string | undefined;
114
+ password?: string | undefined;
115
+ description?: string | undefined;
367
116
  mode?: "head" | "tail" | undefined;
368
- lines?: number | undefined;
369
- maxLines?: number | undefined;
370
- offset?: number | undefined;
371
- grep?: string | undefined;
372
- }, {
373
- pod: string;
374
- target: "pod";
375
- path: string;
376
- namespace: string;
117
+ host?: string | undefined;
377
118
  timeoutMs?: number | undefined;
119
+ user?: string | undefined;
378
120
  container?: string | undefined;
379
- mode?: "head" | "tail" | undefined;
380
- lines?: number | undefined;
381
- maxLines?: number | undefined;
382
- offset?: number | undefined;
383
- grep?: string | undefined;
384
- }>]> | z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
385
- target: z.ZodLiteral<"landing">;
386
- } & {
387
- mode: z.ZodOptional<z.ZodEnum<["head", "tail"]>>;
388
- lines: z.ZodOptional<z.ZodNumber>;
389
- maxLines: z.ZodOptional<z.ZodNumber>;
390
- offset: z.ZodOptional<z.ZodNumber>;
391
- grep: z.ZodOptional<z.ZodString>;
392
- timeoutMs: z.ZodOptional<z.ZodNumber>;
393
- path: z.ZodString;
394
- }, "strict", z.ZodTypeAny, {
395
- target: "landing";
396
- path: string;
397
- timeoutMs?: number | undefined;
398
- mode?: "head" | "tail" | undefined;
121
+ pod?: string | undefined;
399
122
  lines?: number | undefined;
400
123
  maxLines?: number | undefined;
401
124
  offset?: number | undefined;
402
125
  grep?: string | undefined;
126
+ namespace?: string | undefined;
403
127
  }, {
404
- target: "landing";
405
- path: string;
406
- timeoutMs?: number | undefined;
407
- mode?: "head" | "tail" | undefined;
408
- lines?: number | undefined;
409
- maxLines?: number | undefined;
410
- offset?: number | undefined;
411
- grep?: string | undefined;
412
- }>, z.ZodObject<{
413
- namespace: z.ZodString;
414
- pod: z.ZodString;
415
- container: z.ZodOptional<z.ZodString>;
416
- target: z.ZodLiteral<"pod">;
417
- } & {
418
- mode: z.ZodOptional<z.ZodEnum<["head", "tail"]>>;
419
- lines: z.ZodOptional<z.ZodNumber>;
420
- maxLines: z.ZodOptional<z.ZodNumber>;
421
- offset: z.ZodOptional<z.ZodNumber>;
422
- grep: z.ZodOptional<z.ZodString>;
423
- timeoutMs: z.ZodOptional<z.ZodNumber>;
424
- path: z.ZodString;
425
- }, "strict", z.ZodTypeAny, {
426
- pod: string;
427
- target: "pod";
428
128
  path: string;
429
- namespace: string;
430
- timeoutMs?: number | undefined;
431
- container?: string | undefined;
129
+ password?: string | undefined;
130
+ description?: string | undefined;
432
131
  mode?: "head" | "tail" | undefined;
433
- lines?: number | undefined;
434
- maxLines?: number | undefined;
435
- offset?: number | undefined;
436
- grep?: string | undefined;
437
- }, {
438
- pod: string;
439
- target: "pod";
440
- path: string;
441
- namespace: string;
132
+ host?: string | undefined;
442
133
  timeoutMs?: number | undefined;
134
+ user?: string | undefined;
443
135
  container?: string | undefined;
444
- mode?: "head" | "tail" | undefined;
445
- lines?: number | undefined;
446
- maxLines?: number | undefined;
447
- offset?: number | undefined;
448
- grep?: string | undefined;
449
- }>, z.ZodObject<{
450
- contextKey: z.ZodString;
451
- target: z.ZodLiteral<"context">;
452
- } & {
453
- mode: z.ZodOptional<z.ZodEnum<["head", "tail"]>>;
454
- lines: z.ZodOptional<z.ZodNumber>;
455
- maxLines: z.ZodOptional<z.ZodNumber>;
456
- offset: z.ZodOptional<z.ZodNumber>;
457
- grep: z.ZodOptional<z.ZodString>;
458
- timeoutMs: z.ZodOptional<z.ZodNumber>;
459
- path: z.ZodString;
460
- }, "strict", z.ZodTypeAny, {
461
- contextKey: string;
462
- target: "context";
463
- path: string;
464
- timeoutMs?: number | undefined;
465
- mode?: "head" | "tail" | undefined;
466
- lines?: number | undefined;
467
- maxLines?: number | undefined;
468
- offset?: number | undefined;
469
- grep?: string | undefined;
470
- }, {
471
- contextKey: string;
472
- target: "context";
473
- path: string;
474
- timeoutMs?: number | undefined;
475
- mode?: "head" | "tail" | undefined;
136
+ pod?: string | undefined;
476
137
  lines?: number | undefined;
477
138
  maxLines?: number | undefined;
478
139
  offset?: number | undefined;
479
140
  grep?: string | undefined;
480
- }>]>;
481
- export declare const remotePsSchema: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
482
- target: z.ZodLiteral<"landing">;
483
- } & {
484
- pattern: z.ZodOptional<z.ZodString>;
485
- timeoutMs: z.ZodOptional<z.ZodNumber>;
486
- }, "strict", z.ZodTypeAny, {
487
- target: "landing";
488
- timeoutMs?: number | undefined;
489
- pattern?: string | undefined;
490
- }, {
491
- target: "landing";
492
- timeoutMs?: number | undefined;
493
- pattern?: string | undefined;
494
- }>, z.ZodObject<{
495
- namespace: z.ZodString;
496
- pod: z.ZodString;
497
- container: z.ZodOptional<z.ZodString>;
498
- target: z.ZodLiteral<"pod">;
499
- } & {
500
- pattern: z.ZodOptional<z.ZodString>;
501
- timeoutMs: z.ZodOptional<z.ZodNumber>;
502
- }, "strict", z.ZodTypeAny, {
503
- pod: string;
504
- target: "pod";
505
- namespace: string;
506
- timeoutMs?: number | undefined;
507
- container?: string | undefined;
508
- pattern?: string | undefined;
509
- }, {
510
- pod: string;
511
- target: "pod";
512
- namespace: string;
513
- timeoutMs?: number | undefined;
514
- container?: string | undefined;
515
- pattern?: string | undefined;
516
- }>]> | z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
517
- target: z.ZodLiteral<"landing">;
518
- } & {
519
- pattern: z.ZodOptional<z.ZodString>;
141
+ namespace?: string | undefined;
142
+ }>;
143
+ export declare const remotePsSchema: z.ZodObject<{
520
144
  timeoutMs: z.ZodOptional<z.ZodNumber>;
521
- }, "strict", z.ZodTypeAny, {
522
- target: "landing";
523
- timeoutMs?: number | undefined;
524
- pattern?: string | undefined;
525
- }, {
526
- target: "landing";
527
- timeoutMs?: number | undefined;
528
- pattern?: string | undefined;
529
- }>, z.ZodObject<{
530
- namespace: z.ZodString;
531
- pod: z.ZodString;
145
+ namespace: z.ZodOptional<z.ZodString>;
146
+ pod: z.ZodOptional<z.ZodString>;
532
147
  container: z.ZodOptional<z.ZodString>;
533
- target: z.ZodLiteral<"pod">;
534
- } & {
148
+ description: z.ZodOptional<z.ZodString>;
149
+ host: z.ZodOptional<z.ZodString>;
150
+ user: z.ZodOptional<z.ZodString>;
151
+ password: z.ZodOptional<z.ZodString>;
535
152
  pattern: z.ZodOptional<z.ZodString>;
536
- timeoutMs: z.ZodOptional<z.ZodNumber>;
537
153
  }, "strict", z.ZodTypeAny, {
538
- pod: string;
539
- target: "pod";
540
- namespace: string;
154
+ password?: string | undefined;
155
+ description?: string | undefined;
156
+ host?: string | undefined;
541
157
  timeoutMs?: number | undefined;
158
+ user?: string | undefined;
542
159
  container?: string | undefined;
160
+ pod?: string | undefined;
161
+ namespace?: string | undefined;
543
162
  pattern?: string | undefined;
544
163
  }, {
545
- pod: string;
546
- target: "pod";
547
- namespace: string;
164
+ password?: string | undefined;
165
+ description?: string | undefined;
166
+ host?: string | undefined;
548
167
  timeoutMs?: number | undefined;
168
+ user?: string | undefined;
549
169
  container?: string | undefined;
170
+ pod?: string | undefined;
171
+ namespace?: string | undefined;
550
172
  pattern?: string | undefined;
551
- }>, z.ZodObject<{
552
- contextKey: z.ZodString;
553
- target: z.ZodLiteral<"context">;
554
- } & {
555
- pattern: z.ZodOptional<z.ZodString>;
556
- timeoutMs: z.ZodOptional<z.ZodNumber>;
557
- }, "strict", z.ZodTypeAny, {
558
- contextKey: string;
559
- target: "context";
560
- timeoutMs?: number | undefined;
561
- pattern?: string | undefined;
562
- }, {
563
- contextKey: string;
564
- target: "context";
565
- timeoutMs?: number | undefined;
566
- pattern?: string | undefined;
567
- }>]>;
173
+ }>;
568
174
  export type RemoteReadFileInput = z.infer<typeof remoteReadFileSchema>;
569
175
  export type RemotePsInput = z.infer<typeof remotePsSchema>;
570
- export type RemotePathInput = RemoteReadFileInput | RemotePsInput;
571
- /** Map discriminated-union input to internal RemoteTarget. */
572
- export declare function remoteInputToTarget(args: RemotePathInput): {
573
- target: "landing";
574
- namespace?: undefined;
575
- pod?: undefined;
576
- container?: undefined;
577
- contextKey?: undefined;
578
- } | {
579
- target: "pod";
580
- namespace: string;
581
- pod: string;
582
- container: string | undefined;
583
- contextKey?: undefined;
176
+ export type RemoteRunTarget = {
177
+ mode: "machine";
178
+ contextKey: string;
584
179
  } | {
585
- target: "context";
180
+ mode: "pod";
586
181
  contextKey: string;
587
- namespace?: undefined;
588
- pod?: undefined;
589
- container?: undefined;
590
- };
591
- export type RemoteTarget = ReturnType<typeof remoteInputToTarget>;
592
- export declare function buildRemoteFileEndpointSchema(opts?: RemoteSchemaOpts): z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
593
- path: z.ZodString;
594
- target: z.ZodLiteral<"local">;
595
- }, "strict", z.ZodTypeAny, {
596
- target: "local";
597
- path: string;
598
- }, {
599
- target: "local";
600
- path: string;
601
- }>, z.ZodObject<{
602
- path: z.ZodString;
603
- target: z.ZodLiteral<"landing">;
604
- }, "strict", z.ZodTypeAny, {
605
- target: "landing";
606
- path: string;
607
- }, {
608
- target: "landing";
609
- path: string;
610
- }>, z.ZodObject<{
611
- path: z.ZodString;
612
- namespace: z.ZodString;
613
- pod: z.ZodString;
614
- container: z.ZodOptional<z.ZodString>;
615
- target: z.ZodLiteral<"pod">;
616
- }, "strict", z.ZodTypeAny, {
617
- pod: string;
618
- target: "pod";
619
- path: string;
620
- namespace: string;
621
- container?: string | undefined;
622
- }, {
623
- pod: string;
624
- target: "pod";
625
- path: string;
626
- namespace: string;
627
- container?: string | undefined;
628
- }>]> | z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
629
- path: z.ZodString;
630
- target: z.ZodLiteral<"local">;
631
- }, "strict", z.ZodTypeAny, {
632
- target: "local";
633
- path: string;
634
- }, {
635
- target: "local";
636
- path: string;
637
- }>, z.ZodObject<{
638
- path: z.ZodString;
639
- target: z.ZodLiteral<"landing">;
640
- }, "strict", z.ZodTypeAny, {
641
- target: "landing";
642
- path: string;
643
- }, {
644
- target: "landing";
645
- path: string;
646
- }>, z.ZodObject<{
647
- path: z.ZodString;
648
- namespace: z.ZodString;
649
- pod: z.ZodString;
650
- container: z.ZodOptional<z.ZodString>;
651
- target: z.ZodLiteral<"pod">;
652
- }, "strict", z.ZodTypeAny, {
653
- pod: string;
654
- target: "pod";
655
- path: string;
656
182
  namespace: string;
657
- container?: string | undefined;
658
- }, {
659
183
  pod: string;
660
- target: "pod";
661
- path: string;
662
- namespace: string;
663
- container?: string | undefined;
664
- }>, z.ZodObject<{
665
- path: z.ZodString;
666
- contextKey: z.ZodString;
667
- target: z.ZodLiteral<"context">;
668
- }, "strict", z.ZodTypeAny, {
669
- contextKey: string;
670
- target: "context";
671
- path: string;
672
- }, {
673
- contextKey: string;
674
- target: "context";
675
- path: string;
676
- }>]>;
677
- export declare const remoteFileEndpointSchema: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
678
- path: z.ZodString;
679
- target: z.ZodLiteral<"local">;
680
- }, "strict", z.ZodTypeAny, {
681
- target: "local";
682
- path: string;
683
- }, {
684
- target: "local";
685
- path: string;
686
- }>, z.ZodObject<{
687
- path: z.ZodString;
688
- target: z.ZodLiteral<"landing">;
689
- }, "strict", z.ZodTypeAny, {
690
- target: "landing";
691
- path: string;
692
- }, {
693
- target: "landing";
694
- path: string;
695
- }>, z.ZodObject<{
184
+ container?: string;
185
+ };
186
+ export declare function runTargetFromArgs(contextKey: string, args: {
187
+ namespace?: string;
188
+ pod?: string;
189
+ container?: string;
190
+ }): RemoteRunTarget;
191
+ export declare function buildRemoteFileEndpointSchema(): z.ZodObject<{
192
+ target: z.ZodEnum<["local", "remote", "pod"]>;
696
193
  path: z.ZodString;
697
- namespace: z.ZodString;
698
- pod: z.ZodString;
194
+ namespace: z.ZodOptional<z.ZodString>;
195
+ pod: z.ZodOptional<z.ZodString>;
699
196
  container: z.ZodOptional<z.ZodString>;
700
- target: z.ZodLiteral<"pod">;
701
197
  }, "strict", z.ZodTypeAny, {
702
- pod: string;
703
- target: "pod";
704
198
  path: string;
705
- namespace: string;
199
+ target: "pod" | "local" | "remote";
706
200
  container?: string | undefined;
201
+ pod?: string | undefined;
202
+ namespace?: string | undefined;
707
203
  }, {
708
- pod: string;
709
- target: "pod";
710
204
  path: string;
711
- namespace: string;
205
+ target: "pod" | "local" | "remote";
712
206
  container?: string | undefined;
713
- }>]> | z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
714
- path: z.ZodString;
715
- target: z.ZodLiteral<"local">;
716
- }, "strict", z.ZodTypeAny, {
717
- target: "local";
718
- path: string;
719
- }, {
720
- target: "local";
721
- path: string;
722
- }>, z.ZodObject<{
723
- path: z.ZodString;
724
- target: z.ZodLiteral<"landing">;
725
- }, "strict", z.ZodTypeAny, {
726
- target: "landing";
727
- path: string;
728
- }, {
729
- target: "landing";
730
- path: string;
731
- }>, z.ZodObject<{
207
+ pod?: string | undefined;
208
+ namespace?: string | undefined;
209
+ }>;
210
+ export declare const remoteFileEndpointSchema: z.ZodObject<{
211
+ target: z.ZodEnum<["local", "remote", "pod"]>;
732
212
  path: z.ZodString;
733
- namespace: z.ZodString;
734
- pod: z.ZodString;
213
+ namespace: z.ZodOptional<z.ZodString>;
214
+ pod: z.ZodOptional<z.ZodString>;
735
215
  container: z.ZodOptional<z.ZodString>;
736
- target: z.ZodLiteral<"pod">;
737
216
  }, "strict", z.ZodTypeAny, {
738
- pod: string;
739
- target: "pod";
740
217
  path: string;
741
- namespace: string;
218
+ target: "pod" | "local" | "remote";
742
219
  container?: string | undefined;
220
+ pod?: string | undefined;
221
+ namespace?: string | undefined;
743
222
  }, {
744
- pod: string;
745
- target: "pod";
746
223
  path: string;
747
- namespace: string;
224
+ target: "pod" | "local" | "remote";
748
225
  container?: string | undefined;
749
- }>, z.ZodObject<{
750
- path: z.ZodString;
751
- contextKey: z.ZodString;
752
- target: z.ZodLiteral<"context">;
753
- }, "strict", z.ZodTypeAny, {
754
- contextKey: string;
755
- target: "context";
756
- path: string;
757
- }, {
758
- contextKey: string;
759
- target: "context";
760
- path: string;
761
- }>]>;
226
+ pod?: string | undefined;
227
+ namespace?: string | undefined;
228
+ }>;
762
229
  export type RemoteFileEndpoint = z.infer<typeof remoteFileEndpointSchema>;
763
- export declare function buildRemoteCopyFileSchema(opts?: RemoteSchemaOpts): z.ZodEffects<z.ZodObject<{
230
+ export declare function buildRemoteCopyFileSchema(): z.ZodObject<{
231
+ description: z.ZodOptional<z.ZodString>;
232
+ host: z.ZodOptional<z.ZodString>;
233
+ user: z.ZodOptional<z.ZodString>;
234
+ password: z.ZodOptional<z.ZodString>;
764
235
  source: z.ZodType<any, z.ZodTypeDef, any>;
765
236
  dest: z.ZodType<any, z.ZodTypeDef, any>;
766
237
  recursive: z.ZodOptional<z.ZodBoolean>;
@@ -772,7 +243,11 @@ export declare function buildRemoteCopyFileSchema(opts?: RemoteSchemaOpts): z.Zo
772
243
  connectionTimeoutMs: z.ZodOptional<z.ZodNumber>;
773
244
  verify: z.ZodOptional<z.ZodEnum<["none", "size", "size+sha256"]>>;
774
245
  }, "strict", z.ZodTypeAny, {
246
+ password?: string | undefined;
247
+ description?: string | undefined;
248
+ host?: string | undefined;
775
249
  timeoutMs?: number | undefined;
250
+ user?: string | undefined;
776
251
  source?: any;
777
252
  dest?: any;
778
253
  recursive?: boolean | undefined;
@@ -782,27 +257,11 @@ export declare function buildRemoteCopyFileSchema(opts?: RemoteSchemaOpts): z.Zo
782
257
  totalTimeoutMs?: number | undefined;
783
258
  connectionTimeoutMs?: number | undefined;
784
259
  }, {
260
+ password?: string | undefined;
261
+ description?: string | undefined;
262
+ host?: string | undefined;
785
263
  timeoutMs?: number | undefined;
786
- source?: any;
787
- dest?: any;
788
- recursive?: boolean | undefined;
789
- skipIfComplete?: boolean | undefined;
790
- verify?: "none" | "size" | "size+sha256" | undefined;
791
- progressIntervalMs?: number | undefined;
792
- totalTimeoutMs?: number | undefined;
793
- connectionTimeoutMs?: number | undefined;
794
- }>, {
795
- timeoutMs?: number | undefined;
796
- source?: any;
797
- dest?: any;
798
- recursive?: boolean | undefined;
799
- skipIfComplete?: boolean | undefined;
800
- verify?: "none" | "size" | "size+sha256" | undefined;
801
- progressIntervalMs?: number | undefined;
802
- totalTimeoutMs?: number | undefined;
803
- connectionTimeoutMs?: number | undefined;
804
- }, {
805
- timeoutMs?: number | undefined;
264
+ user?: string | undefined;
806
265
  source?: any;
807
266
  dest?: any;
808
267
  recursive?: boolean | undefined;
@@ -812,7 +271,11 @@ export declare function buildRemoteCopyFileSchema(opts?: RemoteSchemaOpts): z.Zo
812
271
  totalTimeoutMs?: number | undefined;
813
272
  connectionTimeoutMs?: number | undefined;
814
273
  }>;
815
- export declare const remoteCopyFileSchema: z.ZodEffects<z.ZodObject<{
274
+ export declare const remoteCopyFileSchema: z.ZodObject<{
275
+ description: z.ZodOptional<z.ZodString>;
276
+ host: z.ZodOptional<z.ZodString>;
277
+ user: z.ZodOptional<z.ZodString>;
278
+ password: z.ZodOptional<z.ZodString>;
816
279
  source: z.ZodType<any, z.ZodTypeDef, any>;
817
280
  dest: z.ZodType<any, z.ZodTypeDef, any>;
818
281
  recursive: z.ZodOptional<z.ZodBoolean>;
@@ -824,7 +287,11 @@ export declare const remoteCopyFileSchema: z.ZodEffects<z.ZodObject<{
824
287
  connectionTimeoutMs: z.ZodOptional<z.ZodNumber>;
825
288
  verify: z.ZodOptional<z.ZodEnum<["none", "size", "size+sha256"]>>;
826
289
  }, "strict", z.ZodTypeAny, {
290
+ password?: string | undefined;
291
+ description?: string | undefined;
292
+ host?: string | undefined;
827
293
  timeoutMs?: number | undefined;
294
+ user?: string | undefined;
828
295
  source?: any;
829
296
  dest?: any;
830
297
  recursive?: boolean | undefined;
@@ -834,27 +301,11 @@ export declare const remoteCopyFileSchema: z.ZodEffects<z.ZodObject<{
834
301
  totalTimeoutMs?: number | undefined;
835
302
  connectionTimeoutMs?: number | undefined;
836
303
  }, {
304
+ password?: string | undefined;
305
+ description?: string | undefined;
306
+ host?: string | undefined;
837
307
  timeoutMs?: number | undefined;
838
- source?: any;
839
- dest?: any;
840
- recursive?: boolean | undefined;
841
- skipIfComplete?: boolean | undefined;
842
- verify?: "none" | "size" | "size+sha256" | undefined;
843
- progressIntervalMs?: number | undefined;
844
- totalTimeoutMs?: number | undefined;
845
- connectionTimeoutMs?: number | undefined;
846
- }>, {
847
- timeoutMs?: number | undefined;
848
- source?: any;
849
- dest?: any;
850
- recursive?: boolean | undefined;
851
- skipIfComplete?: boolean | undefined;
852
- verify?: "none" | "size" | "size+sha256" | undefined;
853
- progressIntervalMs?: number | undefined;
854
- totalTimeoutMs?: number | undefined;
855
- connectionTimeoutMs?: number | undefined;
856
- }, {
857
- timeoutMs?: number | undefined;
308
+ user?: string | undefined;
858
309
  source?: any;
859
310
  dest?: any;
860
311
  recursive?: boolean | undefined;
@@ -865,9 +316,7 @@ export declare const remoteCopyFileSchema: z.ZodEffects<z.ZodObject<{
865
316
  connectionTimeoutMs?: number | undefined;
866
317
  }>;
867
318
  export type RemoteCopyFileInput = z.infer<typeof remoteCopyFileSchema>;
868
- export declare function fileEndpointToInternal(endpoint: RemoteFileEndpoint): FileEndpoint;
869
- /** Materialize context endpoints to landing|host for the copy engine. */
870
- export declare function materializeCopyEndpoint(access: AccessRuntime, endpoint: FileEndpoint): FileEndpoint;
319
+ export declare function materializeAgentCopyEndpoint(access: AccessRuntime, contextKey: string, endpoint: RemoteFileEndpoint): FileEndpoint;
871
320
  export type ReadFileMode = "head" | "tail";
872
321
  export interface ResolvedReadOptions {
873
322
  mode: ReadFileMode;
@@ -875,5 +324,4 @@ export interface ResolvedReadOptions {
875
324
  offset?: number;
876
325
  grep?: string;
877
326
  }
878
- /** Normalize remote_read_file args. */
879
327
  export declare function resolveReadOptions(args: RemoteReadFileInput): ResolvedReadOptions;