Rename workflow-lite-planex to workflow-lite-plan across documentation and code references for consistency and clarity. Update related examples, command references, and workflow comparisons to reflect the new naming convention.

This commit is contained in:
catlog22
2026-03-05 21:14:52 +08:00
parent cff1e16441
commit 56c06ecf3d
66 changed files with 795 additions and 877 deletions

View File

@@ -87,12 +87,15 @@ function PrimitiveValue({ value }: { value: unknown }) {
return <span>{String(value)}</span>;
}
function ArrayView({ items }: { items: unknown[] }) {
function ArrayView({ items, displayName = 'items' }: { items: unknown[]; displayName?: string }) {
const [expanded, setExpanded] = useState(true);
if (items.length === 0) {
return (
<div className="text-muted-foreground italic text-sm">Empty list</div>
<div className="text-muted-foreground text-sm flex items-center gap-2 p-3 bg-muted/30 rounded-md">
<Database className="w-4 h-4" />
<span>No {displayName} entries.</span>
</div>
);
}
@@ -154,7 +157,7 @@ function ObjectView({ data, depth = 0 }: { data: Record<string, unknown>; depth?
))}
</div>
);
}
function CardItem({ label, value, depth = 0 }: CardItemProps) {
const formattedLabel = formatLabel(label);
@@ -176,7 +179,7 @@ function CardItem({ label, value, depth = 0 }: CardItemProps) {
return (
<div className="space-y-2">
<div className="font-medium text-sm text-foreground">{formattedLabel}</div>
<ArrayView items={value} />
<ArrayView items={value} displayName={formattedLabel.toLowerCase()} />
</div>
);
}

View File

@@ -225,7 +225,7 @@ invalid yaml content without colons
expect(result).toEqual({
name: 'lite-plan',
command: '/workflow-lite-planex',
command: '/workflow-lite-plan',
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-planex');
const result = registry.getCommand('/workflow-lite-plan');
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-planex')).toBe(true);
expect(result.has('/workflow-lite-plan')).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-planex')).toEqual({
expect(result.get('/workflow-lite-plan')).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-planex']).toEqual({
expect(json['/workflow-lite-plan']).toEqual({
name: 'lite-plan',
command: '/workflow-lite-planex',
command: '/workflow-lite-plan',
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-planex']).toBeDefined();
expect(json['/workflow-lite-plan']).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-planex")
* @param commandName Command name (e.g., "lite-plan" or "/workflow-lite-plan")
* @returns Command metadata or null
*/
public getCommand(commandName: string): CommandMetadata | null {