/** * Agent installation — renders a GitAgent package (agent.yaml + SOUL.md + RULES.md) * into the framework-native format (`.claude/agents/.md`, `.omp/agents//`, * `.codex/agents/.toml`) and resolves abilities, contracts, fragments, and * prompt extensions from the workspace config along the way. * * System prompt phases (per agent): * 1. extends merge — inherit from parent agent.yaml if manifest.extends is set * 2. ability refs — read SKILL.md frontmatter from installed skills dir * 3. contract refs — locate CONTRACT.md files in the installed skills dir * 4. fragments — resolve framework fragments (agent-mode, handoff, etc.) * 5. prompt-extensions — load per-project markdown extensions from skaile.yaml * * Used by `installer.ts` (the asset-install path) and `skaile install`. Sub-agents * declared in `agent.yaml#requires` are installed flat (no nesting) in the same * deploy directory. */ import type { SkWorkspaceConfig } from "@skaile/workspaces/core"; /** * Install a single GitAgent source directory using the appropriate renderer. * * When `includeSubAgents` is `true`, recursively installs `requires[]` entries as * separate flat agents in the same deploy directory (no nesting). Tracks visited * directories to prevent infinite loops in `requires[]` cycles. * * @param srcDir - Absolute path to the GitAgent source directory (contains `agent.yaml`). * @param agentDeployDir - Absolute path to the framework's agent deploy directory. * @param workspaceRoot - Absolute path to the workspace root. * @param driverTarget - Agent framework ID used to select the renderer. * @param skillsRelDir - Relative path to the installed skills dir (e.g. `".claude/skills"`). * @param nameOverride - Override name for the installed agent. Defaults to `manifest.name`. * @param includeSubAgents - When `true`, recursively install `requires[]` sub-agents. * @param visited - Set of resolved source paths already processed (cycle guard). * @param wsConfig - Workspace config from `skaile.yaml` (fragments, connectors, extensions). * @param log - Optional logger callback for progress messages. * @returns Object with `created` file paths and `warnings` list. * @docLink packages/asset-manager/concepts#install-agent */ export declare function installAgent(srcDir: string, agentDeployDir: string, workspaceRoot: string, driverTarget: string, /** Relative path to the installed skills dir (e.g. ".claude/skills") */ skillsRelDir: string, nameOverride: string | undefined, includeSubAgents: boolean, visited: Set, wsConfig: SkWorkspaceConfig | undefined, log?: (msg: string) => void): { created: string[]; warnings: string[]; }; //# sourceMappingURL=install-agent.d.ts.map