feat(skills): support install preflight-only mode

This commit is contained in:
William Valentin
2026-02-12 18:17:46 -08:00
parent 601844c50e
commit 1bb791c7dd
3 changed files with 40 additions and 3 deletions
+11
View File
@@ -187,6 +187,17 @@ describe('skills CLI helpers', () => {
rmSync(root, { recursive: true, force: true });
});
it('returns null install preflight view when source is invalid', () => {
const root = mkdtempSync(join(tmpdir(), 'flynn-skills-cli-'));
const sourceDir = join(root, 'invalid-source-skill');
mkdirSync(sourceDir, { recursive: true });
const view = toSkillInstallPreflightView(sourceDir);
expect(view).toBeNull();
rmSync(root, { recursive: true, force: true });
});
it('renders install preflight output text', () => {
const output = renderSkillInstallPreflight({
sourcePath: '/tmp/source-skill',