(options: {
codexHome?: string
sourceDir?: string
} = {})
| 150 | } |
| 151 | |
| 152 | export async function installFormKitSkill(options: { |
| 153 | codexHome?: string |
| 154 | sourceDir?: string |
| 155 | } = {}): Promise<string> { |
| 156 | const sourceDir = options.sourceDir ?? (await getFormKitSkillSourceDir()) |
| 157 | const codexHome = options.codexHome ?? getCodexHome() |
| 158 | const destination = resolve(codexHome, 'skills', 'formkit') |
| 159 | |
| 160 | await mkdir(dirname(destination), { recursive: true }) |
| 161 | await rm(destination, { recursive: true, force: true }) |
| 162 | await cp(sourceDir, destination, { recursive: true }) |
| 163 | |
| 164 | return destination |
| 165 | } |
| 166 | |
| 167 | export async function enableAgentsForProject(options: { |
| 168 | agents: Array<string> |
no test coverage detected