UNPKG

@toolprint/hypertool-mcp

Version:

HyperTool MCP proxy server for routing requests between clients and multiple underlying MCP servers

44 lines • 1.98 kB
/** * TypeScript interfaces and types for the persona content pack system * * This module defines all the core interfaces required for managing persona configurations, * including toolset definitions, validation, and lifecycle management. * * @fileoverview Core persona system types and interfaces */ /** * Persona system error codes * * Enumeration of all possible error conditions that can occur * during persona operations. */ export var PersonaErrorCode; (function (PersonaErrorCode) { PersonaErrorCode["PERSONA_NOT_FOUND"] = "PERSONA_NOT_FOUND"; PersonaErrorCode["INVALID_SCHEMA"] = "INVALID_SCHEMA"; PersonaErrorCode["VALIDATION_FAILED"] = "VALIDATION_FAILED"; PersonaErrorCode["ACTIVATION_FAILED"] = "ACTIVATION_FAILED"; PersonaErrorCode["TOOLSET_NOT_FOUND"] = "TOOLSET_NOT_FOUND"; PersonaErrorCode["TOOL_RESOLUTION_FAILED"] = "TOOL_RESOLUTION_FAILED"; PersonaErrorCode["MCP_CONFIG_CONFLICT"] = "MCP_CONFIG_CONFLICT"; PersonaErrorCode["FILE_SYSTEM_ERROR"] = "FILE_SYSTEM_ERROR"; PersonaErrorCode["YAML_PARSE_ERROR"] = "YAML_PARSE_ERROR"; PersonaErrorCode["PERMISSION_DENIED"] = "PERMISSION_DENIED"; PersonaErrorCode["DUPLICATE_PERSONA_NAME"] = "DUPLICATE_PERSONA_NAME"; PersonaErrorCode["ARCHIVE_EXTRACTION_FAILED"] = "ARCHIVE_EXTRACTION_FAILED"; })(PersonaErrorCode || (PersonaErrorCode = {})); /** * Persona manager events * * Event names that can be emitted by the persona management system * for state change notifications. */ export var PersonaEvents; (function (PersonaEvents) { PersonaEvents["PERSONA_ACTIVATED"] = "persona:activated"; PersonaEvents["PERSONA_DEACTIVATED"] = "persona:deactivated"; PersonaEvents["PERSONA_DISCOVERED"] = "persona:discovered"; PersonaEvents["PERSONA_VALIDATION_FAILED"] = "persona:validation:failed"; PersonaEvents["PERSONA_TOOLSET_CHANGED"] = "persona:toolset:changed"; })(PersonaEvents || (PersonaEvents = {})); //# sourceMappingURL=types.js.map