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
+19
View File
@@ -0,0 +1,19 @@
/**
* @deprecated LEGACY MIGRATION ONLY
*
* This map exists solely for migrating old configs that used hardcoded model strings.
* It maps legacy model strings to semantic category names, allowing users to migrate
* from explicit model configs to category-based configs.
*
* DO NOT add new entries here. New agents should use:
* - Category-based config (preferred): { category: "unspecified-high" }
* - Or inherit from OpenCode's config.model
*
* This map will be removed in a future major version once migration period ends.
*/
export declare const MODEL_TO_CATEGORY_MAP: Record<string, string>;
export declare function migrateAgentConfigToCategory(config: Record<string, unknown>): {
migrated: Record<string, unknown>;
changed: boolean;
};
export declare function shouldDeleteAgentConfig(config: Record<string, unknown>, category: string): boolean;
+6
View File
@@ -0,0 +1,6 @@
export declare const AGENT_NAME_MAP: Record<string, string>;
export declare const BUILTIN_AGENT_NAMES: Set<string>;
export declare function migrateAgentNames(agents: Record<string, unknown>): {
migrated: Record<string, unknown>;
changed: boolean;
};
+1
View File
@@ -0,0 +1 @@
export declare function migrateConfigFile(configPath: string, rawConfig: Record<string, unknown>): boolean;
+6
View File
@@ -0,0 +1,6 @@
export declare const HOOK_NAME_MAP: Record<string, string | null>;
export declare function migrateHookNames(hooks: string[]): {
migrated: string[];
changed: boolean;
removed: string[];
};
+13
View File
@@ -0,0 +1,13 @@
/**
* Model version migration map: old full model strings → new full model strings.
* Used to auto-upgrade hardcoded model versions in user configs when the plugin
* bumps to newer model versions.
*
* Keys are full "provider/model" strings. Only openai and anthropic entries needed.
*/
export declare const MODEL_VERSION_MAP: Record<string, string>;
export declare function migrateModelVersions(configs: Record<string, unknown>, appliedMigrations?: Set<string>): {
migrated: Record<string, unknown>;
changed: boolean;
newMigrations: string[];
};