@ebowwa/codespaces-types 1.4.0 → 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/runtime/ssh.js CHANGED
@@ -1,47 +1,35 @@
1
- "use strict";
2
- /**
3
- * Zod schemas for SSH operations validation
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.FilePreviewOptionsSchema = exports.FilesListOptionsSchema = exports.SCPOptionsSchema = exports.SSHCommandSchema = exports.SSHOptionsSchema = void 0;
7
- var zod_1 = require("zod");
8
- /**
9
- * SSH connection options schema
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
- * SSH command validation schema
21
- */
22
- exports.SSHCommandSchema = zod_1.z.string().min(1, 'Command cannot be empty');
23
- /**
24
- * SCP options schema (extends SSH options)
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
- * Files list options schema
34
- */
35
- exports.FilesListOptionsSchema = zod_1.z.object({
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
- * File preview options schema
42
- */
43
- exports.FilePreviewOptionsSchema = zod_1.z.object({
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
+ };