@devexcelsior/inference-instruction-kit
Version:
11 lines (10 loc) • 506 B
JavaScript
;
// Formerly © 2025 Curt Puckett / DevExcelsior – all rights waived under the Unlicense.
// This code is now public domain. No rights reserved. No attribution required.
Object.defineProperty(exports, "__esModule", { value: true });
exports.validateInstruction = validateInstruction;
function validateInstruction(payload) {
return (typeof payload === 'object' &&
['PATCH', 'ROLLBACK', 'RETRY', 'ESCALATE'].includes(payload.type) &&
typeof payload.target === 'string');
}