import type * as MarketCommandModule from './command.js' const COMMAND_MODULE_PATH = './command.js' // The refs read: entries for exactly the given name[@version] refs. export { lookupAssets, type AssetRef, type RefsReader } from './refs.js' export type { MarketCommandOptions } from './command.js' // Keep the Node-only CLI graph out of browser consumers of the main API. export async function createMarketCommand(options: MarketCommandModule.MarketCommandOptions = {}) { const command: typeof MarketCommandModule = await import(/* @vite-ignore */ COMMAND_MODULE_PATH) return command.createMarketCommand(options) } // The v1 REST surface (`/api/v1`): routed contract + typed client. export * as v1 from './v1/index.js' export { registerMarketTools, type MarketMcpCapabilities, type MarketMcpOptions, type MarketMcpServer, type MarketMcpToolResult, } from './mcp/index.js' export { cliMarketSkill, mcpMarketSkill } from './skill.generated.js' // Client (an alias of the v1 client) export { downloadAssetZipBytes } from './client.js' export type { MarketClient, MarketClientOptions } from './client.js' // Contract output types export type { Asset, AssetExactResult, AssetFileEntry, AssetFilesResult, AssetInstallMetadata, AssetVersion, AssetSearchResult, PaginatedList, User, GenerateAssetResult, } from './contract.js' export type { AssetVersionRef, AssetExactInput, AssetGenerateInput, AssetImplementation, AssetOwner, AssetProvider, GenerationReceipt, RankedAssetSearchResult, AssetSearchInput, AssetUploadZipInput, } from './asset-implementation.js' export { ASSET_RELEVANCE_SCORE, assetRelevanceScore, installMetadataForProvider, withAssetRelevanceScore, } from './asset-implementation.js' // Resolve export { resolve, ResolutionError } from './resolve.js' export type { ResolvedAsset, ResolveResult } from './resolve.js' // Generate export { startGeneration, pollGeneration, GenerateError } from './generate.js' export type { GenerateInput } from './generate.js' export { GenerationProviderError } from './provider-error.js' // Agent export { agentAndWait, AgentError } from './agent.js' export type { AgentInput } from './agent.js' // Schemas export { ASSET_TYPES, MAX_UPLOAD_ZIP_SIZE_BYTES, assetTypeSchema, semverSchema, assetNameSchema, assetAccessSchema, npmDependenciesSchema, assetDependenciesSchema, assetDependencyAliasSchema, assetDependencyValueSchema, assetDependencyRange, assetDependencyAlias, assetDependencyValue, skillDependenciesSchema, uploadZipSchema, exactAssetSchema, assetVersionsSchema, generateAssetSchema, updateProfileSchema, listAssetsSchema, assetQueriesSchema, agentStartSchema, agentStatusSchema, agentResultAssetSchema, agentResultSchema, agentRunStatusSchema, generatedAssetSchema, generateResponseSchema, generateStatusInputSchema, generateJobStatusSchema, } from './schemas.js' export type { AssetType, AssetAccess, AssetDependencies, AssetDependencyAlias, AssetDependencyValue, AssetVersionListing, AssetVersionsResult, AgentResultAsset, AgentResult, AgentRunStatus, GenerateResponse, GenerateJobStatus, } from './schemas.js' // Constants export { MAX_FILE_SIZE, ALLOWED_EXTENSIONS, ASSET_TYPE_LABELS } from './constants.js' export { packageJsonAssetDependencies, packageJsonAssetDependenciesFromFiles, parsePackageJson, } from './package-json.js' export type { PackageJson } from './package-json.js'