@adhdev/daemon-core 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.mjs
CHANGED
|
@@ -20673,6 +20673,10 @@ function summarizeSessionHostPruneResult(result) {
|
|
|
20673
20673
|
}
|
|
20674
20674
|
var DaemonCommandRouter = class {
|
|
20675
20675
|
deps;
|
|
20676
|
+
/** In-memory cache for cloud-originating meshes passed via inlineMesh.
|
|
20677
|
+
* Allows the MCP server to query mesh data via get_mesh even when
|
|
20678
|
+
* the mesh doesn't exist in the local meshes.json file. */
|
|
20679
|
+
inlineMeshCache = /* @__PURE__ */ new Map();
|
|
20676
20680
|
constructor(deps) {
|
|
20677
20681
|
this.deps = deps;
|
|
20678
20682
|
}
|
|
@@ -21321,11 +21325,12 @@ var DaemonCommandRouter = class {
|
|
|
21321
21325
|
try {
|
|
21322
21326
|
const { getMesh: getMesh3 } = await Promise.resolve().then(() => (init_mesh_config(), mesh_config_exports));
|
|
21323
21327
|
const mesh = getMesh3(meshId);
|
|
21324
|
-
if (
|
|
21325
|
-
|
|
21326
|
-
} catch (e) {
|
|
21327
|
-
return { success: false, error: e.message };
|
|
21328
|
+
if (mesh) return { success: true, mesh };
|
|
21329
|
+
} catch {
|
|
21328
21330
|
}
|
|
21331
|
+
const cached = this.inlineMeshCache.get(meshId);
|
|
21332
|
+
if (cached) return { success: true, mesh: cached };
|
|
21333
|
+
return { success: false, error: "Mesh not found" };
|
|
21329
21334
|
}
|
|
21330
21335
|
case "create_mesh": {
|
|
21331
21336
|
const name = typeof args?.name === "string" ? args.name.trim() : "";
|
|
@@ -21388,6 +21393,7 @@ var DaemonCommandRouter = class {
|
|
|
21388
21393
|
let mesh;
|
|
21389
21394
|
if (args?.inlineMesh && typeof args.inlineMesh === "object") {
|
|
21390
21395
|
mesh = args.inlineMesh;
|
|
21396
|
+
this.inlineMeshCache.set(meshId, mesh);
|
|
21391
21397
|
} else {
|
|
21392
21398
|
const { getMesh: getMesh3 } = await Promise.resolve().then(() => (init_mesh_config(), mesh_config_exports));
|
|
21393
21399
|
mesh = getMesh3(meshId);
|