chore: include pre-built dist for github install
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
export declare function mapClaudeModelToOpenCode(model: string | undefined): {
|
||||
providerID: string;
|
||||
modelID: string;
|
||||
} | undefined;
|
||||
@@ -0,0 +1,2 @@
|
||||
export * from "./types";
|
||||
export * from "./loader";
|
||||
@@ -0,0 +1,3 @@
|
||||
import type { ClaudeCodeAgentConfig } from "./types";
|
||||
export declare function loadUserAgents(): Record<string, ClaudeCodeAgentConfig>;
|
||||
export declare function loadProjectAgents(directory?: string): Record<string, ClaudeCodeAgentConfig>;
|
||||
@@ -0,0 +1,21 @@
|
||||
import type { AgentConfig } from "@opencode-ai/sdk";
|
||||
export type AgentScope = "user" | "project";
|
||||
export type ClaudeCodeAgentConfig = Omit<AgentConfig, "model"> & {
|
||||
model?: string | {
|
||||
providerID: string;
|
||||
modelID: string;
|
||||
};
|
||||
};
|
||||
export interface AgentFrontmatter {
|
||||
name?: string;
|
||||
description?: string;
|
||||
model?: string;
|
||||
tools?: string;
|
||||
mode?: "subagent" | "primary" | "all";
|
||||
}
|
||||
export interface LoadedAgent {
|
||||
name: string;
|
||||
path: string;
|
||||
config: ClaudeCodeAgentConfig;
|
||||
scope: AgentScope;
|
||||
}
|
||||
Reference in New Issue
Block a user