@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/server/projects.js +10 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ian2018cs/agenthub",
3
- "version": "0.1.99",
3
+ "version": "0.1.100",
4
4
  "description": "A web-based UI for AI Agents",
5
5
  "type": "module",
6
6
  "main": "server/index.js",
@@ -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