deepdebug-local-agent 1.0.13 → 1.0.14

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/src/server.js +6 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deepdebug-local-agent",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "DeepDebug Local Agent - AI-powered code debugging assistant",
5
5
  "private": false,
6
6
  "type": "module",
package/src/server.js CHANGED
@@ -832,22 +832,22 @@ app.post("/workspace/open", async (req, res) => {
832
832
  const abs = path.resolve(root);
833
833
  if (!(await exists(abs))) return res.status(404).json({ error: "path not found" });
834
834
 
835
+ // Registar no WorkspaceManager (multi-workspace support)
836
+ const wsId = workspaceId || "default";
837
+
835
838
  // TENANT ISOLATION: Only set global for default
836
839
  if (wsId === "default") {
837
840
  WORKSPACE_ROOT = abs;
838
841
  }
839
-
840
- // Registar no WorkspaceManager (multi-workspace support)
841
- const wsId = workspaceId || "default";
842
842
  try {
843
843
  await wsManager.open(wsId, abs);
844
844
  } catch (err) {
845
845
  console.warn(`⚠️ WorkspaceManager open failed (non-fatal): ${err.message}`);
846
846
  }
847
847
 
848
- const meta = await detectProject(WORKSPACE_ROOT);
849
- const port = await detectPort(WORKSPACE_ROOT);
850
- res.json({ ok: true, root: WORKSPACE_ROOT, workspaceId: wsId, mode: "local", meta, port });
848
+ const meta = await detectProject(abs);
849
+ const port = await detectPort(abs);
850
+ res.json({ ok: true, root: abs, workspaceId: wsId, mode: "local", meta, port });
851
851
  });
852
852
 
853
853
  /**