(targetDir: string)
| 23 | } |
| 24 | |
| 25 | export function runSkillInstall(targetDir: string): void { |
| 26 | console.info("\nInstalling OpenUI agent skill...\n"); |
| 27 | try { |
| 28 | execSync("npx -y skills add thesysdev/openui --skill openui -y", { |
| 29 | stdio: "inherit", |
| 30 | cwd: targetDir, |
| 31 | }); |
| 32 | } catch { |
| 33 | console.warn( |
| 34 | "\nCould not install the OpenUI agent skill automatically.\n" + |
| 35 | "You can install it manually later with:\n\n" + |
| 36 | " npx skills add thesysdev/openui --skill openui\n", |
| 37 | ); |
| 38 | } |
| 39 | } |