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
+3
View File
@@ -0,0 +1,3 @@
export declare function invalidatePackage(packageName?: string): boolean;
/** @deprecated Use invalidatePackage instead - this nukes ALL plugins */
export declare function invalidateCache(): boolean;
+10
View File
@@ -0,0 +1,10 @@
export { isLocalDevMode, getLocalDevPath } from "./checker/local-dev-path";
export { getLocalDevVersion } from "./checker/local-dev-version";
export { findPluginEntry } from "./checker/plugin-entry";
export type { PluginEntryInfo } from "./checker/plugin-entry";
export { getCachedVersion } from "./checker/cached-version";
export { updatePinnedVersion } from "./checker/pinned-version-updater";
export { getLatestVersion } from "./checker/latest-version";
export { checkForUpdate } from "./checker/check-for-update";
export { syncCachePackageJsonToIntent } from "./checker/sync-package-json";
export type { SyncResult } from "./checker/sync-package-json";
@@ -0,0 +1 @@
export declare function getCachedVersion(): string | null;
@@ -0,0 +1,2 @@
import type { UpdateCheckResult } from "../types";
export declare function checkForUpdate(directory: string): Promise<UpdateCheckResult>;
@@ -0,0 +1 @@
export declare function getConfigPaths(directory: string): string[];
@@ -0,0 +1 @@
export declare function stripJsonComments(json: string): string;
@@ -0,0 +1 @@
export declare function getLatestVersion(channel?: string): Promise<string | null>;
@@ -0,0 +1,2 @@
export declare function isLocalDevMode(directory: string): boolean;
export declare function getLocalDevPath(directory: string): string | null;
@@ -0,0 +1 @@
export declare function getLocalDevVersion(directory: string): string | null;
@@ -0,0 +1 @@
export declare function findPackageJsonUp(startPath: string): string | null;
@@ -0,0 +1,2 @@
export declare function updatePinnedVersion(configPath: string, oldEntry: string, newVersion: string): boolean;
export declare function revertPinnedVersion(configPath: string, failedVersion: string, originalEntry: string): boolean;
@@ -0,0 +1,7 @@
export interface PluginEntryInfo {
entry: string;
isPinned: boolean;
pinnedVersion: string | null;
configPath: string;
}
export declare function findPluginEntry(directory: string): PluginEntryInfo | null;
@@ -0,0 +1,7 @@
import type { PluginEntryInfo } from "./plugin-entry";
export interface SyncResult {
synced: boolean;
error: "file_not_found" | "plugin_not_in_deps" | "parse_error" | "write_error" | null;
message?: string;
}
export declare function syncCachePackageJsonToIntent(pluginInfo: PluginEntryInfo): SyncResult;
+10
View File
@@ -0,0 +1,10 @@
export declare const PACKAGE_NAME = "oh-my-opencode";
export declare const NPM_REGISTRY_URL = "https://registry.npmjs.org/-/package/oh-my-opencode/dist-tags";
export declare const NPM_FETCH_TIMEOUT = 5000;
export declare const CACHE_DIR: string;
export declare const VERSION_FILE: string;
export declare function getWindowsAppdataDir(): string | null;
export declare const USER_CONFIG_DIR: string;
export declare const USER_OPENCODE_CONFIG: string;
export declare const USER_OPENCODE_CONFIG_JSONC: string;
export declare const INSTALLED_PACKAGE_JSON: string;
+10
View File
@@ -0,0 +1,10 @@
import type { PluginInput } from "@opencode-ai/plugin";
import type { AutoUpdateCheckerOptions } from "./types";
export declare function createAutoUpdateCheckerHook(ctx: PluginInput, options?: AutoUpdateCheckerOptions): {
event: ({ event }: {
event: {
type: string;
properties?: unknown;
};
}) => void;
};
@@ -0,0 +1,2 @@
import type { PluginInput } from "@opencode-ai/plugin";
export declare function runBackgroundUpdateCheck(ctx: PluginInput, autoUpdate: boolean, getToastMessage: (isUpdate: boolean, latestVersion?: string) => string): Promise<void>;
@@ -0,0 +1,2 @@
import type { PluginInput } from "@opencode-ai/plugin";
export declare function showConfigErrorsIfAny(ctx: PluginInput): Promise<void>;
@@ -0,0 +1,2 @@
import type { PluginInput } from "@opencode-ai/plugin";
export declare function updateAndShowConnectedProvidersCacheStatus(ctx: PluginInput): Promise<void>;
@@ -0,0 +1,2 @@
import type { PluginInput } from "@opencode-ai/plugin";
export declare function showModelCacheWarningIfNeeded(ctx: PluginInput): Promise<void>;
@@ -0,0 +1,2 @@
import type { PluginInput } from "@opencode-ai/plugin";
export declare function showSpinnerToast(ctx: PluginInput, version: string, message: string): Promise<void>;
@@ -0,0 +1,3 @@
import type { PluginInput } from "@opencode-ai/plugin";
export declare function showVersionToast(ctx: PluginInput, version: string | null, message: string): Promise<void>;
export declare function showLocalDevToast(ctx: PluginInput, version: string | null, isSisyphusEnabled: boolean): Promise<void>;
@@ -0,0 +1,3 @@
import type { PluginInput } from "@opencode-ai/plugin";
export declare function showUpdateAvailableToast(ctx: PluginInput, latestVersion: string, getToastMessage: (isUpdate: boolean, latestVersion?: string) => string): Promise<void>;
export declare function showAutoUpdatedToast(ctx: PluginInput, oldVersion: string, newVersion: string): Promise<void>;
+5
View File
@@ -0,0 +1,5 @@
export { createAutoUpdateCheckerHook } from "./hook";
export { isPrereleaseVersion, isDistTag, isPrereleaseOrDistTag, extractChannel, } from "./version-channel";
export { checkForUpdate } from "./checker";
export { invalidatePackage, invalidateCache } from "./cache";
export type { UpdateCheckResult, AutoUpdateCheckerOptions } from "./types";
+25
View File
@@ -0,0 +1,25 @@
export interface NpmDistTags {
latest: string;
[key: string]: string;
}
export interface OpencodeConfig {
plugin?: string[];
[key: string]: unknown;
}
export interface PackageJson {
version: string;
name?: string;
[key: string]: unknown;
}
export interface UpdateCheckResult {
needsUpdate: boolean;
currentVersion: string | null;
latestVersion: string | null;
isLocalDev: boolean;
isPinned: boolean;
}
export interface AutoUpdateCheckerOptions {
showStartupToast?: boolean;
isSisyphusEnabled?: boolean;
autoUpdate?: boolean;
}
+4
View File
@@ -0,0 +1,4 @@
export declare function isPrereleaseVersion(version: string): boolean;
export declare function isDistTag(version: string): boolean;
export declare function isPrereleaseOrDistTag(pinnedVersion: string | null): boolean;
export declare function extractChannel(version: string | null): string;