hostctl 0.1.40 → 0.1.42

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/index.d.ts CHANGED
@@ -154,6 +154,7 @@ declare class Host {
154
154
  user: string | undefined;
155
155
  tags: string[];
156
156
  };
157
+ effectiveTags(): Set<string>;
157
158
  hasTag(tag: string): boolean;
158
159
  hasAllTags(tags: Set<string>): boolean;
159
160
  hasAnyTag(tags: Set<string>): boolean;
@@ -238,25 +239,51 @@ declare class CommandResult {
238
239
  get success(): boolean;
239
240
  get failure(): boolean;
240
241
  }
242
+ interface CommandOptions {
243
+ cmd: string;
244
+ args?: string[];
245
+ cwd?: string;
246
+ env?: EnvVarObj;
247
+ result?: CommandResult;
248
+ sudo?: boolean;
249
+ }
241
250
  declare class Command {
242
251
  static parse(commandString: string, env?: EnvVarObj): {
243
252
  cmd: string;
244
253
  args: string[];
245
254
  env?: EnvVarObj;
246
255
  };
256
+ /**
257
+ * Builds a Command object from a command string or array with optional sudo and environment variables.
258
+ * This is the main factory method for creating commands that will be executed.
259
+ */
260
+ static build(command: string | string[], options?: {
261
+ sudo?: boolean;
262
+ env?: EnvVarObj;
263
+ cwd?: string;
264
+ }): Command;
247
265
  cmd: string;
248
266
  args?: string[] | undefined;
249
267
  cwd?: string;
250
268
  env?: Record<string, string>;
251
269
  result?: CommandResult;
252
- constructor(opts: {
253
- cmd: string;
254
- args?: string[];
255
- cwd?: string;
256
- env?: Record<string, string>;
257
- result?: CommandResult;
258
- });
270
+ sudo?: boolean;
271
+ constructor(opts: CommandOptions);
259
272
  isRunning(): boolean;
273
+ /**
274
+ * Returns the command as a string suitable for shell execution.
275
+ * Uses POSIX standard env command for environment variables.
276
+ */
277
+ toString(): string;
278
+ /**
279
+ * Returns the command and args as separate components.
280
+ * If env is set, returns env as the command and env assignments as args.
281
+ * If sudo is set, returns sudo as the command and the rest as args.
282
+ */
283
+ toArray(): {
284
+ cmd: string;
285
+ args: string[];
286
+ };
260
287
  toJSON(): {
261
288
  cmd: string;
262
289
  args: string[] | undefined;
@@ -333,13 +360,47 @@ declare class InteractionHandler {
333
360
  end(): void;
334
361
  }
335
362
 
363
+ /**
364
+ * Generic object type for parameters and return values.
365
+ */
366
+ type ObjectType = {
367
+ [key: string]: any;
368
+ };
369
+ /**
370
+ * Base type for task-specific parameters.
371
+ */
372
+ type TaskParams = ObjectType;
373
+ /**
374
+ * Represents the possible return values of a task's run function.
375
+ */
376
+ type RunFnReturnValue = ObjectType | void | undefined | null | Error;
377
+ /**
378
+ * Defines the signature of a task's main execution function.
379
+ * It receives a TaskContext and returns a Promise of a RunFnReturnValue.
380
+ */
381
+ interface RunFn<TParams extends TaskParams = TaskParams, TReturn extends RunFnReturnValue = RunFnReturnValue> {
382
+ (context: TaskContext<TParams>): Promise<TReturn>;
383
+ }
384
+ /**
385
+ * Represents a task definition, including its run function and metadata.
386
+ * This class is instantiated by the `task` factory function.
387
+ */
388
+ declare class Task<TParams extends TaskParams = TaskParams, TReturn extends RunFnReturnValue = RunFnReturnValue> {
389
+ runFn: RunFn<TParams, TReturn>;
390
+ taskModuleAbsolutePath?: string | undefined;
391
+ description?: string | undefined;
392
+ name?: string | undefined;
393
+ constructor(runFn: RunFn<TParams, TReturn>, taskModuleAbsolutePath?: string | undefined, description?: string | undefined, name?: string | undefined);
394
+ }
395
+
336
396
  type LogLevel = number;
337
397
  interface FileSystemOperations$1 {
338
398
  read: (path: string) => Promise<string>;
339
- write: (path: string, content: string, options?: {
399
+ write: (path: string, content: string | Buffer, options?: {
340
400
  mode?: string | number;
341
401
  user?: string;
342
402
  group?: string;
403
+ flag?: string;
343
404
  }) => Promise<void>;
344
405
  exists: (path: string) => Promise<boolean>;
345
406
  mkdir: (path: string, options?: {
@@ -376,6 +437,7 @@ interface TaskContext<TParams extends TaskParams = TaskParams> {
376
437
  getSecret: (name: string) => Promise<string | undefined>;
377
438
  exit: (exitCode: number, message?: string) => void;
378
439
  inventory: (tags: string[]) => Host[];
440
+ selectedInventory: (tags?: string[]) => Host[];
379
441
  file: FileSystemOperations$1;
380
442
  }
381
443
  type TaskPartialFn<TReturn extends RunFnReturnValue = RunFnReturnValue> = (parentInvocation: IInvocation) => Promise<TReturn>;
@@ -414,6 +476,7 @@ interface IInvocation<TParams extends TaskParams = any> {
414
476
  getSecret(name: string): Promise<string | undefined>;
415
477
  exit(exitCode: number, message?: string): void;
416
478
  inventory(tags: string[]): Host[];
479
+ selectedInventory(tags?: string[]): Host[];
417
480
  setDescription(description: string): void;
418
481
  setFutureResult(resultPromise: Promise<RunFnReturnValue>): void;
419
482
  appendChildInvocation(childInvocation: IInvocation<any>): Promise<void>;
@@ -455,6 +518,7 @@ declare abstract class Invocation<TParams extends TaskParams = any> implements I
455
518
  getResultPromise(): Promise<RunFnReturnValue>;
456
519
  exit(exitCode: number, message?: string): void;
457
520
  inventory(tags: string[]): Host[];
521
+ selectedInventory(tags?: string[]): Host[];
458
522
  appendChildInvocation(childInvocation: IInvocation<any>): Promise<void>;
459
523
  abstract readonly config: AppConfig;
460
524
  abstract log(level: LogLevel, ...message: any[]): void;
@@ -485,48 +549,17 @@ interface IRuntime {
485
549
  getTmpDir(): Path;
486
550
  getTmpFile(prefix?: string, postfix?: string, dir?: Path): Path;
487
551
  inventory(tags: string[]): Host[];
552
+ selectedInventory(tags?: string[]): Host[];
488
553
  invokeRootTask<TParams extends TaskParams, TReturn extends RunFnReturnValue>(taskFnDefinition: TaskFn<TParams, TReturn>, params: TParams, description?: string): Promise<IInvocation<TParams>>;
489
554
  }
490
555
 
491
- /**
492
- * Generic object type for parameters and return values.
493
- */
494
- type ObjectType = {
495
- [key: string]: any;
496
- };
497
- /**
498
- * Base type for task-specific parameters.
499
- */
500
- type TaskParams = ObjectType;
501
- /**
502
- * Represents the possible return values of a task's run function.
503
- */
504
- type RunFnReturnValue = ObjectType | void | undefined | null | Error;
505
- /**
506
- * Defines the signature of a task's main execution function.
507
- * It receives a TaskContext and returns a Promise of a RunFnReturnValue.
508
- */
509
- interface RunFn<TParams extends TaskParams = TaskParams, TReturn extends RunFnReturnValue = RunFnReturnValue> {
510
- (context: TaskContext<TParams>): Promise<TReturn>;
511
- }
512
- /**
513
- * Represents a task definition, including its run function and metadata.
514
- * This class is instantiated by the `task` factory function.
515
- */
516
- declare class Task<TParams extends TaskParams = TaskParams, TReturn extends RunFnReturnValue = RunFnReturnValue> {
517
- runFn: RunFn<TParams, TReturn>;
518
- taskModuleAbsolutePath?: string | undefined;
519
- description?: string | undefined;
520
- name?: string | undefined;
521
- constructor(runFn: RunFn<TParams, TReturn>, taskModuleAbsolutePath?: string | undefined, description?: string | undefined, name?: string | undefined);
522
- }
523
-
524
556
  interface FileSystemOperations {
525
557
  read: (path: string) => Promise<string>;
526
- write: (path: string, content: string, options?: {
558
+ write: (path: string, content: string | Buffer, options?: {
527
559
  mode?: string | number | undefined;
528
560
  user?: string | undefined;
529
561
  group?: string | undefined;
562
+ flag?: string | undefined;
530
563
  }) => Promise<void>;
531
564
  exists: (path: string) => Promise<boolean>;
532
565
  mkdir: (path: string, options?: {
@@ -557,7 +590,6 @@ declare class LocalInvocation<TParams extends TaskParams, TReturn extends RunFnR
557
590
  ssh<TRemoteParams extends TaskParams = {}, TRemoteReturn extends RunFnReturnValue = RunFnReturnValue>(tags: string[], remoteTaskFn: (remoteContext: TaskContext<TRemoteParams>) => Promise<TRemoteReturn>): Promise<Record<string, TRemoteReturn | Error>>;
558
591
  runRemoteTaskOnHost<TRemoteParams extends TaskParams, TRemoteReturn extends RunFnReturnValue>(host: Host, remoteTaskFn: RunFn<TRemoteParams, TRemoteReturn>): Promise<TRemoteReturn | Error>;
559
592
  exit(exitCode: number, message?: string): void;
560
- inventory(tags: string[]): Host[];
561
593
  run<TRunReturn extends RunFnReturnValue>(taskPartialFn: TaskPartialFn<TRunReturn>): Promise<TRunReturn>;
562
594
  invokeChildTask<TTaskParams extends TaskParams, TTaskReturn extends RunFnReturnValue>(childTaskFnDefinition: TaskFn<TTaskParams, TTaskReturn>, params: TTaskParams): Promise<TTaskReturn>;
563
595
  }
@@ -578,34 +610,18 @@ declare class LocalRuntime implements IRuntime {
578
610
  getTmpDir(): Path;
579
611
  getTmpFile(prefix?: string | undefined, postfix?: string | undefined, dir?: Path | undefined): Path;
580
612
  inventory(tags: string[]): Host[];
613
+ selectedInventory(tags?: string[]): Host[];
581
614
  invokeRootTask<TParams extends TaskParams, TReturn extends RunFnReturnValue>(taskFnDefinition: TaskFn<TParams, TReturn>, params: TParams, description?: string): Promise<LocalInvocation<TParams, TReturn>>;
582
615
  }
583
616
 
584
- declare class RemoteRuntime implements IRuntime {
585
- private sftpClientInstance?;
586
- readonly app: App;
587
- readonly host: Host;
588
- readonly interactionHandler: InteractionHandler;
589
- private sshSession;
590
- constructor(app: App, host: Host, _localRuntime: LocalRuntime, interactionHandler?: InteractionHandler);
591
- get tmpDirRootPath(): Path;
592
- getPassword(): Promise<string | undefined>;
593
- getSecret(name: string): Promise<string | undefined>;
594
- getTmpDir(): Path;
595
- getTmpFile(prefix?: string | undefined, postfix?: string | undefined, dir?: Path | undefined): Path;
596
- inventory(tags: string[]): Host[];
597
- connect(): Promise<boolean>;
598
- getSftpClient(): Promise<any>;
599
- executeCommand(command: string | string[], options?: {
600
- cwd?: string;
601
- stdin?: string | Buffer;
602
- pty?: boolean;
603
- env?: Record<string, string>;
604
- interactionHandler?: InteractionHandler;
605
- }): Promise<Command | Error>;
606
- disconnect(): Promise<void>;
607
- invokeRootTask<TParams extends TaskParams, TReturn extends RunFnReturnValue>(taskFnDefinition: TaskFn<TParams, TReturn>, params: TParams): Promise<IInvocation>;
608
- }
617
+ declare const Verbosity: {
618
+ readonly ERROR: 0;
619
+ readonly WARN: 1;
620
+ readonly INFO: 2;
621
+ readonly DEBUG: 3;
622
+ readonly TRACE: 4;
623
+ };
624
+ type VerbosityLevel = (typeof Verbosity)[keyof typeof Verbosity];
609
625
 
610
626
  type AppConfig = Config;
611
627
 
@@ -629,14 +645,42 @@ declare class TaskTree {
629
645
  getWithTimeout(id: string): Promise<TaskTreeNode | undefined>;
630
646
  run(ctx?: any): Promise<any>;
631
647
  }
632
- declare const Verbosity: {
633
- ERROR: number;
634
- WARN: number;
635
- INFO: number;
636
- DEBUG: number;
637
- TRACE: number;
638
- };
648
+ interface LoadAppOptions {
649
+ /** Optional configuration file path or URL */
650
+ config?: string;
651
+ /** Optional verbosity level (0-4, where 0 is error only, 4 is trace) */
652
+ verbosity?: number;
653
+ /** Optional output style (plain, json, api) */
654
+ outputStyle?: 'plain' | 'json' | 'api';
655
+ }
656
+ interface ExecuteResult {
657
+ /** Overall success indicator - true if all hosts succeeded */
658
+ success: boolean;
659
+ /** Results for each host, keyed by hostname */
660
+ hosts: Record<string, {
661
+ /** Host alias if available */
662
+ alias: string;
663
+ /** Whether the command succeeded on this host */
664
+ success: boolean;
665
+ /** Command output */
666
+ stdout: string;
667
+ /** Command error output */
668
+ stderr: string;
669
+ /** Exit code */
670
+ exitCode: number;
671
+ /** Signal if the process was terminated by a signal */
672
+ signal?: string;
673
+ }>;
674
+ /** Total number of hosts that were targeted */
675
+ totalHosts: number;
676
+ /** Number of hosts that succeeded */
677
+ successfulHosts: number;
678
+ /** Number of hosts that failed */
679
+ failedHosts: number;
680
+ }
639
681
  declare class App {
682
+ static loadApiMode(options: LoadAppOptions): Promise<App>;
683
+ static load(options: LoadAppOptions): Promise<App>;
640
684
  configRef?: string;
641
685
  private _config?;
642
686
  selectedTags: Set<string>;
@@ -644,12 +688,14 @@ declare class App {
644
688
  private _tmpDir?;
645
689
  private tmpFileRegistry;
646
690
  taskTree: TaskTree;
647
- verbosity: number;
691
+ verbosity: VerbosityLevel;
648
692
  constructor();
649
693
  appExitCallback(): void;
650
694
  get config(): Config;
651
695
  get tmpDir(): Path;
652
- loadConfig(configString?: string): Promise<void>;
696
+ loadConfig(configRef?: string): Promise<void>;
697
+ isValidUrl(url: string): boolean;
698
+ deriveConfigRef(configRef?: string): string;
653
699
  log(level: LogLevel, ...args: any[]): void;
654
700
  debug(...args: any[]): void;
655
701
  info(...args: any[]): void;
@@ -666,24 +712,41 @@ declare class App {
666
712
  shouldRunRemote(): boolean;
667
713
  logHostCommandResult(host: Host, command: string | string[], cmdOrErr: Command | Error, isErrorResult?: boolean): void;
668
714
  defaultSshUser(): string | undefined;
669
- execute(cmd: string | string[]): Promise<boolean>;
715
+ execute(cmd: string | string[]): Promise<ExecuteResult>;
670
716
  runRemote(host: Host, cmd: string | string[]): Promise<Command | Error>;
717
+ /**
718
+ * Builds the hosts record from host result quads
719
+ */
720
+ private buildHostsRecord;
721
+ /**
722
+ * Counts successful and failed hosts from host result quads
723
+ */
724
+ private countHostResults;
725
+ /**
726
+ * Determines overall success from host result quads
727
+ */
728
+ private determineOverallSuccess;
729
+ /**
730
+ * Constructs the detailed ExecuteResult from host result quads and total host count
731
+ */
732
+ private buildExecuteResult;
671
733
  getSecretsForHost(hostId: string): Map<string | RegExp, string>;
672
734
  taskContextForRunFn<TParams extends TaskParams>(invocation: IInvocation<TParams>, params: TParams, hostForContext?: Host): TaskContext<TParams>;
673
735
  setSelectedTags(selectedTags: string[]): void;
674
- setOutputStyle(outputStyle: 'plain' | 'json'): void;
675
- setVerbosity(level: number): void;
736
+ setOutputStyle(outputStyle: 'plain' | 'json' | 'api'): void;
737
+ setVerbosity(level: number): VerbosityLevel;
738
+ outputApiMode(): boolean;
676
739
  outputJson(): boolean;
677
740
  outputPlain(): boolean;
678
- querySelectedInventory(tags?: string[]): Host[];
741
+ querySelectedInventory(tags?: Set<string>): Host[];
679
742
  selectedInventory(): Host[];
680
743
  queryInventory(tags?: Set<string>): Host[];
681
744
  selectInventory(hosts: Host[], tags?: Set<string>): Host[];
682
745
  printInventoryReport(): void;
683
746
  encryptInventoryFile(): Promise<void>;
684
747
  decryptInventoryFile(): Promise<void>;
685
- runScript(scriptRef: string, params: TaskParams): Promise<void>;
686
- runScriptRemote(scriptRef: string, params: TaskParams): Promise<void>;
748
+ runScript(scriptRef: string, params: TaskParams): Promise<RunFnReturnValue>;
749
+ runScriptRemote(scriptRef: string, params: TaskParams): Promise<RunFnReturnValue>;
687
750
  walkInvocationTreePreorder(invocation: IInvocation<any>, visitFn: (invocation: IInvocation<any>, depth: number) => Promise<void>, visited?: Set<IInvocation<any>>, depth?: number): Promise<void>;
688
751
  reportScriptResult(invocation: LocalInvocation<any, any>, scriptResult: RunFnReturnValue | Error): Promise<void>;
689
752
  loadScriptAsModule(scriptRef: string): Promise<any>;
@@ -692,7 +755,39 @@ declare class App {
692
755
  printRuntimeReport(): Promise<void>;
693
756
  promptPassword(message?: string): Promise<string>;
694
757
  installRuntime(): Promise<void>;
695
- bootstrap(): Promise<void>;
758
+ /**
759
+ * Executes a command on the selected hosts
760
+ *
761
+ * @param options - Configuration options for running the task
762
+ * @returns Promise resolving to the task's result
763
+ */
764
+ apiExecute(options: {
765
+ /** The host tags to scope the run to */
766
+ hostTags?: string[];
767
+ /** The command to execute */
768
+ command: string | string[];
769
+ }): Promise<ExecuteResult>;
770
+ /**
771
+ * Resolves a task from a package reference and runs it
772
+ *
773
+ * This method provides a simple way to resolve and execute tasks using the same
774
+ * logic as the CLI, but as a method on an App instance.
775
+ *
776
+ * @param options - Configuration options for running the task
777
+ * @returns Promise resolving to the task's result
778
+ */
779
+ apiRunTask(options: {
780
+ /** Whether to run the task remotely (if not provided, runs locally) */
781
+ remote?: boolean;
782
+ /** The host tags to scope the run to */
783
+ hostTags?: string[];
784
+ /** The package reference (core task, local path, or remote package) */
785
+ package: string;
786
+ /** Optional task name within the package */
787
+ task?: string;
788
+ /** Parameters to pass to the task */
789
+ params: TaskParams;
790
+ }): Promise<RunFnReturnValue>;
696
791
  }
697
792
 
698
793
  declare class Cli {
@@ -704,7 +799,7 @@ declare class Cli {
704
799
  handleInventoryDecrypt(options: Record<string, any>, cmd: cmdr.Command): Promise<void>;
705
800
  handleInventoryList(options: Record<string, any>, cmd: cmdr.Command): Promise<void>;
706
801
  handleExec(commandParts: string | string[], options: Record<string, any>, cmd: cmdr.Command): Promise<void>;
707
- handleRun(packageRef: string | null, scriptRef: string | undefined, scriptArgs: string[], options: Record<string, any>, cmd: cmdr.Command): Promise<void>;
802
+ handleRun(pkgTaskArgs: string[], options: Record<string, any>, cmd: cmdr.Command): Promise<void>;
708
803
  deriveConfigRef(suppliedConfigRef?: string): string;
709
804
  loadApp(opts: Record<string, any>): Promise<void>;
710
805
  run(): Promise<void>;
@@ -722,6 +817,15 @@ interface WhoamiParams {
722
817
  }
723
818
  interface WhoamiResult {
724
819
  user: string;
820
+ success: boolean;
821
+ error?: string;
822
+ }
823
+
824
+ type EnvParams = {};
825
+ interface EnvResult {
826
+ env: Record<string, string>;
827
+ success: boolean;
828
+ error?: string;
725
829
  }
726
830
 
727
831
  type EchoParams = {
@@ -729,15 +833,20 @@ type EchoParams = {
729
833
  };
730
834
  interface EchoResult {
731
835
  stdout: string;
836
+ success: boolean;
837
+ error?: string;
732
838
  }
733
839
 
734
840
  interface DirExistsParams {
735
841
  path: string;
842
+ sudo?: boolean;
736
843
  }
737
844
  interface DirExistsResult {
738
845
  exists: boolean;
846
+ success: boolean;
847
+ error?: string;
739
848
  }
740
- declare const _default$16: TaskFn<DirExistsParams, DirExistsResult>;
849
+ declare const _default$3z: TaskFn<DirExistsParams, DirExistsResult>;
741
850
 
742
851
  interface DirCopyParams {
743
852
  from: string;
@@ -749,8 +858,9 @@ interface DirCopyParams {
749
858
  }
750
859
  interface DirCopyResult {
751
860
  success: boolean;
861
+ error?: string;
752
862
  }
753
- declare const _default$15: TaskFn<DirCopyParams, DirCopyResult>;
863
+ declare const _default$3y: TaskFn<DirCopyParams, DirCopyResult>;
754
864
 
755
865
  interface DirCreateParams {
756
866
  path: string;
@@ -759,11 +869,12 @@ interface DirCreateParams {
759
869
  }
760
870
  interface DirCreateResult {
761
871
  success: boolean;
872
+ error?: string;
762
873
  }
763
- declare const _default$14: TaskFn<DirCreateParams, DirCreateResult>;
874
+ declare const _default$3x: TaskFn<DirCreateParams, DirCreateResult>;
764
875
 
765
876
  declare namespace dir {
766
- export { _default$15 as copy, _default$14 as create, _default$16 as exists };
877
+ export { _default$3y as copy, _default$3x as create, _default$3z as exists };
767
878
  }
768
879
 
769
880
  interface ChownParams {
@@ -777,7 +888,7 @@ interface ChownResult {
777
888
  success: boolean;
778
889
  error?: string;
779
890
  }
780
- declare const _default$13: TaskFn<ChownParams, ChownResult>;
891
+ declare const _default$3w: TaskFn<ChownParams, ChownResult>;
781
892
 
782
893
  interface ChgrpParams {
783
894
  path: string;
@@ -789,7 +900,7 @@ interface ChgrpResult {
789
900
  success: boolean;
790
901
  error?: string;
791
902
  }
792
- declare const _default$12: TaskFn<ChgrpParams, ChgrpResult>;
903
+ declare const _default$3v: TaskFn<ChgrpParams, ChgrpResult>;
793
904
 
794
905
  interface ChmodParams {
795
906
  path: string;
@@ -801,7 +912,7 @@ interface ChmodResult {
801
912
  success: boolean;
802
913
  error?: string;
803
914
  }
804
- declare const _default$11: TaskFn<ChmodParams, ChmodResult>;
915
+ declare const _default$3u: TaskFn<ChmodParams, ChmodResult>;
805
916
 
806
917
  interface FileCopyParams {
807
918
  from: string;
@@ -814,36 +925,44 @@ interface FileCopyParams {
814
925
  }
815
926
  interface FileCopyResult {
816
927
  success: boolean;
928
+ error?: string;
817
929
  }
818
- declare const _default$10: TaskFn<FileCopyParams, FileCopyResult>;
930
+ declare const _default$3t: TaskFn<FileCopyParams, FileCopyResult>;
819
931
 
820
932
  interface FileExistsParams {
821
933
  path: string;
934
+ sudo?: boolean;
822
935
  }
823
936
  interface FileExistsResult {
824
937
  exists: boolean;
938
+ success: boolean;
939
+ error?: string;
825
940
  }
826
- declare const _default$$: TaskFn<FileExistsParams, FileExistsResult>;
941
+ declare const _default$3s: TaskFn<FileExistsParams, FileExistsResult>;
827
942
 
828
943
  interface FileTouchParams {
829
944
  file: string;
830
945
  mode?: string;
831
946
  owner?: string;
947
+ sudo?: boolean;
832
948
  }
833
949
  interface FileTouchResult {
834
950
  success: boolean;
951
+ error?: string;
835
952
  }
836
- declare const _default$_: TaskFn<FileTouchParams, FileTouchResult>;
953
+ declare const _default$3r: TaskFn<FileTouchParams, FileTouchResult>;
837
954
 
838
955
  interface FileDeleteParams {
839
956
  path: string;
840
957
  recursive?: boolean;
841
958
  force?: boolean;
959
+ sudo?: boolean;
842
960
  }
843
961
  interface FileDeleteResult {
844
962
  success: boolean;
963
+ error?: string;
845
964
  }
846
- declare const _default$Z: TaskFn<FileDeleteParams, FileDeleteResult>;
965
+ declare const _default$3q: TaskFn<FileDeleteParams, FileDeleteResult>;
847
966
 
848
967
  interface FileLinkParams {
849
968
  /** Path the symlink should point TO (target). */
@@ -858,8 +977,9 @@ interface FileLinkParams {
858
977
  interface FileLinkResult {
859
978
  changed: boolean;
860
979
  success: boolean;
980
+ error?: string;
861
981
  }
862
- declare const _default$Y: TaskFn<FileLinkParams, FileLinkResult>;
982
+ declare const _default$3p: TaskFn<FileLinkParams, FileLinkResult>;
863
983
 
864
984
  interface FileEditParams {
865
985
  file: string;
@@ -878,8 +998,9 @@ interface FileEditParams {
878
998
  interface FileEditResult {
879
999
  changed: boolean;
880
1000
  success: boolean;
1001
+ error?: string;
881
1002
  }
882
- declare const _default$X: TaskFn<FileEditParams, FileEditResult>;
1003
+ declare const _default$3o: TaskFn<FileEditParams, FileEditResult>;
883
1004
 
884
1005
  interface FileGrepParams {
885
1006
  /** Path to the file to search */
@@ -906,6 +1027,8 @@ interface FileGrepParams {
906
1027
  max_count?: number;
907
1028
  /** Return the matching lines in the result payload. Default: false */
908
1029
  return_lines?: boolean;
1030
+ /** Run commands via sudo */
1031
+ sudo?: boolean;
909
1032
  }
910
1033
  interface FileGrepResult {
911
1034
  /** True if one or more matches were found */
@@ -914,8 +1037,12 @@ interface FileGrepResult {
914
1037
  count: number;
915
1038
  /** Matching lines (included only when return_lines=true) */
916
1039
  lines?: string[];
1040
+ /** Whether the operation was successful */
1041
+ success: boolean;
1042
+ /** Error message if operation failed */
1043
+ error?: string;
917
1044
  }
918
- declare const _default$W: TaskFn<FileGrepParams, FileGrepResult>;
1045
+ declare const _default$3n: TaskFn<FileGrepParams, FileGrepResult>;
919
1046
 
920
1047
  type file_ChgrpParams = ChgrpParams;
921
1048
  type file_ChgrpResult = ChgrpResult;
@@ -938,7 +1065,7 @@ type file_FileLinkResult = FileLinkResult;
938
1065
  type file_FileTouchParams = FileTouchParams;
939
1066
  type file_FileTouchResult = FileTouchResult;
940
1067
  declare namespace file {
941
- 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$12 as chgrp, _default$11 as chmod, _default$13 as chown, _default$10 as copy, _default$Z as delete, _default$X as edit, _default$$ as exists, _default$W as grep, _default$Y as link, _default$_ as touch };
1068
+ 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$3v as chgrp, _default$3u as chmod, _default$3w as chown, _default$3t as copy, _default$3q as delete, _default$3o as edit, _default$3s as exists, _default$3n as grep, _default$3p as link, _default$3r as touch };
942
1069
  }
943
1070
 
944
1071
  interface GitCloneParams {
@@ -947,8 +1074,9 @@ interface GitCloneParams {
947
1074
  }
948
1075
  interface GitCloneResult {
949
1076
  success: boolean;
1077
+ error?: string;
950
1078
  }
951
- declare const _default$V: TaskFn<GitCloneParams, GitCloneResult>;
1079
+ declare const _default$3m: TaskFn<GitCloneParams, GitCloneResult>;
952
1080
 
953
1081
  interface GitPullParams {
954
1082
  /** The directory of the git repository on the host. */
@@ -966,7 +1094,7 @@ interface GitPullResult {
966
1094
  /** Error message if the pull operation failed. */
967
1095
  error?: string;
968
1096
  }
969
- declare const _default$U: TaskFn<GitPullParams, GitPullResult>;
1097
+ declare const _default$3l: TaskFn<GitPullParams, GitPullResult>;
970
1098
 
971
1099
  interface GitCheckoutParams {
972
1100
  /** The directory of the git repository on the host. */
@@ -982,7 +1110,7 @@ interface GitCheckoutResult {
982
1110
  /** Error message if the checkout operation failed. */
983
1111
  error?: string;
984
1112
  }
985
- declare const _default$T: TaskFn<GitCheckoutParams, GitCheckoutResult>;
1113
+ declare const _default$3k: TaskFn<GitCheckoutParams, GitCheckoutResult>;
986
1114
 
987
1115
  type git_GitCheckoutParams = GitCheckoutParams;
988
1116
  type git_GitCheckoutResult = GitCheckoutResult;
@@ -991,7 +1119,7 @@ type git_GitCloneResult = GitCloneResult;
991
1119
  type git_GitPullParams = GitPullParams;
992
1120
  type git_GitPullResult = GitPullResult;
993
1121
  declare namespace git {
994
- 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$T as checkout, _default$V as clone, _default$U as pull };
1122
+ 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$3k as checkout, _default$3m as clone, _default$3l as pull };
995
1123
  }
996
1124
 
997
1125
  interface GroupCreateParams {
@@ -1001,8 +1129,9 @@ interface GroupCreateParams {
1001
1129
  }
1002
1130
  interface GroupCreateResult {
1003
1131
  success: boolean;
1132
+ error?: string;
1004
1133
  }
1005
- declare const _default$S: TaskFn<GroupCreateParams, GroupCreateResult>;
1134
+ declare const _default$3j: TaskFn<GroupCreateParams, GroupCreateResult>;
1006
1135
 
1007
1136
  interface GroupDeleteParams {
1008
1137
  group: string;
@@ -1013,7 +1142,7 @@ interface GroupDeleteResult {
1013
1142
  success: boolean;
1014
1143
  error?: string;
1015
1144
  }
1016
- declare const _default$R: TaskFn<GroupDeleteParams, GroupDeleteResult>;
1145
+ declare const _default$3i: TaskFn<GroupDeleteParams, GroupDeleteResult>;
1017
1146
 
1018
1147
  interface GroupExistsParams {
1019
1148
  group: string;
@@ -1021,7 +1150,7 @@ interface GroupExistsParams {
1021
1150
  interface GroupExistsResult {
1022
1151
  exists: boolean;
1023
1152
  }
1024
- declare const _default$Q: TaskFn<GroupExistsParams, GroupExistsResult>;
1153
+ declare const _default$3h: TaskFn<GroupExistsParams, GroupExistsResult>;
1025
1154
 
1026
1155
  interface GroupInfo {
1027
1156
  name: string;
@@ -1031,9 +1160,10 @@ interface GroupListParams {
1031
1160
  }
1032
1161
  interface GroupListResult {
1033
1162
  success: boolean;
1163
+ error?: string;
1034
1164
  groups: GroupInfo[];
1035
1165
  }
1036
- declare const _default$P: TaskFn<GroupListParams, GroupListResult>;
1166
+ declare const _default$3g: TaskFn<GroupListParams, GroupListResult>;
1037
1167
 
1038
1168
  interface GroupModifyParams {
1039
1169
  /** The current name of the group. */
@@ -1050,7 +1180,7 @@ interface GroupModifyResult {
1050
1180
  changed: boolean;
1051
1181
  error?: string;
1052
1182
  }
1053
- declare const _default$O: TaskFn<GroupModifyParams, GroupModifyResult>;
1183
+ declare const _default$3f: TaskFn<GroupModifyParams, GroupModifyResult>;
1054
1184
 
1055
1185
  type group_GroupCreateParams = GroupCreateParams;
1056
1186
  type group_GroupCreateResult = GroupCreateResult;
@@ -1064,7 +1194,7 @@ type group_GroupListResult = GroupListResult;
1064
1194
  type group_GroupModifyParams = GroupModifyParams;
1065
1195
  type group_GroupModifyResult = GroupModifyResult;
1066
1196
  declare namespace group {
1067
- 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$S as create, _default$R as delete, _default$Q as exists, _default$P as list, _default$O as modify };
1197
+ 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$3j as create, _default$3i as delete, _default$3h as exists, _default$3g as list, _default$3f as modify };
1068
1198
  }
1069
1199
 
1070
1200
  interface OSInfo {
@@ -1098,13 +1228,15 @@ interface HostSummary {
1098
1228
 
1099
1229
  interface HostInfoResult {
1100
1230
  host: HostInfo;
1231
+ success: boolean;
1232
+ error?: string;
1101
1233
  }
1102
- declare const _default$N: TaskFn<ObjectType, HostInfoResult>;
1234
+ declare const _default$3e: TaskFn<ObjectType, HostInfoResult>;
1103
1235
 
1104
1236
  interface HostSummaryResult {
1105
1237
  host: HostSummary;
1106
1238
  }
1107
- declare const _default$M: TaskFn<ObjectType, HostSummaryResult>;
1239
+ declare const _default$3d: TaskFn<ObjectType, HostSummaryResult>;
1108
1240
 
1109
1241
  interface OsDetailsResult {
1110
1242
  success: boolean;
@@ -1121,7 +1253,7 @@ interface OsDetailsResult {
1121
1253
  * Determines the operating system family, specific OS, variant, and version.
1122
1254
  * @returns {OsDetailsResult}
1123
1255
  */
1124
- declare const _default$L: TaskFn<ObjectType, OsDetailsResult>;
1256
+ declare const _default$3c: TaskFn<ObjectType, OsDetailsResult>;
1125
1257
 
1126
1258
  interface HostnameParams {
1127
1259
  new_name?: string;
@@ -1129,8 +1261,10 @@ interface HostnameParams {
1129
1261
  interface HostnameResult {
1130
1262
  hostname: string;
1131
1263
  updated: boolean;
1264
+ success: boolean;
1265
+ error?: string;
1132
1266
  }
1133
- declare const _default$K: TaskFn<HostnameParams, HostnameResult>;
1267
+ declare const _default$3b: TaskFn<HostnameParams, HostnameResult>;
1134
1268
 
1135
1269
  type host_HostInfo = HostInfo;
1136
1270
  type host_HostInfoResult = HostInfoResult;
@@ -1143,7 +1277,7 @@ type host_LSCPUChild = LSCPUChild;
1143
1277
  type host_OSInfo = OSInfo;
1144
1278
  type host_OsDetailsResult = OsDetailsResult;
1145
1279
  declare namespace host {
1146
- export { 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$K as hostname, _default$N as info, _default$L as os, _default$M as summary };
1280
+ export { 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$3b as hostname, _default$3e as info, _default$3c as os, _default$3d as summary };
1147
1281
  }
1148
1282
 
1149
1283
  interface AbstractPkgParams {
@@ -1155,6 +1289,11 @@ interface AbstractPkgParams {
1155
1289
  packageManager?: string;
1156
1290
  /** Additional arguments to pass to the package manager */
1157
1291
  extraArgs?: string;
1292
+ /**
1293
+ * Map of interactive prompt patterns to responses. If a prompt matching a pattern appears during installation,
1294
+ * the corresponding response will be sent to stdin. Merged with default patterns for common package manager prompts.
1295
+ */
1296
+ input?: Record<string, string>;
1158
1297
  }
1159
1298
  interface AbstractPkgResult {
1160
1299
  success: boolean;
@@ -1162,6 +1301,9 @@ interface AbstractPkgResult {
1162
1301
  packageManager?: string;
1163
1302
  output?: string;
1164
1303
  packages?: AbstractPkgInfo[];
1304
+ removed?: string[];
1305
+ notInstalled?: string[];
1306
+ failed?: string[];
1165
1307
  }
1166
1308
  interface AbstractPkgInfo {
1167
1309
  name: string;
@@ -1170,12 +1312,48 @@ interface AbstractPkgInfo {
1170
1312
  status?: string;
1171
1313
  [key: string]: any;
1172
1314
  }
1315
+ interface AbstractPkgCleanResult extends AbstractPkgResult {
1316
+ }
1317
+ interface AbstractPkgCleanParams {
1318
+ /** Force use of specific package manager (auto-detect if not specified) */
1319
+ packageManager?: string;
1320
+ /** Whether to run the command with sudo */
1321
+ sudo?: boolean;
1322
+ }
1173
1323
 
1174
1324
  interface AbstractPkgInstallParams extends AbstractPkgParams {
1175
1325
  }
1176
1326
  interface AbstractPkgInstallResult extends AbstractPkgResult {
1177
1327
  }
1178
- declare const _default$J: TaskFn<AbstractPkgInstallParams, AbstractPkgInstallResult>;
1328
+ declare const _default$3a: TaskFn<AbstractPkgInstallParams, AbstractPkgInstallResult>;
1329
+
1330
+ interface AbstractPkgUninstallParams extends AbstractPkgParams {
1331
+ }
1332
+ interface AbstractPkgUninstallResult extends AbstractPkgResult {
1333
+ }
1334
+ declare const _default$39: TaskFn<AbstractPkgUninstallParams, AbstractPkgUninstallResult>;
1335
+
1336
+ interface AbstractPkgUpdateParams {
1337
+ /** Run commands with sudo (default true) */
1338
+ sudo?: boolean;
1339
+ /** Force use of specific package manager (auto-detect if not specified) */
1340
+ packageManager?: string;
1341
+ /** Additional arguments to pass to the package manager */
1342
+ extraArgs?: string;
1343
+ }
1344
+ interface AbstractPkgUpdateResult extends AbstractPkgResult {
1345
+ }
1346
+ declare const _default$38: TaskFn<AbstractPkgUpdateParams, AbstractPkgUpdateResult>;
1347
+
1348
+ interface PkgInfoParams {
1349
+ package: string;
1350
+ }
1351
+ interface PkgInfoResult {
1352
+ installed: boolean;
1353
+ success: boolean;
1354
+ error?: string;
1355
+ }
1356
+ declare const _default$37: TaskFn<PkgInfoParams, PkgInfoResult>;
1179
1357
 
1180
1358
  interface BasePkgParams {
1181
1359
  /** Package name or array of package names */
@@ -1211,44 +1389,18 @@ interface PkgIsInstalledParams {
1211
1389
  package: string;
1212
1390
  }
1213
1391
  interface PkgIsInstalledResult {
1214
- installed: boolean;
1215
- }
1216
-
1217
- declare const _default$I: TaskFn<PkgRemoveParams, PkgRemoveResult>;
1218
-
1219
- declare const _default$H: TaskFn<PkgUpdateParams, PkgUpdateResult>;
1220
-
1221
- interface PkgInfoParams {
1222
- package: string;
1223
- }
1224
- interface PkgInfoResult {
1225
- installed: boolean;
1226
1392
  success: boolean;
1393
+ installed: boolean;
1227
1394
  error?: string;
1228
1395
  }
1229
- declare const _default$G: TaskFn<PkgInfoParams, PkgInfoResult>;
1230
1396
 
1231
- declare const _default$F: TaskFn<PkgIsInstalledParams, PkgIsInstalledResult>;
1397
+ declare const _default$36: TaskFn<PkgIsInstalledParams, PkgIsInstalledResult>;
1232
1398
 
1233
- declare const _default$E: TaskFn<PkgInstallParams, PkgInstallResult>;
1399
+ declare const install: TaskFn<PkgInstallParams, PkgInstallResult>;
1234
1400
 
1235
- interface AbstractPkgUninstallParams extends AbstractPkgParams {
1236
- }
1237
- interface AbstractPkgUninstallResult extends AbstractPkgResult {
1238
- }
1239
- declare const _default$D: TaskFn<AbstractPkgUninstallParams, AbstractPkgUninstallResult>;
1401
+ declare const _default$35: TaskFn<PkgRemoveParams, PkgRemoveResult>;
1240
1402
 
1241
- interface AbstractPkgUpdateParams {
1242
- /** Run commands with sudo (default true) */
1243
- sudo?: boolean;
1244
- /** Force use of specific package manager (auto-detect if not specified) */
1245
- packageManager?: string;
1246
- /** Additional arguments to pass to the package manager */
1247
- extraArgs?: string;
1248
- }
1249
- interface AbstractPkgUpdateResult extends AbstractPkgResult {
1250
- }
1251
- declare const _default$C: TaskFn<AbstractPkgUpdateParams, AbstractPkgUpdateResult>;
1403
+ declare const _default$34: TaskFn<PkgUpdateParams, PkgUpdateResult>;
1252
1404
 
1253
1405
  interface AbstractPkgUpgradeParams {
1254
1406
  /** Run commands with sudo (default true) */
@@ -1260,7 +1412,7 @@ interface AbstractPkgUpgradeParams {
1260
1412
  }
1261
1413
  interface AbstractPkgUpgradeResult extends AbstractPkgResult {
1262
1414
  }
1263
- declare const _default$B: TaskFn<AbstractPkgUpgradeParams, AbstractPkgUpgradeResult>;
1415
+ declare const _default$33: TaskFn<AbstractPkgUpgradeParams, AbstractPkgUpgradeResult>;
1264
1416
 
1265
1417
  interface AbstractPkgSearchParams {
1266
1418
  /** Search query */
@@ -1270,7 +1422,7 @@ interface AbstractPkgSearchParams {
1270
1422
  }
1271
1423
  interface AbstractPkgSearchResult extends AbstractPkgResult {
1272
1424
  }
1273
- declare const _default$A: TaskFn<AbstractPkgSearchParams, AbstractPkgSearchResult>;
1425
+ declare const _default$32: TaskFn<AbstractPkgSearchParams, AbstractPkgSearchResult>;
1274
1426
 
1275
1427
  interface AbstractPkgListParams {
1276
1428
  /** Force use of specific package manager (auto-detect if not specified) */
@@ -1278,29 +1430,881 @@ interface AbstractPkgListParams {
1278
1430
  }
1279
1431
  interface AbstractPkgListResult extends AbstractPkgResult {
1280
1432
  }
1281
- declare const _default$z: TaskFn<AbstractPkgListParams, AbstractPkgListResult>;
1433
+ declare const _default$31: TaskFn<AbstractPkgListParams, AbstractPkgListResult>;
1282
1434
 
1283
- interface AbstractPkgCleanParams {
1284
- /** Force use of specific package manager (auto-detect if not specified) */
1285
- packageManager?: string;
1435
+ declare const _default$30: TaskFn<AbstractPkgCleanParams, AbstractPkgCleanResult>;
1436
+
1437
+ interface AptBaseParams extends AbstractPkgParams {
1438
+ /** Force use of apt package manager (always true for apt-specific tasks) */
1439
+ packageManager?: 'apt';
1440
+ /** Whether to install recommended packages (default: false) */
1441
+ installRecommends?: boolean;
1442
+ /** Whether to install suggested packages (default: false) */
1443
+ installSuggests?: boolean;
1444
+ /** Whether to hold packages (prevent automatic upgrades) */
1445
+ hold?: boolean;
1446
+ /** Whether to allow downgrades */
1447
+ allowDowngrades?: boolean;
1448
+ /** Whether to allow removal of essential packages */
1449
+ allowRemoveEssential?: boolean;
1450
+ /** Whether to allow changes to held packages */
1451
+ allowChangeHeld?: boolean;
1452
+ }
1453
+ interface AptInstallParams extends AptBaseParams {
1454
+ /** Package name or array of package names */
1455
+ package: string | string[];
1456
+ /** Whether to fix broken dependencies */
1457
+ fixBroken?: boolean;
1458
+ /** Whether to reinstall packages */
1459
+ reinstall?: boolean;
1460
+ }
1461
+ interface AptInstallResult extends AbstractPkgResult {
1462
+ /** List of installed packages with versions */
1463
+ installed?: Array<{
1464
+ name: string;
1465
+ version: string;
1466
+ architecture?: string;
1467
+ }>;
1468
+ /** List of packages that were already installed */
1469
+ alreadyInstalled?: string[];
1470
+ /** List of packages that failed to install */
1471
+ failed?: string[];
1472
+ }
1473
+ interface AptUninstallParams extends AptBaseParams {
1474
+ /** Package name or array of package names */
1475
+ package: string | string[];
1476
+ /** Whether to purge configuration files */
1477
+ purge?: boolean;
1478
+ /** Whether to remove dependencies that are no longer needed */
1479
+ autoremove?: boolean;
1480
+ }
1481
+ interface AptUninstallResult extends AbstractPkgResult {
1482
+ /** List of removed packages */
1483
+ removed?: string[];
1484
+ /** List of packages that were not installed */
1485
+ notInstalled?: string[];
1486
+ /** List of packages that failed to remove */
1487
+ failed?: string[];
1488
+ }
1489
+ interface AptUpdateParams extends AptBaseParams {
1490
+ /** Whether to update package lists */
1491
+ updateLists?: boolean;
1492
+ /** Whether to upgrade packages */
1493
+ upgrade?: boolean;
1494
+ }
1495
+ interface AptUpdateResult extends AbstractPkgResult {
1496
+ /** Number of packages updated */
1497
+ packagesUpdated?: number;
1498
+ /** List of updated packages */
1499
+ updatedPackages?: string[];
1500
+ }
1501
+ interface AptUpgradeParams extends AptBaseParams {
1502
+ /** Whether to perform a full upgrade (dist-upgrade) */
1503
+ fullUpgrade?: boolean;
1504
+ /** Whether to upgrade only security updates */
1505
+ securityOnly?: boolean;
1506
+ }
1507
+ interface AptUpgradeResult extends AbstractPkgResult {
1508
+ /** Number of packages upgraded */
1509
+ packagesUpgraded?: number;
1510
+ /** List of upgraded packages */
1511
+ upgradedPackages?: string[];
1512
+ /** Whether a reboot is recommended */
1513
+ rebootRecommended?: boolean;
1514
+ }
1515
+ interface AptSearchParams extends AptBaseParams {
1516
+ /** Search query */
1517
+ query: string;
1518
+ /** Whether to search in package names only */
1519
+ namesOnly?: boolean;
1520
+ /** Whether to search in package descriptions */
1521
+ descriptions?: boolean;
1522
+ }
1523
+ interface AptSearchResult extends AbstractPkgResult {
1524
+ /** Search results */
1525
+ results?: Array<{
1526
+ name: string;
1527
+ version?: string;
1528
+ description?: string;
1529
+ installed?: boolean;
1530
+ }>;
1531
+ }
1532
+ interface AptListParams extends AptBaseParams {
1533
+ /** Filter by package name pattern */
1534
+ pattern?: string;
1535
+ /** Whether to show only installed packages */
1536
+ installed?: boolean;
1537
+ /** Whether to show only upgradable packages */
1538
+ upgradable?: boolean;
1539
+ }
1540
+ interface AptListResult extends AbstractPkgResult {
1541
+ /** List of packages */
1542
+ packages?: Array<{
1543
+ name: string;
1544
+ version: string;
1545
+ architecture?: string;
1546
+ status?: string;
1547
+ description?: string;
1548
+ }>;
1549
+ }
1550
+ interface AptCleanParams extends AptBaseParams {
1551
+ /** Whether to remove unused packages */
1552
+ autoremove?: boolean;
1553
+ /** Whether to clean package cache */
1554
+ autoclean?: boolean;
1555
+ }
1556
+ interface AptCleanResult extends AbstractPkgResult {
1557
+ /** Number of packages removed */
1558
+ packagesRemoved?: number;
1559
+ /** Amount of disk space freed */
1560
+ spaceFreed?: string;
1561
+ }
1562
+ interface AptIsInstalledParams extends AptBaseParams {
1563
+ /** Package name */
1564
+ package: string;
1286
1565
  }
1287
- interface AbstractPkgCleanResult extends AbstractPkgResult {
1566
+ interface AptIsInstalledResult extends AbstractPkgResult {
1567
+ /** Whether the package is installed */
1568
+ installed: boolean;
1569
+ /** Package version if installed */
1570
+ version?: string;
1571
+ /** Package architecture if installed */
1572
+ architecture?: string;
1288
1573
  }
1289
- declare const _default$y: TaskFn<AbstractPkgCleanParams, AbstractPkgCleanResult>;
1290
-
1291
- type pkg_AbstractPkgCleanParams = AbstractPkgCleanParams;
1292
- type pkg_AbstractPkgCleanResult = AbstractPkgCleanResult;
1293
- type pkg_AbstractPkgInstallParams = AbstractPkgInstallParams;
1294
- type pkg_AbstractPkgInstallResult = AbstractPkgInstallResult;
1295
- type pkg_AbstractPkgListParams = AbstractPkgListParams;
1296
- type pkg_AbstractPkgListResult = AbstractPkgListResult;
1297
- type pkg_AbstractPkgParams = AbstractPkgParams;
1298
- type pkg_AbstractPkgResult = AbstractPkgResult;
1299
- type pkg_AbstractPkgSearchParams = AbstractPkgSearchParams;
1300
- type pkg_AbstractPkgSearchResult = AbstractPkgSearchResult;
1301
- type pkg_AbstractPkgUninstallParams = AbstractPkgUninstallParams;
1302
- type pkg_AbstractPkgUninstallResult = AbstractPkgUninstallResult;
1303
- type pkg_AbstractPkgUpdateParams = AbstractPkgUpdateParams;
1574
+ interface AptInfoParams extends AptBaseParams {
1575
+ /** Package name */
1576
+ package: string;
1577
+ }
1578
+ interface AptInfoResult extends AbstractPkgResult {
1579
+ /** Package information */
1580
+ info?: {
1581
+ name: string;
1582
+ version?: string;
1583
+ architecture?: string;
1584
+ description?: string;
1585
+ depends?: string[];
1586
+ recommends?: string[];
1587
+ suggests?: string[];
1588
+ conflicts?: string[];
1589
+ provides?: string[];
1590
+ replaces?: string[];
1591
+ size?: string;
1592
+ priority?: string;
1593
+ section?: string;
1594
+ maintainer?: string;
1595
+ homepage?: string;
1596
+ };
1597
+ /** Whether the package is installed */
1598
+ installed?: boolean;
1599
+ }
1600
+ interface AptAddKeyParams {
1601
+ url: string;
1602
+ keyring: string;
1603
+ /** Run commands with sudo (default true) */
1604
+ sudo?: boolean;
1605
+ }
1606
+ interface AptAddKeyResult {
1607
+ success: boolean;
1608
+ error?: string;
1609
+ }
1610
+ interface AptAddRepositoryParams {
1611
+ repo: string;
1612
+ name: string;
1613
+ /** Run commands with sudo (default true) */
1614
+ sudo?: boolean;
1615
+ }
1616
+ interface AptAddRepositoryResult {
1617
+ success: boolean;
1618
+ error?: string;
1619
+ }
1620
+
1621
+ declare const _default$2$: TaskFn<AptInstallParams, AptInstallResult>;
1622
+
1623
+ declare const _default$2_: TaskFn<AptUninstallParams, AptUninstallResult>;
1624
+
1625
+ declare const _default$2Z: TaskFn<AptUpdateParams, AptUpdateResult>;
1626
+
1627
+ declare const _default$2Y: TaskFn<AptUpgradeParams, AptUpgradeResult>;
1628
+
1629
+ declare const _default$2X: TaskFn<AptSearchParams, AptSearchResult>;
1630
+
1631
+ declare const _default$2W: TaskFn<AptListParams, AptListResult>;
1632
+
1633
+ declare const _default$2V: TaskFn<AptCleanParams, AptCleanResult>;
1634
+
1635
+ declare const _default$2U: TaskFn<AptIsInstalledParams, AptIsInstalledResult>;
1636
+
1637
+ declare const _default$2T: TaskFn<AptInfoParams, AptInfoResult>;
1638
+
1639
+ declare const _default$2S: TaskFn<AptAddKeyParams, AptAddKeyResult>;
1640
+
1641
+ declare const _default$2R: TaskFn<AptAddRepositoryParams, AptAddRepositoryResult>;
1642
+
1643
+ type index$3_AptAddKeyParams = AptAddKeyParams;
1644
+ type index$3_AptAddKeyResult = AptAddKeyResult;
1645
+ type index$3_AptAddRepositoryParams = AptAddRepositoryParams;
1646
+ type index$3_AptAddRepositoryResult = AptAddRepositoryResult;
1647
+ type index$3_AptCleanParams = AptCleanParams;
1648
+ type index$3_AptCleanResult = AptCleanResult;
1649
+ type index$3_AptInfoParams = AptInfoParams;
1650
+ type index$3_AptInfoResult = AptInfoResult;
1651
+ type index$3_AptInstallParams = AptInstallParams;
1652
+ type index$3_AptInstallResult = AptInstallResult;
1653
+ type index$3_AptIsInstalledParams = AptIsInstalledParams;
1654
+ type index$3_AptIsInstalledResult = AptIsInstalledResult;
1655
+ type index$3_AptListParams = AptListParams;
1656
+ type index$3_AptListResult = AptListResult;
1657
+ type index$3_AptSearchParams = AptSearchParams;
1658
+ type index$3_AptSearchResult = AptSearchResult;
1659
+ type index$3_AptUninstallParams = AptUninstallParams;
1660
+ type index$3_AptUninstallResult = AptUninstallResult;
1661
+ type index$3_AptUpdateParams = AptUpdateParams;
1662
+ type index$3_AptUpdateResult = AptUpdateResult;
1663
+ type index$3_AptUpgradeParams = AptUpgradeParams;
1664
+ type index$3_AptUpgradeResult = AptUpgradeResult;
1665
+ declare namespace index$3 {
1666
+ export { type index$3_AptAddKeyParams as AptAddKeyParams, type index$3_AptAddKeyResult as AptAddKeyResult, type index$3_AptAddRepositoryParams as AptAddRepositoryParams, type index$3_AptAddRepositoryResult as AptAddRepositoryResult, type index$3_AptCleanParams as AptCleanParams, type index$3_AptCleanResult as AptCleanResult, type index$3_AptInfoParams as AptInfoParams, type index$3_AptInfoResult as AptInfoResult, type index$3_AptInstallParams as AptInstallParams, type index$3_AptInstallResult as AptInstallResult, type index$3_AptIsInstalledParams as AptIsInstalledParams, type index$3_AptIsInstalledResult as AptIsInstalledResult, type index$3_AptListParams as AptListParams, type index$3_AptListResult as AptListResult, type index$3_AptSearchParams as AptSearchParams, type index$3_AptSearchResult as AptSearchResult, type index$3_AptUninstallParams as AptUninstallParams, type index$3_AptUninstallResult as AptUninstallResult, type index$3_AptUpdateParams as AptUpdateParams, type index$3_AptUpdateResult as AptUpdateResult, type index$3_AptUpgradeParams as AptUpgradeParams, type index$3_AptUpgradeResult as AptUpgradeResult, _default$2S as add_key, _default$2R as add_repository, _default$2V as clean, _default$2T as info, _default$2$ as install, _default$2U as isInstalled, _default$2W as list, _default$2X as search, _default$2_ as uninstall, _default$2Z as update, _default$2Y as upgrade };
1667
+ }
1668
+
1669
+ interface DnfBaseParams extends AbstractPkgParams {
1670
+ /** Force use of dnf package manager (always true for dnf-specific tasks) */
1671
+ packageManager?: 'dnf';
1672
+ /** Whether to install weak dependencies (default: false) */
1673
+ installWeakDeps?: boolean;
1674
+ /** Whether to install recommended packages (default: false) */
1675
+ installRecommends?: boolean;
1676
+ /** Whether to allow downgrades */
1677
+ allowDowngrades?: boolean;
1678
+ /** Whether to allow erasing of protected packages */
1679
+ allowErasing?: boolean;
1680
+ /** Whether to skip broken packages */
1681
+ skipBroken?: boolean;
1682
+ }
1683
+ interface DnfInstallParams extends DnfBaseParams {
1684
+ /** Package name or array of package names */
1685
+ package: string | string[];
1686
+ /** Whether to install from a specific repository */
1687
+ repo?: string;
1688
+ /** Whether to install the best available version */
1689
+ best?: boolean;
1690
+ }
1691
+ interface DnfInstallResult extends AbstractPkgResult {
1692
+ /** List of installed packages with versions */
1693
+ installed?: Array<{
1694
+ name: string;
1695
+ version: string;
1696
+ architecture?: string;
1697
+ repository?: string;
1698
+ }>;
1699
+ /** List of packages that were already installed */
1700
+ alreadyInstalled?: string[];
1701
+ /** List of packages that failed to install */
1702
+ failed?: string[];
1703
+ }
1704
+ interface DnfUninstallParams extends DnfBaseParams {
1705
+ /** Package name or array of package names */
1706
+ package: string | string[];
1707
+ /** Whether to remove dependencies that are no longer needed */
1708
+ autoremove?: boolean;
1709
+ /** Whether to remove all packages that depend on the specified packages */
1710
+ removeDeps?: boolean;
1711
+ }
1712
+ interface DnfUninstallResult extends AbstractPkgResult {
1713
+ /** List of removed packages */
1714
+ removed?: string[];
1715
+ /** List of packages that were not installed */
1716
+ notInstalled?: string[];
1717
+ /** List of packages that failed to remove */
1718
+ failed?: string[];
1719
+ }
1720
+ interface DnfUpdateParams extends DnfBaseParams {
1721
+ /** Whether to update package metadata */
1722
+ updateMetadata?: boolean;
1723
+ /** Whether to upgrade packages */
1724
+ upgrade?: boolean;
1725
+ }
1726
+ interface DnfUpdateResult extends AbstractPkgResult {
1727
+ /** Number of packages updated */
1728
+ packagesUpdated?: number;
1729
+ /** List of updated packages */
1730
+ updatedPackages?: string[];
1731
+ }
1732
+ interface DnfUpgradeParams extends DnfBaseParams {
1733
+ /** Whether to perform a full system upgrade */
1734
+ fullUpgrade?: boolean;
1735
+ /** Whether to upgrade only security updates */
1736
+ securityOnly?: boolean;
1737
+ }
1738
+ interface DnfUpgradeResult extends AbstractPkgResult {
1739
+ /** Number of packages upgraded */
1740
+ packagesUpgraded?: number;
1741
+ /** List of upgraded packages */
1742
+ upgradedPackages?: string[];
1743
+ /** Whether a reboot is recommended */
1744
+ rebootRecommended?: boolean;
1745
+ }
1746
+ interface DnfSearchParams extends DnfBaseParams {
1747
+ /** Search query */
1748
+ query: string;
1749
+ /** Whether to search in package names only */
1750
+ namesOnly?: boolean;
1751
+ /** Whether to search in package descriptions */
1752
+ descriptions?: boolean;
1753
+ }
1754
+ interface DnfSearchResult extends AbstractPkgResult {
1755
+ /** Search results */
1756
+ results?: Array<{
1757
+ name: string;
1758
+ version?: string;
1759
+ architecture?: string;
1760
+ repository?: string;
1761
+ description?: string;
1762
+ installed?: boolean;
1763
+ }>;
1764
+ }
1765
+ interface DnfListParams extends DnfBaseParams {
1766
+ /** Filter by package name pattern */
1767
+ pattern?: string;
1768
+ /** Whether to show only installed packages */
1769
+ installed?: boolean;
1770
+ /** Whether to show only available packages */
1771
+ available?: boolean;
1772
+ /** Whether to show only upgradable packages */
1773
+ upgradable?: boolean;
1774
+ }
1775
+ interface DnfListResult extends AbstractPkgResult {
1776
+ /** List of packages */
1777
+ packages?: Array<{
1778
+ name: string;
1779
+ version: string;
1780
+ architecture?: string;
1781
+ repository?: string;
1782
+ status?: string;
1783
+ description?: string;
1784
+ }>;
1785
+ }
1786
+ interface DnfCleanParams extends DnfBaseParams {
1787
+ /** Whether to clean all caches */
1788
+ all?: boolean;
1789
+ /** Whether to clean package cache */
1790
+ packages?: boolean;
1791
+ /** Whether to clean metadata cache */
1792
+ metadata?: boolean;
1793
+ }
1794
+ interface DnfCleanResult extends AbstractPkgResult {
1795
+ /** Number of packages removed */
1796
+ packagesRemoved?: number;
1797
+ /** Amount of disk space freed */
1798
+ spaceFreed?: string;
1799
+ }
1800
+ interface DnfIsInstalledParams extends DnfBaseParams {
1801
+ /** Package name */
1802
+ package: string;
1803
+ }
1804
+ interface DnfIsInstalledResult extends AbstractPkgResult {
1805
+ /** Whether the package is installed */
1806
+ installed: boolean;
1807
+ /** Package version if installed */
1808
+ version?: string;
1809
+ /** Package architecture if installed */
1810
+ architecture?: string;
1811
+ /** Package repository if installed */
1812
+ repository?: string;
1813
+ }
1814
+ interface DnfInfoParams extends DnfBaseParams {
1815
+ /** Package name */
1816
+ package: string;
1817
+ }
1818
+ interface DnfInfoResult extends AbstractPkgResult {
1819
+ /** Package information */
1820
+ info?: {
1821
+ name: string;
1822
+ version?: string;
1823
+ architecture?: string;
1824
+ repository?: string;
1825
+ description?: string;
1826
+ depends?: string[];
1827
+ provides?: string[];
1828
+ conflicts?: string[];
1829
+ obsoletes?: string[];
1830
+ size?: string;
1831
+ license?: string;
1832
+ vendor?: string;
1833
+ url?: string;
1834
+ };
1835
+ /** Whether the package is installed */
1836
+ installed?: boolean;
1837
+ }
1838
+
1839
+ declare const _default$2Q: TaskFn<DnfInstallParams, DnfInstallResult>;
1840
+
1841
+ declare const _default$2P: TaskFn<DnfUninstallParams, DnfUninstallResult>;
1842
+
1843
+ declare const _default$2O: TaskFn<DnfUpdateParams, DnfUpdateResult>;
1844
+
1845
+ declare const _default$2N: TaskFn<DnfUpgradeParams, DnfUpgradeResult>;
1846
+
1847
+ declare const _default$2M: TaskFn<DnfSearchParams, DnfSearchResult>;
1848
+
1849
+ declare const _default$2L: TaskFn<DnfListParams, DnfListResult>;
1850
+
1851
+ declare const _default$2K: TaskFn<DnfCleanParams, DnfCleanResult>;
1852
+
1853
+ declare const _default$2J: TaskFn<DnfIsInstalledParams, DnfIsInstalledResult>;
1854
+
1855
+ declare const _default$2I: TaskFn<DnfInfoParams, DnfInfoResult>;
1856
+
1857
+ type index$2_DnfCleanParams = DnfCleanParams;
1858
+ type index$2_DnfCleanResult = DnfCleanResult;
1859
+ type index$2_DnfInfoParams = DnfInfoParams;
1860
+ type index$2_DnfInfoResult = DnfInfoResult;
1861
+ type index$2_DnfInstallParams = DnfInstallParams;
1862
+ type index$2_DnfInstallResult = DnfInstallResult;
1863
+ type index$2_DnfIsInstalledParams = DnfIsInstalledParams;
1864
+ type index$2_DnfIsInstalledResult = DnfIsInstalledResult;
1865
+ type index$2_DnfListParams = DnfListParams;
1866
+ type index$2_DnfListResult = DnfListResult;
1867
+ type index$2_DnfSearchParams = DnfSearchParams;
1868
+ type index$2_DnfSearchResult = DnfSearchResult;
1869
+ type index$2_DnfUninstallParams = DnfUninstallParams;
1870
+ type index$2_DnfUninstallResult = DnfUninstallResult;
1871
+ type index$2_DnfUpdateParams = DnfUpdateParams;
1872
+ type index$2_DnfUpdateResult = DnfUpdateResult;
1873
+ type index$2_DnfUpgradeParams = DnfUpgradeParams;
1874
+ type index$2_DnfUpgradeResult = DnfUpgradeResult;
1875
+ declare namespace index$2 {
1876
+ export { type index$2_DnfCleanParams as DnfCleanParams, type index$2_DnfCleanResult as DnfCleanResult, type index$2_DnfInfoParams as DnfInfoParams, type index$2_DnfInfoResult as DnfInfoResult, type index$2_DnfInstallParams as DnfInstallParams, type index$2_DnfInstallResult as DnfInstallResult, type index$2_DnfIsInstalledParams as DnfIsInstalledParams, type index$2_DnfIsInstalledResult as DnfIsInstalledResult, type index$2_DnfListParams as DnfListParams, type index$2_DnfListResult as DnfListResult, type index$2_DnfSearchParams as DnfSearchParams, type index$2_DnfSearchResult as DnfSearchResult, type index$2_DnfUninstallParams as DnfUninstallParams, type index$2_DnfUninstallResult as DnfUninstallResult, type index$2_DnfUpdateParams as DnfUpdateParams, type index$2_DnfUpdateResult as DnfUpdateResult, type index$2_DnfUpgradeParams as DnfUpgradeParams, type index$2_DnfUpgradeResult as DnfUpgradeResult, _default$2K as clean, _default$2I as info, _default$2Q as install, _default$2J as isInstalled, _default$2L as list, _default$2M as search, _default$2P as uninstall, _default$2O as update, _default$2N as upgrade };
1877
+ }
1878
+
1879
+ interface YumBaseParams extends AbstractPkgParams {
1880
+ /** Force use of yum package manager (always true for yum-specific tasks) */
1881
+ packageManager?: 'yum';
1882
+ /** Whether to install weak dependencies (default: false) */
1883
+ installWeakDeps?: boolean;
1884
+ /** Whether to allow downgrades */
1885
+ allowDowngrades?: boolean;
1886
+ /** Whether to allow erasing of protected packages */
1887
+ allowErasing?: boolean;
1888
+ }
1889
+ interface YumInstallParams extends YumBaseParams {
1890
+ /** Package name or array of package names */
1891
+ package: string | string[];
1892
+ /** Whether to install from a specific repository */
1893
+ repo?: string;
1894
+ }
1895
+ interface YumInstallResult extends AbstractPkgResult {
1896
+ /** List of installed packages with versions */
1897
+ installed?: Array<{
1898
+ name: string;
1899
+ version: string;
1900
+ architecture?: string;
1901
+ repository?: string;
1902
+ }>;
1903
+ /** List of packages that were already installed */
1904
+ alreadyInstalled?: string[];
1905
+ /** List of packages that failed to install */
1906
+ failed?: string[];
1907
+ }
1908
+ interface YumUninstallParams extends YumBaseParams {
1909
+ /** Package name or array of package names */
1910
+ package: string | string[];
1911
+ /** Whether to remove dependencies that are no longer needed */
1912
+ autoremove?: boolean;
1913
+ }
1914
+ interface YumUninstallResult extends AbstractPkgResult {
1915
+ /** List of removed packages */
1916
+ removed?: string[];
1917
+ /** List of packages that were not installed */
1918
+ notInstalled?: string[];
1919
+ /** List of packages that failed to remove */
1920
+ failed?: string[];
1921
+ }
1922
+ interface YumUpdateParams extends YumBaseParams {
1923
+ /** Whether to update package metadata */
1924
+ updateMetadata?: boolean;
1925
+ /** Whether to upgrade packages */
1926
+ upgrade?: boolean;
1927
+ }
1928
+ interface YumUpdateResult extends AbstractPkgResult {
1929
+ /** Number of packages updated */
1930
+ packagesUpdated?: number;
1931
+ /** List of updated packages */
1932
+ updatedPackages?: string[];
1933
+ }
1934
+ interface YumUpgradeParams extends YumBaseParams {
1935
+ /** Whether to perform a full system upgrade */
1936
+ fullUpgrade?: boolean;
1937
+ /** Whether to upgrade only security updates */
1938
+ securityOnly?: boolean;
1939
+ }
1940
+ interface YumUpgradeResult extends AbstractPkgResult {
1941
+ /** Number of packages upgraded */
1942
+ packagesUpgraded?: number;
1943
+ /** List of upgraded packages */
1944
+ upgradedPackages?: string[];
1945
+ /** Whether a reboot is recommended */
1946
+ rebootRecommended?: boolean;
1947
+ }
1948
+ interface YumSearchParams extends YumBaseParams {
1949
+ /** Search query */
1950
+ query: string;
1951
+ /** Whether to search in package names only */
1952
+ namesOnly?: boolean;
1953
+ /** Whether to search in package descriptions */
1954
+ descriptions?: boolean;
1955
+ }
1956
+ interface YumSearchResult extends AbstractPkgResult {
1957
+ /** Search results */
1958
+ results?: Array<{
1959
+ name: string;
1960
+ version?: string;
1961
+ architecture?: string;
1962
+ repository?: string;
1963
+ description?: string;
1964
+ installed?: boolean;
1965
+ }>;
1966
+ }
1967
+ interface YumListParams extends YumBaseParams {
1968
+ /** Filter by package name pattern */
1969
+ pattern?: string;
1970
+ /** Whether to show only installed packages */
1971
+ installed?: boolean;
1972
+ /** Whether to show only available packages */
1973
+ available?: boolean;
1974
+ /** Whether to show only upgradable packages */
1975
+ upgradable?: boolean;
1976
+ }
1977
+ interface YumListResult extends AbstractPkgResult {
1978
+ /** List of packages */
1979
+ packages?: Array<{
1980
+ name: string;
1981
+ version: string;
1982
+ architecture?: string;
1983
+ repository?: string;
1984
+ status?: string;
1985
+ description?: string;
1986
+ }>;
1987
+ }
1988
+ interface YumCleanParams extends YumBaseParams {
1989
+ /** Whether to clean all caches */
1990
+ all?: boolean;
1991
+ /** Whether to clean package cache */
1992
+ packages?: boolean;
1993
+ /** Whether to clean metadata cache */
1994
+ metadata?: boolean;
1995
+ }
1996
+ interface YumCleanResult extends AbstractPkgResult {
1997
+ /** Number of packages removed */
1998
+ packagesRemoved?: number;
1999
+ /** Amount of disk space freed */
2000
+ spaceFreed?: string;
2001
+ }
2002
+ interface YumIsInstalledParams extends YumBaseParams {
2003
+ /** Package name */
2004
+ package: string;
2005
+ }
2006
+ interface YumIsInstalledResult extends AbstractPkgResult {
2007
+ /** Whether the package is installed */
2008
+ installed: boolean;
2009
+ /** Package version if installed */
2010
+ version?: string;
2011
+ /** Package architecture if installed */
2012
+ architecture?: string;
2013
+ /** Package repository if installed */
2014
+ repository?: string;
2015
+ }
2016
+ interface YumInfoParams extends YumBaseParams {
2017
+ /** Package name */
2018
+ package: string;
2019
+ }
2020
+ interface YumInfoResult extends AbstractPkgResult {
2021
+ /** Package information */
2022
+ info?: {
2023
+ name: string;
2024
+ version?: string;
2025
+ architecture?: string;
2026
+ repository?: string;
2027
+ description?: string;
2028
+ depends?: string[];
2029
+ provides?: string[];
2030
+ conflicts?: string[];
2031
+ obsoletes?: string[];
2032
+ size?: string;
2033
+ license?: string;
2034
+ vendor?: string;
2035
+ url?: string;
2036
+ };
2037
+ /** Whether the package is installed */
2038
+ installed?: boolean;
2039
+ }
2040
+
2041
+ declare const _default$2H: TaskFn<YumInstallParams, YumInstallResult>;
2042
+
2043
+ declare const _default$2G: TaskFn<YumUninstallParams, YumUninstallResult>;
2044
+
2045
+ declare const _default$2F: TaskFn<YumUpdateParams, YumUpdateResult>;
2046
+
2047
+ declare const _default$2E: TaskFn<YumUpgradeParams, YumUpgradeResult>;
2048
+
2049
+ declare const _default$2D: TaskFn<YumSearchParams, YumSearchResult>;
2050
+
2051
+ declare const _default$2C: TaskFn<{}, {
2052
+ success: boolean;
2053
+ packages: {
2054
+ name: string;
2055
+ version: string;
2056
+ arch: string;
2057
+ repository: string;
2058
+ }[];
2059
+ error?: string;
2060
+ }>;
2061
+
2062
+ declare const _default$2B: TaskFn<YumCleanParams, YumCleanResult>;
2063
+
2064
+ declare const _default$2A: TaskFn<YumIsInstalledParams, YumIsInstalledResult>;
2065
+
2066
+ declare const _default$2z: TaskFn<YumInfoParams, YumInfoResult>;
2067
+
2068
+ type index$1_YumCleanParams = YumCleanParams;
2069
+ type index$1_YumCleanResult = YumCleanResult;
2070
+ type index$1_YumInfoParams = YumInfoParams;
2071
+ type index$1_YumInfoResult = YumInfoResult;
2072
+ type index$1_YumInstallParams = YumInstallParams;
2073
+ type index$1_YumInstallResult = YumInstallResult;
2074
+ type index$1_YumIsInstalledParams = YumIsInstalledParams;
2075
+ type index$1_YumIsInstalledResult = YumIsInstalledResult;
2076
+ type index$1_YumListParams = YumListParams;
2077
+ type index$1_YumListResult = YumListResult;
2078
+ type index$1_YumSearchParams = YumSearchParams;
2079
+ type index$1_YumSearchResult = YumSearchResult;
2080
+ type index$1_YumUninstallParams = YumUninstallParams;
2081
+ type index$1_YumUninstallResult = YumUninstallResult;
2082
+ type index$1_YumUpdateParams = YumUpdateParams;
2083
+ type index$1_YumUpdateResult = YumUpdateResult;
2084
+ type index$1_YumUpgradeParams = YumUpgradeParams;
2085
+ type index$1_YumUpgradeResult = YumUpgradeResult;
2086
+ declare namespace index$1 {
2087
+ export { type index$1_YumCleanParams as YumCleanParams, type index$1_YumCleanResult as YumCleanResult, type index$1_YumInfoParams as YumInfoParams, type index$1_YumInfoResult as YumInfoResult, type index$1_YumInstallParams as YumInstallParams, type index$1_YumInstallResult as YumInstallResult, type index$1_YumIsInstalledParams as YumIsInstalledParams, type index$1_YumIsInstalledResult as YumIsInstalledResult, type index$1_YumListParams as YumListParams, type index$1_YumListResult as YumListResult, type index$1_YumSearchParams as YumSearchParams, type index$1_YumSearchResult as YumSearchResult, type index$1_YumUninstallParams as YumUninstallParams, type index$1_YumUninstallResult as YumUninstallResult, type index$1_YumUpdateParams as YumUpdateParams, type index$1_YumUpdateResult as YumUpdateResult, type index$1_YumUpgradeParams as YumUpgradeParams, type index$1_YumUpgradeResult as YumUpgradeResult, _default$2B as clean, _default$2z as info, _default$2H as install, _default$2A as isInstalled, _default$2C as list, _default$2D as search, _default$2G as uninstall, _default$2F as update, _default$2E as upgrade };
2088
+ }
2089
+
2090
+ interface PacmanBaseParams extends AbstractPkgParams {
2091
+ /** Force use of pacman package manager (always true for pacman-specific tasks) */
2092
+ packageManager?: 'pacman';
2093
+ /** Whether to install dependencies */
2094
+ installDeps?: boolean;
2095
+ /** Whether to install as dependencies */
2096
+ asDeps?: boolean;
2097
+ /** Whether to install as explicit packages */
2098
+ asExplicit?: boolean;
2099
+ }
2100
+ interface PacmanInstallParams extends PacmanBaseParams {
2101
+ /** Package name or array of package names */
2102
+ package: string | string[];
2103
+ /** Whether to install from a specific repository */
2104
+ repo?: string;
2105
+ /** Whether to install the best available version */
2106
+ best?: boolean;
2107
+ }
2108
+ interface PacmanInstallResult extends AbstractPkgResult {
2109
+ /** List of installed packages with versions */
2110
+ installed?: Array<{
2111
+ name: string;
2112
+ version: string;
2113
+ architecture?: string;
2114
+ repository?: string;
2115
+ }>;
2116
+ /** List of packages that were already installed */
2117
+ alreadyInstalled?: string[];
2118
+ /** List of packages that failed to install */
2119
+ failed?: string[];
2120
+ }
2121
+ interface PacmanUninstallParams extends PacmanBaseParams {
2122
+ /** Package name or array of package names */
2123
+ package: string | string[];
2124
+ /** Whether to remove dependencies that are no longer needed */
2125
+ cascade?: boolean;
2126
+ /** Whether to remove all packages that depend on the specified packages */
2127
+ recursive?: boolean;
2128
+ }
2129
+ interface PacmanUninstallResult extends AbstractPkgResult {
2130
+ /** List of removed packages */
2131
+ removed?: string[];
2132
+ /** List of packages that were not installed */
2133
+ notInstalled?: string[];
2134
+ /** List of packages that failed to remove */
2135
+ failed?: string[];
2136
+ }
2137
+ interface PacmanUpdateParams extends PacmanBaseParams {
2138
+ /** Whether to update package metadata */
2139
+ updateMetadata?: boolean;
2140
+ /** Whether to upgrade packages */
2141
+ upgrade?: boolean;
2142
+ }
2143
+ interface PacmanUpdateResult extends AbstractPkgResult {
2144
+ /** Number of packages updated */
2145
+ packagesUpdated?: number;
2146
+ /** List of updated packages */
2147
+ updatedPackages?: string[];
2148
+ }
2149
+ interface PacmanUpgradeParams extends PacmanBaseParams {
2150
+ /** Whether to perform a full system upgrade */
2151
+ fullUpgrade?: boolean;
2152
+ /** Whether to upgrade only security updates */
2153
+ securityOnly?: boolean;
2154
+ }
2155
+ interface PacmanUpgradeResult extends AbstractPkgResult {
2156
+ /** Number of packages upgraded */
2157
+ packagesUpgraded?: number;
2158
+ /** List of upgraded packages */
2159
+ upgradedPackages?: string[];
2160
+ /** Whether a reboot is recommended */
2161
+ rebootRecommended?: boolean;
2162
+ }
2163
+ interface PacmanSearchParams extends PacmanBaseParams {
2164
+ /** Search query */
2165
+ query: string;
2166
+ /** Whether to search in package names only */
2167
+ namesOnly?: boolean;
2168
+ /** Whether to search in package descriptions */
2169
+ descriptions?: boolean;
2170
+ }
2171
+ interface PacmanSearchResult extends AbstractPkgResult {
2172
+ /** Search results */
2173
+ results?: Array<{
2174
+ name: string;
2175
+ version?: string;
2176
+ architecture?: string;
2177
+ repository?: string;
2178
+ description?: string;
2179
+ installed?: boolean;
2180
+ }>;
2181
+ }
2182
+ interface PacmanListParams extends PacmanBaseParams {
2183
+ /** Filter by package name pattern */
2184
+ pattern?: string;
2185
+ /** Whether to show only installed packages */
2186
+ installed?: boolean;
2187
+ /** Whether to show only available packages */
2188
+ available?: boolean;
2189
+ /** Whether to show only upgradable packages */
2190
+ upgradable?: boolean;
2191
+ }
2192
+ interface PacmanListResult extends AbstractPkgResult {
2193
+ /** List of packages */
2194
+ packages?: Array<{
2195
+ name: string;
2196
+ version: string;
2197
+ architecture?: string;
2198
+ repository?: string;
2199
+ status?: string;
2200
+ description?: string;
2201
+ }>;
2202
+ }
2203
+ interface PacmanCleanParams extends PacmanBaseParams {
2204
+ /** Whether to clean all caches */
2205
+ all?: boolean;
2206
+ /** Whether to clean package cache */
2207
+ packages?: boolean;
2208
+ /** Whether to clean metadata cache */
2209
+ metadata?: boolean;
2210
+ }
2211
+ interface PacmanCleanResult extends AbstractPkgResult {
2212
+ /** Number of packages removed */
2213
+ packagesRemoved?: number;
2214
+ /** Amount of disk space freed */
2215
+ spaceFreed?: string;
2216
+ }
2217
+ interface PacmanIsInstalledParams extends PacmanBaseParams {
2218
+ /** Package name */
2219
+ package: string;
2220
+ }
2221
+ interface PacmanIsInstalledResult extends AbstractPkgResult {
2222
+ /** Whether the package is installed */
2223
+ installed: boolean;
2224
+ /** Package version if installed */
2225
+ version?: string;
2226
+ /** Package architecture if installed */
2227
+ architecture?: string;
2228
+ /** Package repository if installed */
2229
+ repository?: string;
2230
+ }
2231
+ interface PacmanInfoParams extends PacmanBaseParams {
2232
+ /** Package name */
2233
+ package: string;
2234
+ }
2235
+ interface PacmanInfoResult extends AbstractPkgResult {
2236
+ /** Whether the package is installed */
2237
+ installed: boolean;
2238
+ /** Package information */
2239
+ info?: {
2240
+ name: string;
2241
+ version?: string;
2242
+ architecture?: string;
2243
+ repository?: string;
2244
+ description?: string;
2245
+ depends?: string[];
2246
+ provides?: string[];
2247
+ conflicts?: string[];
2248
+ replaces?: string[];
2249
+ size?: string;
2250
+ license?: string;
2251
+ url?: string;
2252
+ };
2253
+ }
2254
+
2255
+ declare const _default$2y: TaskFn<PacmanInstallParams, PacmanInstallResult>;
2256
+
2257
+ declare const _default$2x: TaskFn<PacmanUninstallParams, PacmanUninstallResult>;
2258
+
2259
+ declare const _default$2w: TaskFn<PacmanUpdateParams, PacmanUpdateResult>;
2260
+
2261
+ declare const _default$2v: TaskFn<PacmanUpgradeParams, PacmanUpgradeResult>;
2262
+
2263
+ declare const _default$2u: TaskFn<PacmanSearchParams, PacmanSearchResult>;
2264
+
2265
+ declare const _default$2t: TaskFn<PacmanListParams, PacmanListResult>;
2266
+
2267
+ declare const _default$2s: TaskFn<PacmanCleanParams, PacmanCleanResult>;
2268
+
2269
+ declare const _default$2r: TaskFn<PacmanIsInstalledParams, PacmanIsInstalledResult>;
2270
+
2271
+ declare const _default$2q: TaskFn<PacmanInfoParams, PacmanInfoResult>;
2272
+
2273
+ type index_PacmanCleanParams = PacmanCleanParams;
2274
+ type index_PacmanCleanResult = PacmanCleanResult;
2275
+ type index_PacmanInfoParams = PacmanInfoParams;
2276
+ type index_PacmanInfoResult = PacmanInfoResult;
2277
+ type index_PacmanInstallParams = PacmanInstallParams;
2278
+ type index_PacmanInstallResult = PacmanInstallResult;
2279
+ type index_PacmanIsInstalledParams = PacmanIsInstalledParams;
2280
+ type index_PacmanIsInstalledResult = PacmanIsInstalledResult;
2281
+ type index_PacmanListParams = PacmanListParams;
2282
+ type index_PacmanListResult = PacmanListResult;
2283
+ type index_PacmanSearchParams = PacmanSearchParams;
2284
+ type index_PacmanSearchResult = PacmanSearchResult;
2285
+ type index_PacmanUninstallParams = PacmanUninstallParams;
2286
+ type index_PacmanUninstallResult = PacmanUninstallResult;
2287
+ type index_PacmanUpdateParams = PacmanUpdateParams;
2288
+ type index_PacmanUpdateResult = PacmanUpdateResult;
2289
+ type index_PacmanUpgradeParams = PacmanUpgradeParams;
2290
+ type index_PacmanUpgradeResult = PacmanUpgradeResult;
2291
+ declare namespace index {
2292
+ export { type index_PacmanCleanParams as PacmanCleanParams, type index_PacmanCleanResult as PacmanCleanResult, type index_PacmanInfoParams as PacmanInfoParams, type index_PacmanInfoResult as PacmanInfoResult, type index_PacmanInstallParams as PacmanInstallParams, type index_PacmanInstallResult as PacmanInstallResult, type index_PacmanIsInstalledParams as PacmanIsInstalledParams, type index_PacmanIsInstalledResult as PacmanIsInstalledResult, type index_PacmanListParams as PacmanListParams, type index_PacmanListResult as PacmanListResult, type index_PacmanSearchParams as PacmanSearchParams, type index_PacmanSearchResult as PacmanSearchResult, type index_PacmanUninstallParams as PacmanUninstallParams, type index_PacmanUninstallResult as PacmanUninstallResult, type index_PacmanUpdateParams as PacmanUpdateParams, type index_PacmanUpdateResult as PacmanUpdateResult, type index_PacmanUpgradeParams as PacmanUpgradeParams, type index_PacmanUpgradeResult as PacmanUpgradeResult, _default$2s as clean, _default$2q as info, _default$2y as install, _default$2r as isInstalled, _default$2t as list, _default$2u as search, _default$2x as uninstall, _default$2w as update, _default$2v as upgrade };
2293
+ }
2294
+
2295
+ type pkg_AbstractPkgCleanParams = AbstractPkgCleanParams;
2296
+ type pkg_AbstractPkgCleanResult = AbstractPkgCleanResult;
2297
+ type pkg_AbstractPkgInstallParams = AbstractPkgInstallParams;
2298
+ type pkg_AbstractPkgInstallResult = AbstractPkgInstallResult;
2299
+ type pkg_AbstractPkgListParams = AbstractPkgListParams;
2300
+ type pkg_AbstractPkgListResult = AbstractPkgListResult;
2301
+ type pkg_AbstractPkgParams = AbstractPkgParams;
2302
+ type pkg_AbstractPkgResult = AbstractPkgResult;
2303
+ type pkg_AbstractPkgSearchParams = AbstractPkgSearchParams;
2304
+ type pkg_AbstractPkgSearchResult = AbstractPkgSearchResult;
2305
+ type pkg_AbstractPkgUninstallParams = AbstractPkgUninstallParams;
2306
+ type pkg_AbstractPkgUninstallResult = AbstractPkgUninstallResult;
2307
+ type pkg_AbstractPkgUpdateParams = AbstractPkgUpdateParams;
1304
2308
  type pkg_AbstractPkgUpdateResult = AbstractPkgUpdateResult;
1305
2309
  type pkg_AbstractPkgUpgradeParams = AbstractPkgUpgradeParams;
1306
2310
  type pkg_AbstractPkgUpgradeResult = AbstractPkgUpgradeResult;
@@ -1315,7 +2319,7 @@ type pkg_PkgRemoveResult = PkgRemoveResult;
1315
2319
  type pkg_PkgUpdateParams = PkgUpdateParams;
1316
2320
  type pkg_PkgUpdateResult = PkgUpdateResult;
1317
2321
  declare namespace pkg {
1318
- 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, _default$y as abstractClean, _default$A as abstractSearch, _default$D as abstractUninstall, _default$C as abstractUpdate, _default$B as abstractUpgrade, _default$G as info, _default$J as install, _default$E as installOrig, _default$F as isInstalled, _default$z as list, _default$I as remove, _default$H as update };
2322
+ 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$30 as clean, index$2 as dnf, _default$37 as info, _default$3a as install, install as installCp, _default$36 as isInstalled, _default$31 as list, index as pacman, _default$39 as remove, _default$35 as removeCp, _default$32 as search, _default$38 as update, _default$34 as updateCp, _default$33 as upgrade, index$1 as yum };
1319
2323
  }
1320
2324
 
1321
2325
  interface K3supInstallParams {
@@ -1353,12 +2357,107 @@ interface K3supInstallResult {
1353
2357
  /** The command that would be run if --print-command was used */
1354
2358
  executedCommand?: string;
1355
2359
  }
1356
- declare const _default$x: TaskFn<K3supInstallParams, K3supInstallResult>;
2360
+ declare const _default$2p: TaskFn<K3supInstallParams, K3supInstallResult>;
1357
2361
 
1358
2362
  type k3s_K3supInstallParams = K3supInstallParams;
1359
2363
  type k3s_K3supInstallResult = K3supInstallResult;
1360
2364
  declare namespace k3s {
1361
- export { type k3s_K3supInstallParams as K3supInstallParams, type k3s_K3supInstallResult as K3supInstallResult, _default$x as k3supInstall };
2365
+ export { type k3s_K3supInstallParams as K3supInstallParams, type k3s_K3supInstallResult as K3supInstallResult, _default$2p as k3supInstall };
2366
+ }
2367
+
2368
+ interface DockerInstallParams {
2369
+ users?: string[];
2370
+ install_compose_plugin?: boolean;
2371
+ install_compose_standalone?: boolean;
2372
+ compose_standalone_version?: string;
2373
+ compose_standalone_path?: string;
2374
+ }
2375
+ interface DockerInstallResult {
2376
+ success: boolean;
2377
+ error?: string;
2378
+ }
2379
+ declare const _default$2o: TaskFn<DockerInstallParams, DockerInstallResult>;
2380
+
2381
+ interface AddUsersParams {
2382
+ users: string[];
2383
+ }
2384
+ interface AddUsersResult {
2385
+ success: boolean;
2386
+ error?: string;
2387
+ }
2388
+ declare const _default$2n: TaskFn<AddUsersParams, AddUsersResult>;
2389
+
2390
+ interface InstallComposeParams {
2391
+ version?: string;
2392
+ path?: string;
2393
+ }
2394
+ interface InstallComposeResult {
2395
+ success: boolean;
2396
+ error?: string;
2397
+ }
2398
+ declare const _default$2m: TaskFn<InstallComposeParams, InstallComposeResult>;
2399
+
2400
+ interface DockerRunCommonParams {
2401
+ image: string;
2402
+ name?: string;
2403
+ env?: Record<string, string>;
2404
+ volumes?: string[];
2405
+ ports?: string[];
2406
+ labels?: Record<string, string>;
2407
+ workdir?: string;
2408
+ entrypoint?: string;
2409
+ network?: string;
2410
+ user?: string;
2411
+ privileged?: boolean;
2412
+ add_hosts?: string[];
2413
+ extra_args?: string[];
2414
+ command?: string | string[];
2415
+ args?: string[];
2416
+ restart?: string;
2417
+ pull?: 'always' | 'missing' | 'never';
2418
+ gpus?: string;
2419
+ sudo?: boolean;
2420
+ cwd?: string;
2421
+ }
2422
+
2423
+ interface DockerRunContainerParams extends DockerRunCommonParams {
2424
+ remove?: boolean;
2425
+ }
2426
+ interface DockerRunContainerResult {
2427
+ success: boolean;
2428
+ exitCode: number;
2429
+ stdout: string;
2430
+ stderr: string;
2431
+ containerId?: string;
2432
+ containerName?: string;
2433
+ error?: string;
2434
+ }
2435
+ declare const _default$2l: TaskFn<DockerRunContainerParams, DockerRunContainerResult>;
2436
+
2437
+ interface DockerRunDetachedParams extends DockerRunCommonParams {
2438
+ }
2439
+ interface DockerRunDetachedResult {
2440
+ success: boolean;
2441
+ stdout: string;
2442
+ stderr: string;
2443
+ containerId?: string;
2444
+ containerName?: string;
2445
+ error?: string;
2446
+ }
2447
+ declare const _default$2k: TaskFn<DockerRunDetachedParams, DockerRunDetachedResult>;
2448
+
2449
+ type docker_AddUsersParams = AddUsersParams;
2450
+ type docker_AddUsersResult = AddUsersResult;
2451
+ type docker_DockerInstallParams = DockerInstallParams;
2452
+ type docker_DockerInstallResult = DockerInstallResult;
2453
+ type docker_DockerRunContainerParams = DockerRunContainerParams;
2454
+ type docker_DockerRunContainerResult = DockerRunContainerResult;
2455
+ type docker_DockerRunDetachedParams = DockerRunDetachedParams;
2456
+ type docker_DockerRunDetachedResult = DockerRunDetachedResult;
2457
+ type docker_InstallComposeParams = InstallComposeParams;
2458
+ type docker_InstallComposeResult = InstallComposeResult;
2459
+ declare namespace docker {
2460
+ export { type docker_AddUsersParams as AddUsersParams, type docker_AddUsersResult as AddUsersResult, type docker_DockerInstallParams as DockerInstallParams, type docker_DockerInstallResult as DockerInstallResult, type docker_DockerRunContainerParams as DockerRunContainerParams, type docker_DockerRunContainerResult as DockerRunContainerResult, type docker_DockerRunDetachedParams as DockerRunDetachedParams, type docker_DockerRunDetachedResult as DockerRunDetachedResult, type docker_InstallComposeParams as InstallComposeParams, type docker_InstallComposeResult as InstallComposeResult, _default$2n as addUsers, _default$2o as install, _default$2m as installCompose, _default$2l as runContainer, _default$2k as runContainerDetached };
1362
2461
  }
1363
2462
 
1364
2463
  interface CopyIdParams {
@@ -1370,10 +2469,10 @@ interface CopyIdResult {
1370
2469
  success: boolean;
1371
2470
  changed: boolean;
1372
2471
  }
1373
- declare const _default$w: TaskFn<CopyIdParams, CopyIdResult>;
2472
+ declare const _default$2j: TaskFn<CopyIdParams, CopyIdResult>;
1374
2473
 
1375
2474
  declare namespace ssh {
1376
- export { _default$w as copy_id };
2475
+ export { _default$2j as copy_id };
1377
2476
  }
1378
2477
 
1379
2478
  interface SudoersCheckParams {
@@ -1381,8 +2480,9 @@ interface SudoersCheckParams {
1381
2480
  }
1382
2481
  interface SudoersCheckResult {
1383
2482
  success: boolean;
2483
+ error?: string;
1384
2484
  }
1385
- declare const _default$v: TaskFn<SudoersCheckParams, SudoersCheckResult>;
2485
+ declare const _default$2i: TaskFn<SudoersCheckParams, SudoersCheckResult>;
1386
2486
 
1387
2487
  interface GrantNopasswdParams {
1388
2488
  /** The username to grant passwordless sudo privileges. */
@@ -1397,11 +2497,383 @@ interface GrantNopasswdResult {
1397
2497
  changed: boolean;
1398
2498
  /** The path to the created sudoers file. */
1399
2499
  filePath: string;
2500
+ /** Error message if failed. */
2501
+ error?: string;
1400
2502
  }
1401
- declare const _default$u: TaskFn<GrantNopasswdParams, GrantNopasswdResult>;
2503
+ declare const _default$2h: TaskFn<GrantNopasswdParams, GrantNopasswdResult>;
1402
2504
 
1403
2505
  declare namespace sudoers {
1404
- export { _default$v as check, _default$u as grantNopasswd };
2506
+ export { _default$2i as check, _default$2h as grantNopasswd };
2507
+ }
2508
+
2509
+ interface ProcessListParams {
2510
+ user?: string;
2511
+ command?: string;
2512
+ limit?: number;
2513
+ sort?: 'cpu' | 'mem' | 'pid' | 'time';
2514
+ reverse?: boolean;
2515
+ }
2516
+ interface ProcessInfo$2 {
2517
+ pid: number;
2518
+ ppid: number;
2519
+ user: string;
2520
+ command: string;
2521
+ stat: string;
2522
+ start: string;
2523
+ time: string;
2524
+ cpu: number;
2525
+ mem: number;
2526
+ vsz: number;
2527
+ rss: number;
2528
+ tty: string;
2529
+ }
2530
+ interface ProcessListResult {
2531
+ success: boolean;
2532
+ processes?: ProcessInfo$2[];
2533
+ total?: number;
2534
+ error?: string;
2535
+ }
2536
+ declare const _default$2g: TaskFn<ProcessListParams, ProcessListResult>;
2537
+
2538
+ interface ProcessSearchParams {
2539
+ /** Search by process name/command (supports regex) */
2540
+ name?: string;
2541
+ /** Search by user running the process */
2542
+ user?: string;
2543
+ /** Search by process ID */
2544
+ pid?: number;
2545
+ /** Search by parent process ID */
2546
+ ppid?: number;
2547
+ /** Search by command line arguments */
2548
+ args?: string;
2549
+ /** Search by process state */
2550
+ state?: string;
2551
+ /** Use regex matching for name/args (default: false) */
2552
+ regex?: boolean;
2553
+ /** Case insensitive search (default: false) */
2554
+ ignoreCase?: boolean;
2555
+ /** Maximum number of results to return (default: unlimited) */
2556
+ limit?: number;
2557
+ }
2558
+ interface ProcessSearchResult {
2559
+ /** Array of matching processes */
2560
+ processes: ProcessInfo$1[];
2561
+ /** Total number of matches found */
2562
+ total: number;
2563
+ /** Whether the operation was successful */
2564
+ success: boolean;
2565
+ /** Error message if operation failed */
2566
+ error?: string;
2567
+ }
2568
+ interface ProcessInfo$1 {
2569
+ /** Process ID */
2570
+ pid: number;
2571
+ /** Parent Process ID */
2572
+ ppid: number;
2573
+ /** User running the process */
2574
+ user: string;
2575
+ /** CPU usage percentage */
2576
+ cpu: number;
2577
+ /** Memory usage percentage */
2578
+ mem: number;
2579
+ /** Virtual memory size in KB */
2580
+ vsz: number;
2581
+ /** Resident set size in KB */
2582
+ rss: number;
2583
+ /** Terminal associated with the process */
2584
+ tty: string;
2585
+ /** Process state */
2586
+ stat: string;
2587
+ /** Start time */
2588
+ start: string;
2589
+ /** Time the process has been running */
2590
+ time: string;
2591
+ /** Command name */
2592
+ command: string;
2593
+ /** Full command line */
2594
+ fullCommand: string;
2595
+ }
2596
+ declare const _default$2f: TaskFn<ProcessSearchParams, ProcessSearchResult>;
2597
+
2598
+ interface ProcessKillParams {
2599
+ pid?: number | number[];
2600
+ user?: string;
2601
+ command?: string;
2602
+ signal?: string;
2603
+ force?: boolean;
2604
+ sudo?: boolean;
2605
+ }
2606
+ interface ProcessKillResult {
2607
+ success: boolean;
2608
+ killed?: number;
2609
+ total?: number;
2610
+ error?: string;
2611
+ }
2612
+ declare const _default$2e: TaskFn<ProcessKillParams, ProcessKillResult>;
2613
+
2614
+ interface ProcessSignalParams {
2615
+ pid: number;
2616
+ signal?: string;
2617
+ sudo?: boolean;
2618
+ }
2619
+ interface ProcessSignalResult {
2620
+ success: boolean;
2621
+ error?: string;
2622
+ }
2623
+ declare const _default$2d: TaskFn<ProcessSignalParams, ProcessSignalResult>;
2624
+
2625
+ interface ProcessInfoParams {
2626
+ pid: number;
2627
+ }
2628
+ interface ProcessInfo {
2629
+ pid: number;
2630
+ ppid: number;
2631
+ user: string;
2632
+ command: string;
2633
+ stat: string;
2634
+ start: string;
2635
+ time: string;
2636
+ cpu: number;
2637
+ mem: number;
2638
+ vsz: number;
2639
+ rss: number;
2640
+ tty: string;
2641
+ cwd?: string;
2642
+ environ?: Record<string, string>;
2643
+ }
2644
+ interface ProcessInfoResult {
2645
+ success: boolean;
2646
+ process?: ProcessInfo;
2647
+ error?: string;
2648
+ }
2649
+ declare const _default$2c: TaskFn<ProcessInfoParams, ProcessInfoResult>;
2650
+
2651
+ interface ProcessTopParams {
2652
+ /** Number of processes to show (default: 10) */
2653
+ limit?: number;
2654
+ /** Sort by field (default: 'cpu') */
2655
+ sort?: 'cpu' | 'mem' | 'pid' | 'time' | 'command';
2656
+ /** Show processes for specific user (default: all users) */
2657
+ user?: string;
2658
+ /** Refresh interval in seconds (default: 1) */
2659
+ interval?: number;
2660
+ /** Number of iterations (default: 1) */
2661
+ iterations?: number;
2662
+ /** Include system load information (default: true) */
2663
+ includeLoad?: boolean;
2664
+ /** Include memory summary (default: true) */
2665
+ includeMemory?: boolean;
2666
+ }
2667
+ interface ProcessTopResult {
2668
+ /** System load information */
2669
+ load?: LoadInfo;
2670
+ /** Memory summary */
2671
+ memory?: MemorySummary;
2672
+ /** Top processes */
2673
+ processes: TopProcessInfo[];
2674
+ /** Total number of processes shown */
2675
+ total: number;
2676
+ /** Whether the operation was successful */
2677
+ success: boolean;
2678
+ /** Timestamp of the snapshot */
2679
+ timestamp: string;
2680
+ }
2681
+ interface LoadInfo {
2682
+ /** 1-minute load average */
2683
+ load1: number;
2684
+ /** 5-minute load average */
2685
+ load5: number;
2686
+ /** 15-minute load average */
2687
+ load15: number;
2688
+ /** Number of running processes */
2689
+ running: number;
2690
+ /** Total number of processes */
2691
+ total: number;
2692
+ /** Last PID */
2693
+ lastPid: number;
2694
+ }
2695
+ interface MemorySummary {
2696
+ /** Total physical memory in KB */
2697
+ total: number;
2698
+ /** Used memory in KB */
2699
+ used: number;
2700
+ /** Free memory in KB */
2701
+ free: number;
2702
+ /** Shared memory in KB */
2703
+ shared: number;
2704
+ /** Buffer memory in KB */
2705
+ buffers: number;
2706
+ /** Cache memory in KB */
2707
+ cached: number;
2708
+ /** Available memory in KB */
2709
+ available: number;
2710
+ }
2711
+ interface TopProcessInfo {
2712
+ /** Process ID */
2713
+ pid: number;
2714
+ /** User running the process */
2715
+ user: string;
2716
+ /** Priority */
2717
+ priority: number;
2718
+ /** Nice value */
2719
+ nice: number;
2720
+ /** Virtual memory size in KB */
2721
+ vsz: number;
2722
+ /** Resident set size in KB */
2723
+ rss: number;
2724
+ /** Process state */
2725
+ stat: string;
2726
+ /** CPU usage percentage */
2727
+ cpu: number;
2728
+ /** Memory usage percentage */
2729
+ mem: number;
2730
+ /** Time the process has been running */
2731
+ time: string;
2732
+ /** Command name */
2733
+ command: string;
2734
+ }
2735
+ declare const _default$2b: TaskFn<ProcessTopParams, ProcessTopResult>;
2736
+
2737
+ interface ProcessStatsParams {
2738
+ /** Include per-user statistics (default: true) */
2739
+ includeUsers?: boolean;
2740
+ /** Include per-state statistics (default: true) */
2741
+ includeStates?: boolean;
2742
+ /** Include per-command statistics (default: false) */
2743
+ includeCommands?: boolean;
2744
+ /** Limit number of top commands to show (default: 10) */
2745
+ commandLimit?: number;
2746
+ }
2747
+ interface ProcessStatsResult {
2748
+ /** Overall process statistics */
2749
+ overall: OverallStats;
2750
+ /** Per-user statistics */
2751
+ users?: UserStats[];
2752
+ /** Per-state statistics */
2753
+ states?: StateStats[];
2754
+ /** Per-command statistics */
2755
+ commands?: CommandStats[];
2756
+ /** Whether the operation was successful */
2757
+ success: boolean;
2758
+ /** Timestamp of the snapshot */
2759
+ timestamp: string;
2760
+ }
2761
+ interface OverallStats {
2762
+ /** Total number of processes */
2763
+ total: number;
2764
+ /** Number of running processes */
2765
+ running: number;
2766
+ /** Number of sleeping processes */
2767
+ sleeping: number;
2768
+ /** Number of stopped processes */
2769
+ stopped: number;
2770
+ /** Number of zombie processes */
2771
+ zombie: number;
2772
+ /** Number of uninterruptible processes */
2773
+ uninterruptible: number;
2774
+ /** Total CPU usage percentage */
2775
+ totalCpu: number;
2776
+ /** Total memory usage percentage */
2777
+ totalMem: number;
2778
+ /** Average CPU usage per process */
2779
+ avgCpu: number;
2780
+ /** Average memory usage per process */
2781
+ avgMem: number;
2782
+ }
2783
+ interface UserStats {
2784
+ /** Username */
2785
+ user: string;
2786
+ /** Number of processes */
2787
+ count: number;
2788
+ /** Total CPU usage percentage */
2789
+ cpu: number;
2790
+ /** Total memory usage percentage */
2791
+ mem: number;
2792
+ /** Total virtual memory in KB */
2793
+ vsz: number;
2794
+ /** Total resident memory in KB */
2795
+ rss: number;
2796
+ }
2797
+ interface StateStats {
2798
+ /** Process state */
2799
+ state: string;
2800
+ /** Number of processes in this state */
2801
+ count: number;
2802
+ /** Percentage of total processes */
2803
+ percentage: number;
2804
+ }
2805
+ interface CommandStats {
2806
+ /** Command name */
2807
+ command: string;
2808
+ /** Number of processes */
2809
+ count: number;
2810
+ /** Total CPU usage percentage */
2811
+ cpu: number;
2812
+ /** Total memory usage percentage */
2813
+ mem: number;
2814
+ /** Total virtual memory in KB */
2815
+ vsz: number;
2816
+ /** Total resident memory in KB */
2817
+ rss: number;
2818
+ }
2819
+ declare const _default$2a: TaskFn<ProcessStatsParams, ProcessStatsResult>;
2820
+
2821
+ interface ProcessChildrenParams {
2822
+ /** Parent process ID */
2823
+ pid: number;
2824
+ /** Include grandchildren (recursive) */
2825
+ recursive?: boolean;
2826
+ /** Maximum depth for recursive search (default: unlimited) */
2827
+ maxDepth?: number;
2828
+ }
2829
+ interface ProcessChildrenResult {
2830
+ /** Array of child process information */
2831
+ children: ChildProcessInfo[];
2832
+ /** Total number of children found */
2833
+ total: number;
2834
+ /** Whether the operation was successful */
2835
+ success: boolean;
2836
+ /** Error message if operation failed */
2837
+ error?: string;
2838
+ }
2839
+ interface ChildProcessInfo {
2840
+ /** Process ID */
2841
+ pid: number;
2842
+ /** Parent Process ID */
2843
+ ppid: number;
2844
+ /** User running the process */
2845
+ user: string;
2846
+ /** Command name */
2847
+ command: string;
2848
+ /** Process state */
2849
+ stat: string;
2850
+ /** Start time */
2851
+ start: string;
2852
+ /** Time the process has been running */
2853
+ time: string;
2854
+ /** Depth level (0 = direct child, 1 = grandchild, etc.) */
2855
+ depth: number;
2856
+ }
2857
+ declare const _default$29: TaskFn<ProcessChildrenParams, ProcessChildrenResult>;
2858
+
2859
+ type process_ProcessChildrenParams = ProcessChildrenParams;
2860
+ type process_ProcessChildrenResult = ProcessChildrenResult;
2861
+ type process_ProcessInfoParams = ProcessInfoParams;
2862
+ type process_ProcessInfoResult = ProcessInfoResult;
2863
+ type process_ProcessKillParams = ProcessKillParams;
2864
+ type process_ProcessKillResult = ProcessKillResult;
2865
+ type process_ProcessListParams = ProcessListParams;
2866
+ type process_ProcessListResult = ProcessListResult;
2867
+ type process_ProcessSearchParams = ProcessSearchParams;
2868
+ type process_ProcessSearchResult = ProcessSearchResult;
2869
+ type process_ProcessSignalParams = ProcessSignalParams;
2870
+ type process_ProcessSignalResult = ProcessSignalResult;
2871
+ type process_ProcessStatsParams = ProcessStatsParams;
2872
+ type process_ProcessStatsResult = ProcessStatsResult;
2873
+ type process_ProcessTopParams = ProcessTopParams;
2874
+ type process_ProcessTopResult = ProcessTopResult;
2875
+ declare namespace process {
2876
+ export { type process_ProcessChildrenParams as ProcessChildrenParams, type process_ProcessChildrenResult as ProcessChildrenResult, type process_ProcessInfoParams as ProcessInfoParams, type process_ProcessInfoResult as ProcessInfoResult, type process_ProcessKillParams as ProcessKillParams, type process_ProcessKillResult as ProcessKillResult, type process_ProcessListParams as ProcessListParams, type process_ProcessListResult as ProcessListResult, type process_ProcessSearchParams as ProcessSearchParams, type process_ProcessSearchResult as ProcessSearchResult, type process_ProcessSignalParams as ProcessSignalParams, type process_ProcessSignalResult as ProcessSignalResult, type process_ProcessStatsParams as ProcessStatsParams, type process_ProcessStatsResult as ProcessStatsResult, type process_ProcessTopParams as ProcessTopParams, type process_ProcessTopResult as ProcessTopResult, _default$29 as children, _default$2c as info, _default$2e as kill, _default$2g as list, _default$2f as search, _default$2d as signal, _default$2a as stats, _default$2b as top };
1405
2877
  }
1406
2878
 
1407
2879
  interface RebootParams {
@@ -1424,7 +2896,7 @@ interface RebootResult {
1424
2896
  error?: string;
1425
2897
  status: string;
1426
2898
  }
1427
- declare const _default$t: TaskFn<RebootParams, RebootResult>;
2899
+ declare const _default$28: TaskFn<RebootParams, RebootResult>;
1428
2900
 
1429
2901
  interface ShutdownParams {
1430
2902
  /**
@@ -1446,7 +2918,7 @@ interface ShutdownResult {
1446
2918
  error?: string;
1447
2919
  status: string;
1448
2920
  }
1449
- declare const _default$s: TaskFn<ShutdownParams, ShutdownResult>;
2921
+ declare const _default$27: TaskFn<ShutdownParams, ShutdownResult>;
1450
2922
 
1451
2923
  interface RebootNeededParams {
1452
2924
  }
@@ -1455,7 +2927,7 @@ interface RebootNeededResult {
1455
2927
  success: boolean;
1456
2928
  error?: string;
1457
2929
  }
1458
- declare const _default$r: TaskFn<RebootNeededParams, RebootNeededResult>;
2930
+ declare const _default$26: TaskFn<RebootNeededParams, RebootNeededResult>;
1459
2931
 
1460
2932
  interface RebootIfNeededParams {
1461
2933
  delay?: number;
@@ -1466,7 +2938,7 @@ interface RebootIfNeededResult {
1466
2938
  success: boolean;
1467
2939
  error?: string;
1468
2940
  }
1469
- declare const _default$q: TaskFn<RebootIfNeededParams, RebootIfNeededResult>;
2941
+ declare const _default$25: TaskFn<RebootIfNeededParams, RebootIfNeededResult>;
1470
2942
 
1471
2943
  type system_RebootIfNeededParams = RebootIfNeededParams;
1472
2944
  type system_RebootIfNeededResult = RebootIfNeededResult;
@@ -1477,7 +2949,7 @@ type system_RebootResult = RebootResult;
1477
2949
  type system_ShutdownParams = ShutdownParams;
1478
2950
  type system_ShutdownResult = ShutdownResult;
1479
2951
  declare namespace system {
1480
- export { type system_RebootIfNeededParams as RebootIfNeededParams, type system_RebootIfNeededResult as RebootIfNeededResult, type system_RebootNeededParams as RebootNeededParams, type system_RebootNeededResult as RebootNeededResult, type system_RebootParams as RebootParams, type system_RebootResult as RebootResult, type system_ShutdownParams as ShutdownParams, type system_ShutdownResult as ShutdownResult, _default$t as reboot, _default$q as rebootIfNeeded, _default$r as rebootNeeded, _default$s as shutdown };
2952
+ export { type system_RebootIfNeededParams as RebootIfNeededParams, type system_RebootIfNeededResult as RebootIfNeededResult, type system_RebootNeededParams as RebootNeededParams, type system_RebootNeededResult as RebootNeededResult, type system_RebootParams as RebootParams, type system_RebootResult as RebootResult, type system_ShutdownParams as ShutdownParams, type system_ShutdownResult as ShutdownResult, _default$28 as reboot, _default$25 as rebootIfNeeded, _default$26 as rebootNeeded, _default$27 as shutdown };
1481
2953
  }
1482
2954
 
1483
2955
  interface DisableServiceParams {
@@ -1486,8 +2958,9 @@ interface DisableServiceParams {
1486
2958
  }
1487
2959
  interface DisableServiceResult {
1488
2960
  success: boolean;
2961
+ error?: string;
1489
2962
  }
1490
- declare const _default$p: TaskFn<DisableServiceParams, DisableServiceResult>;
2963
+ declare const _default$24: TaskFn<DisableServiceParams, DisableServiceResult>;
1491
2964
 
1492
2965
  interface SystemdEnableParams {
1493
2966
  service: string;
@@ -1495,8 +2968,9 @@ interface SystemdEnableParams {
1495
2968
  }
1496
2969
  interface SystemdEnableResult {
1497
2970
  success: boolean;
2971
+ error?: string;
1498
2972
  }
1499
- declare const _default$o: TaskFn<SystemdEnableParams, SystemdEnableResult>;
2973
+ declare const _default$23: TaskFn<SystemdEnableParams, SystemdEnableResult>;
1500
2974
 
1501
2975
  interface SystemdRestartParams {
1502
2976
  service: string;
@@ -1504,8 +2978,9 @@ interface SystemdRestartParams {
1504
2978
  }
1505
2979
  interface SystemdRestartResult {
1506
2980
  success: boolean;
2981
+ error?: string;
1507
2982
  }
1508
- declare const _default$n: TaskFn<SystemdRestartParams, SystemdRestartResult>;
2983
+ declare const _default$22: TaskFn<SystemdRestartParams, SystemdRestartResult>;
1509
2984
 
1510
2985
  interface SystemdStartParams {
1511
2986
  service: string;
@@ -1513,8 +2988,9 @@ interface SystemdStartParams {
1513
2988
  }
1514
2989
  interface SystemdStartResult {
1515
2990
  success: boolean;
2991
+ error?: string;
1516
2992
  }
1517
- declare const _default$m: TaskFn<SystemdStartParams, SystemdStartResult>;
2993
+ declare const _default$21: TaskFn<SystemdStartParams, SystemdStartResult>;
1518
2994
 
1519
2995
  interface SystemdStopParams {
1520
2996
  service: string;
@@ -1522,8 +2998,9 @@ interface SystemdStopParams {
1522
2998
  }
1523
2999
  interface SystemdStopResult {
1524
3000
  success: boolean;
3001
+ error?: string;
1525
3002
  }
1526
- declare const _default$l: TaskFn<SystemdStopParams, SystemdStopResult>;
3003
+ declare const _default$20: TaskFn<SystemdStopParams, SystemdStopResult>;
1527
3004
 
1528
3005
  interface SystemdReloadParams {
1529
3006
  service: string;
@@ -1531,20 +3008,23 @@ interface SystemdReloadParams {
1531
3008
  }
1532
3009
  interface SystemdReloadResult {
1533
3010
  success: boolean;
3011
+ error?: string;
1534
3012
  }
1535
- declare const _default$k: TaskFn<SystemdReloadParams, SystemdReloadResult>;
3013
+ declare const _default$1$: TaskFn<SystemdReloadParams, SystemdReloadResult>;
1536
3014
 
1537
3015
  interface SystemdStatusParams {
1538
3016
  service: string;
1539
3017
  sudo?: boolean;
1540
3018
  }
1541
3019
  interface SystemdStatusResult {
3020
+ success: boolean;
1542
3021
  active: boolean;
3022
+ error?: string;
1543
3023
  }
1544
- declare const _default$j: TaskFn<SystemdStatusParams, SystemdStatusResult>;
3024
+ declare const _default$1_: TaskFn<SystemdStatusParams, SystemdStatusResult>;
1545
3025
 
1546
3026
  declare namespace systemd {
1547
- export { _default$p as disable, _default$o as enable, _default$k as reload, _default$n as restart, _default$m as start, _default$j as status, _default$l as stop };
3027
+ export { _default$24 as disable, _default$23 as enable, _default$1$ as reload, _default$22 as restart, _default$21 as start, _default$1_ as status, _default$20 as stop };
1548
3028
  }
1549
3029
 
1550
3030
  interface TemplateWriteParams {
@@ -1561,63 +3041,122 @@ interface TemplateWriteResult {
1561
3041
  success: boolean;
1562
3042
  path: string;
1563
3043
  }
1564
- declare const _default$i: TaskFn<TemplateWriteParams, TemplateWriteResult>;
3044
+ declare const _default$1Z: TaskFn<TemplateWriteParams, TemplateWriteResult>;
1565
3045
 
1566
3046
  declare namespace template {
1567
- export { _default$i as write };
3047
+ export { _default$1Z as write };
3048
+ }
3049
+
3050
+ interface UfwAllowParams {
3051
+ port: string | number;
3052
+ proto?: 'tcp' | 'udp';
3053
+ from?: string;
3054
+ }
3055
+ interface UfwAllowResult {
3056
+ success: boolean;
3057
+ error?: string;
1568
3058
  }
3059
+ declare const _default$1Y: TaskFn<UfwAllowParams, UfwAllowResult>;
1569
3060
 
1570
3061
  interface UfwDenyParams {
1571
- from_addr?: string;
1572
- from_port?: number;
1573
- to_addr?: string;
1574
- to_port?: number;
3062
+ port?: string | number;
3063
+ proto?: 'tcp' | 'udp';
3064
+ from?: string;
1575
3065
  }
1576
3066
  interface UfwDenyResult {
1577
3067
  success: boolean;
3068
+ error?: string;
3069
+ }
3070
+ declare const _default$1X: TaskFn<UfwDenyParams, UfwDenyResult>;
3071
+
3072
+ interface UfwDeleteParams {
3073
+ rule_number: number;
3074
+ }
3075
+ interface UfwDeleteResult {
3076
+ success: boolean;
3077
+ error?: string;
1578
3078
  }
1579
- declare const _default$h: TaskFn<UfwDenyParams, UfwDenyResult>;
3079
+ declare const _default$1W: TaskFn<UfwDeleteParams, UfwDeleteResult>;
1580
3080
 
1581
3081
  interface UfwDisableParams {
1582
3082
  }
1583
3083
  interface UfwDisableResult {
1584
3084
  success: boolean;
3085
+ error?: string;
1585
3086
  }
1586
- declare const _default$g: TaskFn<UfwDisableParams, UfwDisableResult>;
3087
+ declare const _default$1V: TaskFn<UfwDisableParams, UfwDisableResult>;
1587
3088
 
1588
3089
  interface UfwEnableParams {
1589
3090
  }
1590
3091
  interface UfwEnableResult {
1591
3092
  success: boolean;
3093
+ error?: string;
1592
3094
  }
1593
- declare const _default$f: TaskFn<UfwEnableParams, UfwEnableResult>;
3095
+ declare const _default$1U: TaskFn<UfwEnableParams, UfwEnableResult>;
1594
3096
 
1595
3097
  interface UfwInstallParams {
1596
3098
  }
1597
3099
  interface UfwInstallResult {
1598
3100
  success: boolean;
3101
+ error?: string;
1599
3102
  }
1600
- declare const _default$e: TaskFn<UfwInstallParams, UfwInstallResult>;
3103
+ declare const _default$1T: TaskFn<UfwInstallParams, UfwInstallResult>;
1601
3104
 
1602
- interface UfwReloadParams {
3105
+ interface UfwLoggingParams {
3106
+ level: 'on' | 'off' | 'low' | 'medium' | 'high' | 'full';
3107
+ }
3108
+ interface UfwLoggingResult {
3109
+ success: boolean;
3110
+ error?: string;
3111
+ }
3112
+ declare const _default$1S: TaskFn<UfwLoggingParams, UfwLoggingResult>;
3113
+
3114
+ interface UfwReloadParams {
1603
3115
  }
1604
3116
  interface UfwReloadResult {
1605
3117
  success: boolean;
3118
+ error?: string;
3119
+ }
3120
+ declare const _default$1R: TaskFn<UfwReloadParams, UfwReloadResult>;
3121
+
3122
+ interface UfwResetParams {
3123
+ }
3124
+ interface UfwResetResult {
3125
+ success: boolean;
3126
+ error?: string;
3127
+ }
3128
+ declare const _default$1Q: TaskFn<UfwResetParams, UfwResetResult>;
3129
+
3130
+ interface UfwStatusParams {
3131
+ }
3132
+ interface UfwRule {
3133
+ number: number;
3134
+ to: string;
3135
+ action: string;
3136
+ from: string;
3137
+ protocol?: string;
3138
+ port?: string;
3139
+ }
3140
+ interface UfwStatusResult {
3141
+ success: boolean;
3142
+ status?: string;
3143
+ rules?: UfwRule[];
3144
+ error?: string;
1606
3145
  }
1607
- declare const _default$d: TaskFn<UfwReloadParams, UfwReloadResult>;
3146
+ declare const _default$1P: TaskFn<UfwStatusParams, UfwStatusResult>;
1608
3147
 
1609
3148
  declare namespace ufw {
1610
- export { _default$h as deny, _default$g as disable, _default$f as enable, _default$e as install, _default$d as reload };
3149
+ export { _default$1Y as allow, _default$1W as delete, _default$1X as deny, _default$1V as disable, _default$1U as enable, _default$1T as install, _default$1S as logging, _default$1R as reload, _default$1Q as reset, _default$1P as status };
1611
3150
  }
1612
3151
 
1613
3152
  interface AddGroupsParams {
1614
3153
  user: string;
1615
- groups: string[];
3154
+ groups?: string | string[];
1616
3155
  }
1617
3156
  interface AddGroupsResult {
1618
3157
  success: boolean;
1619
3158
  }
1620
- declare const _default$c: TaskFn<AddGroupsParams, AddGroupsResult>;
3159
+ declare const _default$1O: TaskFn<AddGroupsParams, AddGroupsResult>;
1621
3160
 
1622
3161
  interface CreateUserParams {
1623
3162
  user: string;
@@ -1628,8 +3167,9 @@ interface CreateUserParams {
1628
3167
  }
1629
3168
  interface CreateUserResult {
1630
3169
  success: boolean;
3170
+ error?: string;
1631
3171
  }
1632
- declare const _default$b: TaskFn<CreateUserParams, CreateUserResult>;
3172
+ declare const _default$1N: TaskFn<CreateUserParams, CreateUserResult>;
1633
3173
 
1634
3174
  interface UserExistsParams {
1635
3175
  user: string;
@@ -1637,7 +3177,7 @@ interface UserExistsParams {
1637
3177
  interface UserExistsResult {
1638
3178
  exists: boolean;
1639
3179
  }
1640
- declare const _default$a: TaskFn<UserExistsParams, UserExistsResult>;
3180
+ declare const _default$1M: TaskFn<UserExistsParams, UserExistsResult>;
1641
3181
 
1642
3182
  interface GetGidParams {
1643
3183
  user: string;
@@ -1646,7 +3186,7 @@ interface GetGidResult {
1646
3186
  success: boolean;
1647
3187
  gid: string;
1648
3188
  }
1649
- declare const _default$9: TaskFn<GetGidParams, GetGidResult>;
3189
+ declare const _default$1L: TaskFn<GetGidParams, GetGidResult>;
1650
3190
 
1651
3191
  interface GetGroupsParams {
1652
3192
  user: string;
@@ -1655,7 +3195,7 @@ interface GetGroupsResult {
1655
3195
  success: boolean;
1656
3196
  groups: string[];
1657
3197
  }
1658
- declare const _default$8: TaskFn<GetGroupsParams, GetGroupsResult>;
3198
+ declare const _default$1K: TaskFn<GetGroupsParams, GetGroupsResult>;
1659
3199
 
1660
3200
  interface GetUidParams {
1661
3201
  user: string;
@@ -1664,13 +3204,13 @@ interface GetUidResult {
1664
3204
  success: boolean;
1665
3205
  uid: string;
1666
3206
  }
1667
- declare const _default$7: TaskFn<GetUidParams, GetUidResult>;
3207
+ declare const _default$1J: TaskFn<GetUidParams, GetUidResult>;
1668
3208
 
1669
3209
  interface GetUsernameResult {
1670
3210
  success: boolean;
1671
3211
  username: string;
1672
3212
  }
1673
- declare const _default$6: TaskFn<{}, GetUsernameResult>;
3213
+ declare const _default$1I: TaskFn<{}, GetUsernameResult>;
1674
3214
 
1675
3215
  interface UserHomeDirParams {
1676
3216
  user: string;
@@ -1679,16 +3219,16 @@ interface UserHomeDirResult {
1679
3219
  path: string;
1680
3220
  exists: boolean;
1681
3221
  }
1682
- declare const _default$5: TaskFn<UserHomeDirParams, UserHomeDirResult>;
3222
+ declare const _default$1H: TaskFn<UserHomeDirParams, UserHomeDirResult>;
1683
3223
 
1684
3224
  interface SetUserGroupsParams {
1685
3225
  user: string;
1686
- groups: string[];
3226
+ groups?: string | string[];
1687
3227
  }
1688
3228
  interface SetUserGroupsResult {
1689
3229
  success: boolean;
1690
3230
  }
1691
- declare const _default$4: TaskFn<SetUserGroupsParams, SetUserGroupsResult>;
3231
+ declare const _default$1G: TaskFn<SetUserGroupsParams, SetUserGroupsResult>;
1692
3232
 
1693
3233
  interface SetUserShellParams {
1694
3234
  user: string;
@@ -1697,7 +3237,7 @@ interface SetUserShellParams {
1697
3237
  interface SetUserShellResult {
1698
3238
  success: boolean;
1699
3239
  }
1700
- declare const _default$3: TaskFn<SetUserShellParams, SetUserShellResult>;
3240
+ declare const _default$1F: TaskFn<SetUserShellParams, SetUserShellResult>;
1701
3241
 
1702
3242
  interface UserDeleteParams {
1703
3243
  user: string;
@@ -1710,7 +3250,7 @@ interface UserDeleteResult {
1710
3250
  success: boolean;
1711
3251
  error?: string;
1712
3252
  }
1713
- declare const _default$2: TaskFn<UserDeleteParams, UserDeleteResult>;
3253
+ declare const _default$1E: TaskFn<UserDeleteParams, UserDeleteResult>;
1714
3254
 
1715
3255
  interface ModifyUserParams {
1716
3256
  user: string;
@@ -1729,8 +3269,9 @@ interface ModifyUserParams {
1729
3269
  }
1730
3270
  interface ModifyUserResult {
1731
3271
  success: boolean;
3272
+ error?: string;
1732
3273
  }
1733
- declare const _default$1: TaskFn<ModifyUserParams, ModifyUserResult>;
3274
+ declare const _default$1D: TaskFn<ModifyUserParams, ModifyUserResult>;
1734
3275
 
1735
3276
  type user_AddGroupsParams = AddGroupsParams;
1736
3277
  type user_AddGroupsResult = AddGroupsResult;
@@ -1754,26 +3295,2284 @@ type user_UserExistsResult = UserExistsResult;
1754
3295
  type user_UserHomeDirParams = UserHomeDirParams;
1755
3296
  type user_UserHomeDirResult = UserHomeDirResult;
1756
3297
  declare namespace user {
1757
- export { type user_AddGroupsParams as AddGroupsParams, type user_AddGroupsResult as AddGroupsResult, type user_CreateUserParams as CreateUserParams, type user_CreateUserResult as CreateUserResult, type user_GetGidParams as GetGidParams, type user_GetGidResult as GetGidResult, type user_GetGroupsParams as GetGroupsParams, type user_GetGroupsResult as GetGroupsResult, type user_GetUidParams as GetUidParams, type user_GetUidResult as GetUidResult, type user_GetUsernameResult as GetUsernameResult, type user_SetUserGroupsParams as SetUserGroupsParams, type user_SetUserGroupsResult as SetUserGroupsResult, type user_SetUserShellParams as SetUserShellParams, type user_SetUserShellResult as SetUserShellResult, type user_UserDeleteParams as UserDeleteParams, type user_UserDeleteResult as UserDeleteResult, type user_UserExistsParams as UserExistsParams, type user_UserExistsResult as UserExistsResult, type user_UserHomeDirParams as UserHomeDirParams, type user_UserHomeDirResult as UserHomeDirResult, _default$c as addGroups, _default$b as create, _default$2 as delete, _default$a as exists, _default$9 as getGid, _default$8 as getGroups, _default$7 as getUid, _default$6 as getUsername, _default$5 as homeDir, _default$1 as modify, _default$4 as setGroups, _default$3 as setShell };
3298
+ export { type user_AddGroupsParams as AddGroupsParams, type user_AddGroupsResult as AddGroupsResult, type user_CreateUserParams as CreateUserParams, type user_CreateUserResult as CreateUserResult, type user_GetGidParams as GetGidParams, type user_GetGidResult as GetGidResult, type user_GetGroupsParams as GetGroupsParams, type user_GetGroupsResult as GetGroupsResult, type user_GetUidParams as GetUidParams, type user_GetUidResult as GetUidResult, type user_GetUsernameResult as GetUsernameResult, type user_SetUserGroupsParams as SetUserGroupsParams, type user_SetUserGroupsResult as SetUserGroupsResult, type user_SetUserShellParams as SetUserShellParams, type user_SetUserShellResult as SetUserShellResult, type user_UserDeleteParams as UserDeleteParams, type user_UserDeleteResult as UserDeleteResult, type user_UserExistsParams as UserExistsParams, type user_UserExistsResult as UserExistsResult, type user_UserHomeDirParams as UserHomeDirParams, type user_UserHomeDirResult as UserHomeDirResult, _default$1O as addGroups, _default$1N as create, _default$1E as delete, _default$1M as exists, _default$1L as getGid, _default$1K as getGroups, _default$1J as getUid, _default$1I as getUsername, _default$1H as homeDir, _default$1D as modify, _default$1G as setGroups, _default$1F as setShell };
1758
3299
  }
1759
3300
 
1760
- declare const _default: {
1761
- echo: TaskFn<EchoParams, EchoResult>;
1762
- whoami: TaskFn<WhoamiParams, WhoamiResult>;
1763
- dir: typeof dir;
1764
- file: typeof file;
1765
- git: typeof git;
1766
- group: typeof group;
1767
- host: typeof host;
1768
- pkg: typeof pkg;
1769
- k3s: typeof k3s;
1770
- ssh: typeof ssh;
1771
- sudoers: typeof sudoers;
1772
- system: typeof system;
1773
- systemd: typeof systemd;
1774
- template: typeof template;
1775
- ufw: typeof ufw;
1776
- user: typeof user;
3301
+ interface XcpngListAttachedDisksParams {
3302
+ vm_uuid: string;
3303
+ include_readonly?: boolean;
3304
+ }
3305
+ interface XcpngAttachedDisk {
3306
+ vbdUuid: string;
3307
+ device?: string;
3308
+ mode?: string;
3309
+ type?: string;
3310
+ currentlyAttached?: boolean;
3311
+ vdiUuid?: string;
3312
+ vdiNameLabel?: string;
3313
+ vdiType?: string;
3314
+ srUuid?: string;
3315
+ }
3316
+ interface XcpngListAttachedDisksResult {
3317
+ success: boolean;
3318
+ vmUuid?: string;
3319
+ disks?: XcpngAttachedDisk[];
3320
+ error?: string;
3321
+ }
3322
+ declare const _default$1C: TaskFn<XcpngListAttachedDisksParams, XcpngListAttachedDisksResult>;
3323
+
3324
+ /**
3325
+ * Supported input for filter-style arguments. Allows callers to pass:
3326
+ * - an object map (`{ uuid: '...', name: 'foo' }`)
3327
+ * - a single string (`"uuid=..."`)
3328
+ * - an array of strings (`["uuid=...", "name=foo"]`)
3329
+ */
3330
+ type XeFilterInput = Record<string, string | number | boolean | undefined | null> | string | string[] | undefined | null;
3331
+
3332
+ interface XcpngListVbdsParams {
3333
+ filters?: XeFilterInput;
3334
+ }
3335
+ type XcpngVbdRecord = Record<string, string> & {
3336
+ params: Record<string, string>;
3337
+ };
3338
+ interface XcpngListVbdsResult {
3339
+ success: boolean;
3340
+ items?: XcpngVbdRecord[];
3341
+ error?: string;
3342
+ }
3343
+ declare const _default$1B: TaskFn<XcpngListVbdsParams, XcpngListVbdsResult>;
3344
+
3345
+ interface XcpngListVifsParams {
3346
+ filters?: XeFilterInput;
3347
+ }
3348
+ type XcpngVifRecord = Record<string, string> & {
3349
+ params: Record<string, string>;
3350
+ };
3351
+ interface XcpngListVifsResult {
3352
+ success: boolean;
3353
+ items?: XcpngVifRecord[];
3354
+ error?: string;
3355
+ }
3356
+ declare const _default$1A: TaskFn<XcpngListVifsParams, XcpngListVifsResult>;
3357
+
3358
+ interface XcpngGetVmInfoParams {
3359
+ vm_uuid?: string;
3360
+ vm_name_label?: string;
3361
+ allow_missing?: boolean;
3362
+ include_vbds?: boolean;
3363
+ include_vifs?: boolean;
3364
+ }
3365
+ interface XcpngVmInfo {
3366
+ uuid: string;
3367
+ nameLabel?: string;
3368
+ powerState?: string;
3369
+ params?: Record<string, string>;
3370
+ memory?: {
3371
+ staticMax?: number;
3372
+ staticMin?: number;
3373
+ dynamicMax?: number;
3374
+ dynamicMin?: number;
3375
+ };
3376
+ vcpus?: {
3377
+ max?: number;
3378
+ atStartup?: number;
3379
+ };
3380
+ hvmBootPolicy?: string;
3381
+ hvmBootParams?: {
3382
+ raw: string | undefined;
3383
+ values: Record<string, string>;
3384
+ };
3385
+ platform?: {
3386
+ raw: string | undefined;
3387
+ values: Record<string, string>;
3388
+ };
3389
+ otherConfig?: string;
3390
+ residentOn?: string;
3391
+ }
3392
+ interface XcpngGetVmInfoResult {
3393
+ success: boolean;
3394
+ vmUuid?: string;
3395
+ vm?: XcpngVmInfo;
3396
+ vbds?: XcpngVbdRecord[];
3397
+ vifs?: XcpngVifRecord[];
3398
+ error?: string;
3399
+ skipped?: boolean;
3400
+ }
3401
+ declare const _default$1z: TaskFn<XcpngGetVmInfoParams, XcpngGetVmInfoResult>;
3402
+
3403
+ /**
3404
+ * Parameters for powering off an XCP-ng VM.
3405
+ * - `vm_uuid`: Target VM identifier.
3406
+ * - `force`: When `true`, invokes `xe vm-shutdown --force` (immediate power-off). Defaults to graceful shutdown.
3407
+ * - `timeout_seconds`: Optional grace period for `vm-shutdown`. When set, `xe` receives `--timeout=<seconds>`.
3408
+ */
3409
+ interface XcpngStopVmParams {
3410
+ vm_uuid: string;
3411
+ force?: boolean;
3412
+ timeout_seconds?: number;
3413
+ }
3414
+ /**
3415
+ * Result containing the executed command details.
3416
+ * - `command`: Final CLI invocation executed through `xe`.
3417
+ * - `error`: Raw stderr output when the stop workflow fails.
3418
+ */
3419
+ interface XcpngStopVmResult {
3420
+ success: boolean;
3421
+ command?: string;
3422
+ error?: string;
3423
+ alreadyHalted?: boolean;
3424
+ initialPowerState?: string;
3425
+ finalPowerState?: string;
3426
+ waitAttempts?: number;
3427
+ }
3428
+ declare const _default$1y: TaskFn<XcpngStopVmParams, XcpngStopVmResult>;
3429
+
3430
+ /**
3431
+ * Parameters for powering on an XCP-ng VM.
3432
+ * - `vm_uuid`: Target VM identifier.
3433
+ * - `start_paused`: When `true`, boots the VM in a paused state (`xe vm-start --paused`).
3434
+ * - `force`: When `true`, skips safety checks (maps to `xe vm-start --force`).
3435
+ */
3436
+ interface XcpngStartVmParams {
3437
+ vm_uuid: string;
3438
+ start_paused?: boolean;
3439
+ force?: boolean;
3440
+ }
3441
+ /**
3442
+ * Result containing the executed command details.
3443
+ * - `command`: Final CLI invocation executed through `xe`.
3444
+ * - `error`: Raw stderr output when the start workflow fails.
3445
+ */
3446
+ interface XcpngStartVmResult {
3447
+ success: boolean;
3448
+ command?: string;
3449
+ error?: string;
3450
+ alreadyRunning?: boolean;
3451
+ initialPowerState?: string;
3452
+ finalPowerState?: string;
3453
+ waitAttempts?: number;
3454
+ }
3455
+ declare const _default$1x: TaskFn<XcpngStartVmParams, XcpngStartVmResult>;
3456
+
3457
+ interface XcpngSnapshotVmParams {
3458
+ vm_uuid?: string;
3459
+ vm_name_label?: string;
3460
+ snapshot_name_label: string;
3461
+ description?: string;
3462
+ quiesce?: boolean;
3463
+ }
3464
+ interface XcpngSnapshotVmResult {
3465
+ success: boolean;
3466
+ vmUuid?: string;
3467
+ snapshotUuid?: string;
3468
+ command?: string;
3469
+ error?: string;
3470
+ }
3471
+ declare const _default$1w: TaskFn<XcpngSnapshotVmParams, XcpngSnapshotVmResult>;
3472
+
3473
+ interface XcpngUnplugVbdParams {
3474
+ vbd_uuid: string;
3475
+ allow_missing?: boolean;
3476
+ }
3477
+ interface XcpngUnplugVbdResult {
3478
+ success: boolean;
3479
+ command?: string;
3480
+ alreadyDetached?: boolean;
3481
+ error?: string;
3482
+ }
3483
+ declare const _default$1v: TaskFn<XcpngUnplugVbdParams, XcpngUnplugVbdResult>;
3484
+
3485
+ interface XcpngResumeVmParams {
3486
+ vm_uuid: string;
3487
+ start_paused?: boolean;
3488
+ host_uuid?: string;
3489
+ }
3490
+ interface XcpngResumeVmResult {
3491
+ success: boolean;
3492
+ command?: string;
3493
+ alreadyRunning?: boolean;
3494
+ initialPowerState?: string;
3495
+ finalPowerState?: string;
3496
+ waitAttempts?: number;
3497
+ error?: string;
3498
+ }
3499
+ declare const _default$1u: TaskFn<XcpngResumeVmParams, XcpngResumeVmResult>;
3500
+
3501
+ interface XcpngSuspendVmParams {
3502
+ vm_uuid: string;
3503
+ allow_running?: boolean;
3504
+ }
3505
+ interface XcpngSuspendVmResult {
3506
+ success: boolean;
3507
+ command?: string;
3508
+ alreadySuspended?: boolean;
3509
+ initialPowerState?: string;
3510
+ finalPowerState?: string;
3511
+ waitAttempts?: number;
3512
+ error?: string;
3513
+ }
3514
+ declare const _default$1t: TaskFn<XcpngSuspendVmParams, XcpngSuspendVmResult>;
3515
+
3516
+ interface XcpngSetVmResourcesParams {
3517
+ vm_uuid?: string;
3518
+ vm_name_label?: string;
3519
+ memory_mib?: number;
3520
+ memory_static_min_mib?: number;
3521
+ memory_static_max_mib?: number;
3522
+ memory_dynamic_min_mib?: number;
3523
+ memory_dynamic_max_mib?: number;
3524
+ vcpus?: number;
3525
+ vcpus_max?: number;
3526
+ vcpus_at_startup?: number;
3527
+ }
3528
+ interface XcpngSetVmResourcesResult {
3529
+ success: boolean;
3530
+ vmUuid?: string;
3531
+ appliedCommands: string[];
3532
+ updatedMemoryBytes?: number;
3533
+ updatedMemoryFields?: Record<string, number>;
3534
+ updatedVcpus?: number;
3535
+ updatedVcpusMax?: number;
3536
+ updatedVcpusAtStartup?: number;
3537
+ error?: string;
3538
+ powerState?: string;
3539
+ waitAttempts?: number;
3540
+ }
3541
+ declare const _default$1s: TaskFn<XcpngSetVmResourcesParams, XcpngSetVmResourcesResult>;
3542
+
3543
+ /**
3544
+ * Parameters for configuring VM boot behaviour.
3545
+ * - `vm_uuid`: Target VM identifier.
3546
+ * - `boot_order`: Boot sequence string recognised by XCP-ng (e.g., `cd`, `n`, `cdn`).
3547
+ * - `firmware`: Optional firmware mode (`bios`, `uefi`). When set, updates `HVM-boot-params`.
3548
+ */
3549
+ interface XcpngSetBootOrderParams {
3550
+ vm_uuid: string;
3551
+ boot_order: string;
3552
+ firmware?: 'bios' | 'uefi';
3553
+ }
3554
+ /**
3555
+ * Result describing the parameter updates issued for the VM.
3556
+ * - `appliedCommands`: Ordered list of CLI commands executed.
3557
+ * - `error`: Raw stderr output when a step fails.
3558
+ */
3559
+ interface XcpngSetBootOrderResult {
3560
+ success: boolean;
3561
+ appliedCommands: string[];
3562
+ error?: string;
3563
+ }
3564
+ declare const _default$1r: TaskFn<XcpngSetBootOrderParams, XcpngSetBootOrderResult>;
3565
+
3566
+ interface XcpngSetSnapshotParamParams {
3567
+ snapshot_uuid: string;
3568
+ key: string;
3569
+ value: string;
3570
+ }
3571
+ interface XcpngSetSnapshotParamResult {
3572
+ success: boolean;
3573
+ snapshotUuid?: string;
3574
+ command?: string;
3575
+ error?: string;
3576
+ }
3577
+ declare const _default$1q: TaskFn<XcpngSetSnapshotParamParams, XcpngSetSnapshotParamResult>;
3578
+
3579
+ interface XcpngRevertSnapshotParams {
3580
+ snapshot_uuid: string;
3581
+ }
3582
+ interface XcpngRevertSnapshotResult {
3583
+ success: boolean;
3584
+ snapshotUuid?: string;
3585
+ vmUuid?: string;
3586
+ command?: string;
3587
+ error?: string;
3588
+ powerState?: string;
3589
+ waitAttempts?: number;
3590
+ }
3591
+ declare const _default$1p: TaskFn<XcpngRevertSnapshotParams, XcpngRevertSnapshotResult>;
3592
+
3593
+ interface XcpngRemoveDiskParams {
3594
+ vbd_uuid?: string;
3595
+ vdi_uuid?: string;
3596
+ vm_uuid?: string;
3597
+ device?: string;
3598
+ allow_missing?: boolean;
3599
+ unplug?: boolean;
3600
+ destroy_vbd?: boolean;
3601
+ destroy_vdi?: boolean;
3602
+ }
3603
+ interface XcpngRemoveDiskResult {
3604
+ success: boolean;
3605
+ vbdUuid?: string;
3606
+ vdiUuid?: string;
3607
+ unplugged?: boolean;
3608
+ destroyedVbd?: boolean;
3609
+ destroyedVdi?: boolean;
3610
+ appliedCommands: string[];
3611
+ error?: string;
3612
+ }
3613
+ declare const _default$1o: TaskFn<XcpngRemoveDiskParams, XcpngRemoveDiskResult>;
3614
+
3615
+ interface XcpngResizeVmMemoryParams {
3616
+ vm_uuid?: string;
3617
+ vm_name_label?: string;
3618
+ memory_mib: number;
3619
+ }
3620
+ interface XcpngResizeVmMemoryResult {
3621
+ success: boolean;
3622
+ vmUuid?: string;
3623
+ appliedCommands: string[];
3624
+ memoryBytes?: number;
3625
+ error?: string;
3626
+ powerState?: string;
3627
+ waitAttempts?: number;
3628
+ }
3629
+ declare const _default$1n: TaskFn<XcpngResizeVmMemoryParams, XcpngResizeVmMemoryResult>;
3630
+
3631
+ interface XcpngResizeVmCpusParams {
3632
+ vm_uuid?: string;
3633
+ vm_name_label?: string;
3634
+ vcpus?: number;
3635
+ vcpus_max?: number;
3636
+ vcpus_at_startup?: number;
3637
+ }
3638
+ interface XcpngResizeVmCpusResult {
3639
+ success: boolean;
3640
+ vmUuid?: string;
3641
+ appliedCommands: string[];
3642
+ vcpus?: number;
3643
+ vcpusMax?: number;
3644
+ vcpusAtStartup?: number;
3645
+ error?: string;
3646
+ powerState?: string;
3647
+ waitAttempts?: number;
3648
+ }
3649
+ declare const _default$1m: TaskFn<XcpngResizeVmCpusParams, XcpngResizeVmCpusResult>;
3650
+
3651
+ interface XcpngResizeVdiParams {
3652
+ vdi_uuid?: string;
3653
+ vdi_name_label?: string;
3654
+ sr_uuid?: string;
3655
+ new_size_bytes?: number;
3656
+ new_size_mb?: number;
3657
+ new_size_gb?: number;
3658
+ new_size_mib?: number;
3659
+ online?: boolean;
3660
+ }
3661
+ interface XcpngResizeVdiResult {
3662
+ success: boolean;
3663
+ vdiUuid?: string;
3664
+ command?: string;
3665
+ newSizeBytes?: number;
3666
+ error?: string;
3667
+ }
3668
+ declare const _default$1l: TaskFn<XcpngResizeVdiParams, XcpngResizeVdiResult>;
3669
+
3670
+ /**
3671
+ * Parameters when querying VMs from an XCP-ng host.
3672
+ * - `filters`: Key/value pairs passed directly to `xe vm-list` for server-side filtering.
3673
+ * Examples include `{ uuid: '...', 'resident-on': 'host-uuid' }`.
3674
+ */
3675
+ interface XcpngListVmsParams {
3676
+ filters?: XeFilterInput;
3677
+ params?: 'all' | string | string[];
3678
+ }
3679
+ /**
3680
+ * Result payload containing VM records.
3681
+ * - `items`: Array of parsed metadata produced by `xe vm-list`.
3682
+ * - `raw`: Original stdout for debugging or custom parsing.
3683
+ * - `error`: Raw stderr output when the list operation fails.
3684
+ */
3685
+ interface XcpngListVmsResult {
3686
+ success: boolean;
3687
+ items?: XcpngVmRecord[];
3688
+ error?: string;
3689
+ }
3690
+ type XcpngVmRecord = Record<string, string> & {
3691
+ params: Record<string, string>;
3692
+ };
3693
+ declare const _default$1k: TaskFn<XcpngListVmsParams, XcpngListVmsResult>;
3694
+
3695
+ interface XcpngImportVdiParams {
3696
+ sr_uuid?: string;
3697
+ sr_name_label?: string;
3698
+ filename: string;
3699
+ vdi_name_label?: string;
3700
+ description?: string;
3701
+ type?: string;
3702
+ virtual_size?: number;
3703
+ force?: boolean;
3704
+ uuid?: string;
3705
+ format?: string;
3706
+ }
3707
+ interface XcpngImportVdiResult {
3708
+ success: boolean;
3709
+ srUuid?: string;
3710
+ vdiUuid?: string;
3711
+ appliedCommands: string[];
3712
+ error?: string;
3713
+ }
3714
+ declare const _default$1j: TaskFn<XcpngImportVdiParams, XcpngImportVdiResult>;
3715
+
3716
+ /**
3717
+ * Parameters for querying VDIs.
3718
+ * - `filters`: Filters passed to `xe vdi-list` (e.g., `{ 'sr-uuid': '...', type: 'user' }`).
3719
+ */
3720
+ interface XcpngListVdisParams {
3721
+ filters?: XeFilterInput;
3722
+ }
3723
+ /**
3724
+ * Result payload for VDI listings.
3725
+ * - `items`: Parsed records for each VDI returned by the host.
3726
+ * - `raw`: Full stdout output for troubleshooting.
3727
+ * - `error`: Raw stderr output when listing fails.
3728
+ */
3729
+ type XcpngVdiRecord = Record<string, string> & {
3730
+ params: Record<string, string>;
3731
+ };
3732
+ interface XcpngListVdisResult {
3733
+ success: boolean;
3734
+ items?: XcpngVdiRecord[];
3735
+ error?: string;
3736
+ }
3737
+ declare const _default$1i: TaskFn<XcpngListVdisParams, XcpngListVdisResult>;
3738
+
3739
+ interface XcpngListPifsParams {
3740
+ filters?: XeFilterInput;
3741
+ }
3742
+ type XcpngPifRecord = Record<string, string> & {
3743
+ params: Record<string, string>;
3744
+ };
3745
+ interface XcpngListPifsResult {
3746
+ success: boolean;
3747
+ items?: XcpngPifRecord[];
3748
+ error?: string;
3749
+ }
3750
+ declare const _default$1h: TaskFn<XcpngListPifsParams, XcpngListPifsResult>;
3751
+
3752
+ interface XcpngListTemplatesParams {
3753
+ filters?: XeFilterInput;
3754
+ }
3755
+ type XcpngTemplateRecord = Record<string, string> & {
3756
+ params: Record<string, string>;
3757
+ };
3758
+ interface XcpngListTemplatesResult {
3759
+ success: boolean;
3760
+ items?: XcpngTemplateRecord[];
3761
+ error?: string;
3762
+ }
3763
+ declare const _default$1g: TaskFn<XcpngListTemplatesParams, XcpngListTemplatesResult>;
3764
+
3765
+ interface XcpngListNetworksParams {
3766
+ filters?: XeFilterInput;
3767
+ }
3768
+ type XcpngNetworkRecord = Record<string, string> & {
3769
+ params: Record<string, string>;
3770
+ };
3771
+ interface XcpngListNetworksResult {
3772
+ success: boolean;
3773
+ items?: XcpngNetworkRecord[];
3774
+ error?: string;
3775
+ }
3776
+ declare const _default$1f: TaskFn<XcpngListNetworksParams, XcpngListNetworksResult>;
3777
+
3778
+ /**
3779
+ * Parameters for querying storage repositories.
3780
+ * - `filters`: Filters passed to `xe sr-list` (e.g., `{ 'name-label': 'Local storage' }`).
3781
+ */
3782
+ interface XcpngListStorageRepositoriesParams {
3783
+ filters?: XeFilterInput;
3784
+ }
3785
+ /**
3786
+ * Result payload for storage repository listings.
3787
+ * - `items`: Parsed SR metadata records.
3788
+ * - `raw`: Full stdout output captured from the host.
3789
+ * - `error`: Raw stderr when the list operation fails.
3790
+ */
3791
+ type XcpngStorageRepositoryRecord = Record<string, string> & {
3792
+ params: Record<string, string>;
1777
3793
  };
3794
+ interface XcpngListStorageRepositoriesResult {
3795
+ success: boolean;
3796
+ items?: XcpngStorageRepositoryRecord[];
3797
+ error?: string;
3798
+ }
3799
+ declare const _default$1e: TaskFn<XcpngListStorageRepositoriesParams, XcpngListStorageRepositoriesResult>;
3800
+
3801
+ interface XcpngUploadIsoParams {
3802
+ /** Path to the ISO on the local machine running hostctl. */
3803
+ source_path: string;
3804
+ /** Name-label of the ISO SR to ensure exists before uploading. */
3805
+ iso_sr_name: string;
3806
+ /**
3807
+ * Directory on the hypervisor where ISOs should reside. Defaults to `/var/opt/xen/iso-sr`.
3808
+ * Must align with the location configured on the SR.
3809
+ */
3810
+ location?: string;
3811
+ /**
3812
+ * Override the destination file name (defaults to the basename of `source_path`).
3813
+ */
3814
+ filename?: string;
3815
+ /**
3816
+ * When false (default), the upload is skipped if a file already exists at the destination.
3817
+ */
3818
+ overwrite?: boolean;
3819
+ /** Plumbed through to `find-or-create-iso-sr` for directory ownership. */
3820
+ location_owner?: string;
3821
+ /** Plumbed through to `find-or-create-iso-sr` for directory permissions. */
3822
+ location_mode?: string;
3823
+ /** Optional chunk size (in MiB) used when streaming the ISO to the hypervisor. Defaults to 128MiB. */
3824
+ chunk_size_mb?: number;
3825
+ }
3826
+ interface XcpngUploadIsoHostResult {
3827
+ success: boolean;
3828
+ uploaded: boolean;
3829
+ skipped?: boolean;
3830
+ srUuid?: string;
3831
+ createdSr?: boolean;
3832
+ remotePath?: string;
3833
+ error?: string;
3834
+ }
3835
+ interface XcpngUploadIsoResult {
3836
+ success: boolean;
3837
+ uploads: Record<string, XcpngUploadIsoHostResult | Error>;
3838
+ error?: string;
3839
+ }
3840
+ declare const _default$1d: TaskFn<XcpngUploadIsoParams, XcpngUploadIsoResult>;
3841
+
3842
+ interface XcpngProvisionVmParams {
3843
+ vm_name_label: string;
3844
+ vm_description?: string;
3845
+ template_uuid?: string;
3846
+ template_name_label?: string;
3847
+ destination_sr_uuid?: string;
3848
+ destination_sr_name_label?: string;
3849
+ disk_name_label?: string;
3850
+ disk_description?: string;
3851
+ disk_device?: string;
3852
+ disk_size_bytes?: number;
3853
+ disk_size_mb?: number;
3854
+ disk_size_mib?: number;
3855
+ disk_size_gb?: number;
3856
+ disk_size_gib?: number;
3857
+ vcpus?: number;
3858
+ memory_mib?: number;
3859
+ memory_mb?: number;
3860
+ memory_gb?: number;
3861
+ memory_gib?: number;
3862
+ virtualization_mode?: 'pv' | 'pvhvm';
3863
+ device_model?: 'qemu_traditional' | 'qemu-upstream-compat';
3864
+ boot_order?: string;
3865
+ boot_firmware?: 'bios' | 'uefi';
3866
+ boot_efi_file?: string;
3867
+ network_uuid?: string;
3868
+ network_name_label?: string;
3869
+ network_device?: string;
3870
+ network_mac_address?: string;
3871
+ network_mtu?: number;
3872
+ start_vm?: boolean;
3873
+ start_paused?: boolean;
3874
+ start_force?: boolean;
3875
+ cloud_init_user_data?: string;
3876
+ cloud_init_user_data_b64?: string;
3877
+ cloud_init_user_data_path?: string;
3878
+ cloud_init_network_config?: string;
3879
+ cloud_init_network_config_b64?: string;
3880
+ cloud_init_network_config_path?: string;
3881
+ cloud_init_hostname?: string;
3882
+ cloud_init_instance_id?: string;
3883
+ config_drive_enabled?: boolean;
3884
+ config_drive_force?: boolean;
3885
+ config_drive_sr_uuid?: string;
3886
+ config_drive_sr_name_label?: string;
3887
+ config_drive_sr_location?: string;
3888
+ config_drive_sr_location_owner?: string;
3889
+ config_drive_sr_location_mode?: string;
3890
+ config_drive_iso_filename?: string;
3891
+ config_drive_overwrite?: boolean;
3892
+ config_drive_volume_id?: string;
3893
+ config_drive_detach_after_start?: boolean;
3894
+ config_drive_detach_delay_seconds?: number;
3895
+ config_drive_keep_vdi?: boolean;
3896
+ }
3897
+ interface XcpngProvisionVmStep {
3898
+ name: string;
3899
+ success: boolean;
3900
+ details?: Record<string, unknown>;
3901
+ error?: string;
3902
+ }
3903
+ interface XcpngProvisionVmResult {
3904
+ success: boolean;
3905
+ vmUuid?: string;
3906
+ templateUuid?: string;
3907
+ sourceVdiUuid?: string;
3908
+ clonedVdiUuid?: string;
3909
+ destinationSrUuid?: string;
3910
+ rootVbdUuid?: string;
3911
+ vifUuid?: string;
3912
+ configDriveVdiUuid?: string;
3913
+ configDriveIsoPath?: string;
3914
+ configDriveSrUuid?: string;
3915
+ configDriveReused?: boolean;
3916
+ commands: string[];
3917
+ steps: XcpngProvisionVmStep[];
3918
+ error?: string;
3919
+ skipped?: boolean;
3920
+ }
3921
+ declare const _default$1c: TaskFn<XcpngProvisionVmParams, XcpngProvisionVmResult>;
3922
+
3923
+ interface XcpngProvisionVmFromIsoParams {
3924
+ /** Human readable VM name. */
3925
+ vm_name_label: string;
3926
+ /** Optional VM description. */
3927
+ vm_description?: string;
3928
+ /** Template UUID to clone. Takes precedence over `template_name_label`. */
3929
+ template_uuid?: string;
3930
+ /** Template name to resolve when UUID is not provided. */
3931
+ template_name_label?: string;
3932
+ /** Memory allocation in MiB (applied to static/dynamic bounds). */
3933
+ memory_mib?: number;
3934
+ /** Memory allocation in MB (converted to MiB when applied). */
3935
+ memory_mb?: number;
3936
+ /** Number of vCPUs to configure. */
3937
+ vcpus?: number;
3938
+ /** Virtualization mode to apply to the VM (defaults to PVHVM). */
3939
+ virtualization_mode?: 'pv' | 'pvhvm';
3940
+ /** Device model applied after cloning (defaults to qemu-upstream-compat). */
3941
+ device_model?: 'qemu_traditional' | 'qemu-upstream-compat';
3942
+ /** Root disk name. Defaults to `<vm_name_label>-root`. */
3943
+ root_disk_name_label?: string;
3944
+ /** Storage repository UUID to host the root disk. */
3945
+ root_disk_sr_uuid?: string;
3946
+ /** Storage repository name-label used when the UUID is not provided. */
3947
+ root_disk_sr_name_label?: string;
3948
+ /** Size of the root disk (provide exactly one of bytes/MB/GB). */
3949
+ root_disk_size_bytes?: number;
3950
+ root_disk_size_mb?: number;
3951
+ root_disk_size_gb?: number;
3952
+ /** Optional description for the root disk. */
3953
+ root_disk_description?: string;
3954
+ /** Device slot for the root disk (defaults to `0`). */
3955
+ root_disk_device?: string;
3956
+ /** Network UUID to attach. */
3957
+ network_uuid?: string;
3958
+ /** Network name-label used when UUID is not provided. */
3959
+ network_name_label?: string;
3960
+ /** Optional VIF slot (defaults to `0`). */
3961
+ network_device?: string;
3962
+ /** Optional static MAC address. */
3963
+ network_mac_address?: string;
3964
+ /** Optional MTU for the VIF. */
3965
+ network_mtu?: number;
3966
+ /** ISO VDI UUID if already known. */
3967
+ iso_vdi_uuid?: string;
3968
+ /** ISO VDI name-label used for lookup when UUID is not provided. */
3969
+ iso_name_label?: string;
3970
+ /** Storage repository UUID that houses the ISO when resolving by name. */
3971
+ iso_sr_uuid?: string;
3972
+ /** Device slot for the virtual CD drive (defaults to hypervisor selection). */
3973
+ iso_device?: string;
3974
+ /** Whether to eject existing media before inserting the ISO (default true). */
3975
+ iso_eject_before_insert?: boolean;
3976
+ /** Explicit boot order string (defaults to `cd` so the ISO is attempted first). */
3977
+ boot_order?: string;
3978
+ /** Optional firmware mode applied alongside boot order. */
3979
+ boot_firmware?: 'bios' | 'uefi';
3980
+ /** When true, powers on the VM after configuration. */
3981
+ start_vm?: boolean;
3982
+ /** Maps to `xe vm-start --paused`. */
3983
+ start_paused?: boolean;
3984
+ /** Maps to `xe vm-start --force`. */
3985
+ start_force?: boolean;
3986
+ }
3987
+ interface XcpngProvisionVmFromIsoStep {
3988
+ name: string;
3989
+ success: boolean;
3990
+ details?: Record<string, unknown>;
3991
+ error?: string;
3992
+ }
3993
+ interface XcpngProvisionVmFromIsoResult {
3994
+ success: boolean;
3995
+ vmUuid?: string;
3996
+ templateUuid?: string;
3997
+ rootDiskUuid?: string;
3998
+ rootVbdUuid?: string;
3999
+ rootDiskSrUuid?: string;
4000
+ networkVifUuid?: string;
4001
+ isoVdiUuid?: string;
4002
+ commands: string[];
4003
+ steps: XcpngProvisionVmFromIsoStep[];
4004
+ error?: string;
4005
+ }
4006
+ declare const _default$1b: TaskFn<XcpngProvisionVmFromIsoParams, XcpngProvisionVmFromIsoResult>;
4007
+
4008
+ interface XcpngImportIsoParams {
4009
+ /** ISO SR name-label that should surface the ISO. */
4010
+ iso_sr_name: string;
4011
+ /**
4012
+ * ISO file name (or full path) within the SR location. When a path is supplied, the directory
4013
+ * portion is treated as the SR location unless `location` is explicitly provided.
4014
+ */
4015
+ iso_filename: string;
4016
+ /**
4017
+ * Filesystem location on the hypervisor where ISO files live. Defaults to `/var/opt/xen/iso-sr`
4018
+ * or the directory component of `iso_filename` when provided.
4019
+ */
4020
+ location?: string;
4021
+ /** Owner passed to `core.dir.create` when ensuring the location exists. */
4022
+ location_owner?: string;
4023
+ /** Mode passed to `core.dir.create` when ensuring the location exists. */
4024
+ location_mode?: string;
4025
+ /**
4026
+ * When true (default), runs `xe sr-scan` before attempting an import so the SR indexes new files.
4027
+ */
4028
+ rescan?: boolean;
4029
+ /**
4030
+ * When true (default), calls `xe vdi-import` if the VDI is still missing after a rescan. Set to
4031
+ * false to only rescan and report absence.
4032
+ */
4033
+ import_when_missing?: boolean;
4034
+ }
4035
+ interface XcpngImportIsoResult {
4036
+ success: boolean;
4037
+ srUuid?: string;
4038
+ createdSr?: boolean;
4039
+ vdiUuid?: string;
4040
+ vdi?: Record<string, string>;
4041
+ wasImported?: boolean;
4042
+ rescanned?: boolean;
4043
+ commands: string[];
4044
+ error?: string;
4045
+ }
4046
+ declare const _default$1a: TaskFn<XcpngImportIsoParams, XcpngImportIsoResult>;
4047
+
4048
+ interface XcpngFindNetworkParams {
4049
+ name_label?: string;
4050
+ uuid?: string;
4051
+ filters?: XeFilterInput;
4052
+ allow_multiple?: boolean;
4053
+ fail_when_missing?: boolean;
4054
+ }
4055
+ interface XcpngFindNetworkResult {
4056
+ success: boolean;
4057
+ network?: XcpngNetworkRecord;
4058
+ matches?: XcpngNetworkRecord[];
4059
+ multiple?: boolean;
4060
+ error?: string;
4061
+ }
4062
+ declare const _default$19: TaskFn<XcpngFindNetworkParams, XcpngFindNetworkResult>;
4063
+
4064
+ interface XcpngFindStorageRepositoryParams {
4065
+ name_label?: string;
4066
+ uuid?: string;
4067
+ type?: string;
4068
+ content_type?: string;
4069
+ filters?: XcpngListStorageRepositoriesParams['filters'];
4070
+ allow_multiple?: boolean;
4071
+ fail_when_missing?: boolean;
4072
+ }
4073
+ interface XcpngFindStorageRepositoryResult {
4074
+ success: boolean;
4075
+ storageRepository?: XcpngStorageRepositoryRecord;
4076
+ matches?: XcpngStorageRepositoryRecord[];
4077
+ multiple?: boolean;
4078
+ error?: string;
4079
+ }
4080
+ declare const _default$18: TaskFn<XcpngFindStorageRepositoryParams, XcpngFindStorageRepositoryResult>;
4081
+
4082
+ interface XcpngFindOrCreateIsoSrParams {
4083
+ /** Desired `name-label` for the ISO SR. */
4084
+ name_label: string;
4085
+ /** Optional `name-description` to apply when the SR is created. */
4086
+ description?: string;
4087
+ /**
4088
+ * Filesystem path on the hypervisor that contains ISO images.
4089
+ * Defaults to `/var/opt/xen/iso-sr` when not provided.
4090
+ */
4091
+ location?: string;
4092
+ /**
4093
+ * Owner passed to `core.dir.create` when ensuring the location exists.
4094
+ * Defaults to `root` because ISO SR paths typically live under `/var`.
4095
+ */
4096
+ location_owner?: string;
4097
+ /**
4098
+ * Mode passed to `core.dir.create` when ensuring the location exists.
4099
+ */
4100
+ location_mode?: string;
4101
+ /** Optional host UUID to scope SR creation. Rarely required for ISO SRs. */
4102
+ host_uuid?: string;
4103
+ /**
4104
+ * Explicitly control the legacy mode flag on the SR (defaults to true, matching XCP-ng tooling).
4105
+ * Set to false to omit the legacy mode flag.
4106
+ */
4107
+ legacy_mode?: boolean;
4108
+ /**
4109
+ * Additional device-config entries to include when creating the SR.
4110
+ * Keys map to the suffix after `device-config:` (e.g., `{ legacy_mode: 'true' }`).
4111
+ */
4112
+ device_config?: Record<string, string | number | boolean | undefined | null>;
4113
+ /**
4114
+ * Additional other-config entries to include when creating the SR.
4115
+ * Keys map to the suffix after `other-config:` (e.g., `{ auto-scan: 'true' }`).
4116
+ */
4117
+ other_config?: Record<string, string | number | boolean | undefined | null>;
4118
+ }
4119
+ interface XcpngFindOrCreateIsoSrResult {
4120
+ success: boolean;
4121
+ created: boolean;
4122
+ /** UUID for the located or newly created SR. */
4123
+ srUuid?: string;
4124
+ /** Parsed SR metadata returned from `xe sr-list`. */
4125
+ sr?: Record<string, string>;
4126
+ /** Commands executed during creation (empty when SR already exists). */
4127
+ commands: string[];
4128
+ error?: string;
4129
+ }
4130
+ declare const _default$17: TaskFn<XcpngFindOrCreateIsoSrParams, XcpngFindOrCreateIsoSrResult>;
4131
+
4132
+ interface XcpngFindVmParams {
4133
+ name_label?: string;
4134
+ uuid?: string;
4135
+ filters?: XcpngListVmsParams['filters'];
4136
+ allow_multiple?: boolean;
4137
+ fail_when_missing?: boolean;
4138
+ params?: XcpngListVmsParams['params'];
4139
+ }
4140
+ interface XcpngFindVmResult {
4141
+ success: boolean;
4142
+ vm?: XcpngVmRecord;
4143
+ matches?: XcpngVmRecord[];
4144
+ multiple?: boolean;
4145
+ error?: string;
4146
+ }
4147
+ declare const _default$16: TaskFn<XcpngFindVmParams, XcpngFindVmResult>;
4148
+
4149
+ interface XcpngFindVdiParams {
4150
+ name_label?: string;
4151
+ uuid?: string;
4152
+ sr_uuid?: string;
4153
+ filters?: XcpngListVdisParams['filters'];
4154
+ allow_multiple?: boolean;
4155
+ fail_when_missing?: boolean;
4156
+ }
4157
+ interface XcpngFindVdiResult {
4158
+ success: boolean;
4159
+ vdi?: Record<string, string>;
4160
+ matches?: Array<Record<string, string>>;
4161
+ multiple?: boolean;
4162
+ error?: string;
4163
+ }
4164
+ declare const _default$15: TaskFn<XcpngFindVdiParams, XcpngFindVdiResult>;
4165
+
4166
+ interface XcpngFindTemplateParams {
4167
+ name_label?: string;
4168
+ uuid?: string;
4169
+ filters?: XcpngListTemplatesParams['filters'];
4170
+ allow_multiple?: boolean;
4171
+ fail_when_missing?: boolean;
4172
+ }
4173
+ interface XcpngFindTemplateResult {
4174
+ success: boolean;
4175
+ template?: Record<string, string>;
4176
+ matches?: Array<Record<string, string>>;
4177
+ multiple?: boolean;
4178
+ error?: string;
4179
+ }
4180
+ declare const _default$14: TaskFn<XcpngFindTemplateParams, XcpngFindTemplateResult>;
4181
+
4182
+ interface XcpngRebootVmParams {
4183
+ vm_uuid?: string;
4184
+ vm_name_label?: string;
4185
+ force?: boolean;
4186
+ }
4187
+ interface XcpngRebootVmResult {
4188
+ success: boolean;
4189
+ vmUuid?: string;
4190
+ command?: string;
4191
+ error?: string;
4192
+ powerState?: string;
4193
+ waitAttempts?: number;
4194
+ }
4195
+ declare const _default$13: TaskFn<XcpngRebootVmParams, XcpngRebootVmResult>;
4196
+
4197
+ interface XcpngSetPifParamParams {
4198
+ pif_uuid: string;
4199
+ key: string;
4200
+ value: string;
4201
+ }
4202
+ interface XcpngSetPifParamResult {
4203
+ success: boolean;
4204
+ pifUuid?: string;
4205
+ command?: string;
4206
+ error?: string;
4207
+ }
4208
+ declare const _default$12: TaskFn<XcpngSetPifParamParams, XcpngSetPifParamResult>;
4209
+
4210
+ interface XcpngUnplugPifParams {
4211
+ pif_uuid?: string;
4212
+ device?: string;
4213
+ host_uuid?: string;
4214
+ host_name_label?: string;
4215
+ allow_missing?: boolean;
4216
+ }
4217
+ interface XcpngUnplugPifResult {
4218
+ success: boolean;
4219
+ pifUuid?: string;
4220
+ appliedCommands: string[];
4221
+ skipped?: boolean;
4222
+ error?: string;
4223
+ }
4224
+ declare const _default$11: TaskFn<XcpngUnplugPifParams, XcpngUnplugPifResult>;
4225
+
4226
+ interface XcpngPifScanParams {
4227
+ host_uuid?: string;
4228
+ host_name_label?: string;
4229
+ allow_missing?: boolean;
4230
+ }
4231
+ interface XcpngPifScanResult {
4232
+ success: boolean;
4233
+ hostUuid?: string;
4234
+ appliedCommands: string[];
4235
+ skipped?: boolean;
4236
+ error?: string;
4237
+ }
4238
+ declare const _default$10: TaskFn<XcpngPifScanParams, XcpngPifScanResult>;
4239
+
4240
+ interface XcpngPlugPifParams {
4241
+ pif_uuid?: string;
4242
+ device?: string;
4243
+ host_uuid?: string;
4244
+ host_name_label?: string;
4245
+ allow_missing?: boolean;
4246
+ }
4247
+ interface XcpngPlugPifResult {
4248
+ success: boolean;
4249
+ pifUuid?: string;
4250
+ appliedCommands: string[];
4251
+ skipped?: boolean;
4252
+ error?: string;
4253
+ }
4254
+ declare const _default$$: TaskFn<XcpngPlugPifParams, XcpngPlugPifResult>;
4255
+
4256
+ interface XcpngSetSrParamParams {
4257
+ sr_uuid?: string;
4258
+ sr_name_label?: string;
4259
+ key: string;
4260
+ value: string;
4261
+ }
4262
+ interface XcpngSetSrParamResult {
4263
+ success: boolean;
4264
+ srUuid?: string;
4265
+ appliedCommands: string[];
4266
+ error?: string;
4267
+ }
4268
+ declare const _default$_: TaskFn<XcpngSetSrParamParams, XcpngSetSrParamResult>;
4269
+
4270
+ interface XcpngSetNetworkParamParams {
4271
+ network_uuid?: string;
4272
+ network_name_label?: string;
4273
+ key: string;
4274
+ value: string;
4275
+ }
4276
+ interface XcpngSetNetworkParamResult {
4277
+ success: boolean;
4278
+ networkUuid?: string;
4279
+ appliedCommands: string[];
4280
+ error?: string;
4281
+ }
4282
+ declare const _default$Z: TaskFn<XcpngSetNetworkParamParams, XcpngSetNetworkParamResult>;
4283
+
4284
+ interface XcpngSetPoolParamParams {
4285
+ pool_uuid?: string;
4286
+ pool_name_label?: string;
4287
+ key: string;
4288
+ value: string;
4289
+ }
4290
+ interface XcpngSetPoolParamResult {
4291
+ success: boolean;
4292
+ poolUuid?: string;
4293
+ appliedCommands: string[];
4294
+ error?: string;
4295
+ }
4296
+ declare const _default$Y: TaskFn<XcpngSetPoolParamParams, XcpngSetPoolParamResult>;
4297
+
4298
+ interface XcpngListPoolsParams {
4299
+ filters?: XeFilterInput;
4300
+ }
4301
+ interface XcpngListPoolsResult {
4302
+ success: boolean;
4303
+ items?: Array<Record<string, string>>;
4304
+ error?: string;
4305
+ }
4306
+ declare const _default$X: TaskFn<XcpngListPoolsParams, XcpngListPoolsResult>;
4307
+
4308
+ interface XcpngFindPoolParams {
4309
+ uuid?: string;
4310
+ name_label?: string;
4311
+ filters?: XcpngListPoolsParams['filters'];
4312
+ allow_multiple?: boolean;
4313
+ fail_when_missing?: boolean;
4314
+ }
4315
+ interface XcpngFindPoolResult {
4316
+ success: boolean;
4317
+ pool?: Record<string, string>;
4318
+ matches?: Array<Record<string, string>>;
4319
+ multiple?: boolean;
4320
+ error?: string;
4321
+ }
4322
+ declare const _default$W: TaskFn<XcpngFindPoolParams, XcpngFindPoolResult>;
4323
+
4324
+ interface XcpngUnplugPbdParams {
4325
+ pbd_uuid?: string;
4326
+ sr_uuid?: string;
4327
+ host_uuid?: string;
4328
+ allow_missing?: boolean;
4329
+ }
4330
+ interface XcpngUnplugPbdResult {
4331
+ success: boolean;
4332
+ pbdUuid?: string;
4333
+ appliedCommands: string[];
4334
+ skipped?: boolean;
4335
+ error?: string;
4336
+ }
4337
+ declare const _default$V: TaskFn<XcpngUnplugPbdParams, XcpngUnplugPbdResult>;
4338
+
4339
+ interface XcpngPlugPbdParams {
4340
+ pbd_uuid?: string;
4341
+ sr_uuid?: string;
4342
+ host_uuid?: string;
4343
+ allow_missing?: boolean;
4344
+ }
4345
+ interface XcpngPlugPbdResult {
4346
+ success: boolean;
4347
+ pbdUuid?: string;
4348
+ appliedCommands: string[];
4349
+ skipped?: boolean;
4350
+ error?: string;
4351
+ }
4352
+ declare const _default$U: TaskFn<XcpngPlugPbdParams, XcpngPlugPbdResult>;
4353
+
4354
+ interface XcpngDestroyPbdParams {
4355
+ pbd_uuid?: string;
4356
+ host_uuid?: string;
4357
+ host_name_label?: string;
4358
+ sr_uuid?: string;
4359
+ sr_name_label?: string;
4360
+ allow_missing?: boolean;
4361
+ }
4362
+ interface XcpngDestroyPbdResult {
4363
+ success: boolean;
4364
+ pbdUuid?: string;
4365
+ appliedCommands: string[];
4366
+ skipped?: boolean;
4367
+ error?: string;
4368
+ }
4369
+ declare const _default$T: TaskFn<XcpngDestroyPbdParams, XcpngDestroyPbdResult>;
4370
+
4371
+ interface XcpngCreatePbdParams {
4372
+ host_uuid?: string;
4373
+ host_name_label?: string;
4374
+ sr_uuid?: string;
4375
+ sr_name_label?: string;
4376
+ device_config?: Record<string, string | number | boolean>;
4377
+ other_config?: Record<string, string | number | boolean>;
4378
+ allow_existing?: boolean;
4379
+ }
4380
+ interface XcpngCreatePbdResult {
4381
+ success: boolean;
4382
+ pbdUuid?: string;
4383
+ hostUuid?: string;
4384
+ srUuid?: string;
4385
+ appliedCommands: string[];
4386
+ skipped?: boolean;
4387
+ error?: string;
4388
+ }
4389
+ declare const _default$S: TaskFn<XcpngCreatePbdParams, XcpngCreatePbdResult>;
4390
+
4391
+ interface XcpngListPbdsParams {
4392
+ filters?: XeFilterInput;
4393
+ }
4394
+ type XcpngPbdRecord = Record<string, string> & {
4395
+ params: Record<string, string>;
4396
+ };
4397
+ interface XcpngListPbdsResult {
4398
+ success: boolean;
4399
+ items?: XcpngPbdRecord[];
4400
+ error?: string;
4401
+ }
4402
+ declare const _default$R: TaskFn<XcpngListPbdsParams, XcpngListPbdsResult>;
4403
+
4404
+ interface XcpngFindPbdParams {
4405
+ uuid?: string;
4406
+ sr_uuid?: string;
4407
+ host_uuid?: string;
4408
+ filters?: XcpngListPbdsParams['filters'];
4409
+ allow_multiple?: boolean;
4410
+ fail_when_missing?: boolean;
4411
+ }
4412
+ interface XcpngFindPbdResult {
4413
+ success: boolean;
4414
+ pbd?: XcpngPbdRecord;
4415
+ matches?: XcpngPbdRecord[];
4416
+ multiple?: boolean;
4417
+ error?: string;
4418
+ }
4419
+ declare const _default$Q: TaskFn<XcpngFindPbdParams, XcpngFindPbdResult>;
4420
+
4421
+ interface XcpngEvacuateHostParams {
4422
+ host_uuid?: string;
4423
+ host_name_label?: string;
4424
+ allow_missing?: boolean;
4425
+ }
4426
+ interface XcpngEvacuateHostResult {
4427
+ success: boolean;
4428
+ hostUuid?: string;
4429
+ command?: string;
4430
+ skipped?: boolean;
4431
+ error?: string;
4432
+ }
4433
+ declare const _default$P: TaskFn<XcpngEvacuateHostParams, XcpngEvacuateHostResult>;
4434
+
4435
+ interface XcpngShutdownHostParams {
4436
+ host_uuid?: string;
4437
+ host_name_label?: string;
4438
+ force?: boolean;
4439
+ allow_missing?: boolean;
4440
+ }
4441
+ interface XcpngShutdownHostResult {
4442
+ success: boolean;
4443
+ hostUuid?: string;
4444
+ command?: string;
4445
+ skipped?: boolean;
4446
+ error?: string;
4447
+ }
4448
+ declare const _default$O: TaskFn<XcpngShutdownHostParams, XcpngShutdownHostResult>;
4449
+
4450
+ interface XcpngRebootHostParams {
4451
+ host_uuid?: string;
4452
+ host_name_label?: string;
4453
+ force?: boolean;
4454
+ allow_missing?: boolean;
4455
+ }
4456
+ interface XcpngRebootHostResult {
4457
+ success: boolean;
4458
+ hostUuid?: string;
4459
+ command?: string;
4460
+ skipped?: boolean;
4461
+ error?: string;
4462
+ }
4463
+ declare const _default$N: TaskFn<XcpngRebootHostParams, XcpngRebootHostResult>;
4464
+
4465
+ interface XcpngDisableHostParams {
4466
+ host_uuid?: string;
4467
+ host_name_label?: string;
4468
+ allow_missing?: boolean;
4469
+ force?: boolean;
4470
+ evacuate?: boolean;
4471
+ }
4472
+ interface XcpngDisableHostResult {
4473
+ success: boolean;
4474
+ hostUuid?: string;
4475
+ appliedCommands: string[];
4476
+ skipped?: boolean;
4477
+ evacuated?: boolean;
4478
+ error?: string;
4479
+ }
4480
+ declare const _default$M: TaskFn<XcpngDisableHostParams, XcpngDisableHostResult>;
4481
+
4482
+ interface XcpngEnableHostParams {
4483
+ host_uuid?: string;
4484
+ host_name_label?: string;
4485
+ allow_missing?: boolean;
4486
+ force?: boolean;
4487
+ }
4488
+ interface XcpngEnableHostResult {
4489
+ success: boolean;
4490
+ hostUuid?: string;
4491
+ appliedCommands: string[];
4492
+ skipped?: boolean;
4493
+ error?: string;
4494
+ }
4495
+ declare const _default$L: TaskFn<XcpngEnableHostParams, XcpngEnableHostResult>;
4496
+
4497
+ interface XcpngListHostsParams {
4498
+ filters?: XeFilterInput;
4499
+ }
4500
+ interface XcpngListHostsResult {
4501
+ success: boolean;
4502
+ items?: Array<Record<string, string>>;
4503
+ error?: string;
4504
+ }
4505
+ declare const _default$K: TaskFn<XcpngListHostsParams, XcpngListHostsResult>;
4506
+
4507
+ interface XcpngFindHostParams {
4508
+ name_label?: string;
4509
+ uuid?: string;
4510
+ filters?: XcpngListHostsParams['filters'];
4511
+ allow_multiple?: boolean;
4512
+ fail_when_missing?: boolean;
4513
+ }
4514
+ interface XcpngFindHostResult {
4515
+ success: boolean;
4516
+ host?: Record<string, string>;
4517
+ matches?: Array<Record<string, string>>;
4518
+ multiple?: boolean;
4519
+ error?: string;
4520
+ }
4521
+ declare const _default$J: TaskFn<XcpngFindHostParams, XcpngFindHostResult>;
4522
+
4523
+ interface XcpngClearMessagesParams {
4524
+ uuid?: string;
4525
+ uuid_prefix?: string;
4526
+ all?: boolean;
4527
+ filters?: XeFilterInput;
4528
+ }
4529
+ interface XcpngClearMessagesResult {
4530
+ success: boolean;
4531
+ cleared?: Array<string>;
4532
+ commands?: Array<string>;
4533
+ error?: string;
4534
+ }
4535
+ declare const _default$I: TaskFn<XcpngClearMessagesParams, XcpngClearMessagesResult>;
4536
+
4537
+ interface XcpngListMessagesParams {
4538
+ filters?: XeFilterInput;
4539
+ }
4540
+ interface XcpngListMessagesResult {
4541
+ success: boolean;
4542
+ items?: Array<Record<string, string>>;
4543
+ error?: string;
4544
+ }
4545
+ declare const _default$H: TaskFn<XcpngListMessagesParams, XcpngListMessagesResult>;
4546
+
4547
+ interface XcpngListSnapshotsParams {
4548
+ filters?: XeFilterInput;
4549
+ }
4550
+ interface XcpngListSnapshotsResult {
4551
+ success: boolean;
4552
+ items?: Array<Record<string, string>>;
4553
+ error?: string;
4554
+ }
4555
+ declare const _default$G: TaskFn<XcpngListSnapshotsParams, XcpngListSnapshotsResult>;
4556
+
4557
+ interface XcpngForgetSrParams {
4558
+ sr_uuid?: string;
4559
+ sr_name_label?: string;
4560
+ allow_missing?: boolean;
4561
+ }
4562
+ interface XcpngForgetSrResult {
4563
+ success: boolean;
4564
+ srUuid?: string;
4565
+ appliedCommands: string[];
4566
+ skipped?: boolean;
4567
+ error?: string;
4568
+ }
4569
+ declare const _default$F: TaskFn<XcpngForgetSrParams, XcpngForgetSrResult>;
4570
+
4571
+ interface XcpngIntroduceSrParams {
4572
+ sr_uuid: string;
4573
+ name_label?: string;
4574
+ type?: string;
4575
+ content_type?: string;
4576
+ shared?: boolean;
4577
+ }
4578
+ interface XcpngIntroduceSrResult {
4579
+ success: boolean;
4580
+ srUuid?: string;
4581
+ appliedCommands: string[];
4582
+ error?: string;
4583
+ }
4584
+ declare const _default$E: TaskFn<XcpngIntroduceSrParams, XcpngIntroduceSrResult>;
4585
+
4586
+ interface XcpngDestroySrParams {
4587
+ sr_uuid?: string;
4588
+ sr_name_label?: string;
4589
+ allow_missing?: boolean;
4590
+ force?: boolean;
4591
+ }
4592
+ interface XcpngDestroySrResult {
4593
+ success: boolean;
4594
+ srUuid?: string;
4595
+ appliedCommands: string[];
4596
+ skipped?: boolean;
4597
+ error?: string;
4598
+ }
4599
+ declare const _default$D: TaskFn<XcpngDestroySrParams, XcpngDestroySrResult>;
4600
+
4601
+ interface XcpngCreateSrParams {
4602
+ name_label: string;
4603
+ type: string;
4604
+ device_config: Record<string, string>;
4605
+ content_type?: string;
4606
+ description?: string;
4607
+ allow_existing?: boolean;
4608
+ }
4609
+ interface XcpngCreateSrResult {
4610
+ success: boolean;
4611
+ srUuid?: string;
4612
+ appliedCommands: string[];
4613
+ skipped?: boolean;
4614
+ error?: string;
4615
+ }
4616
+ declare const _default$C: TaskFn<XcpngCreateSrParams, XcpngCreateSrResult>;
4617
+
4618
+ interface XcpngDetachVdiParams {
4619
+ vbd_uuid?: string;
4620
+ vm_uuid?: string;
4621
+ vdi_uuid?: string;
4622
+ device?: string;
4623
+ allow_missing?: boolean;
4624
+ destroy_vbd?: boolean;
4625
+ destroy_vdi?: boolean;
4626
+ }
4627
+ interface XcpngDetachVdiResult {
4628
+ success: boolean;
4629
+ vbdUuid?: string;
4630
+ vdiUuid?: string;
4631
+ unplugged?: boolean;
4632
+ destroyedVbd?: boolean;
4633
+ destroyedVdi?: boolean;
4634
+ appliedCommands: string[];
4635
+ error?: string;
4636
+ }
4637
+ declare const _default$B: TaskFn<XcpngDetachVdiParams, XcpngDetachVdiResult>;
4638
+
4639
+ interface XcpngDetachNetworkInterfaceParams {
4640
+ vif_uuid?: string;
4641
+ vm_uuid?: string;
4642
+ device?: string;
4643
+ allow_missing?: boolean;
4644
+ destroy_record?: boolean;
4645
+ }
4646
+ interface XcpngDetachNetworkInterfaceResult {
4647
+ success: boolean;
4648
+ vifUuid?: string;
4649
+ unplugged?: boolean;
4650
+ destroyed?: boolean;
4651
+ appliedCommands: string[];
4652
+ error?: string;
4653
+ }
4654
+ declare const _default$A: TaskFn<XcpngDetachNetworkInterfaceParams, XcpngDetachNetworkInterfaceResult>;
4655
+
4656
+ interface XcpngDetachIsoParams {
4657
+ vm_uuid: string;
4658
+ allow_missing?: boolean;
4659
+ }
4660
+ interface XcpngDetachIsoResult {
4661
+ success: boolean;
4662
+ command?: string;
4663
+ ejected?: boolean;
4664
+ alreadyEmpty?: boolean;
4665
+ error?: string;
4666
+ }
4667
+ declare const _default$z: TaskFn<XcpngDetachIsoParams, XcpngDetachIsoResult>;
4668
+
4669
+ interface XcpngVmImportParams {
4670
+ filename: string;
4671
+ sr_uuid?: string;
4672
+ sr_name_label?: string;
4673
+ new_name_label?: string;
4674
+ preserve_mac_addresses?: boolean;
4675
+ force?: boolean;
4676
+ }
4677
+ interface XcpngVmImportResult {
4678
+ success: boolean;
4679
+ srUuid?: string;
4680
+ importedVmUuid?: string;
4681
+ appliedCommands: string[];
4682
+ error?: string;
4683
+ }
4684
+ declare const _default$y: TaskFn<XcpngVmImportParams, XcpngVmImportResult>;
4685
+
4686
+ interface XcpngVmExportParams {
4687
+ vm_uuid?: string;
4688
+ vm_name_label?: string;
4689
+ vm_filters?: XcpngFindVmParams['filters'];
4690
+ remote_path: string;
4691
+ compress?: boolean;
4692
+ live?: boolean;
4693
+ force?: boolean;
4694
+ allow_missing?: boolean;
4695
+ }
4696
+ interface XcpngVmExportResult {
4697
+ success: boolean;
4698
+ vmUuid?: string;
4699
+ outputPath?: string;
4700
+ appliedCommands: string[];
4701
+ skipped?: boolean;
4702
+ error?: string;
4703
+ }
4704
+ declare const _default$x: TaskFn<XcpngVmExportParams, XcpngVmExportResult>;
4705
+
4706
+ interface XcpngVmMigrateParams {
4707
+ vm_uuid?: string;
4708
+ vm_name_label?: string;
4709
+ vm_filters?: XcpngFindVmParams['filters'];
4710
+ destination_host_uuid?: string;
4711
+ destination_host_name_label?: string;
4712
+ destination_sr_uuid?: string;
4713
+ destination_sr_name_label?: string;
4714
+ live?: boolean;
4715
+ force?: boolean;
4716
+ allow_missing?: boolean;
4717
+ }
4718
+ interface XcpngVmMigrateResult {
4719
+ success: boolean;
4720
+ vmUuid?: string;
4721
+ destinationHostUuid?: string;
4722
+ destinationSrUuid?: string;
4723
+ appliedCommands: string[];
4724
+ skipped?: boolean;
4725
+ error?: string;
4726
+ }
4727
+ declare const _default$w: TaskFn<XcpngVmMigrateParams, XcpngVmMigrateResult>;
4728
+
4729
+ interface XcpngVmCopyParams {
4730
+ vm_uuid?: string;
4731
+ vm_name_label?: string;
4732
+ vm_filters?: XcpngFindVmParams['filters'];
4733
+ destination_sr_uuid?: string;
4734
+ destination_sr_name_label?: string;
4735
+ new_name_label?: string;
4736
+ description?: string;
4737
+ force?: boolean;
4738
+ allow_missing?: boolean;
4739
+ }
4740
+ interface XcpngVmCopyResult {
4741
+ success: boolean;
4742
+ sourceVmUuid?: string;
4743
+ newVmUuid?: string;
4744
+ destinationSrUuid?: string;
4745
+ appliedCommands: string[];
4746
+ skipped?: boolean;
4747
+ error?: string;
4748
+ }
4749
+ declare const _default$v: TaskFn<XcpngVmCopyParams, XcpngVmCopyResult>;
4750
+
4751
+ interface XcpngExportVdiParams {
4752
+ vdi_uuid?: string;
4753
+ vdi_name_label?: string;
4754
+ sr_uuid?: string;
4755
+ filters?: XcpngFindVdiParams['filters'];
4756
+ remote_path: string;
4757
+ export_format?: 'raw' | 'vhd' | 'vhd.gz';
4758
+ allow_missing?: boolean;
4759
+ }
4760
+ interface XcpngExportVdiResult {
4761
+ success: boolean;
4762
+ vdiUuid?: string;
4763
+ outputPath?: string;
4764
+ appliedCommands: string[];
4765
+ skipped?: boolean;
4766
+ error?: string;
4767
+ }
4768
+ declare const _default$u: TaskFn<XcpngExportVdiParams, XcpngExportVdiResult>;
4769
+
4770
+ interface XcpngCopyVdiParams {
4771
+ source_vdi_uuid?: string;
4772
+ source_vdi_name_label?: string;
4773
+ source_sr_uuid?: string;
4774
+ destination_sr_uuid?: string;
4775
+ destination_sr_name_label?: string;
4776
+ new_name_label?: string;
4777
+ description?: string;
4778
+ sharable?: boolean;
4779
+ allow_missing?: boolean;
4780
+ filters?: XcpngFindVdiParams['filters'];
4781
+ }
4782
+ interface XcpngCopyVdiResult {
4783
+ success: boolean;
4784
+ sourceVdiUuid?: string;
4785
+ destinationSrUuid?: string;
4786
+ sourceSrUuid?: string;
4787
+ newVdiUuid?: string;
4788
+ appliedCommands: string[];
4789
+ skipped?: boolean;
4790
+ error?: string;
4791
+ }
4792
+ declare const _default$t: TaskFn<XcpngCopyVdiParams, XcpngCopyVdiResult>;
4793
+
4794
+ interface XcpngDestroyVmParams {
4795
+ vm_uuid?: string;
4796
+ vm_name_label?: string;
4797
+ force?: boolean;
4798
+ destroy_snapshots?: boolean;
4799
+ destroy_vdis?: boolean;
4800
+ allow_missing?: boolean;
4801
+ filters?: Record<string, string | number | boolean | undefined | null>;
4802
+ }
4803
+ interface XcpngDestroyVmResult {
4804
+ success: boolean;
4805
+ vmUuid?: string;
4806
+ command?: string;
4807
+ commands?: string[];
4808
+ destroyedVdiUuids?: string[];
4809
+ skipped?: boolean;
4810
+ error?: string;
4811
+ }
4812
+ declare const _default$s: TaskFn<XcpngDestroyVmParams, XcpngDestroyVmResult>;
4813
+
4814
+ interface XcpngDestroyVdiParams {
4815
+ /** Target VDI UUID. */
4816
+ vdi_uuid?: string;
4817
+ /** Optional VDI name-label used to resolve the UUID when vdi_uuid is not supplied. */
4818
+ vdi_name_label?: string;
4819
+ /** Optional storage repository UUID when resolving by name. */
4820
+ sr_uuid?: string;
4821
+ /** Treat a missing VDI as success when true. */
4822
+ allow_missing?: boolean;
4823
+ }
4824
+ interface XcpngDestroyVdiResult {
4825
+ success: boolean;
4826
+ vdiUuid?: string;
4827
+ command?: string;
4828
+ skipped?: boolean;
4829
+ error?: string;
4830
+ }
4831
+ declare const _default$r: TaskFn<XcpngDestroyVdiParams, XcpngDestroyVdiResult>;
4832
+
4833
+ interface XcpngDestroyNetworkParams {
4834
+ network_uuid?: string;
4835
+ network_name_label?: string;
4836
+ allow_missing?: boolean;
4837
+ }
4838
+ interface XcpngDestroyNetworkResult {
4839
+ success: boolean;
4840
+ networkUuid?: string;
4841
+ appliedCommands: string[];
4842
+ skipped?: boolean;
4843
+ error?: string;
4844
+ }
4845
+ declare const _default$q: TaskFn<XcpngDestroyNetworkParams, XcpngDestroyNetworkResult>;
4846
+
4847
+ interface XcpngDestroyTemplateParams {
4848
+ template_uuid?: string;
4849
+ template_name_label?: string;
4850
+ allow_missing?: boolean;
4851
+ force?: boolean;
4852
+ filters?: Record<string, string | number | boolean | undefined | null>;
4853
+ }
4854
+ interface XcpngDestroyTemplateResult {
4855
+ success: boolean;
4856
+ templateUuid?: string;
4857
+ command?: string;
4858
+ skipped?: boolean;
4859
+ error?: string;
4860
+ }
4861
+ declare const _default$p: TaskFn<XcpngDestroyTemplateParams, XcpngDestroyTemplateResult>;
4862
+
4863
+ interface XcpngDestroyIsoSrParams {
4864
+ /** Target SR UUID. */
4865
+ sr_uuid?: string;
4866
+ /** Optional SR name-label used to resolve the UUID when sr_uuid is not provided. */
4867
+ sr_name_label?: string;
4868
+ /** Filesystem path to remove after destroying the SR (e.g., `/var/opt/xen/iso-hostctl-e2e`). */
4869
+ location?: string;
4870
+ /** Treat missing SRs or paths as success when true. */
4871
+ allow_missing?: boolean;
4872
+ }
4873
+ interface XcpngDestroyIsoSrResult {
4874
+ success: boolean;
4875
+ srUuid?: string;
4876
+ commands: string[];
4877
+ removedLocation?: boolean;
4878
+ skipped?: boolean;
4879
+ error?: string;
4880
+ }
4881
+ declare const _default$o: TaskFn<XcpngDestroyIsoSrParams, XcpngDestroyIsoSrResult>;
4882
+
4883
+ interface XcpngDestroyBondParams {
4884
+ bond_uuid?: string;
4885
+ pif_uuid?: string;
4886
+ allow_missing?: boolean;
4887
+ }
4888
+ interface XcpngDestroyBondResult {
4889
+ success: boolean;
4890
+ bondUuid?: string;
4891
+ appliedCommands: string[];
4892
+ skipped?: boolean;
4893
+ error?: string;
4894
+ }
4895
+ declare const _default$n: TaskFn<XcpngDestroyBondParams, XcpngDestroyBondResult>;
4896
+
4897
+ interface XcpngDestroySnapshotParams {
4898
+ snapshot_uuid: string;
4899
+ }
4900
+ interface XcpngDestroySnapshotResult {
4901
+ success: boolean;
4902
+ snapshotUuid?: string;
4903
+ command?: string;
4904
+ error?: string;
4905
+ }
4906
+ declare const _default$m: TaskFn<XcpngDestroySnapshotParams, XcpngDestroySnapshotResult>;
4907
+
4908
+ interface XcpngConvertTemplateToVmParams {
4909
+ template_uuid?: string;
4910
+ template_name_label?: string;
4911
+ filters?: XcpngFindTemplateParams['filters'];
4912
+ vm_name_label?: string;
4913
+ description?: string;
4914
+ allow_missing?: boolean;
4915
+ }
4916
+ interface XcpngConvertTemplateToVmResult {
4917
+ success: boolean;
4918
+ templateUuid?: string;
4919
+ vmUuid?: string;
4920
+ appliedCommands: string[];
4921
+ skipped?: boolean;
4922
+ alreadyVm?: boolean;
4923
+ error?: string;
4924
+ }
4925
+ declare const _default$l: TaskFn<XcpngConvertTemplateToVmParams, XcpngConvertTemplateToVmResult>;
4926
+
4927
+ /**
4928
+ * Parameters for provisioning a new VM on an XCP-ng host.
4929
+ * - `name_label`: Human-readable VM name (required).
4930
+ * - `template_name`: Optional template name to clone (e.g., "Other install media").
4931
+ * - `template_uuid`: Optional template UUID. Takes precedence over `template_name` when both are provided.
4932
+ * - `description`: Optional long-form description stored on the VM record.
4933
+ * - `affinity_host_uuid`: Optional host UUID to set VCpu affinity.
4934
+ * - `memory_mib`: Optional memory allocation expressed in MiB. All static/dynamic bounds are set to this value.
4935
+ * - `vcpus`: Optional number of virtual CPUs to configure.
4936
+ */
4937
+ interface XcpngCreateVmParams {
4938
+ name_label: string;
4939
+ template_name?: string;
4940
+ template_uuid?: string;
4941
+ description?: string;
4942
+ affinity_host_uuid?: string;
4943
+ memory_mib?: number;
4944
+ vcpus?: number;
4945
+ /**
4946
+ * Desired virtualization mode. Defaults to `pvhvm` so new guests receive hardware virtualization
4947
+ * with PV drivers (modern XCP-ng best practice).
4948
+ */
4949
+ virtualization_mode?: 'pv' | 'pvhvm';
4950
+ /**
4951
+ * Device model to use for the guest (defaults left untouched when omitted).
4952
+ */
4953
+ device_model?: 'qemu_traditional' | 'qemu-upstream-compat';
4954
+ }
4955
+ /**
4956
+ * Result payload describing the newly created VM.
4957
+ * - `vmUuid`: Identifier emitted by `xe vm-create`.
4958
+ * - `appliedCommands`: Ordered list of CLI invocations executed for auditing or retries.
4959
+ * - `error`: Raw error output when any step fails.
4960
+ */
4961
+ interface XcpngCreateVmResult {
4962
+ success: boolean;
4963
+ vmUuid?: string;
4964
+ appliedCommands: string[];
4965
+ error?: string;
4966
+ }
4967
+ declare const _default$k: TaskFn<XcpngCreateVmParams, XcpngCreateVmResult>;
4968
+
4969
+ /**
4970
+ * Parameters required to create a new virtual disk image (VDI) on an XCP-ng storage repository.
4971
+ * - `name_label`: Human-readable name assigned to the disk.
4972
+ * - `sr_uuid`: Identifier of the storage repository that should host the disk.
4973
+ * - `size_bytes`/`size_mb`/`size_gb`: Provisioned size; supply exactly one (bytes, MiB, or GiB).
4974
+ * - `description`: Optional friendly description stored alongside the VDI metadata.
4975
+ * - `type`: Disk type (`user`, `system`, `metadata`, etc.); defaults to `user`.
4976
+ * - `shareable`: Marks the disk as shareable across multiple VMs when set to `true`.
4977
+ */
4978
+ interface XcpngCreateVdiParams {
4979
+ name_label: string;
4980
+ sr_uuid: string;
4981
+ size_bytes?: number;
4982
+ size_mb?: number;
4983
+ size_gb?: number;
4984
+ description?: string;
4985
+ type?: string;
4986
+ shareable?: boolean;
4987
+ }
4988
+ /**
4989
+ * Result payload summarising the newly created disk.
4990
+ * - `vdiUuid`: Identifier emitted by `xe vdi-create`.
4991
+ * - `command`: Resolved CLI invocation for auditability.
4992
+ * - `error`: Raw stderr output when the command fails.
4993
+ */
4994
+ interface XcpngCreateVdiResult {
4995
+ success: boolean;
4996
+ vdiUuid?: string;
4997
+ command?: string;
4998
+ error?: string;
4999
+ }
5000
+ declare const _default$j: TaskFn<XcpngCreateVdiParams, XcpngCreateVdiResult>;
5001
+
5002
+ interface XcpngCreateTemplateFromVdiParams {
5003
+ template_name_label: string;
5004
+ template_description?: string;
5005
+ vm_name_label?: string;
5006
+ vm_description?: string;
5007
+ base_template_uuid?: string;
5008
+ base_template_name_label?: string;
5009
+ virtualization_mode?: 'pv' | 'pvhvm';
5010
+ device_model?: 'qemu_traditional' | 'qemu-upstream-compat' | 'qemu-upstream-uefi';
5011
+ memory_mib?: number;
5012
+ vcpus?: number;
5013
+ firmware?: 'bios' | 'uefi';
5014
+ vdi_uuid?: string;
5015
+ vdi_name_label?: string;
5016
+ vdi_sr_uuid?: string;
5017
+ disk_device?: string;
5018
+ allow_existing_template?: boolean;
5019
+ initial_boot_order?: string;
5020
+ final_boot_order?: string;
5021
+ cloud_init_user_data?: string;
5022
+ cloud_init_user_data_b64?: string;
5023
+ cloud_init_network_config?: string;
5024
+ cloud_init_network_config_b64?: string;
5025
+ cloud_init_hostname?: string;
5026
+ cloud_init_instance_id?: string;
5027
+ }
5028
+ interface XcpngCreateTemplateFromVdiStep {
5029
+ name: string;
5030
+ success: boolean;
5031
+ details?: Record<string, unknown>;
5032
+ error?: string;
5033
+ }
5034
+ interface XcpngCreateTemplateFromVdiResult {
5035
+ success: boolean;
5036
+ templateUuid?: string;
5037
+ vmUuid?: string;
5038
+ vdiUuid?: string;
5039
+ vbdUuid?: string;
5040
+ appliedCommands: string[];
5041
+ steps: XcpngCreateTemplateFromVdiStep[];
5042
+ error?: string;
5043
+ skipped?: boolean;
5044
+ }
5045
+ declare const _default$i: TaskFn<XcpngCreateTemplateFromVdiParams, XcpngCreateTemplateFromVdiResult>;
5046
+
5047
+ interface XcpngCloneTemplateParams {
5048
+ source_template_uuid?: string;
5049
+ source_template_name_label?: string;
5050
+ filters?: XcpngFindTemplateParams['filters'];
5051
+ new_template_name_label: string;
5052
+ description?: string;
5053
+ make_default?: boolean;
5054
+ allow_missing?: boolean;
5055
+ }
5056
+ interface XcpngCloneTemplateResult {
5057
+ success: boolean;
5058
+ sourceTemplateUuid?: string;
5059
+ templateUuid?: string;
5060
+ appliedCommands: string[];
5061
+ skipped?: boolean;
5062
+ alreadyExists?: boolean;
5063
+ error?: string;
5064
+ }
5065
+ declare const _default$h: TaskFn<XcpngCloneTemplateParams, XcpngCloneTemplateResult>;
5066
+
5067
+ interface XcpngCreateBondParams {
5068
+ host_uuid?: string;
5069
+ host_name_label?: string;
5070
+ network_uuid?: string;
5071
+ network_name_label?: string;
5072
+ pif_uuids: string[];
5073
+ mode?: string;
5074
+ mtu?: number;
5075
+ mac?: string;
5076
+ other_config?: Record<string, string | number | boolean>;
5077
+ properties?: Record<string, string | number | boolean>;
5078
+ }
5079
+ interface XcpngCreateBondResult {
5080
+ success: boolean;
5081
+ bondPifUuid?: string;
5082
+ hostUuid?: string;
5083
+ networkUuid?: string;
5084
+ appliedCommands: string[];
5085
+ error?: string;
5086
+ }
5087
+ declare const _default$g: TaskFn<XcpngCreateBondParams, XcpngCreateBondResult>;
5088
+
5089
+ interface XcpngDetachCdMediaParams {
5090
+ vm_uuid: string;
5091
+ allow_missing?: boolean;
5092
+ }
5093
+ interface XcpngDetachCdMediaStep {
5094
+ name: string;
5095
+ success: boolean;
5096
+ details?: Record<string, unknown>;
5097
+ error?: string;
5098
+ }
5099
+ interface XcpngDetachCdMediaResult {
5100
+ success: boolean;
5101
+ vmUuid?: string;
5102
+ removedVbds?: string[];
5103
+ commands: string[];
5104
+ steps: XcpngDetachCdMediaStep[];
5105
+ error?: string;
5106
+ skipped?: boolean;
5107
+ }
5108
+ declare const _default$f: TaskFn<XcpngDetachCdMediaParams, XcpngDetachCdMediaResult>;
5109
+
5110
+ interface XcpngCleanupConfigDriveParams {
5111
+ vm_uuid?: string;
5112
+ vm_name_label?: string;
5113
+ allow_missing?: boolean;
5114
+ keep_vdi?: boolean;
5115
+ require_halted?: boolean;
5116
+ }
5117
+ interface XcpngCleanupConfigDriveStep {
5118
+ name: string;
5119
+ success: boolean;
5120
+ details?: Record<string, unknown>;
5121
+ error?: string;
5122
+ }
5123
+ interface XcpngCleanupConfigDriveResult {
5124
+ success: boolean;
5125
+ vmUuid?: string;
5126
+ configDriveVdis?: string[];
5127
+ commands: string[];
5128
+ steps: XcpngCleanupConfigDriveStep[];
5129
+ error?: string;
5130
+ skipped?: boolean;
5131
+ }
5132
+ declare const _default$e: TaskFn<XcpngCleanupConfigDriveParams, XcpngCleanupConfigDriveResult>;
5133
+
5134
+ interface XcpngCreateConfigDriveParams {
5135
+ iso_sr_uuid?: string;
5136
+ iso_sr_name_label?: string;
5137
+ iso_sr_location?: string;
5138
+ iso_sr_location_owner?: string;
5139
+ iso_sr_location_mode?: string;
5140
+ iso_filename?: string;
5141
+ overwrite?: boolean;
5142
+ volume_id?: string;
5143
+ iso_tool_name?: string;
5144
+ vm_uuid?: string;
5145
+ vm_name_label?: string;
5146
+ instance_id?: string;
5147
+ hostname?: string;
5148
+ user_data?: string;
5149
+ user_data_b64?: string;
5150
+ meta_data?: string;
5151
+ meta_data_b64?: string;
5152
+ network_config?: string;
5153
+ network_config_b64?: string;
5154
+ local_iso_path?: string;
5155
+ }
5156
+ interface XcpngCreateConfigDriveStep {
5157
+ name: string;
5158
+ success: boolean;
5159
+ details?: Record<string, unknown>;
5160
+ error?: string;
5161
+ }
5162
+ interface XcpngCreateConfigDriveResult {
5163
+ success: boolean;
5164
+ srUuid?: string;
5165
+ vdiUuid?: string;
5166
+ isoPath?: string;
5167
+ volumeId?: string;
5168
+ reused?: boolean;
5169
+ commands: string[];
5170
+ steps: XcpngCreateConfigDriveStep[];
5171
+ error?: string;
5172
+ }
5173
+ declare const _default$d: TaskFn<XcpngCreateConfigDriveParams, XcpngCreateConfigDriveResult>;
5174
+
5175
+ interface XcpngCreateNetworkParams {
5176
+ name_label: string;
5177
+ description?: string;
5178
+ bridge?: string;
5179
+ mtu?: number;
5180
+ tags?: string[];
5181
+ allow_existing?: boolean;
5182
+ }
5183
+ interface XcpngCreateNetworkResult {
5184
+ success: boolean;
5185
+ networkUuid?: string;
5186
+ appliedCommands: string[];
5187
+ skipped?: boolean;
5188
+ error?: string;
5189
+ }
5190
+ declare const _default$c: TaskFn<XcpngCreateNetworkParams, XcpngCreateNetworkResult>;
5191
+
5192
+ interface XcpngCreateTemplateParams {
5193
+ source_vm_uuid?: string;
5194
+ source_vm_name_label?: string;
5195
+ template_name_label: string;
5196
+ description?: string;
5197
+ make_default?: boolean;
5198
+ }
5199
+ interface XcpngCreateTemplateResult {
5200
+ success: boolean;
5201
+ sourceVmUuid?: string;
5202
+ templateUuid?: string;
5203
+ appliedCommands: string[];
5204
+ error?: string;
5205
+ powerState?: string;
5206
+ waitAttempts?: number;
5207
+ }
5208
+ declare const _default$b: TaskFn<XcpngCreateTemplateParams, XcpngCreateTemplateResult>;
5209
+
5210
+ /**
5211
+ * Parameters for attaching an existing virtual disk image to a VM.
5212
+ * - `vm_uuid`: Target VM identifier.
5213
+ * - `vdi_uuid`: Disk identifier returned by `xe vdi-create` or `xe vdi-list`.
5214
+ * - `device`: Virtual device slot (e.g., `0`, `1`). Defaults to `0`.
5215
+ * - `mode`: Access mode (`RW` or `RO`). Defaults to `RW`.
5216
+ * - `bootable`: Marks the disk as bootable if `true`.
5217
+ */
5218
+ interface XcpngAttachVdiParams {
5219
+ vm_uuid: string;
5220
+ vdi_uuid: string;
5221
+ device?: string;
5222
+ mode?: 'RW' | 'RO';
5223
+ bootable?: boolean;
5224
+ }
5225
+ /**
5226
+ * Result summarising the new virtual block device (VBD) created for the VM.
5227
+ * - `vbdUuid`: Identifier emitted by `xe vbd-create`.
5228
+ * - `appliedCommands`: Both creation and plug commands for auditing purposes.
5229
+ * - `error`: Raw stderr output when the workflow fails.
5230
+ */
5231
+ interface XcpngAttachVdiResult {
5232
+ success: boolean;
5233
+ vbdUuid?: string;
5234
+ appliedCommands: string[];
5235
+ plugged?: boolean;
5236
+ error?: string;
5237
+ }
5238
+ declare const _default$a: TaskFn<XcpngAttachVdiParams, XcpngAttachVdiResult>;
5239
+
5240
+ /**
5241
+ * Parameters for attaching a virtual network interface (VIF) to a VM.
5242
+ * - `vm_uuid`: Target VM identifier.
5243
+ * - `network_uuid`: Network resource UUID obtained from `xe network-list`.
5244
+ * - `device`: Optional slot number (defaults to `0`).
5245
+ * - `mac_address`: Optional static MAC address. Leave undefined to let XCP-ng assign one.
5246
+ * - `mtu`: Optional MTU value applied to the interface.
5247
+ */
5248
+ interface XcpngAttachNetworkInterfaceParams {
5249
+ vm_uuid: string;
5250
+ network_uuid: string;
5251
+ device?: string;
5252
+ mac_address?: string;
5253
+ mtu?: number;
5254
+ }
5255
+ /**
5256
+ * Result details for the newly created VIF.
5257
+ * - `vifUuid`: Identifier emitted by `xe vif-create`.
5258
+ * - `appliedCommands`: Creation and plug commands executed in order.
5259
+ * - `error`: Raw stderr output when the workflow fails.
5260
+ */
5261
+ interface XcpngAttachNetworkInterfaceResult {
5262
+ success: boolean;
5263
+ vifUuid?: string;
5264
+ appliedCommands: string[];
5265
+ plugged?: boolean;
5266
+ error?: string;
5267
+ }
5268
+ declare const _default$9: TaskFn<XcpngAttachNetworkInterfaceParams, XcpngAttachNetworkInterfaceResult>;
5269
+
5270
+ /**
5271
+ * Parameters for inserting an ISO image into a VM's virtual CD drive.
5272
+ * - `vm_uuid`: Target VM identifier.
5273
+ * - `iso_vdi_uuid`: UUID of the ISO VDI stored in an SR.
5274
+ * - `device`: Optional CD device slot (defaults to hypervisor choice, commonly `3`).
5275
+ * - `eject_before_insert`: Attempts to eject any existing media before inserting the new ISO.
5276
+ */
5277
+ interface XcpngAttachIsoParams {
5278
+ vm_uuid: string;
5279
+ iso_vdi_uuid: string;
5280
+ device?: string;
5281
+ eject_before_insert?: boolean;
5282
+ }
5283
+ /**
5284
+ * Result describing the CD handling workflow.
5285
+ * - `appliedCommands`: Ordered list of `xe` commands executed.
5286
+ * - `error`: Raw stderr output when the insert workflow fails.
5287
+ */
5288
+ interface XcpngAttachIsoResult {
5289
+ success: boolean;
5290
+ appliedCommands: string[];
5291
+ plugged?: boolean;
5292
+ error?: string;
5293
+ }
5294
+ declare const _default$8: TaskFn<XcpngAttachIsoParams, XcpngAttachIsoResult>;
5295
+
5296
+ interface XcpngAddDiskParams {
5297
+ vm_uuid: string;
5298
+ sr_uuid?: string;
5299
+ sr_name_label?: string;
5300
+ /** Provide exactly one of the size fields to set disk capacity. */
5301
+ size_bytes?: number;
5302
+ size_mb?: number;
5303
+ size_gb?: number;
5304
+ size_mib?: number;
5305
+ name_label?: string;
5306
+ description?: string;
5307
+ device?: string;
5308
+ mode?: 'RW' | 'RO';
5309
+ bootable?: boolean;
5310
+ shareable?: boolean;
5311
+ type?: string;
5312
+ cleanup_vdi_on_failure?: boolean;
5313
+ }
5314
+ interface XcpngAddDiskResult {
5315
+ success: boolean;
5316
+ vmUuid?: string;
5317
+ vdiUuid?: string;
5318
+ vbdUuid?: string;
5319
+ appliedCommands: string[];
5320
+ plugged?: boolean;
5321
+ error?: string;
5322
+ }
5323
+ declare const _default$7: TaskFn<XcpngAddDiskParams, XcpngAddDiskResult>;
5324
+
5325
+ declare const _default$6: {
5326
+ addDisk: TaskFn<XcpngAddDiskParams, XcpngAddDiskResult>;
5327
+ attachIso: TaskFn<XcpngAttachIsoParams, XcpngAttachIsoResult>;
5328
+ attachNetworkInterface: TaskFn<XcpngAttachNetworkInterfaceParams, XcpngAttachNetworkInterfaceResult>;
5329
+ attachVdi: TaskFn<XcpngAttachVdiParams, XcpngAttachVdiResult>;
5330
+ createTemplate: TaskFn<XcpngCreateTemplateParams, XcpngCreateTemplateResult>;
5331
+ createNetwork: TaskFn<XcpngCreateNetworkParams, XcpngCreateNetworkResult>;
5332
+ createConfigDrive: TaskFn<XcpngCreateConfigDriveParams, XcpngCreateConfigDriveResult>;
5333
+ cleanupConfigDrive: TaskFn<XcpngCleanupConfigDriveParams, XcpngCleanupConfigDriveResult>;
5334
+ detachCdMedia: TaskFn<XcpngDetachCdMediaParams, XcpngDetachCdMediaResult>;
5335
+ createBond: TaskFn<XcpngCreateBondParams, XcpngCreateBondResult>;
5336
+ cloneTemplate: TaskFn<XcpngCloneTemplateParams, XcpngCloneTemplateResult>;
5337
+ createTemplateFromVdi: TaskFn<XcpngCreateTemplateFromVdiParams, XcpngCreateTemplateFromVdiResult>;
5338
+ createVdi: TaskFn<XcpngCreateVdiParams, XcpngCreateVdiResult>;
5339
+ createVm: TaskFn<XcpngCreateVmParams, XcpngCreateVmResult>;
5340
+ convertTemplateToVm: TaskFn<XcpngConvertTemplateToVmParams, XcpngConvertTemplateToVmResult>;
5341
+ destroySnapshot: TaskFn<XcpngDestroySnapshotParams, XcpngDestroySnapshotResult>;
5342
+ destroyBond: TaskFn<XcpngDestroyBondParams, XcpngDestroyBondResult>;
5343
+ destroyIsoSr: TaskFn<XcpngDestroyIsoSrParams, XcpngDestroyIsoSrResult>;
5344
+ destroyTemplate: TaskFn<XcpngDestroyTemplateParams, XcpngDestroyTemplateResult>;
5345
+ destroyNetwork: TaskFn<XcpngDestroyNetworkParams, XcpngDestroyNetworkResult>;
5346
+ destroyVdi: TaskFn<XcpngDestroyVdiParams, XcpngDestroyVdiResult>;
5347
+ destroyVm: TaskFn<XcpngDestroyVmParams, XcpngDestroyVmResult>;
5348
+ copyVdi: TaskFn<XcpngCopyVdiParams, XcpngCopyVdiResult>;
5349
+ exportVdi: TaskFn<XcpngExportVdiParams, XcpngExportVdiResult>;
5350
+ vmCopy: TaskFn<XcpngVmCopyParams, XcpngVmCopyResult>;
5351
+ vmMigrate: TaskFn<XcpngVmMigrateParams, XcpngVmMigrateResult>;
5352
+ vmExport: TaskFn<XcpngVmExportParams, XcpngVmExportResult>;
5353
+ vmImport: TaskFn<XcpngVmImportParams, XcpngVmImportResult>;
5354
+ detachIso: TaskFn<XcpngDetachIsoParams, XcpngDetachIsoResult>;
5355
+ detachNetworkInterface: TaskFn<XcpngDetachNetworkInterfaceParams, XcpngDetachNetworkInterfaceResult>;
5356
+ detachVdi: TaskFn<XcpngDetachVdiParams, XcpngDetachVdiResult>;
5357
+ createSr: TaskFn<XcpngCreateSrParams, XcpngCreateSrResult>;
5358
+ destroySr: TaskFn<XcpngDestroySrParams, XcpngDestroySrResult>;
5359
+ introduceSr: TaskFn<XcpngIntroduceSrParams, XcpngIntroduceSrResult>;
5360
+ forgetSr: TaskFn<XcpngForgetSrParams, XcpngForgetSrResult>;
5361
+ listSnapshots: TaskFn<XcpngListSnapshotsParams, XcpngListSnapshotsResult>;
5362
+ listMessages: TaskFn<XcpngListMessagesParams, XcpngListMessagesResult>;
5363
+ clearMessages: TaskFn<XcpngClearMessagesParams, XcpngClearMessagesResult>;
5364
+ listHosts: TaskFn<XcpngListHostsParams, XcpngListHostsResult>;
5365
+ findHost: TaskFn<XcpngFindHostParams, XcpngFindHostResult>;
5366
+ enableHost: TaskFn<XcpngEnableHostParams, XcpngEnableHostResult>;
5367
+ disableHost: TaskFn<XcpngDisableHostParams, XcpngDisableHostResult>;
5368
+ rebootHost: TaskFn<XcpngRebootHostParams, XcpngRebootHostResult>;
5369
+ shutdownHost: TaskFn<XcpngShutdownHostParams, XcpngShutdownHostResult>;
5370
+ evacuateHost: TaskFn<XcpngEvacuateHostParams, XcpngEvacuateHostResult>;
5371
+ listPbds: TaskFn<XcpngListPbdsParams, XcpngListPbdsResult>;
5372
+ findPbd: TaskFn<XcpngFindPbdParams, XcpngFindPbdResult>;
5373
+ createPbd: TaskFn<XcpngCreatePbdParams, XcpngCreatePbdResult>;
5374
+ destroyPbd: TaskFn<XcpngDestroyPbdParams, XcpngDestroyPbdResult>;
5375
+ plugPbd: TaskFn<XcpngPlugPbdParams, XcpngPlugPbdResult>;
5376
+ unplugPbd: TaskFn<XcpngUnplugPbdParams, XcpngUnplugPbdResult>;
5377
+ listPools: TaskFn<XcpngListPoolsParams, XcpngListPoolsResult>;
5378
+ findPool: TaskFn<XcpngFindPoolParams, XcpngFindPoolResult>;
5379
+ setPoolParam: TaskFn<XcpngSetPoolParamParams, XcpngSetPoolParamResult>;
5380
+ setNetworkParam: TaskFn<XcpngSetNetworkParamParams, XcpngSetNetworkParamResult>;
5381
+ setSrParam: TaskFn<XcpngSetSrParamParams, XcpngSetSrParamResult>;
5382
+ plugPif: TaskFn<XcpngPlugPifParams, XcpngPlugPifResult>;
5383
+ pifScan: TaskFn<XcpngPifScanParams, XcpngPifScanResult>;
5384
+ unplugPif: TaskFn<XcpngUnplugPifParams, XcpngUnplugPifResult>;
5385
+ setPifParam: TaskFn<XcpngSetPifParamParams, XcpngSetPifParamResult>;
5386
+ rebootVm: TaskFn<XcpngRebootVmParams, XcpngRebootVmResult>;
5387
+ findTemplate: TaskFn<XcpngFindTemplateParams, XcpngFindTemplateResult>;
5388
+ findVdi: TaskFn<XcpngFindVdiParams, XcpngFindVdiResult>;
5389
+ findVm: TaskFn<XcpngFindVmParams, XcpngFindVmResult>;
5390
+ findOrCreateIsoSr: TaskFn<XcpngFindOrCreateIsoSrParams, XcpngFindOrCreateIsoSrResult>;
5391
+ findStorageRepository: TaskFn<XcpngFindStorageRepositoryParams, XcpngFindStorageRepositoryResult>;
5392
+ findNetwork: TaskFn<XcpngFindNetworkParams, XcpngFindNetworkResult>;
5393
+ importIso: TaskFn<XcpngImportIsoParams, XcpngImportIsoResult>;
5394
+ provisionVmFromIso: TaskFn<XcpngProvisionVmFromIsoParams, XcpngProvisionVmFromIsoResult>;
5395
+ provisionVm: TaskFn<XcpngProvisionVmParams, XcpngProvisionVmResult>;
5396
+ uploadIso: TaskFn<XcpngUploadIsoParams, XcpngUploadIsoResult>;
5397
+ listStorageRepositories: TaskFn<XcpngListStorageRepositoriesParams, XcpngListStorageRepositoriesResult>;
5398
+ listNetworks: TaskFn<XcpngListNetworksParams, XcpngListNetworksResult>;
5399
+ listTemplates: TaskFn<XcpngListTemplatesParams, XcpngListTemplatesResult>;
5400
+ listVbds: TaskFn<XcpngListVbdsParams, XcpngListVbdsResult>;
5401
+ listVifs: TaskFn<XcpngListVifsParams, XcpngListVifsResult>;
5402
+ listPifs: TaskFn<XcpngListPifsParams, XcpngListPifsResult>;
5403
+ listVdis: TaskFn<XcpngListVdisParams, XcpngListVdisResult>;
5404
+ importVdi: TaskFn<XcpngImportVdiParams, XcpngImportVdiResult>;
5405
+ listVms: TaskFn<XcpngListVmsParams, XcpngListVmsResult>;
5406
+ resizeVdi: TaskFn<XcpngResizeVdiParams, XcpngResizeVdiResult>;
5407
+ resizeVmCpus: TaskFn<XcpngResizeVmCpusParams, XcpngResizeVmCpusResult>;
5408
+ resizeVmMemory: TaskFn<XcpngResizeVmMemoryParams, XcpngResizeVmMemoryResult>;
5409
+ removeDisk: TaskFn<XcpngRemoveDiskParams, XcpngRemoveDiskResult>;
5410
+ revertSnapshot: TaskFn<XcpngRevertSnapshotParams, XcpngRevertSnapshotResult>;
5411
+ setSnapshotParam: TaskFn<XcpngSetSnapshotParamParams, XcpngSetSnapshotParamResult>;
5412
+ setBootOrder: TaskFn<XcpngSetBootOrderParams, XcpngSetBootOrderResult>;
5413
+ setVmResources: TaskFn<XcpngSetVmResourcesParams, XcpngSetVmResourcesResult>;
5414
+ suspendVm: TaskFn<XcpngSuspendVmParams, XcpngSuspendVmResult>;
5415
+ resumeVm: TaskFn<XcpngResumeVmParams, XcpngResumeVmResult>;
5416
+ unplugVbd: TaskFn<XcpngUnplugVbdParams, XcpngUnplugVbdResult>;
5417
+ snapshotVm: TaskFn<XcpngSnapshotVmParams, XcpngSnapshotVmResult>;
5418
+ startVm: TaskFn<XcpngStartVmParams, XcpngStartVmResult>;
5419
+ stopVm: TaskFn<XcpngStopVmParams, XcpngStopVmResult>;
5420
+ getVmInfo: TaskFn<XcpngGetVmInfoParams, XcpngGetVmInfoResult>;
5421
+ listAttachedDisks: TaskFn<XcpngListAttachedDisksParams, XcpngListAttachedDisksResult>;
5422
+ };
5423
+
5424
+ declare namespace xcpng {
5425
+ export { _default$7 as addDisk, _default$8 as attachIso, _default$9 as attachNetworkInterface, _default$a as attachVdi, _default$e as cleanupConfigDrive, _default$I as clearMessages, _default$h as cloneTemplate, _default$l as convertTemplateToVm, _default$t as copyVdi, _default$g as createBond, _default$d as createConfigDrive, _default$c as createNetwork, _default$S as createPbd, _default$C as createSr, _default$b as createTemplate, _default$i as createTemplateFromVdi, _default$j as createVdi, _default$k as createVm, _default$6 as default, _default$n as destroyBond, _default$o as destroyIsoSr, _default$q as destroyNetwork, _default$T as destroyPbd, _default$m as destroySnapshot, _default$D as destroySr, _default$p as destroyTemplate, _default$r as destroyVdi, _default$s as destroyVm, _default$f as detachCdMedia, _default$z as detachIso, _default$A as detachNetworkInterface, _default$B as detachVdi, _default$M as disableHost, _default$L as enableHost, _default$P as evacuateHost, _default$u as exportVdi, _default$J as findHost, _default$19 as findNetwork, _default$17 as findOrCreateIsoSr, _default$Q as findPbd, _default$W as findPool, _default$18 as findStorageRepository, _default$14 as findTemplate, _default$15 as findVdi, _default$16 as findVm, _default$F as forgetSr, _default$1z as getVmInfo, _default$1a as importIso, _default$1j as importVdi, _default$E as introduceSr, _default$1C as listAttachedDisks, _default$K as listHosts, _default$H as listMessages, _default$1f as listNetworks, _default$R as listPbds, _default$1h as listPifs, _default$X as listPools, _default$G as listSnapshots, _default$1e as listStorageRepositories, _default$1g as listTemplates, _default$1B as listVbds, _default$1i as listVdis, _default$1A as listVifs, _default$1k as listVms, _default$10 as pifScan, _default$U as plugPbd, _default$$ as plugPif, _default$1c as provisionVm, _default$1b as provisionVmFromIso, _default$N as rebootHost, _default$13 as rebootVm, _default$1o as removeDisk, _default$1l as resizeVdi, _default$1m as resizeVmCpus, _default$1n as resizeVmMemory, _default$1u as resumeVm, _default$1p as revertSnapshot, _default$1r as setBootOrder, _default$Z as setNetworkParam, _default$12 as setPifParam, _default$Y as setPoolParam, _default$1q as setSnapshotParam, _default$_ as setSrParam, _default$1s as setVmResources, _default$O as shutdownHost, _default$1w as snapshotVm, _default$1x as startVm, _default$1y as stopVm, _default$1t as suspendVm, _default$V as unplugPbd, _default$11 as unplugPif, _default$1v as unplugVbd, _default$1d as uploadIso, _default$v as vmCopy, _default$x as vmExport, _default$y as vmImport, _default$w as vmMigrate };
5426
+ }
5427
+
5428
+ interface YumAddRepositoryParams {
5429
+ content: string;
5430
+ name: string;
5431
+ /** Run commands with sudo (default true) */
5432
+ sudo?: boolean;
5433
+ }
5434
+ interface YumAddRepositoryResult {
5435
+ success: boolean;
5436
+ error?: string;
5437
+ }
5438
+ declare const _default$5: TaskFn<YumAddRepositoryParams, YumAddRepositoryResult>;
5439
+
5440
+ declare namespace yum {
5441
+ export { _default$5 as add_repository };
5442
+ }
5443
+
5444
+ interface DownloadParams {
5445
+ url: string;
5446
+ dest: string;
5447
+ mode?: string | number;
5448
+ /** Run commands with sudo (default false) */
5449
+ sudo?: boolean;
5450
+ }
5451
+ interface DownloadResult {
5452
+ success: boolean;
5453
+ path?: string;
5454
+ error?: string;
5455
+ }
5456
+ declare const _default$4: TaskFn<DownloadParams, DownloadResult>;
5457
+
5458
+ interface NetworkInterface {
5459
+ name: string;
5460
+ state: string;
5461
+ mac?: string;
5462
+ ipv4?: {
5463
+ address: string;
5464
+ prefix: number;
5465
+ };
5466
+ ipv6?: {
5467
+ address: string;
5468
+ prefix: number;
5469
+ };
5470
+ ipv4_addresses?: Array<{
5471
+ address: string;
5472
+ prefix: number;
5473
+ }>;
5474
+ ipv6_addresses?: Array<{
5475
+ address: string;
5476
+ prefix: number;
5477
+ }>;
5478
+ mtu?: string;
5479
+ type?: string;
5480
+ }
5481
+ interface InterfacesParams {
5482
+ /** Run commands with sudo (default false) */
5483
+ sudo?: boolean;
5484
+ }
5485
+ interface InterfacesResult {
5486
+ success: boolean;
5487
+ interfaces?: NetworkInterface[];
5488
+ error?: string;
5489
+ }
5490
+ declare const _default$3: TaskFn<InterfacesParams, InterfacesResult>;
5491
+
5492
+ declare namespace net {
5493
+ export { _default$4 as download, _default$3 as interfaces };
5494
+ }
5495
+
5496
+ interface NftablesApplyParams {
5497
+ config: string;
5498
+ }
5499
+ interface NftablesApplyResult {
5500
+ success: boolean;
5501
+ error?: string;
5502
+ }
5503
+
5504
+ declare const _default$2: {
5505
+ apply: TaskFn<NftablesApplyParams, NftablesApplyResult>;
5506
+ };
5507
+
5508
+ declare namespace nftables {
5509
+ export { _default$2 as default };
5510
+ }
5511
+
5512
+ interface FirewalldDisableResult {
5513
+ success: boolean;
5514
+ error?: string;
5515
+ }
5516
+
5517
+ declare const _default$1: {
5518
+ disable: TaskFn<ObjectType, FirewalldDisableResult>;
5519
+ };
5520
+
5521
+ declare namespace firewalld {
5522
+ export { _default$1 as default };
5523
+ }
5524
+
5525
+ declare const _default: {
5526
+ echo: TaskFn<EchoParams, EchoResult>;
5527
+ env: TaskFn<EnvParams, EnvResult>;
5528
+ whoami: TaskFn<WhoamiParams, WhoamiResult>;
5529
+ dir: typeof dir;
5530
+ file: typeof file;
5531
+ git: typeof git;
5532
+ group: typeof group;
5533
+ host: typeof host;
5534
+ pkg: typeof pkg;
5535
+ k3s: typeof k3s;
5536
+ docker: typeof docker;
5537
+ ssh: typeof ssh;
5538
+ sudoers: typeof sudoers;
5539
+ process: typeof process;
5540
+ system: typeof system;
5541
+ systemd: typeof systemd;
5542
+ template: typeof template;
5543
+ ufw: typeof ufw;
5544
+ user: typeof user;
5545
+ xcpng: typeof xcpng;
5546
+ apt: typeof index$3;
5547
+ yum: typeof yum;
5548
+ net: typeof net;
5549
+ nftables: typeof nftables;
5550
+ firewalld: typeof firewalld;
5551
+ };
5552
+
5553
+ declare class RemoteRuntime implements IRuntime {
5554
+ private sftpClientInstance?;
5555
+ readonly app: App;
5556
+ readonly host: Host;
5557
+ readonly interactionHandler: InteractionHandler;
5558
+ private sshSession;
5559
+ constructor(app: App, host: Host, interactionHandler?: InteractionHandler);
5560
+ get tmpDirRootPath(): Path;
5561
+ getPassword(): Promise<string | undefined>;
5562
+ getSecret(name: string): Promise<string | undefined>;
5563
+ getTmpDir(): Path;
5564
+ getTmpFile(prefix?: string | undefined, postfix?: string | undefined, dir?: Path | undefined): Path;
5565
+ inventory(tags: string[]): Host[];
5566
+ selectedInventory(tags?: string[]): Host[];
5567
+ connect(): Promise<boolean>;
5568
+ getSftpClient(): Promise<any>;
5569
+ executeCommand(command: Command, options?: {
5570
+ stdin?: string | Buffer;
5571
+ pty?: boolean;
5572
+ interactionHandler?: InteractionHandler;
5573
+ }): Promise<Command | Error>;
5574
+ disconnect(): Promise<void>;
5575
+ invokeRootTask<TParams extends TaskParams, TReturn extends RunFnReturnValue>(taskFnDefinition: TaskFn<TParams, TReturn>, params: TParams): Promise<IInvocation>;
5576
+ }
1778
5577
 
1779
- export { App, CHECKMARK, type ChgrpParams, type ChgrpResult, type ChmodParams, type ChmodResult, type ChownParams, type ChownResult, Cli, CommandResult, type EnvVarObj, type FileSystemOperations$1 as FileSystemOperations, Host, type IInvocation, type IRuntime, type InputMap, Invocation, LocalRuntime, type LogLevel, type ObjectType, type OsDetailsResult, type PkgInfoParams, type PkgInfoResult, type PkgInstallParams, type PkgInstallResult, type PkgIsInstalledParams, type PkgIsInstalledResult, type PkgRemoveParams, type PkgRemoveResult, type PkgUpdateParams, type PkgUpdateResult, type RebootIfNeededParams, type RebootIfNeededResult, type RebootNeededParams, type RebootNeededResult, type RebootParams, type RebootResult, RemoteRuntime, type RunFn, type RunFnReturnValue, SUDO_PROMPT_REGEX, type ShutdownParams, type ShutdownResult, Task, type TaskContext, type TaskFn, type TaskParams, type TaskPartialFn, Verbosity, XMARK, _default as core, task, withSudo };
5578
+ export { type AddUsersParams, type AddUsersResult, App, CHECKMARK, type ChgrpParams, type ChgrpResult, type ChmodParams, type ChmodResult, type ChownParams, type ChownResult, Cli, CommandResult, type DockerInstallParams, type DockerInstallResult, type DockerRunContainerParams, type DockerRunContainerResult, type DockerRunDetachedParams, type DockerRunDetachedResult, type EnvVarObj, type ExecuteResult, type FileSystemOperations$1 as FileSystemOperations, Host, type IInvocation, type IRuntime, type InputMap, type InstallComposeParams, type InstallComposeResult, Invocation, LocalRuntime, type LogLevel, type ObjectType, type OsDetailsResult, type PkgInfoParams, type PkgInfoResult, type PkgInstallParams, type PkgInstallResult, type PkgIsInstalledParams, type PkgIsInstalledResult, type PkgRemoveParams, type PkgRemoveResult, type PkgUpdateParams, type PkgUpdateResult, type RebootIfNeededParams, type RebootIfNeededResult, type RebootNeededParams, type RebootNeededResult, type RebootParams, type RebootResult, RemoteRuntime, type RunFn, type RunFnReturnValue, SUDO_PROMPT_REGEX, type ShutdownParams, type ShutdownResult, Task, type TaskContext, type TaskFn, type TaskParams, type TaskPartialFn, Verbosity, XMARK, type XcpngAddDiskParams, type XcpngAddDiskResult, type XcpngAttachIsoParams, type XcpngAttachIsoResult, type XcpngAttachNetworkInterfaceParams, type XcpngAttachNetworkInterfaceResult, type XcpngAttachVdiParams, type XcpngAttachVdiResult, type XcpngAttachedDisk, type XcpngCleanupConfigDriveParams, type XcpngCleanupConfigDriveResult, type XcpngCleanupConfigDriveStep, type XcpngClearMessagesParams, type XcpngClearMessagesResult, type XcpngCloneTemplateParams, type XcpngCloneTemplateResult, type XcpngConvertTemplateToVmParams, type XcpngConvertTemplateToVmResult, type XcpngCopyVdiParams, type XcpngCopyVdiResult, type XcpngCreateBondParams, type XcpngCreateBondResult, type XcpngCreateConfigDriveParams, type XcpngCreateConfigDriveResult, type XcpngCreateConfigDriveStep, type XcpngCreatePbdParams, type XcpngCreatePbdResult, type XcpngCreateSrParams, type XcpngCreateSrResult, type XcpngCreateTemplateFromVdiParams, type XcpngCreateTemplateFromVdiResult, type XcpngCreateTemplateFromVdiStep, type XcpngCreateTemplateParams, type XcpngCreateTemplateResult, type XcpngCreateVdiParams, type XcpngCreateVdiResult, type XcpngCreateVmParams, type XcpngCreateVmResult, type XcpngDestroyBondParams, type XcpngDestroyBondResult, type XcpngDestroyIsoSrParams, type XcpngDestroyIsoSrResult, type XcpngDestroyPbdParams, type XcpngDestroyPbdResult, type XcpngDestroySnapshotParams, type XcpngDestroySnapshotResult, type XcpngDestroySrParams, type XcpngDestroySrResult, type XcpngDestroyTemplateParams, type XcpngDestroyTemplateResult, type XcpngDestroyVdiParams, type XcpngDestroyVdiResult, type XcpngDestroyVmParams, type XcpngDestroyVmResult, type XcpngDetachCdMediaParams, type XcpngDetachCdMediaResult, type XcpngDetachCdMediaStep, type XcpngDetachIsoParams, type XcpngDetachIsoResult, type XcpngDetachNetworkInterfaceParams, type XcpngDetachNetworkInterfaceResult, type XcpngDetachVdiParams, type XcpngDetachVdiResult, type XcpngDisableHostParams, type XcpngDisableHostResult, type XcpngEnableHostParams, type XcpngEnableHostResult, type XcpngExportVdiParams, type XcpngExportVdiResult, type XcpngFindHostParams, type XcpngFindHostResult, type XcpngFindNetworkParams, type XcpngFindNetworkResult, type XcpngFindOrCreateIsoSrParams, type XcpngFindOrCreateIsoSrResult, type XcpngFindPbdParams, type XcpngFindPbdResult, type XcpngFindPoolParams, type XcpngFindPoolResult, type XcpngFindStorageRepositoryParams, type XcpngFindStorageRepositoryResult, type XcpngFindTemplateParams, type XcpngFindTemplateResult, type XcpngFindVdiParams, type XcpngFindVdiResult, type XcpngFindVmParams, type XcpngFindVmResult, type XcpngForgetSrParams, type XcpngForgetSrResult, type XcpngGetVmInfoParams, type XcpngGetVmInfoResult, type XcpngImportIsoParams, type XcpngImportIsoResult, type XcpngImportVdiParams, type XcpngImportVdiResult, type XcpngIntroduceSrParams, type XcpngIntroduceSrResult, type XcpngListAttachedDisksParams, type XcpngListAttachedDisksResult, type XcpngListHostsParams, type XcpngListHostsResult, type XcpngListMessagesParams, type XcpngListMessagesResult, type XcpngListNetworksParams, type XcpngListNetworksResult, type XcpngListPbdsParams, type XcpngListPbdsResult, type XcpngListPoolsParams, type XcpngListPoolsResult, type XcpngListSnapshotsParams, type XcpngListSnapshotsResult, type XcpngListStorageRepositoriesParams, type XcpngListStorageRepositoriesResult, type XcpngListTemplatesParams, type XcpngListTemplatesResult, type XcpngListVbdsParams, type XcpngListVbdsResult, type XcpngListVdisParams, type XcpngListVdisResult, type XcpngListVmsParams, type XcpngListVmsResult, type XcpngPifScanParams, type XcpngPifScanResult, type XcpngPlugPbdParams, type XcpngPlugPbdResult, type XcpngPlugPifParams, type XcpngPlugPifResult, type XcpngProvisionVmFromIsoParams, type XcpngProvisionVmFromIsoResult, type XcpngProvisionVmFromIsoStep, type XcpngProvisionVmParams, type XcpngProvisionVmResult, type XcpngProvisionVmStep, type XcpngRebootVmParams, type XcpngRebootVmResult, type XcpngRemoveDiskParams, type XcpngRemoveDiskResult, type XcpngResizeVdiParams, type XcpngResizeVdiResult, type XcpngResizeVmCpusParams, type XcpngResizeVmCpusResult, type XcpngResizeVmMemoryParams, type XcpngResizeVmMemoryResult, type XcpngResumeVmParams, type XcpngResumeVmResult, type XcpngRevertSnapshotParams, type XcpngRevertSnapshotResult, type XcpngSetBootOrderParams, type XcpngSetBootOrderResult, type XcpngSetNetworkParamParams, type XcpngSetNetworkParamResult, type XcpngSetPifParamParams, type XcpngSetPifParamResult, type XcpngSetPoolParamParams, type XcpngSetPoolParamResult, type XcpngSetSnapshotParamParams, type XcpngSetSnapshotParamResult, type XcpngSetSrParamParams, type XcpngSetSrParamResult, type XcpngSetVmResourcesParams, type XcpngSetVmResourcesResult, type XcpngSnapshotVmParams, type XcpngSnapshotVmResult, type XcpngStartVmParams, type XcpngStartVmResult, type XcpngStopVmParams, type XcpngStopVmResult, type XcpngSuspendVmParams, type XcpngSuspendVmResult, type XcpngUnplugPbdParams, type XcpngUnplugPbdResult, type XcpngUnplugPifParams, type XcpngUnplugPifResult, type XcpngUnplugVbdParams, type XcpngUnplugVbdResult, type XcpngUploadIsoHostResult, type XcpngUploadIsoParams, type XcpngUploadIsoResult, type XcpngVmCopyParams, type XcpngVmCopyResult, type XcpngVmExportParams, type XcpngVmExportResult, type XcpngVmImportParams, type XcpngVmImportResult, type XcpngVmInfo, type XcpngVmMigrateParams, type XcpngVmMigrateResult, _default as core, task, withSudo };