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
+11
View File
@@ -0,0 +1,11 @@
import type { OhMyOpenCodeConfig } from "../config";
import type { PluginComponents } from "./plugin-components-loader";
export declare function applyAgentConfig(params: {
config: Record<string, unknown>;
pluginConfig: OhMyOpenCodeConfig;
ctx: {
directory: string;
client?: any;
};
pluginComponents: PluginComponents;
}): Promise<Record<string, unknown>>;
+1
View File
@@ -0,0 +1 @@
export declare function remapAgentKeysToDisplayNames(agents: Record<string, unknown>): Record<string, unknown>;
+3
View File
@@ -0,0 +1,3 @@
export declare function normalizeProtectedAgentName(agentName: string): string;
export declare function createProtectedAgentNameSet(agentNames: Iterable<string>): Set<string>;
export declare function filterProtectedAgentOverrides<TAgent>(agents: Record<string, TAgent>, protectedAgentNames: ReadonlySet<string>): Record<string, TAgent>;
+1
View File
@@ -0,0 +1 @@
export declare function reorderAgentsByPriority(agents: Record<string, unknown>): Record<string, unknown>;
+2
View File
@@ -0,0 +1,2 @@
import type { CategoryConfig } from "../config/schema";
export declare function resolveCategoryConfig(categoryName: string, userCategories?: Record<string, CategoryConfig>): CategoryConfig | undefined;
+10
View File
@@ -0,0 +1,10 @@
import type { OhMyOpenCodeConfig } from "../config";
import type { PluginComponents } from "./plugin-components-loader";
export declare function applyCommandConfig(params: {
config: Record<string, unknown>;
pluginConfig: OhMyOpenCodeConfig;
ctx: {
directory: string;
};
pluginComponents: PluginComponents;
}): Promise<void>;
+12
View File
@@ -0,0 +1,12 @@
import type { OhMyOpenCodeConfig } from "../config";
import type { ModelCacheState } from "../plugin-state";
export { resolveCategoryConfig } from "./category-config-resolver";
export interface ConfigHandlerDeps {
ctx: {
directory: string;
client?: any;
};
pluginConfig: OhMyOpenCodeConfig;
modelCacheState: ModelCacheState;
}
export declare function createConfigHandler(deps: ConfigHandlerDeps): (config: Record<string, unknown>) => Promise<void>;
+10
View File
@@ -0,0 +1,10 @@
export { createConfigHandler, type ConfigHandlerDeps } from "./config-handler";
export * from "./provider-config-handler";
export * from "./agent-config-handler";
export * from "./tool-config-handler";
export * from "./mcp-config-handler";
export * from "./command-config-handler";
export * from "./plugin-components-loader";
export * from "./category-config-resolver";
export * from "./prometheus-agent-config-builder";
export * from "./agent-priority-order";
+7
View File
@@ -0,0 +1,7 @@
import type { OhMyOpenCodeConfig } from "../config";
import type { PluginComponents } from "./plugin-components-loader";
export declare function applyMcpConfig(params: {
config: Record<string, unknown>;
pluginConfig: OhMyOpenCodeConfig;
pluginComponents: PluginComponents;
}): Promise<void>;
+1
View File
@@ -0,0 +1 @@
export declare function buildPlanDemoteConfig(prometheusConfig: Record<string, unknown> | undefined, planOverride: Record<string, unknown> | undefined): Record<string, unknown>;
+22
View File
@@ -0,0 +1,22 @@
import type { OhMyOpenCodeConfig } from "../config";
export type PluginComponents = {
commands: Record<string, unknown>;
skills: Record<string, unknown>;
agents: Record<string, unknown>;
mcpServers: Record<string, unknown>;
hooksConfigs: Array<{
hooks?: Record<string, unknown>;
}>;
plugins: Array<{
name: string;
version: string;
}>;
errors: Array<{
pluginKey: string;
installPath: string;
error: string;
}>;
};
export declare function loadPluginComponents(params: {
pluginConfig: OhMyOpenCodeConfig;
}): Promise<PluginComponents>;
@@ -0,0 +1,23 @@
import type { CategoryConfig } from "../config/schema";
type PrometheusOverride = Record<string, unknown> & {
category?: string;
model?: string;
variant?: string;
reasoningEffort?: string;
textVerbosity?: string;
thinking?: {
type: string;
budgetTokens?: number;
};
temperature?: number;
top_p?: number;
maxTokens?: number;
prompt_append?: string;
};
export declare function buildPrometheusAgentConfig(params: {
configAgentPlan: Record<string, unknown> | undefined;
pluginPrometheusOverride: PrometheusOverride | undefined;
userCategories: Record<string, CategoryConfig> | undefined;
currentModel: string | undefined;
}): Promise<Record<string, unknown>>;
export {};
+5
View File
@@ -0,0 +1,5 @@
import type { ModelCacheState } from "../plugin-state";
export declare function applyProviderConfig(params: {
config: Record<string, unknown>;
modelCacheState: ModelCacheState;
}): void;
+6
View File
@@ -0,0 +1,6 @@
import type { OhMyOpenCodeConfig } from "../config";
export declare function applyToolConfig(params: {
config: Record<string, unknown>;
pluginConfig: OhMyOpenCodeConfig;
agentResult: Record<string, unknown>;
}): void;