/** * @fileoverview @lushly-dev/afd-core - Core types and utilities for Agent-First Development * * This package provides the foundational types used across all AFD packages: * * - **CommandResult**: Standard result type with UX-enabling fields * - **CommandError**: Actionable error structure * - **CommandDefinition**: Full command schema with handler * - **BatchResult**: Batch execution with aggregated confidence * - **StreamChunk**: Streaming results with progress feedback * - **MCP types**: Model Context Protocol types for agent communication * * @packageDocumentation */ export type { BatchCommand, BatchCommandResult, BatchOptions, BatchRequest, BatchResult, BatchSummary, BatchTiming, BatchWarning, } from './batch.js'; export { calculateBatchConfidence, createBatchRequest, createBatchResult, createFailedBatchResult, isBatchCommand, isBatchRequest, isBatchResult, } from './batch.js'; export { AFD_BOOTSTRAP_COMMAND_NAMES, AFD_BUILTIN_TOOL_NAMES, AFD_CONTEXT_COMMAND_NAMES, AFD_META_TOOL_NAMES, isAfdBuiltinName, } from './builtin-tools.js'; export type { ExecutorOptions, StreamExecutorOptions } from './command-execution.js'; export { executeBatch, executeStream, executionFailure, failedBatchRequest, } from './command-execution.js'; export type { CommandToolMeta } from './command-metadata.js'; export { commandToolMeta } from './command-metadata.js'; export type { CommandContext, CommandDefinition, CommandExample, CommandHandler, CommandMiddleware, CommandParameter, CommandRegistry, CommandRegistryOptions, ExposeOptions, JsonSchema, } from './commands.js'; export { commandsToMcpTools, commandToMcpTool, createCommandRegistry, defaultExpose, isExposedTo, isMcpExposed, validateCommandName, } from './commands.js'; export { AFD_CONTRACT_VERSION } from './contract.js'; export type { CommandError, ErrorCode } from './errors.js'; export { createError, ErrorCodes, internalError, isCommandError, notFoundError, rateLimitError, timeoutError, validationError, wrapError, } from './errors.js'; export type { CreateHandoffOptions, HandoffCredentials, HandoffMetadata, HandoffProtocol, HandoffResult, ReconnectPolicy, } from './handoff.js'; export { createHandoff, defaultReconnectPolicy, getHandoffProtocol, isHandoff, isHandoffCommand, isHandoffProtocol, isReconnectPolicy, } from './handoff.js'; export type { McpClientCapabilities, McpContent, McpError, McpErrorCode, McpId, McpImageContent, McpInitializeParams, McpInitializeResult, McpNotification, McpRequest, McpResourceContent, McpResponse, McpServerCapabilities, McpTextContent, McpTool, McpToolCallParams, McpToolCallResult, McpToolsListResult, } from './mcp.js'; export { createMcpErrorResponse, createMcpRequest, createMcpResponse, isMcpNotification, isMcpRequest, isMcpResponse, McpErrorCodes, textContent, } from './mcp.js'; export type { Alternative, PlanStep, PlanStepStatus, Source, Warning, WarningSeverity, } from './metadata.js'; export { createSource, createStep, createWarning, updateStepStatus, } from './metadata.js'; export type { PipelineAlternative, PipelineCondition, PipelineConditionAnd, PipelineConditionEq, PipelineConditionExists, PipelineConditionGt, PipelineConditionGte, PipelineConditionLt, PipelineConditionLte, PipelineConditionNe, PipelineConditionNot, PipelineConditionOr, PipelineContext, PipelineMetadata, PipelineOptions, PipelineRequest, PipelineResult, PipelineSource, PipelineStep, PipelineWarning, StepConfidence, StepReasoning, StepResult, StepStatus, } from './pipeline.js'; export { aggregatePipelineAlternatives, aggregatePipelineConfidence, aggregatePipelineReasoning, aggregatePipelineSources, aggregatePipelineWarnings, buildConfidenceBreakdown, createPipeline, evaluateCondition, getNestedValue, isAndCondition, isEqCondition, isExistsCondition, isGtCondition, isGteCondition, isLtCondition, isLteCondition, isNeCondition, isNotCondition, isOrCondition, isPipelineCondition, isPipelineRequest, isPipelineResult, isPipelineStep, resolveVariable, resolveVariables, } from './pipeline.js'; export type { CommandExecutor } from './pipeline-executor.js'; export { executePipeline } from './pipeline-executor.js'; export type { CommandResult, ResultMetadata } from './result.js'; export { error, failure, isFailure, isSuccess, success } from './result.js'; export { calculateSimilarity, findSimilarTools, MAX_SIMILARITY_INPUT_LENGTH, truncateName, } from './similarity.js'; export type { CompleteChunk, DataChunk, ErrorChunk, ProgressChunk, StreamableCommand, StreamCallbacks, StreamChunk, StreamOptions, TimeoutController, } from './streaming.js'; export { collectStreamData, consumeStream, createCompleteChunk, createDataChunk, createErrorChunk, createProgressChunk, createProgressChunkWithSteps, createTimeoutController, isCompleteChunk, isDataChunk, isErrorChunk, isProgressChunk, isStreamableCommand, isStreamChunk, } from './streaming.js'; export type { TelemetryEvent, TelemetrySink } from './telemetry.js'; export { createTelemetryEvent, isTelemetryEvent } from './telemetry.js'; //# sourceMappingURL=index.d.ts.map