@ebowwa/codespaces-types 1.1.0 → 1.2.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.
- package/{dist/compile → compile}/index.js +41 -15
- package/compile/index.ts +553 -0
- package/compile/resources.js +116 -0
- package/compile/resources.ts +157 -0
- package/compile/schemas/resources.js +127 -0
- package/compile/schemas/resources.ts +144 -0
- package/{dist/compile → compile}/terminal-websocket.js +4 -1
- package/compile/terminal-websocket.ts +133 -0
- package/compile/time.js +30 -0
- package/compile/time.ts +32 -0
- package/{dist/compile → compile}/user/distributions.js +0 -1
- package/{dist/compile/user/distributions.d.ts → compile/user/distributions.ts} +0 -1
- package/{dist/compile → compile}/validation.js +23 -17
- package/compile/validation.ts +98 -0
- package/index.js +21 -0
- package/index.ts +5 -0
- package/package.json +38 -45
- package/runtime/ai.js +505 -0
- package/runtime/ai.ts +501 -0
- package/runtime/api.js +677 -0
- package/runtime/api.ts +857 -0
- package/runtime/database.js +94 -0
- package/runtime/database.ts +107 -0
- package/runtime/env.js +63 -0
- package/runtime/env.ts +68 -0
- package/{dist/runtime → runtime}/glm.js +7 -4
- package/runtime/glm.ts +36 -0
- package/runtime/index.js +28 -0
- package/{dist/runtime/index.js → runtime/index.ts} +1 -0
- package/runtime/ssh.js +47 -0
- package/runtime/ssh.ts +58 -0
- package/README.md +0 -65
- package/dist/compile/index.d.ts +0 -437
- package/dist/compile/index.d.ts.map +0 -1
- package/dist/compile/resources.d.ts +0 -69
- package/dist/compile/resources.d.ts.map +0 -1
- package/dist/compile/resources.js +0 -113
- package/dist/compile/schemas/resources.d.ts +0 -166
- package/dist/compile/schemas/resources.d.ts.map +0 -1
- package/dist/compile/schemas/resources.js +0 -123
- package/dist/compile/terminal-websocket.d.ts +0 -109
- package/dist/compile/terminal-websocket.d.ts.map +0 -1
- package/dist/compile/time.d.ts +0 -7
- package/dist/compile/time.d.ts.map +0 -1
- package/dist/compile/time.js +0 -27
- package/dist/compile/user/distributions.d.ts.map +0 -1
- package/dist/compile/validation.d.ts +0 -44
- package/dist/compile/validation.d.ts.map +0 -1
- package/dist/runtime/ai.d.ts +0 -1336
- package/dist/runtime/ai.d.ts.map +0 -1
- package/dist/runtime/ai.js +0 -416
- package/dist/runtime/api.d.ts +0 -1304
- package/dist/runtime/api.d.ts.map +0 -1
- package/dist/runtime/api.js +0 -673
- package/dist/runtime/database.d.ts +0 -376
- package/dist/runtime/database.d.ts.map +0 -1
- package/dist/runtime/database.js +0 -91
- package/dist/runtime/env.d.ts +0 -121
- package/dist/runtime/env.d.ts.map +0 -1
- package/dist/runtime/env.js +0 -54
- package/dist/runtime/glm.d.ts +0 -17
- package/dist/runtime/glm.d.ts.map +0 -1
- package/dist/runtime/index.d.ts +0 -13
- package/dist/runtime/index.d.ts.map +0 -1
- package/dist/runtime/ssh.d.ts +0 -111
- package/dist/runtime/ssh.d.ts.map +0 -1
- package/dist/runtime/ssh.js +0 -44
package/dist/runtime/ssh.d.ts
DELETED
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Zod schemas for SSH operations validation
|
|
3
|
-
*/
|
|
4
|
-
import { z } from 'zod';
|
|
5
|
-
/**
|
|
6
|
-
* SSH connection options schema
|
|
7
|
-
*/
|
|
8
|
-
export declare const SSHOptionsSchema: z.ZodObject<{
|
|
9
|
-
host: z.ZodString;
|
|
10
|
-
user: z.ZodDefault<z.ZodString>;
|
|
11
|
-
timeout: z.ZodDefault<z.ZodNumber>;
|
|
12
|
-
port: z.ZodDefault<z.ZodNumber>;
|
|
13
|
-
keyPath: z.ZodOptional<z.ZodString>;
|
|
14
|
-
password: z.ZodOptional<z.ZodString>;
|
|
15
|
-
}, "strip", z.ZodTypeAny, {
|
|
16
|
-
user: string;
|
|
17
|
-
timeout: number;
|
|
18
|
-
port: number;
|
|
19
|
-
host: string;
|
|
20
|
-
keyPath?: string | undefined;
|
|
21
|
-
password?: string | undefined;
|
|
22
|
-
}, {
|
|
23
|
-
host: string;
|
|
24
|
-
user?: string | undefined;
|
|
25
|
-
timeout?: number | undefined;
|
|
26
|
-
port?: number | undefined;
|
|
27
|
-
keyPath?: string | undefined;
|
|
28
|
-
password?: string | undefined;
|
|
29
|
-
}>;
|
|
30
|
-
/**
|
|
31
|
-
* SSH command validation schema
|
|
32
|
-
*/
|
|
33
|
-
export declare const SSHCommandSchema: z.ZodString;
|
|
34
|
-
/**
|
|
35
|
-
* SCP options schema (extends SSH options)
|
|
36
|
-
*/
|
|
37
|
-
export declare const SCPOptionsSchema: z.ZodObject<{
|
|
38
|
-
host: z.ZodString;
|
|
39
|
-
user: z.ZodDefault<z.ZodString>;
|
|
40
|
-
timeout: z.ZodDefault<z.ZodNumber>;
|
|
41
|
-
port: z.ZodDefault<z.ZodNumber>;
|
|
42
|
-
keyPath: z.ZodOptional<z.ZodString>;
|
|
43
|
-
password: z.ZodOptional<z.ZodString>;
|
|
44
|
-
} & {
|
|
45
|
-
source: z.ZodString;
|
|
46
|
-
destination: z.ZodString;
|
|
47
|
-
recursive: z.ZodDefault<z.ZodBoolean>;
|
|
48
|
-
preserve: z.ZodDefault<z.ZodBoolean>;
|
|
49
|
-
}, "strip", z.ZodTypeAny, {
|
|
50
|
-
user: string;
|
|
51
|
-
timeout: number;
|
|
52
|
-
port: number;
|
|
53
|
-
host: string;
|
|
54
|
-
source: string;
|
|
55
|
-
destination: string;
|
|
56
|
-
recursive: boolean;
|
|
57
|
-
preserve: boolean;
|
|
58
|
-
keyPath?: string | undefined;
|
|
59
|
-
password?: string | undefined;
|
|
60
|
-
}, {
|
|
61
|
-
host: string;
|
|
62
|
-
source: string;
|
|
63
|
-
destination: string;
|
|
64
|
-
user?: string | undefined;
|
|
65
|
-
timeout?: number | undefined;
|
|
66
|
-
port?: number | undefined;
|
|
67
|
-
recursive?: boolean | undefined;
|
|
68
|
-
preserve?: boolean | undefined;
|
|
69
|
-
keyPath?: string | undefined;
|
|
70
|
-
password?: string | undefined;
|
|
71
|
-
}>;
|
|
72
|
-
/**
|
|
73
|
-
* Files list options schema
|
|
74
|
-
*/
|
|
75
|
-
export declare const FilesListOptionsSchema: z.ZodObject<{
|
|
76
|
-
host: z.ZodString;
|
|
77
|
-
user: z.ZodDefault<z.ZodString>;
|
|
78
|
-
path: z.ZodDefault<z.ZodString>;
|
|
79
|
-
}, "strip", z.ZodTypeAny, {
|
|
80
|
-
user: string;
|
|
81
|
-
path: string;
|
|
82
|
-
host: string;
|
|
83
|
-
}, {
|
|
84
|
-
host: string;
|
|
85
|
-
user?: string | undefined;
|
|
86
|
-
path?: string | undefined;
|
|
87
|
-
}>;
|
|
88
|
-
/**
|
|
89
|
-
* File preview options schema
|
|
90
|
-
*/
|
|
91
|
-
export declare const FilePreviewOptionsSchema: z.ZodObject<{
|
|
92
|
-
host: z.ZodString;
|
|
93
|
-
user: z.ZodDefault<z.ZodString>;
|
|
94
|
-
path: z.ZodString;
|
|
95
|
-
}, "strip", z.ZodTypeAny, {
|
|
96
|
-
user: string;
|
|
97
|
-
path: string;
|
|
98
|
-
host: string;
|
|
99
|
-
}, {
|
|
100
|
-
path: string;
|
|
101
|
-
host: string;
|
|
102
|
-
user?: string | undefined;
|
|
103
|
-
}>;
|
|
104
|
-
/**
|
|
105
|
-
* Type exports for TypeScript inference
|
|
106
|
-
*/
|
|
107
|
-
export type SSHOptions = z.infer<typeof SSHOptionsSchema>;
|
|
108
|
-
export type SCPOptions = z.infer<typeof SCPOptionsSchema>;
|
|
109
|
-
export type FilesListOptions = z.infer<typeof FilesListOptionsSchema>;
|
|
110
|
-
export type FilePreviewOptions = z.infer<typeof FilePreviewOptionsSchema>;
|
|
111
|
-
//# sourceMappingURL=ssh.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ssh.d.ts","sourceRoot":"","sources":["../../runtime/ssh.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;EAO3B,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,aAA+C,CAAA;AAE5E;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK3B,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;EAIjC,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;EAInC,CAAA;AAEF;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AACzD,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AACzD,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AACrE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA"}
|
package/dist/runtime/ssh.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Zod schemas for SSH operations validation
|
|
3
|
-
*/
|
|
4
|
-
import { z } from 'zod';
|
|
5
|
-
/**
|
|
6
|
-
* SSH connection options schema
|
|
7
|
-
*/
|
|
8
|
-
export const SSHOptionsSchema = z.object({
|
|
9
|
-
host: z.string().min(1, 'Host is required'),
|
|
10
|
-
user: z.string().default('root'),
|
|
11
|
-
timeout: z.number().int().positive().default(5),
|
|
12
|
-
port: z.number().int().positive().max(65535).default(22),
|
|
13
|
-
keyPath: z.string().optional(),
|
|
14
|
-
password: z.string().optional(),
|
|
15
|
-
});
|
|
16
|
-
/**
|
|
17
|
-
* SSH command validation schema
|
|
18
|
-
*/
|
|
19
|
-
export const SSHCommandSchema = z.string().min(1, 'Command cannot be empty');
|
|
20
|
-
/**
|
|
21
|
-
* SCP options schema (extends SSH options)
|
|
22
|
-
*/
|
|
23
|
-
export const SCPOptionsSchema = SSHOptionsSchema.extend({
|
|
24
|
-
source: z.string().min(1, 'Source is required'),
|
|
25
|
-
destination: z.string().min(1, 'Destination is required'),
|
|
26
|
-
recursive: z.boolean().default(false),
|
|
27
|
-
preserve: z.boolean().default(false),
|
|
28
|
-
});
|
|
29
|
-
/**
|
|
30
|
-
* Files list options schema
|
|
31
|
-
*/
|
|
32
|
-
export const FilesListOptionsSchema = z.object({
|
|
33
|
-
host: z.string().min(1, 'Host is required'),
|
|
34
|
-
user: z.string().default('root'),
|
|
35
|
-
path: z.string().default('.'),
|
|
36
|
-
});
|
|
37
|
-
/**
|
|
38
|
-
* File preview options schema
|
|
39
|
-
*/
|
|
40
|
-
export const FilePreviewOptionsSchema = z.object({
|
|
41
|
-
host: z.string().min(1, 'Host is required'),
|
|
42
|
-
user: z.string().default('root'),
|
|
43
|
-
path: z.string().min(1, 'Path is required'),
|
|
44
|
-
});
|