chore: include pre-built dist for github install

This commit is contained in:
Robin Mordasiewicz
2026-03-14 04:56:50 +00:00
parent a7f0a4cf46
commit bce8ff3a75
1011 changed files with 150081 additions and 0 deletions
@@ -0,0 +1,2 @@
import type { ConfigMergeResult } from "../types";
export declare function addPluginToOpenCodeConfig(currentVersion: string): Promise<ConfigMergeResult>;
+12
View File
@@ -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
View File
@@ -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;
+1
View File
@@ -0,0 +1 @@
export declare function deepMergeRecord<TTarget extends Record<string, unknown>>(target: TTarget, source: Partial<TTarget>): TTarget;
+2
View File
@@ -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;
+2
View File
@@ -0,0 +1,2 @@
import type { InstallConfig } from "../types";
export declare function generateOmoConfig(installConfig: InstallConfig): Record<string, unknown>;
+7
View File
@@ -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>;
+2
View File
@@ -0,0 +1,2 @@
export declare function isOpenCodeInstalled(): Promise<boolean>;
export declare function getOpenCodeVersion(): Promise<string | null>;
+5
View File
@@ -0,0 +1,5 @@
export type ConfigFormat = "json" | "jsonc" | "none";
export declare function detectConfigFormat(): {
format: ConfigFormat;
path: string;
};
+10
View File
@@ -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 {};
+1
View File
@@ -0,0 +1 @@
export declare function getPluginNameWithVersion(currentVersion: string, packageName?: string): Promise<string>;
+2
View File
@@ -0,0 +1,2 @@
import type { ConfigMergeResult, InstallConfig } from "../types";
export declare function writeOmoConfig(installConfig: InstallConfig): ConfigMergeResult;