mcp-decisive
Version:
MCP server for WRAP decision-making framework with structured output
32 lines • 1.18 kB
TypeScript
import { Result } from 'neverthrow';
import { type OptionList, type RequestedOption, type OptionListError } from '../term/option.js';
type OptionSelectionEvent = {
type: 'OptionsGenerated';
optionList: OptionList;
};
type OptionsGenerated = Extract<OptionSelectionEvent, {
type: 'OptionsGenerated';
}>;
type RegisterOptionsCommand = (request: RegisterOptionsRequest) => Result<OptionsGenerated, OptionSelectionError>;
type RegisterOptionsRequest = {
options: RequestedOption[];
};
type OptionSelectionError = {
type: 'ValidationFailed';
reason: string;
} | {
type: 'OptionListCreationFailed';
details: OptionListError[];
};
/**
* Option Selection Aggregate - The public interface for option selection commands
*
* @command registerOptions - Register 3-5 options directly
* @utility toErrorMessage - Convert errors to user-friendly strings
*/
export declare const OptionSelectionAggregate: {
readonly registerOptions: RegisterOptionsCommand;
readonly toErrorMessage: (error: OptionSelectionError) => string;
};
export type { OptionsGenerated, RegisterOptionsRequest, OptionSelectionError };
//# sourceMappingURL=option-selection.d.ts.map