mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-12-03 22:12:01 +09:00
fix(cli): move only the command-dependent GitHub skills into the legacy group
Review follow-up: flipping skills.github off also dropped github-code-review and github-project-management, which only use hooks and work on v3. Only github-multi-repo, github-release-management and github-workflow-automation drive verbs v3 does not ship. Keep those two in the default GitHub group, move the other three into skills.legacy next to stream-chain and sparc-methodology, and leave the GitHub group selected in the wizard again.
This commit is contained in:
1 parent
fed081f1a2
commit
778aef9d12
4 files changed
+36
-18
No files matched your search
@@ -54,24 +54,33 @@ function dominantCommand(skill: string): string | null {
|
||||
|
||||
describe('default init only installs skills whose commands v3 ships (#4539)', () => {
|
||||
it('keeps the skills that depend on unshipped commands out of the default set', () => {
|
||||
// stream-chain and sparc-methodology are now opt-in, like skills.v3 after #4140.
|
||||
// stream-chain, sparc-methodology and the three `ruflo github` skills are
|
||||
// now opt-in through skills.legacy, like skills.v3 after #4140.
|
||||
expect(DEFAULT_INIT_OPTIONS.skills.legacy).toBe(false);
|
||||
// The GitHub skills still invoke `ruflo github` / `ruflo skill`, which v3 does not ship.
|
||||
expect(DEFAULT_INIT_OPTIONS.skills.github).toBe(false);
|
||||
// github-code-review and github-project-management only use hooks, which v3
|
||||
// ships, so the group stays in the default set.
|
||||
expect(DEFAULT_INIT_OPTIONS.skills.github).toBe(true);
|
||||
});
|
||||
|
||||
it('default init does not install stream-chain, sparc-methodology or the GitHub skills', async () => {
|
||||
it('default init skips the legacy skills but keeps the hook-only GitHub ones', async () => {
|
||||
const options = skillsOnly(DEFAULT_INIT_OPTIONS);
|
||||
const result = await executeInit(options);
|
||||
expect(result.success).toBe(true);
|
||||
|
||||
const installed = installedSkills(options.targetDir!);
|
||||
expect(installed.length).toBeGreaterThan(0);
|
||||
expect(installed).not.toContain('stream-chain');
|
||||
expect(installed).not.toContain('sparc-methodology');
|
||||
expect(installed).not.toContain('github-release-management');
|
||||
expect(installed).not.toContain('github-workflow-automation');
|
||||
expect(installed).not.toContain('github-multi-repo');
|
||||
for (const legacy of [
|
||||
'stream-chain',
|
||||
'sparc-methodology',
|
||||
'github-release-management',
|
||||
'github-workflow-automation',
|
||||
'github-multi-repo',
|
||||
]) {
|
||||
expect(installed).not.toContain(legacy);
|
||||
}
|
||||
expect(installed).toEqual(
|
||||
expect.arrayContaining(['github-code-review', 'github-project-management']),
|
||||
);
|
||||
});
|
||||
|
||||
it('every default-installed skill is built around a command the CLI ships', async () => {
|
||||
@@ -88,7 +97,7 @@ describe('default init only installs skills whose commands v3 ships (#4539)', ()
|
||||
expect(missing).toEqual([]);
|
||||
}, 120_000);
|
||||
|
||||
it('skills.legacy still installs stream-chain and sparc-methodology when asked', async () => {
|
||||
it('skills.legacy still installs every legacy skill when asked', async () => {
|
||||
const options = skillsOnly({
|
||||
...DEFAULT_INIT_OPTIONS,
|
||||
skills: { ...DEFAULT_INIT_OPTIONS.skills, legacy: true },
|
||||
@@ -97,7 +106,13 @@ describe('default init only installs skills whose commands v3 ships (#4539)', ()
|
||||
expect(result.success).toBe(true);
|
||||
|
||||
expect(installedSkills(options.targetDir!)).toEqual(
|
||||
expect.arrayContaining(['stream-chain', 'sparc-methodology']),
|
||||
expect.arrayContaining([
|
||||
'stream-chain',
|
||||
'sparc-methodology',
|
||||
'github-multi-repo',
|
||||
'github-release-management',
|
||||
'github-workflow-automation',
|
||||
]),
|
||||
);
|
||||
});
|
||||
});
|
||||
@@ -1162,7 +1162,7 @@ const wizardCommand: Command = {
|
||||
options: [
|
||||
{ value: 'core', label: 'Core', hint: 'Swarm, memory, SPARC skills', selected: true },
|
||||
{ value: 'agentdb', label: 'AgentDB', hint: 'Vector database skills', selected: true },
|
||||
{ value: 'github', label: 'GitHub', hint: 'GitHub integration skills', selected: false },
|
||||
{ value: 'github', label: 'GitHub', hint: 'GitHub integration skills', selected: true },
|
||||
{ value: 'flowNexus', label: 'Flow Nexus', hint: 'Cloud platform skills', selected: false },
|
||||
{ value: 'v3', label: 'V3', hint: 'V3 implementation skills', selected: true },
|
||||
{ value: 'legacy', label: 'Legacy', hint: 'Skills that document commands v3 does not ship', selected: false },
|
||||
|
||||
@@ -58,12 +58,11 @@ const SKILLS_MAP: Record<string, string[]> = {
|
||||
'reasoningbank-agentdb',
|
||||
'reasoningbank-intelligence',
|
||||
],
|
||||
// github-code-review and github-project-management only use hooks, which v3
|
||||
// ships; the other three drive `ruflo github`, so they live in skills.legacy.
|
||||
github: [
|
||||
'github-code-review',
|
||||
'github-multi-repo',
|
||||
'github-project-management',
|
||||
'github-release-management',
|
||||
'github-workflow-automation',
|
||||
],
|
||||
flowNexus: [
|
||||
'flow-nexus-neural',
|
||||
@@ -82,9 +81,13 @@ const SKILLS_MAP: Record<string, string[]> = {
|
||||
'v3-swarm-coordination',
|
||||
],
|
||||
// ADR-128 / #4539: skills that document v2-era verbs v3 does not ship
|
||||
// (`stream-chain`, `sparc`). Their examples fail with `Unknown command`, so
|
||||
// they are opt-in like skills.v3 instead of being installed by default.
|
||||
// (`stream-chain`, `sparc`, `github`). Their examples fail with `Unknown
|
||||
// command`, so they are opt-in like skills.v3 instead of being installed by
|
||||
// default.
|
||||
legacy: [
|
||||
'github-multi-repo',
|
||||
'github-release-management',
|
||||
'github-workflow-automation',
|
||||
'sparc-methodology',
|
||||
'stream-chain',
|
||||
],
|
||||
|
||||
@@ -386,7 +386,7 @@ export const DEFAULT_INIT_OPTIONS: InitOptions = {
|
||||
skills: {
|
||||
core: true,
|
||||
agentdb: true,
|
||||
github: false, // #4539: the GitHub skills run `ruflo github`, which v3 does not ship
|
||||
github: true, // #4539: only the hook-only GitHub skills remain; the rest are skills.legacy
|
||||
flowNexus: false,
|
||||
browser: true,
|
||||
v3: false, // ADR-128: opt-in like agents.v3; use --full or `init skills --v3`
|
||||
|
||||
Reference in new issue
Block a user