import { IShipRequest, IShipResponse, IShipFeedback, ShipErrorCode, IShipError, ShipMessage, calculateShipScore, getShipGrade, IShipScore } from './types.mjs'; export { AIModel, BadgeStyle, CONFORMANCE_REQUIREMENTS, CertificationLevel, ConfidenceLevel, ConformanceLevel, IBadgeConfig, IBaseMessage, ICertification, IConfidenceAssessment, IConfidenceRequest, IConformanceRequirements, IContext, IContextAssessment, IContextConstraints, IEfficiencyMetrics, IErrorPattern, IFileFocus, IFileInfo, IFocusAssessment, IFocusDirectives, IFocusFeedback, ILearningSignals, IOptimizedContext, IRecommendation, IRiskFactor, ISemanticCoverage, IShipErrorInfo, ISuccessPattern, ITaskOutcome, ITemporalContext, Language, RetryStrategy, RiskTolerance, SHIP_GRADE_THRESHOLDS, ShipBadgeType, ShipMessageType, ShipVersion, generateBadgeMarkdown, generateBadgeUrl, getCertificationLevel } from './types.mjs'; /** * SHIP Protocol - Success Heuristics for Intelligent Programming * * The industry standard for AI coding agent reliability. * * @packageDocumentation * @module @vibeatlas/ship-protocol * @version 1.0.0 * @see https://ship.vibeatlas.dev */ /** * Current SHIP Protocol version */ declare const SHIP_VERSION: "1.0"; /** * SHIP Protocol specification URL */ declare const SHIP_SPEC_URL = "https://ship.vibeatlas.dev/spec/v1.0"; /** * SHIP Score weight distribution */ declare const SHIP_WEIGHTS: { readonly confidence: 0.4; readonly focus: 0.3; readonly context: 0.2; readonly efficiency: 0.1; }; /** * Generate a UUID v4 */ declare function generateMessageId(): string; /** * Get current ISO 8601 timestamp */ declare function getTimestamp(): string; /** * Create a SHIP Request message */ declare function createShipRequest(context: IShipRequest['context'], options?: Partial>): IShipRequest; /** * Create a SHIP Response message */ declare function createShipResponse(requestId: string, data: Omit): IShipResponse; /** * Create a SHIP Feedback message */ declare function createShipFeedback(requestId: string, outcome: IShipFeedback['outcome'], options?: Partial>): IShipFeedback; /** * Create a SHIP Error message */ declare function createShipError(requestId: string, code: ShipErrorCode, message: string, details?: Record): IShipError; /** * Type guard for SHIP Request */ declare function isShipRequest(msg: ShipMessage): msg is IShipRequest; /** * Type guard for SHIP Response */ declare function isShipResponse(msg: ShipMessage): msg is IShipResponse; /** * Type guard for SHIP Feedback */ declare function isShipFeedback(msg: ShipMessage): msg is IShipFeedback; /** * Type guard for SHIP Error */ declare function isShipError(msg: ShipMessage): msg is IShipError; /** * Validate a SHIP message */ declare function validateShipMessage(msg: unknown): { valid: boolean; errors: string[]; }; /** * Interpretation of SHIP Score */ interface IScoreInterpretation { score: number; grade: IShipScore['grade']; summary: string; reliability: string; recommendation: string; } /** * Get human-readable interpretation of SHIP Score */ declare function interpretShipScore(score: number): IScoreInterpretation; /** * SHIP Badge service base URL */ declare const BADGE_SERVICE_URL = "https://ship.vibeatlas.dev/badge"; /** * Generate SHIP Score badge URL */ declare function getShipScoreBadgeUrl(score: number, style?: 'flat' | 'flat-square' | 'plastic' | 'for-the-badge'): string; /** * Generate Shields.io compatible badge URL */ declare function getShieldsIoBadgeUrl(score: number, style?: 'flat' | 'flat-square' | 'plastic' | 'for-the-badge'): string; /** * Quick SHIP Score calculator for simple cases */ declare function quickShipScore(params: { /** Task complexity (1-10) */ complexity: number; /** Context relevance (0-1) */ contextRelevance: number; /** Historical success rate (0-1) */ historyRate?: number; /** Token efficiency (0-1) */ tokenEfficiency?: number; }): IShipScore; declare const _default: { SHIP_VERSION: "1.0"; SHIP_SPEC_URL: string; SHIP_WEIGHTS: { readonly confidence: 0.4; readonly focus: 0.3; readonly context: 0.2; readonly efficiency: 0.1; }; BADGE_SERVICE_URL: string; createShipRequest: typeof createShipRequest; createShipResponse: typeof createShipResponse; createShipFeedback: typeof createShipFeedback; createShipError: typeof createShipError; isShipRequest: typeof isShipRequest; isShipResponse: typeof isShipResponse; isShipFeedback: typeof isShipFeedback; isShipError: typeof isShipError; validateShipMessage: typeof validateShipMessage; calculateShipScore: typeof calculateShipScore; getShipGrade: typeof getShipGrade; interpretShipScore: typeof interpretShipScore; quickShipScore: typeof quickShipScore; getShipScoreBadgeUrl: typeof getShipScoreBadgeUrl; getShieldsIoBadgeUrl: typeof getShieldsIoBadgeUrl; generateMessageId: typeof generateMessageId; getTimestamp: typeof getTimestamp; }; export { BADGE_SERVICE_URL, type IScoreInterpretation, IShipError, IShipFeedback, IShipRequest, IShipResponse, IShipScore, SHIP_SPEC_URL, SHIP_VERSION, SHIP_WEIGHTS, ShipErrorCode, ShipMessage, calculateShipScore, createShipError, createShipFeedback, createShipRequest, createShipResponse, _default as default, generateMessageId, getShieldsIoBadgeUrl, getShipGrade, getShipScoreBadgeUrl, getTimestamp, interpretShipScore, isShipError, isShipFeedback, isShipRequest, isShipResponse, quickShipScore, validateShipMessage };