UNPKG

@dawans/promptshield

Version:

Secure your LLM stack with enterprise-grade RulePacks for AI safety scanning

22 lines (21 loc) 659 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ListCommandHandler = void 0; const Result_1 = require("../../../shared/types/Result"); /** * Handles list command execution */ class ListCommandHandler { constructor(container) { this.container = container; } async execute(command) { const handler = this.container.resolve('listCommandHandler'); const result = await handler.execute(command); if (result.isErr()) { return (0, Result_1.err)(result.error); } return (0, Result_1.ok)(undefined); } } exports.ListCommandHandler = ListCommandHandler;