feat(daemon): Add UPSD (NUT) protocol support, Proxmox VM shutdown action, pause/resume monitoring, and network-loss/unreachable handling; bump config version to 4.2

This commit is contained in:
2026-02-20 11:51:59 +00:00
parent 782c8c9555
commit 42b8eaf6d2
30 changed files with 2183 additions and 697 deletions

View File

@@ -10,6 +10,7 @@ import type { Action, IActionConfig, IActionContext } from './base-action.ts';
import { ShutdownAction } from './shutdown-action.ts';
import { WebhookAction } from './webhook-action.ts';
import { ScriptAction } from './script-action.ts';
import { ProxmoxAction } from './proxmox-action.ts';
// Re-export types for convenience
export type { IActionConfig, IActionContext, TPowerStatus } from './base-action.ts';
@@ -18,6 +19,7 @@ export { Action } from './base-action.ts';
export { ShutdownAction } from './shutdown-action.ts';
export { WebhookAction } from './webhook-action.ts';
export { ScriptAction } from './script-action.ts';
export { ProxmoxAction } from './proxmox-action.ts';
/**
* ActionManager - Coordinates action creation and execution
@@ -40,6 +42,8 @@ export class ActionManager {
return new WebhookAction(config);
case 'script':
return new ScriptAction(config);
case 'proxmox':
return new ProxmoxAction(config);
default:
throw new Error(`Unknown action type: ${(config as IActionConfig).type}`);
}