UNPKG

@webdevtoday/grok-cli

Version:

A sophisticated CLI tool for interacting with xAI Grok 4, featuring conversation history, file reference, custom commands, memory system, and genetic development workflows

45 lines 1.35 kB
"use strict"; /** * Core type definitions for Grok CLI */ Object.defineProperty(exports, "__esModule", { value: true }); exports.McpError = exports.HookError = exports.PermissionError = exports.ConfigurationError = exports.GrokError = void 0; // Error types class GrokError extends Error { constructor(message, code, details) { super(message); this.code = code; this.details = details; this.name = 'GrokError'; } } exports.GrokError = GrokError; class ConfigurationError extends GrokError { constructor(message, details) { super(message, 'CONFIGURATION_ERROR', details); this.name = 'ConfigurationError'; } } exports.ConfigurationError = ConfigurationError; class PermissionError extends GrokError { constructor(message, details) { super(message, 'PERMISSION_ERROR', details); this.name = 'PermissionError'; } } exports.PermissionError = PermissionError; class HookError extends GrokError { constructor(message, details) { super(message, 'HOOK_ERROR', details); this.name = 'HookError'; } } exports.HookError = HookError; class McpError extends GrokError { constructor(message, details) { super(message, 'MCP_ERROR', details); this.name = 'McpError'; } } exports.McpError = McpError; //# sourceMappingURL=index.js.map