refactor(workflow): rename workflow-lite-plan to workflow-lite-planex and remove standalone lite-execute

- Rename skill directory from workflow-lite-plan to workflow-lite-planex (planex = plan + execute)
- Remove standalone lite-execute command entry from command.json and analyze_commands.py
- Update all 60+ files referencing workflow-lite-plan to use workflow-lite-planex
- Update descriptions to clarify Phase 1: plan → Phase 2: execute architecture
- Remove lite-execute as standalone command from orchestrator routing tables
- Update docs (EN/ZH) to reflect unified planex naming and phase descriptions
This commit is contained in:
catlog22
2026-03-02 14:03:17 +08:00
parent 71485b89e6
commit 0d5cc4a74f
60 changed files with 277 additions and 445 deletions

View File

@@ -225,7 +225,7 @@ invalid yaml content without colons
expect(result).toEqual({
name: 'lite-plan',
command: '/workflow-lite-plan',
command: '/workflow-lite-planex',
description: 'Quick planning for simple features',
argumentHint: '"feature description"',
allowedTools: ['Task(*)', 'Read(*)', 'Write(*)', 'Bash(*)'],
@@ -239,7 +239,7 @@ invalid yaml content without colons
mockReadFileSync.mockReturnValue(sampleLitePlanYaml);
const registry = new CommandRegistry(cmdDir);
const result = registry.getCommand('/workflow-lite-plan');
const result = registry.getCommand('/workflow-lite-planex');
expect(result?.name).toBe('lite-plan');
});
@@ -330,7 +330,7 @@ description: Minimal command
const result = registry.getCommands(['lite-plan', 'execute', 'nonexistent']);
expect(result.size).toBe(2);
expect(result.has('/workflow-lite-plan')).toBe(true);
expect(result.has('/workflow-lite-planex')).toBe(true);
expect(result.has('/workflow-execute')).toBe(true);
});
@@ -362,7 +362,7 @@ description: Minimal command
const result = registry.getAllCommandsSummary();
expect(result.size).toBe(3);
expect(result.get('/workflow-lite-plan')).toEqual({
expect(result.get('/workflow-lite-planex')).toEqual({
name: 'lite-plan',
description: 'Quick planning for simple features'
});
@@ -483,9 +483,9 @@ allowed-tools: Task(*)
const json = registry.toJSON();
expect(json['/workflow-lite-plan']).toEqual({
expect(json['/workflow-lite-planex']).toEqual({
name: 'lite-plan',
command: '/workflow-lite-plan',
command: '/workflow-lite-planex',
description: 'Quick planning for simple features',
argumentHint: '"feature description"',
allowedTools: ['Task(*)', 'Read(*)', 'Write(*)', 'Bash(*)'],
@@ -508,7 +508,7 @@ allowed-tools: Task(*)
const json = registry.toJSON();
expect(Object.keys(json).length).toBe(1);
expect(json['/workflow-lite-plan']).toBeDefined();
expect(json['/workflow-lite-planex']).toBeDefined();
expect(json['/workflow-execute']).toBeUndefined();
});
});

View File

@@ -118,7 +118,7 @@ export class CommandRegistry {
/**
* Get single command metadata
* @param commandName Command name (e.g., "lite-plan" or "/workflow-lite-plan")
* @param commandName Command name (e.g., "lite-plan" or "/workflow-lite-planex")
* @returns Command metadata or null
*/
public getCommand(commandName: string): CommandMetadata | null {