Skip to content

Commit c243517

Browse files
committed
Update config file generation and version
1 parent 3d8a956 commit c243517

File tree

6 files changed

+35
-16
lines changed

6 files changed

+35
-16
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,20 @@ In `Bash`, the path refers to the executable file within the installed plugin pa
166166
that corresponds to your system platform.
167167
You may need to make slight adjustments based on the actual situation.
168168

169+
## Uninstall
170+
171+
Sometimes, when you try to update or uninstall a marketplace, due to issues with the Claude Code CLI itself, the plugin
172+
may not be completely uninstalled. This can lead to problems such as being unable to completely clear the plugin's
173+
activation, or being unable to enable/re-enable plugins when reloading/reinstalling the marketplace. If you encounter
174+
this issue, you can go to the `plugins` subdirectory in Claude Code's configuration directory, for example:
175+
176+
```
177+
~/.claude/plugins
178+
```
179+
180+
Manually clean up the configuration files like `installed_plugins.json` and `known_marketplaces.json` to remove the
181+
marketplaces and plugins you have already uninstalled, then restart a new CLI.
182+
169183
## License
170184

171185
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

README_CN.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,19 @@ Assets 中的独立二进制文件(例如 `codex-kkp-cli-macosx64`、`codex-kk
163163
`Bash` 中,路径指的是已安装插件包内对应您系统平台的可执行文件。
164164
您可能需要根据实际情况进行适当调整。
165165

166+
## 卸载
167+
168+
有些时候,当你尝试更新 marketplace、卸载 marketplace 的时候,由于 Claude Code CLI 本身的问题,可能会导致 plugin 卸载不完全,
169+
进一步导致无法彻底清除 plugin 的启用、重新加载/安装 marketplace 无法启用/重新启用插件等问题。如果遇到此问题,你可以前往
170+
Claude Code 的配置目录中的 `plugins` 子目录中,例如:
171+
172+
```
173+
~/.claude/plugins
174+
```
175+
176+
手动清理 `installed_plugins.json``known_marketplaces.json` 等配置文件中你已经卸载的 marketplace 和 plugins,
177+
然后重新开启一个新的 CLI 。
178+
166179
## 许可证
167180

168181
本项目采用 MIT 许可证 - 详情请参阅 [LICENSE](LICENSE) 文件。

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins {
55
}
66

77
group = "love.forte.tools"
8-
version = "0.0.6"
8+
version = "0.0.7"
99

1010
allprojects {
1111
repositories {

buildSrc/src/main/kotlin/MarketplaceJson.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,18 +63,18 @@ fun marketplaceJsonForRoot(
6363
return """
6464
{
6565
"name": "$name",
66-
"version": "$version",
66+
"metadata": {
67+
"description": "Marketplace for codex agent collaboration plugins",
68+
"version": "$version"
69+
}
6770
"owner": {
6871
"name": "$ownerName",
6972
"email": "$ownerEmail"
7073
},
7174
"plugins": [
7275
{
7376
"name": "$pluginName",
74-
"description": "$pluginDescription",
75-
"version": "$pluginVersion",
76-
"source": "$pluginSource",
77-
"strict": true
77+
"source": "$pluginSource"
7878
}
7979
]
8080
}

buildSrc/src/main/kotlin/MarketplacePackagingTask.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,7 @@ abstract class MarketplacePackagingTask @Inject constructor(
175175
version = versionStr,
176176
description = pluginDescStr,
177177
authorName = authorName.get(),
178-
authorEmail = authorEmail.get(),
179-
agents = agentPaths.get()
178+
authorEmail = authorEmail.get()
180179
)
181180
)
182181
logger.lifecycle(" ✓ Generated plugin.json")

buildSrc/src/main/kotlin/PluginJson.kt

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import org.intellij.lang.annotations.Language
1111
* @param description Plugin description
1212
* @param authorName Author's display name
1313
* @param authorEmail Author's email address
14-
* @param agents List of agent file paths relative to plugin root (e.g., "./agents/codex-collaboration.md")
1514
* @return JSON string for plugin.json
1615
*/
1716
@Language("JSON")
@@ -21,10 +20,7 @@ fun pluginJson(
2120
description: String,
2221
authorName: String,
2322
authorEmail: String,
24-
agents: List<String>
2523
): String {
26-
val agentsJson = agents.joinToString(", ") { "\"$it\"" }
27-
2824
return """
2925
{
3026
"name": "$name",
@@ -37,10 +33,7 @@ fun pluginJson(
3733
"author": {
3834
"name": "$authorName",
3935
"email": "$authorEmail"
40-
},
41-
"agents": [
42-
$agentsJson
43-
]
36+
}
4437
}
4538
""".trimIndent()
4639
}

0 commit comments

Comments
 (0)