import { Artifact, ArtifactComponentApiInsert, AssembleResult, BreakdownComponentDef, DataComponentApiInsert } from "@inkeep/agents-core";

//#region src/domains/run/agents/types.d.ts
interface SkillFileData {
  filePath: string;
  content: string;
}
interface VersionConfig<TConfig> {
  loadTemplates(): Map<string, string>;
  assemble(templates: Map<string, string>, config: TConfig): AssembleResult;
  /** Returns the breakdown schema defining which components this version tracks */
  getBreakdownSchema(): BreakdownComponentDef[];
}
interface SkillData {
  id: string;
  subAgentSkillId: string;
  name: string;
  description: string;
  content: string;
  metadata: Record<string, unknown> | null;
  index: number;
  alwaysLoaded: boolean;
  files?: SkillFileData[];
}
interface SystemPromptV1 {
  corePrompt: string;
  prompt?: string;
  appPrompt?: string;
  skills?: SkillData[];
  artifacts: Artifact[];
  tools: ToolData[];
  mcpServerGroups?: McpServerGroupData[];
  dataComponents: DataComponentApiInsert[];
  artifactComponents?: ArtifactComponentApiInsert[];
  allProjectArtifactComponents?: ArtifactComponentApiInsert[];
  hasAgentArtifactComponents?: boolean;
  hasTransferRelations?: boolean;
  hasDelegateRelations?: boolean;
  includeDataComponents?: boolean;
  clientCurrentTime?: string;
  includeSinglePhaseDataComponents?: boolean;
}
interface ToolData {
  name: string;
  description?: string | null;
  inputSchema?: Record<string, unknown>;
  usageGuidelines?: string;
}
interface McpServerGroupData {
  serverName: string;
  serverInstructions?: string;
  tools: ToolData[];
}
//#endregion
export { type BreakdownComponentDef, McpServerGroupData, SkillData, SkillFileData, SystemPromptV1, ToolData, VersionConfig };