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.
- package/package.json +1 -1
- package/src/server.js +6 -6
package/package.json
CHANGED
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(
|
|
849
|
-
const port = await detectPort(
|
|
850
|
-
res.json({ ok: true, root:
|
|
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
|
/**
|