adhdev 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/cli/index.js +11 -5
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +11 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/vendor/mcp-server/index.js +15 -3
- package/vendor/mcp-server/index.js.map +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -40882,6 +40882,10 @@ var init_router = __esm({
|
|
|
40882
40882
|
READ_DEBUG_ENABLED2 = process.argv.includes("--dev") || process.env.ADHDEV_READ_DEBUG === "1";
|
|
40883
40883
|
DaemonCommandRouter = class {
|
|
40884
40884
|
deps;
|
|
40885
|
+
/** In-memory cache for cloud-originating meshes passed via inlineMesh.
|
|
40886
|
+
* Allows the MCP server to query mesh data via get_mesh even when
|
|
40887
|
+
* the mesh doesn't exist in the local meshes.json file. */
|
|
40888
|
+
inlineMeshCache = /* @__PURE__ */ new Map();
|
|
40885
40889
|
constructor(deps) {
|
|
40886
40890
|
this.deps = deps;
|
|
40887
40891
|
}
|
|
@@ -41530,11 +41534,12 @@ var init_router = __esm({
|
|
|
41530
41534
|
try {
|
|
41531
41535
|
const { getMesh: getMesh3 } = await Promise.resolve().then(() => (init_mesh_config(), mesh_config_exports));
|
|
41532
41536
|
const mesh = getMesh3(meshId);
|
|
41533
|
-
if (
|
|
41534
|
-
|
|
41535
|
-
} catch (e) {
|
|
41536
|
-
return { success: false, error: e.message };
|
|
41537
|
+
if (mesh) return { success: true, mesh };
|
|
41538
|
+
} catch {
|
|
41537
41539
|
}
|
|
41540
|
+
const cached2 = this.inlineMeshCache.get(meshId);
|
|
41541
|
+
if (cached2) return { success: true, mesh: cached2 };
|
|
41542
|
+
return { success: false, error: "Mesh not found" };
|
|
41538
41543
|
}
|
|
41539
41544
|
case "create_mesh": {
|
|
41540
41545
|
const name = typeof args?.name === "string" ? args.name.trim() : "";
|
|
@@ -41597,6 +41602,7 @@ var init_router = __esm({
|
|
|
41597
41602
|
let mesh;
|
|
41598
41603
|
if (args?.inlineMesh && typeof args.inlineMesh === "object") {
|
|
41599
41604
|
mesh = args.inlineMesh;
|
|
41605
|
+
this.inlineMeshCache.set(meshId, mesh);
|
|
41600
41606
|
} else {
|
|
41601
41607
|
const { getMesh: getMesh3 } = await Promise.resolve().then(() => (init_mesh_config(), mesh_config_exports));
|
|
41602
41608
|
mesh = getMesh3(meshId);
|
|
@@ -90252,7 +90258,7 @@ var init_adhdev_daemon = __esm({
|
|
|
90252
90258
|
init_version();
|
|
90253
90259
|
init_src();
|
|
90254
90260
|
init_runtime_defaults();
|
|
90255
|
-
pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.
|
|
90261
|
+
pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.74" });
|
|
90256
90262
|
AdhdevDaemon = class _AdhdevDaemon {
|
|
90257
90263
|
localHttpServer = null;
|
|
90258
90264
|
localWss = null;
|