@juspay/neurolink
Version:
The pipe layer of an AI nervous system: one interface connecting provider neurons to your application, across three inference types — generate, stream and decide. `decide` returns typed, calibrated judgements from a non-generative model (~400ms, ~$0.00002
40 lines (39 loc) • 1.73 kB
TypeScript
/**
* NeuroLink Setup Command - Main Provider Setup Wizard
*
* Provides a beautiful welcome experience for new users and guided
* provider selection, while delegating to existing setup commands.
*/
import type { ProviderConfigOptions, SetupArgs } from "../../types/index.js";
/**
* ProviderConfigOptions for the 21 canonical AIProviderName values the
* interactive wizard above doesn't have a bespoke handleXSetup() for. 8 are
* the JSON-catalog providers (cerebras, cloudflare, fireworks, groq,
* perplexity, sambanova, together-ai, xai — mistral is the 9th catalog
* provider but keeps its own handleMistralSetup() flow above, so it's
* excluded here), spread directly from the catalog JSON via
* buildCatalogConfigOptions(). 10 more reuse the existing createXConfig()
* factories in providerConfig.ts; the remaining 5 (ollama, litellm,
* sagemaker, lm-studio, llamacpp) don't have a factory and are defined
* inline using their real env var names. lm-studio and llamacpp previously
* had createLmStudioConfig()/createLlamaCppConfig() factories, but those
* were removed as dead code in a later cleanup — this mirrors that removal
* rather than re-adding them.
*/
export declare const EXTRA_PROVIDER_CONFIGS: Record<string, ProviderConfigOptions>;
/**
* Main setup command handler
*/
export declare function handleSetup(argv: SetupArgs): Promise<void>;
/**
* Check which providers are already configured
*/
export declare function checkExistingConfigurations(): Promise<string[]>;
/**
* Delegate to existing provider setup commands
*/
export declare function delegateToProviderSetup(providerId: string, flags?: {
check?: boolean;
nonInteractive?: boolean;
}): Promise<void>;