mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-01 21:20:44 +00:00
fix copy error
This commit is contained in:
parent
9af9ea259d
commit
63e24301f8
2 changed files with 21 additions and 3 deletions
|
|
@ -34,10 +34,20 @@ You can install an extension using `qwen extensions install` from multiple sourc
|
|||
|
||||
#### From Claude Code Marketplace
|
||||
|
||||
Qwen Code also supports plugins from the [Claude Code Marketplace](https://claudemarketplaces.com/). Choose a marketplace and install a plugin from one marketplace through the format:
|
||||
Qwen Code also supports plugins from the [Claude Code Marketplace](https://claudemarketplaces.com/). Install from a marketplace and choose a plugin:
|
||||
|
||||
```bash
|
||||
qwen extensions install <marketplace-name | marketplace-url>:<plugin-name>
|
||||
qwen extensions install <marketplace-name>
|
||||
# or
|
||||
qwen extensions install <marketplace-github-url>
|
||||
```
|
||||
|
||||
If you want to install a specific pulgin, you can use the format with plugin name:
|
||||
|
||||
```bash
|
||||
qwen extensions install <marketplace-name>:<plugin-name>
|
||||
# or
|
||||
qwen extensions install <marketplace-github-url>:<plugin-name>
|
||||
```
|
||||
|
||||
For example, to install the `prompts.chat` plugin from the [f/awesome-chatgpt-prompts](https://claudemarketplaces.com/plugins/f-awesome-chatgpt-prompts) marketplace:
|
||||
|
|
@ -74,7 +84,9 @@ This command opens the respective marketplace in your default browser, allowing
|
|||
Qwen Code fully supports extensions from the [Gemini CLI Extensions Gallery](https://geminicli.com/extensions/). Simply install them using the git URL:
|
||||
|
||||
```bash
|
||||
qwen extensions install <gemini-cli-extension-url>
|
||||
qwen extensions install <gemini-cli-extension-github-url>
|
||||
# or
|
||||
qwen extensions install <owner>/<repo>
|
||||
```
|
||||
|
||||
Gemini extensions are automatically converted to Qwen Code format during installation:
|
||||
|
|
|
|||
|
|
@ -709,6 +709,12 @@ async function resolvePluginSource(
|
|||
throw new Error(`Plugin source not found at ${sourcePath}`);
|
||||
}
|
||||
|
||||
// If source path equals marketplace dir (source is '.' or ''),
|
||||
// return marketplaceDir directly to avoid copying to subdirectory of self
|
||||
if (path.resolve(sourcePath) === path.resolve(marketplaceDir)) {
|
||||
return marketplaceDir;
|
||||
}
|
||||
|
||||
// Copy to plugin directory
|
||||
await fs.promises.cp(sourcePath, pluginDir, { recursive: true });
|
||||
return pluginDir;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue