hostctl 0.1.57 → 0.1.59
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/bin/hostctl.js +911 -593
- package/dist/bin/hostctl.js.map +1 -1
- package/dist/index.d.ts +76 -44
- package/dist/index.js +879 -561
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ type YamlHost = {
|
|
|
29
29
|
user?: string;
|
|
30
30
|
password?: SecretRef$1 | string;
|
|
31
31
|
'ssh-key'?: SecretRef$1 | string;
|
|
32
|
+
'ssh-key-passphrase'?: SecretRef$1 | string;
|
|
32
33
|
tags?: string[];
|
|
33
34
|
};
|
|
34
35
|
type YamlHostsMapping = {
|
|
@@ -125,6 +126,7 @@ declare class Host {
|
|
|
125
126
|
user?: string;
|
|
126
127
|
password?: SecretRef$1 | string;
|
|
127
128
|
sshKey?: SecretRef$1 | string;
|
|
129
|
+
sshKeyPassphrase?: SecretRef$1 | string;
|
|
128
130
|
tags: string[];
|
|
129
131
|
tagSet: Set<string>;
|
|
130
132
|
constructor(config: {
|
|
@@ -136,16 +138,19 @@ declare class Host {
|
|
|
136
138
|
user?: string;
|
|
137
139
|
password?: SecretRef$1 | string;
|
|
138
140
|
sshKey?: SecretRef$1 | string;
|
|
141
|
+
sshKeyPassphrase?: SecretRef$1 | string;
|
|
139
142
|
tags?: string[];
|
|
140
143
|
});
|
|
141
144
|
decryptedPassword(): Promise<string | undefined>;
|
|
142
145
|
decryptedSshKey(): Promise<string | undefined>;
|
|
146
|
+
decryptedSshKeyPassphrase(): Promise<string | undefined>;
|
|
143
147
|
toYAML(): {
|
|
144
148
|
host: string;
|
|
145
149
|
user: string | undefined;
|
|
146
150
|
port: number | undefined;
|
|
147
151
|
password: string | SecretRef$1 | undefined;
|
|
148
152
|
'ssh-key': string | SecretRef$1 | undefined;
|
|
153
|
+
'ssh-key-passphrase': string | SecretRef$1 | undefined;
|
|
149
154
|
tags: string[];
|
|
150
155
|
};
|
|
151
156
|
get shortName(): string;
|
|
@@ -191,6 +196,7 @@ type HostInput = {
|
|
|
191
196
|
port?: number;
|
|
192
197
|
password?: string | SecretRef;
|
|
193
198
|
sshKey?: string | SecretRef;
|
|
199
|
+
sshKeyPassphrase?: string | SecretRef;
|
|
194
200
|
tags?: string[];
|
|
195
201
|
};
|
|
196
202
|
type SecretRef = {
|
|
@@ -397,6 +403,24 @@ declare class InteractionHandler {
|
|
|
397
403
|
end(): void;
|
|
398
404
|
}
|
|
399
405
|
|
|
406
|
+
type CacheScope = 'global' | 'host' | 'invocation';
|
|
407
|
+
type CacheMode = 'use' | 'refresh' | 'bypass';
|
|
408
|
+
interface CacheOptions {
|
|
409
|
+
scope?: CacheScope;
|
|
410
|
+
key?: string;
|
|
411
|
+
ttlMs?: number;
|
|
412
|
+
mode?: CacheMode;
|
|
413
|
+
}
|
|
414
|
+
type CacheConfig = boolean | CacheScope | CacheOptions;
|
|
415
|
+
interface TaskRunOptions {
|
|
416
|
+
cache?: CacheConfig;
|
|
417
|
+
}
|
|
418
|
+
interface MemoizeOptions {
|
|
419
|
+
scope?: CacheScope;
|
|
420
|
+
ttlMs?: number;
|
|
421
|
+
mode?: CacheMode;
|
|
422
|
+
}
|
|
423
|
+
|
|
400
424
|
/**
|
|
401
425
|
* Generic object type for parameters and return values.
|
|
402
426
|
*/
|
|
@@ -471,7 +495,11 @@ interface TaskContext<TParams extends TaskParams = TaskParams> {
|
|
|
471
495
|
pty?: boolean;
|
|
472
496
|
}) => Promise<CommandResult>;
|
|
473
497
|
ssh: <TRemoteParams extends TaskParams = {}, TRemoteReturn extends RunFnReturnValue = RunFnReturnValue>(tags: string[], remoteTaskFn: (remoteContext: TaskContext<TRemoteParams>) => Promise<TRemoteReturn>) => Promise<Record<string, TRemoteReturn | Error>>;
|
|
474
|
-
run:
|
|
498
|
+
run: {
|
|
499
|
+
<TRunReturn extends RunFnReturnValue>(taskPartialFn: TaskPartialFn<TRunReturn>, options?: TaskRunOptions): Promise<TRunReturn>;
|
|
500
|
+
<TParams extends TaskParams, TRunReturn extends RunFnReturnValue>(taskFn: TaskFn<TParams, TRunReturn>, params?: TParams, options?: TaskRunOptions): Promise<TRunReturn>;
|
|
501
|
+
};
|
|
502
|
+
memoize: <TReturn>(key: string, valueOrFactory: TReturn | Promise<TReturn> | (() => TReturn | Promise<TReturn>), options?: MemoizeOptions) => Promise<TReturn>;
|
|
475
503
|
getPassword: () => Promise<string | undefined>;
|
|
476
504
|
getSecret: (name: string) => Promise<string | undefined>;
|
|
477
505
|
exit: (exitCode: number, message?: string) => void;
|
|
@@ -479,7 +507,10 @@ interface TaskContext<TParams extends TaskParams = TaskParams> {
|
|
|
479
507
|
selectedInventory: (tags?: string[]) => Host[];
|
|
480
508
|
file: FileSystemOperations$1;
|
|
481
509
|
}
|
|
482
|
-
type TaskPartialFn<TReturn extends RunFnReturnValue = RunFnReturnValue> = (parentInvocation: IInvocation) => Promise<TReturn
|
|
510
|
+
type TaskPartialFn<TReturn extends RunFnReturnValue = RunFnReturnValue> = ((parentInvocation: IInvocation) => Promise<TReturn>) & {
|
|
511
|
+
taskFn?: TaskFn<any, RunFnReturnValue>;
|
|
512
|
+
params?: TaskParams;
|
|
513
|
+
};
|
|
483
514
|
interface TaskFn<TParams extends TaskParams = TaskParams, TReturn extends RunFnReturnValue = RunFnReturnValue> {
|
|
484
515
|
(params?: TParams): TaskPartialFn<TReturn>;
|
|
485
516
|
task: Task<TParams, TReturn>;
|
|
@@ -748,6 +779,7 @@ declare class App {
|
|
|
748
779
|
private outputStyle;
|
|
749
780
|
private _tmpDir?;
|
|
750
781
|
private tmpFileRegistry;
|
|
782
|
+
private taskCache;
|
|
751
783
|
taskTree: TaskTree;
|
|
752
784
|
verbosity: VerbosityLevel;
|
|
753
785
|
private passwordProvider?;
|
|
@@ -901,7 +933,7 @@ declare class Cli {
|
|
|
901
933
|
}, cmd: cmdr.Command): Promise<void>;
|
|
902
934
|
}
|
|
903
935
|
|
|
904
|
-
declare const _default$
|
|
936
|
+
declare const _default$3P: TaskFn<{
|
|
905
937
|
path: string;
|
|
906
938
|
sudo?: boolean | undefined;
|
|
907
939
|
}, {
|
|
@@ -913,7 +945,7 @@ declare const _default$3Q: TaskFn<{
|
|
|
913
945
|
error?: string | undefined;
|
|
914
946
|
}>;
|
|
915
947
|
|
|
916
|
-
declare const _default$
|
|
948
|
+
declare const _default$3O: TaskFn<{
|
|
917
949
|
from: string;
|
|
918
950
|
to: string;
|
|
919
951
|
mode?: string | undefined;
|
|
@@ -927,7 +959,7 @@ declare const _default$3P: TaskFn<{
|
|
|
927
959
|
error?: string | undefined;
|
|
928
960
|
}>;
|
|
929
961
|
|
|
930
|
-
declare const _default$
|
|
962
|
+
declare const _default$3N: TaskFn<{
|
|
931
963
|
path: string;
|
|
932
964
|
mode?: string | undefined;
|
|
933
965
|
owner?: string | undefined;
|
|
@@ -939,7 +971,7 @@ declare const _default$3O: TaskFn<{
|
|
|
939
971
|
error?: string | undefined;
|
|
940
972
|
}>;
|
|
941
973
|
|
|
942
|
-
declare const _default$
|
|
974
|
+
declare const _default$3M: TaskFn<{
|
|
943
975
|
path: string;
|
|
944
976
|
sudo?: boolean | undefined;
|
|
945
977
|
all?: boolean | undefined;
|
|
@@ -948,7 +980,7 @@ declare const _default$3N: TaskFn<{
|
|
|
948
980
|
entries: string[];
|
|
949
981
|
}>;
|
|
950
982
|
|
|
951
|
-
declare const _default$
|
|
983
|
+
declare const _default$3L: TaskFn<{
|
|
952
984
|
path: string;
|
|
953
985
|
recursive?: boolean | undefined;
|
|
954
986
|
force?: boolean | undefined;
|
|
@@ -963,7 +995,7 @@ declare const _default$3M: TaskFn<{
|
|
|
963
995
|
}>;
|
|
964
996
|
|
|
965
997
|
declare namespace dir {
|
|
966
|
-
export { _default$
|
|
998
|
+
export { _default$3O as copy, _default$3N as create, _default$3L as delete, _default$3P as exists, _default$3M as list };
|
|
967
999
|
}
|
|
968
1000
|
|
|
969
1001
|
declare const ChownInputSchema: z.ZodObject<{
|
|
@@ -981,7 +1013,7 @@ declare const ChownOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
981
1013
|
error: z.ZodOptional<z.ZodString>;
|
|
982
1014
|
}, z.z.core.$strip>]>;
|
|
983
1015
|
type ChownResult = z.infer<typeof ChownOutputSchema>;
|
|
984
|
-
declare const _default$
|
|
1016
|
+
declare const _default$3K: TaskFn<{
|
|
985
1017
|
path: string;
|
|
986
1018
|
owner: string;
|
|
987
1019
|
group?: string | undefined;
|
|
@@ -1008,7 +1040,7 @@ declare const ChgrpOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1008
1040
|
error: z.ZodOptional<z.ZodString>;
|
|
1009
1041
|
}, z.z.core.$strip>]>;
|
|
1010
1042
|
type ChgrpResult = z.infer<typeof ChgrpOutputSchema>;
|
|
1011
|
-
declare const _default$
|
|
1043
|
+
declare const _default$3J: TaskFn<{
|
|
1012
1044
|
path: string;
|
|
1013
1045
|
group: string;
|
|
1014
1046
|
recursive?: boolean | undefined;
|
|
@@ -1034,7 +1066,7 @@ declare const ChmodOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1034
1066
|
error: z.ZodOptional<z.ZodString>;
|
|
1035
1067
|
}, z.z.core.$strip>]>;
|
|
1036
1068
|
type ChmodResult = z.infer<typeof ChmodOutputSchema>;
|
|
1037
|
-
declare const _default$
|
|
1069
|
+
declare const _default$3I: TaskFn<{
|
|
1038
1070
|
path: string;
|
|
1039
1071
|
mode: string | number;
|
|
1040
1072
|
recursive?: boolean | undefined;
|
|
@@ -1063,7 +1095,7 @@ declare const FileCopyOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1063
1095
|
error: z.ZodOptional<z.ZodString>;
|
|
1064
1096
|
}, z.z.core.$strip>]>;
|
|
1065
1097
|
type FileCopyResult = z.infer<typeof FileCopyOutputSchema>;
|
|
1066
|
-
declare const _default$
|
|
1098
|
+
declare const _default$3H: TaskFn<{
|
|
1067
1099
|
from: string;
|
|
1068
1100
|
to: string;
|
|
1069
1101
|
mode?: string | undefined;
|
|
@@ -1092,7 +1124,7 @@ declare const FileExistsOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1092
1124
|
error: z.ZodOptional<z.ZodString>;
|
|
1093
1125
|
}, z.z.core.$strip>]>;
|
|
1094
1126
|
type FileExistsResult = z.infer<typeof FileExistsOutputSchema>;
|
|
1095
|
-
declare const _default$
|
|
1127
|
+
declare const _default$3G: TaskFn<{
|
|
1096
1128
|
path: string;
|
|
1097
1129
|
sudo?: boolean | undefined;
|
|
1098
1130
|
}, {
|
|
@@ -1118,7 +1150,7 @@ declare const FileTouchOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1118
1150
|
error: z.ZodOptional<z.ZodString>;
|
|
1119
1151
|
}, z.z.core.$strip>]>;
|
|
1120
1152
|
type FileTouchResult = z.infer<typeof FileTouchOutputSchema>;
|
|
1121
|
-
declare const _default$
|
|
1153
|
+
declare const _default$3F: TaskFn<{
|
|
1122
1154
|
file: string;
|
|
1123
1155
|
mode?: string | undefined;
|
|
1124
1156
|
owner?: string | undefined;
|
|
@@ -1144,7 +1176,7 @@ declare const FileDeleteOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1144
1176
|
error: z.ZodOptional<z.ZodString>;
|
|
1145
1177
|
}, z.z.core.$strip>]>;
|
|
1146
1178
|
type FileDeleteResult = z.infer<typeof FileDeleteOutputSchema>;
|
|
1147
|
-
declare const _default$
|
|
1179
|
+
declare const _default$3E: TaskFn<{
|
|
1148
1180
|
path: string;
|
|
1149
1181
|
recursive?: boolean | undefined;
|
|
1150
1182
|
force?: boolean | undefined;
|
|
@@ -1172,7 +1204,7 @@ declare const FileLinkOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1172
1204
|
error: z.ZodOptional<z.ZodString>;
|
|
1173
1205
|
}, z.z.core.$strip>]>;
|
|
1174
1206
|
type FileLinkResult = z.infer<typeof FileLinkOutputSchema>;
|
|
1175
|
-
declare const _default$
|
|
1207
|
+
declare const _default$3D: TaskFn<{
|
|
1176
1208
|
target: string;
|
|
1177
1209
|
link: string;
|
|
1178
1210
|
force?: boolean | undefined;
|
|
@@ -1213,7 +1245,7 @@ declare const FileEditOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1213
1245
|
error: z.ZodOptional<z.ZodString>;
|
|
1214
1246
|
}, z.z.core.$strip>]>;
|
|
1215
1247
|
type FileEditResult = z.infer<typeof FileEditOutputSchema>;
|
|
1216
|
-
declare const _default$
|
|
1248
|
+
declare const _default$3C: TaskFn<{
|
|
1217
1249
|
file: string;
|
|
1218
1250
|
state?: "present" | "absent" | undefined;
|
|
1219
1251
|
backup?: boolean | undefined;
|
|
@@ -1264,7 +1296,7 @@ declare const FileGrepOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1264
1296
|
error: z.ZodOptional<z.ZodString>;
|
|
1265
1297
|
}, z.z.core.$strip>]>;
|
|
1266
1298
|
type FileGrepResult = z.infer<typeof FileGrepOutputSchema>;
|
|
1267
|
-
declare const _default$
|
|
1299
|
+
declare const _default$3B: TaskFn<{
|
|
1268
1300
|
file: string;
|
|
1269
1301
|
pattern: string;
|
|
1270
1302
|
ignore_case?: boolean | undefined;
|
|
@@ -1312,7 +1344,7 @@ type file_FileLinkResult = FileLinkResult;
|
|
|
1312
1344
|
type file_FileTouchParams = FileTouchParams;
|
|
1313
1345
|
type file_FileTouchResult = FileTouchResult;
|
|
1314
1346
|
declare namespace file {
|
|
1315
|
-
export { type file_ChgrpParams as ChgrpParams, type file_ChgrpResult as ChgrpResult, type file_ChmodParams as ChmodParams, type file_ChmodResult as ChmodResult, type file_ChownParams as ChownParams, type file_ChownResult as ChownResult, type file_FileCopyParams as FileCopyParams, type file_FileCopyResult as FileCopyResult, type file_FileDeleteParams as FileDeleteParams, type file_FileDeleteResult as FileDeleteResult, type file_FileEditParams as FileEditParams, type file_FileEditResult as FileEditResult, type file_FileExistsParams as FileExistsParams, type file_FileExistsResult as FileExistsResult, type file_FileGrepParams as FileGrepParams, type file_FileGrepResult as FileGrepResult, type file_FileLinkParams as FileLinkParams, type file_FileLinkResult as FileLinkResult, type file_FileTouchParams as FileTouchParams, type file_FileTouchResult as FileTouchResult, _default$
|
|
1347
|
+
export { type file_ChgrpParams as ChgrpParams, type file_ChgrpResult as ChgrpResult, type file_ChmodParams as ChmodParams, type file_ChmodResult as ChmodResult, type file_ChownParams as ChownParams, type file_ChownResult as ChownResult, type file_FileCopyParams as FileCopyParams, type file_FileCopyResult as FileCopyResult, type file_FileDeleteParams as FileDeleteParams, type file_FileDeleteResult as FileDeleteResult, type file_FileEditParams as FileEditParams, type file_FileEditResult as FileEditResult, type file_FileExistsParams as FileExistsParams, type file_FileExistsResult as FileExistsResult, type file_FileGrepParams as FileGrepParams, type file_FileGrepResult as FileGrepResult, type file_FileLinkParams as FileLinkParams, type file_FileLinkResult as FileLinkResult, type file_FileTouchParams as FileTouchParams, type file_FileTouchResult as FileTouchResult, _default$3J as chgrp, _default$3I as chmod, _default$3K as chown, _default$3H as copy, _default$3E as delete, _default$3C as edit, _default$3G as exists, _default$3B as grep, _default$3D as link, _default$3F as touch };
|
|
1316
1348
|
}
|
|
1317
1349
|
|
|
1318
1350
|
declare const GitCloneInputSchema: z.ZodObject<{
|
|
@@ -1327,7 +1359,7 @@ declare const GitCloneOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1327
1359
|
error: z.ZodOptional<z.ZodString>;
|
|
1328
1360
|
}, z.z.core.$strip>]>;
|
|
1329
1361
|
type GitCloneResult = z.infer<typeof GitCloneOutputSchema>;
|
|
1330
|
-
declare const _default$
|
|
1362
|
+
declare const _default$3A: TaskFn<{
|
|
1331
1363
|
repo: string;
|
|
1332
1364
|
dir: string;
|
|
1333
1365
|
}, {
|
|
@@ -1351,7 +1383,7 @@ declare const GitPullOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1351
1383
|
error: z.ZodOptional<z.ZodString>;
|
|
1352
1384
|
}, z.z.core.$strip>]>;
|
|
1353
1385
|
type GitPullResult = z.infer<typeof GitPullOutputSchema>;
|
|
1354
|
-
declare const _default$
|
|
1386
|
+
declare const _default$3z: TaskFn<{
|
|
1355
1387
|
directory: string;
|
|
1356
1388
|
rebase?: boolean | undefined;
|
|
1357
1389
|
remote?: string | undefined;
|
|
@@ -1376,7 +1408,7 @@ declare const GitCheckoutOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1376
1408
|
error: z.ZodOptional<z.ZodString>;
|
|
1377
1409
|
}, z.z.core.$strip>]>;
|
|
1378
1410
|
type GitCheckoutResult = z.infer<typeof GitCheckoutOutputSchema>;
|
|
1379
|
-
declare const _default$
|
|
1411
|
+
declare const _default$3y: TaskFn<{
|
|
1380
1412
|
directory: string;
|
|
1381
1413
|
target: string;
|
|
1382
1414
|
new_branch?: boolean | undefined;
|
|
@@ -1394,7 +1426,7 @@ type git_GitCloneResult = GitCloneResult;
|
|
|
1394
1426
|
type git_GitPullParams = GitPullParams;
|
|
1395
1427
|
type git_GitPullResult = GitPullResult;
|
|
1396
1428
|
declare namespace git {
|
|
1397
|
-
export { type git_GitCheckoutParams as GitCheckoutParams, type git_GitCheckoutResult as GitCheckoutResult, type git_GitCloneParams as GitCloneParams, type git_GitCloneResult as GitCloneResult, type git_GitPullParams as GitPullParams, type git_GitPullResult as GitPullResult, _default$
|
|
1429
|
+
export { type git_GitCheckoutParams as GitCheckoutParams, type git_GitCheckoutResult as GitCheckoutResult, type git_GitCloneParams as GitCloneParams, type git_GitCloneResult as GitCloneResult, type git_GitPullParams as GitPullParams, type git_GitPullResult as GitPullResult, _default$3y as checkout, _default$3A as clone, _default$3z as pull };
|
|
1398
1430
|
}
|
|
1399
1431
|
|
|
1400
1432
|
declare const GroupCreateInputSchema: z.ZodObject<{
|
|
@@ -1409,7 +1441,7 @@ declare const GroupCreateOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1409
1441
|
error: z.ZodOptional<z.ZodString>;
|
|
1410
1442
|
}, z.z.core.$strip>]>;
|
|
1411
1443
|
type GroupCreateResult = z.infer<typeof GroupCreateOutputSchema>;
|
|
1412
|
-
declare const _default$
|
|
1444
|
+
declare const _default$3x: TaskFn<{
|
|
1413
1445
|
group: string;
|
|
1414
1446
|
sudo?: boolean | undefined;
|
|
1415
1447
|
}, {
|
|
@@ -1432,7 +1464,7 @@ declare const GroupDeleteOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1432
1464
|
error: z.ZodOptional<z.ZodString>;
|
|
1433
1465
|
}, z.z.core.$strip>]>;
|
|
1434
1466
|
type GroupDeleteResult = z.infer<typeof GroupDeleteOutputSchema>;
|
|
1435
|
-
declare const _default$
|
|
1467
|
+
declare const _default$3w: TaskFn<{
|
|
1436
1468
|
group: string;
|
|
1437
1469
|
sudo?: boolean | undefined;
|
|
1438
1470
|
}, {
|
|
@@ -1451,7 +1483,7 @@ declare const GroupExistsOutputSchema: z.ZodObject<{
|
|
|
1451
1483
|
exists: z.ZodBoolean;
|
|
1452
1484
|
}, z.z.core.$strip>;
|
|
1453
1485
|
type GroupExistsResult = z.infer<typeof GroupExistsOutputSchema>;
|
|
1454
|
-
declare const _default$
|
|
1486
|
+
declare const _default$3v: TaskFn<{
|
|
1455
1487
|
group: string;
|
|
1456
1488
|
}, {
|
|
1457
1489
|
exists: boolean;
|
|
@@ -1472,7 +1504,7 @@ declare const GroupListOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1472
1504
|
groups: z.ZodArray<z.ZodType<GroupInfo, unknown, z.z.core.$ZodTypeInternals<GroupInfo, unknown>>>;
|
|
1473
1505
|
}, z.z.core.$strip>]>;
|
|
1474
1506
|
type GroupListResult = z.infer<typeof GroupListOutputSchema>;
|
|
1475
|
-
declare const _default$
|
|
1507
|
+
declare const _default$3u: TaskFn<Record<string, never>, {
|
|
1476
1508
|
success: true;
|
|
1477
1509
|
groups: GroupInfo[];
|
|
1478
1510
|
} | {
|
|
@@ -1498,7 +1530,7 @@ declare const GroupModifyOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1498
1530
|
error: z.ZodOptional<z.ZodString>;
|
|
1499
1531
|
}, z.z.core.$strip>]>;
|
|
1500
1532
|
type GroupModifyResult = z.infer<typeof GroupModifyOutputSchema>;
|
|
1501
|
-
declare const _default$
|
|
1533
|
+
declare const _default$3t: TaskFn<{
|
|
1502
1534
|
group: string;
|
|
1503
1535
|
new_name?: string | undefined;
|
|
1504
1536
|
gid?: number | undefined;
|
|
@@ -1525,7 +1557,7 @@ type group_GroupListResult = GroupListResult;
|
|
|
1525
1557
|
type group_GroupModifyParams = GroupModifyParams;
|
|
1526
1558
|
type group_GroupModifyResult = GroupModifyResult;
|
|
1527
1559
|
declare namespace group {
|
|
1528
|
-
export { type group_GroupCreateParams as GroupCreateParams, type group_GroupCreateResult as GroupCreateResult, type group_GroupDeleteParams as GroupDeleteParams, type group_GroupDeleteResult as GroupDeleteResult, type group_GroupExistsParams as GroupExistsParams, type group_GroupExistsResult as GroupExistsResult, type group_GroupInfo as GroupInfo, type group_GroupListParams as GroupListParams, type group_GroupListResult as GroupListResult, type group_GroupModifyParams as GroupModifyParams, type group_GroupModifyResult as GroupModifyResult, _default$
|
|
1560
|
+
export { type group_GroupCreateParams as GroupCreateParams, type group_GroupCreateResult as GroupCreateResult, type group_GroupDeleteParams as GroupDeleteParams, type group_GroupDeleteResult as GroupDeleteResult, type group_GroupExistsParams as GroupExistsParams, type group_GroupExistsResult as GroupExistsResult, type group_GroupInfo as GroupInfo, type group_GroupListParams as GroupListParams, type group_GroupListResult as GroupListResult, type group_GroupModifyParams as GroupModifyParams, type group_GroupModifyResult as GroupModifyResult, _default$3x as create, _default$3w as delete, _default$3v as exists, _default$3u as list, _default$3t as modify };
|
|
1529
1561
|
}
|
|
1530
1562
|
|
|
1531
1563
|
interface OSInfo {
|
|
@@ -1566,7 +1598,7 @@ declare const HostInfoOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1566
1598
|
error: z.ZodOptional<z.ZodString>;
|
|
1567
1599
|
}, z.z.core.$strip>]>;
|
|
1568
1600
|
type HostInfoResult = z.infer<typeof HostInfoOutputSchema>;
|
|
1569
|
-
declare const _default$
|
|
1601
|
+
declare const _default$3s: TaskFn<Record<string, never>, {
|
|
1570
1602
|
success: true;
|
|
1571
1603
|
host: HostInfo;
|
|
1572
1604
|
} | {
|
|
@@ -1584,7 +1616,7 @@ declare const HostSummaryOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1584
1616
|
error: z.ZodOptional<z.ZodString>;
|
|
1585
1617
|
}, z.z.core.$strip>]>;
|
|
1586
1618
|
type HostSummaryResult = z.infer<typeof HostSummaryOutputSchema>;
|
|
1587
|
-
declare const _default$
|
|
1619
|
+
declare const _default$3r: TaskFn<Record<string, never>, {
|
|
1588
1620
|
success: true;
|
|
1589
1621
|
host: HostSummary;
|
|
1590
1622
|
} | {
|
|
@@ -1621,7 +1653,7 @@ type OsDetailsResult = z.infer<typeof OsDetailsOutputSchema>;
|
|
|
1621
1653
|
* Determines the operating system family, specific OS, variant, and version.
|
|
1622
1654
|
* @returns {OsDetailsResult}
|
|
1623
1655
|
*/
|
|
1624
|
-
declare const _default$
|
|
1656
|
+
declare const _default$3q: TaskFn<Record<string, never>, {
|
|
1625
1657
|
success: true;
|
|
1626
1658
|
family: "darwin" | "linux" | "unknown" | "bsd" | "solaris" | "windows";
|
|
1627
1659
|
os: string;
|
|
@@ -1651,7 +1683,7 @@ declare const HostnameOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1651
1683
|
}, z.z.core.$strip>]>;
|
|
1652
1684
|
type HostnameParams = z.infer<typeof HostnameInputSchema>;
|
|
1653
1685
|
type HostnameResult = z.infer<typeof HostnameOutputSchema>;
|
|
1654
|
-
declare const _default$
|
|
1686
|
+
declare const _default$3p: TaskFn<{
|
|
1655
1687
|
new_name?: string | undefined;
|
|
1656
1688
|
}, {
|
|
1657
1689
|
success: true;
|
|
@@ -1692,7 +1724,7 @@ declare const BootstrapServiceAccountOutputSchema: z.ZodObject<{
|
|
|
1692
1724
|
trace: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1693
1725
|
}, z.z.core.$strip>;
|
|
1694
1726
|
type BootstrapServiceAccountResult = z.infer<typeof BootstrapServiceAccountOutputSchema>;
|
|
1695
|
-
declare const _default$
|
|
1727
|
+
declare const _default$3o: TaskFn<{
|
|
1696
1728
|
username: string;
|
|
1697
1729
|
password: string;
|
|
1698
1730
|
public_key: string;
|
|
@@ -1731,7 +1763,7 @@ type host_LSCPUChild = LSCPUChild;
|
|
|
1731
1763
|
type host_OSInfo = OSInfo;
|
|
1732
1764
|
type host_OsDetailsResult = OsDetailsResult;
|
|
1733
1765
|
declare namespace host {
|
|
1734
|
-
export { type host_BootstrapServiceAccountParams as BootstrapServiceAccountParams, type host_BootstrapServiceAccountResult as BootstrapServiceAccountResult, type host_HostInfo as HostInfo, type host_HostInfoResult as HostInfoResult, type host_HostSummary as HostSummary, type host_HostSummaryResult as HostSummaryResult, type host_HostnameParams as HostnameParams, type host_HostnameResult as HostnameResult, type host_LSBRelease as LSBRelease, type host_LSCPUChild as LSCPUChild, type host_OSInfo as OSInfo, type host_OsDetailsResult as OsDetailsResult, _default$
|
|
1766
|
+
export { type host_BootstrapServiceAccountParams as BootstrapServiceAccountParams, type host_BootstrapServiceAccountResult as BootstrapServiceAccountResult, type host_HostInfo as HostInfo, type host_HostInfoResult as HostInfoResult, type host_HostSummary as HostSummary, type host_HostSummaryResult as HostSummaryResult, type host_HostnameParams as HostnameParams, type host_HostnameResult as HostnameResult, type host_LSBRelease as LSBRelease, type host_LSCPUChild as LSCPUChild, type host_OSInfo as OSInfo, type host_OsDetailsResult as OsDetailsResult, _default$3o as bootstrapServiceAccount, _default$3p as hostname, _default$3s as info, _default$3q as os, _default$3r as summary };
|
|
1735
1767
|
}
|
|
1736
1768
|
|
|
1737
1769
|
interface AbstractPkgParams {
|
|
@@ -1780,7 +1812,7 @@ interface AbstractPkgInstallParams extends AbstractPkgParams {
|
|
|
1780
1812
|
}
|
|
1781
1813
|
interface AbstractPkgInstallResult extends AbstractPkgResult {
|
|
1782
1814
|
}
|
|
1783
|
-
declare const _default$
|
|
1815
|
+
declare const _default$3n: TaskFn<AbstractPkgInstallParams, AbstractPkgInstallResult>;
|
|
1784
1816
|
|
|
1785
1817
|
declare const AbstractPkgUninstallParamsSchema: z.ZodObject<{
|
|
1786
1818
|
sudo: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1802,7 +1834,7 @@ declare const AbstractPkgUninstallResultSchema: z.ZodObject<{
|
|
|
1802
1834
|
failed: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1803
1835
|
}, z.z.core.$strip>;
|
|
1804
1836
|
type AbstractPkgUninstallResult = z.infer<typeof AbstractPkgUninstallResultSchema>;
|
|
1805
|
-
declare const _default$
|
|
1837
|
+
declare const _default$3m: TaskFn<{
|
|
1806
1838
|
package: string | string[];
|
|
1807
1839
|
sudo?: boolean | undefined;
|
|
1808
1840
|
packageManager?: string | undefined;
|
|
@@ -1822,6 +1854,7 @@ declare const _default$3n: TaskFn<{
|
|
|
1822
1854
|
|
|
1823
1855
|
declare const AbstractPkgUpdateParamsSchema: z.ZodObject<{
|
|
1824
1856
|
sudo: z.ZodOptional<z.ZodBoolean>;
|
|
1857
|
+
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1825
1858
|
packageManager: z.ZodOptional<z.ZodString>;
|
|
1826
1859
|
extraArgs: z.ZodOptional<z.ZodString>;
|
|
1827
1860
|
}, z.z.core.$strip>;
|
|
@@ -1838,8 +1871,9 @@ declare const AbstractPkgUpdateResultSchema: z.ZodObject<{
|
|
|
1838
1871
|
failed: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1839
1872
|
}, z.z.core.$strip>;
|
|
1840
1873
|
type AbstractPkgUpdateResult = z.infer<typeof AbstractPkgUpdateResultSchema>;
|
|
1841
|
-
declare const _default$
|
|
1874
|
+
declare const _default$3l: TaskFn<{
|
|
1842
1875
|
sudo?: boolean | undefined;
|
|
1876
|
+
input?: Record<string, string> | undefined;
|
|
1843
1877
|
packageManager?: string | undefined;
|
|
1844
1878
|
extraArgs?: string | undefined;
|
|
1845
1879
|
}, {
|
|
@@ -1868,7 +1902,7 @@ declare const PkgInfoOutputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1868
1902
|
error: z.ZodOptional<z.ZodString>;
|
|
1869
1903
|
}, z.z.core.$strip>]>;
|
|
1870
1904
|
type PkgInfoResult = z.infer<typeof PkgInfoOutputSchema>;
|
|
1871
|
-
declare const _default$
|
|
1905
|
+
declare const _default$3k: TaskFn<{
|
|
1872
1906
|
package: string;
|
|
1873
1907
|
}, {
|
|
1874
1908
|
installed: boolean;
|
|
@@ -1920,13 +1954,11 @@ interface PkgIsInstalledResult {
|
|
|
1920
1954
|
error?: string;
|
|
1921
1955
|
}
|
|
1922
1956
|
|
|
1923
|
-
declare const _default$
|
|
1957
|
+
declare const _default$3j: TaskFn<PkgIsInstalledParams, PkgIsInstalledResult>;
|
|
1924
1958
|
|
|
1925
1959
|
declare const install: TaskFn<PkgInstallParams, PkgInstallResult>;
|
|
1926
1960
|
|
|
1927
|
-
declare const _default$
|
|
1928
|
-
|
|
1929
|
-
declare const _default$3i: TaskFn<PkgUpdateParams, PkgUpdateResult>;
|
|
1961
|
+
declare const _default$3i: TaskFn<PkgRemoveParams, PkgRemoveResult>;
|
|
1930
1962
|
|
|
1931
1963
|
declare const AbstractPkgUpgradeParamsSchema: z.ZodObject<{
|
|
1932
1964
|
sudo: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2919,7 +2951,7 @@ type pkg_PkgRemoveResult = PkgRemoveResult;
|
|
|
2919
2951
|
type pkg_PkgUpdateParams = PkgUpdateParams;
|
|
2920
2952
|
type pkg_PkgUpdateResult = PkgUpdateResult;
|
|
2921
2953
|
declare namespace pkg {
|
|
2922
|
-
export { type pkg_AbstractPkgCleanParams as AbstractPkgCleanParams, type pkg_AbstractPkgCleanResult as AbstractPkgCleanResult, type pkg_AbstractPkgInstallParams as AbstractPkgInstallParams, type pkg_AbstractPkgInstallResult as AbstractPkgInstallResult, type pkg_AbstractPkgListParams as AbstractPkgListParams, type pkg_AbstractPkgListResult as AbstractPkgListResult, type pkg_AbstractPkgParams as AbstractPkgParams, type pkg_AbstractPkgResult as AbstractPkgResult, type pkg_AbstractPkgSearchParams as AbstractPkgSearchParams, type pkg_AbstractPkgSearchResult as AbstractPkgSearchResult, type pkg_AbstractPkgUninstallParams as AbstractPkgUninstallParams, type pkg_AbstractPkgUninstallResult as AbstractPkgUninstallResult, type pkg_AbstractPkgUpdateParams as AbstractPkgUpdateParams, type pkg_AbstractPkgUpdateResult as AbstractPkgUpdateResult, type pkg_AbstractPkgUpgradeParams as AbstractPkgUpgradeParams, type pkg_AbstractPkgUpgradeResult as AbstractPkgUpgradeResult, type pkg_PkgInfoParams as PkgInfoParams, type pkg_PkgInfoResult as PkgInfoResult, type pkg_PkgInstallParams as PkgInstallParams, type pkg_PkgInstallResult as PkgInstallResult, type pkg_PkgIsInstalledParams as PkgIsInstalledParams, type pkg_PkgIsInstalledResult as PkgIsInstalledResult, type pkg_PkgRemoveParams as PkgRemoveParams, type pkg_PkgRemoveResult as PkgRemoveResult, type pkg_PkgUpdateParams as PkgUpdateParams, type pkg_PkgUpdateResult as PkgUpdateResult, index$3 as apt, _default$3e as clean, index$2 as dnf, _default$
|
|
2954
|
+
export { type pkg_AbstractPkgCleanParams as AbstractPkgCleanParams, type pkg_AbstractPkgCleanResult as AbstractPkgCleanResult, type pkg_AbstractPkgInstallParams as AbstractPkgInstallParams, type pkg_AbstractPkgInstallResult as AbstractPkgInstallResult, type pkg_AbstractPkgListParams as AbstractPkgListParams, type pkg_AbstractPkgListResult as AbstractPkgListResult, type pkg_AbstractPkgParams as AbstractPkgParams, type pkg_AbstractPkgResult as AbstractPkgResult, type pkg_AbstractPkgSearchParams as AbstractPkgSearchParams, type pkg_AbstractPkgSearchResult as AbstractPkgSearchResult, type pkg_AbstractPkgUninstallParams as AbstractPkgUninstallParams, type pkg_AbstractPkgUninstallResult as AbstractPkgUninstallResult, type pkg_AbstractPkgUpdateParams as AbstractPkgUpdateParams, type pkg_AbstractPkgUpdateResult as AbstractPkgUpdateResult, type pkg_AbstractPkgUpgradeParams as AbstractPkgUpgradeParams, type pkg_AbstractPkgUpgradeResult as AbstractPkgUpgradeResult, type pkg_PkgInfoParams as PkgInfoParams, type pkg_PkgInfoResult as PkgInfoResult, type pkg_PkgInstallParams as PkgInstallParams, type pkg_PkgInstallResult as PkgInstallResult, type pkg_PkgIsInstalledParams as PkgIsInstalledParams, type pkg_PkgIsInstalledResult as PkgIsInstalledResult, type pkg_PkgRemoveParams as PkgRemoveParams, type pkg_PkgRemoveResult as PkgRemoveResult, type pkg_PkgUpdateParams as PkgUpdateParams, type pkg_PkgUpdateResult as PkgUpdateResult, index$3 as apt, _default$3e as clean, index$2 as dnf, _default$3k as info, _default$3n as install, install as installCp, _default$3j as isInstalled, _default$3f as list, index as pacman, _default$3m as remove, _default$3i as removeCp, _default$3g as search, _default$3l as update, _default$3h as upgrade, index$1 as yum };
|
|
2923
2955
|
}
|
|
2924
2956
|
|
|
2925
2957
|
declare const K3supInstallInputSchema: z.ZodObject<{
|