script improvements
All checks were successful
Build and Deploy MITM Webserver / build (push) Successful in 9s

This commit is contained in:
2026-03-01 10:44:58 +01:00
parent 0dff3ade09
commit ed54050d6b
4 changed files with 512 additions and 163 deletions

View File

@@ -3,13 +3,6 @@ export type ScriptInfo = {
path: string;
};
export type ScriptUploadResponse = ScriptInfo & {
pip?: {
stdout?: string;
stderr?: string;
} | null;
};
export type UnitParsed = {
service: string;
exec_start?: string | null;
@@ -35,6 +28,18 @@ export type StatusForNameResponse = {
mappings: UnitMapping[];
};
export type ScriptWithStatus = ScriptInfo & {
mappings: UnitMapping[];
requirements_exists: boolean;
};
export type ScriptUploadResponse = ScriptInfo & {
pip?: {
stdout?: string;
stderr?: string;
} | null;
};
export type OperationResult = {
status: string;
name: string;
@@ -58,3 +63,20 @@ export type EnableRequest = {
extra_args?: string | null;
enable_at_boot?: boolean | null;
};
// Response shape for requirements upload (pip output)
export type RequirementsUploadResult = {
pip: {
stdout?: string;
stderr?: string;
};
};
// Response shape for requirements delete
export type RequirementsDeleteResult = {
removed: {
requirements_removed: boolean;
venv_removed: boolean;
};
errors?: string[];
};