feat(skills): add dry-run installer planning surface
This commit is contained in:
@@ -104,6 +104,26 @@ describe('skills CLI helpers', () => {
|
||||
expect(output).toContain('Unavailable reasons: Required binary not found');
|
||||
});
|
||||
|
||||
it('renders dry-run installer plan when manifest installers are present', () => {
|
||||
const output = renderSkillInfo(
|
||||
buildSkill({
|
||||
manifest: {
|
||||
name: 'installer-aware',
|
||||
description: 'Installer-aware skill',
|
||||
version: '1.0.0',
|
||||
tier: 'bundled',
|
||||
installers: [
|
||||
{ type: 'download', url: 'https://example.com/tool.tgz', destination: '/tmp/tool.tgz' },
|
||||
],
|
||||
},
|
||||
}),
|
||||
);
|
||||
|
||||
expect(output).toContain('Installer plan mode: dry-run');
|
||||
expect(output).toContain('Installer planned steps:');
|
||||
expect(output).toContain('[download] download https://example.com/tool.tgz -> /tmp/tool.tgz');
|
||||
});
|
||||
|
||||
it('summarizes refresh counts across status and tiers', () => {
|
||||
const summary = summarizeSkillsRefresh([
|
||||
buildSkill({ manifest: { name: 'a', description: 'a', version: '1.0.0', tier: 'bundled' } }),
|
||||
|
||||
Reference in New Issue
Block a user