@ian2018cs/agenthub 0.1.99 → 0.1.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/server/projects.js +10 -0
package/package.json
CHANGED
package/server/projects.js
CHANGED
|
@@ -960,6 +960,16 @@ async function deleteProject(projectName, userUuid, options = {}) {
|
|
|
960
960
|
// Remove from project config
|
|
961
961
|
const config = await loadProjectConfig(userUuid);
|
|
962
962
|
delete config[projectName];
|
|
963
|
+
// Also remove any config entry matching by originalPath.
|
|
964
|
+
// This handles encoding differences: Claude CLI replaces '_' with '-' in folder names,
|
|
965
|
+
// but addProjectManually only replaces '/' with '-', so keys may differ.
|
|
966
|
+
if (resolvedProjectDir) {
|
|
967
|
+
for (const [key, entry] of Object.entries(config)) {
|
|
968
|
+
if (entry.originalPath === resolvedProjectDir) {
|
|
969
|
+
delete config[key];
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
}
|
|
963
973
|
await saveProjectConfig(config, userUuid);
|
|
964
974
|
|
|
965
975
|
// Clean up project-scoped MCP servers from .claude.json
|