@adhdev/daemon-standalone 0.9.73 → 0.9.74
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/dist/index.js +10 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/public/assets/{index-DehOXawT.js → index-Bu3OpXMi.js} +29 -29
- package/public/index.html +1 -1
- package/vendor/mcp-server/index.js +25 -7
- package/vendor/mcp-server/index.js.map +1 -1
- package/vendor/mcp-server/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -48563,6 +48563,10 @@ Run 'adhdev doctor' for detailed diagnostics.`
|
|
|
48563
48563
|
}
|
|
48564
48564
|
var DaemonCommandRouter = class {
|
|
48565
48565
|
deps;
|
|
48566
|
+
/** In-memory cache for cloud-originating meshes passed via inlineMesh.
|
|
48567
|
+
* Allows the MCP server to query mesh data via get_mesh even when
|
|
48568
|
+
* the mesh doesn't exist in the local meshes.json file. */
|
|
48569
|
+
inlineMeshCache = /* @__PURE__ */ new Map();
|
|
48566
48570
|
constructor(deps) {
|
|
48567
48571
|
this.deps = deps;
|
|
48568
48572
|
}
|
|
@@ -49211,11 +49215,12 @@ Run 'adhdev doctor' for detailed diagnostics.`
|
|
|
49211
49215
|
try {
|
|
49212
49216
|
const { getMesh: getMesh3 } = await Promise.resolve().then(() => (init_mesh_config(), mesh_config_exports));
|
|
49213
49217
|
const mesh = getMesh3(meshId);
|
|
49214
|
-
if (
|
|
49215
|
-
|
|
49216
|
-
} catch (e) {
|
|
49217
|
-
return { success: false, error: e.message };
|
|
49218
|
+
if (mesh) return { success: true, mesh };
|
|
49219
|
+
} catch {
|
|
49218
49220
|
}
|
|
49221
|
+
const cached2 = this.inlineMeshCache.get(meshId);
|
|
49222
|
+
if (cached2) return { success: true, mesh: cached2 };
|
|
49223
|
+
return { success: false, error: "Mesh not found" };
|
|
49219
49224
|
}
|
|
49220
49225
|
case "create_mesh": {
|
|
49221
49226
|
const name = typeof args?.name === "string" ? args.name.trim() : "";
|
|
@@ -49278,6 +49283,7 @@ Run 'adhdev doctor' for detailed diagnostics.`
|
|
|
49278
49283
|
let mesh;
|
|
49279
49284
|
if (args?.inlineMesh && typeof args.inlineMesh === "object") {
|
|
49280
49285
|
mesh = args.inlineMesh;
|
|
49286
|
+
this.inlineMeshCache.set(meshId, mesh);
|
|
49281
49287
|
} else {
|
|
49282
49288
|
const { getMesh: getMesh3 } = await Promise.resolve().then(() => (init_mesh_config(), mesh_config_exports));
|
|
49283
49289
|
mesh = getMesh3(meshId);
|