/** * `@qodo/sdk` 2.0 — public API surface. * * QAR-native typed bindings. The shape mirrors QAR's envelope vocabulary * one level up; consumers `for await` `client.tasks.start({...})` and * switch on `event.kind`. There is no adapter layer, no `QODO_RUNTIME` * flag, no parallel 1.x client. SDK 1.x lives on `release/1.x`. */ export { QodoClient } from './client/QodoClient.js'; export { TaskClient } from './client/TaskClient.js'; export { ToolClient } from './client/ToolClient.js'; export type { InfoClient } from './client/InfoClient.js'; export type { SpecsClient } from './client/SpecsClient.js'; export type { ManagedToolsClient, InvokeOptions } from './client/ManagedToolsClient.js'; export { PipelineClient, PipelineBuilder } from './client/PipelineClient.js'; export { BulletinClient } from './client/BulletinClient.js'; export { ArtifactsClient } from './client/ArtifactsClient.js'; export { StateClient } from './client/StateClient.js'; export { AgentsClient } from './client/AgentsClient.js'; export { QarRegistryClient } from './client/QarRegistryClient.js'; export type { A2AHitlKind, A2ARegistration, A2ARegistrationConfig, AgentCard, RegisteredA2ARef, } from './client/a2a/registerA2A.js'; export type { AgentSpec, McpConfig, StdioMcpConfig, RemoteStreamableHttpMcpConfig, RemoteSseMcpConfig, UrlOnlyMcpConfig, SdkInProcessMcpConfig, McpInProcessHandler, RegisteredAgentRef, RegisteredMcpRef, RegisterOptions, RegisterMcpOptions, } from './client/QarRegistryClient.js'; export type { ToolListEntry as McpToolListEntry } from './client/mcp/McpClientPool.js'; export { projectMcpTools } from './client/mcp/projection.js'; export type { ProjectionInput, ProjectionResult } from './client/mcp/projection.js'; export { QodoNotImplementedError, QodoClientOptionsError, QodoTransportError, QodoBackpressureError, QodoSpecValidationError, QodoRegistryConflictError, QodoWireValidationError, QodoInlineGraphValidationError, QodoInlineAgentValidationError, QodoAgentSpecRejectedError, QodoServerError, QodoCancelRoutingFailedError, QodoCancelFailedError, QodoTaskNotFoundError, QodoTaskNotWaitingError, QodoAgentReconstructionFailedError, QodoCrossPodResumeAbortedError, QodoDepsConstructionFailedError, QodoMessageHistoryLoadFailedError, QodoHitlPersistFailedError, QodoHitlSubstrateUnavailableError, QodoUnauthorizedResolverError, QodoInvalidResolutionError, QodoGraphSpecRejectedError, QodoUnknownServerError, QodoIdempotencyKeyValidationError, QodoAdmissionStalledError, QodoAdmissionTimeoutError, QodoStreamAbortedError, QodoSessionMismatchError, QodoSessionAlreadyRunningError, QodoColdAddressError, QodoCancelAbortedError, classForServerErrorCode, ToolDeniedError, QodoMcpClientError, QodoMcpToolError, QodoToolError, QodoUnknownMcpError, QodoUnknownMcpToolError, QodoMcpUnavailableError, RequiredGraphSpecError, QodoContentValidationError, } from './client/errors.js'; export type { InlineGraphValidationFailure, InlineAgentSpecIssue, ServerErrorEntry, } from './client/errors.js'; export { collectInlineAgentSpecPreWireIssues } from './qar/agentSpec.js'; export type { InlineAgentSpecValidationIssue } from './qar/agentSpec.js'; export type { ClientOptions, ClientAuth, ClientReconnectOptions, ClientKeepaliveOptions, ClientBackpressureOptions, TaskOptions, ResubscribeOptions, TaskCancelOptions, ToolRespondOptions, } from './client/options.js'; export type { ToolRequestHandler, WireValidationErrorHandler, Subscription, } from './client/ToolClient.js'; export { defineFunctionTool, getFunctionToolHandler, FUNCTION_TOOL_HANDLER_KEY, } from './client/tools/defineFunctionTool.js'; export type { DefineFunctionToolOptions, DefinedFunctionToolDef, FunctionToolHandler, FunctionToolHandlerBag, FunctionToolHandlerContext, FunctionToolHandlerReturn, } from './client/tools/defineFunctionTool.js'; export { agent, outputSchema } from './client/agentBuilder.js'; export type { AgentBuilder, AgentDefinition, OutputSchemaOptions, } from './client/agentBuilder.js'; export { textPart, filePart, imagePart, assertValidContentInput, MAX_CONTENT_PARTS, } from './client/content.js'; export type { FileData, FilePartOptions } from './client/content.js'; export type { ApprovalConfig, ApprovalDecision, ApprovalHandler, ApprovalKind, ApprovalRequest, ApprovalSensitivity, } from './client/tools/approval.js'; export type { WireValidationContext } from './client/errors.js'; export type { TaskCancelResult, TaskStartInput, TaskStartAgentInput, StartWithAgentOptions, TaskStartGraphInput, StartWithGraphOptions, TaskAdmissionResult, TaskHandle, TaskStartIterable, ForceResumeResult, } from './client/TaskClient.js'; export { validateInlineGraphSpec, DEFAULT_INLINE_GRAPH_MAX_DEPTH, } from './client/inlineGraph.js'; export type { InlineGraphValidationOptions } from './client/inlineGraph.js'; export type { ClientObservers } from './client/QodoClient.js'; export type { EventSubscription } from './client/observers.js'; export type { BulletinFilter, BulletinHandler } from './client/BulletinClient.js'; export type { ArtifactFilter, ArtifactHandler } from './client/ArtifactsClient.js'; export type { StateFilter, StateHandler } from './client/StateClient.js'; export type { AgentSpawnFilter, AgentSpawnHandler } from './client/AgentsClient.js'; export { defaultTransportFactory, validateCloseReason, CLOSE_FRAME_REASON_MAX_BYTES, } from './client/transport.js'; export type { WSTransport, WSTransportFactory, WSTransportFactoryArgs, WSUpgradeAgent, WSEventHandlers, ResolvedKeepalive, } from './client/transport.js'; export type { PipelineStepFn, PipelineStepContext, PipelineGateFn, PipelineErrorStrategy, PipelineResult, PipelineStepLog, PipelineStepError, } from './client/PipelineClient.js'; export type { Envelope, EnvelopeBase, EnvelopeKind, EnvelopeVersion, TaskStartEnvelope, TaskContinueEnvelope, TaskCancelEnvelope, TaskCancelingEnvelope, TaskStartedEnvelope, TaskResubscribeEnvelope, TaskDeltaEnvelope, TaskDoneEnvelope, TaskForceResumeEnvelope, TaskForceResumedEnvelope, ToolRequestEnvelope, ToolResponseEnvelope, StateUpdateEnvelope, AgentSpawnEnvelope, ToolActivityEnvelope, BulletinPostEnvelope, ArtifactAddEnvelope, FlowPauseEnvelope, FlowResumeEnvelope, ErrorEnvelope, ClientToServerKind, ServerToClientKind, BidirectionalKind, } from './qar/envelopes.js'; export { CLIENT_TO_SERVER_KINDS, SERVER_TO_CLIENT_KINDS, BIDIRECTIONAL_KINDS, } from './qar/envelopes.js'; export type { TaskEvent, TaskEventKind } from './qar/taskEvents.js'; export type { ClientEvent, ClientEventKind, ClientReconnectingEvent, ClientReconnectedEvent, ClientReconnectFailedEvent, ClientCancelAckedEvent, } from './qar/clientEvents.js'; export { isClientEvent } from './qar/clientEvents.js'; export type { TaskInput, TaskStartByIdPayload, TaskStartWithAgentPayload, TaskStartWithGraphPayload, TaskStartPayload, TaskContinuePayload, TaskCancelPayload, TaskCancelingPayload, TaskStartedPayload, TaskResubscribePayload, TaskDeltaPayload, TaskDonePayload, TaskStatus, TerminusReason, TaskForceResumePayload, TaskForceResumedPayload, SessionState, ContentPart, TextPart, FilePart, ToolCall, HITLBlock, HITLChoiceOption, ToolResponseItem, ToolRequestPayload, ToolResponsePayload, ToolResponseResult, ToolResponseFor, ToolOutcome, StateUpdatePayload, StateUpdateOp, AgentSpawnPayload, SpawnProtocol, ToolActivityPayload, BulletinPostPayload, ArtifactAddPayload, FlowPausePayload, FlowResumePayload, ErrorPayload, } from './qar/payloads.js'; export type { TraceContext } from './qar/trace.js'; export type { JsonValue, JsonObject, JsonArray, JsonPrimitive } from './qar/json.js'; export type { MessageId, SessionId, TaskId, ToolCallId } from './qar/ids.js'; export type { QARInfo, FlagsManifestApply, ModelEntry, ToolEntry, RateLimitEntry, LeanPrincipal, BearerKind, } from './qar/info.js'; export type { ToolCatalog, ToolCatalogEntry, ToolInvokeResult, OperationAccepted, OperationStatusResponse, ToolErrorEnvelope, ToolErrorDetail, ToolApiErrorCode, OperationStatus, } from './qar/tools.js'; export type { InlineAgentSpec, FunctionDef, FunctionToolDef, Instructions, InstructionsPreset, JsonSchemaSpec, OutputSchemaSpec, SkillRef, SpawnableAgentRef, InlineGraphSpec, InlineGraphAgent, InlineGraphAgentStaticRef, InlineGraphEdge, InlineEdgeOnError, InlineGraphRole, InlineGraphEdgeKind, InlineGraphLimits, InlineGraphBudget, InlineTerminationCondition, InlineSubgraphAllocation, InlineHITLMode, InlineSpec, InlineSpecKind, SpecValidationError, SpecValidateResult, VerdictResult, ContentTrustPolicy, ContentTrustMode, McpToolsSelector, McpToolsSelectorAllowBlock, McpToolsSelectorFilter, McpToolOverride, McpToolOverrides, DiscoveredMcpTool, McpToolAnnotations, } from './qar/specs.js'; export { AuthProvider, QodoAuthError } from './auth/index.js'; export type { AuthConfig, AuthSource } from './auth/index.js'; export { SdkTracer, createSdkTracer } from './tracing/index.js'; export type { SdkTracerOptions } from './tracing/index.js'; export { tracePipeline } from './tracing/index.js'; export type { TracePipelineOptions } from './tracing/index.js'; export type { OTelAPI, OTelSpan, OTelTracer, OTelContext, OTelContextAPI, OTelTraceAPI, } from './tracing/index.js'; export { SERVICE_NAME, SERVICE_VERSION, SERVICE_NAMESPACE, SERVICE_NAME_VALUE, SERVICE_NAMESPACE_VALUE, QAR_SESSION_ID, QAR_MESSAGE_ID, QAR_PARENT_MESSAGE_ID, QAR_TASK_ID, QAR_ENVELOPE_KIND, QAR_TOOL_NAME, QAR_TOOL_CALL_ID, QAR_TOOL_ORIGIN, QAR_TOOL_OUTCOME, QAR_NODE_NAME, QAR_MCP_NAME, QAR_MCP_DROP_REASON, QAR_SKILL_NAME, QAR_AGENT_ID, QAR_GRAPH_ENTRY, QAR_GRAPH_DEPTH, QAR_AGENT_KIND, QAR_AGENT_ROLE, QAR_EVALUATOR_VERDICT, QAR_EVALUATOR_CONFIDENCE, GEN_AI_CONVERSATION_ID, GEN_AI_OPERATION_NAME, GEN_AI_OP_INVOKE_AGENT, GEN_AI_OP_EXECUTE_TOOL, SKIPPED_ATTRIBUTES, SPAN_TASK_OBSERVED, SPAN_TASK_START, SPAN_TASK_CONTINUE, SPAN_TASK_CANCEL, SPAN_TASK_RESUBSCRIBE, SPAN_TOOL_REQUEST, SPAN_TOOL_RESPOND, SPAN_TOOL_HANDLER, SPAN_MCP_TOOL_DROPPED, SPAN_CONNECT, SPAN_DISCONNECT, SPAN_PIPELINE, SPAN_PIPELINE_STEP, QAR_PIPELINE_STEP_NAME, QAR_PIPELINE_GATE_PASSED, QAR_PIPELINE_COLLECTED_ERRORS, QAR_PIPELINE_GATED, TOOL_ORIGIN_SDK_SIDE, TOOL_OUTCOME_SUCCESS, TOOL_OUTCOME_ERROR, TOOL_OUTCOME_DENIED, } from './observability/index.js'; export type { SkippedAttribute } from './observability/index.js'; export { TransportMetrics } from './observability/transportMetrics.js'; export type { TransportMetricsSnapshot } from './observability/transportMetrics.js'; export { SkillsManager, SkillNotFoundError, SkillAmbiguousPinError, SkillsBudgetExceededError, QodoSkillError, } from './skills/manager.js'; export type { CatalogSnapshot, ResolvedRequiresCaps, SkillGetOptions, } from './skills/manager.js'; export { isSkillTrusted, SkillsTrustConfigError, sourceIdentityKey, validateTrustedSources, } from './skills/trust.js'; export { activationFailureMessage, lookupFromSnapshot, renderActiveSkillsBlock, resolveActivationGraph, resolveAllActivations, } from './skills/activation.js'; export type { ActivationGraph, ActivationGraphResult, ActiveSkillsRenderResult, MultiActivationResult, SkillLookup, } from './skills/activation.js'; export { renderSlimIndex } from './skills/render.js'; export type { RenderOptions, RenderResult } from './skills/render.js'; export { injectIntoAgentSpec, injectIntoGraphSpec } from './skills/inject.js'; export type { InjectionResult } from './skills/inject.js'; export type { AllowedToolEntry, ParsedSkill, SkillArgument, SkillEmbedder, SkillEvent, SkillEventKind, SkillEventSeverity, SkillFrontmatter, SkillSource, SkillSourceType, SkillSpecifier, SkillTrustTier, SkillsConfig, SkillsEventSink, SkillsPreprocessingConfig, SkillsPreprocessingMode, SkillsRequiresConfig, } from './skills/types.js'; export { DEFAULT_INDEX_CHAR_BUDGET, REQUIRES_DEFAULT_MAX_DEPTH, REQUIRES_DEFAULT_MAX_TRANSITIVE, REQUIRES_DEFAULT_MAX_TRANSITIVE_TOKENS, SLIM_INDEX_ENTRY_BUDGET, SKILL_BODY_HARD_BYTES, } from './skills/types.js'; export { SKILL_EVENT_KINDS, eventSubjectFqn, } from './skills/events.js'; export { parseArgv as parseSkillArgv, substitute as substituteSkillBody, substituteWithArgumentsTrailer as substituteSkillBodyWithTrailer, } from './skills/substitute.js'; export type { SubstitutionContext as SkillSubstitutionContext, SubstitutionResult as SkillSubstitutionResult, SubstitutionWarning as SkillSubstitutionWarning, } from './skills/substitute.js'; export { SkillKit } from './skills/testing/index.js'; export type { SkillKitOptions, SkillKitValidationIssue, SkillKitSnapshot, SkillKitActivationCandidate, SkillKitDiff, } from './skills/testing/index.js'; export { runSkillsCli, defaultCliIo } from './skills/cli/index.js'; export type { CliIo } from './skills/cli/index.js'; export { LOCKFILE_BASENAME as SKILLS_LOCKFILE_BASENAME, LOCKFILE_SCHEMA_VERSION as SKILLS_LOCKFILE_SCHEMA_VERSION, LockfileParseError as SkillsLockfileParseError, LockfileValidationError as SkillsLockfileValidationError, buildLockfile as buildSkillsLockfile, computeSkillHash as computeSkillContentHash, findLockfile as findSkillsLockfile, loadLockfile as loadSkillsLockfile, parseLockfile as parseSkillsLockfile, validateLockfileEntry as validateSkillsLockfileEntry, writeLockfile as writeSkillsLockfile, } from './skills/lockfile.js'; export type { Lockfile as SkillsLockfile, LockfileEntry as SkillsLockfileEntry, LockfileValidation as SkillsLockfileValidation, } from './skills/lockfile.js'; export { QodoSkillsMcpServer, asMcpHandler as asQodoSkillsMcpHandler, QODO_SKILLS_TOOL_NAMES, qodoSkillsFunctionToolDefs, LIST_SKILLS_DEFAULT_LIMIT, resolveSkillFilePath as resolveQodoSkillFilePath, validateRelativePath as validateQodoSkillFilePath, SkillPathError, } from './skills/mcp/index.js'; export type { QodoSkillsToolName, GetSkillArgs, GetSkillFileArgs, ListSkillsArgs, ListSkillsEntry, ListSkillsResponse, McpContent as QodoSkillsMcpContent, McpImageContent as QodoSkillsMcpImageContent, McpTextContent as QodoSkillsMcpTextContent, McpToolResult as QodoSkillsMcpToolResult, QodoSkillsMcpEvent, ResolvedSkillPath as ResolvedQodoSkillFilePath, } from './skills/mcp/index.js'; export { getCurrentVersion } from './version.js'; export type { Flags } from './types.js'; //# sourceMappingURL=index.d.ts.map