chore: include pre-built dist for github install
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
import type { ConfigMergeResult } from "../types";
|
||||
export declare function addPluginToOpenCodeConfig(currentVersion: string): Promise<ConfigMergeResult>;
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
type BunInstallOutputMode = "inherit" | "pipe";
|
||||
interface RunBunInstallOptions {
|
||||
outputMode?: BunInstallOutputMode;
|
||||
}
|
||||
export interface BunInstallResult {
|
||||
success: boolean;
|
||||
timedOut?: boolean;
|
||||
error?: string;
|
||||
}
|
||||
export declare function runBunInstall(): Promise<boolean>;
|
||||
export declare function runBunInstallWithDetails(options?: RunBunInstallOptions): Promise<BunInstallResult>;
|
||||
export {};
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
import type { OpenCodeBinaryType, OpenCodeConfigPaths } from "../../shared/opencode-config-dir-types";
|
||||
export interface ConfigContext {
|
||||
binary: OpenCodeBinaryType;
|
||||
version: string | null;
|
||||
paths: OpenCodeConfigPaths;
|
||||
}
|
||||
export declare function initConfigContext(binary: OpenCodeBinaryType, version: string | null): void;
|
||||
export declare function getConfigContext(): ConfigContext;
|
||||
export declare function resetConfigContext(): void;
|
||||
export declare function getConfigDir(): string;
|
||||
export declare function getConfigJson(): string;
|
||||
export declare function getConfigJsonc(): string;
|
||||
export declare function getOmoConfigPath(): string;
|
||||
@@ -0,0 +1 @@
|
||||
export declare function deepMergeRecord<TTarget extends Record<string, unknown>>(target: TTarget, source: Partial<TTarget>): TTarget;
|
||||
@@ -0,0 +1,2 @@
|
||||
import type { DetectedConfig } from "../types";
|
||||
export declare function detectCurrentConfig(): DetectedConfig;
|
||||
@@ -0,0 +1 @@
|
||||
export declare function ensureConfigDirectoryExists(): void;
|
||||
@@ -0,0 +1 @@
|
||||
export declare function formatErrorWithSuggestion(err: unknown, context: string): string;
|
||||
@@ -0,0 +1,2 @@
|
||||
import type { InstallConfig } from "../types";
|
||||
export declare function generateOmoConfig(installConfig: InstallConfig): Record<string, unknown>;
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
export interface NpmDistTags {
|
||||
latest?: string;
|
||||
beta?: string;
|
||||
next?: string;
|
||||
[tag: string]: string | undefined;
|
||||
}
|
||||
export declare function fetchNpmDistTags(packageName: string): Promise<NpmDistTags | null>;
|
||||
@@ -0,0 +1,2 @@
|
||||
export declare function isOpenCodeInstalled(): Promise<boolean>;
|
||||
export declare function getOpenCodeVersion(): Promise<string | null>;
|
||||
@@ -0,0 +1,5 @@
|
||||
export type ConfigFormat = "json" | "jsonc" | "none";
|
||||
export declare function detectConfigFormat(): {
|
||||
format: ConfigFormat;
|
||||
path: string;
|
||||
};
|
||||
@@ -0,0 +1,10 @@
|
||||
interface ParseConfigResult {
|
||||
config: OpenCodeConfig | null;
|
||||
error?: string;
|
||||
}
|
||||
export interface OpenCodeConfig {
|
||||
plugin?: string[];
|
||||
[key: string]: unknown;
|
||||
}
|
||||
export declare function parseOpenCodeConfigFileWithError(path: string): ParseConfigResult;
|
||||
export {};
|
||||
@@ -0,0 +1 @@
|
||||
export declare function getPluginNameWithVersion(currentVersion: string, packageName?: string): Promise<string>;
|
||||
@@ -0,0 +1,2 @@
|
||||
import type { ConfigMergeResult, InstallConfig } from "../types";
|
||||
export declare function writeOmoConfig(installConfig: InstallConfig): ConfigMergeResult;
|
||||
Reference in New Issue
Block a user