export { LucidlyClient, type LucidlyClientOptions } from "./client.js"; export { VaultModule, type VaultView } from "./vault.js"; export { AccountantModule } from "./accountant.js"; export { TellerModule } from "./teller.js"; export { RolesModule } from "./roles.js"; export { IntegrationsModule, type AllowedCall, type IntegrationState, type IntegrationDescriptor, type EnableOptions, type EnableResult, } from "./integrations.js"; export { StrategyModule, type StrategyAction, type StrategyIntent } from "./strategy.js"; export { QueueModule, type QueueDeployment, type AtomicRequestView, } from "./queue.js"; export { AtomicQueue, LucidlyRedeemSolver } from "./queueArtifacts.js"; export { MonitorModule, type VaultSnapshot, type FlowWindow, type Alert, type AlertThresholds, } from "./monitor.js"; export { NavModule, type NavConfig, type NavHolding, type NavResult, type NavBreakdownItem, } from "./nav.js"; // v2.1 modules export { FactoryV2Module, FACTORY_V2_ADDRESS, FACTORY_V2_ABI, type FactoryV2DeployParams, type FactoryV2DeployResult, } from "./factoryV2.js"; export { RegistryModule, REGISTRY_V2_ADDRESS, REGISTRY_V2_ABI, NO_VAULT_ARG, PolicyStatus, protocolIdOf, argsHashOf, computeTemplateId, type ProtocolEntry, type PolicyTemplate, } from "./registryV2.js"; export { PolicyManagerModule, POLICY_MANAGER_ABI, type PolicyClones, } from "./policyManager.js"; export { IndexerClient, type IndexedVault, type IndexedRateUpdate, type IndexedDeposit, type IndexedShareTransfer, type IndexedPolicyRequest, } from "./indexerClient.js"; export { SimulatorClient, SimulatorError, type SimulatorClientOptions, type SimulatorChainId, type SimLeafCall, type SimPlanStep, type SimulatedReceipt, type SimBalanceDelta, type SimulationTiming, type SimulateRequestV1, type SimulateResponseV1, type SimulateRequestV2, type SimulateResponseV2, type SimulatorStatus, } from "./simulatorClient.js"; // DC-1: strategy corpus — reference strategies the decomposer agent reasons over. export { STRATEGY_CORPUS, STRATEGY_CORPUS_ENTRIES, findStrategyById, findStrategiesByArchetype, findStrategiesByChain, findStrategiesByProtocol, findCrossChainStrategies, corpusStats, type StrategyArchetype, type CorpusLeafFamily, type CorpusLeg, type CorpusBridgeEdge, type CorpusTopology, type CorpusDecision, type CorpusRiskFactors, type CorpusReferenceSource, type CorpusStrategy, type StrategyCorpus, } from "./strategyCorpus.js"; // DC-2.1: decomposition output schema + helpers export { DecompositionResultSchema, DecomposedLeafSchema, DecomposedBridgeEdgeSchema, DecomposedLegSchema, DecompositionConfidenceBreakdownSchema, LeafStatusSchema, recomputeReadiness, lintDecomposition, type DecompositionResult, type DecomposedLeaf, type DecomposedBridgeEdge, type DecomposedLeg, type DecompositionConfidenceBreakdown, type LeafStatus, } from "./decompositionTypes.js"; // DC-2.2: decomposer tool catalog + dispatcher (use these to plug into existing agent loops) export { DECOMPOSER_TOOLS, CORPUS_TOOLS, DISCOVERY_TOOLS, RESEARCH_TOOLS, ONCHAIN_TOOLS, SIMULATOR_TOOLS, dispatchDecomposerTool, type DecomposerToolContext, } from "./decomposerTools.js"; // DC-2.3: the StrategyDecomposer class — the public entrypoint export { StrategyDecomposer, type StrategyDecomposerConfig, type DecomposerResult, type DecomposerToolCallLog, type DecomposerStreamCallbacks, } from "./strategyDecomposer.js"; export { NavPipelineModule, LUCIDLY_NAV_BOT_PER_CHAIN, type NavRow, type NavRowStatus, type NavRunReport, type NavPipelineConfig, } from "./navPipeline.js"; export { ResearchToolsModule, LUCIDLY_RESEARCH_TOOLS, MORPHO_BLUE_PER_CHAIN, morphoMarketId, dispatchLucidlyTool, type ToolDescriptor, type HolderRow, type DepositorRow, type NavPoint, type EnabledPolicy, type ProtocolPolicyStatus, type PolicyRequestRow, type MorphoMarketParams, type MorphoMarketState, type MorphoPosition, type AavePosition, type AaveReserve, type Erc20TokenInfo, } from "./researchTools.js"; export { ResearchAgent, type ResearchAgentConfig, type ResearchAgentResult, type ResearchToolCall, type ChatStreamCallbacks, } from "./researchAgent.js"; // ─── Trail framework (v0.3.0) ──────────────────────────────────────────────── export { Trail, TrailParam, TrailStep, TrailExecution, TrailLeafStep, TrailApiStep, TrailAutomationStep, TrailSubtrailStep, TrailParamType, ChainName as TrailChain, // aliased — SDK already exports ChainName from chains.ts with a smaller set; rename when W1 resumes and we unify chain models parseTrail, safeParseTrail, exprRef, } from "./trail.js"; export { TrailLibrary, type TrailFilter, type TrailLibraryStats } from "./trailLibrary.js"; export { expandTrail, TrailExpansionError, type Catalog, type CatalogEntry, type CatalogQuery, type ExecutionPlan, type ResolvedStep, type ResolvedLeafStep, type ResolvedApiStep, type ResolvedAutomationStep, type ExpandOpts, } from "./trailExpander.js"; export { AutomationRegistry, defaultAutomationRegistry, STARTER_AUTOMATION_SCRIPTS, type AutomationContext, type AutomationScript, type AutomationScriptDescriptor, } from "./automation.js"; export { EnvCredentialsProvider, InMemoryCredentialsProvider, type CredentialsProvider, type VenueCredentials, } from "./credentials.js"; export { STARTER_TRAILS, getStarterTrail } from "./trails/index.js"; export { AnthropicProvider, OpenAICompatProvider, GroqProvider, DeepSeekProvider, OpenAIProvider, type LLMProvider, type LLMCompleteParams, type LLMResponse, type AgentBlock, type AgentMessage, type AgentStopReason, type AnthropicProviderConfig, type OpenAICompatProviderConfig, type GroqProviderConfig, type DeepSeekProviderConfig, type OpenAIProviderConfig, } from "./llm.js"; export { renderDashboard } from "./dashboard.js"; export { LucidlyAgent, parsePrompt, type AgentIntent, type AgentResult } from "./agent.js"; export { SYUSD_ROOT, SYUSD_METADATA, SYUSD_LEAVES, type SyUsdLeaf, syUsdTree, syUsdLeafDigests, syUsdProofFor, findSyUsdLeaf, regenerateSyUsdBaseline, type RegeneratedSyUsd, type RepointedLeaf, } from "./syusd.js"; export { leafHashWithPacked } from "./merkle.js"; export { ERC20_ABI, AAVE_V3_POOL_ABI, UNISWAP_V3_ROUTER_ABI } from "./protocolAbis.js"; export { LucidlyDecoderAndSanitizer, LucidlyFullSyUsdDecoder } from "./decoderArtifacts.js"; export { type ChainName, type DeployParams, type Deployed, type ExchangeRateBounds, type TxResult, type RoleName, Roles, } from "./types.js"; export { CHAINS, resolveChain, resolveToken, tokenDecimals, type ChainConfig, type TokenInfo, } from "./chains.js"; export { type LeafTuple, type MerkleTree, packArgumentAddresses, leafHash, hashPair, buildTree, buildRootFromTuples, proofFor, proofForLeaf, verify, } from "./merkle.js"; export { LucidlyError, LeafNotInRootError, MissingSignerError, UnknownTokenError, NoActiveVaultError, IntegrationUnavailableError, SafetyError, MissingSlippageGuardError, } from "./errors.js"; export { preflightDeploy, formatPreflight, PINNED_BORING_VAULT_COMMIT, type PreflightIssue, type PreflightReport, } from "./safety.js"; // Common token symbols re-exported for convenience (resolve per active chain). export const USDC = "USDC"; export const WETH = "WETH"; export const USDT = "USDT"; export const WSTETH = "WSTETH";