mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-02 05:31:02 +00:00
feat(extensions): add detail command and improve extension validation
- Add /extensions detail command to show extension details - Allow underscores and dots in extension names - Fix contextFileName empty array handling to use default QWEN.md - Fix marketplace extension clone to use correct source URL - Add inline parameter to extensionToOutputString - Add comprehensive tests for all changes
This commit is contained in:
parent
2aa681f610
commit
674bb6386e
8 changed files with 300 additions and 13 deletions
|
|
@ -32,6 +32,7 @@ export function extensionToOutputString(
|
|||
extension: Extension,
|
||||
extensionManager: ExtensionManager,
|
||||
workspaceDir: string,
|
||||
inline = false,
|
||||
): string {
|
||||
const cwd = workspaceDir;
|
||||
const userEnabled = extensionManager.isEnabled(
|
||||
|
|
@ -44,7 +45,7 @@ export function extensionToOutputString(
|
|||
);
|
||||
|
||||
const status = workspaceEnabled ? chalk.green('✓') : chalk.red('✗');
|
||||
let output = `${status} ${extension.config.name} (${extension.config.version})`;
|
||||
let output = `${inline ? '' : status} ${extension.config.name} (${extension.config.version})`;
|
||||
output += `\n Path: ${extension.path}`;
|
||||
if (extension.installMetadata) {
|
||||
output += `\n Source: ${extension.installMetadata.source} (Type: ${extension.installMetadata.type})`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue