chore: include pre-built dist for github install
This commit is contained in:
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
import type { CheckResult } from "../types";
|
||||
export declare function checkConfig(): Promise<CheckResult>;
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
import type { DependencyInfo } from "../types";
|
||||
export declare function checkAstGrepCli(): Promise<DependencyInfo>;
|
||||
export declare function checkAstGrepNapi(): Promise<DependencyInfo>;
|
||||
export declare function checkCommentChecker(): Promise<DependencyInfo>;
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
import type { CheckDefinition } from "../types";
|
||||
import { gatherSystemInfo } from "./system";
|
||||
import { gatherToolsSummary } from "./tools";
|
||||
export type { CheckDefinition };
|
||||
export * from "./model-resolution-types";
|
||||
export { gatherSystemInfo, gatherToolsSummary };
|
||||
export declare function getAllCheckDefinitions(): CheckDefinition[];
|
||||
@@ -0,0 +1,2 @@
|
||||
import type { AvailableModelsInfo } from "./model-resolution-types";
|
||||
export declare function loadAvailableModelsFromCache(): AvailableModelsInfo;
|
||||
@@ -0,0 +1,2 @@
|
||||
import type { OmoConfig } from "./model-resolution-types";
|
||||
export declare function loadOmoConfig(): OmoConfig | null;
|
||||
@@ -0,0 +1,6 @@
|
||||
import type { AvailableModelsInfo, ModelResolutionInfo, OmoConfig } from "./model-resolution-types";
|
||||
export declare function buildModelResolutionDetails(options: {
|
||||
info: ModelResolutionInfo;
|
||||
available: AvailableModelsInfo;
|
||||
config: OmoConfig;
|
||||
}): string[];
|
||||
@@ -0,0 +1,3 @@
|
||||
import type { ModelRequirement } from "../../../shared/model-requirements";
|
||||
export declare function getEffectiveModel(requirement: ModelRequirement, userOverride?: string): string;
|
||||
export declare function buildEffectiveResolution(requirement: ModelRequirement, userOverride?: string): string;
|
||||
@@ -0,0 +1,37 @@
|
||||
import type { ModelRequirement } from "../../../shared/model-requirements";
|
||||
export interface AgentResolutionInfo {
|
||||
name: string;
|
||||
requirement: ModelRequirement;
|
||||
userOverride?: string;
|
||||
userVariant?: string;
|
||||
effectiveModel: string;
|
||||
effectiveResolution: string;
|
||||
}
|
||||
export interface CategoryResolutionInfo {
|
||||
name: string;
|
||||
requirement: ModelRequirement;
|
||||
userOverride?: string;
|
||||
userVariant?: string;
|
||||
effectiveModel: string;
|
||||
effectiveResolution: string;
|
||||
}
|
||||
export interface ModelResolutionInfo {
|
||||
agents: AgentResolutionInfo[];
|
||||
categories: CategoryResolutionInfo[];
|
||||
}
|
||||
export interface OmoConfig {
|
||||
agents?: Record<string, {
|
||||
model?: string;
|
||||
variant?: string;
|
||||
category?: string;
|
||||
}>;
|
||||
categories?: Record<string, {
|
||||
model?: string;
|
||||
variant?: string;
|
||||
}>;
|
||||
}
|
||||
export interface AvailableModelsInfo {
|
||||
providers: string[];
|
||||
modelCount: number;
|
||||
cacheExists: boolean;
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
import type { ModelRequirement } from "../../../shared/model-requirements";
|
||||
import type { OmoConfig } from "./model-resolution-types";
|
||||
export declare function formatModelWithVariant(model: string, variant?: string): string;
|
||||
export declare function getEffectiveVariant(agentName: string, requirement: ModelRequirement, config: OmoConfig): string | undefined;
|
||||
export declare function getCategoryEffectiveVariant(categoryName: string, requirement: ModelRequirement, config: OmoConfig): string | undefined;
|
||||
@@ -0,0 +1,6 @@
|
||||
import type { CheckResult } from "../types";
|
||||
import type { ModelResolutionInfo, OmoConfig } from "./model-resolution-types";
|
||||
export declare function getModelResolutionInfo(): ModelResolutionInfo;
|
||||
export declare function getModelResolutionInfoWithOverrides(config: OmoConfig): ModelResolutionInfo;
|
||||
export declare function checkModels(): Promise<CheckResult>;
|
||||
export declare const checkModelResolution: typeof checkModels;
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
export interface OpenCodeBinaryInfo {
|
||||
binary: string;
|
||||
path: string;
|
||||
}
|
||||
export declare function getDesktopAppPaths(platform: NodeJS.Platform): string[];
|
||||
export declare function getBinaryLookupCommand(platform: NodeJS.Platform): "which" | "where";
|
||||
export declare function parseBinaryPaths(output: string): string[];
|
||||
export declare function selectBinaryPath(paths: string[], platform: NodeJS.Platform): string | null;
|
||||
export declare function buildVersionCommand(binaryPath: string, platform: NodeJS.Platform): string[];
|
||||
export declare function findDesktopBinary(platform?: NodeJS.Platform, checkExists?: (path: string) => boolean): OpenCodeBinaryInfo | null;
|
||||
export declare function findOpenCodeBinary(): Promise<OpenCodeBinaryInfo | null>;
|
||||
export declare function getOpenCodeVersion(binaryPath: string, platform?: NodeJS.Platform): Promise<string | null>;
|
||||
export declare function compareVersions(current: string, minimum: string): boolean;
|
||||
@@ -0,0 +1,10 @@
|
||||
export interface LoadedVersionInfo {
|
||||
cacheDir: string;
|
||||
cachePackagePath: string;
|
||||
installedPackagePath: string;
|
||||
expectedVersion: string | null;
|
||||
loadedVersion: string | null;
|
||||
}
|
||||
export declare function getLoadedPluginVersion(): LoadedVersionInfo;
|
||||
export declare function getLatestPluginVersion(currentVersion: string | null): Promise<string | null>;
|
||||
export declare function getSuggestedInstallTag(currentVersion: string | null): string;
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
export interface PluginInfo {
|
||||
registered: boolean;
|
||||
configPath: string | null;
|
||||
entry: string | null;
|
||||
isPinned: boolean;
|
||||
pinnedVersion: string | null;
|
||||
isLocalDev: boolean;
|
||||
}
|
||||
declare function detectConfigPath(): string | null;
|
||||
declare function findPluginEntry(entries: string[]): {
|
||||
entry: string;
|
||||
isLocalDev: boolean;
|
||||
} | null;
|
||||
export declare function getPluginInfo(): PluginInfo;
|
||||
export { detectConfigPath, findPluginEntry };
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
import type { CheckResult, SystemInfo } from "../types";
|
||||
export declare function gatherSystemInfo(): Promise<SystemInfo>;
|
||||
export declare function checkSystem(): Promise<CheckResult>;
|
||||
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
export interface GhCliInfo {
|
||||
installed: boolean;
|
||||
version: string | null;
|
||||
path: string | null;
|
||||
authenticated: boolean;
|
||||
username: string | null;
|
||||
scopes: string[];
|
||||
error: string | null;
|
||||
}
|
||||
export declare function getGhCliInfo(): Promise<GhCliInfo>;
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
import type { LspServerInfo } from "../types";
|
||||
export declare function getLspServersInfo(): LspServerInfo[];
|
||||
export declare function getLspServerStats(servers: LspServerInfo[]): {
|
||||
installed: number;
|
||||
total: number;
|
||||
};
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
import type { McpServerInfo } from "../types";
|
||||
export declare function getBuiltinMcpInfo(): McpServerInfo[];
|
||||
export declare function getUserMcpInfo(): McpServerInfo[];
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
import type { CheckResult, ToolsSummary } from "../types";
|
||||
export declare function gatherToolsSummary(): Promise<ToolsSummary>;
|
||||
export declare function checkTools(): Promise<CheckResult>;
|
||||
Reference in New Issue
Block a user