chore: include pre-built dist for github install
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
import type { AgentConfig } from "@opencode-ai/sdk";
|
||||
import type { AgentOverrideConfig } from "../types";
|
||||
import type { CategoryConfig } from "../../config/schema";
|
||||
/**
|
||||
* Expands a category reference from an agent override into concrete config properties.
|
||||
* Category properties are applied unconditionally (overwriting factory defaults),
|
||||
* because the user's chosen category should take priority over factory base values.
|
||||
* Direct override properties applied later via mergeAgentConfig() will supersede these.
|
||||
*/
|
||||
export declare function applyCategoryOverride(config: AgentConfig, categoryName: string, mergedCategories: Record<string, CategoryConfig>): AgentConfig;
|
||||
export declare function mergeAgentConfig(base: AgentConfig, override: AgentOverrideConfig, directory?: string): AgentConfig;
|
||||
export declare function applyOverrides(config: AgentConfig, override: AgentOverrideConfig | undefined, mergedCategories: Record<string, CategoryConfig>, directory?: string): AgentConfig;
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
import type { AgentConfig } from "@opencode-ai/sdk";
|
||||
import type { AgentOverrides } from "../types";
|
||||
import type { CategoriesConfig, CategoryConfig } from "../../config/schema";
|
||||
import type { AvailableAgent, AvailableSkill } from "../dynamic-agent-prompt-builder";
|
||||
export declare function maybeCreateAtlasConfig(input: {
|
||||
disabledAgents: string[];
|
||||
agentOverrides: AgentOverrides;
|
||||
uiSelectedModel?: string;
|
||||
availableModels: Set<string>;
|
||||
systemDefaultModel?: string;
|
||||
availableAgents: AvailableAgent[];
|
||||
availableSkills: AvailableSkill[];
|
||||
mergedCategories: Record<string, CategoryConfig>;
|
||||
directory?: string;
|
||||
userCategories?: CategoriesConfig;
|
||||
useTaskSystem?: boolean;
|
||||
}): AgentConfig | undefined;
|
||||
@@ -0,0 +1,4 @@
|
||||
import type { AvailableSkill } from "../dynamic-agent-prompt-builder";
|
||||
import type { BrowserAutomationProvider } from "../../config/schema";
|
||||
import type { LoadedSkill } from "../../features/opencode-skill-loader/types";
|
||||
export declare function buildAvailableSkills(discoveredSkills: LoadedSkill[], browserProvider?: BrowserAutomationProvider, disabledSkills?: Set<string>): AvailableSkill[];
|
||||
@@ -0,0 +1,6 @@
|
||||
import type { AgentConfig } from "@opencode-ai/sdk";
|
||||
type ApplyEnvironmentContextOptions = {
|
||||
disableOmoEnv?: boolean;
|
||||
};
|
||||
export declare function applyEnvironmentContext(config: AgentConfig, directory?: string, options?: ApplyEnvironmentContextOptions): AgentConfig;
|
||||
export {};
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
import type { AgentConfig } from "@opencode-ai/sdk";
|
||||
import type { BuiltinAgentName, AgentOverrides, AgentPromptMetadata } from "../types";
|
||||
import type { CategoryConfig, GitMasterConfig } from "../../config/schema";
|
||||
import type { BrowserAutomationProvider } from "../../config/schema";
|
||||
import type { AvailableAgent } from "../dynamic-agent-prompt-builder";
|
||||
export declare function collectPendingBuiltinAgents(input: {
|
||||
agentSources: Record<BuiltinAgentName, import("../agent-builder").AgentSource>;
|
||||
agentMetadata: Partial<Record<BuiltinAgentName, AgentPromptMetadata>>;
|
||||
disabledAgents: string[];
|
||||
agentOverrides: AgentOverrides;
|
||||
directory?: string;
|
||||
systemDefaultModel?: string;
|
||||
mergedCategories: Record<string, CategoryConfig>;
|
||||
gitMasterConfig?: GitMasterConfig;
|
||||
browserProvider?: BrowserAutomationProvider;
|
||||
uiSelectedModel?: string;
|
||||
availableModels: Set<string>;
|
||||
isFirstRunNoCache: boolean;
|
||||
disabledSkills?: Set<string>;
|
||||
useTaskSystem?: boolean;
|
||||
disableOmoEnv?: boolean;
|
||||
}): {
|
||||
pendingAgentConfigs: Map<string, AgentConfig>;
|
||||
availableAgents: AvailableAgent[];
|
||||
};
|
||||
@@ -0,0 +1,18 @@
|
||||
import type { AgentConfig } from "@opencode-ai/sdk";
|
||||
import type { AgentOverrides } from "../types";
|
||||
import type { CategoryConfig } from "../../config/schema";
|
||||
import type { AvailableAgent, AvailableCategory, AvailableSkill } from "../dynamic-agent-prompt-builder";
|
||||
export declare function maybeCreateHephaestusConfig(input: {
|
||||
disabledAgents: string[];
|
||||
agentOverrides: AgentOverrides;
|
||||
availableModels: Set<string>;
|
||||
systemDefaultModel?: string;
|
||||
isFirstRunNoCache: boolean;
|
||||
availableAgents: AvailableAgent[];
|
||||
availableSkills: AvailableSkill[];
|
||||
availableCategories: AvailableCategory[];
|
||||
mergedCategories: Record<string, CategoryConfig>;
|
||||
directory?: string;
|
||||
useTaskSystem: boolean;
|
||||
disableOmoEnv?: boolean;
|
||||
}): AgentConfig | undefined;
|
||||
@@ -0,0 +1,24 @@
|
||||
export declare function applyModelResolution(input: {
|
||||
uiSelectedModel?: string;
|
||||
userModel?: string;
|
||||
requirement?: {
|
||||
fallbackChain?: {
|
||||
providers: string[];
|
||||
model: string;
|
||||
variant?: string;
|
||||
}[];
|
||||
};
|
||||
availableModels: Set<string>;
|
||||
systemDefaultModel?: string;
|
||||
}): import("../../shared/model-resolution-pipeline").ModelResolutionResult | undefined;
|
||||
export declare function getFirstFallbackModel(requirement?: {
|
||||
fallbackChain?: {
|
||||
providers: string[];
|
||||
model: string;
|
||||
variant?: string;
|
||||
}[];
|
||||
}): {
|
||||
model: string;
|
||||
provenance: "provider-fallback";
|
||||
variant: string | undefined;
|
||||
} | undefined;
|
||||
@@ -0,0 +1 @@
|
||||
export declare function resolvePromptAppend(promptAppend: string, configDir?: string): string;
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
import type { AgentConfig } from "@opencode-ai/sdk";
|
||||
import type { AgentOverrides } from "../types";
|
||||
import type { CategoriesConfig, CategoryConfig } from "../../config/schema";
|
||||
import type { AvailableAgent, AvailableCategory, AvailableSkill } from "../dynamic-agent-prompt-builder";
|
||||
export declare function maybeCreateSisyphusConfig(input: {
|
||||
disabledAgents: string[];
|
||||
agentOverrides: AgentOverrides;
|
||||
uiSelectedModel?: string;
|
||||
availableModels: Set<string>;
|
||||
systemDefaultModel?: string;
|
||||
isFirstRunNoCache: boolean;
|
||||
availableAgents: AvailableAgent[];
|
||||
availableSkills: AvailableSkill[];
|
||||
availableCategories: AvailableCategory[];
|
||||
mergedCategories: Record<string, CategoryConfig>;
|
||||
directory?: string;
|
||||
userCategories?: CategoriesConfig;
|
||||
useTaskSystem: boolean;
|
||||
disableOmoEnv?: boolean;
|
||||
}): AgentConfig | undefined;
|
||||
Reference in New Issue
Block a user