chore: include pre-built dist for github install
This commit is contained in:
+11
@@ -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>>;
|
||||
@@ -0,0 +1 @@
|
||||
export declare function remapAgentKeysToDisplayNames(agents: Record<string, unknown>): Record<string, unknown>;
|
||||
@@ -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>;
|
||||
@@ -0,0 +1 @@
|
||||
export declare function reorderAgentsByPriority(agents: Record<string, unknown>): Record<string, unknown>;
|
||||
@@ -0,0 +1,2 @@
|
||||
import type { CategoryConfig } from "../config/schema";
|
||||
export declare function resolveCategoryConfig(categoryName: string, userCategories?: Record<string, CategoryConfig>): CategoryConfig | undefined;
|
||||
@@ -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
@@ -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>;
|
||||
Vendored
+10
@@ -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";
|
||||
@@ -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>;
|
||||
@@ -0,0 +1 @@
|
||||
export declare function buildPlanDemoteConfig(prometheusConfig: Record<string, unknown> | undefined, planOverride: Record<string, unknown> | undefined): Record<string, unknown>;
|
||||
@@ -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 {};
|
||||
@@ -0,0 +1,5 @@
|
||||
import type { ModelCacheState } from "../plugin-state";
|
||||
export declare function applyProviderConfig(params: {
|
||||
config: Record<string, unknown>;
|
||||
modelCacheState: ModelCacheState;
|
||||
}): void;
|
||||
@@ -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;
|
||||
Reference in New Issue
Block a user