@ebowwa/codespaces-types 1.4.1 → 1.4.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/compile/index.js +245 -115
- package/compile/resources.js +86 -105
- package/compile/terminal-websocket.js +28 -39
- package/compile/time.js +24 -28
- package/compile/validation.js +40 -80
- package/package.json +1 -1
- package/runtime/ai.js +286 -468
- package/runtime/api.js +452 -677
- package/runtime/database.js +64 -90
- package/runtime/env.js +34 -57
- package/runtime/glm.js +14 -26
- package/runtime/index.js +882 -26
- package/runtime/ssh.js +31 -43
package/runtime/ssh.js
CHANGED
|
@@ -1,47 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
exports.SSHOptionsSchema = zod_1.z.object({
|
|
12
|
-
host: zod_1.z.string().min(1, 'Host is required'),
|
|
13
|
-
user: zod_1.z.string().default('root'),
|
|
14
|
-
timeout: zod_1.z.number().int().positive().default(5),
|
|
15
|
-
port: zod_1.z.number().int().positive().max(65535).default(22),
|
|
16
|
-
keyPath: zod_1.z.string().optional(),
|
|
17
|
-
password: zod_1.z.string().optional(),
|
|
1
|
+
// @bun
|
|
2
|
+
// runtime/ssh.ts
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
var SSHOptionsSchema = z.object({
|
|
5
|
+
host: z.string().min(1, "Host is required"),
|
|
6
|
+
user: z.string().default("root"),
|
|
7
|
+
timeout: z.number().int().positive().default(5),
|
|
8
|
+
port: z.number().int().positive().max(65535).default(22),
|
|
9
|
+
keyPath: z.string().optional(),
|
|
10
|
+
password: z.string().optional()
|
|
18
11
|
});
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
*/
|
|
26
|
-
exports.SCPOptionsSchema = exports.SSHOptionsSchema.extend({
|
|
27
|
-
source: zod_1.z.string().min(1, 'Source is required'),
|
|
28
|
-
destination: zod_1.z.string().min(1, 'Destination is required'),
|
|
29
|
-
recursive: zod_1.z.boolean().default(false),
|
|
30
|
-
preserve: zod_1.z.boolean().default(false),
|
|
12
|
+
var SSHCommandSchema = z.string().min(1, "Command cannot be empty");
|
|
13
|
+
var SCPOptionsSchema = SSHOptionsSchema.extend({
|
|
14
|
+
source: z.string().min(1, "Source is required"),
|
|
15
|
+
destination: z.string().min(1, "Destination is required"),
|
|
16
|
+
recursive: z.boolean().default(false),
|
|
17
|
+
preserve: z.boolean().default(false)
|
|
31
18
|
});
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
host: zod_1.z.string().min(1, 'Host is required'),
|
|
37
|
-
user: zod_1.z.string().default('root'),
|
|
38
|
-
path: zod_1.z.string().default('.'),
|
|
19
|
+
var FilesListOptionsSchema = z.object({
|
|
20
|
+
host: z.string().min(1, "Host is required"),
|
|
21
|
+
user: z.string().default("root"),
|
|
22
|
+
path: z.string().default(".")
|
|
39
23
|
});
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
host: zod_1.z.string().min(1, 'Host is required'),
|
|
45
|
-
user: zod_1.z.string().default('root'),
|
|
46
|
-
path: zod_1.z.string().min(1, 'Path is required'),
|
|
24
|
+
var FilePreviewOptionsSchema = z.object({
|
|
25
|
+
host: z.string().min(1, "Host is required"),
|
|
26
|
+
user: z.string().default("root"),
|
|
27
|
+
path: z.string().min(1, "Path is required")
|
|
47
28
|
});
|
|
29
|
+
export {
|
|
30
|
+
SSHOptionsSchema,
|
|
31
|
+
SSHCommandSchema,
|
|
32
|
+
SCPOptionsSchema,
|
|
33
|
+
FilesListOptionsSchema,
|
|
34
|
+
FilePreviewOptionsSchema
|
|
35
|
+
};
|